]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* tests/test_sha512sum.in: Make it work on emu.
[grub2.git] / ChangeLog
CommitLineData
87a04a2d
VS
12013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * tests/test_sha512sum.in: Make it work on emu.
4
c03995d2
VS
52013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
8 functions.
9 (grub_bidi_line_logical_to_visual): Likewise.
10
ec0ebb3f
VS
112013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
12
13 Remove vestiges of -Wunsafe-loop-optimisations.
14
15 * conf/Makefile.common (CFLAGS_GNULIB): Remove
16 -Wno-unsafe-loop-optimisations.
17 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
18 pragma.
19 * grub-core/io/gzio.c: Likewise.
20 * grub-core/script/parser.y: Likewise.
21 * grub-core/script/yylex.l: Likewise.
22 * util/grub-mkfont.c: Likewise.
23
6ab537e3
VS
242013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * util/grub-mkfont.c (process_cursive): Remove nested function.
27
e6c368d4
VS
282013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
29
30 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
31 (grub_boot_time): Likewise.
32
4f1cfd22
VS
332013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
34
35 * include/grub/symbol.h (FUNCTION): Use @function rather than
36 "function".
37 (VARIABLE): Likewise.
38
6d5a4cee
VS
392013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
40
41 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
42
f06c2172
VS
432013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
44
45 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
46 (parse_dhcp_vendor): Likewise.
47
7cb24eb5
VS
482013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
49
50 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
51
f30c692c
VS
522013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * grub-core/gettext/gettext.c (main_context), (secondary_context):
55 Define after defining type and not before.
56
8b66bb5d
VS
572013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
58
59 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
60 type.
61 (grub_gcm_decrypt): Likewise.
62 (algo_decrypt): Likewise.
63 (grub_zfs_decrypt_real): Transform error type.
64
5d17fd0f
VS
652013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
66
67 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
68
ac35a0f7
VS
692013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
72 (grub_usbms_cbi_reset): Likewise.
73 (grub_usbms_bo_reset): Likewise.
74 (grub_usbms_reset): Likewise.
75 (grub_usbms_attach): Likewise.
76 (grub_usbms_transfer_cbi): Likewise.
77
3ee08697
VS
782013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
79
80 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
81 "checksum = checksum;".
82
70bb6c85
VS
832013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
84
85 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
86 entry_type.
87
c7f34744
VS
882013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
89
90 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
91 BIOS disk check.
92
3f63b4d8
VS
932013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
94
95 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
96 type.
97 (grub_ehci_fini_hw): Likewise.
98 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
99
dac6ce73
VS
1002013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
101
102 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
103 return grub_usb_err_t for cosistency. All users updated.
104
5701750c
VS
1052013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
106
107 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
108 assigning to itself.
109
9e236169
GLD
1102013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
1112013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
112
113 Issue separate DNS queries for ipv4 and ipv6
114
115 Adding multiple questions on a single DNS query is not supportted by
116 most DNS servers. This patch issues two separate DNS queries
117 sequentially for ipv4 and then for ipv6.
118
119 Fixes: https://savannah.gnu.org/bugs/?39710
120
121 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
122 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
123 * (grub_net_dns_lookup): Now using separated dns packages.
124 * (grub_cmd_nslookup): Add error condition.
125 * (grub_cmd_list_dns): Print DNS option.
126 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
127 --prefer-ipv4, and --prefer-ipv6.
128 * include/grub/net.h (grub_dns_option_t): New enum.
129 * (grub_net_network_level_address): option added.
130
339eacce
VT
1312013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
132
133 * grub-core/video/fb/video_fb.c: Merge two blit functions
134 into one.
135
810f991b
VS
1362013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
137
138 * grub-core/term/terminfo.c: Add sequences for home and end.
139
386571a2
VS
1402013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
143 graphics console.
144
3fe63754
VS
1452013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
146
147 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
148 add mode 0x12.
149
76681e71
VS
1502013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
151
152 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
153 e-mail by Per Öberg.
154
46522fb7
VS
1552013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
158 name.
159
e7d09ac4
AB
1602013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
161
162 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
163 emu platforms.
164 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
165
67508925
VS
1662013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * docs/grub.texi: Document usage of menuentry id.
169
0c62124e
VS
1702013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
171
172 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
173
9b5d4eed
PL
1742013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
175
176 * grub-core/commands/i386/nthibr.c: New command.
177
79054c1d
VS
1782013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
179
180 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
181
44d47bbe
VS
1822013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
183
184 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
185 coordinate.
186
323de05b
VS
1872013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
188
189 Support GRUB_DISABLE_SUBMENU config.
190
191 Inspired by patch from Prarit Bhargava.
192
5a01722e
VS
1932013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
194
195 * docs/grub.texi: Mention RSA support.
196
1106c3f0
VS
1972013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
198
199 * grub-core/commands/verify.c: Add RSA support.
200
a1dcc2cb
VS
2012013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
202
203 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
204 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
205 device is known to be ATAPI.
206
ee7fb780
MF
2072013-11-03 Mike Frysinger <vapier>
208
209 * configure.ac: Don't add target-prefix.
210
5ade4a42
VS
2112013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
214 variables.
215
6cd66043
VS
2162013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
217
218 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
219 if language is English.
220
090d7c81
VS
2212013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
222
223 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
224
dd614590
VS
2252013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
226
227 * configure.ac: Don't add -m32/-m64 on emu.
228
a8686589 2292013-11-02 neil
230
231 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
232 broken linux headers.
233
fb9f12a0
VS
2342013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
235
236 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
237
e25f8e1f
VS
2382013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
239
240 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
241 Reed-Solomon recovery if more than half of redundancy info is 0.
242
4685200f
VS
2432013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
244
245 * util/grub-mount.c: Handle symlinks to directories.
246
1397f0b5
VS
2472013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
248
249 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
250 find_file recursively for symlink.
251
8b3e6eb6
VS
2522013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
253
254 * tests/util/grub-shell.in: Copy themes.
255
a0c9d5c6
VS
2562013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
257
258 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
259
5cf9459c
VS
2602013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
261
262 * configure.ac: Use 0x8000 for address instead of 8000.
263
e7b66a28
VS
2642013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
265
266 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
267 signature.
268
203f53fb
VS
2692013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
270
271 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
272 variable.
273
02663ee9
VS
2742013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
275
276 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
277
f169f65e
VS
2782013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
279
280 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
281 file_progress_read_hook.
282 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
283
2855a0fc
VS
2842013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
285
286 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
287 and double.
288
bf0f3a8c
VS
2892013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
290
291 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
292
cb72aa18
VS
2932013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
294
295 Rewrite blocklist functions in order to get progress when
296 reading large extents and decrease amount of blocklist hook calls.
297
896f9135
VS
2982013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
299
300 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
301 of SI suffixes.
302
89295a06
VS
3032013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
304
305 Support --base-clock for serial command to handle weird cards with
306 non-standard base clock.
307
eb03ede0
VS
3082013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
309
310 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
311 strncpy.
312 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
313 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
314 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
315 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
316 + strcpy rather than strncpy.
317
8fbe5c7d
VS
3182013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
321 (check_pool_label): Likewise. Fixes overflow.
322 (nvlist_find_value): Fix comparison.
323
e54b8f53
VS
3242013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
325
326 * include/grub/misc.h (grub_strcat): Removed. All users changed to
327 more appropriate functions.
328
fa9b3dca
VS
3292013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
330
331 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
332 realloc.
333
9a021c55
VS
3342013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
335
336 * util/grub-mkrescue.in: Do not use UUID search on EFI.
337
80e8b13a
VS
3382013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
339
340 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
341 on core size.
342
b61599ac
VS
3432013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
344
345 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
346
a602dc54
VS
3472013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
348
349 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
350 (initialize_tables): reset tl and td to NULL after freeing.
351
93c12075
VS
3522013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
353
354 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
355
1ca4b75e
VS
3562013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
357
358 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
359 of supported tags.
360
329550c4
VS
3612013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
364
00bfa988
VS
3652013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/loader/multiboot.c: Add support for multiboot kernels
368 quirks.
369
81afc5cc
VS
3702013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
373 a page in protected space.
374
cb3c4a47
VS
3752013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
376
377 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
378 allocate space for zero-sized modules.
379
954f7bf5
VS
3802013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
383
526d3d25
FL
3842013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
385
386 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
387
74124c34
VS
3882013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
389
390 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
391 safeguards. Fixes a crash with i386/pc/console.c.
392
5177391e
VS
3932013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
394
395 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
396 and grub_hostfs_init.
397
64db14b0
VS
3982013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
399
400 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
401 windows method on other platforms without good stat as well.
402
effe2036
VS
4032013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
404
405 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
406
82591fa6 4072013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 408
82591fa6
VS
409 Make / in btrfs refer to real root, not the default volume.
410 Modify mkrelpath to work even if device is mounted with subvolid option.
411
4122013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
413
414 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
415 extra_dist.
416 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
417 extra_dist.
418
30fd7198
VS
4192013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
420
421 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
422 fails.
423
8d179dae
BC
4242013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
425
426 * docs/autoiso.cfg: New file.
427
3bc9c8cf
VS
4282013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
429
430 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
431 COND_GRUB_PE2ELF conditions.
432
8b46b0ea
VS
4332013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
434
435 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
436 "vnd", "rd" and "fd" disks.
437
442b86de
VS
4382013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
439
440 Move grub_disk_write out of kernel into disk.mod.
441
04dea7e6
VS
4422013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
443
444 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
445 handling.
446
4472013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
448
449 * grub-core/kern/misc.c (grub_abort): Make static
450
04dea7e6 4512013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
452
453 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
454 transform invalid unicode codepoints.
455
04dea7e6 4562013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
457
458 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
459 \0 checking.
460
03dcac7f
VS
4612013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
462
463 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
464
c81acb7f
VS
4652013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
466
467 Consolidate cpuid code.
468
c1bee646
VS
4692013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
470
471 Move cpuid code to cpuid.h and TSC code to tsc.c.
472
f37bf9c7
GS
4732013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
474
475 * util/grub.d/00_header.in: Don't use LANG if it's not set.
476
4021132b
GS
4772013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
478
479 * util/grub-mkconfig.in: Replace $0 with $self.
480 * util/grub-reboot.in: Likewise.
481 * util/grub-set-default.in: Likewise.
482
3ace8d75
BC
4832013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
484
485 * docs/osdetect.cfg: New file.
486
1e6ad6a6
BC
4872013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
488
489 * tests/util/grub-shell.in: Add new --debug option.
490
188929eb
BC
4912013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
492
493 * tests/test_unset.in: New test.
494
7994a09a
BC
4952013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
496
497 * tests/test_sha512sum.in: New test.
498
2a8a7585
VS
4992013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
500
501 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
502 * include/grub/misc.h: Remove strncat.
503 * grub-core/lib/posix_wrap/string.h: Likewise.
504
cf8d6bbd
VS
5052013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
506
507 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
508 Try to handle more than 0xFFFF packets.
509 Reported by: Bernhard Übelacker <bernhardu>.
510 He also spotted few overflows in first version of this patch.
511
6d1fc99a
VS
5122013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
513
514 * tests/date_unit_test.c: New test.
515
10bafa1c
VS
5162013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
517
518 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
519 of first three years after start of validity of unixtime.
520
b1c6d037
VS
5212013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
522
523 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
524 division as the one making more sense.
525 (update_screen): Likewise.
526 (complete): Likewise.
527
5f4028d4
VS
5282013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
529
530 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
531
a2856736
VS
5322013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
533
534 Make char and string width grub_size_t rather than grub_ssize_t.
535
0a7e52b2
VS
5362013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
537
538 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
539 unsigned.
540 (grub_history_replace): Likewise.
541
42829573
VS
5422013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
543
544 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
545 appropriate.
546
3523b8d8
VS
5472013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
548
549 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
550 appropriate.
551
d43c6489
VS
5522013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
553
554 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
555 Use unsigned divisions rather than signed variants.
556
f690f8b0
VS
5572013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
558
559 * grub-core/video/readers/png.c (grub_png_convert_image): Use
560 unsigned arithmetics.
561 Add missing break.
562
74ff2c05
VS
5632013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
564
565 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
566
fb56391e
VS
5672013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
568
569 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
570 rather than signed one.
571 (recovery): Likewise.
572
40f29060
VS
5732013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
574
575 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
576
c64577a5
VS
5772013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
578
579 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
580 than signed.
581
c16535a8
JM
5822013-10-25 Jon McCune <jonmccune@google.com>
583
584 * docs/grub.texi: Cleanup security documentation around signatures.
585
6673d8e7
VS
5862013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
587
588 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
589
a105d375
VS
5902013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
591
592 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
593 than int.
594
af81ed88
VS
5952013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
596
597 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
598 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
599 functions when compiling for kernel.
600
ea899a57
VS
6012013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
602
603 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
604 unsigned long long when using %llu.
605
c6dc6fa1
VS
6062013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
607
608 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
609 terminal after updating progress.
610
ad2dc003
VS
6112013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
612
613 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
614 argument. We don't disable Gate A20 in this code.
615
b46684ae
VS
6162013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
617
618 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
619 Conceptually based on change in branch "vbe-on-coreboot".
620
f70d5c07
RM
6212013-10-24 Robert Millan <rmh@gnu.org>
622
623 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
624 numeric constants with their symbolic equivalent.
625 Taken from branch "vbe-on-coreboot".
626
bca274b4
VS
6272013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
628
629 * docs/grub.texi: Fix ordering and use pxref rather than xref.
630
238f0489
VS
6312013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
634 divmod64 for offset division.
635
863c590b
PFS
6362013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
637
638 Rename .bzrignore to .gitignore. Add "*.o" rule.
639
640 * .bzrignore: Renamed to...
641 * .gitignore: ...this.
642
84a0e969
PFS
6432013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
644
645 Add new progress module that displays the load progress of files.
646
647 * grub-core/lib/progress.c: New file.
648 * grub-core/Makefile.core.def (progress): New module.
649 * grub-core/kern/file.c (grub_file_open): File name added.
650 * (grub_file_read): Progress hook added.
651 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
652 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
653 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
654 * include/grub/file.h (struct grub_file): Add progress module members.
655 * include/grub/term.h (struct grub_term_output): Likewise.
656 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
657 Terminal velocity added.
658 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
659 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
660 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
661 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
662 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
663 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
664 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
665 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
666 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
667 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
668 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
669 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
670
0d711431
VS
6712013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
672
673 Verify signatures of signatures unless --skip-sig is specified.
674
f8401f76
VS
6752013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
676
677 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
678 \0 checking.
679
680 Saves 70 bytes on compressed image.
681
ac1feb61
VS
6822013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
683
684 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
685 check.
686
687 Saves 10 bytes on compressed image.
688
00f72e89
VS
6892013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
690
691 * grub-core/kern/misc.c (grub_isprint): Move to ...
692 * include/grub/misc.h (grub_isprint): ... here. Make inline.
693
694 Saves 20 bytes on compressed image due to remving exporting.
695
067e6ae7
VS
6962013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
697
698 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
699
700 Saves 5 bytes on compressed image.
701
64a6c791
VS
7022013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
703
704 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
705 function get_utf8.
706
707 Saves 379 bytes on compressed image.
708
979d9f52
VS
7092013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
710
711 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
712
1437da54
VS
7132013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
714
715 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
716
717 Saves 40 bytes on compressed image.
718
d9ee2269
VS
7192013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
720
721 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
722 mask rather than 64-bit type.
723
724 Saves 20 bytes on compressed image.
725
63efa602
VS
7262013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
727
728 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
729 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
730
47601ffe
VS
731 Saves 273 bytes on compressed image.
732
2cc679ad
VS
7332013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
734
735 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
736 variable length arrays.
737
738 Saves 50 bytes on compressed image.
739
2e4659b8
VS
7402013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
741
742 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
743
2a40badf
VS
7442013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
745
746 * grub-core/fs/ufs.c: Remove variable length arrays.
747
1ba6b9b9
VS
7482013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
749
750 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
751
f3e39341
VS
7522013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
753
754 * grub-core/fs/zfs.c: Remove variable length arrays.
755 Reduces zfs.mod by 160 bytes (208 compressed).
756
71523935
VS
7572013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
758
759 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
760
28153eb8
VS
7612013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * grub-core/net/arp.c: Remove variable length arrays.
764 * grub-core/net/bootp.c: Likewise.
765 * grub-core/net/dns.c: Likewise.
766 * grub-core/net/icmp6.c: Likewise.
767 * grub-core/net/net.c: Likewise.
768
88ce4cd7
VS
7692013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * grub-core/fs/ntfs.c: Remove variable length arrays.
772 Increases ntfs.mod by 64 bytes (but decreases by 3 when
773 compressed).
774
66123940
VS
7752013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
776
777 * grub-core/fs/hfs.c: Remove variable length arrays.
778 Reduces hfs.mod by 8 bytes (52 compressed).
779
0927e5bd
VS
7802013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
781
782 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 783 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
784 compressed).
785
9c12ac97
VS
7862013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
787
788 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 789 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
790 compressed).
791
97ec2d71
VS
7922013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
793
794 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 795 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
796 compressed).
797
156e4ea0
VS
7982013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
799
800 * grub-core/fs/xfs.c: Remove variable length arrays.
801 Reduces xfs.mod by 40 bytes (43 compressed).
802
3b502c29
VS
8032013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
804
805 * grub-core/fs/fshelp.c: Remove variable length arrays.
806 Reduces fshelp.mod by 116 bytes (23 compressed).
807
c7037f1d
VS
8082013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
809
810 * grub-core/normal/completion.c: Remove variable length arrays.
811 * grub-core/normal/menu_entry.c: Likewise.
812
813 Reduces normal.mod by 496 bytes.
814
a07e6ad0
VS
8152013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
816
817 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
818 by 356 bytes (158 compressed).
819
2359bf88
VS
8202013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
821
822 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
823 by 364 bytes (169 compressed).
824
d28e1163
VS
8252013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
826
827 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
828 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
829 * include/grub/types.h (grub_unaligned_uint64_t): New type.
830
e89c2d48
VS
8312013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
832
833 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
834 bitmasks to small structures of size chosen to fit in registers.
835
7abdac8e
VS
8362013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
837
838 * conf/Makefile.common: Use -freg-struct-return on i386. This
839 decreases code size and improves performance.
840
518864c0
VS
8412013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
842
843 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
844
bbd2b539
VS
8452013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
846
847 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
848 "(null)" string.
849 Simplify expressions to save around 256 bytes in kernel.img.
850 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
851
99519c15
VS
8522013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
853
854 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
855 Use GRUB_UTIL_FD_O_* rather than O_*.
856
20285765
VS
8572013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
858
859 Add haiku-specific functions.
860
887c0bb6
VS
8612013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
862
863 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
864
cd78a56f
VS
8652013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
866
867 Move stat () and device mode checking into OS-dependent files as
868 long as performance doesn't suffer.
869
a4012f07
VS
8702013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
871
872 Split make_system_path_relative_to_its_root into separate file
873 relpath.c from getroot.c as it's common between unix and haiku
874 but otherwise haiku doesn't use any functions from unix getroot.c.
875
31de274d
VS
8762013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
877
878 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
879 New function.
880 (grub_util_is_special_file): Likewise.
881
40346de6
VS
8822013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
883
884 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
885 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
886
d3923ab9
VS
8872013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
888
889 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
890 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
891
663f6eb1
VS
8922013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
893
894 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
895 (load_image): Likewise.
896
44d1c20a
VS
8972013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
898
899 * util/grub-render-label.c: Move backend part to ...
900 * util/render-label.c: ... here.
901
d0a116ee
VS
9022013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
905 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
906
b47fcae6
VS
9072013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
908
909 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
910
0f7c00c1
VS
9112013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
912
913 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
914 CD-ROM in case when it's declared as having subpartitions.
915
29013cba
VS
9162013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
917
918 Don't add -lm on haiku.
919
920 * configure.ac: Define BUILD_LIBM to -lm on most platforms
921 and empty on haiku.
922 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
923 -lm.
924
e8559d24
VS
9252013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
926
927 * configure.ac: Use -melf_*_haiku as target on haiku.
928
8104063c
VS
9292013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
930
931 * Makefile.util.def: Add util/setup.c to extra_dist.
932
fc3182c7
VS
9332013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
934
935 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
936 unknown types through.
937
f90a3cc0
VS
9382013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
939
940 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
941 (grub_util_check_char_device): Likewise.
942 * include/grub/emu/getroot.h: Likewise.
943
1e3e7419
VS
9442013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
947 memset rather than inline static function.
948
92c88fc8
VS
9492013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
952 not doing embedded decompressor.
953
3cd910a2
VS
9542013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
957 shadowing.
958 * grub-core/kern/disk.c: Likewise.
959 * grub-core/kern/misc.c: Likewise.
960 * include/grub/parser.h: Likewise.
961 * include/grub/script_sh.h: Likewise.
962 * include/grub/zfs/zfs.h: Likewise.
963
7b3aca00
VS
9642013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
965
966 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
967
97dfe7e4
VS
9682013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
969
970 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
971 defined before trying to use it.
972
bf919aa9
VS
9732013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
976 warning.
977
f4ccf29d
VS
9782013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
979
980 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
981 Use __unused__ rather than __used__ on gcc < 3.2.
982
0d3a6f85
VS
9832013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
984
985 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
986 gcc < 4.0.
987 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
988
757e3eb7
VS
9892013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
990
991 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
992
fb320faf
VS
9932013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
994
995 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
996 * include/grub/emu/misc.h: Likewise.
997
ea73acd2
VS
9982013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
1001 cur_color.
1002
71237a6f
VT
10032013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
1004
1005 * grub-core/tests/checksums.h: Regenerated due to progress bar
1006 get_minimal_size changes.
1007
3d46c22f
BC
10082013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
1009
1010 Added `tr' command support.
1011
1012 * grub-core/commands/tr.c: New file.
1013 * grub-core/Makefile.core.def: Build rules for new module.
1014
1015 * tests/grub_cmd_tr.in: New test.
1016 * Makefile.util.def: Build rules for new test.
1017
47e0a61f
VT
10182013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1019
1020 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
1021
946fd073
VT
10222013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1023
1024 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
1025 * docs/gurb.texi: Likewise.
1026
9c13c576
VT
10272013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1028
1029 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
1030 Pixmap highlighted section with east and west slices was displayed
1031 incorrectly due to negative width of the central slice.
1032
ad543f12
VT
10332013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1034
1035 * docs/grub.texi: Graphical options information update.
1036 Removed outdated. Updated current. Inserted missed.
1037
6176a0cd
VS
10382013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * docs/grub.texi: Mention few new platform-specific commands.
1041
9688cae2
VS
10422013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
1045 currently used so this doesn't really have any effect.
1046 Reported by: Douglas Ray <dougray>
1047
f7b69a3f
VS
10482013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
1051 compilation but prevents gcc from displaying messages in non-Latin
1052 alphabets.
1053 * conf/Makefile.common: Likewise.
1054
ceca6ddf
HY
10552013-10-16 Hiroyuki YAMAMORI
1056
1057 Handle Japanese special keys.
1058 Reported by: Hiroyuki YAMAMORI.
1059 Codes supplied by: Hiroyuki YAMAMORI.
1060
ac48d334
VT
10612013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1062
1063 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
1064
b2b71bff
VT
10652013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1066
1067 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
1068 * docs/grub.texi: Likewise.
1069
669fc449
VS
10702013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1071
1072 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
1073 value in case of incomplete read.
1074 (grub_util_fd_write): Likewise.
1075
59381678
VS
10762013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1077
1078 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
1079
bacfefbb
VS
10802013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * util/grub-editenv.c (create_envblk_file): More from here ...
1083 * util/editenv.c (grub_util_create_envblk_file): ... to here.
1084
f7c49570
VS
10852013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
1088 canonicalize file name before doing the rest.
1089
7b83ca44
VS
10902013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
1093 mingw32.
1094
df1e64c9
VS
10952013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 Define grub_util_is_directory/regular/special_file and
1098 use OS-dependent versions rather than to rely on stat().
1099
ec16e026
VS
11002013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * util/grub-mkimage.c: Move backend part to ...
1103 * util/mkimage.c: ... here.
1104
4b4eeb3c
VS
11052013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 Allow compilation with mingw64 albeit with warnings due to lack of
1108 %llx/%llu.
1109
1110 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
1111 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
1112 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
1113 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
1114 on mingw64.
1115 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
1116
f4e0adc0
VS
11172013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 Remove leftover references to some of the system headers.
1120
e0127364
VS
11212013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
1124 read.
1125
20d53541
VS
11262013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
1129 of strerror.
1130
5a869940
VS
11312013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 Split out blocklist retrieving from setup.c to
1134 grub-core/osdep/blocklist.c and add windows implementation since
1135 generic version doesn't work on NTFS on Windows due to aggressive
1136 unflushable cache.
1137
c06c7520
VS
11382013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
1141 files.
1142
8f53bb3f
VS
11432013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
1146 Cut tailing newline. Remove arbitrary limitation. Always use
1147 grub_util_tchar_to_utf8.
1148
148f1007
VS
11492013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
1152 * tests/printf_unit_test.c (printf_test): Add %% tests.
1153 Reported by: Paulo Flabiano Smorigo.
1154
af3b06be
VS
11552013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
1158 implement fsync.
1159
27f9d02e
VS
11602013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 * configure.ac: Check for nvlist_lookup_string in nvpair since we
1163 use nvlist_lookup_string and don't use nvlist_print.
1164
f6a81f0a
VS
11652013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1166
1167 Add wrappers around rename, unlink, mkdir, opendir, readdir and
1168 closedir to handle filename charset translation.
1169
d7750b32
VS
11702013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1171
1172 * include/grub/emu/hostdisk.h: Move file operations to
1173 * include/grub/emu/hostfile.h: ... here.
1174
2859196e
VS
11752013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
1178 unicode path.
1179
c018c968
VS
11802013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
1183
7e45abce
VS
11842013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
1187 and remove export.h.
1188
23934da2
VS
11892013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 * grub-core/kern/emu/error.c: Removed.
1192 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
1193 explicitly as it's already in libgnu.a.
1194
c11ebcc8
VS
11952013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1196
1197 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
1198 config-util.h include.
1199
70671037
VS
12002013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 Split emunet into platform-dependent and GRUB-binding parts. Keep
1203 platform-dependent part in kernel for easy access to OS functions.
1204
25ac643a
VS
12052013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
1208 open/read/write.
1209
69ca5876
VS
12102013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 * grub-core/osdep/windows/emuconsole.c: New file.
1213
d9d68ef0
AB
12142013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1215
1216 * conf/Makefile.extra-dist: Add osdep/*/init.c
1217
58e211cc
VS
12182013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1219
1220 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
1221
588744d0
VS
12222013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 * util/grub-probe.c (probe): Separate different drives in hint-str
1225 by spaces and not newlines.
1226 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
1227
44016e52
AB
12282013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1229
1230 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1231 Handle CD-ROMs.
1232
6de9ee86
VS
12332013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1234
1235 Pass-through unknown E820 types. It required reorganisation of mmap
1236 module.
1237
f8f3f155
AB
12382013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1239
1240 * Makefile.util.def: Add osdep/init.c to grub-mount files.
1241
b73249d2
VS
12422013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
1245 fseeko.
1246
dac86b18 12472013-10-14 qwertial <qwertial>
1248
1249 * grub-core/gdb_grub.in: Fix overflow and wrong field.
1250
17614b84
JM
12512013-10-14 Jon McCune <jonmccune@google.com>
1252
1253 * docs/grub.texi: Document new signatures possibility.
1254
6de292cb
VS
12552013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
1258
84379b61
VS
12592013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
1262 missing prototype.
1263 (grub_util_tchar_to_utf8): Likewise.
1264
21d85db1
VS
12652013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
1268 * grub-core/kern/emu/main.c: Add missing include.
1269 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
1270 Don't call grub_util_init_nls.
1271 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
1272 Likewise.
1273
66a1b3ee
VS
12742013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1275
1276 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
1277 stat.
1278
e19bec17
VS
12792013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
1282
ee8c1b29
VS
12832013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1284
1285 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
1286
bb338aaf
VS
12872013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 Add a wrapper for fopen. On unix-like systems just pass-through. On
1290 windows use unicode version.
1291
ae5540d3
VS
12922013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 Move set_program_name and init_nls to host_init. On windows
1295 fix in this fuction console and argument charset as well.
1296
4cd3c4fe
AB
12972013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
1298
1299 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
1300 GRUB_ENABLE_CRYPTODISK.
1301
1302 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
1303 GRUB_ENABLE_CRYPTODISK.
1304 * util/grub-mkconfig_lib.in: Likewise.
1305
78170f3e
CCZ
13062013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
1307
1308 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
1309
3414b6c0
MC
13102013-10-12 Melki Christian <Christian.melki@saabgroup.com>
1311
1312 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
1313 error when enabling debug.
1314
6d0740e8
IB
13152013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
1316
1317 * configure.ac: Use -melf_*_obsd on openbsd.
1318
ff2d4dc4
VS
13192013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
1322
eac6ae82
VS
13232013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 * include/grub/misc.h: Use gnu_printf rather than printf as format
1326 template since our functions are independent of libc.
1327
ba9baabe
VS
13282013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1329
1330 * util/grub-setup.c (setup): Move copying of partition table as
1331 futher up as possible to avoid possible overwrite by floppy routines.
1332
13332013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
1334
1335 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
1336
145e2369
VT
13372013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1338
1339 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
1340 * docs/grub.texi: Likewise.
1341
3530bc9d
VS
13422013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
1345 it's mostly unused. Move vestiges to the callers.
1346
fb9f59c3
VS
13472013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
1350 version of salt and hash. Use grub_snprintf rather than snprintf.
1351
9be1c255
VS
13522013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1353
1354 * docs/grub.texi: Fix problem with braces.
1355
ed8c0887
VS
13562013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1357
1358 * conf/Makefile.extra-dist: Fix extra-dist list.
1359 * grub-core/Makefile.core.def: Likewise.
1360
f72ab14e
VS
13612013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 * docs/grub.texi: Document disk names used on Windows and AROS.
1364
2fe53a22
VS
13652013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
1368 with AROS devs.
1369 * grub-core/osdep/aros/hostdisk.c: Likewise.
1370
71c1d67a
VS
13712013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1372
1373 Avoid including hostfile.h when not necessarry as it pulls
1374 in OS-specific headers which may redefine generic names
1375 like "far".
1376
ad297ec7
VT
13772013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1378
1379 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
1380 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
1381 scrollbar_bottom_pad
1382 * docs/grub.texi: Likewise.
1383
6e9e5dc9
VT
13842013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1385
1386 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
1387
761c718b
VS
13882013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1389
1390 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
1391
37149a2f
VS
13922013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
1395 Removed.
1396 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
1397 Made static.
1398
3837a151
VS
13992013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1400
1401 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
1402 leftover.
1403
caca1c70
VS
14042013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 Move OS-specific driver configuration to grub_util_fd_open. This
1407 moves OS-dependent parts from kern/emu/hostdisk.c to
1408 grub-core/osdep/*/hostdisk.c.
1409
f7676b70
VS
14102013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1411
1412 * util/grub-mkimage.c (generate_image): Use size_t instead of
1413 grub_size_t.
1414 * util/grub-mkimagexx.c (locate_sections): Likewise.
1415 (load_image): Likewise.
1416
22f98db2
VS
14172013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
1420 size_t.
1421 (grub_util_write_image): Likewise.
1422
b102ce69
VS
14232013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
1426 get random when no RNG is available.
1427 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
1428
acbbe5cb
VS
14292013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 * include/grub/util/lvm.h: Removed.
1432
2112fb3f
VS
14332013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1434
1435 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
1436 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
1437
79f78fbf
VS
14382013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 * grub-core/osdep/windows/sleep.c: Add missing config.h.
1441
c2e6f705
VS
14422013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1443
1444 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
1445
aabe433a
VS
14462013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 * grub-core/net/drivers/emu/emunet.c: Move to ..
1449 * grub-core/osdep/linux/emunet.c: ..here.
1450
9a2c903f
VS
14512013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1452
1453 * util/ieee1275/ofpath.c: Move to ...
1454 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
1455 * grub-core/osdep/basic/ofpath.c: ..here.
1456
4a445f58
VS
14572013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1458
1459 Move password-querying (util-version) routines to grub-core/osdep.
1460
c1ca4244
VS
14612013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1462
1463 Move sleep routines to grub-core/osdep.
1464
672fa55e
VS
14652013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1466
1467 Move OS-dependent files to grub-core/osdep and document it.
1468
a5b0365a
VS
14692013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
1472 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
1473
29072e99
VS
14742013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1475
1476 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
1477
f8772ea7
VS
14782013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1479
1480 * util/misc.c: Remove leftover inclusion of malloc.h.
1481
a1a315e7
VS
14822013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 * include/grub/setjmp.h: Remove leftover GRUBOF.
1485
cef86fef
VS
14862013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * util/raid.c: Fold into ...
1489 * util/getroot_linux.c: ... here. Make all functions static.
1490
c4cf25ee
VS
14912013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1492
1493 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
1494 macros to GRUB ones.
1495
53a5f5c2
VT
14962013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1497
1498 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
1499 occasional bug. If there are too many boot entries or too low
1500 scrollbar height then we need to use another formula to calculate
1501 the position and size of the scrollbar thumb.
1502
de300af2
VS
15032013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1504
c4cf25ee 1505 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 1506
c5827364
VT
15072013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1508
1509 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
1510 * docs/grub.texi: Likewise.
1511
dd2ed8b0
VT
15122013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1513
1514 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
1515 viewport.
1516
7286c384
VT
15172013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1518
ffdfc1f3
VT
1519 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
1520 minimal width calculations.
7286c384 1521
ea547e14
VS
15222013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1523
1524 * docs/grub.texi: Update note on colors on emu console.
1525
b726be76
VS
15262013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1527
1528 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
1529 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
1530 it's FS and not GRUB limitation.
1531
a5f6ade6
VS
15322013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
1535
3b0f3aa2
VS
15362013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
1539
1db38304
ST
15402013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1541
1542 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
1543 kernels by version order.
1544
fb295fc0
VS
15452013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1546
1547 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
1548
47345010
VS
15492013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1550
1551 Add AROS hostdisk and getroot routines.
1552
bf25f879
VS
15532013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1554
1555 Make cryptodisk and diskfilter probe data retrievable programmatically
1556 and not just printable.
1557
24ca4512
VS
15582013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1559
1560 Split random retrieving code into separate files.
1561
c7c177f0
VS
15622013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1563
1564 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
1565 R_ARM_V4BX.
1566
d71b45ae
VS
15672013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1568
1569 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
1570 condition.
1571 * grub-core/tests/fake_input.c: Likewise.
1572 * grub-core/tests/cmdline_cat_test.c: Likewise.
1573
e44b9a83
VS
15742013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 * grub-core/video/capture.c: Do not do finalization when .fini
1577 is called as there is explicit capture_end.
1578
4fa60739
VS
15792013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
1582 changing windows to avoid crash.
1583
17c8bc37
VS
15842013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
1587
9d4d7977
VS
15882013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 * po/exclude.pot: Add several strings to exclude.
1591
0caa407c
VS
15922013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
1595
9ae393da
VS
15962013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * autogen.sh: Add ./util/grub-gen-widthspec.c and
1599 ./util/grub-gen-asciih.c to exclude list.
1600
498d5033
VS
16012013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
1604 and don't mark error strings for translation.
1605
7d93298f
VS
16062013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
1609 properly in case of missing block size.
1610
b2cae20c
VS
16112013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 * grub-core/lib/arm/setjmp.S: Add missing license section.
1614
3896d6b4
VS
16152013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 * po/swiss.sed: Add replacement for key names and for term computer.
1618
ebc1da55
VT
16192013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
1620
1621 * grub-core/gfxmenu/theme_loader.c: New global options for the
1622 theme background image handling. desktop-image-scale-method,
1623 desktop-image-h-align, desktop-image-v-align.
1624 * grub-core/gfxmenu/view.c: Likewise.
1625 * include/gfxmenu_view.h: Likewise.
1626 * include/bitmap_scale.h: Proportional scale functions introduced.
1627 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
1628 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
1629 cases of unexpected input variables for scale functions.
1630 * docs/grub.texi: Updated documentation for new options.
1631
c5739143
VS
16322013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
1633
1634 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
1635
be74aeb3
VT
16362013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1637
1638 * grub-core/tests/checksums.h: Corrected due to changes in
1639 bilinear interpolation function.
1640
d999ac72
VT
16412013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1642
1643 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
1644 to eliminate artefacts in bilinear interpolation.
1645
2b131610
VS
16462013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1647
1648 * grub-core/video/readers/tga.c: Support paletted tga.
1649
de6e5ff8
VS
16502013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
1653 incorrect cbcr setting when in color mode.
1654
fa31ee9c
VS
16552013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * grub-core/video/readers/png.c: Support paletted images and clean up
1658 greyscale support.
1659
e84f8188
VS
16602013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
1663 usage of wrong table which resulted in mishandling of 4-byte
1664 sequences.
1665
16662013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
1667
1668 * grub-core/term/terminfo.c: Add Home and End key sequences.
1669
d72bff09
VS
16702013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1671
1672 * grub-core/video/readers/png.c (grub_png_decode_image_header):
1673 Fix formula for computing total number of bytes.
1674
29648c5d
VS
16752013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1676
1677 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
1678 image processing, fix big-endian and support grayscale.
1679
4a876492
VS
16802013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1681
1682 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
1683 Correctly will with maximum transparency when using index color.
1684
3ccf16df
VS
16852013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1686
1687 * grub-core/video/readers/png.c: Support grayscale
1688
16892013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
1690
1691 * grub-core/video/readers/jpeg.c: Support grayscale.
1692
3ccf16df 16932013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
1694
1695 * grub-core/commands/loadenv.c: Support skipping signature check
1696 and variable names filtering.
1697
30b7f58f
VS
16982013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
1701 * grub-core/kern/emu/hostfs.c: Likewise.
1702 * util/getroot_unix.c: Likewise.
1703
bab7b1eb
VS
17042013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
1707 Migrate all explicit defines to this new one.
1708
43b1c99d
VS
17092013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
1712 grub_util_fd_strerror when using grub_util_fd_*.
1713 (grub_util_fd_open_device): Likewise.
1714 (grub_util_biosdisk_read): Likewise.
1715 (grub_util_biosdisk_write): Likewise.
1716 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
1717 (grub_util_fd_strerror): Likewise.
1718 (grub_util_fd_sync): Likewise.
1719 (grub_util_fd_close): Likewise.
1720 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
1721 (grub_util_fd_close): Likewise.
1722 (grub_util_fd_strerror): Likewise.
1723 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
1724 function proto rather than macro.
1725 (grub_util_fd_sync): Likewise.
1726 (grub_util_fd_open): Likewise.
1727 (grub_util_fd_strerror): New proto.
1728
e8fd80bc
VS
17292013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
1732 platforms on which it doesn't work.
1733
bf645fda
VS
17342013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
1737 stat immediately to where it's used.
1738
5177ba14
VS
17392013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1740
1741 * util/getroot.c (grub_util_check_block_device): Move to ...
1742 * util/getroot_unix.c (grub_util_check_block_device): ... here.
1743 * util/getroot.c (grub_util_check_char_device): Move to ...
1744 * util/getroot_unix.c (grub_util_check_char_device): ... here.
1745
9db826e1
VS
17462013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
1749 disk closing logic.
1750
49120085
AB
17512013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1752
1753 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
1754
b3328b68
AB
17552013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1756
1757 * docs/grub.texi (File name syntax): Document ZFS filenames
1758 (/volume@snapshot/...).
1759
3fff48ab
VS
17602013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
1763 Always return full path. Fixes a problem with mkrelpath.
1764
39cfdaa9
PFS
17652013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1766
1767 * util/grub-install.in: Add GPT PReP support.
1768 * util/grub-probe.c (probe): Support GPT partition type.
1769 (main): Support -t gpt_parttype.
1770
7c680e1f 17712013-09-23 Aleš Nesrsta <starous@volny.cz>
1772
1773 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
1774
890bdabe
MM
17752013-09-23 Massimo Maggi <me@massimo-maggi.eu>
1776
1777 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
1778
9c262ff9
TH
17792013-09-23 Tim Hardeck <thardeck>
1780
1781 * util/grub.d/10_hurd.in: Filter out character for the class.
1782 * util/grub.d/10_kfreebsd.in: Likewise.
1783 * util/grub.d/10_linux.in: Likewise.
1784 * util/grub.d/20_linux_xen.in: Likewise.
1785
d755342a
MC
17862013-09-23 Melki Christian <Christian.melki@saabgroup.com>
1787
1788 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
1789 "changed".
1790
68b77707
JT
17912013-09-23 Josh Triplett <josh@joshtriplett.org>
1792
1793 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
1794 boot partition.
1795
efa68bfa
VS
17962013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
1799 doesn't use posix_wrap. Keep literal -fno-builtin however.
1800
d9104204
VS
18012013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
1804
c248781a 18052013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
18062013-09-23 neil
1807
5830df88 1808 * configure.ac: Do not enable -Wmissing-noreturn as its
1809 usefulness is limited and creates problems on some OS notably with
1810 code generated by bison.
1811
18122013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
18132013-09-23 neil
1814
1815 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 1816 supported by all gcc and when it is, it's already enabled by -Wall.
1817
621bed69
VS
18182013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1819
1820 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
1821 desactivated use of EDID at all.
1822
71764dc8 18232013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
18242013-09-23 neil
1825
1826 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
1827 video if no text is available.
1828
affce7d4 18292013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
18302013-09-23 neil
1831
1832 * configure.ac: Substitute TARGET_RANLIB.
1833
18342013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
18352013-09-23 neil
affce7d4
VS
1836
1837 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
1838
1839 Based on patches from AROS.
1840
0e8daad0 18412013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 18422013-09-23 neil
0e8daad0
VS
1843
1844 * grub-core/Makefile.am: Override STRIP and RANLIB.
1845 * configure.ac: compute TARGET_RANLIB.
1846 * INSTALL: Document TARGET_RANLIB
1847
1848 Based on patches from AROS.
1849
3f7d9c82
VS
18502013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1851
1852 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
1853 that floppies are unpartitioned.
1854
bca8873a
VS
18552013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1856
1857 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
1858 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
1859
18602013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1861
1862 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
1863 less nice but more portable.
1864 * grub-core/lib/posix_wrap/wchar.h: Likewise.
1865
a47a78be
VS
18662013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1867
1868 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
1869 for cheat_fd.
1870 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
1871 functions.
1872 (grub_cryptodisk_cheat_insert): Likewise.
1873 (grub_cryptodisk_close): Likewise.
1874
e85a5d5c
VS
18752013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
1878 Use windows path for DEFAULT_DIRECTORY.
1879
dad9fa6b
VS
18802013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
1883 difference was likely just gcc version, not anything mingw-related.
1884
7e518ca8
VS
18852013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 Use Winapi on both cygwin and mingw32 to share more code between both.
1888
d68d0157
AB
18892013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1890
1891 * util/grub-install.in: Add --grub-editenv option.
1892 * util/grub-install_header (grub_compress_file): Explicitly check for
1893 plain file to avoid cp error.
1894
775b284d
AB
18952013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1896
1897 * docs/grub.texi (Device syntax): Document new LVM UUID based device
1898 names; fix LVM driver name (lvm, not lv).
1899 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
1900 names.
1901
3ff4063d
VS
19022013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
1905 files rather than one file with loads of #if's.
1906 * util/getroot.c: Likewise.
1907
287faafe
VS
19082013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
1911
d1983764
VS
19122013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1913
1914 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
1915 GNU/Hurd to the list of checked PRNG.
1916
15ce95c4
VS
19172013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 * configure.ac: On FreeBSD use -melf_*_fbsd format.
1920
207862dd 19212013-09-21 Ales Nesrsta <starous@volny.cz>
1922
7c680e1f 1923 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 1924
63653cfd
VS
19252013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
1928 * grub-core/disk/lvm.c: Add LVM UUIDs.
1929 * util/getroot.c: Use LVM UUIDs whenever possible.
1930
f5d3e7ef
AB
19312013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
1932
1933 * docs/grub.texi (Networking commands): Add documentation for
1934 network related commands.
1935
53c6b7d6
VS
19362013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1937
1938 * util/getroot.c (grub_util_open_dm): Check major rather than the name
1939 to determine if device is handled by devmapper.
1940 (convert_system_partition_to_system_disk): Likewise.
1941 (get_dm_uuid): Don't check explicitly if device is mapped, it's
1942 already done in grub_util_open_dm.
1943
e70d6736
LL
19442013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
1945
1946 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
1947 Clean up stack manipulation (sync_caches_armv*)
1948
90379808
VS
19492013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 * util/lvm.c: Remove since unused. Remove remaining references.
1952
386701a8
VS
19532013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1954
1955 Handle the case of partitioned LVM properly.
1956
1957 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1958 Stop on meeting LVM, mpath or DMRAID.
1959 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
1960 (read_device_map): Likewise.
1961 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
1962 device is full disk rather than erroring out on LVM and similar cases.
1963
53070787
VS
19642013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
1967
1bc783bd
VS
19682013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1969
1970 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
1971 4K before the end.
1972 Reported by: Leif Lindholm
1973
436ad5c3
PW
19742013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
19752013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
1978 codes.
1979
607319c9
CW
19802013-09-18 Colin Watson <cjwatson@ubuntu.com>
1981
1982 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
1983 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
1984
d404d154
DR
19852013-09-18 Douglas Ray <dougray@cpan.org>
1986
1987 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
1988 as secure.
1989
28851ef6
AN
19902013-09-18 Aleš Nesrsta <starous@volny.cz>
1991
1992 * docs/grub.texi: Fix broken link.
1993
897c3bc6
MC
19942013-09-18 Melki Christian <Christian.melki@saabgroup.com>
1995
1996 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
1997 to break endless loop.
1998
f1630459
VS
19992013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 * util/grub-fstest.c: Fix several printf formats.
2002 * util/grub-mkimage.c: Likewise.
2003 * util/grub-mkimagexx.c: Likewise.
2004 * util/grub-script-check.c: Likewise.
2005
64463dfd
VS
20062013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
2009 error.
2010
48972495
VS
20112013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
2014
5dd5e64b
VS
20152013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
2018 removed in current versions cygwin_conv_*.
2019
1c1f31e5
VS
20202013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 * configure.ac: Disable efiemu runtime on cygwin.
2023
c546a259
VS
20242013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
2027 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
2028
81690478
VS
20292013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
2032 error message.
2033
6b87c10a
VS
20342013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2035
2036 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
2037 windows variant.
2038 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
2039 data.
2040
8f0baaac
VS
20412013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
2044 when on x86 and not cygwin.
2045 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
2046 -Wl,-melf_x86_64.
2047
b224c266
VS
20482013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * configure.ac: Set CPP to build one when checkoing for freetype for
2051 build.
2052
506b336b
VS
20532013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2054
2055 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
2056 [!GRUB_BUILD]: Remove has_argument.
2057
8c8c87b7
VS
20582013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2059
2060 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
2061 Replace with a dummy.
2062
7dc5ca13
VS
20632013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2064
2065 * configure.ac: Don't change host_os from mingw to cygwin.
2066
c3302aa5
VS
20672013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2068
2069 * configure.ac: Change target_os from windows to cygwin.
2070
7b780018
VS
20712013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2072
2073 Handle grub-pe2elf and grub-mkfont for cases when build != host.
2074
2075 * Makefile.am (build-grub-mkfont): Don't include gnulib.
2076 (build-grub-gen-asciih): Likewise.
2077 (build-grub-gen-widthspec): Likewise.
2078 * Makefile.util.def (grub-pe2elf): Remove.
2079 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
2080 * configure.ac: Separate tests for build.
2081 Move ./build-grub-pe2elf to grub-core.
2082 Fix typo.
2083 * grub-core/Makefile.am (build-grub-pe2elf): New target.
2084 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
2085 defined.
2086 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
2087 constants.
2088 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
2089 * util/grub-pe2elf.c: Simplify not to rely on getopt.
2090 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
2091
984cfd8a
VS
20922013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
2095 mingw32 as well based on grub_util_get_disk_size.
2096 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
2097 grub_util_get_fd_size.
2098 (sync): Removed.
2099 (fsync): Moved to ...
2100 * grub-core/kern/emu/misc.c (fsync): ... here.
2101
f82d79c9
VS
21022013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2103
2104 * include/grub/mm.h (grub_extend_alloc): Remove.
2105 * grub-core/loader/i386/pc/plan9.c: Use own version of
2106 grub_extend_alloc with appropriate types.
2107
fd7dd66d
VS
21082013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
2111
43ffba7c
VS
21122013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * util/getroot.c: Include sys/wait.h only when we need waitpid.
2115
3c7eac44
VS
21162013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 Fix dependencies on cygwin.
2119
2120 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
2121 dependencies when used and defined.
2122 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
2123
bdb5ba47
VS
21242013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
2127 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
2128
ed7fbf43
VS
21292013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
2132 implementation available to cause compile-time rather than runtime
2133 error.
2134
fc46e9fc
VS
21352013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * util/grub-fstest.c: Don't check for symlinks on windows.
2138
7f68269a
VS
21392013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2140
2141 * INSTALL: Mention unavailability of man pages when cross-compiling.
2142
8ed358e0
VS
21432013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2144
2145 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
2146 and gcry_log_bug.
2147 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
2148
fc97214f
VS
21492013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 * INSTALL: Document cross-compilation.
2152 * acinclude.m4: Determine whether nm support -P and --defined-only.
2153 * configure.ac: Add TARGET_ to all variables pertaining to target
2154 that don't have it yet.
2155 * gentpl.py: Likewise.
2156 * grub-core/Makefile.am: Likewise.
2157 * grub-core/genmod.sh.in: Likewise.
2158 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
2159 as well.
2160
ca1fb563
IB
21612013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2162
2163 * configure.ac: Remove -Wempty-body. It's not essential and needs
2164 recent gcc.
2165
0031b229
IB
21662013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2167
2168 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
2169 * util/getroot.c: Likewise.
2170
54ea2f44
VS
21712013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 * grub-core/disk/ahci.c: Add needed explicit cast.
2174 * grub-core/lib/backtrace.c: Likewise.
2175 * grub-core/net/ip.c: Likewise.
2176 * grub-core/net/tcp.c: Likewise.
2177 * grub-core/net/udp.c: Likewise.
2178
3c601f8c
VS
21792013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
2182
1d679dda
VS
21832013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 * util/import_gcry.py: Add final newline in visibility.h.
2186
00c28dd9
VS
21872013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2188
2189 * conf/Makefile.common: Fix typo.
2190
32af299a
VS
21912013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
2194
e733cf52
VS
21952013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 * Makefile.am (widthspec.h): Fix typo.
2198 * util/grub-gen-widthspec.c: Likewise.
2199
c6b066f2
VS
22002013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 Move ascii.h and widthspec.h generation to a separate build-time-only
2203 tool.
2204
ad1fe3f9 22052013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
2206
2207 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2208 Always fill bootdisk info and improve check for NetBSD disklabel.
2209
92a52dd4
VS
22102013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2211
2212 * conf/Makefile.extra-dist: Add util/bin2h.c.
2213 Reported by: floppym.
2214
b2e9d276
VS
22152013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2216
2217 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
2218
7b966834
VS
22192013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2220
2221 * configure.ac: Disable unifont and starfield if no freetype was found.
2222
d5c1eef1
VS
22232013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
2226 on NetBSD and OpenBSD.
2227
66345b50 22282013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
2229
2230 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
2231
66345b50 22322013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
2233
2234 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
2235 reduced. Inheritant options are processed during the theme loading.
2236
66345b50 22372013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
2238
2239 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
2240
369508b3
AS
22412013-08-14 Avik Sil <aviksil@in.ibm.com>
2242
2243 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
2244
22452013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
2246
2247 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
2248 using qemu.
2249
6f27a3f6
PFS
22502013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2251
2252 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
2253 remove-potcdate.sed.
2254
c6ed362a
AB
22552013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2256
2257 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
2258 unused attribute from pull argument.
2259
5e7d9464
AB
22602013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2261
2262 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
2263 memory leak.
2264
dea55e2a
AB
22652013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2266
2267 * util/getroot.c (pull_lvm_by_command): add --separator option
2268 to vgs call to disable padding of output to 10 characters.
2269
f0b94ded
VS
22702013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2271
2272 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
2273 here ...
2274 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
2275 here.
2276
b828fb5d
VS
22772013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
2280 length.
2281
7c9d0c39
VS
22822013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 Fix handling of build-time grub-bin2h and grub-mkfont when doing
2285 full Canadian cross. Tested with build=x86_64, host=arm,
2286 target=ppc-ieee1275.
2287
816719c8
VS
22882013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 * configure.ac: Error if no $BUILD_CC could be found.
2291 Reported by: DevHC.
2292
2af2353b
VS
22932013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
2296 i386-multiboot.
2297
797abd0a
VS
22982013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
2301 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
2302
36e87d25
CW
23032013-08-13 Colin Watson <cjwatson@ubuntu.com>
2304
2305 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
2306 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
2307 falling back to the partition device, otherwise a later call to this
2308 function may fail spuriously.
2309 Reported by Axel Beckert. Fixes Debian bug #708614.
2310
273349fe
GS
23112013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2312
2313 * autogen.sh: Replace find -not by the POSIX-compliant find !.
2314
418f86c6
GS
23152013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2316
2317 Prevent shadowing of stdlib's devname(3) on BSD.
2318
2319 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
2320 and devlast to diskname and disklast, respectively.
2321
c137aea0
CW
23222013-08-11 Colin Watson <cjwatson@ubuntu.com>
2323
2324 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
2325
272dc8df 23262013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
2327
2328 * docs/grub.texi: Introduce terminal window position options:
2329 terminal-left: terminal window's left position
2330 terminal-top: terminal window's top position
2331 terminal-width: terminal window's width
2332 terminal-height: terminal window's height
2333 terminal-border: terminal window's border width
2334 * grub-core/gfxmenu/theme-loader.c: Likewise.
2335 * include/grub/gfxmenu_view.h: Likewise.
2336 * po/exlude.pot: Likewise.
2337 * grub-core/gfxmenu/view.c: Likewise.
2338 Also updated minimal window size.
2339 Also terminal_sanity_check function has been introduced.
272dc8df
VT
2340 * grub-core/tests/checksums.h: Update (terminal window height
2341 is adjusted now for low resolution screen)
b4743461 2342
748a4533
VS
23432013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
2346 position).
2347
fca5f944
VS
23482013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * po/exclude.pot: Add few recent exceptions.
2351
4f47d809
VS
23522013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 * tests/grub_func_test.in: Add unicode.pf2.
2355
a62ae90c
VS
23562013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2357
2358 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
2359 standard rather than noral color, in line with other terminals.
2360
4ed41392
VS
23612013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2362
2363 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
2364 analysis.
2365
3719fbc5
VS
23662013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 * grub-core/loader/arm/linux.c: Change printf to dprintf.
2369
459b1d91
VS
23702013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
2373 inappropriate printf.
2374
f4e1ab9d
AB
23752013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
2376
2377 * .bzrignore: Remove grub-core/lib/dtc-grub,
2378 grub-core/Makefile.libfdt.def
2379 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
2380
fa471bfa
VS
23812013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * include/grub/video.h (grub_video_register): Keep double-linked as
2384 well as single-linked invariants.
2385 Reported by: qwertial.
2386
d65be02b
VS
23872013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2388
2389 * grub-core/commands/nativedisk.c (get_uuid): Handle
2390 GRUB_DISK_DEVICE_UBOOTDISK_ID.
2391
ba8bc620
VT
23922013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
2393
2394 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
2395 maximum of NW, N, NE heights instead of N's height and maximum of
2396 NW, W, SW widths instead of W's width. (So the box will be always
2397 correctly drawn)
2398
4f0ad029
GS
23992013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
2400
2401 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
2402 Fix misuse of variable count.
2403
43d53b72
LL
24042013-07-18 Leif Lindholm <leif.lindholm@arm.com>
24052013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
24062013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 2407
43d53b72
LL
2408 New ports to arm-uboot and arm-efi.
2409 Mostly by Leif Lindholm with some additions from
2410 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 2411
88f8d146
VS
24122013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2413
2414 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
2415 and not before.
2416 Reported by: Leon Drugi.
2417
3f42504c
VS
24182013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
2421 Reported by: Paulo Flabiano Smorigo.
2422
d110499b
VT
24232013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2424
2425 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
2426
a8674ad3
VT
24272013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2428
2429 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
2430
286fe4b3
VS
24312013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
2434
1bd57aa3
VS
24352013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2436
2437 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
2438
7a87d69f
AB
24392013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
2440
2441 * grub-core/net/bootp.c: Export net_* variables.
2442 * grub-core/net/net.c: Likewise.
2443
b2182299
VS
24442013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2445
2446 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
2447
795b3dc0
VS
24482013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2449
2450 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
2451
68714c43
VS
24522013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
2455
af211bab
VS
24562013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
2459
0036f02d
MM
24602013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2461
2462 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
2463 <= 0.
2464
6d0ddff3
MM
24652013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2466
2467 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
2468 functions.
2469
038016f4
MM
24702013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2471
2472 * grub-core/fs/zfs/zfs_lz4.c: New file.
2473 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
2474
776bdce2
MM
24752013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2476
2477 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
2478
c71dbd40
MM
24792013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2480
2481 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
2482 (check_pool_label): Likewise.
2483 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
2484
24852013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
2486
2487 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
2488
8e67b50f
AB
24892013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2490
2491 * docs/grub.texi (Commands): Document postition parameters
2492 for menuentry command.
2493
f5ae3717
AB
24942013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2495
2496 * util/grub-mknetdir.in: Remove stray line from help output.
2497
9c28da2a
VS
24982013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 Remove early sm712 init as there is no reason for it (the "watchdog"
2501 effect was due to wrong GPIO map).
2502
139072b8
VS
25032013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 * grub-core/commands/pcidump.c: Remove static variables.
2506
c6a61bda
VS
25072013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 * grub-core/commands/sleep.c: Refresh screen before sleeping.
2510
51369614
VS
25112013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2512
2513 * configure.ac: Move delimiter after the infos.
2514
efa8640a
VS
25152013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2516
2517 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
2518
6f80a7b2
VS
25192013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2520
2521 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
2522 not filling whole 8x16 space.
2523
a2371e19
VS
25242013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
2527
64fce2d8
VS
25282013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * configure.ac: Indicate which liblzma is used if any.
2531
eb272d84
PW
25322013-06-21 Paul Wise <pabs3@bonedaddy.net>
25332013-06-21 Craig Sanders <savannah@taz.net.au>
2534
2535 * util/grub-reboot.in: Document submenu usage.
2536
a9e5abee
CW
25372013-06-25 Colin Watson <cjwatson@ubuntu.com>
2538
2539 * .bzrignore: Update with a number of new test-related files.
2540
e639c204
CW
25412013-06-25 Colin Watson <cjwatson@ubuntu.com>
2542
2543 * util/grub-script-check.c: Fail on scripts containing no
2544 commands, to guard against corrupted grub-mkconfig setups that
2545 produce no useful output.
2546 * tests/grub_script_no_commands.in: New test.
2547 * Makefile.util.def (grub_script_no_commands): Add.
2548 Reported by Hans Putter. Fixes Debian bug #713886.
2549
a4c89b17
AB
25502013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2551
2552 * grub-core/disk/diskfilter.c: Forgot to remove comment
2553 from previous commit.
2554
5b06b53c
AB
25552013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2556
2557 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
2558 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
2559
702da5c9
AB
25602013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2561
2562 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
2563
aa62a5b7
AB
25642013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2565
2566 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
2567 rescan diskfilter devices until nothing new is found.
2568
4aa237c8
VS
25692013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2570
2571 Fix casts when compiling coreboot-specific code for 64-bit EFI.
2572
93d8479b
VS
25732013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 Don't try to detect cbfs on *-emu.
2576
837222cc
VS
25772013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 * grub-core/term/gfxterm.c: USe right background color when scrolling.
2580
99c971af
VS
25812013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 Add support for processed coreboot payload chainloading.
2584
e6930a45
VS
25852013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2586
2587 Enable coreboot information commands even when not loaded as
2588 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
2589
5027af38
VS
25902013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 Support for cbfs. Also factor out the part which is common
2593 for all archives to a separate module. This splits tar from cpio
2594 as they are very different but keeps cpio, cpio_be, odc and newc
2595 together since they're very similar.
2596
a5b55c4b
DM
25972013-06-15 David Michael <fedora.dm0@gmail.com>
2598
2599 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
2600 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
2601
0301a8b3
VS
26022013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2603
2604 * tests/grub_script_eval.in: Really add the eval test.
2605
3d84cb17
VS
26062013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2607
2608 Move flavour-specific parts out of common cpio.c file and
2609 rename remaining to cpio_common.c
2610
593e430c
AB
26112013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2612
2613 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
2614 off new function grub_script_execute_new_scope. Change callers to use
2615 either of them as appropriate.
2616 * grub-core/commands/eval.c: New command eval.
2617 * docs/grub.texi (Commands): Document it.
2618
63c29849
AB
26192013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2620
2621 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
2622 to fetch values when listing.
2623
cc284112
AB
26242013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2625
2626 Fix make dist on non-pc.
2627
26282013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
2629
2630 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
2631 without a device name.
2632
69544d1e
VS
26332013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 Remove enable_executable_check as it's not needed anymore.
2636 Reported by: dougray.
2637
96dbe648
VS
26382013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
2641 ambigouos RAID before discovering RAIDs on top of it.
2642 Reported by: bodom.
2643
ccfc0bdb
VS
26442013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 Fix typo (failback vs fallback).
2647
f2587088
AB
26482013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
2649
2650 * util/grub.d/30_os-prober.in: Add support for probing EFI
2651 System Partition (as of os-prober 1.58).
2652
cec5cf0c
VS
26532013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2654
2655 * configure.ac: Add yet another path to unifont. For parabola.
2656
e40b4596
JT
26572013-05-30 Josh Triplett <josh@joshtriplett.org>
2658
2659 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
2660 handling to copy the killed characters to the kill buffer as
2661 UCS4 stored as grub_uint32_t rather than as 8-bit characters
2662 stored as char. Eliminates UCS4 truncation and corruption
2663 observed when killing characters with Ctrl-u and yanking them
2664 back with Ctrl-y.
2665
fc4c4fdd
VS
26662013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 Detach optional parts of gfxterm and integrate in with coreboot init.
2669
6570b205
VS
26702013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2671
2672 Move blit and fill dispatcher to appropriate files to decrease export
2673 and relocation overhead.
2674
b8323067
VS
26752013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 * grub-core/font/font.c, include/grub/font.h: Inline simple font
2678 functions.
2679
3cc1878f
VS
26802013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2681
2682 * grub-core/Makefile.am: Fix compilation problem with some
2683 automake versions.
2684
4b80e43c
VS
26852013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2686
2687 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
2688
57e0c20c
VS
26892013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
2692 automake versions.
2693
4fd42c53
VS
26942013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2695
2696 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
2697 SSDT.
2698
1e908b34
RS
26992013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
2700
2701 * grub-core/partmap/dfly.c: New partition map.
2702
1359e474
VS
27032013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
2706 checking.
2707 Reported by: Francesco Lavra.
2708
17806392
AB
27092013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
2710
2711 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
2712 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
2713 false conditions.
2714 * conf/Makefile.common: define dist_grubconf_DATA
2715
cdce14fa
VS
27162013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 Progressively skip menu elements on small terminals rather
2719 than crashing.
2720
c8d6cc3c
VS
27212013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
2724 to avoid losing last column.
2725
a73b31ce
VS
27262013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2727
2728 * po/exclude.pot: Add missing string "%C".
2729
1202c764
VS
27302013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
2733 after the test.
2734
50268344
VS
27352013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * util/grub-install.in: Gettextize "Not found" message.
2738
62b15edf
VS
27392013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 Fix distfiles list.
2742 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2743
27442013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
2745
2746 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
2747 present.
2748 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
2749
709ad61b
VS
27502013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
2753
d128901a
VS
27542013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
2757 attribute since structure is not necessarily aligned.
2758
34b22f5c
AB
27592013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
2760
2761 * docs/grub.texi (Device syntax): Clarify description of network
2762 drives.
2763
0f7e980b
VS
27642013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2765
2766 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
2767 for vasprintf presence.
2768
30b03dc2
VS
27692013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2770
2771 * util/grub-install.in: Handle efibootmgr presence check.
2772 Reported by: Leif Lindholm.
2773
0dc11c08
VS
27742013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2775
2776 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
2777 new strings to translate.
2778
f8024c3f
VS
27792013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2780
2781 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
2782 yet another string (pun intended) to translate.
2783
b4c1da62
VS
27842013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 * po/POTFILES-shell.in: Autogenerate it.
2787
0ef7478b
VS
27882013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
2791
8200fa15
VS
27922013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2793
2794 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
2795 misnomer.
2796
091945b2
AB
27972013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
2798
2799 * docs/grub.texi (Network): Add description of net_default_interface,
2800 net_default_ip and net_default_mac. Rewrite variables description
2801 to emphasize that they are per-interface.
2802
0e7b2e32
VS
28032013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2804
2805 New test: cmdline and cat.
2806
16f7c8f6
VS
28072013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 * grub-core/commands/cat.c: Show UTF-8 characters.
2810
3e912fda
VS
28112013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * conf/Makefile.common: Poison float and double on non-emu.
2814
ee0220bc
VS
28152013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * configure.ac: Don't disable extended registers on emu.
2818
89e0240c
VS
28192013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 * configure.ac: Don't use extended registers on x86_64.
2822 Reported by: Peter Jones.
2823
e56d9637
VS
28242013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2825
2826 * grub-core/term/efi/console.c: Fix compile error.
2827
8098f655
VS
28282013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 Compressed HFS+ support.
2831
16940e07
VS
28322013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
2835 pixel".
2836
c5dbc13d
VS
28372013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 Menu color test.
2840
011f8ae8
VS
28412013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/tests/setjmp_test.c: New test.
2844
2aa072d7
VS
28452013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2846
2847 New variables 'net_default_*' to determine MAC/IP of default interface.
2848
43fe02cb
VS
28492013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * tests/gettext_strings_test.in: A test to check for strings not
2852 marked for translation.
2853
bed06142
VS
28542013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2855
2856 * autogen.sh: Exclude unused libgcrypt files from translation.
2857
fb2666b5
VS
28582013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 Simplify few strings.
2861
d22840ec
VS
28622013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2863
2864 Mark few forgotten strings for translation.
2865
e34092fd
VS
28662013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
2869 rather than printf.
2870
47cf82b4
VS
28712013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2872
2873 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
2874 rather than printf.
2875 * grub-core/video/readers/tga.c: Likewise.
2876
1eed0e6e
VS
28772013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * tests/priority_queue_unit_test.cc: New test.
2880
c5b7697b
VS
28812013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
2884 than printf.
2885
5945c2f8
AB
28862013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
2887
2888 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
2889 variable for one time boot menu entry.
2890
fa292343
B
28912013-05-05 Bean <bean123ch@gmail.com>
2892
2893 * grub-core/commands/testspeed.c: New command testspeed.
2894
310d4214
VS
28952013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2896
2897 Factor-out human-size printing.
2898
85002bf3
VS
28992013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 Agglomerate more mallocs to speed-up gfxterm.
2902
22b06e96
VS
29032013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 Speed-up gfxterm by slightly agglomerating mallocs.
2906
b7c036bc
VS
29072013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 More video checks.
2910
92323d1f
VS
29112013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 Speed-up gfxterm by saving intermediate results in index+alpha
2914 format.
2915
0fb356a3
VS
29162013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2917
2918 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
2919 test.
2920
44dea3f9
VS
29212013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
2924 line of timeout as it may contain the rest of long line.
2925
14af86e4
VS
29262013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * grub-core/normal/main.c: Fix freed memory dereference.
2929
03f7c8c3
VS
29302013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2931
2932 Fix several memory leaks.
2933
c686014c
VS
29342013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2935
2936 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
2937
0788a695
VS
29382013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
2941
daf01d61
VS
29422013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 Fix test -a and -o precedence.
2945 Reported by: adrian15.
2946
82ae74d7
VS
29472013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
2950
8cec7bd4
AB
29512013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
2952
2953 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
2954 and add it as source to functional_test module.
2955
aa73d688
VS
29562013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
2959
c104b6f9
VS
29602013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 New series of tests for gfxterm and gfxmenu.
2963
7391c4d5
VS
29642013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
2967 the theme path relative to $prefix/themes.
2968
cff50118
VS
29692013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
2972 Fix order bug.
2973 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
2974
7c332bdc
VS
29752013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2976
2977 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
2978 descriptor.
2979
a4f9a5ff
VS
29802013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2981
2982 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
2983 grub_gfxmenu_timeout_notifications.
2984 (grub_gfxmenu_view_destroy): Likewise.
2985
b5a2114d
VS
29862013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
2989
a8905e8a
VS
29902013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 Several fixes to ieee1275 and big-endian video.
2993
813c1622
VS
29942013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2995
2996 Add missing exports on mips.
2997
3f3e7326
VS
29982013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
3001 if no unifont is found.
3002 Restore original keyboard.
3003
095accd1
VS
30042013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3007 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
3008
50361660
VS
30092013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 First automated video test (running videotest and comparing results)
3012
cd0f6eec
VS
30132013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
3016 instead of 2 to have full RGB/CMY test pattern.
3017
3f9634e5
VS
30182013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 Add few more tests.
3021
583e5b64
VS
30222013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * include/grub/arc/arc.h: Account for missing "other" peripheral on
3025 ARCS. All users updated.
3026
aa7bcb99
VS
30272013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
3030
95ef1a54
VS
30312013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * grub-core/partmap/amiga.c: Fix size of checksummed block.
3034
46546fc5
VS
30352013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
3038 Reported by: qwertial.
3039
3476e0ef
VT
30402013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
3041
3042 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
3043 with syntax "XXX deg"/"XXX °".
3044
96f33fed
VS
30452013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 Make PCI init in i386-qemu port more robust.
3048
30492013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
3050
3051 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
3052 cached view is reused.
3053 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
3054 open boot menus.
3055
c53b4e67
VS
30562013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 Unify more code in grub-install_header.
3059
f7457fb2
VS
30602013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 Add few new tests.
3063
e2f27a8c
VS
30642013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 Enforce disabling of firmware disk drivers when native drivers kick in.
3067
ef9d8cd5
VS
30682013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * grub-core/commands/nativedisk.c: Customize the list of modules on
3071 platform. Don't try to search for disks already using native drivers.
3072
f7bf6c31
VS
30732013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
3076 platforms.
3077
bdc4add8
VS
30782013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
3081 handling of variables containing backslash.
3082
e9e46c9a
VS
30832013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
3086 dereference.
3087 Reported by: qwertial.
3088
0e90dee8
VS
30892013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3090
3091 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
3092
e0aacf24
VS
30932013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
3096 dereference.
3097 Reported by: qwertial.
3098
3c0003c3
VS
30992013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * docs/grub.texi: Add a comment about usefullness of nativedisk.
3102
adb7d667
VS
31032013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
3106
7cd0df84
VS
31072013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 New command `nativedisk'.
3110
02adbb93
VS
31112013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
3114 * grub-core/loader/i386/bsd.c: Likewise.
3115
9fb0fd4f
VS
31162013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
3119
bd69257a
VS
31202013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
3123 grub_get_unaligned16 rather than shifts.
3124
178c2764
VS
31252013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3126
3127 * grub-core/kern/file.c: Use const char * rather than casting to
3128 non-const.
3129
eadfad24
VS
31302013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3131
3132 * grub-core/commands/probe.c: Add missing grub_device_close.
3133
9f73ebd4
VS
31342013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 * INSTALL: Document linguas.sh.
3137
965fa829
VS
31382013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 Remove POTFILES.in and regenerate it in autogen.sh.
3141
d417ddc4
VS
31422013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 Move --directory/--override-directorry to grub-install_header and unify.
3145
f97ec546
VS
31462013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * grub-core/term/morse.c: Macroify dih and dah.
3149
b2d7470c
PFS
31502013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3151
3152 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
3153
141e2a78
VS
31542013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * grub-core/term/ns8250.c: Systematically probe ports by writing
3157 to SR before using them.
3158
1dd70ebd
PFS
31592013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3160
3161 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
3162 disks.
3163 (check_sas): Get sas_adress info.
3164
c796a107
VS
31652013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3166
3167 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
3168 ports.
3169
43168646
LD
31702013-04-27 Leon Drugi <eyak>
3171
3172 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
3173 BSS clearing.
3174
e7b8fd08
VS
31752013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 Core compression test.
3178
17f9fd29
VS
31792013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 Implement grub_machine_get_bootlocation for ARC.
3182
dc2a6c8b
VS
31832013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 Improve AHCI detection and command issuing.
3186
f25a2ba6
VS
31872013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 Fix pseries test.
3190
a6393224
VS
31912013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 Make 'make check' work on emu.
3194
db99fbe8
VS
31952013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 Replace libcurses with our own vt100 handling for the ease of testing
3198 and decreasing prerequisites.
3199
b24ca7cd
VS
32002013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
3203
63314aa4
VS
32042013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3205
3206 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
3207 compile when not needed.
3208
c1b00fff
VS
32092013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3210
3211 * tests/pseries_test.in: New test.
3212
f93e89ef
VS
32132013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 Add test to check that different boot mediums work.
3216
c4b456d3
VS
32172013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
3220 ofw limited ISO support.
3221
5fe67f39
VS
32222013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * configure.ac: Fix loongson conditional.
3225
7f63a64f
VS
32262013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3227
3228 Enable mipsel-arc.
3229
b04b5990
VS
32302013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3231
3232 Add serial on ARC platform.
3233
88d2f302
VS
32342013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
3237 commit.
3238
86eb23bc
VS
32392013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * tests/partmap_test.in: Add missing double semicolon.
3242
eec3bb75
VS
32432013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3244
3245 * util/grub-mkrescue.in: Fix loongson filename.
3246
e0810df3
VS
32472013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * util/grub-mkrescue.in: Move all files that don't have a location
3250 set in stone under /boot/grub. Use ISO hard links rather than copies
3251 to save some space.
3252
65a6b30b
VS
32532013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3254
3255 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
3256 bogus SLOF values.
3257
6aff0107
VS
32582013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3259
3260 Make check work on mips-arc.
3261
5e013e56
VS
32622013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3263
3264 * util/grub-mkrescue.in: Alias sashARCS as sash.
3265
d1989e2e
VS
32662013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
3269 it's serial.
3270
1a25e72c
VS
32712013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * util/grub-install.in: Fix target fo qemu_mips.
3274 Fix extension on EFI.
3275
a59a9826
VS
32762013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
3279 in front of chosen entry to mark it even if highlighting is lost.
3280
1a40f80c
VS
32812013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
3284 gfxpayload=keep if cbfb is active.
3285
e343549c
VS
32862013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3287
3288 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
3289
45fbd9a2
VS
32902013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 Add missing video ids to coreboot and ieee1275 video.
3293
ab1440bd
VS
32942013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * util/grub-mkrescue.in: Add mips-arc support.
3297
cdeb8324
VS
32982013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
3301
8528c879
VS
33022013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 Move mips-arc link address. Previous link address was chosen
3305 in belief that RAM on SGI platforms grows down while in fact it
3306 grows up from an unusual base.
3307
17fca573
VS
33082013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3309
3310 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
3311 Fix a type which prevented CD-ROM and floppy boot.
3312
d178788e
VS
33132013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 Support coreboot framebuffer.
3316
3317 * grub-core/video/i386/coreboot/cbfb.c: New file.
3318
fe4c3e7e
VS
33192013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3320
3321 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
3322 detecting too small regions.
3323
ec2dd179
VS
33242013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
3327
872dac83
VS
33282013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
3331 Remove dprintf.
3332 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3333
90ec4b7f
VS
33342013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3335
3336 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
3337 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3338 * grub-core/loader/powerpc/ieee1275/linux.c
3339 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3340
f32555dd
VS
33412013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3344 Look for /boot-rom as well as /rom/boot-rom.
3345
38649799
VS
33462013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3347
3348 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
3349 handling when creating text_layer failed.
3350 * grub-core/video/video.c (grub_video_create_render_target):
3351 Set result to 0 on error.
3352 (grub_video_delete_render_target): Do not dereference NULL.
3353
aeace7f7
VS
33542013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
3357 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
3358 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
3359 (grub_linux_load64): Mask out 2 high bits.
3360
4eafa175
AB
33612013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
3362
3363 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
3364 more place.
3365
daaa64bd
VS
33662013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 Add support for pseries and other bootinfo machines to grub-mkrescue.
3369
3370 Tested by: Paulo Flabiano Smorigo.
3371
d0d2daa6
VS
33722013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3373
3374 * util/grub-mkrescue.in: Add GPT for EFI boot.
3375
b193e100
VS
33762013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
3379 It improves performance in qemu.
3380
a0f8f3ac
VS
33812013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 * build-aux/snippet: Add missing gnulib files.
3384
284df0e2
AB
33852013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3386
3387 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
3388
740201f3
AB
33892013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3390
3391 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
3392
a7e03923
PJ
33932013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
33942013-04-15 Peter Jones <pjones@redhat.com>
3395
3396 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
3397 sectors.
3398 Based on patch by Peter Jones.
3399
25fc51a8
VS
34002013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 Fix DMRAID partition handling.
3403
88017d47
VS
34042013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 * tests/grub_cmd_date.in: Skip on sparc64.
3407
fa7d914e
VS
34082013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
3411 firmware error messages.
3412
cbe57a48
VS
34132013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
3416 source and destination differ.
3417
21aecce0
VS
34182013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
3421 detection.
3422
25092d29
VS
34232013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
3426 match config-util.h to avoid warnings and increase compatibility.
3427
79451522 34282013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 34292013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
3430
3431 Add option to compress files on install/image creation.
3432
78b7d77b
VS
34332013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 * docs/grub-dev.texi: Rearrange menu to match the section order.
3436 Reported by: Bryan Hundven.
3437
cc2fa5ec
VS
34382013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3439
3440 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
3441
b49fe879
VS
34422013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3443
3444 Move GRUB out of system area when using xorriso 1.2.9 or later.
3445
5351da81
VS
34462013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 * tests/grub_cmd_date.in: Add missing exit 1.
3449
c9d586ea
VS
34502013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * tests/partmap_test.in: Skip on sparc64.
3453
3f729741
VS
34542013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 Support grub-shell on sparc64.
3457
8ca86b3a
VS
34582013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 Support mkrescue on sparc64.
3461
aa1af9bb
VS
34622013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 Allow IEEE1275 ports on path even if it wasn't detected automatically.
3465 Needed on OpenBIOS due to incomplete device tree.
3466
ac4fea79
VS
34672013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
3470 would be otherwise excluded.
3471
34722013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
3473
3474 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3475 Inline name defines used only once.
3476
fe22b071
VS
34772013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 Fix memory leaks in ofnet.
3480 Reported by: Francesco Lavra.
3481
9d21381b
VS
34822013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * docs/man/grub-glue-efi.h2m: Add missing file.
3485
07aec23c
VS
34862013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
3489
67ab8353
VS
34902013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 Better support Apple Intel Macs on CD.
3493
ba44ca6d
VS
34942013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 Replace stpcpy with grub_stpcpy in tools.
3497
bbdd6305
VS
34982013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 Handle Japanese special keys.
3501 Reported by: Hiroyuki YAMAMORI.
3502 Codes supplied by: Hiroyuki YAMAMORI.
3503
8573d302
VS
35042013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * util/grub-mkimage.c: Document memdisk implying --prefix.
3507
d70dbab7
VS
35082013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
3511 much we can do about it anyway.
3512
51a4c3e3
AN
35132013-04-12 Aleš Nesrsta <starous@volny.cz>
3514
3515 Fix handling of split transfers.
3516
92c8f58d
VS
35172013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * grub-core/net/http.c: Fix bad free.
3520
b7d17a49
VS
35212013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3522
3523 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
3524 than buffer size.
3525
a3d566d4
VS
35262013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3527
3528 Disable partmap check on i386-ieee1275 due to openfirmware issues.
3529
a936af56
VS
35302013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 * tests/util/grub-shell.in: Fix it on powerpc.
3533
51212234
VS
35342013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 Turn off QEMU ACPI-way since new releases don't have shutdown port
3537 anymore.
3538
a21eec9e
VS
35392013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * docs/grub.texi: Update coreboot status info.
3542
e3734b84
VS
35432013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * tests/grub_cmd_date.in: New test for datetime.
3546
f9d40055
VS
35472013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 * tests/partmap_test.in: Fix missing qemudisk setting.
3550
dbc56d8f
VS
35512013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 Support i386-ieee1275 grub-mkrescue and make check on it.
3554
a79b8a15
VS
35552013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
3558 feature for it.
3559
48f39bb4
VS
35602013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3561
3562 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
3563 GRUB_CMDLINE_XEN_DEFAULT.
3564 Reported by: Marc Warne (GigaTux) <gigatux>
3565
053cfcdd
VS
35662013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 Import new gnulib.
3569
93cd84df
VS
35702013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 Use ACPI shutdown intests as traditional port was removed.
3573
f4b1fa4f
AB
35742013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
3575
3576 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
3577 distinction.
3578
49818a59
VS
35792013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
3582 Fix few warining messages and leaks while on it.
3583
9277a306
AB
35842013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
3585
3586 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
3587 links under grub-core/lib/libgcrypt-grub/mpi.
3588
d5e2a158
VS
35892013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3590
3591 Fix ia64-efi image generation on big-endian machines. Deduplicate
3592 some code while on it.
3593 Reported by: Leif Lindholm.
3594
18866643
AB
35952013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3596
3597 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
3598 as extra_dist.
3599
ca53deb8
AB
36002013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3601
3602 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
3603
d4c4b8e1
BH
36042013-04-08 Bryan Hundven <bryanhundven@gmail.com>
3605
3606 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
3607 texinfo-5.1.
3608
47043f95
VS
36092013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 * grub-core/normal/term.c: Few more fixes for menu entry editor
3612 rendering.
3613 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3614
a3216068
VS
36152013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * grub-core/normal/term.c: Few more fixes for menu entry editor
3618 rendering.
3619 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3620
21026747
AB
36212013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3622
3623 * conf/Makefile.extra-dist (EXTRA_DIST): Add
3624 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
3625
59624ca8
AB
36262013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3627
3628 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
3629 instead of hardcoding grub.mo.
3630
1f44478c
FN
36312013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
3632
3633 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
3634
eeada7b1
VS
36352013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
3638 grub-core/disk/geli.c.
3639
132867de
VS
36402013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 * util/grub-mkfont.c: Prefer enum to #define.
3643
de73de17
VS
36442013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3645
3646 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
3647
1865baa7
VS
36482013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3649
3650 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
3651
ce7d92a9
VS
36522013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
3655
52eab656
VS
36562013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
3659
98b23b95
VS
36602013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * include/grub/bsdlabel.h: Use enums.
3663
0467a5dd
VS
36642013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 Move GRUB_CHAR_BIT to types.h.
3667
16cc9f03
AB
36682013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3669
3670 * docs/grub.texi: Document more user commands.
3671
3152aecb
AB
36722013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3673
3674 * docs/grub.texi: Document menuentry --id option.
3675
c506fc30
FL
36762013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
3677
3678 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
3679
aa428238
VS
36802013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3681
3682 Unify file copying setup across different install scripts. Add
3683 options for performing partial install.
3684
efe0cdda
PJ
36852013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
36862013-04-04 Peter Jones <pjones@redhat.com>
3687
3688 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
3689
f75835bd
VS
36902013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 Use TSC as a possible time source on i386-ieee1275.
3693
2cd5ce6c
VS
36942013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
3697 Init err.
3698
c9625630
VS
36992013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 * util/grub-setup.c (setup): Handle some corner cases.
3702
be008941
VS
37032013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
3706
1a78d573
VS
37072013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * grub-core/commands/verify.c: Save verified file to avoid it being
3710 tampered with after verification was done.
3711
db8ff59f
VS
37122013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
3715 reported width by one to compensate for curesor algorithm problem.
3716
91bf46b1
VS
37172013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 Fix screen corruption in menu entry editor and simplify the code
3720 flow while on it.
3721
a7b1d693
AB
37222013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
3723
3724 * util/grub-mount.c (fuse_init): Return error if fuse_main
3725 failed.
3726
31df9ad8
FL
37272013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
3728
3729 * include/grub/elf.h: Add missing ARM relocation codes and fix
3730 existing ones.
3731
07f392eb
VT
37322013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3733
3734 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
3735
9efd73ec 37362013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
37372013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
3740 into account when calculating radius.
3741
37422013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
3743
3744 * grub-core/gfxmenu/view.c: Fix off-by-one error.
3745
4985ddaa
VT
37462013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3747
3748 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
3749
8c3635ff
RS
37502013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3751
3752 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
3753 missing closing bracket.
3754
74a35e69
RS
37552013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3756
3757 * INSTALL: Mention xorriso requirement.
3758
40f1c000
AB
37592013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
3760
3761 * grub-core/commands/verify.c: Fix hash algorithms values for
3762 the first three hashes - they start with 1, not with 0.
3763
e75fdee4
VS
37642013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3765
3766 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
3767 Try terminating EFI services several times due to quirks in some
3768 implementations.
3769
33028f4c
CW
37702013-03-26 Colin Watson <cjwatson@ubuntu.com>
3771
3772 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
3773 skipping Event, Device, Processor, PowerRes, ThermalZone, and
3774 BankField extended opcodes.
3775 (get_sleep_type): Add minimal scope handling (just enough to
3776 handle setting the scope to the root path).
3777 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
3778 * include/grub/acpi.h: Add enumeration values for Event, Device,
3779 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
3780
33871a10
VT
37812013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
3782
3783 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
3784 memory leak.
3785
8990963a
VS
37862013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * grub-core/disk/ahci.c: Give more time for AHCI request.
3789
daae8f9e
VS
37902013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3791
3792 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
3793 command.
3794
6a7fb94b
VS
37952013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 Replace the region at 0 from coreboot tables to available in BSD
3798 memory map.
3799
ff99babd
VS
38002013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
3803 non-BIOS platforms.
3804
30d6b1b2
VS
38052013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3806
3807 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
3808 platforms.
3809
6ccd0b31
VS
38102013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
3813 handling of multi-device filesystems.
3814
23c9cc04
VS
38152013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3816
3817 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
3818 platforms.
3819
ce50dbd7
VS
38202013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 Add new 'proc' filesystem framework and put luks_script into it.
3823
d975e8d5
VS
38242013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
3827 and qemu.
3828
e73ba5e8
VS
38292013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
3832
92750e4c
VS
38332013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 Add ability to generate newc additions on runtime.
3836
0ec45a68
VS
38372013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
3840 description.
3841
320abd43
VS
38422013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 * po/POTFILES.in: Regenerate.
3845
d7a6506e
VS
38462013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3847
3848 * grub-core/commands/verify.c (hashes): Add several hashes
3849 from the spec.
3850
8fe05def
VS
38512013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3852
3853 Slight improve in USB-related boot-time checkpoints.
3854
524e2766
VS
38552013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 * grub-core/commands/boottime.c: Fix copyright header.
3858
cc19857a
VS
38592013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
3862 coreboot tables content. Support for cbmemc.
3863
ef8810e9
VS
38642013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 Fix a conflict between ports structures with 2 controllers of
3867 same kind.
3868
e9dabdfa
VS
38692013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * include/grub/boottime.h: Add missing file.
3872
f6df57d2
VS
38732013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 Initialize USB ports in parallel to speed-up boot.
3876
d745dda7
VS
38772013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3878
3879 Fix USB devices not being detected when requested
3880 due to delayed attach.
3881
e5a2dd7b
VS
38822013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3883
e744219b
VS
3884 Implement boot time analysis framework.
3885
38862013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3887
3888 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
3889 descriptor to just receive it as argument rather than endpoint
3890 address.
3891
5dd6f587
VS
38922013-03-19 Aleš Nesrsta <starous@volny.cz>
3893
3894 Better estimate the maximum USB transfer size.
3895
2f1071d5
VS
38962013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 Resend a packet if we got the wrong buffer in status.
3899
46ecfc49
VS
39002013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3901
3902 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
3903 multiplication rather than division.
3904
ea811130
VS
39052013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3906
3907 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
3908 than divisions.
3909
d2789cf0
VS
39102013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3911
3912 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
3913 operations to have intended shifts and not divisions.
3914
a9c94590
VS
39152013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
3918 intended shifts rather than division.
3919
84cfe81b
VS
39202013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
3923 computation for some years before epoch. Avode confusing division
3924 while on it.
3925
21344ef6
VS
39262013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 * grub-core/video/i386/pc/vbe.c
3929 (grub_video_vbe_print_adapter_specific_info): Replace division by
3930 shifts.
3931
3f2b4d1a
VS
39322013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 Adjust types in gdb module to have intended unsigned shifts rather than
3935 signed divisions.
3936
3dac5878
VS
39372013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3938
3939 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
3940 maximum size is 4G - 1 on hfs
3941
5341c0fb
VS
39422013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3943
3944 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
3945
fc3ff2a2
VS
39462013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
3949 function.
3950
81455e8e
AB
39512013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
3952
3953 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
3954 causing gcc error with gcc 4.7.1.
3955
efd4f117
NZ
39562013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
3957
3958 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
3959 dereference null pointer. While the code is technically correct, gcc
3960 may eliminate a null check if pointer is already dereferenced.
3961
e11645f4
NZ
39622013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
3963
3964 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
3965 OOM check.
3966 * grub-core/normal/term.c (read_terminal_list): Likewise.
3967
77468368
VS
39682013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3969
3970 Lift up core size limits on some platforms. Fix potential memory
3971 corruption with big core on small memory systems. Document remaining
3972 limits.
3973
f6b58fe5
VS
39742013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
3977 gotoxy to 0,0.
3978
19ce697d
VS
39792013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 Remove all trampoline support. Add -Wtrampolines when
3982 present. Remove symbols used for trampolines to make
3983 link fail if trampolines are present.
3984
73b5d90f
VS
39852013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3986
3987 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
3988 append out of its parent.
3989
cb758e96
VS
39902013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
3993 parent.
3994
3188131f
VS
39952013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
3998 all vars to a macro. All users updated.
3999
e42b2514
VS
40002013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * grub-core/disk/ieee1275/nand.c: Fix compilation on
4003 i386-ieee1275.
4004
83e1a1a1
VS
40052013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
4008
1d5a880f
VS
40092013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
4012
6e4146c4
VS
40132013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4014
4015 Move to more hookless approach in IEEE1275 devices handling.
4016
99fcda8a
VS
40172013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * grub-core/kern/term.c (grub_term_normal_color),
4020 (grub_term_highlight_color): Add back lost defaults.
4021
73bf57e2
VS
40222013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 Make elfload not use hooks. Opt for flags and iterators instead.
4025
7f8c105f
VS
40262013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
4029 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
4030
396d4091
VS
40312013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 * grub-core/script/execute.c (gettext_append): Remove nested functions.
4034
40352013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4036
4037 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
4038 hook pass-through parameter. All users updated and unnested.
4039
74a27421
VS
40402013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
4043 out of its parent.
4044
b46d4213
VS
40452013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4046
4047 * grub-core/fs/hfs.c: Remove nested functions.
4048
e114c3cc
VS
40492013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4050
4051 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
4052 the context through.
4053 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
4054
f9b7d780
VS
40552013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4056
4057 * util/grub-editenv.c (list_variables): Move print_var out of its
4058 parent.
4059
ca9c2608
VS
40602013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4061
4062 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
4063 function.
4064
5d983f5f
VS
40652013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 * grub-core/gentrigtables.c: Make tables const.
4068
3056d3e7
VS
40692013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 Remove nested functions from videoinfo iterators.
4072
e2303774
VS
40732013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4074
4075 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
4076 for 64-bit platforms.
4077
f42e3a2f
VS
40782013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4079
4080 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
4081 a FOR_CHILDREN macro.
4082
be174e5e
VS
40832013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
4086 platform from firmware path.
4087
0789b672
VS
40882013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 Enable linux16 on non-BIOS systems for i.a. memtest.
4091
4092 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
4093 correctly.
4094 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
4095
005a9c32
VS
40962013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
4099 Fix end of table condition.
4100
ff2b3cd9
VS
41012013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4102
4103 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
4104 out of its parent.
4105
4fc40ff8
VS
41062013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 * grub-core/fs/jfs.c: Remove nested functions.
4109
be42d97a
VS
41102013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4111
4112 * grub-core/fs/minix.c: Remove nested functions.
4113
99373ce4
VS
41142013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4115
4116 * grub-core/fs/iso9660.c: Remove nested functions.
4117
5aec2afe
VS
41182013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
4121 of parent function.
4122
6c69e691
VS
41232013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * util/grub-fstest.c: Remove nested functions.
4126
43c91882
VS
41272013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * grub-core/loader/machoXX.c: Remove nested functions.
4130
4eb8b756
CW
41312013-02-27 Colin Watson <cjwatson@ubuntu.com>
4132
4133 Remove nested functions from disk and file read hooks.
4134
4135 * include/grub/disk.h (grub_disk_read_hook_t): New type.
4136 (struct grub_disk): Add read_hook_data member.
4137 * include/grub/file.h (struct grub_file): Likewise.
4138 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
4139 argument.
4140
4141 Update all callers.
4142
df6da5a5
AB
41432012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
4144
4145 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
4146 Fix off by one error in enumerating extended partitions.
4147
21aecde5
AB
41482013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
4149
4150 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
4151 memory leak if device name is not found.
4152
f1a19118
AB
41532013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4154
4155 * grub-core/normal/menu_entry.c (update_screen): remove
4156 unused variable `off' which caused scroll down arrow to be always shown.
4157
958bfd20
AB
41582013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4159
4160 * grub-core/normal/menu_entry.c (insert_string): fix off by one
4161 access to unallocated memory.
4162
b7b78edb
AB
41632013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4164
4165 * Makefile.util.def: Add partmap/msdos.c to common library.
4166 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
4167 * grub-core/disk/ldm.c: Check for existence of
4168 GRUB_PC_PARTITION_TYPE_LDM.
4169
28d468d6
VS
41702013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
4173 sizes and display sector size.
4174
d55ffb02
VS
41752013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4176
4177 Implement new command cmosdump.
4178
b5ea6ce0
VS
41792013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4180
4181 Support Openfirmware disks with non-512B sectors.
4182
4183 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
4184 size of the disk.
4185 * (grub_ofdisk_get_block_size): New function.
4186 * (grub_ofdisk_prepare): Use the correct block size.
4187 * (grub_ofdisk_read): Likewise.
4188 * (grub_ofdisk_write): Likewise.
4189 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
4190 New proto.
4191
cc0e476f
VS
41922013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4193
4194 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
4195
c5dbdc33
VS
41962013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
4199 on first error.
4200
3f078c0f
VS
42012013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
4204 freeing it.
4205
66a93674
VS
42062013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 Implement USBDebug (full USB stack variant).
4209
c9f0c134
VS
42102013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4211
4212 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
4213 unless they have unexpected values.
4214
cfe1288b
VS
42152013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4216
4217 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
4218 grub_print_error.
4219
e42b9969
VS
42202013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
4223 zero-out of port structure.
4224
cf94fd62
VS
42252013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
4228 of extended attributes.
4229
f81ef4b5
AB
42302013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
4231
4232 * util/grub-install.in: change misleading comment about
4233 device.map creation
4234
af18fdb4
VS
42352013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
4238 when menu highlight color isn't set.
4239
08bcec50
M
42402013-01-27 C. Masloch <pushbx@38.de>
4241
4242 Improve FreeDOS direct loading support compatibility.
4243
4244 * include/grub/i386/relocator.h (grub_relocator16_state):
4245 New member ebp.
4246 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
4247 variable.
4248 (grub_relocator16_boot): Handle %ebp.
4249 * grub-core/lib/i386/relocator16.S: Likewise.
4250 * grub-core/loader/i386/pc/freedos.c:
4251 Load BPB to pass kernel which partition to load from.
4252 Check that kernel file is not too large.
4253 Set register dl to BIOS unit number as well.
4254
7782b8a6
CW
42552013-01-22 Colin Watson <cjwatson@ubuntu.com>
4256
4257 * util/grub-reboot.in (usage): Document the need for
4258 GRUB_DEFAULT=saved.
4259 * util/grub-set-default.in (usage): Likewise.
4260 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
4261
e661c180
VS
42622013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4263
4264 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
4265 than defining WORDS_BIGENDIAN manually.
4266
1c22ca9a
VS
42672013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4268
4269 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
4270 invariants.
4271
d44892fe
CW
42722013-01-21 Colin Watson <cjwatson@ubuntu.com>
4273
4274 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
4275 nested.
4276 (blit_comb: add_device_width): Likewise.
4277
5fdbaed1
CW
42782013-01-21 Colin Watson <cjwatson@ubuntu.com>
4279
4280 Remove nested functions from USB iterators.
4281
4282 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
4283 (grub_usb_controller_iterate_hook_t): Likewise.
4284 (grub_usb_iterate): Add hook_data argument.
4285 (grub_usb_controller_iterate): Likewise.
4286 (struct grub_usb_controller_dev.iterate): Likewise.
4287
4288 Update all implementations and callers.
4289
4250985a
VS
42902013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
4293 margin when not needed.
4294
7d8848f3
VS
42952013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4296
bc136973 4297 Make color variables global instead of it being per-terminal.
7d8848f3
VS
4298
42992013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4300
bc136973
VS
4301 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
4302 asterisk.
7d8848f3 4303
ed12a003
CW
43042013-01-21 Colin Watson <cjwatson@ubuntu.com>
4305
4306 Fix powerpc and sparc64 build failures caused by un-nesting memory
4307 map iterators.
4308
6a0db449
CW
43092013-01-21 Colin Watson <cjwatson@ubuntu.com>
4310
4311 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
4312 parameter declarations.
4313
ccd86b21
VS
43142013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4315
4316 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
4317
822b726b
VS
43182013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4319
4320 Improve spkmomdem reliability by adding a separator between bytes.
4321
115c2cc1
CW
43222013-01-21 Colin Watson <cjwatson@ubuntu.com>
4323
4324 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
4325 an Acer registration utility with several sightings in the wild.
4326 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
4327
fc524edf
CW
43282013-01-21 Colin Watson <cjwatson@ubuntu.com>
4329
4330 Remove nested functions from filesystem directory iterators.
4331
4332 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
4333 (struct grub_fs.dir): Add hook_data argument.
4334
4335 Update all implementations and callers.
4336
53d3e4e3
CW
43372013-01-21 Colin Watson <cjwatson@ubuntu.com>
4338
4339 * docs/grub.texi (Multi-boot manual config): Fix typo for
4340 "recommended".
4341
c821711f
LL
43422013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4343
4344 * util/grub-mkimage.c (main): Postpone freeing arguments.output
4345 until after its use in generate_image.
4346
6a0debbd
CW
43472013-01-20 Colin Watson <cjwatson@ubuntu.com>
4348
4349 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
4350 initrd size to addr_min, since the initrd will be allocated after
4351 this address.
4352
f41e08db
AB
43532013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4354
4355 * conf/Makefile.common: Fix autogen rules to pass definition
4356 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
4357
77529e0f
LL
43582013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4359
4360 * include/grub/elf.h: Update ARM definitions based on binutils.
4361
b879aa7b
VS
43622013-01-20 Aleš Nesrsta <starous@volny.cz>
4363
4364 Split long USB transfers into short ones.
4365
8eb8284d
AB
43662013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4367
4368 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
4369 is interrupted by ESC.
4370
08dad2dc
VS
43712013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4372
4373 * util/grub-script-check.c (main): Uniform the error message.
4374
6c724b85
CW
43752013-01-20 Colin Watson <cjwatson@ubuntu.com>
4376
4377 Remove nested functions from ELF iterators.
4378
25239370
CW
43792013-01-20 Colin Watson <cjwatson@ubuntu.com>
4380
4381 Remove nested functions from device iterators.
4382
4383 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
4384 (grub_arc_iterate_devs): Add hook_data argument.
4385 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
4386 (struct grub_ata_dev.iterate): Add hook_data argument.
4387 * include/grub/device.h (grub_device_iterate_hook_t): New type.
4388 (grub_device_iterate): Add hook_data argument.
4389 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
4390 (struct grub_disk_dev.iterate): Add hook_data argument.
4391 (grub_disk_dev_iterate): Likewise.
4392 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
4393 Likewise.
4394 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
4395 Likewise.
4396 * include/grub/partition.h (grub_partition_iterate_hook_t): New
4397 type.
4398 (struct grub_partition_map.iterate): Add hook_data argument.
4399 (grub_partition_iterate): Likewise.
4400 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
4401 (struct grub_scsi_dev.iterate): Add hook_data argument.
4402
4403 Update all callers.
4404
6c0314d6
CW
44052013-01-20 Colin Watson <cjwatson@ubuntu.com>
4406
4407 Fix typos for "developer" and "development".
4408
600dc5f1
VS
44092013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 Add license header to spkmodem-recv.c.
4412
17334a6b
VS
44132013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4414
4415 Rewrite spkmodem to use PIT for timing. Double the speed.
4416
7d462559
VS
44172013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 Add new command pcidump.
4420
b78d6c32
VS
44212013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 New terminal outputs using serial: morse and spkmodem.
4424
34f71cb8
VS
44252013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4426
4427 Improve bidi handling in entry editor.
4428
4542e71b
VS
44292013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4430
4431 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
4432 argument to prevent name collision.
4433
09fd6d82
CW
44342013-01-15 Colin Watson <cjwatson@ubuntu.com>
4435
4436 Remove nested functions from script reading and parsing.
4437
4438 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
4439 getline_data argument, passed to getline.
4440 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
4441 getline_data argument, passed to grub_parser_split_cmdline.
4442 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
4443 lexerstate->getline_data to lexerstate->getline.
4444 (grub_script_lexer_init): Add getline_data argument, saved in
4445 lexerstate->getline_data.
4446 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
4447 argument, passed to grub_script_parse.
4448 * grub-core/script/script.c (grub_script_parse): Add getline_data
4449 argument, passed to grub_script_lexer_init.
4450 * include/grub/parser.h (grub_parser_split_cmdline): Update
4451 prototype. Update all callers to pass appropriate getline data.
4452 (struct grub_parser.parse_line): Likewise.
4453 (grub_rescue_parse_line): Likewise.
4454 * include/grub/reader.h (grub_reader_getline_t): Add void *
4455 argument.
4456 * include/grub/script_sh.h (struct grub_lexer_param): Add
4457 getline_data member.
4458 (grub_script_parse): Update prototype. Update all callers to pass
4459 appropriate getline data.
4460 (grub_script_lexer_init): Likewise.
4461 (grub_normal_parse_line): Likewise.
4462
4463 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
4464 data argument.
4465 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
4466 static instead of nested. Rename to ...
4467 (grub_parser_execute_getline): ... this.
4468 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
4469 data argument.
4470 * grub-core/normal/main.c (read_config_file: getline): Make static
4471 instead of nested. Rename to ...
4472 (read_config_file_getline): ... this.
4473 (grub_normal_read_line): Add unused data argument.
4474 * grub-core/script/execute.c (grub_script_execute_sourcecode:
4475 getline): Make static instead of nested. Rename to ...
4476 (grub_script_execute_sourcecode_getline): ... this.
4477 * util/grub-script-check.c (main: get_config_line): Make static
4478 instead of nested.
4479
d0d4b8a0
CW
44802013-01-15 Colin Watson <cjwatson@ubuntu.com>
4481
4482 Remove nested functions from memory map iterators.
4483
4484 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
4485 argument, passed to hook.
4486 * grub-core/kern/i386/coreboot/mmap.c
4487 (grub_linuxbios_table_iterate): Likewise.
4488 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
4489 instead of nested.
4490 (grub_machine_mmap_iterate): Add hook_data argument.
4491 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
4492 Add hook_data argument, passed to hook.
4493 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
4494 Likewise.
4495 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
4496 Likewise.
4497 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
4498 Likewise.
4499 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
4500 Likewise.
4501 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
4502 Likewise.
4503 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
4504 Likewise.
4505 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
4506 (grub_machine_mmap_iterate): Likewise.
4507 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
4508 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
4509 prototype.
4510 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
4511 Remove NESTED_FUNC_ATTR from here and from all users.
4512 (grub_mmap_iterate): Update prototype.
4513 (grub_efi_mmap_iterate): Update prototype. Update all callers to
4514 pass appropriate hook data.
4515 (grub_machine_mmap_iterate): Likewise.
4516
4517 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
4518 static instead of nested.
4519 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
4520 Rename to ...
4521 (lsmmap_hook): ... this.
4522 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
4523 Likewise.
4524 (grub_efiemu_mmap_fill: fill_hook): Likewise.
4525 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
4526 heap_init): Likewise.
4527 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
4528 Rename to ...
4529 (mmap_iterate_hook): ... this.
4530 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
4531 Likewise.
4532 * grub-core/lib/ieee1275/relocator.c
4533 (grub_relocator_firmware_get_max_events: count): Likewise.
4534 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
4535 to ...
4536 (grub_relocator_firmware_fill_events_iter): ... this.
4537 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
4538 hook): Likewise. Rename to ...
4539 (grub_relocator_alloc_chunk_align_iter): ... this.
4540 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
4541 Rename to ...
4542 (generate_e820_mmap_iter): ... this.
4543 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
4544 Rename to ...
4545 (count_hook): ... this.
4546 (grub_linux_boot: hook): Likewise. Rename to ...
4547 (grub_linux_boot_mmap_find): ... this.
4548 (grub_linux_boot: hook_fill): Likewise. Rename to ...
4549 (grub_linux_boot_mmap_fill): ... this.
4550 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
4551 hook): Likewise. Rename to ...
4552 (grub_fill_multiboot_mmap_iter): ... this.
4553 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
4554 hook): Likewise. Rename to ...
4555 (count_hook): ... this.
4556 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
4557 hook): Likewise. Rename to ...
4558 (grub_fill_multiboot_mmap_iter): ... this.
4559 * grub-core/loader/powerpc/ieee1275/linux.c
4560 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
4561 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
4562 Likewise. Rename to ...
4563 (alloc_phys_choose): ... this.
4564 (determine_phys_base: get_physbase): Likewise.
4565 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
4566 find_hook): Likewise.
4567 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
4568 (malloc_hook: count_hook): Likewise.
4569 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
4570 Likewise. Rename to ...
4571 (lower_hook): ... this.
4572 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4573 (upper_hook): ... this.
4574 (grub_mmap_get_post64: hook): Likewise. Rename to ...
4575 (post64_hook): ... this.
4576 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
4577 Likewise. Rename to ...
4578 (lower_hook): ... this.
4579 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4580 (upper_hook): ... this.
4581 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
4582 (grub_mmap_iterate: fill_hook): Likewise.
4583 (fill_mask): Pass addr and mask within a single struct.
4584 (grub_cmd_badram: hook): Make static instead of nested. Rename
4585 to ...
4586 (badram_iter): ... this.
4587 (grub_cmd_cutmem: hook): Likewise. Rename to ...
4588 (cutmem_iter): ... this.
4589
22099030
VS
45902013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4591
4592 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
4593 delimit path in strings using quotes.
4594 * util/getroot.c (grub_guess_root_devices): Likewise.
4595 (grub_make_system_path_relative_to_its_root): Likewise.
4596 * util/grub-probe.c (probe): Likewise.
4597 * util/ieee1275/ofpath.c (find_obppath): Likewise.
4598 (xrealpath): Likewise.
4599
4a9950ec
VS
46002013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4601
4602 Fix compilation with older compilers.
4603
4604 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
4605 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
4606 declarations.
4607 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
4608 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
4609 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
4610 identifier with b.
4611 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
4612 * include/grub/crypto.h: Add type defines.
4613 * util/import_gcrypth.sed: Remove duplicate type defines.
4614
adcc6020
VS
46152013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4616
4617 New command list_trusted.
4618
4619 * grub-core/commands/verify.c (grub_cmd_list): New function.
4620
a4528937
CW
46212013-01-13 Colin Watson <cjwatson@ubuntu.com>
4622
4623 * util/grub-mkimage.c (generate_image): Fix "size of public key"
4624 info message.
4625
ca3a7446
CW
46262013-01-13 Colin Watson <cjwatson@ubuntu.com>
4627
4628 Remove nested functions from PCI iterators.
4629
4630 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
4631 passed to hook. Update all callers to pass appropriate hook data.
4632 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
4633 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
4634 Remove NESTED_FUNC_ATTR from here and from all users.
4635 (grub_pci_iterate): Update prototype.
4636 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
4637 instead of nested. Rename to ...
4638 (grub_cs5536_find_iter): ... this.
4639 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
4640 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
4641 Likewise.
4642 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
4643 Likewise.
4644 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
4645 Likewise.
4646 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
4647 Likewise.
4648 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
4649 * grub-core/video/radeon_fuloong2e.c
4650 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
4651 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
4652 find_card): Likewise.
4653 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
4654 Likewise.
4655
f8e98fee
VS
46562013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4657
4658 * grub-core/commands/verify.c: Mark messages for translating.
4659
055b36b6
VS
46602013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4661
4662 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
4663 fatal.
4664
f7ff879b
VS
46652013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4666
4667 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
4668 fatal.
4669
46702013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
4671
4672 * autogen.sh: Do not try to delete nonexistant files.
4673 * util/import_gcrypth.sed: Add some missing header removals.
4674
01323d49
CW
46752013-01-12 Colin Watson <cjwatson@ubuntu.com>
4676
4677 Clean up dangling references to grub-setup.
4678 Fixes Ubuntu bug #1082045.
4679
4680 * docs/grub.texi (Images): Refer generally to grub-install rather
4681 than directly to grub-setup.
4682 (Installing GRUB using grub-install): Remove direct reference to
4683 grub-setup.
4684 (Device map) Likewise.
4685 (Invoking grub-install): Likewise.
4686 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
4687 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
4688 * util/grub-install.in (usage): Likewise.
4689
4690 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
4691 Apply to grub-bios-setup and grub-sparc64-setup rather than to
4692 grub-setup.
4693 * configure.ac: Remove grub_setup output variable.
4694
4695 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
4696 to grub-bios-setup.
4697 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
4698 grub-setup to grub-sparc64-setup.
4699
5e3b8dcb
VS
47002013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 Import gcrypt public-key cryptography and implement signature checking.
4703
535714bd
VS
47042013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4705
4706 * grub-core/fs/ntfs.c: Ue more appropriate types.
4707 * grub-core/fs/ntfscomp.c: Likewise.
4708 * include/grub/ntfs.h: Likewise.
4709
3e4f3566
VS
47102013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 Support Apple FAT binaries on non-Apple platforms.
4713
4714 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
4715 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
4716 Likewise.
4717 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
4718 Apple FAT binaries.
4719
4dedb13f
VS
47202013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4721
4722 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
4723 sector devices.
4724
f8861eaf
CW
47252013-01-07 Colin Watson <cjwatson@ubuntu.com>
4726
4727 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
4728 explicitly zeroing elements.
4729 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
4730 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
4731 of elements in a structure already allocated using grub_zalloc.
4732 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
4733
86065b0a
CW
47342013-01-07 Colin Watson <cjwatson@ubuntu.com>
4735
4736 * docs/grub.texi (grub_cpu): New subsection.
4737 (grub_platform): Likewise.
4738
c6f1e92f
VS
47392013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4740
4741 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
4742
f797ec85
VS
47432013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
4746 divisions.
4747
033d0b4b
VS
47482013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
4751 * grub-core/fs/ntfscomp.c: Likewise.
4752 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
4753 (grub_ntfs_comp): Likewise.
4754
21d1b9a0
VS
47552013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4756
4757 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
4758 Rename to ...
4759 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
4760 of groups_per_block. All users updated.
4761
10ca8645
VS
47622013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4763
4764 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
4765 grub_error properly.
4766 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
4767 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
4768
a4c3ed4c
VS
47692013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
4772 always in /boot/zfs.
4773 Reported by: Yuta Satoh.
4774
0b716507
YS
47752013-01-03 Yuta Satoh <nigoro>
4776
4777 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
4778 ${grub_probe}
4779
00c05e22
VS
47802013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4781
4782 * configure.ac: Extend -Wno-trampolines to host.
4783
dadddb76
VS
47842013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
4787 entry->len = 0.
4788
54ce53ca
CW
47892013-01-03 Colin Watson <cjwatson@ubuntu.com>
4790
4791 * docs/grub.texi (Invoking grub-mkrelpath): New section.
4792 (Invoking grub-script-check): Likewise.
4793
8912efca
CW
47942013-01-03 Colin Watson <cjwatson@ubuntu.com>
4795
4796 * docs/grub.texi (Invoking grub-mount): New section.
4797 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
4798
c3fc8394
CW
47992013-01-02 Colin Watson <cjwatson@ubuntu.com>
4800
4801 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
4802 test failures, so that a failing unit test correctly causes 'make
4803 check' to fail.
4804
45d26abb
CW
48052013-01-02 Colin Watson <cjwatson@ubuntu.com>
4806
4807 Fix failing printf test.
4808
4809 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
4810 '$' in the correct order when collecting type information.
4811
971dd2c6
CW
48122013-01-02 Colin Watson <cjwatson@ubuntu.com>
4813
4814 * docs/grub.texi (configfile): Explain environment variable
4815 handling.
4816 (source): New section.
4817 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
4818
5c67ea6c
CW
48192012-12-31 Colin Watson <cjwatson@ubuntu.com>
4820
4821 Remove several trivially-unnecessary uses of nested functions.
4822
4823 * grub-core/commands/i386/pc/sendkey.c
4824 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
4825 instead of nested.
4826 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
4827 Rename to ...
4828 (legacy_file_getline): ... this.
4829 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
4830 Likewise.
4831 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
4832 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
4833 to ...
4834 (probe_dummy_iter): ... this.
4835 * grub-core/kern/i386/coreboot/mmap.c
4836 (grub_linuxbios_table_iterate: check_signature): Likewise.
4837 * grub-core/kern/parser.c (grub_parser_split_cmdline:
4838 check_varstate): Likewise. Mark inline.
4839 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
4840 an additional parameter.
4841 (find_long: fnd_long): Likewise. Pass two additional parameters.
4842 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
4843 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
4844 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
4845 Likewise. Rename to ...
4846 (grub_cmos_find_port_iter): ... this.
4847 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
4848 Rename to ...
4849 (find_rtc_iter): ... this.
4850
4851 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
4852 function directly into the function body, since it is only called
4853 once.
4854
33a68ac6
CW
48552012-12-30 Colin Watson <cjwatson@ubuntu.com>
4856
4857 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
4858 __attribute__ ((unused)).
4859 * grub-core/video/bochs.c (find_card): Likewise.
4860 * grub-core/video/cirrus.c (find_card): Likewise.
4861 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
4862 * grub-core/video/sis315pro.c (find_card): Likewise.
4863 * grub-core/video/sm712.c (find_card): Likewise.
4864
608b647a
CW
48652012-12-28 Colin Watson <cjwatson@ubuntu.com>
4866
4867 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
4868 Fixes Savannah bug #37821.
4869
fd49ceb3
CW
48702012-12-28 Colin Watson <cjwatson@ubuntu.com>
4871
4872 Apply program name transformations at build-time rather than at
4873 run-time. Fixes Debian bug #696465.
4874
4875 * acinclude.m4 (grub_TRANSFORM): New macro.
4876 * configure.ac: Create output variables with transformed names for
4877 most programs.
4878 * util/bash-completion.d/grub-completion.bash.in: Use
4879 pre-transformed variables for program names.
4880 * util/grub-install.in: Likewise.
4881 * util/grub-kbdcomp.in: Likewise.
4882 * util/grub-mkconfig.in: Likewise.
4883 * util/grub-mkconfig_lib.in: Likewise.
4884 * util/grub-mknetdir.in: Likewise.
4885 * util/grub-mkrescue.in: Likewise.
4886 * util/grub-mkstandalone.in: Likewise.
4887 * util/grub-reboot.in: Likewise.
4888 * util/grub-set-default.in: Likewise.
4889 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4890 * tests/util/grub-shell-tester.in: Remove unused assignment.
4891 * tests/util/grub-shell.in: Likewise.
4892 * util/grub.d/00_header.in: Likewise.
4893
7024b3c0
CW
48942012-12-28 Colin Watson <cjwatson@ubuntu.com>
4895
4896 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
4897
4898 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
4899 HAVE_RAW_DECL_GETS.
4900 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
4901
e3501b13
VS
49022012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
4903
4904 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
4905 Reported by: Eriks Latosheks <foresterlv>.
4906
b40c88a9
VS
49072012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4908
4909 * docs/grub.texi (Network): Update instructions on generating netboot
4910 image.
4911
ce96d01c
VS
49122012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4913
4914 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
4915 around device name if necessarry.
4916
0f596201
PFS
49172012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4918
4919 * util/grub-install.in: Follow the symbolic link parameter added
4920 to the file command.
4921
600d5bdb
AB
49222012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
4923
4924 * util/grub-install.in: Remove stale TODO.
4925
64ebd2f4
PFS
49262012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4927
4928 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
4929 dynamic allocation for the bootpath buffer.
4930
74b2fe3e
DTB
49312012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
4932
4933 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
4934 window too small.
4935
969b804f
VS
49362012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4937
4938 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
4939 argument rather than font name. All users updated.
4940 (grub_gfxterm_set_window): Likewise.
4941
b9f5ebd6
VT
49422012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4943
4944 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
4945 from working.
4946
258f43b7
VS
49472012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4948
4949 * util/getroot.c (convert_system_partition_to_system_disk): Support
4950 nbd disks.
4951
cc1ce5f9
VS
49522012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4953
4954 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
4955 infinite loop on corrupted FS.
4956
e77a16ca
VS
49572012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
4958
4959 Fix big-endian mtime.
4960
4961 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
4962 together sec and usec.
4963 (grub_ufs_dir): Use correct byteswapping for UFS time.
4964
d9c48c7b
VS
49652012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 Support big-endian UFS1.
4968
4969 * Makefile.util.def (libgrubmods): Add ufs_be.c
4970 * grub-core/Makefile.core.def (ufs1_be): New module.
4971 * grub-core/fs/ufs_be.c: New file.
4972 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
4973 the file.
4974
2f9f40ba
LL
49752012-11-28 Leif Lindholm <leif.lindholm@arm.com>
4976
4977 * include/grub/types.h: Fix functionality unaffecting typo in
4978 GRUB_TARGET_WORDSIZE conditional macro.
4979
48ff0889
PFS
49802012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4981
4982 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
4983
03711240
GS
49842012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
4985
4986 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
4987 that /netbsd appears first (when it exists).
4988
a31b11bd
CJ
49892012-10-12 Christoph Junghans <ottxor@gentoo.org>
4990
4991 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
4992 Fixes Savannah bug #37558.
4993
e8a5d5d4
CW
49942012-10-12 Colin Watson <cjwatson@ubuntu.com>
4995
4996 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
4997 description of extract_entries_configfile.
4998
49992012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
5000
5001 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
5002 preferred_address.
5003 (grub_cmd_linux): Likewise.
5004 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
5005 preferred_lifetime. Update all users.
5006
288c757d
CW
50072012-09-26 Colin Watson <cjwatson@ubuntu.com>
5008
5009 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
5010 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
5011
0d35da3f
CW
50122012-09-26 Colin Watson <cjwatson@ubuntu.com>
5013
5014 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
5015 errors from grub-probe to /dev/null, not stdout.
5016
b78c3127
VS
50172012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
5018
5019 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
5020 sector 1.
5021
473959f0
CW
50222012-09-24 Colin Watson <cjwatson@ubuntu.com>
5023
5024 * util/grub-install.in: Make the error message if $source_dir
5025 doesn't exist more useful.
5026
794c8c33
CW
50272012-09-22 Colin Watson <cjwatson@ubuntu.com>
5028
5029 Fix grub-emu build on FreeBSD.
5030
5031 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
5032 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
5033 headers on Linux.
5034 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
5035 implementation is currently Linux-specific.
5036 * util/getroot.c (exec_pipe): Define only on Linux or when either
5037 libzfs or libnvpair is unavailable.
5038 (find_root_devices_from_poolname): Remove unused path variable.
5039
86d08fdb
CW
50402012-09-19 Colin Watson <cjwatson@ubuntu.com>
5041
5042 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
5043 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
5044 should fit before end == 63.
5045
735abf54
CW
50462012-09-19 Colin Watson <cjwatson@ubuntu.com>
5047
5048 * util/grub-setup.c (write_rootdev): Remove unused core_img
5049 parameter. Update all callers.
5050 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
5051 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
5052 GRUB_SETUP_BIOS.
5053
140acd3c
VS
50542012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * util/grub-mkconfig_lib.in (grub_tab): New variable.
5057 (grub_add_tab): New function.
5058 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
5059 * util/grub.d/10_illumos.in: Likewise.
5060 * util/grub.d/10_kfreebsd.in: Likewise.
5061 * util/grub.d/10_linux.in: Likewise.
5062 * util/grub.d/10_netbsd.in: Likewise.
5063 * util/grub.d/10_windows.in: Likewise.
5064 * util/grub.d/10_xnu.in: Likewise.
5065 * util/grub.d/20_linux_xen.in: Likewise.
5066 * util/grub.d/30_os-prober.in: Likewise.
5067
7ddffdad
VS
50682012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5071 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
5072 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
5073 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
5074 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
5075 ieee1275-nocursor.
5076 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
5077 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
5078
4e092454
VS
50792012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5080
5081 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
5082 le-conversion.
5083 Reported by: BURETTE, Bernard.
5084
735abf54 50852012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
5086
5087 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
5088 from comment.
5089
dfd39dbd
CW
50902012-09-14 Colin Watson <cjwatson@ubuntu.com>
5091
5092 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
5093 IEEE1275 machines. Fixes powerpc-emu compilation.
5094 * include/grub/terminfo.h: Likewise.
5095
3bfa763c
VS
50962012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5097
5098 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
5099 a const pointer.
5100 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
5101 const pointer.
5102 (efiemu_set_variable): Make vendor_guid a const pointer.
5103
250e475b
VS
51042012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5105
5106 Don't require grub-mkconfig_lib to generate manpages for programs.
5107
5108 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
5109 dependencies, don't add grub-mkconfig_lib.
5110 (program): Pass empty adddeps.
5111 (script): Pass grub-mkconfig_lib as adddeps.
5112
592fd0e4
VS
51132012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
5116 * util/getroot.c (grub_find_device): Likewise.
5117 (get_mdadm_uuid): Likewise.
5118 (grub_util_is_imsm): Likewise.
5119 (grub_util_pull_device): Likewise.
5120 * util/grub-probe.c (probe): Likewise.
5121
801a3027
BG
51222012-09-10 Benoit Gschwind <gschwind>
5123
5124 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
5125 (devs): Add devpath_8.
5126
c5052c81
PJ
51272012-09-08 Peter Jones <pjones@redhat.com>
5128
5129 * grub-core/Makefile.core.def (efifwsetup): New module.
5130 * grub-core/commands/efi/efifwsetup.c: New file.
5131 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
5132 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
5133 New define.
5134 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
5135
8e832f71
JS
51362012-09-05 Jiri Slaby <jslaby@suse.cz>
5137
5138 * configure.ac: Add SuSe path.
5139
f0f55752
CW
51402012-09-05 Colin Watson <cjwatson@ubuntu.com>
5141
5142 * NEWS: Fix typo.
5143
ecadc4c2
CW
51442012-09-05 Colin Watson <cjwatson@ubuntu.com>
5145
5146 * util/import_gcry.py: Sort cipher_files, to make build system
5147 generation more deterministic.
5148
64498f25
VS
51492012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5150
5151 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
5152 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
5153 (grub_set_datetime): Likewise.
5154
9cc836a2
VS
51552012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
5158 warnings.
5159
bcfcea01
VS
51602012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
5163
a4099485
VS
51642012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
5167
265c162a
CW
51682012-09-04 Colin Watson <cjwatson@ubuntu.com>
5169
5170 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
5171 required for checkouts from bzr, but it may be useful for users or
5172 distributors wishing to update translations against a tarball
5173 distribution, and it can be helpful for the tarball to be a superset
5174 of what's in bzr.
5175
3d171e95
CW
51762012-09-04 Colin Watson <cjwatson@ubuntu.com>
5177
5178 * Makefile.am (EXTRA_DIST): Add
5179 grub-core/tests/boot/linux.init-mips.S,
5180 grub-core/tests/boot/linux.init-ppc.S, and
5181 grub-core/tests/boot/linux-ppc.cfg.
5182
f2c2503e
CW
51832012-09-04 Colin Watson <cjwatson@ubuntu.com>
5184
5185 * grub-core/mmap/mips/loongson: Remove empty directory.
5186
51872012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
5188
5189 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
5190 gone.
5191
ab2163d5
CW
51922012-09-04 Colin Watson <cjwatson@ubuntu.com>
5193
5194 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
5195 grub-sparc64-setup.
5196
ce938140
GS
51972012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5198
5199 * configure.ac: Strengthen the test for working -nostdinc -isystem.
5200
529f58a5
GS
52012012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5202
5203 * po/POTFILES.in: Regenerated.
5204
16cf79e9
GS
52052012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5206
5207 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
5208 (NetBSD): New subsection.
5209
39b27f1e 52102012-07-22 Ales Nesrsta <starous@volny.cz>
5211
5212 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
5213 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
5214
a885261b
VS
52152012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5216
5217 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
5218 * util/grub.d/10_hurd.in: Add missing quoting.
5219 * util/grub.d/10_illumos.in: Likewise.
5220 * util/grub.d/10_kfreebsd.in: Likewise.
5221 * util/grub.d/10_linux.in: Likewise.
5222 * util/grub.d/20_linux_xen.in: Likewise.
5223
7bd29c01
VS
52242012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5225
5226 New command `lsefi'.
5227
5228 * grub-core/Makefile.core.def (lsefi): New module.
5229 * grub-core/commands/efi/lsefi.c: New file.
5230 * include/grub/efi/api.h: Add more GUIDs.
5231
ac625d8f
VS
52322012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5233
5234 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
5235 (grub_bsd_elf32_hook): Likewise.
5236 (grub_bsd_elf64_size_hook): Likewise.
5237 (grub_bsd_elf64_hook): Likewise.
5238 (grub_bsd_load_elf): Likewise.
5239
e73bb801
VS
52402012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
5243 if hash function is unavailable.
5244 (dec_stream_header): Likewise.
5245
e81db8b5
VS
52462012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5247
5248 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
5249 filter state.
5250
d187a1c3
VS
52512012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5252
5253 Fix coreboot compilation.
5254
5255 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
5256 (grub_vga_text_init_real): ... this.
5257 (grub_vga_text_fini): Rename to ...
5258 (grub_vga_text_fini_real): ... this.
5259
91a05f64
VS
52602012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5261
5262 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
5263
6af96df7
VS
52642012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5265
5266 * grub-core/lib/legacy_parse.c: Support clear and testload.
5267
4d569e12
VS
52682012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5269
5270 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
5271
073b57bb
VS
52722012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5273
5274 * grub-core/fs/ext2.c: Experimental support for 64-bit.
5275
a706f4cc
VS
52762012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5277
5278 * grub-core/net/tftp.c (ack): Fix endianness problem.
5279 (tftp_receive): Likewise.
5280 Reported by: Michael Davidsaver.
5281
e7850aa9
VS
52822012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5283
5284 * gentpl.py: Make mans depend on grub-mkconfig_lib.
5285
52862012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5287
5288 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
5289 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
5290 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
5291
35692881
VS
52922012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5293
5294 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
5295 efi_mmap_size.
5296 Reported by: Stuart Hayes.
5297
c35fc5bd
VS
52982012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5299
5300 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
5301
5302 * grub-core/Makefile.core.def (mda_text): New module.
5303 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
5304 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
5305 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
5306 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
5307 here.
5308 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
5309 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
5310 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
5311 here.
5312 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
5313 to ..
5314 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
5315 ... here
5316 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
5317 here.
5318 * grub-core/term/i386/vga_common.c: Removed.
5319 * include/grub/i386/vga_common.h: Likewise.
5320 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
5321 (grub_vga_cr_bw_read): Likewise.
5322 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
5323 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
5324 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
5325 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
5326 grub_vga_cr_read/grub_vga_cr_write.
5327 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
5328
5f91f701
VS
53292012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5330
5331 * configure.ac: Bump version to 2.00.
5332 * grub-core/normal/main.c (features): Add feature_200_final.
5333
0c4f85f6
VS
53342012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
53352012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
5336
5337 * NEWS: Fix unclarity and language mistakes.
5338
f923ad22
VS
53392012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5340
5341 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
5342 additional size to 3 pages.
5343 Reported by: Stuart Hayes.
5344
d22029ba
VS
53452012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5346
5347 * NEWS: Add 2.00 entry.
5348
58eee08f
VS
53492012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5350
5351 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
5352 put explicit "/" for empty path.
5353 (wildcard_expand): Improve dprintf.
5354
c59bdff7
VS
53552012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
5358 it's equal to currnode. This can happen with "" symlink.
5359
5e6a440a
YB
53602012-06-27 Yves Blusseau <blusseau@zetam.org>
5361
5362 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
5363 echo shell command by printf command.
5364
73a68bcb
VS
53652012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5366
5367 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
5368 the value returned by firmware is the maximal position, not diumension.
5369 (grub_terminfo_output_state): Use a more sane fallback.
5370
392a603b
VS
53712012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5372
5373 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
5374
42d0867f
VS
53752012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
5378 frequency to 150 MHz.
5379
489509f4
VS
53802012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5381
5382 Apple fixes.
5383
5384 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
5385 __APPLE_
5386 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
5387 definition.
5388 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
5389
9f3fc883
VS
53902012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5391
5392 Handle slash in HFS label.
5393
5394 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
5395 (grub_hfs_dir): Tanslate slash.
5396 (grub_hfs_label): Don't translate slash.
5397
54853fd7
VS
53982012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5399
5400 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
5401 network protocol listing since it introduces problematic dependency on
5402 net module.
5403
4dc02ddf
VS
54042012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5405
5406 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
5407
c50c867d
VS
54082012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5409
5410 Init video early on yeeloong to avoid being rebooted by watchdog.
5411
5412 * grub-core/Makefile.am (gensm712): New target.
5413 (sm712_start.S): Likewise.
5414 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
5415 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
5416 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
5417 description.
5418 * include/grub/vga.h: Move registry definitions to...
5419 * include/grub/vgaregs.h: ... here.
5420
5f92c8a1
VS
54212012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5422
5423 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
5424 signedness.
5425
e9e6f111
VS
54262012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
5429 platforms with firmware disk drivers in the core.
5430
754ad9eb
VS
54312012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5432
5433 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
5434 informative verbose message.
5435 (read_lv): Handle 64-bit segment size.
5436
315654c2
VS
54372012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5438
5439 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
5440
fb022c79
VS
54412012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5442
5443 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
5444 character but still remove trainling spaces.
5445 (grub_fat_label): Ignore archive flag.
5446
8645f72c
VS
54472012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5448
5449 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
5450 cast between linux_kernel_header and linux_kernel_params.
5451
36498496
VS
54522012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
5455 type for size.
5456 (grub_raid6_recover_func_t): Likewise.
5457 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
5458 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
5459
0b5ea6b8
VS
54602012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
5463
650cfcfe
GS
54642012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
5465
5466 Fix overflow.
5467
5468 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
5469 [__NetBSD__]: Add explicit cast before bitshift.
5470
8a4d6a44
VS
54712012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5472
5473 * configure.ac: Bump to 2.00~rc1.
5474
2fb97ed3
VS
54752012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
5478 half of $a0.
5479
1fa097dc
VS
54802012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
54812012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
5482
5483 * docs/grub.texi: Fix search syntax.
5484 (Multi-boot manual config): Put msdos rather than GPT example.
5485 Grammar corrections.
5486
c890ba78
VS
54872012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5488
5489 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
5490
0f92dca7
VS
54912012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
5494
3988c4a0
VS
54952012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
5498 message on double free. Put the value of magic in case of mismatch.
5499
9e86d4c5
VS
55002012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5501
5502 Speed-up video on yeeloong.
5503
5504 * grub-core/video/sm712.c (framebuffer): Remove render_target and
5505 add cached_ptr.
5506 (grub_video_sm712_video_fini): Unmap cached_ptr.
5507 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
5508 (grub_video_sm712_set_active_render_target): Removed.
5509 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5510 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
5511 sync caches.
5512
ed24c312
VS
55132012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 Avoid flushing the same line multiple times on loongson.
5516
5517 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
5518 Step in 32 bytes and not 1 byte.
5519 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
5520 Likewise.
5521
d1718e7d
VS
55222012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
5525 subvolumes.
5526
982f1909
VS
55272012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5528
5529 Implement flow control for http.
5530
5531 * grub-core/net/http.c (parse_line): Handle response 206.
5532 (http_receive): Stall if too many packets are in the queue.
5533 (http_establish): Fix range header.
5534 (http_seek): Fix double free.
5535 (http_close): Likewise.
5536 (http_packets_pulled): New function.
5537 (grub_http_protocol): Set http_seek
5538 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
5539 (ack_real): Set window depending on i_stall.
5540 (grub_net_send_tcp_packet): Likewise.
5541 (grub_net_tcp_stall): New function.
5542 (grub_net_tcp_unstall): Likewise.
5543 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
5544 (grub_net_tcp_unstall): Likewise.
5545
bd407d6e
VS
55462012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 * grub-core/net/tftp.c: Decrease stall to 50 packets.
5549
c7564b8e
VS
55502012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5551
5552 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
5553
a3706162
VS
55542012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5555
5556 * tests/util/grub-shell.in: Fix a typo.
5557
b27069e0
VS
55582012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5559
5560 Implement flow control for tftp.
5561
5562 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
5563 packets but stop only if stop condition is satisfied.
5564 (grub_net_fs_read_real): Call packets_pulled after real read. Use
5565 `stall' instead of `eof' as stop condition.
5566 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
5567 (http_err): Likewise.
5568 * grub-core/net/tftp.c (ack): Replace the first argument with data
5569 instead of socket.
5570 (tftp_receive): Stall if too many packets are in wait queue.
5571 (tftp_packets_pulled): New function.
5572 (grub_tftp_protocol): Set packets_pulled.
5573 * include/grub/net.h (grub_net_packets): New field count.
5574 (grub_net_put_packet): Increment count.
5575 (grub_net_remove_packet): Likewise.
5576 (grub_net_app_protocol): New field `packets_pulled'.
5577 (grub_net): New field `stall'.
5578
6b9cfac6
VS
55792012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5580
5581 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
5582 sync part to handle them.
5583
f35abd81
VS
55842012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
5587 * grub-core/net/drivers/ieee1275/ofnet.c
5588 (grub_ieee1275_net_config_real): Likewise.
5589
0e7ec820
VS
55902012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5591
5592 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
5593 the direct route for server/gateway.
5594
9d611a31
VS
55952012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5596
5597 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
5598 IP address to server name since we may not hame the DNS.
5599
418f45ab
VS
56002012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
5603 freeing random buffer on failure.
5604 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
5605
44a0efc1
VS
56062012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
5609
531e2241
VS
56102012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
5613 reserved bytes.
5614 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
5615 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
5616 Handle malloc error correctly.
5617
cde393c9
VS
56182012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
5621 blocks.
5622
538478d0
VS
56232012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5624
5625 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
5626 increment.
5627
9b55efe0
VS
56282012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5629
5630 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
5631 none is explicitly specified.
5632
9eb832c3
VS
56332012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5634
5635 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
5636 while reallocating.
5637
d6b7c7c9
VS
56382012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5639
5640 Respect netmask from bootp/dhcp.
5641
5642 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
5643 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
5644 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
5645 into ...
5646 (grub_net_add_ipv4_local): ... this.
5647 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
5648 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
5649 (grub_net_add_ipv4_local): New proto.
5650
67caf9eb
VS
56512012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5652
5653 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
5654 determining EFI memory map size.
5655
43657558
VS
56562012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5657
5658 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
5659
eb6d0dd3
VS
56602012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5661
5662 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
5663 when looking for partition separator.
5664
31230544
VS
56652012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5666
5667 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
5668 Escape commas.
5669
918a2517
VS
56702012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5671
5672 Restructure FAT driver to avoid hook in label reading as it hits a
5673 GCC bug.
5674
5675 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
5676 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
5677 (grub_fat_iterate_dir): Split into ...
5678 (grub_fat_iterate_init): ... this, ...
5679 (grub_fat_iterate_fini): ... this, ...
5680 (grub_fat_iterate_dir_next): ... and this. All users updated.
5681
9f1d654e
VS
56822012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
5685 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
5686 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5687 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
5688 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
5689 New fields last_key and last_key_time.
5690 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
5691 extended key-esc into extended key-extended key.
5692
52f0f643
VS
56932012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5694
5695 Avoid unnecessary memcpy of whole video buffer.
5696
5697 * grub-core/video/fb/video_fb.c (dirty): New struct.
5698 (framebuffer): Add members current_dirty and previous_dirty.
5699 (dirty): New function.
5700 (grub_video_fb_fill_rect): Update dirty.
5701 (common_blitter): Likewise.
5702 (grub_video_fb_scroll): Likewise.
5703 (doublebuf_blit_update_screen): Copy only dirty part.
5704 (doublebuf_pageflipping_update_screen): Likewise.
5705 (grub_video_fb_doublebuf_blit_init): Init dirty.
5706 (doublebuf_pageflipping_init): Likewise.
5707 (grub_video_fb_setup): Likewise.
5708
e169a180
VS
57092012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
5712 poll rate.
5713
48556879
VS
57142012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5715
5716 Fix wildcard regexp dot and other special characters handling.
5717 Reported by: Robert Mabee.
5718
5719 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
5720 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
5721 (split_path): Trigger expansion on '?'.
5722 (unescape): New function.
5723 (wildcard_expand): Unescape parts copied without globbing.
5724 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
5725 (grub_script_arglist_to_argv): Don't unescape expansions.
5726
0494408e
VS
57272012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5728
5729 * include/grub/net.h (grub_net_card): New member txbufsize.
5730 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
5731 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5732 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
5733 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
5734 txbufsize.
5735 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
5736 compatible property to check for macs. Set
5737 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5738 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
5739 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
5740 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
5741 (send_card_buffer): Use txbuf.
5742 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
5743 nested function out of the parent while on it.
5744
cc35fe8f
VS
57452012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5746
5747 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
5748 presence check.
5749 (grub_ieee1275_net_config_real): Fix config pointer.
5750
970a0a09
VS
57512012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
5754 filename parsing to non-block devices.
5755
3e19bf87
VS
57562012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * grub-core/kern/device.c (grub_device_open): Remove dead code.
5759
c62d1a0c
VS
57602012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5761
5762 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
5763 All users updated.
5764
ef76bec3
VS
57652012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
5768 UUID search command even if hints probing failed.
5769
57702012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
5771
5772 * po/POTFILES.in: Regenerated.
5773
70aaf305
VS
57742012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 Speed-up video on fuloong.
5777
5778 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
5779 New function.
5780 (grub_pci_device_unmap_range): Handle non-cached address.
5781 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
5782 add direct_ptr.
5783 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
5784 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
5785 (grub_video_sis315pro_set_active_render_target): Removed.
5786 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
5787 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5788 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
5789 sync caches.
5790 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
5791 New proto.
5792
10400f0b
VS
57932012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5794
5795 * docs/grub.texi (Multi-boot manual config): New section.
5796
ba67e2c6
VS
57972012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5798
5799 Avoid slow read-back from VRAM.
5800
5801 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
5802 Move from here ...
5803 * grub-core/video/fb/video_fb.c
5804 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
5805 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
5806 (front_target): Remove front_target. Add pages.
5807 (grub_video_fb_init): Skip setting front_pages.
5808 (grub_video_fb_fini): Likewise.
5809 (doublebuf_blit_update_screen): Use pages.
5810 (grub_video_fb_doublebuf_blit_init): Likewise.
5811 (doublebuf_pageflipping_init): Allocate offscreen buffer.
5812 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
5813 (grub_video_fb_setup): Prefer doublebuffing.
5814
377c98cb
VS
58152012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5816
5817 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
5818 gzio.
5819
eac49cff
VS
58202012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 Add loongson tests.
5823
5824 * tests/util/grub-shell.in: Handle loongson.
5825 * tests/partmap_test.in: Add loongson to the list of platform using ATA
5826 drivers.
5827 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
5828 Reboot instead of shutdown if REBOOT is defined.
5829
0321415e
VS
58302012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5831
5832 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
5833 sized ports since unlike on real hardware qemu supports only 32-bit
5834 regs.
5835
3f2bdd8f
VS
58362012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 * Makefile.util.def (grub-mkrescue): Enable on loongson.
5839 * util/grub-mkrescue.in: Handle loongson.
5840
29a049c9
VS
58412012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5842
5843 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
5844 Set is_part appropriately.
5845 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
5846 names. Canonicalize partition without full disk.
5847
4abde346
VS
58482012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5849
5850 Revert usb-quiesce since it's wrong.
5851
5852 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
5853 (grub_ofdisk_init): Don't do quiesce.
5854
61f1d93b
VS
58552012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5856
5857 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
5858 PowerMac workaround to Xserves as well.
5859 Information supplied by: Benjamin Herrenschmidt.
5860
a09eb541
VS
58612012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5862
5863 Don't assume that beginning address is also the entry point on ppc.
5864
5865 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
5866 (grub_linux_boot): Use linux_entry.
5867 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
5868 (grub_linux_load64): Likewise.
5869
505b3c9b
VS
58702012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5871
5872 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
5873
cbe0b4ef
VS
58742012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5875
5876 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
5877 needlessly lose the console.
5878
3006e981
VS
58792012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5880
5881 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
5882 space.
5883
4e5a96b0
VS
58842012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5885
7da036bb
VS
5886 Remove non-functional EFI grub_get_rtc. Put a better fatal message
5887 than current grub_get_rtc() not implemented when booted with
5888 coreboot without TSC.
5889
5890 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
5891 Add machine/time.h to kernel headers on loongson.
5892 * grub-core/Makefile.core.def (kernel): Remove
5893 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
5894 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
5895 (grub_get_rtc): Likewise.
5896 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
5897 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
5898 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
5899 * grub-core/kern/i386/tsc.c (grub_tsc_init)
5900 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
5901 rather than installing known non-working time source.
5902 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
5903 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
5904 * include/grub/time.h: Don't include machine/time.h.
5905 * include/grub/efi/time.h: Removed.
5906 * include/grub/i386/efi/time.h: Likewise.
5907 * include/grub/i386/ieee1275/time.h: Likewise.
5908 * include/grub/powerpc/ieee1275/time.h: Likewise.
5909 * include/grub/sparc64/ieee1275/time.h: Likewise.
5910 * include/grub/x86_64/efi/time.h: Likewise.
5911
59122012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
5915
5916 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
5917 value.
5918 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
5919 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
5920 with dotless variants when any combining above is present.
5921
5561c22d
VS
59222012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5923
5924 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
5925 text and not binary.
5926
96f7e60e
VS
59272012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5928
5929 Stop polling as soon as we have the packet we were waiting for.
5930
5931 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
5932 All users updated.
5933 * grub-core/net/arp.c (have_pending): New var.
5934 (pending_req): Likewise.
5935 (grub_net_arp_send_request): Fill pending_req and use have_pending as
5936 stop indicator.
5937 (grub_net_arp_receive): Set have_pending.
5938 * grub-core/net/dns.c (recv_data): New field stop.
5939 (recv_hook): Set stop.
5940 (grub_net_dns_lookup): Init stop and use as stop condition.
5941 * grub-core/net/http.c (http_establish): Use headers_recv as stop
5942 condition.
5943 * grub-core/net/net.c (grub_net_poll_cards): New argument
5944 stop_condition. Stop when it goes true.
5945 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
5946 indicator.
5947 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
5948
3e747239
VS
59492012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5950
5951 Keep TX and RX buffers on EFI rather than always allocate new ones.
5952
5953 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
5954 card. All users updated.
5955 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
5956 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
5957 (get_card_packet): Likewise.
5958 (grub_efinet_findcards): Init new fields.
5959
f695e99a
VS
59602012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
5963 compilation error on sparc64.
5964
9e5e66d1
VS
59652012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5966
5967 Use ITC on IA64 rather than broken routine based on daytime.
5968
5969 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
5970 ia64.
5971 (grub_get_rtc) [__ia64__]: Likewise.
5972 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
5973 (get_itc): New function.
5974 (grub_rtc_get_time_ms): Likewise.
5975 (grub_machine_init): Calibrate ITC.
5976 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
5977 Keep only on non-ia64. Don't export since it's broken and used only
5978 if TSC is unavailable.
5979
a1767404
VS
59802012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5981
5982 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
5983 even if it's used.
5984 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
5985 Skip if parent is unused.
5986
34b2bced
VS
59872012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
5990
5e619f40
VS
59912012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 Fix wildcard escaping.
5994
5995 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
5996 * grub-core/script/execute.c (wildcard_escape): .. to here.
5997 Don't escape dot.
5998 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
5999 * grub-core/script/execute.c (wildcard_unescape): .. to here.
6000 Don't escape dot.
6001 * grub-core/script/execute.c (gettext_append): Always escape.
6002 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
6003 * grub-core/script/yylex.l: Don't cut away the escaping.
6004 * tests/grub_script_echo1.in: Add tests with wildcard.
6005
c8ca5855
VS
60062012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6007
6008 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
6009 (ftdi_hw_configure): Likewise.
6010 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
6011 define.
6012 (real_config): Handle 1.5 stop bits.
6013 (pl2303_hw_configure): Likewise.
6014
7183452c
VS
60152012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6016
6017 * Makefile.am: Add ppc linux bootcheck.
6018 * grub-core/tests/boot/linux-ppc.cfg: New file.
6019 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
6020
f57c84cd
VS
60212012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 * tests/grub_script_expansion.in: Skip network protocols.
6024
ecfc6207
VS
60252012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6026
6027 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
6028
8d03d284
VS
60292012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6030
6031 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
6032 --rom-directory.
6033 Add -graft-points.
6034
61c42af0
VS
60352012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6036
6037 ESCC serial driver for conducting sautomated tests in qemu.
6038 Not tested on real hardware.
6039
6040 * include/grub/serial.h (grub_serial_port): New field escc_desc.
6041 * grub-core/term/ieee1275/escc.c: New file.
6042 * grub-core/Makefile.core.def (escc): New module.
6043
08fd1291
VS
60442012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6045
6046 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
6047 invalid on error.
6048 (serial_hw_fetch): Don't read invalid handle.
6049 (serial_hw_put): Don't write into invalid handle.
6050
08dafeea
VS
60512012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6052
6053 Add a 1.5 stop bits value.
6054
6055 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
6056 * include/grub/serial.h (grub_serial_stop_bits_t): Add
6057 GRUB_SERIAL_STOP_BITS_1_5.
6058
9068fdcf
VS
60592012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6060
6061 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
6062 value rather than let it uninited.
6063
f4d5820f
VS
60642012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6065
6066 * grub-core/commands/wildcard.c (+check_file): New function.
6067 (wildcard_expand): Don't expand to non-existing files, expand with
6068 suffix and not attempt to expand if not needed.
6069
3d2de9a7
VS
60702012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
6073 out of partitions containing other partitions.
6074
c5c81ff9
VS
60752012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6076
6077 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
6078 on some qemu versions with GRUB.
6079
6080 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
6081 define.
6082 (grub_openbsd_bootarg_pcibios): New struct.
6083 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
6084 Add PCIINFO.
6085
08a14e0b
VS
60862012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6087
6088 * tests/util/grub-shell.in: Trim firmware output on EFI.
6089
cede3ca3
VS
60902012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6091
6092 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
6093 and coreboot since it's already in kernel.
6094
558d3a60
VS
60952012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
6098 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6099 to here. New return value start. All users updated.
6100 Recursively scan linear mappings.
6101 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
6102 proto.
6103 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6104 Use grub_util_get_dm_node_linear_info.
6105 * util/getroot.c (convert_system_partition_to_system_disk): Use
6106 grub_util_info rather than grub_dprintf.
6107 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
6108
60fde14d
VS
61092012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
6112
6113 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
6114 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
6115
24bd8838
VS
61162012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6117
6118 * include/grub/types.h (grub_set_unaligned64): New function.
6119 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
6120 (setup): Likewise.
6121
7bc06a49
VS
61222012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6123
6124 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
6125 (grub_ofdisk_fini): Quiesce USB devices.
6126
49cea015
VS
61272012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6128
6129 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
6130 caches.
6131
8dcbe03b
VS
61322012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6133
6134 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
6135
5b258735
VS
61362012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6137
6138 * grub-core/disk/pata.c (grub_pata_pio_read)
6139 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
6140 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
6141
37ba07eb
VS
61422012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 Extend automated tests to qemu-mips.
6145
6146 * Makefile.am: reorganise tests and enable qemu-mips.
6147 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
6148 * grub-core/tests/boot/linux.init-mips.S: New file.
6149 * tests/partmap_test.in: Handle ata0 disks.
6150 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
6151 non-pc i386.
6152
070038f8
VS
61532012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6154
6155 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
6156 ia64.
6157 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
6158 quotes while on it.
6159
004be2cd
VS
61602012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6161
6162 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
6163 (grub_halt): Likewise.
6164 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
6165
b1622487
VS
61662012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6167
6168 * grub-core/term/serial.c (grub_serial_register)
6169 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
6170 the behaviour in line with x86 platforms.
6171
b7b4ab33
VS
61722012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
6175 (grub_ata_strncpy): Likewise.
6176 (grub_ata_identify): Add missing byteswaps.
6177
5e3535ae
VS
61782012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6179
6180 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
6181 byte-swap.
6182 (screen_read_char): Likewise.
6183 (grub_vga_text_cls): Likewise.
6184
c21b17e6
VS
61852012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
6188 filenames.
6189 (make_file_path): Likewise.
6190
bf293dec
VS
61912012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
6194 machines.
6195 Tested by: Paulo Flabiano Smorigo.
6196 Crucial information about API supplied by: Coleen <Last name unknown>.
6197 Reviewed by: Coleen <Last name unknown>.
6198
81f6ef0e
VS
61992012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * util/grub-mkimage.c: Disable -Wcast-align.
6202
7284143a
VS
62032012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6204
6205 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
6206 as they are fatal.
6207
b99f3e00
VS
62082012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
6211
944f752d
VS
62122012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6213
6214 * util/grub-probe.c (escape_of_path): Fix double free.
6215
6cce6f38
VS
62162012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6217
6218 * grub-core/commands/videoinfo.c (hook): Show pitch.
6219
1e1eb50e
VS
62202012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * util/grub.d/20_linux_xen.in: Skip xen-syms.
6223
1c715b5a
VS
62242012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6225
6226 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
6227 (probe): Add ieee1275 to OFW devices.
6228
007ae52d
VS
62292012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6230
6231 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
6232
4557a36d
VS
62332012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 Handle IBM OFW path.
6236
6237 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
6238 available.
6239 (of_path_of_scsi): Handle vdevice.
6240
efbeefe9
VS
62412012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
6244 Allocate in multiples of 16 to avoid adding a few bytes free region the
6245 windows bugs upon.
6246
15a940bb
VS
62472012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6248
6249 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
6250 Allocate in multiples of 16 to avoid adding a few bytes free region the
6251 windows bugs upon.
6252 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
6253
6e5efd60
VS
62542012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
6257 resolutions.
6258 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
6259 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
6260
0d3d137e
IS
62612012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
6262
6263 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
6264
45dbe300
VS
62652012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
6268 resulted in \\ at the end of the line.
6269
6d8db947
VS
62702012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
6273 (grub_parser_cmdline_state): Likewise.
6274 (grub_parser_split_cmdline): Likewise.
6275
de89d338
VS
62762012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
6279 /dev/root and /dev/dm-*.
6280
00d41dee
VS
62812012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
6284 fix partially stale display.
6285
f95d1f11
VS
62862012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * grub-core/normal/menu_entry.c (backward_char): Use right line for
6289 substraction.
6290
6297e197
VS
62912012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6292
6293 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
6294 Fix MBR remapping workaround.
6295 (grub_util_biosdisk_read) [__linux__]: Likewise.
6296
8a7ecad3
VS
62972012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 * util/grub-install.in: Check for ieee1275 and not ieee1276.
6300
2b34f944
VS
63012012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 * configure.ac: Bump to beta6.
6304
684aef11
CW
63052012-05-31 Christer Weinigel <christer@weinigel.se>
6306
6307 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
6308
05b0bb91
VS
63092012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6310
6311 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
6312 (grub_cmd_linux): Likewise.
6313
bda36bfa
CW
63142012-05-31 Christer Weinigel <christer@weinigel.se>
6315
6316 Fix EHCI low-speed.
6317
6318 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
6319 (GRUB_EHCI_MULT_TWO): Likewise.
6320 (GRUB_EHCI_MULT_THREE): Likewise.
6321 (GRUB_EHCI_CMASK_MASK): New enum value.
6322 (GRUB_EHCI_SMASK_MASK): Likewise.
6323 (GRUB_EHCI_CMASK_OFF): Likewise.
6324 (GRUB_EHCI_SMASK_OFF): Likewise.
6325 (grub_ehci_pci_iter): Enable periodic schedule.
6326 (grub_ehci_parse_notrun): Likewise.
6327 (grub_ehci_restore_hw): Likewise.
6328 (grub_ehci_setup_qh): Set flags for low speed transfers.
6329 (grub_ehci_find_qh): Use periodic list for low speed.
6330 (grub_ehci_setup_transfer): Check periodic queue as well.
6331 (grub_ehci_check_transfer): Likewise.
6332 (grub_ehci_cancel_transfer): Cancel periodic transfer.
6333
e12bcb1c
PFS
63342012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6335
6336 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
6337 parameter is used.
6338
bcc75fb3
PJ
63392012-05-31 Peter Jones <pjones@redhat.com>
6340
6341 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
6342 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
6343 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
6344
f19cb95e
VS
63452012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6346
6347 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
6348 uninited variable. Allocate at least setup_sects.
6349
a4e5ca80
VS
63502012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6351
6352 Fix handling of EFI with big memory maps.
6353
6354 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
6355 (real_mode_mem): Likewise.
6356 (real_mode_target): Likewise.
6357 (real_mode_pages): Likewise.
6358 (prot_mode_pages): Likewise.
6359 (linux_params): New var.
6360 (linux_cmdline): Likewise.
6361 (free_pages): Don't set real mode variables.
6362 (allocate_pages): Don't allocate real mode memory.
6363 (grub_e820_add_region): Remove the limit.
6364 (grub_linux_boot): Allocate and copy real mode memory.
6365 (grub_linux_unload): Free linux_cmdline.
6366 (grub_cmd_linux): Use temporary storage for parameters.
6367 (grub_cmd_initrd): Likewise.
6368 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
6369 (linux_kernel_params): Make it 1K big.
6370
ddb73558
VS
63712012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6372
6373 * Makefile.util.def: Remove -Wno-format.
6374 * grub-core/Makefile.core.def: Likewise.
6375
1c4afb60
VS
63762012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6377
6378 * tests/cmp_unit_test.c: Add missing failure message.
6379 * tests/example_unit_test.c: Likewise.
6380 * tests/printf_unit_test.c: Likewise.
6381
941e3a6d
VS
63822012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6383
6384 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
6385 relaxation of protective MBR requirements.
6386
b105df76
VS
63872012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6388
6389 * configure.ac: Add condition for COND_HOST_XNU.
6390 * Makefile.util.def (10_xnu): New script.
6391 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
6392
84e1569e
VS
63932012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6394
6395 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
6396 objconv bug.
6397
130c0f77
VS
63982012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6399
6400 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
6401 Binary on other platforms stays identical.
6402
6fd0b143
VS
64032012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6404
6405 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
6406 Apple.
6407
0af1751d
VS
64082012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
6411
176d5f7d
VS
64122012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
6415 rather than defining size_t ourselves to avoid conflict.
6416
7de5e20a
VS
64172012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
6420 initialisation to avoid __bzero reference.
6421
f7143efe
VS
64222012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6423
6424 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
6425 version.
6426 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
6427 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
6428 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
6429 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
6430 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
6431
e6ad0555
VS
64322012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6433
6434 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
6435 * grub-core/kern/misc.c: Likewise.
6436 * grub-core/loader/i386/xnu.c: Likewise.
6437 * include/grub/i386/tsc.h: Likewise.
6438 * include/grub/symbol.h: Likewise.
6439
4a5a3c4a
VS
64402012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
6443 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
6444 on older compiler.
6445
037f6d90
VS
64462012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
6449 Implement Apple flavour.
6450 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
6451
f7194551
VS
64522012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
6455 (memmove) [__APPLE__]: Likewise.
6456 (memcpy) [__APPLE__]: Likewise.
6457 (memset) [__APPLE__]: Likewise.
6458 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
6459 (memmove) [__APPLE__]: Likewise.
6460 (memcpy) [__APPLE__]: Likewise.
6461 (memset) [__APPLE__]: Likewise.
6462
85a730ca
VS
64632012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6464
6465 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
6466 dependency discard.
6467
40e80b94
VS
64682012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 * grub-core/normal/main.c (read_config_file): Provide config_file and
6471 config_directory.
6472 * util/grub.d/41_custom.in: Use config_directoy when available.
6473
9da59c32
VS
64742012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
6477 (grub_bfs_dir): Likewise.
6478
2787ae53
PJ
64792012-05-27 Peter Jones <pjones@redhat.com>
6480
6481 The old code gives arguments to a printf function which can't work
6482 correctly, and the compiler complains.
6483
6484 * grub-core/tests/example_functional_test.c (example_test): Add
6485 missing text.
6486 * grub-core/tests/lib/test.c (add_failure): Rewrite.
6487 * include/grub/test.h (grub_test_assert_helper): New declaration.
6488 (grub_test_assert): Use grub_test_assert_helper.
6489
526ef13d
VS
64902012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6491
6492 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
6493 (exfctest): ... this to avoid overlong filenames.
6494 All users updated.
6495
20dd511c
VS
64962012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6497
6498 Handle "." and ".." on squashfs.
6499
6500 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
6501 Make inode numbers into stack.
6502 (grub_squash_read_symlink): Use stack.
6503 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
6504 (make_root_node): Fill stack.
6505 (grub_squash_open): Use stack.
6506
1d80c62a
VS
65072012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
6510 freeing.
6511
d336f652
VS
65122012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6513
6514 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
6515 stderr on test calls.
6516
8b43f587
VS
65172012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
6520
80a3dc3f
VS
65212012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
6524
47e297d4
VS
65252012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
6528 "..".
6529
df042ccb
VS
65302012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6531
6532 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
6533 (grub_hfsplus_iterate_dir): Add "." and "..".
6534
fc977f48
VS
65352012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6536
6537 * grub-core/fs/cpio.c (canonicalize): Handle "..".
6538 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
6539
f3250e5f
VS
65402012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
6543 (find_path): Handle "." and "..".
6544
fd8ed4c5
VS
65452012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6546
6547 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
6548 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
6549 (grub_affs_iterate_dir): Handle hardlinks.
6550
4ce776d2
MG
65512012-05-26 Matthew Garrett <mjg@redhat.com>
6552
6553 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
6554 (grub_efi_console_fini): Likewise.
6555 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
6556 (grub_video_gop_fill_mode_info): Rename to ...
6557 (grub_video_gop_fill_real_mode_info): ... this.
6558 (grub_video_gop_fill_mode_info): New function.
6559 (grub_video_gop_setup): Setup double framebuffer.
6560 (grub_video_gop_get_info_and_fini): Use original framebuffer.
6561 Free offscreen.
6562 (grub_video_gop_swap_buffers): Copy framebuffer.
6563 (grub_video_gop_fini): Free offscreen buffer.
6564 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
6565 New enum.
6566 (grub_efi_gop_blt_pixel): New struct.
6567
683031ba
VS
65682012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 * gentpl.py: Remove error disabling for objconv.
6571
c2deb798
VS
65722012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6573
6574 * configure.ac: Remove -Wunitialized as it's not available on older
6575 compilers.
6576
65772012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
6578
6579 Fix extent overflow comparator.
6580
6581 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
6582 (grub_hfsplus_read_block): Set type.
6583 (grub_hfsplus_cmp_extkey): Compare type.
6584
d6b1fd36
VS
65852012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
6588
0a9aa0f6
VS
65892012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6590
6591 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
6592 than 0.
6593
8360e159
VS
65942012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
6597 (dejavu_bold_14.pf2): New target.
6598
501b9e4b
VS
65992012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 * configure.ac: Fix djvu font detection.
6602
7026b0e2
VS
66032012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6604
6605 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
6606 ext* instead of ext2.
6607
c2a51ade
VS
66082012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
6611 name with \0.
6612
8f803a5d
JU
66132012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
6614
6615 * docs/grub-dev.texi: Remove dot from .png.
6616
13c6353f
VS
66172012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
6620 protective entry in any slot.
6621 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
6622 if protective entry is found in any slot.
6623
6624 Protective entry in non-first slot make no sense but is a widespread
6625 brain damage.
6626
4cf6be1b
VS
66272012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6628
6629 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
6630
937d1c44
VS
66312012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
6634 with old reiserfs.
6635 (grub_reiserfs_open): Don't free root.
6636
021d90ec
VS
66372012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
6640 after freeing for safety.
6641
967b2b64
VS
66422012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6643
6644 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
6645 Reported by: Jordan Uggla.
6646
34274d02
JU
66472012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
6648
967b2b64
VS
6649 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
6650 actual implementation. Specifically, clarify that the grub menu will
6651 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
6652 passed.
34274d02 6653
dcaaae9d
BH
66542012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
6655
6656 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
6657 of r0.
6658
7086ad52
VS
66592012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6660
6661 Remove unjustified hard dependency of normal.mod on gfxterm.
6662
6663 * include/grub/term.h (grub_term_output): New member fullscreen.
6664 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
6665 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
6666 (grub_gfxterm): Set .fullscreen.
6667 * grub-core/normal/menu.c (menu_init): Use fullscreen.
6668 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
6669
37ed2c9b
VS
66702012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
6673 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 6674 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 6675
a4469c88
VS
66762012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6677
6678 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
6679
4e461486
VS
66802012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6683 a bad FS.
6684
aa78f5c4
VS
66852012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6686
6687 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
6688 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
6689
197626b5
VS
66902012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
6693 (grub_jfs_mount): Fill caseins.
6694 (grub_jfs_find_file): Respect caseins.
6695
8ad3f28c
VS
66962012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6697
6698 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
6699 through UTF-16.
6700
0c6c324e
VS
67012012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
6704 New argument origpath. All users updated.
6705
c6666ba6
VS
67062012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
6709 (read_attr): Ensure that we read start of possibly compressed block.
6710
e28e5fe5
VS
67112012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
6714 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
6715 All users updated.
6716
5fc23ab2
VS
67172012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6718
6719 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
6720 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
6721 (dejavu.pf2): Replace with ...
6722 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
6723 this.
6724
79dbc21c
VS
67252012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * util/grub.d/20_linux_xen.in: Add missing line.
6728
d2fcfb0c
VS
67292012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
6732 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
6733 (grub_utf16_to_utf8): Likewise.
6734
5560e9d6
VS
67352012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
6736
6737 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
6738 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
6739 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6740 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
6741 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6742 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
6743
67442012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
6745
6746 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6747 a bad FS.
6748
5560e9d6 67492012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
6750
6751 * grub-core/fs/udf.c (read_string): Bail out on size=0.
6752 (grub_udf_read_symlink): Handle read_string failure.
6753
5eae3175
VS
67542012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6755
6756 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
6757 comment.
6758
c1ad82db
VS
67592012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6760
6761 Fix handling of UDF symlinks.
6762
6763 * grub-core/fs/udf.c (read_string): New argument outbuf.
6764 All users updated.
6765 (grub_ufs_read_symlink): Rename to ...
6766 (grub_udf_read_symlink): ... this. All users updated.
6767 Handle symlinks with more than one component.
6768
33eca6e0
VS
67692012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6770
6771 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
6772 symlinks. Replace leading colon with a slash.
6773
57f4a70b
VS
67742012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
6777 filename.
6778
38c8ee20
VS
67792012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6780
6781 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
6782 match in inner node.
6783
2e57f28f
VS
67842012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6785
6786 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
6787 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
6788 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
6789 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
6790 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
6791 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
6792 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
6793 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
6794 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
6795
fe8c2f11
VS
67962012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6797
6798 Use grub-probe and not cmp to check that disk is empty.
6799
6800 * util/grub-install.in: Use grub-probe for zero-check.
6801 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
6802 (probe): Handle PRINT_ZERO_CHECK.
6803 (argp_parser): Handle -t zero_check.
6804
68052012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
6806
6807 Flush block cache on adding disk to device map.
6808
6809 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
6810 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
6811 adding.
6812 (read_device_map): Likewise.
6813 (open_device): Flush on opening.
6814
690434e8
VS
68152012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6816
6817 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
6818 (handle_symlink): Fix off-by-one error.
6819 Canonicalize the target.
6820 (grub_cpio_dir): Canonicalize the name.
6821 Fix memory leak.
6822 Set directory.
6823 (grub_cpio_open): Canonicalize the name.
6824
742d2be6
VS
68252012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
6828 handling.
6829
3244fe96
VS
68302012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6831
6832 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
6833 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
6834
8aeb1837
VS
68352012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
6838 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 6839 All users updated.
8aeb1837 6840
9133fd05
VS
68412012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6842
6843 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
6844 counterpart.
6845
6d521c5b
VS
68462012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6847
6848 Fix UFS1 big file support.
6849
6850 * grub-core/fs/ufs.c (INODE): Removed.
6851 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
6852 64-bit.
6853 (INODE_MODE): Simplify.
6854 (grub_ufs_inode): Use uint64_t for size and not int64_t.
6855 (grub_ufs_lookup_symlink): Don't use INODE.
6856
21b82e17
VS
68572012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 Fix minixfs with non-power-of-two blocks since it's supported by minix.
6860
6861 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
6862 (grub_minix_data): Replace log_block_size with block_size.
6863 (grub_minix_read_file): Use block_size but avoid 64-bit division.
6864 (grub_minix_mount): Fill block_size.
6865
68662012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
6867
6868 * configure.ac: Bump to beta5.
6869
f417ed04
VS
68702012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6871
6872 Fix wrapped HFS+ handling.
6873
6874 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
6875 blocks_start. All users updated.
6876 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
6877 wrapping offset.
6878 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
6879
607d282b
VS
68802012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 Fix long symlinks on reiserfs.
6883
6884 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
6885 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
6886 (grub_reiserfs_iterate_dir): Save size for non-directories.
6887 (grub_reiserfs_open): Don't reread stat block as we already know the
6888 size.
6889 (grub_reiserfs_read): Split into...
6890 (grub_reiserfs_read_real): ... and ...
6891 (grub_reiserfs_read): ...this.
6892
ae16024d
VS
68932012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 Fix non-indexed JFS.
6896
6897 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
6898 (grub_jfs_data): New field namecomponentlen.
6899 (grub_jfs_mount): Fill namecomponentlen.
6900 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
6901
eea1e26e
VS
69022012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6903
6904 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
6905 * tests/grub_script_echo1.in: Add tests.
6906
df760f77
VS
69072012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6908
6909 * util/grub-install.in: Ignore empty devicetree directory.
6910
5efb817d
B
69112012-05-08 Bean <bean123ch@gmail.com>
6912
6913 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
6914 All users updated.
6915 (free_rsm): Free header as well.
6916 (free_old_fragments): Fix memory leak.
6917 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
6918 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
6919 (destroy_pq): Likewise.
6920 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
6921
668ea6d2
VS
69222012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
6925 resulting hash as a precaution.
6926
1739b1fe
VS
69272012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6928
6929 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
6930 '_' in variable names.
6931 * grub-core/net/net.c (grub_net_network_level_interface_register):
6932 Likewise.
6933
6ae485aa
VS
69342012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6935
6936 Fix AFFS with non-512B blocks.
6937
6938 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
6939 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
6940 (grub_affs_data): Replace blocksize with log_blocksize.
6941 (grub_affs_read_block): Fix non-512B blocks.
6942 (grub_affs_read_symlink): Likewise.
6943 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
6944 (grub_affs_read): Fix non-512B blocks.
6945 (grub_affs_label): Likewise.
6946 (grub_affs_mtime): Likewise.
6947 (grub_affs_mount): Fix block detection routine.
6948
d20fab84
VS
69492012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 Add filesystem mtime to AFFS.
6952
6953 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
6954 (aftime2ctime): New function.
6955 (grub_affs_dir): Use aftime2ctime.
6956 (grub_affs_label): Fix return value.
6957 (grub_affs_mtime): New function.
6958 (grub_affs_fs): Add mtime.
6959
e87b10f5
VS
69602012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
6963 UTF-8.
6964
7dceec9b
VS
69652012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
6968 UTF-8.
6969
2f48221f
VS
69702012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
6973
dacd85cf
VS
69742012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
6977 flags.
6978 (FLAGS_CASE_SENSITIVE): New enum value.
6979 (cache_entry): New struct.
6980 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
6981 cache_size and cache.
6982 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
6983 Add log_blocksize and fshelp_flags.
6984 (grub_sfs_read_extent): Handle non-512 blocks.
6985 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
6986 (grub_sfs_read_file): Handle non-512 blocks.
6987 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
6988 fshelp_flags.
6989 (grub_sfs_read_symlink): Handle non-512 blocks.
6990 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
6991 (grub_sfs_dir): Free cache.
6992 (grub_sfs_close): Likewise.
6993
24e9a854
VS
69942012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6995
6996 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
6997 filesystems.
6998
62ace64d
VS
69992012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7000
7001 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
7002
83b2e89c
VS
70032012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7004
7005 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
7006
75ccaea3
VS
70072012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7008
7009 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
7010 (grub_sfs_read_extent): Likewise.
7011 (grub_sfs_read_block): Likewise.
7012 (grub_sfs_mount): Likewise.
7013 (grub_sfs_iterate_dir): Likewise.
7014 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
7015 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
7016
1b8463f2
VS
70172012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7018
7019 Fix errors on compressed NTFS with 512B clusters.
7020
7021 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
7022 types.
7023 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
7024 not 0.
7025 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
7026 Relax check for inline extents.
7027 (ntfscomp): Return correct -1 on error and not 0.
7028
4f8e368f
VS
70292012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 * util/grub-install.in: Fix handling of prefix containing spaces.
7032
6f5d5ee8
VS
70332012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7034
7035 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
7036 (grub_squash_read_data): Fix offset byte-swapping.
7037
ce41ab7a
VS
70382012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7039
7040 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
7041 per common usage and preffered in several parts of code.
7042 (grub_memcmp): Likewise.
7043 (grub_strncmp): Likewise.
7044 * include/grub/misc.h (grub_strcasecmp): Likewise.
7045 (grub_strncasecmp): Likewise.
7046 * Makefile.util.def (cmp_test): New test.
7047 (grub_script_strcmp): Likewise.
7048 * tests/cmp_unit_test.c: New file.
7049 * tests/grub_script_strcmp.in: Likewise.
7050 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
7051
49717bf4
VS
70522012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 * include/grub/pci.h: Move enums into no-asm part.
7055
0a308f64
VS
70562012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7057
7058 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
7059
1796965f
ST
70602012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
7061
7062 * util/getroot.c (find_hurd_root_device): Try to make error message
7063 and comments to translators clearer.
7064
4e9b2819
VS
70652012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7066
7067 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
7068
076aeb50
VS
70692012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
7072 btrfs.
7073
19424d94
VS
70742012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 * docs/grub.cfg: Update.
7077
ebb73076
VS
70782012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7079
7080 * docs/grub.texi (PXE): Remove not present variables.
7081
9a1b669c
VS
70822012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7083
7084 * grub-core/net/net.c (defserver_set_env): New function.
7085 (defserver_get_env): Likewise.
7086 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
7087
d38bf7d3
VS
70882012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7089
7090 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
7091 entries.
7092
70932012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
7094
7095 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
7096 * grub-core/kern/emu/hostdisk.c: Likewise.
7097
e5e4ca48
ST
70982012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7099
7100 Handle hurd userspace partitions.
7101
7102 * util/getroot.c (find_hurd_root_device): New function.
7103 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
7104
56bb5dd5
VS
71052012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7106
7107 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
7108 names.
7109 Reported by: Bastian Blank.
7110
9e8bc27a
VS
71112012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
7114 crossing page boundary.
7115
aa01499d
VS
71162012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 Fix B-tree search in BFS, especially in presence of non-ASCII
7119 characters.
7120
7121 * grub-core/fs/bfs.c (bfs_strcmp): New function.
7122 (find_in_b_tree): Use standard bsearch + btree algorithm.
7123
57006035
VS
71242012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7125
7126 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
7127 and so on.
7128
9d34bb85
MG
71292012-05-03 Matthew Garrett <mjg@redhat.com>
71302012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7131
7132 Suspend broadcom cards in order to stop their DMA.
7133
7134 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
7135 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
7136 (pci): Don't build on x86 EFI.
7137 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
7138 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
7139 New function.
7140 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
7141 stop_broadcom if running on EFI.
7142 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
7143 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
7144 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
7145 (grub_pci_find_capability): New proto.
7146
01aab997
VS
71472012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7148
7149 * docs/grub.texi: Remove dot from the extension as it apparently
7150 doesn't work with some makeinfo versions.
7151
fbd8dca6
VS
71522012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7153
7154 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
7155 with GRUB expectance.
7156
dab797f4
VS
71572012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
7160
1516bfb4
VS
71612012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7162
7163 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
7164 zero after directory block since last entry may be not 0-terminated if
7165 it ends on block boundary. Use continue instead of if spanning whole
7166 loop.
7167
a3a0eace
VS
71682012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7169
7170 Support 4K sectors UDF inline files.
7171
7172 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
7173 (grub_udf_extended_file_entry): Likewise.
7174 (grub_fshelp_node): Name the anonymous union. Put block at the end.
7175 All users updated.
7176 (get_fshelp_size): New function.
7177 (grub_udf_read_icb): Read whole block.
7178 (grub_udf_iterate_dir): Likewise.
7179 (grub_udf_dir): Likewise.
7180 (grub_udf_open): Likewise.
7181
c82f16c1
VS
71822012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7183
7184 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
7185
59fd2aac
VS
71862012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
7189 inline symlinks in addition to workaround.
7190
3b4afb4d
VS
71912012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7192
7193 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
7194
f45c794a
VS
71952012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7196
7197 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
7198
f25cecbd
VS
71992012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
7202
bb9a34e8
VS
72032012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 Fix reiserfs big seek times.
7206
7207 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
7208 exact. All users updated.
7209 (grub_reiserfs_read): Use nearest btree search for seeking.
7210 Fix return value on error.
7211
dc478aea
VS
72122012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7213
7214 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
7215 entries.
7216 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
7217 * docs/grub.texi: Update menuentry description.
7218
8db10f47
VS
72192012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7220
7221 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
7222 crash when embedding onto filesystem.
7223
bcb288ed
VS
72242012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7225
7226 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
7227 name.
7228
a626fdd7
VS
72292012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7230
7231 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
7232
b2f68477
VS
72332012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
7236 commit.
7237
ba15b2af
B
72382012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
72392012-05-01 Bean <bean123ch@gmail.com>
7240
7241 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
7242
a188012e
VS
72432012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7244
7245 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
7246 Special behaviour for len = 0 to read whole file isn't used anywhere and
7247 can cause buffer ovewrflows in several places.
7248
f0a53ed2
VS
72492012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
7252
5ed554f0
VS
72532012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7254
7255 Handle RAIDZ on non-512B sectors.
7256
7257 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
7258 max_children_ashift.
7259 (fill_vdev_info_real): Fill max_children_ashift.
7260 (read_device): Use max_children_ashift.
7261
ddc58357
VS
72622012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7263
7264 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
7265
e3282399
VS
72662012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7267
7268 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
7269 disk names.
7270 * docs/grub.texi: Update device.map parts.
7271
ee618bd4
VS
72722012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7273
7274 Don't scan into non-diskfilter devices having diskfilter names.
7275
7276 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
7277 (scan_disk): New argument accept_diskfilter. Fix recursion depth
7278 handling.
7279 (scan_disk_hook): New function.
7280
bdf88864
B
72812012-04-29 Bean <bean123ch@gmail.com>
7282
7283 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
7284 allocation.
7285
32745f51
MK
72862012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
7287
7288 * configure.ac: Detect starfield theme font path
7289 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
7290
bc95c8c0
VS
72912012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7292
7293 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
7294 geometry on serial consoles.
7295
147fbcab
VS
72962012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7297
7298 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
7299 because of network consoles.
7300
0f42c889
VS
73012012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7302
7303 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
7304 handling.
7305
4a3594c9
VS
73062012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7307
7308 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
7309 falls on Q syndrom.
7310
5cb53879
VS
73112012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7312
7313 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
7314 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
7315
b282dfe5
VS
73162012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7317
7318 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
7319 Allocate at lest 8192 for temporary buffer as required for lzo.
7320
daa59f47
VS
73212012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7322
7323 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
7324 to cluster_bits, since it's already added in.
7325 (grub_fat_read_data): Likewise.
7326
986748ce
VS
73272012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7328
7329 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
7330 as long as cluster size is multiple of 512 bytes.
7331
a20f6ad0
VS
73322012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 * util/grub-mkrescue.in: Fix locale directory.
7335
385f9abb
VS
73362012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7337
7338 * grub-core/kern/emu/hostdisk.c (map): Make static.
7339
1c557d30
B
73402012-04-23 Bean <bean123ch@gmail.com>
7341
7342 * util/grub-fstest.c (fstest): Add missing break.
7343
524b5d3a
ST
73442012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7345
7346 Fix hurd build.
7347
7348 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
7349 not define nr variable.
fe4824e9 7350 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
7351 find_root_devices_from_poolname, find_root_devices_from_libzfs,
7352 grub_find_device): Do not define.
524b5d3a 7353
9a06490c
VS
73542012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 Fix kfreebsd compile and behaviour.
7357
7358 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
7359 format-security.
7360 * util/getroot.c: Fix wait.h include.
7361 (grub_guess_root_devices): Error if grub_find_device fails.
7362 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
7363 (grub_util_get_dev_abstraction): Likewise.
7364 (grub_util_pull_device): Likewise.
7365 (grub_util_get_grub_dev): Likewise.
7366 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
7367
48143d96
VS
73682012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 Fix and unify wholedisk detection.
7371
7372 * util/getroot.c (convert_system_partition_to_system_disk): New argument
7373 is_part. All users updated.
7374 (device_is_wholedisk): Removed.
7375 (grub_util_biosdisk_get_grub_dev): Use is_part.
7376
ebbd24f3
VS
73772012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7378
7379 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
7380 mode.
7381
56f7aa1e
VS
73822012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 * configure.ac: Bump to beta4.
7385
9c815e01
VS
73862012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7387
7388 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
7389 --fs-uuid --set UUID syntax.
7390
59e2651a
VS
73912012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7392
7393 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
7394 disunification.
7395
54e03cfc
VS
73962012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
7399
81092a75
MK
74002012-04-18 Mads Kiilerich <mads@kiilerich.com>
7401
7402 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
7403
f8315e14
MG
74042012-04-18 Mike Gilbert <floppym@gentoo.org>
7405
7406 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
7407
1501ac21
B
74082012-04-18 Bean <bean123ch@gmail.com>
7409
7410 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
7411 place.
7412
cb7f944e
VS
74132012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
7416 users updated.
7417 (grub_util_biosdisk_read): Handle Linux partitions not exactly
7418 corresponding to GRUB partitions.
7419 (grub_util_biosdisk_write): Likewise.
7420
b72d44a1
VS
74212012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7422
7423 Scan mdraid before LVM.
7424
7425 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
7426 (grub_diskfilter_register_front): ... this.
7427 (grub_diskfilter_register_back): New function.
7428 All users of grub_diskfilter_register updated.
7429
33d918b8
VS
74302012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 * util/grub-install.in: Fix an automatic target detection bug.
7433
c6ca973d
VS
74342012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7435
7436 * util/grub-install.in: New option --efi-directory.
7437
b41be562
VS
74382012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7439
7440 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
7441 boot services if we have no other choice.
7442
74432012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7444
7445 * util/grub-mknetdir.in: Rename --override-directory to --directory and
7446 document it.
7447 * tests/util/grub-shell.in: Update to --directory.
7448
e0595a73
VS
74492012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
7452
4ed80652
VS
74532012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
7456 (grub_minix_read_file): Likewise.
7457 (grub_minix_read_inode): Likewise.
7458 (grub_minix_find_file): Likewise.
7459 (grub_minix_dir): Likewise.
7460
56008077
VS
74612012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7462
7463 * util/grub-setup.c (setup): Fix partition handling and blocklist
7464 check.
7465
ee520775
VS
74662012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7467
7468 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
7469 redundant buggy overlap check.
7470
16fc9293
VS
74712012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7472
7473 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
7474 and grub-mknetdir.
7475
9bab65c4
VS
74762012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7477
7478 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
7479 kh.loadflags on pre-2.00 kernels.
7480
3c491b47
VS
74812012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7482
7483 Terminate UNDI and PXE before launching the payload to avoid problems
7484 with DMA.
7485
7486 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
7487 (grub_loader_flags): ... this. All users updated.
7488 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
7489 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
7490 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
7491 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
7492 function.
7493 (grub_pxe_restore): Likewise.
7494 (fini_hnd): New var.
7495 (GRUB_MOD_INIT): Register shutdown hook.
7496 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
7497 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
7498 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
7499 (grub_loader_set): Rename second argument to flags.
7500
851ffada
VS
75012012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7502
7503 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
7504 written bytes.
7505 (grub_get_num_of_utf8_bytes): New function.
7506 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
7507 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
7508 executing it.
7509 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
7510 (grub_ucs4_to_utf8): Change return type.
7511
491c57a8
VS
75122012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7513
7514 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
7515 warning.
851ffada
VS
7516 * grub-core/fs/bfs.c (hop_level): Likewise.
7517 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 7518
756773df
VS
75192012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7520
7521 * grub-core/lib/adler32.c: Recode due to license unclearness.
7522
fd556a96
VS
75232012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7524
7525 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
7526 (test_header): Likewise.
7527
9f9d3f69
VS
75282012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7529
7530 Fix --help formatting.
7531
7532 * util/grub-mkconfig_lib.in (print_option_help): New function.
7533 (grub_fmt): Likewise.
7534 * util/grub-install.in: Use print_option_help and grub_fmt.
7535 * util/grub-kbdcomp.in: Likewise.
7536 * util/grub-mkconfig.in: Likewise.
7537 * util/grub-mknetdir.in: Likewise.
7538 * util/grub-mkrescue.in: Likewise.
7539 * util/grub-mkstandalone.in: Likewise.
7540 * util/grub-reboot.in: Likewise.
7541 * util/grub-set-default.in: Likewise.
7542 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7543
561ec77e
VS
75442012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7545
7546 * linguas.sh: Remove autogenerated *.po.
7547
7ec2b021
VS
75482012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 * po/README: Move language fetcing to ...
7551 * linguas.sh: ... here.
7552 * po/README: Point to linguas.sh.
7553
a88f3270
VS
75542012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7555
7556 * po/README: Exclude ko.po due to disclaimer problems.
7557
d61357ce
VS
75582012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7559
7560 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
7561 len = 0.
7562 (grub_gettext_translate_real): Handle 0th string.
7563 (grub_gettext_translate): Ensure that "" isn't translated.
7564
505e41dc
VS
75652012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7566
7567 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
7568 TRANSLATORS comment.
7569 (grub_diskfilter_print_partmap): Propagate changing of error into
7570 warning.
7571
e44092db
VS
75722012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7573
7574 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
7575 to uint64_t to prevent overflow.
7576 (grub_diskfilter_lv): Increase start_extent and extent_count
7577 to uint64_t to prevent overflow.
7578
9b83956a
VS
75792012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * configure.ac: Increase version.
7582
da0d5b3f
VS
75832012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7584
7585 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
7586
7587 * po/Rules-translit: New file.
7588 * po/arabic.sed: Likewise.
7589 * po/cyrillic.sed: Likewise.
7590 * po/greek.sed: Likewise.
7591 * po/hebrew.sed: Likewise.
7592 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
7593 * po/Makefile.in.in: Add extra_dist4.
7594
ac66b453
VS
75952012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7596
7597 Handle big-endian minixfs (fixes minixfs tests on bigendian).
7598
7599 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
7600 modify names. Introduce MODE_BIGENDIAN.
7601 * grub-core/fs/minix_be.c: New file.
7602 * grub-core/fs/minix2_be.c: Likewise
7603 * grub-core/fs/minix3_be.c: Likewise.
7604 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
7605 minix3_be.
7606 * grub-core/Makefile.core.def (minix_be): New module.
7607 (minix2_be): Likewise.
7608 (minix3_be): Likewise.
7609
76102012-04-01 Felix <email@hamburg.de>
7611
7612 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
7613 (devs): Add MBP 2011.
7614
0a2d5a82
VS
76152012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7616
7617 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
7618
d1625889
VS
76192012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * grub-core/normal/cmdline.c (print_completion): New field
7622 prompt_len.
7623 (grub_cmdline_get): Handle width properly.
7624
6d36a236
VS
76252012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7626
7627 * grub-core/commands/lsacpi.c (options): Add missing terminator.
7628
9576977e
VS
76292012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7630
7631 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 7632 after 29th of February.
9576977e 7633
d73ff15d
VS
76342012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7635
7636 Fix exfat endianness handling.
7637
7638 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
7639 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
7640 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
7641 Byte-swap utf16 when necessary.
7642 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
7643
bbb39a45
AB
76442012-03-31 Anton Blanchard <anton@samba.org>
76452012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 Fix btrfs endianness handling.
7648
7649 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
7650 (lower_bound): Make root uint64_t. Use root in le.
7651 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
7652 (find_path): Fix template key init.
7653 (grub_btrfs_dir): Fix mtime byteswap.
7654 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
7655
354e0af7
VS
76562012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
7659 recursion_depth. Break infinite resursions. All users updated.
7660
4e75f21c
VS
76612012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
7664 after free.
7665 Reported by: Peter Jones.
7666
25581802
AB
76672012-03-31 Anton Blanchard <anton@samba.org>
7668
7669 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
7670 8 bit values.
7671
08fbf92e
VS
76722012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7673
7674 * util/grub-install.in: Fix nvram call for PreP.
7675
5d1182a6
VS
76762012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7677
7678 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
7679 the error when some elements are missing into a warning.
7680
3f8cdd90
VS
76812012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7682
7683 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
7684
51006716
CW
76852012-03-28 Colin Watson <cjwatson@ubuntu.com>
7686
7687 * docs/grub.texi (Invoking grub-probe): New section.
7688 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
7689
e1bd676b
VS
76902012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 Fix tab and wide character handling in editor and menu.
7693
7694 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
7695 agglomerate control characters with combining marks.
7696 (bidi_line_wrap): Allow break on tab.
7697 (grub_unicode_get_comb_start): New function.
7698 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
7699 and tab correctly.
7700 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
7701 with a space.
7702 * grub-core/normal/term.c (print_ucs4_terminal): New argument
7703 fixed_tab_size. All users updated.
7704 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
7705 (grub_term_getcharwidth): Handle \t.
7706 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
7707 and copy.
7708
22e6a774
VS
77092012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 Handle big-endian mdraid.
7712
7713 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
7714 * grub-core/Makefile.core.def (mdraid09_be): New module.
7715 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
7716 rather than grub_le_to_cpu* and grub_cpu_to_le*.
7717 * grub-core/disk/mdraid_linux_be.c: New file.
7718
3c0eae66
VS
77192012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
7722
b6cf74c9
VS
77232012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7724
7725 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
7726 missing quotes which caused confusion among translators.
7727
83c93b9c
VS
77282012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * util/grub-mkconfig_lib.in: Fix typo.
7731
ac6fd218
VS
77322012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7733
7734 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
7735 spaces.
7736 * tests/grub_script_leading_whitespace.in: New file.
7737 * Makefile.util.def (grub_script_leading_whitespace): New test.
7738
ba287dd8
VS
77392012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7740
7741 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
7742 to work.
7743
d2d58d0a
VS
77442012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7745
7746 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
7747 starts with control character.
7748
0382d9bb
VS
77492012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7750
7751 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
7752 overflow.
7753 (grub_gdb_outbuf): Likewise.
7754
d83ff9f9
VS
77552012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7756
7757 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
7758 zero terminator. Fixes a crash.
7759
2282da4a
VS
77602012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7761
7762 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
7763 beyond 4 GiB.
7764 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
7765 images independently of preffered adderss field.
7766
0ae4f0bd
VS
77672012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7768
7769 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
7770 * grub-core/commands/regexp.c: Likewise.
7771 * grub-core/loader/i386/linux.c: Likewise.
7772 * grub-core/partmap/msdos.c: Likewise.
7773 * grub-core/script/execute.c: Likewise.
7774 * grub-core/term/gfxterm.c: Likewise.
7775
546fbe9b
VS
77762012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7777
7778 Add variable parsing in $"..." and fix several mismatches with bash.
7779
7780 * Makefile.util.def (grub_script_gettext): New test.
7781 * grub-core/script/execute.c (parse_string): New function.
7782 (gettext_append): Likewise.
7783 (grub_script_arglist_to_argv): Use gettext_append.
7784 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
7785 * tests/grub_script_gettext.in: New file.
7786
9fdb2d7b
VS
77872012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7788
7789 Fix handling of leading spaces in scripts.
7790
7791 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
7792 spaces.
7793 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
7794 other than skipping \r. All users updated.
7795 * tests/grub_script_echo1.in: Add space-related tests.
7796 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
7797
1a1ac4f6
VS
77982012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7799
7800 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
7801
b63d89b6
VS
78022012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7803
7804 * configure.ac: Bump up the version to beta2.
7805
17f38c0f
VS
78062012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7807
7808 Fix gettext reload bugs (e.g. inability to disable gettext
7809 once enabled).
7810
7811 * grub-core/gettext/gettext.c: Encapsulate all static variables in
7812 main_context and secondary_context. All functions updated.
7813 (grub_gettext_translate): Rename to ...
7814 (grub_gettext_translate_real): ... this. Return NULL on failed
7815 translate.
7816 (grub_gettext_translate): Handle secondary context.
7817 (grub_gettext_delete_list): Close file and zero-out the context.
7818 (grub_mofile_open): Don't call grub_gettext_delete_list.
7819 Don't close file.
7820 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
7821 if locale="" to avoid pointless error message.
7822 (grub_gettext_env_write_lang): Update lang even if load fails.
7823 Handle secondary context.
7824 (grub_gettext_reread_prefix): New function.
7825 (read_main): Likewise.
7826 (read_secondary): Likewise.
7827 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
7828 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
7829 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
7830 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
7831
8e56f870
VS
78322012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7833
7834 * configure.ac: Decrease warning level to avoid spurious warnings and
7835 to be able to compile with GCC 4.2.
7836 * Makefile.util.def: Remove -Wno-error=logical-op.
7837
82f6d455
WB
78382012-03-10 William Bittner <william.bittner@gmail.com>
7839
7840 * util/import_unicode.py: Add missing brackets around string for
7841 python 3 support.
7842
1ecd61a4
VS
78432012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7844
7845 Fix efi chainloader on network root.
7846
7847 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
7848 network devices.
7849 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
7850 New function.
7851
14361ee8
VS
78522012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7853
7854 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
7855 unused show_text member.
7856 * docs/grub.texi: Document "text" property.
7857
922aabf3
VS
78582012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7859
7860 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
7861 in dprintf.
7862
ec316771
VS
78632012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7864
7865 Fix IMSM handling on Fedora.
7866
7867 * util/getroot.c (grub_util_is_imsm): New function.
7868 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
7869
0f021838
VS
78702012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7871
7872 * Makefile.am: Strip gold section.
7873 * conf/Makefile.common: Likewise.
7874 * gentpl.py: Likewise.
7875 * grub-core/Makefile.core.def: Likewise.
7876 * grub-core/genmod.sh.in: Likewise.
7877
1039c8eb
VS
78782012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7879
7880 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
7881 * util/grub.d/20_linux_xen.in: Likewise.
7882 Based on Debian patch.
7883
6dd412cd
VS
78842012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7885
7886 * util/grub.d/10_linux.in: Fix syntax error resulting in
7887 Richard Laager's patch.
7888 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
7889
3fd8bae5
VS
78902012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7891
7892 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
7893 dependencies.
7894
7eea1671
RL
78952012-03-10 Richard Laager <rlaager@wiktel.com>
7896
7897 * util/grub.d/10_linux.in: Fix ZFS root passing.
7898
e8e0566b
VS
78992012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
7902 * grub-core/commands/xnu_uuid.c: Likewise.
7903 * grub-core/loader/efi/appleloader.c: Likewise.
7904 * grub-core/script/execute.c: Likewise.
7905 * grub-core/script/main.c: Likewise.
7906 * util/grub-mkfont.c: Likewise.
7907
1acc5b1f
VS
79082012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 * util/grub-mkfont.c (options): Use more appropriate "select" that
7911 "set" for face index.
7912
35d70620
VS
79132012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 * util/grub-editenv.c (options): Gettextize command summaries.
7916
c9eb96b5
VS
79172012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7918
7919 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
7920 "out of memory" error messagge.
7921
1f493136
VS
79222012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7923
7924 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
7925 of diskfilter for diskfilter on diskfilter support.
7926
6d790129
VS
79272012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7928
7929 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
7930
005f46c9
VS
79312012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7932
7933 * util/grub-install.in: Check for themes/starfield/theme.txt and not
7934 themes/starfield.
7935
c8f778a0
VS
79362012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7937
7938 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
7939
de1e64eb
VS
79402012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7941
7942 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
7943
c6d54211
VS
79442012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7945
7946 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
7947 of error message.
7948
dd390777
VS
79492012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
7950
7951 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
7952
5fd1c522
VS
79532012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
7954
7955 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
7956 message.
c6d54211 7957 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 7958
fae01f6c
VS
79592012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7960
7961 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
7962 Gettextize.
7963 * util/grub-mount.c (options): Likewise.
7964
292fdaff
VS
79652012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7966
7967 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
7968 gettextize.
7969 * grub-core/commands/search_wrap.c (options): Likewise.
7970
ecdbae77
VS
79712012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7972
7973 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
7974
52bfedfa
VS
79752012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7976
7977 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
7978 size calculation.
7979 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
7980 none is known.
7981
55b20e58
VS
79822012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7983
7984 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
7985 "temporary" since it's used in identifier and is limited in space.
7986
fda9d101
VS
79872012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7988
7989 * po/POTFILES.in: Regenerate. Include *.h since they contain
7990 translatable strings as well.
7991
6a0295e2
VS
79922012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7993
7994 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
7995 byte-swap on big-endian.
7996 Reported by: Lennart Sorensen
7997
807fb77c
VS
79982012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7999
8000 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
8001 (allocate_pages): Improve dprintf.
8002 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
8003 code32_start. Fill code32_start and kernel_alignment in params.
8004 (grub_cmd_initrd): Use prot_init_space.
8005
61ac50ba
VS
80062012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8007
8008 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
8009
abdd26dd
VS
80102012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 * util/grub-install.in: Add missing dot at the end of sentence.
8013
6e69da9c
VS
80142012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8015
8016 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
8017 * grub-core/commands/videotest.c: Likewise.
8018 * grub-core/loader/i386/linux.c: Likewise.
8019
4a929343
VS
80202012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8021
8022 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
8023 sentence.
8024 Reported by: Milo Casagrande.
8025
bb51c6c6
VS
80262012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8027
8028 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
8029 * grub-core/commands/gptsync.c: Likewise.
8030 * grub-core/commands/hashsum.c: Likewise.
8031 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8032 * grub-core/commands/legacycfg.c: Likewise.
8033 * grub-core/io/gzio.c: Likewise.
8034 * grub-core/net/net.c: Likewise.
8035 * grub-core/term/gfxterm.c: Likewise.
8036 * grub-core/term/terminfo.c: Likewise.
8037 * grub-core/tests/test_blockarg.c: Likewise.
8038 * grub-core/video/video.c: Likewise.
8039 * util/grub-install.in: Likewise.
8040 * util/grub-mkfont.c: Likewise.
8041
b2b149cb
VS
80422012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8043
8044 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
8045
c7c080ad
VS
80462012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8047
8048 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 8049 Reported by: David Prévot.
c7c080ad 8050
f2e243c0
VS
80512012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8052
8053 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
8054 description.
8055
09963c76
VS
80562012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8057
8058 * util/grub-script-check.c (main): Fix a syntax error message which was
8059 unclear.
8060
a50514a8
VS
80612012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8062
8063 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
8064
4650daec
VS
80652012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8066
8067 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
8068 messages.
8069
80702012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
8071
8072 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
8073 without argument.
8074 * util/grub-mount.c (options): Likewise.
8075
bbc5a342
VS
80762012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8077
8078 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
8079
ef292a87
VS
80802012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 * grub-core/net/http.c: Add TRANSLATORS comments.
8083 * grub-core/normal/cmdline.c: Likewise.
8084 * grub-core/normal/misc.c: Likewise.
8085 * grub-core/partmap/msdos.c: Likewise.
8086 * grub-core/parttool/msdospart.c: Likewise.
8087 * grub-core/script/execute.c: Likewise.
8088 * grub-core/script/main.c: Likewise.
8089 * grub-core/term/terminfo.c: Likewise.
8090 * grub-core/video/bitmap.c: Likewise.
8091 * util/grub-install.in: Likewise.
8092 * util/grub-mkimage.c: Likewise.
8093 * util/grub-mklayout.c: Likewise.
8094 * util/grub-setup.c: Likewise.
8095
0fc19bd0
VS
80962012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8097
8098 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
8099 with similar messages in grub-fstest.
8100
d95862ef
VS
81012012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8102
8103 * util/grub-install.in: Unify "option requires an argument" message
8104 with similar messages in other files.
8105 * util/grub-mkconfig.in: Likewise.
8106
b7308f90
VS
81072012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 * util/grub-set-default.in: Replace printf with gettext_printf (the
8110 string in in question is already translated from grub-reboot)
8111
559dc587
VS
81122012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8113
8114 * configure.ac: Bump up the version to beta1.
8115
1a11761f
VS
81162012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8117
8118 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
8119 case when min_align = 0.
8120
24539abd
VS
81212012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8122
8123 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
8124 and fix a case when line_start overflows.
8125
32bd735b
VS
81262012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8127
8128 * util/grub-reboot.in (usage): Mention id posibility.
8129 * util/grub-set-default.in (usage): Likewise.
8130
1a2fd1e6
VS
81312012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8132
8133 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
8134 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
8135 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8136 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8137 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8138 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8139 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8140
90eeab76
VS
81412012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8142
8143 * grub-core/commands/menuentry.c (options): Remove
8144 GRUB_ARG_OPTION_REPEATABLE.
8145 Reported by: Andreas Vogel
8146
5ad1be82
AV
81472012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
8148
8149 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
8150
cb055286
HE
81512012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
8152
8153 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
8154 error.
8155
93b1cd79
VS
81562012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8157
8158 Use sort -V by the idea of Georgi Georgiev.
8159
8160 * util/grub-mkconfig_lib.in (version_sort): New function.
8161 (version_test_numeric): Use version_sort.
8162
0cdc126c
VS
81632012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8164
8165 Use submenus in grub-mkconfig.
8166
8167 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
8168 * util/grub-mkconfig_lib.in (grub_quote): New function.
8169 (gettext_printf): Use gettext and not gettext_quoted to fix several
8170 messages.
8171 * util/grub.d/10_hurd.in: Use submenus.
8172 * util/grub.d/10_kfreebsd.in: Likewise.
8173 * util/grub.d/10_linux.in: Likewise.
8174 * util/grub.d/10_netbsd.in: Likewise.
8175 * util/grub.d/20_linux_xen.in: Likewise.
8176 * util/grub.d/30_os-prober.in: Likewise.
8177 * util/grub.d/10_illumos.in: Add missing quoting.
8178 * util/grub.d/10_windows.in: Likewise.
8179
d9bef9bc
VS
81802012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8181
8182 Fix menu title instability bug.
8183
8184 * grub-core/commands/menuentry.c (options): New option --id.
8185 (grub_normal_add_menu_entry): New argument id. All users updated.
8186 (grub_cmd_menuentry): Handle --id.
8187 (grub_menu_init): Accept unknown arguments.
8188 * grub-core/normal/main.c (features): Add feature_menuentry_id and
8189 feature_menuentry_options.
8190 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
8191 saved_entry.
8192 (get_entry_number): Match with id as well.
8193 * include/grub/menu.h (grub_menu_entry): New member id.
8194 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
8195 * util/grub.d/00_header.in: Define menuentry_id_option.
8196 * util/grub.d/10_hurd.in: Define id.
8197 * util/grub.d/10_illumos.in: Likewise.
8198 * util/grub.d/10_kfreebsd.in: Likewise.
8199 * util/grub.d/10_linux.in: Likewise.
8200 * util/grub.d/10_netbsd.in: Likewise.
8201 * util/grub.d/10_windows.in: Likewise.
8202 * util/grub.d/20_linux_xen.in: Likewise.
8203 * util/grub.d/30_os-prober.in: Likewise.
8204
82052012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
8206
8207 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
8208 "scope" with "body".
8209
7c8d0ce7
VS
82102012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8211
8212 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
8213 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
8214 prot_size and prot_file_size.
8215
49de079b
VS
82162012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8217
8218 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
8219 All users updated. If easily=1 require raid-5/-6 to be full.
8220 (is_node_readable): Likewise.
8221 (scan_devices): Scan incomplete but readable LVs at the end.
8222 (grub_diskfilter_memberlist): Pull missing devices.
8223 (insert_array): Skip scanning until device is complete or scan is
8224 done otherwise.
8225 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
8226 check.
8227 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
8228 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
8229
aff05d45
MG
82302012-03-03 Matthew Garrett <mjg@redhat.com>
82312012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8232
8233 Avoid EFI boot services when loading Linux.
8234
8235 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
8236 avoid_efi_bootservices. All users updated.
8237 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
8238 argument avoid_efi_bootservices. All users updated.
8239 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
8240 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
8241 align, min_align, relocatable, prefered_address. All users updated.
8242 Allocate avoiding boot services if kernel is relocatable.
8243 (grub_cmd_linux): Check if kernel is relocatable.
8244 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
8245 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
8246 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
8247 avoid_efi_boot_services.
8248 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
8249 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
8250 (linux_kernel_params): Likewise.
8251
3935dde2
MG
82522012-03-03 Matthew Garrett <mjg@redhat.com>
82532012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8254
8255 Use EDID on EFI.
8256
8257 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
8258 datasize_out.
8259 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
8260 modes. Set gop_handle.
8261 (grub_video_gop_get_edid): New function.
8262 (grub_gop_get_preferred_mode): Likewise.
8263 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
8264 (grub_video_efi_gop_adapter): Set .get_edid.
8265 * include/grub/efi/edid.h: New file.
8266 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
8267
32107ec0
VS
82682012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8269
8270 * util/grub-install.in: Load efivars unconditionally.
8271
e70a2c50
VS
82722012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8273
8274 * po/Rules-piglatin: Change suffix from .po-update-en to
8275 .po-update-en-piglatin.
8276
8f9cace1
VS
82772012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8278
8279 Add a pig farm.
8280
8281 * po/piglatin.sed: New file.
8282 * po/en@piglatin.header: Likewise.
8283 * po/Rules-piglatin: Likewise.
8284 * po/README: Add en@piglatin to autogenerated languages.
8285
8f95d002
VS
82862012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8287
8288 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
8289 "Command for ...".
8290 * grub-core/commands/hdparm.c (options): Use "Display" rather than
8291 "Check" since we don't check anything.
8292 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
8293 is 64-bit one.
8294 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
8295 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
8296 (grub_md_sha512_real): Likewise.
8297
805a8dcc
VS
82982012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8299
8300 * grub-core/commands/gptsync.c: Fix typographic quoting.
8301 * grub-core/commands/ieee1275/suspend.c: Likewise.
8302 * grub-core/commands/parttool.c: Likewise.
8303 * grub-core/commands/search_wrap.c: Likewise.
8304 * grub-core/commands/videoinfo.c: Likewise.
8305 * grub-core/gfxmenu/gui_label.c: Likewise.
8306 * grub-core/hello/hello.c: Likewise.
8307 * grub-core/kern/emu/main.c: Likewise.
8308 * grub-core/net/net.c: Likewise.
8309 * grub-core/normal/menu.c: Likewise.
8310 * grub-core/normal/menu_text.c: Likewise.
8311 * grub-core/normal/misc.c: Likewise.
8312 * util/grub-editenv.c: Likewise.
8313 * util/grub-install.in: Likewise.
8314 * util/grub-kbdcomp.in: Likewise.
8315 * util/grub-mkconfig.in: Likewise.
8316 * util/grub-mknetdir.in: Likewise.
8317 * util/grub-mkrescue.in: Likewise.
8318 * util/grub-mkstandalone.in: Likewise.
8319 * util/grub-reboot.in: Likewise.
8320 * util/grub-set-default.in: Likewise.
8321 * util/grub-setup.c: Likewise.
8322 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8323
40211ab8
VS
83242012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
8327 * grub-core/commands/keystatus.c: Likewise.
8328 * grub-core/commands/loadenv.c: Likewise.
8329 * grub-core/commands/probe.c: Likewise.
8330 * grub-core/commands/regexp.c: Likewise.
8331 * grub-core/commands/true.c: Likewise.
8332 * grub-core/commands/videoinfo.c: Likewise.
8333 * grub-core/disk/cryptodisk.c: Likewise.
8334 * grub-core/disk/ldm.c: Likewise.
8335 * grub-core/disk/loopback.c: Likewise.
8336 * grub-core/disk/luks.c: Likewise.
8337 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8338 * grub-core/kern/disk.c: Likewise.
8339 * grub-core/kern/emu/hostdisk.c: Likewise.
8340
0c7d99c7
VS
83412012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8342
8343 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
8344 * util/grub-install.in: Add missing quote in the comment.
8345
e7d2559b
VS
83462012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8347
8348 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
8349 * grub-core/commands/lsmmap.c: Likewise.
8350 * grub-core/commands/minicmd.c: Likewise.
8351 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8352 * grub-core/commands/regexp.c: Likewise.
8353 * grub-core/gdb/gdb.c: Likewise.
8354 * grub-core/term/gfxterm.c: Likewise.
8355 * util/grub-mkconfig.in: Likewise.
8356 * util/grub-mkfont.c: Likewise.
8357 * util/grub-mklayout.c: Likewise.
8358 * util/grub-mknetdir.in: Likewise.
8359 * util/grub-mkrescue.in: Likewise.
8360 * util/grub.d/30_os-prober.in: Likewise.
8361
49ce9e50
VS
83622012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8363
8364 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
8365 with "Direct color" and "Packed" with "Packed pixel".
8366 (grub_cmd_videoinfo): Simplify legend.
8367
e4b791fa
VS
83682012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8371 absolutely unclear error message.
8372
fd1265cb
VS
83732012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8374
8375 * util/grub-mkstandalone.in: Remove confusing leftover print.
8376
8822a8a0
VS
83772012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8378
8379 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
8380 comments.
8381 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
8382 (GRUB_MOD_INIT): Likewise.
8383 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
8384 VGA mode.
8385 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
8386 comments.
8387 * util/grub-install.in (usage): Likewise.
8388 Spell ID in whole letters.
8389 Add missing ending dot.
8390 Quote variables.
8391 * util/grub-reboot.in: Fix capitalisation.
8392 * util/grub-set-default.in: Likewise.
8393
937fd0cc
VS
83942012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
8397 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
8398 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
8399 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
8400 Disable -Werror for -Wdeprecated-declarations.
8401 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
8402 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
8403 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
8404 (grub_util_get_grub_dev): Make luks handling dependent on
8405 HAVE_DEVICE_MAPPER and not __linux__.
8406 (get_win32_path): Fix format security.
8407 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
8408 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
8409 Don't try grub_find_zpool_from_dir.
8410 (grub_make_system_path_relative_to_its_root) [!__linux__]:
8411 #ifdef-out paresdir.
8412
1bab1ae3
VS
84132012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8414
8415 * util/grub-pe2elf.c (usage): Add missing noreturn.
8416 (write_section_data): Rename name to shname to avoid shadowing.
8417 (write_symbol_table): Rename name to symname to avoid shadowing.
8418 Fix write_reloc_section call.
8419
ef023e42
VS
84202012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8421
8422 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
8423 to ensure that it's after the last byte of .text.
8424
48afcb75
VS
84252012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8426
8427 * util/ieee1275/ofpath.c (my_isdigit): New function.
8428 (trailing_digits): Use my_isdigit.
8429 (strip_trailing_digits): Likewise.
8430
88d51eff
VS
84312012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8432
8433 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
8434 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
8435
17edc2ba
VS
84362012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8437
8438 * grub-core/kern/i386/pc/startup.S: Define __start.
8439
ad5518d7
VS
84402012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8441
8442 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
8443 strip already transforms he format.
8444
9e95e1bf
VS
84452012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8446
8447 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
8448
9cc3ee5c
VS
84492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 * util/grub-install.in: Add missing gettext init.
8452 * util/grub-kbdcomp.in: Likewise.
8453 * util/grub-mkconfig.in: Likewise.
8454 * util/grub-mknetdir.in: Likewise.
8455 * util/grub-mkrescue.in: Likewise.
8456 * util/grub-mkstandalone.in: Likewise.
8457 * util/grub-reboot.in: Likewise.
8458 * util/grub-set-default.in: Likewise.
8459 * util/grub.d/00_header.in: Likewise.
8460 * util/grub.d/10_hurd.in: Likewise.
8461 * util/grub.d/10_windows.in: Likewise.
8462 * util/grub.d/30_os-prober.in: Likewise.
8463 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8464
49e08a06
VS
84652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8466
8467 * po/Rules-swiss: Fix header comment.
8468
3809cb41
AV
84692012-02-29 Andreas Vogel <anvoit>
8470
8471 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
8472 resulted in leak of arguments.
8473
fa6ec573
VS
84742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8475
8476 * grub-core/boot/i386/pc/startup_raw.S: Use separate
8477 reed_solomon_size const definition instead of computing it since
8478 Apple assembler doesn't support the later.
8479
22899b9c
VS
84802012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8481
8482 * gentpl.py (kernel): Rewrite Apple part.
8483
a132afc3
VS
84842012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8485
8486 * include/grub/kernel.h (FOR_MODULES): Check module magic.
8487
9d742bd4
VS
84882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8489
8490 * util/grub-mkimagexx.c (locate_sections): Support non-standard
8491 ELF section gap.
8492 (load_image): Likewise.
8493
f04a9a21
VS
84942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8495
8496 * configure.ac: Fix a typo in previous commit.
8497
46cf439c
VS
84982012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8499
8500 Don't add -Wl,-N on Apple platform.
8501
8502 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
8503 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
8504
c4c48c54
VS
85052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8506
8507 * grub-core/Makefile.core.def (lzma_decompress): Use
8508 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
8509
31a12124
VS
85102012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8511
8512 * grub-core/genmod.sh.in: Rewrite the Apple part.
8513
4f3aa1af
VS
85142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8515
8516 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
8517 comparison.
8518
7bd8b0c7
VS
85192012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8520
8521 * acinclude.m4 (grub_CHECK_PIC): New test.
8522 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
8523
97304d7c
VS
85242012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8525
8526 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
8527 to avoid the warning.
8528
fb883812
VS
85292012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8530
8531 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
8532 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
8533 after. All users updated.
8534
a121c964
VS
85352012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8536
8537 Use the common size routine in hostfs so we can read disks as well.
8538
8539 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
8540 (grub_util_get_fd_size): ... this. Return size in bytes.
8541 All users updated.
8542 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
8543 grub_util_get_fd_size.
8544
c66d6410
VS
85452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8546
8547 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
8548 Add blocksize retrieval.
8549
dfc8aeb0
VS
85502012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8551
8552 * configure.ac: Restore CFLAGS after efiemu check.
8553
403e25a5
VS
85542012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
8557 Apple bug.
8558
382775d1
VS
85592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8560
8561 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
8562
6fd4e6e4
VS
85632012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8564
8565 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
8566 (grub_cmd_halt): Likewise.
8567
bea359d6
VS
85682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8569
8570 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
8571 for local arithmetics.
8572 Break %sp init into 2 instructions.
8573 Add 0 byte at the end.
8574
32eb6ee1
VS
85752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8576
8577 * grub-core/disk/diskfilter.c (read_segment): Initialise err
8578 before loops.
8579
e8377389
VS
85802012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8581
8582 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
8583 for context.
8584
8cb17de7
VS
85852012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8586
8587 * grub-core/disk/ldm.c (make_vg): Init part.name.
8588 (grub_ldm_detect): Silence spurious warning.
8589 (grub_util_is_ldm): Likewise.
8590
595717e6
VS
85912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8592
8593 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
8594 sane value to avoid a spurious warning.
8595
c4b7e588
VS
85962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8597
8598 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
8599 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
8600
59824957
VS
86012012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
8604 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
8605
70115b99
VS
86062012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8607
8608 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
8609 hardcoding the relevant info.
8610
56733740
VS
86112012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8612
8613 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
8614 missing const qualifiers.
8615 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
8616
43481481
VS
86172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8618
8619 * util/getroot.c [__APPLE__]: Add missing includes.
8620 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
8621
3cb38f01
VS
86222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8623
8624 * util/grub-mkimage.c (generate_image): Silence spurious warning.
8625
d9dbf11e
VS
86262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8627
8628 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
8629 avoid conflicts.
8630
0c42a45d
VS
86312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8632
8633 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
8634
46c34eb0
VS
86352012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8636
8637 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
8638 and grub_file_close call.
8639
99ce1597
VS
86402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8641
8642 Add LZSS Mach-O support (needed for new xnu kernelcache).
8643
8644 * grub-core/Makefile.core.def (xnu): Add file lzss.c
8645 * grub-core/loader/lzss.c: New file.
8646 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
8647 on Mach-O open failure.
8648 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
8649 Don't free cmdsXX in uncompressedXX is set.
8650 (grub_macho_file): Init new fields.
8651 New argument is_64bit. All users updated.
8652 Handle compressed. Error out if no suitable architecture is found.
8653 Don't close file.
8654 (grub_macho_open): New argument is_64bit. All users updated.
8655 * grub-core/loader/macho32.c: Add defines for new fields.
8656 * grub-core/loader/macho64.c: Likewise.
8657 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
8658 (grub_macho_parse): Handle compressed.
8659 Defer actual processing if compressed.
8660 (grub_macho_cmds_iterate): Decompress if compressed. New argument
8661 "filename". All users updated.
8662 (grub_macho_size): New argument "filename". All users updated.
8663 (grub_macho_get_entry_point): Likewise.
8664 (grub_macho_load): Handle compressed.
8665 * include/grub/macho.h (grub_macho_lzss_header): New struct.
8666 (GRUB_MACHO_LZSS_OFFSET): New define.
8667 (grub_decompress_lzss): New proto.
8668 * include/grub/machoload.h (grub_macho_file): New fields to handle
8669 compressed.
8670 (grub_macho_contains_macho64): Remove proto.
8671 (grub_macho_contains_macho32): Likewise.
8672 * util/grub.d/30_os-prober.in: Use kernel cache if available.
8673
ebd17d6f
VS
86742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8675
8676 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
8677
2702b4e4
VS
86782012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8679
8680 Fix make dist.
8681
8682 * Makefile.am (starfield_theme_files): New var.
8683 (starfield_DATA): Use starfield_theme_files.
8684 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
8685 Add bootcheck-related files.
8686 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
8687 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
8688 and font_char_metrics.txt.
8689 * grub-core/Makefile.core.def (kernel): Update extra_dist.
8690 (setjmp): Add lib/ia64/longjmp.S.
8691 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
8692 * po/POTFILES.in: Regenerate.
8693 * po/Rules-swiss: use DISTFILES.common.extra2 and not
8694 DISTFILES.common.extra1.
8695 * util/devicemap.c: Removed.
8696 * grub-core/lib/i386/relocator_backward.S: Likewise.
8697 * util/import_gcry.py: Remove unused files. Add extra_dist for
8698 ChangeLog.
8699
cf1adfdf
VS
87002012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8701
8702 * grub-core/gettext/gettext.c (grub_mofile_open): Call
8703 grub_gettext_delete_list before changing grub_gettext_max to avoid
8704 running out of array bounds.
8705
87062012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
8707
8708 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
8709 grub_vga_text_init/grub_vga_text_fini.
8710
cf1adfdf 87112012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
8712
8713 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
8714
541d92e9
VS
87152012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8716
8717 * configure.ac: Bump to 2.00~beta0.
8718
7931dddf
VS
87192012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8720
8721 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
8722 missing initialisation.
8723
f1b16fa3
VS
87242012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8725
8726 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
8727
83ddae23
VS
87282012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8729
8730 Support v2 xnu boot arguments.
8731
8732 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
8733 New argument fsbfreq_out.
8734 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
8735 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
8736 be used.
8737 * grub-core/loader/machoXX.c (grub_macho_load): New argument
8738 darwin_version.
8739 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
8740 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
8741 (grub_xnu_boot_params): Rename to ...
8742 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
8743 (grub_xnu_boot_params_v2): New struct.
8744
dc693fe6
VS
87452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8746
8747 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
8748 zeroing of CRC field before computing CRC.
8749
5a6e39c2
VS
87502012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8751
8752 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
8753 Change order of allocations to decrease fragmentation.
8754
6c21f5d7
VS
87552012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8756
8757 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
8758
cfe456dc
CW
87592012-02-27 Colin Watson <cjwatson@ubuntu.com>
8760
8761 Use write-combining MTRR to speed up video with buggy BIOSes.
8762
8763 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
8764 (cpuid): New define.
8765 (rdmsr): Likewise.
8766 (wrmsr): Likewise.
8767 (mtrr_base): Likewise.
8768 (mtrr_mask): Likewise.
8769 (grub_vbe_enable_mtrr_entry): New function.
8770 (grub_vbe_enable_mtrr): Likewise.
8771 (grub_vbe_disable_mtrr): Likewise.
8772 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
8773 control off to BIOS.
8774 (grub_video_vbe_init): Fill mtrr.
8775 (grub_video_vbe_fini): Disable mtrr.
8776 (grub_video_vbe_get_info_and_fini): Likewise.
8777 (grub_video_vbe_setup): Enable mtrr.
8778
e3c78337
CW
87792012-02-27 Colin Watson <cjwatson@ubuntu.com>
8780
8781 * include/grub/partition.h (grub_partition_map): Change prototype of
8782 embed to take a maximum value for nsectors.
8783 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
8784 * include/grub/fs.h (grub_fs): Likewise.
8785 * grub-core/partmap/msdos.c (embed_signatures): New array.
8786 (pc_partition_map_embed): Check for and avoid sectors matching any
8787 of the signatures in embed_signatures, up to max_nsectors.
8788 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
8789 returned sector map to max_nsectors.
8790 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
8791 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
8792 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
8793 * util/grub-setup.c (setup): Allow for the embedding area being
8794 split into multiple blocklists. Tell dest_partmap->embed the
8795 maximum number of sectors we care about.
8796
87972012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8798
8799 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
8800 Specify blocklist_install and reserver_first_sector for all fs.
8801 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
8802 blocklists.
8803
984b973f
VS
88042012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 * util/grub-install.in: Clarify strings.
8807 Fix source dir check.
8808
f122e0d6
RL
88092012-02-27 Richard Laager <rlaager@wiktel.com>
8810
8811 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
8812 "zfs" and "fuse.zfs" as synonyms.
8813
071114bb
VS
88142012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8815
8816 * configure.ac: Put platform and target_cpu substitutions back since
8817 they are used for directories.
8818
817e6abc
RL
88192012-02-27 Richard Laager <rlaager@wiktel.com>
88202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8821
8822 * util/grub.d/10_linux.in: Add ZFS-related arguments.
8823 * util/grub.d/20_linux_xen.in: Likewise.
8824
897b7419
RL
88252012-02-27 Richard Laager <rlaager@wiktel.com>
8826
8827 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
8828 with full paths.
8829
a414bd15
RL
88302012-02-27 Richard Laager <rlaager@wiktel.com>
8831
8832 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
8833 unescape.
8834
30ac48c4
VS
88352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8836
8837 Don't use insecure popen in getroot.
8838
8839 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
8840 (exec_pipe): ... here.
8841 (find_root_devices_from_poolname): Use exec_pipe.
8842
53f13848
VS
88432012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8844
8845 Remove platform and target_cpu replacement.
8846
8847 * configure.ac: Remove platform and target_cpu substitutions.
8848 * tests/util/grub-shell.in: Use modinfo.
8849 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
8850 explicitly.
8851
90cb2803
VS
88522012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8853
8854 Autodetect platform in grub-install but allow override.
8855
8856 * util/grub-install.in: Autodetect platform. Support --target and
8857 --directory. Read platform from modinfo.sh.
8858
b9136427
VS
88592012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 Support btrfs multi-volume probe.
8862
8863 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
8864 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
8865 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
8866 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
8867 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
8868 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
8869 grub_find_root_devices_from_btrfs if on btrfs.
8870
c36e5cd1
VS
88712012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8872
8873 Remove any awareness of *.c util files about target.
8874
8875 * Makefile.util.def (grub-setup): Split to ...
8876 (grub-bios-setup): ... and this.
8877 (grub-sparc64-setup): ... and this.
8878 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
8879 * docs/man/grub-setup.h2m: Split into ...
8880 * docs/man/grub-sparc64-setup.h2m: ... this.
8881 * docs/man/grub-bios-setup.h2m: ... and this.
8882 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
8883 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
8884 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
8885 (grub_target_addr_t): Remove.
8886 (grub_target_size_t): Remove.
8887 (grub_target_ssize_t): Remove.
8888 * util/grub-install.in: Use new grub-*-setup.
8889 * util/grub-mkimagexx.c (Elf_Word): New define.
8890 (Elf_Half): Likewise.
8891 (Elf_Section): Likewise.
8892 (ELF_ST_TYPE): Likewise.
8893 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
8894 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
8895
584b2f8a
VS
88962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8897
8898 Replace grub_target_addr with more appropriate types.
8899
8900 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
8901 grub_target_addr with grub_addr.
8902 * grub-core/commands/iorw.c (grub_cmd_read): Replace
8903 grub_target_addr with grub_port.
8904 (grub_cmd_write): Likewise.
8905 * grub-core/commands/memrw.c (grub_cmd_read): Replace
8906 grub_target_addr with grub_addr.
8907 (grub_cmd_write): Likewise.
8908 * grub-core/video/efi_uga.c (find_line_len): Likewise.
8909
5a0dc6fb
VS
89102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8911
8912 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
8913 const qualifier for vendor_guid.
8914
786aff6e
VS
89152012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
8918 const qualifier.
8919 (efiemu_memequal): Likewise.
8920 (find_variable): Likewise.
8921
49017b17
VS
89222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8923
8924 Fix missing console prototype on qemu-mips.
8925
8926 * include/grub/mips/qemu_mips/console.h: New file.
8927
c5988629
MG
89282012-02-27 Matthew Garrett <mjg@redhat.com>
89292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8930
8931 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
8932 * include/grub/efi/efi.h: Likewise.
8933 * include/grub/efi/api.h: Add guid for EFI-specified variables.
8934 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
8935 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
8936 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
8937 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
8938 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
8939
e33f8d69
MG
89402012-02-27 Matthew Garrett <mjg@redhat.com>
8941
8942 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
8943
fb312cd9
VS
89442012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8945
8946 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
8947 error.
8948
7134247c
VS
89492012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 * configure.ac: Remove inappropriate use of program_transform_name
8952 on grubdir and bootdir but allow explicit specification of those
8953 variables.
8954
6a313124
VS
89552012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 * util/grub-mknetdir.in (grub_prefix): Removed.
8958 (subdir): Use @bootdirname@ and @grubdirname@.
8959
2311c5ca
VS
89602012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8961
8962 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
8963
7d5d60f7
VS
89642012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8965
8966 * po/POTFILES.in: Regenerated.
8967
8151bc82
VS
89682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 Remove improper use of program_transform_name on pkglibrootdir.
8971
8972 * configure.ac (pkglibrootdir): Removed.
8973 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
8974 * util/grub-mkimage.c: Likewise.
8975
b4a6a533
VS
89762012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8977
8978 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
8979 warning.
8980
668f304f
VS
89812012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8982
8983 * util/grub-install.in: Use file identifier if no UUID is available
8984 or user explicitly prompted for it.
8985
665f2341
NP
89862012-02-27 Navdeep Parhar <nparhar@gmail.com>
8987
8988 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
8989 (freebsd_get_zfs): New function.
8990 (grub_freebsd_boot): Pass zfs UUID.
8991 (grub_cmd_freebsd): Set zfs UUID.
8992
8151bc82 89932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
8994
8995 * conf/Makefile.common (platformdir): Base on pkglibdir and not
8996 pkglibrootdir.
8997
e4c498a1
MG
89982012-02-27 Mike Gilbert <floppym@gentoo.org>
8999
9000 Add configure flag to control libzfs integration.
9001
9002 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
9003
1e9a9a3f
VS
90042012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
9007 device.
9008 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
9009 small devices.
9010
036985b8
VS
90112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9012
9013 Remove grub_{modname}_init and grub_{modname}_fini. They should never
9014 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
9015 be used on non-modules.
9016
9017 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
9018 Rename to grub_boot_init.
9019 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
9020 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
9021 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
9022 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
9023 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
9024 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
9025 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
9026 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
9027 includes.
9028 (grub_machine_init): Remove empty inits.
9029 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
9030 includes.
9031 (grub_machine_init): Remove empty inits.
9032 * grub-core/term/arc/console.c: Remove explicit proto.
9033 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
9034 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
9035 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9036 grub_at_keyboard_fini.
9037 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
9038 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
9039 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9040 grub_gfxterm_fini.
9041 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
9042 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
9043 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9044 grub_vgatext_fini.
9045 * grub-core/term/ieee1275/console.c: Remove explicit proto.
9046 * grub-core/term/serial.c (GRUB_MOD_INIT)
9047 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
9048 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9049 grub_serial_fini.
9050 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
9051 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
9052 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9053 grub_terminfo_fini.
9054 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
9055 (GRUB_MOD_FINI): Likewise.
9056 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
9057 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
9058 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9059 grub_video_radeon_fuloong2e_fini.
9060 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
9061 [LOONGSON]: Rename to grub_video_sis315pro_init.
9062 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9063 grub_video_sis315pro_fini.
9064 * grub-core/video/sm712.c (GRUB_MOD_INIT)
9065 [LOONGSON]: Rename to grub_video_sm712_init.
9066 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9067 grub_video_sm712_fini.
9068 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
9069 (grub_at_keyboard_fini): Likewise.
9070 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
9071 Don't declare grub_{modname}_init.
9072 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
9073 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
9074 New proto.
9075 (grub_keylayouts_fini) [!EMU]: Likewise.
9076 * include/grub/serial.h (grub_serial_init) [!EMU]:
9077 New proto.
9078 (grub_serial_fini) [!EMU]: Likewise.
9079 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
9080 New proto.
9081 (grub_terminfo_fini) [!EMU]: Likewise.
9082 * include/grub/video.h (grub_font_init) [!EMU]:
9083 New proto.
9084 (grub_font_fini) [!EMU]: Likewise.
9085 (grub_gfxterm_init) [!EMU]: Likewise.
9086 (grub_gfxterm_fini) [!EMU]: Likewise.
9087 (grub_video_sm712_init) [!EMU]: Likewise.
9088 (grub_video_sm712_fini) [!EMU]: Likewise.
9089 (grub_video_sis315pro_init) [!EMU]: Likewise.
9090 (grub_video_sis315pro_fini) [!EMU]: Likewise.
9091 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
9092 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
9093
d5534665
VS
90942012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9095
9096 Make nand a prefix for nand devices.
9097
9098 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
9099
10133b5f
VS
91002012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9101
9102 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
9103 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
9104
8e307a62
VS
91052012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9106
9107 * include/grub/env.h (grub_env_find): Remove prototype.
9108 * grub-core/kern/env.c (grub_env_find): Make static.
9109 (grub_env_set): Remove useless set.
9110
a4c65f34
VS
91112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 * grub-core/kern/i386/realmode.S: Remove useless align.
9114
d87893d5
VS
91152012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9116
9117 * include/grub/dl.h (grub_dl_load_file): Don't export.
9118
50159add
VS
91192012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9120
9121 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
9122 grub_dprintf.
9123
b2582b84
VS
91242012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9125
9126 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
9127 grub_errors.
9128 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
9129 not reloading whole superblock but only the part which is really needed.
9130 Remove useless grub_errors.
9131 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
9132 grub_errors.
9133
e2a83395
VS
91342012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9135
9136 Don't export grub_get_rtc.
9137
9138 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
9139 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
9140
e7d2a906
VS
91412012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
9144
6cf1363b
VS
91452012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9146
9147 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 9148 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 9149
eece3349
VS
91502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9151
9152 Remove prio_list.
9153
9154 * include/grub/list.h (grub_prio_list): Removed.
9155 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
9156 GRUB_COMMAND_PRIO_MASK.
9157 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
9158 GRUB_COMMAND_FLAG_ACTIVE.
9159 (grub_prio_list_insert): Removed.
9160 (grub_prio_list_remove): Likewise.
9161 (GRUB_AS_PRIO_LIST): Likewise.
9162 (GRUB_AS_PRIO_LIST_P): Likewise.
9163 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
9164 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
9165 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
9166 * grub-core/kern/command.c (grub_register_command_prio): Inline
9167 the prio_list code.
9168 (grub_unregister_command): Likewise.
9169
94f064b4
VS
91702012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9171
9172 Fix interrupt mixup from previous commit.
9173
9174 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
9175 (grub_realidt): New var.
9176 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
9177 Load idt.
9178 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
9179 New declaration.
9180 (grub_relocator16_boot): Set grub_relocator16_idt.
9181 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
9182 (LOCAL(realidt)): ... this.
9183 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
9184 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
9185 (grub_realidt): New variable.
9186
27317084
VS
91872012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
9190 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
9191 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
9192 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
9193 Gettextize.
9194 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
9195 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
9196 * po/POTFILES.in: Regenerate.
9197
47b40053
VS
91982012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9199
9200 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
9201 errors.
9202
2b343101
VS
92032012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9204
9205 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
9206 \0.
9207 (add_length): Likewise.
9208
ff27c3dd
LK
92092012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
92102012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
9211
9212 GDB serial and backtrace support.
9213
9214 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
9215 (prot_to_real): Likewise.
9216 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
9217 * grub-core/Makefile.core.def (backtrace): New module.
9218 (gdb): Likewise.
9219 * grub-core/gdb/cstub.c: New file.
9220 * grub-core/gdb/gdb.c: Likewise.
9221 * grub-core/gdb/i386/idt.c: Likewise.
9222 * grub-core/gdb/i386/machdep.S: Likewise.
9223 * grub-core/gdb/i386/signal.c: Likewise.
9224 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 9225 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
9226 * include/grub/backtrace.h: Likewise.
9227 * include/grub/gdb.h: Likewise.
9228 * include/grub/i386/gdb.h: Likewise.
9229
92302012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
9231
9232 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
9233 New function.
9234 (add_length): Likewise.
9235 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
9236 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
9237 proto.
9238 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
9239 __argp_get_display_len.
9240
ff27c3dd 92412012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
9242
9243 $"..." support in scripts.
9244
9245 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
9246 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
9247 * grub-core/script/yylex.l: Likewise.
9248 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
9249 value.
9250
ff27c3dd 92512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
9252
9253 * gentpl.py: Remove obsolete pkglib_DATA handling.
9254
ff27c3dd 92552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
9256
9257 Don't transform PACKAGE_TARNAME following a discussion on autoconf
9258 mailing list.
9259
9260 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
9261 * util/grub-kbdcomp.in: Likewise.
9262 * util/grub-mkconfig.in: Likewise.
9263 * util/grub-mkconfig_lib.in: Likewise.
9264 * util/grub-mknetdir.in: Likewise.
9265 * util/grub-mkrescue.in: Likewise.
9266 * util/grub-mkstandalone.in: Likewise.
9267 * util/grub-reboot.in: Likewise.
9268 * util/grub-set-default.in: Likewise.
9269 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9270
ff27c3dd 92712012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
9272
9273 Remove GRUB_PREFIX.
9274
9275 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
9276 * util/grub.d/00_header.in: Compute prefix in the only place it's still
9277 used for backward compatibility.
9278
ff27c3dd 92792012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
9280
9281 Add new all_video module.
9282
9283 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
9284 * grub-core/Makefile.core.def (all_video): New module.
9285 * grub-core/genmoddep.awk: Generate dependency of all_video from
9286 video.lst.
9287 * grub-core/lib/fake_module.c: New file.
9288 * grub-core/normal/main.c (features): Add feature_all_video_module.
9289 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
9290 don't do explicit search again.
47454da5 9291 insmod all_video in load_video if available.
22c7ce85 9292
ff27c3dd 92932012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
9294
9295 Another round of string clarification and adding TRANSLATORS comments.
9296
ff27c3dd 92972012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
9298
9299 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
9300
ff27c3dd 93012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
9302
9303 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
9304 to grub_ssize_t.
9305 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
9306 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
9307
ff27c3dd 93082012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
9309
9310 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
9311 trailing newline implicitly. All users updated.
9312
ff27c3dd 93132012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
9314
9315 Implement serial on IEEE1275 and EFI.
9316
9317 * docs/grub.texi (Platform-specific limitations): Fix the columen video
9318 on emu. Mention arc and emu as the only platforms without serial
9319 support.
9320 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
9321 ieee1275 platforms.
9322 * grub-core/term/efi/serial.c: New file.
9323 * grub-core/term/ieee1275/serial.c: Likewise.
9324 * grub-core/term/serial.c (grub_serial_find): Disable direct port
9325 specification if no ns8250 driver is available.
9326 (grub_cmd_serial): Likewise.
9327 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
9328 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
9329 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
9330 (grub_efi_parity_type_t): New type.
9331 (grub_efi_stop_bits_t): Likewise.
9332 (grub_efi_serial_io_interface): New struct.
9333 * include/grub/serial.h (grub_serial_port): Make 'broken' field
9334 available for all interfaces.
9335 Add EFI and IEEE1275 fields.
9336 (grub_ofserial_init): New proto.
9337 (grub_efiserial_init): Likeiwse.
9338 * util/grub.d/00_header.in: Don't check for the presence of serial
9339 module.
9340
ff27c3dd 93412012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
9342
9343 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
9344 name as if it was an alias.
9345
114076ef
VS
93462012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9347
9348 * grub-core/commands/lsacpi.c (options): Fix typo.
9349
6a656b0e
VS
93502012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9351
9352 Convert grub-emu to argp.
9353
9354 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
9355 emu.
9356 * util/argp_common.c: Rename to ...
9357 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
9358 Add missing includes.
9359 * grub-core/kern/emu/main.c: Convert to argp.
9360 * po/POTFILES.in: Regenerate.
9361 * util/grub-install.in (usage): Make first letter lowcase in messages
9362 for uniformity.
9363 * util/grub-setup.c (options): Likewise.
9364
1e3f8ae8
VS
93652012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9366
9367 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
9368 Put back accidently commented-out code.
9369
ed167a80
VS
93702012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
9373 loop check using Brent algorithm.
9374 (grub_hfsplus_btree_search): Likewise.
9375
6753c0ec
VS
93762012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9377
9378 * util/grub-install.in: Fix usage of wrong device for PreP install.
9379
4e27343f
VS
93802012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9381
9382 * conf/Makefile.common (CFLAGS_GNULIB): Add
9383 -Wno-unsafe-loop-optimizations.
9384 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
9385 on tools.
9386 * grub-core/commands/legacycfg.c: Add pragma to skip
9387 -Wunsafe-loop-optimizations.
9388 (check_password_md5_real): Fix loop counter type.
9389 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
9390 reading.
9391 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
9392 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
9393 loop condition.
9394 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
9395 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
9396 * grub-core/net/net.c (grub_net_route_address): Add safety loop
9397 condition.
9398 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
9399 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
9400 avoid possible infinite loops.
9401 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
9402 and -Wunsafe-loop-optimizations.
9403 * grub-core/script/yylex.l: Likewise.
9404 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
9405 (print_glyphs): Avoid infinite loops.
9406 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
9407
697f18b0
GS
94082012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
9409
9410 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
9411 to avoid infinite loop.
9412 (disp_acpi_rsdt_table): Likewise.
9413
274416e8
VS
94142012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9415
9416 * grub-core/font/font.c (grub_font_load): Add support for default
9417 path for fonts ($prefix/fonts).
9418 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
9419 for checking if string is a path.
9420 * grub-core/normal/main.c (features): Add feature_default_font_path.
9421 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
9422 * util/grub.d/00_header.in: Use default directory if possible.
9423 * util/grub-install.in: Install unicode.pf2.
9424
b3e08622
VS
94252012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9426
9427 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
9428 * po/Rules-swiss: New file.
9429 * po/swiss.sed: Likewise.
9430
fe42ce09
VS
94312012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9432
9433 * grub-core/fs/btrfs.c (find_device): Fix typos.
9434 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
9435 * util/grub-mkrelpath.c (argp_parser): Likewise.
9436 Reported by: Yuri Chornoivan.
9437
72f1d065
DO
94382012-02-23 Dalet Omega <daletomega@gmail.com>
9439
9440 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
9441 for usual informative messages.
9442
c5884973
DO
94432012-02-23 Dalet Omega <daletomega@gmail.com>
9444
9445 Starfield theme.
9446
9447 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
9448 * conf/Makefile.common: Define starfielddir.
9449 * configure.ac: Configure starfield.
9450 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
9451 * themes/starfield/README: Likewise.
9452 * themes/starfield/blob_w.png: Likewise.
9453 * themes/starfield/boot_menu_c.png: Likewise.
9454 * themes/starfield/boot_menu_e.png: Likewise.
9455 * themes/starfield/boot_menu_n.png: Likewise.
9456 * themes/starfield/boot_menu_ne.png: Likewise.
9457 * themes/starfield/boot_menu_nw.png: Likewise.
9458 * themes/starfield/boot_menu_s.png: Likewise.
9459 * themes/starfield/boot_menu_se.png: Likewise.
9460 * themes/starfield/boot_menu_sw.png: Likewise.
9461 * themes/starfield/boot_menu_w.png: Likewise.
9462 * themes/starfield/slider_c.png: Likewise.
9463 * themes/starfield/slider_n.png: Likewise.
9464 * themes/starfield/slider_s.png: Likewise.
9465 * themes/starfield/src/blob_nw.xcf: Likewise.
9466 * themes/starfield/src/bootmenu/: Likewise.
9467 * themes/starfield/src/bootmenu/center.xcf: Likewise.
9468 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
9469 * themes/starfield/src/bootmenu/side.xcf: Likewise.
9470 * themes/starfield/src/slider_c.xcf: Likewise.
9471 * themes/starfield/src/slider_n.xcf: Likewise.
9472 * themes/starfield/src/slider_s.xcf: Likewise.
9473 * themes/starfield/src/terminalbox/: Likewise.
9474 * themes/starfield/src/terminalbox/center.xcf: Likewise.
9475 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
9476 * themes/starfield/src/terminalbox/side.xcf: Likewise.
9477 * themes/starfield/starfield.png: Likewise.
9478 * themes/starfield/terminal_box_c.png: Likewise.
9479 * themes/starfield/terminal_box_e.png: Likewise.
9480 * themes/starfield/terminal_box_n.png: Likewise.
9481 * themes/starfield/terminal_box_ne.png: Likewise.
9482 * themes/starfield/terminal_box_nw.png: Likewise.
9483 * themes/starfield/terminal_box_s.png: Likewise.
9484 * themes/starfield/terminal_box_se.png: Likewise.
9485 * themes/starfield/terminal_box_sw.png: Likewise.
9486 * themes/starfield/terminal_box_w.png: Likewise.
9487 * themes/starfield/theme.txt: Likewise.
9488
17d73325
VS
94892012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9490
9491 * util/grub.d/00_header.in: Add missing export theme.
9492
dbebaf92
VS
94932012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9494
9495 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
9496 already included.
9497 Reported by: Eren D.
9498
3d68bffb
VS
94992012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 * conf/Makefile.common (grubdatadir): Removed.
9502 (Makefile.am): Move eveything grubdata to pkgdata.
9503
4b59234d
VS
95042012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9505
9506 * grub-core/commands/acpihalt.c (get_sleep_type):
9507 Remove unused variable.
9508
463dcadc
VS
95092012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
9512 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
9513 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
9514 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
9515 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
9516 i18n with gettext no-op.
9517 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
9518 GRUB_ACPI_OPCODE_STRING_CONST.
9519 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
9520 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
9521
e5b90c82
VS
95222012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 * po/POTFILES.in: Regenerate.
9525
2a704ca9
VS
95262012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
9529 -Wno-error=missing-noreturn.
9530
84f9d341
VS
95312012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
9534 condition to avoid possibly infinite loops.
9535 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
9536 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
9537
d46683f9
VS
95382012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
9541 condition to avoid possibly infinite loops.
9542
c44866b2
VS
95432012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9544
9545 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
9546 on show_error.
9547
96790539
VS
95482012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9549
9550 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
9551
1ba7e295
VS
95522012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
9555
21ffe8f1
VS
95562012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9557
9558 * util/bin2h.c (usage): Add missing attribute noreturn.
9559
0ccb6b3c
VS
95602012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
9563 if the size isn't divisible by 512.
9564
b00d7fb6
VS
95652012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9566
9567 Make list_push and list_remove functions rather than inline functions
9568 to decrease size and avoid aliasing violations.
9569
9570 * include/grub/list.h (grub_list_push): Move to ...
9571 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
9572 * include/grub/list.h (grub_list_remove): Move to ...
9573 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
9574
9d369087
VS
95752012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9576
9577 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
9578 and -Wunused-result.
9579
af0250d9
VS
95802012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9581
9582 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
9583 Reported by: Seth Goldberg
9584
aad32b14
VS
95852012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9586
9587 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
9588
ac96441c
ST
95892012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9590
9591 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
9592 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
9593 command line.
9594 * docs/grub.texi (Simple configuration): Document
9595 GRUB_CMDLINE_GNUMACH.
9596
95972012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
9598
9599 * conf/Makefile.common (platform_SCRIPTS): New variable.
9600 (platform_PROGRAMS): Likewise.
9601 * gentpl.py: Mark *,module and *.image for install.
9602 * grub-core/gdb_grub.in: Add a notice of expected environment.
9603 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
9604 (gmodule.pl): Likewise.
9605
ac96441c 96062012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
9607
9608 Replace grub_checkkey with grub_getkey_noblock.
9609
9610 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
9611 (grub_getkey_noblock): ... this. All users updated.
9612
ac96441c 96132012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
9614
9615 * grub-core/kern/emu/console.c: Move to ...
9616 * grub-core/term/emu/console.c: ...here.
9617 (grub_ncurses_getkey): Fix return value if no key is detected.
9618
e51b5666
VS
96192012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
9622 (grub_unit_test_fini): Likewise.
9623 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
9624
96252012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 * include/grub/test.h (GRUB_UNIT_TEST)
9628
d9a62292
VS
96292012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9630
9631 * grub-core/script/execute.c (grub_script_break): Clarify logic.
9632 Better error handling.
9633 (grub_script_return): Likewise.
9634 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
9635
77c9182f
VS
96362012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9637
9638 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
9639 rimplicit redifinition.
9640
edb13cf9
VS
96412012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9642
9643 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
9644 GRUB.
9645
a9e9dc7c
VS
96462012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
9649 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
9650 prompt here.
9651
b4ba8e02
VS
96522012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9653
9654 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
9655 as GRUB_ERR_BUG. Don't malloc if no device is available.
9656
dded5540
VS
96572012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9658
9659 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
9660 Mark calling with invalid term as GRUB_ERR_BUG.
9661
0cf69874
VS
96622012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9663
9664 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
9665 packets rather than raising an error.
9666
59bfe502
VS
96672012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9668
9669 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
9670 in if.
9671
db5fc596
VS
96722012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9673
9674 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
9675 diagnostic to dprintf.
9676 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9677
e4b7f404
VS
96782012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9679
9680 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
9681 device name.
9682
e7b02f9e
VS
96832012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9684
9685 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
9686 (grub_ntfs_iterate_dir): Likewise.
9687
0331e102
VS
96882012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9689
9690 Efiemu stylistic fixes and gettext.
9691
9692 * grub-core/efiemu/i386/loadcore32.c
9693 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
9694 * grub-core/efiemu/i386/loadcore64.c
9695 (grub_arch_efiemu_relocate_symbols64): Likewise.
9696 * grub-core/efiemu/i386/pc/cfgtables.c
9697 (grub_machine_efiemu_init_tables): Likewise.
9698 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
9699 (grub_efiemu_loadcore_initXX): Add a filename argument.
9700 All users updated.
9701 Improved error message.
9702 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
9703 Add a filename argument.
9704 All users updated.
9705 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
9706 Reclassify double relocation as GRUB_ERR_BUG.
9707
306fc074
VS
97082012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9709
9710 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
9711 handling.
9712
794d8ef2
VS
97132012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9714
9715 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
9716 on partition.
9717
97182012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
9719
9720 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
9721
794d8ef2 97222012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
9723
9724 Improve string. Gettextize.
9725
78dde88e
VS
97262012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
9729 utils.
9730 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
9731
4786a90f
VS
97322012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9733
9734 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
9735 [GRUB_UTIL]: New function.
9736 (insert_array) [GRUB_UTIL]: Store partmaps.
9737 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
9738 partmaps.
9739 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
9740 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
9741 (probe_abstraction): Print diskfilter and not raid.
9742 Reported by: Lennart Sorensen
9743
0b6225bd
VS
97442012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9745
9746 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
9747 * util/grub-mkimagexx.c (MASK3): New define.
9748 (add_value_to_slot_20b): Use MASK3.
9749 (add_value_to_slot_21): Likewise.
9750 (relocate_addresses): Fix format specification.
9751 (load_image): Explicitly init symtab_section.
9752
b055f8f6
VS
97532012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9754
9755 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
9756 (grub_util_biosdisk_get_grub_dev): Fix format specification.
9757
b77c2fb7
VS
97582012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9759
9760 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
9761 on powerpc.
9762 Reported by: Lennart Sorensen
9763
e3ec28ab
VS
97642012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9765
9766 * gentpl.py: Add missing license header.
9767 * docs/grub.texi: Update copyright year.
9768
c8d9ead6
GS
97692012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
9770
9771 Source grub-mkconfig_lib from the build directory at build time.
9772 Suggested by: Vladimir Serbinenko.
9773
9774 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
9775 * util/grub-install.in: Define pkgdatadir if not already set, and source
9776 grub-mkconfig_lib from there.
9777 * util/grub-kbdcomp.in: Likewise.
9778 * util/grub-mkconfig.in: Likewise.
9779 * util/grub-mknetdir.in: Likewise.
9780 * util/grub-mkrescue.in: Likewise.
9781 * util/grub-mkstandalone.in: Likewise.
9782 * util/grub-reboot.in: Likewise.
9783 * util/grub-set-default.in: Likewise.
9784 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9785
ebcecdf1
VS
97862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 Increase warning level.
9789
9790 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
9791 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
9792 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
9793 (TARGET_CFLAGS): Likewise.
9794 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
9795 * grub-core/Makefile.core.def (decompressor_xz): Add
9796 -Wno-unreachable-code.
9797 (normal): Add -Wno-redundant-decls.
9798 (xzio): Add -Wno-unreachable-code.
9799 (lzopio): Add -Wno-redundant-decls -Wno-error.
9800 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
9801 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
9802 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
9803 * grub-core/kern/dl.c: Add exception to -Wcast-align.
9804 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
9805 * grub-core/kern/i386/coreboot/init.c: Add exception to
9806 -Wsuggest-attribute=noreturn.
9807 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
9808 * grub-core/kern/ia64/dl_helper.c: Likewise.
9809 * grub-core/kern/mips/dl.c: Likewise.
9810 * grub-core/kern/sparc64/dl.c: Likewise.
9811 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
9812 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
9813 (memcmp): Likewise.
9814 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
9815 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
9816 * grub-core/loader/mips/linux.c: Likewise.
9817 * grub-core/loader/multiboot_elfxx.c: Likewise.
9818 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
9819 * grub-core/video/sm712.c: Add exception to -Wcast-align.
9820 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
9821 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
9822 fixme.
9823 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9824 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
9825 Fix prototype.
9826
37bb97fe
VS
98272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9828
9829 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
9830 address.
9831
29a3550b
VS
98322012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
9835 Avoid improper use of strings.
9836 (grub_cmd_legacy_initrdnounzip): Likewise.
9837
dfdffd0d
VS
98382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9839
9840 * include/grub/emu/misc.h (grub_util_warn): Add missing format
9841 attribute.
9842 (grub_util_info): Likewise.
9843 (grub_util_error): Likewise.
9844
102fae4a
VS
98452012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9846
9847 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
9848 * util/grub-fstest.c (fstest): Likewise.
9849
7e94d044
VS
98502012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9851
9852 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
9853 (grub_md_sha512_real): Likewise.
9854 (grub_util_get_geli_uuid): Likewise.
9855 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
9856 (grub_util_biosdisk_open): Fix format specification.
9857 Respect format security.
9858 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
9859 (xrealloc): Likewise.
9860 (xasprintf): Likewise.
9861
5ebd9769
VS
98622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * util/import_gcry.py: Include grub/crypto.h in init.c.
9865
495fc8c1
VS
98662012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9867
9868 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
9869 (generate_image): Make prefix a const char *.
9870 Fix format specifications. Respect format security.
9871 Avoid void * arithmetics.
9872 Avoid shadowing.
9873 (argp_parser): Remove unused variable. Respect format security.
9874 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
9875 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
9876 (count_funcs): Remove unused variable.
9877 (relocate_addresses): Fix format specification.
9878 Disable x86-64 with elf32. Remove unused variables.
9879 (add_fixup_entry): Avoid shadowing.
9880 (make_reloc_section): Fix format specification.
9881 Use assert.
9882 (locate_sections): Fix format specifications.
9883 (load_image): Avoid shadowing.
9884
043c2ea3
VS
98852012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9886
9887 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
9888 Fix format specifications. Respect format security.
9889 Don't translate already translated grub_errmsg.
9890 (argp_parser): Remove unused variable
9891
3ec65a81
VS
98922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9893
9894 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
9895
a4d9fe4a
VS
98962012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9897
9898 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
9899 (main): Likewise. Use xmalloc. Respect format security.
9900
15b81d49
VS
99012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
9904 a const char *.
9905 (argp_parser): Remove unused variable.
9906
31731fc0
VS
99072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
9910 (add_pixel): Make static.
9911 (add_font): Likewise.
9912 (write_string_section): Make name and str a const char *.
9913 (write_be16_section): Make name a const char *.
9914 (print_glyphs): Make static.
9915 (write_font_ascii_bitmap): Likewise.
9916 (write_font_width_spec): Likewise.
9917 (write_font_pf2): Likewise.
9918 (argp_parser): Remove unused variable.
9919 Respect format security.
9920 (main): Avoid shadowing. Respect format security.
9921
0809527b
VS
99222012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9923
9924 * util/grub-editenv.c (argp_parser): Make static.
9925 (create_envblk_file): Use xmalloc.
9926 (open_envblk_file): Likewise.
9927 Resepect format security.
9928 (set_variables): Respect format security.
9929
45b0c8b7
VS
99302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9931
9932 * util/getroot.c (grub_find_device): Respect format security.
9933 (get_mdadm_uuid): Remove unused variable.
9934 (grub_util_pull_device): Dont call gettext on already translated
9935 grub_errmsg.
9936 (find_system_device): Remove unused variable.
9937 (grub_util_get_grub_dev): Likewise.
9938 (grub_make_system_path_relative_to_its_root): Respect format security.
9939
1b024b4e
VS
99402012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9941
9942 * util/grub-fstest.c (execute_command): Make first argument
9943 a const char *.
9944 (read_file): Avoid shadowing.
9945 Reuse underlying error message if device open fails.
9946 (cmd_cmp): Respect format security.
9947 (root): Make const char *.
9948 (fstest): Remove args argument and use global copy.
9949 Respect format security.
9950 (argp_parser): Make static.
9951 (main): Make default_root const char *.
9952
5d1d4e28
VS
99532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9954
9955 * util/grub-mount.c (root): Make const char *.
9956 (execute_command): Make first argument a const char *.
9957 (fuse_init): Respect format security.
9958 (argp_parser): Make static. Remove unused variable.
9959 (main): Make default_root a const char *.
9960 Respect format security.
9961
36eb7379
VS
99622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9963
9964 * util/grub-probe.c (probe): Don't call gettext on already translated
9965 grub_errmsg.
9966 Remove unused variables.
9967 (argp_parser): Remove unused variable.
9968
76fb2ea9
VS
99692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9970
9971 * util/grub-script-check.c (argp_parser): Remove unused variable.
9972 (main): Rename read to curread to avoid shadowing.
9973
56c98584
VS
99742012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9975
9976 * util/misc.c (grub_util_write_image_at): Fix format specification.
9977 (grub_util_write_image): Likewise.
9978 (grub_script_execute_argument_to_string): Removed (unused).
9979 (grub_script_execute_menuentry): Likewise.
9980 (grub_putchar): Likewise.
9981
164ebb48
VS
99822012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9983
9984 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
9985 (FUNCTION) [GRUB_UTIL]: Likewise.
9986 (VARIABLE) [GRUB_UTIL]: Likewise.
9987
44318d61
VS
99882012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
9991 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
9992
31a26002
VS
99932012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
9996 buffer.
9997
99982012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
10001 (LzmaEnc_SaveState): Removed (unused).
10002 (LzmaEnc_RestoreState): Likewise.
10003 (LzmaEnc_InitPriceTables): Made static.
10004 (LzmaEnc_Construct): Likewise.
10005 (LzmaEnc_FreeLits): Likewise.
10006 (LzmaEnc_Destruct): Likewise.
10007 (LzmaEnc_Init): Likewise.
10008 (LzmaEnc_InitPrices): Likewise.
10009 (LzmaEnc_Finish): Likewise.
10010 (LzmaEnc_PrepareForLzma2): Removed (unused).
10011 (LzmaEnc_MemPrepare): Likewise.
10012 (LzmaEnc_GetNumAvailableBytes): Likewise.
10013 (LzmaEnc_GetCurBuf): Likewise.
10014 (LzmaEnc_CodeOneMemBlock): Likewise.
10015
6fa67967
VS
100162012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10017
10018 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
10019 (grub_util_ldm_embed): Likewise.
10020
9a7428e6
VS
100212012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10022
10023 * util/grub-editenv.c (print_var): Rename name to varname to
10024 avoid shadowing.
10025 (main): Rename index to curindex to avoid shadowing.
31a26002 10026 Make filename a const char *.
9a7428e6 10027
4f96abd1
VS
100282012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10029
10030 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
10031 to arg_getline to avoid shadowing.
10032
44d10dad
VS
100332012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
10036 disk_ to avoid shadowing.
10037
340ba63e
VS
100382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10039
10040 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
10041 curindex to avoid shadowing.
10042 Make static.
10043 (MatchFinder_GetNumAvailableBytes): Make static.
10044
22965bce
VS
100452012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10046
10047 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
10048 avoid shadowing.
10049
7b5784d4
VS
100502012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10051
10052 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
10053 argument from encrypt to do_encrypt to avoid shadowing.
10054
6f48ca01
VS
100552012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10056
10057 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
10058 incorrect nesting of #if's.
10059
a4ea2dff
VS
100602012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10061
10062 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
10063 checks which are always false on some platforms.
10064 (grub_cmd_lsacpi): Likewise.
10065 * grub-core/kern/misc.c (grub_strtoul): Likewise.
10066 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
10067 Likewise.
10068
def9fc1b
VS
100692012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10070
10071 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
10072 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
10073
a67b2a04
VS
100742012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
10077 re_dfa_t to avoid breaking alignment invariants.
10078 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
10079 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
10080
44c6828d
VS
100812012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
10084 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
10085
bebe0dd0
VS
100862012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10087
10088 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
10089 Fix declaration.
10090
a9cdb3cf
VS
100912012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10092
10093 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
10094 conserve alignment invariants.
10095 (grub_ehci_ehcc_read16): Likewise.
10096 (grub_ehci_oper_read32): Likewise.
10097 (grub_ehci_oper_write32): Likewise.
10098 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10099 Conserve alignment invariants.
10100
ccc3b1b8
VS
101012012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10102
10103 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
10104 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
10105 declarations.
10106
987fbd95
VS
101072012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
10110 Remove unused variable.
10111
0df363f3
VS
101122012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10113
10114 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
10115 Remove set in if.
10116
b2c0c4a6
VS
101172012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 * include/grub/net.h: Remove double declarations.
10120
690c531f
VS
101212012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 Remove "payload" command in ia64 Linux loader since I couldn't
10124 find any evidence of it being used for anything.
10125 Replace "relocate" command with an environment variable
10126
10127 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
10128 fields.
10129 (ia64_boot_payload): Removed.
10130 (last_payload): Likewise.
10131 (RELOCATE_OFF): Likewise.
10132 (RELOCATE_ON): Likewise.
10133 (RELOCATE_FORCE): Likewise.
10134 (relocate): Likewise.
10135 (free_pages): Don't free payloads.
10136 (grub_load_elf64): Use common error messages.
10137 Use "linux_relocate" variable.
10138 Increase the space after boot_params.
10139 (grub_cmd_payload): Removed.
10140 (grub_cmd_relocate): Likewise.
10141 (grub_cmd_fpswa): Improve messages.
10142 (cmd_payload): Removed.
10143 (cmd_relocate): Likewise.
10144 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
10145 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
10146
01783768
VS
101472012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10148
10149 Convert UHCI to DMA framework.
10150
10151 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
10152 (grub_uhci_pci_iter): Fill new members
10153 (grub_alloc_td): Use P2V and V2P functions.
10154 (grub_free_queue): Likewise.
10155 (grub_alloc_qh): Likewise.
10156 (grub_uhci_setup_transfer): Likewise.
10157 (grub_uhci_check_transfer): Likewise.
10158
43206939
VS
101592012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10160
10161 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
10162 Remove assignment in if while on it.
10163
571e140e
VS
101642012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 * util/grub-mkstandalone.in: Fix modules directory.
10167
a9d96eeb
VS
101682012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10169
10170 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
10171 on i386-pc target.
10172 (argp_parser): Accept "auto" as compression specification.
10173
e4e37e8d
VS
101742012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10175
10176 Fix `help' with unloaded modules.
10177
10178 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
10179 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
10180 (grub_dyncmd_dispatcher): Small stylistic fix.
10181 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
10182 explicit help is requested.
10183
e1ea3ade
VS
101842012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10185
10186 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
10187 Explicitly init restart while on it.
10188
27556881
VS
101892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10190
10191 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
10192 uninited variable.
10193
d65f6b36
VS
101942012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 * util/grub-mknetdir.in: Use . rather than source for POSIX
10197 compatibility.
10198
0a1e473c
VS
101992012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
10202
ce6647c8
VS
102032012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10204
10205 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
10206 variable.
10207
66747894
VS
102082012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10209
10210 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
10211 without quotes.
10212
71645f6e
VS
102132012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10214
10215 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
10216
0e1c1f61
VS
102172012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10218
10219 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
10220 iteration of partitions.
10221
9c4b5c13
VS
102222012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10223
10224 Improve gettext support. Stylistic fixes and error handling fixes while
10225 on it.
10226
215c90cb
VS
102272012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
10228
10229 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
10230 part. Instead setup the correct stack in RM.
10231 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
10232 for stack.
10233 * include/grub/i386/relocator_private.h: New file.
10234
b5c1f9bf
VS
102352012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10236
10237 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
10238 argument.
10239 * util/grub-fstest.c (options): Add missing DEVICE part.
10240
b525fd83
VS
102412012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10242
10243 Clarify and unify messages.
10244
10245 * grub-core/commands/hashsum.c (options): Unify messages.
10246 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
10247 literal-only message as translatable.
10248 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
10249 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
10250 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
10251 commands.
10252 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
10253 key, not the key used to unlock. Clarify what it's used for.
10254 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
10255 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
10256 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
10257 * util/grub-editenv.c (options): Unify "verbose" message.
10258 * util/grub-fstest.c (read_file): Unify error message.
10259 (fstest): Add quotes around commands.
10260 (options): Unify "verbose" message.
10261 * util/grub-install.in: Add quotes around variable name.
10262 * util/grub-kbdcomp.in: Unify error message.
10263 * util/grub-mkfont.c (main): Likewise.
10264 * util/grub-mkrescue.in: Likewise.
10265 * util/grub-mklayout.c (options): Unify "verbose" message.
10266 * util/grub-mkstandalone.in: Unify help and verbose messages.
10267 * util/grub-mount.c (options): Unify "verbose" message.
10268 * util/grub-probe.c (options): Likewise.
10269 * util/grub-script-check.c (options): Likewise.
10270 * util/grub-setup.c (setup): Unify no-terminator message.
10271 (options): Use DEVICE and not DEV.
10272 Unify "verbose" message.
10273 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
10274
0ae70393
VS
102752012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 Improve and unify messages.
10278
10279 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
10280 name. All users updated.
10281 Print filename in error.
10282 (read_device_map): Print filename in error.
10283 * util/getroot.c (grub_guess_root_devices): Print filename in error.
10284 (grub_util_get_os_disk): Likewise.
10285 (grub_util_biosdisk_get_grub_dev): Likewise.
10286 (grub_util_check_block_device): Likewise.
10287 (grub_util_check_char_device): Likewise.
10288 (grub_make_system_path_relative_to_its_root): Likewise.
10289 * util/grub-editenv.c (create_envblk_file): Likewise.
10290 (open_envblk_file): Likewise.
10291 (write_envblk): Likewise.
10292 * util/grub-fstest.c (cmd_cp): Likewise.
10293 (cmd_cat): Likewise.
10294 (cmd_cmp): Likewise.
10295 * util/grub-menulst2cfg.c (main): Likewise.
10296 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
10297 (write_font_width_spec): Likewise.
10298 (write_font_pf2): Likewise.
10299 * util/grub-mkimage.c (generate_image): New argument outname.
10300 All users updated.
10301 Remove unreacheable message.
10302 (options): Unify messages.
10303 (help_filter): Likewise.
10304 * util/grub-mklayout.c (usage): Removed (unused).
10305 (main): Print filename in error.
10306 * util/grub-mkrescue.in: Fix wrong quoting.
10307 * util/grub-setup.c (setup): Print filename in error.
10308 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
10309 (check_sas): Likewise.
10310 * util/misc.c (grub_util_get_fp_size): Removed.
10311 (grub_util_get_image_size): Print filename in error.
10312 (grub_util_read_at): Removed.
10313 (grub_util_read_image): Print filename in error.
10314 (grub_util_load_image): Likewise.
10315 (grub_util_write_image_at): New argument filename. All users updated.
10316 Print filename in error.
10317 (grub_util_write_image): New argument filename. All users updated.
10318 Print filename in error.
10319 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
10320 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
10321
0a96117d
VS
103222012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10323
10324 * grub-core/Makefile.core.def (pxechain): New module.
10325 * grub-core/loader/i386/pc/pxechainloader.c: New file.
10326 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
10327 function.
10328 (grub_pc_net_config_real): Use grub_pxe_get_cached.
10329 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
10330
aca002f7
VS
103312012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10332
10333 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
10334 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
10335 * include/grub/err.h (grub_error_saved): New struct.
10336 (grub_errmsg): Make array size explicit.
10337 * include/grub/misc.h (grub_error_save): New function.
10338 (grub_error_load): Likewise.
10339 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
10340 (grub_error_push): Update `errno' member name.
10341 (grub_error_pop): Likewise
10342 * grub-core/net/tftp.c (tftp_data): New member save_err.
10343 (tftp_receive): Save error.
10344 (tftp_open): Restore error.
10345
a51dab13
VS
103462012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
10349 to real mode down to execute A20-related code in protected mode as
10350 intended.
10351
eb6e6649
GS
103522012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
10353
10354 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
10355 NULL when the argument `level' has an unexpected value.
10356
92cd0f6e
VS
103572012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10358
10359 Move platform-dependent files from $prefix to $prefix/$platform.
10360
10361 * config.h.in (GRUB_TARGET_CPU): New definition.
10362 (GRUB_PLATFORM): Likewise.
10363 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
10364 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
10365 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10366 * grub-core/kern/dl.c (grub_dl_load): Likewise.
10367 * grub-core/normal/autofs.c (read_fs_list): Likewise.
10368 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
10369 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
10370 * grub-core/normal/term.c (read_terminal_list): Likewise.
10371 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
10372 $prefix/locale.
10373 (grub_gettext_init_ext): Likewise.
10374 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
10375 grub_platform.
10376 * util/grub-install.in: Update directories.
10377 * util/grub-mknetdir.in: Likewise.
10378 * util/grub-mkrescue.in: Likewise.
10379
db606889
VS
103802012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10381
10382 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
10383 grub_error framework. All users updated.
10384
c39992a4
VS
103852012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
10388 lists (by always binsearching), improve caching (cache strings
10389 used for binsearch, not only results), improve
10390 maintainability (by using more structured binary search) and correct
10391 error handling.
10392
1e5ec32f
VS
103932012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10394
10395 * grub-core/script/execute.c (grub_script_return): Fix warning.
10396
ac576cde
VS
103972012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10398
10399 * grub-core/script/execute.c (grub_script_return): Fix potential
10400 NULL-dereference.
10401 Reported by: Jim Meyering.
10402
498453f6
VS
104032012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10404
10405 * po/POTFILES.in: Regenerate.
10406 * util/grub-install.in: Gettextize the strings missed in first pass.
10407
8be63f2e
VS
104082012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10409
10410 * Makefile.util.def (grub-mkdevicemap): Removed.
10411 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
10412 * include/grub/util/deviceiter.h: Removed.
10413 * util/deviceiter.c: Likewise.
10414 * util/getroot.c (grub_util_get_os_disk): New function.
10415 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
10416 replacement for EFI.
10417 * util/grub-mkdevicemap.c: Removed.
10418 * util/grub-probe.c (probe): Handle PRINT_DISK.
10419 (argp_parser): Handle -t disk.
10420
8e1e4e39
VS
104212012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10422
10423 * util/grub-mkfont.c: Migrate to argp.
10424 * util/grub-mklayout.c: Likewise.
10425 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10426 * util/grub-mkrelpath.c: Likewise.
10427 * util/grub-probe.c: Likewise.
10428 * util/grub-script-check.c: Likewise.
10429
4459819a
VS
104302012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10431
10432 * util/grub-reboot.in: Add missing datarootdir.
10433 Add missing newline.
10434 * util/grub-set-default.in: Add missing datarootdir.
10435 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
10436 * util/grub-mkrescue.in: Likewise.
10437
f65741c7
VS
104382012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10439
10440 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
10441
c1a33466
VS
104422012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 * util/grub-kbdcomp.in: Add decent help and gettextize.
10445 * docs/man/grub-kbdcomp.h2m: New file.
10446
c76899a0
VS
104472012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10448
10449 Migrate grub-mkimage.c to argp.
10450
10451 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
10452 (grub-setup): Likewise.
10453 * util/grub-setup.c (print_version): Move to ...
10454 * util/argp_common.c (print_version): ... here.
10455 * util/grub-setup.c (argp_program_version_hook): Move to ...
10456 * util/argp_common.c (argp_program_version_hook): ... here.
10457 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
10458 safety.
10459 * util/grub-mkimage.c (main): Migrate to argp.
10460
57db0757
VS
104612012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 * util/grub-mkrescue.in: Use same message as
10464 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
10465 for better translations.
10466
18534ad9
VS
104672012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10468
10469 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
10470 options with generic grub-mkrescue.in with the goal of future
10471 merge.
10472
c84ba308
VS
104732012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10474
10475 * grub-core/kern/mm.c: Add missing include of i18n.h
10476 * grub-core/lib/relocator.c: Likewise.
10477
347998c2
VS
104782012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
10481 error.
10482 (allocate_pages): Check return value.
10483 Replace fatal with error.
10484 (grub_linux_boot): Replace printf with dprintf.
10485 Check find_mmap_size return value.
10486 Replace fatal with error.
10487 Don't call grub_machine_fini.
10488 (grub_load_elf64): Replace printf with dprintf.
10489 (grub_cmd_linux): Likewise.
10490 (grub_cmd_initrd): Likewise.
10491 (grub_cmd_payload): Likewise.
10492
c779226e
VS
104932012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10494
10495 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
10496 message.
10497 * grub-core/video/radeon_fuloong2e.c
10498 (grub_video_radeon_fuloong2e_setup): Likewise.
10499 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
10500 * grub-core/video/video.c (grub_video_set_mode): Don't override
10501 standard out of memory message.
10502
dc87d45a
GS
105032012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10504
10505 NetBSD disk wedge support.
10506
10507 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
10508 [__NetBSD__]: Handle NetBSD disk wedges.
10509 * util/getroot.c (convert_system_partition_to_system_disk)
10510 [__NetBSD__]: Likewise.
10511
055f856f
MW
105122012-02-03 Mark Wooding <mdw@distorted.org.uk>
10513
10514 * util/grub-mkconfig.in: Use umask rather than chmod to create
10515 grub.cfg.new to avoid insecure grub.cfg.
10516
4a9f8346
VS
105172012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * grub-core/commands/ls.c: Gettextize.
10520 * grub-core/commands/setpci.c: Likewise.
10521 * grub-core/commands/videotest.c: Likewise.
10522 * grub-core/disk/geli.c: Likewise.
10523 * grub-core/kern/mm.c: Likewise.
10524 * grub-core/lib/relocator.c: Likewise.
10525 * grub-core/loader/efi/appleloader.c: Likewise.
10526 * grub-core/loader/i386/xnu.c: Likewise.
10527 * grub-core/loader/ia64/efi/linux.c: Likewise.
10528 * grub-core/loader/xnu.c: Likewise.
10529 * grub-core/net/dns.c: Likewise.
10530 * grub-core/net/net.c: Likewise.
10531 * grub-core/script/lexer.c: Likewise.
10532 * grub-core/script/parser.y: Likewise.
10533 * grub-core/script/yylex.l: Likewise.
10534 * util/getroot.c: Likewise.
10535 * util/grub-setup.c: Likewise.
10536
a646a366
VS
105372012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10538
10539 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
10540 number.
10541
54e2be26
VS
105422012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10543
10544 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
10545
f7c71e68
VS
105462012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10547
10548 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
10549 macro.
10550 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
10551 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
10552
a32d5c71
VS
105532012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10554
10555 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
10556 * util/grub-install.in: Gettextize.
10557 * util/grub-mkconfig.in: Likewise.
10558 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
10559 if not available.
10560 (grub_warn): Gettextize.
10561 * util/grub-mknetdir.in: Gettextize.
10562 * util/grub-mkrescue.in: Likewise.
10563 * util/grub-mkstandalone.in: Likewise.
10564 * util/grub-reboot.in: Likewise.
10565 * util/grub-set-default.in: Likewise.
10566 * util/grub.d/00_header.in: Likewise.
10567 * util/grub.d/10_hurd.in: Likewise.
10568 * util/grub.d/10_kfreebsd.in: Likewise.
10569 * util/grub.d/10_linux.in: Likewise.
10570 * util/grub.d/10_netbsd.in: Likewise.
10571 * util/grub.d/10_windows.in: Likewise.
10572 * util/grub.d/20_linux_xen.in: Likewise.
10573 * util/grub.d/30_os-prober.in: Likewise.
10574 * po/POTFILES-shell.in: Regenerate.
10575
69edd81a
RL
105762012-02-03 Richard Laager <rlaager@wiktel.com>
10577
10578 * util/grub-mkimage.c (main): Fix format-security warning.
10579 * util/grub-mkrelpath.c (main): Likewise.
10580 * util/grub-probe.c (main): Likewise.
10581
65f08dbf
RL
105822012-02-03 Richard Laager <rlaager@wiktel.com>
10583
10584 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
10585 failure.
10586 Put back lost PRINT_DRIVE.
10587
e9084abe
RL
105882012-02-03 Richard Laager <rlaager@wiktel.com>
10589
10590 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
10591 (grub_guess_root_devices): Replace strlen with sizeof.
10592 Avoid crash.
10593 (find_root_devices_from_poolname): Remove unused variable.
10594 Handle raidzN.
10595
cf5f7ee7
VS
105962012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10597
10598 Support install on multi-device filesystems.
10599
10600 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
10601 (grub_guess_root_devices): ...this. Return char **. All users updated.
10602 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
10603 Removed.
10604 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
10605 (find_root_devices_from_poolname): ... here.
10606 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
10607 Support zfs-fuse.
10608 (grub_guess_root_device): Rename to ...
10609 (grub_guess_root_devices): ... this. Return char **. All users updated.
10610 * util/grub-install.in: Handle multi-device filesystems.
10611 * util/grub-probe.c (probe). Make device_names a char **. Add delim
10612 argument. All users updated.
10613 Handle multi-device filesystems.
10614 Use 'delim' as separator.
10615 Remove device check to allow filesystems on file.
10616 (main): Support -0 argument. Handle multi-device.
10617 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
10618 Fix a cross-device check while on it.
10619 (arguments): Remove root_dev.
10620 (argp_parser): Remove -r.
10621 (main): Remove root_dev.
10622
2f53a9ed
VS
106232012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
10626
17e1d934
VS
106272012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
10630 symbol.
10631 Reported by: NODA, Kai <nodakai>.
10632
d3e3fab5
VS
106332012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10634
10635 Fix ehci on amd64.
10636
10637 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
10638 pointers.
10639 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
10640 (grub_ehci_setup_qh): Likewise.
10641 (grub_ehci_find_qh): Likewise.
10642 (grub_ehci_transaction): Likewise.
10643 (grub_ehci_setup_transfer): Likewise.
10644 (grub_ehci_check_transfer): Likewise.
10645 (grub_ehci_portstatus): Likewise.
10646 (grub_ehci_detect_dev): Likewise.
10647 (grub_ehci_transfer_controller_data): New field td_last_phys.
10648 (grub_ehci_setup_transfer): Fill td_last_phys.
10649 (grub_ehci_check_transfer): Use td_last_phys.
10650
3008675b
SG
106512012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
10652
10653 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
10654 if no submenu is present.
10655
fc9b5652
AN
106562012-02-01 Aleš Nesrsta <starous@volny.cz>
10657
10658 CBI support.
10659
10660 * include/grub/usb.h (grub_usbms_protocol_t): New values
10661 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
10662 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
10663 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
10664 (grub_usbms_dev): Add subclass, protocol and intrpt.
10665 Remove in_maxsz and out_maxsz.
10666 (grub_usbms_reset): Rename to ...
10667 (grub_usbms_bo_reset): .. this.
10668 (grub_usbms_cbi_cmd): New function.
10669 (grub_usbms_cbi_reset): Likewise.
10670 (grub_usbms_reset): Likewise.
10671 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
10672 (grub_usbms_transfer): Rename to ...
10673 (grub_usbms_transfer_bo): ... this.
10674 (grub_usbms_transfer_cbi): Likewise.
10675 (grub_usbms_transfer): Likewise.
10676
a2b81d53
AN
106772012-02-01 Aleš Nesrsta <starous@volny.cz>
106782012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10679
10680 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
10681 the support for the CS5536 modification thereos and few bugfixes.
10682
10683 * grub-core/Makefile.core.def (ehci): New module.
10684 * grub-core/bus/usb/ehci.c: New file.
10685 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
10686 port and hubaddr. All users updated.
10687 Save port and hubaddr into dev structure.
10688 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
10689 define.
10690 * include/grub/pci.h (grub_dma_phys2virt): New function.
10691 (grub_dma_virt2phys): Likewise.
10692 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
10693
b1d51f02
VS
106942012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10695
10696 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
10697 check as some mkfs implementations omit it.
10698
fc694106
VS
106992012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10700
10701 * docs/grub.texi (Unicode): Mention identifier and space limitations.
10702
6c0920e3
VS
107032012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10704
10705 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
10706 Add new member volname2.
10707 (grub_jfs_label): Use volname2 if available.
10708
d1a46f9a
VS
107092012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10710
10711 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
10712 over last_mounted as seen in image generated by mkfs.nilfs2.
10713 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
10714
dec8ed14
VS
107152012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10716
10717 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
10718 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
10719 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
10720
7397c69b
VS
107212012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
10724 over the sector.
10725
b3fe42ad
VS
107262012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10727
10728 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
10729 subvolume name (by removing a bogus and useless check).
10730
10476bb0
VS
107312012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10732
10733 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
10734 sizeof while on it.
10735
9c08ad87
VS
107362012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10737
10738 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
10739 (grub_scsi_read_capacity10): ... this.
10740 (grub_scsi_read_capacity16): New function.
10741 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
10742 0xffffffff.
10743 Fix off-by-one error.
10744 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
10745 64-bit unsigned.
10746 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
10747 (grub_scsi_read_capacity10): ... this.
10748 (grub_scsi_read_capacity_data): Rename to ...
10749 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
10750 (grub_scsi_read_capacity16): New struct.
10751 (grub_scsi_read_capacity16_data): Likewise.
10752 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
10753 grub_scsi_cmd_read_capacity10.
10754 New command grub_scsi_cmd_read_capacity16.
10755
bc8d0f45
VS
107562012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10757
10758 SCSI >2TiB support.
10759
10760 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
10761 (grub_scsi_write16): Likewise.
10762 (grub_scsi_read): Use read16 when necessary.
10763 (grub_scsi_write): Likewise.
10764 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
10765 (grub_scsi_write16): Likewise.
10766 (grub_scsi_cmd_t): Add READ16 and WRITE16.
10767
cc774926
VS
107682012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10769
10770 SCSI write support (for usbms mainly).
10771
10772 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
10773 a const pointer.
10774 (grub_scsi_write): Implement.
10775 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
10776
67639fd7
VS
107772012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10778
10779 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
10780 variable.
10781
9079d3ed
VS
107822012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10783
10784 * grub-core/lib/posix_wrap/string.h (memchr): New function.
10785
c6a6f204
VS
107862012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10787
10788 * po/POTFILES.in: Regenerate.
10789
ecbf8cd1
VS
107902012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
10793 with grub_printf to avoid unnecessary fatal failure.
10794
0b3b3b38
VS
107952012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10796
10797 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
10798 (INT_MAX): Likewise.
10799 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
10800 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
10801 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
10802 (strcpy): Likewise.
10803 (strstr): Likewise.
10804 (strchr): Likewise.
10805 (strncpy): Likewise.
10806 (strcat): Likewise.
10807 (strncat): Likewise.
10808 (strcoll): Likewise.
10809 * include/grub/types.h (GRUB_SHRT_MAX): New define.
10810 (GRUB_INT_MAX): Likewise.
10811
db7337a3
VS
108122012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10813
10814 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
10815 unexpected error.
10816 (optimize_utf8): Likewise.
10817 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
10818
f37c87e1
VS
108192012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10820
10821 * grub-core/boot/i386/pc/lnxboot.S: Use
10822 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
10823 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
10824 location.
10825 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
10826 definition.
10827 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
10828
63fe43f3
VS
108292012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
10832 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
10833 now to avoid double free.
10834 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
10835 hostdisk.
10836 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
10837 * util/grub-probe.c (escape_of_path): Always return a new copy.
10838 (print_full_name): Escape path.
10839 (probe): Don't call grub_util_devname_to_ofpath on NULL.
10840 Fix hints on abstractions.
10841
ebe2c961
VS
108422012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10843
10844 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
10845 Don't add "root" line if no compatibility hont is available.
10846 Suggested by: Seth Goldberg.
10847
2b5336a2
VS
108482012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10849
10850 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
10851 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
10852 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
10853 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
10854
74310bd8
VS
108552012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
10858
c30582ba
VS
108592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10860
10861 * util/grub-pe2elf.c (ehdr): Make static.
10862 (shdr): Likewise.
10863 (num_sections): Likewise.
10864 (offset): Likewise.
10865
5f47782c
VS
108662012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10867
10868 Eliminate ofpath limits and possible overflows.
10869
10870 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
10871 (OF_PATH_MAX): Removed.
10872 (MAX_DISK_CAT): New const.
10873 (find_obppath): Use allocated rather than preallocated buffer.
10874 Return result. Argument of_path removed. All users updated.
10875 Add missing fdstat.
10876 (xrealpath): New function.
10877 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
10878 Allocate rather than use preallocated buffer. All users updated.
10879 (__of_path_common): Use allocated rather than preallocatecd buffer.
10880 Return result. Argument of_path removed. All users updated.
10881 (vendor_is_ATA): Read only needed part form the file.
10882 (check_sas): Allocate depending on contents rather than fixed.
10883 (main) [STANDALONE]: Handle NULL result.
10884
f990cbf9
VS
108852012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10886
10887 * grub-core/normal/completion.c (iterate_dev): Close the disk.
10888
9c6e84b8
VS
108892012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10890
10891 Cryptodisk write support.
10892
10893 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
10894 (grub_cryptodisk_decrypt): Moved logic to ...
10895 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
10896 (grub_cryptodisk_write): Implement.
10897 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
10898 (grub_util_fd_write): ... this. Make global.
10899 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
10900
87cf9744
VS
109012012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 * include/grub/list.h (grub_list_remove): Don't crash if element is
10904 removed twice.
10905
ca8c0baf
VS
109062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10907
10908 Rename ofconsole to console.
10909
10910 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
10911 as sysnonym to console.
10912 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
10913 * grub-core/term/ieee1275/console.c: ... this. All users updated.
10914 Rename grub_ofconsole_ to grub_console_. All users updated
10915 (grub_console_term_output): Rename "ofconsole" to "console".
10916 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
10917 as "console".
10918
64c8b8f6
VS
109192012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10920
10921 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
10922 handling.
10923 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
10924 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
10925 GRUB_DISK_DEVICE_FILE_ID.
10926
f6c434d5
VS
109272012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
10930 and improve performance.
10931
5858b42d
VS
109322012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10933
10934 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
10935 missing ieee1275/ prefix on whole disk.
10936
4ed3c26b
VS
109372012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10938
10939 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
10940 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
10941
df71143e
VS
109422012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10943
10944 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
10945
076e7c0f
VS
109462012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10947
10948 Merge common RAID and LVM logic to an abstract diskfilter.
10949 Add LDM support using the same framework.
10950
10951 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
10952 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
10953 (libgrubmods): Remove grub-core/disk/raid.c and
10954 grub-core/partmap/gpt.c.
10955 * grub-core/Makefile.core.def (ldm): New module.
10956 (raid): Renamed to diskfilter. All users updated.
10957 * grub-core/disk/raid.c: Moved to ...
10958 * grub-core/disk/diskfilter.c: ... here.
10959 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
10960 (lv_num): New var.
10961 (find_array): Renamed to ...
10962 (find_lv): ... this. Support multi-LV. Skip nameless LVs
10963 (grub_is_array_readable): Renamed to ...
10964 (grub_is_lv_readable): ... this. Support multinode hierarchy.
10965 (insert_array): New argument id.
10966 (is_node_readable): New function.
10967 (scan_device): Rename to ...
10968 (scan_disk): .. this. Restrict to one disk.
10969 (scan_devices): New function.
10970 (grub_diskfilter_iterate): Support multi-LV.
10971 Skip invisible and nameless LVs.
10972 (grub_diskfilter_memberlist): Support multi-LV.
10973 (grub_diskfilter_read_node): New function.
10974 (grub_raid_read): Most of logic moved to ...
10975 (read_segment): ... here
10976 (read_lv): New function.
10977 (grub_diskfilter_get_vg_by_uuid): New function.
10978 (grub_diskfilter_make_raid): Likewise.
10979 * grub-core/disk/ldm.c: New file.
10980 * grub-core/disk/lvm.c (vg_list): Removed.
10981 (lv_count): Likewise.
10982 (scan_depth): Likewise.
10983 (is_lv_readable): Likewise.
10984 (grub_lvm_getvalue): Advance pointer past the number.
10985 (find_lv): Removed.
10986 (do_lvm_scan): Refactored into ...
10987 (grub_lvm_detect): ... this. Support raid.
10988 (grub_lvm_iterate): Removed.
10989 (grub_lvm_memberlist): Likewise.
10990 (grub_lvm_open): Likewise.
10991 (grub_lvm_close): Likewise.
10992 (read_lv): Likewise.
10993 (read_node): Likewise.
10994 (is_node_readable): Likewise.
10995 (is_lv_readable): Likewise.
10996 (grub_lvm_read): Likewise.
10997 (grub_lvm_write): Likewise.
10998 (grub_lvm_dev): Use diskfilter
10999 (GRUB_MOD_INIT): Likewise.
11000 (GRUB_MOD_FINI): Likewise.
11001 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
11002 new interface.
11003 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
11004 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
11005 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
11006 grub_diskfilter_read_node.
11007 Fix a bug with xor.
11008 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
11009 grub_diskfilter_read_node.
11010 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
11011 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
11012 (grub_disk_dev_iterate): Move from here...
11013 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
11014 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
11015 Make global.
11016 (grub_hostdisk_find_partition_start): Likewise.
11017 (grub_hostdisk_os_dev_to_grub_drive): New function.
11018 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
11019 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
11020 * util/getroot.c (make_device_name): ... here.
11021 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
11022 Move to ...
11023 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
11024 * grub-core/kern/emu/hostdisk.c
11025 (convert_system_partition_to_system_disk): Move to ...
11026 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
11027 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
11028 * util/getroot.c (device_is_wholedisk): ... here.
11029 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
11030 * util/getroot.c (find_system_device): ... here.
11031 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
11032 Move to ...
11033 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
11034 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
11035 Move to ...
11036 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
11037 Handle LDM.
11038 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11039 Move to ...
11040 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
11041 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
11042 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
11043 DISKFILTER.
11044 * include/grub/raid.h: Renamed to ...
11045 * include/grub/diskfilter.h: ... this.
11046 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
11047 (GRUB_RAID_LAYOUT_*): Make into array.
11048 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
11049 (grub_diskfilter_vg): New struct.
11050 (grub_diskfilter_pv_id): Likewise.
11051 (grub_raid_member): Removed.
11052 (grub_raid_array): Likewise.
11053 (grub_diskfilter_pv): New struct.
11054 (grub_diskfilter_lv): Likewise.
11055 (grub_diskfilter_segment): Likewise.
11056 (grub_diskfilter_node): Likewise.
11057 (grub_diskfilter_get_vg_by_uuid): New proto.
11058 (grub_raid_register): Inline.
11059 (grub_diskfilter_unregister): Likewise.
11060 (grub_diskfilter_make_raid): New proto.
11061 (grub_diskfilter_vg_register): Likewise.
11062 (grub_diskfilter_read_node): Likewise.
11063 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
11064 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
11065 (grub_util_is_ldm): Likewise.
11066 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
11067 (grub_hostdisk_find_partition_start): Likewise.
11068 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
11069 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
11070 New definition.
11071 (grub_gpt_partition_map_iterate): New proto.
11072 * include/grub/lvm.h (grub_lvm_vg): Removed.
11073 (grub_lvm_pv): Likewise.
11074 (grub_lvm_lv): Likewise.
11075 (grub_lvm_segment): Likewise.
11076 (grub_lvm_node): Likewise.
11077 * util/getroot.c [...]
11078 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
11079 (probe_abstraction): Likewise.
11080 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
11081 (main): Remove dead logic.
11082
8a7f9b9c
VS
110832012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
11084
11085 Simplify root device discover and don't fail when trying to open
11086 incorrect devices.
11087
11088 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
11089 function.
11090 (get_diskname_from_path): Likewise.
11091 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
11092 of iterating.
11093
30545b85
VS
110942012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
11097
28ea58cf
VS
110982012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11099
11100 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
11101 pastthe end.
11102
692dabca
VS
111032012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 * util/grub-install.in: Add missing \.
11106 Reported by: gentoofan
11107
f6e4ea70
VS
111082012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11109
11110 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
11111 (direct_read): Use correct compressed size.
11112 (grub_squash_read_data): Likewise.
11113
111142012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
11115
11116 * docs/grub.texi (Platform limitations): New section.
11117 (Platform-specific operations): Likewise.
11118 * docs/grub-dev.texi (Porting): Likewise.
11119
76261110
VS
111202012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11121
11122 IEEE1275 disk write support.
11123
11124 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
11125 const void *.
11126 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
11127 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
11128 and seek loginc to ...
11129 (grub_ofdisk_prepare): ... here.
11130 (grub_ofdisk_write): Implement.
11131
fc36d603
VS
111322012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11133
11134 ARC disk write support.
11135
11136 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
11137 (reopen): New argument writable. All users updated.
11138 Handle required access mode.
11139 (grub_arcdisk_write): Implement.
11140 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
11141 (grub_arc_firmware_vector): Make buffer to write a const buffer.
11142
e06c2e7a
VS
111432012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11144
11145 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
11146 (read_sblock): Don't attempt to read superblocks outside the disk size.
11147
ff447958
VS
111482012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11149
11150 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
11151 first superblock to find the second one when possible.
11152
9e88df39
VS
111532012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11154
11155 * util/grub-install.in: Fix an ARC bug.
11156 Print a warning if no platform-specific setup is available.
11157
bb26e4ff
VS
111582012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11159
11160 Use static allocation rather than scratch pointer in reed_solomon.
11161 It decreases its size significantly and avoids a variable in .text.
11162
11163 * grub-core/lib/reed_solomon.c (scratch): Removed.
11164 (chosenstat): New const or static array.
11165 (sigma): Likewise.
11166 (errpot): Likewise.
11167 (errpos): Likewise.
11168 (sy): Likewise.
11169 (mstat): Likewise.
11170 (errvals): Likewise.
11171 (eqstat): Likewise.
11172 (pol_evaluate): Replace x with log_x argument. All users updated.
11173 (syndroms): Removed.
11174 (gauss_solve): Use statically allocated arrays.
11175 (rs_recover): Likewise.
11176 Calculate syndroms directly.
11177 (decode_block): Use statically allocated arrays.
11178 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
11179 (main) [TEST]: Allow -DTEST -DSTANDALONE.
11180
2e13ede5
VS
111812012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11182
11183 Eliminate fixed limit on reed solomon decoder length.
11184
11185 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
11186 rather than hardcoding the address.
11187 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
11188 no_reed_solomon_length.
11189 Move gate_a20 to no-reed-solomon part.
11190 Don't force a particular size of no reed-solomon part.
11191 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11192 Removed.
11193 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
11194 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
11195
f8a9ab12
VS
111962012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11197
11198 * grub-core/commands/wildcard.c (match_files): Handle filenames
11199 without explicit device.
11200 (wildcard_expand): Don't add explicit device if not already present.
11201 * tests/grub_script_echo1.in: Add a new expansion test.
11202
87edb894
VS
112032012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11204
11205 Replace single-linked with double-linked lists. It results in more
11206 compact and more efficient code.
11207
11208 * grub-core/kern/list.c (grub_list_push): Moved from here ...
11209 * include/grub/list.h (grub_list_push): ... to here. Set prev.
11210 (grub_list_remove): Moved from here ...
11211 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
11212 (grub_prio_list_insert): Set prev.
11213 * include/grub/list.h (grub_list): Add prev. All users updated.
11214
48b391e9
VS
112152012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11216
11217 Handle newer autotools. Add some missing quotes while on it.
11218
11219 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
11220 (pkglib_DATA): Move grub-mkconfig_lib from here ...
11221 (pkgdata_DATA): ... here.
11222 * Makefile.util.def (update-grub_lib): Removed.
11223 * conf/Makefile.common (pkglib_DATA): Removed.
11224 (pkglib_SCRIPTS): Likewise.
11225 (pkgdata_DATA): New variable.
11226 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
11227 needed.
11228 Add missing quotes.
11229 Remove unused variable while on it.
11230 * tests/util/grub-shell.in: Likewise.
11231 * util/grub-install.in: Likewise.
11232 * util/grub-mkconfig.in: Likewise.
11233 * util/grub-mknetdir.in: Likewise.
11234 * util/grub-mkrescue.in: Likewise.
11235 * util/grub-mkstandalone.in: Likewise.
11236 * util/grub.d/00_header.in: Likewise.
11237 * util/grub.d/10_hurd.in: Likewise.
11238 * util/grub.d/10_illumos.in: Likewise.
11239 * util/grub.d/10_kfreebsd.in: Likewise.
11240 * util/grub.d/10_linux.in: Likewise.
11241 * util/grub.d/10_netbsd.in: Likewise.
11242 * util/grub.d/10_windows.in: Likewise.
11243 * util/grub.d/20_linux_xen.in: Likewise.
11244 * util/grub.d/30_os-prober.in: Likewise.
11245 * util/update-grub_lib.in: Removed.
11246
112472012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
11248
11249 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
11250 a workaround for intel problem.
11251
66832792
PRP
112522012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
112532012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
112542012-01-23 pfsmorigo
11255
11256 * util/grub-install.in: Support dd'in into PreP partition.
11257 * util/grub-probe.c (probe): Support discovering partition type.
11258 (main): Support -t msdos_parttype.
11259
7816a17e
VS
112602012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11261
11262 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
11263 infinite recursion using counter.
11264 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
11265 init to skip it if the magic check fails.
11266 (dec_stream_header): Init s->crc32.
11267
8f9d3a8c
ZB
112682012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
112692012-01-22 Zachary Bedell <pendorbound@gmail.com>
112702012-01-22 Richard Laager <rlaager@wiktel.com>
11271
11272 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
11273 All users updated.
11274 (find_bestub): Determine correct size.
11275 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
11276 (scan_disk): Align the size down.
11277 Call check pool before find_bestub to have ashift.
11278
b055dd32
VS
112792012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11280
11281 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
11282 dprintf in no-malloc zone.
11283
d779e9bd
ML
112842012-01-22 Mario Limonciello <mario_limonciello@dell.com>
11285
11286 * configure.ac: Add back in test for limits.h.
11287
b508af69
VS
112882012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11289
11290 Support 4K-sector NTFS.
11291
11292 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
11293 (grub_ntfs_data): Remove blocksize.
11294 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
11295 Remove data argument. All users updated.
11296
dad9c8b5
VS
112972012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11298
11299 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
11300 being in .text to avoid dprel references.
11301 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
11302 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
11303 (grub_arch_highmemsize): Likewise.
11304 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
11305 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
11306 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
11307
d43a777e
VS
113082012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11309
11310 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
11311
11312 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
11313 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
11314
34e4208f
VS
113152012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11316
11317 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
11318 GRUB_UTIL.
11319 (grub_set_datetime_cmos): Likewise.
11320
3ec0fc1c
VS
113212012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 Make XZ compression parameters dependent on target and not host CPU.
11324
11325 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
11326 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
11327
22489834
VS
113282012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11329
11330 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
11331 set but not used variable.
11332
8502fbca
VS
113332012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
11336 created when no uuid support is compiled into mkfs.reiser.
11337
76df2068
VS
113382012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
11341 (utf8_to_macroman): Do the opposite.
11342 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
11343
64e3f8f6
VS
113442012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11345
11346 * configure.ac: Refise build qemu_mips w/o unifont.
11347
9c271078
VS
113482012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11349
11350 Eliminate grub_min/grub_max prone to overflow usage.
11351
11352 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
11353 (poll_nonroot_hub): Likewise.
11354 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
11355 (grub_affs_label): Likewise.
11356 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
11357 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
11358 (grub_hfs_label): Likewise.
11359 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
11360 * grub-core/fs/zfs/zfs.c (MIN): Remove.
11361 (zap_leaf_array_equal): Use grub_size. Remove MIN.
11362 (zap_leaf_array_get): Likewise.
11363 (dnode_get_path): Likewise.
11364 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
11365 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
11366 * grub-core/script/execute.c (grub_script_break): Likewise.
11367 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
11368 grub_max.
11369 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
11370 * include/grub/misc.h (grub_min): Removed.
11371 (grub_max): Likewise.
11372
80662dbc
VS
113732012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11374
11375 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
11376 direct.inode = 0.
11377
e6da1467
VS
113782012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11379
11380 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
11381
b1ac4cb1
VS
113822012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11383
11384 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
11385
b4bf7c3b
VS
113862012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11387
11388 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
11389 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
11390
8ee1101a
VS
113912012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11392
11393 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
11394 rather than a hack for grub_strncasemap.
11395
113962012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11397
11398 Support multiple initrds
11399 Note: part of this was accidently committed in r3739.
11400
11401 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
11402 initrd.
11403 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11404 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11405 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11406 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11407 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11408
4d1e2bc9
VS
114092012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11410
11411 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
11412 disks with unknown size.
11413 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
11414
75b49ebe
VS
114152012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11416
11417 Remove defines pertaining to arbitrary limits not affecting GRUB
11418 anymore.
11419
11420 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
11421 (EXT2_MAX_SYMLINKCNT): Likewise.
11422 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
11423 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
11424 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
11425 (GRUB_PXE_MAX_BLKSIZE): Likewise.
11426 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
11427 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
11428 (DN_MAX_OBJECT_SHIFT): Likewise.
11429 (DN_MAX_OFFSET_SHIFT): Likewise.
11430 (DN_MAX_OBJECT): Likewise.
11431 (DNODES_PER_LEVEL_SHIFT): Likewise.
11432 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
11433 (SPA_MAXBLOCKSIZE): Likewise.
11434 (SPA_BLOCKSIZES): Likewise.
11435 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
11436 (MZAP_MAX_BLKSZ): Likewise.
11437
74a1dce7
VS
114382012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11439
11440 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
11441 handle NULL appropriately.
11442 Remove MIN.
11443
30c7d3ce
VS
114442012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11445
11446 Fix efiemu.
11447
11448 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
11449 cpu/types.h.
11450 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
11451 * configure.ac: Fix efiemu check.
11452
3c76ea0c
VS
114532012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11454
11455 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
11456 grub_probe.
11457 Reported by: adamwill
11458
7e532280
SG
114592012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
11460
11461 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
11462
30492374
VS
114632012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 Fix handling of wide characters in gfxterm.
11466
11467 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
11468 (clear_char): Likewise.
11469 (paint_char): Skip code == NULL chars.
11470 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
11471
e70cb72f
VS
114722012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 * grub-core/normal/charset.c: Move comment to right place.
11475
5c827cf9
VS
114762012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11477
11478 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
11479 (GRUB_AFFS_FLAG_FFS): Put back where it was.
11480 (grub_affs_mount): Revert the correct version checking.
11481
53603892
VS
114822012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11483
11484 * docs/grub.texi (Unicode): Mention several other unsupported features.
11485
ff094b9b
VS
114862011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11487
11488 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
11489 case statements as compile-time one.
11490 (direct_read): Prevent spurious warnings.
11491 (grub_squash_read_data): Likewise.
11492
c029da8a
VS
114932011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11494
11495 Various squash4 fixes and LZO and XZ support.
11496
11497 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
11498 Add xzembed source files.
11499 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
11500 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
11501 (grub_squash_inode): New subtype long_dir.
11502 (SQUASH_TYPE_LONG_DIR): New inode type.
11503 (COMPRESSION): New enum.
11504 (XZBUFSIZ): New const.
11505 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
11506 (read_chunk): Use data->decompress.
11507 (zlib_decompress): New function.
11508 (lzo_decompress): Likewise.
11509 (xz_decompress): Likewise.
11510 (squash_mount): Set new data fields.
11511 (grub_squash_iterate_dir): Handle long dir.
11512 (squash_unmount): Free xzdec and xzbuf.
11513 (grub_squash_open): Check ino type.
11514 (direct_read): Stylistic fixes. Use data->decompress.
11515 (grub_squash_read_data): Likewise.
11516 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
11517 (get_byte): Likewise.
11518 (grub_zlib_disk_read): Removed.
11519 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
11520 (GRUB_POSIX_BOOL_DEFINED): New define.
11521 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
11522 * grub-core/lib/xzembed/xz.h: Addmissing includes.
11523 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
11524 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
11525
7a45a539
VS
115262011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11527
11528 Don't override more informative errors.
11529
11530 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
11531 * grub-core/font/font.c (open_section): Likewise.
11532 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
11533 filename. Don't override errors.
11534 (grub_cmd_openbsd_ramdisk): Don't override errors.
11535 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
11536 (grub_cmd_initrd): Likewise.
11537 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11538 (grub_cmd_initrd): Likewise.
11539 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
11540 (grub_cmd_linux): Likewise.
11541 (grub_cmd_initrd): Likewise.
11542 (grub_cmd_payload): Likewise.
11543 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11544 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
11545 (grub_cmd_module): Likewise.
11546 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11547 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11548 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
11549 (grub_cmd_xnu_mkext): Likewise.
11550 (grub_cmd_xnu_ramdisk): Likewise.
11551 (grub_xnu_check_os_bundle_required): Likewise.
11552 (grub_xnu_load_kext_from_dir): Likewise.
11553 (grub_cmd_xnu_kextdir): Likewise.
11554 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
11555
b2d004db
VS
115562011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11557
11558 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
11559 as 1024 in block size field. Found on one of my test images.
11560 Small optimisation while on it.
11561
ec000eac
VS
115622011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11563
11564 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
11565 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
11566 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
11567 performance fixes while on it.
11568 (grub_sfs_close): Fix memory leak while on it.
11569 (grub_sfs_label): Convert Latin1 to UTF-8.
11570
f50e1165
VS
115712011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11572
11573 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
11574 space to avoid overflows.
11575 (grub_hfs_label): Convert from macroman to UTF-8.
11576
2ae254de
VS
115772011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11578
11579 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
11580
0108f491
VS
115812011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11582
11583 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
11584
f45f5f89
VS
115852011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 * unicode: Import Unicode 6.0 data.
11588
4d8c4765
VS
115892011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11590
63fa8ef9
VS
11591 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
11592 outside of range.
11593
115942011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11595
11596 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
11597
11598 * include/grub/charset.h (grub_getend): New function.
11599 * grub-core/script/function.c (grub_script_function_find): Use
11600 grub_getend.
11601 * grub-core/normal/completion.c (add_completion): Likewise.
11602
f3cb4a4e
VS
116032011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11604
11605 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
11606 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
11607 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
11608 (GRUB_UNICODE_TAG_END): Likewise.
11609 (GRUB_UNICODE_LAST_VALID): Likewise.
11610
5da8dbc5
VS
116112011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11612
11613 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
11614 len and make it smaller. All users updated.
11615 * util/import_unicode.py: Put length and not end character.
11616 Check length.
11617
8569f13d
VS
116182011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11619
11620 Make better Unicode-compliant and unify some UTF-8 code pathes.
11621
11622 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
11623 valid character.
11624 (grub_is_valid_utf8): Use grub_utf8_process.
11625 Check resulting code range.
11626 (grub_utf8_to_ucs4): Use grub_utf8_process.
11627 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
11628 valid character.
11629
cc4fddf5
VS
116302011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11631
11632 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
11633
bbc47747
VS
116342011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11635
11636 * docs/grub.texi (Filesystems): Mention AFS.
11637
f63d6bf4
VS
116382011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11639
11640 * docs/grub.texi (Filesystems): Clarify restrictions.
11641 (Regexp): Mention non-Unicode regexp behaviour.
11642 (Other): Mention non-Unicode matching behaviour.
11643
74bbf0db
VS
116442011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11645
f63d6bf4 11646 Make HFS implementation use MacRoman.
74bbf0db
VS
11647
11648 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
11649 (macroman): New const array.
11650 (macroman_to_utf8): New function.
11651 (utf8_to_macroman): Likewise.
11652 (grub_hfs_find_dir): Use utf8_to_macroman.
11653 (grub_hfs_dir): Use macroman_to_utf8.
11654 Set case_insensitive.
11655
4ea0316e
VS
116562011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
11659
d3c13cbd
VS
116602011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11661
11662 Integrate hints into autogeneration scripts.
11663
11664 * docs/grub.texi (Filesystems): Add a hostdisk example.
11665 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
11666 (grub-probe): Add ofpath.
11667 * gentpl.py: Remove group nosparc64.
11668 * grub-core/commands/search.c (cache_entry): New struct.
11669 (cache): New var.
11670 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
11671 * grub-core/commands/search_wrap.c (options): Add platform-specific
11672 hint options.
11673 (grub_cmd_search): Handle platform-specific hints.
11674 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
11675 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
11676 (grub_util_biosdisk_data): Likewise.
11677 (grub_util_biosdisk_open): Set device_map.
11678 (read_device_map): Handle "" as indication of no map.
11679 Set device_map.
11680 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
11681 (grub_util_biosdisk_get_compatibility_hint): New function.
11682 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
11683 * include/grub/emu/hostdisk.h
11684 (grub_util_biosdisk_get_compatibility_hint): New proto.
11685 * util/grub-install.in: Don't call grub-mkdevicemap.
11686 Add platform-specific hint to load.cfg.
11687 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
11688 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11689 hints. Set root preliminary to compatibility hint, not to OS name.
11690 * util/grub-probe.c (PRINT_*): Add hints.
11691 (print): Make static.
11692 (escape_of_path): New function.
11693 (guess_bios_drive): Likewise.
11694 (guess_efi_drive): Likewise.
11695 (guess_baremetal_drive): Likewise.
11696 (print_full_name): Likewise.
11697 (probe): Handle hints.
11698 (main): Likewise.
11699 * util/ieee1275/devicemap.c: Removed.
11700 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
11701 updated.
11702 (grub_util_devname_to_ofpath): Return NULL on failure.
11703
11704 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
11705 resource leak.
11706 * util/getroot.c (grub_util_pull_device): Fix memory leak.
11707
11708 * po/POTFILES.in: Regenerated.
11709
11710 Allow purely long options
11711
11712 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
11713 (SHORT_ARG_USAGE): Likewise.
11714 (grub_arg_show_help): Compare opt with help_options.
11715 (parse_option): Receive opt as argument. If makes big simplificatons.
11716 All users updated
11717
00ce2df3
VS
117182011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11719
11720 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
11721 Restructure to avoid warning.
11722
e77e325f
VS
117232011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11724
11725 * util/grub-install.in: Account for possible escaped comma in device
11726 name.
11727
165099ea
VS
117282011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11729
11730 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
11731 channel.
11732
ce4a999d
VS
117332011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11734
11735 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
11736 allocation and zero-setting.
11737 (grub_ieee1275_get_devname): Check that alias is complete.
11738
379586ad
VS
117392011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11740
11741 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
11742 unaligned segments.
11743
9197b0ad
VS
117442011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11745
11746 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
11747 prefix.
11748 (grub_ofdisk_open): Check and discard ieee1275 prefix.
11749 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11750 Add ieee1275 prefix.
11751
edddb7f9
VS
117522011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11753
11754 * docs/grub.texi (Filesystems): Update.
11755
a1a8b1b9
VS
117562011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11757
11758 Support odc, newc and bigendian cpio formats.
11759
11760 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
11761 * grub-core/Makefile.core.def (newc): New module.
11762 (odc): Likewise.
11763 (cpio_be): Likewise.
11764 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
11765 (MAGIC): Likewise.
11766 (MAGIC2): Likewise.
11767 (head) [MODE_ODC]: Adapt for the format.
11768 (head) [MODE_NEWC]: Likewise.
11769 (head) [!MODE_*]: Write fields of interest as arrays.
11770 (MAGIC_USTAR): Removed.
11771 (read_number) [MODE_NEWC]: Change to hex.
11772 (read_number) [!MODE_*]: Parse binary arrays.
11773 (grub_cpio_find_file): Factor out the code for better structure and
11774 always use read_number.
11775 (grub_cpio_mount): Use MAGIC and MAGIC2.
11776 (grub_cpio_dir): Exit on first hook non-0 return.
11777 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
11778 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
11779 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
11780 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
11781 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
11782 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
11783 * grub-core/fs/newc.c: New file.
11784 * grub-core/fs/odc.c: Likewise.
11785 * grub-core/fs/cpio_be.c: Likewise.
11786
58eba9ee
VS
117872011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11788
11789 Fix handling of tar numbers occupying the whole field.
11790
11791 * grub-core/fs/cpio.c (read_number): New function.
11792 (grub_cpio_find_file): Use read_number instead of strtoull.
11793
a54a0e12
VS
117942011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11795
11796 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
11797 occupying the whole field size.
11798
a6120aca
LA
117992011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
11800
11801 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
11802
a93964ce
VS
118032011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11804
11805 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
11806
3ea1ca46
SG
118072011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
11808
11809 * grub-core/Makefile.core.def (lzma_decompress): Add missing
11810 TARGET_IMG_LDFLAGS.
11811
b87f7ef2
VS
118122011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11813
11814 * util/getroot.c (ESCAPED_PATH_MAX): New define.
11815 (mountinfo_entry): Increase the field size to take escaping into
11816 account.
11817 (find_root_device_from_libzfs): Add one byte to size of strings for
11818 security.
11819
62092395
VS
118202011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11821
11822 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
11823 an assert.
11824 * util/grub-setup.c (setup): Likewise.
11825
1f0b1a77
VS
118262011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11827
11828 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
11829 _LzmaDecodeA.
11830
8eba9997
VS
118312011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11832
11833 * docs/grub.texi (Internationalisation): New section.
11834
dd0c91e9
VS
118352011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11836
11837 * docs/grub.texi (Loopback booting): New section.
11838
118392011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
11840
11841 * util/grub-mkstandalone.in: Fix minor typo errors.
11842
198e150a
VS
118432011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11844
11845 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
11846
11847 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
11848 net/icmp.c and net/icmp6.c.
11849 (http): New module.
11850 (priority_queue): Likewise.
11851 * grub-core/io/bufio.c: Rewritten.
11852 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
11853 TYPE_WITH_CONFIGFILE_OPTION.
11854 (legacy_commands): Add bootp and dhcp.
11855 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
11856 (grub_legacy_parse): Likewise.
11857 * grub-core/lib/priority_queue.c: New file.
11858 * grub-core/net/arp.c: Add missing license header.
11859 (arp_find_entry): Removed.
11860 (arp_find_entry): Likewise.
11861 (grub_net_arp_resolve): Rename to ...
11862 (grub_net_arp_send_request): ...this.
11863 (grub_net_arp_receive): New card argument.
11864 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
11865 Set router and DNS server.
11866 (grub_net_configure_by_dhcp_ack): Handle routing information.
11867 (grub_cmd_bootp): Set checksum.
11868 (grub_bootp_init): Remove net_dhcp.
11869 * grub-core/net/dns.c: New file.
11870 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
11871 completion.
11872 (get_card_packet): Handle allocation.
11873 (grub_efinet_findcards): Set mtu.
11874 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
11875 (get_card_packet): Handle allocation.
11876 (emucard): Set mtu.
11877 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
11878 (GRUB_MOD_INIT): Set mtu.
11879 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
11880 mtu.
11881 (get_card_packet): Handle allocation.
11882 (grub_ofnet_findcards): Set mtu.
11883 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
11884 assert.
11885 (grub_net_recv_ethernet_packet): Handle IPv6.
11886 * grub-core/net/http.c: New file.
11887 * grub-core/net/icmp.c: Likewise.
11888 * grub-core/net/icmp6.c: Likewise.
11889 * grub-core/net/ip.c (ip6addr): New type.
11890 (ip6hdr): Likewise.
11891 (reassemble): Likewise.
11892 (cmp): New function.
11893 (reassembles): New variable.
11894 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
11895 (id): New variable.
11896 (send_fragmented): New function.
11897 (grub_net_send_ip_packet): Rename to ...
11898 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
11899 Handle non-UDP.
11900 (grub_net_recv_ip_packets): Rename to ...
11901 (handle_dgram): ... this. Check checksum. Handle non-UDP.
11902 (free_rsm): New function.
11903 (free_old_fragments): Likewise.
11904 (grub_net_recv_ip4_packets): New function.
11905 (grub_net_send_ip6_packet): Likewise.
11906 (grub_net_send_ip_packet): Likewise.
11907 (grub_net_recv_ip6_packets): Likewise.
11908 (grub_net_recv_ip_packets): Likewise.
11909 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
11910 (LINK_LAYER_CACHE_SIZE): New const.
11911 (link_layer_find_entry): New function.
11912 (grub_net_link_layer_add_address): Likewise.
11913 (grub_net_link_layer_resolve_check): Likewise.
11914 (grub_net_link_layer_resolve): Likewise.
11915 (grub_net_ipv6_get_slaac): Likewise.
11916 (grub_net_ipv6_get_link_local): Likewise.
11917 (grub_cmd_ipv6_autoconf): Likewise.
11918 (parse_ip): Handle one number representation.
11919 (parse_ip6): New functoion.
11920 (match_net): Handle IPv6.
11921 (grub_net_resolve_address): Handle IPv6 and DNS.
11922 (grub_net_resolve_net_address): Handle IPv6.
11923 (route_cmp): New function.
11924 (grub_net_route_address): Find best route.
11925 (grub_net_addr_to_str): Handle IPv6.
11926 (grub_net_addr_cmp): New function.
11927 (grub_net_add_addr): Register local route.
11928 (print_net_address): Handle net address.
11929 (grub_net_poll_cards): Retransmit TCP.
11930 (grub_net_poll_cards_idle_real): Likewise.
11931 (have_ahead): New function.
11932 (grub_net_seek_real): Use underlying seek.
11933 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
11934 * grub-core/net/tcp.c: New file.
11935 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
11936 (cmp): New function.
11937 (ack): Likewise.
11938 (tftp_receive): Handle unordered input.
11939 (destroy_pq): New function.
11940 (tftp_close): Close pq.
11941 * grub-core/net/udp.c: Put missing license header.
11942 (grub_net_udp_socket): New function.
11943 (udp_socket_register): Likewise.
11944 (grub_net_udp_close): Likewise.
11945 (grub_net_recv_udp_packet): Check checksum.
11946 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
11947 * include/grub/misc.h (grub_memchr): New function.
11948 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
11949 (grub_net_card_driver): Return buf in recv.
11950 (grub_net_slaac_mac_list): New struct.
11951 (grub_network_level_protocol_id): Add ipv6.
11952 (grub_net_network_level_addr): Likewise.
11953 (grub_net_network_level_net_addr): Likewise.
11954 (grub_net_app_protocol): Add seek.
11955 (grub_net_socket): Removed.
11956 (grub_net_sockets): Likewise.
11957 (grub_net_socket_register): Likewise.
11958 (grub_net_socket_unregister): Likewise.
11959 (FOR_NET_SOCKETS): Likewise.
11960 (grub_net_add_addr): Add const.
11961 (GRUB_NET_BOOTP_*): New enum.
11962 (grub_net_addr_cmp): New proto.
11963 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
11964 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
11965 (grub_net_hwaddr_to_str): NEw proto.
11966 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
11967 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
11968 (grub_dns_init): New proto.
11969 (grub_dns_fini): Likewise.
11970 (grub_net_tcp_retransmit): Likewise.
11971 (grub_net_link_layer_add_address): Likewise.
11972 (grub_net_link_layer_resolve_check): Likewise.
11973 (grub_net_link_layer_resolve): Likewise.
11974 (grub_net_dns_lookup): Likewise.
11975 (grub_net_add_dns_server): Likewise.
11976 (grub_net_remove_dns_server): Likewise.
11977 (GRUB_NET_TRIES): New const.
11978 (GRUB_NET_INTERVAL): Likewise.
11979 * include/grub/net/arp.h: Mostly rewritten.
11980 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
11981 * include/grub/net/ip.h: Mostly rewritten.
11982 * include/grub/net/netbuff.h: Indent.
11983 * include/grub/net/tcp.h: New file.
11984 * include/grub/net/udp.h: Mostly rewritten.
11985 * include/grub/priority_queue.h: New file.
11986 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
11987 (grub_swap_bytes64_compile_time): Likewise.
11988 (grub_cpu_to_be16_compile_time): Likewise.
11989 (grub_cpu_to_be32_compile_time): Likewise.
11990 (grub_cpu_to_be64_compile_time): Likewise.
11991 (grub_be_to_cpu64_compile_time): Likewise.
11992
215c1800
VS
119932011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
11994
11995 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
11996 UINT_TO_PTR with cast.
11997
c17e546c
VS
119982011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11999
12000 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
12001 don't use them.
12002
ff6b18b6
VS
120032011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12004
12005 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
12006 already there.
12007
70ffcc93
VS
120082011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12009
12010 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
12011 confusing ipxe.
12012
e5f4d260
VS
120132011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
12016 Add missing const attribute.
12017 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
12018 Likewise.
12019 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
12020 Likewise.
12021
8e54b4b7
VS
120222011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12023
12024 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
12025 misaligned access.
12026 (serpent_setkey): Likewise.
12027 (serpent_encrypt_internal): Likewise.
12028 (serpent_decrypt_internal): Likewise.
12029 (serpent_encrypt): Don't put an alignment-increasing cast.
12030 (serpent_decrypt): Likewise.
12031 (serpent_test): Likewise.
12032
813c0a2b
VS
120332011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12034
12035 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
12036
f2b60fbd
VS
120372011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12038
12039 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
12040
12041 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
12042 grub_addr_t casts.
12043 (PTR_TO_UINT64): Likewise.
12044 (PTR_TO_UINT32): Likewise.
12045
5ef5c511
VS
120462011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12047
12048 * util/grub-mkimage.c (generate_image): Decrease the higher limit
12049 because of stack.
12050 * util/grub-setup.c (setup): Don't add redundancy past the higher load
12051 limit.
12052
c476e6df
VS
120532011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12054
12055 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
12056 text_width > available width a bit more gracefully.
12057
384ad7cc
VS
120582011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12059
12060 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
12061 current address calculation.
12062
96f8caf8
VS
120632011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
12066 stack.
12067 (encode_block): Likewise.
12068
276b7a8b
VS
120692011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12070
12071 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
12072 certainety.
12073
e3fd394a
VS
120742011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
12077 non-RS part to avoid RS messing with GDT.
12078 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
12079 Increase to suit in realmode routines.
12080
120812011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12082
12083 * grub-core/kern/i386/realmode.S: Increase alignment.
12084 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
12085
ee9c2e7a
VS
120862011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12087
12088 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
12089 be deterministic.
12090 (syndroms): Compute 0 syndrom.
12091 (rs_recover): Use 0 syndrom.
12092
7a7f7cc9
VS
120932011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
12096
a14b16d1
VS
120972011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12098
12099 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
12100 brackets.
12101
9f59e9fc
VS
121022011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12103
ca1b552c
VS
12104 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
12105 account.
12106 (get_top_pad): Likewise.
12107 (get_right_pad): Likewise.
12108 (get_bottom_pad): Likewise.
12109
121102011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12111
12112 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 12113
e739d698
VS
121142011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12115
12116 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
12117 attribute as the structure isn't guaranteed to be properly aligned.
12118 (grub_efi_pci_device_path): Likewise.
12119 (grub_efi_pccard_device_path): Likewise.
12120 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
12121 specify the size of `memory_type'.
12122 (grub_efi_vendor_device_path): Likewise.
12123 (grub_efi_controller_device_path): Likewise.
12124 (grub_efi_acpi_device_path): Likewise.
12125 (grub_efi_expanded_acpi_device_path): Likewise.
12126 (grub_efi_atapi_device_path): Likewise.
12127 (grub_efi_scsi_device_path): Likewise.
12128 (grub_efi_fibre_channel_device_path): Likewise.
12129 (grub_efi_1394_device_path): Likewise.
12130 (grub_efi_usb_device_path): Likewise.
12131 (grub_efi_usb_class_device_path): Likewise.
12132 (grub_efi_i2o_device_path): Likewise.
12133 (grub_efi_mac_address_device_path): Likewise.
12134 (grub_efi_ipv4_device_path): Likewise.
12135 (grub_efi_ipv6_device_path): Likewise.
12136 (grub_efi_infiniband_device_path): Likewise.
12137 (grub_efi_uart_device_path): Likewise.
12138 (grub_efi_vendor_messaging_device_path): Likewise.
12139 (grub_efi_hard_drive_device_path): Likewise.
12140 (grub_efi_cdrom_device_path): Likewise.
12141 (grub_efi_vendor_media_device_path): Likewise.
12142 (grub_efi_file_path_device_path): Likewise.
12143 (grub_efi_protocol_device_path): Likewise.
12144 (grub_efi_piwg_device_path): Likewise.
12145 (grub_efi_bios_device_path): Likewise.
12146
cb8f88ea
VS
121472011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12148
12149 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
12150 (grub_ucs4_to_utf8_alloc): Likewise.
12151 (grub_ucs4_to_utf8): Likewise.
12152 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
12153 (grub_ucs4_to_utf8_alloc): Likewise.
12154
309e5352
VS
121552011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12156
12157 AFFS never uses unicode.
12158
12159 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
12160 (grub_latin1_to_utf8): New inline function.
12161 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
12162
e7987e1b
VS
121632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12164
12165 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
12166 overflow.
12167
efc2616e
VS
121682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12169
12170 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
12171 (grub_squash_dirent_header): Likewise.
12172 (read_chunk): Don't double swap.
12173 (grub_squash_iterate_dir): Fix swap sizes.
12174
3c349f5a
VS
121752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12176
12177 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
12178
b453412d
VS
121792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12180
12181 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
12182 (grub_hfs_iterate_dir): Likewise.
12183
12e9d4d1
VS
121842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12185
12186 Fix video on platforms where unaligned access is forbidden.
12187 Make several optimisations while on it.
12188
12189 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
12190 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12191 (grub_video_fbblit_replace_32bit_1bit): Likewise.
12192 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12193 Disable.
12194 (grub_video_fbblit_replace_16bit_1bit):
12195 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12196 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12197 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
12198 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
12199 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12200 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12201 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
12202 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
12203 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
12204 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
12205 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
12206 (grub_video_fbblit_replace_index_RGB888): Likewise.
12207 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
12208 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
12209 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
12210 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
12211 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
12212 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12213 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12214 Disable.
12215 (grub_video_fbblit_blend_XXX565_1bit):
12216 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12217 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
12218 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
12219 void *.
12220 * grub-core/video/fb/video_fb.c (common_blitter)
12221 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
12222 (grub_video_fb_create_render_target_from_pointer)
12223 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12224 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
12225 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
12226 definition.
12227 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
12228
ace96609
VS
122292011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12230
12231 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
12232 HH22 and HM10 relocations.
12233
fd261d73
VS
122342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12235
12236 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
12237
e59b7857
VS
122382011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12239
12240 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
12241 allocation succeeded.
12242
9b4baaa4
VS
122432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12244
12245 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
12246 argument a u8 pointer. All users updated.
12247 Handle unaligned buffers.
12248
dc713193
VS
122492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12250
12251 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
12252 add_part to workaround compiler bug.
12253
30dd48c2
VS
122542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12255
12256 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
12257
0c6087a8
VS
122582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12259
12260 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
12261 Reserve alignment invariants.
12262 (grub_multiboot_load): Likewise.
12263 (retrieve_video_parameters): Likewise.
12264 (grub_multiboot_make_mbi): Likewise.
12265
c2e77777
VS
122662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12267
12268 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
12269 incorrect pointer.
12270
b70b6d11
VS
122712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12272
12273 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
12274 (grub_pata_pio_write): Likewise.
12275
02a2bf83
VS
122762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12277
12278 Add noreturn attributes and remove unreachable code.
12279
12280 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
12281 code.
12282 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
12283 code. Mark as noreturn.
12284 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
12285 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
12286 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
12287 unreachable code.
12288 * grub-core/kern/main.c (grub_main): Mark as noreturn.
12289 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
12290 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
12291 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
12292 * include/grub/kernel.h (grub_main): Mark as noreturn.
12293 * include/grub/reader.h (grub_rescue_run): Likewise.
12294
2019d09e
VS
122952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12296
12297 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
12298 redundant declaration.
12299
d1c501ee
VS
123002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 * include/grub/net.h (grub_net_network_level_interfaces): Remove
12303 redundant declaration.
12304 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
12305
61664420
VS
123062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12307
12308 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
12309 to ensure alignment.
12310 (grub_hdparm_print_identify): Make argument uint16 * to ensure
12311 alignment. Ensure tmp alignment.
12312 (grub_cmd_hdparm): Ensure buf alignment.
12313 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
12314 to ensure alignment.
12315 (grub_ata_dumpinfo): Ensure text alignment.
12316 (grub_atapi_identify): Preserve alignment invariant.
12317 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
12318
0d51ee20
VS
123192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12320
12321 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
12322 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
12323 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
12324 * include/grub/misc.h (grub_reboot)
12325 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
12326 (grub_halt) [__mips__]: Likewise.
12327
753ef8c1
VS
123282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12329
12330 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
12331 Remove redundant declaration.
12332 (grub_mmap_get_post64): Likewise.
12333 (grub_mmap_get_upper): Likewise.
12334 (grub_mmap_get_lower): Likewise.
12335
85c85365
VS
123362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12337
12338 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
12339 uint32_t * to ensure alignment.
12340 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
12341
a23f2cc4
VS
123422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12343
93018f64
VS
12344 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
12345 uint16_t * to ensure alignment.
12346 (sun_pc_partition_map_iterate): Make `block' a union to ensure
12347 alignment.
12348
123492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
12352 to ensure alignment.
12353 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
12354
58acccd6
VS
123552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12356
12357 * grub-core/fs/ntfs.c (u16at): Make into inline function.
12358 Handle unaligned pointers.
12359 (u32at): Likewise.
12360 (u64at): Likewise.
12361 (fixup): Use byte access instead of v16at.
12362 (find_attr): Fix imporper usage of v32at.
12363 (read_data): Likewise.
12364 (list_file): Handle byte-swapping and unaligned strings.
12365 (grub_ntfs_label): Likewise.
12366
9b05cad7
VS
123672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12368
12369 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
12370 as it's not necessarily aligned.
12371
b3950b84
VS
123722011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12373
12374 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
12375 redundant declaration.
12376 (grub_serial_init): Likewise.
12377 (grub_terminfo_init): Likewise.
12378
fcd232b7
VS
123792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12380
12381 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
12382 function.
12383 (ZAP_HASH_IDX): Likewise.
12384 (ZAP_LEAF_HASH_SHIFT): Likewise.
12385 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
12386 (LEAF_HASH): Likewise.
12387 (ZAP_LEAF_NUMCHUNKS): Likewise.
12388 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
12389 alignment invariants. Return pointer. All users updated.
12390 (ZAP_LEAF_ENTRY): Make into inline function.
12391 (NBBY): Removed.
12392 (xor): LIkewise.
12393 (xor_out): Use grub_crypto_xor.
12394 (dnode_get_path): Use grub_get_unaligned.
12395 (nvlist_find_value): Likewise.
12396 (grub_zfs_nvlist_lookup_uint64): Likewise.
12397 (grub_zfs_nvlist_lookup_string): Likewise.
12398 (get_nvlist_size): Likewise.
12399 (grub_zfs_open): Likewise.
12400 (fill_fs_info): Likewise.
12401 (grub_zfs_dir): Likewise.
12402 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
12403 alignment invariants.
12404 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
12405 necessarily aligned.
12406
f138623a
VS
124072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12408
12409 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
12410
564840dc
VS
124112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12412
12413 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
12414 arithmetic to conserve alignment invariants.
12415
9b40df20
VS
124162011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12417
12418 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
12419 redundant declaration.
12420 (grub_efiemu_mm_obtain_request): Likewise.
12421 (grub_efiemu_prepare): Likewise.
12422
d1c930f9
VS
124232011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12424
12425 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
12426 to match types.
12427
4c5f3056
VS
124282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12429
12430 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
12431 case of aunaligned recptr.
12432 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
12433 alignment.
12434 (grub_hfsplus_btree_search): Handle unaligned index.
12435
728cba91
VS
124362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12437
12438 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
12439 to get freetag and skip.
12440
eb561f31
VS
124412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12442
12443 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
12444 array.
12445 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
12446 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
12447
20993fbb
VS
124482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12449
12450 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
12451 name for checksum and fix allocation algorithm.
12452
1f313b94
VS
124532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12454
12455 * include/grub/types.h (grub_properly_aligned_t): New type.
12456 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
12457 (grub_get_unaligned16): Add explicit casts.
12458 (grub_get_unaligned32): Likewise.
12459 (grub_get_unaligned64): Likewise.
12460 (grub_set_unaligned16): New function.
12461 (grub_set_unaligned32): Likewise.
12462
47ae27ec
VS
124632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12464
12465 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12466
78c2cd1c
VS
124672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12468
12469 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
12470 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
12471 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
12472
53072f9b
VS
124732011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12474
12475 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
12476 conditionals.
12477
055dc239
VS
124782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12479
12480 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
12481 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
12482
496bd074
VS
124832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12484
12485 Unify and improve RAID and crypto xor.
12486
12487 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
12488 changed to grub_crypto_xor
12489 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
12490 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
12491 Use bigger types when possible.
12492
ef6e4335
VS
124932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12494
12495 * grub-core/disk/raid.c (scan_devices): Fix condition.
12496
5d048bf2
VS
124972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12498
12499 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
12500 Make name a const ptr.
12501
ee533335
VS
125022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12503
12504 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
12505 first argument a const pointer.
12506 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12507 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
12508 proto.
12509 (grub_children_iterate): Likewise.
12510 (grub_machine_mmap_iterate): Remove redundant declaration.
12511
cc8f3668
VS
125122011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12513
12514 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
12515 (grub_cmd_acpi) [!x86]: Disable EBDA.
12516
c5fc563a
VS
125172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12518
12519 Enable UTF8 in gnulib regexp.
12520
12521 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
12522 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
12523 (isupper): Use grub_isupper.
12524 (isascii): New inline function.
12525 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
12526 * grub-core/lib/posix_wrap/wctype.h: Likewise.
12527 * grub-core/normal/charset.c (grub_utf8_process): New function.
12528 (grub_utf8_to_utf16): Use grub_utf8_process.
12529 (grub_encode_utf8_character): New function.
12530 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
12531 * include/grub/charset.h (grub_utf8_process): New declaration.
12532 (grub_encode_utf8_character): Likewise.
12533 * include/grub/misc.h (grub_islower): New inline function.
12534 (grub_isupper): Likewise.
12535 (grub_strchrsub): Moved down to fix the definitions.
12536
0af2346f
VS
125372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12538
12539 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
12540 specification.
12541
74dbd244
VS
125422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12543
12544 * include/grub/loader.h (grub_loader_register_preboot_hook):
12545 Use struct preboot * and not void * for handle. All users updated.
12546 (grub_loader_unregister_preboot_hook): Likewise.
12547
1bc8f60d
VS
125482011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12549
12550 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
12551 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
12552 UTF-16-BE. All users updated.
12553 (grub_hfsplus_cmp_catkey): Fix unicode handling.
12554 (grub_hfsplus_iterate_dir): Likewise.
12555 (grub_hfsplus_label): Likewise.
12556
48d6e456
VS
125572011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12558
12559 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
12560
bf3a3857
VS
125612011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
12562
12563 Add missing const qualifiers.
12564
12565 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
12566 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
12567 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
12568 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
12569 (grub_lvm_check_flag): Likewise.
12570 * grub-core/efiemu/i386/coredetect.c
12571 (grub_efiemu_get_default_core_name): Likewise
12572 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
12573 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
12574 * grub-core/fs/ntfs.c (fixup): Likewise.
12575 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
12576 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
12577 (fzap_lookup): Likewise.
12578 (zap_lookup): Likewise.
12579 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
12580 * grub-core/lib/legacy_parse.c (check_option): Likewise.
12581 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
12582 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
12583 (grub_freebsd_add_meta_module): Likewise.
12584 (grub_cmd_freebsd_module): Likewise.
12585 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
12586 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
12587 (grub_xnu_writetree_get_size): Likewise.
12588 (grub_xnu_writetree_toheap_real): Likewise.
12589 (grub_xnu_find_key): Likewise.
12590 (grub_xnu_create_key): Likewise.
12591 (grub_xnu_create_value): Likewise.
12592 (grub_xnu_register_memory): Likewise.
12593 (grub_xnu_check_os_bundle_required): Likewise.
12594 (grub_xnu_scan_dir_for_kexts): Likewise.
12595 (grub_xnu_load_kext_from_dir): Likewise.
12596 * grub-core/normal/color.c (color_list): Likewise.
12597 * grub-core/normal/completion.c (current_word): Likewise.
12598 * grub-core/normal/menu_entry.c (insert_string): Likewise.
12599 * grub-core/term/serial.c (grub_serial_find): Likewise.
12600 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
12601 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
12602 Likewise.
12603 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
12604 (grub_freebsd_add_meta_module): Likewise.
12605 * include/grub/lib/arg.h (grub_arg_option): Likewise.
12606 * include/grub/net.h (grub_net_card_driver): Likewise.
12607 (grub_net_card): Likewise.
12608 (grub_net_app_protocol): Likewise.
12609 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
12610 * include/grub/serial.h (grub_serial_find): Likewise.
12611 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
12612 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
12613 (grub_xnu_create_value): Likewise.
12614 (grub_xnu_find_key): Likewise.
12615 (grub_xnu_scan_dir_for_kexts): Likewise.
12616 (grub_xnu_load_kext_from_dir): Likewise.
12617
12618 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
12619 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
12620 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
12621 Moved from here ...
12622 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
12623
112b4837
CW
126242011-11-28 Colin Watson <cjwatson@ubuntu.com>
12625
12626 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
12627
49e891ac
VS
126282011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
12629
12630 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
12631 (read_device): Fix size calculation.
12632
fd258e5c
RM
126332011-11-25 Robert Millan <rmh@gnu.org>
12634
12635 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
12636 (find_root_device_from_libzfs): Add zpool output parser to be used
12637 as fallback when libzfs isn't available.
12638
78845dc2
SG
126392011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
12640
12641 * po/Makefile.in.in: Add missing escape-continuation.
12642
adac5211
VS
126432011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
12644
12645 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
12646
10b64f1c
VS
126472011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12648
12649 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
12650
bb416954
VS
126512011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12652
12653 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
12654
bdfe9eeb
VS
126552011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12656
12657 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
12658
581ffa8a
VS
126592011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
12660
12661 * grub-core/lib/adler32.c: Add missing license specification.
12662 * grub-core/lib/crc64.c: Likewise.
12663 * grub-core/loader/i386/pc/plan9.c: Likewise.
12664 * grub-core/partmap/plan.c: Likewise.
12665
2536cf64
LK
126662011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
12667
12668 Add facility to debug GRUB with gdb under qemu.
12669
12670 * grub-core/gdb_grub.in: New file.
12671 * grub-core/gmodule.pl.in: Likewise.
12672 * grub-core/Makefile.core.def (gmodule.pl): New script.
12673 (gdb_grub): Likewise.
12674
bc108a4a
VS
126752011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12676
12677 * util/grub-mount.c (argp_parser): Accept relative pathes.
12678 * util/grub-fstest.c (argp_parser): Likewise.
12679
111c1778
VS
126802011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12681
12682 Plan9 support.
12683
12684 * Makefile.util.def (libgrubmods): Add
12685 grub-core/partmap/plan.c.
12686 * docs/grub.texi: Notice Plan9 support.
12687 * grub-core/Makefile.core.def (plan9): New module.
12688 (part_plan): Likewise.
12689 * grub-core/loader/i386/pc/plan9.c: New file.
12690 * grub-core/partmap/plan.c: Likewise.
12691 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
12692 define.
12693 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
12694 * include/grub/mm.h (grub_extend_alloc): New inline function.
12695
c30be3b6
VS
126962011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12697
12698 Make Reed-Solomon faster by using power of generator representation of
12699 GF(256)*.
12700
12701 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
12702 (gf_double_t): Likewise.
12703 (gf_invert): Removed.
12704 (gf_powx): New array.
12705 (gf_powx_inv): Likewise.
12706 (scratch): Move higher.
12707 (gf_reduce): Removed.
12708 (gf_mul): Use powx.
12709 (gf_invert): Likewise.
12710 (init_inverts): Replaced with ...
12711 (init_powx): ...this. All users updated.
12712 (pol_evaluate): Replace multiplications with additions.
12713 (rs_encode): Likewise.
12714 (gauss_eliminate): Call gf_invert.
12715 (grub_reed_solomon_add_redundancy): Call init_powx.
12716 (grub_reed_solomon_recover): Call init_powx unconditionally.
12717
fa5aeffc
VS
127182011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12719
12720 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
12721
a346b81c
VS
127222011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12723
12724 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
12725 disk->partiton for safety.
12726
d89ee414
VS
127272011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12728
12729 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
12730 Fix a memory leak.
12731 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
12732
91ee7b6d
VS
127332011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12734
12735 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
12736
91e5a33d
VS
127372011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12738
12739 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
12740
9edd7be2
VS
127412011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12742
12743 Fix spaces handling in proc/self/mountinfo.
12744
12745 * util/getroot.c (unescape): New function.
12746 (grub_find_root_device_from_mountinfo): Use unescape.
12747
ba102053
VS
127482011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12749
12750 Support ZFS embedding.
12751
12752 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
12753 (grub_zfs_fs): Register grub_zfs_embed.
12754
aa94b870
VS
127552011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12756
12757 Fix MIPS compilation.
12758
12759 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
12760 * include/grub/offsets.h: Rename decompressor fields from
12761 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
12762 * util/grub-mkimage.c (image_targets): Use new names.
12763
5fbdac14
VS
127642011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12765
12766 Defer multiboot device parsing until we're in compressed part.
12767
12768 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
12769 bsd_part. setdevice has fallen into disuse.
12770 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
12771 (bsd_part): Likewise.
12772 (boot_dev): New variable.
12773 (multiboot_trampoline): Don't parse multiboot device.
12774 Pass multiboot device in %edx.
12775 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
12776 grub_boot_device.
12777 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
12778 Likewise.
12779 * grub-core/kern/i386/pc/startup.S: Save edx.
12780 (grub_boot_drive): Removed.
12781 (grub_install_dos_part): Likewise.
12782 (grub_install_bsd_part): Likewise.
12783 (grub_boot_device): New variable.
12784 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
12785 (grub_install_bsd_part): Likewise.
12786 (grub_boot_drive): Likewise.
12787 (grub_boot_device): New variable.
12788 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
12789 Removed.
12790 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12791 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
12792 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
12793 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
12794 * util/grub-install.in: Remove redundant condition.
12795
691cbb58
VS
127962011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12797
12798 Fix bug introduced by previous commit.
12799
12800 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
12801
60240b8b
VS
128022011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12803
12804 Use decompressors framework on i386-pc. It increases core size
12805 by 46 bytes but improves compatibility and maintainability.
12806
12807 * grub-core/Makefile.core.def (lzma_decompress): New image.
12808 (kernel): Add i386_pc_ldflags.
12809 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
12810 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
12811 to real_to_prot, prot_to_real and device info.
12812 * include/grub/offsets.h: Renamed decompressor offsets.
12813 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
12814 (image_target_desc): Remove raw_size and rename decompressor fields.
12815 (compress_kernel): Handle lzma.
12816 (generate_image): Handle decompressors on i386-pc.
12817
e9d3421c
VS
128182011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 * configure.ac: Add -fno-asynchronous-unwind-tables.
12821
2b23074a
VS
128222011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12823
12824 Move assembly code to C by using intwrap. It increases core size
12825 by 88 bytes but improves compatibility and maintainability.
12826
12827 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
12828 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
12829 ... here. Translated to C.
12830 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
12831 * grub-core/term/i386/pc/console.c (grub_console_getkey):
12832 ... here. Translated to C.
12833 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
12834 * grub-core/term/i386/pc/console.c (grub_console_getxy):
12835 ... here. Translated to C.
12836 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
12837 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
12838 ... here. Translated to C.
12839 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
12840 * grub-core/term/i386/pc/console.c (grub_console_cls):
12841 ... here. Translated to C.
12842 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
12843 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
12844 ... here. Translated to C.
12845 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
12846 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
12847 Translated to C.
12848 * grub-core/term/i386/pc/console.c (int10_9): New function.
12849 (grub_console_putchar): Likewise.
12850 * include/grub/i386/pc/console.h: Removed the not anymore shared
12851 functions.
12852
678f4b67
VS
128532011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12854
12855 Move grub_chainloader_real_boot out of the kernel.
12856
12857 * grub-core/Makefile.am: Remove machine/loader.h.
12858 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12859 Removed.
12860 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
12861 variable.
12862 (grub_relocator16_keep_a20_enabled): Likewise.
12863 (grub_relocator16_boot): Fill new variables.
12864 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
12865 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
12866 relocator.
12867 (grub_chainloader_unload): Likewise.
12868 (grub_chainloader_cmd): Likewise.
12869 * include/grub/i386/pc/loader.h: Removed.
12870 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
12871 and esi. All initialisers updated.
12872
4626edf6
VS
128732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
128742011-11-12 Colin Watson <cjwatson@ubuntu.com>
12875
12876 * Makefile.util.def (grub-mount): New util.
12877 * .bzrignore: Add grub-mount.
12878 * configure.ac: Check for fuse and enable grub-mount if available.
12879 * docs/man/grub-mount.h2m: New file.
12880 * util/grub-mount.c: Likewise.
12881
10f0117b
VS
128822011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12883
12884 * grub-core/commands/efi/fixvideo.c: Gettextize.
12885 * grub-core/commands/hashsum.c: Likewise.
12886 * grub-core/commands/i386/cmostest.c: Likewise.
12887 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12888 * grub-core/commands/i386/pc/lsapm.c: Likewise.
12889 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12890 * grub-core/commands/lsmmap.c: Likewise.
12891 * grub-core/commands/menuentry.c: Likewise.
12892 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
12893 * grub-core/commands/setpci.c: Likewise.
12894 * grub-core/loader/i386/bsd.c: Likewise.
12895 * grub-core/loader/i386/linux.c: Likewise.
12896 * util/getroot.c: Likewise.
12897 * util/grub-editenv.c: Likewise.
12898 * util/grub-fstest.c: Likewise.
12899 * util/grub-mkfont.c: Likewise.
12900 * util/grub-mkimage.c: Likewise.
12901 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12902 * util/grub-pe2elf.c: Likewise.
12903 * util/grub-probe.c: Likewise.
12904 * util/grub-setup.c: Likewise.
12905 * util/ieee1275/ofpath.c: Likewise.
12906 * util/misc.c: Likewise.
12907 * util/raid.c: Likewise.
12908
566f779b
RM
129092011-11-11 Robert Millan <rmh@gnu.org>
12910
12911 * util/getroot.c (grub_util_get_geom_abstraction): Remove
12912 __attribute__((unused)) from `os_dev', which *is* being used.
12913
b50787de
VS
129142011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12915
12916 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
12917 forgotten define.
12918 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
12919 GRUB_IA64_DL_GOT_ALIGN.
12920 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
12921 GRUB_IA64_DL_TRAMP_ALIGN.
12922
119d11c8
VS
129232011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12924
12925 Replace grub_fatal with normal errors in i386 linux loader.
12926
12927 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
12928 (allocate_pages): Check find_efi_mmap_size return value.
12929 (grub_e820_add_region): Return error.
12930 (grub_linux_boot): Check mmap return value.
12931
6e0632e2
VS
129322011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 * grub-core/commands/acpihalt.c: Gettextized.
12935 * grub-core/commands/cacheinfo.c: Likewise.
12936 * grub-core/commands/cmp.c: Likewise.
12937 * grub-core/commands/efi/loadbios.c: Likewise.
12938 * grub-core/commands/gptsync.c: Likewise.
12939 * grub-core/commands/ieee1275/suspend.c: Likewise.
12940 * grub-core/commands/legacycfg.c: Likewise.
12941 * grub-core/commands/memrw.c: Likewise.
12942 * grub-core/commands/minicmd.c: Likewise.
12943 * grub-core/commands/parttool.c: Likewise.
12944 * grub-core/commands/time.c: Likewise.
12945 * grub-core/commands/videoinfo.c: Likewise.
12946 * grub-core/disk/geli.c: Likewise.
12947 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
12948 * grub-core/disk/luks.c: Likewise.
12949 * grub-core/disk/lvm.c: Likewise.
12950 * grub-core/font/font_cmd.c: Likewise.
12951 * grub-core/fs/zfs/zfscrypt.c: Likewise.
12952 * grub-core/fs/zfs/zfsinfo.c: Likewise.
12953 * grub-core/gfxmenu/view.c: Likewise.
12954 * grub-core/kern/emu/hostdisk.c: Likewise.
12955 * grub-core/kern/emu/main.c: Likewise.
12956 * grub-core/kern/emu/misc.c: Likewise.
12957 * grub-core/kern/emu/mm.c: Likewise.
12958 * grub-core/kern/mips/arc/init.c: Likewise.
12959 * grub-core/kern/mips/loongson/init.c: Likewise.
12960 * grub-core/kern/partition.c: Likewise.
12961 * grub-core/lib/i386/halt.c: Likewise.
12962 * grub-core/lib/mips/arc/reboot.c: Likewise.
12963 * grub-core/lib/mips/loongson/reboot.c: Likewise.
12964 * grub-core/loader/i386/pc/chainloader.c: Likewise.
12965 * grub-core/loader/i386/xnu.c: Likewise.
12966 * grub-core/loader/multiboot.c: Likewise.
12967 * grub-core/net/bootp.c: Likewise.
12968 * grub-core/net/net.c: Likewise.
12969 * grub-core/normal/term.c: Likewise.
12970 * grub-core/partmap/bsdlabel.c: Likewise.
12971 * grub-core/parttool/msdospart.c: Likewise.
12972 * grub-core/term/gfxterm.c: Likewise.
12973 * grub-core/term/terminfo.c: Likewise.
12974 * grub-core/video/i386/pc/vbe.c: Likewise.
12975 * util/grub-menulst2cfg.c: Likewise.
12976 * util/grub-mkdevicemap.c: Likewise.
12977 * util/grub-mklayout.c: Likewise.
12978 * util/grub-mkrelpath.c: Likewise.
12979 * util/grub-script-check.c: Likewise.
12980 * util/ieee1275/grub-ofpathname.c: Likewise.
12981 * util/resolve.c: Likewise.
12982
073aa7a9
VS
129832011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12984
12985 Support %1$d syntax.
12986
12987 * tests/printf_unit_test.c: New file.
12988 * Makefile.util.def (printf_test): New test.
12989 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
12990
c76b5417
VS
129912011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
12994 fix.
12995
df067ad1
VS
129962011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12997
12998 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
12999 dprintf.
13000 * grub-core/font/font.c (grub_font_load): Likewise.
13001
5b289bc5
VS
130022011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13003
13004 * util/grub-macho2img.c: Add comment concerning gettext.
13005 * grub-core/lib/legacy_parse.c: Likewise.
13006
c1860f87
VS
130072011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
13010 (grub_xvasprintf): Likewise.
13011
d35d0d37
VS
130122011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13013
13014 Add const keyword to grub_env_get and gettextize week days.
13015
13016 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
13017 (grub_read_hook_datetime): Return const char *.
13018 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
13019 updated.
13020 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
13021 Mark for gettext.
13022 (grub_get_weekday_name): Return const char *. Call gettext.
13023 * grub-core/script/argv.c (grub_script_argv_append): Receive const
13024 char * and len as the argument. All users updated.
13025 (grub_script_argv_split_append): Receive const char *.
13026 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
13027 * include/grub/env.h (grub_env_get): Likewise.
13028 (grub_env_read_hook_t): Return const char *.
13029 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
13030 (grub_script_argv_split_append): Likewise.
13031
9aed8a71
VS
130322011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13033
13034 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
13035
067fdf00
VS
130362011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13037
13038 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
13039 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
13040
a8bd9d39
VS
130412011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
13044 Fix prototype.
13045
f7ce5baf
VS
130462011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13047
13048 Fix mips compilation.
13049
13050 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
13051 normal decoder.
13052 (hashes): Use in embed decoder as well (for sizes).
13053 (dec_stream_header): Fix embed decompressor logic.
13054 (dec_stream_footer): Likewise.
13055
9bb182f3
VS
130562011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13057
13058 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
13059 an error and not a fatal on unrecognised relocation types.
13060
63a9e6f6
VS
130612011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13062
13063 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13064 Issue error rather than printf on unknown arguments.
13065
4c458569
VS
130662011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13067
13068 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
13069 Make buf a const.
13070
e2d22baf
VS
130712011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
13074 Fix module name.
13075
53dc8590
VS
130762011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13077
13078 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
13079 leftover debug printf.
13080
6c189294
VS
130812011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13082
13083 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
13084
f7688369
VS
130852011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13086
13087 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
13088 A stylistic fix.
13089
11a775a3
VS
130902011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13091
13092 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
13093
33f784e8
SL
130942011-11-10 Shea Levy <slevy@tieronedesign.com>
13095
13096 Allow all modules to perform serial IO
13097
13098 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
13099 * include/grub/serial.h (grub_serial_port_configure): New inline
13100 function.
13101 (grub_serial_port_fetch): Likewise.
13102 (grub_serial_port_put): Likewise.
13103 (grub_serial_port_fini): Likewise.
13104 (grub_serial_find): New proto.
13105
f6276525
VS
131062011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13107
13108 Put symlink at the end of the node and fix a potential
13109 memory corruption.
13110
13111 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
13112 Make symlink into an array.
13113 (set_rockridge): Set have_symlink and alloc_dirents.
13114 (grub_iso9660_read_symlink): Use new layout.
13115 (grub_iso9660_iterate_dir): Fix memory corruption.
13116 Use new layout.
13117 (grub_iso9660_dir): Set have_symlink.
13118 (grub_iso9660_open): Likewise.
13119
c3591189
VS
131202011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13121
13122 Remove local keyword.
13123
13124 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
13125 (version_test_gt): Likewise.
13126 (version_find_latest): Likewise.
13127 (gettext_printf): Likewise.
13128 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
13129
cb544caa
VS
131302011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13131
13132 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
13133
45bd824d
VS
131342011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13135
13136 Fix ZFS memory and resource leaks.
13137
13138 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
13139 All users updated.
13140 Free type on exit.
13141 (fill_vdev_info): New parameter inserted. All users updated.
13142 (check_pool_label): Likewise.
13143 (scan_disk): Likewise.
13144 (scan_devices): Close non-inserted disks.
13145 (fzap_iterate): Free l.
13146 (unmount_device): Free children descripto memory.
13147
ad9a2f44
VS
131482011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13149
13150 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
13151 argument (access out of bounds).
13152
6b68db81
VS
131532011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13154
13155 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
13156 >= 6 drives.
13157
28840fda
VS
131582011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13159
13160 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
13161 Fix declaration.
13162
8a5a3a5b
VS
131632011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13164
13165 Fix several memory leaks.
13166
13167 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
13168 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
13169 (grub_cpio_dir): Likewise.
13170 * grub-core/fs/fat.c (grub_fat_label): Likewise.
13171 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
13172 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
13173 (grub_romfs_label): Likewise.
13174 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
13175 (squash_unmount): New function.
13176 (grub_squash_dir): Fix memory leak.
13177 (grub_squash_open): Likewise.
13178 (grub_squash_read): Likewise.
13179 (grub_squash_mtime): Likewise.
13180 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
13181 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
13182 * util/grub-fstest.c (fstest): Likewise.
13183
57b01250
VS
131842011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13185
13186 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
13187 avoid accessing beyond the array.
13188
19e81ba7
VS
131892011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13190
13191 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
13192
52b656c0
VS
131932011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13194
13195 Several AFFS fixes.
13196
13197 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
13198 (GRUB_AFFS_FLAG_FFS): Removed.
13199 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
13200 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
13201 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
13202 (grub_fshelp_node): Make block 32-bit.
13203 Add block_cache and last_block_cache.
13204 (grub_affs_read_block): Fill and use block cache.
13205 (grub_affs_read_file): Removed.
13206 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
13207 boot block.
13208 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
13209 safety.
13210 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
13211 space.
13212 (grub_affs_close): Free block cache.
13213 (grub_affs_read): Use grub_fshelp_read_file directly.
13214
438a746a
VS
132152011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13216
13217 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
13218 with no error set.
13219
49a45021
VS
132202011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13221
13222 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
13223 used variable.
13224 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13225 Likewise.
13226
3ae17eb8
VS
132272011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13228
13229 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
13230
13231 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
13232 byteswap when needed.
13233
27610c38
VS
132342011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13235
13236 Fix FreeBSD compilation.
13237
13238 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
13239 to avoid circular dependency.
13240 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
13241 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
13242 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
13243
4a19b601
VS
132442011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13245
13246 Fix ZFS crypto error types.
13247
13248 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
13249 (grub_gcm_decrypt): Likewise.
13250 (grub_zfs_load_key_real): Fix error code type. Handle possible error
13251 from PBKDF2.
13252
958ee221
VS
132532011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13254
13255 Illumos support.
13256
13257 * Makefile.util.def (10_illumos): New script.
13258 * configure.ac: Set COND_HOST_ILLUMOS.
13259 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
13260 Support Illumos calls.
13261 (find_partition_start) [__sun__]: Likewise.
13262 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
13263 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
13264 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
13265 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
13266 device.
13267 * util/grub-probe.c (probe) [__sun__]: Do character check.
13268 * util/grub.d/10_illumos.in: New file.
13269
cac14fb6
VS
132702011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 Support escaped commas in hostdisk.
13273
13274 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
13275 (find_grub_drive): Use unescape_cmp.
13276 (make_device_name): Escape commas.
13277
78e08dc3
VS
132782011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13279
13280 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
13281
9f421dd1
VS
132822011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13283
13284 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
13285 variable.
13286
ed64e9e2
VS
132872011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13288
13289 Support trampoline jumps on powerpc.
13290
13291 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
13292 __ia64__ path.
13293 (grub_dl_load_segments): Set mod->sz.
13294 (grub_dl_flush_cache): Flush whole space occupied by module, not just
13295 segments.
13296 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
13297 (jump): Likewise.
13298 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
13299 function.
13300 (trampoline): New struct.
13301 (trampoline_template): New const.
13302 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
13303 * include/grub/dl.h (grub_dl): Add sz element.
13304 [__powerpc__]: Follow __ia64__.
13305 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
13306 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
13307 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
13308 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
13309
3084ede4
VS
133102011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13311
13312 ZFS crypto support.
13313
13314 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
13315 * grub-core/Makefile.core.def (zfscrypt): New module.
13316 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
13317 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
13318 it. All users updated.
13319 (grub_zfs_decrypt): New var.
13320 (grub_zfs_load_key): Likewise.
13321 (zio_checksum_functions): Add SHA256+MAC.
13322 (zio_checksum_verify): Handle incomplete comparison due to MAC.
13323 (zio_read): Handle encrypted blocks.
13324 (zap_verify): Remove incorrect check.
13325 (fzap_iterate): Handle non-standard fzap.
13326 (zap_iterate): Likewise.
13327 (zap_iterate_u64): New function.
13328 (dnode_get_fullpath): Load keys.
13329 * grub-core/fs/zfs/zfscrypt.c: New file.
13330 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
13331 (grub_crypto_ecb_encrypt): Make input const.
13332 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
13333 (grub_crypto_ecb_encrypt): Make input const.
13334 (GRUB_CIPHER_AES): New macro.
13335 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
13336 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
13337 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
13338 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
13339 prefix. All users updated.
13340 (grub_zfs_add_key): New proto.
13341 (grub_zfs_decrypt): Likewise.
13342 (grub_zfs_load_key): Likewise.
13343 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
13344 * util/grub-fstest.c (options): Add -K option.
13345 (argp_parser): Likewise.
13346
b632b404
VS
133472011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13348
13349 Support zle compression on ZFS.
13350
13351 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
13352 (decomp_table): Add zle.
13353 * include/grub/zfs/zio.h (zio_compress): Add zle.
13354
c7ba4f69
VS
133552011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13356
13357 Support BtrFS embedding.
13358
13359 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
13360 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
13361 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
13362 * util/grub-setup.c (setup): Use fs embedding if available.
13363 Add additional sanity check.
13364
455377d9
VS
133652011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13366
13367 * util/grub-install.in: Fix condition for config_opt.
13368
c2fd16ca
VS
133692011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13370
13371 Support third redundancy strip on raidz3.
13372
13373 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
13374 Return error on singularity. All users updated.
13375 (read_device): Don't stop on 3rd failure on raidz3.
13376
8622923b
VS
133772011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13378
13379 Support case-insensitive ZFS subvolumes.
13380
13381 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
13382 All users updated.
13383 (zap_hash): Likewise.
13384 (name_cmp): New function.
13385 (zap_leaf_array_equal): New parameter case_insensitive.
13386 All users updated.
13387 (zap_leaf_lookup): Likewise.
13388 (fzap_lookup): Likewise.
13389 (zap_lookup): Likewise.
13390 (dnode_get_path): New parameter case_insensitive. Retrieve case
13391 sensitiviness of a volume. All users updated.
13392 (dnode_get_fullpath): New parameter case_insensitive.
13393 All users updated.
13394 (grub_zfs_dir): Set info.case_insensitiveness.
13395
95f2e860
VS
133962011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13397
13398 Support second redundancy strip on raidz(2,3).
13399
13400 * grub-core/fs/zfs/zfs.c (powx): New array.
13401 (powx_inv): Likewise.
13402 (poly): New const.
13403 (xor_out): New function.
13404 (gf_mul): Likewise.
13405 (recovery): Likewise.
13406 (read_device): Use second redundancy strip.
13407
11ee4389
VS
134082011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13409
13410 Use a power of generator representation of GF(256) multiplication group
13411 to save space time and complexity.
13412
13413 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
13414 (raid6_table2): Likewise.
13415 (powx): New array.
13416 (powx_inv): Likewise.
13417 (poly): New const.
13418 (grub_raid_block_mul): Replace with ...
13419 (grub_raid_block_mulx): ...this.
13420 (grub_raid6_init_table): Rewritten.
13421 (grub_raid6_recover): Use power of generator representation.
13422
09e2763f
VS
134232011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
13426 for the right device.
13427
8bec9a28
VS
134282011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13429
13430 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
13431 expected by grub-mkimage and it's more clear since there is no implicit
13432 padding.
13433
dbd3a32e
VS
134342011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13435
13436 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
13437 disk.
13438 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13439
182c872a
PMH
134402011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
13441
13442 * util/grub-mkrescue.in: Fix handling xorriso option.
13443
1e51cabd
VS
134442011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13445
13446 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
13447 NULL.
13448
9cc3581d 134492011-11-03 crocket <crockabiscuit@gmail.com>
13450
13451 * util/grub.d/10_linux.in: Add Slackware initrd naming.
13452
158dc1ea
VS
134532011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13454
13455 XZ CRC64 and SHA256 support.
13456
13457 * Makefile.util.def (libgrubmods): Add crc64.c.
13458 * grub-core/Makefile.core.def (crc64): New module.
13459 * grub-core/lib/crc64.c: New file.
13460 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
13461 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
13462 Fix the type.
13463 (MAX_HASH_SIZE): New define.
13464 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
13465 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
13466 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13467 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13468 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
13469 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
13470 Handle non-crc32 hashes.
13471 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
13472 (dec_stream_header): Handle non-crc32 hashes.
13473 (dec_stream_footer): Likewise.
13474 (dec_block_header): Likewise.
13475 (dec_main): Likewise.
13476 (xz_dec_init): Likewise.
13477 (xz_dec_reset): Likewise.
13478 (xz_dec_end): Likewise.
13479 * util/import_gcry.py: Add CRC64 line.
13480
9d9b3d2f
VS
134812011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
13484 as well.
13485
7d0ac931
VS
134862011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 Make reiserfs label retrieval similar to other *_label functions.
13489
13490 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
13491 (REISERFS_MAX_LABEL_LENGTH): Removed.
13492 (REISERFS_LABEL_OFFSET): Likewise.
13493 (grub_reiserfs_label): Rewritten.
13494
134952011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13496
13497 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
13498 field.
13499
cf5ba824
VS
135002011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13501
13502 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
13503
17744004
VS
135042011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13505
13506 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
13507 drive failure on both raidz and raidz2.
13508
aca5aefc
VS
135092011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13510
13511 Fix RAIDZ(2) for >= 5 devices.
13512
13513 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
13514 asize argument. All users updated.
13515
ce8ca56e
VS
135162011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13517
13518 Fix RAIDZ(2).
13519
13520 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
13521 (fill_vdev_info_real): Set ashift.
13522 (read_device): Rewrite RAIDZ part based on reverse engineering.
13523
7c01e783
VS
135242011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13525
13526 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
13527 don't report potentially unavialiable fields in debug output.
13528 (find_path): Fix double-free and memory leak.
13529
ce109e84
VS
135302011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13531
13532 Read label on UFS1.
13533
13534 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
13535 (grub_ufs_fs): Always set .label.
13536
87661123
VS
135372011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13538
13539 Use shifts in UFS.
13540
13541 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
13542 (grub_ufs_data): New field log2_blksz.
13543 (grub_ufs_read_file): Use shifts.
13544 (grub_ufs_mount): Check block size and logarithm it.
13545
46bc1dc2
VS
135462011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13547
13548 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
13549 long symlinks.
13550
19ee2987
VS
135512011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13552
13553 Handle symlinks and long names on tar and cpio.
13554
13555 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
13556 (ATTR_FILE): Likewise.
13557 (ATTR_DIR): Likewise.
13558 (ATTR_LNK): Likewise.
13559 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
13560 (grub_cpio_find_file): Fill mode, handle linkname field as well as
13561 L and K entries.
13562 (grub_cpio_mount): Zero-fill data.
13563 (handle_symlink): New function.
46bc1dc2
VS
13564 (grub_cpio_dir): Handle symlinks.
13565 (grub_cpio_open): Likewise.
13566 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 13567
c83a08d8
VS
135682011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13569
13570 Fix iso9660 filename limitations and fix memory leaks.
13571
13572 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
13573 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
13574
45cdd3ea
VS
135752011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13576
13577 Fix JFS file name length limitations.
13578
13579 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
13580 (grub_jfs_diropen): Fix maximum filename length.
13581 (grub_jfs_getent): Fix filename length.
13582 (grub_jfs_lookup_symlink): Fix size checks.
13583
94ef05c2
VS
135842011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13585
13586 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
13587 string.
13588
785ab8c7
VS
135892011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13590
eb0b6b45
VS
13591 Leverage BFS implementation to read AFS.
13592
13593 * Makefile.util.def (libgrubmods): Add afs.c.
13594 * grub-core/Makefile.core.def (afs): New module
13595 * grub-core/fs/afs.c: New file.
13596 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
13597
135982011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13599
13600 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 13601
c4a1628f
VS
136022011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13603
13604 * grub-core/fs/bfs.c: Run indent.
13605
5825b379
VS
136062011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13607
13608 BFS implementation based on the specification.
13609
13610 * grub-core/fs/bfs.c: New file.
13611 * Makefile.util.def (libgrubmods): Add bfs.c.
13612 * grub-core/Makefile.core.def (bfs): New module.
13613
42b2a706
VS
136142011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13615
13616 * util/grub-fstest.c (cmd_cp): Clarify error message.
13617 (cmd_cmp): Likewise.
13618
61b99bfc
YB
136192011-10-30 Yves Blusseau <blusseau@zetam.org>
13620
13621 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
13622 and befs_be.
13623
faba3d16
VS
136242011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
13625
13626 Remove afs and befs because of copyright problem.
13627
13628 * grub-core/fs/afs.c: Removed.
13629 * grub-core/fs/afs_be.c: Removed.
13630 * grub-core/fs/befs.c: Removed.
13631 * grub-core/fs/befs_be.c: Removed.
13632 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
13633 * grub-core/Makefile.core.def (afs): Removed.
13634 (afs_be): Likewise.
13635 (befs): Likewise.
13636 (befs_be): Likewise.
13637
c39224b0
VS
136382011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13639
13640 Prefer rockridge over Joliet.
13641
13642 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
13643 to ...
13644 (set_rockridge): ... here.
13645 (grub_iso9660_mount): Check rockridge on the primary label when
13646 discovering. Ignore Joliet if Rockridge is present.
13647
e551115a
VS
136482011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13649
13650 Use shifts in nilfs2.
13651
13652 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
13653 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
13654 (grub_nilfs2_palloc_entries_per_group): Replace with ...
13655 (grub_nilfs2_log_palloc_entries_per_group): ... this.
13656 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
13657 (grub_nilfs2_entries_per_block): Replaced with ...
13658 (grub_nilfs2_log_entries_per_block_log): ... this.
13659 (grub_nilfs2_blocks_per_group): Replaced with ...
13660 (grub_nilfs2_blocks_per_group_log): ... this.
13661 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
13662 (grub_nilfs2_blocks_per_desc_block_log): ... this.
13663 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
13664 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
13665 (grub_nilfs2_palloc_entry_offset): Replaced ...
13666 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
13667 (grub_nilfs2_dat_translate): Use shifts.
13668 (grub_nilfs2_read_inode): Likewise.
13669 (GRUB_MOD_INIT): Ensure that logs are correct.
13670
564dd58c
VS
136712011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13672
13673 Use shifts in minix filesystem.
13674
13675 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
13676 (GRUB_MINIX_ZONE2SECT): Likewise.
13677 (grub_minix_data): Replace block_size with log_block_size.
13678 (grub_minix_read_file): Use shifts.
13679 (grub_minix_mount): Check block size and take a logarithm.
13680
ed9ba06d
VS
136812011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13682
13683 Use shifts in squash4.
13684
13685 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
13686 (squash_mount): Check block size and take logarithm.
13687 (direct_read): Use shifts.
13688
ad03fe76
VS
136892011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13690
13691 Correct befs block counting logic.
13692
13693 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
13694 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
13695 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
13696 (grub_afs_read_inode): Use block_shift.
13697 (RANGE_SHIFT): New definition.
13698 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
13699 unexpected conditions, use shifts and appropriate types.
13700 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
13701
6563f63d
VS
137022011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 * grub-core/disk/raid.c (scan_devices): Check partition.
13705 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13706
5b1ae25f
VS
137072011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13708
13709 Support BFS (befs) UUID.
13710
13711 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
13712 (grub_afs_small_data_element_header): New struct.
13713 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
13714 (grub_afs_read_attribute) [MODE_BFS]: New function.
13715 (grub_afs_iterate_dir): Allocate for complete inode.
13716 (grub_afs_mount): Likewise.
13717 (grub_afs_uuid) [MODE_BFS]: New function.
13718 (grub_afs_fs) [MODE_BFS]: Add .uuid.
13719
f8d82408
VS
137202011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13721
13722 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
13723 (zfs_unmount): Fix memory leak.
13724
5773fb64
VS
137252011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13726
13727 Support NTFS reparse points.
13728
13729 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
13730 (symlink_descriptor): New struct.
13731 (grub_ntfs_read_symlink): New function.
13732 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
13733 (grub_ntfs_open): Likewise.
13734
91c3fdde
VS
137352011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13736
13737 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
13738
3be82e10
VS
137392011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13740
13741 fstest xnu_uuid subcommand.
13742
13743 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
13744 grub-core/commands/xnu_uuid.c.
13745 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
13746 (fstest): Handle xnu_uuid.
13747 (options): Document xnu_uuid.
13748 (argp_parser): Parse xnu_uuid.
13749
8e32442e
VS
137502011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13751
13752 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
13753 -l argument. Add newline at the end if printing.
13754 (GRUB_MOD_INIT): Document -l.
13755
52a05075
VS
137562011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13757
13758 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
13759
1869edb5
VS
137602011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13761
13762 ZFS multi-device and version 33 support.
13763
13764 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
13765 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
13766 (grub_zfs_data): Add multidev-ice-related fields.
13767 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
13768 (dva_get_offset): Make dva const.
13769 (zfs_fetch_nvlist): New function.
13770 (fill_vdev_info_real): Likewise.
13771 (fill_vdev_info): Likewise.
13772 (check_pool_label): Likewise.
13773 (scan_disk): Likewise.
13774 (scan_devices): Likewise.
13775 (read_device): Likewise.
13776 (read_dva): Likewise.
13777 (zio_read_gang): Use read_dva.
13778 (zio_read_data): Likewise.
13779 (zap_leaf_lookup): Add missing endian conversion.
13780 (zap_verify): Add missing endian conversion. All users updated.
13781 (fzap_lookup): Likewise.
13782 (fzap_iterate): Likewise.
13783 (dnode_get_path): Handle SA bonus.
13784 (nvlist_find_value): Make input const. All users updated.
13785 (unmount_device): New function.
13786 (zfs_unmount): Use unmount_device.
13787 (zfs_mount): Use scan_disk.
13788 (zfs_mtime): New function.
13789 (grub_zfs_open): Handle system attributes.
13790 (fill_fs_info): Likewise.
13791 (grub_zfs_dir): Likewise.
13792 (grub_zfs_fs): Add mtime.
13793 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
13794 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
13795 (SA_MTIME_OFFSET): Likewise.
13796 (SA_SYMLINK_OFFSET): Likewise.
13797 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
13798 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
13799 (fstest): Support zfsinfo.
13800 (argp_parser): Likewise.
13801
186b4028
VS
138022011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13803
13804 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
13805 error.
13806
138072011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
13808
13809 ZFS fixes.
13810
13811 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
13812 sharing the same block. Iterate over correct number of indices.
13813 (dnode_get_path): Handle symlinks correctly.
13814
c0584900
VS
138152011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
13818
67e2bd71
VS
138192011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13820
13821 Read label on HFS+.
13822
13823 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
13824 (grub_hfsplus_btree_search): Fix types.
13825 (grub_hfsplus_label): Implement.
13826
e9cc6b7b
VS
138272011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13828
13829 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
13830
19832ddb
VS
138312011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13832
13833 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
13834
66b40850
VS
138352011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13836
13837 Fix symlink handling on iso9660.
13838
13839 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
13840 All users updated.
13841 (grub_iso9660_susp_iterate): Accept zero-size iterate.
13842 (grub_iso9660_read_symlink): Moved most of code ...
13843 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
13844
db821363
VS
138452011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13846
13847 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
13848 Use union to avoid breaking strict-aliasing rules.
13849
e1211949
VS
138502011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13851
13852 Support multi-extent iso files.
13853
13854 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
13855 Add node.
13856 (grub_fshelp_node): Revamp. All users updated.
13857 (FLAG_*): New enum.
13858 (read_node): New function.
13859 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
13860 All users updated.
13861 (grub_iso9660_mount): Don't attempt to read sua when there is none.
13862 (get_node_size): New function.
13863 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
13864 entries.
13865 Fix memory leak on . and ..
13866 (grub_iso9660_read): Use read_node.
13867 (grub_iso9660_close): Free node.
13868
d4888031
VS
138692011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13870
13871 Fix tar 4G limit and handle paths containing dot.
13872
13873 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
13874 (canonicalize): New function.
13875 (grub_cpio_find_file): Use canonicalize. Store offs in
13876 grub_disk_addr_t.
13877 (grub_cpio_dir): Use grub_disk_addr_t.
13878 (grub_cpio_open): Likewise.
13879
9f12e664
VS
138802011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13881
13882 Fix handling of uncompressed blocks on squashfs and break 4G limit.
13883
13884 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
13885 unused flags.
13886 (grub_squash_inode): Add long_file and block_size.
13887 (grub_squash_cache_inode): New struct.
13888 (grub_squash_dirent): Make types into enum.
13889 (SQUASH_TYPE_LONG_REGULAR): New type.
13890 (grub_squash_frag_desc): Add field size.
13891 (SQUASH_BLOCK_FLAGS): New enum.
13892 (grub_squash_data): Use grub_squash_cache_inode.
13893 (grub_fshelp_node): Make ino_chunk 64-bit.
13894 (read_chunk): Minor argument change. All users updated.
13895 (squash_mount): Use correct le_to_cpu.
13896 (grub_squash_open): Handle LONG_REGULAR.
13897 (direct_read): New function.
13898 (grub_squash_read_data): Handle blocks correctly.
13899
9f326fba
VS
139002011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13901
13902 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
13903
f4d9b64b
VS
139042011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13905
13906 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
13907
5bbd28b8
VS
139082011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13909
13910 Fix 2G limit on ZFS.
13911
13912 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
13913 types.
13914 (uberblock_verify): Likewise.
13915 (dmu_read): Likewise.
13916 (grub_zfs_read): Likewise. Remove invalid cast.
13917
68c72069
VS
139182011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13919
13920 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
13921 (grub_jfs_blkno): Fix incorrect shift.
13922 (grub_jfs_read_file): Use more appropriate types.
13923
6e536dc8
VS
139242011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13925
13926 Support triple indirect on minix2 and minix3.
13927
13928 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
13929 Declare triple_indir_zone.
13930 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
13931 indirect.
13932
e0864e7a
VS
139332011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13934
13935 Minix FS fixes.
13936
13937 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
13938 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
13939 Rename ctime to mtime. All users updated.
13940 (grub_minix_get_file_block): Fix types and double indirect computations.
13941
89481cab
VS
139422011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13943
13944 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
13945 if no label is found.
13946 (grub_fat_iterate_dir): Fix file size type.
13947 (grub_fat_iterate_dir): Likewise.
13948
f646e143
VS
139492011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13950
13951 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
13952 save some space.
13953 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
13954 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13955
534d769e
VS
139562011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13957
13958 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
13959
e084ba18
VS
139602011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13961
13962 * util/import_gcry.py: Accept space between # and include.
13963
3471ecdf
VS
139642011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13965
13966 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
13967
124df5f6
VS
139682011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13969
13970 Fine grainely disable warnings on lexer. Remove Wno-error on it.
13971
13972 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
13973 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
13974 yylex_strncpy.
13975 * grub-core/script/yylex.l: Add fine-grained #pragma.
13976
4defb8d5
VS
139772011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13978
13979 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
13980 New inline function.
13981 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
13982 Likewise.
13983 (memset) [GRUB_UTIL]: Likewise.
13984 (memcmp) [GRUB_UTIL]: Likewise.
13985
4e94ae65
VS
139862011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13987
13988 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
13989 inline function rather than a define.
13990
18c575e5
VS
139912011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13992
13993 * util/grub-setup.c: Add missing include.
13994
f8bc22a8
VS
139952011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13996
13997 * util/ieee1275/grub-ofpathname.c: Add missing include.
13998
3ce69fc9
VS
139992011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14000
14001 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
14002 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
14003 Likewise.
14004
d1e293bb
VS
140052011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14006
14007 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
14008 grub_memcmp usage.
14009
7a5c54a4
VS
140102011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14011
14012 * util/grub-install.in: Add datarootdir as per automake manual
14013 suggestion.
14014 * util/grub-mknetdir.in: Likewise.
14015
140162011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
14017
14018 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
14019 suggestion.
14020 * util/grub.d/10_kfreebsd.in: Likewise.
14021 * util/grub.d/10_linux.in: Likewise.
14022 * util/grub.d/10_netbsd.in: Likewise.
14023 * util/grub.d/10_windows.in: Likewise.
14024 * util/grub.d/20_linux_xen.in: Likewise.
14025
766f7d08
VS
140262011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
14027
14028 Remove redundant grub_kernel_image_size.
14029
14030 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
14031 _edata and _start.
14032 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
14033 the small code. It moves it only by few bytes but simplifies the code.
14034 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
14035 _start.
14036 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
14037 (grub_kernel_image_size): Removed.
14038 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
14039 (grub_kernel_image_size): Removed.
14040 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
14041 compiled with Apple toolchain.
14042 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
14043 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
14044 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
14045 (grub_total_module_size): Likewise.
14046 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
14047 Removed.
14048 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
14049 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
14050 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
14051 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
14052 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
14053 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
14054 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
14055 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
14056 Removed.
14057 (grub_total_module_size): Removed.
14058 * util/grub-mkimage.c (image_target_desc): Remove image_size.
14059 (image_targets): Likewise.
14060 Set .compressed_size to no field on sparc.
14061 (generate_image): Remove kernel_image_size handling.
14062
fcf1d672
SJ
140632011-10-19 Szymon Janc <szymon@janc.net.pl>
14064
14065 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
14066 NULL pointer dereference.
14067
de9c615e
VS
140682011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14069
14070 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
14071 done with a dedicated section.
14072
14073 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
14074 Ensure the correct position of boot_path.
14075 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
14076 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
14077 other fields.
14078 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
14079 * include/grub/boot.h: Removed. All references removed.
14080 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
14081 Removed.
14082 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
14083
e55599dc
VS
140842011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14085
14086 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
14087 name.
14088
36dd20ad
VS
140892011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14090
14091 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
14092
f8f72eb8
VS
140932011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14094
14095 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14096 Don't add the bogus brackets.
14097
a374751b
VS
140982011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14099
14100 ExFAT support.
14101
14102 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
14103 * grub-core/Makefile.core.def (exfat): New module.
14104 * grub-core/fs/exfat.c: New file.
14105 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
14106 (GRUB_FAT_ATTR_*): Make into an enum.
14107 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
14108 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
14109 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
14110 (GRUB_FAT_MAXFILE): Removed.
14111 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
14112 (grub_current_fat_bpb_t): New type.
14113 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
14114 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
14115 (grub_fat_dir_node_t): New type.
14116 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
14117 (fat_log2) [MODE_EXFAT]: Removed.
14118 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
14119 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
14120 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
14121 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
14122 (grub_fat_label) [MODE_EXFAT]: New function.
14123 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
14124 reserved_first_sector to 0.
14125
544c2487
VS
141262011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14127
14128 Move grub_reboot out of the kernel.
14129
14130 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
14131 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
14132 * grub-core/lib/efi/reboot.c: ... here.
14133 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
14134 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
14135 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
14136 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
14137 * grub-core/lib/i386/reboot_trampoline.S: ... here.
14138 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
14139 * grub-core/lib/ieee1275/reboot.c: ... here.
14140 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
14141 * grub-core/lib/mips/arc/reboot.c: ... here.
14142 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
14143 * grub-core/lib/mips/loongson/reboot.c: ...here.
14144 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
14145 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
14146 * include/grub/emu/misc.h (grub_reboot): New function declaration.
14147 * include/grub/i386/reboot.h: New file.
14148 * include/grub/mips/loongson/ec.h: Fix includes.
14149 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
14150 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
14151 * grub-core/lib/i386/reboot.c: New file.
14152
a97501d2
VS
141532011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
14154
14155 Make grub_prefix into module to fix the arbitrary limit and save
14156 some space.
14157
14158 * grub-core/kern/emu/main.c (grub_prefix): Removed.
14159 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
14160 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
14161 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
14162 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
14163 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
14164 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
14165 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
14166 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
14167 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
14168 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
14169 * include/grub/ia64/efi/kernel.h: Removed.
14170 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
14171 (grub_prefix): Removed.
14172 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
14173 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
14174 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
14175 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
14176 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
14177 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
14178 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
14179 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
14180 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
14181 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
14182 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14183 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14184 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14185 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14186 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
14187 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
14188 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
14189 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14190 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
14191 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
14192 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
14193 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
14194 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
14195 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
14196 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
14197 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
14198 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
14199 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
14200 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
14201 from module.
14202 * util/grub-mkimage.c (image_target_desc): Removed prefix and
14203 prefix_end.
14204 (image_targets): Likewise.
14205 (generate_image): Put prefix as a module.
14206
39705fad
VS
142072011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14208
14209 Replace grub_module_iterate with FOR_MODULES.
14210
14211 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
14212 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
14213 (grub_efi_modules_addr): ...this.
14214 * grub-core/kern/efi/init.c (grub_modbase): New variable.
14215 (grub_efi_init): Set grub_modbase.
14216 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
14217 (grub_modbase): New variable.
14218 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
14219 (grub_modbase): New variable.
14220 (grub_machine_init): Set grub_modbase.
14221 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
14222 (grub_modbase): New variable.
14223 (grub_machine_init): Set grub_modbase.
14224 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
14225 (grub_modbase): New variable.
14226 (grub_machine_init): Set grub_modbase.
14227 * grub-core/kern/main.c (grub_module_iterate): Remove.
14228 (grub_modules_get_end): Use grub_modbase.
14229 (grub_load_modules): Use FOR_MODULES.
14230 (grub_load_config): Likewise.
14231 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
14232 (grub_modbase): New variable.
14233 (grub_machine_init): Set grub_modbase.
14234 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
14235 (grub_modbase): New variable.
14236 (grub_machine_init): Set grub_modbase.
14237 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
14238 Removed.
14239 (grub_modbase): New variable.
14240 (grub_machine_init): Set grub_modbase.
14241 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
14242 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
14243 (grub_module_iterate): Likewise.
14244 (grub_modbase): New variable declaration.
14245 (FOR_MODULES): New macro.
14246
2afb7f6c
VS
142472011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14248
14249 * configure.ac: Check for __ctzdi2 and __ctzsi2.
14250 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
14251
366e34fa
VS
142522011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14253
14254 Fix few obvious type discrepancies.
14255
14256 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
14257 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
14258 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
14259 variable.
14260 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
14261 and connected types.
14262 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
14263 offset.
14264 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
14265 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
14266 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
14267 and connected types.
14268
177b960e
VS
142692011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14270
14271 Fix python 3.x incompatibilities.
14272
14273 * gentpl.py: Put brackets around print strings.
14274 * util/import_gcry.py: Open explicitly as utf-8.
14275 Use in instead of has_key.
14276
3b619ae1
VS
142772011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14278
14279 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
14280 (GRUB_XFS_INO_AGBITS): Make into inline function.
14281 (GRUB_XFS_INO_INOINAG): Likewise.
14282 (GRUB_XFS_INO_AG): Likewise.
14283 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
14284 (GRUB_XFS_EXTENT_OFFSET): Likewise.
14285 (GRUB_XFS_EXTENT_BLOCK): Likewise.
14286 (GRUB_XFS_EXTENT_SIZE): Likewise.
14287 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
14288 (GRUB_XFS_NEXT_DIRENT): Likewise.
14289 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
14290 (grub_xfs_read_file): Fix offset type.
14291
8bcebcb8
RM
142922011-10-15 Robert Millan <rmh@gnu.org>
14293
14294 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
14295
0017e5ef
RM
142962011-10-15 Robert Millan <rmh@gnu.org>
14297
14298 Fix build problem on FreeBSD and GNU/kFreeBSD.
14299
14300 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
14301
d8919552
VS
143022011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14303
14304 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
14305
14306 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
14307 types.
14308 (grub_hfsplus_btree_recoffset): Likewise.
14309 (grub_hfsplus_btree_recptr): Likewise.
14310 (grub_hfsplus_find_block): Likewise.
14311 (grub_hfsplus_btree_search): Likewise.
14312 (grub_hfsplus_read_block): Likewise.
14313 (grub_hfsplus_read_file): Likewise.
14314 (grub_hfsplus_mount): Likewise.
14315 (grub_hfsplus_btree_iterate_node): Likewise.
14316 (grub_hfsplus_btree_search): Likewise.
14317 (grub_hfsplus_iterate_dir): Likewise.
14318 (grub_hfsplus_read): A small code simplification.
14319
c81296b6
VS
143202011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14321
14322 * grub-core/kern/emu/hostdisk.c
14323 (convert_system_partition_to_system_disk): Don't assume that children
14324 of mapper nodes are mapper nodes.
14325
0eb8ffb1
VS
143262011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14327
14328 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
14329 * include/grub/misc.h (grub_isxdigit): New function.
14330 * grub-core/video/colors.c (my_isxdigit): Removed. All users
14331 switched to grub_isxdigit.
14332 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
14333 number starting with a letter.
14334
a98f4a08
RM
143352011-10-09 Robert Millan <rmh@gnu.org>
14336
14337 LVM support for FreeBSD and GNU/kFreeBSD.
14338
14339 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
14340 GNU/kFreeBSD.
14341 (LVM_DEV_MAPPER_STRING): Move from here ...
14342 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
14343 * util/getroot.c: Include `<grub/util/lvm.h>'.
14344 (grub_util_get_dev_abstraction): Enable
14345 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
14346 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
14347 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
14348 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
14349 support it.
14350 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
14351 GNU/kFreeBSD.
14352 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
14353 when LVM abstraction is required for ${GRUB_DEVICE}.
14354
050e8e90
SJ
143552011-10-06 Szymon Janc <szymon@janc.net.pl>
14356
14357 Add support for LZO compression in GRUB:
14358 - import of minilzo library,
14359 - LZO decompression for btrfs,
14360 - lzop files decompression.
14361
14362 * grub-core/io/lzopio.c: New file.
14363 * grub-core/lib/adler32.c: Likewise.
14364 * grub-core/lib/minilzo/lzoconf.h: Likewise.
14365 * grub-core/lib/minilzo/lzodefs.h: Likewise.
14366 * grub-core/lib/minilzo/minilzo.c: Likewise.
14367 * grub-core/lib/minilzo/minilzo.h: Likewise.
14368 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
14369 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
14370 grub-core/lib/minilzo/minilzo.c to common.
14371 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
14372 cflags in cppflags.
14373 * grub-core/Makefile.core.def (btrfs): Likewise.
14374 * grub-core/Makefile.core.def (lzopio): New module.
14375 (adler32): Likewise.
14376 * grub-core/fs/btrfs.c: Include minilzo.h.
14377 (GRUB_BTRFS_COMPRESSION_LZO): New define.
14378 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
14379 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
14380 (grub_btrfs_lzo_decompress): New function.
14381 (grub_btrfs_extent_read): Add support for LZO compression type.
14382 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
14383 (GRUB_USHRT_MAX): Likewise.
14384 (GRUB_UINT_MAX): Likewise.
14385 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
14386 (UINT_MAX): Likewise.
14387 (CHAR_BIT): Likewise.
14388 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
14389 grub-core/lib/posix_wrap/limits.h
14390 (UCHAR_MAX): Likewise.
14391 * include/grub/file.h (grub_file_filter_id): New compression filter
14392 GRUB_FILE_FILTER_LZOPIO.
14393 * include/grub/file.h (grub_file_filter_id): Set
14394 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
14395 * include/grub/types.h (grub_get_unaligned16): New function.
14396 (grub_get_unaligned32): Likewise.
14397 (grub_get_unaligned64): Likewise.
14398 * util/import_gcry.py (cryptolist): Add adler32.
14399
0eb8ffb1
VS
144002011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
14401
14402 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
14403 in perspective decreases the complexity of build system and fixes
14404 compilation right now.
14405
ce79cc99 144062011-10-01 Ales Nesrsta <starous@volny.cz>
14407
14408 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
14409 (fixed problem related to using UHCI with coreboot).
14410
8667a314
BC
144112011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
14412
14413 * gentpl.py: Use Autogen macros so that the output template file
14414 (Makefile.tpl) size is reduced.
14415
fc5efcc0
MK
144162011-09-29 Mads Kiilerich <mads@kiilerich.com>
14417
14418 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
14419 extra_dist.
14420
d1ab689d
ML
144212011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14422
14423 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
14424 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
14425
c05de032
ML
144262011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14427
14428 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
14429 _fullpath.
14430
cca7ccd8
ML
144312011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14432
14433 Remove extra declaration of sleep for mingw32.
14434
14435 * util/misc.c (sleep) [__MINGW32__]: Removed.
14436 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
14437
e0b0dc83
GS
144382011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
14439
14440 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
14441 type and packname.
14442 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
14443 Resurrected.
14444 (NETBSD_BTINFO_BOOTWEDGE): New definition.
14445 (grub_netbsd_btinfo_bootwedge): New struct.
14446 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14447 New function.
14448 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
14449
91a1a164
TH
144502011-09-28 Thomas Haller <thomas.haller@fen-net.de>
14451
14452 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
14453 loader.
14454
2ded951e
AB
144552011-09-28 Andreas Born <futur.andy@googlemail.com>
14456
14457 Fix incorrect identifiers in bash-completion.
14458
14459 * util/bash-completion.d/grub-completion.bash.in
14460 (_grub_mkpasswd-pbkdf2): Rename to ...
14461 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
14462 (_grub_script-check): Rename to ...
14463 (_grub_script_check): ... this. All users updated.
14464
69915030
VS
144652011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
14466
14467 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14468 Return 0 if disk isn't biosdisk.
14469
20fd15f9
GS
144702011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14471
14472 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
14473 on NetBSD.
14474 * Makefile.util.def (grub-fstest): Likewise.
14475
1a7d7db9
GS
144762011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14477
14478 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
14479 Get sector size from disk label.
14480
2221ab6c
CW
144812011-09-05 Colin Watson <cjwatson@ubuntu.com>
14482
14483 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
14484 */README* as well as README*.
14485 Reported by: Axel Beckert.
14486
ca51c4a0
VS
144872011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14488
14489 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
14490 case of less than 256 MiB of RAM.
14491
ab80f326
VS
144922011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14493
14494 * grub-core/commands/wildcard.c (make_regex): Handle @.
14495
4155e697
VS
144962011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14497
14498 * util/grub-install.in: Move cryptodisk logic to appropriate place.
14499
ab178c08
SJ
145002011-08-21 Szymon Janc <szymon@janc.net.pl>
14501
14502 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
14503 AC_LANG_CONFTEST macros.
14504
7dc3c686
SJ
145052011-08-20 Szymon Janc <szymon@janc.net.pl>
14506
14507 Add grub-fstest option to uncompress data for commands.
14508
14509 * util/grub-fstest.c (uncompress): New var.
14510 (options): New option -u.
14511
fe8d4a7b
SJ
145122011-08-20 Szymon Janc <szymon@janc.net.pl>
14513
14514 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
14515 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
14516
a5219af1
SJ
145172011-08-20 Szymon Janc <szymon@janc.net.pl>
14518
14519 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
14520 file type was not recognized correctly (not gzip or corrupted).
14521
f87abff5
VS
145222011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14523
14524 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
14525 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
14526
d94497ea
VS
145272011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14528
14529 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
14530 loongson.
14531 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14532 video_radeon_fuloong2e.
14533 * grub-core/video/radeon_fuloong2e.c: New file.
14534 * include/grub/video.h (grub_video_id_t): Add new ID
14535 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
14536
0d1fd011
VS
145372011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14538
14539 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
14540 define.
14541 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
14542 that PRID matches the detected subplatform and reset the subplatform
14543 if it doesn't.
14544
84beb0ee
VS
145452011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14546
14547 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
14548
1227c133
VS
145492011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14550
14551 Fix PCI iterating on functions >= 4.
14552
14553 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
14554 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
14555 Removed.
14556 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
14557 (grub_pci_read): Fix bitmask.
14558 (grub_pci_read_word): Likewise.
14559 (grub_pci_read_byte): Likewise.
14560 (grub_pci_write): Likewise.
14561 (grub_pci_write_word): Likewise.
14562 (grub_pci_write_byte): Likewise.
14563
9594c689
VS
145642011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14565
14566 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
14567 can still be specified in TARGET_CFLAGS)
14568
14a2562c
VS
145692011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14570
14571 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
14572
14573 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
14574 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
14575 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
14576 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
14577 (FULOONG): Rename to ...
14578 (FULOONG2F): ... this. All users updated.
14579 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
14580 (machtype_fuloong2f_str): ... this.
14581 (machtype_fuloong2e_str): New string.
14582 Check for machtype_fuloong2e_str.
14583 * grub-core/loader/mips/linux.c (loongson_machtypes)
14584 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
14585 * grub-core/term/serial.c (loongson_defserial)
14586 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
14587 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
14588 loongson_defserial.
14589 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
14590 Rename to ...
14591 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
14592 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
14593 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
14594 to IMAGE_FULOONG2F_FLASH. All users updated.
14595 (image_targets): Rename images.
14596 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
14597
b526cbb6
SJ
145982011-08-19 Szymon Janc <szymon@janc.net.pl>
14599
14600 Make enable of disk cache statistics code configurable.
14601
14602 * configure.ac: --enable-cache-stats added.
14603 * config.h.in (DISK_CACHE_STATS): New define.
14604 * grub-core/Makefile.core.def (cacheinfo): New command.
14605 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
14606 * grub-core/commands/cacheinfo.c: New file.
14607 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
14608 moved to cacheinfo.c.
14609 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
14610 debug code.
14611 * include/grub/disk.h: Likewise.
14612
fb739ccd
SJ
146132011-08-19 Szymon Janc <szymon@janc.net.pl>
14614
14615 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
14616 * grub-core/Makefile.am: Likewise.
14617
2bba8cfd
VS
146182011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14619
14620 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
14621 non-zero pull.
14622
43526629
VS
146232011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14624
14625 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
14626 All users updated.
14627 (grub_jfs_lookup_symlink): Use correct starting inode.
14628
5c144cc8
VS
146292011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14630
14631 * util/grub-setup.c (main): Add missing gcry initialisation.
14632
b1257f65
VS
146332011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 Don't accept text modes on EFI when booting Linux.
14636
14637 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
14638 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
14639
828bc390
ML
146402011-08-15 Mario Limonciello <mario_limonciello@dell.com>
146412011-08-15 Colin Watson <cjwatson@ubuntu.com>
14642
14643 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
14644 use of "/path/.." as in grub-install for EFI as well as handling
14645 symlinks correctly.
14646 Fixes Debian bug #637768.
14647
5f60ccac
CW
146482011-08-15 Colin Watson <cjwatson@ubuntu.com>
14649
14650 * util/grub-probe.c: Remove duplicate #include.
14651
6dc212f9
RM
146522011-08-10 Robert Millan <rmh@gnu.org>
14653
14654 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
14655
14656 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
14657 function.
14658 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
14659 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
14660
66816d85
RM
146612011-08-03 Robert Millan <rmh@gnu.org>
14662
14663 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
14664 la_array as packed.
14665 Reported by: Zachary Bedell
14666
20168fca
CW
146672011-07-26 Colin Watson <cjwatson@ubuntu.com>
14668
14669 * configure.ac: The Loongson port requires grub-mkfont due to its
14670 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
14671 be built.
14672
303b6246
CW
146732011-07-26 Colin Watson <cjwatson@ubuntu.com>
14674
14675 * util/grub-install.in: Don't source grub-mkconfig_lib until after
14676 processing arguments (otherwise help2man fails when GRUB has not yet
14677 been installed).
14678
6795300e
VS
146792011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14680
41aa28ea
VS
14681 New script grub-mkstandalone.
14682
14683 * Makefile.util.def (grub-mkstandalone): New script.
14684 * docs/man/grub-mkstandalone.h2m: New file.
14685 * util/grub-mkstandalone.in: Likewise.
14686
146872011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14688
14689 Support ATA disks with 4K sectors.
6795300e
VS
14690
14691 * include/grub/ata.h (grub_ata): New member log_sector_size.
14692 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
14693 (grub_ata_identify): Read sector size.
14694 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
14695
92227597
VS
146962011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14697
14698 * util/grub-install.in: Don't use uhci outside of x86.
14699
c77069f5
VS
147002011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14701
14702 * util/grub-mkrescue.in: Add missing quotes.
14703
147042011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
14705
14706 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
14707 dereference.
14708
583168a2
VS
147092011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14710
14711 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
14712
6be1c01f
VS
147132011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14714
14715 * include/grub/video.h: add missing EXPORT_FUND on
14716 grub_video_edid_checksum and grub_video_edid_preferred_mode.
14717
a1167439
VS
147182011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14719
14720 * include/grub/mips/kernel.h: Fix define conflict.
14721
bf66054f
VS
147222011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14723
14724 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
14725 all four ways.
14726
8fc4fa45
CW
147272011-07-21 Colin Watson <cjwatson@ubuntu.com>
14728
14729 Preferred resolution detection for VBE.
14730
14731 * grub-core/video/video.c (grub_video_edid_checksum): New function.
14732 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
14733 the Flat Panel extension, in line with the X.org VESA driver.
14734 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
14735 New function.
14736 (grub_vbe_bios_get_ddc_capabilities): Likewise.
14737 (grub_vbe_bios_read_edid): Likewise.
14738 (grub_vbe_get_preferred_mode): Likewise.
14739 (grub_video_vbe_setup): When the mode is "auto", try to get the
14740 preferred mode from VBE, and use the largest mode that is no larger
14741 than the preferred mode (some BIOSes expose a preferred mode that is
14742 not in their mode list!). If this fails, fall back to 640x480 as a
14743 safe conservative choice.
14744 (grub_video_vbe_get_edid): New function.
14745 (grub_video_vbe_adapter): Add get_edid.
14746 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
14747 (struct grub_video_adapter): Add get_edid.
14748 (grub_video_edid_checksum): Add prototype.
14749 (grub_video_edid_preferred_mode): Likewise.
14750 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
14751 structure.
14752
14753 * grub-core/commands/videoinfo.c (print_edid): New function.
14754 (grub_cmd_videoinfo): Print EDID if available.
14755
14756 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
14757 is more appropriate on a wider range of platforms than 640x480.
14758 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
14759 documentation.
14760
ca5572a9
VS
147612011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14762
14763 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
14764
e4bcf625
VS
147652011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14766
14767 * po/POTFILES.in: Regenerate.
14768
c4edd548
VS
147692011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14770
14771 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
14772 incorrect memory usage.
14773
16a2bab0
VS
147742011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14775
14776 * util/grub-install.in: Source grub-mkconfig_lib.
14777
2e418de6
VS
147782011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14779
14780 Remove getroot.c from core on emu platform.
14781
14782 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
14783 kern/emu/raid.c.
14784 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
14785 useless.
14786 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
14787 * util/getroot.c (get_win32_path): ... here.
14788 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
14789 * util/getroot.c (fini_libzfs): ... here.
14790 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
14791 * util/getroot.c (grub_get_libzfs_handle): ... here.
14792 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
14793 Moved from here...
14794 * util/getroot.c (grub_find_zpool_from_dir): ... here.
14795 * grub-core/kern/emu/misc.c
14796 (grub_make_system_path_relative_to_its_root): Moved from here...
14797 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
14798 * grub-core/kern/emu/getroot.c: Moved from here ...
14799 * util/getroot.c: ... here. All users updated.
14800 * grub-core/kern/emu/raid.c: Moved from here ...
14801 * util/raid.c: ... here. All users updated.
14802
def9832a
VS
148032011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14804
14805 * po/POTFILES.in: Regenerate.
14806
cd8fe79a
VS
148072011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14808
14809 Fix compilation on GNU/Linux.
14810
14811 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
14812 Disable geli.
14813 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
14814 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
14815 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
14816
a251b719
VS
148172011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
148182011-07-07 Michael Gorven <michael@gorven.za.net>
148192011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
14820
14821 LUKS and GELI support.
14822
14823 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
14824 grub-core/disk/luks.c, grub-core/disk/geli.c,
14825 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
14826 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
14827 grub-core/lib/arg.c.
14828 (libgrubmods.a): Remove gcrypts cflags and cppflags.
14829 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
14830 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
14831 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
14832 (grub-bin2h): Add libgcry.a.
14833 (grub-mkimage): Likewise.
14834 (grub-mkrelpath): Likewise.
14835 (grub-script-check): Likewise.
14836 (grub-editenv): Likewise.
14837 (grub-mkpasswd-pbkdf2): Likewise.
14838 (grub-pe2elf): Likewise.
14839 (grub-fstest): Likewise.
14840 (grub-mkfont): Likewise.
14841 (grub-mkdevicemap): Likewise.
14842 (grub-probe): Likewise.
14843 (grub-ofpath): Likewise.
14844 (grub-mklayout): Likewise.
14845 (example_unit_test): Likewise.
14846 (grub-menulst2cfg): Likewise.
14847 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
14848 * grub-core/Makefile.core.def (cryptodisk): New module.
14849 (luks): Likewise.
14850 (geli): Likewise.
14851 * grub-core/disk/AFSplitter.c: New file.
14852 * grub-core/disk/cryptodisk.c: Likewise.
14853 * grub-core/disk/geli.c: Likewise.
14854 * grub-core/disk/luks.c: Likewise.
14855 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
14856 grub_util_is_lvm.
14857 (grub_util_get_dm_abstraction): New function.
14858 (grub_util_follow_gpart_up): Likewise.
14859 (grub_util_get_geom_abstraction): Likewise.
14860 (grub_util_get_dev_abstraction): Use new functions.
14861 (grub_util_pull_device): Pull GELI and LUKS.
14862 (grub_util_get_grub_dev): Handle LUKS and GELI.
14863 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
14864 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
14865 (follow_geom_up): Removed.
14866 (grub_util_fd_seek): New function.
14867 (open_device): Use grub_util_fd_seek.
14868 (nread): Rename to ..
14869 (grub_util_fd_read): ... this. All users updated.
14870 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
14871 (grub_crypto_cbc_decrypt): Likewise.
14872 (grub_crypto_hmac_write): Likewise.
14873 (grub_crypto_hmac_buffer): Likewise.
14874 (grub_password_get): Extend to util.
14875 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
14876 New member modname.
14877 (gcry_md_spec) [GRUB_UTIL]: Likewise.
14878 * include/grub/cryptodisk.h: New file.
14879 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
14880 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
14881 LUKS and GELI.
14882 (grub_util_follow_gpart_up): New proto.
14883 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
14884 (grub_util_fd_read): Likewise.
14885 (grub_cryptodisk_cheat_mount): Likewise.
14886 (grub_util_cryptodisk_print_uuid): Likewise.
14887 (grub_util_get_fd_sectors): Likewise.
14888 * util/grub-fstest.c (mount_crypt): New var.
14889 (fstest): Mount crypto if requested.
14890 (options): New option -C.
14891 (argp_parser): Parse -C.
14892 (main): Init and fini gcry.
14893 * util/grub-install.in: Support cryptodisk install.
14894 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
14895 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
14896 cryptodisk.
14897 (prepare_grub_to_access_device): Likewise.
14898 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
14899 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
14900 (probe_cryptodisk_uuid): New function.
14901 (probe_abstraction): Likewise.
14902 (probe): Use new functions.
14903 * util/import_gcry.py: Create Makefile.utilgcry.def.
14904 Add modname member.
14905
9bfdcbbc
VS
149062011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14907
14908 Lazy device scanning.
14909
14910 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
14911 (grub-setup): Remove util/raid.c.
14912 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
14913 * grub-core/disk/lvm.c (scan_depth): New variable.
14914 (grub_lvm_iterate): Rescan if necessary.
14915 (find_lv): New function based on grub_lvm_open.
14916 (grub_lvm_open): Use find_lv. Rescan on error.
14917 (is_node_readable): New function.
14918 (is_lv_readable): Likewise.
14919 (grub_lvm_scan_device): Skip already found disks.
14920 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
14921 Stop if searched device is found and readable.
14922 * grub-core/disk/raid.c (inscnt): New variable.
14923 (scan_depth): Likewise.
14924 (scan_devices): New function based on grub_raid_register. Abort if
14925 looked for device is found.
14926 (grub_raid_iterate): Rescan if needed.
14927 (find_array): NEw function based on -grub_raid_open.
14928 (grub_raid_open): Use find_array and rescan.
14929 (insert_array): Set became_readable_at.
14930 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
14931 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
14932 New function.
14933 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
14934 (grub_util_pull_device): New function.
14935 (grub_util_get_grub_dev): Call grub_util_pull_device.
14936 * util/raid.c: Moved to ..
14937 * grub-core/kern/emu/raid.c: ... here.
14938 (grub_util_raid_getmembers): New parameter "bootable".
14939 All users updated. Support 1.x.
14940 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
14941 All users updated.
14942 * include/grub/disk.h (grub_disk_pull_t): New enum.
14943 (grub_disk_dev): Change iterate prototype.
14944 All users updated.
14945 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
14946 New proto.
14947 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
14948 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
14949 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
14950 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
14951 All users updated.
14952 * include/grub/util/raid.h: Removed.
14953
1c358e59
VS
149542011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
14955
14956 * po/POTFILES.in: Regenerate.
14957
abee94ed
VS
149582011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
14959
14960 Unify sparc init with other ieee1275.
14961
14962 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
14963 instead of kern/sparc64/ieee1275/init.c.
14964 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
14965 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
14966 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
14967 grub/machine/kernel.h.
14968 (grub_ieee1275_original_stack) [__sparc__]: New variable.
14969 (grub_claim_heap) [__sparc__]: Use sparc version.
14970 (grub_machine_init): Moved args parsing to
14971 (grub_parse_cmdline): ...this.
14972 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
14973 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
14974 New definition.
14975 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
14976
14977 Move BOOTP to separate file.
14978
14979 * grub-core/Makefile.core.def (net): Add net/bootp.c.
14980 * grub-core/net/net.c: Move all BOOTP functions to
14981 * grub-core/net/bootp.c: ... here.
14982
14983 Use frame interface on PXE.
14984
14985 * grub-core/Makefile.core.def (pxecmd): Removed.
14986 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
14987 * grub-core/commands/i386/pc/pxecmd.c: Removed.
14988 * grub-core/i386/pc/pxe.c: Moved from here ...
14989 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
14990 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
14991 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
14992
14993 EFI network support.
14994
14995 * grub-core/Makefile.core.def (efinet): New module.
14996 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
14997 here...
14998 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
14999 All users updated.
15000 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
15001 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
15002 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
15003 * grub-core/net/drivers/efi/efinet.c: New file.
15004 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
15005 (grub_efi_net_config): New extern var.
15006
15007 Various cleanups and bugfixes.
15008
15009 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
15010 error.
15011 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
15012 disk declared as partition.
15013 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
15014 leak on failure.
15015 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
15016 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
15017 (grub_debug_zalloc): Likewise.
15018 (grub_debug_realloc): Likewise.
15019 (grub_debug_memalign): Likewise.
15020 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
15021 Check that target is IPv4.
15022 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
15023 local-mac-address as fallback.
15024 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
15025 memory leak.
15026 * grub-core/net/ip.c (ipchksum): Rename to ...
15027 (grub_net_ip_chksum): ... this. All users updated.
15028 (grub_net_recv_ip_packets): Special handling for DHCP.
15029 * util/grub-mkimage.c (generate_image): Zero-out aout header.
15030
15031 Unify prefix handling
15032
15033 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
15034 (grub_machine_get_bootlocation): ... this.
15035 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
15036 (grub_machine_get_bootlocation): ... this.
15037 (grub_prefix): New variable.
15038 (prefix): Removed.
15039 (root_dev): New variable.
15040 (dir): Likewise.
15041 (main): Use new variables.
15042 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
15043 Revamped into ...
15044 (grub_machine_get_bootlocation): ... this.
15045 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
15046 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
15047 (grub_machine_get_bootlocation): ... this.
15048 (grub_machine_set_prefix): Removed.
15049 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
15050 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
15051 Revamped into ...
15052 (grub_machine_get_bootlocation): ... this.
15053 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
15054 (grub_set_prefix_and_root): ... this. All users updated.
15055 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
15056 Revamped into ...
15057 (grub_machine_get_bootlocation): ... this.
15058 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
15059 (grub_machine_get_bootlocation): New proto.
15060 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
15061
15062 Less intrusive and more reliable seek on network implementation.
15063
15064 * grub-core/kern/file.c (grub_file_net_seek): Removed.
15065 (grub_file_seek): Don't call grub_file_net_seek.
15066 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
15067 (grub_net_fs_read_real): .. this.
15068 (grub_net_seek_real): Use net->offset.
15069 (grub_net_fs_read): Seek if necessary.
15070
15071 Unify IEEE1275 netwotk config with the other platforms.
15072
15073 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
15074 New variable.
15075 (grub_machine_get_bootlocation): Support network.
15076 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15077 Support type and device parsing.
15078 (grub_ieee1275_get_device_type): New function.
15079 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
15080 into ...
15081 (grub_ieee1275_net_config_real): ... this.
15082 (grub_ofnet_probecards): Removed.
15083 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
15084 * include/grub/ieee1275/ofnet.h: Removed.
15085 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
15086 extern var.
15087 (grub_ieee1275_get_device_type): New function.
15088
15089 Unify network device closing across platforms and make more robust.
15090
15091 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
15092 grub_grubnet_fini.
15093 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
15094 already.
15095 * grub-core/net/net.c (grub_net_network_level_interface_register):
15096 Update num_ifaces.
15097 (grub_net_card_unregister): Close all interfaces.
15098 (receive_packets): Don't poll if no iterfaces are registered.
15099 Open if necessary.
15100 (grub_net_fini_hw): New function.
15101 (grub_net_restore_hw): Likewise.
15102 (fini_hnd): New variable.
15103 (GRUB_MOD_INIT): Register preboot hook.
15104 (GRUB_MOD_FINI): Run and unregister preboot hook.
15105
15106 Poll network cards when idle.
15107
15108 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
15109 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
15110 * grub-core/net/net.c (receive_packets): Save last poll time.
15111 (grub_net_poll_cards_idle_real): New function.
15112 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
15113 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
15114 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
15115
15116 Rename ofnet interfaces.
15117
15118 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
15119 (grub_ofnet_findcards): Use ofnet_%s names.
15120
15121 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
15122
15123 Cleanup socket opening.
15124
15125 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
15126 (grub_net_fs_close): Likewise.
15127 (grub_net_fs_read_real): Use eof member.
15128 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
15129 (+grub_net_udp_close): New inline function.
15130
15131 * include/grub/net/tftp.h: Moved to the top of ...
15132 * grub-core/net/tftp.c: ... here.
15133 * include/grub/net/ip.h: Moved mostly to the top of ...
15134 * grub-core/net/ip.c: ... here.
15135 * include/grub/net/ethernet.h: Moved mostly to the top of ...
15136 * grub-core/net/ethernet.c: ... here.
15137
15138 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
15139
15140 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
15141 FS name.
15142
15143 * include/grub/net/ip.h (ipv4_ini): Removed.
15144 (ipv4_fini): Likewise.
15145
15146 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
15147 (grub_net_send_ip_packets): Likewise.
15148
cf1337aa
VS
151492011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15150
15151 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
15152 grub_read_cmos prototype.
15153
93c06ff9
VS
151542011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15155
15156 VGA text support in qemu-mips
15157
15158 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
15159 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
15160 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
15161 text.
15162 * grub-core/kern/i386/qemu/init.c: Renamed to ...
15163 * grub-core/kern/vga_init.c: ... this.
15164 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
15165 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
15166 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
15167 Adjust.
15168 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
15169 GRUB_MACHINE_PCI_IO_BASE.
15170
748ccabe
VS
151712011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15172
15173 MIPS qemu flash support.
15174
15175 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
15176 magic.
15177 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
15178 (grub_machine_init): Probe memory if its size isn't known.
15179 * util/grub-mkimage.c (image_targets): Add flash targets.
15180 (generate_image): Handle flash targets.
15181
d7345994
VS
151822011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15183
15184 MIPS qemu at_keyboard support.
15185
15186 * gentpl.py (videoinkernel): Add qemu-mips.
15187 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
15188 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
15189 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
15190 modules.
15191 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
15192 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
15193 * grub-core/term/serial.c (grub_serial_register)
15194 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
15195
a07a81b3
VS
151962011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15197
15198 CMOS support on sparc.
15199
15200 * gentpl.py (cmos): Add powerpc and sparc.
15201 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
15202 powerpc and sparc.
15203 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
15204 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
15205 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
15206 grub_set_datetime_cmos.
15207 * grub-core/lib/ieee1275/cmos.c: New file.
15208 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
15209 (find_rtc): Set no_ieee1275_rtc on error.
15210 (grub_get_datetime): Call grub_get_datetime_cmos on error.
15211 (grub_set_datetime): Call grub_set_datetime_cmos on error.
15212 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
15213 fail. Move value to argument. All users updated
15214 (grub_cmos_write): Likewise.
15215 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
15216 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
15217 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
15218 grub_get_datetime_cmos and grub_set_datetime_cmos.
15219
77546584
GS
152202011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15221
15222 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
15223 sourcing grub-mkconfig_lib.
15224 * util/update-grub_lib.in: Likewise.
15225 * util/grub.d/00_header.in: Likewise.
15226 * util/grub.d/10_hurd.in: Likewise.
15227 * util/grub.d/10_kfreebsd.in: Likewise.
15228 * util/grub.d/10_linux.in: Likewise.
15229 * util/grub.d/10_netbsd.in: Likewise.
15230 * util/grub.d/10_windows.in: Likewise.
15231 * util/grub.d/20_linux_xen.in: Likewise.
15232 * util/grub.d/30_os-prober.in: Likewise.
15233
54894791
CW
152342011-06-28 Colin Watson <cjwatson@ubuntu.com>
15235
15236 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
15237 default_bg_color rather than black.
15238 (grub_gfxterm_fullscreen): Likewise.
15239 (grub_gfxterm_background_color_cmd): Save new background color in
15240 default_bg_color.
15241
8d5d8444
VS
152422011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
15245
5afeb5bd
VS
152462011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15247
15248 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
15249 mismerge.
15250
ba7df45e
VS
152512011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 Chainloading on coreboot support.
15254
15255 * grub-core/Makefile.core.def (chain): Add coreboot.
15256 * grub-core/loader/i386/coreboot/chainloader.c: New file.
15257
d0b526b2
VS
152582011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15259
15260 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
15261 if it happens.
15262
5ff1d945
VS
152632011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15264
15265 Implement time command.
15266
15267 * grub-core/Makefile.core.def (time): New module.
15268 * grub-core/commands/time.c: New file.
15269 * grub-core/script/parser.y: Remove "time" keyword.
15270 * grub-core/script/yylex.l: Likewise.
15271
5ebaad7e
VS
152722011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15273
15274 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
15275
bdea3798
VS
152762011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15277
15278 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
15279 when handling leftovers.
15280
b28c5655
VS
152812011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15282
15283 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
15284 so that help2man doesn't fail.
15285
b6f945dc
VS
152862011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15287
15288 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
15289 type in pointers on sparc64.
15290 (get_card_packet): Likewise.
15291
f9b75e8a
CW
152922011-06-27 Colin Watson <cjwatson@ubuntu.com>
15293
15294 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
15295 with `*'.
15296 (grub_cmd_videoinfo): Fetch current video mode.
15297
1e3d9b86
VS
152982011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15299
15300 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
15301 because of underlying system restrictions.
15302
efff4b1c
VS
153032011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15304
15305 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
15306 necessary.
15307
9fc9ce37
VS
153082011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15309
15310 Coreboot video support.
15311
15312 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
15313 (vbe): Likewise.
15314 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
15315 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
15316 here ...
15317 * grub-core/kern/i386/int.S: ... here.
15318 * grub-core/video/i386/pc/vbe.c: Updated includes.
15319 * grub-core/video/i386/pc/vga.c: Likewise.
15320 * include/grub/i386/coreboot/memory.h
15321 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
15322 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
15323 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
15324 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
15325 Disable interrupts.
15326 * include/grub/i386/pc/vga.h: Removed. All users updated.
15327
41bec7fe
VS
153282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15329
15330 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
15331 definitions for dprintf.
15332 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
15333
ca80309d
VS
153342011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15335
15336 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
15337 prototype.
15338 (get_card_packet): Likewise.
15339
9e322ce8
YB
153402011-06-26 Yves Blusseau <blusseau@zetam.org>
15341
15342 Display the path of the file when file is not found
15343
15344 * grub-core/fs/fat.c: Display the filename when file is not found.
15345 * grub-core/fs/fshelp.c: Likewise.
15346 * grub-core/fs/hfs.c: Likewise.
15347 * grub-core/fs/jfs.c: Likewise.
15348 * grub-core/fs/minix.c: Likewise.
15349 * grub-core/fs/ufs.c: Likewise.
15350 * grub-core/fs/btrfs.c: Likewise.
15351 * grub-core/commands/i386/pc/play.c: Likewise.
15352
cbf597af
SJ
153532011-06-26 Szymon Janc <szymon@janc.net.pl>
15354
15355 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
15356 pointer checks before calling grub_free().
15357 * grub-core/commands/wildcard.c (match_devices): Likewise.
15358 * grub-core/commands/wildcard.c (match_files): Likewise.
15359 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
15360 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
15361 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
15362 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
15363 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
15364 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
15365 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
15366 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15367 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
15368
6295b32f
P
153692011-06-25 Patrick <p55@mailinator.com>
15370
15371 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
15372
77c0840b
VS
153732011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
15374
15375 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
15376 (grub_pxe_send): Likewise.
15377 (GRUB_MOD_INIT): Fix types.
15378
40ea05de
SJ
153792011-06-24 Szymon Janc <szymon@janc.net.pl>
15380
15381 * grub-core/io/xzio.c: Fix code style issues
15382
90162423
MRA
153832011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
153842011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
15385
15386 Network infrastructure.
15387 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
15388
15389 * include/grub/net/arp.h: New file.
90162423
MRA
15390 * include/grub/net/device.h: Likewise.
15391 * include/grub/net/ethernet.h: Likewise.
15392 * include/grub/net/ip.h: Likewise.
15393 * include/grub/net/netbuff.h: Likewise.
15394 * include/grub/net/tftp.h: Likewise.
15395 * include/grub/net/udp.h: Likewise.
15396 * include/grub/ieee1275/ofnet.h: Likewise.
15397 * include/grub/emu/export.h: Likewise.
15398 * include/grub/net.h: Likewise.
15399 * grub-core/net/arp.c: Likewise.
15400 * grub-core/net/ethernet.c: Likewise.
15401 * grub-core/net/ip.c: Likewise.
15402 * grub-core/net/udp.c: Likewise.
15403 * grub-core/net/tftp.c: Likewise.
15404 * grub-core/net/netbuff.c: Likewise.
15405 * grub-core/net/net.c: Likewise.
15406 * grub-core/net/drivers/emu/emunet.c: Likewise.
15407 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
15408 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
15409 export.h.
15410 * grub-core/Makefile.core.def (net): New module.
15411 (tftp): Likewise.
15412 (ofnet): Likewise.
15413 (emunet): Likewise.
15414 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
15415 network protocols.
15416 * grub-core/kern/device.c (grub_net_open) : New variable.
15417 (grub_device_open): Handle network device.
15418 (grub_device_close): Likewise.
15419 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
15420 (grub_grubnet_fini): Likewise.
15421 (grub_file_seek): Seek in network device.
15422 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
15423 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
15424 network root.
15425 (grub_machine_fini): Call grub_grubnet_fini.
15426 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
15427 network.
15428 (grub_ieee1275_get_aliasdevname): New function.
15429 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15430 Add unofficial Solaris network info.
15431 (grub_multiboot_make_mbi): Likewise.
15432 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
15433 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
15434 * include/grub/device.h (grub_fs): Removed.
15435 * include/grub/err.h (grub_err_t): Add network-related values.
15436 * include/grub/i386/pc/pxe.h: Removed bootp parts.
15437 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
15438 (grub_ieee1275_get_aliasdevname): New proto.
15439 * include/grub/net.h: Rewritten.
423a1849 15440
031f22a0
VS
154412011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15442
15443 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
15444 names.
15445
4388ca72
VS
154462011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15447
15448 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
15449 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
15450 it truncates the output.
15451 Reported by: Ximin Luo.
15452
98e2f506
VS
154532011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15454
15455 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
15456
2a5e94d8
VS
154572011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15458
15459 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
15460 partmap before abstraction.
15461
535c1910
AK
154622011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
15463
15464 * util/grub-mkconfig_lib.in: Add missing quotes.
15465
bc09e1a2
VS
154662011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15467
15468 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
15469 old method if mountinfo would return /dev/root and /dev/root doesn't
15470 exist.
15471
290766fb
VS
154722011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15473
15474 ZFS zlib support
15475
15476 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
15477 (decomp_table): Add zlib entries.
15478 (zio_read): USe 8 bits for compression function rather than 3.
15479 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
15480
154812011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15482
15483 * grub-core/disk/ahci.c: Add missing license statements.
15484 * grub-core/fs/romfs.c: Likewise.
15485 * grub-core/lib/ia64/setjmp.S: Likewise.
15486 * grub-core/loader/i386/pc/freedos.c: Likewise.
15487 * grub-core/loader/ia64/efi/linux.c: Likewise.
15488 * grub-core/video/colors.c: Likewise.
15489 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
15490
5ab3f48a
VS
154912011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15492
15493 AHCI support.
15494
15495 * grub-core/Makefile.core.def (ata_pthru): Removed.
15496 (ahci): New module.
15497 (pata): Likewise.
15498 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
15499 on unload.
15500 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
15501 readwrite.
15502 (grub_hdparm_do_check_powermode_cmd): Likewise.
15503 (grub_hdparm_do_smart_cmd): Likewise.
15504 (grub_hdparm_set_val_cmd): Likewise.
15505 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
15506 * grub-core/disk/ahci.c: New file.
15507 * grub-core/disk/ata.c: Factor out the low-level part into ...
15508 * grub-core/disk/pata.c: ... here.
15509 * grub-core/disk/ata_pthru.c: Contents moved to ...
15510 * grub-core/disk/pata.c: ... here.
15511 * grub-core/disk/scsi.c (grub_scsi_names): New array.
15512 (grub_scsi_iterate): Use grub_scsi_names.
15513 (grub_scsi_open): Likewise.
15514 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
15515 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
15516 (grub_ata_regs_t): New struct.
15517 (grub_disk_ata_pass_through_parms): Likewise.
15518 (grub_ata_device): Renamed to ...
15519 (grub_ata): ... this.
15520 (grub_ata_dev): New struct.
15521 Removed all low-level inline functions.
15522 * include/grub/scsi.h: Add PATA and AHCI subsystems.
15523 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
15524 iterate hooks and open. All users updated.
15525 * util/grub-install.in: Handle AHCI disk module.
15526
c31dc5f5
SJ
155272011-06-23 Szymon Janc <szymon@janc.net.pl>
15528
15529 Add support for DRI and RSTn markers in JPEG files.
15530
15531 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
15532 (JPEG_MARKER_RST0): Likewise.
15533 (JPEG_MARKER_RST1): Likewise.
15534 (JPEG_MARKER_RST2): Likewise.
15535 (JPEG_MARKER_RST3): Likewise.
15536 (JPEG_MARKER_RST4): Likewise.
15537 (JPEG_MARKER_RST5): Likewise.
15538 (JPEG_MARKER_RST6): Likewise.
15539 (JPEG_MARKER_RST7): Likewise.
15540 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
15541 (grub_jpeg_decode_dri): New function.
15542 (grub_jpeg_decode_sos): Move image data related part into
15543 grub_jpeg_decode_data function.
15544 (grub_jpeg_decode_data): New function.
15545 (grub_jpeg_reset): New function.
15546 (grub_jpeg_decode_jpeg): Handle new markers.
15547
fe12fd5b
VS
155482011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15549
15550 * util/ieee1275/ofpath.c (check_sas): Close fd.
15551 (main): Free of_path.
15552 Reported by: David Volgyes <dvolgyes>.
15553
03147f46
VS
155542011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15555
15556 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
15557 Reported by: David Volgyes <dvolgyes>.
15558
cad3237f
VS
155592011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15560
15561 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
15562 file after stat.
15563 Reported by: David Volgyes <dvolgyes>.
15564
13548d26
VS
155652011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15566
15567 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
15568
15569 Reported by: David Volgyes <dvolgyes>.
15570
e061a1b5
VS
155712011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15572
15573 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
15574 Prevent memory leak.
15575
1abe47dc
VS
155762011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15577
15578 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
15579 (main): Close file.
e061a1b5 15580 Reported by: David Volgyes <dvolgyes>.
1abe47dc 15581
fbc62666
VS
155822011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15583
15584 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
15585 to continue if allocation is failed.
15586
15587 Reported by: David Volgyes <dvolgyes>.
15588
e98c83e9
DV
155892011-06-23 David Volgyes <dvolgyes>
15590
15591 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
15592 dereference.
15593
a199a8cd
VS
155942011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15595
15596 Fix spurious warning.
15597
15598 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
15599 (acorn_partition_map_find): Use .bin member.
15600
e2d1dba0
VS
156012011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15602
15603 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
15604 /dev/root as a valid device.
15605
8a5d6919
JM
156062011-06-23 Jim Meyering <meyering@redhat.com>
15607
e2d1dba0
VS
15608 Avoid NULL deref in grub_device_open.
15609
8a5d6919
JM
15610 * grub-core/kern/device.c (grub_device_open): Don't dereference
15611 a NULL pointer upon failed grub_env_get.
15612
f7db6f4a
VS
156132011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15614
15615 Support non-512B sectors and agglomerate reads.
15616
15617 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
15618 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
15619 (disk_io_guid): Removed.
15620 (make_devices): Locate solely by BlockIO.
15621 (grub_efidisk_open): Fill log_sector_size and total_sectors.
15622 (grub_efidisk_read): Use read_blocks.
15623 (grub_efidisk_write): Use write_blocks.
15624 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
15625 log_sector_size.
15626 (get_safe_sectors): Handle non-512B sectors.
15627 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
15628 sectors.
15629 (grub_biosdisk_write): Handle non-512B sectors.
15630 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
15631 (grub_scsi_read): Remove special non-512B block handling (now handled
15632 one level up).
15633 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
15634 and do sanity checks.
15635 (grub_disk_adjust_range): Handle non-512B sectors.
15636 (transform_sector): New function.
15637 (grub_disk_read_small): Likewise.
15638 (grub_disk_read): Rewritten.
15639 (grub_disk_write): Handle non-512B sectors.
15640 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
15641 log_sector_size.
15642 (open_device): Use log_sector_size.
15643 (grub_util_biosdisk_read): Likewise.
15644 (grub_util_biosdisk_write): Likewise.
15645 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
15646 non-512B sectors.
15647 (pc_partition_map_embed): Likewise.
15648 * include/grub/disk.h (grub_disk): New field log_sector_size.
15649 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
15650 (GRUB_DISK_CACHE_BITS): Increased to 6.
15651 * util/grub-fstest.c (fstest): New command testload.
15652 (argp_parser): Likewise.
15653
881ac815
RM
156542011-06-16 Robert Millan <rmh@gnu.org>
15655
15656 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
15657 `ata' driver on kernel of FreeBSD 9.
15658
15659 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
15660 (get_ataraid_disk_name): New functions.
15661 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
15662 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
15663 get_ataraid_disk_name() and get_ada_disk_name().
15664
1e9aef7d
CW
156652011-06-13 Colin Watson <cjwatson@ubuntu.com>
15666
15667 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
15668 input format.
15669
351c7c8a
CW
156702011-05-29 Colin Watson <cjwatson@ubuntu.com>
15671
15672 * docs/grub.texi (Obtaining and Building GRUB): Substitute
15673 `ftp.gnu.org' for `alpha.gnu.org'.
15674
6b4e6430
CW
156752011-05-27 Colin Watson <cjwatson@ubuntu.com>
15676
15677 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
15678 partitions under /dev/disk/by-id/.
15679
c64db050
CW
156802011-05-27 Colin Watson <cjwatson@ubuntu.com>
15681
15682 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
15683 after ten consecutive open failures. Scanning all the way up to
15684 10000 is excessive and can cause serious performance problems in
15685 some configurations.
15686 Fixes Ubuntu bug #787461.
15687
245f4aba
VS
156882011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
15691 opening new one.
15692
f767c929
VS
156932011-05-21 Colin Watson <cjwatson@ubuntu.com>
156942011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15695
15696 Don't stat devices unless we have to.
15697
15698 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
15699 dir == /dev/mapper.
15700 (grub_guess_root_device): Use already known os_dev if possible.
15701 * grub-core/kern/emu/hostdisk.c
15702 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
15703 if device is known to be a dm one.
15704
f35fa3a6
CW
157052011-05-20 Colin Watson <cjwatson@ubuntu.com>
15706
15707 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
15708 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
15709 Reported by: Pawel Tecza.
15710
9a79fcf2
VS
157112011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
15712
15713 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
15714 (lsefisystab): Likewise.
15715 (lssal): Likewise.
15716 (lsefimmap): Likewise.
15717 (hdparm): Enable on qemu-mips.
15718 (setjmp): Add ia64 nodist.
15719 (serial): Simplify tags.
15720
63e3eea9
CW
157212011-05-18 Colin Watson <cjwatson@ubuntu.com>
15722
15723 * Makefile.util.def (grub-ofpathname): Install manual page.
15724
09728256
CW
157252011-05-18 Colin Watson <cjwatson@ubuntu.com>
15726
15727 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
15728
8b63a142
CW
157292011-05-18 Colin Watson <cjwatson@ubuntu.com>
15730
15731 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
15732
e775d8ed
VS
157332011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15734
15735 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
15736 into dprintf.
15737
bf947d36
VS
157382011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15739
15740 Use full 64-bit division.
15741
15742 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
15743 (grub_divmod64): ... this.
15744 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
15745 version.
15746
b84f26c5
CW
157472011-05-18 Colin Watson <cjwatson@ubuntu.com>
15748
15749 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
15750 `source'.
15751
5626056f
CW
157522011-05-18 Colin Watson <cjwatson@ubuntu.com>
15753
15754 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
15755 to avoid accidents when debugging with 'sh -x'.
15756 * grub-core/gensyminfo.sh.in: Likewise.
15757 * tests/example_scripted_test.in: Likewise.
15758 * tests/grub_cmd_regexp.in: Likewise.
15759 * tests/grub_script_blanklines.in: Likewise.
15760 * tests/grub_script_dollar.in: Likewise.
15761 * tests/grub_script_expansion.in: Likewise.
15762 * tests/grub_script_final_semicolon.in: Likewise.
15763 * tests/partmap_test.in: Likewise.
15764 * tests/util/grub-shell-tester.in: Likewise.
15765 * tests/util/grub-shell.in: Likewise.
15766
e2965f4a
CW
157672011-05-18 Colin Watson <cjwatson@ubuntu.com>
15768
15769 Move gfxmenu color handling to video, so that gfxterm can use it
15770 too.
15771
15772 * grub-core/gfxmenu/named_colors.c: Move to ...
15773 * grub-core/video/colors.c: ... here. Rename
15774 grub_gui_get_named_color to grub_video_get_named_color.
15775 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
15776 * grub-core/video/colors.c (my_isxdigit): ... here.
15777 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
15778 Move to ...
15779 * grub-core/video/colors.c (parse_hex_color_component): ... here.
15780 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
15781 to ...
15782 * grub-core/video/colors.c (grub_video_parse_color): ... here.
15783
15784 * include/grub/gui.h (grub_gui_color_t): Move to ...
15785 * include/grub/video.h (grub_video_rgba_color_t): ... here.
15786 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
15787 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
15788 * include/grub/gui.h (grub_gui_map_color): Move to ...
15789 * include/grub/video.h (grub_video_map_rgba_color): ... here.
15790 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
15791 to ...
15792 * include/grub/video.h (grub_video_get_named_color): ... here.
15793 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
15794 * include/grub/video.h (grub_video_parse_color): ... here.
15795
15796 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
15797 video/colors.c.
15798 (gfxmenu): Remove gfxmenu/named_colors.c.
15799 (video) [videomodules]: Add video/colors.c.
15800
15801 Add a background_color command.
15802
15803 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
15804 function.
15805 (GRUB_MOD_INIT): Register background_color command.
15806 (GRUB_MOD_FINI): Unregister background_color command.
15807 (redraw_screen_rect): Allow blend/replace of text layer to be
15808 controlled independently from whether there is a background bitmap.
15809 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
15810 changing bitmap.
15811
1e4b4390
VS
158122011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15813
26618ff0
VS
15814 Patch BPB in ntldr and chainloader --bpb.
15815
1e4b4390
VS
15816 * grub-core/fs/fat.c: Include grub/fat.h.
15817 (grub_fat_bpb): Moved to ...
15818 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
15819 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
15820 grub/ntfs.h.
15821 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
15822 Moved from here...
15823 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
15824 here.
15825 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
15826 New function.
15827 (grub_chainloader_cmd): Patch BPB if --bpb is given.
15828 (GRUB_MOD_INIT): Show --bpb.
15829 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
15830 * grub-core/normal/main.c (features): New variable.
15831 (GRUB_MOD_INIT): Set feature_* variables.
15832 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
15833 proto.
15834 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
15835
cf02731e
VS
158362011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15837
15838 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
15839 for cleanness.
15840
e3a1073f
VS
158412011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15842
15843 FreeDOS direct loading support.
15844
15845 * docs/grub.texi (Supported OS): Add FreeDOS.
15846 * grub-core/Makefile.core.def (freedos): New module.
15847 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
15848 variable.
15849 (grub_relocator16_boot): Handle %ebx.
15850 * grub-core/lib/i386/relocator16.S: Likewise.
15851 * grub-core/loader/i386/pc/freedos.c: New file.
15852
05caa461
VS
158532011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15854
15855 Long Linux command line support.
15856
15857 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15858 (maximal_cmdline_size): New variable.
15859 (allocate_pages): Use maximal_cmdline_size.
15860 (grub_cmd_linux): Set and use maximal_cmdline_size.
15861 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15862 (allocate_pages): Use maximal_cmdline_size.
15863 (grub_cmd_linux): Set and use maximal_cmdline_size.
15864 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
15865 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
15866 and cmdline_size.
15867
a2491e23
VS
158682011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
158692011-05-18 Colin Watson <cjwatson@ubuntu.com>
15870
15871 Improve devmapper support
15872
15873 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
15874 (grub_util_is_lvm): New function.
15875 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
15876 than lvm if not dmraid.
15877 Handle mapped md nodes.
15878 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
15879 (grub_util_device_is_mapped): ... this. Make always available. All users
15880 updated.
15881 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
15882 (convert_system_partition_to_system_disk): Handle lvm, mpath and
15883 dmraid nodes.
15884 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
15885
6ad6223e
VS
158862011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15887
15888 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
15889
15890 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
15891 * grub-core/modinfo.sh.in: New file.
15892 * grub-core/Makefile.core.def (modinfo.sh): New script.
15893 * util/grub-mknetdir.in: Use modinfo.sh.
15894 * util/grub-mkrescue.in: Likewise.
15895
543a8f6e
VS
158962011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15897
15898 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15899 Fix potential usage of Elf32 instead of Elf64 when compiling on
15900 32-bit architecture. Add endianness macros while on it.
15901
4959e111
VS
159022011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15903
15904 Use mipsel- rather than mips- in directories involving mipsel ports to
15905 allow both endiannesses coexist.
15906
15907 * configure.ac: proparate target_cpu=mipsel rather than resetting to
15908 mips. All conditions adjusted.
15909 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
15910 variable.
15911 * util/grub-install.in: Adjust conditions to take renaming into account.
15912 * util/grub-mkimage.c (image_targets): Likewise. New target
15913 mips-qemu_mips-elf for bigendian mips.
15914
35341bbc
VS
159152011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15916
15917 Avoid unnecessary copying on MIPS.
15918
15919 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
15920 early if src == dest.
15921 * util/grub-mkimage.c (generate_image): Arange for src == dest if
15922 compression is none.
15923
b772baed
VS
159242011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15925
15926 Reduce memory footprint on SGI by putting modules before the kernel
15927 as opposed to after.
15928
15929 * grub-core/Makefile.core.def (kernel): Increase linking address.
15930 (none_decompress): Likewise.
15931 (xz_decompress): Likewise.
15932 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
15933 address.
15934 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
15935 layout change.
15936 (grub_arch_modules_addr): New function.
15937 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
15938 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
15939 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
15940 here.
15941 * grub-core/kern/mips/startup.S (total_size): Rename to ...
15942 (grub_total_modules_size): ... this. Make global.
15943 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
15944 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
15945 New definition.
15946 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
15947 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
15948 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
15949 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
15950 * util/grub-mkimage.c (image_target_desc): New flag
15951 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
15952 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
15953 (generate_image): Handle images with modules before kernel.
15954
566a1917
VS
159552011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15956
15957 Prevent potential loss of memory map by overwrite on qemu-mips.
15958
15959 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
15960 Save ram size in $s4.
15961 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
15962 All users changed to grub_arch_memsize.
15963 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
15964 Loongson.
15965 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
15966 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
15967 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
15968 external variable.
15969
5d420cd9
CW
159702011-05-17 Colin Watson <cjwatson@ubuntu.com>
15971
15972 * .bzrignore: Remove grub-dumpbios.
15973
d064b830
CW
159742011-05-17 Colin Watson <cjwatson@ubuntu.com>
15975
15976 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
15977 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
15978 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
15979 existing options which append).
15980 * docs/grub.texi (Simple configuration): Document new options.
15981 Reported by: Ian Jackson. Fixes Debian bug #617538.
15982
3ca2b466
CW
159832011-05-17 Colin Watson <cjwatson@ubuntu.com>
15984
15985 * util/grub-fstest.c (cmd_cat): New function.
15986 (fstest): Handle CMD_CAT.
15987 (options): Add cat.
15988 (argp_parser): Handle cat.
15989
24c9143a
CW
159902011-05-17 Colin Watson <cjwatson@ubuntu.com>
15991
15992 * Makefile.util.def (grub-bin2h): Don't install.
15993 * docs/man/grub-bin2h.h2m: Remove.
15994
90f7ac19
VS
159952011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15996
15997 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
15998 place.
15999
8d4a5178
VS
160002011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16001
16002 Reenable qemu-mips port.
16003
16004 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
16005 Fix small arc bug while on it.
16006 * gentpl.py: Handle qemu_mips.
16007 * grub-core/Makefile.am: Likewise.
16008 * grub-core/Makefile.core.def: Likewise.
16009 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
16010 inappropriate includes.
16011 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
16012 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
16013 * grub-core/kern/main.c (grub_modules_get_end)
16014 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
16015 * grub-core/kern/mips/qemu-mips: Moved to ..
16016 * grub-core/kern/mips/qemu_mips: ... this.
16017 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
16018 (grub_machine_init): Call terminfo_init and serial_init.
16019 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
16020 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16021 New variable.
16022 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
16023 parameter passing.
16024 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
16025 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
16026 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
16027 * include/grub/mips/qemu_mips/cmos.h: New file.
16028 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
16029 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
16030 Removed.
16031 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
16032 Use correct mips-style address.
16033 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
16034 (GRUB_TICKS_PER_SECOND): Removed.
16035 (grub_get_rtc): Likewise.
16036 (grub_cpu_idle): Likewise.
16037 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
16038 New definition.
16039 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
16040 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
16041 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
16042 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
16043 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16044 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16045 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
16046 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
16047
400b9371
VS
160482011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16049
16050 SGI ARCS port.
16051
16052 * Makefile.util.def (libgrubmods.a): Add dvh.c.
16053 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
16054 platforms.
16055 * configure.ac: New target mips-arc.
16056 * gentpl.py: Likewise.
16057 * grub-core/Makefile.am: Likewise.
16058 * grub-core/Makefile.core.def: Likewise.
16059 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
16060 (none_decompress): Likewise.
16061 (lsdev): New module.
16062 (datetime): Use lib/arc/datetime.c on ARC.
16063 (part_dvh): New module.
16064 * grub-core/commands/arc/lsdev.c: New file.
16065 * grub-core/disk/arc/arcdisk.c: Likewise.
16066 * grub-core/kern/mips/arc/init.c: Likewise.
16067 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
16068 aligned addresses.
16069 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
16070 support.
16071 (grub_arch_dl_relocate_symbols): Likewise.
16072 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
16073 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
16074 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
16075 platforms.
16076 * grub-core/lib/arc/datetime.c: New file.
16077 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
16078 pci.h on non-loongson.
16079 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
16080 (grub_linux_boot): Set unused registers to 0.
16081 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
16082 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
16083 * grub-core/mmap/mips/uppermem.c: ...here.
16084 * grub-core/partmap/dvh.c: New file.
16085 * grub-core/term/arc/console.c: Likewise.
16086 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
16087 (grub_terminfo_set_current): Add terminal "arc".
16088 (grub_terminfo_readkey): Support ARC sequences.
16089 * include/grub/arc/arc.h: New file.
16090 * include/grub/arc/console.h: Likewise.
16091 * include/grub/disk.h (grub_disk_dev_id): Add
16092 GRUB_DISK_DEVICE_ARCDISK_ID.
16093 * include/grub/mips/arc/kernel.h: New file.
16094 * include/grub/mips/arc/memory.h: Likewise.
16095 * include/grub/mips/arc/time.h: Likewise.
16096 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
16097 * include/grub/mips/kernel.h (grub_halt): ... here.
16098 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
16099 here...
16100 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
16101 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
16102 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
16103 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
16104 proto.
16105 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
16106 from here ...
16107 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
16108 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
16109 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
16110 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
16111 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
16112 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
16113 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
16114 (grub_phys_addr_t): Moved from here ...
16115 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
16116 (grub_vtop): Moved from here ...
16117 * include/grub/mips/memory.h (grub_vtop): ... here.
16118 (grub_map_memory): Moved from here ...
16119 * include/grub/mips/memory.h (grub_map_memory): ... here.
16120 (grub_unmap_memory): Moved from here ...
16121 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
16122 (grub_machine_mmap_iterate): Moved from here ...
16123 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
16124 (grub_mmap_get_lower): Moved from here ...
16125 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
16126 (grub_mmap_get_upper): Moved from here ...
16127 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
16128 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16129 here ...
16130 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16131 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
16132 here ...
16133 * include/grub/mips/time.h (grub_get_rtc): ... here.
16134 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16135 here ...
16136 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16137 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
16138 here ...
16139 * include/grub/mips/time.h (grub_cpu_idle): ... here.
16140 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
16141 definition.
16142 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
16143 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
16144 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
16145 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
16146 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16147 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16148 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
16149 (GRUB_MACHINE_LINK_ADDR): Likewise.
16150 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
16151 to 6.
16152 * util/grub-install.in: Run dvhtool on ARC.
16153 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 16154 (generate_image): Handle ECOFF output for mips-arc.
400b9371 16155
c8ecc840
VS
161562011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16157
16158 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
16159 blocks.
16160
153a4b55
VS
161612011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16162
16163 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
16164 after enabling port.
16165
ff44d107
VS
161662011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16167
16168 Skip incorrect USB devices.
16169
16170 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
16171 configcnt == 0.
16172 * include/grub/usb.h (grub_usb_err_t): New enum value
16173 GRUB_USB_ERR_BADDEVICE.
16174
638dbe4f
VS
161752011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16176
16177 Fuloong video init support.
16178
16179 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
16180 well.
16181 (grub_vga_read_arx): New function.
16182 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
16183 definition.
16184 (framebuffer): New members io, mmioptr and mmiobase.
16185 (read_sis_cmd): New function.
16186 (write_sis_cmd): Likewise.
16187 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
16188 rather than 640x400.
16189 * grub-core/video/sis315_init.c: New file.
16190
c3fc520c
VS
161912011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16192
16193 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
16194 non-loongson.
16195 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
16196 to grub_dl_register_symbol.
16197
67b1e5c9
VS
161982011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16199
16200 Fix compilation errors.
16201
16202 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
16203 potentially unused.
16204 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
16205 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
16206 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
16207 to loongson machines.
16208
b756f75f
VS
162092011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16210
16211 Several FS mtime support.
16212
16213 * grub-core/fs/affs.c (grub_affs_time): New struct.
16214 (grub_affs_file): New field mtime.
16215 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
16216 type. Removed 'size'. New field 'di'. All users updated.
16217 (grub_affs_mount): Simplify checsum checking.
16218 (grub_affs_iterate_dir): New helper grub_affs_create_node.
16219 (grub_affs_dir): Handle mtime.
16220 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
16221 (grub_cpio_dir): Likewise.
16222 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
16223 (grub_hfs_filerec): New field mtime.
16224 (grub_hfs_dir): Handle mtime.
16225 (grub_hfs_mtime): New function.
16226 (grub_hfs_fs): Register grub_hfs_mtime.
16227 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
16228 (grub_iso9660_dir): New field mtime.
16229 (grub_fshelp_node): New field dirent.
16230 (iso9660_to_unixtime): New function.
16231 (iso9660_to_unixtime2): Likewise.
16232 (grub_iso9660_read_symlink): Use node->dirent.
16233 (grub_iso9660_iterate_dir): Likewise.
16234 (grub_iso9660_dir): Set mtime.
16235 (grub_iso9660_mtime): New function.
16236 (grub_iso9660_fs): Register grub_iso9660_mtime.
16237 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
16238 (grub_jfs_inode): New fields atime, ctime and mtime.
16239 (grub_jfs_dir): Set mtime.
16240 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
16241 * grub-core/fs/ntfs.c (list_file): Set mtime.
16242 (grub_ntfs_dir): Likewise.
16243 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
16244 (grub_reiserfs_iterate_dir): Set mtime.
16245 (grub_reiserfs_dir): Likewise.
16246 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
16247 (grub_fshelp_node): Likewise.
16248 (grub_sfs_iterate_dir): Set mtime.
16249 (grub_sfs_dir): Likewise.
16250 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
16251 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
16252 (grub_xfs_inode): New fields atime, mtime, ctime.
16253 (grub_xfs_dir): Set mtime.
16254 * include/grub/datetime.h (grub_datetime2unixtime): New function.
16255 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
16256 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
16257
16258 Support UDF symlinks.
16259
16260 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
16261 (grub_ufs_read_symlink): New function. All users updated.
16262
16263 Check amiga partmap checksum.
16264
16265 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
16266 (grub_amiga_partition): Likewise.
16267 (amiga_partition_map_checksum): New function.
16268 (amiga_partition_map_iterate): Check checksum.
16269
5470225d
VS
162702011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16271
16272 ROMFS support.
16273
16274 * Makefile.util.def (libgrubmods.a): Add romfs.
16275 * grub-core/Makefile.core.def (romfs): New module.
16276 * grub-core/fs/romfs.c: New file.
16277
d4680a35
VS
162782011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16279
16280 Squashfs v4 support.
16281
16282 * Makefile.util.def (libgrubmods.a): Add squash4.
16283 * grub-core/Makefile.core.def (squash4): New module.
16284 * grub-core/fs/squash4.c: New file.
16285 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
16286 disk_input_start, disk_input.
16287 (get_byte): Handle disk_input.
16288 (grub_zlib_disk_read): New function.
16289 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
16290
bcb18e74
FZ
162912011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
162922011-05-15 Feiran Zheng <famcool@gmail.com>
16293
16294 * Makefile.util.def (libgrubmods.a): Add minix3.
16295 * grub-core/Makefile.core.def (minix3): New module.
16296 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
16297 (GRUB_MINIX_BSIZE): Removed.
16298 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
16299 (grub_minix_ino_t): New type.
16300 (grub_minix_le_to_cpu_ino): New macro.
16301 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
16302 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
16303 (grub_minix_data): New field block_size.
16304 (grub_minix_read_file): Handle 64-bit correctly.
16305 * grub-core/fs/minix3.c: New file.
16306
32297d5f
TG
163072011-05-15 Tristan Gingold <gingold@free.fr>
163082011-05-15 Robert Millan <rmh.grub@aybabtu.com>
163092011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16310
16311 IA64 support.
16312
16313 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
16314 * configure.ac: Add ia64-efi target.
16315 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
16316 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
16317 * gentpl.py: Add ia64_efi platform.
16318 Rename x86_efi to efi and Add ia64-efi. All users updated.
16319 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
16320 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
16321 Remove kern/generic/rtc_get_time_ms.c on EFI.
16322 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
16323 kern/ia64/dl_helper.c on ia64-efi.
16324 Add kern/emu/cache.c on emu.
16325 (linux): Use on loader/ia64/efi/linux.c on ia64.
16326 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
16327 whether symbol is a function.
16328 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
16329 (grub_symbol): New field 'isfunc'.
16330 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
16331 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
16332 (grub_dl_load_segments): Place all sections into the same region.
16333 [__ia64__]: Create trampolines and got.
16334 [GRUB_MACHINE_EMU]: Call mprotect.
16335 (grub_dl_resolve_symbols): Resolve symbol type as well.
16336 [__ia64__]: Create function descriptors.
16337 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
16338 (grub_rtc_get_time_ms): ... this. Expressions simplified.
16339 (grub_get_rtc): New function.
16340 * grub-core/kern/emu/cache.c [__ia64__]: New file.
16341 * grub-core/kern/emu/cache.S: Renamed to ...
16342 * grub-core/kern/emu/cache_s.S: ... this.
16343 [__ia64__]: Add a nop.
16344 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
16345 [__ia64__]: New function.
16346 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
16347 * grub-core/kern/ia64/dl.c: New file.
16348 * grub-core/kern/ia64/dl_helper.c: Likewise.
16349 * grub-core/kern/ia64/efi/init.c: New file.
16350 * grub-core/kern/ia64/efi/startup.S: Likewise.
16351 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
16352 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
16353 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
16354 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
16355 * grub-core/loader/ia64/efi/linux.c: New file.
16356 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
16357 (GRUB_MOD_DEP): Likewise.
16358 (grub_dl) [__ia64__]: New fields got and tramp.
16359 (grub_dl): New field 'base'.
16360 (grub_dl_register_symbol): New argument isfunc. All users updated.
16361 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
16362 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
16363 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
16364 (grub_ia64_dl_get_tramp_got_size): New proto.
16365 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
16366 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
16367 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
16368 * include/grub/efi/api.h: Skip call wrappers on ia64.
16369 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
16370 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
16371 * include/grub/elf.h (ELF_ST_INFO): New definition.
16372 * include/grub/ia64/efi/kernel.h: New file.
16373 * include/grub/ia64/efi/memory.h: Likewise.
16374 * include/grub/ia64/efi/time.h: Likewise.
16375 * include/grub/ia64/kernel.h: Likewise.
16376 * include/grub/ia64/setjmp.h: Likewise (from glibc).
16377 * include/grub/ia64/time.h: New file.
16378 * include/grub/ia64/types.h: Likewise.
16379 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
16380 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
16381 New protos.
16382 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
16383 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16384 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
16385 * util/grub-mkimage.c (image_target_desc): New field pe_target.
16386 All users updated.
16387 (EFI64_HEADER_SIZE): New definition. All users updated.
16388 (image_targets): Add ia64-efi.
16389 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
16390 jumpers_addr. All users updated.
16391 Create function descriptors.
16392 (count_funcs): New function.
16393 (unaligned_uint32): New struct.
16394 (MASK20): New definition.
16395 (MASK19): Likewise.
16396 (MASKF21): Likewise.
16397 (add_value_to_slot_20b): New function.
16398 (add_value_to_slot_21_real): Likewise.
16399 (add_value_to_slot_21): Likewise.
16400 (ia64_kernel_trampoline): New struct.
16401 (nopm): New variable.
16402 (jump): Likewise.
16403 (make_trampoline): New function.
16404 (relocate_addresses): Handle ia64.
16405 (make_reloc_section): Likewise.
16406 (load_image): Likewise.
16407
983b414d
VS
164082011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16409
16410 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
16411 warning. Move variables before code while on it.
16412
5d063cdc
VS
164132011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16414
16415 Fuloong support.
16416
16417 * configure.ac: Rename yeeloong platform to loongson. All users updated.
16418 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
16419 * grub-core/boot/mips/loongson/fuloong.S: New file.
16420 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
16421 Explicitly init CS5536.
16422 [FULOONG]: Don't use serial until CS5536 is available.
16423 Set GPIO based on dumps.
16424 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
16425 [FULOONG]: Handle GPIO and memory controller differences.
16426 Parse machine type in $a2.
16427 * grub-core/boot/mips/startup_raw.S: Determine and save the
16428 architecture.
16429 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
16430 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
16431 init on architecture type.
16432 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16433 SIS315E. Don't init at_keyboard on fuloong.
16434 (grub_halt): Support Fuloong.
16435 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
16436 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
16437 (loongson_machtypes): New array.
16438 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
16439 type.
16440 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
16441 config. All users updated. Handle CS5536 serial.
16442 * grub-core/term/serial.c (grub_serial_register): Conditionalise
16443 default port on machine type. Register serial as inactive.
16444 * grub-core/video/sis315pro.c: New file.
16445 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
16446 definition.
16447 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
16448 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
16449 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
16450 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
16451 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
16452 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
16453 to ...
16454 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
16455 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
16456 definition.
16457 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
16458 (grub_arch_machine): New extern var.
16459 * include/grub/mips/loongson/serial.h
16460 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
16461 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
16462 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
16463 (GRUB_MACHINE_SERIAL_PORT0): ... this.
16464 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
16465 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
16466 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
16467 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
16468 * include/grub/term.h (grub_term_register_input_inactive): New inline
16469 function.
16470 (grub_term_register_output_inactive): Likewise.
16471 * include/grub/video.h (grub_video_driver_id): New value
16472 GRUB_VIDEO_DRIVER_SIS315PRO.
16473 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
16474 New field "names". All users updated.
16475 New field value IMAGE_FULOONG_FLASH.
16476 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
16477
6ada82d1
JU
164782011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
16479
16480 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
16481 and add some clarification.
16482
90c571a4
VS
164832011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16484
16485 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
16486 platforms if kernel is compressed.
16487
de04eecf
VS
164882011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16489
16490 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
16491 unused modules since currently referrence counter isn't reliable and
16492 there isn't much memory to recover there anyway.
16493
57688121
VS
164942011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16495
16496 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
16497 rather than resetting it to allow modules to reference themselves
16498 in init.
16499
3d2c7e35
VS
165002011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16501
16502 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
16503 counter on dependencies since grub_dl_unref already handles this.
16504
b25db218
VS
165052011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16506
16507 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
16508 on error if not already done.
16509
25a45338
VS
165102011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16511
16512 Fix few potential memory misusage.
16513
16514 * grub-core/font/font.c (load_font_index): Don't free char_index to
16515 avoid double free.
b25db218
VS
16516 (grub_font_load): Zero-fill font at alloc for safety.
16517 Close file on error.
16518 (free_font): Free bmp_idx.
25a45338 16519
0cac83df
VS
165202011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16521
16522 * docs/grub.texi (Installation): Fix several outdated claims.
16523
2217a143
VS
165242011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16525
16526 Handle module_license on windows.
16527
16528 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
16529 sections shifted.
16530 (insert_string): Make argument const char * instead of char *.
16531 (write_section_data): Handle long section names.
16532 Handle module_license.
16533
d4de6b01
VS
165342011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16535
16536 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
16537 handle class-free menuentries.
16538 (grub_normal_add_menu_entry): Add a check to be sure.
16539
4c2a3b43
VS
165402011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16541
16542 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
16543 PgUp and PgDown.
16544
85c6210f
VS
165452011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16546
16547 * configure.ac: Bump version to 1.99.
16548
36084912
VS
165492011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16550
16551 Give ATA device a bit more time on first try in order to allow disks
16552 to spin up.
16553
16554 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
16555 if dev->present is 1. Reset dev->present on failure.
16556 (grub_ata_device_initialize): Set dev->present to 1.
16557 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
16558 (grub_ata_device): New member 'present'.
16559
bda0e219
VS
165602011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16561
16562 * util/grub-mkimage.c (generate_image): Update hash.
16563
19e1c41b
VS
165642011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16565
16566 Flush caches on DMA memory.
16567
16568 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
16569 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
16570 (grub_dma_free): Likewise.
16571 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
16572
91bbcc0c
VS
165732011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16574
16575 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
16576 to avoid asm treating ld and sd as macros.
16577
60ddfad3
VS
165782011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16579
16580 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
16581 decompressor.
16582
a298aa04
VS
165832011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16584
16585 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
16586 grub_decompress_core since later would fail if grub_decompress_core
16587 is too far.
16588
9b44feca
VS
165892011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16590
16591 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
16592 R_MIPS_JALR since it's used by newer compiler.
16593
56dbe7b4
VS
165942011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
16595
16596 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
16597
52856af2
VS
165982011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16599
16600 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
16601 file_path to 0 for surety.
16602 (grub_chainloader_boot): Set exit_data to NULL.
16603 Unset the loader once done.
16604 (grub_cmd_chainloader): Fix confusing error message if file is empty.
16605
9c9bfc6d
VS
166062011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16607
16608 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
16609 unknown key into a dprintf.
16610
dd94a3df
VS
166112011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16612
16613 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
16614 on first non-existant partition.
16615
fa68d99c
VS
166162011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16617
16618 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
16619 openning fails.
16620 Reported by: Mark Korenberg.
16621
157effb7
VS
166222011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16623
16624 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
16625 overflow.
16626
ea75312f
VS
166272011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16628
16629 * util/grub-mkimage.c (main): Explicitely flush and sync the output
16630 before closing to ensure that it will be readable by grub-setup.
16631
072b5d31
VS
166322011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16633
16634 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
16635 (devpath_1): Use MAKE_PIWG_PATH.
16636 (devpath_2): Likewise.
16637 (devpath_3): Likewise.
16638 (devpath_4): Likewise.
16639 (devpath_5): Likewise.
16640 (devpath_6): Likewise.
16641
16642 The appleldr.mod was checked that to be binary identical to previous
16643 version.
16644
7fae0051
Z
166452011-05-05 Zach <mikezackles>
16646
16647 Support 2010 Macbooks.
16648
16649 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
16650 (devs): Add devpath_6.
16651
7c515bee
VS
166522011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16653
16654 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
16655 /dev/random. /dev/urandom is good enough for our purposes (salting).
16656
ed660bd8
VS
166572011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16658
16659 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
16660
ee5614b7
VS
166612011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16662
16663 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
16664 hexadecimal.
16665
664889a6
VS
166662011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
16669 and not 0 on failure.
16670
bd405bbc
CW
166712011-05-03 Colin Watson <cjwatson@ubuntu.com>
16672
16673 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
16674 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
16675 disk; otherwise grub_fs_probe will not fall back to the next
16676 filesystem.
16677 (grub_pxefs_open): Likewise, for consistency.
16678 Reported and tested by: Ezekiel Grave.
16679
4ebff753
CW
166802011-05-03 Colin Watson <cjwatson@ubuntu.com>
16681
16682 * tests/partmap_test.in: Don't hardcode path to parted.
16683 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
16684
8f942553
CW
166852011-05-01 Colin Watson <cjwatson@ubuntu.com>
16686
16687 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
16688 of `ls' to find out which devices are available.
16689
3c62402d
VS
166902011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16691
16692 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
16693 than source address for efi mmap buffer.
16694
723f63f2
VS
166952011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16696
16697 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
16698 wrong action on non-detecting the magic.
16699
68797f92
VS
167002011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16701
16702 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
16703 already supplied by another part of the module (fixes compilation on
16704 FreeBSD).
16705
6be8715d
VS
167062011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16707
16708 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
16709 match the one used by mdadm.
16710
e91dba5b
CW
167112011-04-21 Colin Watson <cjwatson@ubuntu.com>
16712
16713 * po/README: Add instructions for creating po/LINGUAS.
16714
c85140b3
CW
167152011-04-21 Colin Watson <cjwatson@ubuntu.com>
16716
16717 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
16718 #551428.
16719
16720 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
16721 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
16722 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
16723 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
16724 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
16725 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
16726 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
16727 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
16728 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
16729 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
16730 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
16731 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
16732 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
16733 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
16734 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
16735 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
16736 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
16737 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
16738 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
16739 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
16740 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
16741 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
16742
92051871
CW
167432011-04-21 Colin Watson <cjwatson@ubuntu.com>
16744
16745 * grub-core/kern/emu/getroot.c
16746 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
16747 test that was incorrectly reintroduced in r3214.
16748 Reported by: Ian Dall. Fixes Savannah bug #33133.
16749
b13f79a4
CW
167502011-04-21 Colin Watson <cjwatson@ubuntu.com>
16751
16752 Fix stack pointer handling in 16-bit relocator.
16753
16754 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
16755 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
16756 Fixes Ubuntu bug #683904.
16757
9b710a88
VS
167582011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16759
16760 * configure.ac: Bump version to 1.99~rc2.
16761
d97e7b59
VS
167622011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16763
16764 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
16765 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
16766 * grub-core/lib/x86_64/setjmp.S: Likewise.
16767 * grub-core/lib/mips/setjmp.S: Likewise.
16768 * grub-core/lib/powerpc/setjmp.S: Likewise.
16769 * grub-core/lib/sparc64/setjmp.S: Likewise.
16770
0624551c
VS
167712011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16772
16773 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
16774 * grub-core/lib/efi/datetime.c: Likewise.
16775
e8f28d4c
VS
167762011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16777
16778 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
16779 New function.
16780 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
16781 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
16782 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
16783
bba79a15
VS
167842011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16785
16786 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
16787 bitmap.
16788 (grub_gfxterm_term_init): Likewise.
16789
abc474ef
VS
167902011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16791
16792 Take into account the decorations the computing menu entry width.
16793
16794 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
16795 (grub_gfxmenu_create_box): Register get_border_width.
16796 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
16797 if available.
16798 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
16799 get_border_width.
16800
e74b3947
EP
168012011-04-18 Endres Puschner <code@e7p.de>
16802
16803 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
16804 Don't skip first class.
16805
34faa595
VS
168062011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16807
16808 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
16809 chunks.
16810 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
16811
93a777e3
VS
168122011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16813
16814 Complete 64-bit division support.
16815
16816 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
16817 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
16818 * include/grub/misc.h (grub_divmod64): Rename to ...
16819 (grub_divmod64_full): ... this.
16820 (grub_divmod64): New inline function.
16821
a5102d94
VS
168222011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16823
16824 * util/grub-mkimage.c (generate_image): Add forgotten comma.
16825
f3fb7b36
VS
168262011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16827
16828 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
16829 performing the necessary test.
16830
9ac718b0
VS
168312011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16832
16833 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
16834 (kfreebsd.elf): Likewise.
16835 (pc-chainloader.elf): Likewise.
16836 (ntldr.elf): Likewise.
16837
50d2cc5a
VS
168382011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16839
16840 Identify RAID by its UUID rather than (guessed) name.
16841
16842 * grub-core/disk/raid.c (ascii2hex): New function.
16843 (grub_raid_open): Accept mduuid/%s specification.
16844 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
16845 (get_mdadm_uuid): ... this.
16846 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
16847
e03f7bea
VS
168482011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
16849
16850 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
16851 to negative size.
16852
e74c3112
CW
168532011-04-13 Colin Watson <cjwatson@ubuntu.com>
16854
16855 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
16856 btrfs subvolume.
16857 * util/grub.d/20_linux_xen.in: Likewise.
16858
78fa584f
CW
168592011-04-13 Colin Watson <cjwatson@ubuntu.com>
16860
16861 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
16862 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
16863
16864 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16865 Build a list of relevant visible mounts using the mnt_id and
16866 parent_mnt_id fields, and then scan that list at the end.
16867
9d5f8162
CW
168682011-04-12 Colin Watson <cjwatson@ubuntu.com>
16869
16870 * docs/grub.texi (normal): New section.
16871 (normal_exit): New section.
16872 (Embedded configuration): Add reference to normal.
16873 (GRUB only offers a rescue shell): Likewise.
16874 * docs/grub-dev.texi (Error Handling): Fix typo.
16875
09a9d66f
CW
168762011-04-12 Colin Watson <cjwatson@ubuntu.com>
16877
16878 * NEWS: Drop obsolete entry about probe-only btrfs support.
16879
0c676933
CW
168802011-04-12 Colin Watson <cjwatson@ubuntu.com>
16881
16882 * util/import_gcry.py: Fix typo.
16883
ec9f5e0d
VS
168842011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16885
16886 * NEWS: Add btrfs support.
16887
fe6b2cba
VS
168882011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
168892011-04-11 Colin Watson <cjwatson@ubuntu.com>
16890
16891 BtrFS support. Written by me (Vladimir) with important bugfixes and
16892 even more important testing by Colin.
16893
16894 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
16895 * grub-core/Makefile.core.def (btrfs): Add crc.c.
16896 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
16897 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
16898 mem_input_off and mem_input. All users updated to accept in-RAM input.
16899 (gzio_seek): New function.
16900 (test_zlib_header): Likewise.
16901 (grub_gzio_read): Likewise.
16902 (grub_zlib_decompress): Likewise.
16903 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
16904 Accept partial and non-virtual mounts.
16905 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
16906 avoid receiving /dev/dm-X as device.
16907 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
16908 Handle bind and partial mounts.
16909 * grub-core/lib/crc.c: New file.
16910 * include/grub/deflate.h: Likewise.
16911 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
16912 proto.
16913 * include/grub/lib/crc.h: New file.
16914
e745cf0c
VS
169152011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16916
16917 Implement automatic module license checking according to new GNU
16918 guidelines.
16919
16920 * grub-core/kern/dl.c (grub_dl_check_license): New function.
16921 (grub_dl_load_core): Use grub_dl_check_license.
16922 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
16923 (GRUB_MOD_LICENSE): Likewise.
16924 (GRUB_MOD_DUAL_LICENSE): Likewise.
16925 All modules updated.
16926
2a9bc016
CW
169272011-04-11 Colin Watson <cjwatson@ubuntu.com>
16928
16929 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
16930 reserved_first_sector to 1. btrfs reserves plenty of space for boot
16931 loaders.
16932 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
16933
8a3bc88e
VS
169342011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16935
16936 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
16937
af869a4a
VS
169382011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16939
16940 * util/grub-fstest.c (read_file): Report GRUB error if file opening
16941 failed.
16942
9ee8d94f
VS
169432011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16944
16945 * grub-core/kern/file.c (grub_file_open): Don't take into account the
16946 parenthesis in the middle of the filename.
16947
b01abe3e
VS
169482011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16949
16950 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
16951 rather than trying to put initrd way too high.
16952 Reported by: Ryan Lortie <desrt@desrt.ca>
16953
335bda1e
VS
169542011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16955
16956 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
16957 improperly removed string.
16958
5ca1a64d
VS
169592011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16960
16961 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
16962 is_disk.
16963 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
16964 (open_device) Likewise.
16965 (grub_util_biosdisk_close): Likewise.
d8ce9995 16966 Reported by: Mark Korenberg.
5ca1a64d 16967
cbac5b1e
AK
169682011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
16969
16970 * util/grub-mkconfig_lib.in: Add missing quotes.
16971
088cdb65
CW
169722011-04-10 Colin Watson <cjwatson@ubuntu.com>
16973
16974 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
16975 is NULL.
16976
8b8a81fa
VS
169772011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16978
16979 Dynamically count the number of lines for the lower banner.
16980
16981 * grub-core/normal/menu_entry.c (per_term_screen): New member
16982 num_entries.
16983 (print_down): Use num_entries.
16984 (update_screen): Likewise.
16985 (grub_menu_entry_run): Set num_entries.
16986 * grub-core/normal/menu_text.c (menu_viewer_data): New member
16987 num_entries.
16988 (grub_print_message_indented): Move real part to ...
16989 (grub_print_message_indented_real): ... here. Additional argument
16990 dry_run.
16991 (draw_border): Additional argument num_entries.
16992 (print_message): Additional argument dry_run.
16993 (print_entries): Receive menu viewer data.
16994 (grub_menu_init_page): New argment num_entries.
16995 (menu_text_set_chosen_entry): Use num_entries.
16996 (grub_menu_try_text): Likewise.
16997 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
16998 All users updated.
16999 (grub_ucs4_count_lines): New function.
17000 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
17001 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
17002 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
17003 (grub_term_border_height): Likewise.
17004 (grub_term_num_entries): Likewise.
17005
277f955b
VS
170062011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17007
17008 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
17009 Remove now unused string.
17010
536ce85a
CW
170112011-04-09 Colin Watson <cjwatson@ubuntu.com>
17012
17013 * docs/grub-dev.texi (Finding your way around): Update for 1.99
17014 build system.
17015 (Getting started): GRUB is developed in Bazaar now, not Subversion.
17016
17017 (Comment): Fix typo.
17018 (Getting started): General copy-editing.
17019 (Typical Development Experience): Likewise.
17020 (Error Handling): Likewise.
17021 (Video API): Likewise.
17022
2cf09e32
CW
170232011-04-09 Colin Watson <cjwatson@ubuntu.com>
17024
17025 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
17026 throughout.
17027
1ec652f4
VS
170282011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17029
17030 * util/grub-mkimage.c (main): Handle special naming of yeeloong
17031 directory.
17032
2c583728
CW
170332011-04-08 Colin Watson <cjwatson@ubuntu.com>
17034
17035 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
17036 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
17037 "development".
17038
d7a565e9
VS
170392011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17040
17041 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
17042 grub_strcpy since the lines aren't necessarily 0-terminated.
17043
7c2e4909
VS
170442011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17045
17046 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
17047 root on legacy.
17048
34c09785
VS
170492011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17050
17051 * grub-core/commands/probe.c (options): Argument to set isn't optional.
17052 (GRUB_MOD_INIT): DEVICE isn't optional.
17053
6a6f8058
VS
170542011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17055
17056 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
17057 word on new line if it's too long anyway. Fixes a hang.
17058
2e335e90
VS
170592011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17060
17061 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
17062 const.
17063 * util/grub-setup.c (main): Reuse md device name if available.
17064 * util/raid.c (grub_util_raid_getmembers): Receive device name and
17065 not GRUB name as argument.
17066 Based on patch by: Florian Wagner <fwagner>.
17067
10a7a867
VS
170682011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17069
17070 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17071 Place mbi on low memory for better compatibility.
17072
7a3d6cd9
VS
170732011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17074
17075 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
17076
18dd6b47
VS
170772011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
170782011-04-08 Colin Watson <cjwatson@ubuntu.com>
17079
17080 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 17081 * conf/Makefile.common: Likewise.
18dd6b47 17082
3c0e3f14
VS
170832011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17084
f7148863
VS
17085 * grub-core/normal/menu.c: Add missing include.
17086
170872011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17088
17089 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 17090
6d1fa41f
MZ
170912011-04-08 Martin Zuther <mzuther@mzuther.de>
17092
17093 * util/grub-mkconfig.in: Ignore emacsen backup.
17094
478182a8
VS
170952011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17096
17097 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
17098 on open.
17099 (grub_util_biosdisk_close): Likewise.
17100
72a89a54
VS
171012011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17102
17103 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
17104 const attribute and use grub_isdigit.
17105
b5ebecfa
A
171062011-04-06 Andrey <dev_null@ukr.net>
17107
17108 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
17109 gcc warning.
17110
7755f66e
VS
171112011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17112
17113 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
17114 useful grub_dprintf's.
17115
461121ff
VS
171162011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17117
17118 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
17119
2a961775
VS
171202011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17121
17122 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
17123
adf594cc
VS
171242011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17125
17126 Output errors if theme loading failed.
17127
17128 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
17129 grub_gfxterm_fullscreen on error paths to ...
17130 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
17131 theme loading error.
17132
665900a3
VS
171332011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17134
17135 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
17136 space for older compilers.
17137 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17138
a562b479
VS
171392011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17140
17141 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
17142 and report them as not RAID members since they are useless for GRUB.
17143 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17144
850e9373
VS
171452011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17146
17147 Increase LVM implementation robustness in order not to crash on
17148 configurations like pvmove. Previously code assumed that in some places
17149 only lvs or only pvs are used whereas it seems that they are used
17150 interchangeably.
17151
17152 * grub-core/disk/lvm.c (read_node): New function.
17153 (read_lv): Use read_node.
17154 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
17155 Match volumes only at the end when all lvs are found. Take both
17156 pvs (first) and lvs (second) into account.
17157 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
17158 mirror_* into node_*. All users updated.
17159 (grub_lvm_stripe): Merge this ...
17160 (grub_lvm_mirror): ... and this ...
17161 (grub_lvm_node): ... into this. All users updated.
17162
6f332153
VS
171632011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17164
17165 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
17166 of function to allow further scanning for LVMs.
17167
829ea451
VS
171682011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17169
17170 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
17171 on failed seek as it breaks open fd reusage.
17172
09ceb9a5
VS
171732011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17174
17175 * util/grub-install.in: Add a recommendation to use --recheck before
17176 reporting bugs.
17177
67e11623
VS
171782011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17179
17180 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
17181 are obtained.
17182
caee5efd
VS
171832011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17184
17185 GRUB developper manual based on existing Internals section and
17186 contributions by the various authors with active copyright assignment.
17187
17188 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
17189 * docs/font_char_metrics.png: New file.
17190 * docs/font_char_metrics.txt: Likewise.
17191 * docs/grub-dev.texi: Likewise.
17192 * docs/grub.texi (Internals): Move from here ...
17193 * docs/grub-dev.texi: ... here.
17194
2cccc747
CW
171952011-04-01 Colin Watson <cjwatson@ubuntu.com>
17196
17197 Store the loopback device as data on loopback grub_disk structures,
17198 rather than the file it points to. This fixes use of freed memory
17199 if an existing loopback device is replaced.
17200
17201 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
17202 disk->data, not dev->file.
17203 (grub_loopback_read): Adjust file assignment to match.
17204 Fixes Ubuntu bug #742967.
17205
186ae367
CW
172062011-04-01 Colin Watson <cjwatson@ubuntu.com>
17207
17208 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
17209 when replacing an existing device.
17210
cfed2ad0
VS
172112011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
17212
17213 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
17214 memory corruptions.
17215
17216 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
17217 unsigned.
17218 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
17219 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
17220 (grub_jfs_read_inode): Likewise.
17221 (grub_jfs_opendir): Likewise. Remove now useless casts.
17222 (grub_jfs_getent): Likewise.
17223 Make ino a grub_uint32_t rather than int.
17224 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
17225 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
17226 division and module with bit operations.
17227 (grub_jfs_find_file): Make ino a grub_uint32_t.
17228 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
17229
05d2ed32
CW
172302011-04-01 Colin Watson <cjwatson@ubuntu.com>
17231
17232 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
17233 warning. (This was in fact always initialised before use, but GCC
17234 wasn't smart enough to prove that.)
17235 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
17236
91dc6073
VS
172372011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17238
17239 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
17240 stack alignment.
17241 (efi_wrap_1): Likewise.
17242 (efi_wrap_2): Likewise.
17243 (efi_wrap_3): Likewise.
17244 (efi_wrap_4): Likewise.
17245 (efi_wrap_5): Likewise.
17246 (efi_wrap_6): Likewise.
17247 (efi_wrap_10): Likewise.
17248 Based on information by: Red Hat/Peter Jones.
17249
a8afc1d1
CW
172502011-03-31 Colin Watson <cjwatson@ubuntu.com>
17251
17252 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
17253 set-but-not-used variable.
17254
a826cc7d
CW
172552011-03-31 Colin Watson <cjwatson@ubuntu.com>
17256
17257 * docs/grub.texi (Simple configuration): Be more explicit about
17258 GRUB_DEFAULT, and add an example.
17259 Reported by: Leslie Rhorer.
17260
875b67ba
CW
172612011-03-30 Colin Watson <cjwatson@ubuntu.com>
17262
17263 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
17264 shell".
17265
fd7cd914
AS
172662011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17267
17268 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
17269 * util/grub.d/20_linux_xen.in: Likewise.
17270
090b1b6a
VS
172712011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17272
17273 * util/grub.d/10_linux.in: Try alternative config filenames where
17274 we parse config file.
17275 * util/grub.d/20_linux_xen.in: Likewise.
17276
baad885c
AS
172772011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17278
17279 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
17280 * util/grub.d/20_linux_xen.in: Likewise.
17281
241e41f5
VS
172822011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17283
17284 * grub-core/disk/raid.c (insert_array): Add few potentially
17285 useful grub_util_info.
17286 (grub_raid_register): Likewise.
17287
56445fb2
VS
172882011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17289
17290 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
17291 Preserve partition number in mdadm code path.
17292
c871b1c6
VS
172932011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17294
17295 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
17296 few potentially useful grub_util_info.
17297
5e631b4f
CW
172982011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17299
17300 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
17301
2d5d0333
CW
173022011-03-30 Colin Watson <cjwatson@ubuntu.com>
17303
17304 * docs/grub.texi (default): Use @example rather than nested
17305 itemized lists to avoid breaking gendocs.
17306
3d7ed04e
CW
173072011-03-30 Colin Watson <cjwatson@ubuntu.com>
17308
17309 * docs/grub.texi (Future): Update.
17310
abf04200 173112011-03-30 Colin Watson <cjwatson@ubuntu.com>
17312
17313 * docs/grub.texi (Environment): New chapter.
17314 (Changes from GRUB Legacy): Link to "Environment block" section for
17315 details of limitations.
17316 (Simple configuration): Likewise. Link to documentation of gfxmode
17317 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
17318 respectively.
17319 (Shell-like scripting): Note that normal variables are stored in the
17320 environment.
17321 (gettext): Link to documentation of lang and locale_dir.
17322 (list_env): New section.
17323 (load_env): New section.
17324 (save_env): New section.
17325
17326 (Reporting bugs): Fix typo.
17327
e1ad0edd
VS
173282011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17329
17330 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
17331 the example.
17332
5d803174
VS
173332011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17334
17335 * grub-core/term/at_keyboard.c (set_scancodes)
17336 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
17337
2a2da1d0
CW
173382011-03-30 Colin Watson <cjwatson@ubuntu.com>
17339
17340 * docs/grub.texi (Menu-specific commands): Remove some semantics
17341 that were true in GRUB Legacy but not in GRUB 2.
17342 (submenu): New section.
17343 (false): New section.
17344 (read): New section.
17345 (true): New section.
17346
a7527639
CW
173472011-03-30 Colin Watson <cjwatson@ubuntu.com>
17348
17349 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
17350
173512011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
17352
17353 * docs/grub.texi (Simple configuration): Explain some of the
17354 current limitations of grub-mkconfig.
8a748df2 17355 Reported by: Leslie Rhorer.
e30af029 17356
fc858482
VS
173572011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17358
17359 Old macs search for boot.efi rather than for bootia32.efi.
17360
17361 * util/grub-install.in: Copy bootia32.efi to boot.efi.
17362 * util/grub-mkrescue.in: Likewise.
17363 Suggested by: Peter Jones.
17364
e1eb511d
VS
173652011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17366
17367 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
17368
70e75364
VS
173692011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17370
17371 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
17372 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
17373 (grub_lvm_mirror): New struct.
17374 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
17375 (grub_lvm_iterate): Iterate only visible volumes.
17376 (grub_lvm_read): Factor out to ..
17377 (read_lv): ... this. Support mirrors.
17378 (grub_lvm_read): New wrapper function.
17379 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
17380 stripped or mirrored.
17381
fc18f6a3
VS
173822011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17383
17384 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
17385
5c650f4c
CW
173862011-03-29 Colin Watson <cjwatson@ubuntu.com>
17387
17388 * docs/grub.texi (loopback): New section.
17389
61d7156b
CW
173902011-03-29 Colin Watson <cjwatson@ubuntu.com>
17391
17392 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
17393 removed -p option.
17394
994b8264
CW
173952011-03-29 Colin Watson <cjwatson@ubuntu.com>
17396
17397 * docs/grub.texi (BIOS installation): New section, partly based on
17398 previous text in other sections.
17399 (Installing GRUB using grub-install): Replace BIOS discussion with a
17400 cross-reference.
17401 (Images): Likewise.
17402
9e4d19e0
VS
174032011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17404
17405 * grub-core/kern/emu/hostdisk.c (find_partition_start)
17406 [HAVE_DIOCGDINFO]: Add safety checks.
17407
a307c0b2
VS
174082011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17409
17410 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
17411 per default compiled in kernel and prior to 8.0 isn't shipped at all.
17412
b4db4f39
CW
174132011-03-29 Colin Watson <cjwatson@ubuntu.com>
17414
17415 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
17416 real_sb->size is zero (e.g. RAID-0), get the disk size from
17417 real_sb->data_size instead.
17418 Fixes Ubuntu bug #743136.
17419
35e5f84c
VS
174202011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17421
17422 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
17423 printf clauses for printing size and start.
17424
d2e29d81
VS
174252011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17426
17427 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
17428 Reported and tested by: Timothy Nikkel.
17429
ed5587af
VS
174302011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17431
17432 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
17433 (dirty_region_add_real): ... this.
17434 (dirty_region_add): Don't discard margin refresh when performing
17435 scheduled repaint.
17436
a1dc717c
VS
174372011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17438
17439 * grub-core/lib/relocator.c (allocate_regstart)
17440 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
17441 terminals are capabple of malloc-free operation.
17442 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17443 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17444
9f3677d3
VS
174452011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
17446
17447 * util/grub-setup.c: Copy the partition table zone if floppy support
17448 is disabled, even if no partition table is found.
17449
17450 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
17451 during POST if an invalid partition table is contained in the PBR
17452 of the active partition when GRUB is installed to a partition.
17453
24148725
CW
174542011-03-28 Colin Watson <cjwatson@debian.org>
17455
17456 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
17457 comment.
17458
f329eda7
CW
174592011-03-28 Colin Watson <cjwatson@debian.org>
17460
17461 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
17462 to be specific about what kind of RAID device we're scanning for.
17463
c482ad98
SG
174642011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
17465
17466 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
17467 return freed string.
17468
5ee04984
VS
174692011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17470
17471 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
17472
f4727da9
VS
174732011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17474
17475 Use libgeom on FreeBSD to detect partitions.
17476
17477 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
17478 (grub-mkrelpath): Likewise.
17479 (grub-script-check): Likewise.
17480 (grub-editenv): Likewise.
17481 (grub-mkpasswd-pbkdf2): Likewise.
17482 (grub-fstest): Likewise.
17483 (grub-mkfont): Likewise.
17484 (grub-mkdevicemap): Likewise.
17485 (grub-probe): Likewise.
17486 (grub-setup): Likewise.
17487 (grub-ofpathname): Likewise.
17488 (grub-mklayout): Likewise.
17489 (example_unit_test): Likewise.
17490 (grub-menulst2cfg): Likewise.
17491 * grub-core/Makefile.core.def (grub-emu): Likewise.
17492 (grub-emu-lite): Likewise.
17493 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
17494 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
17495 define HAVE_DIOCGDINFO.
17496 (follow_geom_up) [FreeBSD]: New function.
17497 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
17498 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
17499 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
17500 unconditionally of HAVE_DIOCGDINFO.
17501
82fe6c75
VS
175022011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17503
17504 Fix FreeBSD compilation problem.
17505
17506 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
17507 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
17508
4c6c9431
CW
175092011-03-24 Colin Watson <cjwatson@ubuntu.com>
17510
17511 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
17512 Switch back to page zero before loading a kernel, since some kernel
17513 drivers expect that.
17514 Thanks to: Felix Kuehling.
17515
c7064d94
VS
175162011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17517
17518 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
17519 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
17520 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
17521
3f71cded
VS
175222011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17523
17524 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
17525 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
17526
ef6de21a
VS
175272011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17528
17529 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
17530 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
17531 malloc is disabled.
17532
8bc66a2c
VS
175332011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17534
17535 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
17536 for modules headers when counting the needed allocation size.
17537
5657722c
VS
175382011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17539
17540 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
17541 if no ASCII character is found to prevent crash.
17542
41a85f55
AK
175432011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
17544
17545 * grub-core/video/bitmap.c (match_extension): Ignore case.
17546
59e1e5f1
VS
175472011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17548
17549 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
17550
bd4d051a
VS
175512011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17552
17553 * grub-core/script/parser.y: Declare "time" as valid argument.
17554
bae7fcc1
PJ
175552011-03-23 Peter Jones <pjones@redhat.com>
17556
17557 Fix incorrect assert failure reporting.
17558
17559 * grub-core/tests/example_functional_test.c (example_test): Add
17560 a failure comment.
17561 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
17562 (failure_start): ...this. Check that malloc succeeded.
17563 Don't call xvasprintf. Return failure struct.
17564 (failure_append_vtext): New function.
17565 (failure_append_text): Likewise.
17566 (add_failure): Likewise.
17567 (grub_test_assert_helper): Likewise.
17568 * include/grub/test.h (grub_test_assert_helper): New declaration.
17569 (grub_test_assert): Macro rewritten.
17570
537dc9be
VS
175712011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17572
17573 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
17574
fa3e01bf
VS
175752011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17576
17577 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
17578
b1d28404
VS
175792011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17580
17581 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
17582 into GRUB-style one.
17583
2e3e2e09
VS
175842011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17585
17586 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
17587 error and not grub_errno.
17588 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
17589
ed57e557
VS
175902011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17591
17592 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
17593 GRUB_USB_SPEED_NONE in case of failure and not the error code.
17594
d1611f01
VS
175952011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17596
17597 * grub-core/efiemu/i386/pc/cfgtables.c
17598 (grub_machine_efiemu_init_tables): Make declaration a prototype.
17599 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
17600 (grub_xnu_unlock): Likewise.
17601 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
17602
7d4e39d6
VS
176032011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17604
17605 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
17606 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
17607 * grub-core/commands/hashsum.c (aliases): Likewise.
17608 * grub-core/commands/setpci.c (pci_registers): Likewise.
17609 * grub-core/disk/usbms.c (attach_hook): Likewise.
17610 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
17611 (zio_checksum_table): Likewise.
17612 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
17613 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
17614 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
17615 * grub-core/lib/relocator.c (leftovers): Likewise.
17616 (extra_blocks): Likewise.
17617 * grub-core/loader/i386/bsd.c (relocator): Likewise.
17618 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
17619 (modules_last): Likewise.
17620 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
17621 (devices): Likewise.
17622 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
17623 (modules_last): Likewise.
17624 * grub-core/normal/auth.c (users): Likewise.
17625 * grub-core/normal/context.c (initial_menu): Likewise.
17626 (current_menu): Likewise.
17627 * grub-core/normal/crypto.c (crypto_specs): Likewise.
17628 * grub-core/term/serial.c (grub_serial_ports): Likewise.
17629 (grub_serial_terminfo_input_template): Likewise.
17630 (grub_serial_terminfo_output_template): Likewise.
17631 (grub_serial_terminfo_input): Likewise.
17632 (grub_serial_terminfo_output): Likewise.
17633 (registered): Likewise.
17634 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
17635
40fc4659
VS
176362011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17637
17638 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
17639 grub_video_mode_type_t.
17640 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
17641 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
17642 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
17643
2da48d28
VS
176442011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17645
17646 * util/grub-install.in: Correct the x86-64 name as x86_64.
17647
9b43bf39
CW
176482011-03-11 Colin Watson <cjwatson@ubuntu.com>
17649
17650 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
17651 initial chunk read from the kernel always includes GRUB's multiboot
17652 header, which is now outside the first sector.
17653
be1a7ce0
CW
176542011-03-09 Colin Watson <cjwatson@ubuntu.com>
17655
17656 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
17657 cached mmap_size, so that this works correctly when called multiple
17658 times.
17659 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
17660
83a3c48d
CW
176612011-03-09 Colin Watson <cjwatson@ubuntu.com>
17662
17663 * docs/grub.texi (Simple configuration): Tidy up formatting.
17664
57d75699
SJ
176652011-03-07 Szymon Janc <szymon@janc.net.pl>
17666
17667 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
17668 Set-but-not-used variable removed.
17669
028501a0
VS
176702011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17671
17672 Workaround yet another IEEE1275 bug.
17673
17674 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
17675 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
17676 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
17677 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
17678 is set.
17679 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17680 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
17681
d998657d
VS
176822011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17683
17684 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
17685 error.
17686
fee7cdd4
CW
176872011-02-11 Colin Watson <cjwatson@ubuntu.com>
17688
17689 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
17690 empty, since in that case we can only generate either nothing or a
17691 syntactically invalid configuration file.
17692 Reported by: Michal Suchanek. Fixes Debian bug #612898.
17693
97286eb5
CW
176942011-02-09 Colin Watson <cjwatson@ubuntu.com>
17695
17696 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
17697 (Making a GRUB bootable CD-ROM): Likewise.
17698 (Invoking grub-mkrescue): New section.
17699 Reported by: Yann Dirson. Fixes Debian bug #612585.
17700
22b28eb3
CW
177012011-02-09 Colin Watson <cjwatson@ubuntu.com>
17702
17703 * util/grub-install.in: Remove unnecessary brackets from tr
17704 arguments.
17705 * util/grub.d/10_hurd.in: Likewise.
17706 * util/grub.d/10_kfreebsd.in: Likewise.
17707 * util/grub.d/10_linux.in: Likewise.
17708 * util/grub.d/20_linux_xen.in: Likewise.
17709 Reported by: Jamie Heilman. Fixes Debian bug #612564.
17710
7e735e43
CW
177112011-02-08 Colin Watson <cjwatson@ubuntu.com>
17712
17713 * include/grub/file.h (not_easly_seekable): Rename to ...
17714 (not_easily_seekable): ... this. Update all users.
17715
800f1881
CW
177162011-01-28 Colin Watson <cjwatson@ubuntu.com>
17717
17718 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
17719 grub-mkrescue.
17720
3281d3d6
VS
177212011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
17722
17723 * util/grub-mkimage.c (generate_image): Refuse to create the images
17724 bigger than the actual flash (512K) in Loongson machines. 512K is also
17725 the biggest chip supported by them.
17726
3533413c
VS
177272011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17728
17729 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
17730
73ae4f4f
VS
177312011-01-22 Anthony DeRobertis <anthony@derobert.net>
17732
17733 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
17734 super_offset field.
17735
37f4f608
VS
177362011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17737
17738 * util/grub-install.in: Ignore install device on platforms
17739 where it doesn't make sense. Always use UUIDs except on pc, efi and
17740 sparc64.
17741 Reported by: Daniel Kahn Gillmor.
17742
03a4ccb5
VS
177432011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17744
17745 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
17746
ffc8f4d8
VS
177472011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17748
17749 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
17750 (iterate_real): Don't rely on partition being non-NULL.
17751
80f23be7
VS
177522011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17753
17754 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
17755 supported platforms. Put a compile time assert for this rather than
17756 generate a warning with 32-bit shift.
17757
5d4f4dd5
VS
177582011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17759
17760 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
17761 logical expression more readable.
17762
e489601a
VS
177632011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17764
17765 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
17766 even if some elements have a name.
17767 Reported by: Alexander GQ Gerasiov.
17768
96e0a6ea
CW
177692011-01-22 Colin Watson <cjwatson@ubuntu.com>
17770
17771 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
17772 path unreadable if `grub-probe -t abstraction' fails, for example if
17773 memberlist fails on an LVM volume group.
17774 Reported by: Darius Jahandarie.
17775
81431e2b
CW
177762011-01-22 Colin Watson <cjwatson@ubuntu.com>
17777
17778 * docs/grub.texi (Simple configuration): Document
17779 GRUB_PRELOAD_MODULES.
17780
5e79d66a
CW
177812011-01-17 Colin Watson <cjwatson@ubuntu.com>
17782
17783 * .bzrignore: Remove nonexistent grub-pbkdf2.
17784
646ada34
VS
177852011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
17786
17787 * configure.ac: Bump version to 1.99~rc1.
17788
04360337
VS
177892011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17790
17791 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
17792 for safety.
17793
46c9db88
VS
177942011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17795
17796 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
17797 module.
17798
177992011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
17800
17801 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
17802
4fbf1852
VS
178032011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17804
17805 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
17806 diskdevid.
17807
f1632d4d
VS
178082011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17809
17810 Fix compilation on cygwin.
17811
17812 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
17813 -R .drectve on cygwin.
17814 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
17815 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
17816 (COND_CYGWIN): New condition.
17817 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
17818 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
17819 not @TARGET_OBJ2ELF@.
17820 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
17821 type to determine whether aux is to be used.
17822
0b5e127b
VS
178232011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17824
17825 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
17826 realpath'ed device string.
17827 Handle floppy (somewhat).
17828 Issue error in unknown case rather than garbage.
17829 Reported by: Axel Beckert.
17830
173b71e9
VS
178312011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17832
17833 * util/grub.d/00_header.in (load_video): Handle the case when no video
17834 drivers available.
17835 Thanks to: Axel Beckert.
17836
f8f479db
VS
178372011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17838
17839 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
17840 variable. Fixes problem on big endian platforms.
17841
8fc0a245
VS
178422011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17843
17844 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
17845 It doesn't work well there.
17846
b8494fbe
VS
178472011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17848
17849 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
17850 warning.
17851 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
17852 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
17853 counter.
17854
b44a558c
VS
178552011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17856
17857 Use alias->path rather than buggy "canon".
17858
17859 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
17860 (ofdisk_hash_add): New argument curcan. All users updated.
17861
51fa856c
CW
178622011-01-11 Colin Watson <cjwatson@ubuntu.com>
17863
17864 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
17865
9da068a5
VS
178662011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17867
17868 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
17869 loadmask before doing any calculations. Use correct type for offset.
17870 (grub_linux_load64): Likewise.
17871
86205c94
CW
178722011-01-11 Colin Watson <cjwatson@ubuntu.com>
17873
17874 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
17875 with NULL.
17876 (console_grub_equivalences_unshift): Likewise.
17877 Reported by: Daniel Dehennin.
17878
4531a206
VS
178792011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17880
17881 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
17882 (set_env_limn_ro): Likewise.
17883 (GRUB_MOD_INIT): Likewise.
17884 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
17885 ARRAY_SIZE while on it.
17886 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
17887 * grub-core/normal/context.c (grub_env_export): Move from here ...
17888 * grub-core/kern/env.c (grub_env_export): ... here.
17889 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
17890 prefix.
17891 * grub-core/kern/main.c (grub_main): Export root and prefix.
17892 * include/grub/env.h (grub_env_export): Export.
17893 Reported by: Seth Goldberg.
17894
45146057
VS
178952011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17896
17897 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17898 Take into account space used by ELF sections and multiboot palette.
17899 Reported by: Grégoire Sutre.
17900
f093110b
VS
179012011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17902
17903 * BUGS: New file.
17904
3395fe52
VS
179052011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17906
17907 Pass more appropriate video id to Linux.
17908
17909 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
17910 grub_video_get_driver_id and variable gfxpayloadforcelfb to
17911 fill have_vga.
17912 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
17913 shift params->lfb_size.
17914 * include/grub/i386/linux.h: Make an enume out of have_vga values.
17915
c2fa6cbb
VS
179162011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17917
17918 * util/grub-menulst2cfg.c: Add missing include of misc.h.
17919
b3ff6ff0
VS
179202011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17921
17922 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
17923 separator and pass bootpath/devid even if only one of them is available.
17924 Reported by: Seth Goldberg.
17925
ae67942e
VS
179262011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17927
17928 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
17929 implementations bug on them.
17930
17931 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
17932 memory.
17933 (filter_memory_map): Likewise.
17934
d570097a
VS
179352011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17936
17937 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
17938 Reported by: nebuchadnezzar.
17939
a508e776
VS
179402011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17941
17942 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
17943 Reported by: nebuchadnezzar.
17944
dcb883b1
VS
179452011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17946
17947 Submenu default support.
17948
17949 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
17950 auto_boot. All users updated.
17951 Declared static.
17952 Handle chosen and default with submenus.
17953 (grub_menu_execute_with_fallback): Declared static.
17954 Don't notify failure if autobooted. Upper level does it.
17955 (menuentry_eq): New function.
17956 (get_entry_number): Use menuentry_eq.
17957 (show_menu): New parameter "autobooted". All users updated.
17958 (grub_show_menu): Likewise.
17959 * include/grub/normal.h (grub_show_menu): Likewise.
17960 * include/grub/menu.h (grub_menu_execute_entry): Removed.
17961 (grub_menu_execute_with_fallback): Likewise.
17962
6fef99b4
VS
179632011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17964
17965 * util/grub-mklayout.c (usage): Update help text.
17966
47a77af5
VS
179672011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17968
17969 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
17970
ce6bb3ee
VS
179712011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17972
17973 * util/grub-menulst2cfg.c (main): Trim the line.
17974
db87be2a
VS
179752011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17976
17977 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
17978 (grub_machine_init): Don't check amount of low memory as reportedly
17979 INT 12h can be broken and if low memory is too low we wouldn't have
17980 gotten into grub_machine_init anyway.
17981
c49849cc
VS
179822011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17983
17984 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
17985 (grub_machine_mmap_iterate): Take low memory into account
17986
b1969b30
VS
179872011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17988
17989 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
17990 badfs.
17991 Reported by: TiCPU.
17992
cf0eaf13
VS
179932011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17994
17995 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
17996 members errors.
17997
1f060f39
GS
179982011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
17999
18000 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
18001 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
18002
a21e5672
GS
180032011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18004
18005 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
18006 openbsd and netbsd types being in part_bsd module.
18007
c88172fa
VS
180082011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18009
18010 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
18011 (_FILE_OFFSET_BITS): Likewise.
18012 Reported by: Seth Goldberg.
18013
53798c4b
GS
180142011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
18015
18016 * configure.ac: Check for libdevmapper header.
18017
e7121b69
VS
180182011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18019
18020 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
18021 avoid aliasing.
18022 (fzap_lookup): Likewise.
18023 (dnode_get): Likewise.
18024 (make_mdn): Likewise.
18025 (zfs_mount): Likewise.
18026 (fzap_iterate): Use temporary pointer to avoid aliasing.
18027 (grub_zfs_read): Likewise.
18028 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
18029 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
18030 pointers to avoid aliasing.
18031 (grub_cmd_xnu_kernel64): Likewise.
18032 (grub_xnu_load_driver): Likewise.
18033
fc836af9
VS
180342011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18035
18036 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
18037 aliasing warning.
18038 (grub_cmd_terminal_output): Likewise.
18039 Reported and tested by: Grégoire Sutre.
18040
f9f37648
VS
180412011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18042
18043 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
18044 warning.
18045 Reported and tested by: Grégoire Sutre.
18046
ec1dfd63
VS
180472011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18048
18049 * configure.ac: Do CPU substitution even if it's specified explicitly.
18050 Reported and tested by: Alain Greppin.
18051
9462775a
VS
180522011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18053
18054 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
18055 Reported and tested by: Alain Greppin.
18056
0fd48e35
VS
180572011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18058
18059 Satisfy some bison versions need for inttypes.h.
18060
18061 * grub-core/lib/posix_wrap/inttypes.h: New file.
18062 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
18063 (int16_t): Likewise.
18064 (int32_t): Likewise.
18065 (int64_t): Likewise.
18066 Reported and tested by: Alain Greppin.
18067
43f1bc83
VS
180682011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18069
18070 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
18071 Silence spurious warning.
18072 Reported and tested by: Alain Greppin.
18073
64d1f041
SJ
180742011-01-07 Szymon Janc <szymon@janc.net.pl>
18075
18076 * docs/grub.texi (Support automatic decompression): Update with xz
18077 decompression support.
18078
25953e10
SJ
180792011-01-07 Szymon Janc <szymon@janc.net.pl>
18080
18081 Improve loaders' kernel command line handling.
18082
18083 * grub-core/lib/cmdline.c: New file.
18084 * include/grub/lib/cmdline.h: Likewise.
18085 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
18086 grub_create_loader_cmdline to create kernel command line.
18087 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18088 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
18089 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
18090 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
18091 (linux): Add lib/cmdline.c on common.
18092
e72d259f
VS
180932011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18094
18095 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
18096 inopos might be unaligned.
18097
c0cf26da
VS
180982011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18099
18100 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
18101 endian transformations.
18102 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18103 Based on report by: Doug Nazar.
18104
0ca09e6c
DN
181052011-01-07 Doug Nazar <nazard.michi@gmail.com>
18106
18107 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
18108 array->members[i].start_sector.
18109 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
18110
014b6806
VS
181112011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18112
18113 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
18114 Reported and tested by: Grégoire Sutre.
18115
415502c2
CW
181162011-01-06 Colin Watson <cjwatson@ubuntu.com>
18117
18118 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
18119 avoid causing test failures by clearing the screen.
18120
71b6a2b7
CW
181212011-01-06 Colin Watson <cjwatson@ubuntu.com>
18122
18123 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
18124 Fix prefix check to handle the case where dir ends with a slash
18125 (most significantly, "/" itself).
18126 Reported by: Michael Vogt.
18127
b3f8d28a
VS
181282011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18129
18130 Run terminfo_cls on initing terminfo output to clear the screen and
18131 move the cursor to (0,0).
18132
18133 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
18134 Call grub_terminfo_output_init.
18135 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
18136 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
18137 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
18138
4c3e4f37
VS
181392011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18140
18141 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
18142 only when needed.
18143
488f71f1
VS
181442011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18145
18146 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
18147 CTRL.
18148
18a38098
VS
181492011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18150
18151 The E820 type 5 is BADRAM, not EXEC_CODE.
18152
18153 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18154 (GRUB_E820_BADRAM): New define.
18155 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
18156 into reserved. Propagate BADRAM.
18157 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18158 (GRUB_E820_BADRAM): New define.
18159
9eae2084
VS
181602011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18161
18162 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
18163 Ignore the memory post-4G.
18164 (grub_relocator_firmware_alloc_region): Additional debug statement.
18165
ebc71d28
VS
181662011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18167
18168 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
18169 names.
18170 Reported by: David Pravec.
18171
446fa400
VS
181722011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18173
18174 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
18175 BIOSes.
18176
a0159f37
VS
181772011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18178
18179 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
18180 Prevent overflow.
18181 (grub_reed_solomon_recover): Likewise.
18182
e5146ca1
VS
181832011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18184
18185 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
18186
181872011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
18188
18189 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
18190 variable.
18191
5b1bdf12
CW
181922011-01-04 Colin Watson <cjwatson@ubuntu.com>
18193
18194 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
18195 descriptions of extract_legacy_entries_source and
18196 extract_legacy_entries_configfile.
18197 Reported by: Seung Soo, Ha.
18198
99d925aa
CW
181992011-01-03 Colin Watson <cjwatson@ubuntu.com>
18200
18201 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
18202 on devices that do not implement function 0.
18203
4af0504b
DV
182042011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
18205
18206 * grub-core/fs/hfsplus.c: Make parent unsigned.
18207 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
18208 overflows.
18209 (grub_hfsplus_cmp_extkey): Likewise
18210
469ee10a
VS
182112011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18212
18213 * util/grub-install.in: Correctly use bootloader_id and not
18214 GRUB_DISTRIBUTOR on efibootmgr line.
18215
323a8e9c
VS
182162011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18217
18218 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
18219
1b394975
IC
182202010-12-31 Ian Campbell <ijc@hellion.org.uk>
18221
18222 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
18223 Xen and reorder menu item wording to make it clearer that this entry
18224 will launch Xen. Print separate messages when loading Xen and
18225 Linux.
18226
275bff5f
VS
182272010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18228
18229 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
18230 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
18231 loop in case of incorrect amiga partmap.
18232
307806cb
VS
182332010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18234
18235 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
18236 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
18237 Reported by:EHeM.
18238
b12b923e
VS
182392010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18240
18241 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
18242 spurious warning.
18243 Reported by: crocket
18244
14b48a19
VS
182452010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18246
18247 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
18248 Preload EFIemu.
18249 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
18250
693db2df
VS
182512010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18252
18253 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
18254 is loaded
18255 (grub_cmd_xnu_kextdir): Likewise.
18256 (grub_cmd_xnu_splash): Likewise.
18257
c7638645
VS
182582010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18259
18260 Avoid using Reed-Solomon with 0 redundancy.
18261
18262 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
18263 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
18264 or 0 redundancy.
18265 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
18266 (grub_reed_solomon_recover): Likewise.
18267
25dd4780
VS
182682010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18269
18270 Don't use disk subsystem in freebsd_boot.
18271
18272 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
18273 (freebsd_biosdev): Likewise.
18274 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
18275 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
18276
0b2db943
VS
182772010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
18278
18279 Handling of files of unknown size is currently limited. They can't be
18280 used e.g. for initrd or modules. Moreover gzip handling of not
18281 easily seekable files is buggy. Disable unknown file size for now. May
18282 be inefficient but works.
18283
18284 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
18285 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
18286
5c408d0f
MP
182872010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
18288
18289 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
18290 floppy probe.
18291
190a011a
JD
182922010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
18293
18294 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
18295
022d01b8
SL
182962010-12-25 Shea Levy <shlevy>
18297
18298 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
18299
c4855fdc
VS
183002010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18301
18302 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
18303 Windows Server 2008.
18304 Reported by: Devin Giddings.
18305
0354b867
VS
183062010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18307
18308 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
18309 writing an error message because of async power management.
18310 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
18311 (grub_reboot): Likewise.
18312
ab66c69f
JU
183132010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
18314
18315 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
18316 keep unit tests from failing when they shouldn't.
18317
1426ef35
CW
183182010-12-21 Colin Watson <cjwatson@ubuntu.com>
18319
18320 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
18321 previous patch increased the size of the RS code by 20 bytes (at
18322 least with gcc-4.4), so increase this by 20 bytes to match.
18323 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
18324
20641b6b
CW
183252010-12-21 Colin Watson <cjwatson@ubuntu.com>
18326
18327 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
18328 scratch area. Make sure to initialise chosen in standalone mode as
18329 well as non-standalone.
18330 Reported by: Robert Hooker and Andy Whitcroft.
18331 Tested by: Andy Whitcroft.
18332
d060ad60
CW
183332010-12-21 Colin Watson <cjwatson@ubuntu.com>
18334
18335 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
18336 constructing a new unescaped string and passing it to grub_xputs in
18337 one go, rather than passing characters to grub_printf one at a time.
18338
b889cfad
CW
183392010-12-21 Colin Watson <cjwatson@ubuntu.com>
18340
18341 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
18342 initialising utf16.
18343
4e01b6c8
CW
183442010-12-21 Colin Watson <cjwatson@ubuntu.com>
18345
18346 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
18347 comment. Add an extra layer of quotation, requiring the output of
18348 this function to be used in a printf format string.
18349 (gettext_printf): New function.
18350 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
18351 Extract translatable strings from here-documents and use a temporary
18352 variable instead, so that xgettext can find them.
18353 * util/grub.d/10_kfreebsd.in: Likewise.
18354 * util/grub.d/10_linux.in: Likewise.
18355 * util/grub.d/20_linux_xen.in: Likewise.
18356
18357 * po/grub.d.sed: New file.
18358 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
18359 arguments. Set c-format flags on all strings extracted from
18360 util/grub.d/ (xgettext refuses to include these itself for strings
18361 it extracted from a shell file, but these really are c-format).
18362
5318fe98
VS
183632010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18364
18365 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
18366 Avoid next pointing to nowhere.
18367
6c85b743
VS
183682010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18369
18370 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
18371 rather than assuming than rootblock is exactly in the middle.
18372 (grub_affs_label): Likewise.
18373
a2a08a35
VS
183742010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18375
18376 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
18377 reserved_first_sector to 0.
18378 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
18379 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
18380 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
18381
7059d1ec
VS
183822010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18383
18384 Fix handling of UTF-16 UDF labels.
18385
18386 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
18387 (read_string): .. here.
18388 (grub_udf_label): Use read_string.
18389
30aff4cb
BC
183902010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
18391
18392 * grub-core/normal/menu_entry.c (run): Execute commands from menu
18393 editor under argument scope.
18394 Reported by: Jordan Uggla
18395
5cf86f4b
VS
183962010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18397
18398 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
18399
32570200
CW
184002010-12-18 Colin Watson <cjwatson@ubuntu.com>
18401
18402 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
18403 line, and other keys scroll an entire page (previous handling was
18404 for \r and \n to scroll a page and other keys to scroll two lines).
18405
e1dffcf2
VS
184062010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18407
18408 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18409 Set ptrdest to correct get_physical_target_address rather than
18410 incorrect get_virtual_current_address.
18411
b04298cf 184122010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
18413
18414 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
18415 correct cat to grub_uint8_t * rather than grub_uint32_t *.
18416
5367ecd3
CW
184172010-12-10 Colin Watson <cjwatson@ubuntu.com>
18418
18419 * .bzrignore: Ignore grub-core/rs_decoder.S.
18420
1fb430f8
CW
184212010-12-10 Colin Watson <cjwatson@ubuntu.com>
18422
18423 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
18424 .mo/.mo.gz opening sequence to ...
18425 (grub_mofile_open_lang): ... here.
18426 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
18427 * util/grub.d/00_header.in (grub_lang): Include country part of
18428 locale.
18429 Reported by: Mario Limonciello.
18430
a94a6671
RM
184312010-12-09 Robert Millan <rmh@gnu.org>
18432
18433 * NEWS: Document addition of ZFS support.
18434
24b7938b
CW
184352010-12-04 Colin Watson <cjwatson@ubuntu.com>
18436
18437 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
18438 rather than `/ 2', as the latter requires -Wa,--divide which would
18439 require bumping our minimum binutils version.
18440
bddc3ef6
BC
184412010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
18442
18443 * util/grub-script-check.c (main): Print script line number on
18444 error.
18445
bf78d5b2
RM
184462010-12-01 Robert Millan <rmh@gnu.org>
18447
18448 * grub-core/fs/zfs/zfs.c: New file.
18449 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
18450 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
18451 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
18452 * grub-core/fs/zfs/zfsinfo.c: Likewise.
18453
18454 * include/grub/zfs/dmu.h: Likewise.
18455 * include/grub/zfs/dmu_objset.h: Likewise.
18456 * include/grub/zfs/dnode.h: Likewise.
18457 * include/grub/zfs/dsl_dataset.h: Likewise.
18458 * include/grub/zfs/dsl_dir.h: Likewise.
18459 * include/grub/zfs/sa_impl.h: Likewise.
18460 * include/grub/zfs/spa.h: Likewise.
18461 * include/grub/zfs/uberblock_impl.h: Likewise.
18462 * include/grub/zfs/vdev_impl.h: Likewise.
18463 * include/grub/zfs/zap_impl.h: Likewise.
18464 * include/grub/zfs/zap_leaf.h: Likewise.
18465 * include/grub/zfs/zfs.h: Likewise.
18466 * include/grub/zfs/zfs_acl.h: Likewise.
18467 * include/grub/zfs/zfs_znode.h: Likewise.
18468 * include/grub/zfs/zil.h: Likewise.
18469 * include/grub/zfs/zio.h: Likewise.
18470 * include/grub/zfs/zio_checksum.h: Likewise.
18471
18472 * Makefile.util.def: Build ZFS into libgrubmods.
18473 * grub-core/Makefile.core.def: Build zfs.mod.
18474
3f0f3831
SJ
184752010-11-30 Szymon Janc <szymon@janc.net.pl>
18476
18477 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
18478 variable.
18479 * grub-core/commands/wildcard.c (match_files): Likewise.
18480
3a4253b2
RM
184812010-11-30 Robert Millan <rmh@gnu.org>
18482
18483 * grub-core/loader/i386/bsd.c
18484 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
18485 whether kernel is loaded using grub_loader_is_loaded(), rather
18486 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
18487 certain error conditions.
18488
8c317b27
RM
184892010-11-30 Robert Millan <rmh@gnu.org>
18490
c5c9cd3e
RM
18491 * grub-core/commands/echo.c: Include `<grub/term.h>'.
18492 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 18493
49d3ab46
VS
184942010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18495
18496 Avoid using tricks for initialising endian variables.
18497
18498 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
18499 Make const.
18500 (GRUB_MOD_INIT): Don't byte-swap.
18501 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18502 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
18503 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
18504 (grub_swap_bytes32_compile_time): Likewise.
18505 (grub_cpu_to_le32_compile_time): Likewise.
18506 (grub_cpu_to_le16_compile_time): Likewise.
18507
f420a804
VS
185082010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18509
18510 * util/grub-setup.c (setup): Stop recommending --force. People who
18511 understand the dangers of blocklists are able to find this option
18512 anyway and the ones who don't shouldn't use it anyway.
18513
4e7db17b
RM
185142010-11-26 Robert Millan <rmh@gnu.org>
18515
18516 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
18517 Update all users.
18518
9be57a0d
CW
185192010-11-26 Colin Watson <cjwatson@ubuntu.com>
18520
18521 Fix LVM-on-RAID probing.
18522
18523 * util/grub-probe.c (probe): Remember which disk was detected as
18524 RAID (perhaps an LVM physical volume). Use that disk's raidname
18525 rather than that of the top-level disk.
18526
2c7859b3 185272010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 18528
d7647bb6
BC
18529 Fix cmdline argument quotes for setparams command of menuentry
18530 definitions.
7e623b0d
BC
18531
18532 * grub-core/commands/menuentry.c (setparams_prefix): Use single
18533 quotes for arguments.
f866fe80 18534 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 18535 grub_strchrsub function instead.
f866fe80 18536
7955bea0 18537 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 18538
74f72a64
CW
185392010-11-24 Colin Watson <cjwatson@ubuntu.com>
18540
18541 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
18542 effort by skipping "." and ".." entries up-front.
18543 Suggested by: Michael Lazarev.
18544
5a407278
CW
185452010-11-24 Colin Watson <cjwatson@ubuntu.com>
18546
18547 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
18548 ldflags to ldadd, to fix link line ordering.
18549 (none_decompress): Likewise.
18550
3030d8ec
CW
185512010-11-24 Colin Watson <cjwatson@ubuntu.com>
18552
18553 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
18554 platforms.
18555 (grub-emu-lite): Remove kern/emu/cache.S.
18556
b7fbac12
CW
185572010-11-23 Colin Watson <cjwatson@ubuntu.com>
18558
18559 * util/deviceiter.c (compare_devices): If the by-id link for a
18560 device couldn't be resolved, fall back to sorting by the by-id link
18561 rather than segfaulting.
18562 Reported and tested by: Daniel Mierswa.
18563
5225f328
CW
185642010-11-23 Colin Watson <cjwatson@ubuntu.com>
18565
18566 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
18567 ldflags, to fix link line ordering.
18568
038b3ce8
CW
185692010-11-23 Colin Watson <cjwatson@ubuntu.com>
18570
18571 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
18572 linkers are picky about this.
18573
bf16e98e
CW
185742010-11-23 Colin Watson <cjwatson@ubuntu.com>
18575
18576 * grub-core/Makefile.am (command.lst): Adjust sed expression
18577 ordering so that extended and priority commands aren't treated as
18578 ordinary commands.
18579
7242bab6
CW
185802010-11-23 Colin Watson <cjwatson@ubuntu.com>
18581
18582 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18583 Remove byte-swapping function calls, which are not valid in
18584 structure initialisers.
18585 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
18586 non-const.
18587 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
18588 grub_gpt_partition_type_bios_boot.
18589
14e8b279
CW
185902010-11-22 Colin Watson <cjwatson@ubuntu.com>
18591
18592 Fix test program build on GNU/kFreeBSD.
18593
18594 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
18595 $(LIBNVPAIR)' library dependencies.
18596
e6f63338 185972010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
18598
18599 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
18600
cf8ffc38
CW
186012010-11-22 Colin Watson <cjwatson@ubuntu.com>
18602
18603 * util/grub-install.in: Remove excessive quoting that broke
18604 installations to RAID devices.
18605
7f8b0fd7
VS
186062010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18607
18608 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
18609 bootloader version instead of 0.
18610
dfd240b1
VS
186112010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18612
18613 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
18614 warning.
18615
7b61e609
VS
186162010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18617
18618 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
18619 retrieve the metadat sector if size isn't known.
18620 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18621
9dfe92d0
RM
186222010-11-18 Robert Millan <rmh@gnu.org>
18623
18624 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
18625 with grub_memcmp().
18626
41cc919e
VS
186272010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
18628
18629 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
18630 arrow.
18631 Reported by: Jordan Uggla.
18632
1afcc914
VS
186332010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18634
18635 Make better UTF compliant.
18636
18637 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
18638 sequences as incorrect.
18639 (grub_is_valid_utf8): Likewise.
18640 (grub_utf8_to_ucs4): Likewise.
18641 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
18642 (grub_ucs4_to_utf8_alloc): Likewise.
18643 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
18644
f1808884
VS
186452010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18646
18647 Make legacy_source behave like source.
18648
18649 * grub-core/commands/legacycfg.c (legacy_file): Don't call
18650 grub_show_menu.
18651 (grub_cmd_legacy_source): Call grub_show_menu if needed.
18652
24ec575b
CW
186532010-11-16 Colin Watson <cjwatson@debian.org>
18654
18655 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
18656 (-Wunused implies -Wunused-parameter, but not vice versa).
18657
72b7c7aa
CW
186582010-11-16 Colin Watson <cjwatson@ubuntu.com>
18659
18660 * configure.ac: Make error messages less confusing by testing for
18661 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
18662 accepted, but produces a diagnostic if something else is wrong).
18663
e98937aa
VS
186642010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18665
18666 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
18667 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
18668 (now unused).
18669 (grub_keyboard_controller_init)
18670 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
18671 read the initial state since controller isn't inited yet.
18672
f6bbabc3
VS
186732010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18674
18675 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
18676 allocate_regbeg may need to create new chunk header.
18677
22e7dbb2
VS
186782010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18679
18680 Fix quoting in legacy parser.
18681
18682 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
18683 single quotes.
18684 (grub_legacy_parse): Likewise.
18685 Reported by: Jordan Uggla.
18686 Tested by: Jordan Uggla.
18687
03f80960
VS
186882010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18689
18690 Don't add -lgcc on i386 and x86_64.
18691
18692 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
18693 * conf/Makefile.common (LDADD_KERNEL): Likewise.
18694 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
18695
779dc15b
VS
186962010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18697
18698 * configure.ac: Add -Wno-trampolines when supported.
18699
d20a3b37
MV
187002010-11-14 Modestas Vainius <modax@debian.org>
18701
18702 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
18703 fakeraid.
18704
e5360933
GC
187052010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18706
18707 Add generic logical block size support for UDF.
18708
18709 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
18710 (GRUB_UDF_BLKSZ): Removed.
18711 (struct grub_udf_data): New field "lbshift" to hold the logical block
18712 size of the file system in log2 format. All users updated.
18713 (sblocklist): Change type to unsigned.
18714 (grub_udf_mount): Change type of "sblklist" to unsigned.
18715 Move AVDP search before VRS recognition, because the latter requires
18716 knowledge of the logical block size, which is detected during the
18717 former.
18718 Detect and validate logical block size during AVDP search, adding
18719 support for block sizes 512, 1024 and 4096.
18720 Make VRS recognition independent of block size.
18721
cb0229c5
GC
187222010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18723
18724 Properly handle deleted files on UDF.
18725
18726 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
18727 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
18728 set.
18729
406858a8
GC
187302010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18731
18732 Support reading files larger than 2 GiB.
18733
18734 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
18735 "offset" to grub_off_t.
18736 (grub_udf_read_file): Likewise for parameter "pos".
18737
130da6a7
VS
187382010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18739
18740 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
18741 unavailable.
18742 (Simple configuration): Refer to Changes from GRUB Legacy about
18743 save_env availability.
18744
65e93f6b
VS
187452010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18746
18747 * util/grub-install.in: Ignore empty partition table detection
18748 instead of trying to include part_ module.
18749
1fd08bf1
VS
187502010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18751
18752 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
18753 LVM on RAID support.
18754
de1a024f
VS
187552010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18756
18757 Properly define WORDS_BIGENDIAN in wrapped environments.
18758
18759 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
18760 definition.
18761 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
18762
18763 Reported by: Manoel Rebelo Abranches.
18764 Tested by: Manoel Rebelo Abranches.
18765
bc5dd0b9
VS
187662010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18767
18768 * util/grub-mkconfig.in: Fix quoting.
18769
58c184be
VS
187702010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18771
18772 Support big ext2 files.
18773
18774 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
18775 (grub_ext2_read_block): Support triple indirect blocks.
18776 (grub_ext2_read_file): Use 64-bit types and read size_high.
18777 (grub_ext2_open): Read size_high.
18778 Reported by: Ximin Luo.
18779 Tested by: Manoel Rebelo Abranches.
18780
5f0c02b3
VS
187812010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18782
18783 * util/grub-install.in: Handle filenames containing spaces.
18784 Reported by: Jordan Uggla.
18785 Tested by: Jordan Uggla.
18786
4417aae6
VS
187872010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18788
18789 * util/grub-mkconfig.in (grub_script_check): New variable.
18790 Use grub_script_check instead of grub-script-check.
18791 Reported by: Barry Jackson.
18792
7625a68e
VS
187932010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18794
18795 * docs/grub.texi (menu): Correct the order.
18796 Reported by: D. Hugh Redelmeier.
18797
10001ac5
VS
187982010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
18799
18800 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
18801 jump.
18802
9c4cf53b
MRA
188032010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
18804
10001ac5
VS
18805 * include/grub/elfload.h (grub_elf32_size): New parameter.
18806 All users updated.
9c4cf53b
MRA
18807 Return maximum segments alignment.
18808 (grub_elf64_size): Likewise.
18809 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
18810 Return maximum segments alignment.
18811 (grub_elf64_size): Likewise.
18812 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
18813 (grub_linux_claimmap_iterate): New function. Uses the
18814 "available" property in the "memory" node for memory allocation
18815 for kernel in the PowerPC loader.
9c4cf53b
MRA
18816 (grub_linux_load32): Correctly find linux entry point offset.
18817 (grub_linux_load64): Likewise.
18818
d2bf06bf
RM
188192010-11-07 Robert Millan <rmh@gnu.org>
18820
18821 On mips-yeeloong, build with -march=loongson2f when this flag is
18822 available (GCC >= 4.4).
18823 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
18824 `-march=mips3'.
18825 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
18826 or otherwise add -march=mips3.
18827
898c99a2
BC
188282010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
18829
87220a68
BC
18830 Suppress shell expansion on echo '*' and echo "*" like cases.
18831 Reported by: Jordan Uggla.
898c99a2
BC
18832
18833 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
18834 string arguments before shell expansion.
18835 * tests/grub_cmd_echo.in: New testcases.
18836
4f9b406a
RM
188372010-11-07 Robert Millan <rmh@gnu.org>
18838
18839 * conf/mips-qemu-mips.rmk: Remove stale file from previous
18840 transition.
18841
80c6d25e
VS
188422010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
18843
18844 * grub-core/kern/emu/hostdisk.c
18845 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
18846
4a1a0153
VS
188472010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18848
18849 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
18850 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
18851 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
18852
34706ddc
VS
188532010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18854
18855 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
18856
6972dea9
VS
188572010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18858
18859 * util/grub-install.in: Replace useless recomendation to pass
18860 --modules with a recomendation to report a bug.
18861
9c693bd6
VS
188622010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18863
18864 Properly register serial terminfo.
18865 Reported by: Jordan Uggla
18866
18867 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
18868 const.
18869 (grub_serial_terminfo_output_template): Likewise.
18870 (grub_cmd_serial): Register "serial" with terminfo.
18871 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
18872 grub_serial_terminfo_output.
18873
6c9e4c0c
RM
188742010-11-05 Robert Millan <rmh@gnu.org>
18875
18876 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
18877 needed).
18878
b9b3839f
RM
188792010-11-05 Robert Millan <rmh@gnu.org>
18880
18881 On Yeeloong, pass machine type information to Linux.
18882
18883 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
18884 (LOONGSON_MACHTYPE): New macro, set to
18885 "machtype=lemote-yeeloong-2f-8.9inches".
18886 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
18887 additional argument to Linux.
18888
1a3aaff4
RM
188892010-11-04 Robert Millan <rmh@gnu.org>
18890
18891 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
18892 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
18893 (its SATA disks are detected as slaveless IDE master drives on
18894 kFreeBSD).
18895 Reported by Carsten Aulbert.
18896
a75f4f62
CW
188972010-11-02 Colin Watson <cjwatson@ubuntu.com>
18898
18899 * util/bin2h.c (main): Fix spelling error in generated output.
18900
33b4b0c6
GS
189012010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
18902
18903 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
18904
2b36fbf4
VS
189052010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18906
18907 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
18908 vga= option is supplied.
18909
74aaf558
VS
189102010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18911
18912 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
18913 * util/grub.d/10_kfreebsd.in: Likewise.
18914 * util/grub.d/10_linux.in: Likewise.
18915 * util/grub.d/20_linux_xen.in: Likewise.
18916
6428dec3
VS
189172010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18918
18919 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
18920 argument as an argument to no-argument option.
18921
f8729d98
VS
189222010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18923
18924 * util/grub.d/10_linux.in: Add missing load_video with explicit
18925 GRUB_GFXPAYLOAD_LINUX.
18926
89d68fa6
VS
189272010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18928
18929 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
18930
3a1197cd
VS
189312010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18932
18933 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
18934 elements with invlid index.
18935 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18936 * grub-core/disk/raid.c (insert_array): Automatically reallocate
18937 members.
18938 * include/grub/raid.h (grub_raid_member): New struct.
18939 (grub_raid_array): Transform devices and start_sector into usage of
18940 grub_raid_member. All users updated
18941 (allocated_devs): New member.
18942
71574288
VS
189432010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18944
18945 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
18946 is modified
18947
8d40ec65
BC
189482010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
18949
18950 NetBSD build fix for getline function conflict from gnulib.
18951
18952 * Makefile.util.def (libgrubkern.a): New library for grub kernel
18953 components that depend on gnulib headers.
18954 (libgrubmods.a): Renamed from earlier libgrub.a.
18955 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
18956
95b9257e
VS
189572010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18958
18959 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
18960 install rather than creating a broken install.
18961
26c53dc6
VS
189622010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18963
18964 * util/grub-setup.c (argp): Remove misleading example of installing to
18965 a partition.
18966
4171b3c5
VS
189672010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18968
18969 * util/grub-setup.c (setup): Clarify the error message.
18970
18568d18
VS
189712010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18972
18973 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
18974
4f6a2e21
VS
189752010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
18976
18977 * grub-core/kern/emu/misc.c
18978 (grub_make_system_path_relative_to_its_root)
18979 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
18980
189812010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
18982
18983 * grub-core/kern/emu/misc.c
18984 (grub_make_system_path_relative_to_its_root): Revert r2882.
18985
e138c458
VS
189862010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
18987
18988 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
18989 useless field head. All users updated.
18990 (free_subchunk): Correct handling of IN_REGION subchunk.
18991
0cbcdf0e
CW
189922010-10-22 Colin Watson <cjwatson@ubuntu.com>
18993
18994 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
18995 (Supported kernels): Likewise.
18996
b65ea155
GS
189972010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
18998
18999 Make mktemp invocations portable.
19000
19001 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
19002 exit if mktemp fails.
19003 * tests/grub_script_blockarg.in: Likewise.
19004 * tests/partmap_test.in: Likewise.
19005 * tests/util/grub-shell-tester.in: Likewise.
19006 * tests/util/grub-shell.in: Likewise.
19007 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19008 * Makefile.am: Likewise, and chain shell commands with `&&'
19009 instead of ';'.
19010 * util/grub-mkrescue.in: Use the same explicit template as above, and
19011 exit if mktemp fails.
19012
05f43cdd
BC
190132010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
19014
19015 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
19016 Linux kernel, reported by Dennis Schridde.
19017
800e6a9b
SJ
190182010-10-17 Szymon Janc <szymon@janc.net.pl>
19019
19020 * grub-core/normal/auth.c (grub_auth_check_authentication):
19021 Set-but-not-used variable removed.
19022
d82df574
VS
190232010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19024
19025 * docs/grub.texi (GNU/Linux): Document APM unavailability with
19026 32-bit linux protocol.
19027
7bced458
VS
190282010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19029
19030 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
19031 cursor shape for sanity.
19032
5b027690
VS
190332010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19034
19035 * docs/grub.texi (Installation): Document buggy BIOS install.
19036
ba5f65cf
VS
190372010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19038
19039 * docs/grub.texi (Installation): Indent.
19040
fdf2ec9c
VS
190412010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19042
19043 * util/grub-setup.c (setup): New parameter allow_floppy.
19044 (arguments): New member allow_floppy.
19045 (argp_parser): Handle --allow-floppy.
19046 (main): Pass allow_floppy.
19047 * util/grub-install.in: New option --allow-floppy passed though to
19048 grub-setup.
19049
861dfd4c
VS
190502010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19051
19052 * util/grub-install.in: Handle partitionless disks.
19053
f77a8c24
VS
190542010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19055
19056 * util/grub-setup.c (setup): Don't clean blocklists before readability
19057 verfification.
19058
27d9ee32
VS
190592010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19060
19061 * docs/grub.texi (Installation): Document embedding zone. Remove
19062 obsolete grub-install example.
19063
6bdda8f8
SJ
190642010-10-16 Szymon Janc <szymon@janc.net.pl>
19065
19066 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
19067 Set-but-not-used variable ifdef'ed.
19068 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
19069 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
19070 variable removed.
19071 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
19072 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
19073 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19074 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
19075 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
19076 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
19077 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
19078 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
19079 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
19080 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
19081 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
19082 Likewise.
19083
e19b016b
VS
190842010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19085
19086 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
19087 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
19088 enum value.
19089
6c8d3002
VS
190902010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19091
19092 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
19093 synonym to _S5_. Needed for some DSDTs.
19094
c32b51c9
VS
190952010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19096
19097 Userspace ACPI parser debugging.
19098
19099 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
19100 headers and add relevant defines. Don't include standard headers.
19101 (main) [GRUB_DSDT_TEST]: New function.
19102 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
19103 Don't declare functions.
19104
fbfbeb39
VS
191052010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19106
19107 Remove dead grub_efi_mm_fini.
19108
19109 * grub-core/kern/efi/mm.c (allocated_page): Removed.
19110 (ALLOCATED_PAGES_SIZE): Likewise.
19111 (MAX_ALLOCATED_PAGES): Likewise.
19112 (allocated_pages): Likewise.
19113 (grub_efi_allocate_pages): Don't record allocated pages.
19114 (grub_efi_free_pages): Likewise.
19115 (grub_efi_mm_init): Likewise.
19116 (grub_efi_mm_fini): Removed.
19117
65f7ed7c
VS
191182010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19119
19120 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
19121 (grub_efi_mm_init): Take into account the memory map size increase.
19122
24977b44
VS
191232010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19124
19125 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
19126 (serial_hw_put): Wait based on real time rather than port reads. Don't
19127 roken ports.
19128 * include/grub/serial.h (grub_serial_port): New field broken.
19129
1eb01cd2
RM
191302010-10-16 Robert Millan <rmh@gnu.org>
19131
19132 * grub-core/kern/emu/misc.c
19133 (grub_make_system_path_relative_to_its_root): Fix premature return
19134 when processing non-root ZFS filesystems.
5f8b440b 19135 Reported by Sergio Talens-Oliag.
1eb01cd2 19136
2d5fed60
RM
191372010-10-15 Robert Millan <rmh@gnu.org>
19138
19139 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
19140 guarantee compressed ones are processed first.
19141
d0f4c1ea
VS
191422010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19143
19144 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
19145 grub_efiemu_autocore.
19146
d87c681f
VS
191472010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19148
19149 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
19150 rather than 0x1b.
19151 (grub_console_getkey): Use correct jae opcode rather than ja.
19152
219b3564
RM
191532010-10-12 Robert Millan <rmh@gnu.org>
19154
19155 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
19156 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
19157 variable. All references updated.
19158
19159 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
19160
20c6bb7e
VS
191612010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
19162
19163 Correctly distinguish mdraid flavours.
19164
19165 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
19166 (insert_array): New argument raid.
19167 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
19168 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
19169 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
19170
74baff84
VS
191712010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
19172
19173 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
19174 handling of special keys.
19175
3ef068df 191762010-10-02 Aleš Nesrsta <starous@volny.cz>
19177
c7980ad9
VS
19178 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
19179 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 19180
a9455194 191812010-10-02 Aleš Nesrsta <starous@volny.cz>
19182
c7980ad9
VS
19183 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
19184 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
19185 users updated.
a9455194 19186 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 19187 Use right endpoint when querying descriptor.
a9455194 19188
441cfe65
VS
191892010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19190
19191 Clear out 0x80 color bit on EFI.
19192 Tested by: decoder
19193 Reported by: decoder and meta tech.
19194
19195 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
19196 (grub_console_setcolorstate): Clear out 0x80 bit.
19197 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
19198 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
19199 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
19200
bf26bcc4
VS
192012010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19202
19203 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
19204 Set to "auto".
19205
6e3c515d
VS
192062010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19207
19208 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
19209 mo_file after freeing.
19210
e6d983ba
VS
192112010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19212
19213 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
19214
74ccb5b5
VS
192152010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19216
19217 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
19218 flags.
19219
17821956
VS
192202010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19221
19222 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
19223 usage.
19224
ee74fa48
VS
192252010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19226
19227 Put terminfo into core on ieee1275 and yeeloong (needed for console).
19228
19229 * gentpl.py: New groups terminfoinkernel and terminfomodule.
19230 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
19231 and terminfo.h when needed.
19232 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
19233 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
19234 (terminfo): Enable only on terminfokernel.
19235 (extcmd): Likewise.
19236 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
19237 * include/grub/lib/arg.h: Likewise.
19238 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
19239 incorrect usage of ->.
19240
aa438e68
VS
192412010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19242
19243 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
19244 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
19245
57994012
VS
192462010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19247
19248 Fix coreboot compilation.
19249
19250 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19251 Take VBE info into account even if only text is supported.
19252 (fill_vbe_info): Take into account the case when only VGA text
19253 is supported.
19254 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
19255 on coreboot, multiboot and qemu.
19256
2a406611
VS
192572010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19258
19259 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
19260 debug messages.
19261 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
19262
d33613fc
VS
192632010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19264
19265 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
19266 parameters.
19267
44a1b432
VS
192682010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19269
19270 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
19271 if they were BSD-style.
19272
edde54e6
VS
192732010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19274
19275 * grub-core/boot/i386/pc/lnxboot.S: Replace
19276 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
19277 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
19278
b65830fa
VS
192792010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19280
19281 Write embedding zone using Reed-Solomon.
19282
19283 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
19284 * grub-core/Makefile.am (rs_decoder.S): New target.
19285 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
19286 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
19287 (multiboot): Move to RS part.
19288 (post_reed_solomon): New label.
19289 (grub_boot_drive): Move to non-RS part since it's modified in memory
19290 on boot.
19291 Include rs_decoder.S.
19292 * grub-core/lib/reed_solomon.c: New file.
19293 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
19294 New definition.
19295 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
19296 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
19297 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
19298 * include/grub/partition.h (grub_partition_map): Change prototype of
19299 embed to allow returning additional sectors.
19300 * include/grub/reed_solomon.h: New file.
19301 * util/grub-setup.c (setup): Handle Reed-Solomon.
19302
0b4b227f
CW
193032010-09-28 Colin Watson <cjwatson@ubuntu.com>
19304
19305 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19306 i386 and x86-64 definedness tests.
19307
f772623b
YB
193082010-09-27 Yves Blusseau <blusseau@zetam.org>
19309
19310 Fix generation of kernel_syms.lst
19311
19312 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
19313 ASM_PREFIX
19314
8e57a6ca
RM
193152010-09-26 Robert Millan <rmh@gnu.org>
19316
19317 Support degraded ZFS arrays in "grub-probe -t device" resolution.
19318
19319 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
19320 the pool is an array of devices, iterate through it and return the
19321 first device that passes a stat() test (instead of blindly returning
19322 the first one).
19323
f9130836
RM
193242010-09-26 Robert Millan <rmh@gnu.org>
19325
19326 Build fixes for GNU/kFreeBSD.
19327
19328 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
19329 to programs that require ZFS conversion.
19330 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
19331 kernels that don't have FLOPPY_MAJOR.
19332
96510faf
BC
193332010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19334
19335 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
19336
449333eb
BC
193372010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19338
19339 Fix grub-emu build.
19340
19341 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
19342 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
19343 mdraid09 and mdraid1x.
19344
e1fd1939
CW
193452010-09-24 Colin Watson <cjwatson@ubuntu.com>
19346
19347 Re-enable grub-extras.
19348
19349 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
19350 avoid confusing Automake. Run autogen only twice, once for the top
19351 level and once for grub-core. Add Makefile.util.def and
19352 Makefile.core.def from extra modules to the appropriate autogen
19353 invocations. If Makefile.common exists in an extra module, include
19354 it in both Makefile.util.am and grub-core/Makefile.core.am;
19355 similarly, include any Makefile.util.common file in Makefile.util.am
19356 and any Makefile.core.common file in grub-core/Makefile.core.am.
19357 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
19358 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
19359 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
19360 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
19361
19362 * gentpl.py (gvar_add): Turn GVARS into a set.
19363 (global_variable_initializers): Sort global variables on output.
19364 (vars_init): New function.
19365 (first_time): Likewise.
19366 (library): Ensure that non-global variable initialisations are
19367 emitted before the first time we emit code for a library block.
19368 Append to variables rather than setting them. Only emit
19369 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
19370 each conditional path.
19371 (program): installdir() emits an Autogen macro, so must be passed to
19372 var_add rather than gvar_add.
19373 (data): Likewise.
19374 (script): Likewise.
19375 (rules): New function, centralising handling for different target
19376 types. Set up Guile association lists for first_time and vars_init,
19377 and send most output to a diversion so that variable initialisations
19378 can be emitted first.
19379 (module_rules): Use new rules function.
19380 (kernel_rules): Likewise.
19381 (image_rules): Likewise.
19382 (library_rules): Likewise.
19383 (program_rules): Likewise.
19384 (script_rules): Likewise.
19385 (data_rules): Likewise.
19386
19387 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
19388
19389 * .bzrignore: Add contrib and grub-core/contrib. Remove
19390 grub-core/Makefile.gcry.am.
19391
1d12cf29
YB
193922010-09-24 Yves Blusseau <blusseau@zetam.org>
19393
19394 * grub-core/lib/LzFind.c: Add missing include.
19395 * grub-core/lib/LzmaEnc.c: Likewise.
19396 * grub-core/script/lexer.c: Likewise.
19397 * grub-core/script/yylex.l: Likewise.
19398 * util/grub-macho2img.c: Likewise.
19399 * util/grub-menulst2cfg.c: Likewise.
19400 * util/grub-mklayout.c: Likewise.
19401 * util/grub-mkpasswd-pbkdf2.c
19402 * util/grub-mkrelpath.c: Likewise.
19403 * util/resolve.c: Likewise.
19404
dd363028
BC
194052010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
19406
19407 * Makefile.util.def (example_unit_test): Add
19408 grub-core/gnulib/libgnu.a.
19409
f5a109e2
GS
194102010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
19411
19412 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
19413
6d0fa83c
VS
194142010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
19415
19416 Support xz compression on yeeloong.
19417
19418 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
19419 * configure.ac: Check for LZMA.
19420 * grub-core/Makefile.core.def (xz_decompress): New target.
19421 (none_decompress): Likewise.
19422 * grub-core/boot/decompressor/minilib.c: New file.
19423 * grub-core/boot/decompressor/none.c: Likewise.
19424 * grub-core/boot/decompressor/xz.c: Likewise.
19425 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
19426 * grub-core/kern/mips/cache_flush.S: Likewise.
19427 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
19428 * grub-core/kern/mips/startup.S: Move first stage to ...
19429 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
19430 nomacro.
19431 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
19432 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
19433 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
19434 Allocate statically.
19435 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
19436 Allocate statically or use scratch. Don't check CRC32.
19437 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
19438 Allocate statically. Don't check CRC32.
19439 * include/grub/decompressor.h: New file.
19440 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
19441 Removed.
19442 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
19443 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
19444 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
19445 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
19446 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
19447 * util/grub-mkimage.c (grub_compression_t): New type.
19448 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
19449 (image_target_desc): New field default_compression.
19450 (image_targets): Adjust yeeloong targets.
19451 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
19452 (compress_kernel): New parameter comp.
19453 (generate_image): Likewise. Handle new compression case.
19454 (options): New option --compression
19455 (help): Likewise.
19456 (main): Handle new option.
19457
1b655af6
GS
194582010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
19459
19460 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
19461
8f03f0b5
CW
194622010-09-22 Colin Watson <cjwatson@ubuntu.com>
19463
19464 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19465 typo in __i386__ conditional.
19466
7835dfd3
VS
194672010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19468
19469 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
19470 include.
19471
e255597e
VS
194722010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19473
6d0fa83c 19474 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
19475
19476 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
19477 new tags as supported.
19478 (acpiv2_size): New function.
19479 (grub_multiboot_get_mbi_size): Take new tags into account.
19480 (grub_multiboot_make_mbi): Add new tags.
19481 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 19482
6cc14051 194832010-09-21 Aleš Nesrsta <starous@volny.cz>
19484
19485 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
19486 Added missing configuration of USB device.
19487
df7769d8
CW
194882010-09-21 Colin Watson <cjwatson@ubuntu.com>
19489
19490 * grub-core/normal/menu_entry.c (run): Make sure we always return
19491 a value.
19492
b031012d
CW
194932010-09-21 Colin Watson <cjwatson@ubuntu.com>
19494
19495 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
19496 NumberOfPages is UINT64 according to the UEFI specification, not
19497 UINTN. Fix printf format.
19498
174de8f3
CW
194992010-09-21 Colin Watson <cjwatson@ubuntu.com>
19500
19501 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
19502 `err' to grub_usb_err_t.
19503 Reported and tested by: KESHAV P.R.
19504
d7dbe923
CW
195052010-09-21 Colin Watson <cjwatson@ubuntu.com>
19506
19507 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
19508 tpart non-const, so that we can assign to it. (Since this is a
19509 typedef, the constness refers to the pointer rather than what it
19510 points to.)
19511
8d5e2af3
CW
195122010-09-21 Colin Watson <cjwatson@ubuntu.com>
19513
19514 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
19515 $(top_srcdir)/grub-core/gnulib as well as
19516 $(top_builddir)/grub-core/gnulib.
19517 Reported by: KESHAV P.R.
19518
5c527783
CW
195192010-09-21 Colin Watson <cjwatson@ubuntu.com>
19520
19521 * util/grub-install.in: Fix the bootloader ID option to be
19522 consistently --bootloader-id, not --bootloader_id.
19523 Reported by: KESHAV P.R.
19524
d309a16e
CW
195252010-09-21 Colin Watson <cjwatson@ubuntu.com>
19526
19527 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
19528 check hash checksum." consistently translatable.
19529
b830cd16
YB
195302010-09-21 Yves Blusseau <blusseau@zetam.org>
19531
19532 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
19533 $(top_builddir).
19534
c4fe27a8
CW
195352010-09-21 Colin Watson <cjwatson@ubuntu.com>
19536
19537 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
19538 (GRUB_MOD_INIT): Register sha1sum command.
19539 (GRUB_MOD_FINI): Unregister sha1sum command.
19540
a4c1d277
YB
195412010-09-21 Yves Blusseau <blusseau@zetam.org>
19542
19543 Keep boot and grub directory names in sync with utils scripts
19544
19545 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
19546 * config.h.in: Add previous macros.
19547 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
19548 * util/grub-install.in: Use $bootdir and $grubdir variables.
19549
4eff79d2
CW
195502010-09-21 Colin Watson <cjwatson@ubuntu.com>
19551
19552 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
19553 convert partition names to disk names if the new `convert' parameter
19554 is set.
19555 (grub_util_biosdisk_get_grub_dev): If opening the disk device
19556 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
19557 disk in its own right. This can happen with Xen disk images.
19558
934d7e44
YB
195592010-09-21 Yves Blusseau <blusseau@zetam.org>
19560
19561 * util/grub-editenv.c: Update strings to avoid warnings when generating
19562 grub.pot file.
19563 * util/grub-setup.c: Likewise.
934d7e44 19564
df3367cc
VS
195652010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19566
19567 * configure.ac: Change version to 1.99~beta0.
19568
77a94e98
VS
195692010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19570
19571 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
19572 Add BADRAM.
19573 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
19574 Likewise.
19575 * include/multiboot.h: Resynced with specification.
19576 * include/multiboot2.h: Likewise.
19577
269004c1
CW
195782010-09-21 Colin Watson <cjwatson@ubuntu.com>
19579
19580 Fix po directory handling.
19581
19582 * configure.ac: Create po/Makefile.in rather than po/Makefile.
19583 * grub-core/gnulib/Makefile.am: Import gettext module.
19584 * m4/gnulib-cache.m4: Likewise.
19585 * m4/gnulib-comp.m4: Likewise.
19586 * m4/gettext.m4: New file, from gnulib.
19587 * m4/glibc2.m4: Likewise.
19588 * m4/iconv.m4: Likewise.
19589 * m4/intdiv0.m4: Likewise.
19590 * m4/intl.m4: Likewise.
19591 * m4/intldir.m4: Likewise.
19592 * m4/intlmacosx.m4: Likewise.
19593 * m4/intmax.m4: Likewise.
19594 * m4/inttypes-pri.m4: Likewise.
19595 * m4/lcmessage.m4: Likewise.
19596 * m4/lib-ld.m4: Likewise.
19597 * m4/lib-link.m4: Likewise.
19598 * m4/lib-prefix.m4: Likewise.
19599 * m4/lock.m4: Likewise.
19600 * m4/nls.m4: Likewise.
19601 * m4/po.m4: Likewise.
19602 * m4/printf-posix.m4: Likewise.
19603 * m4/progtest.m4: Likewise.
19604 * m4/threadlib.m4: Likewise.
19605 * m4/uintmax_t.m4: Likewise.
19606 * m4/visibility.m4: Likewise.
19607 * po/Makefile.am: Remove.
19608 * po/Makefile.in.in: New file, from gettext.
19609 ($(DOMAIN).pot-update): Support POTFILES-shell.
19610 * po/Makevars: New file.
19611 * po/POTFILES-shell: Rename to ...
19612 * po/POTFILES-shell.in: ... this. Update.
19613 * po/POTFILES: Rename to ...
19614 * po/POTFILES.in: ... this. Update.
19615 * po/Rules-quot: New file, from gettext.
19616 * po/boldquot.sed: Likewise.
19617 * po/en@boldquot.header: Likewise.
19618 * po/en@quot.header: Likewise.
19619 * po/insert-header.sin: Likewise.
19620 * po/quot.sed: Likewise.
19621 * po/remove-potcdate.sin: Likewise.
19622
3e0fa5d0
VS
196232010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19624
19625 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
19626
ade9bd66
VS
196272010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19628
19629 * util/grub.d/20_linux_xen.in: Use submenus.
19630
fc55cc4c
VS
196312010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19632
19633 Support submenus.
19634
19635 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
19636 parameter submenu. All users updated.
19637 * grub-core/normal/main.c (free_menu): Rename to ...
19638 (grub_normal_free_menu): ... this. Made global.
19639 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
19640 if requested.
19641 * grub-core/normal/menu_entry.c (screen): New field submenu.
19642 (make_screen): Set submenu.
19643 (run): Open new context if requested.
19644 * include/grub/menu.h (grub_menu_entry): New field submenu.
19645 * include/grub/normal.h (grub_normal_free_menu): New proto.
19646
600cedf7
VS
196472010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19648
19649 Menu entries extractor.
19650
19651 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
19652 variants.
19653 (GRUB_MOD_INIT): Register new variants.
19654 (GRUB_MOD_FINI): Unregister new variants.
19655 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
19656 into grub_cmd_legacy_source.
19657 (grub_cmd_legacy_source): Implement extractor variants.
19658 (GRUB_MOD_INIT): Register new variants.
19659 (GRUB_MOD_FINI): Unregister new variants.
19660 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
19661 as an extractor.
19662 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
19663 search as an extractor.
19664 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
19665 test as an extractor.
19666 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
19667 as an extractor.
19668 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
19669 (grub_env_new_context): New function.
19670 (grub_env_context_open): Likewise.
19671 (grub_env_extractor_open): Likewise.
19672 (grub_env_extractor_close): Likewise.
19673 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
19674 grub_extractor_level.
19675 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
19676 * include/grub/env.h (grub_env_extractor_open): New proto.
19677 (grub_env_extractor_close): Likewise.
19678 * include/grub/normal.h (grub_extractor_level): New external variable.
19679
7bda3a87
VS
196802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19681
19682 Make cutmem accept a region specification.
19683 Suggested by: Samuel Thibault
19684
19685 * grub-core/mmap/mmap.c (parsemem): New function.
19686 (grub_cmd_cutmem): Handle new arguments.
19687
2ea57f88
VS
196882010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19689
19690 New command cutmem.
19691
19692 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
19693 (GRUB_MOD_INIT): Register new command.
19694 (GRUB_MOD_FINI): Unregister new command.
19695
74342e31
VS
196962010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19697
19698 Support some annoying BSD and Minix subpartitions.
19699
19700 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
19701 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
19702 Properly handle concatenation.
19703 * grub-core/kern/device.c (grub_device_iterate): Likewise.
19704 * grub-core/normal/completion.c (iterate_partition): Likewise.
19705 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
19706 contain partition. All users updated.
19707 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
19708 struct.
19709 (grub_openbsdlabel_partition_map): Likewise.
19710 (bsdlabel_partition_map_iterate): Rename to ..
19711 (iterate_real): ... this. New arguments sector, freebsd and pmap.
19712 (bsdlabel_partition_map_iterate): New function.
19713 (netopenbsdlabel_partition_map_iterate): Likewise.
19714 (netbsdlabel_partition_map_iterate): Likewise.
19715 (openbsdlabel_partition_map_iterate): Likewise.
19716 (GRUB_MOD_INIT): Register new partmaps.
19717 (GRUB_MOD_FINI): Unregister new partmaps.
19718 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
19719 (grub_partition_msdos_iterate): ... this. All users updated.
19720 Don't support embedding other than in a minix partition.
19721 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
19722 proto.
19723 * include/grub/partition.h (grub_partition): New field msdostype.
19724 * util/grub-install.in: Handle openbsd and netbsd types being in
19725 part_bsd module.
19726
1e8d555b
VS
197272010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19728
19729 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
19730
19731 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
19732 * grub-core/Makefile.core.def (mdraid): Renamed to ...
19733 (mdraid09): ... this.
19734 (mdraid1x): New module.
19735 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
19736 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
19737
899d8af4
VS
197382010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19739
19740 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
19741 vsprintf.
19742
40901acd
CW
197432010-09-20 Colin Watson <cjwatson@ubuntu.com>
19744
19745 * grub-core/commands/efi/lsefimmap.c: Correct header.
19746 * NEWS: Update.
19747
dfe3b247
CW
197482010-09-20 Colin Watson <cjwatson@ubuntu.com>
19749
19750 * util/grub-editenv.c (argp_parser): Don't pass translated strings
19751 as printf format strings; the translations might contain '%' which
19752 could cause a crash.
19753 (main): Likewise.
19754 * util/grub-fstest.c (argp_parser): Likewise.
19755 * util/grub-setup.c (argp_parser): Likewise.
19756 (main): Likewise.
19757
3286a4b4
VS
197582010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19759
19760 Use argp in grub-fstest.
19761
19762 * util/grub-fstest.c: Don't include getopt.h.
19763 Include argp.h.
19764 (root): New variable.
19765 (args_count): Likewise.
19766 (nparm): Likewise.
19767 (num_disks): Likewise.
19768 (images): Likewise.
19769 (cmd): Likewise.
19770 (debug_str): Likewise.
19771 (args): Likewise.
19772 (options): Transformed to argp.
19773 (usage): Removed.
19774 (main): Split argument parsing into ...
19775 (argp_parser): ... this. Changed to argp format.
19776 (argp): New variable.
19777 (main): Use argp_parse.
19778
3dccbe4b
TG
197792010-09-20 Tristan Gingold <gingold@free.fr>
197802010-09-20 Robert Millan <rmh.grub@aybabtu.com>
197812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19782
19783 * grub-core/commands/efi/lsefimmap.c: New file.
19784 * grub-core/Makefile.core.def (lsefimmap): New module.
19785 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
19786
38c259a7
VS
197872010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19788
19789 Pause the execution (10s max) if any errors are displayed so the user
19790 has a chance to see them.
19791
19792 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
19793 (grub_print_error): Increment grub_err_printed_errors.
19794 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
19795 execution if any errors were displayed.
19796 (show_menu): Remove old code for pause.
19797 * grub-core/normal/menu_entry.c (run): Likewise.
19798 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
19799 users updated.
19800 (grub_normal_get_char_counter): Likewise.
19801 * include/grub/err.h (grub_err_printed_errors): New external variable.
19802 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
19803
f218b09c
VS
198042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19805
19806 Support multiboot VBE info.
19807
19808 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19809 Take VBE info into account.
19810 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
19811 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19812 Call fill_vbe_info when appropriate.
19813 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
19814 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
19815 as supported.
19816 (grub_multiboot_get_mbi_size): Take new tags into account.
19817 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
19818 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19819 Call fill_vbe_tag when appropriate.
19820 (grub_multiboot_make_mbi): Properly align tags.
19821 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
19822 function.
19823 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
19824 proto.
19825 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
19826
a9cc5438
VS
198272010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19828
19829 Suport manual terminal geometry specification.
19830
19831 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
19832 Save state in grub_ofconsole_terminfo_output.
19833 (grub_ofconsole_term): Use grub_terminfo_getwh.
19834 (grub_ofconsole_getwh): Removed.
19835 * grub-core/term/serial.c (grub_serial_getwh): Removed.
19836 (grub_serial_term): Use grub_terminfo_getwh.
19837 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
19838 (options): New struct.
19839 (OPTION_*): New enum.
19840 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
19841 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
19842 width and height.
19843 (grub_terminfo_getwh): New proto.
19844 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
19845
1a8fed20
VS
198462010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19847
19848 Handle legacy "terminal" command.
19849
19850 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
19851 and FLAG_TERMINAL.
19852 (legacy_commands): Add terminal and title.
19853 (grub_legacy_parse): Handle terminal. Simplify title handling.
19854
41e9c57d
VS
198552010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19856
19857 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
19858 parameters overflow.
19859
61c874c5
CW
198602010-09-20 Colin Watson <cjwatson@ubuntu.com>
19861
19862 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
19863 widthspec.h.
19864
19865 * docs/grub.texi (Shell-like scripting): Document `!'.
19866 (Network): Simplify using new i386-pc-pxe format. Mention
19867 grub-mknetdir.
19868
19869 * NEWS: Update.
19870
943682b4
CW
198712010-09-20 Colin Watson <cjwatson@ubuntu.com>
19872
19873 * Makefile.am (SUBDIRS): Restore "."; it's important to force
19874 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
19875 when needed.
19876
6d3d698d
CW
198772010-09-20 Colin Watson <cjwatson@ubuntu.com>
19878
19879 * grub-core/commands/efi/lsefisystab.c: Correct header.
19880 * grub-core/commands/efi/lssal.c: Likewise.
19881 * grub-core/commands/testload.c: Likewise.
19882
c982589f
CW
198832010-09-20 Colin Watson <cjwatson@ubuntu.com>
19884
19885 * util/grub-mkrescue.in: Add explicit root argument to --set to
19886 prevent the UUID being interpreted as an argument to --set (matches
19887 previous change to prepare_grub_to_access_device).
19888
a63c31b6
CW
198892010-09-20 Colin Watson <cjwatson@ubuntu.com>
19890
19891 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
19892 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
19893 the verbosity of later #ifs.
19894 (find_partition_start): Define this function on FreeBSD too.
19895 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
19896 function.
19897 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
19898 on FreeBSD.
19899
6439b8ee
YB
199002010-09-20 Yves Blusseau <blusseau@zetam.org>
19901
19902 * util/grub-editenv.c: Use argp instead of getopt.
19903
c5930ec8
YB
199042010-09-20 Yves Blusseau <blusseau@zetam.org>
19905
19906 * util/grub-setup.c: Use argp instead of getopt.
19907
15c69261
YB
199082010-09-20 Yves Blusseau <blusseau@zetam.org>
19909
19910 Use gnulib-tool to create gnulib source files.
19911
19912 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
19913 grub-core/gnulib directories
19914 * .bzignore: Add **/.deps and autogenerated gnulib files
19915 * configure.ac: Assign auxiliary directory to build-aux, add invocation
19916 of gnulib macros, add grub-core/gnulib/Makefile
19917 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
19918 include m4 directory to aclocal.
19919 * Makefile.util.def: Remove direct compilation of gnulib source files
19920 and use the new grub-core/gnulib/libgnu.a.
19921 * build-aux/config.rpath: move config.rpath from top directory to
19922 build-aux
19923 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
19924 in gnulib headers
19925 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
19926 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
19927 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
19928 header.
19929 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
19930 string.
19931
e511c9f5
YB
199322010-09-20 Yves Blusseau <blusseau@zetam.org>
19933
19934 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
19935 grub-core/genmod.sh and grub-core/gensyminfo.sh
19936
c2dede05
BC
199372010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
19938
19939 Add a test for echo command options.
19940
19941 * tests/grub_cmd_echo.in: New test.
19942 * Makefile.util.def: Rules for new test.
19943
c55f5018
SJ
199442010-09-20 Szymon Janc <szymon@janc.net.pl>
19945
19946 Remove crc.mod and move crc command to hashsum.mod.
19947 Remove lib/crc.c - users updated to use gcrypt implementation.
19948
19949 * grub-core/commands/crc.c: Removed.
19950 * grub-core/Makefile.core.def (crc): Module removed.
19951 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
19952 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
19953 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
19954 * grub-core/lib/crc.c: Removed.
19955 * include/grub/lib/crc.h: Removed.
19956 * Makefile.util.def (crc): Remove lib/crc.c
19957 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
19958 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
19959 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
19960 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
19961 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
19962 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
19963
e0337366
VS
199642010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19965
19966 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
19967
742f9232
VS
199682010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19969
19970 Split config.h for util and core.
19971
19972 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
19973 (ADDR32): Likewise.
19974 (DATA32): Likewise.
19975 (BSS_START_SYMBOL): Likewise.
19976 (END_SYMBOL): Likewise.
19977 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
19978 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
19979 * config.h.in: New file.
19980 * configure.ac: Use config-util.h as config define file.
19981 Rename MACHINE into GRUB_MACHINE. All users updated.
19982 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
19983 updated.
19984 (NESTED_FUNC_ATTR): Likewise.
19985 Substitue new variables.
19986 (COND_HAVE_ASM_USCORE): New conditional.
19987 * grub-core/Makefile.am (ASM_PREFIX): New variable.
19988 (kernel_syms.lst): Use ASM_PREFIX.
19989 * grub-core/kern/emu/console.c: Include config-util.h.
19990 * grub-core/kern/emu/misc.c: Likewise.
19991 * grub-core/kern/emu/mm.c: Likewise.
19992 * include/grub/emu/misc.h: Likewise.
19993 * include/grub/libgcc.h: Likewise.
19994
39feb0e8
VS
199952010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19996
19997 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
19998 constants usage.
19999 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
20000 Fix GRUB_TERM_KEY_* constants usage.
20001 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
20002
9af6dac3
VS
200032010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20004
20005 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
20006 print pointer.
20007 * grub-core/bus/usb/uhci.c: Remove empty define.
20008 (grub_uhci_check_transfer): Add missing cast.
20009 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
20010 print pointer.
20011 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
20012 PRIuGRUB_SIZE.
20013 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
20014
d6d94820
VS
200152010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20016
20017 * grub-core/Makefile.core.def (legacycfg): Add
20018 lib/i386/pc/vesa_modes_table.c on emu.
20019
3572f2b6
BC
200202010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20021
20022 Reduce number of temporary files generated by build system.
20023
20024 * grub-core/gencmdlist.sh: Removed.
20025 * grub-core/genfslist.sh: Removed.
20026 * grub-core/genhandlerlist.sh: Removed.
20027 * grub-core/genmodsrc.sh: Removed.
20028 * grub-core/genpartmaplist.sh: Removed.
20029 * grub-core/genparttoollist.sh: Removed.
20030 * grub-core/gentermiinallist.sh: Removed.
20031 * grub-core/genvideolist.sh: Removed.
20032
20033 * grub-core/genmod.sh.in: New file.
20034 * grub-core/gensyminfo.sh.in: New file.
20035
20036 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
20037 * conf/Makefile.extra-dist: Update with new files.
20038 * gentpl.py: Remove rules related to unnecessary temporary files.
20039 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
20040 and und-* files.
20041 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
20042 genmod.sh scripts.
20043 * grub-core/bus/usb/uhci.c: Remove empty #define.
20044 * grub-core/genmoddep.awk: Updated with new syminfo format.
20045 * util/bash-completion.d/Makefile.am: Add config.log to
20046 CLEANFILES.
20047
c836b030
YB
200482010-09-19 Yves Blusseau <blusseau@zetam.org>
20049
20050 * Makefile.util.def: Add forgotten $(LIBINTL) library.
20051
2f4e8053
BC
200522010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20053
20054 * util/grub-mkconfig.in: Check the config script for syntax errors
20055 before saving.
20056
75831c34
CW
200572010-09-19 Colin Watson <cjwatson@ubuntu.com>
200582010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20059
20060 * Makefile.util.def (grub-install): Use util/grub-install.in on all
20061 platforms.
20062 * util/grub-install.in: Add EFI and IEEE1275 support.
20063 * util/i386/efi/grub-install.in: Removed.
20064 * util/ieee1275/grub-install.in: Likewise.
20065
eaf41b25
VS
200662010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20067
20068 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
20069 (grub_cmd_cmosclean): Likewise.
20070 (GRUB_MOD_INIT): Register command cmosclean.
20071 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
20072 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
20073
1a9130dd
CPE
200742010-09-18 Carles Pina i Estany <carles@pina.cat>
200752010-09-18 Aleš Nesrsta <starous@volny.cz>
200762010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20077
20078 Add keyboard layouts support.
20079
20080 * Makefile.util.def (grub-mklayout): New file.
20081 (grub-kbdcomp): New script.
20082 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
20083 Add keyboard_layouts.h.
20084 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
20085 commands/boot.c on yeeloong.
20086 (keylayouts): New module.
20087 * grub-core/bus/usb/ohci.c
20088 * grub-core/bus/usb/uhci.c
20089 * grub-core/bus/usb/usbhub.c (rescan): New variable.
20090 (grub_usb_add_hub): Poll interrupt pipe for device handling.
20091 (attach_root_port): Likewise.
20092 (poll_nonroot_hub): Likewise.
20093 (grub_usb_poll_devices): Likewise.
20094 (detach_device): Close transfer.
20095 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
20096 function.
20097 (grub_usb_bulk_setup_readwrite): Likewise.
20098 (grub_usb_bulk_finish_readwrite): Likewise.
20099 * grub-core/commands/keylayouts.c: New file.
20100 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
20101 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
20102 aliases.
20103 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
20104 support scancode 2.
20105 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
20106 * include/grub/keyboard_layouts.h: New file.
20107 * util/grub-mklayout.c: New file.
20108 * util/grub-kbdcomp.in: Likewise.
20109
a1d84a5e
VS
201102010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20111
20112 Unify memory types.
20113
20114 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
20115 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
20116 types.
20117 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
20118 (grub_upper_mem): Likewise.
20119 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
20120 * include/grub/memory.h (grub_memory_type_t): New enum.
20121 All users updated.
20122
9696382e
VS
201232010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20124
20125 * grub-core/Makefile.core.def (lsapm): New module.
20126 * grub-core/commands/i386/pc/lsapm.c: New file.
20127 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
20128 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
20129 Likewise.
20130 * include/grub/i386/pc/apm.h: New file.
20131 * include/multiboot.h (multiboot_apm_info): New struct.
20132
201332010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20134
20135 GRUB-legacy configuration file support.
20136
20137 * Makefile.util.def (grub-menulst2cfg): New util.
20138 * docs/man/grub-menulst2cfg.h2m: New file.
20139 * grub-core/Makefile.core.def (legacycfg): New module.
20140 * grub-core/commands/legacycfg.c: New file.
20141 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
20142 (grub_normal_add_menu_entry): ... this.
20143 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
20144 (grub_normal_set_password): ...this.
20145 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
20146 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
20147 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
20148 * grub-core/lib/legacy_parse.c: New file.
20149 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
20150 * include/grub/i386/pc/vesa_modes_table.h: New file.
20151 * include/grub/legacy_parse.h: Likewise.
20152 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
20153 * util/grub-menulst2cfg.c: New file.
20154
bf8d1338
CW
201552010-09-17 Colin Watson <cjwatson@ubuntu.com>
20156
20157 * grub-core/kern/emu/hostdisk.c
20158 (convert_system_partition_to_system_disk): Initialise node.
20159
9c0bad2e
CW
201602010-09-17 Colin Watson <cjwatson@ubuntu.com>
20161
20162 * grub-core/kern/emu/hostdisk.c
20163 (convert_system_partition_to_system_disk): Fix devmapper memory pool
20164 leak.
20165 Reported and based on patch by: Modestas Vainius.
20166
a939d135
CW
201672010-09-17 Colin Watson <cjwatson@ubuntu.com>
20168
20169 Fix DM-RAID probing with recent versions of device-mapper udev
20170 rules.
20171
20172 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
20173 canonicalise device paths under /dev/mapper/.
20174 (convert_system_partition_to_system_disk): Compare the
20175 uncanonicalised path to /dev/mapper/ rather than the canonicalised
20176 path, since device nodes under /dev/mapper/ are often symlinks.
20177
0f7ee3c9
YB
201782010-09-17 Yves Blusseau <blusseau@zetam.org>
20179
20180 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
20181
10854d0d
YB
201822010-09-16 Yves Blusseau <blusseau@zetam.org>
20183
20184 * configure.ac: Avoid some annoying error messages if freetype-config
20185 program is not found.
20186
108538d8
CW
201872010-09-16 Colin Watson <cjwatson@ubuntu.com>
20188
20189 Support RAID on virtio devices, and others.
20190
20191 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
20192 Rename to ...
20193 [__MINGW32__] (grub_find_device): ... this.
20194 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
20195 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
20196 reasonable default if dir is NULL.
20197 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
20198 ...
20199 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
20200 (grub_guess_root_device): Update callers.
20201 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
20202
20203 * util/raid.c (grub_util_getdiskname): Remove.
20204 (grub_util_raid_getmembers): Use grub_find_device rather than
20205 grub_util_getdiskname.
20206
e5bfc130
CW
202072010-09-16 Colin Watson <cjwatson@ubuntu.com>
20208
20209 * docs/grub.texi (serial): Remove obsolete comment about GRUB
20210 needing to be compiled with serial support.
20211 (ls): Indicate that multiple files are accepted.
20212 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
20213 indicate that multiple files are accepted.
20214
be458ae2
CW
202152010-09-16 Colin Watson <cjwatson@ubuntu.com>
20216
20217 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
20218 libgrub_a_init.c, and util/bash-completion.d/grub.
20219
cb731b5e
VS
202202010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20221
20222 * util/grub-setup.c (setup): Fix incorrect container semantics.
20223
35139e8a
VS
202242010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20225
20226 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
20227 misusage.
20228 Reported by: J. Nick Terry
20229
e50fca4a
VS
202302010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20231
20232 Move embedding routines to partmap sources files.
20233
20234 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
20235 [GRUB_UTIL]: New variable.
20236 (gpt_partition_map_iterate): Set part.parent.
20237 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
20238 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
20239 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
20240 New function.
20241 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
20242 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
20243 (grub_partition_map) [GRUB_UTIL]: New field embed.
20244 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
20245 (setup): Use ->embed.
20246
f00478b7
VS
202472010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20248
20249 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
20250 function.
20251 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
20252 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
20253
2b94e3ff
YB
202542010-09-15 Yves Blusseau <blusseau@zetam.org>
20255
20256 Add function to get completions from usage.
20257
20258 * util/bash-completion.d/grub-completion.bash.in: Add function to get
20259 completions from usage. Use LC_ALL=C to get options properly.
20260
2e04a006
VS
202612010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20262
20263 * grub-core/gnulib/basename-lgpl.c: Imported.
20264 * grub-core/gnulib/basename.c: Likewise.
20265 * grub-core/gnulib/dirname-lgpl.c: Likewise.
20266 * grub-core/gnulib/dirname.c: Likewise.
20267 * grub-core/gnulib/dirname.h: Likewise.
20268 * grub-core/gnulib/stripslash.c: Likewise.
20269
5dcdf93a
VS
202702010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20271
20272 * grub-core/gnulib/error.c: Resynced.
20273 * grub-core/gnulib/getopt.c: Likewise.
20274 * grub-core/gnulib/getopt_int.h: Likewise.
20275 * grub-core/gnulib/regex.h: Likewise.
20276 * grub-core/gnulib/regex_internal.c: Likewise.
20277 * grub-core/gnulib/regex_internal.h: Likewise.
20278
014f47b7
SJ
202792010-09-15 Szymon Janc <szymon@janc.net.pl>
20280
20281 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
20282 CRC calculations and validity checks.
20283 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
20284 calculations.
20285
dd521a4a
SJ
202862010-09-15 Szymon Janc <szymon@janc.net.pl>
20287
20288 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
20289
79c4eeb9
VS
202902010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20291
20292 Fix incorrect echo options handling.
20293 Reported by: Yves Blusseau.
20294
20295 * include/grub/command.h (grub_command_flags_t): New flags
20296 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
20297 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
20298 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
20299
ed80f7d5
VS
203002010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20301
20302 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
20303 users updated.
20304 (GRUB_COMMAND_FLAG_MENU): Likewise.
20305 (GRUB_COMMAND_FLAG_BOTH): Likewise.
20306 (GRUB_COMMAND_FLAG_TITLE): Removed.
20307 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
20308 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
20309 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
20310 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
20311 (grub_command_flags_t): New enum. All users updated.
20312
5fe7620a
SG
203132010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
20314
20315 Fix solaris compilation.
20316
20317 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
20318 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
20319 (grub-emu-list): Likewise.
20320
545b752f
VS
203212010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20322
20323 Remove deprecated root command.
20324
20325 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
20326 updated.
20327
6c1a338c
VS
203282010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20329
20330 * util/i386/pc/grub-setup.c: Merge this ...
20331 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
20332 * util/grub-setup.c: ... into this.
20333 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
20334 New struct.
20335
203362010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20337
20338 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
20339 possible.
20340
d2ea4551
VS
203412010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20342
20343 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
20344 allocate p.
20345
3c3b5040
VS
203462010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20347
20348 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
20349 explicit root argument to set to prevent UUID to be interpreted as
20350 argument to set.
20351
b71c3fae
VS
203522010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20353
20354 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
20355
275433e6
VS
203562010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20357
20358 Don't export grub_gate_a20.
20359
20360 * grub-core/kern/i386/pc/init.c: Remove leftovers.
20361 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
20362 to ...
20363 (grub_gate_a20): ... this. All users updated.
20364 * include/grub/i386/pc/init.h: Removed. All users updated.
20365
a5dbb1f1
VS
203662010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20367
20368 Create euro.pf2 which supports most European languages.
20369
20370 * Makefile.am (grubdata_DATA): Add euro.pf2.
20371 (euro.pf2): New target.
20372 (CLEANFILES): Add euro.pf2.
20373
62a747cb
VS
203742010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20375
20376 * configure.ac: Disable emu-usb by default to prevent inadvertent
20377 device takeover.
20378
608e43b1
VS
203792010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20380
20381 Disable usbserial on grub-emu since our libusb code isn't good enough
20382 yet.
20383
20384 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
20385 (usbserial_pl2303): Likewise.
20386 (usbserial_ftdi): Likewise.
20387
94564f81
VS
203882010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20389
20390 * include/grub/disk.h (grub_disk): Remove has_partitions.
20391 All users updated.
20392 * disk/loopback.c (grub_loopback): Remove has_partitions.
20393 All users updated.
20394 (options): Remove partitions. All users updated.
20395 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
20396 * util/i386/pc/grub-setup.c (setup): copy partition table only when
20397 actual partition table is found.
20398
3352800b
VS
203992010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20400
20401 Remove readability checks (too many false negatives).
20402
20403 * util/grub-install.in: Remove readability checks.
20404 * util/grub-mkconfig.in: Likewise.
20405 * util/grub.d/10_hurd.in: Likewise.
20406 * util/grub.d/10_kfreebsd.in: Likewise.
20407 * util/grub.d/10_linux.in: Likewise.
20408 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
20409 way.
20410
2419f17a
VS
204112010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20412
20413 Enable acpi shutdown on all ACPI platforms.
20414
20415 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
20416 on coreboo, multiboot and EFI.
20417 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
20418 (grub_acpi_halt): Likewise.
20419 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
20420 (grub_cmd_halt): Don't call grub_acpi_halt directly.
20421 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
20422 * grub-core/lib/i386/halt.c (grub_halt)
20423 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
20424
0575c7c3
VS
204252010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20426
20427 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
20428 context.
20429
54ac3cd1
VS
204302010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20431
20432 * grub-core/video/efi_gop.c: Fix over-80-chars line.
20433 * grub-core/video/efi_uga.c: Likewise.
20434
b2a30ac5
VS
204352010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20436
20437 Filter devaliases and never open same device twice.
20438
20439 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
20440 (last_ihandle): Likewise.
20441 (ofdisk_hash_ent): New member shortest.
20442 (ofdisk_hash_add): Add canonical path too.
20443 (scan): New function.
20444 (grub_ofdisk_iterate): Iterate over hashed entries.
20445 (compute_dev_path): Don't add :0.
20446 (grub_ofdisk_open): Don't really open the disk.
20447 (grub_ofdisk_close): Avoid closing unrelated disk.
20448 (grub_ofdisk_read): Implement reopen logic.
20449 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
20450 New function.
20451 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
20452 New proto.
20453
fb53b340
VS
204542010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20455
20456 Fix sparc64.
20457
20458 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
20459 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
20460 right address. Add sparc64_ieee1275_ldflags.
20461 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
20462 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
20463 to grub_host_to_target_addr
20464 (load_image): Likewise.
20465
f452b040
VS
204662010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20467
20468 * grub-core/normal/completion.c (complete_file): Handle device
20469 containing slash.
20470 Fix based on patch by Doug Nazar.
20471
9b5b2541
VS
204722010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20473
20474 grub-mknetdir script.
20475
20476 * Makefile.util.def (grub-mknetdir): New module.
20477 * tests/util/grub-shell.in: Support boot=net
20478 * util/grub-mknetdir.in: New file.
20479
9d2be652
VS
204802010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20481
20482 videoinfo on non-vbe.
20483
20484 * grub-core/Makefile.core.def (vbeinfo): Removed.
20485 (vbetest): Removed.
20486 (videoinfo): New module.
20487 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
20488 * grub-core/commands/i386/pc/vbetest.c: Removed.
20489 * grub-core/commands/videoinfo.c: New file.
20490 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
20491 specification.
20492 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
20493 as vbetest.
20494 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
20495 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
20496 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
20497 mode_number. New parameter mode. All users updated.
20498 (grub_video_gop_iterate): New function.
20499 (grub_video_efi_gop): New member iterate.
20500 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
20501 (grub_vbe_set_video_mode): Remove setting useless fields.
20502 (vbe2videoinfo): New function.
20503 (grub_video_vbe_iterate): Likewise.
20504 (grub_video_vbe_setup): Use vbe2videoinfo.
20505 (grub_video_vbe_print_adapter_specific_info): New function.
20506 (grub_video_vbe_adapter): New fields iterate and
20507 print_adapter_specific_info.
20508 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
20509 All users updated.
20510 (grub_video_mode_info): New field mode_number.
20511 (grub_video_adapter): New fields iterate and
20512 print_adapter_specific_info.
20513
179503f5
TG
205142010-09-13 Tristan Gingold <gingold@free.fr>
205152010-09-13 Robert Millan <rmh.grub@aybabtu.com>
205162010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20517
20518 * grub-core/commands/efi/lsefisystab.c: New file.
20519 * grub-core/commands/efi/lssal.c: Likewise.
20520 * grub-core/Makefile.core.def (lsacpi): New module.
20521 (lsefisystab): Likewise.
20522 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
20523 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
20524 (grub_efi_sal_system_table): New struct.
20525 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
20526 (grub_efi_sal_system_table_memory_descriptor): Likewise.
20527 (grub_efi_sal_system_table_platform_features): Likewise.
20528 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
20529 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
20530 (grub_efi_sal_system_table_ap_wakeup): Likewise.
20531 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
20532
cf9827de
VS
205332010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20534
20535 Support explicit user claim that a device is BIOS-visible.
20536
20537 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
20538 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
20539 * grub-core/kern/emu/hostdisk.c
20540 (convert_system_partition_to_system_disk): Support mdX.
20541 (find_system_device): New parameter add. All users updated.
20542 (grub_util_biosdisk_is_present): New function.
20543 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
20544 proto.
20545
53f0eb1f
VS
205462010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20547
20548 Search hints support.
20549
20550 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
20551 All users updated.
20552
b23ffd70
YB
205532010-09-13 Yves Blusseau <blusseau@zetam.org>
20554
20555 Bash completion script for util commands
20556
20557 * Makefile.am: Add util/bash-completion.d directory
20558 * configure.ac: Likewise.
20559 * util/bash-completion.d/Makefile.am: New file.
20560 * util/bash-completion.d/grub-completion.bash.in: Likewise.
20561
d547dc28
VS
205622010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20563
20564 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
20565 (print_backlog): set backlog_ucs4 and backlog_glyphs.
20566 Reported by: Yves Blusseau.
20567
2fc8ccb9
VS
205682010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20569
20570 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
20571 partition size and offset.
20572
d8a84076
VS
205732010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20574
20575 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
20576
84fb3b3d
VS
205772010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20578
20579 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
20580
768ec2e2
VS
205812010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20582
20583 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
20584 (grub_xvasprintf): Likewise.
20585
4870900f
VS
205862010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20587
20588 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
20589
faca6bec
VS
205902010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20591
20592 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
20593 args ending with NULL.
20594
205952010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
20596
20597 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
20598 pointer.
20599
3c70f225
SJ
206002010-09-11 Szymon Janc <szymon@janc.net.pl>
20601
20602 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
20603
4df7996d
VS
206042010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20605
20606 Shutdown using ACPI.
20607
20608 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
20609 * grub-core/commands/acpihalt.c: New file.
20610 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
20611 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
20612 (grub_acpi_halt): New proto.
20613 (GRUB_ACPI_SLP_EN): New const.
20614 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
20615 (GRUB_ACPI_OPCODE_*): New enum.
20616 (GRUB_ACPI_EXTOPCODE_*): Likewise.
20617
126b4c32
TG
206182010-09-11 Tristan Gingold <gingold@free.fr>
206192010-09-11 Robert Millan <rmh.grub@aybabtu.com>
206202010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20621
20622 * commands/lsacpi.c: New file.
20623 * grub-core/Makefile.core.def (lsacpi): New module.
20624 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
20625 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
20626 (grub_acpi_madt_entry_header): New struct.
20627 (grub_acpi_madt): Likewise.
20628 (grub_acpi_madt_entry_interrupt_override): Likewise.
20629 (grub_acpi_madt_entry_sapic): Likewise.
20630 (grub_acpi_madt_entry_lsapic): Likewise.
20631 (grub_acpi_madt_entry_platform_int_source): Likewise.
20632 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
20633 (PRIuGRUB_UINT32_T): Likewise.
20634 (PRIxGRUB_UINT64_T): Likewise.
20635
1aa4fe88
VS
206362010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20637
20638 Implement loading palette on ieee1275_fb.
20639
20640 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
20641 (have_setcolors): Likewise.
20642 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
20643 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
20644 (grub_video_ieee1275_set_palette): Implement.
20645
25761e13
VS
206462010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
206472010-09-11 Colin Watson <cjwatson@ubuntu.com>
20648
20649 * util/grub-install.in (grub_partition): New variable.
20650 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
20651 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
20652 Fixes a bug reported by Yves Blusseau.
20653
050abaea
VS
206542010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20655
20656 Fix emu on mipsel.
20657
20658 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
20659 =grub_cpu_flush_cache on all mips and not only yeeloong.
20660 * configure.ac (COND_mips): New conditional.
20661 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
20662 platforms.
20663 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
20664 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
20665 [GRUB_LINKER_HAVE_INIT]: New function.
20666 (grub_emu_post_init): Likewise.
20667 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
20668 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
20669 * include/grub/cache.h (_mips): Include mips/cache.h.
20670 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
20671 LVM and RAID prototypes.
20672 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
20673 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
20674 function.
20675
5ed7d816
CW
206762010-09-10 Colin Watson <cjwatson@ubuntu.com>
20677
20678 * util/grub-install.in: Don't try to verify core.img until after
20679 running grub-mkimage to create it.
20680
90367e04
RM
206812010-09-10 Robert Millan <rmh@gnu.org>
20682
20683 * util/grub.d/10_hurd.in: Add misc readability checks.
20684 * util/grub.d/10_kfreebsd.in: Likewise.
20685 * util/grub.d/10_linux.in: Likewise.
20686
c452fa66
CW
206872010-09-10 Colin Watson <cjwatson@ubuntu.com>
20688
20689 * util/grub-install.in: ${imgext} won't be defined here until the
20690 install branch is merged. For the meantime, only verify core.img on
20691 i386-pc and sparc64-ieee1275 platforms.
20692
c38fe9f4
RM
206932010-09-10 Robert Millan <rmh@gnu.org>
20694
20695 Solaris support in grub_find_zpool_from_dir(). Thanks
20696 Seth Goldberg for referring to getextmntent() facility.
20697
20698 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
20699 `sys/mkdev.h'.
20700 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
20701 `<sys/mnttab.h>'.
20702 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
20703 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
20704 method for finding zpool name.
20705
905f7773
CW
207062010-09-10 Colin Watson <cjwatson@ubuntu.com>
20707
20708 grub-fstest needs the host and hostfs modules while other utilities
20709 actively require those modules to be absent, so grub-fstest needs
20710 its own initialisation and finalisation code.
20711
20712 * Makefile.am (grub_fstest.pp): New target.
20713 (grub_fstest_init.lst): Likewise.
20714 (grub_fstest_init.c): Likewise.
20715 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
20716
fb90b546
RM
207172010-09-10 Robert Millan <rmh@gnu.org>
20718
20719 * configure.ac: Check for `struct statfs.f_fstypename' and
20720 `struct statfs.f_mntfromname'.
20721
20722 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
20723 kFreeBSD-specific code.
20724
66d4bea5
RM
207252010-09-10 Robert Millan <rmh@gnu.org>
20726
20727 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
20728 on ZFS. Now non-main filesystems are supported as / too.
20729
b6a690ee
CW
207302010-09-09 Colin Watson <cjwatson@ubuntu.com>
20731
20732 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
20733 and grub-core/disk/host.c to ...
20734 (grub-fstest): ... here. Having the host disk implementation
20735 present confuses grub-probe and other utility programs.
20736
20737 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
20738 when writing to a file, not when writing to stdout.
20739
8901b00c 207402010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
20741
20742 * tests/partmap_test.in: New test for partitions.
20743 * Makefile.util.def: Rules for new test.
20744
7bf45fdd
RM
207452010-09-09 Robert Millan <rmh@gnu.org>
20746
20747 * util/grub-probe.c (probe): Fix a pair of unhandled error
20748 conditions.
20749
4dfbc574
RM
207502010-09-09 Robert Millan <rmh@gnu.org>
20751
20752 Basic Btrfs support (detection and UUID).
20753
20754 * grub-core/fs/btrfs.c: New file.
20755 * Makefile.util.def (library): Register btrfs.c.
20756 * grub-core/Makefile.core.def: Likewise.
20757
6b8e78ae
RM
207582010-09-08 Robert Millan <rmh@gnu.org>
20759
20760 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
20761 with (optional) parameters to specify device and relative path.
20762 * util/grub-install.in: Use is_path_readable_by_grub() to
20763 verify readability of a few critical files.
20764 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
20765 verify readability of grub.cfg.new.
20766
27f21a8b
VS
207672010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20768
20769 Split minix.mod into minix.mod and minix2.mod.
20770
20771 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
20772 * grub-core/Makefile.core.def (minix2): New module.
20773 * grub-core/fs/minix.c: Use definitions instead of runtime version
20774 checking.
20775 * grub-core/fs/minix2.c: New file.
20776
c0e53ea5
YB
207772010-09-08 Yves Blusseau <blusseau@zetam.org>
20778
20779 Add new --boot-directory option to replace --root-directory
20780
20781 * util/grub-install.in: Add new --boot-directory option
20782 * util/grub-reboot.in: Likewise.
20783 * util/grub-set-default.in: Likewise.
20784
b9fe6ea2
YB
207852010-09-08 Yves Blusseau <blusseau@zetam.org>
20786
20787 * util/grub-mkconfig.in: Use new variable.
20788
d87aedff
YB
207892010-09-08 Yves Blusseau <blusseau@zetam.org>
20790
20791 * configure.ac: Define some useful variables.
20792
e55e8495
VS
207932010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20794
20795 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20796 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
20797 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
20798 Use terminfo and don't use cursor-on/cursor-off unless it's known
20799 to work.
20800 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
20801 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
20802
6fa6d675
CW
208032010-09-08 Colin Watson <cjwatson@ubuntu.com>
20804
20805 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
20806 starts with "(,", fill the drive containing the loaded image in
20807 between those two characters, but expect that a full partition
20808 specification including partition map names will follow.
20809
92f2aef0
RM
208102010-09-08 Robert Millan <rmh@gnu.org>
20811
20812 * configure.ac: Remove `--enable-grub-fstest' option.
20813 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
20814
20815 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
20816 `grub-fstest' instead of `grub-probe' for readability verification.
20817 * util/grub-probe.c (probe): Remove readability verification kludge.
20818
99fd620d
RM
208192010-09-08 Robert Millan <rmh@gnu.org>
20820
20821 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
20822 initializing `GRUB_FS'.
20823
058e30ac 208242010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
20825
20826 Not command (!) support to GRUB script.
20827
20828 * tests/grub_script_not.in: New test.
20829 * Makefile.util.def: Rules for new test.
20830
20831 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
20832 ! command as a special case.
20833 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
20834
b61d05ed 208352010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20836
058e30ac 20837 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
20838 grub_free.
b61d05ed 20839
4d69c786 208402010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20841
20842 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
20843
aa3119c4 208442010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20845
20846 * docs/grub.texi (Shell-like scripting): Documentation for break,
20847 continue, shift and return commands.
20848
db0f7e3d
VS
208492010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
20850
20851 Rename CD-ROM to cd on BIOS.
20852
20853 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
20854 "cd".
20855 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
20856
88b87c93
VS
208572010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20858
20859 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
20860 * util/grub-probe.c (main): Likewise.
20861 * util/i386/pc/grub-setup.c (main): Likewise.
20862 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
20863 Reported and debugged by: alexxy
20864
294f324d
VS
208652010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20866
20867 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
20868 diagnostic info.
20869
d7ee3441
JS
208702010-09-05 Jo Shields <directhex@apebox.org>
20871
20872 * util/grub.d/30_os-prober.in: Add missing classes.
20873
d7e06c1f
VS
208742010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20875
20876 * docs/grub.texi (Theme file format): Document new position format.
20877
fc157e53
VS
208782010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20879
20880 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
20881 a table. Use @code instead of @verbatim.
20882
506e9a1c
CB
208832010-09-05 Colin D Bennett <colin@gibibit.com>
20884
20885 Gfxmenu documentation.
20886
20887 * docs/grub.texi (Theme file format): New chapter.
20888
f0aff67c
SJ
208892010-09-05 Szymon Janc <szymon@janc.net.pl>
20890
20891 * grub-core/Makefile.core.def (xzio): New module.
20892 * grub-core/io/xzio.c: New file.
20893 * grub-core/lib/xzembed/xz.h: New file (from xembed).
20894 * grub-core/lib/xzembed/xz_config.h: Likewise.
20895 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
20896 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
20897 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
20898 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
20899 * grub-core/lib/xzembed/xz_private.h: Likewise.
20900 * grub-core/lib/xzembed/xz_stream.h: Likewise.
20901 * include/grub/file.h (grub_file_filter_id): New compression filter
20902 GRUB_FILE_FILTER_XZIO.
20903
82a85062
VS
209042010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20905
20906 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
20907 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
20908 size.
20909
3579415d
VS
209102010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20911
20912 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
20913 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
20914
5124ae6d
VS
209152010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20916
20917 Uncompressed checksum support.
20918
20919 * grub-core/commands/hashsum.c (options): Add option --uncompress.
20920 (check_list): New parameter uncompress.
20921 (grub_cmd_hashsum): Handle --uncompress.
20922
9aadb3d1
VS
209232010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20924
20925 Reintroduce testload.
20926
20927 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
20928 from here ...
20929 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
20930 (GRUB_MOD_INIT): New function.
20931 (GRUB_MOD_FINI): Likewise.
20932 * grub-core/Makefile.core.def (testload): New module.
20933
a17792c3
SJ
209342010-09-05 Szymon Janc <szymon@janc.net.pl>
20935
20936 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
20937 (uint8_t): New type.
20938 (uint16_t): Likewise.
20939 (uint32_t): Likewise.
20940 (uint64_t): Likewise.
20941
b81e40a3
SJ
209422010-09-05 Szymon Janc <szymon@janc.net.pl>
20943
20944 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
20945
fc2ef117
VS
209462010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20947
20948 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
20949 Made static.
20950 (grub_gzfile_open): Removed. All users updated.
20951 (GRUB_MOD_INIT): New function.
20952 (GRUB_MOD_FINI): Likewise.
20953 * grub-core/kern/file.c (grub_file_filters_all): New variable.
20954 (grub_file_filters_enabled): Likewise.
20955 (grub_file_open): Handle filters.
20956 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
20957 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
20958 * include/grub/file.h (grub_file_filter_id_t): New type.
20959 (grub_file_filter_t): Likewise.
20960 (grub_file_filters_all): New extern variable.
20961 (grub_file_filters_enabled): Likewise.
20962 (grub_file_filter_register): New inline function.
20963 (grub_file_filter_unregister): Likewise.
20964 (grub_file_filter_disable): Likewise.
20965 (grub_file_filter_disable_compression): Likewise.
20966 * include/grub/gzio.h: Removed.
20967
35ee15e0
BC
209682010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20969
20970 Filename expansion support for wildcards in GRUB script.
20971
20972 * tests/grub_script_expansion.in: New test.
20973 * Makefile.util.def: Rule for new test.
20974
20975 * grub-core/commands/wildcard.c: New file, implements filename
20976 expansion support for GRUB script.
20977 * grub-core/Makefile.core.def: Rule update for regexp.mod.
20978 * grub-core/script/argv.c: Cosmetic changes.
20979 * grub-core/script/execute.c (grub_script_arglist_to_argv):
20980 Refactored to perform wildcard expansion on arguments.
20981 * include/grub/script_sh.h (grub_script_wildcard_translator): New
20982 struct.
20983
20984 * tests/util/grub-shell.in: Fix quoting for read input.
20985
5f0c4aca
BC
209862010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20987
20988 Support for updating environment variables with matched substrings
20989 of regexp.
20990
20991 * tests/grub_cmd_regexp.in: New test.
20992 * Makefile.util.def: Rule for new test.
20993
20994 * grub-core/commands/regexp.c: New option -s to update environment
20995 variables with regexp matches.
20996
3759a35f
SJ
209972010-09-04 Szymon Janc <szymon@janc.net.pl>
20998
20999 * include/grub/file.h (grub_file): New member not_easly_seekable.
21000 (grub_file_seekable): New inline function.
21001 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
21002 easily seekable.
21003 (grub_gzio_open): Set not_easly_seekable.
21004 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
21005 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
21006
ed8c6dec
BC
210072010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21008
21009 Support for options to appear multiple times on cmdline.
21010
21011 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
21012 * grub-core/commands/extcmd.c: Support for repeatable option.
21013 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
21014 repeatable option support.
21015
21016 Refactor menuentry into a regular command.
21017
21018 * grub-core/commands/menuentry.c: New file, menuentry command
21019 implementation.
21020 * grub-core/Makefile.core.def: Rule update for normal.mod.
21021 * grub-core/normal/main.c: Moved menuentry creation to
21022 grub-core/commands/menuentry.c.
21023 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
21024 (grub_menu_execute_entry_real): Removed.
21025 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
21026 function.
21027 (grub_script_execute_menuentry): Removed.
21028 * grub-core/script/parser.y (menuentry): Removed.
21029 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
21030 * grub-core/script/yylex.l (menuentry): Removed.
21031 * include/grub/menu.h (grub_menu_init): New prototype.
21032 (grub_menu_fini): New prototype.
21033 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
21034 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
21035 (grub_script_execute_sourcecode): New prototype.
21036
dacd0cf0
BC
210372010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21038
21039 "return" command for GRUB script functions.
21040
21041 * tests/grub_script_return.in: New test.
21042 * Makefile.util.def: Rules for new test.
21043
21044 * grub-core/script/execute.c (grub_script_return): New function.
21045 * grub-core/script/main.c: Register/unregister return commaond.
21046 * include/grub/script_sh.h (grub_script_return): New prototype.
21047
52e72f9d
BC
210482010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21049
21050 "setparams" command to update positional parameters.
21051
21052 * tests/grub_script_setparams.in: New test.
21053 * Makefile.util.def: Rules for new test.
21054
21055 * grub-core/script/argv.c (grub_script_argv_make): New function.
21056 * grub-core/script/execute.c (replace_scope): New function.
21057 (grub_script_setparams): New function.
21058 * grub-core/script/lexer.c: Remove unused variables.
21059 * grub-core/script/main.c: Register/unregister setparams command.
21060 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
21061 (grub_script_setparams): New prototype.
21062
25b60c91
BC
210632010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21064
21065 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
21066 grub_free order.
21067
37e7bf68
BC
210682010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21069
21070 Support for passing block of commands as an argument to extcmds.
21071
21072 * Makefile.util.def: Rules for new test.
21073 * tests/grub_script_blockarg.in: New test.
21074 * grub-core/tests/test_blockarg.c: New file, block argument
21075 command used in the test.
21076
21077 * include/grub/extcmd.h (grub_extcmd_context): New struct.
21078 (grub_register_extcmd_prio): New function prototype.
21079 (grub_extcmd_dispatcher): New function prototype.
21080 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
21081 type.
21082 * include/grub/script_sh.h (struct grub_script): New members
21083 `children', `next_siblings' and `refcnt' for block arguments and
21084 reference counting.
21085 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
21086 (grub_script_arg): New member `script' for block argument.
21087 (grub_script_argv): New member `script' for block argument.
21088 (grub_parser_param): New member `scripts' for block argument.
21089 (grub_script_mem_free): New extern function prototype.
21090 (grub_script_ref): New function prototype.
21091 (grub_script_unref): New function prototype.
21092
21093 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
21094 extcmd form to support block arguments.
21095 * grub-core/script/argv.c: Block arguments support.
21096 * grub-core/script/execute.c: Likewise.
21097 * grub-core/script/lexer.c: Likewise.
21098 * grub-core/script/main.c: Likewise.
21099 * grub-core/script/script.c: Likewise.
21100 * grub-core/script/parser.y: Likewise. New `block' and `block0'
21101 non-terminals.
21102
21103 * grub-core/commands/acpi.c: Update extcmd implementations with
21104 grub_extcmd_context_t.
21105 * grub-core/commands/cat.c: Likewise.
21106 * grub-core/commands/echo.c: Likewise.
21107 * grub-core/commands/extcmd.c: Likewise.
21108 * grub-core/commands/hashsum.c: Likewise.
21109 * grub-core/commands/hdparm.c: Likewise.
21110 * grub-core/commands/help.c: Likewise.
21111 * grub-core/commands/hexdump.c: Likewise.
21112 * grub-core/commands/i386/cpuid.c: Likewise.
21113 * grub-core/commands/i386/pc/drivemap.c: Likewise.
21114 * grub-core/commands/i386/pc/halt.c: Likewise.
21115 * grub-core/commands/i386/pc/sendkey.c: Likewise.
21116 * grub-core/commands/iorw.c: Likewise.
21117 * grub-core/commands/keystatus.c: Likewise.
21118 * grub-core/commands/loadenv.c: Likewise.
21119 * grub-core/commands/ls.c: Likewise.
21120 * grub-core/commands/lspci.c: Likewise.
21121 * grub-core/commands/memrw.c: Likewise.
21122 * grub-core/commands/probe.c: Likewise.
21123 * grub-core/commands/search_wrap.c: Likewise.
21124 * grub-core/commands/setpci.c: Likewise.
21125 * grub-core/commands/sleep.c: Likewise.
21126 * grub-core/disk/loopback.c: Likewise.
21127 * grub-core/hello/hello.c: Likewise.
21128 * grub-core/loader/i386/bsd.c: Likewise.
21129 * grub-core/loader/xnu.c: Likewise.
21130 * grub-core/term/gfxterm.c: Likewise.
21131 * grub-core/term/serial.c: Likewise.
21132 * grub-core/tests/lib/functional_test.c: Likewise.
21133
888d1500
BC
211342010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21135
21136 Multi-line quoted strings support.
21137
21138 * grub-core/script/lexer.c (append_newline): Removed.
21139 (grub_script_lexer_yywrap): Refactored.
21140 (grub_script_lexer_init): Refactored.
21141 * grub-core/script/yylex.l (yywrap): New function.
21142 (grub_lexer_resplit): New function.
21143 (grub_lexer_unput): New function.
21144 * include/grub/script_sh.h (grub_lexer_param): New members, unput
21145 and resplit.
21146 * tests/grub_script_echo1.in: Added few more testcases.
21147
dda060dd
VS
211482010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21149
21150 * grub-core/kern/misc.c: Don't add abort alias in utils.
21151 Reported by: echoline.
21152
6556eba9
BC
211532010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
21154
21155 Add missing files into "make dist" tarball for other platforms.
21156
21157 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
21158 * conf/Makefile.common (dist_noinst_DATA): New variable.
21159 * conf/Makefile.extra-dist: Added missing make dist files.
21160 * grub-core/Makefile.core.def: Likewise.
21161
c8e7bf5f
VS
211622010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21163
21164 Compress grub_prefix.
21165
21166 * grub-core/boot/i386/pc/lnxboot.S: Use
21167 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
21168 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
21169 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
21170 GRUB_MACHINE_PREFIX_END. All users updated.
21171 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
21172 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
21173 + 0x40.
21174 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
21175 * util/grub-mkimage.c (image_target_desc): Change data_end to
21176 prefix_end. All users updated.
21177
a7c00cdb
VS
211782010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21179
21180 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
21181 value.
21182 (grub_openbsd_boot): Likewise.
21183 (grub_netbsd_boot): Likewise.
21184 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
21185 (grub_xnu_boot): Likewise.
21186
9f915872
VS
211872010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21188
21189 * configure.ac: Clean LIBS variable after tests.
21190
efa1bee7
CW
211912010-09-02 Colin Watson <cjwatson@ubuntu.com>
21192
21193 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
21194
61d720e5
VS
211952010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21196
21197 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
21198 echo if libdevmapper will be used.
21199
ef8e0ec8
IT
212002010-09-02 Ian Turner <Ian.Turner@deshaw.com>
21201
21202 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
21203 constant for the same file.
21204
03e261d8
VS
212052010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21206
21207 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
21208
c2a4eba6
CW
212092010-09-02 Colin Watson <cjwatson@ubuntu.com>
21210
21211 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
21212 grub-core/*.pp.
21213
9056cbf3
CW
212142010-09-02 Colin Watson <cjwatson@ubuntu.com>
21215
21216 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
21217 required by the boot protocol.
21218
21219 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
21220 ebp and edi members.
21221 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
21222 state.ebp and state.edi.
21223 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
21224 %ebp and %edi according to grub_relocator32_ebp and
21225 grub_relocator32_edi respectively.
21226 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
21227 and state.edi.
21228
529cc99a
VS
212292010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21230
21231 Add i386-pc-pxe image target.
21232
21233 * util/grub-mkimage.c (image_target_desc): New enum value
21234 IMAGE_I386_PC_PXE.
21235 (image_targets): New target i386-pc-pxe.
21236 (generate_image): Handle i386-pc-pxe image.
21237
9a093920
VS
212382010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21239
21240 Fix grub_pxe_scan.
21241
21242 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
21243 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
21244 All users updated.
21245 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
21246 (grub_pxe_pxenv): Correct type.
21247
f9cefc4e
CW
212482010-09-01 Colin Watson <cjwatson@ubuntu.com>
21249
21250 * NEWS: Document most of the important changes since 1.98.
21251
4066f57f
CW
212522010-09-01 Colin Watson <cjwatson@ubuntu.com>
21253
21254 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
21255 generated manual page) a little.
21256
da2891f9
CW
212572010-09-01 Colin Watson <cjwatson@ubuntu.com>
21258
21259 * docs/grub.texi: Add myself as an author.
21260
ad717fae
VS
212612010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21262
21263 * Makefile.util.def (libgrub.a): Add missing sunpc.
21264 Reported by: Seth Goldberg.
21265
eefe8abd
VS
212662010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21267
21268 Interrupt wrapping and code simplifications.
21269
9494ef9a
VS
21270 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
21271 x86_noieee1275 which are functionaly equivalent in this case.
21272 (grub-install): Make source on each platform explicit. Enable on
21273 all noemu.
21274 * gentpl.py (x86_efi_pc): Removed group.
21275 (x86_noefi): Likewise.
21276 (i386_noefi): Likewise.
21277 (x86_noieee1275): Likewise.
21278 (i386_noieee1275): Likewise.
21279 (i386_noefi_noieee1275): Likewise.
21280 (i386_pc_qemu_coreboot): Likewise.
21281 (i386_coreboot_multiboot): Likewise.
21282 (i386_pc_coreboot_multiboot_qemu): Likewise.
21283 (x86_noefi_mips): Likewise.
21284 (noieee1275): Likewise.
21285 (ieee1275_mips): Likewise.
21286 (noemu_noieee1275): Likewise.
21287 (cmos): New group.
21288 (usb): Likewise.
21289 (videoinkernel): Likewise.
21290 (videomodules): Likewise.
eefe8abd 21291 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
21292 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
21293 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
21294 include/grub/loader.h, include/grub/msdos_partition.h,
21295 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
21296 include/grub/machine/console.h, include/grub/machine/vga.h,
21297 include/grub/machine/vbe.h, include/grub/machine/init.h,
21298 include/grub/machine/kernel.h, include/grub/cpu/time.h,
21299 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 21300 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
21301 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
21302 * grub-core/Makefile.core.def (kernel): Explicit the source for
21303 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
21304 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
21305 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
21306 Use videoinkernel tag.
21307 (usb): Enable on all usb.
21308 (usbserial_common): Likewise.
21309 (usbserial_pl2303): Likewise.
21310 (usbserial_ftdi): Likewise.
21311 (uhci): Enable on all x86.
21312 (ohci): Enable on all pci.
21313 (cmostest): Enable on all CMOS.
21314 (acpi): Include commands/acpi.c on all platforms.
21315 (halt): Add relevant lib/*/halt.c.
21316 (hdparm): Enable on all pci.
21317 (lspci): Likewise.
21318 (usbtest): Enable on all usb.
21319 (ata): Enable on all pci.
21320 (ata_pthru): Likewise.
21321 (usbms): Enable on all usb.
21322 (usb_keyboard): Likewise.
21323 (font): Use tag videomodules.
21324 (bufio): Likewise.
21325 (datetime): Use tag cmos. Enable on all noemu.
21326 (mmap): Use tags common and x86.
21327 (gfxterm): Use tag videomodules.
21328 (bitmap): Likewise.
21329 (bitmap_scale): Likewise.
21330 (video_fb): Likewise.
21331 (video): Likewise.
21332 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
21333 adjust padding accordingly. All users updated.
21334 (grub_ohci_transaction): Fix bad format specification.
21335 (GRUB_MOD_INIT): Add asserts for struct size.
21336 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
21337 (grub_alloc_td): Likewise.
21338 (grub_free_queue): Likewise.
21339 (grub_uhci_transfer): Likewise.
21340 (grub_uhci_transaction): Fix bad format specification.
21341 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21342 (grub_usb_bulk_readwrite): Likewise.
21343 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
21344 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
21345 Made static.
21346 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
21347 Made static.
21348 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
21349 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
21350 Transformed into C.
21351 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
21352 Moved from here ...
21353 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
21354 ... here. Transformed into C. Made static.
21355 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
21356 Moved from here ...
21357 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
21358 ... here. Transformed into C. Made static.
21359 * grub-core/kern/i386/pc/startup.S
21360 (grub_biosdisk_check_int13_extensions): Moved from here ...
21361 * grub-core/disk/i386/pc/biosdisk.c
21362 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
21363 Made static.
21364 * grub-core/kern/i386/pc/startup.S
21365 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
21366 * grub-core/disk/i386/pc/biosdisk.c
21367 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
21368 Transformed into C. Made static.
21369 * grub-core/kern/i386/pc/startup.S
21370 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
21371 * grub-core/disk/i386/pc/biosdisk.c
21372 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
21373 Transformed into C. Made static.
21374 * grub-core/kern/i386/pc/startup.S
21375 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
21376 * grub-core/disk/i386/pc/biosdisk.c
21377 (grub_biosdisk_get_diskinfo_standard): ... here.
21378 Transformed into C. Made static.
21379 * grub-core/kern/i386/pc/startup.S
21380 (grub_biosdisk_get_num_floppies): Moved from here ...
21381 * grub-core/disk/i386/pc/biosdisk.c
21382 (grub_biosdisk_get_num_floppies): ... here.
21383 Transformed into C. Made static.
21384 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
21385 New function.
21386 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
21387 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
21388 Transformed into C. Made static.
21389 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
21390 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
21391 Transformed into C. Made static.
21392 * grub-core/kern/i386/ieee1275/init.c: Removed.
21393 * grub-core/kern/i386/misc.S: Likewise.
21394 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
21395 Splitted from here ...
21396 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
21397 Transformed into C. Made static. All users updated.
21398 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
21399 Transformed into C. Made static. All users updated.
21400 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
21401 Moved from here...
21402 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
21403 Transformed into C. Made static. All users updated.
21404 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
21405 Moved from here...
21406 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
21407 Transformed into C. Made static. All users updated.
21408 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
21409 Removed (replaced by C version).
21410 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
21411 Moved from here...
21412 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
21413 Transformed into C. Made static.
21414 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
21415 Moved from here...
21416 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
21417 ... here. Transformed into C.
21418 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
21419 Moved from here...
21420 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
21421 ... here. Transformed into C.
21422 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
21423 Moved from here...
21424 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
21425 ... here. Transformed into C. Made static.
21426 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
21427 Moved from here...
21428 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
21429 ... here. Transformed into C.
21ed554b
VS
21430 * grub-core/kern/i386/pc/startup.S
21431 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
21432 * grub-core/video/i386/pc/vbe.c
21433 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
21434 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
21435 Moved from here...
21436 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
21437 ... here. Transformed into C.
21438 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
21439 Moved from here...
21440 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
21441 ... here. Transformed into C.
21442 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
21443 Moved from here...
21444 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
21445 ... here. Transformed into C.
21446 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
21447 Moved from here...
21448 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
21449 ... here. Transformed into C.
21450 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
21451 Moved from here...
21452 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
21453 ... here. Transformed into C. Made static.
21454 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
21455 Moved from here...
21456 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
21457 ... here. Transformed into C. Made static.
21458 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
21459 Moved from here...
21460 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
21461 ... here. Transformed into C. Made static.
21462 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
21463 pxe_rm_entry as third argument.
21464 (grub_bios_interrupt): New function.
21465 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
21466 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
21467 of calling grub_stop.
21468 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
21469 * grub-core/lib/efi/halt.c (grub_halt): ...here.
21470 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
21471 * grub-core/lib/emu/halt.c (grub_halt): ... here.
21472 * grub-core/lib/i386/halt.c: Moved from here ...
21473 * grub-core/lib/i386/halt.c: ... here.
21474 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
21475 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
21476 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
21477 grub_stop_floppy.
21478 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
21479 * include/grub/i386/coreboot/init.h: Removed.
21480 * include/grub/i386/multiboot/init.h: Likewise.
21481 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
21482 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
21483 * include/grub/i386/pc/int.h: New file.
21484 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
21485 (grub_pxe_scan): Removed.
21486 (grub_pxe_call): Update prototype.
21487 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
21488 prototypes.
21489 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
21490 * include/grub/i386/qemu/init.h: Removed.
21491 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
21492 noreturn.
21493 (grub_halt): Likewise.
21494 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
21495 (grub_reboot): Likewise.
21496 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
21497 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
21498 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
21499
215dd471
RM
215002010-08-30 Robert Millan <rmh@gnu.org>
21501
21502 * NEWS: Document addition of ZFS support in `grub-install' and
21503 `grub-mkconfig'.
21504
ebd65b82
BC
215052010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
21506
21507 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
21508 dprintf output.
21509
11721d19
VS
215102010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21511
21512 Remove leftover embedding of font objects.
21513
21514 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21515 * util/grub-install.in (font): Removed.
21516 * util/grub-mkimage.c (generate_image): Remove font support. All users
21517 updated.
21518
37837d4e
VS
215192010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21520
21521 Remove leftover embedding of font objects.
21522
21523 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21524 * util/grub-install.in (font): Removed.
21525 * util/grub-mkimage.c (generate_image): Remove font support. All users
21526 updated.
21527
b4c1aae0
VS
215282010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21529
21530 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 21531 Reported by: Ian Turner
b4c1aae0 21532
8920a08d
VS
215332010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21534
21535 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
21536 timeout to avoid indefinite boot stalling.
21537
f21db033
VS
215382010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21539
21540 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
21541 (grub_env_write_color_highlight): Likewise.
21542
9a9de209
VS
215432010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21544
21545 * grub-core/normal/term.c (print_more): Return to normal and not
21546 to standard state after printing "---MORE---".
21547
3dca01d7
VS
215482010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21549
21550 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
21551 Mask out the bit 0x80 since it has other meaning that specifiing color.
21552
0b986c40
VS
215532010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21554
21555 New relocator. Allows for more kernel support and more straightforward
21556 loader writing.
21557
21558 * Makefile.am (BOOTTARGET): New variable.
21559 (QEMU32): Likewise.
21560 (linux.init.x86_64): New target.
21561 (linux.init.i386): Likewise.
21562 (multiboot.elf): Likewise.
21563 (kfreebsd.elf): Likewise.
21564 (kfreebsd.aout): Likewise.
21565 (pc-chainloader.elf): Likewise.
21566 (pc-chainloader.bin): Likewise.
21567 (ntldr.elf): Likewise.
21568 (ntldr.bin): Likewise.
21569 (multiboot2.elf): Likewise.
21570 (kfreebsd.init.x86_64): Likewise.
21571 (kfreebsd.init.i386): Likewise.
21572 (knetbsd.init.i386): Likewise.
21573 (kopenbsd.init.i386): Likewise.
21574 (knetbsd.init.x86_64): Likewise.
21575 (kopenbsd.init.x86_64): Likewise.
21576 (linux-initramfs.i386): Likewise.
21577 (linux-initramfs.x86_64): Likewise.
21578 (kfreebsd-mfsroot.i386.img): Likewise.
21579 (knetbsd.image.i386): Likewise.
21580 (kopenbsd.image.i386): Likewise.
21581 (kopenbsd.image.x86_64): Likewise.
21582 (knetbsd.miniroot-image.i386.img): Likewise.
21583 (kfreebsd-mfsroot.x86_64.img): Likewise.
21584 (knetbsd.image.x86_64): Likewise.
21585 (knetbsd.miniroot-image.x86_64.img): Likewise.
21586 (kfreebsd-mfsroot.i386.gz): Likewise.
21587 (bootcheck-kfreebsd-i386): Likewise.
21588 (kfreebsd-mfsroot.x86_64.gz): Likewise.
21589 (bootcheck-kfreebsd-x86_64): Likewise.
21590 (knetbsd.miniroot-image.i386.gz): Likewise.
21591 (bootcheck-knetbsd-i386): Likewise.
21592 (bootcheck-kopenbsd-i386): Likewise.
21593 (bootcheck-kopenbsd-x86_64): Likewise.
21594 (knetbsd.miniroot-image.x86_64.gz): Likewise.
21595 (bootcheck-knetbsd-x86_64): Likewise.
21596 (bootcheck-linux-i386): Likewise.
21597 (bootcheck-linux-x86_64): Likewise.
21598 (bootcheck-linux16-i386): Likewise.
21599 (bootcheck-linux16-x86_64): Likewise.
21600 (bootcheck-multiboot): Likewise.
21601 (bootcheck-multiboot2): Likewise.
21602 (bootcheck-kfreebsd-aout): Likewise.
21603 (bootcheck-pc-chainloader): Likewise.
21604 (bootcheck-ntldr): Likewise.
21605 (CLEANFILES): Add new targets.
21606 (BOOTCHECKS): New variable.
21607 (.PHONY): Add bootchecks.
21608 (SUCCESSFUL_BOOT_STRING): New variable.
21609 (BOOTCHECK_TIMEOUT): Likewise.
21610 (bootcheck): New target
21611 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
21612 * configure.ac: Correct efiemu excuse.
21613 * docs/grub.texi (Supported kernels): New chapter.
21614 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
21615 include/grub/mm_private.h. Simplify inclusion of
21616 include/grub/boot.h, include/grub/loader.h
21617 and include/grub/msdos_partition.h
21618 (KERNEL_HEADER_FILES) [i386_coreboot]:
21619 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
21620 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
21621 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
21622 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
21623 include/grub/machine/loader.h.
21624 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
21625 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
21626 extra_dist.
21627 (pci.mod): Enable on i386-multiboot.
21628 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
21629 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
21630 i386-qemu.
21631 (relocator.mod): Rewritten.
21632 (aout.mod): Enable on all x86.
21633 (bsd.mod): Likewise.
21634 (ntldr.mod): New module.
21635 (linux.mod): Use loader/i386/linux.c on all x86.
21636 (xnu.mod): Enable on all x86.
21637 (vga_text.mod): disable on EFI and QEMU.
21638 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
21639 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
21640 * grub-core/efiemu/loadcore.c: Likewise.
21641 * grub-core/efiemu/main.c: Likewise.
21642 (grub_efiemu_exit_boot_services): Removed.
21643 (grub_efiemu_finish_boot_services): Likewise.
21644 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
21645 function.
21646 * grub-core/efiemu/i386/nocfgtables.c: New file.
21647 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
21648 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
21649 (grub_efi_finish_boot_services): Moved from here ...
21650 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
21651 Fille finish memory map and related data.
21652 (finish_mmap_buf): New variable.
21653 (grub_efi_uintn_t finish_mmap_size): Likewise.
21654 (grub_efi_uintn_t finish_key): Likewise.
21655 (grub_efi_uintn_t finish_desc_size): Likewise.
21656 (grub_efi_uint32_t finish_desc_version): Likewise.
21657 (grub_efi_is_finished): Likewise.
21658 (grub_efi_get_memory_map): Use saved memory map if EFI is already
21659 finished.
21660 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
21661 (grub_elf64_phdr_iterate): Likewise.
21662 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
21663 (grub_os_area_size): Likewise.
21664 (grub_machine_init): Don't reserve os area.
21665 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
21666 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
21667 * grub-core/kern/i386/loader.S: Removed.
21668 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
21669 (grub_os_area_size): Likewise.
21670 (grub_machine_init): Don't reserve os area.
21671 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
21672 Don't call grub_dl_unload_all.
21673 Don't include loader.S.
21674 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
21675 Declare the memory after _end as available.
21676 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 21677 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 21678 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
21679 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
21680 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
21681 * include/grub/mm_private.h (grub_mm_header): ... here.
21682 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
21683 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
21684 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
21685 (grub_mm_region): ..here. Removed addr. Added pre_size.
21686 All users updated.
21687 * grub-core/kern/mm.c (base): Renamed to ...
21688 (grub_mm_base): ... this. Made global.
21689 (grub_real_malloc): Alloc from end of region.
21690 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
21691 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
21692 * grub-core/kern/powerpc/cache_flush.S: ... here.
21693 * grub-core/lib/efi/relocator.c: New file.
21694 * grub-core/lib/i386/relocator.c: Rewritten.
21695 * grub-core/lib/i386/relocator16.S: New file.
21696 * grub-core/lib/i386/relocator32.S: Likewise.
21697 * grub-core/lib/i386/relocator64.S: Likewise.
21698 * grub-core/lib/i386/relocator_asm.S: Rewritten.
21699 * grub-core/lib/i386/relocator_common.S: New file.
21700 * grub-core/lib/ieee1275/relocator.c: Likewise.
21701 * grub-core/lib/mips/relocator.c: Rewritten.
21702 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
21703 stylistic adjustments.
21704 * grub-core/lib/powerpc/relocator.c: New file.
21705 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
21706 * grub-core/lib/relocator.c: Rewritten.
21707 * grub-core/lib/x86_64/relocator_asm.S: New file.
21708 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
21709 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
21710 (bsd_tag): New struct.
21711 (tags): New variable.
21712 (tags_last): Likewise.
21713 (netbsd_module): New struct.
21714 (netbsd_mods): New variable.
21715 (netbsd_mods_last): Likewise.
21716 (openbsd_opts): New parameter "serial".
21717 (OPENBSD_SERIAL_ARG): New definition.
21718 (netbsd_opts): New parameter "serial".
21719 (NETBSD_SERIAL_ARG): New definition.
21720 (grub_freebsd_add_meta): Reorganised into ...
21721 (grub_bsd_add_meta): ...this. All users updated.
21722 (grub_freebsd_add_mmap): Reorganised into ...
21723 (generate_e820_mmap): ...this...
21724 (grub_bsd_add_mmap): ...and this. All users updated.
21725 (grub_freebsd_list_modules): Use tags.
21726 (grub_netbsd_add_meta_module): New function.
21727 (grub_netbsd_list_modules): Likewise.
21728 (grub_freebsd_boot): Use relocator and finish EFI.
21729 (grub_openbsd_boot): Likewise.
21730 (grub_netbsd_setup_video): New function.
21731 (grub_netbsd_add_modules): Likewise.
21732 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
21733 and finish EFI.
21734 (grub_bsd_unload): Unload tags.
21735 (grub_bsd_load_aout): Use relocator.
21736 (grub_bsd_elf32_size_hook): New function.
21737 (grub_bsd_elf32_hook): Use relocator.
21738 (grub_bsd_elf64_size_hook): New function.
21739 (grub_bsd_elf64_hook): Use relocator.
21740 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
21741 (grub_bsd_load): Zero-out openbsd_ramdisk.
21742 (grub_bsd_load): Use relocator.
21743 (grub_cmd_openbsd): Support serial.
21744 (grub_cmd_netbsd): Support modules.
21745 (grub_cmd_freebsd_module): Use relocator.
21746 (grub_netbsd_module_load): New function.
21747 (grub_cmd_netbsd_module): Likewise.
21748 (grub_cmd_openbsd_ramdisk): Likewise.
21749 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
21750 kopenbsd_ramdisk.
21751 (GRUB_MOD_FINI): Unregister new commands.
21752 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
21753 (grub_freebsd_load_elfmodule_obj): Use relocator.
21754 (grub_freebsd_load_elfmodule): Likewise.
21755 (grub_freebsd_load_elf_meta): Likewise.
21756 (grub_netbsd_load_elf_meta): New function.
21757 (grub_openbsd_find_ramdisk): Likewise.
21758 * grub-core/loader/i386/bsd_helper.S: Removed.
21759 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
21760 * grub-core/loader/i386/bsd_trampoline.S: Removed.
21761 * grub-core/loader/i386/efi/linux.c: Likewise.
21762 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
21763 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
21764 (DEFAULT_VIDEO_MODE): Likewise.
21765 (real_mode_target): New variable.
21766 (prot_mode_target): Likewise.
21767 (initrd_mem_target): Likewise.
21768 (relocator): Likewise.
21769 (efi_mmap_buf): Likewise.
21770 (efi_mmap_size): Likewise.
21771 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
21772 (free_pages): Use relocator.
21773 (allocate_pages): Account for efi_mmap and use relocator. Return error.
21774 (grub_linux_setup_video): Return error.
21775 (grub_linux_trampoline_start): Removed.
21776 (grub_linux_trampoline_end): Likewise.
21777 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
21778 andd video parameters depending on firmware.
21779 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
21780 [GRUB_MACHINE_EFI]: Pass EFI parameters.
21781 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
21782 (grub_cmd_initrd): Use relocator.
21783 * grub-core/loader/i386/linux_trampoline.S: Removed.
21784 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
21785 (elf_sec_entsize): Likewise.
21786 (elf_sec_shstrndx): Likewise.
21787 (elf_sections): Likewise.
21788 (grub_multiboot_load): Use relocator.
21789 (grub_multiboot_get_mbi_size): Account for sections.
21790 (grub_multiboot_make_mbi): Use relocator and support sections.
21791 (grub_multiboot_add_elfsyms): New function.
21792 (grub_multiboot_free_mbi): Free sections.
21793 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
21794 (grub_linux_real_target): Likewise.
21795 (grub_linux_real_chunk): Likewise.
21796 (grub_linux16_prot_size): Likewise.
21797 (grub_linux16_boot): Use relocator.
21798 (grub_linux_unload): Unload relocator.
21799 (grub_cmd_linux): Use relocator.
21800 (grub_cmd_initrd): Likewise.
21801 * grub-core/loader/i386/pc/ntldr.c: New file.
21802 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
21803 Don't try to guess CPU frequency.
21804 (grub_xnu_set_video): Stretch bitmap.
21805 (grub_xnu_boot): Use relocator.
21806 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
21807 (grub_linux_unload): Free relocator.
21808 (grub_linux_load32): Use relocator.
21809 (grub_linux_load64): Likewise.
21810 (grub_cmd_initrd): Likewise.
21811 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
21812 (grub_multiboot_unload): Unload relocator.
21813 (grub_cmd_multiboot): Use relocator.
21814 (grub_cmd_module): Likewise.
21815 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
21816 Use relocator and support sections.
21817 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
21818 (elf_sec_entsize): Likewise.
21819 (elf_sec_shstrndx): Likewise.
21820 (elf_sections): Likewise.
21821 (grub_multiboot_load): Use relocator.
21822 (grub_multiboot_get_mbi_size): Account for sections.
21823 (grub_multiboot_make_mbi): Use relocator and support sections.
21824 (grub_multiboot_add_elfsyms): New function.
21825 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
21826 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
21827 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
21828 Prototype changed. All users updated.
21829 (grub_xnu_align_heap): Simplified.
21830 (grub_xnu_writetree_toheap): Likewise.
21831 (grub_xnu_unload): Unload relocator.
21832 (grub_cmd_xnu_kernel): Use relocator.
21833 (grub_cmd_xnu_kernel64): Likewise.
21834 (grub_xnu_register_memory): Simplified.
21835 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
21836 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
21837 EFI is finished.
21838 (grub_console_checkkey): Likewise.
21839 (grub_console_getkey): Likewise.
21840 (grub_console_getwh): Likewise.
21841 (grub_console_getxy): Likewise.
21842 (grub_console_gotoxy): Likewise.
21843 (grub_console_cls): Likewise.
21844 (grub_console_setcolorstate): Likewise.
21845 (grub_console_setcursor): Likewise.
21846 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
21847 * grub-core/tests/boot/kbsd.init-i386.S: New file.
21848 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
21849 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
21850 * grub-core/tests/boot/kernel-8086.S: Likewise.
21851 * grub-core/tests/boot/kernel-i386.S: Likewise.
21852 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
21853 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
21854 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
21855 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
21856 * grub-core/tests/boot/knetbsd.cfg: Likewise.
21857 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
21858 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
21859 * grub-core/tests/boot/linux.cfg: Likewise.
21860 * grub-core/tests/boot/linux.init-i386.S: Likewise.
21861 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
21862 * grub-core/tests/boot/linux16.cfg: Likewise.
21863 * grub-core/tests/boot/multiboot.cfg: Likewise.
21864 * grub-core/tests/boot/multiboot2.cfg: Likewise.
21865 * grub-core/tests/boot/ntldr.cfg: Likewise.
21866 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
21867 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
21868 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
21869 New definition.
21870 * include/grub/dl.h (grub_dl_unload_all): Removed.
21871 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
21872 (grub_efi_finish_boot_services): Change prototype.
21873 (grub_efi_is_finished): New variable.
21874 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
21875 Changed prototype.
21876 (grub_efiemu_finish_boot_services): Removed.
21877 (grub_machine_efiemu_init_tables): New prototype.
21878 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
21879 (grub_elf64_phdr_iterate): Likewise.
21880 * include/grub/i386/bsd.h: Include relocator.h.
21881 (freebsd_tag_header): New struct.
21882 (grub_openbsd_bios_mmap): Removed.
21883 (grub_unix_real_boot): Removed.
21884 (grub_freebsd_load_elfmodule32): Changed prototype.
21885 (grub_freebsd_load_elfmodule_obj64): Likewise.
21886 (grub_freebsd_load_elf_meta32): Likewise.
21887 (grub_freebsd_load_elf_meta64): Likewise.
21888 (grub_freebsd_add_meta): Removed.
21889 (grub_netbsd_load_elf_meta32): New prototype.
21890 (grub_netbsd_load_elf_meta64): Likewise.
21891 (grub_bsd_add_meta): Likewise.
21892 (grub_openbsd_ramdisk_descriptor): New struct.
21893 (grub_openbsd_find_ramdisk32): New prototype.
21894 (grub_openbsd_find_ramdisk64): Likewise.
21895 * include/grub/i386/coreboot/loader.h: Removed.
21896 * include/grub/i386/efi/loader.h: Likewise.
21897 * include/grub/i386/ieee1275/loader.h: Likewise.
21898 * include/grub/i386/linux.h (linux_kernel_header): Change void *
21899 to grub_uint32_t.
21900 * include/grub/i386/loader.h: Removed.
21901 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
21902 value.
21903 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
21904 (grub_phys_addr_t): New type.
21905 (grub_vtop): New inline function.
21906 (grub_map_memory): Likewise.
21907 (grub_unmap_memory): Likewise.
21908 * include/grub/i386/multiboot/loader.h: Removed.
21909 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
21910 (NETBSD_BTINFO_CONSOLE): New definition.
21911 (NETBSD_BTINFO_SYMTAB): Likewise.
21912 (NETBSD_BTINFO_MODULES): Likewise.
21913 (NETBSD_BTINFO_FRAMEBUF): Likewise.
21914 (grub_netbsd_bootinfo): New struct.
21915 (grub_netbsd_btinfo_common): Use explicit bitsize.
21916 (grub_netbsd_btinfo_mmap_entry): Removed.
21917 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
21918 (grub_netbsd_btinfo_bootdisk): New struct.
21919 (grub_netbsd_btinfo_symtab): Likewise.
21920 (grub_netbsd_btinfo_serial): Likewise.
21921 (grub_netbsd_btinfo_modules): Likewise.
21922 (grub_netbsd_btinfo_framebuf): Likewise.
21923 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
21924 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
21925 Likewise.
21926 (grub_openbsd_bootargs): Use explicit bitsize.
21927 (grub_openbsd_bootarg_console): New struct.
21928 (GRUB_OPENBSD_COM_MAJOR): New definition.
21929 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
21930 * include/grub/i386/pc/efiemu.h: Removed.
21931 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
21932 * include/grub/i386/qemu/loader.h: Removed.
21933 * include/grub/i386/relocator.h: Rewritten.
21934 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
21935 * include/grub/mips/memory.h: New file.
21936 * include/grub/mips/multiboot.h: Rewritten.
21937 * include/grub/mips/relocator.h: Rewritten.
21938 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
21939 (grub_vtop): New function.
21940 (grub_map_memory): Likewise.
21941 (grub_unmap_memory): Likewise.
21942 * include/grub/misc.h (ALIGN_DOWN): New definition.
21943 * include/grub/mm.h (grub_mm_check_real): New proto.
21944 (GRUB_MM_CHECK): New definition.
21945 * include/grub/mm_private.h: New file.
21946 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
21947 (grub_multiboot_get_mbi_size): Removed.
21948 (grub_multiboot_make_mbi): Change prottype.
21949 (grub_multiboot_set_accepts_video): New proto.
21950 (grub_multiboot_add_elfsyms): Likewise.
21951 (grub_multiboot_payload_eip): New variable.
21952 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
21953 New prototype.
21954 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
21955 New definition.
21956 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
21957 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
21958 * include/grub/powerpc/ieee1275/loader.h: Removed.
21959 * include/grub/powerpc/memory.h: New file.
21960 * include/grub/powerpc/relocator.h: Likewise.
21961 * include/grub/relocator.h: Likewise.
21962 * include/grub/relocator_private.h: Likewise.
21963 * include/grub/sparc64/ieee1275/loader.h: Removed.
21964 * include/grub/x86_64/memory.h: New file.
21965 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
21966 (grub_xnu_heap_malloc): Likewise.
21967 (grub_xnu_heap_real_start): Removed.
21968 (grub_xnu_heap_start): Likewise.
21969 (grub_xnu_relocator): New variable.
21970 (grub_xnu_heap_target_start): Likewise.
21971 * tests/util/grub-shell.in: Support non-pc.
21972 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 21973
5303b85d
VS
219742010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21975
21976 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
21977 on malloc error.
21978 (grub_bidi_logical_to_visual): Check that malloc succeded.
21979 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
21980 puts.
21981 (grub_xputs_normal): Likewise.
21982
d768d159
VS
219832010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21984
21985 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
21986 extra_dist.
21987
219882010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21989
21990 * grub-core/efiemu/runtime/efiemu.sh: Removed.
21991
5bf84df4
VS
219922010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21993
21994 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
21995
3626810e
VS
219962010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21997
21998 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
21999 dprintf.
22000
a7363f53
BC
220012010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
22002
22003 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
22004
902f75f6
VS
220052010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22006
22007 * grub-core/normal/term.c (print_more): Fix a memory leak.
22008 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
22009 (grub_xputs_normal): Likewise.
22010
3c707967
VS
220112010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22012
22013 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
22014 the begining of the string
22015
2053cc07
VS
220162010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22017
22018 * grub-core/script/script.c (grub_script_parse): Free parsed on
22019 failure.
22020
46422ebf
VS
220212010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22022
22023 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
22024 on failure.
22025
9e0fa3f6
VS
220262010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22027
22028 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
22029 return.
22030
3393cf16
VS
220312010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22032
22033 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
22034 (scroll_up): Fix a memory leak.
22035
b17540cb
VS
220362010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22037
22038 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
22039 errors.
22040
67140446
VS
220412010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
22042
22043 Handle USB pendrives exposed as floppies.
22044
22045 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
22046 floppy.
22047 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22048 Check for partitions on all devices.
22049
e35e46fc
VS
220502010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22051
22052 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
22053 (readkey): Likewise.
22054
d24c6190
BC
220552010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
22056
22057 Multiple variable names support to "export" command.
22058
22059 * normal/context.c (grub_cmd_export): "export" command supports
22060 multiple variable names.
22061
04ddcc6a
ST
220622010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
22063
22064 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
22065 --target=drive output to Mach device name.
22066
0c8b61d8
BC
220672010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22068
22069 New Automake based build system for GRUB.
22070
22071 * ABOUT-NLS: New file.
22072 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
22073 in Makefile.util.def file.
22074 * Makefile.util.def: New file. Autogen build definitions file for
22075 GRUB host utils.
22076 * conf/Makefile.common: New file. Common variables for GRUB host
22077 utils and target modules.
22078 * conf/Makefile.extra-dist: New file. Extra files for make dist.
22079 * docs/Makefile.am: New file. Automake file for docs.
22080 * gentpl.py: New file. Python script to generate Autogen
22081 template.
22082 * grub-core/Makefile.am: New file. GRUB target modules' rules
22083 that doesn't fit in Makefile.core.def file.
22084 * grub-core/Makefile.core.def: New file. Autogen build
22085 definitions file for GRUB target modules.
22086 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
22087 specific setjmp.S file.
22088 * po/Makefile.am: New file.
22089
22090 * .bzrignore: New ignores.
22091 * INSTALL: New requirements, without Ruby.
22092 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
22093 * autogen.sh: Updated to invoke autogen as necessary.
22094 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
22095 and defines for Automake conditionals.
22096 * geninit.sh: Refactoring.
22097
22098 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
22099 necessary.
22100 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
22101 New prototype.
22102
22103 * include/grub/test.h: Fix functional test modules' naming.
22104 * grub-core/tests/example_functional_test.c: Fix test module name.
22105
22106 * util/misc.c: Hosted versions' of grub functions for libgrub.a
22107 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
22108 * util/grub-editenv.c: Likewise.
22109 * util/grub-fstest.c: Likewise.
22110 * util/grub-mkdevicemap.c: Likewise.
22111 * util/grub-mkfont.c: Likewise.
22112 * util/grub-mkimage.c: Likewise.
22113 * util/grub-mkpasswd-pbkdf2.c: Likewise.
22114 * util/grub-probe.c: Likewise.
22115 * util/grub-script-check.c: Likewise.
22116 * util/i386/pc/grub-setup.c: Likewise.
22117 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22118
22119 * tests/util/grub-shell.in: Fix override directory path.
22120 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
22121 * util/import_gcry.py: Create Makefile.gcry.def file instead.
22122
22123 * util/lvm.c: Update #includes.
22124 * util/raid.c: Likewise.
22125 * util/resolve.c: Likewise.
22126 * grub-core/bus/emu/pci.c: Likewise.
22127 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
22128 * grub-core/lib/posix_wrap/string.h: Likewise.
22129 * grub-core/kern/emu/main.c: Likewise.
22130
22131 * grub-core/gensymlist.sh: New file. Script for generating kernel
22132 symbols file.
22133 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
22134
22135 * grub-core/gentrigtables.c: Fix unused variable warnings.
22136
22137 * Makefile.in: Removed.
22138 * conf/any-emu.rmk: Removed.
22139 * conf/common.rmk: Removed.
22140 * conf/i386-coreboot.rmk: Removed.
22141 * conf/i386-efi.rmk: Removed.
22142 * conf/i386-ieee1275.rmk: Removed.
22143 * conf/i386-multiboot.rmk: Removed.
22144 * conf/i386-pc.rmk: Removed.
22145 * conf/i386-qemu.rmk: Removed.
22146 * conf/i386.rmk: Removed.
22147 * conf/mips-yeeloong.rmk: Removed.
22148 * conf/mips.rmk: Removed.
22149 * conf/powerpc-ieee1275.rmk: Removed.
22150 * conf/sparc64-ieee1275.rmk: Removed.
22151 * conf/tests.rmk: Removed.
22152 * conf/x86-efi.rmk: Removed.
22153 * conf/x86_64-efi.rmk: Removed.
22154 * gendistlist.sh: Removed.
22155 * geninitheader.sh: Removed.
22156 * genkernsyms.sh.in: Removed.
22157 * genmk.rb: Removed.
22158 * gensymlist.sh.in: Removed.
22159 * mkinstalldirs: Removed.
22160 * boot: Moved ...
22161 * grub-core/boot: ... to here.
22162 * bus: Moved ...
22163 * grub-core/bus: ... to here.
22164 * commands: Moved ...
22165 * grub-core/commands: ... to here.
22166 * disk: Moved ...
22167 * grub-core/disk: ... to here.
22168 * efiemu: Moved ...
22169 * grub-core/efiemu: ... to here.
22170 * font: Moved ...
22171 * grub-core/font: ... to here.
22172 * fs: Moved ...
22173 * grub-core/fs: ... to here.
22174 * gencmdlist.sh: Moved ...
22175 * grub-core/gencmdlist.sh: ... to here.
22176 * genemuinit.sh: Moved ...
22177 * grub-core/genemuinit.sh: ... to here.
22178 * genemuinitheader.sh: Moved ...
22179 * grub-core/genemuinitheader.sh: ... to here.
22180 * genfslist.sh: Moved ...
22181 * grub-core/genfslist.sh: ... to here.
22182 * genhandlerlist.sh: Moved ...
22183 * grub-core/genhandlerlist.sh: ... to here.
22184 * genmoddep.awk: Moved ...
22185 * grub-core/genmoddep.awk: ... to here.
22186 * genmodsrc.sh: Moved ...
22187 * grub-core/genmodsrc.sh: ... to here.
22188 * genpartmaplist.sh: Moved ...
22189 * grub-core/genpartmaplist.sh: ... to here.
22190 * genparttoollist.sh: Moved ...
22191 * grub-core/genparttoollist.sh: ... to here.
22192 * genterminallist.sh: Moved ...
22193 * grub-core/genterminallist.sh: ... to here.
22194 * gentrigtables.c: Moved ...
22195 * grub-core/gentrigtables.c: ... to here.
22196 * genvideolist.sh: Moved ...
22197 * grub-core/genvideolist.sh: ... to here.
22198 * gettext: Moved ...
22199 * grub-core/gettext: ... to here.
22200 * gfxmenu: Moved ...
22201 * grub-core/gfxmenu: ... to here.
22202 * gnulib: Moved ...
22203 * grub-core/gnulib: ... to here.
22204 * hello: Moved ...
22205 * grub-core/hello: ... to here.
22206 * hook: Moved ...
22207 * grub-core/hook: ... to here.
22208 * io: Moved ...
22209 * grub-core/io: ... to here.
22210 * kern: Moved ...
22211 * grub-core/kern: ... to here.
22212 * lib: Moved ...
22213 * grub-core/lib: ... to here.
22214 * loader: Moved ...
22215 * grub-core/loader: ... to here.
22216 * mmap: Moved ...
22217 * grub-core/mmap: ... to here.
22218 * normal: Moved ...
22219 * grub-core/normal: ... to here.
22220 * partmap: Moved ...
22221 * grub-core/partmap: ... to here.
22222 * parttool: Moved ...
22223 * grub-core/parttool: ... to here.
22224 * script: Moved ...
22225 * grub-core/script: ... to here.
22226 * term: Moved ...
22227 * grub-core/term: ... to here
22228 * tests/example_functional_test.c: Moved ...
22229 * grub-core/tests/example_functional_test.c: ... to here.
22230 * tests/lib/functional_test.c: Moved ...
22231 * grub-core/tests/lib/functional_test.c: ... to here.
22232 * tests/lib/test.c: Moved ...
22233 * grub-core/tests/lib/test.c: ... to here.
22234 * video: Moved ...
22235 * grub-core/video: ... to here.
22236
645586e6
BC
222372010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22238
22239 Replace --enable-grub-emu-modules with grub-emu-lite.
22240
22241 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
22242 cache.S.
22243
22244 * include/grub/emu/misc.h (grub_emu_init): New prototype.
22245 * kern/emu/full.c: New file. For grub-emu specific initialization.
22246 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
22247 * kern/emu/main.c: Call initialization function grub_emu_init.
22248
22249 * Makefile.in: Include grub-emu-lite in install.
22250 * commands/parttool.c: Use grub_no_autoload to differentiate
22251 between grub-emu and grub-emu-lite.
22252 * include/grub/misc.h: New variable grub_no_autoload.
22253
22254 * conf/any-emu.rmk: New rules for grub-emu-lite.
22255 * configure.ac: Remove --enable-grub-emu-modules.
22256 * genmk.rb: Cleanup unnecessary rules.
22257 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
22258
22259 * normal/main.c: Don't load list files on grub-emu-lite.
22260 * util/misc.c (grub_arch_sync_caches): Removed.
22261
f86a4030
CW
222622010-08-23 Colin Watson <cjwatson@ubuntu.com>
22263
22264 * kern/mips/startup.S (grub_prefix): Update comment to refer to
22265 grub-mkimage rather than grub-mkelfimage.
22266 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
22267
06776944
VS
222682010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
22269
22270 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
22271 a key after CapsLock or NumLock. It's just a qemu bug.
22272
df262419
VS
222732010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22274
22275 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
22276 needed by libusb wrapper.
22277
b40ea81b
ST
222782010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
22279
22280 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
22281
dee50575
VS
222822010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22283
22284 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
22285 --nounzip is passed.
22286
fb1d7b79
VS
222872010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
22288
22289 USB hotunplugging and USB serial support.
22290
22291 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
22292 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
22293 (grub_uhci_transfer): Respect timeout and set *actual.
22294 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
22295 non-standard length.
22296 (grub_usb_device_attach): Autoload modules.
22297 (GRUB_MOD_INIT): Set grub_term_poll_usb.
22298 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
22299 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
22300 users updated.
22301 (grub_usb_add_hub): Fill nports and children.
22302 (attach_root_port): Receive hub instead of controller.
22303 All users updated. Fill hub->devices.
22304 (grub_usb_root_hub): Allocate hub->devices.
22305 (detach_device): New function.
22306 (poll_nonroot_hub): Fill children and detach devices.
22307 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
22308 actual arguments. All users updated.
22309 (grub_usb_bulk_read_extended): New function.
22310 * bus/usb/serial/common.c: New file.
22311 * bus/usb/serial/ftdi.c: Likewise.
22312 * bus/usb/serial/pl2303.c: Likewise.
22313 * commands/terminal.c (handle_command): Support wildcard.
22314 * commands/usbtest.c: Output "Unknown" instead of empty string.
22315 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
22316 (usbserial_common_mod_SOURCES): New variable.
22317 (usbserial_common_mod_CFLAGS): Likewise.
22318 (usbserial_common_mod_LDFLAGS): Likewise.
22319 (pkglib_MODULES): Add usbserial_pl2303.mod.
22320 (usbserial_pl2303_mod_SOURCES): New variable.
22321 (usbserial_pl2303_mod_CFLAGS): Likewise.
22322 (usbserial_pl2303_mod_LDFLAGS): Likewise.
22323 (pkglib_MODULES): Add usbserial_ftdi.mod.
22324 (usbserial_ftdi_mod_SOURCES): New variable.
22325 (usbserial_ftdi_mod_CFLAGS): Likewise.
22326 (usbserial_ftdi_mod_LDFLAGS): Likewise.
22327 (pkglib_MODULES): Add serial.mod.
22328 (serial_mod_SOURCES): New variable.
22329 (serial_mod_CFLAGS): Likewise.
22330 (serial_mod_LDFLAGS): Likewise.
22331 * conf/i386-pc.rmk: Likewise.
22332 * conf/mips-yeeloong.rmk: Likewise.
22333 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
22334 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22335 * disk/usbms.c (first_available_slot): New variable.
22336 (grub_usbms_attach): Don't reuse free slots due to potential cache
22337 problems.
22338 * include/grub/serial.h: Moved to ..
22339 * include/grub/ns8250.h: ...this.
22340 * include/grub/serial.h: New file.
22341 * include/grub/term.h (grub_term_poll_usb): New variable.
22342 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
22343 readkey. All users updated.
22344 (grub_terminfo_output_state): Pass term to put.
22345 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
22346 (grub_usb_controller_dev): Add timeout and actual arguments to
22347 transfer. All users updated.
22348 (grub_usb_interface): New field detach_data.
22349 (grub_usb_device): New fields children and nports.
22350 (grub_usb_ep_type_t): New type.
22351 (grub_usb_get_ep_type): New function.
22352 (grub_usb_bulk_read_extended): Likewise.
22353 * include/grub/usbdesc.h (grub_usb_desc): New type.
22354 * include/grub/usbserial.h: New file.
22355 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
22356 * kern/term.c (grub_term_poll_usb): New variable.
22357 (grub_getkey): Call grub_term_poll_usb if set.
22358 (grub_checkkey): Likewise.
22359 (grub_getkeystatus): Likewise.
22360 * term/serial.c: Moved controller-specific parts to ...
22361 * term/ns8250.c: ... here.
22362 * term/serial.c: Mostly rewritten.
22363 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
22364 according to spec.
22365
21a313de
RM
223662010-08-20 Robert Millan <rmh@gnu.org>
22367
22368 Make kFreeBSD code more generic to support ext2fs as root, ufs as
22369 a separate module and maybe other interesting combinations.
22370
22371 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
22372 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
22373 (kfreebsd_entry): Add generic filesystem module load routine.
22374 Map GRUB `ext2' to kFreeBSD `ext2fs'.
22375
63c734a6
CW
223762010-08-20 Colin Watson <cjwatson@ubuntu.com>
22377
22378 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
22379 "numcenter" (I misunderstood the purpose of this entry).
22380 * docs/grub.texi (sendkey): Likewise.
22381
c4d16542
CW
223822010-08-20 Colin Watson <cjwatson@ubuntu.com>
22383
22384 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
22385 status flag options; simply omitting the option is equivalent and
22386 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
22387 (keysym_table): Rename "num5numlock" to "numlock".
22388 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
22389 can uniformly say that only the last of multiple `sendkey'
22390 invocations has any effect.
22391 * docs/grub.texi (sendkey): New section.
22392
93541d66
CW
223932010-08-19 Colin Watson <cjwatson@ubuntu.com>
22394
22395 * commands/i386/pc/sendkey.c (options): Fix three typos.
22396
b4ece5e1
VS
223972010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
22398
22399 Implement sendkey support.
22400
22401 * commands/i386/pc/sendkey.c: New file.
22402 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
22403 (sendkey_mod_SOURCES): New variable.
22404 (sendkey_mod_CFLAGS): Likewise.
22405 (sendkey_mod_LDFLAGS): Likewise.
22406
51f1f5af
CW
224072010-08-18 Colin Watson <cjwatson@ubuntu.com>
22408
22409 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
22410 fix warnings from Autoconf.
22411
9da94e05
CW
224122010-08-18 Colin Watson <cjwatson@ubuntu.com>
22413
22414 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
22415 to avoid false positives with some assemblers that output things
22416 like "someprefix_func" as part of their output.
22417
729a0f2e
RM
224182010-08-15 Robert Millan <rmh@gnu.org>
22419
22420 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
22421 errors.
22422 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
22423 grub_get_libzfs_handle() errors.
22424
f3710e08
RM
224252010-08-14 Robert Millan <rmh@gnu.org>
22426
22427 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
22428 filesystem is not ZFS.
22429
7a3c13de
BC
224302010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22431
22432 Fix for misspelled color names defaulting to black/black (bug
22433 reported by Doug Nazar)
22434
22435 * include/grub/normal.h (grub_parse_color_name_pair): Add return
22436 status to prototype.
22437 * normal/color.c (grub_parse_color_name_pair): Return failure
22438 status.
22439 (grub_env_write_color_normal): Ignore bad color names.
22440 (grub_env_write_color_highlight): Likewise.
22441 * normal/main.c (GRUB_MOD_INIT): Set default color names.
22442
ab8ba50d
BC
224432010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22444
22445 "shift" command support to GRUB script.
22446
22447 * include/grub/script_sh.h (grub_script_shift): New prototype.
22448 * script/execute.c (grub_script_shift): New function.
22449 * script/main.c (grub_script_init): Register shift command.
22450 (grub_script_fini): Unregister shift command.
22451 * util/grub-script-check.c (grub_script_cmd_shift): New function.
22452
22453 * tests/grub_script_shift.in: New testcase.
22454 * conf/tests.rmk: Rules for new testcase.
22455
4d61999e
BC
224562010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22457
22458 "continue" command support to GRUB script.
22459
22460 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
22461 (grub_script_break): Continue support.
22462 * script/main.c (grub_script_init): Register continue command.
22463 (grub_script_fini): Unregister continue command.
22464
22465 * tests/grub_script_continue.in: New testcase.
22466 * conf/tests.rmk: Rules for new testcase.
22467
4df51e00
BC
224682010-08-12 BVK Chaitanya <bvk@dbook>
22469
22470 "break" command support to GRUB script.
22471
22472 * conf/common.rmk: Rule updates to grub-script-check.
22473 * include/grub/misc.h (grub_min): New function.
22474 * include/grub/script_sh.h (grub_script_init): New prototype.
22475 (grub_script_fini): New prototype.
22476 (grub_script_break): New prototype.
22477 * script/main.c (grub_script_init): New function.
22478 (grub_script_fini): New function.
22479 * script/execute.c (grub_script_break): New function.
22480 * normal/main.c: Calls to grub_script_{init,fini}.
22481 * util/grub-script-check.c (grub_script_break): New function.
22482
22483 * tests/grub_script_break.in: New testcase.
22484 * conf/tests.rmk: Rules for new test case.
22485
f12c8420
BC
224862010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22487
22488 Function parameters support to GRUB script.
22489
22490 * script/yylex.l (VARIABLE): Regular expression update.
22491 * script/function.c (grub_script_function_call): Moved ...
22492 * script/execute.c (grub_script_function_call): ... to here.
22493 (grub_script_execute_arglist_to_argv): Removed.
22494 (grub_script_arglist_to_argv): New function.
22495 * script/argv.c: New file.
22496 (grub_script_argv_free): New function.
22497 (grub_script_argv_next): Likewise.
22498 (grub_script_argv_append): Likewise.
22499 (grub_script_argv_split_append): Likewise.
22500 * include/grub/script_sh.h (grub_script_argv): New struct.
22501 (grub_script_argv_free): New function.
22502 (grub_script_argv_next): Likewise.
22503 (grub_script_argv_append): Likewise.
22504 (grub_script_argv_split_append): Likewise.
22505
22506 * conf/common.rmk (normal.mod): New source script/argv.c.
22507
22508 * tests/grub_script_echo1.in: More tests.
22509 * tests/grub_script_vars1.in: Likewise.
22510 * tests/grub_script_functions.in: New test case.
22511 * conf/tests.rmk: Rules for new testcase.
22512
8022b748
BC
225132010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22514
22515 Remove grub_script_cmdblock struct.
22516
22517 * include/grub/script_sh.h: Remove grub_script_cmdblock.
22518 * script/parser.y: Likewise.
22519 * script/execute.c: Rename cmdblock suffix to cmdlist.
22520 * script/script.c: Likewise.
22521 * util/grub-script-check.c: Likewise.
22522
79a6ba61
YB
225232010-08-11 Yves Blusseau <blusseau@zetam.org>
22524
22525 * .bzrignore: add grub-macho2img
22526
d04b9414
VS
225272010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22528
22529 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
22530
f947ab49
VS
225312010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22532
22533 Remove the dump of sm712 initialisation sequence.
22534
22535 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
22536 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
22537 (GRUB_VGA_IO_MISC_WRITE): Likewise.
22538 (GRUB_VGA_CR_*): Added many registers.
22539 (GRUB_VGA_SR_*): Likewise.
22540 (GRUB_VGA_GR_*): Likewise.
22541 (grub_vga_write_arx): New function.
22542 (grub_video_hw_config): New struct.
22543 (grub_vga_set_geometry): New function.
22544 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
22545 GRUB_PCI_CLASS_SUBCLASS_VGA.
22546 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
22547 * video/sm712.c (grub_sm712_write_reg): New function
22548 (grub_sm712_read_reg): Likewise.
22549 (grub_sm712_sr_write): Likewise.
22550 (grub_sm712_gr_write): Likewise.
22551 (grub_sm712_cr_write): Likewise.
22552 (grub_sm712_write_arx): Likewise.
22553 (grub_sm712_cr_shadow_write): Likewise.
22554 (grub_sm712_write_dda_lookup): Likewise.
22555 (grub_video_sm712_setup): Initialise the video rather then
22556 blindly replay the dump.
22557 (main) [TEST]: Add a routine to be able to compile as standalone for
22558 tests.
22559 * video/sm712_init.c (sm712_init): Removed.
22560 (sm712_sr_seq1): New array.
22561 (sm712_sr_seq2): Likewise.
22562
f0206638
VS
225632010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22564
22565 * include/grub/vga.h: Add missing grub/pci.h include.
22566
2764da3b
YB
225672010-08-10 Yves Blusseau <blusseau@zetam.org>
22568
22569 * util/grub-macho2img.c (main): fix typo
22570
cf0c775e
VS
225712010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22572
22573 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
22574 (grub_vga_gr_read): Likewise.
22575 (grub_vga_cr_write): Likewise.
22576 (grub_vga_cr_read): Likewise.
22577 (grub_vga_sr_write): Likewise.
22578 (grub_vga_sr_read): Likewise.
22579 (grub_vga_palette_read): Likewise.
22580 (grub_vga_palette_write): Likewise.
22581 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
22582 (grub_sm712_sr_read): New function.
22583 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
22584 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
22585
07f360e9
RM
225862010-08-09 Robert Millan <rmh@gnu.org>
22587
22588 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
22589 out unused variables on non-ZFS build.
22590
346c2072
RM
225912010-08-08 Robert Millan <rmh@gnu.org>
22592
22593 Fix path generation for sub-filesystems in ZFS.
22594
22595 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
22596 missing slash.
22597
71175420
RM
225982010-08-08 Robert Millan <rmh@gnu.org>
22599
22600 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
22601
0d8286f3
RM
226022010-08-08 Robert Millan <rmh@gnu.org>
22603
22604 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
22605 exist, issue a proper error message (rely on `ls' for translated
22606 strings).
22607
55dd2924
RM
226082010-08-08 Robert Millan <rmh@gnu.org>
22609
22610 Fix grub-probe invocation.
22611
22612 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
22613
d3dd9e80
RM
226142010-08-04 Robert Millan <rmh@gnu.org>
22615
22616 * configure.ac: Remove checks for getfsstat() and getmntany().
22617 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
22618 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
22619 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
22620 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
22621 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
22622 function.
22623 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
22624 via find_mount_point_from_dir() and getfsstat() / getmntany().
22625
0de22aa9
RM
226262010-08-04 Robert Millan <rmh@gnu.org>
22627
22628 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22629 (grub_find_zpool_from_mount_point): Merge into ...
22630 (grub_find_zpool_from_dir): ... this.
22631 * kern/emu/misc.c: Likewise.
22632
22633 * kern/emu/misc.c
22634 (grub_make_system_path_relative_to_its_root): Replace
22635 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
22636 with grub_find_zpool_from_dir().
22637 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
22638
62858144
RM
226392010-08-04 Robert Millan <rmh@gnu.org>
22640
22641 Support OpenSolaris in ZFS device resolution.
22642
22643 * configure.ac: Check for getmntany().
22644 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
22645 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
22646 support.
22647
9dd6fd50
RM
226482010-08-03 Robert Millan <rmh@gnu.org>
22649
22650 Fix grub-emu build.
22651
22652 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
22653 * include/grub/emu/misc.h: ... here.
22654
22655 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
22656 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
22657
22658 * util/misc.c: Remove `<grub/util/libzfs.h>'.
22659 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
22660 (grub_get_libzfs_handle): Move to ...
22661 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
22662 (grub_get_libzfs_handle): ... here.
22663
c9f7ff97
BC
226642010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
22665
22666 * script/execute.c (grub_script_execute_cmdline): Check for NULL
22667 as command name case.
22668
a870a783
CW
226692010-08-02 Colin Watson <cjwatson@ubuntu.com>
22670
22671 * disk/raid.c (insert_array): Select unique numbers for named arrays
22672 as well, for use as keys in the disk cache.
22673
c7db243b
RM
226742010-08-01 Robert Millan <rmh@gnu.org>
22675
22676 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
22677 kFreeBSD device name, except on ZFS where the filesystem label is
22678 used.
22679 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
22680 `/boot/zfs/zpool.cache'.
22681 Set mountfrom kernel variable using ${kfreebsd_device}.
22682
f7abdefb
RM
226832010-08-01 Robert Millan <rmh@gnu.org>
22684
22685 Make it even harder to use uninitialized `libzfs_handle' (and
22686 make the interface a bit simpler).
22687
22688 * include/grub/util/misc.h (grub_util_init_libzfs)
22689 (libzfs_handle): Remove.
22690 (grub_get_libzfs_handle): New prototype.
22691
22692 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
22693 attribute.
22694 (grub_util_init_libzfs): Remove.
22695 (grub_get_libzfs_handle): New function.
22696
22697 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
22698 grub_get_libzfs_handle() to obtain a libzfs handle instead of
22699 accessing `libzfs_handle' directly.
22700
c882acc0
RM
227012010-08-01 Robert Millan <rmh@gnu.org>
22702
22703 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22704 (grub_find_zpool_from_mount_point): New function prototypes.
22705
22706 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22707 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22708
22709 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22710 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22711 `static' attribute.
22712
22713 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22714 finding zpool from mount point into ...
22715 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22716
22717 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22718 requested path is part of a ZFS pool, use
22719 grub_find_zpool_from_mount_point() to detect its filesystem name,
22720 and generate a path with `/fsname@path' syntax.
22721
8bfe31d8
CW
227222010-08-01 Colin Watson <cjwatson@ubuntu.com>
22723
22724 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
22725 (void) rather than () so that this is a proper prototype.
22726
553df63d
VS
227272010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22728
22729 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
22730
8687cf07
VS
227312010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22732
22733 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
22734 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
22735
ea9be8ea
CW
227362010-08-01 Colin Watson <cjwatson@ubuntu.com>
22737
22738 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
22739
6eea041a
CW
227402010-08-01 Colin Watson <cjwatson@ubuntu.com>
22741
22742 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
22743
2cfb45df
CW
227442010-08-01 Colin Watson <cjwatson@ubuntu.com>
22745
22746 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
22747 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
22748 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
22749 disable gfxpayload.
22750 (Shell-like scripting): Add real content.
22751 (Serial terminal): Suggest `terminal_input serial; terminal_output
22752 serial' rather than putting the two commands on separate lines,
22753 since console input will be inoperative after the first command.
22754 (menuentry): Document --class, --users, and --hotkey options.
22755 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
22756 Vladimir Serbinenko).
22757
7decd202
VS
227582010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
227592010-08-01 Colin Watson <cjwatson@ubuntu.com>
22760
22761 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
22762
c882acc0
RM
227632010-08-01 Robert Millan <rmh@gnu.org>
22764
22765 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22766 (grub_find_zpool_from_mount_point): New function prototypes.
22767
22768 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22769 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22770
22771 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22772 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22773 `static' attribute.
22774
22775 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22776 finding zpool from mount point into ...
22777 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22778
22779 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22780 requested path is part of a ZFS pool, use
22781 grub_find_zpool_from_mount_point() to detect its filesystem name,
22782 and generate a path with `/fsname@path' syntax.
22783
deb0caa3
RM
227842010-08-01 Robert Millan <rmh@gnu.org>
22785
22786 Prevent accidental use of uninitialized libzfs_handle.
22787
22788 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
22789 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
22790 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
22791
ce04ef47
CW
227922010-08-01 Colin Watson <cjwatson@ubuntu.com>
22793
22794 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
22795 util/grub.d/10_linux.in). Fixes Debian bug #591093.
22796
ebf53056
RM
227972010-08-01 Robert Millan <rmh@gnu.org>
22798
22799 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 22800
3710bb6b
RM
228012010-07-31 Robert Millan <rmh@gnu.org>
22802
22803 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
22804
8072efeb
RM
228052010-07-31 Robert Millan <rmh@gnu.org>
22806
22807 * kern/emu/misc.c: Add missing license header.
22808
3169f4c7
RM
228092010-07-31 Robert Millan <rmh@gnu.org>
22810
22811 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
22812
22813 * include/grub/util/libnvpair.h: Include `<config.h>'.
22814 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
22815 declaring libnvpair prototypes ourselves.
22816 * include/grub/util/libzfs.h: Include `<config.h>'.
22817 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
22818 declaring libzfs prototypes ourselves.
22819
22820 (libzfs_handle): Moved to ...
22821 * include/grub/util/misc.h (libzfs_handle): ... here.
22822 Include `<grub/util/libzfs.h>'.
22823
c9a00aee
RM
228242010-07-30 Robert Millan <rmh@gnu.org>
22825
22826 * include/grub/emu/misc.h: Add missing license header.
22827
a184f9c8
RM
228282010-07-30 Robert Millan <rmh@gnu.org>
22829
22830 Enable `grub-probe -t device' resolution on ZFS.
22831
22832 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
22833 * include/grub/util/libnvpair.h: New file.
22834 * include/grub/util/libzfs.h: New file.
22835
22836 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
22837 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
22838 `<grub/util/libnvpair.h>'.
22839 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
22840
22841 (find_mount_point_from_dir): New static function.
22842 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
22843 function.
22844 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
22845 find_root_device_from_libzfs() before ressorting to find_root_device().
22846
22847 * include/grub/util/misc.h (grub_util_init_libzfs): New function
22848 prototype.
22849 * util/misc.c: Include `<grub/util/libzfs.h>'.
22850 (grub_util_init_libzfs): New function.
22851 [HAVE_LIBZFS] (libzfs_handle): New global variable.
22852 [HAVE_LIBZFS] (fini_libzfs): New static function.
22853 (grub_util_init_libzfs): New function.
22854 * util/grub-probe.c (main): Call grub_util_init_libzfs().
22855
f7790cdd
RM
228562010-07-30 Robert Millan <rmh@gnu.org>
22857
22858 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
22859 (xmalloc, xrealloc, xstrdup, xasprintf): Add
22860 `warn_unused_result' attribute.
22861 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
22862 (grub_xasprintf, grub_xvasprintf): Likewise.
22863 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
22864
0806b63c
RM
228652010-07-29 Robert Millan <rmh@gnu.org>
22866
22867 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
22868 (probe): Handle `PRINT_FS_LABEL'.
22869 (main): Handle `-t fs_label'.
22870
9f841f5c
RM
228712010-07-29 Robert Millan <rmh@gnu.org>
22872
22873 * configure.ac: Remove grub-mkisofs checks.
22874
46371121
VS
228752010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
22876
22877 * util/ieee1275/grub-install.in: Don't use empty grub_device.
22878 Reported by: Lennart Sorensen.
22879
228802010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22881
22882 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
22883 prior to terminal_input/terminal_output separation. It's been over 1.5
22884 years and those versions weren't widely deployed.
22885
a9600892
CW
228862010-07-22 Colin Watson <cjwatson@ubuntu.com>
22887
22888 * disk/raid.c (insert_array): Don't count named arrays when looking
22889 for unused array numbers.
697e053c 22890 Reported and tested by: Michael Guntsche.
a9600892 22891
c03507df
CW
228922010-07-20 Colin Watson <cjwatson@ubuntu.com>
22893
22894 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
22895 implementation of this so that grub-emu links again, with a note
22896 that this should support hotplugging in the future.
22897
b26f1c11
CW
228982010-07-20 Colin Watson <cjwatson@ubuntu.com>
22899
22900 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
22901
efc9d7f1
CW
229022010-07-20 Colin Watson <cjwatson@ubuntu.com>
22903
22904 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
22905 handle on failure.
22906 (grub_loopback_close): Remove empty function.
22907 (grub_loopback_dev): Remove close method.
22908
dd8ff5c9
CW
229092010-07-20 Colin Watson <cjwatson@ubuntu.com>
22910
22911 Disable EFI cursor when the EFI console becomes inactive.
22912
22913 * term/efi/console.c (grub_efi_console_init): New function.
22914 (grub_efi_console_fini): New function.
22915 (grub_console_term_output): Register init and fini methods.
22916
5e3bec67
VS
229172010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22918
22919 * tests/util/grub-shell-tester.in: Remove bashism and declare as
22920 sh script.
22921
afaec079
VS
229222010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22923
22924 * disk/loopback.c (grub_loopback): Replace filename with file.
22925 (delete_loopback): Handle new semantics.
22926 (grub_cmd_loopback): Likewise.
22927 (grub_loopback_iterate): Likewise.
22928 (grub_loopback_close): Likewise.
22929
a6a11f3c
VS
229302010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22931
22932 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
22933 with -p "".
22934 Reported by: Tito Keitel.
22935
64a638b0
VS
229362010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22937
22938 * docs/grub.texi (Naming convention): Document new naming convention.
22939
ab8ba957
VS
229402010-07-20 Vadim Solomin <vadic052@gmail.com>
229412010-07-20 Colin Watson <cjwatson@ubuntu.com>
22942
22943 Generate device.map in something closer to the old ordering.
22944
22945 * util/deviceiter.c (struct device): New declaration.
22946 (compare_file_names): Rename to ...
22947 (compare_devices): ... this. Sort by kernel name in preference to
22948 the stable by-id name, but keep the latter as a fallback comparison.
22949 Update header comment.
22950 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
22951 of `struct device' rather than of plain file names.
22952
a29d6a4b
TF
229532010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
22954
22955 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
22956 on i386.
22957
39d824e8
VS
229582010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22959
22960 * commands/acpi.c (setup_common_tables): Use sizeof instead of
22961 hardcoding size.
22962 (setv1table): Likewise.
22963
f058276b
FZ
229642010-07-20 Colin Watson <cjwatson@ubuntu.com>
22965
22966 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
22967 removing the homehost if present.
22968 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
22969 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
22970 removing the homehost if present.
22971 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
22972 if possible.
22973 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
22974
22975 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
22976 parameter. Set its pointer target to 0.
22977 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
22978 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
22979 `data_offset' value from the superblock for 1.x metadata.
22980 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
22981 data on the device.
22982 (insert_array): Record the start sector of data on the device.
22983 (grub_raid_register): Pass start_sector parameters to
22984 grub_raid_list->detect and insert_array.
22985 * include/grub/raid.h (struct grub_raid_array): Add start_sector
22986 member.
22987 (struct grub_raid): Add start_sector parameter to `detect'.
22988
22989 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
22990 __attribute__ ((packed)), leaving a comment.
22991 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
22992 (grub_mdraid_detect_09): ... here and ...
22993 (grub_mdraid_detect_1x): ... here.
22994
229952010-07-20 Peter Henn <peter.henn@web.de>
22996
22997 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
22998 chunk size and disk size, which are already given as sector counts
22999 as distinct from the 0.90 units. Fetch the correct device number
23000 from the role table instead of using the table index.
23001
230022010-07-20 Felix Zielcke <fzielcke@z-51.de>
23003
23004 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
23005 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
23006 (WriteMostly1): New macro.
23007 Set array->name to NULL for metadata format 0.90. Add support for
23008 metadata 1.x. Fix some comments.
23009 * disk/raid.c (): Add support for name based RAID arrays. Fix a
23010 few comments.
23011 * util/getroot.c (grub_util_get_grub_dev): Add support for
23012 /dev/md/name style devices.
23013
4b761da9
CW
230142010-07-20 Colin Watson <cjwatson@ubuntu.com>
23015
23016 * .bzrignore: Ignore 20_linux_xen.
23017
5771289a
CW
230182010-07-17 Colin Watson <cjwatson@ubuntu.com>
23019
23020 * util/import_unicode.py: Remove unnecessary imports.
23021
5dab68df
AN
230222010-07-17 Aleš Nesrsta <starous@volny.cz>
23023
23024 Hotplugging and USB hub support.
23025
23026 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
23027 (grub_ohci): Likewise.
23028 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
23029 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
23030 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
23031 (GRUB_OHCI_CTRL_EDS): Likewise.
23032 (GRUB_OHCI_BULK_EDS): Likewise.
23033 (GRUB_OHCI_TDS): Likewise.
23034 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
23035 (grub_ohci_ed_phys2virt): New function.
23036 (grub_ohci_virt_to_phys): Likewise.
23037 (grub_ohci_td_phys2virt): Likewise.
23038 (grub_ohci_td_virt2phys): Likewise.
23039 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
23040 attachment.
23041 (grub_ohci_find_ed): New function.
23042 (grub_ohci_alloc_td): Likewise.
23043 (grub_ohci_free_td): Likewise.
23044 (grub_ohci_free_tds): Likewise.
23045 (grub_ohci_transfer): Use previously allocated memory.
23046 (grub_ohci_portstatus): Reset status changed bit.
23047 (grub_ohci_detect_dev): Supply status changed.
23048 (grub_ohci_fini_hw): Free memory.
23049 (grub_ohci_restore_hw): Reallocate memory.
23050 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
23051 Reset status change.
23052 (grub_uhci_detect_dev): Supply status_change.
23053 * bus/usb/usb.c (attach_hooks): New var.
23054 (grub_usb_device_attach): New function.
23055 (grub_usb_register_attach_hook_class): Likewise.
23056 (grub_usb_unregister_attach_hook_class): Likewise.
23057 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
23058 (grub_usb_add_hub): Reset connection changed bit.
23059 (attach_root_port): New function.
23060 (grub_usb_root_hub): Likewise.
23061 (poll_nonroot_hub): Likewise.
23062 (grub_usb_poll_devices): Likewise.
23063 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
23064 * disk/usbms.c (grub_usbms_open): Use device hooks.
23065 (grub_usbms_iterate) :Poll devices.
23066 (grub_usbms_finddevs): Split into ...
23067 (grub_usbms_attach): ... this ...
23068 (grub_usbms_attach): ... and this.
23069 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
23070 in detect_dev.
23071 (grub_usb_interface): New fields attached and detach_hook.
23072 (grub_usb_attach_hook_class): New type.
23073 (grub_usb_attach_desc): New struct.
23074 (grub_usb_register_attach_hook_class): New function.
23075 (grub_usb_unregister_attach_hook_class): Likewise.
23076 (grub_usb_poll_devices): Likewise.
23077 (grub_usb_device_attach): Likewise.
23078 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
23079 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
23080
3222efaf
VS
230812010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23082
23083 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
23084 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
23085 delta determination style. Works with most NetBSD partitions too.
23086
139b714a
VS
230872010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23088
23089 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
23090 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
23091
986aad56
VS
230922010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23093
23094 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
23095
99be513c
AB
230962010-07-14 Anton Blanchard <anton@samba.org>
23097
23098 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
23099 ET_DYN files.
23100
18075f62
GS
231012010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23102
23103 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
23104
8d9a5b15
GS
231052010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23106
23107 * kern/partition.c (grub_partition_check_containment): New function to
23108 check that a partition is physically contained in a parent. Since
23109 offsets are relative (and non-negative), this reduces to checking that
23110 the partition ends before its parent.
23111 (grub_partition_map_probe): Discard out-of-range sub-partitions.
23112 (grub_partition_iterate): Likewise.
23113 * include/grub/partition.h (grub_partition_map): Slightly more detailed
23114 comments.
23115 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
23116 partitions that start before their parent, and add debug printfs.
23117
19563c25
CW
231182010-07-13 Colin Watson <cjwatson@ubuntu.com>
23119
23120 * Makefile.in (.SUFFIX): Spell correctly, as ...
23121 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
23122 bare module name without `.mod', e.g. `test') tried to invoke a
23123 Modula-2 compiler.
23124
1a1f1e67
CW
231252010-07-13 Colin Watson <cjwatson@ubuntu.com>
23126
23127 * README: Point to the Info manual.
23128
811b0dca
JS
231292010-07-13 Jiro SEKIBA <jir@unicus.jp>
23130
23131 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
23132 2nd superblock position from partition size.
23133
e4f4eafc
CW
231342010-07-10 Colin Watson <cjwatson@ubuntu.com>
23135
23136 * Makefile.in (MAINTAINER_CLEANFILES): Remove
23137 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
23138 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
23139 outputs.
23140
4274c30f
VS
231412010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23142
23143 Restructure SCSI .id handling.
23144 Reported and tested by: Aleš Nesrsta.
23145
23146 * disk/ata.c (grub_atapi_close): Removed. All users updated.
23147 (grub_atapi_dev): Changed .name to "ata". New field .id.
23148 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
23149 (grub_usbms_dev): New field .id.
23150 * disk/scsi.c (grub_scsi_iterate): Generate name.
23151 (grub_scsi_open): Parse name.
23152 * include/grub/scsi.h (grub_make_scsi_id): New function.
23153 (grub_scsi_dev): Change iterate and open to number instead of naming
23154 busses. All users updated.
23155 (grub_scsi): Remove name. Add .bus.
23156
5bc24388
VS
231572010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23158
23159 * commands/help.c (grub_cmd_help): Fix a typo.
23160
249975ba
VS
231612010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23162
23163 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
23164 Reported and tested by: Colin Watson.
23165
3eaac1a1
VS
231662010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23167
23168 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
23169 in this context.
23170
becce1b1
VS
231712010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
23172
23173 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
23174
f7bf0918
CW
231752010-07-07 Colin Watson <cjwatson@ubuntu.com>
23176
23177 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
23178 indentation.
23179
0b0f9620
CW
231802010-07-06 Colin Watson <cjwatson@ubuntu.com>
23181
23182 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
23183 and disk/raid6_recover.c.
23184 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23185 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23186
1e545469
CW
231872010-07-06 Colin Watson <cjwatson@ubuntu.com>
23188
23189 * term/gfxterm.c (repaint_schedulded): Rename to ...
23190 (repaint_scheduled): ... this. Update all callers.
23191 (repaint_was_schedulded): Rename to ...
23192 (repaint_was_scheduled): ... this. Update all callers.
23193
5357687a
CW
231942010-07-06 Colin Watson <cjwatson@ubuntu.com>
23195
23196 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
23197 which we expect to be handled by upper layers.
23198
29d7e783
BC
231992010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
23200
23201 * bus/usb/usbhub.c: #include time.h header.
23202
37582066
CW
232032010-07-06 Colin Watson <cjwatson@ubuntu.com>
23204
23205 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
23206 entry_name also for entries without stat blocks (e.g. ".."); fixes
23207 corruption of the first entry in a directory.
23208
c8c06953
CW
232092010-07-06 Colin Watson <cjwatson@ubuntu.com>
23210
23211 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
23212 after setting gfxterm as the active terminal. GRUB_BACKGROUND
23213 doesn't work otherwise.
23214
e75056f1
CW
232152010-07-05 Colin Watson <cjwatson@ubuntu.com>
23216
23217 * docs/grub.texi (Features): Update list of supported file systems.
23218 (GNU/Linux): Update for GRUB 2.
23219 (Serial terminal): Remove mention of --disable-serial, which was a
23220 GRUB Legacy configure option. Update instructions to use
23221 `terminal_input' and `terminal_output' rather than `terminal'.
23222 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
23223 configuration' and `Installing GRUB using grub-install'.
23224 (Menu entry editor): Update for GRUB 2.
23225 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
23226 Document new -a, -u, and -v options.
23227 (initrd): New section.
23228 (initrd16): New section.
23229 (linux): New section.
23230 (linux16): New section.
23231 (search): The `var' argument to `--set' is optional.
23232 (GRUB only offers a rescue shell): Go into a little more detail on
23233 drive ordering.
23234
5cf69151
CW
232352010-07-05 Colin Watson <cjwatson@ubuntu.com>
23236
23237 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
23238
e3f90044
CW
232392010-07-05 Colin Watson <cjwatson@ubuntu.com>
23240
23241 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
23242 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
23243
38d8f4f3
CW
232442010-07-05 Colin Watson <cjwatson@ubuntu.com>
23245
23246 * util/i386/pc/grub-setup.c (setup): Rename prefix to
23247 install_prefix, in line with install_dos_part and install_bsd_part.
23248 Add new prefix variable, which is copied to install_prefix after
23249 comparing core.img in memory with the one read from disk in the
23250 no-embedding case, and use that rather than overwriting
23251 install_prefix immediately when installing to a partition.
23252 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
23253 Bicakci.
23254
57ebd41e
GS
232552010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23256
23257 * configure.ac: Avoid == in test command, it's not portable.
23258 * util/grub.d/30_os-prober.in: Likewise.
23259
cb7f64b2
CW
232602010-07-04 Colin Watson <cjwatson@ubuntu.com>
23261
23262 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
23263
6b654bb0
GS
232642010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23265
23266 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
23267 multiple (top-level) partmaps.
23268
72a2026d
VS
232692010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23270
23271 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 23272 Reported by: Tino Keitel.
72a2026d 23273
df3eb88f
VS
232742010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23275
23276 Bidi and diacritics support.
23277
23278 * Makefile.in (widthspec.bin): New target.
23279 (widthspec.h): Likewise.
23280 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
23281 * autogen.sh: Generate unidata.c.
23282 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
23283 * commands/ls.c (grub_ls_list_devices): Likewise.
23284 (grub_ls_list_files): Likewise.
23285 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
23286 (grub_mini_cmd_lsmod): Likewise.
23287 * commands/read.c: Likewise.
23288 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
23289 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
23290 * lib/arg.c (grub_arg_show_help): Likewise.
23291 * lib/crypto.c (grub_password_get): Likewise.
23292 * normal/auth.c (grub_username_get): Likewise.
23293 * normal/misc.c (grub_normal_print_device_info): Likewise.
23294 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
23295 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
23296 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
23297 (normal/charset.c_DEPENDENCIES): New variable.
23298 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
23299 (pkglib_MODULES): Remove charset.mod.
23300 (charset_mod_SOURCES): Removed.
23301 (charset_mod_CFLAGS): Likewise.
23302 (charset_mod_LDFLAGS): Likewise.
23303 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
23304 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
23305 and term/tparm.c.
23306 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23307 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23308 (kernel_img_HEADERS): Add terminfo.h.
23309 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
23310 Fill ->font. Reverse ascii bitmaps.
23311 (grub_font_get_xheight): New function.
23312 * font/font.c (grub_font_get_string_width): Moved from here ...
23313 * gfxmenu/font.c (grub_font_get_string_width): ... here.
23314 * font/font.c (grub_font_draw_string): Moved from here ...
23315 * gfxmenu/font.c (grub_font_draw_string): ... here.
23316 * font/font.c (grub_font_dup_glyph): New function.
23317 (grub_font_blit_glyph): Likewise.
23318 (grub_font_blit_glyph_mirror): Likewise.
23319 (blit_comb): Likewise.
23320 (grub_font_construct_dry_run): Likewise.
23321 (grub_font_get_constructed_device_width): Likewise.
23322 (grub_font_construct_glyph): Likewise.
23323 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
23324 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
23325 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
23326 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
23327 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
23328 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
23329 (grub_font_get_xheight): New proto.
23330 (grub_font_get_constructed_device_width): Likewise.
23331 (grub_font_construct_glyph): Likewise.
23332 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
23333 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
23334 * include/grub/font.h (grub_font_draw_string): Moved from here ...
23335 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
23336 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
23337 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
23338 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
23339 (grub_console_getcharwidth): Likewise.
23340 * include/grub/misc.h (grub_xputs): New proto.
23341 (grub_puts): Inlined.
23342 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
23343 (grub_normal_get_line_counter): Removed.
23344 (grub_install_newline_hook): Likewise.
23345 (grub_normal_get_char_counter): New proto.
23346 (grub_normal_reset_more): Likewise.
23347 (grub_xputs_normal): Likewise.
23348 * include/grub/powerpc/ieee1275/console.h: Removed.
23349 * include/grub/sparc64/ieee1275/console.h: Likewise.
23350 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
23351 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
23352 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
23353 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
23354 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
23355 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
23356 (grub_term_input): Pass reference to self. All users updated.
23357 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
23358 Pass reference to self. New fields normal_color, highlight_color and
23359 data. All users updated.
23360 (grub_putchar): Removed.
23361 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
23362 (grub_unicode_estimate_width): New function.
23363 (grub_term_getcharwidth): Add defaults.
23364 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
23365 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
23366 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
23367 (grub_cls): Remove EXPORT_FUNC.
23368 (grub_setcolorstate): Inline.
23369 (grub_newline_hook): Removed.
23370 * include/grub/terminfo.h: Rewritten. All users updated.
23371 * include/grub/unicode.h: New file.
23372 * include/grub/video.h (grub_video_signed_rect): New type.
23373 * kern/emu/console.c (grub_console_highlight_color): Removed.
23374 (grub_console_normal_color): Likewise.
23375 (grub_console_standard_color): Made static.
23376 (grub_ncurses_putchar): Remove mapping.
23377 (grub_ncurses_getcharwidth): Removed.
23378 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23379 (grub_ncurses_setcolor): Removed.
23380 (grub_ncurses_getcolor): Likewise.
23381 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
23382 (grub_console_putchar): ... this.
23383 (grub_console_putchar): Handle argument difference.
23384 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
23385 console_init_early and console_init_lately.
23386 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
23387 * kern/misc.c (grub_puts): Removed.
23388 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
23389 (grub_vsnprintf_real): Remove str = NULL support.
23390 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
23391 * normal/charset.c (grub_utf8_to_ucs4): ... here.
23392 * kern/term.c (grub_putcode): Renamed to ...
23393 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
23394 (grub_putchar): Removed.
23395 (grub_xputs_dumb): New function.
23396 (grub_xputs): New variable.
23397 * lib/charset.c: Move from here ...
23398 * normal/charset.c: ... to here.
23399 (grub_ucs4_to_utf8): New function.
23400 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
23401 (join_types): New variable.
23402 (unpack_join): New function.
23403 (bidi_types): New variable.
23404 (unpack_bidi): New function.
23405 (get_bidi_type): Likewise.
23406 (get_join_type): Likewise.
23407 (is_mirrored): Likewise.
23408 (grub_unicode_get_comb_type): Likewise.
23409 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
23410 (is_type_after): Likewise.
23411 (grub_unicode_aglomerate_comb): Likewise.
23412 (bidi_line_wrap): Likewise.
23413 (grub_bidi_line_logical_to_visual): Likewise.
23414 (grub_bidi_logical_to_visual): Likewise.
23415 (grub_unicode_mirror_code): Likewise.
23416 (grub_unicode_shape_code): Likewise.
23417 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
23418 Don't use grub_putchar.
23419 * normal/main.c (grub_normal_init_page): Use grub_putcode.
23420 (grub_normal_reader_init): Likewise.
23421 (grub_xputs_saved): New variable.
23422 (GRUB_MOD_INIT): Set grub_xputs.
23423 (GRUB_MOD_FINI): Restore grub_xputs.
23424 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
23425 (menu_init): Avoid printing gfxmenu error.
23426 (show_menu): Use grub_normal_get_char_counter.
23427 * normal/menu_entry.c (update_screen): Fix out-of-array.
23428 (complete): Avoid NULL dereferencing.
23429 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
23430 * normal/menu_text.c (print_spaces): Removed.
23431 (grub_print_ucs4): Likewise.
23432 (grub_print_message_indented): Use grub_print_ucs4.
23433 (print_message): Use grub_putcode.
23434 (print_entry): Hanlde diacritics.
23435 * normal/term.c (term_state): New type.
23436 (grub_more_lines): Removed.
23437 (term_states): New variable.
23438 (grub_normal_line_counter): Renamed to ..
23439 (grub_normal_char_counter): ...this. All users updated.
23440 (grub_normal_get_line_counter): Renamed to ...
23441 (grub_normal_get_char_counter): ... this.
23442 (grub_normal_reset_more): New function.
23443 (process_newline): Removed.
23444 (print_more): New function.
23445 (grub_install_newline_hook): Removed.
23446 (map_code): New function.
23447 (grub_puts_terminal): Use grub_print_ucs4.
23448 (putglyph): New function.
23449 (putcode_real): Likewise.
23450 (grub_putcode): Use putcode_real.
23451 (get_maxwidth): New function.
23452 (get_startwidth): Likewise.
23453 (print_ucs4_terminal): Likewise.
23454 (find_term_state): Likewise.
23455 (put_glyphs_terminal): Likewise.
23456 (print_backlog): Likewise.
23457 (print_ucs4_real): Likewise.
23458 (grub_print_ucs4): Likewise.
23459 (grub_xputs_normal): Likewise.
23460 * term/efi/console.c (grub_console_putchar): Output diacritics.
23461 (grub_console_getcharwidth): Removed.
23462 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23463 * term/gfxterm.c (clear_char): Free chars.
23464 (scroll_up): Avoid leaking memory.
23465 (grub_gfxterm_putchar): Support diacritics.
23466 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23467 * term/i386/pc/console.c (grub_console_term_output): Declare as
23468 GRUB_TERM_CODE_TYPE_VGA.
23469 * term/i386/pc/vga.c (grub_vga_term): Declare as
23470 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
23471 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
23472 GRUB_TERM_CODE_TYPE_VGA.
23473 * term/i386/vga_common.c (map_char): Removed.
23474 (grub_console_putchar): Likewise.
23475 (grub_console_getcharwidth): Likewise.
23476 * term/ieee1275/ofconsole.c: Simplify using terminfo.
23477 (colors): Reordered to match terminfo.
23478 (grub_ofconsole_normal_color): Removed.
23479 (grub_ofconsole_writeesc): Likewise.
23480 (grub_ofconsole_highlight_color): Likewise.
23481 (grub_ofconsole_getcharwidth): Likewise.
23482 (grub_ofconsole_setcolorstate): Likewise.
23483 (grub_ofconsole_setcolor): Likewise.
23484 (grub_ofconsole_getcolor): Likewise.
23485 (grub_ofconsole_readkey): Renamed to ...
23486 (readkey): ... this. Remove escape sequence handling. Return -1 on no
23487 key.
23488 (grub_ofconsole_checkkey): Removed.
23489 (grub_ofconsole_getkey): Likewise.
23490 (grub_ofconsole_getxy): Likewise.
23491 (grub_ofconsole_gotoxy): Likewise.
23492 (grub_ofconsole_cls): Likewise.
23493 (grub_ofconsole_refresh): Likewise.
23494 (grub_ofconsole_terminfo_input): New struct.
23495 (grub_ofconsole_terminfo_output): Likewise.
23496 (grub_ofconsole_term_input): Use terminfo.
23497 (grub_ofconsole_term_output): Likewise.
23498 (grub_console_init): Split into ...
23499 (grub_console_init_early): ...this and ...
23500 (grub_console_init_lately): ...this. Use terminfo.
23501 (grub_ofconsole_putchar): Renamed to ...
23502 (put): ... this. Remove mapping.
23503 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23504 * term/serial.c: Simplify using terminfo.
23505 (xpos): Removed.
23506 (ypos): Likewise.
23507 (keep_track): Likewise.
23508 (registered): Likewise.
23509 (input_buf): Likewise.
23510 (npending): Likewise.
23511 (serial_translate_key_sequence): Likewise.
23512 (fill_input_buf): Likewise.
23513 (grub_serial_checkkey): Likewise.
23514 (grub_serial_getkey): Likewise.
23515 (grub_serial_getxy): Likewise.
23516 (grub_serial_gotoxy): Likewise.
23517 (grub_serial_putchar): Likewise.
23518 (grub_serial_cls): Likewise.
23519 (grub_serial_setcolorstate): Likewise.
23520 (grub_serial_setcursor): Likewise.
23521 (serial_hw_init): Use serial_hw_fetch.
23522 (grub_serial_terminfo_input): New variable.
23523 (grub_serial_terminfo_output): Likewise.
23524 (grub_serial_term_input): Use terminfo.
23525 (grub_serial_term_output): Likewise.
23526 * term/terminfo.c (putstr): Use put.
23527 (grub_terminfo_all_free): New function
23528 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
23529 (grub_terminfo_output_register): New function.
23530 (grub_terminfo_output_unregister): Likewise.
23531 (grub_terminfo_getxy): Likewise.
23532 (grub_terminfo_readkey): Likewise.
23533 (grub_terminfo_checkkey): Likewise.
23534 (grub_terminfo_getkey): Likewise.
23535 (grub_terminfo_input_init): Likewise.
23536 (print_terminfo): Likewise.
23537 (grub_cmd_terminfo): Handle encoding.
23538 (grub_terminfo_gotoxy): Track position.
23539 (grub_terminfo_cls): Likewise.
23540 (grub_terminfo_putchar): Likewise.
23541 (grub_terminfo_setcolorstate): Handle colors
23542 (grub_terminfo_cursor_on): This ...
23543 (grub_terminfo_cursor_off): ... and this merged into ...
23544 (grub_terminfo_setcursor): ... this.
23545 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
23546 * unicode/ArabicShaping.txt: New file (imported from Unicode).
23547 * unicode/BidiMirroring.txt: Likewise.
23548 * unicode/UnicodeData.txt: Likewise.
23549 * unicode/COPYING: Likewise.
23550 * util/grub-editenv.c (grub_putchar): Removed.
23551 (grub_xputs_real): New function.
23552 (grub_xputs): New variable.
23553 * util/grub-fstest.c (grub_putchar): Removed.
23554 (grub_xputs_real): New function.
23555 (grub_xputs): New variable.
23556 * util/grub-mkdevicemap.c (grub_putchar): Removed.
23557 (grub_xputs_real): New function.
23558 (grub_xputs): New variable.
23559 * util/grub-probe.c (grub_putchar): Removed.
23560 (grub_xputs_real): New function.
23561 (grub_xputs): New variable.
23562 * util/grub-script-check.c (grub_putchar): Removed.
23563 (grub_xputs_real): New function.
23564 (grub_xputs): New variable.
23565 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
23566 (grub_xputs_real): New function.
23567 (grub_xputs): New variable.
23568 * util/import_unicode.py: New file.
23569 * util/grub-mkfont.c (ft_errmsgs): New array.
23570 (grub_glyph_info): Make bitmap a pointer.
23571 (file_formats): New type WIDTH_SPEC.
23572 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
23573 (options): Add width-spec.
23574 (help): Likewise.
23575 (add_char): Renamed to ...
23576 (add_glyph): ... this.
23577 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
23578 (glyph_replace): New type.
23579 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
23580 (add_char): New function.
23581 (add_subst): Likewise.
23582 (process_cursive): Likewise.
23583 (add_font): Handle GSUB.
23584 (write_font_width_spec): New function.
23585 (main): Sort glyphs.
23586 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
23587 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
23588 * kern/term.c (grub_cls): Moved from here...
23589 * normal/term.c (grub_cls): ... here.
23590
50f0bcda
CW
235912010-07-02 Colin Watson <cjwatson@ubuntu.com>
23592
23593 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
23594 suitable for using within the format argument of printf when
23595 converting grub_size_t.
23596 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
23597 "x" to convert grub_size_t arguments.
23598
40372103
VS
235992010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23600
23601 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
23602 too long captions.
23603 (list_get_minimal_size): Take selection box into account.
23604
942a10c7
VS
236052010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23606
23607 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
23608 NULL font.
23609
2bdb2892
CW
236102010-07-02 Colin Watson <cjwatson@ubuntu.com>
23611
23612 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
23613 devices when iterating over /dev/disk/by-id; they will be handled
23614 later if appropriate, which they aren't always (e.g. LVM).
23615
e03ed6c1
CW
236162010-07-02 Colin Watson <cjwatson@ubuntu.com>
23617
23618 * include/grub/misc.h (grub_reboot): Declare as noreturn.
23619 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
23620 fails.
23621 (grub_halt): Likewise.
23622 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
23623 reset-all fails.
23624 (grub_halt): Don't return, even if all of shut-down, power-off, and
23625 poweroff fail.
23626
47695765
CW
236272010-07-02 Colin Watson <cjwatson@ubuntu.com>
23628
23629 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
23630 arguments, not three.
23631
507736c8
CW
236322010-07-02 Colin Watson <cjwatson@ubuntu.com>
23633
23634 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
23635 * util/grub.d/10_linux.in: Use it to check for LVM, so that
23636 LVM-on-RAID is handled correctly.
23637
e3c8cd37
CW
236382010-07-02 Colin Watson <cjwatson@ubuntu.com>
23639
23640 * docs/grub.texi (Changes from GRUB Legacy): New section.
23641 (Future): Fix typo.
23642
8d4a2fec
CW
236432010-07-02 Colin Watson <cjwatson@ubuntu.com>
23644
23645 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
23646 grub.d/README accidentally ends up executable for one reason or
23647 another. Ignore it.
23648
1c4827be
VS
236492010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23650
23651 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
23652 (gpt_partition_map_iterate): Support non-512B sectors.
23653
d9a0c941
VS
236542010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23655
23656 * kern/efi/init.c (grub_efi_init): Disable watchdog.
23657 Tested by: Seth Goldberg.
23658
48f27e87
VS
236592010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23660
23661 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
23662 Properly align mbi.
23663 Reported by: Seth Goldberg.
23664
b0c4f956
VS
236652010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23666
23667 * util/grub-mkrescue.in: Avoid module duplication.
23668
105a2e8c
SF
236692010-07-01 Sean Finney <seanius@seanius.net>
23670
23671 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
23672
5944958c
SF
236732010-07-01 Sean Finney <seanius@seanius.net>
23674
23675 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
23676
236772010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23678
23679 * disk/lvm.c (grub_lvm_checkvalue): New function.
23680 (grub_lvm_check_flag): Likewise.
23681
b79889ba
RM
236822010-07-01 Robert Millan <rmh@gnu.org>
23683
23684 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
23685 Support 'p' as partition separator on kernel of FreeBSD (used
23686 with GPT labels).
23687 (grub_util_biosdisk_get_grub_dev): Likewise.
23688
ec1d04f1
VS
236892010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23690
23691 Yeeloong firmware port.
23692
23693 * boot/mips/yeeloong/fwstart.S: New file.
23694 * bus/cs5536.c (gpiodump): New const.
23695 (set_io_space): New function.
23696 (set_iod): Likewise.
23697 (set_p2d): Likewise.
23698 (grub_cs5536_init_geode): Likewise.
23699 * commands/mips/yeeloong/lsspd.c: New file.
23700 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
23701 (serial_mod_SOURCES): New variable.
23702 (serial_mod_CFLAGS): Likewise.
23703 (serial_mod_LDFLAGS): Likewise.
23704 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
23705 term/terminfo.c and term/tparm.c.
23706 (pkglib_IMAGES): Add fwstart.img.
23707 (fwstart_img_SOURCES): New variable.
23708 (fwstart_img_CFLAGS): Likewise.
23709 (fwstart_img_ASFLAGS): Likewise.
23710 (fwstart_img_LDFLAGS): Likewise.
23711 (fwstart_img_FORMAT): Likewise.
23712 (pkglib_MODULES): Add lsspd.mod.
23713 (lsspd_mod_SOURCES): New variable.
23714 (lsspd_mod_CFLAGS): Likewise.
23715 (lsspd_mod_LDFLAGS): Likewise.
23716 (pkglib_MODULES): Add halt.mod.
23717 (halt_mod_SOURCES): New variable.
23718 (halt_mod_CFLAGS): Likewise.
23719 (halt_mod_LDFLAGS): Likewise.
23720 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
23721 (serial_mod_SOURCES): Removed.
23722 (serial_mod_CFLAGS): Likewise.
23723 (serial_mod_LDFLAGS): Likewise.
23724 * disk/ata.c (check_device): New function.
23725 (grub_ata_device_initialize): Use check_device.
23726 (grub_ata_iterate): Recheck devices.
23727 (grub_ata_open): Likewise.
23728 (grub_atapi_iterate): Likewise.
23729 (grub_atapi_open): Likewise.
23730 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
23731 (GRUB_ATA_CH1_PORT1): Likewise.
23732 (GRUB_ATA_CH0_PORT2): Likewise.
23733 (GRUB_ATA_CH1_PORT2): Likewise.
23734 * include/grub/mips/loongson.h: New file.
23735 * include/grub/mips/yeeloong/ec.h: Likewise.
23736 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
23737 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
23738 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
23739 * include/grub/misc.h (grub_halt): Declare as noreturn.
23740 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
23741 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
23742 (UART_ENABLE_FIFO_TRIGGER1): New definition.
23743 (UART_ENABLE_DTRRTS): Likewise.
23744 (UART_ENABLE_MODEM): Removed.
23745 (UART_ENABLE_OUT2): New const.
23746 * include/grub/term.h (grub_term_register_input_active): New function.
23747 (grub_term_register_output_active): Likewise.
23748 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
23749 argument.
23750 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
23751 (init_pci): New function.
23752 (grub_machine_init): Execute platform init when firmware. Init serial.
23753 (grub_halt): Implement.
23754 (grub_exit): Likewise.
23755 (grub_reboot): Likewise.
23756 * term/serial.c (serial_hw_init): Update macros.
23757 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
23758 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
23759 (image_targets): New target mipsel-yeeloong-flash.
23760 (generate_image): Support IMAGE_YEELOONG_FLASH.
23761 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
23762 (grub_video_sm712_setup): Init card.
23763 (grub_video_sm712_set_palette): Removed.
23764 * video/sm712_init.c: New file.
23765
ff4a70d2
CW
237662010-06-30 Colin Watson <cjwatson@ubuntu.com>
23767
23768 * Makefile.in (install-local): Temporarily prepend $(builddir) to
23769 PATH when running help2man and then run it on the unadorned
23770 executable names, rather than passing $(builddir)/* paths to
23771 help2man. This avoids the build directory ending up in generated
23772 manual pages.
23773
1246efeb
CW
237742010-06-29 Colin Watson <cjwatson@ubuntu.com>
23775
23776 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
23777 to avoid accidents when debugging with 'sh -x'.
23778 * util/grub-mkrescue.in: Likewise.
23779 * util/grub.d/00_header.in: Likewise.
23780 * util/grub.d/10_hurd.in: Likewise.
23781 * util/grub.d/10_kfreebsd.in: Likewise.
23782 * util/grub.d/10_linux.in: Likewise.
23783 * util/grub.d/10_netbsd.in: Likewise.
23784 * util/grub.d/10_windows.in: Likewise.
23785 * util/grub.d/20_linux_xen.in: Likewise.
23786 * util/grub.d/30_os-prober.in: Likewise.
23787 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23788
1ba9b889
CW
237892010-06-29 Colin Watson <cjwatson@ubuntu.com>
23790
23791 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
23792 last character in the buffer.
23793 Reported by: Vladimir Serbinenko.
23794
dccaf99d
RM
237952010-06-29 Robert Millan <rmh@gnu.org>
23796
23797 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
23798 (Command-line and menu entry commands): Document `badram' command.
23799
d500ed12
RM
238002010-06-28 Robert Millan <rmh@gnu.org>
23801
23802 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
23803 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
23804 command using ${GRUB_BADRAM} as parameter.
23805
20bc84a6
CW
238062010-06-28 Colin Watson <cjwatson@ubuntu.com>
23807
23808 * docs/grub.texi (Device map): New section.
23809 (Themes): New section (stub).
23810 * Makefile.in (docs/grub.info): The info documentation now builds
23811 without errors. Make sure it stays that way.
23812
4045dee1
VS
238132010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23814
23815 Use normal parser for menu entries.
23816 Reported by: Thomas Frauendorfer
23817
23818 * include/grub/parser.h (grub_parser_execute): Don't export.
23819 * normal/menu.c (grub_menu_execute_entry_real): New function.
23820 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
23821
bca58c7b
CW
238222010-06-28 Colin Watson <cjwatson@ubuntu.com>
23823
23824 * docs/grub.texi (Embedded configuration): New section (replacing
23825 old "Preset Menu" stub).
23826 (Images): New section.
23827 (configfile): Note that any menu entries defined in `file' are shown
23828 immediately.
23829
dec53e63
JT
238302010-06-28 Josh Triplett <josh@joshtriplett.org>
23831
23832 * mmap/i386/pc/mmap_helper.S: Set CF on return.
23833
c06e40f7
CW
238342010-06-28 Colin Watson <cjwatson@ubuntu.com>
23835
23836 * util/grub-install.in: Add --debug-image= option.
23837
cb88052b
CW
238382010-06-28 Colin Watson <cjwatson@ubuntu.com>
23839
23840 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
23841 possible on Linux.
23842
23843 * util/deviceiter.c (check_device): Rename to ...
23844 (check_device_readable_unique): ... this. Update all callers.
23845 Maintain and check a list of which devices (by canonicalized name)
23846 have already been seen.
23847 (clear_seen_devices): New function.
23848 (compare_file_names) [__linux__]: New function.
23849 (grub_util_iterate_devices): Clear the list of seen devices on exit
23850 and (just in case) on entry.
23851 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
23852 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
23853 seen-devices list, superseded by general code in check_device.
23854
bbe34652
CW
238552010-06-28 Colin Watson <cjwatson@ubuntu.com>
23856
23857 * commands/cat.c (options): New variable.
23858 (grub_cmd_cat): Parse options. If the --dos option is given, print
23859 DOS-style "\r\n" line endings as simple newlines (Debian bug
23860 #586358).
23861 (GRUB_MOD_INIT): Use extcmd.
23862 (GRUB_MOD_FINI): Likewise.
23863 * docs/grub.texi (cat): Document --dos.
23864
412e09f3
VS
238652010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23866
23867 XEN with Linux grub-mkconfig support.
23868
23869 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
23870 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
23871 GRUB_CMDLINE_XEN_DEFAULT.
23872 * util/grub.d/20_linux_xen.in: New file.
23873
53f3ef38 238742010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
23875
23876 Initialise VGA video on qemu ourselves.
23877
23878 * boot/i386/qemu/boot.S: Don't call 0xc000.
23879 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
23880 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
23881 (kernel_img_HEADERS): Add pci.h.
23882 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
23883 * configure.ac: Force unifont on qemu and yeeloong.
23884 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
23885 (grub_vga_palette_write): Use correct register.
23886 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
23887 Call grub_qemu_init_cirrus.
23888 * kern/i386/qemu/init.c: New file.
23889 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
23890
23891 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
23892
c75be4fb
PR
238932010-06-26 Pavel Roskin <proski@gnu.org>
23894
23895 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
23896 13.
23897
d8034603
CW
238982010-06-26 Colin Watson <cjwatson@ubuntu.com>
23899
23900 * docs/grub.texi (Simple configuration): Explain that
23901 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
23902 set to `true' to disable their respective recovery entries, not
23903 merely set.
23904
3fa06487
CW
239052010-06-26 Colin Watson <cjwatson@ubuntu.com>
23906
23907 Make the `source' command slightly faster.
23908
23909 * normal/main.c (grub_normal_execute): Don't re-read list files when
23910 nested.
23911
e9b29642
CW
239122010-06-23 Colin Watson <cjwatson@ubuntu.com>
23913
23914 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
23915 field position and mask size to red fields from mode_info, not
23916 green.
23917 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
23918 Remove redundant tag->common.framebuffer_type assignment.
23919 Reported by: Seth Goldberg.
23920
e726542f
CW
239212010-06-23 Colin Watson <cjwatson@ubuntu.com>
23922
23923 Sync up other versions of the Linux loader with Robert Millan's
23924 change of 2010-01-09, "Make loader output a bit more user-friendly".
23925
23926 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
23927 grub_dprintf().
23928 (grub_cmd_linux): Likewise.
23929 (grub_cmd_initrd): Likewise.
23930 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
23931 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
23932
d6e98a17
CW
239332010-06-21 Colin Watson <cjwatson@ubuntu.com>
23934
23935 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
23936 larger than MEMORY_MAP_SIZE.
23937
14d3f08e
BC
239382010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
23939
23940 Fix parallel build.
23941
23942 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
23943 dependency.
23944 * script/parser.y: #include grub_script.tab.h header.
23945
4f9613a3
VS
239462010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23947
23948 Support >3GiB and <16MiB RAM in i386-qemu.
23949
23950 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
23951 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
23952 (grub_lower_mem): Removed.
23953 (grub_upper_mem): Likewise.
23954 (mem_size): Made static.
23955 (above_4g): New variable.
23956 (grub_machine_mmap_init): Detect small mem_size and above_4g.
23957 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
23958 support.
23959
05e51879
VS
239602010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23961
23962 Cirrus 5446 and Bochs video cards support.
23963
23964 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
23965 video_bochs.mod
23966 (video_cirrus_mod_SOURCES): New variable.
23967 (video_cirrus_mod_CFLAGS): Likewise.
23968 (video_cirrus_mod_LDFLAGS): Likewise.
23969 (video_bochs_mod_SOURCES): Likewise.
23970 (video_bochs_mod_CFLAGS): Likewise.
23971 (video_bochs_mod_LDFLAGS): Likewise.
23972 * include/grub/vga.h: New file.
23973 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
23974 (grub_video_fb_set_page_t): New type.
23975 (grub_video_fb_setup): New prototype.
23976 (grub_video_fb_swap_buffers): Likewise.
23977 (grub_video_fb_get_info_and_fini): Likewise.
23978 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
23979 (CRTC_DATA_PORT): Likewise.
23980 (CRTC_CURSOR): Likewise.
23981 (CRTC_CURSOR_ADDR_HIGH): Likewise.
23982 (CRTC_CURSOR_ADDR_LOW): Likewise.
23983 (CRTC_CURSOR_DISABLE): Likewise.
23984 (update_cursor): Use grub_vga_cr_write.
23985 (grub_vga_text_setcursor): Likewise.
23986 * video/bochs.c: New file.
23987 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
23988 (palette): Likewise.
23989 (palette_size): Likewise.
23990 (framebuffer): New variable.
23991 (grub_video_fb_init): Use 'framebuffer'.
23992 (grub_video_fb_fini): Likewise.
23993 (grub_video_fb_get_info): Likewise.
23994 (grub_video_fb_get_palette): Likewise.
23995 (grub_video_fb_set_palette): Likewise.
23996 (grub_video_fb_set_viewport): Likewise.
23997 (grub_video_fb_get_viewport): Likewise.
23998 (grub_video_fb_map_color): Likewise.
23999 (grub_video_fb_map_rgb): Likewise.
24000 (grub_video_fb_map_rgba): Likewise.
24001 (grub_video_fb_unmap_color): Likewise.
24002 (grub_video_fb_unmap_color_int): Likewise.
24003 (grub_video_fb_fill_rect): Likewise.
24004 (grub_video_fb_blit_bitmap): Likewise.
24005 (grub_video_fb_blit_render_target): Likewise.
24006 (grub_video_fb_scroll): Likewise.
24007 (grub_video_fb_create_render_target): Likewise.
24008 (grub_video_fb_doublebuf_blit_init): Likewise.
24009 (grub_video_fb_set_active_render_target): Handle doublebuffering.
24010 (doublebuf_pageflipping_update_screen): New function.
24011 (doublebuf_pageflipping_init): Likewise.
24012 (grub_video_fb_setup): Likewise.
24013 (grub_video_fb_swap_buffers): Likewise.
24014 (grub_video_fb_get_info_and_fini): Likewise.
24015 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
24016 All users updated.
24017 (doublebuf_pageflipping_commit): Restructured into ...
24018 (doublebuf_pageflipping_set_page): ... this.
24019 (doublebuf_pageflipping_update_screen): Removed.
24020 (doublebuf_pageflipping_init): Likewise.
24021 (double_buffering_init): Likewise.
24022 (grub_video_vbe_setup): Use grub_video_fb_setup.
24023 (grub_video_vbe_swap_buffers): Removed.
24024 (grub_video_vbe_set_active_render_target): Likewise.
24025 (grub_video_vbe_get_active_render_target): Likewise.
24026 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
24027 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
24028 grub_video_fb_set_active_render_target and
24029 grub_video_fb_get_active_render_target.
24030 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
24031 (SEQUENCER_DATA_PORT): Likewise.
24032 (MAP_MASK_REGISTER): Likewise.
24033 (CRTC_ADDR_PORT): Likewise.
24034 (CRTC_DATA_PORT): Likewise.
24035 (START_ADDR_HIGH_REGISTER): Likewise.
24036 (START_ADDR_LOW_REGISTER): Likewise.
24037 (GRAPHICS_ADDR_PORT): Likewise.
24038 (GRAPHICS_DATA_PORT): Likewise.
24039 (READ_MAP_REGISTER): Likewise.
24040 (INPUT_STATUS1_REGISTER): Likewise.
24041 (INPUT_STATUS1_VERTR_BIT): Likewise.
24042 (get_map_mask): Use grub_vga_sr_read.
24043 (set_map_mask): Use grub_vga_sr_write.
24044 (set_read_map): Use grub_vga_gr_write.
24045 (set_start_address): Use grub_vga_cr_write.
24046 * video/sm712.c (framebuffer): Remove leftover fields.
24047
4321c64a
CW
240482010-06-20 Colin Watson <cjwatson@ubuntu.com>
24049
24050 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
24051 setting GRUB_VIDEO_BACKEND. Make it available as a user override
24052 instead. Replace the gfxterm backend check with a check that
24053 ${GRUB_PREFIX}/video.lst is non-empty.
24054 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
24055 again.
24056 (load_video): New generated function. Call it before loading
24057 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
24058 * util/grub.d/10_linux.in (linux_entry): Call load_video.
24059 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
24060 * docs/grub.texi (Simple configuration): Document
24061 GRUB_VIDEO_BACKEND.
24062
240632010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24064
24065 Use video functions in linux and xnu loaders.
24066
24067 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
24068 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
24069 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
24070 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
24071 loader/i386/pc/linux.c.
24072 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
24073 (find_line_len): Removed.
24074 (find_framebuf): Likewise.
24075 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
24076 * loader/i386/efi/xnu.c: Removed.
24077 * loader/i386/pc/xnu.c: Moved from here...
24078 * loader/i386/xnu.c: ...here.
24079
24080 Enable priorities in video drivers.
24081
24082 * include/grub/video.h (grub_video_adapter_prio_t): New type.
24083 (grub_video_adapter): New field prio.
24084 (grub_video_register): Respect prio when inserting.
24085 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
24086 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
24087 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
24088 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
24089 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
24090 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
24091 * video/sm712.c (grub_video_sm712_adapter): Likewise.
24092
24093 Fix SDL driver ID.
24094
24095 * include/grub/video.h (grub_video_driver_id_t): New value
24096 GRUB_VIDEO_DRIVER_SDL.
24097 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
24098
7d24e434
CW
240992010-06-17 Colin Watson <cjwatson@ubuntu.com>
24100
24101 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
24102 argument to printf.
24103 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24104
c88a83f6
CW
241052010-06-17 Colin Watson <cjwatson@ubuntu.com>
24106
24107 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
24108 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24109
094dfb69
CW
241102010-06-17 Colin Watson <cjwatson@ubuntu.com>
24111
24112 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
24113 directly, and recommend grub-install instead.
24114 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24115
2164da6b
CW
241162010-06-17 Colin Watson <cjwatson@ubuntu.com>
24117
24118 Fix i386-pc prefix handling with nested partitions (Debian bug
24119 #585068). Note that the case where the core image is booted using
24120 multiboot and relocated from its original location still requires
24121 more work.
24122
24123 * kern/i386/pc/init.c (make_install_device): If the prefix starts
24124 with "(,", fill the boot drive in between those two characters, but
24125 expect that a full partition specification including partition map
24126 names will follow.
24127 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
24128 specified, write a prefix without the drive name but including a
24129 full partition specification.
24130
044e2e60
CW
241312010-06-16 Colin Watson <cjwatson@ubuntu.com>
24132
24133 * util/grub-mkconfig.in: Ignore non-option arguments, for
24134 compatibility with older versions (before 2010-06-12) which did the
24135 same. In particular, this makes it easier to ship an update-grub
24136 wrapper which is compatible with that used with GRUB Legacy (Debian
24137 bug #586056).
24138
5591324f
GS
241392010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24140
24141 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
24142 for manual page generation.
24143
662e24d5
GS
241442010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24145
24146 * po/POTFILES: Remove leftover commands/handler.c.
24147
8d70754e
CW
241482010-06-14 Colin Watson <cjwatson@ubuntu.com>
24149
24150 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
24151 left this script non-functional.
24152
41160e2e
CW
241532010-06-14 Colin Watson <cjwatson@ubuntu.com>
24154
24155 * docs/man/grub-emu.h2m: New file.
24156
b5309cc1
CW
241572010-06-13 Colin Watson <cjwatson@ubuntu.com>
24158
24159 * docs/grub.texi (Commands): Document reduced command set in rescue
24160 mode.
24161 (cpuid): New section.
24162
fcb2d090
GS
241632010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
24164
24165 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
24166 new partition naming style.
24167 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
24168
96e5c556
BC
241692010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
24170
24171 Add "-o grub.iso" like cmdline options support.
24172
24173 * util/grub-install.in: Improve cmdline option parsing.
24174 * util/grub-mkconfig.in: Likewise.
24175 * util/grub-mkrescue.in: Likewise.
24176 * util/grub-reboot.in: Likewise.
24177 * util/grub-set-default.in: Likewise.
24178 * util/i386/efi/grub-install.in: Likewise.
24179 * util/ieee1275/grub-install.in: Likewise.
24180 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24181
c16be99b
CW
241822010-06-12 Colin Watson <cjwatson@ubuntu.com>
24183
24184 * .bzrignore: Ignore 41_custom.
24185
ce08a9fb
TS
241862010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24187
24188 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
24189
7beac90c
CW
241902010-06-12 Colin Watson <cjwatson@ubuntu.com>
24191
24192 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
24193 prototype declarations.
24194
24195 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
24196 generating fs, partmap, and video lists.
24197 * include/grub/fs.h (grub_fs_register): Omit prototype if
24198 GRUB_LST_GENERATOR is defined.
24199 * include/grub/partition.h (grub_partition_map_register): Likewise.
24200 * include/grub/video.h (grub_video_register): Likewise.
24201
1c8f0f8d
JM
242022010-06-12 Javier Martín <lordhabbit@gmail.com>
24203
24204 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
24205
a6085973
TS
242062010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24207
24208 * util/grub-mkrescue.in: Support --xorriso argument.
24209
25c56d29
VS
242102010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24211
24212 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
24213 Suggested by: Thomas Schmitt.
24214
e03e4b24
VS
242152010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24216
24217 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
24218 Suggested by: Thomas Schmitt.
24219
57711df6
VS
242202010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24221
24222 custom.cfg support.
24223
24224 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
24225 * util/grub.d/41_custom.in: New file.
24226
ee62c427
CW
242272010-06-12 Colin Watson <cjwatson@ubuntu.com>
24228
24229 * util/grub-mkrescue.in (make_image): Remove sh module, which has
24230 been merged back into normal.
24231
283af07a
CW
242322010-06-11 Colin Watson <cjwatson@ubuntu.com>
24233
24234 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
24235 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
24236
56a0d956
CW
242372010-06-11 Colin Watson <cjwatson@ubuntu.com>
24238
24239 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
24240 when generating manual pages.
24241 * docs/man/grub-bin2h.h2m: New file.
24242 * docs/man/grub-editenv.h2m: New file.
24243 * docs/man/grub-fstest.h2m: New file.
24244 * docs/man/grub-install.h2m: New file.
24245 * docs/man/grub-macho2img.h2m: New file.
24246 * docs/man/grub-mkconfig.h2m: New file.
24247 * docs/man/grub-mkdevicemap.h2m: New file.
24248 * docs/man/grub-mkfont.h2m: New file.
24249 * docs/man/grub-mkimage.h2m: New file.
24250 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
24251 * docs/man/grub-mkrelpath.h2m: New file.
24252 * docs/man/grub-mkrescue.h2m: New file.
24253 * docs/man/grub-ofpathname.h2m: New file.
24254 * docs/man/grub-pe2elf.h2m: New file.
24255 * docs/man/grub-probe.h2m: New file.
24256 * docs/man/grub-reboot.h2m: New file.
24257 * docs/man/grub-script-check.h2m: New file.
24258 * docs/man/grub-set-default.h2m: New file.
24259 * docs/man/grub-setup.h2m: New file.
24260
3a37e322
VS
242612010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
24262
24263 Use FOR_* macros instead of *_iterate whenever possible.
24264
24265 * commands/handler.c: Removed.
24266 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
24267 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
24268 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24269 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
24270 (grub_probe_SOURCES): Remove kern/parser.c.
24271 (util/grub-script-check.c_DEPENDENCIES): Removed.
24272 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
24273 and grub_script_check_init.c.
24274 (grub_script_check_init.lst): Removed.
24275 (grub_script_check_init.h): Likewise.
24276 (grub_script_check_init.c): Likewise.
24277 (pkglib_MODULES): Remove handler.mod and sh.mod.
24278 (handler_mod_SOURCES): Removed.
24279 (handler_mod_CFLAGS): Likewise.
24280 (handler_mod_LDFLAGS): Likewise.
24281 (normal_mod_SOURCES): Remove normal/handler.c.
24282 Add script/main.c, script/script.c, script/execute.c,
24283 script/function.c, script/lexer.c, grub_script.tab.c
24284 and grub_script.yy.c.
24285 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24286 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24287 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
24288 (grub_setup_SOURCES): Remove kern/parser.c.
24289 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24290 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
24291 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
24292 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24293 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24294 (grub_setup_SOURCES): Remove kern/parser.c.
24295 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24296 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
24297 * include/grub/command.h (grub_command_iterate): Removed.
24298 (FOR_COMMANDS): New macro.
24299 * include/grub/dl.h (grub_dl): New member next.
24300 (grub_dl_iterate): Removed.
24301 (grub_dl_head): New variable declaration.
24302 (FOR_DL_MODULES): New macro.
24303 * include/grub/fs.h: Include list.h.
24304 (grub_fs): Make next first element.
24305 (grub_fs_list): New variable declaration.
24306 (grub_fs_register): Make inline.
24307 (grub_fs_unregister): Likewise.
24308 (grub_fs_iterate): Removed.
24309 (FOR_FILESYSTEMS): New macro.
24310 * include/grub/handler.h: Removed.
24311 * include/grub/list.h (grub_list_hook_t): Removed.
24312 (grub_list_test_t): Likewise.
24313 (grub_list_pop): Likewise.
24314 (grub_list_iterate): Likewise.
24315 (grub_list_insert): Likewise.
24316 (FOR_LIST_ELEMENTS): New macro.
24317 * include/grub/parser.h (grub_parser_class): Removed.
24318 (grub_parser_register): Likewise.
24319 (grub_parser_unregister): Likewise.
24320 (grub_parser_get_current): Likewise.
24321 (grub_parser_set_current): Likewise.
24322 (grub_register_rescue_parser): Likewise.
24323 (grub_rescue_parse_line): New function.
24324 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
24325 * include/grub/script_sh.h (grub_script_function_list): New variable
24326 declaration.
24327 (FOR_SCRIPT_FUNCTIONS): New macro.
24328 (grub_script_function_iterate): Removed.
24329 (grub_normal_parse_line): New prototype.
24330 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
24331 (FOR_DISABLED_TERM_INPUTS): Likewise.
24332 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24333 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24334 * include/grub/video.h (grub_video_adapter): Move 'next' to first
24335 element.
24336 (grub_video_register): Inline.
24337 (grub_video_unregister): Likewise.
24338 (grub_video_adapter_list): New variable declaration.
24339 (grub_video_iterate): Removed.
24340 (FOR_VIDEO_ADAPTERS): New macro.
24341 * kern/dl.c (grub_dl_list): Removed. All users updated.
24342 (grub_dl_iterate): Removed.
24343 * kern/fs.c (grub_fs_list): Make global.
24344 (grub_fs_register): Removed.
24345 (grub_fs_unregister): Likewise.
24346 (grub_fs_iterate): Likewise.
24347 * kern/handler.c: Removed.
24348 * kern/list.c (grub_list_pop): Removed.
24349 (grub_list_iterate): Likewise.
24350 (grub_list_insert): Likewise.
24351 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
24352 (grub_prio_list_insert): Don't use grub_list_insert.
24353 * kern/main.c (grub_register_rescue_parser): Don't call
24354 grub_register_rescue_parser.
24355 * kern/parser.c (grub_parser_class): Removed.
24356 (grub_parser_execute): Use grub_rescue_parse_line.
24357 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
24358 (grub_rescue_parser): Removed.
24359 (grub_register_rescue_parser): Likewise.
24360 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
24361 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
24362 (grub_auth_check_authentication): Likewise.
24363 * normal/completion.c (iterate_command): Removed.
24364 (grub_normal_do_completion): Use FOR_COMMANDS.
24365 * normal/handler.c: Removed.
24366 * normal/main.c (read_config_file): Remove parser changing.
24367 (grub_normal_execute): Don't call read_handler_list.
24368 (grub_normal_read_line_real): Statically allocate prompt.
24369 (grub_cmdline_run): Use grub_normal_parse_line.
24370 (GRUB_MOD_FINI): Don't call free_handler_list.
24371 * normal/menu_entry.c (run): Likewise.
24372 * script/function.c (grub_script_function_list): Make global.
24373 (grub_script_function_iterate): Removed.
24374 * script/main.c (grub_normal_parse_line): Make global.
24375 (grub_sh_parser): Removed.
24376 (GRUB_MOD_INIT): Likewise.
24377 (GRUB_MOD_FINI): Likewise.
24378 * tests/lib/functional_test.c (grub_functional_test): Use
24379 FOR_LIST_ELEMENTS.
24380 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
24381 (grub_test_run): Use FOR_LIST_ELEMENTS.
24382 * tests/lib/unit_test.c (main): Likewise.
24383 * util/deviceiter.c (grub_util_iterate_devices): Don't use
24384 grub_list_pop.
24385 * util/grub-fstest.c (grub_term_input_class): Removed.
24386 (grub_term_output_class): Likewise.
24387 * util/grub-probe.c: Likewise.
24388 * util/i386/pc/grub-setup.c: Likewise.
24389 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24390 * util/grub-script-check.c (main): Don't call grub_init_all and
24391 grub_fini_all.
24392 * video/video.c (grub_video_adapter_list): Make global.
24393 (grub_video_register): Removed.
24394 (grub_video_unregister): Likewise.
24395 (grub_video_iterate): Likewise.
24396
6289c3a7
VS
243972010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
24398
24399 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
24400 reported by Henrique Ferreiro.
24401
91460247
RM
244022010-06-09 Robert Millan <rmh@gnu.org>
24403
24404 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
24405 ones, when both are available.
24406
0ea7c4f9
GS
244072010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24408
24409 Make --version uniform and avoid hard-coded program name.
24410
24411 * util/grub-mkimage.c (main): Use `program_name' instead of
24412 hard-coded string.
24413 * util/i386/pc/grub-setup.c (main): Likewise.
24414 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
24415 * util/grub-install.in: Save the basename of $0 in $self, and use the
24416 latter in informational messages. Use the same format for --version
24417 as the binary programs.
24418 * util/grub-mkconfig.in: Likewise.
24419 * util/grub-mkrescue.in: Likewise.
24420 * util/grub-reboot.in: Likewise.
24421 * util/grub-set-default.in: Likewise.
24422 * util/i386/efi/grub-install.in: Likewise.
24423 * util/ieee1275/grub-install.in: Likewise.
24424 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24425
e8a6f3b6
GS
244262010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24427
24428 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
24429 embedding area. Use <= instead of == when checking for non-emptiness.
24430
f4d095d7
GS
244312010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24432
24433 * configure.ac: Add `.' to the directories searched for unifont.
24434
50e532ca
CW
244352010-06-08 Colin Watson <cjwatson@ubuntu.com>
24436
24437 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
24438 grub_script.yy.h.
24439
d39f3dec
CW
244402010-06-08 Colin Watson <cjwatson@ubuntu.com>
24441
24442 * docs/grub.texi (History): Expand to cover GRUB 2.
24443 (Serial terminal): Refer to `terminal_input' and `terminal_output'
24444 commands, not `terminal'.
24445 (serial): Likewise.
24446 (terminal_input): New section.
24447 (terminal_output): New section.
24448 (uppermem): New section (stub).
24449 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
24450
6ef0ddb4
CW
244512010-06-08 Colin Watson <cjwatson@ubuntu.com>
24452
24453 * docs/grub.texi (Security): Menu entries are unrestricted by
24454 default, not restricted to superusers as I had previously thought.
24455 Reword to account for this.
24456
e0f4c438
CW
244572010-06-07 Colin Watson <cjwatson@ubuntu.com>
24458
24459 * kern/emu/misc.c (device_mapper_null_log): New function.
24460 (grub_device_mapper_supported): New function.
24461 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
24462 prototype.
24463 * kern/emu/hostdisk.c (find_partition_start): Check whether
24464 device-mapper is supported before trying to use it.
24465 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
24466
da908200
CW
244672010-06-07 Colin Watson <cjwatson@ubuntu.com>
24468
24469 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
24470 (File name syntax): Likewise.
24471 (help): --all is no longer supported in GRUB 2. Be more precise
24472 about pattern matching.
24473
fb55c3ac
CW
244742010-06-07 Colin Watson <cjwatson@ubuntu.com>
24475
24476 * normal/completion.c (grub_normal_do_completion): When completing
24477 arguments to "set" and the current word contains an equals sign,
24478 skip to after the equals sign before starting completion.
24479
258c2573
CW
244802010-06-07 Colin Watson <cjwatson@ubuntu.com>
24481
24482 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
24483
ee75515e
CW
244842010-06-07 Colin Watson <cjwatson@ubuntu.com>
24485
24486 * docs/grub.texi (Network): New section.
24487 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
24488 `(nd)' as in GRUB Legacy.
24489 (pxe_unload): New section.
24490
a6a700aa
CW
244912010-06-07 Colin Watson <cjwatson@ubuntu.com>
24492
24493 * docs/grub.texi (Troubleshooting): `echo' is not usually available
24494 in the rescue shell, so recommend using `set' instead. Thanks,
24495 Jordan Uggla.
24496
4003dd38
CW
244972010-06-07 Colin Watson <cjwatson@ubuntu.com>
24498
24499 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
24500 (password): New section.
24501 (password_pbkdf2): New section.
24502 (search): New section.
24503 (Security): New section.
24504 (Troubleshooting): New section, currently very incomplete.
24505 (Invoking grub-mkpasswd-pbkdf2): New section.
24506 (Internals): New section, currently very incomplete.
24507
e1cbcc40
CW
245082010-06-07 Colin Watson <cjwatson@ubuntu.com>
24509
24510 * util/grub.d/00_header.in: Add some more quoting (of
24511 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
24512 work again.
24513 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
24514
db8fa1ad
CW
245152010-06-07 Colin Watson <cjwatson@ubuntu.com>
24516
24517 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
24518 to `count', fixing variable shadowing that broke the -c option.
24519
245202010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
24521
24522 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
24523 in case they contain spaces.
24524
f28a9212
CW
245252010-06-04 Colin Watson <cjwatson@ubuntu.com>
24526
24527 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
24528 "part_" to partmap module names, in line with grub-install.
24529 Reported by: Jindřich Makovička (Debian bug #584426).
24530
9cdfe32f
CW
245312010-06-04 Colin Watson <cjwatson@ubuntu.com>
24532
24533 * util/grub-mkimage.c: Make target-related error messages slightly
24534 more helpful; -O talks about "format". Explicitly point to the use
24535 of -O if no target is specified.
24536 Reported by: Didier Raboud (Debian bug #584415).
24537
795b593a
CW
245382010-06-03 Colin Watson <cjwatson@ubuntu.com>
24539
24540 * INSTALL: Document several build requirements for optional features
24541 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
24542
9d9b5833
GS
245432010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
24544
24545 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
24546 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
24547 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
24548
0819fec8
CW
245492010-06-02 Colin Watson <cjwatson@ubuntu.com>
24550
24551 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
24552 Thanks to Jordan Uggla for spotting this.
24553
49396b4f
VS
245542010-06-02 Aleš Nesrsta <starous@volny.cz>
24555
24556 Finally make USB usable.
24557
24558 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
24559 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
24560 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
24561 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
24562 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
24563 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
24564 (GRUB_OHCI_FSMPS): Likewise.
24565 (GRUB_OHCI_PERIODIC_START): Likewise.
24566 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
24567 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
24568 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
24569 (GRUB_OHCI_SET_PORT_RESET): Likewise.
24570 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
24571 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
24572 (grub_ohci_transaction): Likewise.
24573 (grub_ohci_transfer): Improve condition detection algorithms.
24574 Handle toggle property. Program the transactions correctly.
24575 Improve error handling. Various important fixups.
24576 (grub_ohci_portstatus): Put register writes in right order.
24577 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
24578 (grub_uhci_transfer): Don't show "failed" message on success.
24579 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
24580 array.
24581 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
24582 determine its size.
24583 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
24584 before initialization is completed. Use IN direction for empty
24585 transfers. Use last_trans and compute toggle.
24586 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
24587 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
24588 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
24589 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
24590 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
24591 (grub_usb_device): Increase toggle to 256.
24592 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
24593 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
24594 GRUB_USBMS_SUBCLASS_SFF8070.
24595 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
24596 (grub_scsi_inquiry): New member page and alloc_length.
24597 (grub_scsi_request_sense): New structure.
24598 (grub_scsi_request_sense_data): Likewise.
24599 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
24600 control.
24601 * disk/scsi.c (grub_scsi_request_sense): New function.
24602 (grub_scsi_test_unit_ready): Likewise.
24603 (grub_scsi_inquiry): Fill new fields.
24604 (grub_scsi_read_capacity): Likewise.
24605 (grub_scsi_read10): Add request sense at the end.
24606 (grub_scsi_read12): Likewise.
24607 (grub_scsi_write10): Likewise.
24608 (grub_scsi_write12): Likewise.
24609 (grub_scsi_open): Add Test Unit Ready.
24610 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
24611 Support additional subclasses. Con't clear halt yet. Activate the
24612 proper config. Calculate LUNs correctly.
24613 (grub_usbms_transfer): Various important fixups.
24614
246152010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24616
24617 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
24618 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
24619 (grub_ohci_fini_hw): New function.
24620 (grub_ohci_restore_hw): Likewise.
24621 (GRUB_MOD_INIT(ohci)): Register preboot hook.
24622 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
24623 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
24624
246252010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24626
24627 Dedicated DMA allocations.
24628
24629 * bus/pci.c (grub_memalign_dma32): New function
24630 (grub_dma_free): Likewise.
24631 (grub_dma_get_virt): Likewise.
24632 (grub_dma_get_phys): Likewise.
24633 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
24634 (grub_ohci_pci_iter): Use dma32_alloc.
24635 (grub_ohci_transfer): Likewise.
24636 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24637 (grub_usb_bulk_readwrite): Likewise.
24638 * include/grub/pci.h: Add declarations.
24639
246402010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24641
24642 CS5536 support.
24643
24644 * bus/cs5536.c: New file.
24645 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
24646 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
24647 (cs5536_mod_SOURCES): New variable.
24648 (cs5536_mod_CFLAGS): Likewise.
24649 (cs5536_mod_LDFLAGS): Likewise.
24650 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
24651 machine/pci.h.
24652 (kernel_img_SOURCES): Add bus/cs5536.c.
24653 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
24654 usb_keyboard.mod.
24655 (usb_mod_SOURCES): New variable.
24656 (usb_mod_CFLAGS): New variable.
24657 (usb_mod_LDFLAGS): New variable.
24658 (usbtest_mod_SOURCES): New variable.
24659 (usbtest_mod_CFLAGS): New variable.
24660 (usbtest_mod_LDFLAGS): New variable.
24661 (ohci_mod_SOURCES): New variable.
24662 (ohci_mod_CFLAGS): New variable.
24663 (ohci_mod_LDFLAGS): New variable.
24664 (usbms_mod_SOURCES): New variable.
24665 (usbms_mod_CFLAGS): New variable.
24666 (usbms_mod_LDFLAGS): New variable.
24667 (usb_keyboard_mod_SOURCES): New variable.
24668 (usb_keyboard_mod_CFLAGS): New variable.
24669 (usb_keyboard_mod_LDFLAGS): New variable.
24670 * include/grub/smbus.h: New file.
24671 * include/grub/cs5536.h: New file.
24672
0b35b2a9
CW
246732010-06-02 Colin Watson <cjwatson@ubuntu.com>
24674
24675 * util/grub.d/00_header.in: Add safety check to make sure that
24676 ${locale_dir} exists before trying to probe it.
24677
ca0afd5b
CW
246782010-06-02 Colin Watson <cjwatson@ubuntu.com>
24679
24680 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
24681 per the GNU Coding Standards; this is now too obscure to be worth
24682 documenting.
24683 (QNX): Likewise.
24684 (chainloader): Remove cross-reference to `SCO UnixWare'.
24685
1c41aa78
CW
246862010-06-02 Colin Watson <cjwatson@ubuntu.com>
24687
24688 * docs/grub.texi (Chain-loading): New section.
24689 (DOS/Windows): New section, borrowed from GRUB Legacy with details
24690 adjusted for GRUB 2.
24691 (SCO UnixWare): Likewise.
24692 (QNX): Likewise.
24693 (chainloader): Add reference to `Block list syntax'.
24694 (drivemap): New section.
24695 (parttool): New section.
24696
bb8ea0f5
CW
246972010-06-02 Colin Watson <cjwatson@ubuntu.com>
24698
24699 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
24700 the grub shell'.
24701 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
24702 (Installing GRUB using grub-install): Remove reference to the grub
24703 shell; mention `grub-mkimage' and `grub-setup' instead.
24704 (Invoking grub-install): Likewise.
24705 (Interface): Add reference to `Menu entry editor'.
24706 (serial): Remove `--device' option.
24707
288dd6ed
CW
247082010-06-02 Colin Watson <cjwatson@ubuntu.com>
24709
24710 * docs/grub.texi (Configuration): New section, documenting
24711 configuration file generation using grub-mkconfig. I've left a slot
24712 for documenting the full shell scripting format but have not yet
24713 started on writing that up.
24714 (Invoking grub-mkconfig): New section.
24715
34c9f0e9
CW
247162010-06-02 Colin Watson <cjwatson@ubuntu.com>
24717
24718 * docs/grub.texi (direntry): Remove grub-terminfo reference.
24719 (GNU GRUB manual): Likewise.
24720 (General commands): Update description of `terminfo' for GRUB 2.
24721
9121567e
CW
247222010-06-02 Colin Watson <cjwatson@ubuntu.com>
24723
24724 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
24725 (GRUB_MOD_INIT): Fix capitalisation.
24726 * docs/grub.texi (Command-line and menu entry commands): Document
24727 gettext and gptsync commands.
24728
ab631611
CW
247292010-06-02 Colin Watson <cjwatson@ubuntu.com>
24730
24731 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
24732 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
24733
bde4a9ac
CW
247342010-06-01 Colin Watson <cjwatson@ubuntu.com>
24735
24736 Add btrfs probing support, currently only in the single-device case.
24737
24738 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
24739 function.
24740 (grub_guess_root_device): Call find_root_device_from_mountinfo
24741 before looking in /dev.
24742
b1d17e10
VS
247432010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24744
24745 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
24746 GRUB_DISK_SIZE_UNKNOWN.
24747 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
24748
dfbfe004
JS
247492010-05-31 Jiro SEKIBA <jir@unicus.jp>
24750
24751 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
24752 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
24753 corrupted or not synced properly.
24754
c2ffc8e9
VS
247552010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24756
24757 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
24758 Reported by: Seth Goldberg.
24759
56293166
VS
247602010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24761
24762 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
24763 addition of dest.
24764 Reported by: Seth Goldberg.
24765
7620e7de
VS
247662010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24767
24768 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
24769 Reported by: Seth Goldberg.
24770
c837af3f
VS
247712010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24772
24773 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
24774 64-bit address as signed on MIPS.
24775
c7c75cf4
CW
247762010-05-28 Colin Watson <cjwatson@ubuntu.com>
24777
24778 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
24779 to the empty string.
24780
fa4b8490
BC
247812010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
24782
24783 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
24784
24785 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
24786 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
24787 * kern/misc.c (__enable_execute_stack): Disable on
24788 GRUB_MACHINE_EMU.
24789
a33075b9
CW
247902010-05-28 Colin Watson <cjwatson@ubuntu.com>
24791
24792 Make grub-probe work with symbolic links under /dev/mapper as well
24793 as with real block devices. The Linux world seems to be (at best)
24794 in transition here, and GRUB shouldn't get caught in the middle.
24795
24796 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
24797 /dev/mapper.
24798
d8708134
CW
247992010-05-27 Colin Watson <cjwatson@ubuntu.com>
24800
24801 * util/grub-script-check.c (main): Ensure defined behaviour on empty
24802 input files (in which case exit zero).
24803
db2102a0
CW
248042010-05-27 Colin Watson <cjwatson@ubuntu.com>
24805
24806 * kern/emu/misc.c (canonicalize_file_name): realpath can still
24807 return NULL for various reasons even if it has a maximum-length
24808 buffer: for example, there might be a symlink loop, or the path
24809 might exceed PATH_MAX. If this happens, return NULL.
24810
5fdba519
RM
248112010-05-27 Robert Millan <rmh@gnu.org>
24812
24813 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
24814 partmap module to handle cross-partmap setups.
24815 Reported by Orestes Mas. Gràcies!
24816
d1d368e4
CW
248172010-05-27 Colin Watson <cjwatson@ubuntu.com>
24818
24819 * util/grub-mkrescue.in: Initialise override_dir rather than
24820 assuming that it's unset or empty in the environment.
24821
95ac3c73
GS
248222010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
24823
24824 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
24825 variable index into p_index to suppress a warning with -Wshadow.
24826
7d8c0213
BC
248272010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
24828
24829 * INSTALL: Added flex >= 2.5.35 requirement.
24830
db4d5813
VS
248312010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24832
24833 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
24834
f24f4300
VS
248352010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24836
24837 cmostest support.
24838
24839 * commands/i386/cmostest.c: New file.
24840 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
24841 (cmostest_mod_SOURCES): New variable.
24842 (cmostest_mod_CFLAGS): Likewise.
24843 (cmostest_mod_LDFLAGS): Likewise.
24844 * conf/i386-pc.rmk: Likewise.
24845 * docs/grub.texi (Vendor power-on keys): New section.
24846 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
24847 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
24848 and GRUB_BUTTON_CMOS_ADDRESS.
24849 * util/grub.d/00_header.in: Handle powering-on by separate button.
24850
ad603f61
VS
248512010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24852
24853 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
24854 Removed drawing_scrollbar argument. All users updated
24855 Fixes #29792.
24856 Reported by Jo Shields
24857
3ecb080a
VS
248582010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24859
24860 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
24861 buffer since gfxterm handles double repaint.
24862
5f2316c1
VS
248632010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24864
24865 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
24866 * term/gfxterm.c (real_scroll): Likewise.
24867
9a25f885
VS
248682010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24869
24870 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
24871 before calling BIOS.
24872
39fbb79a
VS
248732010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24874
24875 * include/grub/i18n.h: Always enable grub_gettext.
24876
228cfa97
VS
248772010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24878
24879 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
24880 partition naming style.
24881
21717c8f
CW
248822010-05-21 Colin Watson <cjwatson@ubuntu.com>
24883
24884 * util/grub-mkconfig.in: Fix handling of -o so that it works when
24885 not the first option.
24886
c0f48e65
CW
248872010-05-20 Colin Watson <cjwatson@ubuntu.com>
24888
24889 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
24890
96779aec
CW
248912010-05-20 Colin Watson <cjwatson@ubuntu.com>
24892
24893 * util/misc.c: Move inclusion of <limits.h> to ...
24894 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
24895
fa9d256e
GS
248962010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
24897
24898 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
24899 Fix merge error in NetBSD code.
24900 (find_partition_start) [__NetBSD__]: Likewise.
24901
123b7a85
BC
249022010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
24903
24904 Fix grub-mkrescue usage unit testing.
24905
24906 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
24907
74276c0d
CF
249082010-05-18 Christian Franke <franke@computer.org>
24909
24910 * util/grub.d/10_windows.in: Use path names instead of
24911 drive letters to prevent warning from Cygwin 1.7.
24912 Add drivemap command to menuentry if needed.
24913
c4f7b523
ST
249142010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
24915
24916 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
24917 gnumach and gnumach.gz.
24918
95b97950
VS
249192010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24920
24921 * include/grub/i18n.h (gettext): Inline instead of using #define.
24922 (grub_gettext): Likewise.
24923 (_): Likewise.
24924
01b8d2d7
VS
249252010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24926
24927 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
24928 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
24929 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
24930 (main): Add a slash after pkglibdirroot.
24931
654e1d1e
VS
249322010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24933
24934 * util/grub-install.in: Add missing "in" keyword.
24935
26966aeb
VS
249362010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24937
24938 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
24939 Reported by: Seth Goldberg.
24940
75006747
VS
249412010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24942
24943 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
24944
74cbf5bd
CW
249452010-05-18 Colin Watson <cjwatson@ubuntu.com>
24946
24947 * configure.ac: Check for Linux device-mapper support.
24948
24949 * util/hostdisk.c (device_is_mapped): New function.
24950 (find_partition_start): New function, partly broken out from
24951 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
24952 device-mapper support added.
24953 (linux_find_partition): Use find_partition_start.
24954 (convert_system_partition_to_system_disk): Add `st' argument.
24955 Support Linux /dev/mapper/* devices if device-mapper support is
24956 available; only DM-RAID devices are understood at present.
24957 (find_system_device): Add `st' argument. Pass it to
24958 convert_system_partition_to_system_disk.
24959 (grub_util_biosdisk_get_grub_dev): Pass stat result to
24960 find_system_device and convert_system_partition_to_system_disk. Use
24961 find_partition_start.
24962
24963 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
24964 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
24965 * util/deviceiter.c [__linux__]: Define MINOR.
24966 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
24967 * util/mkdevicemap.c (grub_putchar): New function.
24968 (grub_getkey): New function.
24969 (grub_refresh): New function.
24970 (main): Set debug=all if -v -v is used.
24971
355b51e9
CW
249722010-05-18 Colin Watson <cjwatson@ubuntu.com>
24973
24974 Fix build with non-GNU libcs.
24975
24976 * util/misc.c (canonicalize_file_name): Move to ...
24977 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
24978 grub_make_system_path_relative_to_its_root.
24979
7fb5c25f
CW
249802010-05-18 Colin Watson <cjwatson@ubuntu.com>
24981
24982 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
24983 we handle finding grub-mkimage. Default to finding grub-mkimage in
24984 ${bindir} with program_transform_name applied, and provide a
24985 --grub-mkimage option to override this.
24986
1d3293d6
VS
249872010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24988
24989 Remove grub-mkisofs.
24990
24991 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
24992 (grub_mkisofs_SOURCES): Removed.
24993 (grub_mkisofs_CFLAGS): Removed.
24994 * util/mkisofs/defaults.h: Removed.
24995 * util/mkisofs/eltorito.c: Likewise.
24996 * util/mkisofs/exclude.h: Likewise.
24997 * util/mkisofs/hash.c: Likewise.
24998 * util/mkisofs/include/: Likewise.
24999 * util/mkisofs/include/fctldefs.h: Likewise.
25000 * util/mkisofs/include/mconfig.h: Likewise.
25001 * util/mkisofs/include/prototyp.h: Likewise.
25002 * util/mkisofs/include/statdefs.h: Likewise.
25003 * util/mkisofs/iso9660.h: Likewise.
25004 * util/mkisofs/joliet.c: Likewise.
25005 * util/mkisofs/match.c: Likewise.
25006 * util/mkisofs/match.h: Likewise.
25007 * util/mkisofs/mkisofs.c: Likewise.
25008 * util/mkisofs/mkisofs.h: Likewise.
25009 * util/mkisofs/msdos_partition.h: Likewise.
25010 * util/mkisofs/multi.c: Likewise.
25011 * util/mkisofs/name.c: Likewise.
25012 * util/mkisofs/rock.c: Likewise.
25013 * util/mkisofs/tree.c: Likewise.
25014 * util/mkisofs/write.c: Likewise.
25015
5dde9afe
VS
250162010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25017
25018 Unify grub-mkimage accross platforms.
25019
25020 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
25021 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
25022 (grub_mkelfimage_SOURCES): Removed.
25023 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
25024 (util/grub-mkimage.c_DEPENDENCIES): .. this.
25025 (bin_UTILITIES): Add grub-mkimage.
25026 (grub_mkimage_SOURCES): New variable.
25027 (kernel_img_HEADERS): Remove machine/kernel.h.
25028 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
25029 (pkglib_PROGRAMS): Add kernel.img.
25030 (kernel_img_HEADERS): Add machine/kernel.h.
25031 (kernel_img_FORMAT): Removed.
25032 (bin_UTILITIES): Remove grub-mkimage.
25033 (grub_mkimage_SOURCES): Removed.
25034 (grub_mkimage_CFLAGS): Likewise.
25035 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25036 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
25037 (pkglib_PROGRAMS): Add kernel.img.
25038 (bin_UTILITIES): Remove grub-mkimage.
25039 (grub_mkimage_SOURCES): Removed.
25040 (grub_mkimage_CFLAGS): Likewise.
25041 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25042 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
25043 (pkglib_PROGRAMS): Add kernel.img.
25044 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
25045 (pkglib_PROGRAMS): Add kernel.img.
25046 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
25047 (grub_mkimage_SOURCES): Removed.
25048 (grub_mkimage_CFLAGS): Likewise.
25049 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25050 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
25051 (pkglib_PROGRAMS): Add kernel.img.
25052 (bin_UTILITIES): Remove grub-mkimage.
25053 (grub_mkimage_SOURCES): Removed.
25054 (grub_mkimage_CFLAGS): Likewise.
25055 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25056 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
25057 (grub_mkimage_SOURCES): Removed.
25058 (grub_mkimage_CFLAGS): Likewise.
25059 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25060 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
25061 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
25062 (grub_pe32_optional_header): ... this.
25063 (grub_pe64_optional_header): ... and this. All users updated.
25064 (GRUB_PE32_PE32_MAGIC): Split into ..
25065 (GRUB_PE32_PE32_MAGIC): .. this.
25066 (GRUB_PE32_PE64_MAGIC): .. and this.
25067 (GRUB_PE32_SIGNATURE_SIZE): New definition.
25068 * include/grub/elf.h (PT_GNU_STACK): New definition.
25069 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
25070 * include/grub/i386/efi/kernel.h: Likewise.
25071 * include/grub/i386/kernel.h: Likewise.
25072 * include/grub/i386/pc/kernel.h: Likewise.
25073 * include/grub/i386/qemu/boot.h: Likewise.
25074 * include/grub/mips/kernel.h: Likewise.
25075 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25076 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25077 * include/grub/powerpc/kernel.h: Likewise.
25078 * include/grub/sparc64/ieee1275/boot.h: Likewise.
25079 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25080 * include/grub/sparc64/kernel.h: Likewise.
25081 * include/grub/x86_64/efi/kernel.h: Likewise.
25082 * include/grub/x86_64/kernel.h: Likewise.
25083 * include/grub/offsets.h: New file.
25084 * include/grub/kernel.h (grub_module_info): Split into ...
25085 (grub_module_info32): ... this.
25086 (grub_module_info64): ... and this.
25087 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
25088 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
25089 (grub_boot_blocklist): Moved from here ...
25090 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
25091 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
25092 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
25093 * include/grub/types.h (grub_target_to_host16): Removed.
25094 (grub_target_to_host32): Likewise.
25095 (grub_target_to_host64): Likewise.
25096 (grub_host_to_target16): Likewise.
25097 (grub_host_to_target32): Likewise.
25098 (grub_host_to_target64): Likewise.
25099 (grub_host_to_target_addr): Likewise.
25100
25101 Support grub-mkrescue for efi, coreboot and qemu.
25102
25103 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
25104 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
25105 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
25106 * util/grub-mkrawimage.c: Moved from here ...
25107 * util/grub-mkimage.c: ... here. All users updated.
25108 (ALIGN_ADDR): Use image_target.
25109 (TARGET_NO_FIELD): New const.
25110 (image_target_desc): New type.
25111 (image_targets): New array.
25112 (grub_target_to_host64): Use image_target.
25113 (grub_target_to_host32): Likewise.
25114 (grub_target_to_host16): Likewise.
25115 (grub_host_to_target64): Likewise.
25116 (grub_host_to_target32): Likewise.
25117 (grub_host_to_target16): Likewise.
25118 (grub_host_to_target_addr): Likewise.
25119 (generate_image): Handle multiimage.
25120 (main): Require -O parameter. All users updated.
25121 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
25122 util/efi/grub-mkimage.c
25123 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
25124 New option --rom-directory.
25125 Use xorriso.
25126 * util/i386/efi/grub-mkimage.c: Removed.
25127 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
25128 (grub_target_to_host32): Likewise.
25129 (grub_target_to_host64): Likewise.
25130 (grub_host_to_target16): Likewise.
25131 (grub_host_to_target32): Likewise.
25132 (grub_host_to_target64): Likewise.
25133 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
25134 (grub_target_to_host32): Likewise.
25135 (grub_target_to_host64): Likewise.
25136 (grub_host_to_target16): Likewise.
25137 (grub_host_to_target32): Likewise.
25138 (grub_host_to_target64): Likewise.
25139
f4fc97d0
BC
251402010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
25141
25142 Source tree is reorganized for emu build.
25143
25144 * include/grub/util/console.h: Move from here...
25145 * include/grub/emu/console.h: ...to here.
25146 * include/grub/util/getroot.h: Move from here...
25147 * include/grub/emu/getroot.h: ...to here.
25148 * include/grub/util/hostdisk.h: Move from here...
25149 * include/grub/emu/hostdisk.h: ...to here.
25150 * util/console.c: Move from here...
25151 * kern/emu/console.c: ...to here.
25152 * util/getroot.c: Move from here...
25153 * kern/emu/getroot.c: ...to here.
25154 * util/grub-emu.c: Move from here...
25155 * kern/emu/main.c: ...to here.
25156 * util/hostdisk.c: Move from here...
25157 * kern/emu/hostdisk.c: ...to here.
25158 * util/hostfs.c: Move from here...
25159 * kern/emu/hostfs.c: ...to here.
25160 * util/mm.c: Move from here...
25161 * kern/emu/mm.c: ...to here.
25162 * util/pci.c: Move from here...
25163 * bus/emu/pci.c: ...to here.
25164 * util/sdl.c: Move from here...
25165 * video/emu/sdl.c: ...to here.
25166 * util/time.c: Move from here...
25167 * kern/emu/time.c: ...to here.
25168 * util/usb.c: Move from here...
25169 * bus/usb/emu/usb.c: ...to here.
25170
25171 * include/grub/emu/misc.h: New header for grub-emu functions.
25172 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
25173
25174 * conf/any-emu.rmk: Rule updates for above renames.
25175 * conf/common.rmk: Likewise.
25176 * conf/i386-pc.rmk: Likewise.
25177 * conf/i386-qemu.rmk: Likewise.
25178 * conf/mips.rmk: Likewise.
25179 * conf/sparc64-ieee1275.rmk: Likewise.
25180 * conf/x86-efi.rmk: Likewise.
25181
25182 * disk/lvm.h: #include updates for above renames.
25183 * util/grub-mkrelpath.c: Likewise.
25184 * util/grub-probe.c: Likewise.
25185 * util/i386/pc/grub-setup.c: Likewise.
25186 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25187 * kern/emu/console.c: Likewise.
25188 * kern/emu/getroot.c: Likewise.
25189 * kern/emu/hostdisk.c: Likewise.
25190 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
25191
25192 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
25193 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
25194 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
25195 * util/misc.c: Remove grub-emu functions.
25196
cced9145
VS
251972010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
25198
25199 Fix gfxmenu crash.
25200 Reported by: Thorsten Grützmacher.
25201
25202 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
25203 timeout hook.
25204 (circprog_set_property): Register and unregister timeout hook.
25205 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
25206 (label_destroy): Free template. and unregister hook.
25207 (label_set_state): New function.
25208 (label_set_property): Handle templates and hooks.
25209 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
25210 timeout hook.
25211 (progress_bar_set_property): Register and unregister timeout hook.
25212 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
25213 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
25214 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
25215 (update_timeout_visit): Removed.
25216 (update_timeouts): New function.
25217 (redraw_timeouts): Likewise.
25218 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
25219 (grub_gfxmenu_clear_timeout): Likewise.
25220 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
25221 (grub_gfxmenu_timeout_notify): Likewise.
25222 (grub_gfxmenu_timeout_notifications): New external variable.
25223 (grub_gfxmenu_timeout_register): New function.
25224 (grub_gfxmenu_timeout_unregister): Likewise.
25225
c6e5caab
VS
252262010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
25227
25228 Transform (broken) vga terminal into (working) vga video driver.
25229
25230 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
25231 video/i386/pc/vga.c.
25232 * include/grub/video.h (grub_video_driver_id):
25233 Add GRUB_VIDEO_DRIVER_VGA.
25234 * term/i386/pc/vga.c: Renamed to ...
25235 * video/i386/pc/vga.c: ...this
25236 (DEBUG_VGA): Removed.
25237 (CHAR_WIDTH): Likewise.
25238 (CHAR_HEIGHT): Likewise.
25239 (TEXT_WIDTH): Likewise.
25240 (TEXT_HEIGHT): Likewise.
25241 (DEFAULT_FG_COLOR): Likewise.
25242 (DEFAULT_BG_COLOR): Likewise.
25243 (colored_char): Likewise.
25244 (xpos): Likewise.
25245 (ypos): Likewise.
25246 (cursor_state): Likewise.
25247 (fg_color): Likewise.
25248 (bg_color): Likewise.
25249 (text_buf): Likewise.
25250 (page): Likewise.
25251 (font): Likewise.
25252 (framebuffer): New variable.
25253 (set_read_map): Disabled.
25254 (setup): New variable.
25255 (is_target): Likewise.
25256 (grub_vga_mod_init): Likewise.
25257 (grub_vga_mod_fini): Likewise.
25258 (check_vga_mem): Likewise.
25259 (write_char): Likewise.
25260 (write_cursor): Likewise.
25261 (scroll_up): Likewise.
25262 (grub_vga_putchar): Likewise.
25263 (grub_vga_getcharwidth): Likewise.
25264 (grub_vga_getwh): Likewise.
25265 (grub_vga_getxy): Likewise.
25266 (grub_vga_gotoxy): Likewise.
25267 (grub_vga_cls): Likewise.
25268 (grub_vga_setcolorstate): Likewise.
25269 (grub_vga_setcursor): Likewise.
25270 (grub_video_vga_init): New function.
25271 (grub_video_vga_setup): Likewise.
25272 (grub_video_vga_fini): Likewise.
25273 (update_target): Likewise.
25274 (grub_video_vga_blit_bitmap): Likewise.
25275 (grub_video_vga_blit_render_target): Likewise.
25276 (grub_video_vga_set_active_render_target): Likewise.
25277 (grub_video_vga_get_active_render_target): Likewise.
25278 (grub_video_vga_swap_buffers): Likewise.
25279 (grub_video_vga_set_palette): Likewise.
25280 (grub_video_vga_get_info_and_fini): Likewise.
25281 (grub_vga_term): Removed.
25282 (grub_video_vga_adapter): New variable.
25283 (GRUB_MOD_INIT): Register a video driver instead of terminal.
25284 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
25285
2bf61a98
VS
252862010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25287
25288 * video/readers/jpeg.c: Indented.
25289
09ddcd11
VS
252902010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25291
25292 Various jpeg cleanups.
25293
25294 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
25295 (grub_jpeg_decode_quan_table): Use sizeof.
25296 (grub_jpeg_decode_du): Use ARRAY_SIZE.
25297
e5507505
PH
252982010-05-05 Peter Hurley <No e-mail available> (tiny change)
25299
25300 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
25301 tables. Ignore non-last ac bit.
25302 (grub_jpeg_decode_quan_table): Likewise.
25303
7e720a9b
VS
253042010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25305
25306 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
25307 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
25308 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
25309 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
25310 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
25311 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
25312
a7fc080b
VS
253132010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25314
25315 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
25316 error.
25317
2bf6012d
VS
253182010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25319
25320 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
25321
265d68cd
VS
253222010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25323
25324 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
25325 condition.
25326
253272010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
25328
25329 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
25330 part.
25331
265d68cd 253322010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
25333
25334 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
25335 pointers.
25336
265d68cd 253372010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
25338
25339 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
25340
d1b61374
CF
253412010-05-01 Christian Franke <franke@computer.org>
25342
25343 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
25344 Remove broken Cygwin path conversion.
25345 * util/misc.c: [__CYGWIN__] Add include and define.
25346 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
25347 for Cygwin 1.7.
25348 (make_system_path_relative_to_its_root): Simplify loop, replace early
25349 return by break.
25350 [__CYGWIN__] Add conversion to win32 path.
25351 Include "/" case in trailing slash removal.
25352
3558c6e9
VS
253532010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25354
25355 * kern/main.c (grub_load_config): Fix copy-pasted comment.
25356 Reported by: Seth Goldberg
25357
f5f3ff93
VS
253582010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25359
25360 * commands/help.c (grub_cmd_help): Fix a typo.
25361 Reported by: Seth Goldberg
25362
d8b5cd40
VS
253632010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25364
25365 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
25366 name and add N_.
25367 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
25368 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
25369 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
25370 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
25371 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
25372 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
25373 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25374 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25375 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25376 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25377 * normal/context.c (GRUB_MOD_INIT): Likewise.
25378 * normal/main.c (GRUB_MOD_INIT): Likewise.
25379 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25380 * term/serial.c (GRUB_MOD_INIT): Likewise.
25381 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25382
88c14915
VS
253832010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25384
25385 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
25386 extra == 0.
25387
165134bc
VS
253882010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25389
25390 * commands/iorw.c: New file.
25391 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
25392 (iorw_mod_SOURCES): New variable.
25393 (iorw_mod_CFLAGS): Likewise.
25394 (iorw_mod_LDFLAGS): Likewise.
25395
c5ac9b32
VS
253962010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25397
25398 Hotkey support
25399
25400 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
25401 * normal/main.c (hotkey_aliases): New variable.
25402 (grub_normal_add_menu_entry): Parse "--hotkey".
25403 * normal/menu_text.c (run_menu): Handle hotkeys.
25404
ce60689c
VS
254052010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25406
25407 * kern/i386/coreboot/init.c (grub_machine_init): Call
25408 grub_machine_mmap_init on qemu.
25409
0359d006
VS
254102010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25411
25412 * boot/i386/qemu/boot.S: Add a missing .code16.
25413
7819a456
VS
254142010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25415
25416 Use LBIO on coreboot.
25417
25418 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
25419 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
25420 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
25421 New declaration.
25422 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
25423 grub_machine_mmap_init on coreboot.
25424 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
25425 GRUB_LINUXBIOS_MEMBER_LINK.
25426 (grub_machine_mmap_iterate): Fix declaration.
25427 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
25428
7210dca9
VS
254292010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25430
25431 Split coreboot and multiboot ports.
25432
25433 * conf/i386-multiboot.rmk: New file.
25434 * configure.ac: Add multiboot port.
25435 * include/grub/i386/multiboot/boot.h: New file.
25436 * include/grub/i386/multiboot/console.h: Likewise.
25437 * include/grub/i386/multiboot/init.h: Likewise.
25438 * include/grub/i386/multiboot/kernel.h: Likewise.
25439 * include/grub/i386/multiboot/loader.h: Likewise.
25440 * include/grub/i386/multiboot/memory.h: Likewise.
25441 * include/grub/i386/multiboot/serial.h: Likewise.
25442 * include/grub/i386/multiboot/time.h: Likewise.
25443 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
25444 * loader/multiboot.c: Likewise.
25445 * loader/multiboot_mbi2.c: Likewise.
25446 * util/grub-mkrescue.in: Generate multiboot rescue.
25447
6f8aaf68
VS
254482010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25449
3080f7a7
VS
25450 * kern/parser.c (grub_parser_execute): Cope with read-only config.
25451
254522010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25453
25454 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
25455
25456 * commands/terminal.c (abstract_terminal): New struct.
25457 (handle_command): New function. Based on grub_cmd_terminal_input.
25458 (grub_cmd_terminal_input): Use handle_command.
25459 (grub_cmd_terminal_output): Use handle_command.
25460
a8ebb841
BC
254612010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
25462
25463 Fix comment handling.
25464
25465 * tests/grub_script_comments.in: New testcase.
25466 * conf/tests.rmk: Rules for new testcase.
25467 * script/yylex.l: Updated flex rules.
25468
bb06ba08
ST
254692010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
25470
25471 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
25472 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
25473 if argc is 1.
bb06ba08 25474
cc9d2425
VS
254752010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25476
25477 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
25478 autogen issues.
25479
460d8402
CF
254802010-04-26 Christian Franke <franke@computer.org>
25481
25482 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
25483 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
25484 (grub_get_prefix): Remove function.
25485 * util/grub-emu.c (main): Replace grub_get_prefix () call by
25486 make_system_path_relative_to_its_root ().
25487 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
25488
553c01f9
CF
254892010-04-24 Christian Franke <franke@computer.org>
25490
25491 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
25492 (kernel_img_LDFLAGS): Remove -static-libgcc.
25493
2aec1692
CF
254942010-04-24 Christian Franke <franke@computer.org>
25495
25496 * configure.ac: Do not CHECK_BSS_START_SYMBOL
25497 and CHECK_END_SYMBOL if grub-emu is built.
25498 Unset TARGET_OBJ2ELF if grub-emu is built
25499 without module support.
25500
f67dc308
JS
255012010-04-24 Jiro SEKIBA <jir@unicus.jp>
25502
25503 Nilfs2 support.
25504
25505 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
25506 (grub_fstest_SOURCES): Likewise.
25507 (pkglib_MODULES): Add nilfs2.mod.
25508 (nilfs2_mod_SOURCES): New variable.
25509 (nilfs2_mod_CFLAGS): Likewise.
25510 (nilfs2_mod_LDFLAGS): Likewise.
25511 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25512 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25513 * fs/nilfs2.c: New file.
25514
4ba8d354
VS
255152010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
25516
25517 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
25518 is not supported.
25519
0d2c20c6
GS
255202010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
25521
25522 Add grub-mkconfig support for NetBSD.
25523
25524 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
25525 * util/grub-mkconfig.in: export new NetBSD specific variables.
25526 * po/POTFILES-shell: added 10_netbsd.in.
25527 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
25528
bc4a2d83
BC
255292010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
25530
25531 Fix emu build with grub-emu-pci and grub-emu-modules.
25532
25533 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
25534 functions.
25535 * include/grub/libpciaccess.h: New file.
25536 * conf/any-emu.rmk: Update kernel headers for emu build.
25537
f48c87aa
VS
255382010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25539
25540 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
25541
18959385
VS
255422010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25543
25544 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
25545
0037de3f
VS
255462010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25547
25548 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
25549 Retrieve chosen/bootpath if bootpath isn't hardcoded.
25550 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
25551 util/ieee1275/ofpath.c.
25552 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
25553 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
25554 * include/grub/sparc64/ieee1275/boot.h
25555 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
25556 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
25557 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
25558 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
25559 const char *.
25560 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
25561 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
25562 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
25563 install.
25564
38e55e90
GS
255652010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
25566
25567 * util/grub-mkconfig.in: Corrected two == equality tests.
25568 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
25569 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
25570 expect a number appended to it.
25571 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
25572 expects a number appended to it.
25573
a9e6ff28
VS
255742010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25575
25576 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
25577
0b830b8f
VS
255782010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25579
25580 * util/hostdisk.c (make_device_name): Change to new partition naming.
25581
0973daeb
VS
255822010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
25583
25584 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
25585
460d8402 255862010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
25587
25588 * Makefile.in: Add missing localedir setting.
25589
0b456309
CW
255902010-04-14 Colin Watson <cjwatson@ubuntu.com>
25591
25592 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
25593 mistake in r2156. Noticed by Anthony Fok.
25594
25595 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
25596 @localedir@.
25597 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
25598
08f46d62
BC
255992010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
25600
25601 Fix a spurious, uninitialized variable warning.
25602
25603 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
25604 Initialize variable, shdr.
25605 (grub_freebsd_load_elfmodule): Likewise.
25606 (grub_freebsd_load_elf_meta): Likewise.
25607
8c4a72d4
BC
256082010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
25609
25610 Fix for escaped dollar in double quoted strings.
25611
25612 * script/yylex.l: Updated flex rules.
25613 * conf/tests.rmk: Rule for new testcase.
25614 * tests/grub_script_dollar.in: New testcase.
25615
ce44826e
CPE
256162010-04-13 Carles Pina i Estany <carles@pina.cat>
256172010-04-13 Colin Watson <cjwatson@ubuntu.com>
25618
25619 Enclose all translated strings in grub.cfg in single quotes, and
25620 escape them appropriately (Ubuntu bug #552921).
25621
25622 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
25623 * util/grub.d/10_hurd.in: Use it.
25624 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
25625 * util/grub.d/10_linux.in (linux_entry): Likewise.
25626
4b0cd8f8
VS
256272010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25628
25629 Fix cygwin compilation.
25630
25631 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
25632 * include/grub/misc.h (__register_frame_info)
25633 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
25634 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25635 * kern/misc.c (__register_frame_info)
25636 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
25637 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25638
01fcf061
VS
256392010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25640
25641 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
25642
5d04b11e
VS
256432010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25644
25645 Unify libgcc processing.
25646
25647 * Makefile.in (kernel_img_LDFLAGS): New variable.
25648 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
25649 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
25650 overwriting.
25651 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
25652 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
25653 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
25654 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
25655 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
25656 overwriting. Remove -lgcc and -static-libgcc
25657 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
25658 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25659 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25660 (kernel_img_LDFLAGS): Append instead of overwriting.
25661 Remove -lgcc and -static-libgcc
25662 * conf/sparc64-ieee1275.rmk: Likewise.
25663 * include/grub/powerpc/libgcc.h: Move to ...
25664 * include/grub/libgcc.h: .. this.
25665 * include/grub/libgcc.h: Don't export most of the function on x86.
25666 (__bswapsi2): New export.
25667 (__bswapdi2): Likewise.
25668 * include/grub/mips/libgcc.h: Removed.
25669 * include/grub/sparc64/libgcc.h: Likewise.
25670
b7f3ac29
VS
256712010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25672
25673 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
25674 disk_info_msg (conflicts with gettexting into languages with cases).
25675
2c7031b1
GS
256762010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
25677
25678 Add grub-probe support for NetBSD.
25679
25680 * util/getroot.c (find_root_device): Convert block device to
25681 character device on NetBSD.
25682 * util/probe.c (probe): Require character device on NetBSD.
25683 * util/hostdisk.c: NetBSD specific headers.
25684 (configure_device_driver): new function to tune device driver
25685 parameters (currently only for NetBSD floppy driver).
25686 (grub_util_biosdisk_open): NetBSD specific code (get disk size
25687 via disklabel ioctl).
25688 (open_device): call configure_device_driver on NetBSD.
25689 (convert_system_partition_to_system_disk): NetBSD specific code.
25690 (device_is_wholedisk): Likewise.
25691 (grub_util_biosdisk_get_grub_dev): Likewise.
25692 (make_device_name): Fixed a typo in bsd_part_str.
25693 * configure.ac: check for opendisk() and getrawpartition() on
25694 NetBSD and set LIBUTIL.
25695 * Makefile.in: add LIBUTIL to LIBS.
25696
f516290c
BC
256972010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25698
25699 Documentation fix.
25700
25701 * util/grub-script-check.c: Better help message.
25702
d8dcc0df
BC
257032010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25704
25705 Fix FreeBSD build.
25706
25707 * configure.ac: Flex version check.
25708 * conf/common.rmk: Add -Wno-error to sh.mod.
25709 * script/yylex.l: Remove all #pragma.
25710
6734334a
VS
257112010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25712
25713 * include/grub/util/misc.h (canonicalise_file_name): Add missing
25714 prototype.
25715 Reported by: Seth Goldberg.
25716
daea6abd
VS
257172010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25718
25719 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
25720 Rename "module" to "module2".
25721 Reported by: Seth Goldberg.
25722
f2fd9d2b
VS
257232010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25724
25725 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
25726 EXPORT_FUNC.
25727 Reported by: Seth Goldberg.
25728
be124579
VS
257292010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25730
25731 * lib/posix_wrap/locale.h: Add missing file.
25732 Reported by: Seth Goldberg.
25733
ef5da797
VS
257342010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25735
25736 grub-emu module load support.
25737
25738 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
25739 NO_DYNAMIC_MODULES switched to this.
25740 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
25741 (CFLAGS): Likewise.
25742 * conf/any-emu.rmk: Generate symlist.
25743 (kernel_img_HEADERS): Add util/datetime.h.
25744 (kernel_img_HEADERS) [sdl]: Add sdl.h.
25745 (kernel_img_HEADERS) [libusb]: Add libusb.h.
25746 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
25747 kern/$(target_cpu)/cache.S.
25748 * configure.ac (grub-emu-modules): New option.
25749 * genmk.rb: Handle multiple source lists.
25750 * include/grub/sdl.h: New file.
25751 * include/grub/libusb.h: Likewise.
25752 * util/grub-emu.c (main): Hanle (host) root.
25753 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
25754 GRUB_ERR_UNKNOWN_DEVICE.
25755 * util/misc.c: Move mm functions to ...
25756 * util/mm.c: ... here. All users updated.
25757
47822096
VS
257582010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25759
25760 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
25761 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
25762 missing files.
25763 (maintainer-clean): Remove libgcrypt-grub.
25764
5d7e7445
VS
257652010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25766
25767 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
25768
25f4e252
EC
257692010-04-09 EFI Coder <eficoder@hotmail.com>
25770
25771 * normal/menu_text.c (print_message): Clean up the message and show
25772 the Fn information when on EFI
25773 * term/efi/console.c (grub_console_checkkey): Add F4 support.
25774
027de555
VS
257752010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25776
25777 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
25778 All users updated.
25779 * normal/crypto.c (read_crypto_list): Likewise.
25780 * normal/dyncmd.c (read_command_list): Likewise.
25781 * normal/term.c (read_terminal_list): Likewise.
25782 * normal/main.c (read_lists): Use explicit prefix.
25783 (read_lists_hook): Use read_lists.
25784 (grub_normal_execute): Likewise.
25785
47779711
VS
257862010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25787
25788 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
25789 Reported by: Thomas Schmitt.
25790 Add -no-emul-boot to grub-mkisofs parameters.
25791
1118c32e
VS
257922010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25793
25794 * font/font.c: Indented.
25795
7d652447
BC
257962010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25797
25798 Elif support to GRUB script (by Deepak Vankadaru).
25799
25800 * tests/grub_script_if.in: New testcase.
25801 * conf/tests.rmk: Rule for new testcase.
25802 * script/parser.y: Grammar rules for elif.
25803
34bb22df
BC
258042010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25805
25806 While and until loops support to GRUB script.
25807
25808 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
25809 (grub_script_create_cmdwhile): New function prototype.
25810 (grub_script_execute_cmdwhile): New function prototype.
25811 * script/execute.c (grub_script_execute_cmdwhile): New function.
25812 * script/parser.y (command): New commands.
25813 (whilecmd): New grammar rule.
25814 (untilcmd): New grammar rule.
25815 * script/script.c (grub_script_create_cmdwhile): New function.
25816 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
25817 function.
25818
25819 * tests/grub_script_while1.in: New testcase.
25820 * conf/tests.rmk: Rule for new testcase.
25821
e215d8e0
VS
258222010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25823
25824 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
25825 as *.jpg.
25826
d7c43ba1
MV
258272010-04-09 Mario Vazquez <mariovazq@gmail.com>
25828
25829 GRUB_BACKGROUND support.
25830
25831 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
25832 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
25833
d64795c0
VS
258342010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25835
25836 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 25837 Idea by: Mario Vazquez
d64795c0
VS
25838
25839 * util/grub.d/00_header.in: Load pf2 and image modules.
25840
f267f83a
VS
258412010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25842
25843 grub-mkconfig multiple terminal support.
25844
25845 * util/grub-mkconfig.in: Handle multiple terminals correctly.
25846 * util/grub.d/00_header.in: Likewise.
25847
b7841ceb
VS
258482010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25849
25850 * Makefile.in: Specify files explicitly instead of using $< and $@ since
25851 we use cd $(srcdir).
25852
df60998c
CW
258532010-04-08 Colin Watson <cjwatson@ubuntu.com>
25854
25855 * util/grub.d/10_linux.in: Only use the first word of
25856 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
25857 spaces in GRUB_DISTRIBUTOR.
25858 * util/grub.d/10_kfreebsd.in: Likewise.
25859 * util/grub.d/10_hurd.in: Likewise.
25860
fa09c82e
BC
258612010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
25862
14e18ae3 25863 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
25864
25865 * tests/util/grub-shell.in: Remove -serial stdio option.
25866
daf892b3
BC
258672010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25868
25869 POSIX header file wrappers.
25870
25871 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
25872 equivalents.
25873 * lib/posix_wrap/ctype.h: Likewise.
25874 * lib/posix_wrap/errno.h: Likewise.
25875 * lib/posix_wrap/langinfo.h: Likewise.
25876 * lib/posix_wrap/limits.h: Likewise.
25877 * lib/posix_wrap/localcharset.h: Likewise.
25878 * lib/posix_wrap/stdint.h: Likewise.
25879 * lib/posix_wrap/stdio.h: Likewise.
25880 * lib/posix_wrap/stdlib.h: Likewise.
25881 * lib/posix_wrap/string.h: Likewise.
25882 * lib/posix_wrap/sys/types.h: Likewise.
25883 * lib/posix_wrap/unistd.h: Likewise.
25884 * lib/posix_wrap/wchar.h: Likewise.
25885 * lib/posix_wrap/wctype.h: Likewise.
25886 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
25887 (grub_script.yy.h): Likewise.
25888 * script/yylex.l: Remove POSIX emulation #defines.
25889 * Makefile.in (POSIX_CFLAGS): New variable.
25890 (GNULIB_UTIL_CFLAGS): Likewise.
25891
25892 Regexp support.
25893
25894 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
25895 (regexp_mod_SOURCES): New variable.
25896 (regexp_mod_CFLAGS): Likewise.
25897 (regexp_mod_LDFLAGS): Likewise.
25898 * commands/regexp.c: New file.
25899 * gnulib/regcomp.c: New file. Imported from gnulib.
25900 * gnulib/regex.c: Likewise.
25901 * gnulib/regex_internal.c: Likewise.
25902 * gnulib/regex_internal.h: Likewise.
25903 * gnulib/regexec.c: Likewise.
25904 * gnulib/regex.h: Likewise.
25905
974ac4f7
VS
259062010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25907
25908 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
25909 unsupported video mode types.
25910
2622c3ff
VS
259112010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25912
25913 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
25914
064cb524
VS
259152010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25916
25917 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
25918 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
25919
a8c3b552
VS
259202010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25921
25922 Remove unused grub_vga_get_font.
25923
25924 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
25925 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
25926
187bbe3d
GS
259272010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25928
25929 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
25930 * include/grub/misc.h: Likewise.
25931
b9396631
GS
259322010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25933
25934 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
25935 for which failure is fatal.
25936
50479feb
GS
259372010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25938
25939 * util/grub-install.in: Use mkdir -p to create grub directory.
25940 * util/i386/efi/grub-install.in: Likewise.
25941 * util/ieee1275/grub-install.in: Likewise.
25942
b1654fdf
GS
259432010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25944
25945 * Makefile.in (LEX): new variable.
25946
bd5a6415
GS
259472010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25948
25949 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
25950 `=' and added double quotes on operands of this equality test.
25951
3db3a82b
VS
259522010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
25953
25954 * Makefile.in (uninstall): Remove a leftover debug echo.
25955 Reported by: Grégoire Sutre
25956
38023412
VS
259572010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
25958
25959 MIPS multiboot2 support.
25960
25961 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
25962 (multiboot2_mod_SOURCES): New variable.
25963 (multiboot2_mod_CFLAGS): Likewise.
25964 (multiboot2_mod_LDFLAGS): Likewise.
25965 (multiboot2_mod_ASFLAGS): Likewise.
25966 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
25967 definition.
25968 (MULTIBOOT_ENTRY_REGISTER): Likewise.
25969 (MULTIBOOT_MBI_REGISTER): Likewise.
25970 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
25971 (MULTIBOOT_ELF32_MACHINE): Likewise.
25972 (MULTIBOOT_ELF64_MACHINE): Likewise.
25973 * include/grub/mips/multiboot.h: New file.
25974 * include/grub/video.h (grub_video_driver_id): New type
25975 GRUB_VIDEO_DRIVER_SM712.
25976 (grub_video_get_info_and_fini): Export.
25977 (grub_video_get_palette): Likewise.
25978 (grub_video_get_driver_id): Likewise.
25979 * include/multiboot2.h: Resynced with spec.
25980 * loader/i386/multiboot.c: Moved from here ...
25981 * loader/multiboot.c: ... here. All users updated.
25982 (grub_multiboot_boot): Use platform-specific macros.
25983 * loader/i386/multiboot_elfxx.c: Moved from here ...
25984 * loader/multiboot_elfxx.c: ... here. All users updated.
25985 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
25986 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
25987 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
25988
47674667
VS
259892010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
25990
25991 Import gnulib argp module.
25992
25993 * gnulib/argp-ba.c: New file.
25994 * gnulib/argp-eexst.c: Likewise.
25995 * gnulib/argp-fmtstream.c: Likewise.
25996 * gnulib/argp-fmtstream.h: Likewise.
25997 * gnulib/argp-fs-xinl.c: Likewise.
25998 * gnulib/argp-help.c: Likewise.
25999 * gnulib/argp-namefrob.h: Likewise.
26000 * gnulib/argp-parse.c: Likewise.
26001 * gnulib/argp-pin.c: Likewise.
26002 * gnulib/argp-pv.c: Likewise.
26003 * gnulib/argp-pvh.c: Likewise.
26004 * gnulib/argp-version-etc.c: Likewise.
26005 * gnulib/argp-version-etc.h: Likewise.
26006 * gnulib/argp-xinl.c: Likewise.
26007 * gnulib/argp.h: Likewise.
26008
495442ed
VS
260092010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26010
26011 * kern/device.c (grub_device_iterate): Clear errors after failed
26012 opening device.
26013
f9fd65df
VS
260142010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26015
26016 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
26017 returned by firmware.
26018
af09641e
VS
260192010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
26020
26021 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
26022 compilation on coreboot and qemu
26023
016883a5
VS
260242010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26025
26026 * include/multiboot2.h: Resync with spec.
26027
f97e1f7d
VS
260282010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26029
26030 Multiboot2 tag support
26031
26032 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
26033 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
26034 Remove loader/multiboot_loader.c.
26035 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
26036 (grub_multiboot2_real_boot): Likewise.
26037 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
26038 (grub_get_multiboot_mmap_count): New proto.
26039 (grub_fill_multiboot_mmap): Likewise.
26040 (grub_multiboot_set_video_mode): Likewise.
26041 (grub_multiboot_set_console): Likewise.
26042 (grub_multiboot_load): Likewise.
26043 (grub_multiboot_load_elf): Likewise.
26044 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
26045 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
26046 * include/multiboot.h: Resynced with specification.
26047 * include/multiboot2.h: Resynced with specification.
26048 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
26049 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
26050 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
26051 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
26052 users updated.
26053 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
26054 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
26055 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
26056 Removed.
26057 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
26058 Moved from here...
26059 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
26060 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
26061 Moved from here...
26062 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
26063 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
26064 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
26065 All users updated.
26066 * loader/i386/multiboot_mbi2.c: New file.
26067
3506b90b
VS
260682010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26069
26070 Resync with gnulib.
26071
26072 * Makefile.in (GNULIB_CFLAGS): New variable.
26073 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
26074 (grub_script_check_CFLAGS): New variable.
26075 * gnulib/alloca.h: Resync with gnulib.
26076 * gnulib/error.c: Likewise.
26077 * gnulib/error.h: Likewise.
26078 * gnulib/fnmatch.c: Likewise.
26079 * gnulib/fnmatch_loop.c: Likewise.
26080 * gnulib/getdelim.c: Likewise.
26081 * gnulib/getline.c: Likewise.
26082 * gnulib/getopt.c: Likewise.
26083 * gnulib/getopt1.c: Likewise.
26084 * gnulib/getopt_int.h: Likewise.
26085 * gnulib/gettext.h: Likewise.
26086 * gnulib/progname.c: Likewise.
26087 * gnulib/progname.h: Likewise.
26088
394a3120
GS
260892010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
26090
26091 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
26092 which is the case with --disabled-nls.
26093
26094 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
26095 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
26096 * util/misc.c: Likewise.
26097 * util/mkisofs/mkisofs.c: Likewise.
26098 * util/mkisofs/mkisofs.h: Likewise.
26099
969d1c78
VS
261002010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26101
26102 Simplify Apple CC support.
26103
26104 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
26105 Add 0 byte at the end not to have a symbol with empty target.
26106 * mmap/i386/pc/mmap_helper.S: Likewise.
26107 * genmk.rb: Ignore errors 2030 and 2050.
26108 * kern/i386/pc/startup.S: Use LOCAL when possible.
26109
8d2977bb
BC
261102010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
26111
26112 Testcase and the fix for final semicolon on cmdline.
26113
26114 * tests/grub_script_final_semicolon.in: New testcase.
26115 * conf/tests.rmk: Rules for the new testcase.
26116 * script/parser.y: Grammar fix.
26117
a7bd6915
BC
261182010-03-26 BVK Chaitanya <bvk@localhost>
26119
26120 Blank lines testcase for GRUB script.
26121
26122 * tests/grub_script_blanklines.in: New testcase.
26123 * conf/tests.rmk: Rules for the new testcase.
26124
e4ff6628
VS
261252010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26126
26127 Don't use __FILE__.
26128
26129 * genmk.rb: Add -DGRUB_FILE to all C targets.
26130 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
26131 * include/grub/list.h: Likewise.
26132 * include/grub/misc.h: Likewise.
26133 * include/grub/mm.h: Likewise.
26134 * include/grub/test.h: Likewise.
26135 * kern/mm.c: Likewise.
26136 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26137
6a5cf6b6
VS
261382010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26139
26140 Sunpc partitions support.
26141
26142 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
26143 (grub_fstest_SOURCES): Likewise.
26144 (pkglib_MODULES): Add part_sunpc.mod.
26145 (part_sunpc_mod_SOURCES): New variable.
26146 (part_sunpc_mod_CFLAGS): Likewise.
26147 (part_sunpc_mod_LDFLAGS): Likewise.
26148 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
26149 * partmap/sunpc.c: New file.
26150
746d9045
BC
261512010-03-26 BVK Chaitanya <bvk@localhost>
26152
26153 For loop support to GRUB script.
26154
26155 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
26156 (grub_script_create_cmdfor): New function prototype.
26157 (grub_script_execute_cmdfor): New function prototype.
26158 * script/execute.c (grub_script_execute_cmdfor): New function.
26159 * script/parser.y (command): New for command.
26160 (forcmd): New grammar rule.
26161 * script/script.c (grub_script_create_cmdfor): New function.
26162 * util/grub-script-check.c (grub_script_execute_cmdfor): New
26163 function.
26164 * tests/grub_script_for1.in: New testcase.
26165 * conf/tests.rmk: Rules for new testcase.
26166
18486b18
VS
261672010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26168
26169 Nested partitions
26170
26171 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
26172 'partition' is NULL, grub_partition_get_start already does that.
26173 * commands/loadenv.c (check_blocklists): Likewise.
26174 (write_blocklists): Likewise.
26175 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
26176 (grub_fstest_SOURCES): Likewise.
26177 (pkglib_MODULES): Add part_bsd.mod.
26178 (part_bsd_mod_SOURCES): New variable.
26179 (part_bsd_mod_CFLAGS): Likewise.
26180 (part_bsd_mod_LDFLAGS): Likewise.
26181 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
26182 (grub_emu_SOURCES): Likewise.
26183 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26184 * include/grub/bsdlabel.h: New file.
26185 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
26186 'get_name'.
26187 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
26188 (grub_partition_map_list): New variable.
26189 (grub_partition_map_register): Inline.
26190 (grub_partition_map_unregister): Likewise.
26191 (FOR_PARTITION_MAPS): New macro.
26192 (grub_partition_map_iterate): Removed.
26193 (grub_partition_get_start): Handle nested partitions.
26194 * include/grub/msdos_partition.h: Remove bsd-related entries.
26195 (grub_pc_partition): Remove.
26196 * kern/disk.c (grub_disk_close): Free partition data.
26197 (grub_disk_adjust_range): Handle nested partitions.
26198 * kern/partition.c (grub_partition_map_probe): New function.
26199 (grub_partition_probe): Parse name to number, handle subpartitions.
26200 (get_partmap): New function.
26201 (grub_partition_iterate): Handle subpartitions.
26202 (grub_partition_get_name): Likewise.
26203 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
26204 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
26205 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
26206 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
26207 Set 'number'.
26208 (acorn_partition_map_probe): Remove.
26209 (acorn_partition_map_get_name): Likewise.
26210 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
26211 Set 'number'.
26212 Set 'index' to 0 since there can be only one partition entry per sector.
26213 (amiga_partition_map_probe): Remove.
26214 (amiga_partition_map_get_name): Likewise.
26215 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
26216 Set 'number'.
26217 Set 'offset' and 'index' to real positions of partitions.
26218 (apple_partition_map_probe): Remove.
26219 (apple_partition_map_get_name): Likewise.
26220 * partmap/bsdlabel.c: New file.
26221 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
26222 Set 'number'.
26223 Allocate 'data' so it can be correctly freed.
26224 Set 'index' to offset inside sector.
26225 (gpt_partition_map_probe): Remove.
26226 (gpt_partition_map_get_name): Likewise.
26227 * partmap/msdos.c (grub_partition_parse): Remove.
26228 (pc_partition_map_iterate): Don't force raw access.
26229 Set 'number'.
26230 Make 'ext_offset' a local variable.
26231 (pc_partition_map_probe): Remove.
26232 (pc_partition_map_get_name): Remove.
26233 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
26234 Set 'number'.
26235 (sun_partition_map_probe): Remove.
26236 (sun_partition_map_get_name): Likewise.
26237 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
26238 (grub_pcpart_type): Likewise.
26239 * util/hostdisk.c (open_device): Handle new numbering scheme.
26240 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
26241 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
26242 * util/grub-probe.c (probe_partmap): Handle nested paritions.
26243 * util/grub-install.in: Insert all subpartition modules.
26244 * util/ieee1275/grub-install.in: Likewise.
26245
a3940f88
AG
262462010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
26247
26248 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
26249 grammar.
26250
21b99926 262512010-03-24 Colin Watson <cjwatson@ubuntu.com>
26252
26253 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
26254
bed1d352
CW
262552010-03-21 Colin Watson <cjwatson@ubuntu.com>
26256
26257 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
26258 match where 'make install' puts them.
26259 * util/i386/efi/grub-install.in: Likewise.
26260
c9f58427
CW
262612010-03-19 Colin Watson <cjwatson@ubuntu.com>
26262
26263 * .bzrignore: Add gentrigtables, grub-script-check,
26264 grub_script_check_init.c, grub_script_check_init.h, and
26265 trigtables.c.
26266
f84afb27
VS
262672010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
26268
26269 * kern/parser.c: Indented.
26270
ed0e3d30
VS
262712010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26272
26273 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
26274
0ea81d98
VS
262752010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26276
26277 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
26278 alpha_mask_size == 0 case.
26279
0cdc2a09
BC
262802010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
26281
26282 GRUB shell lexer and parser improvements.
26283
26284 * conf/any-emu.rmk: Build rule updates.
26285 * conf/common.rmk: Likewise.
26286 * conf/i386-coreboot.rmk: Likewise.
26287 * conf/i386-efi.rmk: Likewise.
26288 * conf/i386-ieee1275.rmk: Likewise.
26289 * conf/i386-pc.rmk: Likewise.
26290 * conf/powerpc-ieee1275.rmk: Likewise.
26291 * conf/x86_64-efi.rmk: Likewise.
26292
26293 * configure.ac: Configure check for flex.
26294
26295 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
26296 types.
26297 (grub_lexer_param): Struct member updates.
26298 (grub_parser_param): Likewise.
26299 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
26300 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
26301 (grub_script_lexer_init): Prototype update.
26302 (grub_script_lexer_record_start): Likewise.
26303 (grub_script_lexer_record_stop): Likewise.
26304 (grub_script_lexer_yywrap): New function prototype.
26305 (grub_script_lexer_fini): Likewise.
26306 (grub_script_execute_argument_to_string): Removed by...
26307 (grub_script_execute_argument_to_argv): ...better version.
26308
26309 * script/execute.c (ROUND_UPTO): New macro.
26310 (grub_script_execute_cmdline): Out of memory fixes.
26311 (grub_script_execute_menuentry): Likewise.
26312 (grub_script_execute_argument_to_string): Removed. Update all
26313 users by...
26314 (grub_script_execute_argument_to_argv): ...better version.
26315 * script/function.c (grub_script_function_create): Use
26316 grub_script_execute_argument_to_argv instead of
26317 grub_script_execute_argument_to_string.
26318
26319 * script/lexer.c (check_varstate): Removed.
26320 (check_textstate): Removed.
26321 (grub_script_lexer_record_start): Likewise.
26322 (grub_script_lexer_record_stop): Likewise.
26323 (recordchar): Replaced with...
26324 (grub_script_lexer_record): ...new function.
26325 (nextchar): Removed.
26326 (grub_script_lexer_init): Rewritten.
26327 (grub_script_yylex): Rewritten.
26328 (append_newline): New function.
26329 (grub_script_lexer_yywrap): New function.
26330 (grub_script_lexer_fini): New function.
26331 (grub_script_yyerror): Sets error flag.
26332
26333 * script/yylex.l: New file.
26334 (grub_lexer_yyfree): Wrapper for flex yyffre.
26335 (grub_lexer_yyalloc): Likewise.
26336 (grub_lexer_yyrealloc): Likewise.
26337 * script/parser.y: Refactored.
26338
26339 * script/script.c (grub_script_arg_add): Out of memory fixes.
26340 (grub_script_add_arglist): Likewise.
26341 (grub_script_create_cmdline): Likewise.
26342 (grub_script_create_cmdmenu): Likewise.
26343 (grub_script_add_cmd): Likewise.
26344 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
26345 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
26346 unnecessary code.
26347
26348 * tests/grub_script_echo1.in: New testcase.
26349 * tests/grub_script_vars1.in: New testcase.
26350 * tests/grub_script_echo_keywords.in: New testcase.
26351
1d63a066
VS
263522010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26353
26354 Remove some redundancy in build system.
26355
26356 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
26357 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
26358 (TARGET_LDFLAGS): Add -nostdlib.
26359 (TARGET_IMG_LDFLAGS): Likewise.
26360 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
26361 anything since mmap isn't available.
26362 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
26363 Add util/time.c.
26364 (pkglib_MODULES): Remove reboot.mod.
26365 (reboot_mod_SOURCES): Removed.
26366 (reboot_mod_CFLAGS): Likewise.
26367 (reboot_mod_LDFLAGS): Likewise.
26368 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
26369 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
26370 (DEFSYMFILES): Add kernel_syms.lst.
26371 (kernel_img_HEADERS): Add common headers.
26372 (symlist.c): New target.
26373 (kernel_syms.lst): Likewise.
26374 (pkglib_MODULES): Add memdisk.mod.
26375 (memdisk_mod_SOURCES): New variable.
26376 (memdisk_mod_CFLAGS): Likewise.
26377 (memdisk_mod_LDFLAGS): Likewise.
26378 (pkglib_MODULES): Add reboot.mod.
26379 (reboot_mod_SOURCES): New variable.
26380 (reboot_mod_CFLAGS): Likewise.
26381 (reboot_mod_LDFLAGS): Likewise.
26382 (pkglib_MODULES): Add date.mod.
26383 (date_mod_SOURCES): New variable.
26384 (date_mod_CFLAGS): Likewise.
26385 (date_mod_LDFLAGS): Likewise.
26386 (pkglib_MODULES): Add datehook.mod.
26387 (datehook_mod_SOURCES): New variable.
26388 (datehook_mod_CFLAGS): Likewise.
26389 (datehook_mod_LDFLAGS): Likewise.
26390 (pkglib_MODULES): Add lsmmap.mod.
26391 (lsmmap_mod_SOURCES): New variable.
26392 (lsmmap_mod_CFLAGS): Likewise.
26393 (lsmmap_mod_LDFLAGS): Likewise.
26394 (pkglib_MODULES): Add boot.mod.
26395 (boot_mod_SOURCES): New variable.
26396 (boot_mod_CFLAGS): Likewise.
26397 (boot_mod_LDFLAGS): Likewise.
26398 * conf/i386-coreboot.rmk: Removed redundant parts.
26399 * conf/i386-ieee1275.rmk: Likewise.
26400 * conf/i386-pc.rmk: Likewise.
26401 * conf/mips-yeeloong.rmk: Likewise.
26402 * conf/mips.rmk: Likewise.
26403 * conf/powerpc-ieee1275.rmk: Likewise.
26404 * conf/sparc64-ieee1275.rmk: Likewise.
26405 * conf/x86_64-efi.rmk: Likewise.
26406 * conf/i386-coreboot.rmk: Moved qemu parts ..
26407 * conf/i386-qemu.rmk: ... here
26408 * conf/i386-efi.rmk: Moved common parts to...
26409 * conf/x86-efi.rmk: ... here.
26410 * conf/i386.rmk: Added modules common to all x86 variants.
26411 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
26412 * disk/memdisk.c: Remove grub/machine/kernel.h.
26413 * gensymlist.sh.in: Include symbol.h.
26414 * hook/datehook.c: Correct module name.
26415 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
26416 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
26417 * include/grub/i386/efi/serial.h: New file.
26418 * include/grub/x86_64/efi/serial.h: Likewise.
26419 * util/time.c: Likewise.
26420 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
26421
463ac55f
CK
264222010-03-14 Colin King <colin.king@ubuntu.com>
264232010-03-14 Colin Watson <cjwatson@ubuntu.com>
26424
26425 Shrink the pre-partition-table part of boot.img by eight bytes.
26426
26427 * boot/i386/pc/boot.S (ERR): New macro.
26428 (chs_mode): Use ERR.
26429 (geometry_error): Likewise.
26430 (hd_probe_error): Remove. This is only used once, so we wrwite
26431 it inline instead.
26432 (read_error): Instead of printing read_error_string, just set up
26433 %si and fall through to ...
26434 (error_message): ... this new function, also used by ERR.
26435
08e46ede
CW
264362010-03-14 Colin Watson <cjwatson@ubuntu.com>
26437
26438 Speed up consecutive hostdisk operations on the same device.
26439
26440 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
26441 (grub_util_biosdisk_open): Initialise disk->data.
26442 (struct linux_partition_cache): New structure.
26443 (linux_find_partition): Cache partition start positions; these are
26444 expensive to compute on every read and write.
26445 (open_device): Cache open file descriptor in disk->data, so that we
26446 don't have to reopen it and flush the buffer cache for consecutive
26447 operations on the same device.
26448 (grub_util_biosdisk_close): New function.
26449 (grub_util_biosdisk_dev): Set `close' member.
26450
26451 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
26452 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
26453 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26454 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26455 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
26456
4a6d2d06
VS
264572010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26458
26459 Compile parts of grub-emu as modules.
26460
26461 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
26462 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
26463 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
26464 (all-local): Add $(GRUB_EMU).
26465 (install-local): Install $(GRUB_EMU).
26466 (uninstall): Uninstall $(GRUB_EMU).
26467 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
26468 * kern/dl.c: Likewise.
26469 * commands/sleep.c: Not include machine/time.h.
26470 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
26471 (COMMON_CFLAGS): Likewise.
26472 (sbin_UTILITIES): Remove grub-emu.
26473 (grub_emu_SOURCES): Removed.
26474 (kernel_img_RELOCATABLE): New variable.
26475 (pkglib_PROGRAMS): Add kernel.img.
26476 (kernel_img_SOURCES): New variable
26477 (kernel_img_CFLAGS): Likewise.
26478 (kernel_img_LDFLAGS): Likewise.
26479 (TARGET_NO_STRIP): Likewise.
26480 (TARGET_NO_DYNAMIC_MODULES): Likewise.
26481 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
26482 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
26483 (grub-emu): New target.
26484 (GRUB_EMU): New variable.
26485 * configure.ac: Whitelist -emu as possible x86_64 architecture.
26486 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
26487 * loader/xnu.c: Likewise.
26488 * include/grub/pci.h: Likewise.
26489 * genemuinit.sh: New file.
26490 * genemuinitheader.sh: Likewise.
26491 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
26492 Support TARGET_NO_DYNAMIC_MODULES.
26493 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
26494 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
26495 * disk/loopback.c: Likewise.
26496 * font/font_cmd.c: Likewise.
26497 * partmap/acorn.c: Likewise.
26498 * partmap/amiga.c: Likewise.
26499 * partmap/apple.c: Likewise.
26500 * partmap/gpt.c: Likewise.
26501 * partmap/msdos.c: Likewise.
26502 * partmap/sun.c: Likewise.
26503 * parttool/msdospart.c: Likewise.
26504 * term/gfxterm.c: Likewise.
26505 * video/bitmap.c: Likewise.
26506 * video/readers/jpeg.c: Likewise.
26507 * video/readers/png.c: Likewise.
26508 * video/readers/tga.c: Likewise.
26509 * video/video.c: Likewise.
26510 * util/grub-emu.c (read_command_list): Removed.
26511 (main): Don't call util_init_nls.
26512 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
26513 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
26514
91fdd2ed
VS
265152010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26516
26517 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
26518 date.mod, datehook.mod.
26519 (datetime_mod_SOURCES): New variable.
26520 (datetime_mod_CFLAGS): Likewise.
26521 (datetime_mod_LDFLAGS): Likewise.
26522 (date_mod_SOURCES): Likewise.
26523 (date_mod_CFLAGS): Likewise.
26524 (date_mod_LDFLAGS): Likewise.
26525 (datehook_mod_SOURCES): Likewise.
26526 (datehook_mod_CFLAGS): Likewise.
26527 (datehook_mod_LDFLAGS): Likewise.
26528 * conf/sparc64-ieee1275.rmk: Likewise.
26529 * lib/ieee1275/datetime.c: New file.
26530
873ccae6
VS
265312010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26532
26533 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
26534 (ieee1275_fb_mod_SOURCES): New variable.
26535 (ieee1275_fb_mod_CFLAGS): Likewise.
26536 (ieee1275_fb_mod_LDFLAGS): Likewise.
26537 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
26538 New proto.
26539 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
26540 (HEAP_MAX_ADDR): Likewise.
26541 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
26542 type.
26543 Correct stop condition.
26544 (grub_ieee1275_devices_iterate): New function.
26545 * video/ieee1275.c: New file.
26546
601c97c0
VS
265472010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26548
26549 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
26550
26551 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
26552 as scratch.
26553 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
26554 SCRATCH_PAD_DISKBOOT as scratch.
26555 (bootit): Pass Openfirmware pointer in %o4.
26556 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
26557 of 0x200000.
26558 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
26559 with util/grub-mkrawimage.c.
26560 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
26561 * include/grub/aout.h (AOUT_MID_SUN): New definition.
26562 (grub_aout_get_type) [GRUB_UTIL]: Removed.
26563 (grub_aout_load) [GRUB_UTIL]: Likewise.
26564 * include/grub/kernel.h (grub_modules_get_end): New proto.
26565 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
26566 (SCRATCH_PAD_BOOT): New definition.
26567 (SCRATCH_PAD_DISKBOOT): Likewise.
26568 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
26569 * include/grub/sparc64/ieee1275/ieee1275.h
26570 (grub_ieee1275_original_stack): New variable
26571 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26572 New definition
26573 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
26574 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
26575 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
26576 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
26577 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
26578 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
26579 (grub_platform_image_format_t): New type.
26580 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
26581 * kern/main.c (grub_modules_get_end)
26582 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
26583 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
26584 (codestart): Switch stacks.
26585 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
26586 variable.
26587 (grub_heap_init): Use grub_modules_get_end.
26588 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
26589 stack.
26590 * util/grub-mkrawimage.c (generate_image): Support sparc64.
26591 (main): Likewise.
26592 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
26593
d68b491e
TG
265942010-03-14 Thorsten Glaser <tg@mirbsd.org>
26595
26596 * util/grub-mkrescue.in: Base ISO UUID on UTC.
26597
4e02ed50
MK
265982010-03-08 Matt Kraai <kraai@ftbfs.org>
26599
26600 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
26601 bug #559005).
26602
1f15fc1e
VS
266032010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
26604
26605 * genmoddep.awk: Output all missing symbols and not only first.
26606
fce5d8ff
VS
266072010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26608
26609 * NEWS: Put the date of 1.98 release.
26610
d1e8a02f
VS
266112010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26612
26613 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
26614 ft2build.h.
26615
696fd607
VS
266162010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26617
26618 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
26619 completition in the middle of string.
26620
33e2e6f3
VS
266212010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26622
26623 * util/grub-mkrescue.in: Use mktemp with explicit template.
26624
b1f6d291
VS
266252010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26626
26627 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
26628
2ac227c7
VS
266292010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26630
26631 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
26632 right pointer.
26633
8f9a632b
VS
266342010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26635
26636 Fix FreeBSD compilation.
26637
26638 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
26639 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
26640
60b03859
VS
266412010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26642
26643 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
26644
48a5a769
VS
266452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26646
26647 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
26648
3ab4bd77
VS
266492010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26650
26651 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
26652
d116e0d8
RM
266532010-03-04 Robert Millan <rmh.grub@aybabtu.com>
26654
26655 Support relative image path in theme file.
26656
26657 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
26658 (image_set_property): Handle theme_dir and relative path.
26659
c7ef54aa
VS
266602010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26661
26662 * configure.ac: Alias amd64 to x86_64.
26663
fcee14ed
VS
266642010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26665
26666 * NEWS: mention multiboot on EFI.
26667
d0780363
VS
266682010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26669
26670 * kern/main.c (grub_load_modules): Handle errors from init functions of
26671 embeded modules.
26672
41168ea4
VS
266732010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26674
26675 * normal/autofs.c (autoload_fs_module): Handle errors.
26676
b54d93ac
VS
266772010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26678
26679 Disable linux.mod on qemu-mips since it's not functional and leads
26680 to compilation failure.
26681
26682 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
26683 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
26684 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
26685 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
26686 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
26687 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
26688 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
26689 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
26690 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
26691 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
26692 Reported by: BVK Chaitanya
26693
fc8345da
JU
266942010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
26695
26696 * INSTALL: Add gettext as a dependency and add qemu to a new section
26697 "Prerequisites for make-check".
26698
4760f979
CF
266992010-03-04 Christian Franke <franke@computer.org>
26700
26701 * util/grub-pe2elf.c: Add missing include "progname.h".
26702
f209b5b2
VS
267032010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26704
26705 * normal/crypto.c (read_crypto_list): Fix a typo.
26706 Reported by: Seth Goldberg.
26707
b4b7be98
VS
267082010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26709
26710 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 26711 Reported by: Seth Goldberg.
b4b7be98 26712
c0ee0385
VS
267132010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26714
26715 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
26716 ascii.bitmaps.
26717
a8efbf64
VS
267182010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26719
26720 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 26721 Reported by: Seth Goldberg.
a8efbf64 26722
08dcd913
VS
267232010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26724
26725 * util/i386/efi/grub-install.in: Copy gettext files.
26726
c4d0b332
VS
267272010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26728
26729 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
26730
c6f2fe52
VS
267312010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26732
26733 Wait for user entry basing on presence of output rather than on errors.
26734
26735 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
26736 (grub_install_newline_hook): Likewise.
26737 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
26738 * normal/menu.c (show_menu): Check line_counter to determine presence
26739 of output.
26740 * normal/term.c (grub_normal_line_counter): New variable.
26741 (grub_normal_get_line_counter): New function.
26742 (grub_install_newline_hook): Likewise.
26743
5382b1e4
VS
267442010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26745
26746 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
26747
5519963b
VS
267482010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26749
26750 * configure.ac: Update version to 1.98.
26751
72b28631
VS
267522010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
26753
26754 * util/grub.d/10_linux.in (linux_entry): Don't default to
26755 gfxpayload=keep if Linux doesn't support video handover.
26756
c140a180
VS
267572010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
26758
26759 Don't compile video modules on yeeloong since video subsystem is part
26760 of kernel.
26761
26762 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
26763 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
26764 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
26765 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
26766 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
26767 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
26768 * include/grub/bitmap_scale.h: Likewise.
26769 * include/grub/bufio.h: Likewise.
26770 * include/grub/font.h: Likewise.
26771 * include/grub/gfxterm.h: Likewise.
26772 * include/grub/video.h: Likewise.
26773 * include/grub/vbe.h: Don't include video_fb.h.
26774 * video/i386/pc/vbe.c: Include video_fb.h.
26775 * commands/i386/pc/vbetest.c: Include video.h.
26776
a0ca21c2
CW
267772010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
26778
26779 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
26780 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
26781 default entry if GRUB_SAVEDEFAULT=true. This allows using
26782 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
26783 saving a new default on every boot.
26784
4a8a763c
VS
267852010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26786
26787 * normal/crypto.c (read_crypto_list): Fix a memory leak.
26788 * normal/term.c (read_terminal_list): Likewise.
26789 * normal/main.c (grub_normal_init_page): Likewise.
26790 (grub_normal_read_line_real): Likewise.
26791
607ffde2
VS
267922010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26793
26794 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
26795 memory leak.
26796 Reported by: Seth Goldberg.
26797
2b8fa975
CW
267982010-02-24 Joey Korkames <joey+lists@kidfixit.com>
26799
26800 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
26801 duplicate declaration of `start'.
26802
618307dd
VS
268032010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26804
26805 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
26806 filename.
26807 Reported by: Georgy Buranov
26808
7dd05b96 268092010-02-20 Carles Pina i Estany <carles@pina.cat>
26810
26811 * util/grub-mkrawimage.c (usage): Change string formatting to
26812 improve gettext.
26813
d1484a42
MRA
268142010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
26815
26816 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
26817 backspace keys.
26818
42b1d186
VS
268192010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26820
26821 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
26822 Reported by: Michael Suchanek.
26823
268242010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
26825
26826 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
26827 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
26828
d9f31a41
VS
268292010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
26830
26831 Remove any reference to non-free fonts.
26832
26833 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
26834 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
26835 uses non-free components.
26836 * font/font.c (grub_font_get_name): Remove example name.
26837 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
26838 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
26839 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
26840 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
26841
2793c71e
GB
268422010-02-16 Georgy Buranov <gburanov@gmail.com>
26843
26844 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
26845
402e3779
VS
268462010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26847
26848 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
26849 Double divisor.
26850 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
26851 features.
26852 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
26853
0dd1e0dd
VS
268542010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26855
26856 * gensymlist.sh.in: Use TARGET_CC instead of CC.
26857
6fa7cfce
ST
268582010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26859
26860 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
26861 * docs/grub.texi (Command-line and menu entry commands): Document play
26862 command.
26863
37c8483b
ST
268642010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26865
26866 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
26867 parse arguments as inline tempo and notes. Move code for playing notes
26868 to...
26869 (play): ... new function.
26870
14da0fb7
ST
268712010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26872
26873 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
26874 grub_uint16_t instead of short.
26875 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
26876 disk from little endian to cpu endianness.
26877
04459e70
ST
268782010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
26879
26880 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
26881 GRUB_TICKS_PER_SECOND instead of 120.
26882
a0876943
VS
268832010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26884
26885 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
26886 escape sequence after \e.
26887
e29f95dc
VS
268882010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26889
26890 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
26891 non-ASCII characters.
26892
d27859b2
VS
268932010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26894
26895 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
26896 set root in single quotes to prevent \, from being unescaped.
26897
bc028f2f
VS
268982010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26899
26900 Prevent unknown commands from stopping menuentry execution.
26901
26902 * script/execute.c (grub_script_execute_cmdline): Print error after
26903 unknown command.
26904
095f5f82
VS
269052010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26906
26907 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
26908 Reported by: Pavel Pisa.
26909
8c717950
VS
269102010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26911
26912 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
26913
904935c3
VS
269142010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26915
26916 Merge grub_ieee1275_map_physical into grub_map and rename to
26917 grub_ieee1275_map
26918
26919 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
26920 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
26921 Remove.
26922 * kern/ieee1275/openfw.c (grub_map): Rename to ...
26923 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
26924 necessary.
26925 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
26926
5b59a4e3
VS
269272010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26928
26929 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
26930 opening and not after.
26931
69e137e8
VS
269322010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26933
26934 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
26935 constants.
26936
2c0fcc36
VS
269372010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26938
26939 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
26940 (alloc_phys): Use ALIGN_UP instead of align_addr.
26941
8c6052ce
VS
269422010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26943
26944 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
26945
17cec782
VS
269462010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26947
26948 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
26949
e0128bbd
VS
269502010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26951
26952 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
26953 verbose dprintf.
26954
ca62070b
VS
269552010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26956
26957 Fix over-4GiB seek on sparc64.
26958
26959 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
26960 Replace pos_i and pos_lo with pos. All users updated.
26961 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
26962 New constant.
26963 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
26964 Likewise.
26965 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
26966 and pos_lo.
26967
bdca2607
VS
269682010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26969
26970 * util/grub-mkrawimage.c (main): Call set_program_name.
26971
da278c4d
VS
269722010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26973
26974 Properly align 64-bit targets.
26975
26976 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
26977 (generate_image): Use ALIGN_ADDR.
26978
b274d734
VS
269792010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26980
26981 Properly create cross-endian images.
26982
26983 * include/grub/types.h (grub_host_to_target_addr): New macro
26984 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
26985
82da2062
VS
269862010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26987
26988 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
26989
7cae4377
VS
269902010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26991
26992 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
26993
26994 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
26995 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
26996 (grub_linux_boot): Divide by 64K when on VESA.
26997
65a533e7
VS
269982010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26999
27000 Support GRUB_GFXPAYLOAD_LINUX.
27001
27002 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
27003 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
27004
dd01d397
VS
270052010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27006
27007 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
27008 to show messages instead of discarding them.
27009 Process errors after executing command and not before. Keep old method
27010 too as precaution.
27011
660960d6
VS
270122010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
27013
27014 * configure.ac: Check for ft2build.h.
27015
62509f04
VS
270162010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27017
27018 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
27019
473df63d
VS
270202010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27021
27022 * genkernsyms.sh.in: Use TARGET_CC.
27023
c98d2a13
CW
270242010-02-07 Colin Watson <cjwatson@ubuntu.com>
27025
27026 * NEWS: Update.
27027
6e14234c
VS
270282010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27029
27030 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
27031 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
27032 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 27033
b255e9cf
YB
270342010-02-07 Yves Blusseau <blusseau@zetam.org>
27035
6e14234c 27036 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 27037
98e6959d
VS
270382010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27039
27040 Fix warnings in grub-emu when compiling with maximum warning options.
27041
27042 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
27043 (grub_arch_modules_addr): Return 0 and not NULL.
27044 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 27045 (xstrdup): Use newstr instead of dup.
f88d801b
VS
27046 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
27047 of disk to dsk to avoid shadowing.
74e4934e
VS
27048 (find_free_slot): Fix prototype.
27049 * util/getroot.c (grub_util_is_dmraid): Make static.
27050 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
27051 Add missing prototype.
27052 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 27053
74e31b5c
VS
270542010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27055
27056 * loader/i386/linux.c (grub_linux_setup_video): Handle error
27057 appropriately.
27058
6b2ad14b
VS
270592010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27060
27061 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
27062 code out.
27063
8f891adc
VS
270642010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27065
27066 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
27067 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
27068 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
27069 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
27070 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
27071 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
27072
74b45184
VS
270732010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27074
27075 * include/grub/err.h (grub_err_printf): Don't export.
27076
a4bced77
VS
270772010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27078
27079 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
27080
007d0695
VS
270812010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27082
27083 * include/grub/i18n.h (grub_gettext_dummy): Removed.
27084 * kern/misc.c (grub_gettext_dummy): Make static.
27085
b6c0d9c2
VS
270862010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27087
27088 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
27089 by non-valid ones.
27090 * kern/term.c (grub_putchar): Likewise.
27091
f51a90d0
VS
270922010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27093
27094 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
27095 buggy hook call and memory leak.
27096
6846cec5
VS
270972010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27098
27099 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
27100
468d69fe
VS
271012010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27102
27103 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
27104
51906b8c
VS
271052010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27106
27107 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
27108 modevar.
27109 Return grub_errno on allocation error.
27110
09706ce5
VS
271112010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27112
27113 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
27114
911df80c
YB
271152010-02-06 Yves Blusseau <blusseau@zetam.org>
27116
27117 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
27118 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
27119
3746a6bc
VS
271202010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27121
27122 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
27123 non-pxe disk.
27124 (grub_pxefs_open): Likewise.
27125
09706ce5
VS
271262010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27127
27128 * util/grub.d/10_hurd.in: Add --class information to menuentries.
27129 * util/grub.d/10_kfreebsd.in: Likewise.
27130 * util/grub.d/10_linux.in: Likewise.
27131
7cc192d9
VS
271322010-02-06 Colin D Bennett <colin@gibibit.com>
27133
27134 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
27135 (gfxmenu_mod_SOURCES): New variable.
27136 (gfxmenu_mod_CFLAGS): Likewise.
27137 (gfxmenu_mod_LDFLAGS): Likewise.
27138 * include/grub/term.h (grub_term_set_current_output): Declare
27139 argument as const.
27140 * docs/gfxmenu-theme-example.txt: New file.
27141 * gfxmenu/gfxmenu.c: Likewise.
27142 * gfxmenu/gui_box.c: Likewise.
27143 * gfxmenu/gui_canvas.c: Likewise.
27144 * gfxmenu/gui_circular_progress.c: Likewise.
27145 * gfxmenu/gui_image.c: Likewise.
27146 * gfxmenu/gui_label.c: Likewise.
27147 * gfxmenu/gui_list.c: Likewise.
27148 * gfxmenu/gui_progress_bar.c: Likewise.
27149 * gfxmenu/gui_string_util.c: Likewise.
27150 * gfxmenu/gui_util.c: Likewise.
27151 * gfxmenu/icon_manager.c: Likewise.
27152 * gfxmenu/model.c: Likewise.
27153 * gfxmenu/named_colors.c: Likewise.
27154 * gfxmenu/theme_loader.c: Likewise.
27155 * gfxmenu/view.c: Likewise.
27156 * gfxmenu/widget-box.c: Likewise.
27157 * include/grub/gfxmenu_model.h: Likewise.
27158 * include/grub/gfxmenu_view.h: Likewise.
27159 * include/grub/gfxwidgets.h: Likewise.
27160 * include/grub/gui.h: Likewise.
27161 * include/grub/gui_string_util.h: Likewise.
27162 * include/grub/icon_manager.h: Likewise.
27163
271642010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27165
27166 Agglomerate scrolling in gfxterm.
27167
27168 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
27169 (grub_virtual_screen_setup): Initialise 'total_screen'.
27170 (write_char): Split to ...
27171 (paint_char): ... this ...
27172 (write_char): ... and this.
27173 (paint_char): Handle delayed scrolling.
27174 (draw_cursor): Likewise.
27175 (scroll_up): Split to ...
27176 (real_scroll): ... this ...
27177 (scroll_up): ... and this.
27178 (real_scroll): Handle multi-line scroll and draw below-the-bottom
27179 characters.
27180 (grub_gfxterm_refresh): Call real_scroll.
27181
271822010-02-06 Colin D Bennett <colin@gibibit.com>
27183
27184 * include/grub/misc.h (grub_iscntrl): New inline function.
27185 (grub_isalnum): Likewise.
27186 (grub_strtol): Likewise.
27187
271882010-02-06 Colin D Bennett <colin@gibibit.com>
27189
27190 * normal/menu_text.c (get_entry_number): Move from here ...
27191 * normal/menu.c (get_entry_number): ... moved here.
27192 * include/grub/menu.h (grub_menu_get_default_entry_index):
27193 New prototype.
27194 * normal/menu.c (grub_menu_get_default_entry_index): New function.
27195 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
27196 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
27197 (grub_menu_viewer_should_return): Likewise.
27198 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
27199 * normal/menu_text.c (run_menu): Enable menu switching.
27200 * normal/menu_viewer.c (should_return): New variable.
27201 (menu_viewer_changed): Likewise.
27202 (grub_menu_viewer_show_menu): Handle menu viewer changes.
27203 (grub_menu_viewer_should_return): New function.
27204 (menuviewer_write_hook): Likewise.
27205 (grub_menu_viewer_init): Likewise.
27206
272072010-02-06 Colin D Bennet <colin@gibibit.com>
272082010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27209
27210 Support for gfxterm in a window.
27211
27212 * include/grub/gfxterm.h: New file.
27213 * include/grub/video.h (struct grub_video_rect): New declaration.
27214 (grub_video_rect_t): Likewise.
27215 * term/gfxterm.c (struct grub_gfxterm_window): New type.
27216 (refcount): New variable.
27217 (render_target): Likewise.
27218 (window): Likewise.
27219 (repaint_callback): Likewise.
27220 (grub_virtual_screen_setup): Use 'render_target'.
27221 (init_window): New function.
27222 (grub_gfxterm_init_window): Likewise.
27223 (grub_gfxterm_init): Check reference counter.
27224 Use init_window.
27225 (destroy_window): New function.
27226 (grub_gfxterm_destroy_window): Likewise.
27227 (grub_gfxterm_fini): Check reference counter.
27228 Use destroy_window.
27229 (redraw_screen_rect): Restore viewport.
27230 Use 'render_target' and 'window'.
27231 Call 'repaint_callback'.
27232 (write_char): Use 'render_target'.
27233 (draw_cursor): Likewise.
27234 (scroll_up): Restore viewport.
27235 Use 'render_target' and 'window'.
27236 Call 'repaint_callback'.
27237 (grub_gfxterm_cls): Likewise.
27238 (grub_gfxterm_refresh): Use 'window'.
27239 (grub_gfxterm_set_repaint_callback): New function.
27240 (grub_gfxterm_background_image_cmd): Use 'window'.
27241 (grub_gfxterm_get_term): New function.
27242 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
27243
272442010-02-06 Colin D Bennett <colin@gibibit.com>
27245
27246 Bitmap scaling support.
27247
27248 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
27249 (bitmap_scale_mod_SOURCES): New variable.
27250 (bitmap_scale_mod_CFLAGS): Likewise.
27251 (bitmap_scale_mod_LDFLAGS): Likewise.
27252 * include/grub/bitmap_scale.h: New file.
27253 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
27254 (background_image_cmd_options): New variable.
27255 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
27256 (cmd): Rename and change type to ...
27257 (background_image_cmd_handle): ... this. All users updated.
27258 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
27259 * video/bitmap_scale.c: New file.
27260
272612010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27262
27263 SDL support.
27264
27265 * Makefile.in (LIBSDL): New variable.
27266 (enable_grub_emu_sdl): Likewise.
27267 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
27268 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
27269 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
27270 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
27271 * util/sdl.c: New file.
27272
272732010-02-06 Colin D Bennett <colin@gibibit.com>
272742010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27275
27276 Double buffering support.
27277
27278 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
27279 * include/grub/video.h: Update comment.
27280 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
27281 New type.
27282 (grub_video_fb_doublebuf_blit_init): New prototype.
27283 * term/gfxterm.c (scroll_up): Support double buffering.
27284 (grub_gfxterm_refresh): Likewise.
27285 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
27286 (grub_video_fb_doublebuf_blit_init): Likewise.
27287 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
27288 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
27289 'displayed_page', 'render_page' and 'update_screen'.
27290 (grub_video_vbe_fini): Free offscreen buffer.
27291 (doublebuf_pageflipping_commit): New function.
27292 (doublebuf_pageflipping_update_screen): Likewise.
27293 (doublebuf_pageflipping_init): Likewise.
27294 (double_buffering_init): Likewise.
27295 (grub_video_vbe_setup): Enable doublebuffering.
27296 (grub_video_vbe_swap_buffers): Implement.
27297 (grub_video_vbe_set_active_render_target): Handle double buffering.
27298 (grub_video_vbe_get_active_render_target): Likewise.
27299 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
27300 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
27301 (grub_video_vbe_enable_double_buffering): Likewise.
27302 (grub_video_vbe_swap_buffers): Use update_screen.
27303 (grub_video_set_mode): Use double buffering.
27304
273052010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27306
27307 * maintainance/gentrigtables.py: Remove.
27308 * lib/trig.c: Likewise.
27309
27310 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
27311
27312 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
27313 `trigtables.c'.
27314 (trigtables.c): New rule.
27315 (gentrigtables): Likewise.
27316 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
27317
273182010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27319
27320 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
27321 integer constants.
27322
273232010-02-06 Colin D Bennet <colin@gibibit.com>
27324
27325 Trigonometry support.
27326
27327 * include/grub/trig.h: New file.
27328 * lib/trig.c: Likewise.
27329 * maintainance/gentrigtables.py: Likewise.
27330 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
27331 (trig_mod_SOURCES): New variable.
27332 (trig_mod_CFLAGS): Likewise.
27333 (trig_mod_LDFLAGS): Likewise.
27334
5562834e
VS
273352010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27336
27337 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
27338 disk devices.
27339
4f8528fc
VS
273402010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27341
27342 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
27343 error.
27344
2b4068e9
VS
273452010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27346
27347 * util/hostdisk.c (open_device): Don't use partition device when reading
27348 before the partition.
27349 (grub_util_biosdisk_read): Don't read from partition and before the
27350 partition in single operation.
27351 (grub_util_biosdisk_write): Don't write to partition and before the
27352 partition in single operation.
27353
399f6e4d
TL
273542010-02-03 Torsten Landschoff <torsten@debian.org>
27355
27356 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27357 last sectors.
27358
996649b0
VS
273592010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27360
27361 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
27362 CDROM reads.
27363 (grub_biosdisk_write): Refuse to write to CDROM.
27364
3b205d4d
VS
273652010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27366
27367 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
27368
61e89d9d
VS
273692010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27370
27371 * font/font.c (find_glyph): Check that bmp_idx is available before
27372 using it.
27373 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
27374 with (font == NULL).
27375
bf7fcba2
CS
273762010-01-28 Christian Schmitt <chris@ilovelinux.de>
27377
27378 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
27379
f45d2663
BC
273802010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
27381
27382 * include/grub/script_sh.h (sourcecode): Add const qualifier.
27383 * util/grub-script-check.c (getline): Fix empty lines case.
27384
ec1444e6
RM
273852010-01-28 Robert Millan <rmh.grub@aybabtu.com>
27386
27387 * Makefile.in (check): Exit with fail status when one of the tests
27388 fails.
27389 * tests/example_functional_test.c (example_test): Fix reversed assert.
27390 * tests/example_unit_test.c (example_test): Likewise.
27391
2e1cb9bb
CW
273922010-01-28 Colin Watson <cjwatson@ubuntu.com>
27393
27394 * util/grub.d/10_linux.in: This script does not use any of the
27395 contents of gettext.sh, only the external command `gettext', so stop
27396 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
27397 the same prefix as GRUB.)
27398 * util/grub.d/10_kfreebsd.in: Likewise.
27399
63533ab0
VS
274002010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27401
27402 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
27403 of the line.
27404
989e1f93
VS
274052010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27406
27407 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27408 last sectors.
27409
e709ebe2
VS
274102010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27411
27412 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
27413 having a 4KiB and not 32KiB buffer size.
27414
27dea7ed
RM
274152010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27416
27417 * util/hostfs.c: Include `<errno.h>'.
27418 (grub_hostfs_read): Handle errors from fseeko() and fread().
27419
67667b9c
RM
274202010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27421
27422 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
27423 loop when using read hooks on files whose size isn't sector-aligned.
27424
c294d9d8
RM
274252010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27426
27427 Remove unused parameter.
27428
27429 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
27430 (grub_iso9660_open): Remove initialization of `data->length'.
27431
af75a9f1
RM
274322010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27433
27434 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
27435 memleak conditions.
27436
254e2ce5 274372010-01-27 Carles Pina i Estany <carles@pina.cat>
27438
27439 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
27440 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
27441
b510928c 274422010-01-26 Carles Pina i Estany <carles@pina.cat>
27443
27444 * util/bin2h.c (usage): Fix warning (space after backslash).
27445
aa2f9dd2 274462010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 27447
27448 * font/font.c: Include `grub/fontformat.h.
27449 Remove font file format constants.
27450 (grub_font_load): Use the new macros.
27451 * include/grub/fontformat.h: New file.
27452 * util/grub-mkfont.c: Include `grub/fontformat.c'.
27453 (write_font_pf2): Use the new macros.
27454
94e7e712
RM
274552010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27456
27457 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
27458 does.
27459
3973a59a
RM
274602010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27461
27462 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
27463
27464 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
27465 (_start): Macroify `0x7F'.
27466
27467 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
27468 (make_install_device): Use "(pxe)" as fallback prefix when booting
27469 via PXE.
27470
42e0cba3
GS
274712010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
27472
27473 * configure.ac: Reset LIBS after check for libgcc symbols.
27474
847effd8
CW
274752010-01-25 Colin Watson <cjwatson@ubuntu.com>
27476
27477 * util/hostdisk.c (open_device): Add trailing newline to debug
27478 message.
27479
ea4a7e35
GS
274802010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
27481
27482 * configure.ac: Check for `limits.h'.
27483 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
27484
67951a53
RM
274852010-01-24 Robert Millan <rmh.grub@aybabtu.com>
27486
27487 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
27488 capitalize error strings.
27489
c273d4ce
ST
274902010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27491
27492 * util/grub.d/10_hurd.in: Add a recovery mode.
27493
69be5b74
VS
274942010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
27495
27496 * configure.ac: Check for libgcc symbols with -nostdlib.
27497
fc9e5810
BC
274982010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
27499
27500 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
27501
4b358c0a
VS
275022010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27503
27504 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
27505 stack since heap may be unavailable at that point.
27506 (grub_ofconsole_gotoxy): Likewise.
27507
454fcd1c
VS
275082010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27509
27510 * configure.ac: Check for _restgpr_14_x.
27511 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
27512 and _savegpr_* prototypes.
27513
566863ca
RM
275142010-01-22 Robert Millan <rmh.grub@aybabtu.com>
27515
27516 Use generic grub_reboot() for i386-efi.
27517
27518 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
27519 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
27520 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
27521
bf86e59a
VS
275222010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27523
27524 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
27525 presence of "prefix" variable as it breaks when normal.mod is
27526 embedded.
27527
d645e0f8
VS
275282010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27529
27530 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
27531 stack since heap is unavailable at that point.
27532
f9ab2e25
VS
275332010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27534
27535 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
27536 (grub_freebsd_bootinfo): Rewritten.
27537 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
27538
01fc7054
VS
275392010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27540
27541 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
27542
caab4fd6
RM
275432010-01-21 Robert Millan <rmh.grub@aybabtu.com>
27544
27545 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
27546 domain now.
27547
67eb1427
FZ
275482010-01-20 Felix Zielcke <fzielcke@z-51.de>
27549
27550 * util/misc.c (make_system_path_relative_to_its_root): Change the work
27551 around for handling "/" to the correct fix. Fix a memory leak. Use
27552 xstrdup instead of strdup.
27553
a9ed4ff3
VS
275542010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27555
27556 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
27557
275582010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
27559
27560 Optimise glyph lookup by Basic Multilingual Plane lookup array.
27561
27562 * font/font.c (struct grub_font): New member 'bmp_idx'.
27563 (font_init): Initialise 'bmp_idx'.
27564 (load_font_index): Fill 'bmp_idx'.
27565 (find_glyph): Make inline. Use bmp_idx for BMP characters.
27566
48209f4f
VS
275672010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27568
27569 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
27570 unnecessary calls.
27571
9f0a4bb7
VS
275722010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27573
27574 Move context handling out of the kernel.
27575
27576 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
27577 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
27578 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
27579 * conf/i386-efi.rmk: Likewise.
27580 * conf/i386-ieee1275.rmk: Likewise.
27581 * conf/i386-pc.rmk: Likewise.
27582 * conf/powerpc-ieee1275.rmk: Likewise.
27583 * conf/sparc64-ieee1275.rmk: Likewise.
27584 * conf/x86_64-efi.rmk: Likewise.
27585 * include/grub/env.h: Include grub/menu.h.
27586 (grub_env_var_type): Removed.
27587 (grub_env_var): Replaced field 'type' with 'global'.
27588 (grub_env_find): New prototype.
27589 (grub_env_context_open): Remove EXPORT_FUNC.
27590 (grub_env_context_close): Likewise.
27591 (grub_env_export): Likewise.
27592 (grub_env_set_data_slot): Removed.
27593 (grub_env_get_data_slot): Likewise.
27594 (grub_env_unset_data_slot): Likewise.
27595 (grub_env_unset_menu): New prototype.
27596 (grub_env_set_menu): Likewise.
27597 (grub_env_get_menu): Likewise.
27598 * include/grub/env_private.h: New file.
27599 * include/grub/normal.h (grub_context_init): New prototype.
27600 (grub_context_fini): Likewise.
27601 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
27602 * normal/context.c (grub_cmd_export): ... to here.
27603 * kern/env.c: Include env_private.h.
27604 (HASHSZ): Moved to include/grub/env_private.h.
27605 (grub_env_context): Likewise.
27606 (grub_env_sorted_var): Likewise.
27607 (current_context): Renamed from this ...
27608 (grub_current_context): ...to this. 'static' removed. All users updated.
27609 (grub_env_find): Removed 'static'.
27610 (grub_env_context_open): Moved to normal/context.c.
27611 (grub_env_context_close): Likewise.
27612 (grub_env_export): Likewise.
27613 (mangle_data_slot_name): Removed.
27614 (grub_env_set_data_slot): Likewise.
27615 (grub_env_get_data_slot): Likewise.
27616 (grub_env_unset_data_slot): Likewise.
27617 * kern/main.c (grub_set_root_dev): Don't export root.
27618 It will be done later.
27619 (grub_main): Don't export prefix.
27620 It will be done later.
27621 * normal/context.c: New file.
27622 * normal/main.c (free_menu): Use grub_env_unset_menu.
27623 (grub_normal_add_menu_entry): Use grub_env_get_menu.
27624 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
27625 (GRUB_MOD_INIT(normal)): Call grub_context_init.
27626 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
27627
8dd35b8c
VS
276282010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27629
27630 setpci support.
27631
27632 * commands/setpci.c: New file.
27633 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
27634 (setpci_mod_SOURCES): New variable.
27635 (setpci_mod_CFLAGS): Likewise.
27636 (setpci_mod_LDFLAGS): Likewise.
27637
449193d5
VS
276382010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27639
27640 Byte-addressable PCI configuration space.
27641
27642 * bus/pci.c (grub_pci_make_address): Use byte address instead of
27643 dword address.
27644 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
27645 GRUB_PCI_REG_CACHELINE.
27646 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
27647 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
27648 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
27649 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
27650 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
27651 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
27652 grub_pci_make_address.
27653 (lock_rom_area): Likewise.
27654 * commands/lspci.c (grub_lspci_iter): Use macroses
27655 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
27656 of grub_pci_make_address.
27657 * disk/ata.c (grub_ata_pciinit): Likewise.
27658 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
27659 (GRUB_PCI_REG_VENDOR): Likewise.
27660 (GRUB_PCI_REG_DEVICE): Likewise.
27661 (GRUB_PCI_REG_COMMAND): Likewise.
27662 (GRUB_PCI_REG_STATUS): Likewise.
27663 (GRUB_PCI_REG_REVISION): Likewise.
27664 (GRUB_PCI_REG_CLASS): Likewise.
27665 (GRUB_PCI_REG_CACHELINE): Likewise.
27666 (GRUB_PCI_REG_LAT_TIMER): Likewise.
27667 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
27668 (GRUB_PCI_REG_BIST): Likewise.
27669 (GRUB_PCI_REG_ADDRESSES): Likewise.
27670 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27671 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27672 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27673 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27674 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27675 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27676 (GRUB_PCI_REG_CIS_POINTER): Likewise.
27677 (GRUB_PCI_REG_SUBVENDOR): Likewise.
27678 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
27679 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
27680 (GRUB_PCI_REG_CAP_POINTER): Likewise.
27681 (GRUB_PCI_REG_IRQ_LINE): Likewise.
27682 (GRUB_PCI_REG_IRQ_PIN): Likewise.
27683 (GRUB_PCI_REG_MIN_GNT): Likewise.
27684 (GRUB_PCI_REG_MAX_LAT): Likewise.
27685 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
27686 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
27687 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 27688 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
27689 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
27690 space.
27691
96d73208
RM
276922010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27693
27694 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
27695 can be reliably determined to be supported.
27696
d4484482
RM
276972010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27698
27699 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
27700 that VESA is supported.
27701 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
27702 supported.
27703
00308ecf
VS
277042010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27705
27706 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
27707
f66924a4
RM
277082010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27709
27710 * util/misc.c (make_system_path_relative_to_its_root): Work around
27711 special-casing of "/", as previous incarnation of this routine did.
27712
cbca0ada
VS
277132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27714
27715 Fix any-emu compilation.
27716
27717 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
27718 * grub_bin2h_SOURCES: New variable.
27719
34a66d99
RM
277202010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27721
27722 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
27723
94fabf58
RM
277242010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27725
27726 * util/grub.d/00_header.in: Fix handling of locale_dir.
27727
02cf98ca
VS
277282010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27729
27730 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
27731 as possible unifont location (Gentoo).
27732 Reported by: Alexander Brüning
27733
327dbcd7
VS
277342010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27735
27736 Don't try to generate lists for kernel.img.
27737
27738 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
27739 (pkglib_MODULES): Remove kernel.img.
27740 (kernel_img_EXPORTS): Removed.
27741 (kernel_img_RELOCATABLE): New variable.
27742 * conf/x86_64-efi.rmk: Likewise.
27743 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
27744
ca467290
VS
277452010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27746
27747 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
27748 grub_xasprintf or grub_snprintf.
27749 (grub_vsprintf): Likewise.
27750 (grub_snprintf): New proto.
27751 (grub_vsnprintf): Likewise.
27752 (grub_xasprintf): Likewise.
27753 (grub_xvasprintf): Likewise.
27754 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
27755 (grub_sprintf): Removed.
27756 (grub_vsnprintf): New function.
27757 (grub_snprintf): Likewise.
27758 (grub_xvasprintf): Likewise.
27759 (grub_xasprintf): Likewise.
27760 (grub_vsprintf): Renamed to ...
27761 (grub_vsnprintf_real): ...this. New argument max_len.
27762
aca655fd
BC
277632010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
27764
27765 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
27766 fix grub-script-check warning.
27767
7ee92c32
VS
277682010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27769
27770 * include/grub/font.h (grub_font_load): Fix prototype.
27771
f80927ca
VS
277722010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27773
27774 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
27775
119c50ea
VS
277762010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27777
27778 * include/grub/x86_64/at_keyboard.h: New file.
27779
47d5f3c1
VS
277802010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27781
27782 * loader/mips/linux.c: Include missing grub/i18n.h.
27783
55ff5266
RM
277842009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27785
27786 * normal/menu.c (notify_execution_failure): Clarify error message.
27787
c893cc87
RM
277882009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27789
27790 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
27791 return value (and revert all return statements). Update users.
27792
917dd370
CW
277932010-01-20 Dan Merillat <debian@dan.merillat.org>
27794
27795 * kern/device.c (grub_device_iterate): Allocate new part_ent
27796 structure based on sizeof (*p) rather than sizeof (p->next), to
27797 account for structure padding.
27798
27799 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
27800 disk is NULL, which might happen for LVM physical volumes with no
27801 LVM signature.
27802
d4a4ee57
RM
278032009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27804
27805 * loader/mips/linux.c (grub_cmd_initrd)
27806 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
27807
278082009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27809
27810 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
27811 (grub_video_video_init, grub_video_bitmap_init)
27812 (grub_font_manager_init, grub_term_gfxterm_init)
27813 (grub_at_keyboard_init): New extern declarations.
27814 (grub_machine_init): Initialize gfxterm and at_keyboard.
27815
27816 * kern/main.c (grub_main): Revert grub_printf delay kludge.
27817
27818 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
27819 `gfxterm.mod' into core image.
27820
27821 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27822 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27823 (kernel_img_FORMAT): Copy to ...
27824
27825 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27826 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27827 (kernel_img_FORMAT): ... here, and ...
27828
27829 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27830 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27831 (kernel_img_FORMAT): ... here.
27832
27833 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
27834 and input (at_keyboard) terminals in kernel.
27835 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
27836
27837 (pkglib_MODULES): Remove `pci.mod'.
27838 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
27839 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
27840 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27841 (at_keyboard_mod_LDFLAGS): Remove variables.
27842
278432010-01-11 Felix Zielcke <fzielcke@z-51.de>
27844
27845 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
27846
278472009-12-10 Robert Millan <rmh.grub@aybabtu.com>
27848
27849 * include/grub/mips/libgcc.h: Only export symbols for functions
27850 that libgcc provides.
27851
278522009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
27853
27854 MIPS support.
27855
27856 * bus/bonito.c: New file.
27857 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
27858 GRUB_PCI_NUM_DEVICES.
27859 * term/i386/pc/serial.c: Move to ...
27860 * term/serial.c: ... here. All users updated.
27861 * util/i386/pc/grub-mkimage.c: Move to ...
27862 * util/grub-mkrawimage.c: ... here. All users updated.
27863 * term/i386/pc/at_keyboard.c: Move to ...
27864 * term/at_keyboard.c: ... here. All users updated.
27865 * conf/mips-qemu-mips.rmk: New file.
27866 * conf/mips-yeeloong.rmk: Likewise.
27867 * conf/mips.rmk: Likewise.
27868 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
27869 mipsel-qemu-mips.
27870 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
27871 to port addresses.
27872 (grub_ata_pciinit): Support CS5536.
27873 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
27874 * font/font_cmd.c (loadfont_command): Open file before passing it to
27875 grub_font_load.
27876 (pseudo_file_read): New function.
27877 (pseudo_file_close): Likewise.
27878 (pseudo_fs): New structure.
27879 (load_font_module): New function.
27880 (GRUB_MOD_INIT(font_manager)): Load embedded font.
27881 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
27882 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
27883 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
27884 * include/grub/i386/at_keyboard.h: Split into ...
27885 * include/grub/at_keyboard.h: ... this ...
27886 * include/grub/i386/at_keyboard.h: ... and this.
27887 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
27888 New prototype.
27889 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
27890 updated.
27891 (grub_elf64_size): Likewise.
27892 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
27893 filename.
27894 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
27895 * include/grub/i386/coreboot/serial.h: Rewritten.
27896 * include/grub/i386/ieee1275/serial.h: Include
27897 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
27898 * include/grub/i386/pc/serial.h: Moved from here ...
27899 * include/grub/serial.h: ... to here. All users updated.
27900 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
27901 (GRUB_PCI_NUM_BUS): Likewise.
27902 (GRUB_PCI_NUM_DEVICES): Likewise.
27903 (grub_pci_device_map_range): Add missing volatile keyword.
27904 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
27905 * include/grub/mips/at_keyboard.h: New file.
27906 * include/grub/mips/cache.h: Likewise.
27907 * include/grub/mips/io.h: Likewise.
27908 * include/grub/mips/kernel.h: Likewise.
27909 * include/grub/mips/libgcc.h: Likewise.
27910 * include/grub/mips/pci.h: Likewise.
27911 * include/grub/mips/qemu-mips/boot.h: Likewise.
27912 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27913 * include/grub/mips/qemu-mips/loader.h: Likewise.
27914 * include/grub/mips/qemu-mips/memory.h: Likewise.
27915 * include/grub/mips/qemu-mips/serial.h: Likewise.
27916 * include/grub/mips/qemu-mips/time.h: Likewise.
27917 * include/grub/mips/relocator.h: Likewise.
27918 * include/grub/mips/time.h: Likewise.
27919 * include/grub/mips/types.h: Likewise.
27920 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
27921 * include/grub/mips/yeeloong/boot.h: Likewise.
27922 * include/grub/mips/yeeloong/kernel.h: Likewise.
27923 * include/grub/mips/yeeloong/loader.h: Likewise.
27924 * include/grub/mips/yeeloong/memory.h: Likewise.
27925 * include/grub/mips/yeeloong/pci.h: Likewise.
27926 * include/grub/mips/yeeloong/serial.h: Likewise.
27927 * include/grub/mips/yeeloong/time.h: Likewise.
27928 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
27929 * kern/elf.c (grub_elf32_size): New parameter. All users
27930 updated.
27931 (grub_elf64_size): Likewise.
27932 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
27933 Load modules before saying "Welcome to GRUB!".
27934 Call grub_refresh after saying "Welcome to GRUB!".
27935 * kern/mips/cache.S: New file.
27936 * kern/mips/cache_flush.S: Likewise.
27937 * kern/mips/dl.c: Likewise.
27938 * kern/mips/init.c: Likewise.
27939 * kern/mips/qemu-mips/init.c: Likewise.
27940 * kern/mips/startup.S: Likewise.
27941 * kern/mips/yeeloong/init.c: Likewise.
27942 * kern/term.c (grub_putcode): Handle NULL terminal.
27943 (grub_getcharwidth): Likewise.
27944 (grub_getkey): Likewise.
27945 (grub_checkkey): Likewise.
27946 (grub_getkeystatus): Likewise.
27947 (grub_getxy): Likewise.
27948 (grub_getwh): Likewise.
27949 (grub_gotoxy): Likewise.
27950 (grub_cls): Likewise.
27951 (grub_setcolorstate): Likewise.
27952 (grub_setcolor): Likewise.
27953 (grub_getcolor): Likewise.
27954 (grub_refresh): Likewise.
27955 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
27956 (write_jump): Add hatch nop.
27957 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
27958 * lib/mips/setjmp.S: New file.
27959 * loader/mips/linux.c: Likewise.
27960 * term/i386/pc/at_keyboard.c: Move from here ...
27961 * term/at_keyboard.c: ... to here.
27962 * term/i386/pc/serial.c: Moved from here ...
27963 * term/serial.c: ... to here. All users updated.
27964 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
27965 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
27966 (serial_translate_key_sequence): Avoid deadlock.
27967 (grub_serial_getkey): Handle backspace.
27968 (grub_serial_putchar): Fix newline handling.
27969 * util/i386/pc/grub-mkimage.c: Move from here ...
27970 * util/grub-mkrawimage.c: ... to here. All users updated.
27971 (generate_image): New parameters 'font_path' and 'format'.
27972 Support embedding font.
27973 Use grub_host_to_target* instead of grub_cpu_to_le*.
27974 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
27975 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
27976 (options): New option "--font".
27977 (usage): Likewise.
27978 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
27979 (main): Handle "--font".
27980 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
27981 (grub_virtual_screen_setup): Set bg_color_display.
27982 (redraw_screen_rect): Use bg_color_display instead of incorrect
27983 bg_color.
27984 (grub_gfxterm_cls): Likewise.
27985 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
27986 Support embedding config file.
27987 (add_segments): Likewise.
27988 (options): New option "--config".
27989 (main): Handle "--config".
27990 * video/sm712.c: New file.
27991
25c2b5b3
RM
279922010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27993
27994 Fix parallel builds.
27995
27996 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
27997 font.c depend on ascii.h).
27998
279992010-01-12 Carles Pina i Estany <carles@pina.cat>
28000
28001 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
28002
280032010-01-11 Carles Pina i Estany <carles@pina.cat>
28004
28005 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
28006 By default: disabled.
28007 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
28008 parameter.
28009
280102010-01-10 Carles Pina i Estany <carles@pina.cat>
28011
28012 * font/font.c: Update copyright years.
28013 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
28014
280152010-01-10 Carles Pina i Estany <carles@pina.cat>
28016
28017 * font/font.c: Include `ascii.h'.
28018 (ASCII_BITMAP_SIZE): New macro.
28019 (ascii_font_glyph): Define.
28020 (ascii_glyph_lookup): New function.
28021 (grub_font_get_string_width): Change comment. If glyph not found, use
28022 ascii_glyph_lookup.
28023 (grub_font_get_glyph_with_fallback): If glyph not available returns
28024 ascii_glyph_lookup.
28025 * util/grub-mkfont.c (file_formats): New enum.
28026 (options): Add `ascii-bitmaps' new option.
28027 (usage): Add `asii-bitmaps' new option.
28028 (write_font_ascii_bitmap): New function.
28029 (write_font): Rename to ...
28030 (write_font_p2): ... this. Remove print_glyphs call.
28031 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
28032 used. Call print_glyphs.
28033 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
28034
280352010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28036
28037 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
28038 (grub_bin2h_SOURCES): New variable.
28039 * util/bin2h.c: New file.
28040
915fc1b8
VS
280412010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28042
28043 * include/multiboot.h: Resynced with spec.
28044 * include/multiboot2.h: Likewise.
28045 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
28046 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
28047
9444b678
RM
280482010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28049
28050 * include/grub/term.h (grub_term_register_input,
28051 grub_term_register_output): Check return of terminal init()
28052 routines, and abort if errors are raised.
28053
28054 * commands/terminal.c: Update copyright year.
28055
cba98e8d
RM
280562010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28057
28058 * commands/terminal.c (grub_cmd_terminal_input)
28059 (grub_cmd_terminal_output): Check return of terminal init()
28060 routines, and abort if errors are raised.
28061
6f7db5d6
VS
280622010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28063
28064 * include/grub/i386/bsd.h: Fix include pathes.
28065
262bff8d
VS
280662010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28067
28068 Add missing *BSD copyright headers.
28069
28070 * include/grub/aout.h: Add BSD licence.
28071 * include/grub/i386/bsd.h: Parts under different licences moved to ...
28072 * include/grub/i386/freebsd_linker.h: ... here,
28073 * include/grub/i386/freebsd_reboot.h: ... here,
28074 * include/grub/i386/netbsd_bootinfo.h: ... here,
28075 * include/grub/i386/netbsd_reboot.h: ... here,
28076 * include/grub/i386/openbsd_bootarg.h: ... here,
28077 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
28078 licence to each file.
28079
b2cab848
RM
280802010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28081
28082 * acinclude.m4: Remove `nop' assembly instruction; it's not
28083 implemented by all architectures.
28084
2cb6be4b
RM
280852010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28086
28087 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
28088 ELILO. This is no longer necessary.
28089
a2eaee15
BC
280902010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
28091
28092 Added new tool, grub-scrit-check to verify grub.cfg syntax.
28093
28094 * util/grub-script-check.c: grub-script-check tool.
28095 * conf/common.rmk: Make rules for grub-script-check.
28096
88d17012
RM
280972010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28098
28099 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
28100 spotting it back in 2008. Shame on me for forgetting he did.
28101
28102 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
28103
8040619d
RM
281042010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28105
28106 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
28107 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
28108 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
28109 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
28110 (GRUB_VIDEO_TYPE_EFI): Rename to ...
28111 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
28112
a0c2a0f6
RM
281132010-01-17 Robert Millan <rmh.grub@aybabtu.com>
28114
28115 * include/grub/test.h: Add license header.
28116 * tests/example_functional_test.c: Likewise.
28117 * tests/example_unit_test.c: Likewise.
28118 * tests/lib/functional_test.c: Likewise.
28119 * tests/lib/test.c: Likewise.
28120 * tests/lib/unit_test.c: Likewise.
28121
b0b13907
VS
281222010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
28123
28124 Use flag-based instead of hook-based video mode selection and "auto"
28125 keyword.
28126
28127 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
28128 (grub_video_set_mode): Changed prototype. All users updated.
28129 (grub_video_check_mode_flag): New inline function.
28130 * video/video.c (parse_modespec): New function.
28131 (grub_video_set_mode): Parse flags and keywords.
28132
ea379330 281332010-01-17 Carles Pina i Estany <carles@pina.cat>
28134
28135 * util/misc.c (grub_util_info): Fix the order of the parameters in a
28136 fprintf call.
28137
e15c215e
FZ
281382010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
28139
28140 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
28141
409ae1c9 281422010-01-16 Carles Pina i Estany <carles@pina.cat>
28143
28144 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
28145 string.
28146 * util/grub-emu.c (usage): Likewise.
28147 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
28148 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28149 * util/i386/pc/grub-mkimage.c (usage): Likewise.
28150 * util/i386/pc/grub-setup.c (usage): Likewise.
28151
70a14d3d 281522010-01-16 Carles Pina i Estany <carles@pina.cat>
28153
28154 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
28155 the message.
28156 (grub_util_info): Likewise.
28157 (grub_util_error): Likewise.
28158 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
28159 and/or new lines in `grub_util_warna', `grub_util_info',
28160 `grub_util_error' calls.
28161 * util/getroot.c: Likewise.
28162 * util/grub-editenv.c: Likewise.
28163 * util/grub-emu.c: Likewise.
28164 * util/grub-fstest.c: Likewise.
28165 * util/grub-mkdevicemap.c: Likewise.
28166 * util/grub-mkfont.c: Likewise.
28167 * util/grub-mkpasswd-pbkdf2.c: Likewise.
28168 * util/grub-mkrelpath.c: Likewise.
28169 * util/grub-pe2elf.c: Likewise.
28170 * util/grub-probe.c: Likewise.
28171 * util/hostdisk.c: Likewise.
28172 * util/i386/efi/grub-mkimage.c: Likewise.
28173 * util/i386/pc/grub-mkimage.c: Likewise.
28174 * util/i386/pc/grub-setup.c: Likewise.
28175 * util/ieee1275/ofpath.c: Likewise.
28176 * util/mkisofs/eltorito.c: Likewise.
28177 * util/mkisofs/rock.c: Likewise.
28178 * util/mkisofs/write.c: Likewise.
28179 * util/raid.c: Likewise.
28180 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28181 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28182
a0b766fc
VS
281832010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28184
28185 Enable multiboot on non-pc.
28186
28187 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
28188 multiboot.mod and multiboot2.mod to ...
28189 * conf/i386.rmk (pkglib_MODULES): ... here.
28190 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
28191 Moved to ...
28192 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
28193 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
28194 Moved to ...
28195 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
28196 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
28197 Moved to ...
28198 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
28199 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
28200 Moved to ...
28201 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
28202 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
28203 relocator.mod.
28204 (ata_mod_SOURCES): Removed.
28205 (ata_mod_CFLAGS): Likewise.
28206 (ata_mod_LDFLAGS): Likewise.
28207 (relocator_mod_SOURCES): Removed.
28208 (relocator_mod_CFLAGS): Likewise.
28209 (relocator_mod_ASFLAGS): Likewise.
28210 (relocator_mod_LDFLAGS): Likewise.
28211 Include i386.mk.
28212 * include/grub/x86_64/multiboot.h: New file.
28213 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
28214 Terminate EFI.
28215
884ade56
VS
282162010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28217
28218 Video multiboot support.
28219
28220 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
28221 New prototype.
28222 * include/multiboot.h: Resynced with multiboot specification.
28223 * include/multiboot2.h: Likewise.
28224 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
28225 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
28226 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
28227 (HAS_VGA_TEXT): Likewise.
28228 (accepts_video): New variable.
28229 (grub_multiboot_set_accepts_video): New function.
28230 (grub_multiboot_get_mbi_size): Account for video structures.
28231 (set_video_mode): New function.
28232 (retrieve_video_parameters): Likewise.
28233 (grub_multiboot_make_mbi): Fill video fields.
28234
0d90e8a6
VS
282352010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28236
28237 Video driver ids.
28238
28239 * include/grub/video.h (grub_video_driver_id): New type.
28240 (grub_video_adapter): New member 'id'. All users updated.
28241 (grub_video_get_driver_id): New proto.
28242 * video/video.c (grub_video_get_driver_id): New function.
28243
5c71db1b 282442010-01-14 Carles Pina i Estany <carles@pina.cat>
28245
28246 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
28247 `var=val'.
28248
cca15b52 282492010-01-14 Carles Pina i Estany <carles@pina.cat>
28250
28251 * normal/cmdline.c (print_completion): Gettextizze.
28252
c586fbb2 282532001-01-14 Carles Pina i Estany <carles@pina.cat>
28254
28255 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
28256
ba2f6848 282572010-01-14 Carles Pina i Estany <carles@pina.cat>
28258
28259 * gettext/gettext.c (grub_gettext_translate): Push and pop
28260 grub_errno.
28261 (grub_gettext_delete_list): Change comment style.
28262 * kern/err.c (grub_error): Gettextizze.
28263 (grub_fatal): Gettextizze.
28264
0a46429a
RM
282652010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28266
28267 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
28268 (grub_linux16_real_boot): ... this.
28269 * kern/i386/loader.S: Likewise.
28270 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
28271 (grub_linux16_boot): New function. Switches to text mode and calls
28272 grub_linux16_real_boot().
28273
28274 * loader/i386/bsd.c: Include `<grub/video.h>'.
28275 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
28276 text mode before calling grub_unix_real_boot().
28277
28278 * loader/i386/multiboot.c: Include `<grub/video.h>'.
28279 (grub_multiboot_boot): Switch to text mode before calling
28280 grub_relocator32_boot().
28281
28282 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
28283 (grub_chainloader_boot): Switch to text mode before calling
28284 grub_chainloader_real_boot().
28285
d6f93a66
RM
282862010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
282872010-01-05 Colin Watson <cjwatson@ubuntu.com>
28288
28289 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
28290 non-empty value.
28291
282922010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
282932010-01-05 Colin Watson <cjwatson@ubuntu.com>
28294
28295 * util/grub.d/00_header.in: Define a "savedefault" function for use
28296 in menu entries.
28297 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
28298
282992010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
283002010-01-05 Colin Watson <cjwatson@ubuntu.com>
28301
28302 * util/grub-mkconfig_lib.in (save_default_entry): Only set
28303 saved_entry if boot_once is unset.
28304 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
28305 previous saved entry (i.e. grub-reboot).
28306
283072009-12-08 Colin Watson <cjwatson@ubuntu.com>
28308
28309 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
28310
283112009-12-08 Colin Watson <cjwatson@ubuntu.com>
28312
28313 * util/grub.d/00_header.in: Use `set var=val' rather than plain
28314 `var=val'.
28315 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
28316
283172009-12-08 Colin Watson <cjwatson@ubuntu.com>
28318
28319 * util/grub-reboot.in: Fix --version output.
28320 * util/grub-set-default.in: Likewise.
28321
283222009-12-08 Colin Watson <cjwatson@ubuntu.com>
28323
28324 * util/grub.d/00_header.in: Silently ignore zero-sized environment
28325 blocks.
28326
283272009-12-08 Colin Watson <cjwatson@ubuntu.com>
28328
28329 * util/grub.d/00_header.in: Quote the value assigned to `default',
28330 in case it contains spaces.
28331
283322009-12-08 Colin Watson <cjwatson@ubuntu.com>
28333
28334 * util/grub.d/30_os-prober.in: Fix merge error that moved a
28335 `save_default_entry' call from the macosx case to the linux case.
28336
283372009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
283382009-10-25 Colin Watson <cjwatson@ubuntu.com>
28339
28340 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
28341 in `chosen' environment variable.
28342 * normal/menu_text.c (get_entry_number): Check if the variable
28343 matches the title of a menu entry.
28344 (run_menu): Pass menu to get_entry_number.
28345
28346 * util/grub-reboot.in: New file.
28347 * util/grub-set-default.in: New file.
28348 * conf/common.rmk (grub-reboot): New utility.
28349 (grub-set-default): New utility.
28350
28351 * util/grub-mkconfig_lib.in (save_default_entry): New function.
28352 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
28353 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
28354 move it to `saved_entry' for the next boot. Load environment on
28355 initialisation.
28356 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
28357 * util/grub.d/10_hurd.in: Likewise.
28358 * util/grub.d/10_linux.in (linux_entry): Likewise.
28359 * util/grub.d/10_windows.in: Likewise.
28360 * util/grub.d/30_os-prober.in: Likewise.
28361
28362 * util/grub-install.in: Create environment block.
28363 * util/i386/efi/grub-install.in: Likewise.
28364 * util/ieee1275/grub-install.in: Likewise.
28365 * util/sparc64/ieee1275/grub-install.in: Likewise.
28366
0934d184
BC
283672010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
28368
28369 Unit testing framework for GRUB.
28370
28371 * Makefile.in: Test framework build rules for 'make check'.
28372 * conf/tests.rmk: Build rules for individual tests and framework.
28373
28374 * include/grub/test.h: Header file for whitebox tests.
28375 * tests/lib/functional_test.c: Framework support for whitebox
28376 functional tests.
28377 * tests/lib/test.c: Common whitebox testing code for unit and
28378 functional tests.
28379 * tests/lib/unit_test.c: Framework support for whitebox unit
28380 tests.
28381
28382 * tests/util/grub-shell-tester.in: Support utility for grub-script
28383 tests.
28384 * tests/util/grub-shell.in: Utility to execute grub-script
28385 commands in a Qemu instance.
28386
28387 * tests/example_functional_test.c: Example whitebox functional
28388 test.
28389 * tests/example_grub_script_test.in: Example grub-script test.
28390 * tests/example_scripted_test.in: Example scripted test.
28391 * tests/example_unit_test.c: Example whitebox unit test.
28392
9c4ffeeb
VS
283932010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
28394
28395 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
28396 Add loader/i386/multiboot_mbi.c.
28397 (multiboot2_mod_SOURCES): Likewise.
28398 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
28399 (multiboot2_mod_SOURCES): Likewise.
28400 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
28401 (grub_multiboot_make_mbi): Likewise.
28402 (grub_multiboot_free_mbi): Likewise.
28403 (grub_multiboot_init_mbi): Likewise.
28404 (grub_multiboot_add_module): Likewise.
28405 (grub_multiboot_set_bootdev): Likewise.
28406 * loader/i386/multiboot.c (mbi): Removed.
28407 (mbi_dest): Likewise.
28408 (alloc_mbi): New variable.
28409 (grub_multiboot_payload_size): Removed. All users updated.
28410 (grub_multiboot_pure_size): New variable.
28411 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
28412 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
28413 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
28414 (grub_fill_multiboot_mmap): Likewise.
28415 (grub_multiboot_get_bootdev): Likewise.
28416 (grub_multiboot): Use multiboot_mbi functions.
28417 * loader/i386/multiboot_mbi.c: New file.
28418
17383dfe
VS
284192010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28420
28421 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
28422 it would result in module crash.
28423
c1f28820
VS
284242010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28425
28426 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
28427 (grub_ofconsole_getwh): Split to ...
28428 (grub_ofconsole_getwh): ... this.
28429 (grub_ofconsole_dimensions): ...and this.
28430 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
28431
58655a16
RM
284322010-01-13 Robert Millan <rmh.grub@aybabtu.com>
28433
28434 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
28435
10891398
VS
284362010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28437
28438 * loader/i386/pc/multiboot2.c: Removed stalled file.
28439
0b8a223c
VS
284402010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28441
28442 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
28443 Reported by: Grégoire Sutre
28444
92ab12b0
RM
284452010-01-11 Robert Millan <rmh.grub@aybabtu.com>
28446
28447 * util/misc.c (canonicalize_file_name): New function.
28448 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
28449 instead of realpath().
28450
a788afb6
CW
284512010-01-11 Colin Watson <cjwatson@ubuntu.com>
28452
28453 * util/grub-install.in (usage): Clarify meaning of --root-directory,
28454 and make it clearer that it's optional. Based on confusion
28455 witnessed on IRC.
28456
ffa8e3d2
VS
284572010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28458
28459 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
28460 in premature implicit newline.
28461
e9060a9d
VS
284622010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28463
28464 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
28465 which resulted in garbled command line at the end of screen.
28466
f0d0c0b7
RM
284672010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28468
28469 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
28470 initialization with similar approach as with other Linux loaders.
28471
0e60bae7
RM
284722010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28473
28474 Fix i386-ieee1275 build.
28475
28476 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
28477 and grub_term_height() for video_{width,height} initialization.
28478
284792010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
28480
28481 Fix grub-emu build.
28482
28483 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
28484
cdb3f378
RM
284852010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
284862010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28487
28488 Support for multiple terminals.
28489
28490 * Makefile.in (pkglib_DATA): terminal.lst.
28491 (terminal.lst): New target.
28492 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
28493 (GRUB_MOD_INIT(handler)): Likewise.
28494 (GRUB_MOD_FINI(handler)): Likewise.
28495 * commands/help.c (grub_cmd_help): Handle multiple terminals.
28496 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
28497 * commands/sleep.c (do_print): Use grub_term_restore_pos.
28498 (grub_cmd_sleep): Use grub_term_save_pos.
28499 * commands/terminal.c: New file.
28500 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
28501 commands/terminal.c and lib/charset.c.
28502 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
28503 (pkglib_MODULES): Add terminal.mod.
28504 (terminal_mod_SOURCES): New variable.
28505 (terminal_mod_CFLAGS): Likewise.
28506 (terminal_mod_LDFLAGS): Likewise.
28507 * genhandlerlist.sh: Don't handle terminals.
28508 * genmk.rb: Generate terminal-*.lst.
28509 * genterminallist.sh: New file.
28510 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
28511 (grub_is_valid_utf8): Likewise.
28512 (grub_utf8_to_ucs4_alloc): Likewise.
28513 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
28514 (grub_menu_register_viewer): Changed argument.
28515 (grub_menu_try_text): New proto.
28516 (grub_gfxmenu_try_hook): New declaration.
28517 * include/grub/normal.h (grub_normal_exit_level): New declaration.
28518 (grub_menu_init_page): Additional argument term.
28519 (grub_normal_init_page): Likewise.
28520 (grub_cmdline_get): Arguments simplified.
28521 (grub_utf8_to_ucs4_alloc): Removed.
28522 (grub_print_ucs4): Additional argument term.
28523 (grub_getstringwidth): Likewise.
28524 (grub_print_message_indented): Likewise.
28525 (grub_menu_text_register_instances): New proto.
28526 (grub_show_menu): Likewise.
28527 (read_terminal_list): Likewise.
28528 (grub_set_more): Likewise.
28529 * include/grub/parser.h: Include handler.h.
28530 * include/grub/reader.h: Rewritten.
28531 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
28532 (GRUB_TERM_WIDTH): Changed to function.
28533 (GRUB_TERM_HEIGHT): Likewise.
28534 (GRUB_TERM_BORDER_WIDTH): Likewise.
28535 (GRUB_TERM_BORDER_HEIGHT): Likewise.
28536 (GRUB_TERM_NUM_ENTRIES): Likewise.
28537 (GRUB_TERM_ENTRY_WIDTH): Likewise.
28538 (GRUB_TERM_CURSOR_X): Likewise.
28539 (grub_term_input_class): Likewise.
28540 (grub_term_output_class): Likewise.
28541 (grub_term_outputs_disabled): New declaration.
28542 (grub_term_inputs_disabled): Likewise.
28543 (grub_term_outputs): Likewise.
28544 (grub_term_inputs): Likewise.
28545 (grub_term_register_input): Rewritten.
28546 (grub_term_register_output): Likewise.
28547 (grub_term_unregister_input): Likewise.
28548 (grub_term_unregister_output): Likewise.
28549 (FOR_ACTIVE_TERM_INPUTS): New macro.
28550 (FOR_DISABLED_TERM_INPUTS): Likewise.
28551 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
28552 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
28553 * include/grub/terminfo.h: Add oterm argument to all protypes.
28554 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
28555 Use grub_rescue_run.
28556 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
28557 All users updated.
28558 * kern/reader.c: Removed. All users updated.
28559 * kern/rescue_reader.c (grub_rescue_init): Removed.
28560 (grub_rescue_reader): Likewise.
28561 (grub_register_rescue_reader): Likewise.
28562 (grub_rescue_run): New function based on kern/reader.c.
28563 * kern/term.c: Adapted for multiterm.
28564 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
28565 (grub_is_valid_utf8): Likewise.
28566 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
28567 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
28568 right terminal.
28569 * loader/i386/linux.c (grub_linux_boot): Likewise.
28570 * normal/auth.c (grub_username_get): New function.
28571 (grub_auth_check_authentication): Use grub_username_get.
28572 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
28573 * normal/color.c: Adapt for multiterm.
28574 * normal/main.c (read_config_file): Don't use grub_reader_loop.
28575 (grub_normal_init_page): Additional argument term.
28576 (read_lists): Call read_terminal_lists.
28577 (grub_enter_normal_mode): Call grub_cmdline_run.
28578 Handle grub_normal_exit_level.
28579 (grub_cmd_normal): Make reentrant.
28580 (grub_cmd_normal_exit): New function.
28581 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
28582 * normal/menu.c: Adapt for multiterm.
28583 * normal/menu_entry.c: Likewise.
28584 * normal/menu_text.c: Likewise.
28585 * normal/menu_viewer.c: Removed. All users updated.
28586 * normal/term.c: New file.
28587 * util/console.c: Change order of includes to workaround a bug in
28588 ncurses headers.
28589 * term/terminfo.c: New argument oterm on all exported functions.
28590 All users updated.
28591 * util/grub-editenv.c (grub_term_input_class): Removed.
28592 (grub_term_output_class): Likewise.
28593
1a064917
RM
285942010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28595
28596 Make loader output a bit more user-friendly.
28597
28598 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
28599 is being loaded. Likewise for the Hurd.
28600
28601 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
28602 that kernel of FreeBSD ${version} is being loaded.
28603
28604 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
28605 grub_dprintf().
28606 (grub_cmd_initrd): Likewise.
28607 * util/grub.d/10_linux.in (linux_entry): Print message indicating
28608 that Linux ${version} is being loaded. Likewise for initrd.
28609
5ce0a83a 286102010-01-09 Carles Pina i Estany <carles@pina.cat>
28611
28612 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
28613
809bbfeb 286142010-01-08 Carles Pina i Estany <carles@pina.cat>
28615
28616 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
28617 (GRUB_MOD_INIT): Gettextizze.
28618 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
28619 (GRUB_MOD_INIT): Gettextizze.
28620 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
28621 (grub_cmd_linux): Capitalise Linux.
28622 (GRUB_MOD_INIT): Gettextizze.
28623 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
28624 (grub_cmd_linux): Capitalise Linux.
28625 (GRUB_MOD_INIT): Gettextizze.
28626 * loader/i386/linux.c: Include `<grub/i18n.h>'.
28627 (grub_cmd_linux): Capitalise Linux.
28628 (GRUB_MOD_INIT): Gettextizze.
28629 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
28630 (GRUB_MOD_INIT): Gettextizze.
28631 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
28632 (grub_cmd_linux): Capitalise Linux.
28633 (GRUB_MOD_INIT): Gettextizze.
28634 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
28635 (grub_cpu_xnu_init): Gettextizze.
28636 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
28637 (GRUB_MOD_INIT): Gettextizze.
28638 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
28639 (GRUB_MOD_INIT): Gettextizze.
28640 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
28641 (grub_linux_load64): Capitalise Linux.
28642 (GRUB_MOD_INIT): Gettextizze.
28643 * loader/xnu.c: Include `<grub/i18n.h>'.
28644 (GRUB_MOD_INIT): Gettextizze.
28645 * po/POTFILES: Add `loader/efi/appleloader.c',
28646 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
28647 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
28648 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
28649 `loader/i386/xnu.c', `loader/multiboot_loader.c',
28650 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
28651 and `loader/xnu.c'.
28652
b394b2ca
RM
286532010-01-08 Robert Millan <rmh.grub@aybabtu.com>
28654
28655 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
28656
286572010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
28658
28659 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
28660 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
28661 * util/mkisofs/mkisofs.c (main): Readjust --version output.
28662
bc8b32b3
RM
286632010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28664
28665 Reset Multiboot 2 support. New loader implements the draft in
28666 /branches/multiboot2 and shares as much code as possible with the
28667 production Multiboot 1 implementation.
28668
28669 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
28670 * loader/multiboot2.c: Likewise.
28671 * loader/i386/multiboot_helper.S: Likewise.
28672 * include/multiboot2.h: Replace with latest version from the draft
28673 in /branches/multiboot2.
28674
28675 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
28676 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
28677 and `loader/multiboot2.c'.
28678 (pkglib_MODULES): Add `multiboot2.mod'.
28679 (multiboot2_mod_SOURCES): New variable.
28680 (multiboot2_mod_LDFLAGS): Likewise.
28681 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
28682
28683 * conf/i386-pc.rmk: Likewise.
28684
28685 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
28686 (multiboot_mod_SOURCES): Remove variable.
28687 (multiboot_mod_LDFLAGS): Likewise.
28688 (multiboot_mod_CFLAGS): Likewise.
28689
28690 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
28691 `<multiboot2.h>' instead of `<multiboot.h>'.
28692 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
28693 (MULTIBOOT_HEADER_MAGIC): New macros.
28694
28695 * loader/multiboot_loader.c (module_version_status): Remove variable.
28696 (find_multi_boot2_header): Remove function.
28697 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
28698 logic. Always check for the Multiboot version we're compiling for.
28699 (grub_cmd_module_loader): Likewise.
28700 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
28701 command instead of `multiboot'.
28702
5d2c52b8
RM
287032010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28704
28705 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
28706 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
28707 all users.
28708
53108d92
RM
287092010-01-07 Robert Millan <rmh.grub@aybabtu.com>
287102010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28711
28712 Fix breakage introduced with previous commit.
28713
28714 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
28715 commands.
28716 * normal/handler.c (read_handler_list): Revert part of previous commit
28717 affecting this file.
28718 * normal/main.c (read_lists): Move read_handler_list() call back to ...
28719 (grub_normal_execute): ... here.
28720
e2e936b2
RM
287212010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28722
28723 Merge prefix-redefinition-fix branch.
28724
28725 * normal/autofs.c (read_fs_list): Make function capable of being
28726 run multiple times, gracefuly replacing the previous data
28727 structures.
28728 * normal/dyncmd.c (read_command_list): Likewise.
28729 * normal/handler.c (read_handler_list): Likewise.
28730 * normal/main.c (read_lists): New function. Calls all the
28731 list reading functions.
28732 (grub_normal_execute): Use read_lists() instead of calling all
28733 list reading functions explicitly. Register read_lists() as a
28734 variable hook attached to ${prefix}.
28735
607a3701
VS
287362010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28737
28738 Merge crypto branch.
28739
28740 * Makefile.in (pkglib_DATA): Add crypto.lst.
28741 (crypto.lst): New target.
28742 * commands/hashsum.c: New file.
28743 * commands/password.c (check_password): Use grub_crypto_memcmp.
28744 * commands/password_pbkdf2.c: New file.
28745 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
28746 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
28747 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
28748 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
28749 -I$(srcdir)/lib/libgcrypt_wrap.
28750 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
28751 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
28752 password_pbkdf2.mod.
28753 (crypto_mod_SOURCES): New variable.
28754 (crypto_mod_CFLAGS): Likewise.
28755 (crypto_mod_LDFLAGS): Likewise.
28756 (hashsum_mod_SOURCES): New variable.
28757 (hashsum_mod_CFLAGS): Likewise.
28758 (hashsum_mod_LDFLAGS): Likewise.
28759 (pbkdf2_mod_SOURCES): New variable.
28760 (pbkdf2_mod_CFLAGS): Likewise.
28761 (pbkdf2_mod_LDFLAGS): Likewise.
28762 (password_pbkdf2_mod_SOURCES): New variable.
28763 (password_pbkdf2_mod_CFLAGS): Likewise.
28764 (password_pbkdf2_mod_LDFLAGS): Likewise.
28765 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
28766 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
28767 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
28768 Include conf/gcry.rmk.
28769 * include/grub/auth.h: Rewritten.
28770 * include/grub/crypto.h: New file.
28771 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
28772 * include/grub/normal.h (read_crypto_list): New prototype.
28773 * lib/crypto.c: New file.
28774 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28775 * lib/pbkdf2.c: Likewise.
28776 * normal/auth.c (grub_auth_strcmp): Removed.
28777 (grub_iswordseparator): Likewise.
28778 (grub_auth_strword): Likewise.
28779 (is_authenticated): Use grub_strword.
28780 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
28781 and grub_strword. Pass entered password to authentication callback.
28782 * normal/crypto.c: New file.
28783 * normal/main.c: Call read_crypto_list.
28784 * util/grub-mkpasswd-pbkdf2.c: New file.
28785 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
28786
42841caa
VS
287872010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
28788
28789 Fix descent and ascent calculation.
28790
28791 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
28792 (options): New option "asce".
28793 (usage): Likewise.
28794 (add_char): Ignore invalid glyphs for descent calculation.
28795 Calculate ascent from actual content.
28796 (print_glyphs): Use 'asce'.
28797 (write_font): Likewise. Allow ascent override.
28798 (main): Handle "asce" option.
28799
e7730de7 288002010-01-06 Carles Pina i Estany <carles@pina.cat>
28801
28802 * kern/err.c: Include `<grub/i18n.h>'.
28803 (grub_print_error): Add full stop. Gettextizze.
28804 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
28805 (grub_bsd_load_elf): Capitalise ELF.
28806 (grub_cmd_freebsd_loadenv): Add `s' in error string.
28807 (grub_cmd_freebsd_module): Likewise.
28808 (grub_cmd_freebsd_module_elf): Likewise.
28809 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
28810
40e3a41f 288112010-01-06 Carles Pina i Estany <carles@pina.cat>
28812
28813 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
28814 * commands/search_file.c (HELP_MESSAGE): New macro.
28815 * commands/search_label.c (HELP_MESSAGE): Likewise.
28816 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
28817 * po/POTFILES: Add `commands/search_file.c',
28818 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
28819 `commands/search.c'.
28820
83507e68
RM
288212010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28822
28823 * config.rpath: Update from Gnulib.
28824
465c787b
YB
288252010-01-05 Yves Blusseau <blusseau@zetam.org>
28826
28827 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
28828
6581dd3a
YB
288292010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
28830
28831 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
28832
3bff18c5
CW
288332010-01-05 Colin Watson <cjwatson@ubuntu.com>
28834
28835 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
28836 arguments to fread so that we get a return value in bytes, rather
28837 than something that will normally be rounded down to 0.
28838 Adjust error handling to avoid producing garbage when size_t is not
28839 the same size as long long.
28840
a1368118
CW
288412010-01-05 Colin Watson <cjwatson@ubuntu.com>
28842
28843 * util/mkisofs/write.c (padblock_write): Check return value of
28844 fread.
28845
7c302978
RM
288462010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28847
28848 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
28849 floppy images now.
28850
28851 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
28852
e33ace06
RM
288532010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28854
28855 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
28856 instead of manual alignment.
28857 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
28858 verbose). Avoid attempts to read past end of the device
28859 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
28860 but GRUB_DISK_CACHE_SIZE may exceed that).
28861
4b856776
RM
288622010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28863
28864 * commands/crc.c (grub_cmd_crc): Abort on read errors.
28865 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
28866 it to upper layer.
28867
52c2d97f
VS
288682010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28869
28870 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
28871 New constant.
28872 (grub_efi_piwg_device_path): New structure
28873 (grub_efi_piwg_device_path_t): New type.
28874 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
28875 (devpath_1): Transform to a structure. All users updated.
28876 (devpath_2): Likewise.
28877 (devpath_3): Likewise.
28878 (devpath_4): Likewise.
28879 (devpath_5): Likewise.
28880
98ff6a54
VS
288812010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28882
28883 * loader/efi/appleloader.c: Restored. Update all users.
28884
3a73dcb6
RM
288852010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28886
28887 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
28888
28889 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
28890 (struct boot_blocklist): Move from here ...
28891 * include/grub/i386/pc/boot.h [ASM_FILE]
28892 (struct grub_boot_blocklist): ... to here. Update all users.
28893 (setup): Only initialize `start' member of `first_block'
28894 structure. Add assert() calls to verify the other members.
28895
28896 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
28897 (generate_image): Fix broken blocklist length initialization.
28898 Add assert() call to verify blocklist `segment' field.
28899
ab0eeb0c
RM
289002010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28901
28902 * loader/efi/appleloader.c: Remove. Update all users.
28903
58bc8bd5
RM
289042010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28905
28906 * boot/i386/pc/boot.S: Update copyright year.
28907 * boot/i386/pc/cdboot.S: Likewise.
28908 * boot/i386/pc/diskboot.S: Likewise.
28909 * boot/i386/pc/lnxboot.S: Likewise.
28910 * boot/i386/pc/pxeboot.S: Likewise.
28911 * bus/pci.c: Likewise.
28912 * commands/cmp.c: Likewise.
28913 * commands/help.c: Likewise.
28914 * commands/hexdump.c: Likewise.
28915 * commands/i386/pc/halt.c: Likewise.
28916 * commands/i386/pc/play.c: Likewise.
28917 * commands/i386/pc/vbeinfo.c: Likewise.
28918 * commands/ls.c: Likewise.
28919 * commands/test.c: Likewise.
28920 * disk/dmraid_nvidia.c: Likewise.
28921 * disk/i386/pc/biosdisk.c: Likewise.
28922 * disk/ieee1275/nand.c: Likewise.
28923 * disk/ieee1275/ofdisk.c: Likewise.
28924 * disk/lvm.c: Likewise.
28925 * disk/raid.c: Likewise.
28926 * disk/raid6_recover.c: Likewise.
28927 * disk/scsi.c: Likewise.
28928 * fs/affs.c: Likewise.
28929 * fs/cpio.c: Likewise.
28930 * fs/ext2.c: Likewise.
28931 * fs/hfs.c: Likewise.
28932 * fs/iso9660.c: Likewise.
28933 * fs/ntfs.c: Likewise.
28934 * fs/sfs.c: Likewise.
28935 * fs/udf.c: Likewise.
28936 * fs/ufs.c: Likewise.
28937 * fs/xfs.c: Likewise.
28938 * gencmdlist.sh: Likewise.
28939 * genmk.rb: Likewise.
28940 * include/grub/disk.h: Likewise.
28941 * include/grub/efi/api.h: Likewise.
28942 * include/grub/efi/efi.h: Likewise.
28943 * include/grub/efi/pe32.h: Likewise.
28944 * include/grub/elf.h: Likewise.
28945 * include/grub/fs.h: Likewise.
28946 * include/grub/i386/at_keyboard.h: Likewise.
28947 * include/grub/i386/pc/memory.h: Likewise.
28948 * include/grub/i386/pc/vbe.h: Likewise.
28949 * include/grub/i386/pci.h: Likewise.
28950 * include/grub/i386/tsc.h: Likewise.
28951 * include/grub/ieee1275/ieee1275.h: Likewise.
28952 * include/grub/ntfs.h: Likewise.
28953 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
28954 * include/grub/sparc64/libgcc.h: Likewise.
28955 * include/grub/symbol.h: Likewise.
28956 * include/grub/types.h: Likewise.
28957 * include/multiboot2.h: Likewise.
28958 * io/gzio.c: Likewise.
28959 * kern/device.c: Likewise.
28960 * kern/disk.c: Likewise.
28961 * kern/efi/efi.c: Likewise.
28962 * kern/efi/mm.c: Likewise.
28963 * kern/elf.c: Likewise.
28964 * kern/file.c: Likewise.
28965 * kern/i386/dl.c: Likewise.
28966 * kern/i386/pc/init.c: Likewise.
28967 * kern/i386/pc/startup.S: Likewise.
28968 * kern/ieee1275/ieee1275.c: Likewise.
28969 * kern/ieee1275/init.c: Likewise.
28970 * kern/main.c: Likewise.
28971 * kern/mm.c: Likewise.
28972 * kern/powerpc/dl.c: Likewise.
28973 * kern/sparc64/dl.c: Likewise.
28974 * kern/x86_64/dl.c: Likewise.
28975 * lib/hexdump.c: Likewise.
28976 * loader/efi/appleloader.c: Likewise.
28977 * loader/i386/ieee1275/linux.c: Likewise.
28978 * loader/i386/pc/chainloader.c: Likewise.
28979 * loader/i386/pc/linux.c: Likewise.
28980 * loader/i386/pc/multiboot2.c: Likewise.
28981 * loader/ieee1275/multiboot2.c: Likewise.
28982 * loader/multiboot2.c: Likewise.
28983 * loader/multiboot_loader.c: Likewise.
28984 * loader/powerpc/ieee1275/linux.c: Likewise.
28985 * normal/completion.c: Likewise.
28986 * normal/menu_entry.c: Likewise.
28987 * partmap/apple.c: Likewise.
28988 * util/grub.d/10_hurd.in: Likewise.
28989 * util/hostfs.c: Likewise.
28990 * video/readers/png.c: Likewise.
28991
e2d70b5c
CW
289922010-01-03 Colin Watson <cjwatson@ubuntu.com>
28993
28994 * include/grub/misc.h (GNUC_PREREQ): New macro.
28995 (ATTRIBUTE_ERROR): New macro.
28996 * include/grub/list.h (grub_bad_type_cast_real): Use
28997 ATTRIBUTE_ERROR.
28998
a173283f 289992010-01-03 Carles Pina i Estany <carles@pina.cat>
29000
29001 * normal/menu_text.c (print_message): Change messages.
29002
7fa7ff74 290032010-01-03 Carles Pina i Estany <carles@pina.cat>
29004
29005 * normal/menu_entry.c (store_completion): Gettextizze.
29006
136d24f6 290072010-01-03 Carles Pina i Estany <carles@pina.cat>
29008
29009 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
29010
f936862e 290112010-01-03 Carles Pina i Estany <carles@pina.cat>
29012
29013 * po/POTFILES: Sort correctly.
29014
29c44ad1 290152010-01-03 Carles Pina i Estany <carles@pina.cat>
29016
29017 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
29018 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
29019 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
29020 full stop.
29021 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
29022 summary. Gettextizze the strings.
29023 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
29024 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
29025 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
29026 full stop.
29027 (GRUB_MOD_INIT): Remove command name from summary.
29028 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
29029 summary.
29030 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
29031 * term/i386/pc/serial.c (options): Add full stops.
29032 (GRUB_MOD_INIT): Remove command name from the summary.
29033
77a79592 290342010-01-03 Carles Pina i Estany <carles@pina.cat>
29035
29036 * commands/acpi.c: Gettextizze help strings and/or options. Include
29037 `grub/i18n.h' if needed.
29038 * commands/blocklist.c: Likewise.
29039 * commands/boot.c: Likewise.
29040 * commands/cat.c: Likewise.
29041 * commands/cmp.c: Likewise.
29042 * commands/configfile.c: Likewise.
29043 * commands/crc.c: Likewise.
29044 * commands/date.c: Likewise.
29045 * commands/echo.c: Likewise.
29046 * commands/efi/fixvideo.c: Likewise.
29047 * commands/efi/loadbios.c: Likewise.
29048 * commands/gptsync.c: Likewise.
29049 * commands/halt.c: Likewise.
29050 * commands/handler.c: Likewise.
29051 * commands/hdparm.c: Likewise.
29052 * commands/hexdump.c: Likewise.
29053 * commands/i386/cpuid.c: Likewise.
29054 * commands/i386/pc/drivemap.c: Likewise.
29055 * commands/i386/pc/halt.c: Likewise.
29056 * commands/i386/pc/pxecmd.c: Likewise.
29057 * commands/i386/pc/vbeinfo.c: Likewise.
29058 * commands/i386/pc/vbetest.c: Likewise.
29059 * commands/ieee1275/suspend.c: Likewise.
29060 * commands/keystatus.c: Likewise.
29061 * commands/loadenv.c: Likewise.
29062 * commands/ls.c: Likewise.
29063 * commands/lsmmap.c: Likewise.
29064 * commands/lspci.c: Likewise.
29065 * commands/memrw.c: Likewise.
29066 * commands/minicmd.c: Likewise.
29067 * commands/parttool.c: Likewise.
29068 * commands/password.c: Likewise.
29069 * commands/probe.c: Likewise.
29070 * commands/read.c: Likewise.
29071 * commands/reboot.c: Likewise.
29072 * commands/search.c: Likewise.
29073 * commands/sleep.c: Likewise.
29074 * commands/test.c: Likewise.
29075 * commands/true.c: Likewise.
29076 * commands/usbtest.c: Likewise.
29077 * commands/videotest.c: Likewise.
29078 * commands/xnu_uuid.c: Likewise.
29079 * disk/loopback.c: Likewise.
29080 * hello/hello.c: Likewise.
29081 * loader/i386/bsd.c: Likewise.
29082 * term/i386/pc/serial.c: Likewise.
29083 * po/POTFILES: Add new files.
29084
da8d5c53
CW
290852010-01-02 Colin Watson <cjwatson@ubuntu.com>
29086
29087 * term/i386/pc/at_keyboard.c
29088 (keyboard_controller_wait_untill_ready): Rename to ...
29089 (keyboard_controller_wait_until_ready): ... this. Update all users.
29090
33937904 290912010-01-01 Carles Pina i Estany <carles@pina.cat>
29092
29093 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
29094 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
29095 string using string width.
29096 * normal/menu_text.c (grub_print_message_indented): Use
29097 grub_print_spaces and not print_spaces.
29098 (print_timeout): Likewise.
29099 (print_spaces): Move to...
29100 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
29101
3fd3b8d8
RM
291022010-01-01 Robert Millan <rmh.grub@aybabtu.com>
29103
29104 Import from Gnulib.
29105
29106 * gnulib/getdelim.c: New file.
29107 * gnulib/getline.c: Likewise.
29108
33433555
VS
291092009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
29110
29111 * include/grub/list.h (grub_assert_fail): Removed.
29112 (grub_bad_type_cast_real): New function.
29113 (grub_bad_type_cast): New macro.
29114 (GRUB_AS_LIST): Use grub_bad_type_cast.
29115 (GRUB_AS_LIST_P): Likewise.
e44721e8 29116 (GRUB_AS_NAMED_LIST): Likewise.
33433555 29117 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 29118 (GRUB_AS_PRIO_LIST): Likewise.
33433555 29119 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 29120 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 29121
f5a51306
VS
291222009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
29123
29124 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
29125 Fix syntax error.
29126
90d1e879
RM
291272009-12-29 Robert Millan <rmh.grub@aybabtu.com>
29128
29129 * configure.ac: Check for TARGET_CFLAGS initialization before we
29130 initialize it ourselves (sigh).
29131 Move a few modifications to TARGET_CFLAGS to be unconditional
29132 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
29133 eh_frame)
29134
29135 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
29136 * term/i386/pc/at_keyboard.c
29137 (keyboard_controller_wait_untill_ready): Likewise.
29138 (keyboard_controller_led): Rename `led_status' paramter to avoid
29139 name conflict.
29140
465b5a81 291412009-12-28 Carles Pina i Estany <carles@pina.cat>
29142
29143 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
29144 quotes.
29145
c181849b
VS
291462009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29147
29148 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
29149
9c8739a4
VS
291502009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29151
29152 * normal/menu_text.c (grub_print_message_indented): Prevent
29153 past-the-end-of-array dereference.
29154
3e74249c
VS
291552009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29156
29157 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
29158 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
29159
64fd18ed 291602009-12-27 Carles Pina i Estany <carles@pina.cat>
29161
29162 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
29163 * normal/main.c (grub_normal_read_line): Remove a space from the
29164 default prompt.
29165
714af9b9 291662009-12-27 Carles Pina i Estany <carles@pina.cat>
29167
29168 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
29169 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29170 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29171 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29172 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29173 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29174 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29175
82f3e412 291762009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 29177
29178 * video/readers/jpeg.c (cmd): Declare.
29179 (grub_cmd_jpegtest): Use `grub_command_t' type.
29180 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29181 Assign to `cmd'.
29182 (GRUB_MOD_FINI): Use `cmd' to unregister.
29183 * video/readers/png.c (cmd): Declare.
29184 (grub_cmd_pngtest): Use `grub_command_t' type.
29185 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29186 Assign to `cmd'.
29187 (GRUB_MOD_FINI): Use `cmd' to unregister.
29188 * video/readers/tga.c (cmd): Declare.
29189 (grub_cmd_tgatest): Use `grub_command_t' type.
29190 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29191 Assign to `cmd'.
29192 (GRUB_MOD_FINI): Use `cmd' to unregister.
29193
82f3e412 291942009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 29195
29196 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
29197 stops.
29198 * kern/corecmd.c (grub_register_core_commands): Likewise.
29199 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
29200 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29201 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
29202 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29203 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29204 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
29205 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29206 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
29207 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29208 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29209 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29210 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29211 * normal/handler.c (insert_handler): Likewise.
29212 * normal/main.c (GRUB_MOD_INIT): Likewise.
29213 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
29214
fdcdbb66 292152009-12-26 Carles Pina i Estany <carles@pina.cat>
29216
29217 * commands/help.c (grub_cmd_help): Print the command name before the
29218 summary.
29219 (GRUB_MOD_INIT): Remove command name from the summary.
29220 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 29221 string as summary.
fdcdbb66 29222 * lib/arg.c (find_long): Print the command name before the summary.
29223 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
29224 summary.
29225 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
29226 * commands/cat.c (GRUB_MOD_INIT): Likewise.
29227 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
29228 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
29229 * commands/crc.c (GRUB_MOD_INIT): Likewise.
29230 * commands/date.c (GRUB_MOD_INIT): Likewise.
29231 * commands/echo.c (GRUB_MOD_INIT): Likewise.
29232 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
29233 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29234 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29235 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
29236 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
29237 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
29238 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
29239 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29240 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
29241 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
29242 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
29243 * commands/ls.c (GRUB_MOD_INIT): Likewise.
29244 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29245 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29246 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29247 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
29248 * commands/password.c (GRUB_MOD_INIT): Likewise.
29249 * commands/probe.c (GRUB_MOD_INIT): Likewise.
29250 * commands/read.c (GRUB_MOD_INIT): Likewise.
29251 * commands/search.c (GRUB_MOD_INIT): Likewise.
29252 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
29253 * commands/test.c (GRUB_MOD_INIT): Likewise.
29254 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
29255 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
29256 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
29257 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
29258 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
29259 * lib/arg.c (GRUB_MOD_INIT): Likewise.
29260 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
29261 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29262 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29263 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29264 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
29265 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
29266 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
29267 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
29268
9c288be2
VS
292692009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29270
29271 Use search command for preliminar UUID search.
29272
29273 * commands/search.c: Split into ...
29274 * commands/search_wrap.c: ...this
29275 * commands/search.c: ...and this.
29276 * commands/search_file.c: New file.
29277 * commands/search_label.c: New file.
29278 * commands/search_uuid.c: New file.
29279 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
29280 Add commands/search_wrap.c, commands/search_file.c,
29281 commands/search_label.c and commands/search_uuid.c.
29282 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
29283 (search_mod_SOURCES): Set to commands/search_wrap.c.
29284 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
29285 search_label.mod.
29286 (search_fs_file_mod_SOURCES): New variable.
29287 (search_fs_file_mod_CFLAGS): Likewise.
29288 (search_fs_file_mod_LDFLAGS): Likewise.
29289 (search_label_mod_SOURCES): Likewise.
29290 (search_label_mod_CFLAGS): Likewise.
29291 (search_label_mod_LDFLAGS): Likewise.
29292 (search_fs_uuid_mod_SOURCES): New variable.
29293 (search_fs_uuid_mod_CFLAGS): Likewise.
29294 (search_fs_uuid_mod_LDFLAGS): Likewise.
29295 (fs_file_mod_SOURCES): Removed.
29296 (fs_file_mod_CFLAGS): Likewise.
29297 (fs_file_mod_LDFLAGS): Likewise.
29298 (fs_uuid_mod_SOURCES): Removed.
29299 (fs_uuid_mod_CFLAGS): Likewise.
29300 (fs_uuid_mod_LDFLAGS): Likewise.
29301 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
29302 Set to util/grub-install.in.
29303 * disk/fs_file.c: Removed.
29304 * disk/fs_uuid.c: Likewise.
29305 * include/grub/search.h: New file.
29306 * util/grub-install.in: Handle sparc64.
29307 Create and use load.cfg.
29308 * util/sparc64/ieee1275/grub-install.in: Removed.
29309
db943399
VS
293102009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29311
29312 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
29313 Ignore return status if CF is cleared.
29314 (grub_biosdisk_get_diskinfo_standard): Likewise.
29315
3fdae612
RM
293162009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29317
29318 * term/i386/pc/at_keyboard.c
29319 (keyboard_controller_wait_untill_ready): New function.
29320 (grub_keyboard_controller_write, grub_keyboard_controller_read)
29321 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
29322 for keyboard polling, rather than duplicate the same loop. This
29323 saves a few bytes in code size.
29324
7ebaa2b4
VS
293252009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29326
29327 Support for (pxe[:server[:gateway]]) syntax and
29328 use environment variable for PXE.
29329
29330 * commands/i386/pc/pxecmd.c (options): Removed.
29331 (print_ip): Removed.
29332 (grub_cmd_pxe): Removed
29333 (grub_cmd_pxe_unload): New function.
29334 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
29335 (grub_pxe_your_ip): Made static.
29336 (grub_pxe_default_server_ip): Likewise.
29337 (grub_pxe_default_gateway_ip): Likewise.
29338 (grub_pxe_blksize): Likewise.
29339 (parse_ip): New function.
29340 (grub_pxe_open): Support server and gateway specification.
29341 (grub_pxe_close): Free disk->data.
29342 (grub_pxefs_open): Use disk->data.
29343 (grub_pxefs_read): Likewise.
29344 (grub_env_write_readonly): New function.
29345 (set_mac_env): Likewise.
29346 (set_env_limn_ro): Likewise.
29347 (parse_dhcp_vendor): Likewise.
29348 (grub_pxe_detect): Set the environment variables.
29349 (set_ip_env): New function.
29350 (write_ip_env): Likewise.
29351 (grub_env_write_pxe_default_server): Likewise.
29352 (grub_env_write_pxe_default_gateway): Likewise.
29353 (grub_env_write_pxe_blocksize): Likewise.
29354 (GRUB_MOD_INIT(pxe)): Set environment variables.
29355 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
29356 (grub_pxe_mac_addr_t): ... this. All users updated.
29357 (grub_pxe_your_ip): Removed.
29358 (grub_pxe_server_ip): Likewise.
29359 (grub_pxe_gateway_ip): Likewise.
29360 (grub_pxe_blksize): Likewise.
29361
ec5f98ab 293622009-12-25 Carles Pina i Estany <carles@pina.cat>
29363
29364 * commands/help.c: Include `<grub/i18n.h>'.
29365 (grub_cmd_help): Gettextizze.
29366 (GRUB_MOD_INIT): Likewise.
29367 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
29368 (GRUB_MOD_INIT): Gettextizze.
29369 * commands/search.c: Include `<grub/i18n.h>'.
29370 (options): Gettextizze.
29371 (GRUB_MOD_INIT): Gettextizze.
29372 * lib/arg.c: Include `<grub/i18n.h>'.
29373 (help_options): Gettextizze.
29374 (find_long): Likewise.
29375 (grub_arg_show_help): Likewise.
29376 * normal/dyncmd.c: Include `<grub/i18n.h>'.
29377 (read_command_list): Gettextizze.
29378 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 29379 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 29380
22815526
RM
293812009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29382
29383 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
29384 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
29385 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
29386 (led_status): New variable.
29387 (keyboard_controller_led): New function.
29388 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
29389 update led status for caps lock, num lock and scroll lock.
29390
0ad46fd7
FZ
293912009-12-25 Felix Zielcke <fzielcke@z-51.de>
29392
29393 * util/hostdisk.c (open_device): Fix a comment.
29394
d0e158c2
RM
293952009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29396
29397 * util/grub-install.in (host_os): New variable.
29398 * util/i386/efi/grub-install.in (host_os): Likewise.
29399
401c0ad6
RM
294002009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29401
29402 * util/mkisofs/write.c (padblock_write): Abort when given an
29403 excedingly large embed image, instead of silently truncating it.
29404
d14d3370
RM
294052009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29406
29407 * include/multiboot.h: Indentation fixes.
29408
eeed10b4
RM
294092009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29410
29411 * include/multiboot.h (struct multiboot_aout_symbol_table)
29412 (struct multiboot_elf_section_header_table): New structure
29413 declarations (stolen from GRUB Legacy).
29414 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
29415 table information.
29416
29417 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
29418 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
29419 type aliases.
29420
681c70ab
RM
294212009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29422
29423 * include/multiboot.h: Make comments src2texi-friendly.
29424
e4d47d8d
RM
294252009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29426
29427 For consistency with [multiboot]/docs/boot.S.
29428
29429 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
29430 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
29431 (MULTIBOOT_MAGIC2): Rename from this ...
29432 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
29433
a0b70bda
RM
294342009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29435
29436 * include/multiboot.h: Remove `<grub/types.h>'.
29437 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
29438 types. Update all users.
29439
61ba42be 294402009-12-25 Carles Pina i Estany <carles@pina.cat>
29441
29442 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
29443 `couldn't' and `can not' by `cannot'.
29444 * commands/i386/pc/drivemap.c: Likewise.
29445 * disk/ata.c: Likewise.
29446 * disk/ieee1275/nand.c: Likewise.
29447 * fs/affs.c: Likewise.
29448 * fs/fat.c: Likewise.
29449 * fs/hfs.c: Likewise.
29450 * fs/hfsplus.c: Likewise.
29451 * fs/iso9660.c: Likewise.
29452 * fs/jfs.c: Likewise.
29453 * fs/minix.c: Likewise.
29454 * fs/reiserfs.c: Likewise.
29455 * fs/sfs.c: Likewise.
29456 * fs/udf.c: Likewise.
29457 * fs/ufs.c: Likewise.
29458 * fs/xfs.c: Likewise.
29459 * loader/powerpc/ieee1275/linux.c: Likewise.
29460 * loader/sparc64/ieee1275/linux.c: Likewise.
29461 * util/grub-probe.c: Likewise.
29462 * util/misc.c: Likewise.
29463
7fd0baee 294642009-12-24 Carles Pina i Estany <carles@pina.cat>
29465
29466 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
29467 grub_errno calls.
29468 * commands/acpi.c: Likewise.
29469 * commands/blocklist.c: Likewise.
29470 * commands/efi/loadbios.c: Likewise.
29471 * commands/i386/pc/drivemap.c: Likewise.
29472 * commands/loadenv.c: Likewise.
29473 * commands/memrw.c: Likewise.
29474 * commands/password.c: Likewise.
29475 * commands/videotest.c: Likewise.
29476 * disk/ata.c: Likewise.
29477 * disk/ata_pthru.c: Likewise.
29478 * disk/dmraid_nvidia.c: Likewise.
29479 * disk/ieee1275/nand.c: Likewise.
29480 * disk/ieee1275/ofdisk.c: Likewise.
29481 * disk/loopback.c: Likewise.
29482 * disk/lvm.c: Likewise.
29483 * disk/mdraid_linux.c: Likewise.
29484 * disk/raid.c: Likewise.
29485 * disk/raid6_recover.c: Likewise.
29486 * disk/scsi.c: Likewise.
29487 * efiemu/main.c: Likewise.
29488 * efiemu/mm.c: Likewise.
29489 * efiemu/pnvram.c: Likewise.
29490 * efiemu/symbols.c: Likewise.
29491 * font/font.c: Likewise.
29492 * fs/cpio.c: Likewise.
29493 * fs/hfsplus.c: Likewise.
29494 * fs/iso9660.c: Likewise.
29495 * fs/jfs.c: Likewise.
29496 * fs/minix.c: Likewise.
29497 * fs/ntfs.c: Likewise.
29498 * fs/ntfscomp.c: Likewise.
29499 * fs/reiserfs.c: Likewise.
29500 * fs/ufs.c: Likewise.
29501 * fs/xfs.c: Likewise.
29502 * gettext/gettext.c: Likewise.
29503 * include/grub/auth.h: Likewise.
29504 * kern/elf.c: Likewise.
29505 * kern/file.c: Likewise.
29506 * kern/ieee1275/init.c: Likewise.
29507 * kern/ieee1275/mmap.c: Likewise.
29508 * kern/ieee1275/openfw.c: Likewise.
29509 * kern/powerpc/dl.c: Likewise.
29510 * kern/sparc64/dl.c: Likewise.
29511 * lib/arg.c: Likewise.
29512 * loader/i386/bsd.c: Likewise.
29513 * loader/i386/bsdXX.c: Likewise.
29514 * loader/i386/efi/linux.c: Likewise.
29515 * loader/i386/efi/xnu.c: Likewise.
29516 * loader/i386/ieee1275/linux.c: Likewise.
29517 * loader/i386/linux.c: Likewise.
29518 * loader/i386/multiboot.c: Likewise.
29519 * loader/i386/pc/linux.c: Likewise.
29520 * loader/i386/pc/multiboot2.c: Likewise.
29521 * loader/i386/xnu.c: Likewise.
29522 * loader/ieee1275/multiboot2.c: Likewise.
29523 * loader/macho.c: Likewise.
29524 * loader/machoXX.c: Likewise.
29525 * loader/multiboot2.c: Likewise.
29526 * loader/multiboot_loader.c: Likewise.
29527 * loader/powerpc/ieee1275/linux.c: Likewise.
29528 * loader/sparc64/ieee1275/linux.c: Likewise.
29529 * loader/xnu.c: Likewise.
29530 * loader/xnu_resume.c: Likewise.
29531 * mmap/i386/pc/mmap.c: Likewise.
29532 * normal/menu_viewer.c: Likewise.
29533 * partmap/acorn.c: Likewise.
29534 * partmap/amiga.c: Likewise.
29535 * partmap/apple.c: Likewise.
29536 * script/lexer.c: Likewise.
29537 * term/gfxterm.c: Likewise.
29538 * term/i386/pc/serial.c: Likewise.
29539 * term/i386/pc/vga.c: Likewise.
29540 * term/ieee1275/ofconsole.c: Likewise.
29541 * term/terminfo.c: Likewise.
29542 * video/bitmap.c: Likewise.
29543 * video/efi_gop.c: Likewise.
29544 * video/efi_uga.c: Likewise.
29545 * video/fb/video_fb.c: Likewise.
29546 * video/i386/pc/vbe.c: Likewise.
29547 * video/readers/tga.c: Likewise.
29548 * video/video.c: Likewise.
29549
0ad46fd7 295502009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
29551
29552 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
29553 * commands/lspci.c: Likewise.
29554 * commands/probe.c: Likewise.
29555 * commands/xnu_uuid.c: Likewise.
29556 * conf/i386-coreboot.rmk: Likewise.
29557 * conf/i386-efi.rmk: Likewise.
29558 * conf/i386-ieee1275.rmk: Likewise.
29559 * conf/i386-pc.rmk: Likewise.
29560 * conf/powerpc-ieee1275.rmk: Likewise.
29561 * conf/sparc64-ieee1275.rmk: Likewise.
29562 * conf/x86_64-efi.rmk: Likewise.
29563 * fs/i386/pc/pxe.c: Likewise.
29564 * gettext/gettext.c: Likewise.
29565 * include/grub/efi/graphics_output.h: Likewise.
29566 * include/grub/i386/pc/memory.h: Likewise.
29567 * kern/env.c: Likewise.
29568 * kern/i386/qemu/startup.S: Likewise.
29569 * lib/i386/pc/biosnum.c: Likewise.
29570 * lib/i386/relocator.c: Likewise.
29571 * lib/i386/relocator_asm.S: Likewise.
29572 * lib/relocator.c: Likewise.
29573 * loader/i386/bsd.c: Likewise.
29574 * loader/i386/multiboot.c: Likewise.
29575 * loader/i386/pc/chainloader.c: Likewise.
29576 * loader/i386/xnu.c: Likewise.
29577 * loader/xnu.c: Likewise.
29578 * normal/main.c: Likewise.
29579 * normal/menu_text.c: Likewise.
29580 * util/getroot.c: Likewise.
29581 * util/grub-mkconfig_lib.in: Likewise.
29582 * util/grub.d/00_header.in: Likewise.
29583 * util/i386/pc/grub-mkimage.c: Likewise.
29584 * util/mkisofs/eltorito.c: Likewise.
29585 * util/mkisofs/exclude.h: Likewise.
29586 * util/mkisofs/hash.c: Likewise.
29587 * util/mkisofs/iso9660.h: Likewise.
29588 * util/mkisofs/joliet.c: Likewise.
29589 * util/mkisofs/mkisofs.c: Likewise.
29590 * util/mkisofs/mkisofs.h: Likewise.
29591 * util/mkisofs/multi.c: Likewise.
29592 * util/mkisofs/name.c: Likewise.
29593 * util/mkisofs/rock.c: Likewise.
29594 * util/mkisofs/tree.c: Likewise.
29595 * util/mkisofs/write.c: Likewise.
29596 * video/efi_gop.c: Likewise.
29597
009ec743
VS
295982009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
29599
29600 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
29601 size counting.
29602
0ad46fd7 296032009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
29604
29605 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
29606 * genmk.rb (class SCRIPT): Modify the target file instead of source.
29607
d3d30ea0
VS
296082009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29609
29610 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
29611 (GRUB_MOD_INIT(memrw)): Update help line.
29612
a34f5c70
VS
296132009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29614
29615 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
29616 Use grub_extcmd_t. All users updated.
29617 (options): New variable.
29618 (grub_cmd_read): Restructure for readability. Support "-v" option.
29619 (grub_cmd_write): Restructure for readability.
29620
0ad46fd7 296212009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
29622
29623 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
29624
0ad46fd7 296252009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
29626
29627 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
29628 with the actual contents of the correspondending make variable.
29629 * util/grub-mkrescue.in (pkglib_DATA): New variable.
29630 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
29631 specifying `*.lst' and `efiemu??.o'
29632
0ad46fd7 296332009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
29634
29635 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
29636 after function name.
29637 Noticed by Rene Engelhard <rene@debian.org>.
29638
dc77a799
VS
296392009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29640
29641 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
29642 (options): New variable.
29643 (iospace): Likewise.
29644 (grub_lspci_iter): List IO spaces if "-i" was given.
29645 (grub_cmd_lspci): Parse options.
29646 (GRUB_MOD_INIT(lspci)): Use extcmd.
29647 (GRUB_MOD_FINI(lspci)): Likewise.
29648
0ad46fd7 296492009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
29650
29651 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
29652 `function' keyword.
29653 Patch by Tony Mancill <tmancill@debian.org>.
29654
b5d5993b
VS
296552009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29656
29657 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
29658 (grub_uhci_portstatus): Likewise.
29659 (grub_uhci_portstatus): Add necessary delay.
11d18281 29660 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 29661
941903f2 296622009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 29663
941903f2 29664 * commands/acpi.c (options): Fix capitalizations and/or full stops.
29665 (GRUB_MOD_INIT): Likewise.
29666 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 29667 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
29668 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 29669 * commands/efi/loadbios.c (enable_rom_area): Likewise.
29670 (enable_rom_area): Likewise.
29671 (GRUB_MOD_INIT): Likewise.
29672 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29673 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
29674 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29675 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
29676 * commands/hexdump.c (options): Likewise.
29677 * commands/i386/cpuid.c (options): Likewise.
29678 (GRUB_MOD_INIT): Likewise.
29679 * commands/i386/pc/drivemap.c (options): Likewise.
29680 (GRUB_MOD_INIT): Likewise.
29681 * commands/i386/pc/halt (options): Likewise.
29682 (GRUB_MOD_INIT): Likewise.
29683 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29684 * commands/i386/pc/pxecmd.c (options): Likewise.
29685 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
29686 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
29687 * commands/keystatus.c (options): Likewise.
29688 (GRUB_MOD_INIT): Likewise.
29689 * commands/loadenv.c (options): Likewise.
29690 * commands/ls.c (options): Likewise.
29691 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29692 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29693 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29694 * commands/parttool.c (helpmsg): Likewise.
29695 * commands/probe.c (options): Likewise.
29696 * commands/read.c (GRUB_MOD_INIT): Likewise.
29697 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
29698 * commands/search.c (options): Likewise.
29699 * commands/sleep.c (options): Likewise.
29700 * commands/test.c (GRUB_MOD_INIT): Likewise.
29701 * commands/true.c (GRUB_MOD_INIT): Likewise.
29702 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
29703 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
29704 * lib/arg.c (help_options): Likewise.
e9bbb4e7 29705 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
29706 `$(XGETTEXT)'.
98a50553 29707 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 29708
0ad46fd7 297092009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 29710
ef3c2c3a 29711 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
29712 instead of specifying them explicit.
29713
7922f68b
RM
297142009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29715
29716 * NEWS: Add grub-probe support for GNU/Hurd.
29717
537ce47f
RM
297182009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29719
29720 * NEWS: gettext was added after 1.97.
29721
9b214e3a
RM
297222009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29723
29724 * util/mkisofs/msdos_partition.h: New file (based on
29725 include/grub/msdos_partition.h).
29726 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
29727 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
29728 (ld_options, main): Recognize --protective-msdos-label.
29729 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
29730 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
29731 (padblock_write): If `use_protective_msdos_label' is set, patch a
29732 protective DOS-style label in the output image.
29733
29734 * util/grub-mkrescue.in: Use --protective-msdos-label.
29735
e9309813
RM
297362009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29737
29738 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
29739 boot.
29740
0ae56929
RM
297412009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29742
29743 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
29744 variables.
29745 (ld_options, main): Recognize `--embedded-boot'.
29746 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
29747 declarations.
29748 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
29749 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
29750 (padblock_write): Likewise. Rewrite to support embedded boot image.
29751
29752 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
29753 for BIOS-based disk boot instead of only ElTorito.
29754
b15937b1
RM
297552009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29756
29757 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
29758 build (not needed for bootstrap).
29759
52cc3ce0
RM
297602009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29761
29762 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
29763 from i386-pc build (not needed for bootstrap).
29764 Rewrite a pair of strings.
29765
36f5ff04
RM
297662009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29767
29768 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
29769
973c6c85 297702009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
29771
29772 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
29773
05d21547
AB
297742009-12-21 Andreas Born <futur.andy@googlemail.com>
29775
29776 * kern/env.c (grub_env_context_open): Mark exported variable for
29777 reexport.
29778
0175d51f
AB
297792009-12-21 Andreas Born <futur.andy@googlemail.com>
29780
29781 * kern/env.c (grub_env_export): Create nonexistent variables before
29782 exporting.
29783
7f39d92f 297842009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 29785
7f39d92f 29786 * include/grub/auth.h: Include `<grub/i18n.h>'.
29787 (GRUB_GET_PASSWORD): Gettextizze string.
29788 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
29789 menu_text.c.
29790 (grub_utf8_to_ucs4_alloc): Fix indentation.
29791 (grub_print_ucs4): Likewise.
29792 (grub_getstringwidth): Likewise.
29793 (print_message_indented): New declaration.
29794 * normal/auth.c: Include `<grub/i18n.h>'.
29795 (grub_auth_check_authentication): Gettexttize string.
29796 * normal/cmdline.c: Include `<grub/i18n.h>'.
29797 (grub_cmdline_get): Gettextizze.
29798 * normal/color.c: Include `<grub/i18n.h>'.
29799 (grub_parse_color_name_pair): Gettexttize strings.
29800 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
29801 string (use `print_message_indented').
29802 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
29803 `include/grub/normal.h'.
29804 (print_message_indented): Renamed to ...
29805 (grub_print_message_indented): ... this. Remove `static' qualifer (now
29806 used in normal/main.c).
29807 (print_message): Use `grub_print_message_indented' instead of
29808 `print_message_indented'.
29809 (print_timeout): Likewise.
29810 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
29811 (grub_normal_print_device_info): Gettexttize strings.
29812 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
29813
3041d898
VS
298142009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29815
29816 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
29817 of arguments. Return number of tokens and not arguments. All users
29818 updated.
29819
de15bf8e
VS
298202009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29821
29822 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
29823 non-MSDOS paritions.
29824
e0a6ca52
VS
298252009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
29826
29827 * include/grub/types.h (UNUSED): Removed since it conflicts with
29828 NetBSD headers. All users changed to direct __attribute__ ((unused)).
29829 Reported by Grégoire Sutre.
29830
b99518d1 298312009-12-19 Carles Pina i Estany <carles@pina.cat>
29832
29833 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
29834 (grub_print_ucs4_alloc): Likewise.
29835 (grub_getstringwidth): Likewise.
29836 * normal/main.c (grub_normal_init_page): Gettextize version string.
29837 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
29838 (getstringwidth): Renamed to ...
29839 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
29840 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
29841 (grub_print_ucs4): Remove `static' qualifer (now used in
29842 normal/main.c).
29843 * po/POTFILES: Add normal/main.c.
29844
bfd5e52b 298452009-12-19 Carles Pina i Estany <carles@pina.cat>
29846
29847 * normal/menu_text.c (STANDARD_MARGIN): New macro.
29848 (print_message_indented): Add `margin_left' and `margin_right'
29849 parameters.
29850 (print_message): Update `print_message_indented' calls. Adds '\n' to the
29851 strings.
29852 (print_timeout): Use `print_message_indented' to print the message.
29853 Deletes `second_stage' parameter.
29854 (run_menu): Update `print_timeout' calls.
29855
5a1ad2b9
VS
298562009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29857
29858 Fix console palette on OpenFirmware.
29859
29860 * term/ieee1275/ofconsole.c (MAX): Removed.
29861 (colors): Redone based on VGA palette.
29862 (grub_ofconsole_setcolor): Discard brightness bit since only 8
29863 colors are supported.
29864 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
29865
b045f00a
VS
298662009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29867
29868 Fix potential EfiEmu double prepare.
29869
29870 * efiemu/main.c (prepared): New variable
29871 (grub_efiemu_unload): Set prepare to '0'.
29872 (grub_efiemu_prepare): Return if already prepared. Set prepared.
29873
29874 set_virtual_address_map support.
29875
29876 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
29877 prototype.
29878 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
29879 prototype.
29880 (grub_efiemu_crc32): Likewise.
29881 (grub_efiemu_crc64): Likewise.
29882 (grub_efiemu_set_virtual_address_map): Likewise.
29883 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
29884 New definition.
29885 (grub_autoefi_set_virtual_address_map): Likewise.
29886 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
29887 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
29888 Restructure flow to accomodate it.
29889 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
29890 (grub_efiemu_crc): Recompute CRC32.
29891 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
29892 (efiemu_ptv_relocated): ... this. Made global. All users updated.
29893 * efiemu/symbols.c (relocated_handle): New variable.
29894 (grub_efiemu_free_syms): Free relocated_handle.
29895 (grub_efiemu_alloc_syms): Allocate relocated_handle.
29896 (grub_efiemu_write_sym_markers): New function.
29897 (grub_efiemu_set_virtual_address_map): Likewise.
29898
29899 Newer XNU parameters.
29900
29901 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
29902 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
29903 (grub_xnu_fill_devicetree): New prototype.
29904 (grub_xnu_heap_real_start): New variable.
29905 * loader/xnu.c (get_name_ptr): New function.
29906 (grub_xnu_load_driver): Fill namelen and name.
29907
29908 64-bit xnu support.
29909
29910 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
29911 and 'loader/macho64.c'.
29912 * conf/i386-pc.rmk: Likewise.
29913 * conf/x86_64-efi.rmk: Likewise.
29914 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
29915 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
29916 * include/grub/macho.h (grub_macho_segment64): New structure.
29917 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
29918 (grub_macho_size32): ... to this.
29919 (grub_macho32_get_entry_point): Renamed from ...
29920 (grub_macho_get_entry_point32): ... to this.
29921 (grub_macho_contains_macho64): New prototype.
29922 (grub_macho_size64): Likewise.
29923 (grub_macho_get_entry_point64): Likewise.
29924 (grub_macho32_load): Renamed from ...
29925 (grub_macho_load32): ... to this.
29926 (grub_macho32_filesize): Renamed from ...
29927 (grub_macho_filesize32): ... to this.
29928 (grub_macho32_readfile): Renamed from ...
29929 (grub_macho_readfile32): ... to this.
29930 (grub_macho_filesize64): New prototype.
29931 (grub_macho_readfile64): Likewise.
29932 (grub_macho_parse32): Likewise.
29933 (grub_macho_parse64): Likewise.
29934 * loader/macho.c: Split into ...
29935 * loader/machoXX.c: ... and this. Replace 32 with XX.
29936 * loader/macho32.c: New file.
29937 * loader/macho64.c: Likewise.
29938 * loader/xnu.c (grub_xnu_is_64bit): New variable.
29939 (grub_cmd_xnu_kernel): Make 32-bit only.
29940 (grub_cmd_xnu_kernel64): New function.
29941 (grub_xnu_load_driver): Support Mach-O 64.
29942 (grub_cmd_xnu_mkext): Likewise.
29943 * util/grub.d/30_os-prober.in (osx_entry): New function.
29944 Generate entries for 64-bit boot too.
29945
29946 Eliminate ad-hoc tree format in XNU and EfiEmu.
29947
29948 * efiemu/main.c (grub_efiemu_prepare): Update comment.
29949 * efiemu/pnvram.c: Rewritten to use environment variables.
29950 All users updated.
29951
29952 Inline utf16_to_utf8.
29953
29954 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
29955 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
29956 All users updated.
29957 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
29958
29959 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
29960 * commands/usbtest.c (grub_usb_get_string): ... move here.
29961 (usb_print_str): Fix error handling.
29962 * include/grub/usb.h (grub_usb_get_string): Remove.
29963
29964 UTF-8 to UTF-16 transformation.
29965
29966 * conf/common.rmk (pkglib_MODULES): Add charset.mod
29967 (charset_mod_SOURCES): New variable.
29968 (charset_mod_CFLAGS): Likewise.
29969 (charset_mod_LDFLAGS): Likewise.
29970 * include/grub/utf.h: New file.
29971 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
29972
29973 Support for device properties.
29974
29975 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
29976 (grub_xnu_devprop_device_header): Likewise.
29977 (grub_xnu_devprop_device_descriptor): Likewise.
29978 (grub_xnu_devprop_add_device): New prototype.
29979 (grub_xnu_devprop_remove_device): Likewise.
29980 (grub_xnu_devprop_remove_property): Likewise.
29981 (grub_xnu_devprop_add_property_utf8): Likewise.
29982 (grub_xnu_devprop_add_property_utf16): Likewise.
29983 (grub_cpu_xnu_init): Likewise.
29984 (grub_cpu_xnu_fini): Likewise.
29985 (grub_cpu_xnu_unload): Likewise.
29986 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
29987 (property_descriptor): Likewise.
29988 (devices): New variable.
29989 (grub_xnu_devprop_remove_property): New function.
29990 (grub_xnu_devprop_add_device): Likewise.
29991 (grub_xnu_devprop_remove_device): Likewise.
29992 (grub_xnu_devprop_add_property): Likewise.
29993 (grub_xnu_devprop_add_property_utf8): Likewise.
29994 (grub_xnu_devprop_add_property_utf16): Likewise.
29995 (hextoval): Likewise.
29996 (grub_cpu_xnu_fill_devprop): Likewise.
29997 (grub_cmd_devprop_load): Likewise.
29998 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
29999 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
30000 (cmd_devprop_load): New variable.
30001 (grub_cpu_xnu_init): New function.
30002 (grub_cpu_xnu_fini): Likewise.
30003 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
30004 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
30005 (grub_cmd_xnu_devtree): Likewise.
30006 (hextoval): New function.
30007 (unescape): Likewise.
30008 (grub_xnu_fill_devicetree): Likewise.
30009
30010 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
30011 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
30012
0945f181
VS
300132009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30014
30015 Workaround for broken ATI VBE.
30016
30017 * video/i386/pc/vbe.c (last_set_mode): New variable.
30018 (grub_vbe_set_video_mode): Set 'last_set_mode'.
30019 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
30020 (grub_video_vbe_setup): Don't check for reserved flag.
30021
0ad46fd7 300222009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
30023
30024 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
30025 the `find' command.
30026
c179ebe4
VS
300272009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
30028
30029 UUID support for HFS.
30030
30031 * fs/hfs.c (grub_hfs_uuid): New function.
30032 (grub_hfs_fs): New value .uuid.
30033 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
30034
0ad46fd7 300352009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
30036
30037 Fix a segfault with parsing unknown long options.
30038
30039 * util/grub-mkrelpath.c (options): Zero terminate it.
30040
c4a3e41a
CPE
300412009-12-13 Carles Pina i Estany <carles@pina.cat>
30042
30043 * include/grub/misc.h (grub_puts): New declaration.
30044 (grub_puts_): Likewise.
a22008a6 30045 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
30046 (grub_puts_): Likewise.
30047
2e8a7602
RM
300482009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30049
30050 * util/grub-probe.c (probe): Improve error message.
30051
b50b77b9
RM
300522009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30053
30054 * loader/i386/multiboot_elfxx.c
30055 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
30056 initialization.
30057
300582009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30059
30060 Relocator framework
30061
30062 * loader/i386/xnu_helper.S: Removed. All users updated.
30063 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
30064 (relocator_mod_SOURCES): New variable.
30065 (relocator_mod_CFLAGS): Likewise.
30066 (relocator_mod_LDFLAGS): Likewise.
30067 (relocator_mod_ASFLAGS): Likewise.
30068 * conf/x86_64.rmk: Likewise.
30069 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
30070 (grub_multiboot_payload_entry_offset): Likewise.
30071 (grub_multiboot_forward_relocator): Likewise.
30072 (grub_multiboot_forward_relocator_end): Likewise.
30073 (grub_multiboot_backward_relocator): Likewise.
30074 (grub_multiboot_backward_relocator_end): Likewise.
30075 (grub_multiboot_payload_eip): New variable.
30076 (grub_multiboot_payload_orig): Likewise.
30077 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
30078 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
30079 * include/grub/i386/memory.h
30080 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
30081 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
30082 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
30083 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
30084 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
30085 * include/grub/i386/relocator.h: New file.
30086 * include/grub/x86_64/relocator.h: Likewise.
30087 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
30088 (XNU_RELOCATOR): New macro.
30089 (grub_xnu_launcher_start): Remove.
30090 (grub_xnu_launcher_end): Likewise.
30091 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
30092 (grub_xnu_heap_real_start): Remove.
30093 (grub_xnu_heap_start): Change to void *. All users updated.
30094 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
30095 * lib/i386/relocator.c: New file.
30096 * lib/i386/relocator_asm.S: Likewise.
30097 * lib/i386/relocator_backward.S: Likewise.
30098 * lib/mips/relocator.c: Likewise.
30099 * lib/mips/relocator_asm.S: Likewise.
30100 * lib/relocator.c: Likewise.
30101 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
30102 (entry): Removed.
30103 (playground): Likewise.
30104 (grub_multiboot_payload_orig): New variable.
30105 (grub_multiboot_payload_dest): Likewise.
30106 (grub_multiboot_payload_size): Likewise.
30107 (grub_multiboot_payload_eip): Likewise.
30108 (grub_multiboot_payload_esp): Likewise.
30109 (grub_multiboot_boot): Use grub_relocator32_boot.
30110 (grub_multiboot_unload): Free relocators.
30111 (grub_multiboot): Setup stack. Use relocators.
30112 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
30113 (grub_multiboot_load_elfXX): Use relocators.
30114 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
30115 (grub_multiboot_payload_size): Likewise.
30116 (grub_multiboot_payload_dest): Likewise.
30117 (grub_multiboot_payload_entry_offset): Likewise.
30118 (grub_multiboot_forward_relocator): Likewise.
30119 (grub_multiboot_backward_relocator): Likewise.
30120 (grub_multiboot_real_boot): Likewise.
30121 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
30122 (grub_xnu_entry_point): Likewise.
30123 (grub_xnu_arg1): Likewise.
30124 (grub_xnu_stack): Likewise.
30125 (grub_xnu_launch): Removed.
30126 (grub_xnu_boot_resume): New function.
30127 (grub_xnu_boot): Use relocators.
30128 * loader/i386/xnu_helper.S: Removed.
30129 * loader/xnu.c (grub_xnu_heap_start): New variable.
30130 (grub_xnu_heap_size): Likewise.
30131 (grub_xnu_heap_malloc): Use relocators.
30132 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
30133
29eb90c6
VS
301342009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30135
30136 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
30137 anything.
30138
31027430
CPE
301392009-12-13 Carles Pina i Estany <carles@pina.cat>
30140
30141 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
30142 GRUB_ERR_NONE before calling grub_env_set.
30143
dc0c71d9
RM
301442009-12-12 Robert Millan <rmh@aybabtu.com>
30145
30146 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
30147 * genmk.rb (video): New variable.
30148 (CLEANFILES, VIDEOFILES): Add #{video}.
30149 (#{video}): New target rule.
30150 * genvideolist.sh: New file.
30151 * Makefile.in (pkglib_DATA): Add video.lst.
30152 (video.lst): New target rule.
30153 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
30154 `video.lst'.
30155 * util/grub.d/30_os-prober.in: Replace `vbe' with
30156 ${GRUB_VIDEO_BACKEND}.
30157
2a4bfcf0
RM
301582009-12-11 Robert Millan <rmh.grub@aybabtu.com>
30159
30160 * THANKS: Add David Miller.
30161
2a3aa4d5
RM
301622009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
30163
30164 libpciaccess support.
30165
30166 * Makefile.in (LIBPCIACCESS): New variable.
30167 (enable_grub_emu_pci): Likewise.
30168 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
30169 util/pci.c and commands/lspci.c.
30170 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
30171 * configure.ac (grub-emu-pci): New option.
30172 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
30173 (grub_pci_device_unmap_range): Likewise.
30174 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
30175 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
30176 (grub_pci_address_t) [!GRUB_UTIL]: New type.
30177 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
30178 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
30179 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
30180 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
30181 * include/grub/pciutils.h: New file.
30182 * util/pci.c: Likewise.
30183
0ad46fd7 301842009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
30185
30186 * util/misc.c: Don't include <errno.h> twice.
30187
0ad46fd7 301882009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
30189
30190 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
30191 name in an error message.
30192 (grub_biosdisk_rw): Likewise.
30193
2e59983c
VS
301942009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30195
30196 Eliminate NTFS 4Gib barrier.
30197
30198 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
30199 (read_run_data): Likewise.
30200 (grub_ntfs_read_run_list): Likewise.
30201 (grub_ntfs_read_block): Likewise.
30202 (grub_ntfs_iterate_dir): Likewise.
30203 (read_mft): Likewise.
30204 (read_data): Likewise.
30205 Use COM_LOG_LEN.
30206 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
30207 to avoid 64-bit division
30208 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
30209 (grub_ntfs_rlst): Use grub_disk_addr_t.
30210
71ee178a
VS
302112009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30212
30213 Eliminate grub-fstest 4Gib barrier.
30214
30215 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
30216 (read_file): Fix error reporting.
30217
2520d4b8
VS
302182009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30219
30220 Eliminate hexdump 4Gib barrier.
30221
30222 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
30223 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
30224
e1f27065
VS
302252009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30226
30227 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
30228 Fixes amarsh bug.
30229
1a0f7f45
RM
302302009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
30231
30232 Remove miscellaneous files in distclean target.
30233
30234 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
30235
c631d9fb
CW
302362009-12-09 Colin Watson <cjwatson@ubuntu.com>
30237
30238 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
30239 if they're already set. This resolves the conflict between my
30240 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
30241 fixing the --grub-probe option again.
30242 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
30243 change on 2009-10-06, so that we now once again source
30244 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
30245
7c7b6106
RM
302462009-12-08 Robert Millan <rmh.grub@aybabtu.com>
30247
30248 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
30249 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
30250 `util/devicemap.c'.
30251
e3069ec1
CPE
302522009-12-08 Carles Pina i Estany <carles@pina.cat>
30253
30254 * include/grub/misc.h (grub_printf_): New declaration.
30255 * kern/misc.c (grub_printf_): New definition.
30256 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
30257 instead of `grub_printf' and `_'.
30258 * normal/menu_entry.c (store_completion): Likewise.
30259 (run): Likewise.
30260 (grub_menu_entry_run): Likewise.
30261 * normal/menu_text.c (grub_wait_after_message): Likewise.
30262 (notify_booting): Likewise.
30263 (notify_fallback): Likewise.
30264 (notify_execution_failure): Likewise.
30265
d6ceebf1
CW
302662009-12-07 Colin Watson <cjwatson@ubuntu.com>
30267
30268 * configure.ac: Check for vasprintf.
30269 * util/misc.c (asprintf): Move allocation from here ...
30270 (vasprintf): ... to here. New function.
30271 (xasprintf): New function.
30272 * include/grub/util/misc.h (vasprintf, xasprintf): Add
30273 prototypes.
30274 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
30275 * util/grub-mkfont.c (write_font): Likewise.
30276 * util/grub-probe.c (probe): Likewise.
30277 * util/hostdisk.c (make_device_name): Likewise.
30278
de6daa8b
DM
302792009-12-06 David S. Miller <davem@sunset.davemloft.net>
30280
30281 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
30282 anything even prefixed with 'cdrom' as a cdrom.
30283
0ad46fd7 302842009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
30285
30286 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
30287 mount points.
30288
98d3dc02
CPE
302892009-12-05 Carles Pina i Estany <carles@pina.cat>
30290
30291 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
30292 grub_gettext_msg_list.
30293 (grub_gettext_gettranslation_from_position): Return const char *
30294 and not char *.
a2c1332b 30295 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
30296 returns from the list if existing there.
30297 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
30298 (grub_gettext_delete_list): Delete the list.
30299 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
30300 lang environment variable is changed.
30301 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
30302
b283f108
VS
303032009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30304
30305 Rename kernel.mod to kernel.img.
30306
30307 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
30308 (kernel_mod_EXPORTS): Rename to ...
30309 (kernel_img_EXPORTS): ... this.
30310 (kernel_mod_SOURCES): Rename to ...
30311 (kernel_img_SOURCES): ... this.
30312 (kernel_mod_HEADERS): Rename to ...
30313 (kernel_img_HEADERS): ... this. All users updated.
30314 (kernel_mod_CFLAGS): Rename to ...
30315 (kernel_img_CFLAGS): ... this.
30316 (kernel_mod_ASFLAGS): Rename to ...
30317 (kernel_img_ASFLAGS): ... this.
30318 (kernel_mod_LDFLAGS): Rename to ...
30319 (kernel_img_LDFLAGS): ... this.
30320 * conf/x86_64-efi.rmk: Likewise.
30321 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
30322 (read_kernel_image): ... this. All users updated.
30323 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
30324
69055f8a
CPE
303252009-12-05 Carles Pina i Estany <carles@pina.cat>
30326
30327 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
30328 (print_spaces): New function.
30329 (grub_print_ucs4): New function.
30330 (getstringwidth): New function.
30331 (print_message_indented): New function.
30332 (print_message): Gettexttize strings using print_message_indented.
30333 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
30334 width.
30335 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 30336 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
30337 Gettextize.
30338 * normal/menu_entry.c (store_completion): Cleanup the gettextized
30339 string.
30340 (run): Likewise.
30341 (grub_menu_entry_run): Likewise.
30342 * PO/POTFILES: Add normal/menu_entry.c.
30343
f616f51c
VS
303442009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30345
30346 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
30347
57bbe3be
CPE
303482009-12-05 Carles Pina i Estany <carles@pina.cat>
30349
30350 * util/grub-install.in: Install gettext .mo files.
30351 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
30352
013d67a1
CPE
303532009-12-05 Carles Pina i Estany <carles@pina.cat>
30354
30355 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
30356 grub_dprintf.
30357
fb954db0
RM
303582009-12-05 Robert Millan <rmh.grub@aybabtu.com>
30359
30360 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
30361 non-firmware-dependant one in realmode.S takes precedence.
30362
6b8474f8
RM
303632009-12-04 Robert Millan <rmh.grub@aybabtu.com>
30364
30365 * commands/halt.c: Replace misc arch-specific headers with
30366 `<grub/misc.h>'.
30367 * commands/reboot.c: Likewise.
30368 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
30369 `<grub/misc.h>'.
30370 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
30371 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
30372 (kernel_img_SOURCES): ... to here.
30373
30374 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
30375 * include/grub/i386/pc/init.h: Likewise.
30376 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
30377 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30378
30379 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
30380
30381 * include/grub/i386/halt.h: Remove.
30382 * include/grub/i386/reboot.h: Likewise.
30383
30384 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
30385
4b2e6ca2
DM
303862009-12-03 David S. Miller <davem@sunset.davemloft.net>
30387
30388 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
30389 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
30390 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
30391 "progname.h"
30392 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30393 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30394 (usage): Add missing comma in printf.
30395
5239348f
RM
303962009-12-02 Robert Millan <rmh.grub@aybabtu.com>
30397
30398 Use the same reboot approach on i386 coreboot and qemu as we do on
30399 BIOS.
30400
30401 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
30402 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
30403 * kern/i386/reboot.c: Remove.
30404 * include/grub/i386/reboot.h (grub_reboot): Export function.
30405 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
30406 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
30407 0xf000:0xfff0 instead of 0xffff:0x0000.
30408 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
30409 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
30410
ef34cbd4
RM
304112009-11-30 Robert Millan <rmh.grub@aybabtu.com>
30412
30413 Fix $srcdir != $objdir build.
30414
30415 * Makefile.in (po/%.po): Rewrite as ...
30416 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
30417
dc9837ea
ST
304182009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
30419
30420 Fix GNU/Hurd grub-install crash.
30421 * util/grub-probe.c (probe): Try to access `path' only when it is not
30422 NULL.
30423
2f857f98
VS
304242009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30425
30426 Correct module naming.
30427
30428 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30429 (GRUB_MOD_INIT(efi_uga)): ... to this
30430 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30431 (GRUB_MOD_FINI(efi_uga)): ... to this
30432 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30433 (GRUB_MOD_INIT(efi_gop)): ... to this
30434 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30435 (GRUB_MOD_FINI(efi_gop)): ... to this
30436
c5448046
RM
304372009-11-28 Robert Millan <rmh.grub@aybabtu.com>
30438
30439 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
30440 translatable.
30441 (usage): Translate `arg' strings using gettext().
30442 Thanks to Jordi Mallach for the suggestion.
30443
c85184ad
VS
304442009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30445
30446 GOP support. Based on patch from Bean
30447 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30448
30449 * video/efi_gop.c: New file.
30450 * include/grub/efi/graphics_output.h: Likewise.
30451 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
30452 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30453 variables.
30454 * conf/x86_64-efi.rmk: Likewise.
30455
8a4c48d8
VS
304562009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30457
30458 Rename efi_fb to efi_uga.
30459
30460 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30461 'efi_uga.mod'.
30462 (efi_fb_mod_SOURCES): Rename this ...
30463 (efi_uga_mod_SOURCES): ... to this.
30464 (efi_fb_mod_CFLAGS): Rename this ...
30465 (efi_uga_mod_CFLAGS): ... to this.
30466 (efi_fb_mod_LDFLAGS): Rename this ...
30467 (efi_uga_mod_LDFLAGS): ... to this.
30468 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30469 'efi_uga.mod'.
30470 (efi_fb_mod_SOURCES): Rename this ...
30471 (efi_uga_mod_SOURCES): ... to this.
30472 (efi_fb_mod_CFLAGS): Rename this ...
30473 (efi_uga_mod_CFLAGS): ... to this.
30474 (efi_fb_mod_LDFLAGS): Rename this ...
30475 (efi_uga_mod_LDFLAGS): ... to this.
30476 * video/efi_fb.c: Move this ...
30477 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
30478
fb6c1a7b
RM
304792009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30480
30481 * po/README: New file. Explain our PO file workflow.
30482
3bc7896c
RM
304832009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30484
30485 * po/ChangeLog: Remove. Move relevant entries back to ...
30486 * ChangeLog: ... here.
30487 * po/ca.po: Remove (now handled by TLP).
30488 * po/id.po: Likewise.
30489 * po/zh_CN.po: Likewise.
30490 * Makefile.in (LINGUAS): Initialize in a way that supports
30491 empty set.
30492
9ed4841d
RM
304932009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30494
30495 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
30496 reliing on po/LINGUAS.
30497 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
30498 (po/%.po): ... this.
30499
0ad46fd7 305002009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
30501
30502 * util/i386/efi/grub-mkimage.c: Include "progname.h".
30503 (main): Use `program_name' instead of nonexistent `progname'.
30504
e30dd392
FZ
305052009-11-26 Felix Zielcke <fzielcke@z-51.de>
30506
30507 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30508 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
30509
7656de4f
RM
305102009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30511
30512 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
30513 commit.
30514 * conf/i386-efi.rmk: Likewise.
30515 * conf/i386-ieee1275.rmk: Likewise.
30516 * conf/powerpc-ieee1275.rmk: Likewise.
30517 * conf/sparc64-ieee1275.rmk: Likewise.
30518 * conf/x86_64-efi.rmk: Likewise.
30519
db77c4d4
FZ
305202009-11-26 Felix Zielcke <fzielcke@z-51.de>
30521
30522 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
30523
a755bb04
FZ
305242009-11-26 Felix Zielcke <fzielcke@z-51.de>
30525
30526 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
30527
8a4c07fd
RM
305282009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30529
30530 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
30531 (grub_mkdevicemap_SOURCES): New variable.
30532 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
30533 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
30534 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
30535 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
30536 (grub_mkdevicemap_SOURCES): Remove.
30537 * conf/i386-efi.rmk: Likewise.
30538 * conf/i386-ieee1275.rmk: Likewise.
30539 * conf/i386-pc.rmk: Likewise.
30540 * conf/powerpc-ieee1275.rmk: Likewise.
30541 * conf/sparc64-ieee1275.rmk: Likewise.
30542 * conf/x86_64-efi.rmk: Likewise.
30543 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
30544 (usage): Fix strings to use `program_name'.
30545 (main): Initialize gettext.
30546 * util/grub-editenv.c: Likewise.
30547 * util/grub-emu.c: Likewise.
30548 * util/grub-fstest.c: Likewise.
30549 * util/grub-mkdevicemap.c: Likewise.
30550 * util/grub-mkfont.c: Likewise.
30551 * util/grub-mkrelpath.c: Likewise.
30552 * util/grub-pe2elf.c: Likewise.
30553 * util/grub-probe.c: Likewise.
30554 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30555 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30556 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30557
30558 * util/misc.c: Include `"progname.h"'.
30559 (progname): Remove variable.
30560 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
30561
6f61ed55
FZ
305622009-11-25 Felix Zielcke <fzielcke@z-51.de>
30563
30564 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
30565 printf and print a newline after the menuentry header line.
30566 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
30567
f022876b
FZ
305682009-11-25 Felix Zielcke <fzielcke@z-51.de>
30569
30570 autoconf >= 2.60 support $(localedir).
30571
30572 * INSTALL: Note that autoconf 2.60 is required.
30573 * configure.ac (AC_PREREQ): Bump to 2.60.
30574 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
30575 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
30576
6717926e
YB
305772009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
30578
30579 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
30580 aclocal is run.
30581
08806a54
RM
305822009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30583
30584 * normal/main.c (grub_normal_read_line): Fix off-by-one
30585 buffer overflow.
30586
13b33fba
RM
305872009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30588
30589 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
30590 "parser.grub" in grub_command_execute() call.
30591
4a8572e9
CPE
305922009-11-24 Carles Pina i Estany <carles@pina.cat>
30593
30594 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
30595 * conf/i386-efi.rmk: Likewise.
30596 * conf/i386-ieee1275.rmk: Likewise.
30597 * conf/i386-pc.rmk: Likewise.
30598 * conf/powerpc-ieee1275.rmk: Likewise.
30599 * conf/sparc64-ieee1275.rmk: Likewise.
30600 * conf/x86_64-efi.rmk: Likewise.
30601 * gettext/gettex.c: Include <grub/i18n.h>.
30602 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
30603 here ...
30604 * include/grub/i18n.h: ... to here
30605 * include/grub/i18n.h: ... to here.
30606 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 30607 (grub_gettext_dummy): Move above user.
4a8572e9 30608
bee48093
FZ
306092009-11-24 Felix Zielcke <fzielcke@z-51.de>
30610
30611 * util/Makefile.in (install-local): Convert a `for' into a normal
30612 shell expansion.
30613
a031e91c
RM
306142009-11-24 Robert Millan <rmh.grub@aybabtu.com>
30615
30616 * autogen.sh: Add automake call.
30617 * config.guess: Remove.
30618 * config.sub: Likewise.
30619 * install-sh: Likewise.
30620
26bec39d
FZ
306212009-11-24 Felix Zielcke <fzielcke@z-51.de>
30622
30623 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
30624
8e2532fd
FZ
306252009-11-24 Felix Zielcke <fzielcke@z-51.de>
30626
30627 * util/Makefile.in (install-local): Convert a make `$(foreach)'
30628 function to a normal shell `for'.
30629
fefa1b7d
FZ
306302009-11-24 Felix Zielcke <fzielcke@z-51.de>
30631
30632 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30633
4501250b
FZ
306342009-11-24 Felix Zielcke <fzielcke@z-51.de>
30635
30636 * util/grub-mkrelpath.c: New file.
30637 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
30638 (grub_mkrelpath_SOURCES): New variable.
30639 * include/grub/util/misc.h: New function prototype.
30640 * util/misc.c (make_system_path_relative_to_its_root): New function.
30641
30642 * util/grub-mkconfig_lib.in (bindir): New variable.
30643 (grub_mkrelpath): Likewise.
30644 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
30645
30646 * util/probe.c (probe): Make the file path relative to its root.
30647 Change a info message to use the GRUB path. Enable again the
30648 check if we can read the file with GRUB facilities.
30649
30650 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
30651 to its root.
30652
11d9778b
FZ
306532009-11-24 Felix Zielcke <fzielcke@z-51.de>
30654
30655 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
30656 platform.
30657
4465287d
FZ
306582009-11-24 Felix Zielcke <fzielcke@z-51.de>
30659
30660 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
30661 strncmp().
30662
62b47f22
FZ
306632009-11-24 Felix Zielcke <fzielcke@z-51.de>
30664
30665 * util/getroot.c (grub_util_is_dmraid): New function.
30666 (grub_util_get_dev_abstraction): Treat dmraid and multipath
30667 devices as normal ones, not as LVM.
30668
1eafb9b9 306692009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
30670
30671 * conf/common.rmk: Add grub-gettext_lib target and updates
30672 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
30673 LDFLAGS.
30674 * gettext/gettext.c: New file. (Reads mo files).
30675 * include/grub/file.h (grub_file_pread): New prototype.
30676 * include/grub/i18n.h (_): New prototype.
30677 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
30678 prototypes.
30679 * kern/misc.c (grub_gettext_dummy): New function.
30680 * normal/menu_text.c: Include <grub/i18n.h>.
30681 * normal/menu_text.c (print_timeout): Gettexttize string.
30682 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
30683 * po/POTFILES: Add `normal/menu_text.c'.
30684 * po/ca.po: Add new translations.
c3ea6bd4
CPE
30685 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
30686 gettext module and defines locale_dir and lang in grub.cfg.
30687 * NEWS: Add gettext support.
30688
0fdb2568
RM
306892009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30690
30691 * util/hostdisk.c: Include `<grub/i18n.h>'.
30692 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
30693 (make_device_name): Rewrite using asprintf.
30694 (convert_system_partition_to_system_disk): Replace 0 with NULL.
30695 (find_system_device): If a device is not found, generate one just
30696 by reusing the OS path name.
30697 (read_device_map): Make it permissible for device.map not to exist.
30698
f515aa62
RM
306992009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30700
30701 * script/sh/execute.c: Move from here ...
30702 * script/execute.c: ... to here. Update all users.
30703 * script/sh/function.c: Move from here ...
30704 * script/function.c: ... to here. Update all users.
30705 * script/sh/lexer.c: Move from here ...
30706 * script/lexer.c: ... to here. Update all users.
30707 * script/sh/main.c: Move from here ...
30708 * script/main.c: ... to here. Update all users.
30709 * script/sh/parser.y: Move from here ...
30710 * script/parser.y: ... to here. Update all users.
30711 * script/sh/script.c: Move from here ...
30712 * script/script.c: ... to here. Update all users.
30713
f84b481b
RM
307142009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30715
30716 * configure.ac: Detect all `emu' platforms. Define
30717 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
30718 --enable-grub-emu logic. Disable include/grub/machine
30719 symlink on `emu' platforms.
30720
30721 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
30722 * gensymlist.sh.in: Likewise.
30723
30724 * include/grub/i386/coreboot/machine.h: Remove file.
30725 * include/grub/i386/efi/machine.h: Likewise.
30726 * include/grub/i386/ieee1275/machine.h: Likewise.
30727 * include/grub/i386/pc/machine.h: Likewise.
30728 * include/grub/i386/qemu/machine.h: Likewise.
30729 * include/grub/powerpc/ieee1275/machine.h: Likewise.
30730 * include/grub/sparc64/ieee1275/machine.h: Likewise.
30731 * include/grub/x86_64/efi/machine.h: Likewise.
30732
30733 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
30734 * commands/halt.c: Likewise.
30735 * commands/reboot.c: Likewise.
30736 * include/grub/autoefi.h: Likewise.
30737 * include/grub/i386/at_keyboard.h: Likewise.
30738 * include/grub/i386/kernel.h: Likewise.
30739 * include/grub/i386/loader.h: Likewise.
30740 * include/grub/i386/pc/memory.h: Likewise.
30741 * kern/dl.c: Likewise.
30742 * kern/i386/coreboot/init.c: Likewise.
30743 * loader/i386/bsd.c: Likewise.
30744 * loader/i386/linux.c: Likewise.
30745 * loader/multiboot_loader.c: Likewise.
30746 * term/i386/pc/serial.c: Likewise.
30747 * term/usb_keyboard.c: Likewise.
30748
30749 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
30750 `<grub/machine/machine.h>'
30751 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
30752 * util/misc.c: Remove `<grub/machine/machine.h>' and
30753 `<grub/machine/time.h>'.
30754
30755 * Makefile.in (enable_grub_emu): Remove variable.
30756 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
30757
30758 * conf/any-emu.rmk: New file.
30759 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
30760 (grub_emu_init.c): Move from here ...
30761 * conf/any-emu.rmk: ... to here.
30762
30763 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
30764 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
30765 * conf/any-emu.rmk: ... to here.
30766
4efeab03
RM
307672009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30768
30769 * include/grub/parser.h (grub_parser_register): Document need
30770 of `name' parameter.
30771 * normal/main.c (grub_normal_read_line): Simplify prompt string.
30772 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
30773 "sh" to "grub".
30774
ea1dd8bf
RM
307752009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30776
30777 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
30778 `$(XGETTEXT)'.
30779 * include/grub/i18n.h (N_): New macro.
30780 * util/mkisofs/mkisofs.h: Likewise.
30781 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
30782 around N_().
30783 (usage): Use gettext() to translate help strings when printing them.
30784
0c140626
RM
307852009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30786
30787 Based on patch from Bean
30788 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30789
30790 * video/efi_fb.c: New file.
30791 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
30792 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30793 variables.
30794 * conf/x86_64-efi.rmk: Likewise.
30795
87d58298
RM
307962009-11-22 Robert Millan <rmh.grub@aybabtu.com>
30797
30798 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
30799 * util/i386/pc/grub-setup.c: Likewise.
30800
994cc3a3
ST
308012009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
30802
30803 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
30804 <hurd/fs.h>
30805 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
30806 file_get_storage_info to implement grub_guess_root_device.
30807
26a61d6a
FZ
308082009-11-21 Felix Zielcke <fzielcke@z-51.de>
30809
30810 * Makefile.in (target): Use make's builtin $(shell) function
30811 instead of calling directly $(SHELL) to create the locale directories,
30812 inside the $(foreach) function.
30813
74ff1dd5
FZ
308142009-11-21 Felix Zielcke <fzielcke@z-51.de>
30815
30816 * util/grub-mkrescue.in: Print an error and usage if output option
30817 has not been given.
30818
0b787d0e
FZ
308192009-11-21 Felix Zielcke <fzielcke@z-51.de>
30820
30821 Patch from Loïc Minier <loic.minier@ubuntu.com>.
30822 * util/grub.d/30_os-prober.in: Cope with Linux entries where
30823 root and /boot are on different devices.
30824
1164b270
RM
308252009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30826
30827 Fix build for srcdir != objdir.
30828
30829 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
30830 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
30831 $(srcdir).
30832 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
30833 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
30834 reference for input.
30835
13774a2f
RM
308362009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30837
30838 * util/grub-mkrescue.in: Use source directory direcly (without copiing
30839 or hardlinking it). Remove -J option, Joliet is not compatible with
30840 multiple source directories.
30841
efda854e
RM
308422009-11-21 Carles Pina i Estany <carles@pina.cat>
308432009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30844
30845 * util/grub-mkrescue.in: Recognize `--override-directory' option.
30846 (process_input_dir): New function. Process an arbitrary input
30847 directory.
30848 Misc adjustments to support both "override mode" and system-wide mode.
30849
6c09890c
FZ
308502009-11-20 Felix Zielcke <fzielcke@z-51.de>
30851
30852 * configure.ac (UNIFONT_BDF): Rename to ...
30853 (FONT_SOURCE): ... this. Update all users.
30854
a797824f
FZ
308552009-11-20 Felix Zielcke <fzielcke@z-51.de>
30856
30857 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
30858 to the list of unifont files to look for.
30859
cd4f42b0
RM
308602009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30861
30862 Patch from Joe Auricchio <jauricchio@gmail.com>
30863 * commands/minicmd.c (grub_mini_cmd_clear): New function.
30864 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
30865 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
30866
393c783d
FZ
308672009-11-19 Felix Zielcke <fzielcke@z-51.de>
30868
30869 * Makefile.in (install-local): Add a missing backslash.
30870
b2f1e327
FZ
308712009-11-19 Felix Zielcke <fzielcke@z-51.de>
30872
30873 * include/grub/x86_64/io.h: New file.
30874
f577f7a0
RM
308752009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30876
30877 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
30878 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
30879 Include `"progname.h"'.
30880 (main): Initialize gettext.
30881 * util/i386/pc/grub-setup.c: Gettexttize.
30882 * util/i386/pc/grub-mkimage.c: Likewise.
30883
30884 * Makefile.in (po/*.po): Redefine as ...
30885 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
30886
3bc7896c
RM
30887 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
30888
c37943b6
RM
308892009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30890
30891 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
30892 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
30893 (program_name): Remove.
30894 (main): Initialize gettext support.
6323f705
RM
30895 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
30896 Include `<libintl.h>'.
30897 (_): New macro.
c37943b6
RM
30898
30899 * util/mkisofs/eltorito.c: Gettexttize.
30900 * util/mkisofs/joliet.c: Likewise.
30901 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
30902 * util/mkisofs/multi.c: Likewise.
30903 * util/mkisofs/rock.c: Likewise.
30904 * util/mkisofs/tree.c: Likewise.
30905 * util/mkisofs/write.c: Likewise.
30906
3bc7896c
RM
30907 * po/POTFILES: Update with new files.
30908
5ce77c6e
RM
309092009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30910
30911 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
30912 * util/mkisofs/iso9660.h: Likewise.
30913 * util/mkisofs/joliet.c: Likewise.
30914 * util/mkisofs/mkisofs.c: Likewise.
30915 * util/mkisofs/mkisofs.h: Likewise.
30916 * util/mkisofs/rock.c: Likewise.
30917 * util/mkisofs/tree.c: Likewise.
30918 * util/mkisofs/write.c: Likewise.
30919
30920 * util/mkisofs/eltorito.c (rcsid): Remove.
30921 * util/mkisofs/hash.c: Likewise.
30922 * util/mkisofs/joliet.c: Likewise.
30923 * util/mkisofs/name.c: Likewise.
30924 * util/mkisofs/rock.c: Likewise.
30925 * util/mkisofs/tree.c: Likewise.
30926 * util/mkisofs/write.c: Likewise.
30927
1dabbc77
RM
309282009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30929
30930 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
30931 instead of static allocation.
30932 * util/mkisofs/match.h: Likewise.
30933
633877cb
RM
309342009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30935
3bc7896c
RM
30936 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
30937 and `util/grub.d/10_linux.in'.
633877cb
RM
30938 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
30939 translatable Shell files.
30940
af1c0c85
RM
309412009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30942
30943 * Makefile.in ($(srcdir)/aclocal.m4): New target.
30944
769ae37b
RM
309452009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30946
30947 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 30948 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
30949 * util/grub.d/10_kfreebsd.in (bindir): New variable.
30950 Add gettext initialization.
30951 (kfreebsd_entry): Make menuentry output translatable.
30952
309532009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30954
30955 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
30956 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
30957 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
30958 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
30959 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 30960 * po/LINGUAS: New file.
769ae37b
RM
30961
309622009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30963
30964 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
30965 other things).
30966 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
30967 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
30968 bindtextdomain() calls for gettext initialization.
30969
309702009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30971
30972 * gnulib/progname.c: New file (imported from Gnulib).
30973 * gnulib/progname.h: Likewise.
30974 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30975 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
30976 (usage): Replace `progname' with `program_name'.
30977 (main): Use set_program_name() for program name initialization.
30978
309792009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30980
30981 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
30982 from here ...
30983 * Makefile.in (CPPFLAGS): ... to here.
30984
309852009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30986
30987 * aclocal.m4: Move from here ...
30988 * acinclude.m4: ... to here.
30989 * autogen.sh: Add call to `aclocal'.
30990 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
30991
309922009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30993
30994 * Makefile.in (CLEANFILES): Add `po/*.mo'.
30995 (LINGUAS): New variable.
30996 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
30997 (install-local): Install MO files.
30998 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
30999 * include/grub/i18n.h: New file.
3bc7896c
RM
31000 * po/POTFILES: New file.
31001 * po/ca.po: New file.
769ae37b
RM
31002 * util/grub.d/10_linux.in (bindir): New variable.
31003 Add gettext initialization.
31004 (linux_entry): Make menuentry output translatable.
31005 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
31006 (usage): Make --help output translatable.
31007 (main): Initialize gettext.
31008
02c0a6ad
RM
310092009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31010
31011 * import_gcry.py: New file (written by Vladimir with minor
31012 adjustments).
31013 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
31014 ciphers.
31015 * INSTALL: Document that Python is required for bootstrap.
31016
310172009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31018
31019 Import ciphers from libgcrypt 1.4.4.
31020
31021 * lib/libgcrypt/cipher/ChangeLog
31022 * lib/libgcrypt/cipher/ac.c
31023 * lib/libgcrypt/cipher/arcfour.c
31024 * lib/libgcrypt/cipher/bithelp.h
31025 * lib/libgcrypt/cipher/blowfish.c
31026 * lib/libgcrypt/cipher/camellia-glue.c
31027 * lib/libgcrypt/cipher/camellia.c
31028 * lib/libgcrypt/cipher/camellia.h
31029 * lib/libgcrypt/cipher/cast5.c
31030 * lib/libgcrypt/cipher/cipher.c
31031 * lib/libgcrypt/cipher/crc.c
31032 * lib/libgcrypt/cipher/des.c
31033 * lib/libgcrypt/cipher/dsa.c
31034 * lib/libgcrypt/cipher/ecc.c
31035 * lib/libgcrypt/cipher/elgamal.c
31036 * lib/libgcrypt/cipher/hash-common.c
31037 * lib/libgcrypt/cipher/hash-common.h
31038 * lib/libgcrypt/cipher/hmac-tests.c
31039 * lib/libgcrypt/cipher/md.c
31040 * lib/libgcrypt/cipher/md4.c
31041 * lib/libgcrypt/cipher/md5.c
31042 * lib/libgcrypt/cipher/primegen.c
31043 * lib/libgcrypt/cipher/pubkey.c
31044 * lib/libgcrypt/cipher/rfc2268.c
31045 * lib/libgcrypt/cipher/rijndael-tables.h
31046 * lib/libgcrypt/cipher/rijndael.c
31047 * lib/libgcrypt/cipher/rmd.h
31048 * lib/libgcrypt/cipher/rmd160.c
31049 * lib/libgcrypt/cipher/rsa.c
31050 * lib/libgcrypt/cipher/seed.c
31051 * lib/libgcrypt/cipher/serpent.c
31052 * lib/libgcrypt/cipher/sha1.c
31053 * lib/libgcrypt/cipher/sha256.c
31054 * lib/libgcrypt/cipher/sha512.c
31055 * lib/libgcrypt/cipher/tiger.c
31056 * lib/libgcrypt/cipher/twofish.c
31057 * lib/libgcrypt/cipher/whirlpool.c
31058
af2f93ac
RM
310592009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31060
31061 Fix build for systems without error().
31062
31063 * gnulib/error.c: New file (imported from Gnulib).
31064 * gnulib/error.h: Likewise.
31065 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
31066 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
31067 (this variable is now used by error()).
31068
73fb3dd5
FZ
310692009-11-16 Felix Zielcke <fzielcke@z-51.de>
31070
814f5e96
FZ
31071 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
31072 instead of relying that char is signed.
73fb3dd5 31073
a691ca33
VS
310742009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
31075
31076 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
31077 blocksize different from specified.
31078 (grub_pxefs_read): Likewise.
31079
2af8f0f4
FZ
310802009-11-16 Felix Zielcke <fzielcke@z-51.de>
31081
31082 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
31083
31084 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
31085 (grub_ata_readwrite): Likewise. Update 2 format strings.
31086 (grub_atapi_read): Likewise.
31087
31088 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
31089 * conf/i386.rmk (pkglib_MODULES): ... to here ...
31090 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
31091 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
31092 (ata_mod_LDFLAGS): Move from here ...
31093 * conf/i386.rmk: ... to here ...
31094 * conf/x86_64-efi.rmk: ... and here.
31095 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
31096 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
31097
83bdecaf
RM
310982009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31099
31100 Relicense multiboot.h, with RMS' blessing.
31101
31102 * include/multiboot.h: Change to X11 license.
31103
fd6fd3d7
RM
311042009-11-15 Robert Millan <rmh.grub@aybabtu.com>
31105
31106 Support --version in grub-mkisofs.
31107
31108 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
31109 (OPTION_VERSION): New macro.
31110 (ld_options): Recognize --version.
31111 (usage): Move `program_name' from here ...
31112 (program_name): ... to here. Add `static' qualifier.
31113 (main): Recognize `OPTION_VERSION'.
31114
16a88c49
FZ
311152009-11-15 Felix Zielcke <fzielcke@z-51.de>
31116
31117 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
31118 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
31119
a4158476
RM
311202009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31121
31122 Fix help2man generation for mkisofs.
31123
31124 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
31125 (usage): Send output to stdout (rather than stderr).
31126
fc2208b0
RM
311272009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31128
31129 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
31130 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31131 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
31132 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31133 (bin_SCRIPTS): Add `grub-mkfloppy'.
31134 (grub_mkfloppy_SOURCES): New variable.
31135
31136 * util/grub-mkrescue.in: New file.
31137 * util/i386/pc/grub-mkfloppy.in: New file.
31138
31139 * util/i386/coreboot/grub-mkrescue.in: Remove.
31140 * util/i386/pc/grub-mkrescue.in: Remove.
31141
8d0edf4a
RM
311422009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31143
31144 * include/grub/multiboot.h (struct grub_multiboot_header): Move
31145 from here ...
31146 * include/multiboot.h (struct multiboot_header): ... to here. Update
31147 all users.
31148 * include/grub/multiboot.h (struct grub_multiboot_info): Move
31149 from here ...
31150 * include/multiboot.h (struct multiboot_info): ... to here. Update
31151 all users.
31152 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
31153 from here ...
31154 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
31155 Update all users.
31156 * include/grub/multiboot.h (struct grub_mod_list): Move
31157 from here ...
31158 * include/multiboot.h (struct multiboot_mod_list): ... to here.
31159 Update all users.
31160
a73f5969
RM
311612009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31162
31163 * include/multiboot2.h (multiboot_word): Rename from this ...
31164 (multiboot2_word): ... to this. Update all users.
31165 (multiboot_header): Rename from this ...
31166 (multiboot2_header): ... to this. Update all users.
31167 (multiboot_tag_header): Rename from this ...
31168 (multiboot2_tag_header): ... to this. Update all users.
31169 (multiboot_tag_start): Rename from this ...
31170 (multiboot2_tag_start): ... to this. Update all users.
31171 (multiboot_tag_name): Rename from this ...
31172 (multiboot2_tag_name): ... to this. Update all users.
31173 (multiboot_tag_module): Rename from this ...
31174 (multiboot2_tag_module): ... to this. Update all users.
31175 (multiboot_tag_memory): Rename from this ...
31176 (multiboot2_tag_memory): ... to this. Update all users.
31177 (multiboot_tag_unused): Rename from this ...
31178 (multiboot2_tag_unused): ... to this. Update all users.
31179 (multiboot_tag_end): Rename from this ...
31180 (multiboot2_tag_end): ... to this. Update all users.
31181
1c8927f0
RM
311822009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31183
31184 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
31185 this platform we should support Multiboot1 first.
31186
31187 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31188 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
31189 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
31190
6e1e0d89
RM
311912009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31192
31193 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
31194 of write calls (converting them to fwrite() if they aren't already).
31195 (get_torito_desc): Likewise.
31196 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
31197
7f2b34d8
RM
311982009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31199
31200 * util/i386/pc/grub-install.in: Move from here ...
31201 * util/grub-install.in: ... to here. Update all users.
31202
c0ef3311
CW
312032009-11-11 Colin Watson <cjwatson@ubuntu.com>
31204
31205 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
31206
e1f240ff
RM
312072009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31208
31209 Support for El Torito without floppy emulation.
31210
31211 * util/mkisofs/eltorito.c: Include `<errno.h>'.
31212 (init_boot_catalog): Improve error handling.
31213 (get_torito_desc): Don't use floppy emulation unless requested by
31214 user. Patch boot information table when requested via
31215 `-boot-info-table'.
31216 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
31217 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
31218 (use_boot_info_table): New variables.
31219 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
31220 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
31221 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
31222 `--eltorito-emul-floppy'.
31223 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
31224 and `OPTION_ELTORITO_EMUL_FLOPPY'.
31225 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
31226 (use_boot_info_table, get_731): New prototypes.
31227 * util/mkisofs/write.c (get_731): New function.
31228
af7d4de5
FZ
312292009-11-11 Felix Zielcke <fzielcke@z-51.de>
31230
31231 Fix the generation of the man page.
31232
31233 * util/pc/i386/grub-install.in: Source
31234 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
31235
2c55dbc0
RM
312362009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31237
31238 Large file support for grub-mkisofs.
31239
31240 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
31241 * util/mkisofs/mkisofs.c (next_extent, last_extent)
31242 (session_start): Upgrade type to `uint64_t'. Update all users.
31243 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
31244 (struct directory_entry): Upgrade type of `starting_block' and
31245 `size' to `uint64_t'. Update all users.
31246 (struct deferred): Remove unused structure.
31247 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
31248 Update all users.
31249 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
31250 file is larger than `UINT32_MAX'.
31251 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
31252 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
31253 return value.
31254 (struct deferred_write): Upgrade type of `extent' and `size' to
31255 `uint64_t'. Update all users.
31256 (last_extent_written): Upgrade type to `uint64_t'. Update all
31257 users.
31258 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
31259 Update all users. Upgrade type of `remain' to `int64_t' and
31260 `use' to `size_t'. Use error() to handle fread() errors.
31261 (write_files): Rely on write_one_file() rather than calling
31262 xfwrite() directly.
31263
6a9cead5
FZ
312642009-11-09 Felix Zielcke <fzielcke@z-51.de>
31265
31266 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
31267
4825d790
RM
312682009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31269
31270 * util/mkisofs/fnmatch.c: Remove.
31271 * util/mkisofs/getopt1.c: Likewise.
31272 * util/mkisofs/getopt.c: Likewise.
31273 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
31274 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
31275 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
31276 `gnulib/getopt1.c' and `gnulib/getopt.c'.
31277 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
31278
31279 * configure.ac: Detect `mingw32msvc' host_os.
31280 Check for lstat(), getuid() and getgid().
31281
31282 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
31283 instances of `u_char' with `uint8_t'.
31284
31285 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
31286 [!HAVE_GETUID] (getuid): New function (stub).
31287 [!HAVE_GETGID] (getgid): Likewise.
31288 [!HAVE_LSTAT] (lstat): Likewise.
31289 [!S_IROTH] (S_IROTH): New macro (dummy).
31290 [!S_IRGRP] (S_IRGRP): Likewise.
31291
84b860d8
RM
312922009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31293
31294 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
31295 conditional expression).
31296
66e9b712
RM
312972009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31298
31299 Import from Gnulib.
31300
31301 * gnulib/fnmatch.c: New file.
31302 * gnulib/fnmatch.h: Likewise.
31303 * gnulib/fnmatch_loop.c: Likewise.
31304 * gnulib/getopt.c: Likewise.
31305 * gnulib/getopt.h: Likewise.
31306 * gnulib/getopt1.c: Likewise.
31307 * gnulib/getopt_int.h: Likewise.
31308 * gnulib/gettext.h: Likewise.
31309
34f4a5b0
RM
313102009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31311
31312 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
31313 * normal/handler.c (read_handler_list): Likewise.
31314
ac451143
RM
313152009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31316
31317 Misc cleanup.
31318
31319 * kern/command.c (grub_register_command_prio): Use
31320 grub_zalloc() instead of explicitly zeroing data.
31321 * kern/list.c: Include `<grub/mm.h>'.
31322 (grub_named_list_find): Replace `0' with `NULL'.
31323 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
31324 (fs_module_list): Change type to `grub_named_list_t'. Update all
31325 users.
31326 * normal/dyncmd.c (read_command_list): Add space between function
31327 call and parenthesis.
31328 * normal/handler.c (read_handler_list): Likewise.
31329
4089b167
RM
313302009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31331
31332 * normal/auth.c (punishment_delay): Moved from here ...
31333 (grub_auth_strcmp): ... to here (inside function).
31334
325f5037
RM
313352009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31336
31337 * include/grub/list.h (struct grub_named_list): Remove `const'
31338 qualifier from `name'.
31339 (struct grub_prio_list): Likewise.
31340
7aea29a3
RM
313412009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31342
31343 * normal/auth.c: Include `<grub/time.h>'.
31344 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
31345
3fd6f044
RM
313462009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31347
31348 * normal/auth.c (punishment_delay): New variable.
31349 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
31350 (grub_auth_check_authentication): Punish failed login attempts with
31351 an incremental (2^N) delay.
31352
a4cd68e4
RM
313532009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31354
31355 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
31356 path with $(srcdir).
31357
7ad12f43
VS
313582009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31359
31360 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
31361
c1129f03
RM
313622009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31363
31364 * util/i386/coreboot/grub-mkrescue.in: New file.
31365 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
31366 variables.
31367
31368 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
31369 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
31370 * configure.ac: Add header and function checks to satisfy grub-mkisofs
31371 requirements.
31372 * util/mkisofs/defaults.h: New file.
31373 * util/mkisofs/eltorito.c: Likewise.
31374 * util/mkisofs/exclude.h: Likewise.
31375 * util/mkisofs/fnmatch.c: Likewise.
31376 * util/mkisofs/getopt.c: Likewise.
31377 * util/mkisofs/getopt1.c: Likewise.
31378 * util/mkisofs/hash.c: Likewise.
31379 * util/mkisofs/include/fctldefs.h: Likewise.
31380 * util/mkisofs/include/mconfig.h: Likewise.
31381 * util/mkisofs/include/prototyp.h: Likewise.
31382 * util/mkisofs/include/statdefs.h: Likewise.
31383 * util/mkisofs/iso9660.h: Likewise.
31384 * util/mkisofs/joliet.c: Likewise.
31385 * util/mkisofs/match.c: Likewise.
31386 * util/mkisofs/match.h: Likewise.
31387 * util/mkisofs/mkisofs.c: Likewise.
31388 * util/mkisofs/mkisofs.h: Likewise.
31389 * util/mkisofs/multi.c: Likewise.
31390 * util/mkisofs/name.c: Likewise.
31391 * util/mkisofs/rock.c: Likewise.
31392 * util/mkisofs/tree.c: Likewise.
31393 * util/mkisofs/write.c: Likewise.
31394
ec8bb77d
VS
313952009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31396
31397 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
31398 being insecure.
31399
3716b12c
RM
314002009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31401
31402 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
31403 `grub-mkimage' (and use $0 when possible).
31404
b97b7b91
RM
314052009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31406
31407 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
31408 error message for excessively large memory map.
31409
04114812
RM
314102009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31411
31412 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
31413 executable bit.
31414
e4eb2373
RM
314152009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31416
31417 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
31418 message for coreboot users.
31419
c926e1d5 314202009-11-07 Robert Millan <rmh.grub@aybabtu.com>
31421
31422 Fix build with GNU gold.
31423
31424 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
31425 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
31426 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
31427 link addresses.
31428 * aclocal.m4: Likewise.
31429
86e5b1db 314302009-11-04 Felix Zielcke <fzielcke@z-51.de>
31431
31432 * configure.ac (AC_PREREQ): Bump to 2.59d.
31433 * INSTALL: Make it more clear when Autoconf and Ruby are
31434 needed and when to run `./autogen.sh'.
31435
246cd78f 314362009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31437
31438 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
31439 OSes.
31440
4f9dfb37 314412009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31442
31443 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
31444
b82bd5e1 314452009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31446
31447 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
31448 giving it to GNU Mach.
31449
ff1a9bca 314502009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31451
31452 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
31453 GNU partition number to get internal GRUB partition number.
31454
61697d9c 314552009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31456
31457 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
31458 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
31459
a50569e1 314602009-11-01 Robert Millan <rmh.grub@aybabtu.com>
31461
31462 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
31463 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
31464 case.
31465
5b153867 314662009-11-01 Felix Zielcke <fzielcke@z-51.de>
31467
31468 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
31469
d9e2cd70 314702009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31471
31472 Fix build problem.
31473
31474 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
31475 `-isystem=$(srcdir)/include'.
31476
805111a4 314772009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31478
31479 * util/i386/pc/grub-install.in: Remove hint that device.map should be
31480 checked (grub-install doesn't currently rely on it).
31481
fa6e945f 314822009-10-29 Robert Millan <rmh.grub@aybabtu.com>
31483
31484 Revert SVN r2660.
31485
31486 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
31487 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31488 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
31489 * conf/i386-ieee1275.rmk: Likewise.
31490 * conf/i386-pc.rmk: Likewise.
31491 * conf/powerpc-ieee1275.rmk: Likewise.
31492 * conf/sparc64-ieee1275.rmk: Likewise.
31493 * conf/x86_64-efi.rmk: Likewise.
31494
cee15086 314952009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31496
31497 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
31498
95b9239e 314992009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31500
31501 * include/grub/misc.h: Stop checking for APPLE_CC.
31502
2ed19dfd 315032009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31504
31505 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
31506 doesn't cause an infinite call loop.
31507
fdcdde19 315082009-10-28 Felix Zielcke <fzielcke@z-51.de>
31509
31510 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
31511 strings.
31512
cefabfe1 315132009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31514
31515 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
31516 variable.
31517 * Makefile.in: Likewise.
31518
ed96ab6d 315192009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31520
31521 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
31522
0579b753 315232009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31524
31525 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
31526
478df409 315272009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31528
31529 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
31530
083d1679 315312009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31532
31533 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
31534 from here ...
31535 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
31536
5947ae32 315372009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31538
31539 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
31540 in $(MAKEINFO) invocation. This makes it clear in output that
31541 errors are being ignored.
31542
94180ff6 315432009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31544
31545 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
31546 from here ...
31547 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31548 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
31549 * conf/i386-ieee1275.rmk: Likewise.
31550 * conf/i386-pc.rmk: Likewise.
31551 * conf/powerpc-ieee1275.rmk: Likewise.
31552 * conf/sparc64-ieee1275.rmk: Likewise.
31553 * conf/x86_64-efi.rmk: Likewise.
31554
9031b03a 315552009-10-26 Colin Watson <cjwatson@ubuntu.com>
31556
31557 * util/grub-editenv.c (main): If only a command is given, use
31558 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
31559 (usage): FILENAME is now optional and has a default.
31560
e4f6809b 315612009-10-26 Colin Watson <cjwatson@ubuntu.com>
31562
31563 Improve grub-mkconfig performance when there are several menu
31564 entries on a single filesystem.
31565
31566 * util/grub.d/10_linux.in (linux_entry): Cache the output of
31567 prepare_grub_to_access_device.
31568 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
31569 * util/grub.d/30_os-prober.in: Likewise.
31570
67937d4d 315712009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31572
31573 * util/grub.d/10_freebsd.in: Remove.
31574 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
31575 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
31576
ee3756cc 315772009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31578
5c35048e 31579 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 31580
4dea1c6f 315812009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31582
31583 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
31584 grub_util_error() call.
31585
042484d7 315862009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31587
31588 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
31589 `reserved_first_sector' member.
31590 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
31591 `reserved_first_sector' to 1.
31592 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
31593 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
31594 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
31595 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
31596 filesystems which begin at first sector.
31597 (options): New option --skip-fs-probe.
31598 (main): Handle --skip-fs-probe and pass it to setup().
31599
d64448a7 316002009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31601
31602 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
31603 (memset): Fix function prototype.
31604
508d42ec 316052009-10-25 Robert Millan <rmh.grub@aybabtu.com>
316062009-10-25 Vasily Averin <vvs@parallels.com>
31607
31608 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
31609 `dirent.direntlen == 0'.
31610
b240e30c 316112009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31612
31613 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
31614 `cpio'.
31615 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
31616
346e7fbe 316172009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31618
31619 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
31620 `__trampoline_setup' and `__ucmpdi2'.
31621 * include/grub/powerpc/libgcc.h: Only export symbols for functions
31622 that libgcc provides.
31623
cdb308b0 316242009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31625
31626 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
31627 * include/grub/sparc64/libgcc.h (memset): Likewise.
31628 * include/grub/misc.h (memset, memcmp): New function prototypes.
31629
fb26abc2 316302009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31631
31632 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
31633 `cpio'.
31634 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
31635
f6693890 316362009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31637
31638 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
31639 * docs/grub.cfg: Compensate for recent change in multiboot
31640 loader (since 2009-08-14 it won't pass filename to payload).
31641 * util/grub.d/10_hurd.in: Likewise.
31642
0933cdc0 316432009-10-21 Felix Zielcke <fzielcke@z-51.de>
31644
31645 * config.guess: Update to latest version from config git
31646 repository.
31647 * config.sub: Likewise.
31648
3b2fe8c2 316492009-10-20 Robert Millan <rmh.grub@aybabtu.com>
31650
31651 Fix build on sparc64.
31652
31653 * configure.ac: Perform checks for libgcc symbols before
31654 adding `-nostdlib' to LDFLAGS.
31655
46695a62 316562009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31657
31658 Let user specify OpenBSD root device.
31659
31660 * loader/i386/bsd.c (openbsd_root): New variable.
31661 (openbsd_opts): New option 'root'.
31662 (OPENBSD_ROOT_ARG): New macro.
31663 (grub_openbsd_boot): Use 'openbsd_root'.
31664 (grub_cmd_openbsd): Fill 'openbsd_root'.
31665
d2b6b7fc 316662009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31667
31668 * NEWS: Misc adjustments.
31669
421bd7ac 316702009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31671
31672 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
31673
f1d29d87 316742009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31675
31676 * configure.ac: Bump version to 1.97.
31677
6f3cd880 316782009-10-16 Colin Watson <cjwatson@ubuntu.com>
31679
31680 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
31681 -mno-3dnow on x86 architectures. Some toolchains enable these
31682 features by default, but they rely on registers that aren't enabled
31683 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
31684
035f7122 316852009-10-15 Robert Millan <rmh.grub@aybabtu.com>
31686
31687 Make entry text a bit more readable.
31688
31689 * util/grub.d/10_linux.in: Add `with' before `Linux'.
31690
44998e58 316912009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31692
31693 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
31694
cd2851b3 316952009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31696
31697 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
31698 operations.
31699
c6f3b249 317002009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31701
31702 * configure.ac: Add missing dollar.
31703
6b5886ba 317042009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31705
31706 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
31707
31708 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
31709 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
31710 exports.
31711 * include/grub/sparc64/libgcc.h: Likewise. Use
31712 preprocessor conditionals.
31713
e9d66f6d 317142009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31715
31716 * conf/common.rmk (grub-dumpbios): Remove rule.
31717 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
31718 * util/grub-dumpbios.in: Remove file.
31719
9155bc17 317202009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31721
31722 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
31723 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
31724
31725 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
31726 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
31727 users.
31728
31729 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
31730 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
31731 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
31732 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
31733 users.
31734
bf7f7a18 317352009-10-12 Robert Millan <rmh.grub@aybabtu.com>
31736
31737 * term/tparm.c: Switch to GPLv3.
31738
86564c26 317392009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31740
31741 * include/grub/i386/cpuid.h: Add header protection.
31742
5c936493 317432009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31744
31745 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
31746
31747 * include/grub/i386/cpuid.h: New file.
31748 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
31749 (has_longmode): Rename to ...
31750 (grub_cpuid_has_longmode): ... this. Update all users. Remove
31751 `static' attribute.
31752 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
31753 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
31754 on a CPU that doesn't implement AMD64 instruction set.
31755
186e7cf2 317562009-10-06 Colin Watson <cjwatson@ubuntu.com>
31757
31758 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
31759 that version.texi is rebuilt on version number changes.
31760
83b65c4a 317612009-10-06 Colin Watson <cjwatson@ubuntu.com>
31762
31763 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
31764 Fixes bug #27602.
31765
d244281c 317662009-10-06 Colin Watson <cjwatson@ubuntu.com>
31767
31768 * util/i386/pc/grub-install.in: Source
31769 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
31770 that the --grub-probe option will work.
31771 * util/sparc64/ieee1275/grub-install.in: Likewise.
31772
da25306d 317732009-10-05 Robert Millan <rmh.grub@aybabtu.com>
31774
31775 * configure.ac: Bump version to 1.97~beta4.
31776
e8ee83c0 317772009-10-03 Robert Millan <rmh.grub@aybabtu.com>
31778
31779 Resync grub-mkdevicemap in x86_64-efi.
31780
31781 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
31782 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
31783 `util/devicemap.c'.
31784
50dcabcf 317852009-10-01 Colin Watson <cjwatson@ubuntu.com>
31786
31787 * util/grub-editenv.c (create_envblk_file): Write new block with a
31788 .new suffix and then rename it into place, to ensure atomic
31789 creation.
31790
0e51c3a7 317912009-09-28 Robert Millan <rmh.grub@aybabtu.com>
31792
31793 Do not automatically install headers.
31794
31795 * Makefile.in (include_DATA): Remove. Update all users.
31796
31299a95 317972009-09-26 Robert Millan <rmh.grub@aybabtu.com>
31798
31799 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
31800 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
31801
31802 * util/osdetect.lua: Remove.
31803 * script/lua/lauxlib.c: Likewise.
31804 * script/lua/ldebug.c: Likewise.
31805 * script/lua/grub_main.c: Likewise.
31806 * script/lua/lauxlib.h: Likewise.
31807 * script/lua/ldebug.h: Likewise.
31808 * script/lua/ltablib.c: Likewise.
31809 * script/lua/liolib.c: Likewise.
31810 * script/lua/lstrlib.c: Likewise.
31811 * script/lua/lualib.h: Likewise.
31812 * script/lua/ldo.c: Likewise.
31813 * script/lua/ldump.c: Likewise.
31814 * script/lua/ldo.h: Likewise.
31815 * script/lua/loslib.c: Likewise.
31816 * script/lua/lundump.c: Likewise.
31817 * script/lua/grub_lib.c: Likewise.
31818 * script/lua/ldblib.c: Likewise.
31819 * script/lua/lundump.h: Likewise.
31820 * script/lua/lmem.c: Likewise.
31821 * script/lua/grub_lib.h: Likewise.
31822 * script/lua/lmathlib.c: Likewise.
31823 * script/lua/lstate.c: Likewise.
31824 * script/lua/ltm.c: Likewise.
31825 * script/lua/lvm.c: Likewise.
31826 * script/lua/lmem.h: Likewise.
31827 * script/lua/lstate.h: Likewise.
31828 * script/lua/ltm.h: Likewise.
31829 * script/lua/ltable.c: Likewise.
31830 * script/lua/lvm.h: Likewise.
31831 * script/lua/llex.c: Likewise.
31832 * script/lua/lgc.c: Likewise.
31833 * script/lua/grub_lua.h: Likewise.
31834 * script/lua/loadlib.c: Likewise.
31835 * script/lua/lfunc.c: Likewise.
31836 * script/lua/lopcodes.c: Likewise.
31837 * script/lua/lparser.c: Likewise.
31838 * script/lua/ltable.h: Likewise.
31839 * script/lua/llex.h: Likewise.
31840 * script/lua/lgc.h: Likewise.
31841 * script/lua/lfunc.h: Likewise.
31842 * script/lua/lbaselib.c: Likewise.
31843 * script/lua/lopcodes.h: Likewise.
31844 * script/lua/lparser.h: Likewise.
31845 * script/lua/lzio.c: Likewise.
31846 * script/lua/linit.c: Likewise.
31847 * script/lua/lobject.c: Likewise.
31848 * script/lua/llimits.h: Likewise.
31849 * script/lua/lstring.c: Likewise.
31850 * script/lua/lzio.h: Likewise.
31851 * script/lua/lapi.c: Likewise.
31852 * script/lua/lcode.c: Likewise.
31853 * script/lua/lua.h: Likewise.
31854 * script/lua/lobject.h: Likewise.
31855 * script/lua/lstring.h: Likewise.
31856 * script/lua/lapi.h: Likewise.
31857 * script/lua/lcode.h: Likewise.
31858 * script/lua/luaconf.h: Likewise.
31859
cb8a2c38 318602009-09-26 Colin Watson <cjwatson@ubuntu.com>
31861
31862 * docs/grub.texi (Command-line and menu entry commands): Document
31863 date and echo commands.
31864
6b9b6276 318652009-09-24 Pavel Roskin <proski@gnu.org>
31866
31867 * include/grub/kernel.h (struct grub_module_header): Remove
31868 `grub_module_header_types'. Make `type' unsigned. Make `size'
31869 32-bit on all platforms.
31870 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
31871 8-bit field. Use grub_host_to_target32() for `size'.
31872 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
31873 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
31874 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
31875
4e5a02a7 318762009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31877
31878 Fix "lost keypress" bug in at_keyboard.
31879
31880 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
31881 Checks for readyness of input buffer (without flushing it).
31882 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
31883 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
31884
c6dcedf6 318852009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31886
31887 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
31888 size check within GRUB_MACHINE_PCBIOS section.
31889
74c958b1 318902009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31891
31892 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
31893 return value.
31894 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
31895 KEYBOARD_ISREADY check.
31896 (grub_at_keyboard_checkkey): Rename to ...
31897 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
31898 Remove gratuitous cast.
31899
ff420223 319002009-09-23 Colin Watson <cjwatson@ubuntu.com>
31901
31902 * configure.ac: Call AC_PROG_MKDIR_P.
31903 * Makefile.in (docs/stamp-vti): Create docs directory. Create
31904 version.texi in $(builddir) rather than $(srcdir).
31905 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
31906 to makeinfo's @include search path.
31907
d96875df 319082009-09-23 Felix Zielcke <fzielcke@z-51.de>
31909
31910 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
31911
9b3f8365 319122009-09-23 Felix Zielcke <fzielcke@z-51.de>
31913
31914 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
31915 for `*.dpkg-new'.
31916
c44c90db 319172009-09-21 Colin Watson <cjwatson@ubuntu.com>
31918
31919 Build info documentation. Some code borrowed from Automake.
31920
31921 * configure.ac: Check for makeinfo.
31922 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
31923 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
31924 docs/version.texi.
31925 (MOSTLYCLEANFILES): Add vti.tmp.
31926 (docs/version.texi, docs/stamp-vti): Update automatically.
31927 (docs/grub.info): Build info documentation. Use --force and ignore
31928 errors for now.
31929 (all-local): Add $(INFOS).
31930 (install-local): Install info files.
31931 (uninstall): Uninstall info files.
31932 * docs/version.texi: Remove from revision control. This file is
31933 automatically generated on build now.
31934 * gendistlist.sh: Add `*.info'.
31935
e0b37bb5 319362009-09-21 Felix Zielcke <fzielcke@z-51.de>
31937
31938 * kern/term.c: Fix indentation.
31939
5a78865b 319402009-09-21 Felix Zielcke <fzielcke@z-51.de>
31941
31942 * util/hostdisk.c: Fix a comment.
31943
dace7e8a 319442009-09-20 Robert Millan <rmh.grub@aybabtu.com>
31945
31946 Fix regression introduced in r2539.
31947
31948 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
31949 to 0xA1.
31950
a83d079b 319512009-09-19 Colin Watson <cjwatson@ubuntu.com>
31952
31953 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 31954 os-prober. Under normal operation, it does not print anything to
31955 stderr; if it does, we need to debug it, and throwing away stderr
31956 makes that excessively difficult.
a83d079b 31957
be94a509 319582009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
31959
31960 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
31961
63f745e8 319622009-09-16 Robert Millan <rmh.grub@aybabtu.com>
31963
31964 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
31965 AC_LANG_PROGRAM from autoconf.
31966 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
31967 prototypes (fixes warning).
31968
31969 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
31970 `--disable-werror' was used.
31971
bbb2a70f 319722009-09-16 Robert Millan <rmh.grub@aybabtu.com>
31973
31974 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
31975 uninitialized `lastaddr'.
31976
77c24f1d 319772009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
31978
0f0b8c87 31979 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 31980
07197f23 319812009-09-14 Colin Watson <cjwatson@ubuntu.com>
31982
31983 * commands/test.c (get_fileinfo): Return immediately if
31984 grub_fs_probe fails.
31985
dabf1798 319862009-09-14 José Martínez <xosemp@gmail.com>
31987
31988 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
31989
d52109a7 319902009-09-14 Colin Watson <cjwatson@ubuntu.com>
31991
31992 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
31993 output.
31994
56532179 319952009-09-13 Robert Millan <rmh.grub@aybabtu.com>
31996
31997 * configure.ac: Remove --enable-grub-pe2elf. Only build
31998 grub-pe2elf when needed by the build system itself.
31999 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
32000
8ef070f5 320012009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32002
32003 * configure.ac: Bump version to 1.97~beta3.
32004 * docs/version.texi: Likewise.
32005
61229557 320062009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32007
32008 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
32009 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
32010 from here ...
32011 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
32012 (grub_linux_setup_video): ... to here (with some adjustments).
32013
5c9f8d84 320142009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32015
32016 Fix memory corruption issue (spotted by Colin Watson).
32017
32018 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
32019 causing returned size to be stored in an incorrect memory location.
32020 Fix use of uninitialized value when storing the returned size.
32021
e8f5d6e9 320222009-09-12 Yves Blusseau <blusseau@zetam.org>
32023
32024 Change clean rules to properly remove files
32025
32026 * genmk.rb: add new clean rules
32027 * Makefile.in (clean): add the new targets
32028 (mostlyclean): likewise
32029
cda2a409 320302009-09-11 Colin Watson <cjwatson@ubuntu.com>
32031
32032 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
32033 to grub_uint64_t.
32034 * fs/ntfs.c (init_file): Understand 64-bit sizes for
32035 non-resident files.
32036
86695375 320372009-09-11 Colin Watson <cjwatson@ubuntu.com>
32038
32039 * configure.ac: Don't look for help2man when cross-compiling. Fixes
32040 part of bug #27349.
32041
8aa1541a 320422009-09-10 Felix Zielcke <fzielcke@z-51.de>
32043
32044 * util/grub-mkconfig.in: Make the created config mode 400 and
32045 print a warning if it fails.
32046
48d9bb0a 320472009-09-10 Robert Millan <rmh.grub@aybabtu.com>
32048
32049 * util/grub.d/40_custom.in: Ask user to type custom entries below
32050 comment, rather than below 'exec tail' line.
32051
3b0521be 320522009-09-10 Colin Watson <cjwatson@ubuntu.com>
32053
32054 * util/grub.d/40_custom.in: Make sure that the explanatory text is
32055 visible in grub.cfg.
32056
50051d55 320572009-09-10 Colin Watson <cjwatson@ubuntu.com>
32058
32059 * util/grub.d/40_custom.in: Make it a little clearer how to use this
32060 file.
32061
c0d34387 320622009-09-10 Felix Zielcke <fzielcke@z-51.de>
32063
32064 * docs/grub.cfg: Add an example menu entry for memtest86+.
32065
80a608f3 320662009-09-09 Felix Zielcke <fzielcke@z-51.de>
32067
a2094832 32068 * config.guess: Update to latest version from config git.
80a608f3 32069 * config.sub: Likewise.
32070
99423078 320712009-09-08 Colin Watson <cjwatson@ubuntu.com>
32072
32073 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
32074 unknown-command case. Fixes bug #27320.
32075
44454e4c 320762009-09-08 Felix Zielcke <fzielcke@z-51.de>
32077
32078 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
32079 `help' if the command exists.
32080
e30d87ad 320812009-09-06 Robert Millan <rmh.grub@aybabtu.com>
32082
32083 * INSTALL: Require GCC 4.1.3 or later.
32084
9a86f1ec 320852009-09-06 Yves Blusseau <blusseau@zetam.org>
32086
32087 * Makefile.in (RMKFILES): add i386-qemu.rmk
32088 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
32089 $(srcdir)/stamp-h.in
32090
7f26d466 320912009-09-05 Robert Millan <rmh.grub@aybabtu.com>
32092
32093 * util/grub-probe.c (probe): Comment out buggy codepath, which
32094 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
32095 should be re-enabled after 1.97.
32096
3a613259 320972009-09-05 Felix Zielcke <fzielcke@z-51.de>
32098
32099 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
32100 find searches for.
32101
197f76c7 321022009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
32103
32104 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
32105 unnecessary calls to grub_error.
32106
70ba68ce 321072009-09-04 Colin Watson <cjwatson@ubuntu.com>
32108
32109 * NEWS: Mention `keystatus' and Unicode fonts.
32110
4ff0d7a4 321112009-09-04 Robert Millan <rmh.grub@aybabtu.com>
32112
32113 * configure.ac: Bump version to 1.97~beta2.
32114 * docs/version.texi: Likewise.
32115
77c55a87 321162009-09-03 Colin Watson <cjwatson@ubuntu.com>
32117
32118 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
32119 containing unwind information in some cases where it previously did
32120 not. Use -fno-dwarf2-cfi-asm if available to restore the old
32121 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
32122 discussion.
32123
f79572cd 321242009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
32125
32126 Embedding loadenv module into grub-emu
32127
32128 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
32129 commands/loadenv.c
32130 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
32131 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
32132 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
32133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
32134 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
32135 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
32136
93a81088 321372009-09-03 Magnus Granberg <zorry@ume.nu>
32138
32139 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
32140 include -fPIE in the default specs.
32141 * configure.ac: Check if pie_possible is yes and add -fno-PIE
32142 to TARGET_CFLAGS.
32143
160034b2 321442009-09-03 Felix Zielcke <fzielcke@z-51.de>
32145
32146 * INSTALL: Note that GNU Bison 2.3 or later is required.
32147
087c07c4 321482009-09-03 Colin Watson <cjwatson@ubuntu.com>
32149
32150 * kern/i386/pc/startup.S: Fix typo.
32151
cbf978c0 321522009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
32153
32154 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
32155 according to GCS.
32156
321572009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 32158
32159 * docs/grub.texi (Naming convention): Describe one-based partition
32160 numbering.
32161 (Device syntax): Likewise.
32162 (File name syntax): Likewise.
32163 (Block list syntax): Likewise.
32164 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
32165 menu.lst.
32166 (File name syntax): Likewise.
32167 (Command-line and menu entry commands): Document acpi, blocklist,
32168 crc, export, insmod, keystatus, ls, set, and unset commands.
32169
f3e8cdfd 321702009-09-02 Colin Watson <cjwatson@ubuntu.com>
32171
32172 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
32173 to avoid implying that only one of --shift, --ctrl, or --alt may be
32174 used.
32175
c0bc232b 321762009-09-02 Colin Watson <cjwatson@ubuntu.com>
32177
32178 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
32179 rather than comparing against S_IFREG, which will almost never work.
32180
aa0f752d 321812009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
32182
32183 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
32184 (write_blocklists): Likewise.
32185
ecb3166a 321862009-09-01 Colin Watson <cjwatson@ubuntu.com>
32187
32188 * script/lua/grub_lua.h (fputs): Supply a format string as the first
32189 argument to grub_printf.
32190
c403a125 321912009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 32192
32193 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 32194 non GNU test.
31aba781 32195
b5e7312c 321962009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32197
32198 * kern/file.c (grub_file_read): Spelling fix
32199
fe00f472 322002009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32201
32202 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
32203 loading of headers in some cases.
32204
cc55302e 322052009-08-30 Robert Millan <rmh.grub@aybabtu.com>
32206
32207 * configure.ac: Bump version to 1.97~beta1.
32208 * docs/version.texi: Likewise.
32209
5c90cdd2 322102009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 32211
32212 * include/grub/i386/xnu.h: Add license header.
32213 include grub/err.h explicitly.
32214
c90edae4 322152009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32216
32217 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
32218 to `ufs' in the vfs.root.mountfrom kernel parameter.
32219
d8888b5c 322202009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32221
32222 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
32223
32224 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
32225 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
32226
32227 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
32228 `ARRAY_SIZE' macro.
32229
6f07b921 322302009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32231
32232 * kern/file.c (grub_file_read): Check offset.
32233 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
32234 * fs/jfs.c (grub_jfs_read_file): Likewise.
32235 * fs/ntfs.c (grub_ntfs_read): Likewise.
32236 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
32237 * fs/minix.c (grub_minix_read_file): Correct offset check.
32238 * fs/ufs.c (grub_ufs_read_file): Likewise.
32239
b4f34077 322402009-08-28 Colin Watson <cjwatson@ubuntu.com>
32241
32242 * term/i386/pc/console.c (bios_data_area): Cast
32243 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
32244
e7c69859 322452009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32246
32247 1-bit optimised blitters.
32248
32249 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
32250 prototype.
32251 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32252 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32253 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32254 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32255 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32256 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32257 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
32258 function.
32259 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32260 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32261 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32262 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32263 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32264 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32265 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
32266 when possible.
32267 * video/video.c (grub_video_get_blit_format): Return
32268 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
32269
a57da43f 322702009-08-28 Colin Watson <cjwatson@ubuntu.com>
32271
32272 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
32273 the first argument to grub_printf.
32274
4cbe67e5 322752009-08-28 Colin Watson <cjwatson@ubuntu.com>
322762009-08-28 Robert Millan <rmh.grub@aybabtu.com>
32277
32278 Add `getkeystatus' terminal method. Add a new `keystatus' command
32279 to query it.
32280
32281 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
32282 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
32283 modifier key bitmasks.
32284 (struct grub_term_input): Add `getkeystatus' member.
32285 (grub_getkeystatus): Add prototype.
32286 * kern/term.c (grub_getkeystatus): New function.
32287
32288 * include/grub/i386/pc/memory.h
32289 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
32290 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
32291 Data Area layout.
32292 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
32293 (grub_console_term_input): Set `getkeystatus' member.
32294 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
32295 constants.
32296 (grub_usb_keyboard_getreport): Likewise.
32297 (grub_usb_keyboard_checkkey): Likewise.
32298 (grub_usb_keyboard_getkeystatus): New function.
32299 (grub_usb_keyboard_term): Set `getkeystatus' member.
32300
32301 * commands/keystatus.c: New file.
32302 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
32303 (keystatus_mod_SOURCES): New variable.
32304 (keystatus_mod_CFLAGS): Likewise.
32305 (keystatus_mod_LDFLAGS): Likewise.
32306 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
32307 commands/keystatus.c.
32308 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32309 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32310 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32311 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32312 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32313 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 32314
6e2a9085 323152009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32316
32317 Split befs.mod and afs.mod into *_be.mod and *.mod
32318
32319 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
32320 (grub_fstest_SOURCES): Likewise.
32321 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
32322 (afs_be_mod_SOURCES): New variable.
32323 (afs_be_mod_CFLAGS): Likewise.
32324 (afs_be_mod_LDFLAGS): Likewise.
32325 (befs_be_mod_SOURCES): Likewise.
32326 (befs_be_mod_CFLAGS): Likewise.
32327 (befs_be_mod_LDFLAGS): Likewise.
32328 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
32329 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32330 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32331 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
32332 (grub_emu_SOURCES): Likewise.
32333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32334 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32335 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32336 * fs/afs_be.c: New file.
32337 * fs/befs_be.c: New file.
32338 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
32339 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
32340 (U16): Replaced with ...
32341 (grub_afs_to_cpu16): ...this. All users updated.
32342 (U32): Replaced with ...
32343 (grub_afs_to_cpu32): ...this. All users updated.
32344 (U64): Replaced with ...
32345 (grub_afs_to_cpu64): ...this. All users updated.
32346 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
32347 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 32348 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 32349 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32350 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32351 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32352 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32353 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32354 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32355 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32356 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32357
32a71655 323582009-08-26 Bean <bean123ch@gmail.com>
32359
32360 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
32361 64-bit number.
32362 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
32363 (grub_xfs_inode_block): Change return type to grub_uint64_t.
32364 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
32365
552bf6c5 323662009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32367
32368 NetBSD memory map support.
32369
32370 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
32371 (grub_netbsd_btinfo_mmap_header): New structure.
32372 (grub_netbsd_btinfo_mmap_entry): Likewise.
32373 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
32374
1ae2078c 323752009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32376
32377 Enable bsd.mod on coreboot.
32378
32379 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
32380 (bsd_mod_SOURCES): New variable.
32381 (bsd_mod_CFLAGS): Likewise.
32382 (bsd_mod_LDFLAGS): Likewise.
32383 (bsd_mod_ASFLAGS): Likewise.
32384 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
32385 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
32386
beefc598 323872009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32388
32389 Cleanup NetBSD root support.
32390
32391 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
32392 grub_bsd_get_device.
32393 Fix typo.
32394
3b76e68b 323952009-08-25 Felix Zielcke <fzielcke@z-51.de>
32396
32397 * util/grub.d/00_header.in: Move check for the video backend of
32398 gfxterm from here ...
32399 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
32400 a suitable video backend.
32401
aea664ea 324022009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32403
32404 Fix breakage in grub-setup.
32405
32406 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
32407 "msdos_partition_map".
32408
ff747d50 324092009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32410
32411 Fix breakage in normal/auth.c.
32412
32413 * normal/auth.c (grub_iswordseparator): New function.
32414
e7e1f93f 324152009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32416
32417 Authentication support.
32418
32419 * commands/password.c: New file.
32420 * conf/common.rmk (pkglib_MODULES): Add password.mod.
32421 (password_mod_SOURCES): New variable.
32422 (password_mod_CFLAGS): Likewise.
32423 (password_mod_LDFLAGS): Likewise.
32424 (normal_mod_SOURCES): Add normal/auth.c.
32425 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
32426 normal/auth.c.
32427 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32428 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32429 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32431 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32432 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32433 * include/grub/auth.h: New file.
32434 * include/grub/err.h (grub_err_t): New enum value
32435 GRUB_ERR_ACCESS_DENIED.
32436 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
32437 'users'.
32438 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
32439 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
32440 users updated.
32441 * normal/auth.c: New file.
32442 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
32443 (grub_cmdline_run): Don't allow to go to command line without
32444 authentication.
32445 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
32446 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
32447 menuentry without superuser rights.
32448 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
32449 user isn't a superuser.
32450
70f1161d 324512009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32452
32453 Save space by inlining misc.c functions.
32454
32455 * kern/misc.c (grub_iswordseparator): Made static.
32456 * kern/misc.c (grub_strcat): Moved from here ...
32457 * include/grub/misc.h (grub_strcat): ... here. Inlined.
32458 * kern/misc.c (grub_strncat): Moved from here ...
32459 * include/grub/misc.h (grub_strncat): ... here. Inlined.
32460 * kern/misc.c (grub_strcasecmp): Moved from here ...
32461 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
32462 * kern/misc.c (grub_strncasecmp): Moved from here ...
32463 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
32464 * kern/misc.c (grub_isalpha): Moved from here ...
32465 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
32466 * kern/misc.c (grub_isdigit): Moved from here ...
32467 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
32468 * kern/misc.c (grub_isgraph): Moved from here ...
32469 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
32470 * kern/misc.c (grub_tolower): Moved from here ...
32471 * include/grub/misc.h (grub_tolower): ... here. Inlined.
32472
48e40bff 324732009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32474
32475 * script/sh/function.c (grub_script_function_find): Cut error message
32476 not to flood terminal.
32477 * script/sh/lexer.c (grub_script_yylex): Remove command line length
32478 limit.
32479 * script/sh/script.c (grub_script_arg_add): Duplicate string.
32480
c385bfc3 324812009-08-24 Colin Watson <cjwatson@ubuntu.com>
32482
32483 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
32484 `report' grub_uint8_t *.
32485 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
32486 Use a 50-millisecond timeout rather than just repeating
32487 grub_usb_keyboard_getreport 50 times.
32488 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
32489
2d21e3e8 324902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32491
32492 Rename *_partition_map to part_*
32493
32494 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
32495 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
32496 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
32497 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
32498 All users updated.
32499 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
32500 All users updated.
32501 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
32502 * util/grub-probe.c (probe_partmap): Don't transform partition name
32503 to get module name.
32504
dd103c4e 325052009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32506
32507 Fix OpenBSD and NetBSD support.
32508
32509 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
32510 memory address conflict.
32511 (OPENBSD_MMAP_ACPI): New definition.
32512 (OPENBSD_MMAP_NVS): Likewise.
32513 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
32514 and OPENBSD_MMAP_NVS.
32515 Add memory map terminator
32516 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 32517 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 32518
16c84d74 325192009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32520
32521 Let user specify NetBSD root device.
32522
32523 * loader/i386/bsd.c (netbsd_root): New variable.
32524 (netbsd_opts): New option 'root'.
32525 (NETBSD_ROOT_ARG): New macro.
32526 (grub_netbsd_boot): Use 'netbsd_root'.
32527 (grub_bsd_unload): Free 'netbsd_root'.
32528 (grub_cmd_netbsd): Fill 'netbsd_root'.
32529
adb29902 325302009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32531
32532 Support for 64-bit NetBSD.
32533
32534 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
32535 point when booting non-FreeBSD.
32536
f5ae9f74 325372009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32538
32539 Support --no-smp and --no-acpi for NetBSD.
32540
32541 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
32542 (NETBSD_AB_NOACPI): Likewise.
32543 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
32544 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
32545
de74f136 325462009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32547
32548 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
32549 errors.
32550 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
32551 errors. Call grub_error when needed.
32552
e9a925da 325532009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32554
32555 * commands/search.c (search_fs): Try searching without autoload first.
32556 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
32557 filesystem module explicitly for faster booting.
32558
5174302b 325592009-08-23 Colin Watson <cjwatson@ubuntu.com>
32560
32561 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
32562
c8c80635 325632009-08-23 Colin Watson <cjwatson@ubuntu.com>
32564
32565 * util/grub.d/30_os-prober.in: Disable os-prober if
32566 `GRUB_DISABLE_OS_PROBER' was set to true.
32567
71acf5e5 325682009-08-23 Robert Millan <rmh.grub@aybabtu.com>
32569
32570 * partmap/pc.c: Rename to ...
32571 * partmap/msdos.c: ... this. Update all users.
32572 (grub_pc_partition_map): Rename to ...
32573 (grub_msdos_partition_map): ... this. Update all users.
32574
32575 * parttool/pcpart.c: Rename to ...
32576 * parttool/msdospart.c: ... this. Update all users.
32577
32578 * include/grub/pc_partition.h: Rename to ...
32579 * include/grub/msdos_partition.h: ... this. Update all users.
32580 (grub_pc_partition_bsd_entry): Rename to ...
32581 (grub_msdos_partition_bsd_entry): ... this. Update all users.
32582 (grub_pc_partition_disk_label): Rename to ...
32583 (grub_msdos_partition_disk_label): ... this. Update all users.
32584 (grub_pc_partition_entry): Rename to ...
32585 (grub_msdos_partition_entry): ... this. Update all users.
32586 (grub_pc_partition_mbr): Rename to ...
32587 (grub_msdos_partition_mbr): ... this. Update all users.
32588 (grub_pc_partition): Rename to ...
32589 (grub_msdos_partition): ... this. Update all users.
32590 (grub_pc_partition_is_empty): Rename to ...
32591 (grub_msdos_partition_is_empty): ... this. Update all users.
32592 (grub_pc_partition_is_extended): Rename to ...
32593 (grub_msdos_partition_is_extended): ... this. Update all users.
32594 (grub_pc_partition_is_bsd): Rename to ...
32595 (grub_msdos_partition_is_bsd): ... this. Update all users.
32596
32597 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
32598 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
32599 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
32600 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
32601 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
32602 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
32603 (gpt_mod_LDFLAGS): Rename to ...
32604 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
32605 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
32606 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
32607 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
32608 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
32609 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
32610 (part_gpt_mod_LDFLAGS): ... this.
32611 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
32612 `pcpart.mod' to `msdospart.mod'.
32613 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
32614 to ...
32615 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
32616 (msdospart_mod_LDFLAGS): ... this.
32617
c11fded5 326182009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32619
32620 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
32621 (openbsd_opts): Likewise.
32622 (netbsd_opts): Likewise.
32623 (freebsd_flags): Added 0 terminator.
32624 (openbsd_flags): Likewise.
32625 (netbsd_flags): Likewise.
32626 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
32627 (grub_cmd_freebsd): Transformed into extended command.
32628 (grub_cmd_openbsd): Likewise.
32629 (grub_cmd_netbsd): Likewise.
32630 (cmd_freebsd): Changed type to grub_extcmd_t.
32631 (cmd_openbsd): Likewise.
32632 (cmd_netbsd): Likewise.
32633 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
32634 grub_cmd_openbsd as extended commands.
32635 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
32636 cmd_netbsd and cmd_openbsd
32637
11d1c769 326382009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
32639
32640 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
32641
7a9094e5 326422009-08-21 Pavel Roskin <proski@gnu.org>
32643
5496c37e 32644 * Makefile.in (install-local): When checking if a file is in the
32645 build directory, use "test -e" to detect symlinks.
32646
7a9094e5 32647 * Makefile.in (install-local): Remove all files in
32648 $(DESTDIR)$(pkglibdir) before installing new files there.
32649
e53cea11 326502009-08-18 Felix Zielcke <fzielcke@z-51.de>
32651
32652 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
32653 grub-mkelfimage.
32654
9aced544 326552009-08-18 Felix Zielcke <fzielcke@z-51.de>
32656
32657 * util/grub-mkconfig.in: Don't use gfxterm by default if not
32658 explicitly specified by the user.
32659
b7da6bab 326602009-08-18 Pavel Roskin <proski@gnu.org>
32661
32662 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
32663 grub_uint8_t pointer for data.
32664 * include/grub/fbutil.h (struct grub_video_fbblit_info):
32665 Likewise.
32666 * video/fb/fbutil.c: Remove unnecessary casts.
32667
19f1b335 326682009-08-17 Michal Suchanek <hramrach@centrum.cz>
32669
32670 VBE cleanup.
32671
32672 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
32673 (grub_vbe_set_video_mode): Save active mode info
32674 only after setting the mode.
32675 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
32676 second argument.
32677
2f467aa9 326782009-08-17 Michal Suchanek <hramrach@centrum.cz>
32679
32680 Rename variables for clarity.
32681
32682 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
32683 (active_vbe_mode_info): ... this. All users updated.
32684 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
32685 All users updated.
32686 (initial_mode): Rename to ...
32687 (initial_vbe_mode): ... this. All users updated.
32688 (mode_in_use): Rename to ..
32689 (vbe_mode_in_use): ... this. All users updated.
32690 (mode_list): Rename to ..
32691 (vbe_mode_list): ... this. All users updated.
32692 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
32693 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
32694 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
32695 'mode_list_size' to 'vbe_mode_list_size'.
32696 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
32697 'best_mode_info' to 'best_vbe_mode_info' and
32698 'best_mode' to 'best_vbe_mode'
32699
6025fcd7 327002009-08-17 Michal Suchanek <hramrach@centrum.cz>
32701
32702 Remove duplicate grub_video_fb_get_video_ptr.
32703
32704 * include/grub/fbutil.h (get_data_ptr): Rename to ...
32705 (grub_video_fb_get_video_ptr): ... this.
32706 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
32707 * video/fb/fbutil.c: Add comment about addressing.
32708 (get_data_ptr): Rename to ...
32709 (grub_video_fb_get_video_ptr): ... this. All users updated.
32710 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
32711
cc8c6faf 327122009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32713
32714 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
32715 grub_dprintf() that was just added.
32716
08aa61f0 327172009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32718
32719 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
32720 (DEFAULT_VIDEO_MODE): Remove macros.
32721 (grub_linux_boot): Remove assumption that Linux has FB support,
32722 and use "text" as default video mode.
32723
7cef4f75 327242009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
32725
32726 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
32727 grub_dprintf.
32728 * fs/fat.c (grub_fat_read_data): Likewise.
32729
e1f39873 327302009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32731
32732 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
32733 payload.
32734 (grub_module): Likewise.
32735
c166d79e 327362009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32737
32738 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
32739 mbi->cmdline but free playground.
32740
c60cee8e 327412009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32742
32743 Handle group offset on UFS1.
32744
32745 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
32746 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
32747
c0d8b5d4 327482009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32749
32750 Split ufs.mod into ufs1.mod and ufs2.mod.
32751
32752 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
32753 (grub_fstest_SOURCES): Likewise.
32754 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
32755 (ufs_mod_SOURCES): Remove.
32756 (ufs_mod_CFLAGS): Likewise.
32757 (ufs_mod_LDFLAGS): Likewise.
32758 (ufs1_mod_SOURCES): New variable.
32759 (ufs1_mod_CFLAGS): Likewise.
32760 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 32761 (ufs2_mod_SOURCES): New variable.
32762 (ufs2_mod_CFLAGS): Likewise.
32763 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 32764 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
32765 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32766 Likewise.
32767 (grub_emu_SOURCES): Likewise.
32768 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32769 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32770 (grub_setup_SOURCES): Likewise.
32771 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32772 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
32773 (grub_setup_SOURCES): Likewise.
32774 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32775 Likewise.
32776 * fs/ufs2.c: New file.
32777 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
32778
d3539132 327792009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32780
32781 Framebuffer split.
32782
32783 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
32784 subsystem at the end.
32785 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
32786 (video_fb_mod_SOURCES): New variable.
32787 (video_fb_mod_CFLAGS): Likewise.
32788 (video_fb_mod_LDFLAGS): Likewise.
32789 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
32790 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
32791 * video/i386/pc/vbeblit.c: Moved from here ...
32792 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
32793 * video/i386/pc/vbefill.c: Moved from here ...
32794 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
32795 * video/i386/pc/vbeutil.c: Moved from here ...
32796 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
32797 * include/grub/i386/pc/vbeblit.h: Moved from here ...
32798 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
32799 * include/grub/i386/pc/vbefill.h: Moved from here ...
32800 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
32801 * include/grub/i386/pc/vbeutil.h: Moved from here ...
32802 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
32803 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
32804 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
32805 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
32806 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
32807 (grub_video_adapter): Added 'get_info_and_fini'.
32808 (grub_video_get_info_and_fini): New prototype.
32809 (grub_video_set_mode): make modestring const char *.
32810 * loader/i386/linux.c (grub_linux_setup_video): Use
32811 grub_video_get_info_and_fini.
32812 (grub_linux_boot): Move modesetting just before booting.
32813 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
32814 grub_video_get_info_and_fini.
32815 * video/i386/pc/vbe.c: Moved framebuffer part ...
32816 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
32817 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
32818 grub_video_fbstd_colors and grub_video_fb_set_palette.
32819 (grub_video_vbe_init): Clear 'framebuffer' variable and use
32820 grub_video_fb_init.
32821 (grub_video_vbe_fini): Use grub_video_fb_fini.
32822 (grub_video_vbe_setup): Use framebuffer.render_target instead of
32823 render_target and use grub_video_fb_set_active_render_target and
32824 grub_video_fb_set_palette.
32825 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
32826 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
32827 (grub_video_vbe_adapter): Use framebuffer.
32828 * video/video.c (grub_video_get_info_and_fini): New function.
32829 (grub_video_set_mode): Make modestring const char *.
32830 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
32831 values are already initialised.
32832
d404ee56 328332009-08-14 Pavel Roskin <proski@gnu.org>
32834
32835 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
32836 ABS and APPLE_CC.
32837 * boot/i386/pc/diskboot.S: Likewise.
32838 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
32839 sectors allow compilation on MacOSX.
32840 * conf/i386-pc.rmk: Enable unconditional compilation of
32841 lnxboot.img.
32842
9a10df16 328432009-08-13 Colin Watson <cjwatson@ubuntu.com>
32844
32845 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
32846 * util/grub.d/00_header.in: Enter interruptible sleep if
32847 GRUB_HIDDEN_TIMEOUT is set.
32848
be3c9ca7 328492009-08-13 Yves Blusseau <blusseau@zetam.org>
32850
32851 * include/grub/symbol.h: Add the LOCAL macro.
32852 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
32853 starting with "L_".
32854
1f9e557e 328552009-08-13 Pavel Roskin <proski@gnu.org>
32856
9ca62843 32857 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
32858 any modern compilers we support.
32859
1f9e557e 32860 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
32861 Use local labels starting with "L_" so that Apple assembler
32862 knows they are local.
32863
81623db6 328642009-08-10 Robert Millan <rmh.grub@aybabtu.com>
32865
32866 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
32867 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
32868 (bsd_kernel_types): ... this enum.
32869
32870 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
32871 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
32872 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
32873
32874 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
32875 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
32876 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
32877 messages.
32878
f5d35e7a 328792009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32880
32881 * util/grub-dumpdevtree: Moved from here ...
32882 * util/i386/efi/grub-dumpdevtree: ... to here.
32883 (hexify): New function. Converts a string to its hex version.
32884 Generate hex versions of "efi" and "device-properties" by calling
32885 hexify() on the ASCII strings rather than by hardcoding numbers.
32886
d1e1d527 328872009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32888
32889 * fs/jfs.c: Update copyright year.
32890
1ebbe064 328912009-08-08 Felix Zielcke <fzielcke@z-51.de>
32892
32893 * util/grub.d/00_header.in: Fix a comment.
32894 * util/grub.d/10_linux.in: Likewise.
32895 * util/grub.d/10_windows.in: Likewise.
32896 * util/grub.d/10_hurd.in: Likewise.
32897
a78c8d24 328982009-08-08 Felix Zielcke <fzielcke@z-51.de>
32899
32900 * util/grub-mkconfig.in: Allow the user to specify the used font
32901 with GRUB_FONT.
32902
29a6b9e8 329032009-08-08 Pavel Roskin <proski@gnu.org>
32904
b5f16cc4 32905 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
32906 available, xfs.mod needs it now.
32907
2f5cb827 32908 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
32909 the "g" modifier in sed when the intention is to strip something
32910 once. This fixes comparison of kernels with multiple dashes.
32911
29a6b9e8 32912 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
32913 on it. Add missing space before closing bracket. Fix
32914 misleading formatting.
32915
892a3d98 329162009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32917
32918 * docs/grub.texi: Major overhaul. Remove all sections that are
32919 specific to GRUB Legacy, or mostly composed of Legacy-specific
32920 information.
32921
ed94253f 329222009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32923
32924 * docs/version.texi: New file. Provides version information for
32925 grub.texi.
32926
126d6628 329272009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32928
32929 * docs/grub.texi: Update CVS information to SVN.
32930 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
32931
998b5aa9 329322009-08-07 Felix Zielcke <fzielcke@z-51.de>
32933
32934 * util/grub-mkconfig.in: Remove a wrong `fi'.
32935
818e094a 329362009-08-07 Felix Zielcke <fzielcke@z-51.de>
32937
32938 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
32939 (grub_jfs_uuid): New function.
32940 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
32941
b969c52f 329422009-08-07 Felix Zielcke <fzielcke@z-51.de>
32943
32944 * util/grub-mkconfig_lib.in (font_path): Move the functionality
32945 of it to ...
32946 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
32947 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
32948
7a4894cc 329492009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32950
32951 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
32952 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
32953 Update all users.
32954
32955 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
32956 not just "vmlinu[zx]".
32957 Moved from here ...
32958 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
32959 all users.
32960
32961 * util/grub.d/10_linux.in (find_latest): Moved from here ...
32962 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
32963 all users.
32964
4e2171f8 329652009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32966
32967 * util/grub.d/10_freebsd.in: Use an absolute device path for
32968 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
32969
6dcfcb32 329702009-08-06 Felix Zielcke <fzielcke@z-51.de>
32971
32972 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
32973 handling of multiple abstraction modules.
32974
f56a8756 329752009-08-04 Robert Millan <rmh.grub@aybabtu.com>
32976
32977 Fix a bug resulting in black screen when loading Linux using a
32978 packed video mode.
32979
32980 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
32981 function.
32982
32983 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
32984 (grub_vbe_bios_getset_dac_palette_width): New function.
32985 (grub_vbe_bios_get_dac_palette_width)
32986 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
32987 grub_vbe_bios_getset_dac_palette_width()).
32988
32989 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
32990 check for return status.
32991 (grub_vbe_get_video_mode_info): When getting information for a packed
32992 mode (<= 8 bpp), obtain DAC palette width using
32993 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
32994 {red,green,blue}_mark_size.
32995
222671b2 329962009-08-04 Felix Zielcke <fzielcke@z-51.de>
32997
ecb1a6d9 32998 * commands/search.c (options): Fix help output to match actual code.
222671b2 32999
f84114f5 330002009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
33001
33002 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
33003 of homegrown code.
33004
bd288a20 330052009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 33006
33007 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
33008 on XFS or ReiserFS.
33009
8aab5e25 330102009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
33011
33012 Support Apple partition map with sector size different from 512 bytes.
33013
33014 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
33015 (apple_partition_map_iterate): Respect 'aheader.blocksize'
33016 and 'apart.partmap_size'.
33017
6ad6258a 330182009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
330192009-08-01 Robert Millan <rmh.grub@aybabtu.com>
33020
33021 Fix cpuid command.
33022
33023 * commands/i386/cpuid.c (options): New variable.
33024 (grub_cmd_cpuid): Return real error.
33025 (GRUB_MOD_INIT(cpuid)): Declare options.
33026
67459bc6 330272009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
33028
33029 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
33030 valid.
33031
fbc6ab54 330322009-07-31 Bean <bean123ch@gmail.com>
33033
33034 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
33035 log2_inode.
33036 (grub_fshelp_node): Move inode field to the end.
33037 (grub_xfs_data): Remove inode field.
33038 (grub_xfs_inode_block): Calculate inode size using sblock.
33039 (grub_xfs_inode_offset): Likewise.
33040 (grub_xfs_read_inode): Calculate inode size using sblock.
33041 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
33042 (grub_xfs_iterate_dir): Calculate inode size using sblock.
33043 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
33044 to match inode size.
33045 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
33046 not accessible when data is null.
33047 (grub_xfs_open): Likewise.
33048
f45d6cfc 330492009-07-31 Bean <bean123ch@gmail.com>
33050
33051 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
33052 Don't change pv->disk if it's already set.
33053
33054 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
33055 (grub_raid_register): ... here.
33056 (grub_raid_rescan): Removed.
33057
33058 * include/grub/raid.h (grub_raid_rescan): Removed.
33059
33060 * util/grub-fstest.c: Remove include file <grub/raid.h>.
33061 (fstest): Replace grub_raid_rescan with module fini function followed
33062 by init function.
33063
33064 * util/grub-probe.c: Add include file <grub/raid.h>.
33065 (probe_raid_level): New function.
33066 (probe): Detect abstraction by walking the disk device, support two
33067 level of abstraction (LVM on RAID) when detecting partition map.
33068
24443b5a 330692009-07-31 Pavel Roskin <proski@gnu.org>
33070
33071 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
33072 to grub_zalloc(), it was erroneous.
33073 Reported by Bean <bean123ch@gmail.com>
33074
a275d9e7 330752009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
33076
33077 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 33078 embedding zone, not only the first one.
a275d9e7 33079
56c5a47f 330802009-07-29 Joe Auricchio <jauricchio@gmail.com>
33081
33082 * term/gfxterm.c (clear_char): New function.
33083 (grub_virtual_screen_setup): Use clear_char.
33084 (scroll_up): Likewise.
33085 (grub_virtual_screen_cls): Likewise.
33086
67bb323a 330872009-07-29 Felix Zielcke <fzielcke@z-51.de>
33088
33089 * util/deviceiter.c (get_acceleraid_disk_name): New static
33090 function.
33091 (grub_util_iterate_devices): Handle Accelraid devices.
33092 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
33093
388a7c75 330942009-07-28 Robert Millan <rmh.grub@aybabtu.com>
33095
33096 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
33097 separator for the suggested gfxpayload string (';' collides with the
33098 parser and needs escaping).
33099
3bb7abcf 331002009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
33101
33102 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
33103 Clear direction flag before jumping to OS.
33104 (grub_multiboot2_real_boot): Likewise.
33105
2ddd36d7 331062009-07-28 Felix Zielcke <fzielcke@z-51.de>
33107
33108 * util/i386/pc/grub-install: Fix parsing of --disk-module
33109 option.
33110
c521b62b 331112009-07-28 Felix Zielcke <fzielcke@z-51.de>
33112
33113 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
33114 when embedding.
33115
880e0a0c 331162009-07-26 Felix Zielcke <fzielcke@z-51.de>
33117
33118 * util/grub-mkconfig.in (package_version): New variable.
33119 Use it do display the version.
33120
2366e356 331212009-07-25 Felix Zielcke <fzielcke@z-51.de>
33122
33123 * kern/file.c (grub_file_open): Revert to previous check with
33124 grub_errno.
33125
7ad8c80e 331262009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33127
33128 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
33129 from help line. It's out of sync with code.
33130
72b9658b 331312009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33132
33133 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
33134 entries on failed boot.
33135
77435277 331362009-07-25 Felix Zielcke <fzielcke@z-51.de>
33137
33138 * kern/file.c (grub_file_open): Fix an error check.
33139
fcaa8b21 331402009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
33141
35d16c74 33142 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
33143 partition map couldn't be identified.
fcaa8b21 33144
48904cd1 331452009-07-23 Pavel Roskin <proski@gnu.org>
33146
ef3c317f 33147 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
33148 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
33149 case of little endian words becomes just an optimization.
33150 Respect const modifier.
ad8ea1f4 33151 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 33152
48904cd1 33153 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
33154 to avoid loss of upper bits if align is unsigned and shorter
33155 than addr.
33156
260c9a89 331572009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33158
33159 UUID support for UFS
33160
33161 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
33162 (grub_ufs_uuid): New function.
33163 (grub_ufs_fs): add .uuid
33164
f76ce889 331652009-07-21 Pavel Roskin <proski@gnu.org>
33166
33167 * kern/dl.c (grub_dl_check_header): Make static.
33168
6a6cbcaf 331692009-07-21 Felix Zielcke <fzielcke@z-51.de>
33170
33171 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
33172 add drivemap for Vista. It breaks Windows 7.
33173
cffcddb2 331742009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33175
33176 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
33177 128 bytes
33178
1ef44b80 331792009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33180
33181 Add BFS support
33182
33183 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
33184 (grub_fstest_SOURCES): Likewise.
33185 (pkglib_MODULES): Add befs.mod.
33186 (befs_mod_SOURCES): New variable.
33187 (befs_mod_CFLAGS): Likewise.
33188 (befs_mod_LDFLAGS): Likewise.
33189 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33190 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33191 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33192 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33193 (grub_setup_SOURCES): Likewise.
33194 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33195 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33196 (grub_setup_SOURCES): Likewise.
33197 * fs/befs.c: New file.
33198 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
33199 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
33200 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
33201 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
33202 (B_KEY_INDEX_ALIGN): New declaration.
33203 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
33204 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
33205 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
33206 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
33207 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
33208 (grub_afs_mount) [MODE_BFS]: Likewise.
33209 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
33210 (grub_afs_fs): Use GRUB_AFS_FSNAME
33211 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
33212 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
33213 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
33214 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
33215
4f253044 332162009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
33217
33218 * util/getroot.c (find_root_device): Add support for MacOSX.
33219 * util/hostdisk.c: Likewise.
33220
57a55913 332212009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33222
33223 * font/font.c (find_glyph): Check whether a font is present to avoid
33224 segmentation fault.
75421ca9 33225
332262009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 33227
33228 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
33229
e98cd0c2 332302009-07-20 Pavel Roskin <proski@gnu.org>
33231
33232 * configure.ac: Trim excessively wordy excuses.
33233
1d2d169a 332342009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33235
33236 Add symlink, mtime and label support to AtheFS.
33237
33238 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
33239 (grub_afs_iterate_dir): Handle symlinks.
33240 (grub_afs_open): Use grub_afs_read_symlink.
33241 (grub_afs_dir): Likewise.
33242 Pass mtime.
33243 (grub_afs_label): New function.
33244 (grub_afs_fs): Add grub_afs_label.
33245 (grub_afs_read_symlink): New function.
33246
186f3189 332472009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33248
33249 Fix AtheFS support.
33250
33251 * fs/afs.c: Fix comments style.
33252 (grub_afs_blockrun): Declare as packed.
33253 (grub_afs_datastream): Likewise.
33254 (grub_afs_bnode): Likewise.
33255 (grub_afs_btree): Likewise.
33256 (grub_afs_sblock): Likewise.
33257 Declare `name' as char.
33258 (grub_afs_inode): Declare as packed.
33259 Change void *vnode to grub_uint32_t unused.
33260 (grub_afs_iterate_dir): Check that key_size is positive.
33261 (grub_afs_mount): Don't read superblock twice.
75421ca9 33262 (grub_afs_dir): Don't free node in case of error,
186f3189 33263 grub_fshelp_find_file already handles this.
33264 (grub_afs_open): Likewise.
33265
5680109e 332662009-07-19 Pavel Roskin <proski@gnu.org>
33267
33268 * Makefile.in: Remove LIBLZO and enable_lzo.
33269 * conf/i386-pc.rmk: Remove lzo support.
33270 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
33271 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
33272 support.
33273 * kern/i386/pc/lzo1x.S: Remove.
33274 * kern/i386/pc/startup.S: Remove lzo support.
33275 * util/i386/pc/grub-mkimage.c: Likewise.
33276
ac70fa32 332772009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
33278
33279 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
33280 * fs/xfs.c (grub_xfs_dir): Likewise.
33281 * fs/afs.c (grub_afs_dir): Likewise.
33282 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
33283 (grub_iso9660_open): Likewise.
33284 * fs/jfs.c (grub_jfs_open): Likewise.
33285 * fs/ext2.c (grub_ext2_dir): Likewise.
33286 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
33287 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 33288
eab58da2 332892009-07-16 Pavel Roskin <proski@gnu.org>
33290
d2838156 33291 * configure.ac: Never add "-c" to CFLAGS.
33292
55c70904 33293 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
33294
43e6200c 33295 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
33296 grub_cv_cc_efiemu should be used.
33297
ce7a733d 33298 * configure.ac: Typo fixes.
33299
eab58da2 33300 * kern/mm.c (grub_zalloc): New function.
33301 (grub_debug_zalloc): Likewise.
33302 * include/grub/mm.h: Declare grub_zalloc() and
33303 grub_debug_zalloc().
33304 * util/misc.c (grub_zalloc): New function.
33305 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
33306 instead of grub_malloc(), remove unneeded initializations.
33307 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
33308 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
33309 * commands/parttool.c (grub_cmd_parttool): Likewise.
33310 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
33311 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
33312 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
33313 * disk/usbms.c (grub_usbms_finddevs): Likewise.
33314 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
33315 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
33316 (grub_cmd_efiemu_pnvram): Likewise.
33317 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
33318 * fs/iso9660.c (grub_iso9660_mount): Likewise.
33319 (grub_iso9660_iterate_dir): Likewise.
33320 * fs/jfs.c (grub_jfs_opendir): Likewise.
33321 * fs/ntfs.c (list_file): Likewise.
33322 (grub_ntfs_mount): Likewise.
33323 * kern/disk.c (grub_disk_open): Likewise.
33324 * kern/dl.c (grub_dl_load_core): Likewise.
33325 * kern/elf.c (grub_elf_file): Likewise.
33326 * kern/env.c (grub_env_context_open): Likewise.
33327 (grub_env_set): Likewise.
33328 (grub_env_set_data_slot): Likewise.
33329 * kern/file.c (grub_file_open): Likewise.
33330 * kern/fs.c (grub_fs_blocklist_open): Likewise.
33331 * loader/i386/multiboot.c (grub_module): Likewise.
33332 * loader/xnu.c (grub_xnu_create_key): Likewise.
33333 (grub_xnu_create_value): Likewise.
33334 * normal/main.c (grub_normal_add_menu_entry): Likewise.
33335 (read_config_file): Likewise.
33336 * normal/menu_entry.c (make_screen): Likewise.
33337 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33338 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
33339 * script/sh/script.c (grub_script_parse): Likewise.
33340 * video/bitmap.c (grub_video_bitmap_create): Likewise.
33341 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
33342 * video/readers/png.c (grub_png_output_byte): Likewise.
33343 (grub_video_reader_png): Likewise.
33344
830afef7 333452009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 33346
33347 Enable all targets that can be built by default
33348
830afef7 33349 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 33350 grub-mkfont and grub-fstest if they can be built
33351
ee293aee 333522009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33353
33354 Fix hang and segmentation fault in grub-emu-usb
33355
33356 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
33357 * util/usb.c (grub_libusb_devices): likewise
33358 (grub_libusb_init): rename to ...
33359 (GRUB_MOD_INIT (libusb)):...this
33360 (grub_libusb_fini): rename to ..
33361 (GRUB_MOD_FINI (libusb)):...this
33362 * disk/usbms.c (grub_usbms_transfer): fix retry logic
33363 * include/grub/disk.h (grub_raid_init): removed, it's useless
33364 (grub_raid_fini): likewise
33365 (grub_lvm_init): likewise
33366 (grub_lvm_fini): likewise
33367 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
33368 by grub_init_all
33369
94414221 333702009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33371
33372 Fix libusb
33373
33374 * Makefile.in (LIBUSB): new macro
33375 * genmk.rb (Utility/print_tail): new method
33376 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
33377 (top level): call util.print_tail at the end.
33378
59ade63d 333792009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33380
33381 Make FreeBSD accept zpool.cache
33382
33383 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
33384 type is /boot/zfs/zpool.cache
33385
a58da8c7 333862009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33387
33388 Fix 64-bit efiemu
33389
33390 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
33391 correct wrong typedef
33392 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
33393
20591577 333942009-07-15 Pavel Roskin <proski@gnu.org>
33395
560ca572 33396 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
33397 * kern/disk.c (struct grub_disk_cache): Likewise.
33398
e8e8e4fd 33399 * commands/probe.c (options): Typo fix.
33400
fde24e10 33401 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
33402 Increase to 0x5a to accommodate FAT32. Adjust other offsets
33403 accordingly.
33404 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
33405
379c54c1 33406 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
33407 the end of "Error" to make the message more readable.
33408
7bd8f5bf 33409 * boot/i386/pc/boot.S (kernel_segment): Remove.
33410 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
33411 for destination.
33412
40b132c5 33413 * boot/i386/pc/boot.S (boot_version): Remove.
33414 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
33415 Remove.
33416
20591577 33417 * include/grub/i386/pc/boot.h: Sort all offsets.
33418 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
33419 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
33420 * boot/i386/pc/boot.S: Assert location of every offset listed in
33421 include/grub/i386/pc/boot.h.
33422
2df32b2c 334232009-07-13 Pavel Roskin <proski@gnu.org>
33424
44b5d879 33425 * include/grub/i386/coreboot/machine.h: Rename
33426 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
33427 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
33428 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
33429
17dc3751 33430 * kern/dl.c: Force native word size to suppress warnings when
33431 compiling grub-emu.
33432
2df32b2c 33433 * kern/device.c (grub_device_iterate): Change struct part_ent to
33434 hold the name, not a pointer to it. Use one grub_malloc() per
33435 partition, not two. Free partition_name if grub_malloc() fails.
33436 Set ents to NULL only before grub_partition_iterate() is called.
33437
75c59f59 334382009-07-11 Bean <bean123ch@gmail.com>
33439
33440 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
33441 childname.
33442
0ae1bf88 334432009-07-10 Bean <bean123ch@gmail.com>
334442009-07-10 Robert Millan <rmh.grub@aybabtu.com>
33445
33446 * kern/ieee1275/openfw.c (grub_children_iterate)
33447 (grub_devalias_iterate): Fix size evaluation for property or path
33448 strings, which was broken since r2132.
33449
8279cade 334502009-07-07 Pavel Roskin <proski@gnu.org>
33451
7d8a52d3 33452 * commands/search.c (search_file): Merge into ...
33453 (search_fs): ... this. Accept search type as argument.
33454 (grub_cmd_search): Pass search type to search_fs().
33455
25f9a05a 33456 * include/grub/util/console.h: New file.
33457 * util/console.c: Use it instead of grub/machine/console.h.
33458 * util/grub-emu.c: Likewise.
33459
8279cade 33460 * lib/arg.c (find_long_option): Remove.
33461 (find_long): Add `len' argument, make `s' const char *.
33462 (grub_arg_parse): Parse long options in place, not in a
33463 temporary buffer.
33464
4a11b60f 334652009-07-06 Pavel Roskin <proski@gnu.org>
33466
99f68041 33467 * commands/search.c (search_fs): Fix potential NULL pointer
33468 dereference.
33469
4a11b60f 33470 * commands/search.c (search_fs): Replace QUID macro with quid_fn
33471 function pointer.
33472
e110f4de 334732009-07-06 Daniel Mierswa <impulze@impulze.org>
33474
33475 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
33476 comparison.
33477
46eeb6a2 334782009-07-05 Pavel Roskin <proski@gnu.org>
33479
bab74958 33480 * include/grub/i386/linux.h (struct linux_kernel_params):
33481 Restore padding3, it's still needed.
33482
46eeb6a2 33483 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
33484 FreeBSD.
33485 * util/osdetect.lua: Likewise.
33486
b4a1dc79 334872009-07-05 Bean <bean123ch@gmail.com>
33488
33489 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
33490
33491 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
33492 (grub_lua_getenv): Likewise.
33493 (grub_lua_setenv): Likewise.
33494 (save_errno): New function.
33495 (push_result): Likewise.
33496 (grub_lua_enum_device): Likewise.
33497 (grub_lua_enum_file): Likewise.
33498 (grub_lua_file_open): Likewise.
33499 (grub_lua_file_close): Likewise.
33500 (grub_lua_file_seek): Likewise.
33501 (grub_lua_file_read): Likewise.
33502 (grub_lua_file_getline): Likewise.
33503 (grub_lua_file_getsize): Likewise.
33504 (grub_lua_file_getpos): Likewise.
33505 (grub_lua_file_eof): Likewise.
33506 (grub_lua_file_exist): Likewise.
33507 (grub_lua_add_menu): Likewise.
33508
33509 * script/lua/grub_lua.h (isupper): New inline function.
33510 (islower): Likewise.
33511 (ispunct): Likewise.
33512 (isxdigit): Likewise.
33513 (strcspn): Change to normal function.
33514 (strpbkr): New function declaration.
33515 (memchr): Likewise.
33516
33517 * script/lua/grub_main.c (scan_str): New function.
33518 (strcspn): Likewise.
33519 (strpbrk): Likewise.
33520 (memchr): Likewise.
33521
33522 * script/lua/linit.c (lualibs): Enable the string library.
33523
33524 * util/osdetect.lua: New file.
33525
2da92295 335262009-07-04 Robert Millan <rmh.grub@aybabtu.com>
33527
33528 * include/grub/i386/linux.h (struct linux_kernel_params): Add
33529 `capabilities' member.
33530
b2582ec9 335312009-07-02 Pavel Roskin <proski@gnu.org>
33532
33533 * genparttoollist.sh: Add missing newline at the end.
33534
32622956 335352009-07-01 Pavel Roskin <proski@gnu.org>
33536
87a7339e 33537 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
33538
d23af54e 33539 * util/hostdisk.c (open_device): Remove `const' from
33540 `sysctl_size', as sysctlbyname() can change it (in this case it
33541 doesn't actually happen).
33542
c94b18a9 33543 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
33544 using signed long int constants.
33545
c6cd3ef0 33546 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
33547 constant to avoid a warning on FreeBSD.
33548
0df63420 33549 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
33550 where it's needed.
33551
999577f1 33552 * Makefile.in: Install include/grub/machine symlink.
33553
6f41557f 33554 * Makefile.in: When installing symlinks, use "cp -fR", which
33555 works on FreeBSD and MacOSX.
33556 From Yves Blusseau <cl7m42e02@sneakemail.com>
33557
c8d22988 33558 * kern/dl.c (grub_dl_resolve_symbol): Make static.
33559 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
33560
1b96e952 33561 * util/misc.c: Move grub_reboot() and grub_halt() ...
33562 * util/grub-emu.c: ... here. Make main_env static.
33563 * include/grub/util/misc.h: Remove main_env.
33564
2ef0084d 33565 * kern/mm.c: Use correct format to print size_t.
33566
32622956 33567 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
33568 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
33569 * kern/powerpc/dl.c: Likewise.
33570 * kern/sparc64/dl.c: Likewise.
33571 * kern/x86_64/dl.c: Likewise.
33572
3f7f0cd0 335732009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33574
33575 Fix grub-emu build on sparc64-ieee1275.
33576
75421ca9 33577 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 33578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
33579
211d06b5 335802009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33581
33582 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
33583 (grub_reboot, grub_halt): New functions.
33584
33585 * util/i386/pc/misc.c: Delete. Update all users.
33586 * util/sparc64/ieee1275/misc.c: Likewise.
33587 * util/powerpc/ieee1275/misc.c: Likewise.
33588
aaf53e3c 335892009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33590
33591 * conf/i386.rmk (setjmp_mod_SOURCES)
33592 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
33593 * conf/common.rmk (setjmp_mod_SOURCES)
33594 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
33595 to use $(target_cpu).
33596 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
33597 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
33598 * conf/powerpc-ieee1275.rmk: Likewise.
33599 * conf/sparc64-ieee1275.rmk: Likewise.
33600
33601 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
33602 $(target_cpu) for kern/$(target_cpu)/dl.c.
33603 * conf/i386-efi.rmk: Likewise.
33604 * conf/i386-ieee1275.rmk: Likewise.
33605 * conf/x86_64-efi.rmk: Likewise.
33606 * conf/i386-coreboot.rmk: Likewise.
33607 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
33608 $(target_cpu) for kern/$(target_cpu)/dl.c and for
33609 kern/$(target_cpu)/cache.S.
33610 * conf/sparc64-ieee1275.rmk: Likewise.
33611
a337130b 336122009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33613
33614 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
33615 type to `grub_uint8_t', and adjust `padding9' accordingly.
33616
c6fe4d53 336172009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33618
b09db61d 33619 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
33620
c6fe4d53 33621 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
33622 assembly in final jump, using register constraints.
33623
b09db61d 33624 (grub_linux_boot): For text mode, initialize `have_vga' using
33625 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
33626
33627 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
33628 right before the final jump.
33629
33630 Set `video_mode' to 0x3.
33631
33632 Document initialization of `video_page', `video_mode' and
33633 `video_ega_bx'.
33634
28333ad0 336352009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33636
33637 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
33638 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 33639 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 33640
02164e1b 336412009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33642
33643 Fix build on Debian / sparc.
33644
33645 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
33646
18b6c557 336472009-06-28 Pavel Roskin <proski@gnu.org>
33648
85f2aab6 33649 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
33650 fix a warning.
33651
18b6c557 33652 * util/grub.d/10_linux.in: Match SUSE style initrd names.
33653
ad760f81 336542009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33655
33656 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
33657 `err'.
33658
87a4623b 336592009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33660
33661 Revert r2338.
33662
33663 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
33664 file can't be opened. grub_file_open() is already supposed to set
75421ca9 33665 grub_errno / grub_errmsg appropriately.
87a4623b 33666 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33667
8231fb77 336682009-06-27 Pavel Roskin <proski@gnu.org>
336692009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33670
33671 * include/grub/dl.h: Include grub/elf.h.
33672 (struct grub_dl): Add symtab field.
33673 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
33674 GRUB_MODULES_MACHINE_READONLY.
33675 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
33676 of the header for read-only modules.
33677 (grub_dl_unload): Free mod->symtab for read-only modules.
33678 * kern/i386/dl.c: Use mod->symtab.
33679 * kern/powerpc/dl.c: Likewise.
33680 * kern/sparc64/dl.c: Likewise.
33681 * kern/x86_64/dl.c: Likewise.
33682
33683 * conf/i386-qemu.rmk: New file.
33684 * kern/i386/qemu/startup.S: Likewise.
33685 * kern/i386/qemu/mmap.c: Likewise.
33686 * boot/i386/qemu/boot.S: Likewise.
33687 * include/grub/i386/qemu/time.h: Likewise.
33688 * include/grub/i386/qemu/serial.h: Likewise.
33689 * include/grub/i386/qemu/kernel.h: Likewise.
33690 * include/grub/i386/qemu/console.h: Likewise.
33691 * include/grub/i386/qemu/boot.h: Likewise.
33692 * include/grub/i386/qemu/init.h: Likewise.
33693 * include/grub/i386/qemu/machine.h: Likewise.
33694 * include/grub/i386/qemu/loader.h: Likewise.
33695 * include/grub/i386/qemu/memory.h: Likewise.
33696
33697 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
33698 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
33699 [qemu] (pkglib_IMAGES): Add `boot.img'.
33700 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
33701 [qemu] (boot_img_FORMAT): New variables.
33702 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
33703 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
33704 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
33705 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
33706 [qemu] (kernel_img_FORMAT): New variables.
33707
33708 * configure.ac: Recognise `i386-qemu'.
33709
33710 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
33711 (for no compression).
33712 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
33713 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
33714 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
33715 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
33716 ifdefs).
33717
97fe384e 337182009-06-27 Pavel Roskin <proski@gnu.org>
33719
33720 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
33721 read.
33722 * efiemu/prepare32.c: Likewise.
33723 * efiemu/prepare64.c: Likewise.
33724
c402ab17 337252009-06-26 Pavel Roskin <proski@gnu.org>
33726
33727 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
33728 * include/grub/elf.h: Define symbols without "32" or "64" based
33729 on GRUB_TARGET_WORDSIZE.
33730 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
33731 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
33732 ELF definitions.
33733 * efiemu/loadcore64.c: Likewise.
33734 * loader/i386/bsd32.c: Likewise.
33735 * loader/i386/bsd64.c: Likewise.
33736 * kern/dl.c: Remove own ELF definitions.
33737 * util/i386/efi/grub-mkimage.c: Likewise.
33738
9bbdfd4d 337392009-06-23 Robert Millan <rmh.grub@aybabtu.com>
33740
33741 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
33742 segment 0x0 unconditionally, because the reference generated by
33743 GAS is an absolute address.
33744
a42ce6e9 337452009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33746
33747 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
33748 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
33749
c952cf92 337502009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33751
33752 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
33753 indexes. Check for -f explicitly.
cc3752ad 33754 (search_file): Improve error message.
33755 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 33756
132a0a59 337572009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33758
33759 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
33760 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
33761
387a140c 337622009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33763
33764 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
33765 * conf/i386-ieee1275.rmk: Likewise.
33766 * conf/i386-coreboot.rmk: Likewise.
33767
33768 * kern/i386/pc/startup.S (grub_stop): Remove function.
33769 * kern/i386/ieee1275/startup.S: Likewise.
33770 * kern/i386/coreboot/startup.S: Likewise.
33771 * kern/i386/misc.S (grub_stop): New function.
33772
41da9665 337732009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33774
33775 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
33776 * kern/i386/realmode.S (real_to_prot): ... to here.
33777
bf337234 337782009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33779
33780 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
33781 with `kernel.img'.
33782 (kernel_elf_SOURCES): Rename to ...
33783 (kernel_img_SOURCES): ... this.
33784 (kernel_elf_HEADERS): Rename to ...
33785 (kernel_img_HEADERS): ... this. Update all users.
33786 (kernel_elf_ASFLAGS): Rename to ...
33787 (kernel_img_ASFLAGS): ... this.
33788 (kernel_elf_CFLAGS): Rename to ...
33789 (kernel_img_CFLAGS): ... this.
33790 (kernel_elf_LDFLAGS): Rename to ...
33791 (kernel_img_LDFLAGS): ... this.
33792 * conf/i386-coreboot.rmk: Likewise.
33793 * conf/powerpc-ieee1275.rmk: Likewise.
33794
33795 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
33796 with "kernel.img".
33797
f52196ff 337982009-06-21 Pavel Roskin <proski@gnu.org>
33799
c3cee413 33800 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
33801 to match nested functions.
33802 * loader/sparc64/ieee1275/linux.c: Likewise.
33803
f52196ff 33804 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
33805
58750afc 338062009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33807
33808 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
33809 all i386 platforms.
33810
15355c7d 338112009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33812
33813 Fix asm file handling on ELF, and remove workarounds.
33814
33815 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 33816 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 33817 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
33818 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
33819
3f3ec72b 338202009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
33821
33822 Load BSD ELF modules
33823
33824 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
33825 and loader/i386/bsd64.c
33826 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
33827 (FREEBSD_MODTYPE_ELF_MODULE): New definition
33828 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
33829 (grub_freebsd_load_elfmodule32): New declaration
33830 (grub_freebsd_load_elfmoduleobj64): Likewise
33831 (grub_freebsd_load_elf_meta32): Likewise
33832 (grub_freebsd_load_elf_meta64): Likewise
33833 (grub_freebsd_add_meta): Likewise
33834 (grub_freebsd_add_meta_module): Likewise
33835 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
33836 (grub_freebsd_add_meta_module): Likewise and move module-specific
33837 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
33838 (grub_cmd_freebsd): Add elf-kernel specific parts
33839 based on grub_freebsd_add_meta_module
33840 (grub_cmd_freebsd_module): Add type parsing moved from
33841 grub_freebsd_add_meta_module
33842 (grub_cmd_freebsd_module_elf): New function
33843 (cmd_freebsd_module_elf): New variable
33844 (GRUB_MOD_INIT): Register freebsd_module_elf
33845 * loader/i386/bsd32.c: New file
33846 * loader/i386/bsd64.c: Likewise
33847 * loader/i386/bsdXX.c: Likewise
33848 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
33849 (grub_elf64_load): Likewise
33850 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
33851 All users updated
33852 (grub_elf64_load_hook_t): Likewise
33853
0db15301 338542009-06-21 Colin Watson <cjwatson@ubuntu.com>
33855
33856 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
33857 variable.
33858 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
33859 don't write a menu entry for recovery mode.
33860
546796c1 338612009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33862
33863 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
33864 after it's no longer needed.
33865
cd7310d5 338662009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33867
33868 * include/grub/i386/loader.h (grub_linux_prot_size)
33869 (grub_linux_tmp_addr, grub_linux_real_addr)
33870 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
33871 GRUB_MACHINE_PCBIOS.
33872 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
33873 common grub_util_info() call to ...
33874 (generate_image): ... here.
33875 Fix use of uninitialized memory, comparison of signed with
33876 unsigned integers and memory leak.
33877 Remove bogus module address message.
33878
ab32d3b5 338792009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
33880
33881 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
33882 grub_raid_register
33883 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
33884
024ef597 338852009-06-19 Pavel Roskin <proski@gnu.org>
33886
33887 * configure.ac: Remove stray AC_MSG_CHECKING.
33888
3ac72b51 338892009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
33890
33891 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 33892
e14cd814 338932009-06-18 Pavel Roskin <proski@gnu.org>
33894
33895 * conf/common.rmk: Add fs_file.mod.
33896 * disk/fs_file.c: New file.
33897 * include/grub/disk.h (enum grub_disk_dev_id): Add
33898 GRUB_DISK_DEVICE_FILE_ID.
33899
26586d98 339002009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33901
33902 Fix build with Apple's toolchain. Part 2
33903
33904 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
33905 a fake start
33906
26de2bcd 339072009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33908
33909 Fix build with Apple's toolchain. Part 1
33910
33911 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
33912 for long calls
33913 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 33914 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 33915 Apple's toolchain
33916
09b3490b 339172009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33918
33919 Fix warnings
33920
33921 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
33922 (decomp_block): initialize ch
33923 use grub_memcpy instead of memcpy
33924
c22a006a 339252009-06-17 Pavel Roskin <proski@gnu.org>
33926
d3638678 33927 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
33928 version, use declarations needed to use vga_text as the startup
33929 console.
33930
c22a006a 33931 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
33932 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
33933 the kernel.
33934 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
33935 and grub_at_keyboard_fini(), it's done on module load and
33936 unload.
33937
05b129e0 339382009-06-17 Felix Zielcke <fzielcke@z-51.de>
33939
33940 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
33941 file can't be found.
33942 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33943
cf24ed9e 339442009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
33945
33946 Fix newline handling
33947
33948 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 33949 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 33950 (grub_script_yylex): don't segfault on unterminated script
33951 newline terminates command and variable
33952
74aa8e4b 339532009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
33954
33955 avoid double grub_adjust_range call. Bug reported by David Simner
33956
33957 * kern/disk.c (grub_disk_write): change to raw disk access before
33958 calling disk_read
33959
1bd265f3 339602009-06-17 Colin Watson <cjwatson@ubuntu.com>
33961
33962 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
33963 spaces, for the benefit of help2man.
33964 * util/i386/efi/grub-mkimage.c (usage): Likewise.
33965
a2d08c06 339662009-06-16 Pavel Roskin <proski@gnu.org>
33967
33968 * kern/i386/halt.c: Include grub/machine/init.h.
33969 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
33970
b97bcb19 339712009-06-16 Felix Zielcke <fzielcke@z-51.de>
33972
33973 * util/grub.d/30_os-prober.in: Use ${root} in the generated
33974 drivemap menuentry.
33975
0644f96c 339762009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
33977
33978 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
33979 `echo' command.
33980
3ef17a2e 339812009-06-16 Pavel Roskin <proski@gnu.org>
33982
33983 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
33984 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
33985 save %dx, we only need %dl and we never change it.
33986 * boot/i386/pc/cdboot.S: Don't set the root drive.
33987 * boot/i386/pc/pxeboot.S: Likewise.
33988 * include/grub/i386/pc/boot.h: Remove
33989 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
33990 GRUB_BOOT_MACHINE_DRIVE_CHECK.
33991 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
33992 * kern/i386/pc/init.c (make_install_device): Remove references
33993 to grub_root_drive.
33994 * kern/i386/pc/startup.S: Likewise.
33995 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
33996
693fe637 339972009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
33998
33999 xnu_uuid command
34000
34001 * commands/xnu_uuid.c: new file
34002 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
34003 (xnu_uuid_mod_SOURCES): new variable
34004 (xnu_uuid_mod_CFLAGS): likewise
34005 (xnu_uuid_mod_LDFLAGS): likewise
34006 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34007 * conf/i386-ieee1275.rmk: likewise
34008 * conf/i386-pc.rmk: likewise
34009 * conf/powerpc-ieee1275.rmk: likewise
34010 * conf/sparc64-ieee1275.rmk: likewise
34011 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
34012
c9da87d0 340132009-06-16 Pavel Roskin <proski@gnu.org>
34014
34015 * configure.ac: Avoid '==' in test command, it's not portable.
34016
9c6f4596 340172009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34018
34019 Probe command
34020
34021 * commands/probe.c: new file
34022 * conf/common.rmk (pkglib_MODULES): add probe.mod
34023 (probe_mod_SOURCES): new variable
34024 (probe_mod_CFLAGS): likewise
34025 (probe_mod_LDFLAGS): likewise
34026 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34027 * conf/i386-ieee1275.rmk: likewise
34028 * conf/i386-pc.rmk: likewise
34029 * conf/powerpc-ieee1275.rmk: likewise
34030 * conf/sparc64-ieee1275.rmk: likewise
34031
70b7f9fd 340322009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
34033
34034 Fix handling of string like \"hello\" and "a
34035 b"
34036
34037 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
34038 (grub_script_yylex): fix parsing of quoting, escaping and newline
34039
71c79a6b 340402009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
34041
dd74360c 34042 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 34043 handling
dd74360c 34044
0644f96c 340452009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 34046
34047 * util/grub-mkconfig.in: Fix parsing of --output option.
34048
e40893c3 340492009-06-12 Pavel Roskin <proski@gnu.org>
34050
34051 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
34052 genmk.rb don't need to be generated or installed.
34053
3a1acfe2 340542009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
34055
34056 * commands/i386/pc/drivemap_int13h.S: add more comments
34057
3a4575d4 340582009-06-11 Pavel Roskin <proski@gnu.org>
34059
0658e928 34060 * Makefile.in (uninstall): Uninstall manuals.
34061
ca0388f0 34062 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
34063 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
34064 and update-grub_lib in two places.
34065 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
34066
e3b27c39 34067 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
34068 a compiler warning.
34069
3a4575d4 34070 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
34071 `entry_lo' to fix variable shadowing.
34072
af1f4f55 340732009-06-11 Christian Franke <franke@computer.org>
34074
34075 * kern/misc.c (__enable_execute_stack): Add missing return type
34076 to prevent gcc warning.
34077
5225e649 340782009-06-11 Felix Zielcke <fzielcke@z-51.de>
34079
34080 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
34081
7d83bd47 340822009-06-11 Pavel Roskin <proski@gnu.org>
34083
c1cb63ba 34084 * Makefile.in: Don't rely on any scripts being executable.
34085 Always use $(SHELL) to run shell scripts.
34086
7d83bd47 34087 * configure.ac: Always define ___main if using -nostdlib. This
34088 fixes tests on Cygwin.
34089
948f48e7 340902009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
34091
34092 UDF fix
34093
7d83bd47 34094 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 34095 is in bytes and not in blocks
7d83bd47 34096
8ada9bc1 340972009-06-11 Pavel Roskin <proski@gnu.org>
34098
34099 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
34100 warning.
34101
25ad2323 341022009-06-11 Felix Zielcke <fzielcke@z-51.de>
34103
34104 * util/grub.d/30_os-prober.in: Fix a comment. Source
34105 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
34106 to set the root device. Place drivemap command in the generated
34107 chain entry.
34108
e65acb0c 341092009-06-11 Pavel Roskin <proski@gnu.org>
34110
34111 * configure.ac: Remove host_m32. Issues with 64-bit utilities
34112 have long been resolved.
34113
f285fe2d 341142009-06-11 Colin Watson <cjwatson@ubuntu.com>
34115
bd47b0b5 34116 * util/grub.d/10_linux.in: Capitalise "Linux".
34117
f285fe2d 34118 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
34119
a0c62e4e 341202009-06-11 Pavel Roskin <proski@gnu.org>
34121
b6783cb2 34122 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
34123 fix a gcc warning and ensure that the function won't ever exit.
34124
dde032e8 34125 * kern/i386/ieee1275/init.c: Add missing prototype for
34126 grub_stop_floppy().
34127
22cd079d 34128 * loader/ieee1275/multiboot2.c [__i386__]: Include
34129 grub/cpu/multiboot.h.
34130
a0c62e4e 34131 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
34132 casts to short - they are not portable and cause warnings. Fix
34133 use of uninitialized values in input_buf. Use ARRAY_SIZE.
34134
63963d17 341352009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
34136
34137 Drivemap fixes
34138
34139 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
34140 new function
34141 (grub_get_root_biosnumber_saved): new variable
34142 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
34143 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 34144 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 34145 %dx after the call if necessary
34146 * conf/common.rmk (pkglib_MODULES): remove boot.mod
34147 (boot_mod_SOURCES): remove
34148 (boot_mod_CFLAGS): remove
34149 (boot_mod_LDFLAGS): remove
34150 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
34151 (boot_mod_SOURCES): new variable
34152 (boot_mod_CFLAGS): likewise
34153 (boot_mod_LDFLAGS): likewise
34154 * conf/i386-efi.rmk: likewise
34155 * conf/i386-ieee1275.rmk: likewise
34156 * conf/i386-pc.rmk: likewise
34157 * conf/powerpc-ieee1275.rmk: likewise
34158 * conf/sparc64-ieee1275.rmk: likewise
34159 * conf/x86_64-efi.rmk: likewise
34160 * include/grub/i386/pc/biosnum.h: new file
34161 * lib/i386/pc/biosnum.c: likewise
34162 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
34163 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
34164 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 34165
33abf7ae 341662009-06-10 Pavel Roskin <proski@gnu.org>
34167
5ac35b35 34168 * io/gzio.c (test_header): Don't reuse one buffer for all data.
34169 Use separate variables. Read only the file size at the end, but
34170 not the checksum that we don't use.
34171
5c5215d5 34172 * kern/file.c (grub_file_read): Use void pointer for the buffer.
34173 Adjust all callers.
34174
27d5fef7 34175 * kern/ieee1275/openfw.c: Remove libc includes.
34176 * kern/ieee1275/cmain.c: Likewise.
34177 * include/grub/ieee1275/ieee1275.h: Likewise.
34178
33abf7ae 34179 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
34180 compiler warnings.
34181
19d50c2b 341822009-06-10 Felix Zielcke <fzielcke@z-51.de>
34183
34184 * Makefile.in: Remove all trailing whitespace.
34185 * conf/i386-pc.rmk: Likewise.
34186 * conf/powerpc-ieee1275.rmk: Likewise.
34187 * conf/sparc64-ieee1275.rmk: Likewise.
34188 * docs/grub.texi: Likewise.
34189 * docs/texinfo.tex: Likewise.
34190 * disk/fs_uuid.c: Likewise.
34191 * disk/lvm.c: Likewise.
34192 * disk/scsi.c: Likewise.
34193 * disk/ata.c: Likewise.
34194 * disk/ieee1275/ofdisk.c: Likewise.
34195 * disk/i386/pc/biosdisk.c: Likewise.
34196 * disk/host.c: Likewise.
34197 * disk/raid.c: Likewise.
34198 * disk/efi/efidisk.c: Likewise.
34199 * disk/usbms.c: Likewise.
34200 * disk/memdisk.c: Likewise.
34201 * disk/loopback.c: Likewise.
34202 * kern/powerpc/dl.c: Likewise.
34203 * kern/device.c: Likewise.
34204 * kern/dl.c: Likewise.
34205 * kern/sparc64/dl.c: Likewise.
34206 * kern/ieee1275/ieee1275.c: Likewise.
34207 * kern/term.c: Likewise.
34208 * kern/fs.c: Likewise.
34209 * kern/i386/dl.c: Likewise.
34210 * kern/i386/pc/startup.S: Likewise.
34211 * kern/i386/pc/init.c: Likewise.
34212 * kern/i386/pc/mmap.c: Likewise.
34213 * kern/i386/pc/lzo1x.S: Likewise.
34214 * kern/i386/ieee1275/init.c: Likewise.
34215 * kern/i386/realmode.S: Likewise.
34216 * kern/i386/tsc.c: Likewise.
34217 * kern/partition.c: Likewise.
34218 * kern/corecmd.c: Likewise.
34219 * kern/file.c: Likewise.
34220 * kern/efi/efi.c: Likewise.
34221 * kern/efi/init.c: Likewise.
34222 * kern/efi/mm.c: Likewise.
34223 * kern/main.c: Likewise.
34224 * kern/err.c: Likewise.
34225 * kern/env.c: Likewise.
34226 * kern/disk.c: Likewise.
34227 * kern/generic/millisleep.c: Likewise.
34228 * kern/generic/rtc_get_time_ms.c: Likewise.
34229 * kern/misc.c: Likewise.
34230 * kern/parser.c: Likewise.
34231 * genmk.rb: Likewise.
34232 * configure.ac: Likewise.
34233 * boot/i386/pc/diskboot.S: Likewise.
34234 * boot/i386/pc/pxeboot.S: Likewise.
34235 * boot/i386/pc/boot.S: Likewise.
34236 * boot/i386/pc/lnxboot.S: Likewise.
34237 * boot/i386/pc/cdboot.S: Likewise.
34238 * parttool/pcpart.c: Likewise.
34239 * video/readers/tga.c: Likewise.
34240 * video/video.c: Likewise.
34241 * video/bitmap.c: Likewise.
34242 * lib/envblk.c: Likewise.
34243 * lib/i386/setjmp.S: Likewise.
34244 * fs/xfs.c: Likewise.
34245 * fs/afs.c: Likewise.
34246 * fs/fat.c: Likewise.
34247 * fs/ntfs.c: Likewise.
34248 * fs/udf.c: Likewise.
34249 * fs/affs.c: Likewise.
34250 * fs/iso9660.c: Likewise.
34251 * fs/hfs.c: Likewise.
34252 * fs/fshelp.c: Likewise.
34253 * fs/ext2.c: Likewise.
34254 * fs/jfs.c: Likewise.
34255 * fs/reiserfs.c: Likewise.
34256 * fs/hfsplus.c: Likewise.
34257 * fs/minix.c: Likewise.
34258 * fs/cpio.c: Likewise.
34259 * fs/sfs.c: Likewise.
34260 * fs/ufs.c: Likewise.
34261 * efiemu/prepare.c: Likewise.
34262 * efiemu/loadcore_common.c: Likewise.
34263 * efiemu/runtime/efiemu.sh: Likewise.
34264 * efiemu/runtime/efiemu.S: Likewise.
34265 * efiemu/runtime/efiemu.c: Likewise.
34266 * efiemu/pnvram.c: Likewise.
34267 * efiemu/main.c: Likewise.
34268 * efiemu/i386/pc/cfgtables.c: Likewise.
34269 * efiemu/i386/loadcore64.c: Likewise.
34270 * efiemu/i386/loadcore32.c: Likewise.
34271 * efiemu/loadcore.c: Likewise.
34272 * efiemu/symbols.c: Likewise.
34273 * efiemu/mm.c: Likewise.
34274 * include/grub/autoefi.h: Likewise.
34275 * include/grub/datetime.h: Likewise.
34276 * include/grub/term.h: Likewise.
34277 * include/grub/hfs.h: Likewise.
34278 * include/grub/lvm.h: Likewise.
34279 * include/grub/i386/tsc.h: Likewise.
34280 * include/grub/i386/linux.h: Likewise.
34281 * include/grub/i386/xnu.h: Likewise.
34282 * include/grub/i386/efiemu.h: Likewise.
34283 * include/grub/i386/pc/biosdisk.h: Likewise.
34284 * include/grub/i386/pc/memory.h: Likewise.
34285 * include/grub/i386/pc/vbe.h: Likewise.
34286 * include/grub/parttool.h: Likewise.
34287 * include/grub/video.h: Likewise.
34288 * include/grub/memory.h: Likewise.
34289 * include/grub/fs.h: Likewise.
34290 * include/grub/partition.h: Likewise.
34291 * include/grub/xnu.h: Likewise.
34292 * include/grub/efi/api.h: Likewise.
34293 * include/grub/efi/pe32.h: Likewise.
34294 * include/grub/efi/memory.h: Likewise.
34295 * include/grub/multiboot.h: Likewise.
34296 * include/grub/usbdesc.h: Likewise.
34297 * include/grub/multiboot2.h: Likewise.
34298 * include/grub/acpi.h: Likewise.
34299 * include/grub/efiemu/efiemu.h: Likewise.
34300 * include/grub/disk.h: Likewise.
34301 * include/grub/ieee1275/ieee1275.h: Likewise.
34302 * include/grub/net.h: Likewise.
34303 * include/grub/machoload.h: Likewise.
34304 * include/grub/macho.h: Likewise.
34305 * include/multiboot.h: Likewise.
34306 * genmoddep.awk: Likewise.
34307 * normal/main.c: Likewise.
34308 * normal/menu_entry.c: Likewise.
34309 * normal/menu_viewer.c: Likewise.
34310 * normal/completion.c: Likewise.
34311 * normal/cmdline.c: Likewise.
34312 * normal/misc.c: Likewise.
34313 * normal/datetime.c: Likewise.
34314 * bus/usb/usbtrans.c: Likewise.
34315 * bus/usb/ohci.c: Likewise.
34316 * bus/usb/uhci.c: Likewise.
34317 * bus/usb/usb.c: Likewise.
34318 * mmap/efi/mmap.c: Likewise.
34319 * mmap/i386/pc/mmap_helper.S: Likewise.
34320 * mmap/i386/pc/mmap.c: Likewise.
34321 * mmap/i386/mmap.c: Likewise.
34322 * mmap/i386/uppermem.c: Likewise.
34323 * mmap/mmap.c: Likewise.
34324 * commands/acpi.c: Likewise.
34325 * commands/echo.c: Likewise.
34326 * commands/blocklist.c: Likewise.
34327 * commands/loadenv.c: Likewise.
34328 * commands/usbtest.c: Likewise.
34329 * commands/boot.c: Likewise.
34330 * commands/parttool.c: Likewise.
34331 * commands/search.c: Likewise.
34332 * commands/cat.c: Likewise.
34333 * commands/i386/pc/play.c: Likewise.
34334 * commands/i386/pc/drivemap.c: Likewise.
34335 * commands/i386/pc/vbeinfo.c: Likewise.
34336 * commands/i386/pc/acpi.c: Likewise.
34337 * commands/i386/pc/vbetest.c: Likewise.
34338 * commands/ls.c: Likewise.
34339 * commands/cmp.c: Likewise.
34340 * commands/test.c: Likewise.
34341 * commands/efi/acpi.c: Likewise.
34342 * commands/gptsync.c: Likewise.
34343 * commands/help.c: Likewise.
34344 * partmap/amiga.c: Likewise.
34345 * partmap/apple.c: Likewise.
34346 * partmap/acorn.c: Likewise.
34347 * partmap/pc.c: Likewise.
34348 * partmap/sun.c: Likewise.
34349 * partmap/gpt.c: Likewise.
34350 * script/sh/lexer.c: Likewise.
34351 * script/sh/function.c: Likewise.
34352 * font/font.c: Likewise.
34353 * font/font_cmd.c: Likewise.
34354 * loader/powerpc/ieee1275/linux.c: Likewise.
34355 * loader/efi/chainloader.c: Likewise.
34356 * loader/multiboot_loader.c: Likewise.
34357 * loader/macho.c: Likewise.
34358 * loader/i386/multiboot.c: Likewise.
34359 * loader/i386/linux.c: Likewise.
34360 * loader/i386/pc/linux.c: Likewise.
34361 * loader/i386/pc/multiboot2.c: Likewise.
34362 * loader/i386/pc/chainloader.c: Likewise.
34363 * loader/i386/pc/xnu.c: Likewise.
34364 * loader/i386/bsd_trampoline.S: Likewise.
34365 * loader/i386/efi/linux.c: Likewise.
34366 * loader/i386/multiboot_elfxx.c: Likewise.
34367 * loader/i386/bsd_helper.S: Likewise.
34368 * loader/i386/bsd.c: Likewise.
34369 * loader/i386/linux_trampoline.S: Likewise.
34370 * loader/i386/xnu_helper.S: Likewise.
34371 * loader/i386/xnu.c: Likewise.
34372 * loader/i386/bsd_pagetable.c: Likewise.
34373 * loader/i386/multiboot_helper.S: Likewise.
34374 * loader/xnu.c: Likewise.
34375 * loader/xnu_resume.c: Likewise.
34376 * io/gzio.c: Likewise.
34377 * term/efi/console.c: Likewise.
34378 * term/terminfo.c: Likewise.
34379 * term/ieee1275/ofconsole.c: Likewise.
34380 * term/i386/pc/serial.c: Likewise.
34381 * term/i386/pc/vesafb.c: Likewise.
34382 * term/i386/pc/vga.c: Likewise.
34383 * term/usb_keyboard.c: Likewise.
34384 * term/gfxterm.c: Likewise.
34385 * aclocal.m4: Likewise.
34386 * util/lvm.c: Likewise.
34387 * util/grub.d/30_os-prober.in: Likewise.
34388 * util/grub.d/10_hurd.in: Likewise.
34389 * util/console.c: Likewise.
34390 * util/grub-macho2img.c: Likewise.
34391 * util/grub-probe.c: Likewise.
34392 * util/hostfs.c: Likewise.
34393 * util/i386/pc/grub-mkimage.c: Likewise.
34394 * util/i386/pc/grub-setup.c: Likewise.
34395 * util/i386/efi/grub-mkimage.c: Likewise.
34396 * util/grub-mkconfig.in: Likewise.
34397 * util/raid.c: Likewise.
34398 * util/resolve.c: Likewise.
34399 * util/grub-mkdevicemap.c: Likewise.
34400 * util/grub-emu.c: Likewise.
34401 * util/getroot.c: Likewise.
34402 * util/hostdisk.c: Likewise.
34403 * util/usb.c: Likewise.
34404 * util/grub-editenv.c: Likewise.
34405 * util/misc.c: Likewise.
34406
d2d49665 344072009-06-10 Felix Zielcke <fzielcke@z-51.de>
34408
34409 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
34410 `genparttoollist.sh'.
34411 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
34412 Add `*.sh' to the list find searches for and change `mdate.sh'
34413 to `mdate-sh'.
34414
fe052e37 344152009-06-10 Pavel Roskin <proski@gnu.org>
34416
2763ac18 34417 * include/grub/multiboot2.h: Provide compatibility defines for
34418 multiboot2.h.
34419 * include/multiboot2.h: Include stdint.h only if needed, using
34420 angle brackets.
34421 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
34422 grub/multiboot2.h.
34423 * loader/ieee1275/multiboot2.c: Likewise.
34424 * loader/multiboot2.c: Likewise.
34425 * loader/multiboot_loader.c: Likewise.
34426
437e6adc 34427 * configure.ac: Use -nostdlib when probing for the target. It
34428 should not be required to have libc for the target.
34429
06a6836c 34430 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
34431 they fail without libc headers for the target.
34432 * include/grub/powerpc/libgcc.h: Use weak attribute for all
34433 exports.
34434 * include/grub/sparc64/libgcc.h: Likewise. Don't use
34435 preprocessor conditionals.
34436
fe052e37 34437 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
34438 build system doesn't need to be aware of the tar.c internals.
34439
afd22553 344402009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 34441
afd22553 34442 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 34443
6b787c4f 344442009-06-09 Robert Millan <rmh.grub@aybabtu.com>
34445
34446 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
34447 disk limit to 26 for IDE, Virtio, Xen and SCSI.
34448
344492009-06-09 Felix Zielcke <fzielcke@z-51.de>
34450
34451 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 34452 aren't available if ata.mod gets used.
6b787c4f 34453
473d1e45 344542009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 34455
473d1e45 34456 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 34457 initialising controller.
473d1e45 34458 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 34459
255a27d4 344602009-06-08 Felix Zielcke <fzielcke@z-51.de>
34461
34462 * util/i386/pc/grub-install.in: Add a parameter --disk-module
34463 to choose between ata and biosdisk module on i386-pc.
34464
473d1e45 344652009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 34466
d55842d8 34467 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
34468 Subclass and Programming Interface fields in terms of the 3 byte
34469 Class Code register.
34470 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34471
fa5db0b1 34472 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
34473 interface is OHCI. Add grub_dprintf for symmetry with
34474 bus/usb/uhci.c.
34475 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
34476 interface is UHCI. Add interf variable for programming
34477 interface. Print interface with class/subclass.
34478
c0947beb 34479 * bus/usb/ohci.c: Set interf with correct field.
34480
69da8877 34481 * bus/usb/uhci.c: Remove unneeded doubled lines.
34482 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
34483 Remove whitespace inside comment.
34484
9e172e30 344852009-06-08 Robert Millan <rmh.grub@aybabtu.com>
34486
34487 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
34488 as fallback an equivalent option without depth.
34489
de65ee2b 344902009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34491
34492 Not fail if unable to retrieve C/H/S on LBA disks
34493
473d1e45 34494 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 34495 if unable to retrieve C/H/S on LBA disks
34496
b57ea2c9 344972009-06-08 Pavel Roskin <proski@gnu.org>
34498
34499 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
34500 about aliasing.
34501
af361263 345022009-06-08 Felix Zielcke <fzielcke@z-51.de>
34503
34504 * Makefile.in (uninstall): Remove all $lib_DATA files.
34505
4c9ec6b3 345062009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34507
34508 Bugfix: install on partitionless device
34509
34510 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
34511 is a whole disk
34512
e76fc924 345132009-06-08 Felix Zielcke <fzielcke@z-51.de>
34514
34515 * Makefile.in (uninstall): Remove all $include_DATA files.
34516
ba5a0d05 345172009-06-08 Felix Zielcke <fzielcke@z-51.de>
34518
34519 * commands/true.c: New file. Implement the true and false commands.
34520 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
34521 (true_mod_SOURCES): New variable.
34522 (true_mod_CFLAGS): Likewise.
34523 (true_mod_LDFLAGS): Likewise.
34524
c8048e32 345252009-06-05 Colin D Bennett <colin@gibibit.com>
34526
34527 Optimized font character lookup using binary search instead of linear
34528 search. Fonts now are required to have the character index ordered by
34529 code point.
34530
34531 * font/font.c (load_font_index): Verify that fonts have ordered
34532 character indices.
34533 (find_glyph): Use binary search instead of linear search to find a
34534 character in a font.
34535
408305be 345362009-06-05 Michael Scherer <misc@mandriva.org>
34537
34538 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
34539 uses case sensitive btree.
34540 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
34541 only for case insensitive filesystems.
34542
8ee1e0d9 345432009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
34544
34545 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
34546 * conf/common.rmk (search_mod_CFLAGS): likewise
34547
a9966eb1 345482009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34549
473d1e45 34550 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 34551 compensate a compiler bug
34552
9e7100fb 345532009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34554
473d1e45 34555 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 34556 instead of '\b'
473d1e45 34557
ede21d71 345582009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34559
34560 Definitions for creating asm symbols with Apple's CC
34561
34562 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
34563 [APPLE_CC] (VARIABLE): likewise
34564
9dbf7653 345652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34566
34567 Disable lnxboot.img when compiled
34568 with Apple's CC
34569
34570 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
34571 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
34572 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
34573 [! APPLE_CC] (CODE_LENG): skip
34574 [! APPLE_CC] (setup_sects): likewise
34575 [! APPLE_CC]: skip filling
473d1e45 34576
e93cdc3d 345772009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34578
34579 Address in trampolines based on 32-bit registers when compiled
34580 with Apple's CC
34581
473d1e45 34582 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 34583 for addresses
34584 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
34585
6c688477 345862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34587
34588 Avoid aliases when compiling with Apple's CC for PCBIOS machine
34589
34590 * kern/misc.c [APPLE_CC] (memcpy): new function
34591 [APPLE_CC] (memmove): likewise
34592 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 34593 (memcpy): define alias conditionally on !APPLE_CC
6c688477 34594 (memset): likewise
34595 (abort): likewise
34596 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
34597 APPLE_CC are defined
34598 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
34599 (grub_assert_fail): make prototype conditional
34600
e37ffc5c 346012009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34602
34603 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
34604
473d1e45 34605 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
34606 grub-macho2img
e37ffc5c 34607 (CLEANFILES): add grub-macho2img
34608 (grub_macho2img_SOURCES): new variable
34609 * kern/i386/pc/startup.S (bss_start): new variable
34610 (bss_end): likewise
34611 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
34612 * util/grub-macho2img.c: new file
34613
cf00df31 346142009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34615
34616 Use objconv when compiling with Apple's CC
34617
34618 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
34619 (efiemu64.o): likewise
34620 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
34621 when compiling with Apple's CC
34622 (efiemu64_s.o): likewise
34623 * configure.ac: check for objconv when compiling with Apple's CC
34624 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 34625
d119a20c 346262009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34627
34628 Define segment as well as section when compiling with
34629 Apple's CC
34630
34631 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
34632 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
34633 (efiemu_convert_pointer): likewise
34634 (efiemu_set_virtual_address_map): likewise
34635 (efiemu_convert_pointer): likewise
34636 (efiemu_getcrc32): likewise
34637 (init_crc32_table): likewise
34638 (reflect): likewise
34639 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
34640 (GRUB_MOD_DEP): likewise
473d1e45 34641
c8600122 346422009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34643
34644 Allow a compilation without -mcmodel=large
34645
34646 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
34647 when compiled without -mcmodel=large
473d1e45 34648 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 34649 without -mcmodel=large
473d1e45 34650 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 34651 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 34652
e8df1d4e 346532009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34654
34655 Remove nested functions in efiemu core
34656
34657 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 34658
cc6c3ac1 346592009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34660
34661 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
34662
34663 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
34664 temporary storage
473d1e45 34665 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
34666 using Apple's CC
cc6c3ac1 34667 (grub_cpu_is_tsc_supported): likewise
34668 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 34669
3e325901 346702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34671
34672 Absolute addressing through constant with Apple's cc
34673
34674 * kern/i386/pc/startup.S: Define necessary constants
34675 and address through it when using ABS with Apple's CC
34676 * boot/i386/pc/diskboot.S: likewise
34677 * boot/i386/pc/boot.S: likewise
34678 * boot/i386/pc/lnxboot.S: likewise
34679 * boot/i386/pc/cdboot.S: likewise
34680 * mmap/i386/pc/mmap_helper.S: likewise
34681 * commands/i386/pc/drivemap_int13h.S: likewise
34682
2b167a72 346832009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34684
34685 Check if compiler is apple cc
34686
34687 * Makefile.in (ASFLAGS): new variable
34688 (TARGET_ASFLAGS): likewise
34689 (TARGET_MODULE_FORMAT): likewise
34690 (TARGET_APPLE_CC): likewise
34691 (OBJCONV): likewise
34692 (TARGET_IMG_CFLAGS): likewise
34693 (TARGET_CPPFLAGS): add includedir
34694 * configure.ac: call grub_apple_cc and grub_apple_target_cc
34695 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
34696 Check for linker script only if compiler isn't Apple's CC
34697 (TARGET_MODULE_FORMAT): set
34698 (TARGET_APPLE_CC): likewise
34699 (TARGET_ASFLAGS): likewise
34700 (ASFLAGS): likewise
34701 Check for objcopy only if compiler isn't Apple's CC
34702 Check for BSS symbol only if compiler isn't Apple's CC
34703 * genmk.rb: adapt nm options if we use Apple's utils
34704 * aclocal.m4 (grub_apple_cc): new test
34705 (grub_apple_target_cc): likewise
473d1e45 34706
fb14123e 347072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34708
34709 Simplify sed expressions and improve awk
34710
34711 * Makefile.in (install-local): simplify sed expression
34712 * gencmdlist.sh: likewise
34713 * genmoddep.awk: avoid adding module as a dependency of itself
34714
5b889789 347152009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34716
34717 Add missing start symbols
34718
34719 * boot/i386/pc/boot.S: add start
fb14123e 34720 * boot/i386/pc/pxeboot.S: likewise
473d1e45 34721
fd2bf2e3 347222009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34723
34724 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 34725
34726 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 34727 (relocate_addresses): consider both r_addend and value at offset
34728 (make_mods_section): zerofill modinfo and header
34729 (convert_elf): write prefix here
473d1e45 34730
5389763d 347312009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34732
34733 Use .asciz instead of .string
34734
34735 * i386/pc/diskboot.S: use .asciz instead of .string
34736 * i386/pc/boot.S: likewise
34737 * include/grub/dl.h (GRUB_MOD_DEP): likewise
34738 (GRUB_MOD_NAME): likewise
473d1e45 34739
3eb5ed4e 347402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34741
34742 gfxpayload support
34743
34744 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
34745 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
34746 (grub_video_setup): remove
34747 (grub_video_set_mode): new prototype
34748 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
34749 (vid_mode): remove
34750 (linux_vesafb_res): compile only on PCBIOS
34751 (grub_linux_boot): support gfxpayload
34752 * loader/i386/pc/xnu.c (video_hook): new function
34753 (grub_xnu_set_video): support gfxpayload
34754 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
34755 (DEFAULT_VIDEO_HEIGHT): likewise
34756 (DEFAULT_VIDEO_FLAGS): likewise
34757 (DEFAULT_VIDEO_MODE): new definition
34758 (video_hook): new function
34759 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 34760 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 34761 loading xnu
34762 * video/video.c (grub_video_setup): removed
473d1e45 34763 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 34764 grub_video_setup
34765
4b0e1143 347662009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34767
34768 Avoid calling biosdisk in drivemap
34769
34770 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
34771 (revparse_biosdisk): likewise
34772 (list_mappings): derive name from id directly
34773 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 34774
fda6cb98 347752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34776
34777 Script fixes
34778
34779 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
34780 (grub_lexer_param): add tokenonhold
34781 (grub_script_create_cmdline): remove cmdline. All callers updated
34782 (grub_script_function_create): make functionname
34783 grub_script_arg. All callers updated
34784 (grub_script_execute_argument_to_string): new prototype
34785 * kern/parser.c (state_transitions): reorder
34786 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 34787 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 34788 make global
34789 (grub_script_execute_cmdline): use new format
34790 * script/sh/function.c (grub_script_function_create): make functionname
34791 grub_script_arg. All callers updated
473d1e45 34792 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 34793 (grub_script_yylex): remove
34794 (grub_script_yylex2): renamed to ...
34795 (grub_script_yylex): ...renamed
34796 parse the expressions like a${b}c
34797 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
34798 (GRUB_PARSER_TOKEN_VAR): remove
34799 (GRUB_PARSER_TOKEN_NAME): likewise
34800 ("if"): declare as typeless
34801 ("while"): likewise
34802 ("function"): likewise
34803 ("else"): likewise
34804 ("then"): likewise
34805 ("fi"): likewise
34806 (text): remove
34807 (argument): likewise
34808 (script): accept empty scripts and make exit on error
34809 (arguments): use GRUB_PARSER_TOKEN_ARG
34810 (function): likewise
34811 (command): move error handling to script
34812 (menuentry): move grub_script_lexer_ref before
473d1e45 34813 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 34814 argument. All callers updated
34815
f4448a07 348162009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34817
34818 Prevent GRUB from probing floppies during boot.
34819
34820 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
34821 * commands/search.c (options): Add --no-floppy.
34822 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
34823 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
34824 --no-floppy when searching for UUIDs.
34825
2bf5885a 348262009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34827
34828 Simplify the code duplication in commands/search.c.
34829
34830 * commands/search.c (search_label, search_fs_uuid): Merge into ...
34831 (search_fs): ... this. Update all users.
34832
f6fd460a 348332009-06-03 Felix Zielcke <fzielcke@z-51.de>
34834
34835 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
34836
cbb3c83e 348372009-05-28 Pavel Roskin <proski@gnu.org>
34838
57788cfd 34839 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
34840 Remove the original symlink explicitly.
34841
cbb3c83e 34842 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
34843 just one slash. That's how grub_fshelp_find_file() does it.
34844
cd0d5e30 348452009-05-26 Pavel Roskin <proski@gnu.org>
34846
f0f8bbe2 34847 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
34848 to `str'.
34849
cd0d5e30 34850 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
34851 possibly unused.
34852
8c2cab51 348532009-05-25 Christian Franke <franke@computer.org>
34854
34855 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
34856 register.
34857 (grub_atapi_identify): Add wait after drive select.
34858 (grub_ata_identify): Do more strict status register check before
34859 calling grub_atapi_identify (). Suppress error message if status
34860 register is 0x00 after command failure. Add status register
34861 check after PIO read to avoid bogus identify due to stuck DRQ.
34862 Thanks to Pavel Roskin for testing.
34863 (grub_device_initialize): Remove unsafe status register check.
34864 Thanks to 'phcoder' for problem report and patch.
34865 Prevent sign extension in debug message.
34866
230c0ad6 348672009-05-23 Colin D Bennett <colin@gibibit.com>
34868
34869 Cleaned up `include/grub/normal.h'. Grouped prototypes by
34870 definition file, and functions defined in `normal/menu.c' have had
34871 their prototypes moved to `include/grub/menu.h' for consistency.
34872
34873 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
34874 from normal.h.
34875 (grub_menu_get_entry): Likewise.
34876 (grub_menu_get_timeout): Likewise.
34877 (grub_menu_set_timeout): Likewise.
34878 (grub_menu_execute_entry): Likewise.
34879 (grub_menu_execute_with_fallback): Likewise.
34880 (grub_menu_entry_run): Likewise.
34881
34882 * include/grub/normal.h: Re-ordered and grouped function
34883 prototypes by file that the function is defined in.
34884 (grub_menu_execute_callback): Removed; moved to menu.h.
34885 (grub_menu_get_entry): Likewise.
34886 (grub_menu_get_timeout): Likewise.
34887 (grub_menu_set_timeout): Likewise.
34888 (grub_menu_execute_entry): Likewise.
34889 (grub_menu_execute_with_fallback): Likewise.
34890 (grub_menu_entry_run): Likewise.
34891 (grub_menu_addentry): Renamed from this ...
34892 (grub_normal_add_menu_entry): ... to this.
34893
34894 * normal/main.c (grub_menu_addentry): Renamed from this ...
34895 (grub_normal_add_menu_entry): ... to this.
34896
34897 * script/sh/execute.c (grub_script_execute_menuentry): Update
34898 reference to renamed grub_menu_addentry function.
34899
861f03a5 349002009-05-23 Felix Zielcke <fzielcke@z-51.de>
34901
34902 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
34903
96b1619a 349042009-05-22 Pavel Roskin <proski@gnu.org>
34905
bf6a5fb2 34906 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
34907 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
34908 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
34909 compiling for the i386 targets, but not for the utilities.
34910
96b1619a 34911 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
34912 to grub_uint8_t.
34913 (grub_root_drive): Likewise.
34914 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
34915 remove alignment.
34916 (grub_root_drive): Change size to byte.
34917 (grub_start_addr): Remove.
34918 (grub_end_addr): Likewise.
34919 (grub_apm_bios_info): Likewise.
34920
b729776b 349212009-05-21 Felix Zielcke <fzielcke@z-51.de>
34922
34923 * normal/i386: Remove.
34924 * normal/powerpc: Likewise.
34925 * normal/sparc64: Likewise.
34926 * normal/x86_64: Likewise.
34927
0a15ce80 349282009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
34929
34930 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 34931 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 34932 * loader/i386/xnu_helper.S: Likewise
d6da58e6 34933
33db9015 349342009-05-18 Colin D Bennett <colin@gibibit.com>
34935
d6da58e6 34936 Display error messages when parsing a Lua statement fails.
34937 Previously, executing a syntactically invalid statement like
34938 ")foo" or "bar;" would silently fail.
33db9015 34939
34940 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 34941 (grub_lua_parse_line): Improved reporting of Lua parser and
34942 execution errors.
33db9015 34943
46422c89 349442009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
34945
34946 Remove -Werror which causes build to fail on some systems
34947
34948 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
34949 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
34950 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 34951
22f53a96 349522009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
34953
34954 trampoline for linux on 64-bit platform
34955
18f547ad 34956 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
34957 loader/i386/efi/linux_trampoline.S
34958 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 34959 declaration
d6da58e6 34960 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
34961 here
22f53a96 34962 * loader/i386/linux_trampoline.S: moved here
d6da58e6 34963 * loader/i386/efi/linux.c (allocate_pages): reserve space for
34964 trampoline
22f53a96 34965 (jumpvector): removed
34966 (grub_linux_trampoline_start): new declaration
34967 (grub_linux_trampoline_end): likewise
34968 (grub_linux_boot): use trampoline when on 64-bit platform
34969 * loader/i386/linux.c: likewise
34970
cb5a0f40 349712009-05-16 Pavel Roskin <proski@gnu.org>
34972
34973 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
34974 const to avoid a warning.
34975 (grub_lua_setenv): Likewise.
34976 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
34977 lmsg to fix a warning.
34978
334f2c28 349792009-05-16 Felix Zielcke <fzielcke@z-51.de>
34980
34981 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 34982 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34983 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
34984 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34985 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
34986 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34987 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
34988 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 34989
59e5d3ec 349902009-05-16 Felix Zielcke <fzielcke@z-51.de>
34991
34992 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
34993
9d87a1ba 349942009-05-16 Bean <bean123ch@gmail.com>
34995
34996 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
34997 (lua_mod_SOURCES): New variable.
34998 (lua_mod_CFLAGS): Likewise.
34999 (lua_mod_LDFLAGS): Likewise.
35000
35001 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
35002 (setjmp_mod_SOURCES): New variable.
35003 (setjmp_mod_CFLAGS): Likewise.
35004 (setjmp_LDFLAGS): Likewise.
35005
35006 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
35007 (setjmp_mod_SOURCES): New variable.
35008 (setjmp_mod_CFLAGS): Likewise.
35009 (setjmp_LDFLAGS): Likewise.
35010
35011 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35012 (setjmp_mod_SOURCES): New variable.
35013 (setjmp_mod_CFLAGS): Likewise.
35014 (setjmp_LDFLAGS): Likewise.
35015
35016 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35017 (setjmp_mod_SOURCES): New variable.
35018 (setjmp_mod_CFLAGS): Likewise.
35019 (setjmp_LDFLAGS): Likewise.
35020
35021 * normal/i386/setjmp.S: Moved from here ...
35022 * lib/i386/setjmp.S: ... Moved here
35023 * normal/x86_64/setjmp.S: Moved from here ...
35024 * lib/x86_64/setjmp.S: ... Moved here
35025 * normal/powerpc/setjmp.S: Moved from here ...
35026 * lib/powerpc/setjmp.S: ... Moved here
35027 * normal/sparc64/setjmp.S: Moved from here ...
35028 * lib/sparc64/setjmp.S: ... Moved here
35029
35030 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
35031 returns_twice in mingw.
35032
35033 * script/lua/grub_lib.c: New file.
35034 * script/lua/grub_lib.h: Likewise.
35035 * script/lua/grub_lua.h: Likewise.
35036 * script/lua/grub_main.c: Likewise.
35037 * script/lua/lapi.c: Likewise.
35038 * script/lua/lapi.h: Likewise.
35039 * script/lua/lauxlib.c: Likewise.
35040 * script/lua/lauxlib.h: Likewise.
35041 * script/lua/lbaselib.c: Likewise.
35042 * script/lua/lcode.c: Likewise.
35043 * script/lua/lcode.h: Likewise.
35044 * script/lua/ldblib.c: Likewise.
35045 * script/lua/ldebug.c: Likewise.
35046 * script/lua/ldebug.h: Likewise.
35047 * script/lua/ldo.c: Likewise.
35048 * script/lua/ldo.h: Likewise.
35049 * script/lua/ldump.c: Likewise.
35050 * script/lua/lfunc.c: Likewise.
35051 * script/lua/lfunc.h: Likewise.
35052 * script/lua/lgc.c: Likewise.
35053 * script/lua/lgc.h: Likewise.
35054 * script/lua/linit.c: Likewise.
35055 * script/lua/liolib.c: Likewise.
35056 * script/lua/llex.c: Likewise.
35057 * script/lua/llex.h: Likewise.
35058 * script/lua/llimits.h: Likewise.
35059 * script/lua/lmathlib.c: Likewise.
35060 * script/lua/lmem.c: Likewise.
35061 * script/lua/lmem.h: Likewise.
35062 * script/lua/loadlib.c: Likewise.
35063 * script/lua/lobject.c: Likewise.
35064 * script/lua/lobject.h: Likewise.
35065 * script/lua/lopcodes.c: Likewise.
35066 * script/lua/lopcodes.h: Likewise.
35067 * script/lua/loslib.c: Likewise.
35068 * script/lua/lparser.c: Likewise.
35069 * script/lua/lparser.h: Likewise.
35070 * script/lua/lstate.c: Likewise.
35071 * script/lua/lstate.h: Likewise.
35072 * script/lua/lstring.c: Likewise.
35073 * script/lua/lstring.h: Likewise.
35074 * script/lua/lstrlib.c: Likewise.
35075 * script/lua/ltable.c: Likewise.
35076 * script/lua/ltable.h: Likewise.
35077 * script/lua/ltablib.c: Likewise.
35078 * script/lua/ltm.c: Likewise.
35079 * script/lua/ltm.h: Likewise.
35080 * script/lua/lua.h: Likewise.
35081 * script/lua/luaconf.h: Likewise.
35082 * script/lua/lualib.h: Likewise.
35083 * script/lua/lundump.c: Likewise.
35084 * script/lua/lundump.h: Likewise.
35085 * script/lua/lvm.c: Likewise.
35086 * script/lua/lvm.h: Likewise.
35087 * script/lua/lzio.c: Likewise.
35088 * script/lua/lzio.h: Likewise.
35089
5e898c9d 350902009-05-16 Bean <bean123ch@gmail.com>
35091
35092 * include/grub/kernel.h (grub_module_header_types): Add type
35093 OBJ_TYPE_CONFIG.
35094
35095 * kern/main.c (grub_load_config): New function.
35096 (grub_main): Call grub_load_config to read boot config.
35097
35098 * grub-mkimage (generate_image): New parameter config_path.
35099 (options): New option --config.
35100 (main): Parse --config option, and pass it to generate_image.
35101
cf353a47 351022009-05-14 Christian Franke <franke@computer.org>
35103
35104 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
35105 This fixes build on Cygwin.
35106
3834887f 351072009-05-14 Pavel Roskin <proski@gnu.org>
35108
35109 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
35110 jump. This saves two bytes, so the typical case of 2 swapped
35111 drives would fit 32 bytes.
35112
8090fc01 351132009-05-13 Pavel Roskin <proski@gnu.org>
35114
ac963883 35115 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
35116 grub_uint32_t to avoid a warning.
35117
8090fc01 35118 * loader/i386/linux.c (allocate_pages): When assigning
35119 real_mode_mem, cast through grub_size_t to fix a warning. The
35120 code already makes sure that the value would fit a pointer.
35121 (grub_linux_setup_video): Cast render_target->data to
35122 grub_size_t to fix a warning.
35123
18f547ad 351242009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 35125
35126 * commands/i386/pc/drivemap.c: New file - implement drivemap
35127 command.
35128 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
35129 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
35130
6f6a8b28 351312009-05-13 Pavel Roskin <proski@gnu.org>
35132
35133 * util/i386/pc/grub-setup.c (setup): Remove unused variable
35134 embedding_area_exists.
35135
15fbf4c4 351362009-05-13 Robert Millan <rmh.grub@aybabtu.com>
35137
35138 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
35139 it easier to understand / work with.
59978c8a 35140 Improve warning messages for cases where there's no embedding area,
35141 or when it is too small (or core.img too large).
15fbf4c4 35142
238e871f 351432009-05-13 Pavel Roskin <proski@gnu.org>
35144
0ab3a9a4 35145 * loader/i386/pc/multiboot2.c: Add necessary includes for
35146 grub_multiboot2_real_boot().
35147
a2c8c5f8 35148 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
35149 PX record is always little-endian. We only need the lower 2
35150 bytes of the mode.
35151
faec96af 35152 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
35153 facilitate code reuse.
35154 (grub_cpio_mount): Use "struct head", not a char buffer. This
35155 fixes a warning reported by gcc 4.4.
35156
238e871f 35157 * kernel/disk.c (grub_disk_read): Use void pointer for the
35158 buffer.
35159 (grub_disk_write): Use const void pointer for the buffer.
35160 Adjust all callers. Remove unnecessary casts.
35161
901d2f0c 351622009-05-10 Robert Millan <rmh.grub@aybabtu.com>
35163
35164 * util/i386/pc/grub-install.in: Update copyright year.
35165
18f547ad 351662009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 35167
35168 gptsync
35169
35170 * commands/gptsync.c: new file
35171 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
35172 (gptsync_mod_SOURCES): new variable
35173 (gptsync_mod_CFLAGS): likewise
35174 (gptsync_mod_LDFLAGS): likewise
18f547ad 35175 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 35176 new definition
35177 (GRUB_PC_PARTITION_TYPE_HFS): likewise
35178 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
35179 * conf/i386-ieee1275.rmk: likewise
35180 * conf/i386-pc.rmk: likewise
35181 * conf/powerpc-ieee1275.rmk: likewise
35182
b4ba690a 351832009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
35184
35185 Fixed grub-emu
35186
35187 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
35188 (grub_dl_ref): likewise
35189
317e1a44 351902009-05-08 Robert Millan <rmh.grub@aybabtu.com>
35191
35192 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
35193 split in two functions (one for msdos and one for gpt).
35194
041b8094 351952009-05-08 Pavel Roskin <proski@gnu.org>
35196
752473c2 35197 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
35198 not modified.
35199
041b8094 35200 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
35201 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
35202 Initialize them with -1. Add sanity check for bad1. Eliminate
35203 nerr variable.
35204
172800ce 352052009-05-08 David S. Miller <davem@davemloft.net>
35206
35207 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
35208
29aa5e81 352092009-05-06 Robert Millan <rmh.grub@aybabtu.com>
35210
35211 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 35212 existence.
29aa5e81 35213
96613b62 352142009-05-05 Felix Zielcke <fzielcke@z-51.de>
35215
35216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 35217 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 35218
eef73c8a 352192009-05-05 David S. Miller <davem@davemloft.net>
35220
35221 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
35222
119494b5 352232009-05-05 Pavel Roskin <proski@gnu.org>
35224
35225 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
35226 of grub_dl_ref() and grub_dl_unref().
35227 * commands/parttool.c: Remove preprocessor conditionals around
35228 grub_dl_ref() and grub_dl_unref().
35229 * fs/affs.c: Likewise.
35230 * fs/afs.c: Likewise.
35231 * fs/cpio.c: Likewise.
35232 * fs/ext2.c: Likewise.
35233 * fs/fat.c: Likewise.
35234 * fs/hfs.c: Likewise.
35235 * fs/hfsplus.c: Likewise.
35236 * fs/iso9660.c: Likewise.
35237 * fs/jfs.c: Likewise.
35238 * fs/minix.c: Likewise.
35239 * fs/ntfs.c: Likewise.
35240 * fs/reiserfs.c: Likewise.
35241 * fs/sfs.c: Likewise.
35242 * fs/udf.c: Likewise.
35243 * fs/ufs.c: Likewise.
35244 * fs/xfs.c: Likewise.
35245 * include/grub/dl.h: Likewise.
35246 * loader/xnu.c: Likewise.
35247
de5fd76e 352482009-05-04 Pavel Roskin <proski@gnu.org>
35249
35250 * commands/acpi.c: Remove unused variable my_mod.
35251 * partmap/amiga.c: Likewise.
35252 * partmap/apple.c: Likewise.
35253 * partmap/gpt.c: Likewise.
35254 * partmap/pc.c: Likewise.
35255 * partmap/sun.c: Likewise.
35256 * term/gfxterm.c: Likewise.
35257 * term/i386/pc/vesafb.c: Likewise.
35258 * term/i386/pc/vga.c: Likewise.
35259
983598ad 352602009-05-04 David S. Miller <davem@davemloft.net>
35261
35262 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
35263 pointer args to grub_ieee1275_get_property().
35264
8aadec43 35265 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
35266
9554b15e 35267 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
35268 devices, and do not traverse down under controller nodes.
35269
67e23c90 35270 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
35271 (grub_ofdisk_open): Use it to un-escape "," characters.
35272 * kern/disk.c (find_part_sep): New.
35273 (grub_disk_open): Use it to find the first non-escaped ','
35274 character in the disk name.
35275 * util/ieee1275/devicemap.c (escape_of_path): New.
35276 (grub_util_emit_devicemap_entry): Use it.
35277 * util/sparc64/ieee1275/grub-install.in: Update script to
35278 strip partition specifiers properly by not triggering on
35279 '\' escaped ',' characters.
35280
74bfdd2f 352812009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35282
35283 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
35284 to 0x300.
35285 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
35286 resolutions.
35287 (linux_vesafb_modes): Add a lot of additional modes to the list (based
35288 on documentation from Wikipedia).
35289
4241d2b1 352902009-05-04 Pavel Roskin <proski@gnu.org>
35291
35292 * disk/ata.c: Spelling fixes.
35293 * disk/raid.c: Likewise.
35294 * disk/usbms.c: Likewise.
35295 * disk/dmraid_nvidia.c: Likewise.
35296 * kern/ieee1275/openfw.c: Likewise.
35297 * kern/ieee1275/init.c: Likewise.
35298 * kern/ieee1275/cmain.c: Likewise.
35299 * boot/i386/pc/cdboot.S: Likewise.
35300 * video/readers/png.c: Likewise.
35301 * video/i386/pc/vbe.c: Likewise.
35302 * fs/udf.c: Likewise.
35303 * fs/hfs.c: Likewise.
35304 * fs/reiserfs.c: Likewise.
35305 * efiemu/runtime/efiemu.c: Likewise.
35306 * efiemu/main.c: Likewise.
35307 * efiemu/mm.c: Likewise.
35308 * include/grub/elf.h: Likewise.
35309 * include/grub/xnu.h: Likewise.
35310 * include/grub/usbdesc.h: Likewise.
35311 * include/grub/usb.h: Likewise.
35312 * include/grub/script_sh.h: Likewise.
35313 * include/grub/lib/LzmaEnc.h: Likewise.
35314 * include/grub/efiemu/efiemu.h: Likewise.
35315 * include/grub/command.h: Likewise.
35316 * normal/menu.c: Likewise.
35317 * normal/main.c: Likewise.
35318 * normal/datetime.c: Likewise.
35319 * bus/usb/uhci.c: Likewise.
35320 * mmap/i386/uppermem.c: Likewise.
35321 * mmap/mmap.c: Likewise.
35322 * commands/acpi.c: Likewise.
35323 * commands/test.c: Likewise.
35324 * partmap/apple.c: Likewise.
35325 * font/font.c: Likewise.
35326 * loader/sparc64/ieee1275/linux.c: Likewise.
35327 * loader/macho.c: Likewise.
35328 * loader/i386/bsd_trampoline.S: Likewise.
35329 * loader/i386/bsd.c: Likewise.
35330 * loader/xnu.c: Likewise.
35331 * term/i386/pc/vesafb.c: Likewise.
35332 * term/usb_keyboard.c: Likewise.
35333 * util/resolve.c: Likewise.
35334 * util/getroot.c: Likewise.
35335
0cfc0083 353362009-05-04 Felix Zielcke <fzielcke@z-51.de>
35337
35338 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
35339
7c1d00cd 353402009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35341
35342 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
35343 build error.
35344
b01f0548 353452009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35346
35347 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
35348 parameter only available on BIOS.
35349
ecc3eb22 353502009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35351
35352 Removed wrong semicolon in declaration
35353
35354 * grub/misc.h (grub_dprintf): remove semicolon
35355
112972a9 353562009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35357
35358 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
35359 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
35360 is done by grub_cmd_linux() now).
35361 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
35362 restore video to text mode.
35363 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
35364 indicates lack of "vga=" parameter. "vga=0" is mapped to
35365 `GRUB_LINUX_VID_MODE_NORMAL'.
35366
afd5c115 353672009-05-04 Felix Zielcke <fzielcke@z-51.de>
35368
35369 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
35370 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
35371 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 35372 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 35373 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
35374 `grub_script.tab.c'.
35375
35376 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35377 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35378 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35379 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35380 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35381
faa517ce 35382 * Makefile.in: Remove duplicated 2008 in Copyright line.
35383
ae0c0bdc 353842009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35385
473d1e45 35386 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 35387 unconditionally.
35388 * include/grub/util/misc.h (grub_util_warn): New declaration.
35389
35390 * util/i386/pc/grub-install.in: Understand --force and pass it down
35391 to grub-setup.
35392
35393 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
35394 down to setup().
35395 (setup): Improve error messages and add warnings when requested to
35396 install in odd layouts. Refuse to install using blocklists unless
35397 --force was set.
35398
18f547ad 353992009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 35400
35401 * disk/raid.c (grub_raid_scan_device): Improve debug message.
35402
6d260daa 354032009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35404
35405 Updated copyright year
35406
35407 * fs/hfsplus.c: updated copyright year
18f547ad 35408
69f853f8 354092009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35410
35411 HFS+ UUID
35412
18f547ad 35413 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 35414 in the space previously used by unused3
35415 (grub_hfsplus_uuid): new function
35416 (grub_hfsplus_fs): added uuid field
35417
4c402e73 354182009-05-03 Pavel Roskin <proski@gnu.org>
35419
35420 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
35421 suppress warnings. It's no longer needed.
35422 * disk/host.c: Likewise.
35423 * disk/ata_pthru.c: Likewise.
35424 * disk/loopback.c: Likewise.
35425 * hook/datehook.c: Likewise.
35426 * parttool/pcpart.c: Likewise.
35427 * fs/i386/pc/pxe.c: Likewise.
35428 * fs/ntfscomp.c: Likewise.
35429 * efiemu/main.c: Likewise.
35430 * mmap/mmap.c: Likewise.
35431 * commands/crc.c: Likewise.
35432 * commands/hexdump.c: Likewise.
35433 * commands/hdparm.c: Likewise.
35434 * commands/acpi.c: Likewise.
35435 * commands/echo.c: Likewise.
35436 * commands/minicmd.c: Likewise.
35437 * commands/blocklist.c: Likewise.
35438 * commands/memrw.c: Likewise.
35439 * commands/loadenv.c: Likewise.
35440 * commands/usbtest.c: Likewise.
35441 * commands/lsmmap.c: Likewise.
35442 * commands/boot.c: Likewise.
35443 * commands/parttool.c: Likewise.
35444 * commands/configfile.c: Likewise.
35445 * commands/search.c: Likewise.
35446 * commands/ieee1275/suspend.c: Likewise.
35447 * commands/cat.c: Likewise.
35448 * commands/i386/pc/pxecmd.c: Likewise.
35449 * commands/i386/pc/play.c: Likewise.
35450 * commands/i386/pc/halt.c: Likewise.
35451 * commands/i386/pc/vbeinfo.c: Likewise.
35452 * commands/i386/pc/vbetest.c: Likewise.
35453 * commands/lspci.c: Likewise.
35454 * commands/date.c: Likewise.
35455 * commands/handler.c: Likewise.
35456 * commands/ls.c: Likewise.
35457 * commands/test.c: Likewise.
35458 * commands/cmp.c: Likewise.
35459 * commands/efi/loadbios.c: Likewise.
35460 * commands/efi/fixvideo.c: Likewise.
35461 * commands/halt.c: Likewise.
35462 * commands/help.c: Likewise.
35463 * commands/reboot.c: Likewise.
35464 * hello/hello.c: Likewise.
35465 * script/sh/main.c: Likewise.
35466 * loader/xnu.c: Likewise.
35467 * term/terminfo.c: Likewise.
35468 * term/i386/pc/serial.c: Likewise.
35469 * term/usb_keyboard.c: Likewise.
35470
515b5079 354712009-05-03 David S. Miller <davem@davemloft.net>
35472
35473 * normal/menu.c: Include grub/parser.h
35474
dfc31a22 354752009-05-03 Pavel Roskin <proski@gnu.org>
35476
2fee74f1 35477 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
35478 not char*.
35479 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
35480 Suggested by Javier Martín <lordhabbit@gmail.com>
35481
dfc31a22 35482 * util/i386/pc/grub-mkrescue.in: Allow for the case when
35483 efiemu??.o doesn't exist.
35484 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
35485 copying.
35486
18f547ad 354872009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 35488
35489 FreeBSD 64-bit support
35490
18f547ad 35491 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 35492 and loader/i386/bsd_trampoline.S
35493 (bsd_mod_ASFLAGS): new variable
35494 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
35495 (FREEBSD_MODTYPE_KERNEL64): likewise
35496 (grub_bsd64_trampoline_start): likewise
35497 (grub_bsd64_trampoline_end): likewise
35498 (grub_bsd64_trampoline_selfjump): likewise
35499 (grub_bsd64_trampoline_gdt): likewise
35500 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
35501 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
35502 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
35503 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 35504 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 35505 of "attrib" member
35506 * loader/i386/bsd_pagetable.c: new file
35507 * loader/i386/bsd_trampoline.S: likewise
35508 * loader/i386/bsd.c (ALIGN_QWORD): new macro
35509 (ALIGN_VAR): likewise
35510 (entry_hi): new variable
35511 (kern_end_mdofs): likewise
35512 (is_64bit): likewise
35513 (grub_freebsd_add_meta): use ALIGN_VAR
35514 (grub_e820_mmap): new declaration
35515 (grub_freebsd_add_mmap): new function
35516 (grub_freebsd_add_meta_module): support 64 bit kernels
35517 (grub_freebsd_list_modules): use ALIGN_VAR
35518 (gdt_descriptor): new declaration
35519 (grub_freebsd_boot): support 64 bit kernels
35520 (grub_bsd_elf64_hook): new function
35521 (grub_bsd_load_elf): support elf64
35522
038c5720 355232009-05-03 Bean <bean123ch@gmail.com>
35524
35525 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
35526 after we get the result of if statement.
35527
fc45fb58 355282009-05-03 Bean <bean123ch@gmail.com>
35529
35530 * Makefile.in (enable_efiemu): New variable.
35531
35532 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
35533 set.
35534 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
35535 path.
35536 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
35537 path, add -mno-red-zone option.
35538 (efiemu64_s.o): Likewise.
35539 (efiemu64.o): Use macro $^ for source file.
35540
35541 * configure.ac (--enable-efiemu): New option.
35542
bbee0f2b 355432009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
35544
35545 xnu support
35546
35547 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
35548 (pkglib_MODULES): add xnu.mod
35549 (xnu_mod_SOURCES): new variable
35550 (xnu_mod_CFLAGS): likewise
35551 (xnu_mod_LDFLAGS): likewise
35552 (xnu_mod_ASFLAGS): likewise
35553 * conf/i386-pc.rmk: likewise
35554 * conf/x86_64-efi.rmk: likewise
7dd4a573 35555 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 35556 new declaration
35557 * include/grub/i386/macho.h: new file
35558 * include/grub/i386/xnu.h: likewise
35559 * include/grub/macho.h: likewise
35560 * include/grub/machoload.h: likewise
35561 * include/grub/x86_64/macho.h: likewise
35562 * include/grub/x86_64/xnu.h: likewise
35563 * include/grub/xnu.h: likewise
35564 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
35565 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
35566 * loader/i386/efi/xnu.c: new file
35567 * loader/i386/pc/xnu.c: likewise
35568 * loader/i386/xnu.c: likewise
35569 * loader/i386/xnu_helper.S: likewise
35570 * loader/macho.c: likewise
35571 * loader/xnu.c: likewise
35572 * loader/xnu_resume.c: likewise
35573 * util/grub-dumpdevtree: likewise
35574 * include/grub/i386/pit.h: include grub/err.h
35575 (grub_pit_wait): export
35576 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 35577
5caf964d 355782009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35579
35580 Efiemu
7dd4a573 35581
5caf964d 35582 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 35583 _linux_efi, linux_efi.
35584 new files in grub-emu
5caf964d 35585 new targets efiemu32.o and efiemu64.o
35586 * loader/linux_normal_efiemu.c: likewise
35587 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 35588 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 35589 files to copy
35590 * include/grub/autoefi.h: new file
7dd4a573 35591 * include/grub/i386/efiemu.h: likewise
5caf964d 35592 * include/grub/i386/pc/efiemu.h: likewise
35593 * include/grub/efi/api.h: add LL suffix when necessary
35594 new definitions relating to tables
35595 * include/grub/efiemu/efiemu.h: new file
35596 * include/grub/efiemu/runtime.h: likewise
35597 * efiemu/prepare.c: likewise
35598 * efiemu/loadcore_common.c: likewise
35599 * efiemu/loadcore64.c: likewise
35600 * efiemu/runtime/efiemu.sh: likewise
35601 * efiemu/runtime/efiemu.S: likewise
35602 * efiemu/runtime/efiemu.c: likewise
35603 * efiemu/runtime/config.h: likewise
35604 * efiemu/prepare32.c: likewise
35605 * efiemu/main.c: likewise
35606 * efiemu/modules/pnvram.c: likewise
35607 * efiemu/modules/i386: likewise
35608 * efiemu/modules/i386/pc: likewise
35609 * efiemu/modules/acpi.c: likewise
35610 * efiemu/i386/pc/cfgtables.c: likewise
35611 * efiemu/i386/loadcore64.c: likewise
35612 * efiemu/i386/loadcore32.c: likewise
35613 * efiemu/prepare64.c: likewise
35614 * efiemu/loadcore.c: likewise
35615 * efiemu/symbols.c: likewise
35616 * efiemu/mm.c: likewise
35617 * efiemu/loadcore32.c: likewise
7dd4a573 35618
356192009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 35620
35621 ACPI spoofing
35622
35623 * commands/acpi.c: new file
35624 * commands/i386/pc/acpi.c: likewise
35625 * commands/efi/acpi.c: likewise
35626 * include/grub/acpi.h: likewise
35627 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
35628 (acpi_mod_SOURCES): new variable
35629 (acpi_mod_CFLAGS): likewise
35630 (acpi_mod_LDFLAGS): likewise
35631 * conf/i386-efi.rmk: likewise
35632 * conf/x86_64-efi.rmk: likewise
35633
7dd4a573 356342009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 35635
35636 Missing part from mmap patch
35637
35638 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
35639 (grub_mmap_unregister)
35640 (grub_mmap_free_and_unregister): use grub_mmap_register
35641
7dd4a573 356422009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 35643
35644 Mmap services
35645
35646 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
35647 * loader/i386/linux.c (find_mmap_size): likewise
35648 (allocate_pages): likewise
35649 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
35650 (grub_fill_multiboot_mmap): likewise
35651 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
35652 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
35653 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
35654 (OPENBSD_MMAP_RESERVED): likewise
35655 * include/grub/i386/pc/memory.h: include grub/memory.h
35656 (grub_lower_mem): removed
35657 (grub_upper_mem): likewise
35658 (GRUB_MACHINE_MEMORY_ACPI): new definition
35659 (GRUB_MACHINE_MEMORY_NVS): likewise
35660 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
35661 (GRUB_MACHINE_MEMORY_HOLE): likewise
35662 (grub_machine_mmap_register): likewise
35663 (grub_machine_mmap_unregister): likewise
35664 (grub_machine_get_upper): likewise
35665 (grub_machine_get_lower): likewise
35666 (grub_machine_get_post64): likewise
35667 * include/grub/i386/efi/memory.h: new file
35668 * include/grub/x86_64/efi/memory.h: likewise
35669 * include/grub/efi/memory.h: likewise
35670 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
35671 (mmap_mod_SOURCES): new variable
35672 (mmap_mod_LDFLAGS): likewise
35673 (mmap_mod_ASFLAGS): likewise
35674 * conf/i386-coreboot.rmk: likewise
35675 * conf/i386-ieee1275.rmk: likewise
35676 * conf/i386-efi.rmk: likewise
35677 * conf/x86_64-efi.rmk: likewise
35678 * include/grub/types.h (UINT_TO_PTR): new macro
35679 (PTR_TO_UINT32): likewise
35680 (PTR_TO_UINT64): likewise
35681 * include/grub/memory.h: new file
35682 * mmap/i386/pc/mmap.c: likewise
35683 * mmap/i386/pc/mmap_helper.S: likewise
35684 * mmap/i386/uppermem.c: likewise
35685 * mmap/mmap.c: likewise
35686 * mmap/efi/mmap.c: likewise
7dd4a573 35687 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 35688 grub_upper_mem
35689 * kern/i386/pc/init.c (grub_lower_mem): removed variable
35690 (grub_upper_mem): likewise
35691 (grub_machine_init): don't use grub_upper_mem,
35692 make grub_lower_mem local
35693 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
35694 grub_mmap_iterate and grub_mmap_get_upper
35695 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
35696
d558e6b5 356972009-05-02 Bean <bean123ch@gmail.com>
35698
35699 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
35700 script/sh/parser.y.
35701 (pkglib_MODULES): Add normal.mod and sh.mod.
35702 (normal_SOURCES): New variable.
35703 (normal_mod_CFLAGS): Likewise.
35704 (normal_mod_LDFLAGS): Likewise.
35705 (sh_mod_SOURCES): Likewise.
35706 (sh_mod_CFLAGS): Likewise.
35707 (sh_mod_LDFLAGS): Likewise.
35708
35709 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
35710 script/sh/lexer.c_DEPENDENCIES.
35711 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
35712 kern/rescue_reader.c and kern/rescue_parser.c.
35713 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
35714 (grub_emu_SOURCES): Change source files.
35715 (pkglib_MODULES): Remove normal.mod.
35716 (normal_SOURCES): Removed.
35717 (normal_mod_CFLAGS): Likewise.
35718 (normal_mod_LDFLAGS): Likewise.
35719 * conf/i386-coreboot.rmk: Likewise.
35720 * conf/i386-efi.rmk: Likewise.
35721 * conf/i386-ieee1276.rmk: Likewise.
35722 * conf/powerpc-ieee1275.rmk: Likewise.
35723 * conf/sparc64-ieee1275.rmk: Likewise.
35724 * conf/x86_64-efi.rmk: Likewise.
35725
35726 * include/grub/command.h (grub_command_execute): New inline function.
35727
35728 * include/grub/menu.h (grub_menu_entry): Removed commands field.
35729
35730 * include/grub/normal.h: Remove <grub/setjmp.h>.
35731 (grub_fs_module_list): Moved to normal/autofs.c.
35732 (grub_exit_env): Removed.
35733 (grub_command_execute): Likewise.
35734 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
35735 parameter script.
35736 (read_command_list): New function declaration.
35737 (read_fs_list): Likewise.
35738
35739 * include/parser.h: Include <grub/reader.h>.
35740 (grub_parser_split_cmdline): Change type of getline parameter.
35741 (grub_parser): New structure.
35742 (grub_parser_class): New variable.
35743 (grub_parser_execute): New function declaration.
35744 (grub_register_rescue_parser): Likewise.
35745 (grub_parser_register): New inline function.
35746 (grub_parser_unregister): Likewise.
35747 (grub_parser_get_current): Likewise.
35748 (grub_parser_set_current): Likewise.
35749
35750 * include/grub/reader.h: New file.
35751 * kern/reader.c: Likewise.
35752 * kern/rescue_parser.c: Likewise.
35753 * kern/rescue_reader.c: Likewise.
35754 * normal/autofs.c: Likewise.
35755 * normal/dyncmd.c: Likewise.
35756
35757 * include/grub/rescue.h: Removed.
35758 * normal/command.h: Likewise.
35759
35760 * include/grub/script.h: Moved to ...
35761 * include/grub/script_sh.h: ... Moved here.
35762 * normal/execute.c: Moved to ...
35763 * script/sh/execute.c: ... Moved here.
35764 * normal/function.c: Moved to ...
35765 * script/sh/function.c: ... Moved here.
35766 * normal/lexer.c: Moved to ...
35767 * script/sh/lexer.c: ... Moved here.
35768 * normal/parser.y: Moved to ...
35769 * script/sh/parser.y: ... Moved here.
35770 * normal/script.c: Moved to ...
35771 * script/sh/script.c: ... Moved here.
35772
35773 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
35774 <grub/reader.h>.
35775 (grub_exit_env): Removed.
35776 (fs_module_list): Moved to normal/autofs.c.
35777 (grub_file_getline): Don't handle comment here.
35778 (free_menu): Skip removed field entry->commands.
35779 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
35780 script parameter.
35781 (read_config_file): Removed nested parameter, change getline function.
35782 (grub_enter_normal_mode): Removed.
35783 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
35784 (read_command_list): Likewise.
35785 (autoload_fs_module): Moved to normal/autofs.c.
35786 (read_fs_list): Likewise.
35787 (reader_nested): New variable.
35788 (grub_normal_execute): Run parser.sh to switch to sh parser.
35789 (grub_cmd_rescue): Removed.
35790 (cmd_normal): Removed.
35791 (grub_cmd_normal): Unregister itself at the beginning. Don't register
35792 rescue command.
35793 (grub_cmdline_run): New function.
35794 (grub_normal_reader_init): Likewise.
35795 (grub_normal_read_line): Likewise.
35796 (grub_env_write_pager): Likewise.
35797 (cmdline): New variable.
35798 (grub_normal_reader): Likewise.
35799 (GRUB_MOD_INIT): Register normal reader and set as current, register
35800 pager hook, register normal command with grub_register_command_prio,
35801 so that it won't show up in command.lst.
35802 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
35803 grub_fs_autoload_hook.
35804
35805 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
35806 (grub_menu_execute_entry): Replace grub_script_execute with
35807 grub_parser_execute, change parameter to grub_command_execute.
35808
35809 * normal/menu_text.c: Remove <grub/script.h>.
35810
35811 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
35812 and <grub/parser.h>.
35813 (run): Change editor_getline to use new parser interface. Change
35814 parameter to grub_command_execute.
35815
35816 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
35817 <grub/reader.h> and <grub/parser.h>.
35818 (grub_load_normal_mode): Execute normal command.
35819 (grub_main): Call grub_register_core_commands,
35820 grub_register_rescue_parser and grub_register_rescue_reader, use
35821 grub_reader_loop to enter input loop.
35822
7dd4a573 35823 * kern/parser.c (grub_parser_split_cmdline): Change type of
35824 getline parameter.
d558e6b5 35825 (grub_parser_class): New variable.
35826 (grub_parser_execute): New function.
35827
35828 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
35829 * loader/multiboot2.c: Likewise.
35830 * loader/sparc64/ieee1275/linux.c: Likewise.
35831
35832 * util/grub-emu.c (read_command_list): New dummy function.
35833
18db813d 358342009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35835
35836 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
35837 count to 16 for CCISS and IDA.
35838
6c67de15 358392009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35840
35841 * normal/menu_text.c (grub_wait_after_message): Print a newline
35842 after waiting for user input.
35843
35844 * loader/i386/linux.c: Include `<grub/normal.h>'.
35845 (grub_cmd_linux): Improve the error message about `ask' mode, by
35846 waiting for user input so it's not missed (we can do this, since
35847 user requested interaction).
35848
d9dc87b0 358492009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35850
35851 Added missing lst to grub-mkrescue
35852
35853 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
35854 and ${input_dir}/parttool.lst
35855
ac8a2baa 358562009-04-30 David S. Miller <davem@davemloft.net>
35857
ad22a610 35858 * util/hostdisk.c (device_is_wholedisk): New function.
35859 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
35860 zero only if device_is_wholedisk() returns true.
35861
6966215d 35862 * util/hostdisk.c (convert_system_partition_to_system_disk):
35863 Handle virtual disk devices named /dev/vdiskX as found on sparc
35864 and powerpc.
35865
ac8a2baa 35866 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
35867 lettered partition specifier is found, convert to numbered.
35868
979b4fb4 358692009-04-29 David S. Miller <davem@davemloft.net>
35870
e2bf39b2 35871 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
35872 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35873
3c64e104 35874 * normal/command.c: Add missing newline at end of file.
35875
979b4fb4 35876 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
35877 warnings.
35878 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
35879 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
35880 grub_ofdisk_read): Likewise, and deal similarly with the fact that
35881 ihandles have a 32-bit type but need to be stored in a "void *".
35882
136d9f82 358832009-04-28 Pavel Roskin <proski@gnu.org>
35884
9459c306 35885 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
35886 not disk. Adjust all dependencies.
2e08a26a 35887 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 35888 grub_disk_close().
35889
136d9f82 35890 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
35891 parent's partition, don't copy it by reference, as it gets freed
35892 on close.
35893
7dd4a573 358942009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 35895
35896 Preboot hooks support
35897
35898 * commands/boot.c (struct grub_preboot_t): new declaration
35899 (preboots_head): new variable
35900 (preboots_tail): likewise
35901 (grub_loader_register_preboot_hook): new function
35902 (grub_loader_unregister_preboot_hook): likewise
35903 (grub_loader_set): launch preboot hooks
35904 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
35905 (grub_loader_register_preboot_hook): new declaration
35906 (grub_loader_unregister_preboot_hook): likewise
35907
5af922b5 359082009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
35909
35910 Warning fix
35911
7dd4a573 35912 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 35913 calling grub_dprintf
35914
a5562c30 359152009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
35916
35917 Bug and warning fixes
35918
7dd4a573 35919 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 35920 declaration
35921 * commands/test.c (test_parse): fixed bug with file tests and corrected
35922 declaration of find_file
35923
4006f85c 359242009-04-26 Pavel Roskin <proski@gnu.org>
35925
35926 * Makefile.in: Don't install empty manual pages if help2man is
35927 missing. Use help2man option for output, not shell redirection.
35928
5c77c3de 359292009-04-26 David S. Miller <davem@davemloft.net>
35930
35931 * util/grub-mkdevicemap.c (make_device_map): Add missing
35932 NESTED_FUNC_ATTR to process_device().
35933
033b10a8 359342009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
35935
35936 Test command
35937
35938 * commands/test.c: rewritten to use bash-like test
35939
e4343593 359402009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
35941
35942 Parttool autoloading and improvements
35943
7dd4a573 35944 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 35945 (parttool.lst): new target
35946 * genmk.rb: generate parttool-*
35947 (CLEANFILES): add #{parttool}
35948 (PARTTOOLFILES): new variable
35949 * genparttoollist.sh: new file
7dd4a573 35950 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 35951 (grub_pcpart_type): likewise
35952 * commands/parttool.c (helpmsg): new variable
35953 (grub_cmd_parttool): output help if not enough arguments are supplied
35954 autoload modules
35955 (GRUB_MOD_INIT(parttool)): use helpmsg
35956
0d312500 359572009-04-24 David S. Miller <davem@davemloft.net>
35958
7dd4a573 35959 Avoiding opening same device multiple times in device iterator.
0d312500 35960
35961 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 35962 and use it to build a list of partitions in iterate_disk() and
0d312500 35963 iterate_partition().
35964
ac20caff 35965 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
35966 on disk->data.
35967
0dcf7495 35968 * disk/ieee1275/nand.c (grub_nand_iterate): Return
35969 grub_devalias_iterate() result instead of unconditional 0.
35970 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
35971 Also, capture hook return value, either directly or via
35972 grub_children_iterate(), and propagate to caller.
35973 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
35974 grub_children_iterate): Return value is now 'int' instead of
35975 'grub_err_t'.
35976 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
35977 like a proper iterator, stopping when hooks return non-zero.
35978 (grub_devalias_iterate): Likewise.
35979
c8c08833 359802009-04-23 David S. Miller <davem@davemloft.net>
35981
35982 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
35983
f01005a8 359842009-04-22 David S. Miller <davem@davemloft.net>
35985
35986 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
35987 is larger than address_cells, use that value for address_cells too.
35988
4e8269da 35989 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
35990 IEEE1275_MAX_PATH_LEN): Define.
35991 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
35992 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
35993 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
35994 'devtype'. Explicitly NULL terminate devalias expansion.
35995
a1447506 35996 * util/sparc64/ieee1275/misc.c: New file.
35997 * util/sparc64/ieee1275/grub-setup.c: New file.
35998 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
35999 * util/sparc64/ieee1275/grub-mkimage.c: New file.
36000 * util/sparc64/ieee1275/grub-install.in: New file.
36001 * util/ieee1275/ofpath.c: New file.
36002 * util/ieee1275/devicemap.c: New file.
36003 * util/devicemap.c: New file.
36004 * util/deviceiter.c: New file.
36005 * kern/sparc64/ieee1275/init.c: New file.
36006 * include/grub/util/ofpath.h: New file.
36007 * include/grub/util/deviceiter.h: New file.
36008 * util/grub-mkdevicemap.c: Include deviceiter.h.
36009 Implement using grub_util_emit_devicemap_entry and
36010 grub_util_iterate_devices.
36011 * conf/i386-corebook.rmk: Build util/deviceiter.c and
36012 util/devicemap.c into grub-mkdevicemap
36013 * conf/i386-efi.rmk: Likewise.
36014 * conf/i386-ieee1275.rmk: Likewise.
36015 * conf/i386-pc.rmk: Likewise.
36016 * conf/powerpc-ieee1275.rmk: Likewise.
36017 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
36018 images and installation utilities. Build kernel as image
36019 instead of as elf binary. Use common rules as much as possible.
36020
7dd4a573 360212009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 36022
36023 Correct GPT definition
36024
7dd4a573 36025 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 36026 of "attrib" member
36027
c6c5219f 360282009-04-19 Felix Zielcke <fzielcke@z-51.de>
36029
36030 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
36031
0552ff9f 360322009-04-19 David S. Miller <davem@davemloft.net>
36033
36034 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
36035 (grub_rescue_cmd_linux): Rename to...
36036 (grub_cmd_linux): and fix prototype.
36037 (grub_rescue_cmd_initrd): Rename to...
36038 (grub_cmd_initrd): and fix prototype.
36039 (cmd_linux, cmd_initrd): New.
36040 (GRUB_MOD_INIT(linux)): Use grub_register_command().
36041 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
36042
d1a282fc 360432009-04-17 Pavel Roskin <proski@gnu.org>
36044
07c5039f 36045 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
36046 format.
36047 (grub_ohci_transfer): Likewise.
36048
b012002d 36049 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
36050
1bc09c35 36051 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
36052 return without a value. Fix inconsistent indentation.
36053
e0ff9126 36054 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
36055 match struct grub_fs.
36056
d1a282fc 36057 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
36058 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
36059 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36060 * commands/lspci.c (grub_lspci_iter): Likewise.
36061
a96df3f2 360622009-04-16 Bean <bean123ch@gmail.com>
36063
36064 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
36065 value.
36066
41bb0fe9 360672009-04-15 Pavel Roskin <proski@gnu.org>
36068
36069 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
36070 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
36071 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
36072 definitions.
36073
596c6970 360742009-04-15 Felix Zielcke <fzielcke@z-51.de>
36075
36076 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 36077 that no multiple data or metadata areas are supported and `Unknown
596c6970 36078 metadata header'.
36079
7dd4a573 360802009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 36081
36082 Move loader out of the kernel
36083
36084 * kern/loader.c: moved to ...
36085 * commands/boot.c: ... moved here
36086 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
36087 * commands/boot.c (grub_cmd_boot): moved here. All users updated
36088 * include/grub/kernel.h (grub_machine_fini): export
36089 * include/grub/loader.h (grub_loader_is_loaded): update declaration
36090 (grub_loader_set): likewise
36091 (grub_loader_unset): likewise
36092 (grub_loader_boot): likewise
36093 * conf/common.rmk: new module boot.mod
36094 (pkglib_MODULES): add boot.mod
36095 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
36096 (grub_emu_SOURCES): likewise
36097 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
36098 (grub_emu_SOURCES): likewise
36099 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
36100 (grub_emu_SOURCES): likewise
36101 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
36102 (grub_emu_SOURCES): likewise
36103 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
36104 (grub_emu_SOURCES): likewise
7dd4a573 36105 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
36106 (grub_emu_SOURCES): likewise
0d5d5653 36107 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 36108 (grub_emu_SOURCES): likewise
0d5d5653 36109
7dd4a573 361102009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 36111
36112 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 36113
5999d619 36114 * kern/misc.c (grub_itoa): Removed function
36115 (grub_ltoa): likewise
36116 (grub_vsprintf): use grub_lltoa
36117
7dd4a573 361182009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 36119
36120 Restore grub-emu
36121
36122 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
36123 * conf/i386-coreboot.rmk: likewise
36124 * conf/i386-ieee1275.rmk: likewise
36125 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 36126
20318222 361272009-04-15 Felix Zielcke <fzielcke@z-51.de>
36128
36129 * INSTALL: Add that `./autogen.sh' needs to be run before
36130 `./configure.'.
36131
d05f0df3 361322009-04-14 Bean <bean123ch@gmail.com>
36133
36134 * Makefile.in (pkglib_DATA): Add handler.lst.
36135 (handler.lst): New rule.
36136
36137 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
36138 * conf/i386-coreboot.rmk: Likewise.
36139 * conf/i386-ieee1275.rmk: Likewise.
36140 * conf/i386-efi.rmk: Likewise.
36141 * conf/x86_64-efi.rmk: Likewise.
36142 * conf/powerpc-ieee1275.rmk: Likewise.
36143 * conf/sparc64-ieee1275.rmk: Likewise.
36144
36145 * genhandlerlist.sh: New file.
36146
36147 * genmk.rb: Add rules to generate handler.lst.
36148
36149 * include/grub/normal.h (grub_file_getline): New function definition.
36150 (read_handler_list): Likewise.
36151 (free_handler_list): Likewise.
36152
36153 * include/grub/term.h (grub_term_register_input): Add name parameter
36154 for auto generation of handler.lst.
36155 (grub_term_register_output): Likewise.
36156
36157 * normal/handler.c: New file.
36158
36159 * normal/main.c (get_line): Renamed to grub_file_getline.
36160 (read_config_file): Use the newly renamed grub_file_getline.
36161 (read_command_list): Likewise.
36162 (read_fs_list): Likewise.
36163 (grub_normal_execute): Call read_handler_list to parse handler.lst.
36164 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
36165
36166 * term/efi/console.c (grub_console_init): Add name parameter for auto
36167 generation of handler.lst.
36168 * term/gfxterm.c: Likewise.
36169 * term/i386/pc/at_keyboard.c: Likewise.
36170 * term/i386/pc/console.c: Likewise.
36171 * term/i386/pc/serial.c: Likewise.
36172 * term/i386/pc/vesafb.c: Likewise.
36173 * term/i386/pc/vga.c: Likewise.
36174 * term/i386/pc/vga_text.c: Likewise.
36175 * term/ieee1275/ofconsole.c: Likewise.
36176 * term/usb_keyboard.c: Likewise.
36177
33c846be 361782009-04-14 Bean <bean123ch@gmail.com>
36179
36180 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
36181 properly with null character.
36182
4484e01e 361832009-04-14 Felix Zielcke <fzielcke@z-51.de>
36184
36185 * configure: Remove.
36186 * config.h.in: Likewise.
f93d668e 36187 * stamp-h.in: Likewise.
4484e01e 36188 * DISTLIST: Likewise.
36189 * conf/common.mk: Likewise.
36190 * conf/i386-coreboot.mk: Likewise.
36191 * conf/i386-efi.mk: Likewise.
36192 * conf/i386-ieee1275.mk: Likewise.
36193 * conf/i386.mk: Likewise.
36194 * conf/i386-pc.mk: Likewise.
36195 * conf/powerpc-ieee1275.mk: Likewise.
36196 * conf/sparc64-ieee1275.mk: Likewise.
36197 * conf/x86_64-efi.mk: Likewise.
36198
36199 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
36200 develop on GRUB.
36201
7dd4a573 362022009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 36203 David S. Miller <davem@davemloft.net>
36204
36205 * util/hostdisk.c (make_device_name): Fix buffer length
36206 calculations.
36207
e25b5a8c 362082009-04-14 Felix Zielcke <fzielcke@z-51.de>
36209
36210 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
36211 <sys/param.h> and <sys/sysctl.h>.
36212 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
36213 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
36214 opening the device and reset them afterwards.
36215
1f1f580c 362162009-04-13 Pavel Roskin <proski@gnu.org>
36217
36218 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
36219 Reported by John Stanley <jpsinthemix@verizon.net>
36220
7ebc2d6b 362212009-04-13 Robert Millan <rmh@aybabtu.com>
36222
36223 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 36224 that name for menuentries when appropriate.
7ebc2d6b 36225
d8ba3667 362262009-04-13 Felix Zielcke <fzielcke@z-51.de>
36227
36228 * util/grub.d/10_freebsd.in: Add a missing `fi'.
36229
cba416eb 362302009-04-13 Robert Millan <rmh@aybabtu.com>
36231
36232 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
36233 to Linux, simply abort telling the user it's no longer supported.
36234
a547a745 362352009-04-13 Felix Zielcke <fzielcke@z-51.de>
36236
36237 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 36238 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 36239 `freebsd_loadenv' only when devices.hints exist.
36240
232a769c 362412009-04-13 Pavel Roskin <proski@gnu.org>
36242
36243 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
36244
c3012039 362452009-04-13 Felix Zielcke <fzielcke@z-51.de>
36246
36247 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
36248 partition number.
36249 (grub_drive): Likewise.
36250
234022fe 362512009-04-13 David S. Miller <davem@davemloft.net>
36252
36253 * kern/sparc64/ieee1275/ieee1275.c: New file.
36254 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
36255 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
36256 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
36257 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
36258 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
36259 grub_ieee1275_alloc_physmem): Declare new exported functions.
36260
d8e1836c 36261 * include/grub/sparc64/ieee1275/loader.h: New file.
36262 * include/grub/sparc64/ieee1275/memory.h: Likewise.
36263 * include/grub/sparc64/kernel.h: Likewise.
36264 * loader/sparc64/ieee1275/linux.c: Likewise.
36265
96bd81ec 36266 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
36267 (grub_fstest_SOURCES): Likewise.
36268
6a4737e5 36269 * util/hostdisk.c (make_device_name): Do not make any assumptions
36270 about the length of drive names.
36271
1d7a72fd 36272 * kern/dl.c (grub_dl_load_file): Close file immediately when
36273 we are done using it.
36274
56bc2471 362752009-04-12 David S. Miller <davem@davemloft.net>
36276
36277 * kern/misc.c (grub_ltoa): Fix cast when handling negative
36278 values. Noticed by Pavel Roskin.
36279
df38d0bb 36280 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
36281 target compiler.
7dd4a573 36282
e382e93a 36283 * genmk.rb: Add more flexible image type specification, also
36284 pass --strip-unneeded to objcopy.
36285 * conf/i386-pc.rmk: Use *_FORMAT.
36286 * conf/i386-pc.mk: Rebuilt.
36287
f5dbbca9 36288 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
36289 (OFDISK_HASH_SZ): Define.
36290 (ofdisk_hash): New hash table.
36291 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
36292 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
36293 instead of device phandle which is not unique.
36294
91c88b12 36295 * kern/sparc64/ieee1275/init.c: Delete, replace with...
36296 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
36297 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
36298 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
36299 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
36300 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
36301 GRUB_KERNEL_MACHINE_DATA_END): Define.
36302 (grub_kernel_image_size, grub_total_module_size): Declare.
36303
5b5d4aa5 363042009-04-12 Pavel Roskin <proski@gnu.org>
36305
7dd4a573 36306 * configure.ac: Change the logic when we check for target tools.
36307 Do it when the target is specified and it's different from the
36308 specified value of the host.
5b5d4aa5 36309
c91e1793 363102009-04-11 Felix Zielcke <fzielcke@z-51.de>
36311
36312 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
36313 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
36314 GNU/kFreeBSD. Check if a device is a character device. Use
36315 DIOCGMEDIASIZE to get the size.
36316 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
36317 support for GNU/kFreeBSD.
36318 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
36319 is a character device instead of a block device. Add support for
36320 FreeBSD device names.
36321
36322 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
36323 is a character device instead of a block device.
36324
36325 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
36326 is a character device instead of a block device.
36327
b1ac8644 363282009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
36329
36330 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
36331 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
36332 FreeBSD. Check if a device is a character device. Use
36333 DIOCGMEDIASIZE to get the size.
36334 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
36335 support for FreeBSD.
36336 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
36337 is a character device instead of a block device. Add support for
36338 FreeBSD device names.
36339
36340 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
36341 a character device instead of a block device.
36342 (grub_util_check_char_device): New function.
36343
36344 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
36345 a character device instead of a block device.
36346
36347 * include/grub/util/getroot.h (grub_util_check_char_device): New
36348 prototype.
36349
a3f7515a 363502009-04-11 David S. Miller <davem@davemloft.net>
36351
36352 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
36353 static libgcc.
36354 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
36355 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
36356 function, if present.
36357 (__bswapdi2): Likewise.
36358
0d44993d 36359 * include/grub/sparc64/ieee1275/boot.h: New file.
36360 * boot/sparc64/ieee1275/boot.S: Likewise.
36361 * boot/sparc64/ieee1275/diskboot.S: Likewise.
36362
ed3d2bc2 36363 * kern/misc.c (grub_ltoa): New function.
36364 (grub_vsprintf): Use it to format 'long' integers.
36365
d3bfb59c 363662009-04-10 David S. Miller <davem@davemloft.net>
36367
36368 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
36369 slots are of type grub_ieee1275_cell_t.
36370 (grub_nand_read): Likewise.
36371 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
36372 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
36373 macros are used to compare values in arg/ret block of the call.
36374 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36375 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
36376 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
36377 grub_ieee1275_instance_to_path, grub_ieee1275_write,
36378 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
36379 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
36380 grub_ieee1275_close, grub_ieee1275_set_property,
36381 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
36382 grub_ieee1275_cell_t.
36383 * kern/ieee1275/openfw.c (grub_map): Likewise.
36384 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
36385 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
36386
450e2238 36387 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
36388 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
36389 (grub_devalias_iterate): Likewise.
36390
7dd4a573 363912009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 36392
36393 UFS improvements
36394
36395 * fs/ufs.c (INODE_NBLOCKS): new definition
36396 (struct grub_ufs_dirent): added fields for non-BSD dirents
36397 (grub_ufs_get_file_block): fixed double indirect handling
36398 (grub_ufs_lookup_symlink): use more robust way to determine whether
36399 symlink is inline
36400 (grub_ufs_find_file): support for non-BSD dirents
36401 (grub_ufs_dir): support for non-BSD dirents
36402
e7e6862a 364032009-04-10 Bean <bean123ch@gnail.com>
36404
36405 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
36406 attribute, otherwise the size would be wrong for i386 platform.
36407
36408 * include/grub/pci.h (grub_pci_read_word): New inline function.
36409 (grub_pci_read_byte): Likewise.
36410 (grub_pci_write): Likewise.
36411 (grub_pci_write_word): Likewise.
36412 (grub_pci_write_byte): Likewise.
36413
36414 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
36415
36416 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
36417 (find_framebuf): Scan pci to locate the frame buffer address.
36418
36419 * commands/efi/fixvideo.c: New file.
36420
36421 * commands/efi/loadbios.c: Likewise.
36422
36423 * commands/memrw.c: Likewise.
36424
36425 * util/grub-dumpbios.in: Likewise.
36426
36427 * conf/common.rmk (grub-dumpbios): New utility.
36428 (pkglib_MODULES): New module memrw.mod.
36429 (memrw_mod_SOURCE): New macro.
36430 (memrw_mod_CFLAGS): Likewise.
36431 (memrw_mod_LDFLAGS): Likewise.
36432
7dd4a573 36433 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36434 fixvideo.mod.
36435 (loadbios_mod_SOURCE): New macro.
36436 (loadbios_mod_CFLAGS): Likewise.
36437 (loadbios_mod_LDFLAGS): Likewise.
36438 (fixvideo_mod_SOURCE): Likewise.
36439 (fixvideo_mod_CFLAGS): Likewise.
36440 (fixvideo_mod_LDFLAGS): Likewise.
36441
7dd4a573 36442 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36443 fixvideo.mod.
36444 (loadbios_mod_SOURCE): New macro.
36445 (loadbios_mod_CFLAGS): Likewise.
36446 (loadbios_mod_LDFLAGS): Likewise.
36447 (fixvideo_mod_SOURCE): Likewise.
36448 (fixvideo_mod_CFLAGS): Likewise.
36449 (fixvideo_mod_LDFLAGS): Likewise.
36450
af63ada2 364512009-04-08 Felix Zielcke <fzielcke@z-51.de>
36452
36453 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
36454
c2cdde70 364552009-04-07 David S. Miller <davem@davemloft.net>
36456
36457 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
36458 support for R_SPARC_OLO10 relocations. Fix compile warning for
36459 R_SPARC_WDISP30 case.
ea3f72cf 36460 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 36461
761319cf 364622009-04-06 Pavel Roskin <proski@gnu.org>
36463
1007d1f5 36464 * include/grub/misc.h (ARRAY_SIZE): New macro.
36465 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
36466 New macro.
36467 * loader/i386/linux.c (allocate_pages): Use free_pages().
36468 (grub_linux_unload): Don't use free_pages().
36469 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
36470 wrong index. Treat all other modes as text modes.
36471 (grub_cmd_linux): Initialize vid_mode unconditionally to
36472 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
36473
761319cf 36474 * commands/help.c (print_command_help): Use cmd->prio, not
36475 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
36476
ea761d40 364772009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 36478
ea761d40 36479 Parttool
36480
36481 * parttool/pcpart.c: new file
36482 * commands/parttool.c: likewise
36483 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
36484 (parttool_mod_SOURCES): new variable
36485 (parttool_mod_CFLAGS): likewise
36486 (parttool_mod_LDFLAGS): likewise
36487 (pcpart_mod_SOURCES): likewise
36488 (pcpart_mod_CFLAGS): likewise
36489 (pcpart_mod_LDFLAGS): likewise
7dd4a573 36490 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 36491 and parttool/pcpart.c
36492 * conf/i386-efi.rmk: likewise
36493 * conf/i386-ieee1275.rmk: likewise
36494 * conf/i386-pc.rmk: likewise
36495 * conf/powerpc-ieee1275.rmk: likewise
36496 * conf/sparc64-ieee1275.rmk: likewise
36497 * conf/x86_64-ieee1275.rmk: likewise
36498
05aaebfb 364992009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36500
36501 Support for mtime and further expandability of dir command
36502
36503 * include/grub/lib/datetime.h: moved to ...
7dd4a573 36504 * include/grub/datetime.h: ... moved here and added
05aaebfb 36505 declaration of grub_unixtime2datetime. All users updated
7dd4a573 36506 * include/grub/fs.h: new syntax for dir and mtime functions in
36507 struct grub_fs
05aaebfb 36508 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
36509 and GRUB_FSHELP_FLAGS_MASK
36510 * commands/ls.c (grub_ls_list_files): Write mtime in long format
36511 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
36512 (grub_ext2_mtime): new function
36513 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
36514 (grub_hfsplus_mtime): new function
36515 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
36516 (GRUB_UFS_ATTR_FILE): likewise
36517 (GRUB_UFS_ATTR_LNK): likewise
36518 (struct grub_ufs_sblock): new fields mtime
36519 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
36520 all users updated
36521 (grub_ufs_dir): mtime support
36522 (grub_ufs_mtime): new function
36523 * fs/affs.c (grub_affs_dir): use new dir syntax
36524 * fs/afs.c (grub_afs_dir): likewise
36525 * fs/cpio.c (grub_cpio_dir): likewise
36526 * fs/fat.c (grub_fat_find_dir): likewise
36527 * fs/hfs.c (grub_hfs_dir): likewise
36528 * fs/iso9660.c (grub_iso9660_dir): likewise
36529 * fs/jfs.c (grub_jfs_dir): likewise
36530 * fs/minix.c (grub_minix_dir): likewise
36531 * fs/ntfs.c (grub_ntfs_dir): likewise
36532 * fs/reiserfs.c (grub_reiserfs_dir): likewise
36533 * fs/sfs.c (grub_sfs_dir): likewise
36534 * fs/xfs.c (grub_xfs_dir): likewise
36535 * util/hostfs.c (grub_hostfs_dir): likewise
36536 * lib/datetime.c: moved to ...
36537 * normal/datetime.c: ... moved here
36538 (grub_unixtime2datetime): new function
36539 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 36540 * normal/completion.c (iterate_dir): use new dir syntax
36541 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 36542 last modification time of a volume
7dd4a573 36543 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 36544 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 36545 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 36546 (normal_mod_SOURCES): likewise
36547 (datetime_mod_SOURCES): Removed lib/datetime.c
36548 * conf/i386-efi.rmk: likewise
7dd4a573 36549 * conf/i386-ieee1275.rmk: likewise
05aaebfb 36550 * conf/i386-pc.rmk: likewise
36551 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 36552 * conf/sparc64-ieee1275.rmk: likewise
36553 * conf/x86_64-efi.rmk: likewise
05aaebfb 36554
8a7e1a14 365552009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36556
36557 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 36558
36559 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 36560 on grub_fat_find_dir
36561 (grub_fat_find_dir): use grub_fat_iterate_dir
36562 (grub_fat_label): likewise
36563
04186a9c 365642009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
36565
7dd4a573 36566 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 36567 and command.h
36568 remove extraneous kernel_elf_HEADERS
36569
da4c0bb6 365702009-04-04 Bean <bean123ch@gnail.com>
36571
36572 * include/grub/util/misc.h: Add dummy function fsync for mingw.
36573
36574 * util/misc.c: Likewise.
36575
54ad9555 365762009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
36577
36578 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
36579 instead of grub_printf.
36580
7a6bf9f2 365812009-04-03 Robert Millan <rmh@aybabtu.com>
36582
36583 * loader/i386/linux.c (grub_linux_setup_video): Fill
36584 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
36585 values from `mode info' structure instead of hardcoded
36586 values.
36587
3fcc2083 365882009-04-01 Pavel Roskin <proski@gnu.org>
36589
36590 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
36591 unused now.
36592 * genmk.rb: Likewise.
36593 * configure.ac: Likewise.
36594
5ec9740b 365952009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
36596
36597 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
36598 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
36599
5270cec8 366002009-04-01 David S. Miller <davem@davemloft.net>
36601
36602 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 36603 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 36604 (grub_setjmp): Mark with 'returns_twice' attribute.
36605 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
36606 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
36607 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
36608
9c3dd854 366092009-04-01 Robert Millan <rmh@aybabtu.com>
36610
36611 Reapply fix from 2008-07-28 which was accidentally reverted; also
36612 perform the same fix to a similar check in same function.
36613
36614 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36615 with the same number are found, just use issue a warning with
36616 grub_dprintf(), as this error has been reported to be non-fatal.
36617
0d818b7e 366182009-03-31 Pavel Roskin <proski@gnu.org>
36619
36620 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
36621 for cross-compilation.
36622
95646d92 366232009-03-30 Robert Millan <rmh@aybabtu.com>
36624
36625 Fix i386-ieee1275 build.
36626
36627 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
36628 Remove declaration.
36629
6a003ed1 366302009-03-30 Pavel Roskin <proski@gnu.org>
36631
36632 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
36633 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
36634 zero-terminated, rely only on the strlen value. Fix comparison
36635 of strings differing in length.
36636
92f33540 366372009-03-30 Robert Millan <rmh@aybabtu.com>
36638
36639 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
36640 checking for abi version. Improve error messages on BIOS to notify
36641 user about `linux16' command.
36642
a8c48fd5 366432009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
36644
f968172e 36645 Leak fixes
a8c48fd5 36646
f968172e 36647 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
36648 in case of collision
36649 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 36650
9c323f09 366512009-03-29 Robert Millan <rmh@aybabtu.com>
36652
36653 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
36654 set `vid_mode' accordingly.
36655 (grub_linux_boot): Process `vid_mode' and set video mode.
36656
ae68f423 366572009-03-29 Robert Millan <rmh@aybabtu.com>
36658
36659 * util/grub.d/10_linux.in (linux_entry): New function.
36660 Factorize generation of Linux boot entries.
36661
5709cfc4 366622009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
36663
36664 Make the format of Environment Block plain text. The boot loader
36665 part is not tested well yet.
7dd4a573 36666
5709cfc4 36667 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
36668 (buffer): Removed.
36669 (envblk): Likewise.
36670 (usage): Remove "info" and "clear". Add "unset". Update the
36671 description of "set", as this does not delete variables any
36672 longer.
36673 (create_envblk_file): Complete rewrite.
36674 (open_envblk_file): Likewise.
36675 (cmd_info): Removed.
36676 (cmd_list): Likewise.
36677 (cmd_set): Likewise.
36678 (cmd_clear): Likewise.
36679 (list_variables): New function.
36680 (write_envblk): Likewise.
36681 (set_variables): Likewise.
36682 (unset_variables): Likewise.
36683 (main): Complete rewrite.
36684
36685 * commands/loadenv.c (buffer): Removed.
36686 (envblk): Likewise.
36687 (open_envblk_file): New function.
36688 (read_envblk_file): Complete rewrite.
36689 (grub_cmd_load_env): Likewise.
36690 (grub_cmd_list_env): Likewise.
36691 (struct blocklist): New struct.
36692 (free_blocklists): New function.
36693 (check_blocklists): Likewise.
36694 (write_blocklists): Likewise.
36695 (grub_cmd_save_env): Complete rewrite.
36696
36697 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
36698 a plain text signature.
36699 (GRUB_ENVBLK_MAXLEN): Removed.
36700 (struct grub_envblk): Complete rewrite.
36701 (grub_envblk_find): Removed.
36702 (grub_envblk_insert): Likewise.
36703 (grub_envblk_open): New prototype.
36704 (grub_envblk_set): Likewise.
36705 (grub_envblk_delete): Put const to VALUE.
36706 (grub_envblk_iterate): Put const to NAME and VALUE.
36707 (grub_envblk_close): New prototype.
36708 (grub_envblk_buffer): New inline function.
36709 (grub_envblk_size): Likewise.
36710
36711 * lib/envblk.c: Include grub/mm.h.
36712 (grub_env_find): Removed.
36713 (grub_envblk_open): New function.
36714 (grub_envblk_close): Likewise.
36715 (escaped_value_len): Likewise.
36716 (find_next_line): Likewise.
36717 (grub_envblk_insert): Removed.
36718 (grub_envblk_set): New function.
36719 (grub_envblk_delete): Complete rewrite.
36720 (grub_envblk_iterate): Likewise.
36721
a9368fd3 367222009-03-28 Robert Millan <rmh@aybabtu.com>
36723
36724 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
36725 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
36726 variables. Use 16-bit loader.
36727 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
36728 loader.
36729 * kern/i386/loader.S (grub_linux_boot): Rename to ...
36730 (grub_linux16_boot): ... this. Update all users.
36731 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
36732 (grub_linux_boot): ... this. Update all users.
36733
36734 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
36735 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
36736 commands to `linux16' and `initrd16'.
36737 (GRUB_MOD_FINI(linux)): Rename to ...
36738 (GRUB_MOD_FINI(linux16)): ... this.
36739
e4dd5a7e 367402009-03-24 Pavel Roskin <proski@gnu.org>
36741
36742 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
36743 not just for compilation.
36744
c04d6e05 367452009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
36746
36747 Move multiboot helper out of kernel
36748
36749 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
36750 `loader/i386/multiboot_helper.S'.
36751 * conf/i386-coreboot.rmk: Likewise
36752 * conf/i386-ieee1275.rmk: Likewise
36753
36754 * kern/i386/loader.S: Move multiboot helpers from here...
36755 * loader/i386/multiboot_helper.S: ...moved here
36756 * include/grub/i386/loader.h: Move declarations of multiboot
36757 helpers from here...
36758 * include/grub/i386/multiboot.h: ...moved here
36759 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
36760
42a5b3fc 367612009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36762
36763 * kern/env.c (grub_env_context_open): Added an argument to specify
36764 whether a new context inherits exported variables from current
36765 one. This is useful when making a sandbox to interpret a config
36766 file.
36767 All callers updated.
36768
36769 * include/grub/env.h (grub_env_context_open): Updated the prototype.
36770
b28bbc4e 367712009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36772
36773 * kern/env.c (grub_env_context_close): Fix memory leaks.
36774
f04f02e4 367752009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36776
36777 * normal/main.c (grub_normal_execute): Added an argument
36778 BATCH to specify if an interactive interface should be provided
36779 after reading a config file.
36780 All callers updated.
36781 (read_command_list): Prevent being executed twice.
36782 (read_fs_list): Likewise.
36783
42a5b3fc 36784 * include/grub/normal.h (grub_normal_execute): Updated the
36785 prototype.
f04f02e4 36786
41473ac2 367872009-03-22 Pavel Roskin <proski@gno.org>
36788
fbc00b0c 36789 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
36790 _start.
36791 * kern/i386/pc/startup.S: Likewise.
36792 * kern/i386/efi/startup.S: Likewise.
36793 * kern/i386/ieee1275/startup.S: Likewise.
36794 * kern/i386/coreboot/startup.S: Likewise.
36795 * kern/x86_64/efi/startup.S: Likewise.
36796
41473ac2 36797 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
36798 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
36799 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
36800
2274cc8f 368012009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
36802
36803 Bugfixes in multiboot for bugs uncovered by solaris kernel.
36804
36805 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
36806 limit detection.
36807 Use vaddr of correct segment for entry_point.
36808
b1b797cb 368092009-03-21 Bean <bean123ch@gmail.com>
36810
36811 * commands/blocklist.c: Add include file <grub/command.h>, remove
36812 <grub/normal.h> and <grub/arg.h>.
36813 (grub_cmd_blocklist): Use the new command interface.
36814 (GRUB_MOD_INIT): Likewise.
36815 (GRUB_MOD_FINI): Likewise.
36816 * commands/boot.c: Likewise.
36817 * commands/cat.c: Likewise.
36818 * commands/cmp.c: Likewise.
36819 * commands/configfile.c: Likewise.
36820 * commands/crc.c: Likewise.
36821 * commands/echo.c: Likewise.
36822 * commands/halt.c: Likewise.
36823 * commands/handler.c: Likewise.
36824 * commands/hdparm.c: Likewise.
36825 * commands/help.c: Likewise.
36826 * commands/hexdump.c: Likewise.
36827 * commands/loadenv.c: Likewise.
36828 * commands/ls.c: Likewise.
36829 * commands/lsmmap.c: Likewise.
36830 * commands/lspci.c: Likewise.
36831 * commands/loadenv.c: Likewise.
36832 * commands/read.c: Likewise.
36833 * commands/reboot.c: Likewise.
36834 * commands/search.c: Likewise.
36835 * commands/sleep.c: Likewise.
36836 * commands/test.c: Likewise.
36837 * commands/usbtest.c: Likewise.
36838 * commands/videotest.c: Likewise.
36839 * commands/i386/cpuid.c: Likewise.
36840 * commands/i386/pc/halt.c: Likewise.
36841 * commands/i386/pc/play.c: Likewise.
36842 * commands/i386/pc/pxecmd.c: Likewise.
36843 * commands/i386/pc/vbeinfo.c: Likewise.
36844 * commands/i386/pc/vbetest.c: Likewise.
36845 * commands/ieee1275/suspend.c: Likewise.
36846 * disk/loopback.c: Likewise.
36847 * font/font_cmd.c: Likewise.
36848 * hello/hello.c: Likewise.
36849 * loader/efi/appleloader.c: Likewise.
36850 * loader/efi/chainloader.c: Likewise.
36851 * loader/i386/bsd.c: Likewise.
36852 * loader/i386/efi/linux.c: Likewise.
36853 * loader/i386/ieee1275/linux.c: Likewise.
36854 * loader/i386/linux.c: Likewise.
36855 * loader/i386/pc/chainloader.c: Likewise.
36856 * loader/i386/pc/linux.c: Likewise.
36857 * loader/powerpc/ieee1275/linux.c: Likewise.
36858 * loader/multiboot_loader.c: Likewise.
36859 * term/gfxterm.c: Likewise.
36860 * term/i386/pc/serial.c: Likewise.
36861 * term/terminfo.c: Likewise.
36862
36863 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
36864 * term/i386/pc/vga.c: Likewise.
36865 * video/readers/jpeg.c: Likewise.
36866 * video/readers/png.c: Likewise.
36867 * video/readers/tga.c: Likewise.
36868
36869 * util/grub-fstest (cmd_loopback): Removed.
36870 (cmd_blocklist): Likewise.
36871 (cmd_ls): Likewise.
36872 (grub_register_command): Likewise.
36873 (grub_unregister_command): Likewise.
36874 (execute_command): Use grub_command_find to locate command and execute
36875 it.
36876
36877 * include/grub/efi/chainloader.h: Removed.
36878 * loader/efi/chainloader_normal.c: Likewise.
36879 * loader/i386/bsd_normal.c: Likewise.
36880 * loader/i386/pc/chainloader_normal.c: Likewise.
36881 * loader/i386/pc/multiboot_normal.c: Likewise.
36882 * loader/linux_normal.c: Likewise.
36883 * loader/multiboot_loader_normal.c: Likewise.
36884 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
36885
36886 * gencmdlist.sh: Scan new registration command grub_register_extcmd
36887 and grub_register_command_p1.
36888
36889 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
36890 kern/command.c, lib/arg.c and commands/extcmd.c.
36891 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
36892 (minicmd_mod_SOURCES): New variable.
36893 (minicmd_mod_CFLAGS): Likewise.
36894 (minicmd_mod_LDFLAGS): Likewise.
36895 (extcmd_mod_SOURCES): Likewise.
36896 (extcmd_mod_CFLAGS): Likewise.
36897 (extcmd_mod_LDFLAGS): Likewise.
36898 (boot_mod_SOURCES): Removed.
36899 (boot_mod_CFLAGS): Likewise.
36900 (boot_mod_LDFLAGS): Likewise.
36901
36902 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
36903 kern/corecmd.c.
36904 (kernel_img_HEADERS): Add command.h.
36905 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
36906 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
36907 and lib/arg.c.
36908 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
36909 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
36910 remove the corresponding normal mode command.
36911 (normal_mod_SOURCES): Remove normal/arg.c.
36912 * conf/i386-coreboot.rmk: Likewise.
36913 * conf/i386-efi.rmk: Likewise.
36914 * conf/i386-ieee1275.rmk: Likewise.
36915 * conf/powerpc-ieee1275.rmk: Likewise.
36916 * conf/x86_64-efi.rmk: Likewise.
36917
36918 * include/grub/arg.h: Move from here ...
36919 * include/grub/lib/arg.h: ... to here.
36920
36921 * normal/arg.c: Move from here ...
36922 * lib/arg.c: ... to here.
36923
36924 * commands/extcmd.c: New file.
36925 * commands/minicmd.c: Likewise.
36926 * include/grub/command.h: Likewise.
36927 * include/grub/extcmd.h: Likewise.
36928 * kern/command.c: Likewise.
36929 * kern/corecmd.c: Likewise.
36930
36931 * kern/list.c (grub_list_iterate): Return int instead of void.
36932 (grub_list_insert): New function.
36933 (grub_prio_list_insert): Likewise.
36934
36935 * kern/rescue.c (grub_rescue_command): Removed.
36936 (grub_rescue_command_list): Likewise.
36937 (grub_rescue_register_command): Likewise.
36938 (grub_rescue_unregister_command): Likewise.
36939 (grub_rescue_cmd_boot): Move to minicmd.c
36940 (grub_rescue_cmd_help): Likewise.
36941 (grub_rescue_cmd_info): Likewise.
36942 (grub_rescue_cmd_boot): Likewise.
36943 (grub_rescue_cmd_testload): Likewise.
36944 (grub_rescue_cmd_dump): Likewise.
36945 (grub_rescue_cmd_rmmod): Likewise.
36946 (grub_rescue_cmd_lsmod): Likewise.
36947 (grub_rescue_cmd_exit): Likewise.
36948 (grub_rescue_print_devices): Moved to corecmd.c.
36949 (grub_rescue_print_files): Likewise.
36950 (grub_rescue_cmd_ls): Likewise.
36951 (grub_rescue_cmd_insmod): Likewise.
36952 (grub_rescue_cmd_set): Likewise.
36953 (grub_rescue_cmd_unset): Likewise.
7d074e3c 36954 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 36955 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 36956 commands, remove grub_rescue_register_command calls.
b1b797cb 36957
7d074e3c 36958 * normal/command.c (grub_register_command): Removed.
b1b797cb 36959 (grub_unregister_command): Likewise.
36960 (grub_command_find): Likewise.
36961 (grub_iterate_commands): Likewise.
36962 (rescue_command): Likewise.
36963 (export_command): Moved to corecmd.c.
36964 (set_command): Removed.
36965 (unset_command): Likewise.
36966 (insmod_command): Likewise.
36967 (rmmod_command): Likewise.
36968 (lsmod_command): Likewise.
36969 (grub_command_init): Likewise.
36970
36971 * normal/completion.c (iterate_command): Use cmd->prio to check for
36972 active command.
36973 (complete_arguments): Use grub_extcmd_t structure to find options.
36974 (grub_normal_do_completion): Change function grub_iterate_commands to
36975 grub_command_iterate.
36976
36977 * normal/execute.c (grub_script_execute_cmd): No need to parse
36978 argument here.
36979
36980 * normal/main.c (grub_dyncmd_dispatcher): New function.
36981 (read_command_list): Register unload commands as dyncmd.
36982 (grub_cmd_normal): Use new command interface, register rescue,
36983 unregister normal at entry, register normal, unregister rescue at exit.
36984
36985 * include/grub/list.h (grub_list_test_t): New type.
36986 (grub_list_iterate): Return int instead of void.
36987 (grub_list_insert): New function.
36988 (GRUB_AS_NAMED_LIST_P): New macro.
36989 (GRUB_AS_PRIO_LIST): Likewise.
36990 (GRUB_AS_PRIO_LIST_P): Likewise.
36991 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
36992 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
36993 (grub_prio_list): New structure.
36994 (grub_prio_list_insert): New function.
36995 (grub_prio_list_remove): New inline function.
36996
36997 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
36998 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
36999 (GRUB_COMMAND_FLAG_MENU): Likewise.
37000 (GRUB_COMMAND_FLAG_BOTH): Likewise.
37001 (GRUB_COMMAND_FLAG_TITLE): Likewise.
37002 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
37003 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
37004 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
37005 (grub_command): Likewise.
37006 (grub_register_command): Likewise.
37007 (grub_command_find): Likewise.
37008 (grub_iterate_commands): Likewise.
37009 (grub_command_init): Likewise.
37010 (grub_arg_parse): Likewise.
37011 (grub_arg_show_help): Likewise.
37012
37013 * include/grub/rescue.h (grub_rescue_register_command): Removed.
37014 (grub_rescue_unregister_command): Likewise.
37015
37016 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
37017 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
37018 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
37019
37020 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
37021 grub_rescue_cmd_initrd.
37022 * include/grub/i386/loader.h: Likewise.
37023 * include/grub/x86_64/loader.h: Likewise.
37024
37025 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
37026
1f4147aa 370272009-03-21 Bean <bean123ch@gmail.com>
37028
37029 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
37030 instead of stat in mingw environment.
37031
37032 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
37033
37034 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
37035
37036 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
37037 AC_CONFIG_LINKS.
37038
2156d5ba 370392009-03-21 Bean <bean123ch@gmail.com>
37040
37041 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
37042 out of range error.
37043
177b82ca 370442009-03-18 Michel Dänzer <michel@daenzer.net>
37045
37046 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
37047 checking inode flags for EXT4_EXTENTS_FLAG.
37048
14aad807 370492009-03-18 Robert Millan <rmh@aybabtu.com>
37050
37051 * loader/i386/linux.c: Include `<grub/video.h>' and
37052 `<grub/i386/pc/vbe.h>'..
37053 (grub_linux_setup_video): New function. Loosely based on the EFI one.
37054 (grub_linux32_boot): Attempt to configure video settings with
37055 grub_linux_setup_video().
37056 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
37057 to avoid grub_console_fini() which would step out of graphical mode
37058 unconditionally.
37059
8cf83a27 370602009-03-14 Robert Millan <rmh@aybabtu.com>
37061
37062 Fix build on powerpc.
37063 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
37064
40164e75 370652009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
37066
37067 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
37068 background image command.
37069
c58bc32a 370702009-03-12 Colin D Bennett <colin@gibibit.com>
37071
37072 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
37073 (grub_gfxterm_putchar): Extract pairs of identical calls to
37074 draw_cursor out of conditional blocks.
37075
5415144a 370762009-03-11 Pavel Roskin <proski@gnu.org>
37077
37078 * fs/hfs.c (grub_hfs_strncasecmp): New function.
37079 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
37080
6394042e 370812009-03-11 Robert Millan <rmh@aybabtu.com>
37082
37083 * loader/i386/multiboot_elfxx.c
37084 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
37085
b7b50e5f 370862009-03-11 Felix Zielcke <fzielcke@z-51.de>
37087
37088 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
37089 `kern/handler.c'.
37090
1ca7fc96 370912009-03-11 Robert Millan <rmh@aybabtu.com>
37092
37093 * loader/i386/multiboot.c (code_size): New variable.
37094 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 37095 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 37096 4-byte alignment to MBI and others by increasing
7d074e3c 37097 `boot_loader_name_length' appropriately.
1ca7fc96 37098
37099 * loader/i386/multiboot_elfxx.c
37100 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
37101
a83ea1d2 371022009-03-09 Felix Zielcke <fzielcke@z-51.de>
37103
37104 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
37105 `fs/ext2.c'.
37106
aa9f3bff 371072009-03-08 Robert Millan <rmh@aybabtu.com>
37108
37109 Make loader/i386/linux.c usable on i386-pc again.
37110
37111 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
37112 memory to heap.
37113 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
37114 `#error' stanza.
37115
d8b3b60e 371162009-03-07 Bean <bean123ch@gmail.com>
37117
37118 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
37119 allocation.
37120
b362c9e9 371212009-03-06 Robert Millan <rmh@aybabtu.com>
37122
37123 Fix display issue on terminals with screen size other than 80x25
37124 (e.g. gfxterm with resolution higher than 640x480).
37125
37126 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 37127 position relative to the center of the terminal instead of relying
b362c9e9 37128 on a hardcoded offset.
37129
9304eef1 371302009-03-04 Robert Millan <rmh@aybabtu.com>
37131
37132 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
37133 installed.
37134
37135 * Makefile.in (host_kernel): New variable.
37136 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
37137 scripts instead of just the windows one.
37138 * configure.ac: Initialize and AC_SUBST `host_kernel'.
37139
eabc95fb 371402009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 37141
37142 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
37143 `kern/handler.c'.
37144 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37145 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37146 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37148 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37149 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37150
ceb1223c 371512009-03-04 Felix Zielcke <fzielcke@z-51.de>
37152
37153 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
37154 or if there's no space for the disk label and print the partition number on a
37155 invalid magic.
37156
4910684a 371572009-03-04 Felix Zielcke <fzielcke@z-51.de>
37158
37159 * util/misc.c: Include <time.h>.
37160 (grub_millisleep): New function.
37161
7e9ca17a 371622009-03-04 Bean <bean123ch@gmail.com>
37163
37164 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
37165 another option -mno-red-zone.
37166
37167 * commands/handler.c: Change module description.
37168
37169 * kern/handler.c: Add missing space at the end of description line.
37170
37171 * kern/list.c: Likewise.
37172
f501677c 371732009-03-03 Robert Millan <rmh@aybabtu.com>
37174
37175 Move more components to the relocation area, and fix mbi pointer
37176 handling to use the destination rather than the origin (thanks to
37177 Vladimir Serbinenko for spotting).
37178
37179 * loader/i386/multiboot.c (mbi_dest): New variable.
37180 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
37181 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
37182 relocation area.
37183
9902d047 371842009-03-01 Bean <bean123ch@gmail.com>
37185
50fb7002 37186 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 37187 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
37188 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
37189 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
37190
37191 * loader/i386/efi/linux.c (acpi_guid): New variable.
37192 (acpi_guid): Likewise.
37193 (EBDA_SEG_ADDR): New constant.
37194 (LOW_MEM_ADDR): Likewise.
37195 (FAKE_EBDA_SEG): Likewise.
37196 (fake_bios_data): New function.
37197 (grub_linux_boot): Call fake_bios_data.
37198
71b9f361 371992009-03-01 Bean <bean123ch@gmail.com>
37200
37201 * commands/terminal.c: Removed.
37202
37203 * commands/handler.c: New file.
37204
37205 * include/grub/list.h: Likewise.
37206
37207 * include/grub/handler.h: Likewise.
37208
37209 * kern/list.c: Likewise.
37210
37211 * kern/handler.c: Likewise.
37212
37213 * kern/term.h: Include header file <grub/handler.h>.
37214 (grub_term_input): Move next field to the beginning.
37215 (grub_term_output): Likewise.
37216 (grub_term_input_class): New variable.
37217 (grub_term_output_class): Likewise.
37218 (grub_term_register_input): Changed to inline function.
37219 (grub_term_register_output): Likewise.
37220 (grub_term_unregister_input): Likewise.
37221 (grub_term_unregister_output): Likewise.
37222 (grub_term_set_current_input): Likewise.
37223 (grub_term_set_current_output): Likewise.
37224 (grub_term_get_current_input): Likewise.
37225 (grub_term_get_current_output): Likewise.
37226 (grub_term_iterate_input): Removed.
37227 (grub_term_iterate_output): Likewise.
37228
37229 * kern/term.c (grub_term_list_input): Removed.
37230 (grub_term_list_output): Likewise.
37231 (grub_term_input_class): New variable.
37232 (grub_term_output_class): Likewise.
50fb7002 37233 (grub_cur_term_input): Change variable as macro.
71b9f361 37234 (grub_cur_term_output): Likewise.
37235 (grub_term_register_input): Removed.
37236 (grub_term_register_output): Likewise.
37237 (grub_term_unregister_input): Likewise.
37238 (grub_term_unregister_output): Likewise.
37239 (grub_term_set_current_input): Likewise.
37240 (grub_term_set_current_output): Likewise.
37241 (grub_term_iterate_input): Likewise.
37242 (grub_term_iterate_output): Likewise.
37243 (grub_term_get_current_input): Likewise.
37244 (grub_term_get_current_output): Likewise.
37245
37246 * util/grub-editenv.c: Include header file <grub/handler.h>.
37247 (grub_term_get_current_input): Removed.
37248 (grub_term_get_current_output): Likewise.
37249 (grub_term_input_class): New variable.
50fb7002 37250 (grub_term_output_class): Likewise.
71b9f361 37251
37252 * util/grub-fstest.c (grub_term_get_current_input): Removed.
37253 (grub_term_get_current_output): Likewise.
37254 (grub_term_input_class): New variable.
50fb7002 37255 (grub_term_output_class): Likewise.
71b9f361 37256
37257 * util/grub-probe.c (grub_term_get_current_input): Removed.
37258 (grub_term_get_current_output): Likewise.
37259 (grub_term_input_class): New variable.
50fb7002 37260 (grub_term_output_class): Likewise.
71b9f361 37261
37262 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
37263 (grub_term_get_current_output): Likewise.
37264 (grub_term_input_class): New variable.
50fb7002 37265 (grub_term_output_class): Likewise.
71b9f361 37266
37267 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
37268 (terminal_mod_SOURCES): Likewise.
37269 (terminal_mod_CFLAGS): Likewise.
37270 (terminal_mod_LDFLAGS): Likewise.
37271
37272 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
37273 handler.c.
37274 (kernel_img_SOURCES): Add list.c and handler.c.
37275 (kernel_img_HEADERS): Add list.h and handler.h.
37276
37277 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37278 handler.c.
37279 (kernel_mod_SOURCES): Add list.c and handler.c.
37280 (kernel_mod_HEADERS): Add list.h and handler.h.
37281
37282 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
37283 handler.c.
37284 (kernel_elf_SOURCES): Add list.c and handler.c.
37285 (kernel_elf_HEADERS): Add list.h and handler.h.
37286
37287 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37288 handler.c.
37289 (kernel_elf_SOURCES): Add list.c and handler.c.
37290 (kernel_elf_HEADERS): Add list.h and handler.h.
37291
37292 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37293 handler.c.
37294 (kernel_mod_SOURCES): Add list.c and handler.c.
37295 (kernel_mod_HEADERS): Add list.h and handler.h.
37296
37297 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37298 handler.c.
37299 (kernel_elf_SOURCES): Add list.c and handler.c.
37300 (kernel_elf_HEADERS): Add list.h and handler.h.
37301
8a31787f 373022009-02-27 Robert Millan <rmh@aybabtu.com>
37303
37304 Factorize elf32 / elf64 code in Multiboot loader. This will
37305 prevent it from getting out of sync again.
37306
37307 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
37308 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
37309 grub_multiboot_load_elf64): Move from here ...
37310 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
37311 grub_multiboot_load_elf): ... to here (new file).
37312
51cd3dfc 373132009-02-27 Robert Millan <rmh@aybabtu.com>
37314
37315 * util/grub.d/10_linux.in: Rename "single-user mode" to
37316 "recovery mode".
37317
6e8c9c3a 373182009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
37319
37320 Don't leak in SCSI code.
37321 * disk/scsi.c (grub_scsi_close): free `scsi'.
37322
4b6bf4f9 373232009-02-27 Robert Millan <rmh@aybabtu.com>
37324
37325 * loader/i386/pc/multiboot.c: Move from here ...
37326 * loader/i386/multiboot.c: ... to here. Update all users.
37327
b9413424 373282009-02-27 Robert Millan <rmh@aybabtu.com>
37329
37330 Patch from Alexandre Bique <bique.alexandre@gmail.com>
37331 * util/i386/pc/grub-setup.c (setup): Fix directory path.
37332
50fb7002 373332009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 37334
37335 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
37336 b-tree.
37337
8cc50345 373382009-02-27 Robert Millan <rmh@aybabtu.com>
37339
37340 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
37341 `0x' qualifier as 0 when base is specified as parameter).
37342
6e09b8b7 373432009-02-24 Bean <bean123ch@gmail.com>
37344
37345 * configure.ac: Check for -mcmodel=large in x86_64 target.
37346
37347 * include/grub/efi/api.h (efi_call_10): New macro.
37348 (efi_wrap_10): New function.
37349
37350 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
37351 (GRUB_PE32_REL_BASED_HIGH): Likewise.
37352 (GRUB_PE32_REL_BASED_LOW): Likewise.
37353 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
37354 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
37355 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
37356 (GRUB_PE32_REL_BASED_SECTION): Likewise.
37357 (GRUB_PE32_REL_BASED_REL): Likewise.
37358 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
37359 (GRUB_PE32_REL_BASED_DIR64): Likewise.
37360 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
37361
37362 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
37363 issue.
37364
37365 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
37366 (efi_wrap_10): New function.
37367
37368 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
37369
37370 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
37371 MB/MBP model (NV chipset).
37372 (devdata_devs): Add devpath_5 to the list.
37373
37374 * load/i386/efi/linux.c (video_base): Remove variable.
37375 (RGB_MASK): New macro.
37376 (RGB_MAGIC): Likewise.
37377 (LINE_MIN): Likewise.
37378 (LINE_MAX): Likewise.
37379 (FBTEST_STEP): Likewise.
37380 (FBTEST_COUNT): Likewise.
37381 (fb_list): New variable.
37382 (grub_find_video_card): Remove function.
37383 (find_framebuf): New function.
37384 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
37385 line length.
37386
37387 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
37388 problem for x86_64.
37389
74b21bee 373902009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
37391
37392 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
37393
37394 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
37395 coding tool name.
37396
a455f472 373972009-02-22 Robert Millan <rmh@aybabtu.com>
37398
37399 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
37400 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
37401 in our relocation, instead of using it directly from heap. Also
37402 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
37403
6374daf3 374042009-02-21 Robert Millan <rmh@aybabtu.com>
37405
37406 Implement USB keyboard support (based on patch by Marco Gerards)
37407
37408 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
37409 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
37410 (usb_keyboard_mod_LDFLAGS): New variables.
37411
37412 * term/usb_keyboard.c: New file.
37413
8fa4ea70 374142009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
37415
37416 Corrected wrong declaration
37417
37418 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
37419
353976ac 374202009-02-14 Christian Franke <franke@computer.org>
37421
37422 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
37423 (grub_lspci_iter): Print class code and programming interface byte.
37424
6aa1169b 374252009-02-14 Christian Franke <franke@computer.org>
37426
37427 * gendistlist.sh: Ignore `.svn' directories.
37428
265372ca 374292009-02-14 Felix Zielcke <fzielcke@z-51.de>
37430
37431 * fs/fat.c: Add 2009 to Copyright line.
37432
9ff516f3 374332009-02-14 Christian Franke <franke@computer.org>
37434
37435 * commands/hdparm.c: New file. Provides `hdparm' command
37436 which sends ATA commands via grub_disk_ata_pass_through ().
37437
37438 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
37439
37440 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
37441 and <grub/cpu/io.h> to include/grub/ata.h.
37442 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
37443 (GRUB_CDROM_SECTOR_SIZE): Remove.
37444 (GRUB_ATA_*): Move to include/grub/ata.h.
37445 (GRUB_ATAPI_*): Likewise.
37446 (enum grub_ata_commands): Likewise.
37447 (enum grub_ata_timeout_milliseconds): Likewise.
37448 (struct grub_ata_device): Likewise.
37449 (grub_ata_regset): Likewise.
37450 (grub_ata_regget): Likewise.
37451 (grub_ata_regset2): Likewise.
37452 (grub_ata_regget2): Likewise.
37453 (grub_ata_check_ready): Likewise.
37454 (grub_ata_wait_not_busy): Remove static, exported in
37455 include/grub/ata.h.
37456 (grub_ata_wait_drq): Likewise.
37457 (grub_ata_pio_read): Likewise.
37458
37459 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
37460 function for hdparm.mod.
37461
37462 * include/grub/ata.h: New file, contains declarations from
37463 disk/ata.c.
37464 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
37465
37466 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
37467 (grub_disk_ata_pass_through): New exported variable.
37468
37469 * kern/disk.c (grub_disk_ata_pass_through): New variable.
37470
772e23da 374712009-02-13 Colin D Bennett <colin@gibibit.com>
37472
37473 Support multiple fallback entries, and provide an API to support
37474 executing default+fallback menu entries. Renamed the `terminal' menu
37475 viewer to `text'.
37476
37477 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
37478 variable declaration.
37479 (grub_menu_execute_callback): New structure declaration.
37480 (grub_menu_execute_callback_t): New typedef.
37481 (grub_menu_execute_with_fallback): New function declaration.
37482 (grub_menu_get_entry): Likewise.
37483 (grub_menu_get_timeout): Likewise.
37484 (grub_menu_set_timeout): Likewise.
37485
37486 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
37487
37488 * normal/menu.c (grub_wait_after_message): Moved to
37489 `normal/menu_text.c'.
37490 (draw_border): Likewise.
37491 (print_message): Likewise.
37492 (print_entry): Likewise.
37493 (print_entries): Likewise.
37494 (grub_menu_init_page): Likewise.
37495 (get_entry_number): Likewise.
37496 (print_timeout): Likewise.
37497 (run_menu): Likewise.
37498 (grub_menu_execute_entry): Likewise.
37499 (show_text_menu): Likewise.
37500 (get_and_remove_first_entry_number): New function.
37501 (grub_menu_execute_with_fallback): Likewise.
37502 (get_entry): Renamed to ...
37503 (grub_menu_get_entry): .. this and made it global.
37504 (get_timeout): Renamed to ...
37505 (grub_menu_get_timeout): ... this and made it global.
37506 (set_timeout): Renamed to ...
37507 (grub_menu_set_timeout): ... this and made it global.
37508 (grub_normal_terminal_menu_viewer): Renamed to ...
37509 (grub_normal_text_menu_viewer): ... this.
37510
37511 * normal/menu_text.c: New file. Extracted text-menu-specific code
37512 from normal/menu.c.
37513
37514 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
37515 (normal_mod_SOURCES): Likewise.
37516
37517 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37518 (normal_mod_SOURCES): Likewise.
37519
37520 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37521 (normal_mod_SOURCES): Likewise.
37522
37523 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
37524 (normal_mod_SOURCES): Likewise.
37525
37526 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37527 (normal_mod_SOURCES): Likewise.
37528
37529 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37530 (normal_mod_SOURCES): Likewise.
37531
37532 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37533 (normal_mod_SOURCES): Likewise.
37534
16ac430e 375352009-02-11 Robert Millan <rmh@aybabtu.com>
37536
37537 * util/grub.d/00_header.in: Update old reference to `font' command.
37538
06ff20fc 375392009-02-10 Felix Zielcke <fzielcke@z-51.de>
37540
37541 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
37542
37543 Based on patch from Javier Martín.
37544
96da9407 375452009-02-09 Felix Zielcke <fzielcke@z-51.de>
37546
37547 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 37548 to avoid false positives with FAT.
96da9407 37549 (grub_fstest_SOURCES): Likewise.
37550 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37551 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37553 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37554 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37555 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37556
6dca6fe4 375572009-02-09 Felix Zielcke <fzielcke@z-51.de>
37558
06ff20fc 37559 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 37560 bpb.version_specific.fat12_or_fat16.fstype and
37561 bpb.version_specific.fat32.fstype.
37562
2550c62f 375632009-02-08 Robert Millan <rmh@aybabtu.com>
37564
be110b30 37565 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 37566
56978920 375672009-02-08 Robert Millan <rmh@aybabtu.com>
37568
37569 * Makefile.in (host_os, host_cpu): New variables.
37570 (target_os): Remove. Update all users.
37571
d64399b5 375722009-02-08 Marco Gerards <marco@gnu.org>
37573
37574 * Makefile.in (enable_grub_emu_usb): New variable.
37575 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
37576 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
37577 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
37578 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
37579 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
37580 `usbtest.mod' and `usbms.mod'.
37581 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
37582 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
37583 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
37584 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
37585 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
37586 variables.
37587
37588 * disk/usbms.c: New file.
37589
37590 * include/grub/usb.h: Likewise.
37591
37592 * include/grub/usbtrans.h: Likewise.
37593
37594 * include/grub/usbdesc.h: Likewise.
37595
37596 * bus/usb/usbtrans.c: Likewise.
37597
37598 * bus/usb/ohci.c: Likewise.
37599
37600 * bus/usb/uhci.c: Likewise.
37601
37602 * bus/usb/usbhub.c: Likewise.
37603
37604 * bus/usb/usb.c: Likewise.
37605
37606 * commands/usbtest.c: Likewise.
37607
37608 * util/usb.c: Likewise.
50fb7002 37609
d64399b5 37610 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
37611
37612 * configure.ac: Test for libusb presence.
50fb7002 37613
d64399b5 37614 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
37615
2b40d6bb 376162009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
37617
37618 * kern/mm.c: Add more comments.
37619
73a4ce81 376202009-02-08 Robert Millan <rmh@aybabtu.com>
37621
37622 Patch from Javier Martín.
37623 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
37624 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
37625
f821ce59 376262009-02-08 Robert Millan <rmh@aybabtu.com>
37627
37628 * fs/cpio.c: Split tar functionality to ...
37629 * fs/tar.c: ... here (new file). Update all users.
37630
aebfc4b0 376312009-02-07 Robert Millan <rmh@aybabtu.com>
37632
37633 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
37634 backward-incompatible features.
37635
37636 Based on patch from Javier Martín, with some adjustments.
37637
50fb7002 376382009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 37639
37640 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
37641
0bb5115e 376422009-02-07 Robert Millan <rmh@aybabtu.com>
37643
37644 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
37645 position of `disk/lvm.c' to ensure grub_init_all() always picks it
37646 after the RAID stuff.
37647
38a0f8e7 376482009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
37649
50fb7002 37650 Fixes problem when running vbetest command as reported by
38a0f8e7 37651 Vladimir Serbinenko <phcoder@gmail.com>.
37652
37653 * (grub_vbe_set_video_mode): Fixed problem with text modes.
37654
3143cc1c 376552009-02-04 Felix Zielcke <fzielcke@z-51.de>
37656
37657 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
37658 /dev/md/NpN style mdraid devices.
37659
9cba6fce 376602009-02-03 Felix Zielcke <fzielcke@z-51.de>
37661
37662 * util/unifont2pff.rb: Remove.
37663
e507a2c1 376642009-02-03 Felix Zielcke <fzielcke@z-51.de>
37665
37666 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
37667 `#'.
37668
d2c2b4cd 376692009-02-03 Felix Zielcke <fzielcke@z-51.de>
37670
37671 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
37672 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37673 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37674 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37675 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37676 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37677 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37678
b4315fb0 376792009-02-02 Christian Franke <franke@computer.org>
37680
37681 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
37682
de3aa260 376832009-02-01 Felix Zielcke <fzielcke@z-51.de>
37684
7c3ff286 37685 * INSTALL: Note that we now require at least autoconf 2.59 and
37686 that LZO is optional.
de3aa260 37687
825a182b 376882009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37689
37690 Base on patch on bug #24154 created by Tomas Tintera
37691 <trosos@seznam.cz>.
37692
37693 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
37694
a69ef770 376952009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37696
7c3ff286 37697 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 37698 <bero@arklinux.org>.
37699
37700 * normal/parser.y (script_init): Add missing semicolon.
37701
6fa42fa6 377022009-01-31 Colin D Bennett <colin@gibibit.com>
37703
7c3ff286 37704 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 37705 (free_menu_entry_classes): Added.
37706 (grub_normal_menu_addentry): Added class property handling.
37707 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
37708 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
37709
37710 * normal/menu_viewer.c: New file.
37711
37712 * normal/menu.c (run_menu_entry): Renamed to ...
37713 (grub_menu_execute_entry): ... this and made it as global.
37714 (grub_menu_run): Renamed to ...
37715 (show_text_menu): ... this and made it local.
37716 (show_text_menu): Adapt to new function names.
37717 (grub_normal_terminal_menu_viewer): New global variable.
37718
37719 * include/grub/menu.h: New file.
37720
37721 * include/grub/menu_viewer.h: New file.
37722
37723 * include/grub/normal.h: Added include to grub/menu.h.
37724 (grub_menu_entry): Moved to include/grub/menu.h.
37725 (grub_menu_entry_t): Likewise.
37726 (grub_menu): Likewise.
37727 (grub_menu_t): Likewise.
37728 (grub_normal_terminal_menu_viewer): Added.
37729 (grub_menu_execute_entry): Likewise.
37730 (grub_menu_run): Removed.
37731
37732 * DISTLIST: Added include/grub/menu.h.
37733 Added include/grub/menu_viewer.h.
37734 Added normal/menu_viewer.c.
37735
377362009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
37737
37738 * normal/execute.c (grub_script_execute_menuentry): Changed to use
37739 arglist for menutitle arguments.
37740
37741 * normal/main.c (grub_normal_menu_addentry): Likewise.
37742
37743 * normal/parser.y (menuentry): Likewise.
37744
37745 * normal/script.c (grub_script_create_cmdmenu): Likewise.
37746
37747 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
37748 (grub_script_create_cmdmenu): Likewise.
37749
37750 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
37751
37752 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
37753 changes.
37754
37755 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
37756
37757 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
37758
37759 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
37760
37761 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37762
37763 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37764
37765 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37766
56192c23 377672009-01-30 Christian Franke <franke@computer.org>
37768
37769 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
37770 in option help text.
37771
d72521b3 377722009-01-27 Pavel Roskin <proski@gnu.org>
37773
37774 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
37775
994b5e84 377762009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37777
37778 * commands/lsmmap.c: Add include to grub/machine/memory.h.
37779
37780 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
37781
37782 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
37783 unregister function.
37784
6a7eab2c 377852009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37786
37787 * disk/scsi.c (grub_scsi_read): Fix sign problem.
37788
37789 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
37790
37791 * util/grub-mkfont.c (usage): Fix typo.
37792
37793 * util/elf/grub-mkimage.c (load_modules): Fix warning.
37794
1806b56e 377952009-01-26 Daniel Mierswa <impulze@impulze.org>
37796
3fb18f09 37797 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
37798
336e1fb9 37799 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
37800
1806b56e 37801 * kern/misc.c (grub_strcasecmp): New function.
37802 (grub_strcasecmp): Use grub_size_t instead of int for length.
37803 Fix return value.
37804 * include/grub/misc.h: Update function prototypes.
37805
580b2a0f 378062009-01-26 Robert Millan <rmh@aybabtu.com>
37807
37808 * configure.ac: Fix cross-compilation check.
ef257b36 37809
d31c24f1 378102009-01-22 Christian Franke <franke@computer.org>
37811
37812 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
37813 (precision) digit string. Allow `.format2' without `format1' (width).
37814 Limit input chars for `%s' output to `format2' if specified. This is
37815 compatible with standard printf ().
37816
3138b44c 378172009-01-22 Christian Franke <franke@computer.org>
37818
37819 * disk/ata.c (grub_ata_wait_status): Replace by ...
37820 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
37821 other status bits may be invalid while BSY is asserted.
37822 (grub_ata_check_ready): New function.
37823 (grub_ata_cmd): Removed.
37824 (grub_ata_wait_drq): New function.
37825 (grub_ata_strncpy): Remove inline.
37826 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
37827 and error check now done by grub_ata_wait_drq ().
37828 (grub_ata_pio_write): Likewise.
37829 (grub_atapi_identify): Set DEV before check for !BSY. Use
37830 grub_ata_wait_drq () to wait for data.
37831 (grub_ata_device_initialize): Add status register check to
37832 detect missing SATA slave devices. Add debug messages.
37833 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
37834 (grub_atapi_packet): Set DEV before check for !BSY. Replace
37835 transfer loop by grub_ata_pio_write ().
37836 (grub_ata_identify): Set DEV before check for !BSY. Use
37837 grub_ata_wait_drq () to wait for data.
ef257b36 37838 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 37839 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
37840 read/write in one loop. Fix invalid command on write. Fix incomplete
37841 command on (size % batch) == 0. Add missing error check after write of
37842 last block. Add debug messages.
37843 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
37844
59a64ef6 378452009-01-19 Christian Franke <franke@computer.org>
37846
37847 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
37848 (GRUB_ATAPI_IREASON_*): Likewise.
37849 (grub_ata_pio_write): Fix timeout error return.
37850 (grub_atapi_identify): Add grub_ata_wait () after cmd.
37851 (grub_atapi_wait_drq): New function.
37852 (grub_atapi_packet): New parameter `size'.
37853 Use grub_atapi_wait_drq () and direct write instead of
37854 grub_ata_pio_write ().
37855 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
37856 reads the number of bytes requested by the device for each DRQ
37857 assertion.
37858 (grub_atapi_write): Remove old implementation, return not
37859 implemented instead.
37860
1cfe20b3 378612009-01-19 Christian Franke <franke@computer.org>
37862
37863 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
37864 of 512 to calculate data size.
37865 (grub_scsi_read12): Likewise.
37866 (grub_scsi_write10): Likewise.
37867 (grub_scsi_write12): Likewise.
37868 (grub_scsi_read): Adjust size according to blocksize.
37869 Add checks for invalid blocksize and unaligned transfer.
37870
bee5fe5d 378712009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
37872
37873 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
37874
ef257b36 37875 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 37876 width glyphs.
37877
3e643f8c 378782009-01-19 Robert Millan <rmh@aybabtu.com>
37879
37880 * config.guess: Update to latest version from config git.
37881 * config.sub: Likewise.
37882
4fa80998 378832009-01-17 Felix Zielcke <fzielcke@z-51.de>
37884
37885 * Makefile.in: Change font compilation to use new grub-mkfont instead
37886 of java version.
37887
37888 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
37889 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
37890 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37891 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37892 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
37893 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
37894 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
37895 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
37896 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
37897
7086085b 378982009-01-16 Christian Franke <franke@computer.org>
37899
37900 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
37901 (enum grub_ata_timeout_milliseconds): New enum.
37902 (grub_ata_wait_status): Add parameter milliseconds.
37903 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
37904 recovery from timed-out commands.
37905 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
37906 return grub_errno instead of REG_ERROR.
37907 (grub_ata_pio_write): Add parameter milliseconds.
37908 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
37909 Pass milliseconds to grub_ata_wait_status () and
37910 grub_ata_pio_read ().
37911 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
37912 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
37913 grub_ata_wait_status (). Fix IDENTIFY timeout check.
37914 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
37915 It is not suitable for device detection, because DEV bit is ignored,
37916 the command may run too long, and not all devices set the signature
37917 properly.
37918 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
37919 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
37920 Fix device selection, DEV bit must be set first to address the registers
37921 of the correct device.
37922 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
37923 grub_ata_pio_read/write ().
37924 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
37925 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
37926
4a412913 379272009-01-13 Carles Pina i Estany <carles@pina.cat>
37928
37929 * util/grub-editenv.c (main): Use fseeko(), not fseek().
37930
7795c55e 379312009-01-13 Bean <bean123ch@gmail.com>
d913988c 37932
37933 * util/grub-mkfont.c (write_font): forget to remove some debug code.
37934
7795c55e 379352009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 37936
37937 * Makefile.in: (enable_grub_mkfont): New variable.
37938 (freetype_cflags): Likewise.
37939 (freetype_libs): Likewise.
37940
37941 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
37942 (grub_mkfont_SOURCES): New variable.
37943 (grub_mkfont_CFLAGS): Likewise.
37944 (grub_mkfont_LDFLAGS): Likewise.
37945
37946 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
37947 library if `--enable-grub-mkfont' is requested.
37948 (enable_grub_mkfont): New variable.
37949 (freetype_cflags): Likewise.
37950 (freetype_libs): Likewise.
37951
37952 * util/grub-mkfont.c: New file.
37953
093af1fe 379542009-01-12 Christian Franke <franke@computer.org>
37955
37956 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
37957 mode check. Fix setting of compat_use[].
37958
f36cc108 379592009-01-10 Robert Millan <rmh@aybabtu.com>
37960
37961 Update a few copyright years which we forgot to do in 2008 (only for
37962 files whose changes made in 2008 were copyright-significant)
37963
37964 * Makefile.in: Add 2008 to Copyright line.
37965 * disk/ieee1275/ofdisk.c: Likewise.
37966 * disk/efi/efidisk.c: Likewise.
37967 * kern/dl.c: Likewise.
37968 * kern/sparc64/ieee1275/init.c: Likewise.
37969 * kern/mm.c: Likewise.
37970 * kern/efi/mm.c: Likewise.
37971 * boot/i386/pc/boot.S: Likewise.
37972 * genfslist.sh: Likewise.
37973 * fs/iso9660.c: Likewise.
37974 * fs/hfs.c: Likewise.
37975 * fs/jfs.c: Likewise.
37976 * fs/minix.c: Likewise.
37977 * fs/ufs.c: Likewise.
37978 * gensymlist.sh.in: Likewise.
37979 * genkernsyms.sh.in: Likewise.
37980 * include/grub/misc.h: Likewise.
37981 * include/grub/types.h: Likewise.
37982 * include/grub/symbol.h: Likewise.
37983 * include/grub/elf.h: Likewise.
37984 * include/grub/kernel.h: Likewise.
37985 * include/grub/disk.h: Likewise.
37986 * include/grub/dl.h: Likewise.
37987 * include/grub/i386/linux.h: Likewise.
37988 * include/grub/i386/pc/biosdisk.h: Likewise.
37989 * include/grub/efi/api.h: Likewise.
37990 * include/grub/efi/pe32.h: Likewise.
37991 * include/grub/util/misc.h: Likewise.
37992 * normal/execute.c: Likewise.
37993 * normal/arg.c: Likewise.
37994 * normal/completion.c: Likewise.
37995 * normal/lexer.c: Likewise.
37996 * normal/parser.y: Likewise.
37997 * normal/misc.c: Likewise.
37998 * commands/i386/pc/vbeinfo.c: Likewise.
37999 * commands/hexdump.c: Likewise.
38000 * commands/terminal.c: Likewise.
38001 * commands/ls.c: Likewise.
38002 * commands/help.c: Likewise.
38003 * partmap/pc.c: Likewise.
38004 * loader/efi/chainloader.c: Likewise.
38005 * loader/multiboot_loader.c: Likewise.
38006 * loader/i386/pc/multiboot2.c: Likewise.
38007 * term/efi/console.c: Likewise.
38008 * term/i386/pc/serial.c: Likewise.
38009 * util/lvm.c: Likewise.
38010 * util/console.c: Likewise.
38011 * util/i386/efi/grub-mkimage.c: Likewise.
38012 * util/raid.c: Likewise.
38013
7f02114b 380142009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
38015
38016 * commands/videotest.c: Removed include to grub/machine/memory.h.
38017
38018 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
38019 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
38020 (video_mod_SOURCES): Removed.
38021 (video_mod_CFLAGS): Likewise.
38022 (video_mod_LDFLAGS): Likewise.
38023 (gfxterm_mod_SOURCES): Likewise.
38024 (gfxterm_mod_CFLAGS): Likewise.
38025 (gfxterm_mod_LDFLAGS): Likewise.
38026 (videotest_mod_SOURCES): Likewise.
38027 (videotest_mod_CFLAGS): Likewise.
38028 (videotest_mod_LDFLAGS): Likewise.
38029 (bitmap_mod_SOURCES): Likewise.
38030 (bitmap_mod_CFLAGS): Likewise.
38031 (bitmap_mod_LDFLAGS): Likewise.
38032 (tga_mod_SOURCES): Likewise.
38033 (tga_mod_CFLAGS): Likewise.
38034 (tga_mod_LDFLAGS): Likewise.
38035 (jpeg_mod_SOURCES): Likewise.
38036 (jpeg_mod_CFLAGS): Likewise.
38037 (jpeg_mod_LDFLAGS): Likewise.
38038 (png_mod_SOURCES): Likewise.
38039 (png_mod_CFLAGS): Likewise.
38040 (png_mod_LDFLAGS): Likewise.
38041
38042 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
38043 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
38044 (video_mod_SOURCES): Added.
38045 (video_mod_CFLAGS): Likewise.
38046 (video_mod_LDFLAGS): Likewise.
38047 (videotest_mod_SOURCES): Likewise.
38048 (videotest_mod_CFLAGS): Likewise.
38049 (videotest_mod_LDFLAGS): Likewise.
38050 (bitmap_mod_SOURCES): Likewise.
38051 (bitmap_mod_CFLAGS): Likewise.
38052 (bitmap_mod_LDFLAGS): Likewise.
38053 (tga_mod_SOURCES): Likewise.
38054 (tga_mod_CFLAGS): Likewise.
38055 (tga_mod_LDFLAGS): Likewise.
38056 (jpeg_mod_SOURCES): Likewise.
38057 (jpeg_mod_CFLAGS): Likewise.
38058 (jpeg_mod_LDFLAGS): Likewise.
38059 (png_mod_SOURCES): Likewise.
38060 (png_mod_CFLAGS): Likewise.
38061 (png_mod_LDFLAGS): Likewise.
38062 (gfxterm_mod_SOURCES): Likewise.
38063 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 38064 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 38065
38066 * term/gfxterm.c: Removed include to grub/machine/memory.h,
38067 grub/machine/console.h.
38068
644fff97 380692009-01-04 Jerone Young <jerone@gmail.com>
38070
38071 Make on screen instructions clearer
38072
38073 Based on patch created by Jidanni <jidanni@jidanni.org>
38074
38075 * normal/menu.c: print clearer instructions on the screen
38076
1e901a75 380772009-01-02 Colin D Bennett <colin@gibibit.com>
38078
38079 New font engine.
34c44600 38080
1e901a75 38081 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
38082 build system and fixed gfxterm.c to work with different sized fonts.
38083
38084 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 38085
1e901a75 38086 * configure: Re-generated.
34c44600 38087
1e901a75 38088 * DISTLIST: Removed font/manager.c.
38089 Added font/font.c.
38090 Added font/font_cmd.c.
34c44600 38091
1e901a75 38092 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
38093 compilation.
34c44600 38094
1e901a75 38095 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 38096
38097 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 38098
38099 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 38100
1e901a75 38101 * normal/menu.c: Likewise.
34c44600 38102
1e901a75 38103 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
38104 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 38105
1e901a75 38106 * include/grub/font.h: Replaced with new file.
34c44600 38107
1e901a75 38108 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
38109 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
38110 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
38111 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
38112 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 38113 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 38114 fg_red, fg_green, fg_blue, fg_alpha.
38115 (grub_video_adapter): Removed blit_glyph.
34c44600 38116 (grub_video_blit_glyph): Removed.
38117
1e901a75 38118 * font/manager.c: Removed file.
34c44600 38119
38120 * font/font.c: New file.
38121
1e901a75 38122 * font/font_cmd.c: Likewise.
34c44600 38123
1e901a75 38124 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 38125
1e901a75 38126 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
38127 (grub_video_vbe_map_rgba): Likewise.
38128 (grub_video_vbe_unmap_color_int): Likewise.
38129 (grub_video_vbe_blit_glyph): Removed.
38130 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 38131
1e901a75 38132 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
38133 (get_pixel): Likewise.
34c44600 38134 (set_pixel): Likewise.
38135
1e901a75 38136 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 38137
1e901a75 38138 * term/gfxterm.c: Adapted to new font engine.
34c44600 38139
1e901a75 38140 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 38141
1e901a75 38142 * term/i386/pc/vga.c: Likewise.
34c44600 38143
1e901a75 38144 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 38145
1e901a75 38146 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 38147
1e901a75 38148 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 38149
1e901a75 38150 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 38151
1e901a75 38152 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 38153
1e901a75 38154 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 38155
1e901a75 38156 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 38157
1e901a75 38158 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 38159
1e901a75 38160 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38161
38162 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 38163
1e901a75 38164 * util/grub-mkconfig_lib.in: Changed font extension.
38165
278922e8 381662008-12-28 Felix Zielcke <fzielcke@z-51.de>
38167
38168 * util/getroot.c (grub_util_get_grub_dev): Add support for
38169 /dev/md/dNNpNN style partitionable mdraid devices.
38170
3ced05cf 381712008-12-12 Alex Smith <alex@alex-smith.me.uk>
38172
38173 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
38174 at a time limit of the PXE TFTP API correctly.
38175 (grub_pxefs_close): Likewise.
38176
7fd0ee30 381772008-11-29 Robert Millan <rmh@aybabtu.com>
38178
34c44600 38179 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 38180 grub_ata_device_initialize() calls.
38181
34c44600 381822008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 38183
38184 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
38185 iteration failed.
38186 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
38187
89313780 381882008-11-28 Robert Millan <rmh@aybabtu.com>
38189
38190 Fix build on powerpc-ieee1275. Based on patch created by
38191 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
38192 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38193 `kern/ieee1275/mmap.c'.
38194 * include/grub/powerpc/ieee1275/memory.h: New file.
38195
15257703 38196 Provide grub-install on coreboot.
38197 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
38198 (grub_install_SOURCES): New variable.
38199 * util/i386/pc/grub-install.in: Add a few condition checks to make it
38200 usable on coreboot.
38201
9fc5388a 382022008-11-25 Felix Zielcke <fzielcke@z-51.de>
38203
38204 * util/grub-fstest.c (grub_term_get_current_input): Change return type
38205 to `grub_term_input_t'.
38206 (grub_term_get_current_output): Change return type to
38207 `grub_term_output_t'.
38208
bc3a2f31 382092008-11-22 Robert Millan <rmh@aybabtu.com>
38210
34c44600 38211 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 38212 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
38213 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
38214 grub_vga_text_cls().
38215
80fc88f2 38216 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 38217 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 38218
cbf36fd3 38219 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
38220 to 0x200000 (avoids trouble with some OFW implementations, and matches
38221 with the one in Yaboot).
38222 Reported by Manoel Abranches
38223
73e8e268 382242008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 38225
38226 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
38227 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
38228
73e8e268 38229 * util/grub-mkconfig_lib.in (grub_warn): New function.
38230 (convert_system_path_to_grub_path): Use grub_warn() when issuing
38231 warnings, to obtain consistent formatting.
38232 * util/grub.d/00_header.in: Likewise.
38233 * util/update-grub_lib.in: Likewise.
38234
e94045a1 38235 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 38236 Move comment text to `#error' stanza.
e94045a1 38237
79d29fd7 38238 Harmonize ieee1275's grub_available_iterate() with the generic
38239 grub_machine_mmap_iterate() interface (fixes a recently-introduced
38240 build problem on i386-ieee1275):
38241 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
38242 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
38243 parameter `type'. Update all users of this function.
38244 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38245 `kern/ieee1275/mmap.c'.
38246 * kern/ieee1275/init.c
38247 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
38248 with ...
38249 (grub_machine_mmap_iterate): ... this.
38250 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
38251 return type to `grub_err_t'. Update all implementations of this
38252 function prototype.
38253 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
38254 Likewise.
38255
60d6b16e 38256 Add `lsmmap' command (lists firmware-provided memory map):
38257 * commands/lsmmap.c: New file.
38258 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
38259 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
38260 variables.
38261 * conf/powerpc-ieee1275.rmk: Likewise.
38262 * conf/i386-coreboot.rmk: Likewise.
38263 * conf/i386-ieee1275.rmk: Likewise.
38264
ebaaf49b 382652008-11-19 Robert Millan <rmh@aybabtu.com>
38266
38267 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 38268 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
38269 constraints to initrd allocation (based on code from
38270 loader/i386/pc/linux.c). Without them, initrd was allocated too high
38271 for Linux to find it.
ebaaf49b 38272
dfab719f 382732008-11-14 Robert Millan <rmh@aybabtu.com>
38274
38275 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
38276 order to cope with duplicate slashes.
38277
10fc3eb9 382782008-11-14 Robert Millan <rmh@aybabtu.com>
38279
38280 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
38281 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
38282 don't want to mess with lower memory, because it is used in the Linux
38283 loader.
38284
38285 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 38286 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 38287 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
38288 is in our heap (probably as a result of it being corrupted during
2f2a3442 38289 decompression). Add #error instance with comment to explain why this
38290 loader isn't currently usable on PC/BIOS.
10fc3eb9 38291
e2e07847 382922008-11-14 Robert Millan <rmh@aybabtu.com>
38293
38294 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 38295 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 38296
fe8e8d69 382972008-11-12 Robert Millan <rmh@aybabtu.com>
38298
38299 Make loader/i386/linux.c buildable on i386-pc (although disabled).
38300
38301 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
38302 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
38303 from here ...
38304 * include/grub/i386/pc/memory.h: ... to here.
38305
976b07d0 383062008-11-12 Robert Millan <rmh@aybabtu.com>
38307
38308 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
38309 split).
38310
38311 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
38312 (grub_console_cur_color, grub_console_real_putchar)
38313 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38314 (grub_console_setcolorstate, grub_console_setcolor)
38315 (grub_console_getcolor): Move from here ...
38316 * include/grub/i386/vga_common.h: ... to here (new file).
38317
38318 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
38319 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
38320 `<grub/i386/io.h>'.
38321 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
38322 `<grub/i386/vga_common.h>'.
38323
76679cd3 383242008-11-12 Robert Millan <rmh@aybabtu.com>
38325
38326 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
38327 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
38328 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
38329 variables.
38330 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38331 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
38332
38333 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
38334 grub_console_init() with call to grub_vga_text_init().
38335 (grub_machine_fini): Replace call to
38336 grub_console_fini() with call to grub_vga_text_fini() and
38337 grub_at_keyboard_fini().
38338
38339 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
38340 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38341 (grub_console_setcolorstate, grub_console_setcolor)
38342 (grub_console_getcolor): New function prototypes.
38343
38344 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
38345 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
38346 (grub_vga_text_setcursor): Static-ize.
38347 (grub_vga_text_term): New structure.
38348 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
38349
38350 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
38351 (grub_console_cur_color, grub_console_standard_color)
38352 (grub_console_normal_color, grub_console_highlight_color)
38353 (map_char, grub_console_putchar, grub_console_getcharwidth)
38354 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
38355 (grub_console_getcolor): Move from here ...
38356 * term/i386/vga_common.c: ... to here (same function names).
38357
95b841d3 383582008-11-12 Robert Millan <rmh@aybabtu.com>
38359
38360 Use newly-added Multiboot support in coreboot.
38361
38362 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38363 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
38364
38365 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
38366 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
38367 (codestart): Store the MBI in `startup_multiboot_info' when we're
38368 being loaded using Multiboot.
38369
38370 * kern/i386/coreboot/init.c (grub_machine_init): Move
38371 grub_at_keyboard_init() call to beginning of function (useful for
38372 debugging). Call grub_machine_mmap_init() before attempting to use
38373 grub_machine_mmap_iterate().
38374 (grub_lower_mem, grub_upper_mem): Move from here ...
38375 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
38376 here (new file).
38377
38378 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
38379 function prototype.
38380
761ca975 383812008-11-12 Robert Millan <rmh@aybabtu.com>
38382
38383 Fix a regression introduced by the at_keyboard.mod split. Because
38384 some terminals are default on some platforms and non-default on
38385 others, the first terminal being registered determines which is
38386 going to be default.
38387
38388 * kern/term.c (grub_term_register_input): If this is the first
38389 terminal being registered, set it as the current one.
38390 (grub_term_register_output): Likewise.
38391
38392 * term/efi/console.c (grub_console_init): Do not call
38393 grub_term_set_current_output() or grub_term_set_current_input().
38394 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
38395 * term/i386/pc/console.c (grub_console_init): Likewise.
38396 (grub_console_fini): Do not call grub_term_set_current_input()
38397 (but leave grub_term_set_current_output() to restore text mode).
38398
6c529df7 383992008-11-10 Robert Millan <rmh@aybabtu.com>
38400
38401 * util/grub.d/00_header.in: Add backward compatibility check for
38402 versions of terminal.mod that don't understand `terminal_input' or
38403 `terminal_output'.
38404
132e4113 384052008-11-09 Robert Millan <rmh@aybabtu.com>
38406
38407 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
38408 `terminal_input' / `terminal_output', not `terminal'.
38409
ac293d50 384102008-11-08 Robert Millan <rmh@aybabtu.com>
38411
38412 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 38413 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 38414
0025933a 384152008-11-08 Robert Millan <rmh@aybabtu.com>
38416
38417 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 38418 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 38419 members. Update all users.
38420 * util/console.c (grub_ncurses_term): Split in ...
38421 (grub_ncurses_term_input): ... this, and ...
38422 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 38423 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 38424
37c86336 384252008-11-08 Robert Millan <rmh@aybabtu.com>
38426
38427 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
38428 (PKGDATA): Add $(pkgdata_SRCDIR).
38429 (pkglib_BUILDDIR): New variable.
38430 (pkgdata_SRCDIR): New variable.
38431 (build_env.mk): New target.
38432 (include_DATA): New variable.
38433 (install-local): Install $(include_DATA) files in $(includedir).
38434
b6c15a2d 384352008-11-07 Pavel Roskin <proski@gnu.org>
38436
d99d46f1 38437 * gendistlist.sh: Use C locale for sorting to ensure consistent
38438 output on all systems.
38439
b6c15a2d 38440 * util/grub.d/00_header.in: Remove incorrect space before
38441 "serial".
38442
c32ee8c9 384432008-11-07 Robert Millan <rmh@aybabtu.com>
38444
38445 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
38446 per specification.
38447 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
38448 * loader/multiboot_loader.c (find_multi_boot2_header): New function
38449 (based on find_multi_boot1_header).
38450 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
38451 using find_multi_boot2_header(), and abort if neither Multiboot or
38452 Multiboot headers were found.
38453
651c29b7 384542008-11-07 Robert Millan <rmh@aybabtu.com>
38455
38456 Modularize at_keyboard.mod:
38457
38458 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
38459 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
38460 (at_keyboard_mod_LDFLAGS): New variables.
38461
38462 Actual terminal split:
38463
38464 * include/grub/term.h (struct grub_term): Split in ...
38465 (struct grub_term_input): ... this, and ...
38466 (struct grub_term_output): ... this. Update all users.
38467 (grub_term_set_current): Split in ...
38468 (grub_term_set_current_input): ... this, and ...
38469 (grub_term_set_current_output): ... this.
38470 (grub_term_get_current): Split in ...
38471 (grub_term_get_current_input): ... this, and ...
38472 (grub_term_get_current_output): ... this.
38473 (grub_term_register): Split in ...
38474 (grub_term_register_input): ... this, and ...
38475 (grub_term_register_output): ... this.
38476 (grub_term_unregister): Split in ...
38477 (grub_term_unregister_input): ... this, and ...
38478 (grub_term_unregister_output): ... this.
38479 (grub_term_iterate): Split in ...
38480 (grub_term_iterate_input): ... this, and ...
38481 (grub_term_iterate_output): ... this.
38482
38483 * kern/term.c (grub_term_list): Split in ...
38484 (grub_term_list_input): ... this, and ...
38485 (grub_term_list_output): ... this. Update all users.
38486 (grub_cur_term): Split in ...
38487 (grub_cur_term_input): ... this, and ...
38488 (grub_cur_term_output): ... this. Update all users.
38489 (grub_term_set_current): Split in ...
38490 (grub_term_set_current_input): ... this, and ...
38491 (grub_term_set_current_output): ... this.
38492 (grub_term_get_current): Split in ...
38493 (grub_term_get_current_input): ... this, and ...
38494 (grub_term_get_current_output): ... this.
38495 (grub_term_register): Split in ...
38496 (grub_term_register_input): ... this, and ...
38497 (grub_term_register_output): ... this.
38498 (grub_term_unregister): Split in ...
38499 (grub_term_unregister_input): ... this, and ...
38500 (grub_term_unregister_output): ... this.
38501 (grub_term_iterate): Split in ...
38502 (grub_term_iterate_input): ... this, and ...
38503 (grub_term_iterate_output): ... this.
38504
38505 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
38506 a check for input and one for output (and only attempt to get keys
38507 from user when input works).
38508
38509 * util/grub-probe.c (grub_term_get_current): Split in ...
38510 (grub_term_get_current_input): ... this, and ...
38511 (grub_term_get_current_output): ... this.
38512 * util/grub-fstest.c: Likewise.
38513 * util/i386/pc/grub-setup.c: Likewise.
38514 * util/grub-editenv.c: Likewise.
38515
38516 Portability adjustments:
38517
38518 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
38519 `term/i386/pc/at_keyboard.c'.
38520 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
38521 grub_keyboard_controller_init() (now handled by terminal .init).
38522 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
38523 grub_at_keyboard_init().
38524 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
38525 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
38526 at_keyboard.mod via input terminal interface).
38527 * include/grub/i386/coreboot/console.h: Convert into a stub for
38528 `<grub/i386/pc/console.h>'.
38529
38530 Migrate full terminals to new API:
38531
38532 * term/efi/console.c (grub_console_term): Split into ...
38533 (grub_console_term_input): ... this, and ...
38534 (grub_console_term_output): ... this. Update all users.
38535 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
38536 (grub_ofconsole_init): Split into ...
38537 (grub_ofconsole_init_input): ... this, and ...
38538 (grub_ofconsole_init_output): ... this.
38539 (grub_ofconsole_term): Split into ...
38540 (grub_ofconsole_term_input): ... this, and ...
38541 (grub_ofconsole_term_output): ... this. Update all users.
38542 * term/i386/pc/serial.c (grub_serial_term): Split into ...
38543 (grub_serial_term_input): ... this, and ...
38544 (grub_serial_term_output): ... this. Update all users.
38545 * term/i386/pc/console.c (grub_console_term): Split into ...
38546 (grub_console_term_input): ... this, and ...
38547 (grub_console_term_output): ... this. Update all users.
38548 (grub_console_term_input): Only enable it on PC/BIOS platform.
38549 (grub_console_init): Remove grub_keyboard_controller_init() call.
38550
38551 Migrate input terminals to new API:
38552
38553 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
38554 `i386' and `i386/pc' to enable build on x86_64 (this driver is
38555 i386-specific anyway).
38556 (grub_console_checkkey): Rename to ...
38557 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
38558 users.
38559 (grub_keyboard_controller_orig): New variable.
38560 (grub_console_getkey): Rename to ...
38561 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
38562 users.
38563 (grub_keyboard_controller_init): Static-ize. Save original
38564 controller value so that it can be restored ...
38565 (grub_keyboard_controller_fini): ... here (new function).
38566 (grub_at_keyboard_term): New structure.
38567 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
38568 functions.
38569
38570 Migrate output terminals to new API:
38571
38572 * term/i386/pc/vga.c (grub_vga_term): Change type to
38573 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38574 members. Update all users.
38575 * term/gfxterm.c (grub_video_term): Change type to
38576 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38577 members. Update all users.
38578 * include/grub/i386/pc/console.h (grub_console_checkkey)
38579 (grub_console_getkey): Do not export (no longer needed by gfxterm,
38580 etc).
38581
38582 Migrate `terminal' command and userland tools to new API:
38583
38584 * commands/terminal.c (grub_cmd_terminal): Split into ...
38585 (grub_cmd_terminal_input): ... this, and ...
38586 (grub_cmd_terminal_output): ... this.
38587 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
38588 `terminal_input' and `terminal_output'.
38589 * util/grub.d/00_header.in: Adjust `terminal' calls to new
38590 `terminal_input' / `terminal_output' API.
38591 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
38592 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
38593 provided ${GRUB_TERMINAL}, convert it).
38594
96e5d876 385952008-11-04 Robert Millan <rmh@aybabtu.com>
38596
38597 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
38598 for FreeBSD.
38599 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
38600
556f3775 386012008-11-03 Bean <bean123ch@gmail.com>
38602
38603 * kern/elf.c (grub_elf32_load): Revert to previous code.
38604 (grub_elf64_load): Likewise.
38605
38606 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
38607
926b9823 386082008-11-01 Robert Millan <rmh@aybabtu.com>
38609
38610 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
38611 (TARGET_CPPFLAGS): Likewise.
38612 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
38613
1432e958 386142008-11-01 Carles Pina i Estany <carles@pina.cat>
38615
38616 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
38617
dba3f844 386182008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 38619
38620 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
38621 addition of objects until the code is not going to be able to fail.
38622
dba3f844 386232008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 38624
38625 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
38626 (add a missing NULL check, and correct them by moving the pointer
38627 operations after the actual check).
38628
7ab28c21 386292008-10-29 Robert Millan <rmh@aybabtu.com>
38630
38631 * util/i386/pc/grub-install.in: Handle empty string as output from
38632 make_system_path_relative_to_its_root().
38633
1b7748eb 386342008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
38635
38636 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
38637 circular metadata worst case scenario. If the metadata is circular
38638 then copy the wrap in place.
38639 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
38640 project lib/format_text/layout.h
38641 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
38642
c9618ab2 386432008-10-03 Felix Zielcke <fzielcke@z-51.de>
38644
7a36edca 38645 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 38646
bf981c62 386472008-10-03 Felix Zielcke <fzielcke@z-51.de>
38648
38649 * util/update-grub_lib.in: Mention filename in warning message.
38650
6d994591 386512008-09-29 Felix Zielcke <fzielcke@z-51.de>
38652
38653 * NEWS: Update for rename of update-grub to grub-mkconfig.
38654
18ade780 386552008-09-29 Felix Zielcke <fzielcke@z-51.de>
38656
38657 * util/update-grub_lib.in: Copy to ...
38658 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 38659 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 38660 * util/update-grub.in: Rename to ...
38661 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
38662 option. Add `--output' option to allow users to specify the generated
38663 configuration file. Default to stdout.
38664 (update_grub_dir): Rename to ...
38665 (grub_mkconfig_dir): ... this.
38666 (grub_cfg): Default to an empty string.
38667 * conf/common.rmk (update-grub): Rename to ...
38668 (grub-mkconfig): ... this.
38669 (update-grub_lib): Copy to ...
38670 (grub-mkconfig_lib): ... this.
38671 (update-grub_SCRIPTS): Copy to ...
38672 (grub-mkconfig_SCRIPTS): ... this. Update all users.
38673 (update-grub_DATA): Rename to ...
38674 (grub-mkconfig_DATA): ... this.
38675
556ce6ac 386762008-09-28 Robert Millan <rmh@aybabtu.com>
38677
38678 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
38679 to `modified'. Add the real `created' field.
38680 (grub_iso9660_uuid): Use `modified' rather than `created' for
38681 constructing the UUID.
38682
386832008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 38684
38685 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
38686 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
38687
92274e85 386882008-09-28 Bean <bean123ch@gmail.com>
38689
38690 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
38691 Thanks to Christian Franke for finding this bug.
38692
add6f17a 386932008-09-25 Robert Millan <rmh@aybabtu.com>
38694
38695 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
38696 instances of grub_util_get_disk_name() (see previous commit).
38697
d2a367b8 386982008-09-25 Robert Millan <rmh@aybabtu.com>
38699
38700 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
38701 `util/i386/get_disk_name.c'.
38702 * conf/i386-efi.rmk: Likewise.
38703 * conf/x86_64-efi.rmk: Likewise.
38704 * conf/i386-coreboot.rmk: Likewise.
38705 * conf/i386-ieee1275.rmk: Likewise.
38706 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
38707 `util/ieee1275/get_disk_name.c'.
38708 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
38709 * util/ieee1275/get_disk_name.c: Remove file.
38710 * util/i386/get_disk_name.c: Remove file.
38711 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
38712 "hd%d" for device.map entries, rather than using
38713 grub_util_get_disk_name().
38714
81a06771 387152008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 38716
38717 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
38718 warning.
38719 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
38720
5a004279 387212008-09-24 Carles Pina i Estany <carles@pina.cat>
38722
38723 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
38724 Changed to 0x5100.
38725 (GRUB_TERM_PPAGE): Changed to 0x4900.
38726
397093d3 387272008-09-24 Robert Millan <rmh@aybabtu.com>
38728
38729 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
38730 macros (they were i386-pc specific).
38731 * include/grub/sparc64/ieee1275/console.h: Likewise.
38732 * include/grub/efi/console.h: Likewise.
38733
a91b6c7c 387342008-09-22 Bean <bean123ch@gmail.com>
38735
38736 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
38737 resident and in attribute list.
38738
38739 * include/grub/ntfs.h (BMP_LEN): Removed.
38740
c40fd116 387412008-09-22 Bean <bean123ch@gmail.com>
38742
81a06771 38743 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 38744 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
38745
38746 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
38747 error occurs, as grub_disk_open will call grub_disk_close, which will
38748 call p->close (scsi).
38749
81a06771 387502008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 38751
38752 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
38753 (AC_PREREQ): Bumped to 2.59.
38754 (AC_TRY_COMPILE): Replace obsolete macro with ...
38755 (AC_COMPILE_IFELSE): ... this.
38756 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
38757 (AC_LINK_IFELSE): ... this.
38758
5dc43410 387592008-09-21 Felix Zielcke <fzielcke@z-51.de>
38760
38761 * autogen.sh: Add a call to `gendistlist.sh'.
38762
9035dce4 387632008-09-19 Christian Franke <franke@computer.org>
38764
38765 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
38766 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
38767 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
38768 Export __enable_execute_stack() to modules.
38769 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
38770 New function.
38771
7fd75377 387722008-09-09 Felix Zielcke <fzielcke@z-51.de>
38773
040030b3 38774 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
38775 Sort the list.
38776
387772008-09-09 Felix Zielcke <fzielcke@z-51.de>
38778
38779 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 38780 #include <grub/util/hostdisk.h>.
38781
89d5ffcf 387822008-09-08 Robert Millan <rmh@aybabtu.com>
38783
38784 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
38785 segments when their filesz is zero (grub_file_read() interprets
81a06771 38786 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 38787 Use `lowest_segment' rather than 0 for calculating the current
38788 segment load address.
38789
40da438f 387902008-09-08 Robert Millan <rmh@aybabtu.com>
38791
38792 * util/hostdisk.c (open_device): Replace a grub_util_info() call
38793 with grub_dprintf("hostdisk", ...), as it was so verbose that it
38794 clobbered useful information.
38795
ddbf5556 387962008-09-08 Robert Millan <rmh@aybabtu.com>
38797
38798 * include/grub/util/biosdisk.h: Move to ...
38799 * include/grub/util/hostdisk.h: ... here. Update all users.
38800 * util/biosdisk.c: Move to ...
38801 * util/hostdisk.c: ... here. Update all users.
38802
783d0f48 388032008-09-07 Robert Millan <rmh@aybabtu.com>
38804
38805 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
38806 variables.
38807 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
38808 and length can be stored directly in the `mbi->mmap_addr' and
38809 `mbi->mmap_length' struct fields.
38810
548e2ea5 388112008-09-07 Robert Millan <rmh@aybabtu.com>
38812
38813 * conf/i386.rmk: New file. Provides declaration for building
38814 `cpuid.mod'.
38815 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
38816 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
38817 variables.
38818 Include `conf/i386.mk'.
38819 * conf/i386-efi.rmk: Likewise.
38820 * conf/x86_64-efi.rmk: Likewise.
38821 * conf/i386-coreboot.rmk: Likewise.
38822 * conf/i386-ieee1275.rmk: Likewise.
38823
0ea85a37 388242008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
38825
38826 Based on patch created by Colin D Bennett <colin@gibibit.com>.
38827 Adds optimization support for BGR based modes.
38828
38829 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
38830 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38831 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38832 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38833 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38834 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38835 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38836 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38837 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38838 (grub_video_i386_vbeblit_index_index): Likewise.
38839 (grub_video_i386_vbeblit_replace_directN): Added.
38840 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38841 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38842 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38843 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38844 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38845 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 38846 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 38847 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38848 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38849 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38850 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38851 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38852 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
38853
38854 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
38855 (grub_video_i386_vbefill_R8G8B8): Likewise.
38856 (grub_video_i386_vbefill_index): Likewise.
38857 (grub_video_i386_vbefill_direct32): Added.
38858 (grub_video_i386_vbefill_direct24): Likewise.
38859 (grub_video_i386_vbefill_direct16): Likewise.
38860 (grub_video_i386_vbefill_direct8): Likewise.
38861
81a06771 38862 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 38863 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
38864 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
38865 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
38866 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
38867 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 38868
0ea85a37 38869 * video/video.c (grub_video_get_blit_format): Updated to use new
38870 blit formats. Added handling for 16 bit color modes.
81a06771 38871
38872 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 38873 fillers.
38874 (common_blitter): Updated to use new blitters.
38875
38876 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
38877 Removed.
38878 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38879 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38880 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38881 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38882 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38883 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38884 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38885 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38886 (grub_video_i386_vbeblit_index_index): Likewise.
38887 (grub_video_i386_vbeblit_replace_directN): Added.
38888 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38889 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38890 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38891 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38892 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38893 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
38894 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
38895 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38896 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38897 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38898 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38899 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38900 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 38901
0ea85a37 38902 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
38903 (grub_video_i386_vbefill_R8G8B8): Likewise.
38904 (grub_video_i386_vbefill_index): Likewise.
38905 (grub_video_i386_vbefill_direct32): Added.
38906 (grub_video_i386_vbefill_direct24): Likewise.
38907 (grub_video_i386_vbefill_direct16): Likewise.
38908 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 38909
0ea85a37 38910 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
38911 types.
81a06771 38912
0ea85a37 38913 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
38914 types.
81a06771 38915
0ea85a37 38916 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
38917 blitter types.
81a06771 38918
0ea85a37 38919 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
38920 types.
38921
e8a83df6 389222008-09-06 Felix Zielcke <fzielcke@z-51.de>
38923
38924 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
38925 RAID level 1.
38926
6bcd8ee5 389272008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 38928
6bcd8ee5 38929 * fs/iso9660.c (grub_iso9660_date): New structure.
38930 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
38931 (grub_iso9660_uuid): New function.
c375ae58 38932
59261157 389332008-09-05 Bean <bean123ch@gmail.com>
38934
38935 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
38936
38937 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
38938 insensitive bit for names in Win32 and Win32 & DOS namespace.
38939
38940 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
38941
38942 * include/grub/types.h (LONG_MAX): Likewise.
38943
58b6645a 389442008-09-04 Felix Zielcke <fzielcke@z-51.de>
38945
4ee55921 38946 * util/getroot.c: Include <config.h>.
38947 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
38948 add support for /dev/md/N devices and handle LVM double dash escaping.
38949
389502008-09-04 Felix Zielcke <fzielcke@z-51.de>
38951
38952 * config.guess: Update to latest version from config git.
38953 * config.sub: Likewise.
58b6645a 38954
9124f65d 389552008-09-03 Robert Millan <rmh@aybabtu.com>
38956
38957 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
38958 `disk->total_sectors'.
38959
81a06771 389602008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 38961
38962 * include/grub/normal.h: Fixed incorrect comment for
38963 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
38964
81a06771 389652008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 38966
38967 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
38968 values with defines.
38969
38970 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
38971 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
38972 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
38973 (GRUB_VBE_MODEATTR_COLOR): Likewise.
38974 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
38975 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
38976 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
38977 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
38978 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
38979 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
38980 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
38981 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
38982 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
38983 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
38984 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
38985 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
38986 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
38987 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
38988 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
38989
93d5cbf8 389902008-08-31 Robert Millan <rmh@aybabtu.com>
38991
38992 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
38993 declaration.
38994 (grub_multiboot): Fix a few warnings.
38995
21751d50 389962008-08-31 Robert Millan <rmh@aybabtu.com>
38997
38998 * loader/i386/pc/multiboot.c: Update comment not to say that
38999 boot_device support is unimplemented.
39000
e27a75c5 390012008-08-31 Robert Millan <rmh@aybabtu.com>
39002
39003 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
39004 or memory map support are unimplemented.
39005
81a06771 390062008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 39007
39008 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
39009
81a06771 390102008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 39011
39012 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
39013 total video memory in 'vbeinfo' output; show color format details for
39014 each video mode.
39015
7c5d8d95 390162008-08-30 Pavel Roskin <proski@gnu.org>
39017
39018 * util/genmoddep.c: Remove for real this time.
39019 * DISTLIST: Remove util/genmoddep.c.
39020
4cebd25a 390212008-08-30 Robert Millan <rmh@aybabtu.com>
39022
39023 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
39024 as required by Multiboot spec (it was already 4-byte aligned, but
39025 only by chance).
39026
b497a269 390272008-08-29 Pavel Roskin <proski@gnu.org>
39028
e3925185 39029 * kern/powerpc/ieee1275/crt0.S: Rename to ...
39030 * kern/powerpc/ieee1275/startup.S: ... this.
39031 * conf/powerpc-ieee1275.rmk: Adjust for the above.
39032 * DISTLIST: Likewise.
39033
b497a269 39034 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
39035 grub/cpu/kernel.h. Add start label for consistency with other
39036 platforms. Add grub_prefix immediately after start. Add jump
39037 to the code after grub_prefix.
39038 * include/grub/powerpc/kernel.h: Provide valid values for
39039 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
39040
6e5a42fe 390412008-08-29 Bean <bean123ch@gmail.com>
39042
39043 * configure.ac: Change host_os to cygwin for mingw.
39044 (asprintf): New check for function.
39045
39046 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
39047 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
39048
39049 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 39050 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 39051 sync, sleep and grub_util_get_disk_size for mingw.
39052
39053 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
39054 to get size in mingw.
39055 (open_device): Use flag O_BINARY if it's defined.
39056 (find_root_device): Add dummy code for mingw.
39057
39058 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
39059 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
39060 (get_scsi_disk_name): Return 0 for mingw.
39061
39062 * util/hostfs.c: #include <grub/util/misc.h>.
39063 (grub_hostfs_open): Use "rb" flag to open file, use
39064 grub_util_get_disk_size to get disk size for mingw.
39065
39066 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
39067 (asprintf): New function if HAVE_ASPRINTF is not set.
39068 (sync): New function for mingw.
39069 (sleep): Likewise.
39070 (grub_util_get_disk_size): Likewise.
39071
ab3f2673 390722008-08-28 Pavel Roskin <proski@gnu.org>
39073
39074 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39075 kern/time.c.
39076
1c282483 390772008-08-28 Robert Millan <rmh@aybabtu.com>
39078
39079 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
39080
678e849c 390812008-08-28 Robert Millan <rmh@aybabtu.com>
39082
39083 Change find_grub_drive() syntax so it doesn't prevent it from
39084 detecting NULL names as errors.
39085
39086 * util/biosdisk.c (find_grub_drive): Move free slot search code
39087 from here ...
39088 (find_free_slot): ... to here.
39089 (read_device_map): Use find_free_slot() to search for free slots.
39090
965c75ca 390912008-08-27 Marco Gerards <marco@gnu.org>
39092
39093 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
39094 (scsi_mod_SOURCES): New variable.
39095 (scsi_mod_CFLAGS): Likewise
39096 (scsi_mod_LDFLAGS): Likewise.
39097
39098 * disk/scsi.c: New file.
39099
39100 * include/grub/scsi.h: Likewise.
39101
39102 * include/grub/scsicmd.h: Likewise.
39103
39104 * disk/ata.c: Include <grub/scsi.h>.
39105 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
39106 instead.
39107 (grub_ata_iterate): Skip ATAPI devices.
39108 (grub_ata_open): Only handle ATAPI devices.
39109 (struct grub_atapi_read): Removed.
39110 (grub_atapi_readsector): Likewise.
39111 (grub_ata_read): No longer handle ATAPI devices.
39112 (grub_ata_write): Likewise.
39113 (grub_atapi_iterate): New function.
39114 (grub_atapi_read): Likewise.
39115 (grub_atapi_write): Likewise.
39116 (grub_atapi_open): Likewise.
39117 (grub_atapi_close): Likewise.
39118 (grub_atapi_dev): New variable.
39119 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
39120 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
39121
39122 * include/grub/disk.h (enum grub_disk_dev_id): Add
39123 `GRUB_DISK_DEVICE_SCSI_ID'.
39124
c07ae501 391252008-08-26 Robert Millan <rmh@aybabtu.com>
39126
39127 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
39128 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
39129 descriptive.
39130
5ed20adc 391312008-08-23 Bean <bean123ch@gmail.com>
39132
39133 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
39134 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39135 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
39136 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
39137 dm_nv.mod.
39138 (raid5rec_mod_SOURCES): New macro.
39139 (raid5rec_mod_CFLAGS): Likewise.
39140 (raid5rec_mod_LDFLAGS): Likewise.
39141 (raid6rec_mod_SOURCES): Likewise.
39142 (raid6rec_mod_CFLAGS): Likewise.
39143 (raid6rec_mod_LDFLAGS): Likewise.
39144 (mdraid_mod_SOURCES): Likewise.
39145 (mdraid_mod_CFLAGS): Likewise.
39146 (mdraid_mod_LDFLAGS): Likewise.
39147 (dm_nv_mod_SOURCES): Likewise.
39148 (dm_nv_mod_CFLAGS): Likewise.
39149 (dm_nv_mod_LDFLAGS): Likewise.
39150
39151 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
39152 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39153 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39154
39155 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
39156 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39157
39158 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39159
39160 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39161
39162 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39163
39164 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39165
39166 * disk/raid5_recover.c: New file.
39167
39168 * disk/raid6_recover.c: Likewise.
39169
39170 * disk/mdraid_linux.c: Likewise.
39171
39172 * disk/dmraid_nvidia.c: Likewise.
39173
39174 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
39175 ULONG_MAX.
39176
39177 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
39178 calculate the size of raid device.
39179 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
39180 different layout of raid5.
39181 (grub_raid_scan_device): Remove code specific to mdraid.
39182 (grub_raid_list): New variable.
39183 (free_array): New function.
39184 (grub_raid_register): Likewise.
39185 (grub_raid_unregister): Likewise.
39186 (grub_raid_rescan): Likewise.
39187 (GRUB_MOD_INIT): Don't iterate device here.
39188 (GRUB_MOD_FINI): Use free_array to release resource.
39189
39190 * include/grub/raid.h: Remove macro and structure specific to mdraid.
39191 (grub_raid5_recover_func_t): New function variable type.
39192 (grub_raid6_recover_func_t): Likewise.
39193 (grub_raid5_recover_func): New variable.
39194 (grub_raid6_recover_func): Likewise.
39195 (grub_raid_register): New function.
39196 (grub_raid_unregister): Likewise.
39197 (grub_raid_rescan): Likewise.
39198 (grub_raid_block_xor): Likewise.
39199
39200 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
39201 (CMD_CRC): New macro.
39202 (part): Removed.
39203 (read_file): Handle device as well as file.
39204 (cmd_crc): New function.
39205 (fstest): Handle multiple disks.
39206 (options): Remove part, raw and long, add root and diskcount.
39207 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 39208 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 39209 add handling for the new options, support multiple disks.
39210
39211 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
39212
29c18915 392132008-08-23 Bean <bean123ch@gmail.com>
39214
39215 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
39216
39217 * genfslist.sh: Ignore kernel.mod.
39218
39219 * genpartmaplist.sh: Likewise.
39220
8415f261 392212008-08-23 Robert Millan <rmh@aybabtu.com>
39222
39223 * util/getroot.c (find_root_device): Skip anything that starts with
39224 a dot, not just directories. This avoids things like /dev/.tmp.md0.
39225
d5a7dc5b 392262008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 39227
d5a7dc5b 39228 * util/update-grub.in (GRUB_GFXMODE): Export variable.
39229 * util/grub.d/00_header.in: Allow the administrator to change default
39230 gfxmode via ${GRUB_GFXMODE}.
39231
380cfbb4 392322008-08-21 Felix Zielcke <fzielcke@z-51.de>
39233
39234 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
39235
c9baafe7 392362008-08-21 Robert Millan <rmh@aybabtu.com>
39237
39238 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
39239 loader.
39240 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
39241 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
39242
e290bef2 392432008-08-20 Carles Pina i Estany <carles@pina.cat>
39244
39245 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
39246 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
39247
f9dbfc96 392482008-08-19 Robert Millan <rmh@aybabtu.com>
39249
39250 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
39251 (struct grub_virtual_screen): Remove `cursor_color'.
39252 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
39253 initialization.
39254 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
39255
dd6bd6ab 392562008-08-18 Robert Millan <rmh@aybabtu.com>
39257
39258 Unify (identical) linux_normal.c files.
39259 * loader/i386/efi/linux_normal.c: Move from here ...
39260 * loader/linux_normal.c: ... to here. Update all users.
39261 * loader/i386/pc/linux_normal.c: Delete. Update all users.
39262 * loader/i386/ieee1275/linux_normal.c: Likewise.
39263
7f42f83e 392642008-08-18 Robert Millan <rmh@aybabtu.com>
39265
39266 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
39267 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
39268 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
39269 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
39270 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
39271 New macros.
39272 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
39273 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
39274 (GRUB_LINUX_CL_END_OFFSET): ... to here.
39275 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
39276 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
39277 (GRUB_EFI_CL_END_OFFSET): Rename to ...
39278 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
39279 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
39280 Initialize `params->video_cursor_x' and `params->video_cursor_y'
39281 portably using grub_getxy().
39282 Replace `-EFI' with `-bzImage' in boot message.
39283
38487ddb 392842008-08-17 Robert Millan <rmh@aybabtu.com>
39285
39286 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
39287
deceb3ec 392882008-08-17 Robert Millan <rmh@aybabtu.com>
39289
39290 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
39291
39292 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
39293 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
39294 (grub_machine_mmap_iterate): New function declaration.
39295 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
39296 structure.
39297 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
39298 macros.
39299
39300 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
39301 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
39302 Move e820 parsing from here ...
39303 * kern/i386/pc/mmap.c: New file.
39304 (grub_machine_mmap_iterate): ... to here.
39305
39306 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
39307 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
39308 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
39309 (grub_available_iterate): Redeclare to return `void', and redeclare
39310 its hook to use grub_uint64_t as addr and size parameters, and rename
39311 to ...
39312 (grub_machine_mmap_iterate): ... this. Update all users.
39313
39314 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
39315 to make it more readable. Rename to ...
39316 (grub_machine_mmap_iterate): ... this.
39317
39318 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
39319 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
39320 (grub_multiboot): Allocate an extra region after the payload, and fill
39321 it with a Multiboot memory map. Adjust a.out loader to calculate size
39322 with the extra space.
39323 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
39324 with the extra space.
39325
f8aa0f43 393262008-08-17 Carles Pina i Estany <carles@pina.cat>
39327
9807deb9 39328 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 39329
605f5bb6 393302008-08-17 Felix Zielcke <fzielcke@z-51.de>
39331
39332 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
39333 mdate-sh to the list `find' searches for.
39334 * DISTLIST: Regenerated.
39335
210db6c6 393362008-08-16 Felix Zielcke <fzielcke@z-51.de>
39337
39338 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
39339 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 39340 genmoddep.awk, gensymlist.sh.in.
39341 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 39342 * DISTLIST: Regenerated.
48cdbfd4 39343 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 39344
1082b929 393452008-08-16 Robert Millan <rmh@aybabtu.com>
39346
39347 * disk/raid.c (grub_raid_init): Handle/report errors set by
39348 grub_device_iterate().
39349 * disk/lvm.c (grub_lvm_init): Likewise.
39350
42ce5170 393512008-08-15 Bean <bean123ch@gmail.com>
39352
39353 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39354 and datehook.mod.
39355 (datetime_mod_SOURCES): New macro.
39356 (datetime_mod_CFLAGS): Likewise.
39357 (datetime_mod_LDFLAGS): Likewise.
39358 (date_mod_SOURCES): Likewise.
39359 (date_mod_CFLAGS): Likewise.
39360 (date_mod_LDFLAGS): Likewise.
39361 (datehook_mod_SOURCES): Likewise.
39362 (datehook_mod_CFLAGS): Likewise.
39363 (datehook_mod_LDFLAGS): Likewise.
39364
39365 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39366 and datehook.mod.
39367 (datetime_mod_SOURCES): New macro.
39368 (datetime_mod_CFLAGS): Likewise.
39369 (datetime_mod_LDFLAGS): Likewise.
39370 (date_mod_SOURCES): Likewise.
39371 (date_mod_CFLAGS): Likewise.
39372 (date_mod_LDFLAGS): Likewise.
39373 (datehook_mod_SOURCES): Likewise.
39374 (datehook_mod_CFLAGS): Likewise.
39375 (datehook_mod_LDFLAGS): Likewise.
39376
39377 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39378 and datehook.mod.
39379 (datetime_mod_SOURCES): New macro.
39380 (datetime_mod_CFLAGS): Likewise.
39381 (datetime_mod_LDFLAGS): Likewise.
39382 (date_mod_SOURCES): Likewise.
39383 (date_mod_CFLAGS): Likewise.
39384 (date_mod_LDFLAGS): Likewise.
39385 (datehook_mod_SOURCES): Likewise.
39386 (datehook_mod_CFLAGS): Likewise.
39387 (datehook_mod_LDFLAGS): Likewise.
39388
39389 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39390 and datehook.mod.
39391 (datetime_mod_SOURCES): New macro.
39392 (datetime_mod_CFLAGS): Likewise.
39393 (datetime_mod_LDFLAGS): Likewise.
39394 (date_mod_SOURCES): Likewise.
39395 (date_mod_CFLAGS): Likewise.
39396 (date_mod_LDFLAGS): Likewise.
39397 (datehook_mod_SOURCES): Likewise.
39398 (datehook_mod_CFLAGS): Likewise.
39399 (datehook_mod_LDFLAGS): Likewise.
39400
39401 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39402 and datehook.mod.
39403 (datetime_mod_SOURCES): New macro.
39404 (datetime_mod_CFLAGS): Likewise.
39405 (datetime_mod_LDFLAGS): Likewise.
39406 (date_mod_SOURCES): Likewise.
39407 (date_mod_CFLAGS): Likewise.
39408 (date_mod_LDFLAGS): Likewise.
39409 (datehook_mod_SOURCES): Likewise.
39410 (datehook_mod_CFLAGS): Likewise.
39411 (datehook_mod_LDFLAGS): Likewise.
39412
39413 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
39414
39415 * commands/date.c: New file.
39416
39417 * hook/datehook.c: Likewise.
39418
39419 * include/grub/lib/datetime.h: Likewise.
39420
39421 * include/grub/i386/cmos.h: Likewise.
39422
39423 * lib/datetime.c: Likewise.
39424
39425 * lib/i386/datetime.c: Likewise.
39426
39427 * lib/efi/datetime.c: Likewise.
39428
0e9242da 394292008-08-14 Robert Millan <rmh@aybabtu.com>
39430
39431 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
39432 (grub_mkelfimage_SOURCES): New variable.
39433 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
39434
39435 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
39436 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
39437 * conf/powerpc-ieee1275.rmk: Likewise.
39438 * conf/i386-ieee1275.rmk: Likewise.
39439
39440 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
39441 * kern/i386/coreboot/init.c: Likewise.
39442
39443 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
39444 with `<grub/cpu/kernel.h>'.
39445 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
39446 to ...
39447 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
39448 * kern/i386/coreboot/startup.S: Likewise.
39449
39450 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
39451 (GRUB_MOD_GAP): Remove.
39452 * include/grub/powerpc/kernel.h: New file.
39453 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
39454 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39455 * include/grub/i386/kernel.h: New file.
39456 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
39457 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
39458 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39459
39460 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
39461 `grub-mkelfimage'.
39462 Use --directory when invoking grub_mkimage.
39463
39464 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
39465 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
39466 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
39467 and GRUB_KERNEL_CPU_PREFIX.
39468
b86408f8 394692008-08-14 Felix Zielcke <fzielcke@z-51.de>
39470
d5e619ca 39471 * include/grub/err.h (grub_err_printf): New function prototype.
39472 * util/misc.c (grub_err_printf): New function.
39473 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
39474 grub_printf.
39475 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 39476
7161f0e0 394772008-08-13 Robert Millan <rmh@aybabtu.com>
39478
39479 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
39480
a1967522 394812008-08-13 Robert Millan <rmh@aybabtu.com>
39482
39483 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
39484 boot entry.
39485
371458b5 394862008-08-12 Robert Millan <rmh@aybabtu.com>
39487
39488 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
39489 of the relocation code from here ...
39490 (grub_multiboot): ... to here.
39491 (forward_relocator, backward_relocator): Move from here ...
39492 * kern/i386/loader.S (grub_multiboot_forward_relocator)
39493 (grub_multiboot_backward_relocator): ... to here.
39494 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
39495 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
39496 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
39497 (grub_multiboot_forward_relocator_end)
39498 (grub_multiboot_backward_relocator)
39499 (grub_multiboot_backward_relocator_end): New variables.
39500
05f9452b 395012008-08-12 Bean <bean123ch@gmail.com>
39502
39503 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
39504
20024ab0 395052008-08-11 Robert Millan <rmh@aybabtu.com>
39506
39507 * kern/i386/linuxbios/startup.S: Move from here ...
39508 * kern/i386/coreboot/startup.S: ... to here.
39509
39510 * kern/i386/linuxbios/init.c: Move from here ...
39511 * kern/i386/coreboot/init.c: ... to here.
39512
39513 * kern/i386/linuxbios/table.c: Move from here ...
39514 * kern/i386/coreboot/mmap.c: ... to here.
39515
39516 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
39517
e352e9cd 395182008-08-11 Robert Millan <rmh@aybabtu.com>
39519
39520 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
39521 errors. Leave it to the upper layer to handle them.
39522
2d05bc6a 395232008-08-09 Christian Franke <franke@computer.org>
39524
39525 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
39526 * conf/common.rmk: Install `grub-pe2elf' only if requested.
39527 Install `grub.d/10_windows' only on Cygwin.
39528 * configure.ac: Add subst of `target_os'.
39529 Check `target_os' also before setting TARGET_OBJ2ELF.
39530 Add `--enable-grub-pe2elf'.
39531
042bd419 395322008-08-08 Robert Millan <rmh@aybabtu.com>
39533
39534 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39535 (grub_last_time): Change type to grub_uint64_t.
39536 (grub_disk_open): Migrate code from to using grub_get_time_ms().
39537 (grub_disk_close): Likewise.
39538
39539 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39540 (run_menu): Migrate code from to using grub_get_time_ms().
39541
39542 * util/misc.c (grub_get_time_ms): New function.
39543
7f280db5 395442008-08-08 Marco Gerards <marco@gnu.org>
39545
39546 * disk/ata.c (grub_ata_regget): Change return type to
39547 `grub_uint8_t'.
39548 (grub_ata_regget2): Likewise.
39549 (grub_ata_wait_status): New function.
39550 (grub_ata_wait_busy): Removed function, updated all users to use
39551 `grub_ata_wait_status'.
39552 (grub_ata_wait_drq): Likewise.
39553 (grub_ata_cmd): New function.
39554 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
39555 error handling.
39556 (grub_ata_pio_write): Add error handling.
39557 (grub_atapi_identify): Likewise.
39558 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
39559 handling.
39560 (grub_ata_identify): Use `grub_ata_cmd' and improve error
39561 handling. Actually use the detected registers. Reorder the
39562 detection logic such that it is easier to read.
39563 (grub_ata_pciinit): Do not assign the same ID to each controller.
39564 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
39565 handling.
39566 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
39567
39568 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
39569
1fbc5e66 395702008-08-08 Marco Gerards <marco@gnu.org>
39571
39572 * NEWS: Update.
39573
819ce6c0 395742008-08-07 Bean <bean123ch@gmail.com>
39575
39576 * include/grub/x86_64/pci.h: New file.
39577
5c41d44d 395782008-08-07 Christian Franke <franke@computer.org>
39579
39580 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
39581 (TIMER2_GATE): Likewise.
39582 (grub_pit_wait): Add enable/disable of the timer2 gate
39583 bit of port 0x61. This fixes a possible infinite loop.
39584
5ebc275d 395852008-08-07 Bean <bean123ch@gmail.com>
39586
39587 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
39588 kern/i386/tsc.c and kern/i386/pit.c.
39589
39590 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
39591 x86_64 platform.
39592
39593 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
39594 <grub/i386/tsc.h>.
39595
39596 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
39597
e383b3d0 395982008-08-07 Bean <bean123ch@gmail.com>
39599
39600 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
39601
39602 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
39603
39604 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
39605 multiple inclusion. Add #include <grub/types.h>.
39606
1cbb58ac 396072008-08-06 Christian Franke <franke@computer.org>
39608
39609 * conf/common.rmk: Build and install `10_windows'.
39610 * util/grub.d/10_windows.in: New script.
39611
337f5a1e 396122008-08-06 Pavel Roskin <proski@gnu.org>
39613
39614 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
39615
057bc4ac 396162008-08-06 Robert Millan <rmh@aybabtu.com>
39617
39618 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
39619 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
39620
2b99f123 396212008-08-06 Bean <bean123ch@gmail.com>
39622
39623 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
39624 (grub_pxefs_fs_int): Remove dummy definition.
39625 (grub_pxefs_open): Use data->block_size to store the current block
39626 size setting.
39627 (grub_pxefs_read): Use block size stored in data->block_size. As the
39628 value of grub_pxe_blksize can be changed after the file is opened.
39629
9f0234cb 396302008-08-06 Bean <bean123ch@gmail.com>
39631
39632 * fs/i386/pc/pxe.c (curr_file): new variable.
39633 (grub_pxefs_open): Simply the handling of pxe file system. Don't
39634 require the dummy internal file system anymore.
39635 (grub_pxefs_read): Removed.
39636 (grub_pxefs_close): Likewise.
39637 (grub_pxefs_fs_int): Likewise.
39638 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
39639 connection when we switch file.
39640 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
39641
a55d42e0 396422008-08-06 Robert Millan <rmh@aybabtu.com>
39643
39644 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
39645 `halt.mod'.
39646 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
39647 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
39648
39649 * kern/i386/halt.c: New file.
39650 * kern/i386/reboot.c: Likewise.
39651 * include/grub/i386/reboot.h: Likewise.
39652 * include/grub/i386/halt.h: Likewise.
39653
39654 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
39655 Include `<grub/cpu/halt.h>'.
39656 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
39657 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
39658
39659 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
39660 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
39661 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
39662 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
39663 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
39664 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
39665 from here ...
39666 * include/grub/i386/at_keyboard.h: ... to here.
39667
24371d26 396682008-08-05 Robert Millan <rmh@aybabtu.com>
39669
39670 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
39671 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
39672 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
39673 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39674 `kern/generic/millisleep.c'.
39675
39676 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
39677 instead of grub_get_rtc().
39678 (grub_tsc_init): Initialize `tsc_boot_time'.
39679
39680 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
39681 (grub_machine_init): Use grub_tsc_init() rather than
39682 installing an RTC-based handler via grub_install_get_time_ms().
39683
39684 * kern/i386/pit.c: New file.
39685 * include/grub/i386/pit.h: Likewise.
39686
9e7007b3 396872008-08-05 Bean <bean123ch@gmail.com>
39688
39689 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
39690
39691 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
39692 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
39693 (pxe_mod_SOURCES): New macro.
39694 (pxe_mod_CFLAGS): Likewise.
39695 (pxe_mod_LDFLAGS): Likewise.
39696 (pxecmd_mod_SOURCES): Likewise.
39697 (pxecmd_mod_CFLAGS): Likewise.
39698 (pxecmd_mod_LDFLAGS): Likewise.
39699
39700 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
39701 (grub_pxe_call): Likewise.
39702
39703 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
39704
39705 * commands/i386/pc/pxecmd.c: New file.
39706
9f0234cb 39707 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 39708
39709 * include/grub/i386/pc/pxe.h: Likewise.
39710
6977d49f 397112008-08-05 Bean <bean123ch@gmail.com>
39712
39713 * util/console.c (grub_console_cur_color): New variable.
39714 (grub_console_standard_color): Likewise.
39715 (grub_console_normal_color): Likewise.
39716 (grub_console_highlight_color): Likewise.
39717 (color_map): Likewise.
39718 (use_color): Likewise.
39719 (NUM_COLORS): New macro.
39720 (grub_ncurses_setcolorstate): Handle color properly.
39721 (grub_ncurses_setcolor): Don't change color here, just remember the
39722 settings, color will be set in grub_ncurses_setcolorstate.
39723 (grub_ncurses_getcolor): New function.
39724 (grub_ncurses_init): Initialize color pairs.
39725 (grub_ncurses_term): New member grub_ncurses_getcolor.
39726
9c2ff3ee 397272008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 39728
9c2ff3ee 39729 High resolution timer support. Implemented for x86 CPUs using TSC.
39730 Extracted generic grub_millisleep() so it's linked in only as needed.
39731 This requires a Pentium compatible CPU; if the RDTSC instruction is
39732 not supported, then it falls back on the generic grub_get_time_ms()
39733 implementation that uses the machine's RTC.
39734
39735 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
39736 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39737 `kern/generic/millisleep.c'.
39738
39739 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
39740 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
39741
39742 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
39743 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
39744
39745 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39746
39747 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39748 `kern/generic/millisleep.c'.
39749
39750 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39751
39752 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
39753
39754 * kern/generic/rtc_get_time_ms.c: New file.
39755
39756 * kern/generic/millisleep.c: New file.
337f5a1e 39757
9c2ff3ee 39758 * kern/misc.c: Don't include
39759 <kern/time.h> anymore.
39760 (grub_millisleep_generic): Removed.
39761
39762 * commands/sleep.c (grub_interruptible_millisleep): Uses
39763 grub_get_time_ms() instead of grub_get_rtc().
39764
39765 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
39766 function.
39767 (grub_cpu_is_cpuid_supported): New inline function.
39768 (grub_cpu_is_tsc_supported): New inline function.
39769 (grub_tsc_init): New function prototype.
39770 (grub_tsc_get_time_ms): New function prototype.
39771
39772 * kern/i386/tsc.c (grub_get_time_ms): New file.
39773
39774 * include/grub/time.h: Include <grub/types.h.
39775 (grub_millisleep_generic): Removed.
39776 (grub_get_time_ms): New prototype.
39777 (grub_install_get_time_ms): New prototype.
39778 (grub_rtc_get_time_ms): New prototype.
39779
39780 * kern/time.c (grub_get_time_ms): New function.
39781 (grub_install_get_time_ms): New function.
39782
39783 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
39784 <grub/time.h> anymore.
39785 (grub_millisleep): Removed.
39786 (grub_machine_init): Call grub_tsc_init.
39787
39788 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
39789 get_time_ms() implementation.
39790
39791 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
39792 (ieee1275_get_time_ms): New function.
39793 (grub_machine_init): Install get_time_ms() implementation.
39794
39795 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
39796 (grub_machine_init): Call grub_tsc_init().
39797 (grub_millisleep): Removed.
bf06a93f 39798
9c2ff3ee 39799 * kern/ieee1275/init.c (grub_millisleep): Removed.
39800 (grub_machine_init): Install ieee1275_get_time_ms()
39801 implementation.
39802 (ieee1275_get_time_ms): New function.
39803 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
39804 real work.
39805
9ec92aaf 398062008-08-05 Marco Gerards <marco@gnu.org>
39807
39808 * disk/ata.c: Include <grub/pci.h>.
39809 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
39810 (grub_ata_initialize): Rewritten.
39811 (grub_ata_device_initialize): New function.
39812
8d23f507 398132008-08-04 Pavel Roskin <proski@gnu.org>
39814
39815 * kern/main.c: Include grub/mm.h.
39816
5e15ee3d 398172008-08-04 Robert Millan <rmh@aybabtu.com>
39818
39819 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
39820 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
39821 corruption problem).
39822
a9053f8f 398232008-08-04 Robert Millan <rmh@aybabtu.com>
39824
39825 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
39826 warnings introduced in my last commit.
39827
dd19c7d7 398282008-08-03 Robert Millan <rmh@aybabtu.com>
39829
39830 Make PCI available on all i386 architectures.
39831
39832 * include/grub/i386/pc/pci.h: Move from here ...
39833 * include/grub/i386/pci.h: ... to here.
39834
39835 * include/grub/i386/pc/pci.h: Remove.
39836 * include/grub/i386/efi/pci.h: Remove.
39837 * include/grub/x86_64/efi/pci.h: Remove.
39838
39839 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
39840 `<grub/cpu/pci.h>'.
39841
39842 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
39843 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
39844 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
39845
39846 * conf/i386-ieee1275.rmk: Likewise.
39847
e14a6184 398482008-08-03 Robert Millan <rmh@aybabtu.com>
39849
39850 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
39851 (grub_console_setcursor): Make it possible to set cursor off.
39852
52768e37 398532008-08-03 Robert Millan <rmh@aybabtu.com>
39854
39855 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
39856 of modules instead of assuming which platform provides what.
39857 * util/update-grub.in: Likewise.
39858
2d52f57f 398592008-08-03 Robert Millan <rmh@aybabtu.com>
39860
39861 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
39862 instead of `grub_install_dos_part' to determine whether a drive needs
39863 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 39864 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 39865
2a5cd121 398662008-08-02 Robert Millan <rmh@aybabtu.com>
39867
39868 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
39869
93808428 398702008-08-02 Robert Millan <rmh@aybabtu.com>
39871
39872 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
39873 of informational grub_dprintf() calls.
39874
3bd0a12a 398752008-08-02 Robert Millan <rmh@aybabtu.com>
39876
39877 * disk/memdisk.c (memdisk_size): Don't initialize.
39878 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
39879
39880 * include/grub/i386/pc/kernel.h
39881 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
39882 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
39883 (grub_memdisk_image_size, grub_arch_memdisk_addr)
39884 (grub_arch_memdisk_size): Remove.
39885
39886 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
39887 field (was only used to transfer a constant). Add `type' field to
39888 support multiple module types.
39889 (grub_module_iterate): New function.
39890
39891 * kern/device.c (grub_device_open): Do not hide error messages
39892 when grub_disk_open() fails. Use grub_print_error() instead.
39893
39894 * kern/i386/pc/init.c (grub_arch_modules_addr)
39895 (grub_arch_memdisk_size): Remove functions.
39896 (grub_arch_modules_addr): Return the module address in high memory
39897 (now that it isn't copied anymore).
39898
39899 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
39900 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
39901 decompression routine (grub_total_module_size already includes that
39902 now). Don't copy modules back to low memory.
39903
39904 * kern/main.c: Include `<grub/mm.h>'.
39905 (grub_load_modules): Split out (and use) ...
39906 (grub_module_iterate): ... this function, which iterates through
39907 module objects and runs a hook.
39908 Comment out grub_mm_init_region() call, as it would cause non-ELF
39909 modules to be overwritten.
39910
39911 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
39912 the memdisk image in its own region, make it part of the module list.
39913 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
39914 (main): Parse --memdisk|-m option, and pass user-provided path as
39915 parameter to generate_image().
39916 (add_segments): Pass `memdisk_path' down to load_modules().
39917 (load_modules): Embed memdisk image in module section when requested.
39918 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
39919 `header.type' instead of `header.offset'.
39920
39921 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
39922 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
39923 (memdisk_mod_LDFLAGS): New variables.
39924 * conf/i386-coreboot.rmk: Likewise.
39925 * conf/i386-ieee1275.rmk: Likewise.
39926
a927cc73 399272008-08-02 Robert Millan <rmh@aybabtu.com>
39928
39929 * loader/i386/pc/multiboot.c (playground, forward_relocator)
39930 (backward_relocator): New variables. Used to allocate and relocate
39931 the payload, respectively.
39932 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 39933 address, install the appropriate relocator code in each bound of
a927cc73 39934 the payload, and set the entry point such that
39935 grub_multiboot_real_boot() will jump to one of them.
39936
39937 * kern/i386/loader.S (grub_multiboot_payload_size)
39938 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
39939 (grub_multiboot_payload_entry_offset): New variables.
39940 (grub_multiboot_real_boot): Set cpu context to what the relocator
39941 expects, and jump to the relocator instead of the payload.
39942
39943 * include/grub/i386/loader.h (grub_multiboot_payload_size)
39944 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
39945 (grub_multiboot_payload_entry_offset): Export.
39946
b15d8a0c 399472008-08-01 Bean <bean123ch@gmail.com>
39948
39949 * normal/menu_entry.c (editor_getline): Don't return the original
39950 string as result, as it will be released by lexer once it has done
39951 using it.
39952
cdfb3d22 399532008-08-01 Robert Millan <rmh@aybabtu.com>
39954
39955 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
39956 within menuentries, not before them.
39957 util/grub.d/10_hurd.in: Likewise.
39958
9175e93d 399592008-08-01 Bean <bean123ch@gmail.com>
39960
39961 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
39962 (bufio_mod_SOURCES): New macro.
39963 (bufio_mod_CFLAGS): Likewise.
39964 (bufio_mod_LDFLAGS): Likewise.
39965
39966 * include/grub/bufio.h: New file.
39967
39968 * io/bufio.c: Likewise.
39969
39970 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
39971 (grub_video_reader_png): Use grub_buffile_open to open file.
39972
39973 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
39974 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
39975
39976 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
39977 (grub_video_reader_tga): Use grub_buffile_open to open file.
39978
39979 * font/manager.c: Include <grub/bufio.h>.
39980 (add_font): Use grub_buffile_open to open file.
39981
3d8383e7 399822008-07-31 Robert Millan <rmh@aybabtu.com>
39983
39984 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
39985 ELF segments, use a macro for arbitrarily accessing any of them instead
39986 of preparing a pointer that allows access to one at a time.
39987 (grub_multiboot_load_elf64): Likewise.
39988
16e641b6 399892008-07-31 Bean <bean123ch@gmail.com>
39990
39991 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
39992 GRUB_KERNEL_MACHINE_DATA_END.
39993
59198b72 399942008-07-30 Robert Millan <rmh@aybabtu.com>
39995
39996 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
39997 Increase from 0x50 to 0x60.
39998 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
39999 use UUIDs to identify the root drive for them. If that's not
40000 possible, abort.
40001 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
40002 check, for cross-disk installs.
40003
ae88bca3 400042008-07-30 Robert Millan <rmh@aybabtu.com>
40005
40006 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
40007 is non-empty, use it to set the `prefix' environment variable instead
40008 of the usual approach.
40009 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
40010 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
40011 environment variable instead of dummy make_install_device().
40012
40013 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
40014 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 40015 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 40016
40017 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
40018 New variable reference.
40019 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
40020 New macro. Defines offset of `grub_prefix' within startup.S (relative
40021 to `start').
40022 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
40023 section within startup.S (relative to `start').
40024 * include/grub/i386/coreboot/kernel.h: Likewise.
40025
40026 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
40027 Overwrite grub_prefix with its contents, at the beginning of the
40028 first segment.
40029 (main): Understand -p|--prefix.
40030
14f41dd1 400312008-07-30 Robert Millan <rmh@aybabtu.com>
40032
40033 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
40034
4ca049a3 400352008-07-30 Robert Millan <rmh@aybabtu.com>
40036
40037 * term/i386/pc/vga_text.c (grub_console_cls): Use
40038 grub_console_gotoxy() to go back to beginning of the screen.
40039 Found by Patrick Georgi <patrick.georgi@coresystems.de>
40040
2921d337 400412008-07-29 Christian Franke <franke@computer.org>
40042
40043 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
40044 Add conversion of emulated mount points on Cygwin.
40045
b609876d 400462008-07-29 Christian Franke <franke@computer.org>
40047
40048 * util/update-grub.in: Add a check for admin
40049 group on Cygwin.
40050 Remove old `grub.cfg.new' before creation.
40051 Add `-f' to `mv' to handle the different filesystem
40052 semantics of Windows.
40053
e93e4679 400542008-07-29 Bean <bean123ch@gmail.com>
40055
40056 * normal/main.c (get_line): Fix buffer overflow bug.
40057
41694fd0 400582008-07-28 Robert Millan <rmh@aybabtu.com>
40059
40060 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
40061 (struct grub_apple_header): New struct. Describes the layout of
40062 the partmap header.
40063 (apple_partition_map_iterate): Check the header magic as well as the
40064 partition magic (which was already being checked).
40065
cfd0b4e6 400662008-07-28 Pavel Roskin <proski@gnu.org>
40067
40068 * genmk.rb: Add a warning to the beginning of the output that
40069 it's a generated file and should not be edited.
40070
93cce016 400712008-07-28 Robert Millan <rmh@aybabtu.com>
40072
40073 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40074 with the same number are found, just use issue a warning with
40075 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 40076
cd1df915 400772008-07-27 Robert Millan <rmh@aybabtu.com>
40078
40079 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
40080 information.
40081
b70a8427 400822008-07-27 Bean <bean123ch@gmail.com>
40083
40084 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
40085 (grub_fat_find_dir): Ignore case when comparing filename.
40086
8f5e379f 400872008-07-27 Bean <bean123ch@gmail.com>
40088
40089 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
40090 smallino, as it's more descriptive, and i8count can be confused with
40091 the other field count.
40092 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
40093 inode type.
40094
a85cd5a0 400952008-07-27 Bean <bean123ch@gmail.com>
40096
40097 * commands/crc.c: New file.
40098
40099 * lib/crc.c: Likewise.
40100
40101 * include/grub/lib/crc.h: Likewise.
40102
40103 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
40104
40105 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
40106 (hexdump): Move this function to ...
40107
40108 * lib/hexdump.c: ... here.
40109
40110 * include/grub/hexdump.h: Renamed to ...
40111
40112 * include/grub/lib/hexdump.h: ... this.
40113
40114 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
40115
40116 * util/grub-editenv.c: Likewise.
40117
40118 * include/envblk.h: Renamed to ...
40119
40120 * include/lib/envblk.h: ... this.
40121
40122 * util/envblk.c: Renamed to ...
40123
40124 * lib/envblk.c: ... this.
40125
40126 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
40127 lib/hexdump.c.
40128 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
40129 (pkglib_MODULES): Add crc.mod.
40130 (hexdump_mod_SOURCES): Add lib/hexdump.c.
40131 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
40132 (crc_mod_SOURCES): New macro.
40133 (crc_mod_CFLAGS): Likewise.
40134 (crc_mod_LDFLAGS): Likewise.
40135
40136 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
40137
40138 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40139
40140 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40141
40142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40143
40144 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40145
c298def0 401462008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 40147
40148 * commands/help.c: Include <grub/term.h>.
40149 (TERM_WIDTH): Removed. Updated all users.
40150
cc349fb3 401512008-07-27 Pavel Roskin <proski@gnu.org>
40152
40153 * util/getroot.c (find_root_device): Rephrase a comment to avoid
40154 spurious warnings about a comment within a comment.
40155
9051607e 401562008-07-25 Robert Millan <rmh@aybabtu.com>
40157
40158 * util/getroot.c (find_root_device): Skip devices that match
40159 /dev/dm-[0-9]. This lets the real device be found for any type of
40160 abstraction (LVM, EVMS, RAID..).
40161 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
40162 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
40163 device is found first, find_root_device() will now skip it.
40164
01453bfc 401652008-07-24 Pavel Roskin <proski@gnu.org>
40166
40167 * include/grub/types.h: Use __builtin_bswap32() and
40168 __builtin_bswap64() with gcc 4.3 and newer.
40169
6af9849f 401702008-07-24 Christian Franke <franke@computer.org>
40171
3a0fa256 40172 * util/i386/pc/grub-install.in: If `--debug' is specified,
40173 pass `--verbose' to grub-setup.
40174 Abort script if make_system_path_relative_to_its_root() fails.
40175
7810e747 401762008-07-24 Bean <bean123ch@gmail.com>
40177
40178 * configure.ac: Fixed a bug caused by the previous cygwin patch,
40179 variable `target_platform' should be `platform'.
40180
42290e17 401812008-07-24 Bean <bean123ch@gmail.com>
40182
51cc5193 40183 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 40184 (grub_png_init_fixed_block): New function.
40185 (grub_png_decode_image_data): Handle fixed huffman code compression.
40186
2a8a80e4 401872008-07-24 Bean <bean123ch@gmail.com>
40188
40189 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
40190 (grub_pe2elf_SOURCES): New macro.
40191 (CLEANFILES): Add grub-pe2elf.
40192
40193 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
40194 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
40195 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
40196 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
40197 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
40198 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
40199 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
40200 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
40201 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
40202 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
40203 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
40204 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
40205 (GRUB_PE32_DT_FUNCTION): Likewise.
40206 (GRUB_PE32_REL_I386_DIR32): Likewise.
40207 (GRUB_PE32_REL_I386_REL32): Likewise.
40208 (grub_pe32_symbol): New structure.
40209 (grub_pe32_reloc): Likewise.
40210
40211 * util/grub-pe2elf.c: New file.
40212
40213 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
40214 start symbol in non pc platform.
40215
40216 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
40217
40218 The following patches are from Christian Franke.
40219
40220 * include/grub/dl.h: Remove .previous, gas supports this only
40221 for ELF format.
40222
40223 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
40224 Remove .type, gas supports this only for ELF format.
40225
40226 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
40227 nullbytes in symbol table. This fixes an infinite loop if table is
40228 zero filled.
40229
40230 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
40231 TARGET_IMG_LDFLAGS and EXEEXT.
40232
40233 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
40234 TARGET_IMG_LDFLAGS_AC.
40235 (grub_CHECK_STACK_ARG_PROBE): New function.
40236
40237 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
40238
40239 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
40240
40241 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
40242 to set TARGET_IMG_LD* accordingly.
40243 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
40244 Add call to grub_CHECK_STACK_ARG_PROBE.
40245 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
40246
40247 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
40248
40249 * genmk.rb: Add EXEEXT to CLEANFILES.
40250
12ccdb75 402512008-07-23 Robert Millan <rmh@aybabtu.com>
40252
40253 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
40254 define the codes for arrows and lines used for the menu).
40255 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
40256 as well.
40257
40258 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
40259 fonts, because the latter are too slow.
40260
18eeaf04 402612008-07-21 Bean <bean123ch@gmail.com>
40262
40263 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
40264 a20. Run keyboard test last, as it will cause macbook to halt.
40265
b095e2ad 402662008-07-18 Pavel Roskin <proski@gnu.org>
40267
40268 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
40269 load foreign architecture modules correctly anyway. Keep
40270 support for loading host architecture modules, whether we
40271 compile them or not.
40272
737feb35 402732008-07-17 Pavel Roskin <proski@gnu.org>
40274
3f4ce737 40275 * configure.ac: Use -m32 or -m64 regardless of whether we had to
40276 change target_cpu. The compiler default can mismatch target_cpu
40277 in any case.
40278
4ad2d049 40279 * disk/efi/efidisk.c: Fix format warnings on x86_64.
40280 * kern/efi/efi.c: Likewise.
40281
f6130a12 40282 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
40283 target compiler is functional.
40284 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
40285 are set up.
40286
58393a2d 40287 * configure.ac: Default to efi platform for x86_64-apple. Allow
40288 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
40289 adjustments from the rest, only do them if target is not
40290 explicitly given. Merge other adjustments with the final sanity
40291 check. Remove an extraneous check for supported CPU. Be
40292 specific which CPU and which platform is not supported.
40293
737feb35 40294 * configure.ac: Default to pc platform for x86_64.
40295
546f966a 402962008-07-17 Robert Millan <rmh@aybabtu.com>
40297
40298 Partial LinuxBIOS -> Coreboot rename.
40299
40300 * conf/i386-linuxbios.rmk: Renamed to ...
40301 * conf/i386-coreboot.rmk: ... this.
40302 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
40303 * configure.ac: Accept "coreboot" as input platform (but maintain
40304 compatibility with "linuxbios").
40305 * include/grub/i386/linuxbios: Renamed to ...
40306 * include/grub/i386/coreboot: ... this.
40307
20011694 403082008-07-17 Bean <bean123ch@gmail.com>
40309
40310 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 40311 (appleldr_mod_SOURCE): New variable.
20011694 40312 (appleldr_mod_CFLAGS): Likewise.
40313 (appleldr_mod_LDFLAGS): Likewise.
40314 (pci_mod_SOURCES): Likewise.
40315 (pci_mod_CFLAGS): Likewise.
40316 (pci_mod_LDFLAGS): Likewise.
40317 (lspci_mod_SOURCES): Likewise.
40318 (lspci_mod_CFLAGS): Likewise.
40319 (lspci_mod_LDFLAGS): Likewise.
40320
40321 * conf/x86_64-efi.rmk: New file.
40322
40323 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
40324 macro.
40325 (grub_efidisk_write): Likewise.
40326
40327 * include/efi/api.h (efi_call_0): New macro.
40328 (efi_call_1): Likewise.
40329 (efi_call_2): Likewise.
40330 (efi_call_3): Likewise.
40331 (efi_call_4): Likewise.
40332 (efi_call_5): Likewise.
40333 (efi_call_6): Likewise.
40334
40335 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
40336 grub_rescue_cmd_chainloader.
40337
40338 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
40339 (grub_pe32_optional_header): Change some fields based on i386 or
40340 x86_64 platform.
40341 (GRUB_PE32_PE32_MAGIC): Likewise.
40342
40343 * include/grub/efi/uga_draw.h: New file.
40344
40345 * include/grub/elf.h (STN_ABS): New constant.
40346 (R_X86_64_NONE): Relocation constant for x86_64.
40347 (R_X86_64_64): Likewise.
40348 (R_X86_64_PC32): Likewise.
40349 (R_X86_64_GOT32): Likewise.
40350 (R_X86_64_PLT32): Likewise.
40351 (R_X86_64_COPY): Likewise.
40352 (R_X86_64_GLOB_DAT): Likewise.
40353 (R_X86_64_JUMP_SLOT): Likewise.
40354 (R_X86_64_RELATIVE): Likewise.
40355 (R_X86_64_GOTPCREL): Likewise.
40356 (R_X86_64_32): Likewise.
40357 (R_X86_64_32S): Likewise.
40358 (R_X86_64_16): Likewise.
40359 (R_X86_64_PC16): Likewise.
40360 (R_X86_64_8): Likewise.
40361 (R_X86_64_PC8): Likewise.
40362
40363 * include/grub/i386/efi/pci.h: New file.
40364
40365 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
40366 Change it value based on platform.
40367 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
40368 (GRUB_E820_RAM): Likewise.
40369 (GRUB_E820_RESERVED): Likewise.
40370 (GRUB_E820_ACPI): Likewise.
40371 (GRUB_E820_NVS): Likewise.
40372 (GRUB_E820_EXEC_CODE): Likewise.
40373 (GRUB_E820_MAX_ENTRY): Likewise.
40374 (grub_e820_mmap): New structure.
40375 (linux_kernel_header): Change the efi field according to different
40376 kernel version, also field from linux_kernel_header.
40377
40378 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
40379
40380 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
40381 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
40382 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
40383 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
40384 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
40385 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
40386 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
40387 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
40388 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
40389 (GRUB_PCI_ADDR_IO_MASK): Likewise.
40390
40391 * include/grub/x86_64/efi/kernel.h: New file.
40392
40393 * include/grub/x86_64/efi/loader.h: Likewise.
40394
40395 * include/grub/x86_64/efi/machine.h: Likewise.
40396
40397 * include/grub/x86_64/efi/pci.h: Likewise.
40398
40399 * include/grub/x86_64/efi/time.h: Likewise.
40400
40401 * include/grub/x86_64/linux.h: Likewise.
40402
40403 * include/grub/x86_64/setjmp.h: Likewise.
40404
40405 * include/grub/x86_64/time.h: Likewise.
40406
40407 * include/grub/x86_64/types.h: Likewise.
40408
40409 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
40410 GRUB_TARGET_SIZEOF_VOID_P.
40411
40412 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
40413 (grub_efi_locate_handle): Likewise.
40414 (grub_efi_open_protocol): Likewise.
40415 (grub_efi_set_text_mode): Likewise.
40416 (grub_efi_stall): Likewise.
40417 (grub_exit): Likewise.
40418 (grub_reboot): Likewise.
40419 (grub_halt): Likewise.
40420 (grub_efi_exit_boot_services): Likewise.
40421 (grub_get_rtc): Likewise.
40422
40423 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
40424 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
40425 (grub_efi_allocate_pages): Wrap efi calls.
40426 (grub_efi_free_pages): Wrap efi calls.
40427 (grub_efi_get_memory_map): Wrap efi calls.
40428
40429 * kern/x86_64/dl.c: New file.
40430
40431 * kern/x86_64/efi/callwrap.S: Likewise.
40432
40433 * kern/x86_64/efi/startup.S: Likewise.
40434
40435 * loader/efi/appleloader.c: Likewise.
40436
40437 * loader/efi/chainloader.c (cmdline): New variable.
40438 (grub_chainloader_unload): Wrap efi calls.
40439 (grub_chainloader_boot): Likewise.
40440 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
40441 command line.
40442
40443 * loader/efi/chainloader_normal.c (chainloader_command):
40444 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
40445 command line.
40446
40447 * loader/i386/efi/linux.c (allocate_pages): Change allocation
40448 method.
40449 (grub_e820_add_region): New function.
40450 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
40451 booting.
40452 (grub_find_video_card): New function.
40453 (grub_linux_setup_video): New function.
40454 (grub_rescue_cmd_linux): Probe for video information.
40455
40456 * normal/x86_64/setjmp.S: New file.
40457
40458 * term/efi/console.c (map_char): New function.
40459 (grub_console_putchar): Map unicode char.
40460 (grub_console_checkkey): Wrap efi calls.
40461 (grub_console_getkey): Likewise.
40462 (grub_console_getwh): Likewise.
40463 (grub_console_gotoxy): Likewise.
40464 (grub_console_cls): Likewise.
40465 (grub_console_setcolorstate): Likewise.
40466 (grub_console_setcursor): Likewise.
40467
40468 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
40469
59652a20 404702008-07-16 Pavel Roskin <proski@gnu.org>
40471
ef294055 40472 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
40473 format strings.
40474
59652a20 40475 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
40476 pointer, not an integer. This fixes a warning and prevents
40477 precision loss on 64-bit systems.
40478 (relocate_addresses): Remove unneeded cast.
40479
afc3b5d7 404802008-07-15 Pavel Roskin <proski@gnu.org>
40481
506b2b3e 40482 * kern/i386/ieee1275/init.c: Include grub/cache.h.
40483
62ead89c 40484 * term/ieee1275/ofconsole.c: Disable code unused on i386.
40485
c4cd51d7 40486 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
40487 Fix comparison between signed and unsigned.
40488
0d3d8f28 40489 * include/grub/i386/ieee1275/console.h: Declare
40490 grub_console_init() and grub_console_fini().
40491
8804b286 40492 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
40493 It's empty and unused.
40494
ee01cf35 40495 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
40496 beginning to avoid warnings with some compilers.
40497
afc3b5d7 40498 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
40499 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
40500
e4e8eaa5 405012008-07-14 Pavel Roskin <proski@gnu.org>
40502
407aceb4 40503 * kern/env.c (grub_register_variable_hook): Don't copy empty
40504 string, it leaks memory. Pass "" to grub_env_set(), it should
40505 handle constant strings.
40506
e4e8eaa5 40507 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
40508 * commands/cmp.c (grub_cmd_cmp): Likewise.
40509 * kern/dl.c (grub_dl_flush_cache): Likewise.
40510 (grub_dl_load_core): Likewise.
40511 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
40512 (grub_elf64_load_phdrs): Likewise.
40513
d4e2dad3 405142008-07-13 Pavel Roskin <proski@gnu.org>
40515
40516 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
40517 between signed and unsigned.
40518 (LzmaEnc_Finish): Fix warning about an unused parameter.
40519
aa24b516 405202008-07-13 Bean <bean123ch@gmail.com>
40521
40522 * Makefile.in (enable_lzo): New rule.
40523
40524 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
40525
40526 * configure.ac (ENABLE_LZO): New option --enable-lzo.
40527
40528 * boot/i386/pc/lnxboot.S: #include <config.h>.
40529
40530 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 40531 its value according to the compression algorithm used, lzo or lzma.
aa24b516 40532
40533 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
40534 compression algorithm according to configure macro.
40535
40536 * kern/i386/pc/startup.S (codestart): Likewise.
40537
40538 * kern/i386/pc/lzma_decode.S: New file.
40539
40540 * include/grub/lib/LzFind.h: Likewise.
40541
40542 * include/grub/lib/LzHash.h: Likewise.
40543
40544 * include/grub/lib/LzmaDec.h: Likewise.
40545
40546 * include/grub/lib/LzmaEnc.h: Likewise.
40547
40548 * include/grub/lib/LzmaTypes.h: Likewise.
40549
40550 * lib/LzFind.c: Likewise.
40551
40552 * lib/LzmaDec.c: Likewise.
40553
40554 * lib/LzmaEnc.c: Likewise.
40555
4ae821ac 405562008-07-13 Bean <bean123ch@gmail.com>
40557
40558 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
40559 (grub_ext4_extent_header): New structure.
40560 (grub_ext4_extent): Likewise.
40561 (grub_ext4_extent_idx): Likewise.
40562 (grub_ext4_find_leaf): New function.
40563 (grub_ext2_read_block): Handle extents.
40564
9a745147 405652008-07-12 Robert Millan <rmh@aybabtu.com>
40566
40567 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
40568
d49a4cf6 405692008-07-11 Robert Millan <rmh@aybabtu.com>
40570
40571 * util/grub.d/40_custom.in: New file. Example on how to add custom
40572 entries to /etc/grub.d.
40573 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
40574 40_custom (implicitly, by merging all the grub.d rules).
40575
947414b4 405762008-07-11 Pavel Roskin <proski@gnu.org>
40577
0059cf6f 40578 * commands/read.c (grub_getline): Fix invalid memory access.
40579 Don't add newline to the variable value.
40580
947414b4 40581 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
40582 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
40583 (serial_hw_get_port): Check validity of the port number.
40584 (grub_cmd_serial): Check return value of serial_hw_get_port().
40585
62a02d00 405862008-07-07 Pavel Roskin <proski@gnu.org>
40587
40588 * boot/i386/pc/diskboot.S (notification_string): Replace
40589 "Loading kernel" with just "loading". This is shorter, less
40590 confusing and saves a few bytes for possible future changes.
40591
3e5581b0 405922008-07-05 Pavel Roskin <proski@gnu.org>
40593
ea387a48 40594 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
40595 size for ATAPI devices, they are undefined. Output sector
40596 number in decimal form.
40597
3e5581b0 40598 * disk/ata.c: Use named constants for status bits.
40599
fdecb8fd 406002008-07-04 Pavel Roskin <proski@gnu.org>
40601
bcd35b90 40602 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
40603 grub_addr_t before casting it to the void pointer to fix a
40604 warning. Non-addressable regions are discarded earlier.
40605 (grub_arch_modules_addr): Cast _end to grub_addr_t.
40606 * kern/i386/linuxbios/table.c: Include grub/misc.h.
40607 (check_signature): Don't shadow table_header.
40608 (grub_linuxbios_table_iterate): Cast numeric constants to
40609 grub_linuxbios_table_header_t.
40610 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
40611 grub_stop().
40612
af58ab3d 40613 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
40614 prevent warnings.
40615
1759aa57 40616 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
40617 pointer, which can cause warnings. Support 64-bit addresses.
40618
fdecb8fd 40619 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
40620 of sizeof(long). This fixes PowerPC image generation on x86_64.
40621
8516d2a8 406222008-07-04 Robert Millan <rmh@aybabtu.com>
40623
40624 This fixes a performance issue when pc & gpt partmap iterators
40625 didn't abort iteration even after our hook found what it was
fe987087 40626 looking for (often causing expensive probes of non-existent drives).
8516d2a8 40627
40628 Some callers relied on previous buggy behaviour, since they would
34c44600 40629 raise an error when their own hooks caused early abortion of its
8516d2a8 40630 iteration.
40631
40632 * kern/device.c (grub_device_open): Improve error message.
40633 * disk/lvm.c (grub_lvm_open): Likewise.
40634 * disk/raid.c (grub_raid_open): Likewise.
40635
40636 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
40637 when hook requests it, independently of grub_errno.
40638 (pc_partition_map_probe): Do not fail when find_func() caused
40639 early abortion of pc_partition_map_iterate().
40640
40641 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
40642 when hook requests it, independently of grub_errno.
40643 (gpt_partition_map_probe): Do not fail when find_func() caused
40644 early abortion of gpt_partition_map_iterate().
40645
40646 * kern/partition.c (grub_partition_iterate): Abort parent iteration
40647 when hook requests it, independently of grub_errno. Do not fail when
40648 part_map_iterate_hook() caused early abortion of p->iterate().
40649
40650 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
40651 when grub_partition_iterate() returned with non-zero.
40652
277d0de9 406532008-07-03 Pavel Roskin <proski@gnu.org>
40654
40655 * disk/ata.c (grub_ata_pio_write): Check status before writing,
40656 like we do in grub_ata_pio_read().
40657 (grub_ata_readwrite): Always write individual sectors. Fix the
40658 sector count for the remainder.
40659 (grub_ata_write): Enable writing to ATA devices. Correctly
40660 report error for ATAPI devices.
40661
d4c9b428 406622008-07-02 Pavel Roskin <proski@gnu.org>
40663
e43fc690 40664 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
40665 warning.
40666
f707af42 40667 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
40668 for every read sector, we already increment it for the whole
40669 batch. This fixes reading more than 256 sectors at once.
40670
11e16b15 40671 * util/grub-editenv.c (cmd_info): Cast argument to long
40672 explicitly. ptrdiff_t reduces to int on i386.
40673
cbabfdd4 40674 * util/grub-editenv.c (main): Be specific which parameter is
40675 missing.
40676
b8fbce0a 40677 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
40678 (memdisk): Make memdisk_orig_addr a pointer.
40679
c9c8e606 40680 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
40681 for file offsets, use grub_off_t instead. Fix printf format
40682 warnings.
40683
ca62e598 40684 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
40685 there. Real unexpected warnings should not drown in the noise
40686 about known problems.
40687
ce8d1766 40688 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
40689 grub_disk_addr_t for memory addresses.
40690
00c7a56a 40691 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
40692 explicitly to fix a warning.
40693
08d3ef09 40694 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
40695
cb71ba20 40696 * Makefile.in (MODULE_LDFLAGS): New variable.
40697 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
40698 the linker accepts --build-id=none.
40699 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
40700 MODULE_LDFLAGS.
40701 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
40702
d4c9b428 40703 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
40704 those in Linux XFS code. Provide a way to access 64-bit parent
40705 inode.
40706 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
40707 the end of struct grub_xfs_dir_header.
40708
d4156eee 407092008-07-02 Bean <bean123ch@gmail.com>
40710
40711 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
40712 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40713 and GRUB_IEEE1275_FLAG_NO_ANSI.
40714
40715 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
40716 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40717 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
40718
40719 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
40720 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
40721
40722 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
40723 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
40724
40725 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
40726 esc sequence on non ANSI terminal.
40727 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
40728
40729 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
40730 beginning of file.
40731
2270f77b 407322008-07-02 Bean <bean123ch@gmail.com>
40733
40734 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
40735 (grub_editenv_SOURCES): New variable.
40736 (pkglib_MODULES): Add loadenv.mod.
40737 (loadenv_mod_SOURCES): New variable.
40738 (loadenv_mod_CFLAGS): Likewise.
40739 (loadenv_mod_LDFLAGS): Likewise.
40740
40741 * include/grub/envblk.h: New file.
40742
40743 * util/envblk.c: New file.
40744
40745 * util/grub-editenv.c: New file.
40746
40747 * commands/loadenv.c: New file.
40748
0e9e51ec 407492008-07-01 Pavel Roskin <proski@gnu.org>
40750
d89b7634 40751 * include/multiboot2.h (struct multiboot_tag_module): Use char,
40752 not unsigned char. This fixes warnings and is consistent with
40753 other tags.
40754
bf1835b1 40755 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
40756
8222a04b 40757 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
40758
6a42d99d 40759 * term/tparm.c (analyze): Always set *popcount.
40760
10b159d1 40761 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
40762 cast to fix a warning.
40763
b8789f6c 40764 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
40765 cast to suppress a warning.
40766
29d7e38a 40767 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
40768 grub_fshelp_read_file() expects.
40769
f341f669 40770 * fs/fat.c: Fix UUID calculation on big-endian systems. We
40771 write uuid as a 32-bit value in CPU byte order, so declare and
40772 use it as such.
40773
0e9e51ec 40774 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
40775 long if the format specifier expects it.
40776 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
40777 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40778 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
40779 long to fix a warning.
40780 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
40781 grub_dprintf() arguments to fix warnings.
40782
3aefa857 407832008-06-30 Pavel Roskin <proski@gnu.org>
40784
56c7668b 40785 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
40786 install_bsd_part immediately before core.img is embedded or
40787 modified on disk. This fixes core.img verification if core.img
40788 cannot be embedded.
40789
3aefa857 40790 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
40791 core_path to calculate the blocklist.
40792 Patch from Javier Martín <lordhabbit@gmail.com>
40793
5444088d 407942008-06-29 Robert Millan <rmh@aybabtu.com>
40795
40796 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
40797 block to disk block.
40798 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
40799 Patch from Niels Böhm <bitbucket@arcor.de>
40800
674835c8 408012008-06-29 Robert Millan <rmh@aybabtu.com>
40802
40803 * util/update-grub_lib.in (font_path): Search for fonts in
40804 /boot/grub first, which is more likely to be readable (we aren't
40805 deciding where fonts live, just looking for them).
40806
f527dbc8 408072008-06-26 Pavel Roskin <proski@gnu.org>
40808
6c2d8df6 40809 * util/biosdisk.c (read_device_map): Don't leave dead map
40810 entries for devices failing stat() check.
40811
f527dbc8 40812 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
40813 core_path_dev for the core.img path on the target device.
40814
aebe3d13 408152008-06-26 Robert Millan <rmh@aybabtu.com>
40816
40817 * disk/fs_uuid.c: New file.
40818 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
40819 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
40820 (fs_uuid_mod_LDFLAGS): New variables.
40821 * include/grub/disk.h (grub_disk_dev_id): Add
40822 `GRUB_DISK_DEVICE_UUID_ID'.
40823 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
40824 implement iterate().
40825
37aaf354 408262008-06-26 Robert Millan <rmh@aybabtu.com>
40827
40828 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
40829 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
40830 Linux image includes no initrd.
40831
25ff262a 408322008-06-21 Javier Martín <lordhabbit@gmail.com>
40833
40834 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
40835 call to resolve the core image location that effectively appended the
40836 name twice.
40837
76a2bd44 408382008-06-21 Robert Millan <rmh@aybabtu.com>
40839
40840 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
40841 call from here ...
40842
40843 * util/grub.d/10_hurd.in: ... to here ...
40844 * util/grub.d/10_linux.in: ... and here.
40845
650e1c79 408462008-06-19 Robert Millan <rmh@aybabtu.com>
40847
fe987087 40848 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 40849 after it has been set by grub_machine_set_prefix().
40850
6ce63911 408512008-06-19 Robert Millan <rmh@aybabtu.com>
40852
40853 * commands/search.c (search_label, search_fs_uuid, search_file): Print
40854 search result when not saving to variable, not the other way around.
40855 When saving to variable, abort iteration as soon as a match is found.
40856
73940cec 408572008-06-19 Robert Millan <rmh@aybabtu.com>
40858
40859 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
40860 check for partition that provides /boot/grub. Its logic is flawed,
40861 as it prevents prepare_grub_to_access_device() from being called
40862 multiple times.
40863
3c62a39d 408642008-06-19 Robert Millan <rmh@aybabtu.com>
40865
40866 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
40867 "insmod" command directly when abstraction modules are needed,
fe987087 40868 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 40869 since it had already been processed).
40870
47395a42 408712008-06-19 Pavel Roskin <proski@gnu.org>
40872
40873 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
40874 changed. This is needed in case GRUB_LIBDIR changes.
40875 * conf/i386-ieee1275.rmk: Likewise.
40876 * conf/i386-linuxbios.rmk: Likewise.
40877 * conf/i386-pc.rmk: Likewise.
40878 * conf/powerpc-ieee1275.rmk: Likewise.
40879
a145ac2d 408802008-06-18 Pavel Roskin <proski@gnu.org>
40881
40882 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
40883 kernel_elf_symlist.c to symlist.c for consistency with other
40884 architectures. Update all users.
40885 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40886
7847c51e 408872008-06-18 Robert Millan <rmh@aybabtu.com>
40888
40889 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
40890 it in prefix.
40891
40892 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
40893 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
40894 a RAID device, run setup() for all members independently on whether
40895 LVM abstraction is being used.
40896 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
40897 If grub-mkimage has set `*install_dos_part == -2', don't override this
40898 value.
40899 Perform *install_dos_part adjustments independently on whether
40900 we're embedding or not.
40901 Clarify error message when image is too big for embedding.
40902 Remove duplicate *install_dos_part stanza.
40903
b23e5644 409042008-06-17 Robert Millan <rmh@aybabtu.com>
40905
40906 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
40907 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
40908 variables.
40909 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
40910 values in grub_ofconsole_normal_color and
40911 grub_ofconsole_highlight_color (they're not directly related to
40912 background and foreground).
40913 (grub_ofconsole_setcolorstate): Extract background and foreground
40914 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
40915
0aac2f79 409162008-06-17 Robert Millan <rmh@aybabtu.com>
40917
40918 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
40919 /boot/grub for the check in last commit, not /boot (they could be
40920 different partitions).
40921
3cca7ef3 409222008-06-16 Robert Millan <rmh@aybabtu.com>
40923
40924 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
40925 asked to setup access for the same partition that provides /boot,
40926 don't bother using UUIDs since our root already has the value we
40927 want.
40928
347396d8 409292008-06-16 Robert Millan <rmh@aybabtu.com>
40930
40931 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
40932 I2O devices.
40933 Patch from Sven Mueller <sven@debian.org>.
40934
991477f8 409352008-06-16 Robert Millan <rmh@aybabtu.com>
40936
40937 * util/update-grub.in: Check for $EUID instead of $UID.
40938 Reported by Vincent Zweije.
40939
d31a32a1 409402008-06-16 Bean <bean123ch@gmail.com>
40941
fe987087 40942 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 40943 (grub_ext2_read_block): Likewise.
40944 (grub_ext2_read_inode): Likewise.
40945 (grub_ext2_mount): Likewise.
40946 (grub_ext2_close): Likewise.
40947 (grub_ext3_get_journal): Removed.
40948
fe987087 40949 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 40950 (grub_reiserfs_read_symlink): Likewise.
40951 (grub_reiserfs_mount): Likewise.
40952 (grub_reiserfs_open): Likewise.
40953 (grub_reiserfs_read): Likewise.
40954 (grub_reiserfs_close): Likewise.
40955 (grub_reiserfs_get_journal): Removed.
40956
40957 * fs/fshelp.c (grub_fshelp_read): Removed.
40958 (grub_fshelp_map_block): Likewise.
40959
40960 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
40961 (grub_fshelp_journal): Likewise.
40962 (grub_fshelp_read): Likewise.
40963 (grub_fshelp_map_block): Likewise.
40964
3540a760 409652008-06-16 Pavel Roskin <proski@gnu.org>
40966
40967 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
40968 floating point anymore.
40969 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
40970
95614c84 409712008-06-15 Pavel Roskin <proski@gnu.org>
40972
40973 * commands/ls.c (grub_ls_list_files): Use integer calculations
40974 for human readable format, avoid floating point use.
40975 * kern/misc.c (grub_ftoa): Remove.
40976 (grub_vsprintf): Remove floating point support.
40977
50465dd6 409782008-06-15 Robert Millan <rmh@aybabtu.com>
40979
fe6b695a 40980 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 40981 devices.
40982 Reported by Max Vozeler.
40983
a9207284 409842008-06-15 Robert Millan <rmh@aybabtu.com>
40985
40986 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
40987 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
40988 skipped later.
40989 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
40990 the beginning of the prefix.
40991
40992 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
40993 It is assumed that if we have a memdisk, grub-mkimage has set
40994 grub_prefix to include the "(memdisk)" drive in it.
40995
a7cbd45a 409962008-06-15 Robert Millan <rmh@aybabtu.com>
40997
40998 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
40999 Initialize keyboard controller after registering the terminal, so that
41000 grub_printf() can be called from grub_keyboard_controller_init().
41001
21cf716a 410022008-06-15 Robert Millan <rmh@aybabtu.com>
41003
41004 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
41005 extent-btree which is written as big endian on disk.
41006 Reported by Alain Greppin <al@chilibi.org>.
41007
23a64d8e 410082008-06-14 Robert Millan <rmh@aybabtu.com>
41009
41010 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
41011 * util/i386/pc/grub-install.in (modules): Likewise.
41012
d687651c 410132008-06-13 Pavel Roskin <proski@gnu.org>
41014
41015 * commands/ls.c (grub_ls_list_files): Fix format warnings.
41016
dfe9ddd4 410172008-06-13 Bean <bean123ch@gmail.com>
41018
41019 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
41020
41021 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
41022
41023 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
41024 to indicate sparse block.
41025
16ae7781 410262008-06-12 Pavel Roskin <proski@gnu.org>
41027
e6d1a308 41028 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
41029 number, grub_fshelp_read() does it for us.
41030
16ae7781 41031 * fs/fshelp.c (grub_fshelp_read): New function. Implement
41032 linear disk read with journal translation.
41033 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
41034 * include/grub/fshelp.h: Declare grub_fshelp_read().
41035
40fd3a2b 410362008-06-09 Pavel Roskin <proski@gnu.org>
41037
41038 * fs/minix.c (grub_minix_mount): Handle error reading
41039 superblock.
41040
f5679726 410412008-06-08 Robert Millan <rmh@aybabtu.com>
41042
41043 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
41044 don't append the RAID prefix afterwards.
41045 Reported by Clint Adams.
41046
ce525529 410472008-06-08 Robert Millan <rmh@aybabtu.com>
41048
41049 Based on description from Pavel:
41050 * kern/disk.c (grub_disk_check_range): Rename to ...
41051 (grub_disk_adjust_range): ... this. Add a comment explaining the
41052 tasks performed by this function.
41053
ad4936a0 410542008-06-08 Robert Millan <rmh@aybabtu.com>
41055
41056 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
41057 `num_serial' (for consistency with other variables).
41058 (struct grub_ntfs_data): Add `uuid' member.
41059 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
41060 (grub_ntfs_uuid): New function.
41061 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
41062
dc20b0f9 410632008-06-07 Pavel Roskin <proski@gnu.org>
41064
41065 * util/biosdisk.c (open_device): Revert last change to the
41066 function, it broke installation. The sector needs to be
41067 different dependent on which device is opened.
41068
c5e3cfba 410692008-06-06 Robert Millan <rmh@aybabtu.com>
41070
41071 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
41072 rest of GRUB, and breakage doesn't happen if its value were modified.
41073
41074 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
41075 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
41076 a constant (same value).
41077 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
41078 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
41079
26a1f8c4 410802008-06-06 Robert Millan <rmh@aybabtu.com>
41081
41082 * util/biosdisk.c (open_device): Do not modify sector offset when
41083 accessing a partition. kern/disk.c already handles this for us.
41084
25d6b327 410852008-06-06 Robert Millan <rmh@aybabtu.com>
41086
41087 * util/grub-emu.c (grub_machine_init): Move code in this function from
41088 here ...
41089 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
41090 segfault in case grub_printf() is called).
41091
41092 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
41093 grub_probe. Update all users not to explicitly add it again.
41094 (grub_device): New variable; contains corresponding device for grubdir.
41095 (fs_module, partmap_module, devabstraction_module): Pass
41096 `--device ${grub_device}' to grub_probe to avoid traversing /dev
41097 every time.
41098
9ece62fb 410992008-06-05 Robert Millan <rmh@aybabtu.com>
41100
41101 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
41102 is found, print it (same layout as with labels).
41103
1ad36d37 411042008-06-04 Robert Millan <rmh@aybabtu.com>
41105
41106 * util/biosdisk.c (get_drive): Rename to ...
41107 (find_grub_drive): ... this. Update all users.
41108
41109 (get_os_disk): Rename to ...
41110 (convert_system_partition_to_system_disk): ... this. Update all users.
41111
41112 (find_drive): Rename to ...
41113 (find_system_device): ... this. Update all users.
41114
e6a30859 411152008-06-04 Robert Millan <rmh@aybabtu.com>
41116
41117 * util/biosdisk.c (get_os_disk): Handle IDA devices.
41118 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41119 (make_device_map): Likewise.
41120
00c108a4 411212008-06-01 Robert Millan <rmh@aybabtu.com>
41122
41123 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
41124 before dereferencing it.
41125
41126 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
41127 union with fat12/fat16-specific ones. Add some new fields, including
41128 `num_serial' for both versions.
41129 (struct grub_fat_data): Add `uuid' member.
41130 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
41131 names. Initialize `data->uuid' using `num_serial'.
41132 (grub_fat_uuid): New function.
41133 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
41134
41135 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
41136 (grub_reiserfs_uuid): New function.
41137 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
41138 member.
41139
41140 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
41141 (grub_xfs_uuid): New function.
41142 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
41143
1385c5bb 411442008-06-01 Robert Millan <rmh@aybabtu.com>
41145
41146 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
41147 code that is backward compatible with pre-uuid search command.
41148
c682dfd7 411492008-05-31 Robert Millan <rmh@aybabtu.com>
41150
41151 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
41152 floppies after everything else, to ensure floppy drive isn't accessed
41153 unnecessarily (patch from Bean).
41154
b7db5d47 411552008-05-31 Robert Millan <rmh@aybabtu.com>
41156
41157 * commands/search.c (search_label, search_fs_uuid, search_file): Do
41158 not print device names when we were asked to set a variable.
41159
6e037aa9 411602008-05-31 Robert Millan <rmh@aybabtu.com>
41161
41162 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
41163 using "cursor-on" and "cursor-off" commands (understood at least by
41164 the Open Firmware flavour on OLPC).
41165
41305bc8 411662008-05-31 Michael Gorven <michael@gorven.za.net>
41167
41168 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
41169 on and off sequences.
41170
69ba137e 411712008-05-31 Robert Millan <rmh@aybabtu.com>
41172
41173 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
41174 * util/update-grub.in: Likewise.
41175
520ae21b 411762008-05-30 Pavel Roskin <proski@gnu.org>
41177
41178 * util/biosdisk.c (linux_find_partition): Simplify logic and
41179 make the code more universal. Keep special processing for
41180 devfs, but use a simple rule for all other devices. If the
41181 device ends with a number, append 'p' and the partition number.
41182 Otherwise, append only the partition number.
41183
5786569b 411842008-05-30 Robert Millan <rmh@aybabtu.com>
41185
41186 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
41187 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
41188 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
41189 the `root' parameter to Linux.
41190
51500452 411912008-05-30 Robert Millan <rmh@aybabtu.com>
41192
41193 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
41194 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
41195 --fs_uuid with --fs-uuid.
41196 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
41197 all filesystems support them).
41198
811d3878 411992008-05-30 Robert Millan <rmh@aybabtu.com>
41200
41201 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 41202 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 41203
cab63c95 412042008-05-30 Robert Millan <rmh@aybabtu.com>
41205
41206 * util/grub.d/00_header.in: Remove obsolete comment referencing
41207 convert_system_path_to_grub_path().
41208 * util/update-grub.in: Likewise.
41209 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
41210 (convert_system_path_to_grub_path): Add a warning message explaining
41211 that this function is deprecated. Rely on is_path_readable_by_grub()
41212 for the readability checks.
41213 (font_path): Use is_path_readable_by_grub() for the readability
41214 check rather than convert_system_path_to_grub_path().
41215
972e2f7a 412162008-05-30 Robert Millan <rmh@aybabtu.com>
41217
41218 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
41219 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
41220 converting it first.
41221 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
41222 grub.cfg for access to font file, and afterwards call it again to set
41223 the root device.
41224
62191274 412252008-05-30 Robert Millan <rmh@aybabtu.com>
41226
41227 * commands/search.c (options): Add --fs_uuid option.
41228 (search_fs_uuid): New function.
41229 (grub_cmd_search): Fix --set argument passing.
41230 Use search_fs_uuid() when requested via --fs_uuid.
41231 (grub_search_init): Update help message.
41232 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
41233 and redeclare it as an array of 16-bit words.
41234 (grub_ext2_uuid): New function.
41235 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
41236 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
41237 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
41238 (GRUB_DEVICE_BOOT_UUID): New variables.
41239 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
41240 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
41241 whenever possible.
41242 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
41243 just assume `root' variable has the right value.
41244 * util/grub.d/10_linux.in: Likewise.
41245 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
41246 via PRINT_FS_UUID.
41247 (main): Recognise `-t fs_uuid' argument.
41248
01b73ec8 412492008-05-30 Robert Millan <rmh@aybabtu.com>
41250
41251 * util/biosdisk.c (map): Redefine structure to hold information
41252 about GRUB drive name.
fe6b695a 41253 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 41254 drive names.
41255 (call_hook): Remove.
41256 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
41257 member. Assume drive has partitions.
41258 (grub_util_biosdisk_open): Access device names via `.device' struct
41259 member.
41260 (open_device): Likewise.
41261 (find_drive): Likewise.
41262 (read_device_map): Adjust map[] usage to match the new struct
41263 definition. Don't check for duplicates (still possible, but not cheap
41264 anymore).
41265 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
41266 (make_device_name): Remove assumption of BIOS-like drive names.
41267
22f16596 412682008-05-30 Pavel Roskin <proski@gnu.org>
41269
41270 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
41271 compiling execute.c doesn't need grub_script.tab.h anymore.
41272 (normal/command.c_DEPENDENCIES): Likewise.
41273 (normal/function.c_DEPENDENCIES): Likewise.
41274 * conf/i386-ieee1275.rmk: Likewise.
41275 * conf/i386-linuxbios.rmk: Likewise.
41276 * conf/i386-pc.rmk: Likewise.
41277 * conf/powerpc-ieee1275.rmk: Likewise.
41278 * conf/sparc64-ieee1275.rmk: Likewise.
41279
528ad8f2 412802008-05-29 Pavel Roskin <proski@gnu.org>
41281
d1dff95d 41282 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
41283 when scanning metadata for volume group name.
41284
528ad8f2 41285 * include/grub/script.h: Don't include grub_script.tab.h. It's
41286 a generated file, which may only be included from the files with
41287 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
41288 use union YYSTYPE, as the later allows forward declaration.
41289 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
41290
47248e08 412912008-05-29 Robert Millan <rmh@aybabtu.com>
41292
41293 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
41294 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
41295 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
41296 (grub_console_checkkey): Add grub_dprintf() call to report unknown
41297 scan codes.
41298
ee632529 412992008-05-29 Robert Millan <rmh@aybabtu.com>
41300
41301 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
41302 control key combinations.
41303
eee96e08 413042008-05-29 Robert Millan <rmh@aybabtu.com>
41305
41306 * util/powerpc/ieee1275/grub-install.in: Move from here ...
41307 * util/ieee1275/grub-install.in: ... to here.
41308 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
41309 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
41310 (grub_install_SOURCES): Likewise.
41311
da9a6a94 413122008-05-29 Robert Millan <rmh@aybabtu.com>
41313
41314 * fs/affs.c: Update copyright year.
41315 * fs/ext2.c: Likewise.
41316 * fs/fshelp.c: Likewise.
41317 * fs/hfsplus.c: Likewise.
41318 * fs/ntfs.c: Likewise.
41319 * fs/xfs.c: Likewise.
41320 * include/grub/fshelp.h: Likewise.
41321 * util/grub-mkdevicemap.c: Likewise.
41322
12e65f3a 413232008-05-28 Robert Millan <rmh@aybabtu.com>
41324
41325 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
41326 might need to be fatfs to support some firmware implementations
41327 (e.g. OFW or EFI).
41328
23023641 413292008-05-28 Robert Millan <rmh@aybabtu.com>
41330
41331 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
41332 devices.
41333 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41334 (make_device_map): Likewise.
41335
887d2619 413362008-05-20 Bean <bean123ch@gmail.com>
41337
41338 * fs/fshelp.c (grub_fshelp_map_block): New function.
41339 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
41340 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
41341
41342 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
41343 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
41344 (grub_fshelp_journal): New structure.
41345 (grub_fshelp_map_block): New function prototype.
41346 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
41347 (grub_fshelp_map_block): Likewise.
41348
41349 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
41350 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
41351 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
41352 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
41353 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
41354 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
41355 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
41356 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
41357 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
41358 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
41359 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
41360 (grub_ext2_sblock): New members for journal support.
41361 (grub_ext3_journal_header): New structure.
41362 (grub_ext3_journal_revoke_header): Likewise.
41363 (grub_ext3_journal_block_tag): Likewise.
41364 (grub_ext3_journal_sblock): Likewise.
41365 (grub_fshelp_node): New members logfile and journal.
41366 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
41367 grub_fshelp_map_block to get real block number.
41368 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
41369 number.
41370 (grub_ext2_read_inode): Likewise.
41371 (grub_ext3_get_journal): New function.
41372 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
41373 (grub_ext2_close): Release memory used by journal.
41374
41375 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
41376 (REISERFS_MAGIC_DESC_BLOCK): New macro.
41377 (grub_reiserfs_transaction_header): Renamed to
41378 grub_reiserfs_description_block, replace field data with real_blocks.
41379 (grub_reiserfs_commit_block): New structure.
41380 (grub_reiserfs_data): New member journal.
41381 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
41382 number.
41383 (grub_reiserfs_read_symlink): Likewise.
41384 (grub_reiserfs_iterate_dir): Likewise.
41385 (grub_reiserfs_open): Likewise.
41386 (grub_reiserfs_read): Likewise.
41387 (grub_reiserfs_get_journal): New function.
41388 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
41389 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
41390 using grub_reiserfs_get_journal.
41391 (grub_reiserfs_close): Release memory used by journal.
41392
41393 * fs/affs.c (grub_affs_read_block): Change block type to
41394 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
41395
41396 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
41397
41398 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
41399
41400 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
41401
41402 * fs/udf.c (grub_udf_read_block): Change block type to
41403 grub_disk_addr_t. Use type cast to avoid warning.
41404
41405 * fs/xfs.c (grub_xfs_read_block): Likewise.
41406
b7c6bed5 414072008-05-16 Christian Franke <franke@computer.org>
41408
41409 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
41410 to ensure that break with ESC will always work.
41411 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
41412 Remove ESC from keyboard queue.
41413
eedf167f 414142008-05-16 Christian Franke <franke@computer.org>
41415
41416 * util/biosdisk.c: [__CYGWIN__] Add includes.
41417 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
41418 (get_os_disk): Move variable declarations to OS specific
41419 parts to avoid warning.
41420 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
41421 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
41422 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
41423 Cygwin.
41424 * util/getroot.c: [__CYGWIN__] Add includes.
41425 (strip_extra_slashes): Fix "/" case.
41426 [__CYGWIN__] (get_win32_path): New function.
41427 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
41428 [__CYGWIN__] (find_root_device): Disable.
41429 [__CYGWIN__] (get_bootsec_serial): New function.
41430 [__CYGWIN__] (find_cygwin_root_device): Likewise.
41431 [__linux__] (grub_guess_root_device): Add early returns to simplify
41432 structure.
41433 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
41434 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
41435 check for Linux only.
41436
a079699e 414372008-05-15 Bean <bean123ch@gmail.com>
41438
41439 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
41440 keyboard hang problem in apple's intel mac.
41441
1cf4059a 414422008-05-09 Robert Millan <rmh@aybabtu.com>
41443
41444 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
41445 devices.
41446 * util/grub-mkdevicemap.c (get_virtio_disk_name)
41447 (make_device_map): Likewise.
41448 Reported by Aurelien Jarno <aurel32@debian.org>
41449
ed759390 414502008-05-07 Ian Campbell <ijc@hellion.org.uk>
41451
41452 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
41453 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
41454 (make_device_map): Output entries for xvd type disks.
41455
b56c4eaa 414562008-05-07 Robert Millan <rmh@aybabtu.com>
41457
41458 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
41459 devices.
41460 * util/grub-mkdevicemap.c (get_cciss_disk_name)
41461 (make_device_map): Likewise.
41462 Reported by Roland Dreier <rdreier@cisco.com>
41463
7f8866ed 414642008-05-07 Robert Millan <rmh@aybabtu.com>
41465
41466 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
41467 grub_strstr() call. Correct a few mistakes in failure path handling.
41468
b0346e0f 414692008-05-06 Robert Millan <rmh@aybabtu.com>
41470
41471 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
41472 Do not print a trailing slash (therefore, the root directory is an
41473 empty string).
41474 (convert_system_path_to_grub_path): Do not remove trailing slash
41475 from make_system_path_relative_to_its_root() output.
41476
41477 * util/i386/pc/grub-install.in: Add trailing slash to output from
41478 make_system_path_relative_to_its_root().
41479
6cf12cbd 414802008-05-06 Robert Millan <rmh@aybabtu.com>
41481
41482 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
41483 ensures that output lines aren't intermangled with those sent to
41484 stderr (via grub_util_info()).
41485 * util/grub-probe.c (grub_refresh): Likewise.
41486 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
41487
0fbb3117 414882008-05-05 Christian Franke <franke@computer.org>
41489
41490 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
41491 Add Cygwin device names.
41492 (get_ide_disk_name) [__CYGWIN__]: Likewise.
41493 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
41494 (check_device): Return error instead of success on empty name.
41495 (make_device_map): Move label inside linux specific code to
41496 prevent compiler warning.
41497
8124cdb7 414982008-04-30 Robert Millan <rmh@aybabtu.com>
41499
41500 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
41501 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
41502 first boot option.
41503 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
41504
094c01d0 415052008-04-29 Robert Millan <rmh@aybabtu.com>
41506
41507 * docs/grub.cfg: New file (example GRUB configuration).
41508
f4b1fc02 415092008-04-26 Robert Millan <rmh@aybabtu.com>
41510
329ce2a5 41511 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
41512 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
41513 and `disk/ieee1275/nand.c'.
f4b1fc02 41514
25f16ec1 415152008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 41516
25f16ec1 41517 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
41518 i386-linuxbios.
41519
41520 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
41521 change the buffer size to 4096 for cdrom device.
41522
41523 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
41524 and nand.mod.
41525 (_linux_mod_SOURCES): New variable.
41526 (_linux_mod_CFLAGS): Likewise.
41527 (_linux_mod_LDFLAGS): Likewise.
41528 (linux_mod_SOURCES): Likewise.
41529 (linux_mod_CFLAGS): Likewise.
41530 (linux_mod_LDFLAGS): Likewise.
41531 (nand_mod_SOURCES): Likewise.
41532 (nand_mod_CFLAGS): Likewise.
41533 (nand_mod_LDFLAGS): Likewise.
41534
41535 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
41536 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
41537 type property. (nand device in olpc don't have this property)
41538
41539 * include/grub/disk.h (grub_disk_dev_id): New macro
41540 GRUB_DISK_DEVICE_NAND_ID.
41541
41542 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
41543 function prototype.
41544 (grub_rescue_cmd_initrd): Likewise.
41545
41546 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
41547 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
41548 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 41549
25f16ec1 41550 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
41551 GRUB_MACHINE_IEEE1275 is defined.
41552
41553 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
41554 Use NESTED_FUNC_ATTR attribute on the hook parameter.
41555
41556 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
41557 on nested function heap_init.
41558 (grub_upper_mem): New variable for i386-ieee1275.
41559 (grub_get_extended_memory): New function for i386-ieee1275.
41560 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
41561
41562 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
41563 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
41564 property.
f19dbdb7 41565
25f16ec1 41566 * loader/i386/ieee1275/linux.c: New file.
41567
41568 * loader/i386/ieee1275/linux_normal.c: New file.
41569
41570 * disk/ieee1275/nand.c: New file.
41571
e89d61e9 415722008-04-18 Thomas Schwinge <tschwinge@gnu.org>
41573
41574 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
41575 value.
41576 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
41577
602566f6 415782008-04-18 Robert Millan <rmh@aybabtu.com>
41579
41580 Restructures early code path on ieee1275 to unify grub_main() as
41581 the first C function that is executed in every platform.
41582
41583 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
41584 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
41585 cmain().
41586 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
41587 * kern/ieee1275/cmain.c (cmain): Rename to ...
41588 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
41589 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
41590 at the beginning.
41591
57490c2b 415922008-04-18 Robert Millan <rmh@aybabtu.com>
41593
41594 * util/update-grub.in: Fix syntax error when setting
41595 `GRUB_PRELOAD_MODULES'.
41596 Reported by Stephane Chazelas <stephane@artesyncp.com>
41597
1977517d 415982008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
41599
41600 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
41601 section into account, newer toolchains generate unique build ids
41602 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 41603 we want build ids to be preserved
1977517d 41604 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
41605 far from other sections don't cause the raw binary images grow
41606 size
41607
bfb1f1a2 416082008-04-15 Robert Millan <rmh@aybabtu.com>
41609
41610 * disk/lvm.c: Update copyright year.
41611 * kern/misc.c: Likewise.
41612
01979850 416132008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41614
41615 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 41616 there is no memory left for physical volume name.
01979850 41617
0a1150e2 416182008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41619
41620 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
41621 volume name mapping to support bigger than 9 character names properly.
41622
82ead3fe 416232008-04-13 Robert Millan <rmh@aybabtu.com>
41624
41625 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
41626 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
41627
e54a72f5 416282008-04-13 Christian Franke <franke@computer.org>
41629
41630 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
41631 to create a floppy emulation boot CD when non emulation mode
41632 does not work.
41633 Enable Joliet CD filesystem extension.
41634
9fe86034 416352008-04-13 Robert Millan <rmh@aybabtu.com>
41636
41637 * kern/misc.c (grub_strncat): Fix off-by-one error.
41638 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
41639
41640 * kern/env.c (grub_env_context_close): Clear current context, not
41641 previous one.
41642 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
41643
41644 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
41645
7ceeee39 416462008-04-13 Robert Millan <rmh@aybabtu.com>
41647
41648 Improve robustness when handling LVM.
41649
41650 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 41651 (and leave `*p' unmodified).
7ceeee39 41652 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
41653 through it.
41654 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
41655 iterating through it.
41656 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
41657 through it.
fe6b695a 41658 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 41659 when due) on each grub_lvm_getvalue() or grub_strstr() call.
41660 Don't assume `vg->pvs != NULL' when iterating through it.
41661
58cd3d85 416622008-04-13 Robert Millan <rmh@aybabtu.com>
41663
41664 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
41665 * genmk.rb (partmap): New variable.
41666 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
41667 (#{partmap}): New target rule.
41668 * genpartmaplist.sh: New file.
41669 * Makefile.in (pkglib_DATA): Add partmap.lst.
41670 (partmap.lst): New target rule.
41671 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
41672 modules (including all partition maps), instead of preloading them.
41673
78b51059 416742007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
41675
41676 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
41677 `linux-boot-prober' (if installed) to detect other operating
41678 systems which are installed on the computer and add them to
41679 the boot menu.
41680 * conf/common.rmk: Build and install 30_os-prober.
41681
a91627b4 416822008-04-12 Robert Millan <rmh@aybabtu.com>
41683
41684 * kern/powerpc/ieee1275/init.c: Move from here ...
41685 * kern/ieee1275/init.c: ... to here. Update all users.
41686
41687 * kern/powerpc/ieee1275/cmain.c: Move from here ...
41688 * kern/ieee1275/cmain.c: ... to here. Update all users.
41689
41690 * kern/powerpc/ieee1275/openfw.c: Move from here ...
41691 * kern/ieee1275/openfw.c: ... to here. Update all users.
41692
41693 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
41694 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
41695
322562ea 416962008-04-10 Pavel Roskin <proski@gnu.org>
41697
41698 * configure.ac: Always use "_cv_" in cache variables for
41699 compatibility with Autoconf 2.62.
41700
a02a73c5 417012008-04-07 Robert Millan <rmh@aybabtu.com>
41702
41703 Revert grub/machine/init.h addition by Pavel (since it breaks on
41704 i386-ieee1275 and others):
41705 * util/i386/pc/misc.c: Remove grub/machine/init.h.
41706 * util/powerpc/ieee1275/misc.c: Likewise.
41707
25c024b1 417082008-04-07 Robert Millan <rmh@aybabtu.com>
41709
41710 * util/grub-probe.c (probe): Improve error message.
41711
3cbd2f98 417122008-04-07 Robert Millan <rmh@aybabtu.com>
41713
41714 * util/biosdisk.c (read_device_map): Skip devices that don't exist
41715 (this prevents the presence of a bogus entry from ruining the whole
41716 thing).
41717
87a297bf 417182008-04-06 Pavel Roskin <proski@gnu.org>
41719
36747a62 41720 * util/biosdisk.c: Include grub/util/biosdisk.h.
41721 * util/grub-fstest.c (execute_command): Make static.
41722 * util/grub-mkdevicemap.c (check_device): Likewise.
41723 * util/i386/pc/misc.c: Include grub/machine/init.h.
41724 * util/powerpc/ieee1275/misc.c: Likewise.
41725 * util/lvm.c: Include grub/util/lvm.h.
41726 * util/misc.c: Include grub/kernel.h, grub/misc.h and
41727 grub/cache.h.
41728 * util/raid.c: Include grub/util/raid.h.
41729 (grub_util_getdiskname): Make static.
41730
87a297bf 41731 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
41732 grub_hostfs_fini(), as they are called from grub_init_all() and
41733 grub_fini_all() respectively. This fixes an infinite loop in
41734 grub-fstest due to double registration of hostfs.
41735 Reported by Christian Franke <Christian.Franke@t-online.de>
41736
f6ce7629 417372008-04-05 Pavel Roskin <proski@gnu.org>
41738
41739 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
41740 all 8 functions. Otherwise, probe function 0 only.
41741
070e49e4 417422008-04-04 Pavel Roskin <proski@gnu.org>
41743
8b088a4c 41744 * commands/lspci.c (grub_lspci_iter): Print the bus number
41745 correctly.
41746
4f657021 41747 * commands/lspci.c (grub_pci_classes): Fix typos.
41748 (grub_lspci_iter): Don't print func twice. Print vendor ID
41749 before device ID, as it's normally done.
41750
070e49e4 41751 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41752 Fix signedness warnings.
41753 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
41754 Likewise.
41755 * util/ieee1275/get_disk_name.c: Include config.h so that
41756 _GNU_SOURCE is defined and getline() is declared. Mark an
41757 unused argument as such. Fix a signedness warning.
41758
ba7328dc 417592008-04-02 Pavel Roskin <proski@gnu.org>
41760
26887f22 41761 * genkernsyms.sh.in: Use more robust assignments for CC and
41762 srcdir. Quote srcdir.
41763 * gensymlist.sh.in: Likewise. Assert at the compile time that
41764 the symbol table is not empty.
41765
ba7328dc 41766 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
41767 * fs/cpio.c (grub_cpio_read): Likewise.
41768
0f582c6b 417692008-04-01 Pavel Roskin <proski@gnu.org>
41770
4b6e1995 41771 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
41772 * disk/host.c (grub_host_open): Likewise.
41773 * disk/loopback.c (grub_loopback_open): Likewise.
41774 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
41775 disk->id as in disk/host.c, not a multi-character constant.
41776
828a2768 41777 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
41778 later is obsolete, potentially dangerous and sets a bad example.
41779 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
41780 * util/misc.c (grub_util_get_image_size): Likewise.
41781
2bb4fb47 41782 * disk/loopback.c (options): Improve help for "--partitions".
41783
0f582c6b 41784 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
41785 options to align them with the short options, e.g. "echo -e".
41786
a33224e0 417872008-03-31 Bean <bean123ch@gmail.com>
41788
41789 * video/reader/png.c (grub_png_data): New member is_16bit and
41790 image_data.
41791 (grub_png_decode_image_header): Detect 16 bit png image.
41792 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
41793 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
41794 (grub_video_reader_png): Release memory occupied by image_data.
41795
41796 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
41797 4096 bytes.
41798 (grub_nfs_mount): Skip the test for sector per cluster.
41799
41800 * include/grub/ntfs.h (MAX_SPC): Removed.
41801
86cb4f54 418022008-03-31 Bean <bean123ch@gmail.com>
41803
41804 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
41805 (grub_probe_SOURCES): Add fs/afs.c.
41806 (grub_fstest_SOURCES): Likewise.
41807 (afs_mod_SOURCES): New variable.
41808 (afs_mod_CFLAGS): Likewise.
41809 (afs_mod_LDFLAGS): Likewise.
41810
41811 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
41812 (grub_emu_SOURCES): Likewise.
41813
41814 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41815
41816 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41817
41818 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41819
41820 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41821
41822 * fs/afs.c: New file.
41823
17c74c21 418242008-03-30 Pavel Roskin <proski@gnu.org>
41825
4cb68e89 41826 * disk/host.c: Include grub/misc.h to fix a warning.
41827 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
41828 warnings about implicit declarations.
41829
8790bb04 41830 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
41831 variable.
41832 * include/grub/i386/loader.h: Change declaration of
41833 grub_linux_boot() to match what grub_loader_set() expects.
41834 * util/getroot.c (grub_guess_root_device): Return const char* to
41835 fix a warning.
41836 * util/grub-probe.c (probe): Fix a warning about uninitialized
41837 abstraction_name variable.
41838 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
41839 second argument as unused to fix a warning.
41840
9a3f3296 41841 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
41842 missing grub_error() call.
41843
0ecef90d 41844 * util/update-grub_lib.in: Define datarootdir, since Autoconf
41845 2.60 and newer uses it to define datadir.
41846
0bf6d401 41847 * commands/sleep.c: Fix warning about implicit declaration.
41848 * disk/memdisk.c: Likewise.
41849 * loader/aout.c: Likewise.
41850 * loader/i386/bsd_normal.c: Likewise.
41851 * util/grub-probe.c: Likewise.
41852
7cdacf97 41853 * commands/i386/cpuid.c (has_longmode): Make static.
41854 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
41855 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
41856
17c74c21 41857 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
41858 GDT. This is more robust, as %ds can change.
41859 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
41860 calling real_to_prot().
41861 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
41862
80a3e68b 418632008-03-28 Pavel Roskin <proski@gnu.org>
41864
41865 * kern/i386/pc/startup.S: Assert that uncompressed functions
41866 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
41867 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
41868 code, as they push parts of the code (error handlers) beyond
41869 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
41870 code as correctness and size.
41871
77bcd272 418722008-03-28 Pavel Roskin <proski@gnu.org>
41873
41874 * kern/i386/pc/startup.S
41875 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
41876 data block address to the real mode, keep offset minimal. This
41877 works around a bug in AWARD BIOS on old Athlon systems, which
41878 makes CD detection hang.
41879
c5dfd43b 418802008-03-26 Pavel Roskin <proski@gnu.org>
41881
41882 * normal/color.c (grub_parse_color_name_pair): Make `name' a
41883 const.
41884 * include/grub/normal.h: Add grub_parse_color_name_pair()
41885 declaration.
41886
bf962df2 418872008-03-24 Bean <bean123ch@gmail.com>
41888
41889 * disk/i386/pc/biosdisk.c (cd_start): Removed.
41890 (cd_count): Removed.
41891 (cd_drive): New variable.
41892 (grub_biosdisk_get_drive): Don't check for (cdN) device.
41893 (grub_biosdisk_call_hook): Likewise.
41894 (grub_biosdisk_iterate): Change cdrom detection method.
41895 (grub_biosdisk_open): Replace cd_start with cd_drive.
41896 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
41897 detect cdrom device.
41898
41899 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
41900 Removed.
41901 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
41902 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
41903 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
41904 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
41905 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
41906 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
41907 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
41908 (grub_biosdisk_cdrp): New structure.
41909 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
41910
41911 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
41912
41913 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
41914 device.
41915
41916 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
41917 New function.
41918
68e7fc7a 419192008-03-20 Robert Millan <rmh@aybabtu.com>
41920
41921 Remove 2 TiB limit in ata.mod.
41922 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
41923 (grub_ata_dumpinfo): Print sector count with 0x%llx.
41924 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
41925 grub_uint64_t instead of grub_uint32_t.
41926
38ad2cf5 419272008-03-05 Bean <bean123ch@gmail.com>
41928
41929 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
41930 (grub_multiboot): Set boot device.
41931
41932 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
41933
2b89344e 419342008-03-02 Bean <bean123ch@gmail.com>
41935
41936 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
41937 symlink_buffer.
41938
87a95d1f 419392008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
41940
41941 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
41942 texinfo.tex.
41943
41944 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
41945 modified.
41946
41947 * docs/fdl.texi: New file.
f19dbdb7 41948
87a95d1f 41949 * docs/mdate-sh: New file. Copied from gnulib.
41950 * docs/texinfo.tex: Likewise.
41951
41952 * config.guess: Updated from gnulib.
41953 * install-sh: Likewise.
41954
7dc15d8e 419552008-02-28 Robert Millan <rmh@aybabtu.com>
41956
41957 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
41958 (aout_mod_SOURCES): New variable.
41959 (aout_mod_CFLAGS): Likewise.
41960 (aout_mod_LDFLAGS): Likewise.
41961
41962 * conf/i386-ieee1275.rmk: Likewise.
41963
b00ab696 419642008-02-28 Robert Millan <rmh@aybabtu.com>
41965
41966 * util/update-grub.in: Reorganise terminal validity check. Accept
41967 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
41968 Based on suggestion by Franklin PIAT.
41969
79ca2d78 419702008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
41971
41972 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
41973 function.
41974 * util/getroot.c (grub_util_check_block_device): New function that
41975 returns the given argument if it is a block device and returns NULL else.
41976 * util/grub-probe.c (argument_is_device): New variable.
41977 (probe): Promote device_name from a variable to an argument. Receive
41978 device_name from grub_util_check_block_device() if path is NULL and from
41979 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 41980 (options): Introduce new parameter '-d, --device'.
79ca2d78 41981 (main): Add description of the new parameter to the help screen.
41982 Rename path variable to argument. Set argument_is_device if the '-d'
41983 option is given. Pass argument to probe() depending on
41984 argument_is_device.
41985
0d16e571 419862008-02-24 Bean <bean123ch@gmail.com>
41987
41988 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
41989 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
41990 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
41991 (GRUB_ISO9660_VOLDESC_PART): Likewise.
41992 (GRUB_ISO9660_VOLDESC_END): Likewise.
41993 (grub_iso9660_primary_voldesc): New member escape.
41994 (grub_iso9660_data): New member joliet.
41995 (grub_iso9660_convert_string): New function.
41996 (grub_iso9660_mount): Detect joliet extension.
41997 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
41998 (grub_iso9660_iso9660_label): Likewise.
41999
42000 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
42001 (grub_setup_SOURCES): Add fs/udf.c.
42002 (grub_fstest_SOURCES): Likewise.
42003 (udf_mod_SOURCES): New variable.
42004 (udf_mod_CFLAGS): Likewise.
42005 (udf_mod_LDFLAGS): Likewise.
42006
42007 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
42008 (grub_emu_SOURCES): Likewise.
42009
42010 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42011
42012 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42013
42014 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42015
42016 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42017
42018 * fs/udf.c: New file.
42019
8a594a17 420202008-02-24 Robert Millan <rmh@aybabtu.com>
42021
42022 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
42023 (normal/lexer.c_DEPENDENCIES): New variables.
42024 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42025 (normal/lexer.c_DEPENDENCIES): Likewise.
42026 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
42027 (normal/lexer.c_DEPENDENCIES): Likewise.
42028 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
42029 (normal/lexer.c_DEPENDENCIES): Likewise.
42030 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42031 (normal/lexer.c_DEPENDENCIES): Likewise.
42032 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42033 (normal/lexer.c_DEPENDENCIES): Likewise.
42034
2dc33c03 420352008-02-23 Robert Millan <rmh@aybabtu.com>
42036
42037 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
42038 since they were intended to be in hex. This didn't break previously
42039 because of a bug in gpt_partition_map_iterate() (see below).
42040
42041 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
42042 when checking the validity of GPT header.
42043 Remove `partno', since it always provides the same information as `i'.
42044
f6f4cfb0 420452008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
42046
42047 * include/grub/efi/time.h: Fix a wrong comment.
42048
79ff665f 420492008-02-19 Pavel Roskin <proski@gnu.org>
42050
42051 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
42052 message.
42053
d38e24c2 420542008-02-19 Bean <bean123ch@gmail.com>
42055
42056 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
42057 (aout_mod_SOURCES): New variable.
42058 (aout_mod_CFLAGS): Likewise.
42059 (aout_mod_LDFLAGS): Likewise.
42060 (_bsd_mod_SOURCES): New variable.
42061 (_bsd_mod_CFLAGS): Likewise.
42062 (_bsd_mod_LDFLAGS): Likewise.
42063 (bsd_mod_SOURCES): New variable.
42064 (bsd_mod_CFLAGS): Likewise.
42065 (bsd_mod_LDFLAGS): Likewise.
42066
42067 * include/grub/aout.h: New file.
42068
42069 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
42070
42071 * include/grub/i386/bsd.h: New file.
42072
42073 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
42074 to make it public.
42075
42076 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
42077 function is called, so that it's possible to change it inside the hook.
42078 (grub_elf64_load): Likewise.
42079 (grub_elf_file): Don't close the file if elf header is not found.
42080 (grub_elf_close): Close the file if grub_elf_file fails (The new
42081 grub_elf_file won't close it).
42082 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
42083 (grub_elf64_size): Likewise.
42084
42085 * kern/i386/loader.S (grub_unix_real_boot): New function.
42086
42087 * loader/aout.c: New file.
42088
42089 * loader/i386/bsd.c: New file.
42090
42091 * loader/i386/bsd_normal.c: New file.
42092
42093 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
42094
42095 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 42096 can test other formats.
d38e24c2 42097
b93bdb0f 420982008-02-19 Robert Millan <rmh@aybabtu.com>
42099
42100 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
42101 (grub_gpt_partition_type_empty): Redefine with macro from
42102 `<grub/gpt_partition.h>'.
42103 (gpt_partition_map_iterate): Adjust partition type comparison.
42104
42105 Export `entry' as partmap-specific `part.data' struct.
42106 (grub_gpt_header, grub_gpt_partentry): Move from here ...
42107
42108 * include/grub/gpt_partition.h (grub_gpt_header)
42109 (grub_gpt_partentry): ... to here (new file).
42110
42111 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
42112
42113 (grub_gpt_partition_type_bios_boot): New const variable, defined
42114 with macro from `<grub/gpt_partition.h>'.
42115
42116 (setup): Replace `first_start' with `embed_region', which keeps
42117 track of the embed region (and is partmap-agnostic).
42118
42119 Replace find_first_partition_start() with find_usable_region(),
42120 which finds a usable region for embedding using partmap-specific
42121 knowledge (supports PC/MSDOS and GPT).
42122
42123 Fix all assumptions that the embed region start at sector 1, using
42124 `embed_region.start' from now on. Similarly, use `embed_region.end'
42125 rather than `first_start' to calculate available size.
42126
42127 In grub_util_info() message, replace "into after the MBR" with an
42128 indication of the specific sector our embed region starts at.
42129
66cb40f6 421302008-02-19 Robert Millan <rmh@aybabtu.com>
42131
42132 * DISTLIST: Replace `commands/ieee1275/halt.c' and
42133 `commands/ieee1275/reboot.c' with `commands/halt.c' and
42134 `commands/reboot.c'.
42135 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42136 (halt_mod_SOURCES): Likewise.
42137 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42138 (halt_mod_SOURCES): Likewise.
42139
b7202015 421402008-02-17 Christian Franke <franke@computer.org>
42141
42142 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
42143
32b0fc49 421442008-02-17 Robert Millan <rmh@aybabtu.com>
42145
42146 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42147 set `first_start' to 0 for non-PC/MSDOS partition maps.
42148
aca63502 421492008-02-16 Robert Millan <rmh@aybabtu.com>
42150
42151 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42152 do not assume partition map is PC/MSDOS before performing checks that
42153 are specific to that layout.
42154
0de8be86 421552008-02-13 Robert Millan <rmh@aybabtu.com>
42156
42157 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
42158 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
42159 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
42160
c3db8364 421612008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
42162
42163 * configure.ac: Only a cosmetic change on the handling of
42164 -fno-stack-protector.
42165
f714229e 421662008-02-12 Alexandre Boeglin <alex@boeglin.org>
42167
c3db8364 42168 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
42169 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
42170 reboot.c.
f714229e 42171 (grub_install_SOURCES): Add halt.mod and reboot.mod.
42172 (halt_mod_SOURCES): New variable.
42173 (halt_mod_CFLAGS): Likewise.
42174 (halt_mod_LDFLAGS): Likewise.
42175 (reboot_mod_SOURCES): Likewise.
42176 (reboot_mod_CFLAGS): Likewise.
42177 (reboot_mod_LDFLAGS): Likewise.
42178
c3db8364 42179 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
42180 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
42181 reboot.c.
f714229e 42182 (halt_mod_SOURCES): Likewise.
42183 (reboot_mod_SOURCES): Likewise.
42184
c3db8364 42185 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
42186 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 42187 (reboot_mod_SOURCES): Likewise.
42188
42189 * commands/i386/pc/reboot.c: merge this file ...
42190
42191 * commands/ieee1275/reboot.c: ... and this file ...
42192
42193 * commands/reboot.c: ... to this file.
c3db8364 42194 Add some precompiler directive to include the correct header for
42195 each machine.
f714229e 42196
42197 * commands/ieee1275/halt.c: move this file ...
42198
42199 * commands/halt.c: ... to here.
c3db8364 42200 Add some precompiler directive to include the correct header for
42201 each machine.
f714229e 42202
42203 * include/grub/efi/efi.h (grub_reboot): New function declaration.
42204 (grub_halt): Likewise.
42205
42206 * kern/efi/efi.c (grub_reboot): New function.
42207 (grub_halt): Likewise.
42208
c74493e0 422092008-02-12 Robert Millan <rmh@aybabtu.com>
42210
42211 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
42212 /dev (like it is done for /dev/mapper). This doesn't provide support
42213 for EVMS, but at least it is now easy to identify the problem when it
42214 arises.
42215
d0db4b04 422162008-02-11 Robert Millan <rmh@aybabtu.com>
42217
42218 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
42219 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
42220 comparing it with -1, not 0.
42221
bf748642 422222008-02-10 Robert Millan <rmh@aybabtu.com>
42223
42224 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
42225 `disk/lvm.c'.
42226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42227 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
42228
42229 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
42230 `disk/lvm.c' to the end of the list.
42231 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42232 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42233
b5db202a 422342008-02-10 Robert Millan <rmh@aybabtu.com>
42235
42236 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
42237 grub_print_error() instead. This will let user know why we're entering
42238 rescue mode.
42239 Based on suggestions from Sam Morris.
42240
83abee31 422412008-02-10 Alexandre Boeglin <alex@boeglin.org>
42242
42243 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
42244 on remaining N args, instead of "--" arg N times.
42245
78d5a08b 422462008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
42247
42248 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
42249 (fill_with_default_glyph): Changed to use unknown_glyph for fill
42250 pattern for unknown glyphs.
42251
68807e5f 422522008-02-09 Robert Millan <rmh@aybabtu.com>
42253
42254 * configure.ac: Probe for `help2man'.
42255 * Makefile.in (builddir): New variable.
42256 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
42257 or otherwise add a few flags/options to it.
42258 (install-local): For every executable utility or script that is
42259 installed, invoke $(HELP2MAN) to install a manpage based on --help
42260 output.
42261
42262 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
42263 that it doesn't prevent --help from working in build tree.
42264
42265 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
42266 with `bug-grub@gnu.org'.
42267 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
42268 * util/update-grub.in (usage): New function.
42269 Implement proper argument check, with support for --help and --version
42270 (as well as existing -y).
42271
422722008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 42273
42274 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
42275 avoid overwriting previous output.
42276 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
42277
c1962162 422782008-02-09 Robert Millan <rmh@aybabtu.com>
42279
42280 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
42281 drawing the menu.
42282
3dac2e3f 422832008-02-09 Robert Millan <rmh@aybabtu.com>
42284
42285 * commands/sleep.c: New file.
42286 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
42287 (sleep_mod_SOURCES): New variable.
42288 (sleep_mod_CFLAGS): Likewise.
42289 (sleep_mod_LDFLAGS): Likewise.
42290
7a634e08 422912008-02-09 Robert Millan <rmh@aybabtu.com>
42292
42293 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
42294 situations in which we can deduce the RAID size and the superblock
42295 doesn't match it.
42296
b92f0c18 422972008-02-09 Robert Millan <rmh@aybabtu.com>
42298
42299 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
42300 and return a grub_diskmemberlist_t composed of LVM physical volumes.
42301 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
42302
42303 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
42304 and return a grub_diskmemberlist_t composed of physical array members.
42305 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
42306
42307 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
42308 prototype.
42309 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
42310 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
42311 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
42312
42313 * util/grub-probe.c (probe): Move partmap probing code from here ...
42314 (probe_partmap): ... to here.
42315 (probe): Use probe_partmap() once for the disk we're probing, and
42316 additionally, when such disk contains a memberlist() struct member,
42317 once for each disk that is contained in the structure returned by
42318 memberlist().
42319
91a4bf68 423202008-02-09 Robert Millan <rmh@aybabtu.com>
42321
42322 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
42323 environment variable to 'all' in order to obtain debug output from
42324 non-util/ code.
42325 * util/i386/pc/grub-setup.c (main): Likewise.
42326
a96f9caa 423272008-02-08 Robert Millan <rmh@aybabtu.com>
42328
42329 * disk/raid.c (grub_raid_scan_device): Check for
42330 `array->device[sb.this_disk.number]' rather than for
42331 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 42332 guaranteed to be accessible.
a96f9caa 42333
b37a9222 423342008-02-08 Robert Millan <rmh@aybabtu.com>
42335
42336 * disk/raid.c: Update copyright.
42337 * fs/cpio.c: Likewise.
42338 * include/grub/raid.h: Likewise.
42339 * loader/i386/pc/multiboot.c: Likewise.
42340 * util/hostfs.c: Likewise.
42341
5626aee1 423422008-02-08 Robert Millan <rmh@aybabtu.com>
42343
42344 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
42345 to a grub_disk_t array.
42346 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
42347 `device[x]'.
42348 (grub_raid_scan_device): Replace `device[x].name' accesses with
42349 `device[x]->name'. Simplify initialization of `array->device[x]'.
42350
554f0187 423512008-02-08 Robert Millan <rmh@aybabtu.com>
42352
42353 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
42354 grub_dprintf() calls.
42355 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
42356 error message.
42357
1ec8425d 423582008-02-07 Christian Franke <franke@computer.org>
42359
42360 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
42361 instead of fseek and ftell to support large files.
42362 (grub_hostfs_read): Likewise.
42363
f2156fda 423642008-02-07 Robert Millan <rmh@aybabtu.com>
42365
42366 Patch from Jeroen Dekkers.
42367 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 42368 failure, since successfully reading all array members might not be
f2156fda 42369 required.
42370
9216e0e7 423712008-02-06 Robert Millan <rmh@aybabtu.com>
42372
42373 * util/grub-probe.c (probe): Simplify partmap probing (with the
42374 assumption that the first word up to the underscore equals to
42375 the module name).
42376
b0dfd29a 423772008-02-06 Christian Franke <franke@computer.org>
42378
42379 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
42380 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
42381 last block of a cpio or tar stream.
42382 Check for "TRAILER!!!" instead of any empty data
42383 block to detect last block of a cpio stream.
42384 (grub_cpio_dir): Fix constness of variable np.
42385 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
42386 cpio or tar trailer is detected. This fixes a crash
42387 on open of a non existing file.
42388
c32865bf 423892008-02-05 Bean <bean123ch@gmail.com>
42390
42391 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
42392 address of entry.
42393 (grub_multiboot_load_elf64): Likewise.
42394 (grub_multiboot): Initialize mbi structure.
42395
42396 * util/grub-fstest.c: Don't include unused header file script.h.
42397
fe6b695a 42398 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 42399 of file.
42400 (grub_fstest_SOURCES): Likewise.
42401
409480b7 424022008-02-05 Robert Millan <rmh@aybabtu.com>
42403
42404 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
42405 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
42406 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
42407 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
42408
42409 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
42410 (translation_table): Replace hardcoded values with macros
42411 provided by `<grub/term.h>'.
42412
42413 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
42414 (keyboard_map): Correct/add a few values, with macros provided
42415 by `<grub/term.h>'.
42416 (keyboard_map_shift): Zero values that don't differ from their
42417 `keyboard_map' equivalents.
42418 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
42419 Discard the second scan code that is always sent by Caps lock.
42420 Only use `keyboard_map_shift' when it provides a non-zero value,
42421 otherwise fallback to `keyboard_map'.
42422
99fadbaa 424232008-02-04 Bean <bean123ch@gmail.com>
42424
42425 * Makefile.in (enable_grub_fstest): New variable.
42426
42427 * conf/common.rmk (grub_fstest_init.lst): New rule.
42428 (grub_fstest_init.h): Likewise.
42429 (grub_fstest_init.c): Likewise.
42430 (util/grub-fstest.c_DEPENDENCIES): New variable.
42431 (grub_fstest_SOURCES): Likewise.
42432
42433 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
42434
42435 * util/grub-fstest.c: New file.
42436
bf567c50 424372008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42438
42439 Make grub-setup handle a separate root device.
f19dbdb7 42440
bf567c50 42441 * util/i386/pc/grub-setup.c (setup): Always open the root device,
42442 so that the root device can be compared with the destination
42443 device.
42444 When embedding the core image, if the root and destination devices
42445 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
42446 0xFF.
42447 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 42448
9be6b98b 424492008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42450
42451 Add support for having a grub directory in a different drive. This
42452 is still only the data handling part.
f19dbdb7 42453
9be6b98b 42454 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
42455 (codestart): Save %dh in GRUB_ROOT_DRIVE.
42456 (grub_root_drive): New variable.
42457
42458 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
42459 instead of GRUB_BOOT_DRIVE to construct a device name. Set
42460 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
42461 as it was.
42462
42463 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
42464
42465 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
42466 macro.
42467 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
42468
42469 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
42470 is bogus, because PXE booting does not specify any drive
42471 correctly.
42472
42473 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
42474 am not sure if this is really correct.
42475
42476 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
42477 is always identical to the boot drive when booting from a CD.
42478
42479 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
42480 longer.
42481 (root_drive): New variable.
42482 (real_start): Unconditionally set %dh to ROOT_DRIVE.
42483 (setup_sectors): Push %dx right after popping it, because %dh will
42484 be modified later.
42485 (copy_buffer): Restore %dx.
42486
e0ca0677 424872008-02-03 Robert Millan <rmh@aybabtu.com>
42488
42489 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
42490 use `cdboot.img' for cdrom images.
42491
3b3f6629 424922008-02-03 Robert Millan <rmh@aybabtu.com>
42493
42494 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
42495 only setup gfxterm when `font' command has succeeded.
42496
d42b3672 424972008-02-03 Robert Millan <rmh@aybabtu.com>
42498
42499 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
42500 (grub_rescue_cmd_multiboot_loader)
42501 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
42502
fa370ea6 425032008-02-03 Pavel Roskin <proski@gnu.org>
42504
e0c5dacb 42505 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 42506 %edx and %esi from stack only after grub_gate_a20() is called.
42507 grub_gate_a20() clobbers %edx.
42508
f2a76e1d 425092008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42510
42511 * configure.ac (AC_INIT): Bumped to 1.96.
42512
42513 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
42514 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
42515 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
42516 video/readers/png.c.
42517
90fd32d1 425182008-02-03 Bean <bean123ch@gmail.com>
9be665dd 42519
42520 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
42521 (cdboot_img_SOURCES): New variable.
42522 (cdboot_img_ASFLAGS): New variable.
42523 (cdboot_img_LDFLAGS): New variable.
42524
42525 * boot/i386/pc/cdboot.S: New file.
42526
42527 * disk/i386/pc/biosdisk.c (cd_start): New variable.
42528 (cd_count): Likewise.
42529 (grub_biosdisk_get_drive): Add support for cd device.
42530 (grub_biosdisk_call_hook): Likewise.
42531 (grub_biosdisk_iterate): Likewise.
42532 (grub_biosdisk_open): Likewise.
42533 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
42534 (grub_biosdisk_rw): Support reading from cd device.
42535 (GRUB_MOD_INIT): Iterate cd devices.
42536
42537 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
42538 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
42539 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
42540
42541 * kern/i386/pc/init.c (make_install_device): Check for cd device.
42542
4020aa53 425432008-02-02 Robert Millan <rmh@aybabtu.com>
42544
42545 * commands/read.c: New file.
42546 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
42547 (read_mod_SOURCES): New variable.
42548 (read_mod_CFLAGS): Likewise.
42549 (read_mod_LDFLAGS): Likewise.
42550
e03a1132 425512008-02-02 Robert Millan <rmh@aybabtu.com>
42552
42553 * normal/main.c (grub_normal_execute): Check for `menu->size' when
42554 determining whether menu has to be displayed.
42555
58c69220 425562008-02-02 Marco Gerards <marco@gnu.org>
42557
42558 * bus/pci.c: New file.
42559
42560 * include/grub/pci.h: Likewise.
42561
42562 * include/grub/i386/pc/pci.h: Likewise.
42563
42564 * commands/lspci.c: Likewise.
42565
42566 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
42567 `lspci.mod'.
42568 (pci_mod_SOURCES): New variable.
42569 (pci_mod_CFLAGS): Likewise.
42570 (pci_mod_LDFLAGS): Likewise.
42571 (lspci_mod_SOURCES): Likewise.
42572 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 42573 (lspci_mod_LDFLAGS): Likewise.
58c69220 42574
c004e1b4 425752008-02-02 Bean <bean123ch@gmail.com>
42576
42577 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
42578 (grub_ufs_get_file_block): Fix indirect block calculation problem.
42579
42580 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
42581 (grub_xfs_btree_node): New structure.
42582 (grub_xfs_btree_root): New structure.
42583 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
42584 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
42585 (GRUB_XFS_EXTENT_BLOCK): Likewise.
42586 (GRUB_XFS_EXTENT_SIZE): Likewise.
42587 (grub_xfs_read_block): Support btree format type.
42588 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
42589 Use directory block as basic unit.
42590
42591 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
42592
42593 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
42594 __attribute__ ((__regparm__ (1))).
42595
f95562bf 425962008-02-01 Robert Millan <rmh@aybabtu.com>
42597
42598 Correct a mistake in previous commit.
42599
42600 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
42601 top.
42602 (normal/command.c_DEPENDENCIES): New variable.
42603
7d31f41f 426042008-02-01 Robert Millan <rmh@aybabtu.com>
42605
42606 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
42607 top.
42608 (normal/command.c_DEPENDENCIES): New variable.
42609 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
42610 * conf/i386-ieee1275.rmk: Likewise.
42611 * conf/i386-linuxbios.rmk: Likewise.
42612 * conf/i386-pc.rmk: Likewise.
42613 * conf/sparc64-ieee1275.rmk: Likewise.
42614 * conf/powerpc-ieee1275.rmk: Likewise.
42615 (grub_emu_SOURCES): Add `fs/fshelp.c'.
42616
42617 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
42618
60b6be74 426192008-02-01 Robert Millan <rmh@aybabtu.com>
42620
42621 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
42622 call at beginning of function.
42623
078522ab 426242008-01-31 Pavel Roskin <proski@gnu.org>
42625
42626 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 42627 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
42628 (grub_mkrescue_SOURCES): Likewise.
078522ab 42629 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
42630
ccaa8a5f 426312008-01-30 Robert Millan <rmh@aybabtu.com>
42632
42633 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
42634 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
42635 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
42636 (grub_probe_SOURCES): ... to here.
42637
42638 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
42639 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
42640 * conf/i386-ieee1275.rmk: Likewise.
42641 * conf/i386-linuxbios.rmk: Likewise.
42642 * conf/powerpc-ieee1275.rmk: Likewise.
42643
ae5a9cd7 426442008-01-30 Tristan Gingold <gingold@free.fr>
42645
42646 * kern/rescue.c: Silently accept empty lines.
42647
70bc2ef2 426482008-01-29 Bean <bean123ch@gmail.com>
42649
42650 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
42651 (real_code_2): Code cleanup and change comment style.
42652 (move_memory): Avoid using 32-bit address mode.
42653
6a4d50ea 426542008-01-29 Bean <bean123ch@gmail.com>
42655
42656 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
42657 (png_mod_SOURCES): New variable.
42658 (png_mod_CFLAGS): Likewise.
42659 (png_mod_LDFLAGS): Likewise.
42660
42661 * video/readers/png.c: New file.
42662
11cc30ac 426632008-01-28 Robert Millan <rmh@aybabtu.com>
42664
42665 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
42666 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
42667 `ifndef GRUB_MOD_GAP' hack.
42668 * util/elf/grub-mkimage.c (add_segments): Likewise.
42669
3abc589f 426702008-01-27 Robert Millan <rmh@aybabtu.com>
42671
42672 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
42673 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 42674 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 42675
e1907778 426762008-01-27 Robert Millan <rmh@aybabtu.com>
42677
42678 Get grub-emu to build again (including parallel builds).
42679
42680 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
42681 Split into ...
42682 (util/grub-emu.c_DEPENDENCIES): ... this, ...
42683 (normal/execute.c_DEPENDENCIES): ... this, ...
42684 (grub-emu_DEPENDENCIES): ... and this.
42685
42686 * conf/i386-efi.rmk: Likewise.
42687 * conf/i386-linuxbios.rmk: Likewise.
42688 * conf/i386-ieee1275.rmk: Likewise.
42689 * conf/powerpc-ieee1275.rmk: Likewise.
42690 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
42691
2216b101 426922008-01-27 Robert Millan <rmh@aybabtu.com>
42693
42694 * NEWS: Add a few items.
42695
f75172d9 426962008-01-27 Robert Millan <rmh@aybabtu.com>
42697
42698 Fix parallel builds with grub-emu. Based on earlier commit for
42699 grub-probe and grub-setup.
42700
42701 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42702 (util/grub-emu.c_DEPENDENCIES): ... this.
42703 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42704 (util/grub-emu.c_DEPENDENCIES): ... this.
42705 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42706 (util/grub-emu.c_DEPENDENCIES): ... this.
42707 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42708 (util/grub-emu.c_DEPENDENCIES): ... this.
42709 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42710 (util/grub-emu.c_DEPENDENCIES): ... this.
42711
3f51de77 427122008-01-27 Pavel Roskin <proski@gnu.org>
42713
42714 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
42715 to create a gap between _end and the modules added to the image
42716 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
42717 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
42718 * util/elf/grub-mkimage.c (add_segments): Likewise.
42719
2033f53e 427202008-01-26 Pavel Roskin <proski@gnu.org>
42721
42722 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
42723 just return an error.
42724
22da1f6f 427252008-01-26 Bean <bean123ch@gmail.com>
42726
42727 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
42728 (grub_reiserfs_get_item): Save offset of the next item.
42729 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
42730
2a9525e6 427312008-01-25 Robert Millan <rmh@aybabtu.com>
42732
42733 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
42734 make all filesystem sources appear together (possibly fixing omissions
42735 while at it).
42736 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42737 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42738 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42739 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42740
42741 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
42742 add `kern/file.c'.
42743 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
42744 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42745 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
42746 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42747
42748 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
42749 (probe): Add a sanity check to make sure of our ability to read
42750 requested files when probing for filesystem type.
42751
42752 * genmk.rb: Update copyright year (2007).
42753
42754 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
42755 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
42756 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
42757 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
42758 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
42759 : Remove function prototypes.
42760
b95f71b5 427612008-01-25 Robert Millan <rmh@aybabtu.com>
42762
42763 Revert my previous commits (based on wrong assumption of how grub_errno
42764 works).
42765
fe6b695a 42766 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 42767 * kern/file.c (grub_file_open): Likewise.
42768
d08bbb49 427692008-01-24 Pavel Roskin <proski@gnu.org>
42770
42771 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
42772 that hang if GRUB tries to setup colors.
42773 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
42774 colors for firmwares that don't support it.
42775 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
42776 Recognize Open Hack'Ware, set flags to work around its
42777 limitations.
42778
605e36ed 427792008-01-24 Robert Millan <rmh@aybabtu.com>
42780
42781 * kern/file.c (grub_file_open): Do not account previous failures of
42782 unrelated functions when grub_errno is checked for.
42783 Reported by Oleg Strikov.
42784
bac332a1 427852008-01-24 Bean <bean123ch@gmail.com>
42786
42787 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
42788 (grub_ufs_sblock): New member volume name.
42789 (grub_ufs_find_file): Fix string copy bug.
42790 (grub_ufs_label): Implement this function properly.
42791
42792 * fs/hfs.c (grub_hfs_cnid_type): New enum.
42793 (grub_hfs_iterate_records): Use the correct file number for extents
42794 and catalog file. Fix problem in next index calculation.
42795 (grub_hfs_find_node): Replace recursive function call with loop.
42796 (grub_hfs_iterate_dir): Replace recursive function call with loop.
42797
15c80c09 427982008-01-23 Robert Millan <rmh@aybabtu.com>
42799
42800 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
42801 `<grub/symbol.h>' and `<grub/multiboot.h>'.
42802 (grub_multiboot2_real_boot): New function prototype.
42803
42804 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
42805 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
42806
42807 * kern/i386/ieee1275/init.c (grub_os_area_addr)
42808 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
42809
305338fd 428102008-01-23 Robert Millan <rmh@aybabtu.com>
42811
42812 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
42813 #ifdef'ed out grub_printf().
42814
3ea52685 428152008-01-23 Robert Millan <rmh@aybabtu.com>
42816
42817 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
42818 grub_dprintf calls, since they make "debug=all" mode unusable.
42819 (grub_console_checkkey): Likewise.
42820
5882ae4b 428212008-01-23 Robert Millan <rmh@aybabtu.com>
42822
42823 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
42824 `term/i386/pc/at_keyboard.c'.
42825 (pkglib_MODULES): Add `serial.mod'.
42826 (serial_mod_SOURCES): New variable.
42827 (serial_mod_CFLAGS): Likewise.
42828 (serial_mod_LDFLAGS): Likewise.
42829
42830 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
42831 `<grub/powerpc/ieee1275/console.h>'.
42832 (grub_keyboard_controller_init): New function prototype.
42833 (grub_console_checkkey): Likewise.
42834 (grub_console_getkey): Likewise.
42835
42836 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
42837 keyboard on i386.
42838
42839 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
42840 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
42841
06ab5303 428422008-01-23 Robert Millan <rmh@aybabtu.com>
42843
42844 * kern/i386/pc/init.c (make_install_device): When memdisk image is
42845 present, "(memdisk)/boot/grub" becomes the default prefix.
42846
42847 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
42848 a memdisk tarball with all the modules. Add --overlay=DIR option that
42849 allows users to overlay additional files into the image.
42850
dbb475a4 428512008-01-23 Robert Millan <rmh@aybabtu.com>
42852
42853 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
42854 and `machine/memory.h'.
42855 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
42856 (_multiboot_mod_SOURCES): New variable.
42857 (_multiboot_mod_CFLAGS): Likewise.
42858 (_multiboot_mod_LDFLAGS): Likewise.
42859 (multiboot_mod_SOURCES): Likewise.
42860 (multiboot_mod_CFLAGS): Likewise.
42861 (multiboot_mod_LDFLAGS): Likewise.
42862
42863 * include/grub/i386/ieee1275/loader.h: New file.
42864
42865 * include/grub/i386/ieee1275/machine.h: Likewise.
42866
42867 * include/grub/i386/ieee1275/memory.h: Likewise.
42868
42869 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
42870 variable declaration.
42871 (grub_os_area_size): Likewise.
42872
42873 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
42874 (grub_lower_mem, grub_upper_mem): New variables.
42875 (grub_stop_floppy): New function (just to make
42876 grub_multiboot2_real_boot() happy).
42877
42878 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
42879 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
42880 (grub_stop): New function.
42881 Include `"../realmode.S"' and `"../loader.S"'.
42882
42883 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
42884 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
42885
42886 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
42887 rely on grub_multiboot2_real_boot() for final boot.
42888
25638629 428892008-01-22 Robert Millan <rmh@aybabtu.com>
42890
42891 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
42892 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
42893 device that doesn't look like an SD card.
42894 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
42895 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
42896 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
42897 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
42898 found.
42899
9dad816d 429002008-01-22 Robert Millan <rmh@aybabtu.com>
42901
42902 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
42903 avoid claiming over our own code.
42904
34842f2d 429052008-01-22 Bean <bean123ch@gmail.com>
42906
42907 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
42908 (jpeg_mod_SOURCES): New variable.
42909 (jpeg_mod_CFLAGS): Likewise.
42910 (jpeg_mod_LDFLAGS): Likewise.
42911
42912 * video/readers/jpeg.c : New file.
42913
44023a28 429142008-01-22 Bean <bean123ch@gmail.com>
42915
42916 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
42917 there are no more items.
42918
bc2d8ac6 429192008-01-21 Robert Millan <rmh@aybabtu.com>
42920
42921 * kern/mm.c (grub_mm_init_region): Improve debug message.
42922
261bd4bc 429232008-01-21 Robert Millan <rmh@aybabtu.com>
42924
42925 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
42926 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
42927 address.
42928 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
42929 a C macro.
42930 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
42931 Indicates start of upper memory.
42932 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
42933 (generate_image): Abort when image size is big enough to corrupt
42934 upper memory.
42935
42936 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
42937 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
42938 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
42939 instead of hardcoding 0xA0000.
42940 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
42941 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
42942 instead of hardcoding 0xA0000.
42943
f970b55e 429442008-01-21 Robert Millan <rmh@aybabtu.com>
42945
42946 * disk/memdisk.c (memdisk_size): New variable.
42947 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
42948 `memdisk_size'.
42949 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
42950 image to dynamic memory.
42951 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
42952 `memdisk_size'. Free memdisk block.
42953
1a8b0526 429542008-01-21 Robert Millan <rmh@aybabtu.com>
42955
42956 Fix detection of very small filesystems (like tar).
42957
42958 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
42959 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
42960 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
42961 a problem with this disk).
42962
6e9b4aab 429632008-01-21 Robert Millan <rmh@aybabtu.com>
42964
42965 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
42966 on grub_biosdisk_rw_standard() error.
42967
0d8837b2 429682008-01-21 Robert Millan <rmh@aybabtu.com>
42969
42970 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
42971 recent changes.
42972 * kern/elf.c: Likewise.
42973 * kern/ieee1275/ieee1275.c: Likewise.
42974 * kern/powerpc/ieee1275/openfw.c: Likewise.
42975 * term/ieee1275/ofconsole.c: Likewise.
42976
ffd36e34 429772008-01-21 Robert Millan <rmh@aybabtu.com>
42978
42979 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
42980
3f0093d0 42981 * include/grub/kernel.h (grub_arch_memdisk_addr)
42982 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 42983
3f0093d0 42984 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
42985 (grub_arch_memdisk_size): ... to here.
ffd36e34 42986
6c391b21 429872008-01-21 Robert Millan <rmh@aybabtu.com>
42988
42989 Mostly based on bugfix from Bean.
42990
42991 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
42992 attribute with hook() parameter.
42993 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
42994 declaration.
42995 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
42996 attribute with hook() parameter.
42997 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
42998 declaration.
42999
55a581dc 430002008-01-21 Robert Millan <rmh@aybabtu.com>
43001
43002 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
43003 (pkglib_MODULES): Add `memdisk.mod'.
43004 (memdisk_mod_SOURCES): New variable.
43005 (memdisk_mod_CFLAGS): Likewise.
43006 (memdisk_mod_LDFLAGS): Likewise.
43007
43008 * disk/memdisk.c: New file.
43009
43010 * include/grub/disk.h (grub_disk_dev_id): Add
43011 `GRUB_DISK_DEVICE_MEMDISK_ID'.
43012
43013 * include/grub/i386/pc/kernel.h
43014 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
43015 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
43016 (grub_kernel_image_size): New variable declaration.
43017 (grub_total_module_size): Likewise.
43018 (grub_memdisk_image_size): Likewise.
43019
43020 * include/grub/i386/pc/memory.h
43021 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
43022
43023 * include/grub/kernel.h: Include `<grub/symbol.h>'.
43024 (grub_arch_memdisk_addr): New variable declaration.
43025 (grub_arch_memdisk_size): Likewise.
43026
43027 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
43028 (grub_arch_memdisk_size): Likewise.
43029
43030 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
43031 (codestart): Replace hardcoded `0x100000' with
43032 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
43033
43034 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
43035 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
43036 not NULL, append the contents of the file it refers to, at the end of
43037 the compressed kernel image. Initialize `grub_memdisk_image_size'
43038 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
43039 (options): Add "memdisk"|'m' option.
43040 (main): Parse --memdisk|-m option, and pass user-provided path as
43041 parameter to generate_image().
43042
3d7f54c9 430432008-01-20 Robert Millan <rmh@aybabtu.com>
43044
43045 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
43046 grub_dprintf() calls from here ...
43047 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
43048
0bf74728 430492008-01-20 Robert Millan <rmh@aybabtu.com>
43050
43051 Fix detection of "real mode" when /options/real-mode? doesn't exist.
43052
43053 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
43054 declaration.
43055 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
43056 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
43057 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 43058 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 43059 property).
43060 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
43061 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
43062
33bf70a7 430632008-01-19 Robert Millan <rmh@aybabtu.com>
43064
fe6b695a 43065 Get rid of confusing function (superseded by
33bf70a7 43066 `grub_ieee1275_get_integer_property')
43067 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
43068 prototype.
43069 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
43070 function.
43071 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
43072 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 43073 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 43074
e2da7d26 430752008-01-19 Robert Millan <rmh@aybabtu.com>
43076
43077 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
43078 command after "shut-down", since implementations differ on which
43079 the command for halt is.
43080
59f1fd8d 430812008-01-19 Robert Millan <rmh@aybabtu.com>
43082
43083 * include/grub/i386/linuxbios/console.h: Add header protection.
43084 (grub_keyboard_controller_init): New function prototype.
43085 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
43086 (KEYBOARD_COMMAND_READ): Likewise.
43087 (KEYBOARD_COMMAND_WRITE): Likewise.
43088 (KEYBOARD_SCANCODE_SET1): Likewise.
43089 (grub_keyboard_controller_write): New function.
43090 (grub_keyboard_controller_read): Likewise.
43091 (grub_keyboard_controller_init): Likewise.
43092
43093 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
43094 (grub_console_init): On coreboot/LinuxBIOS, call
43095 grub_keyboard_controller_init().
43096
5f5a7c15 430972008-01-19 Robert Millan <rmh@aybabtu.com>
43098
43099 PowerPC changes provided by Pavel Roskin.
43100
43101 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
43102 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
43103 don't rely on cmain() doing it.
43104 * kern/i386/ieee1275/startup.S (_start): Store %eax in
43105 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
43106
1210e168 431072008-01-16 Robert Millan <rmh@aybabtu.com>
43108
43109 * include/grub/i386/linuxbios/memory.h
43110 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
43111 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
43112 receive `table_header' as argument. Instead, probe for it in the
43113 known memory ranges where it can be present.
43114 (grub_available_iterate): Do not pass a fixed `table_header' address
43115 to grub_linuxbios_table_iterate().
43116
3d04eab8 431172008-01-15 Robert Millan <rmh@aybabtu.com>
43118
43119 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
43120 * conf/i386-ieee1275.rmk: New file.
43121 * include/grub/i386/ieee1275/console.h: Likewise.
43122 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
43123 * include/grub/i386/ieee1275/kernel.h: Likewise.
43124 * include/grub/i386/ieee1275/time.h: Likewise.
43125 * kern/i386/ieee1275/init.c: Likewise.
43126 * kern/i386/ieee1275/startup.S: Likewise.
43127
d1bc1b73 431282008-01-15 Robert Millan <rmh@aybabtu.com>
43129
43130 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
43131 when pointers are 32-bit (but still do set it to one when they are
43132 64-bit).
43133
66a65807 431342008-01-15 Robert Millan <rmh@aybabtu.com>
43135
43136 * include/grub/ieee1275/ieee1275.h
43137 (grub_ieee1275_get_integer_property): New function prototype.
43138
43139 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
43140 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 43141 grub_ieee1275_get_property() to handle endianness.
66a65807 43142
43143 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
43144 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 43145 where appropriate.
66a65807 43146 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
43147 (grub_map): Likewise.
43148 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
43149
a83ccafd 431502008-01-15 Bean <bean123ch@gmail.com>
43151
43152 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
43153 (grub_script_execute_cmdline): Reset grub_errno.
43154
43155 * normal/main.c (read_config_file): Reset grub_errno.
43156
43157 * normal/parse.y (script_init): New.
43158 (script): Move function and menuentry here.
43159 (delimiter): New.
43160 (command): Add delimiter at the end of command.
43161 (commands): Adjust to match the new command.
43162 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 43163 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 43164 (if): Use the new commands.
43165
43166 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
43167
df6ecfc6 431682008-01-15 Robert Millan <rmh@aybabtu.com>
43169
43170 * normal/menu.c (run_menu): Move timeout message from here ...
43171 (print_timeout): ... to here.
43172 (run_menu): Use print_timeout() once during initial draw to print
43173 the whole message, and again in every clock tick to update only
43174 the number of seconds.
43175
87ae25eb 431762008-01-15 Robert Millan <rmh@aybabtu.com>
43177
43178 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
43179 actual size of `available' from grub_ieee1275_get_property(), and
43180 restrict parsing to that bound.
43181
47bf09a4 431822008-01-15 Christian Franke <franke@computer.org>
43183
43184 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
43185 (argp_program_version): Remove variable.
43186 (argp_program_bug_address): Likewise.
43187 (options): Convert from struct argp_option to struct option.
43188 (struct arguments): Remove.
43189 (parse_opt): Remove.
43190 (usage): New function.
43191 (main): Replace struct args members by simple variables.
43192 Replace argp_parse() by getopt_long().
43193 Add switch to evaluate options.
43194 Add missing "(...)" around root_dev in prefix string.
43195
c86f1469 431962008-01-14 Robert Millan <rmh@aybabtu.com>
43197
43198 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
43199 for grub_ieee1275_exit(), in order to improve portability.
43200
e622c559 432012008-01-14 Robert Millan <rmh@aybabtu.com>
43202
43203 * util/grub.d/10_linux.in (prefix): Define.
43204 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
43205
44cb1ec8 432062008-01-13 Pavel Roskin <proski@gnu.org>
43207
43208 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
43209 grub_errno if no errors have been detected.
43210
1eb8c802 432112008-01-12 Robert Millan <rmh@aybabtu.com>
43212
43213 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
43214 (grub_util_get_dev_abstraction): New function prototype.
43215
43216 * util/getroot.c: Include `<grub/util/getroot.h>'
43217 (grub_util_get_grub_dev): Move detection of abstraction type to ...
43218 (grub_util_get_dev_abstraction): ... here (new function).
43219
43220 * util/grub-probe.c: Convert PRINT_* to an enum. Add
43221 `PRINT_ABSTRACTION'.
43222 (probe): Probe for abstraction type when requested.
43223 (main): Understand `--target=abstraction'.
43224
43225 * util/i386/efi/grub-install.in: Add abstraction module to core
43226 image when it is found to be necessary.
43227 * util/i386/pc/grub-install.in: Likewise.
43228 * util/powerpc/ieee1275/grub-install.in: Likewise.
43229
43230 * util/update-grub_lib.in (font_path): Return system path without
43231 converting to GRUB path.
43232 * util/update-grub.in: Convert system path returned by font_path()
43233 to a GRUB path. Use `grub-probe -t abstraction' to determine what
43234 abstraction module is needed for loading fonts (if any). Export
43235 that as `GRUB_PRELOAD_MODULES'.
43236 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
43237 insmod commands).
43238
52bd3de9 432392008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
43240
43241 Remove some unused code from reiserfs.
f19dbdb7 43242
52bd3de9 43243 * fs/reiserfs.c (struct grub_reiserfs_key)
43244 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
43245 (struct grub_reiserfs_node_body): Removed.
43246 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43247 Likewise.
43248 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43249 Likewise.
43250 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43251 Likewise.
43252 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43253 Likewise.
43254 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43255 Likewise.
43256 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
43257 Likewise.
43258 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43259 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43260 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43261
2f80039d 432622008-01-10 Robert Millan <rmh@aybabtu.com>
43263
43264 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
43265 Determines if a file is garbage left by packaging systems, etc.
43266 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
43267 for processing /etc/grub.d scripts.
43268 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
43269 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
43270 as a condition for processing Linux images.
43271
87888032 432722008-01-10 Pavel Roskin <proski@gnu.org>
43273
43274 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
43275 to compile reiserfs.c on PowerPC.
43276
7e54fced 432772008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 43278
43279 * kern/device.c (grub_device_iterate): Do not abort device iteration
43280 when one of the devices cannot be opened.
43281 * kern/disk.c (grub_disk_open): Do not account previous failures of
43282 unrelated functions when grub_errno is checked for.
43283
5aa541e6 432842008-01-08 Robert Millan <rmh@aybabtu.com>
43285
43286 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
43287 `! grub_linux_is_bzimage', change order of address comparison to make
43288 it more intuitive, and improve "too big zImage" error message.
43289
7076340d 432902008-01-08 Robert Millan <rmh@aybabtu.com>
43291
43292 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
43293 `$(update-grub_DATA)'.
43294 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
43295 targets.
43296
9ca70333 432972008-01-07 Robert Millan <rmh@aybabtu.com>
43298
43299 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
43300 which instruction is modified by grub-setup during installation
43301 (since it wasn't obvious by only looking at this file).
43302
38ccf575 433032008-01-07 Robert Millan <rmh@aybabtu.com>
43304
43305 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
43306 listing actual TODO items.
43307
f5db4291 433082008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43309
868967cf 43310 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
43311 correctly.
43312 (grub_reiserfs_get_key_offset): Likewise.
43313 (grub_reiserfs_set_key_offset): Likewise.
43314 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 43315 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 43316
43317 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
43318 better to remove the bitfield version completely.
f19dbdb7 43319
868967cf 433202008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43321
f5db4291 43322 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
43323 allocated from the heap, due to the fshelp implementation.
43324 (grub_reiserfs_dir): Free NODE, due to the same reason.
43325
492e6d9d 433262008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43327
43328 Mostly from Vincent Pelletier:
f19dbdb7 43329
492e6d9d 43330 * fs/reiserfs.c: New file.
f19dbdb7 43331
492e6d9d 43332 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
43333 (reiserfs_mod_SOURCES): New variable.
43334 (reiserfs_mod_CFLAGS): Likewise.
43335 (reiserfs_mod_LDFLAGS): Likewise.
43336
43337 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
43338 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
43339 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
43340 normal/color.c.
43341
9ce3e7c1 433422008-01-06 Robert Millan <rmh@aybabtu.com>
43343
43344 * normal/color.c: Remove `<grub/env.h>'.
43345
f3b58148 433462008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
43347
43348 * include/grub/normal.h: Include <grub/env.h>.
43349
7ac3bcfa 433502008-01-05 Robert Millan <rmh@aybabtu.com>
43351
43352 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
43353 usage example with `(hd0,1)'.
fb358190 43354 Reported by Samuel Thibault.
7ac3bcfa 43355
c8ee99d7 433562008-01-05 Robert Millan <rmh@aybabtu.com>
43357
43358 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
43359 (grub_linux_boot_zimage): Rename to ...
43360 (grub_linux_boot): ... this.
43361 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
43362 (grub_linux_boot_zimage): Conditionalize zImage copy.
43363
43364 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
43365 (grub_linux_boot_bzimage): Remove prototype.
43366 (grub_linux_boot_zimage): Rename to ...
43367 (grub_linux_boot): ... this.
43368
43369 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
43370 (grub_linux_boot): Remove function.
43371
0ece25b1 433722008-01-05 Robert Millan <rmh@aybabtu.com>
43373
43374 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
43375 (grub_env_write_color_highlight): Likewise.
43376 (grub_wait_after_message): Likewise.
43377
43378 * normal/color.c: New file.
43379
43380 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43381 (normal_mod_DEPENDENCIES): Likewise.
43382
43383 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43384 (normal_mod_DEPENDENCIES): Likewise.
43385
43386 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43387 (normal_mod_DEPENDENCIES): Likewise.
43388
43389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43390 (normal_mod_DEPENDENCIES): Likewise.
43391
43392 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
43393 for waiting after a message is printed.
43394 * normal/main.c (read_config_file): Likewise.
43395 (grub_normal_init): Register grub_env_write_color_normal() and
43396 grub_env_write_color_highlight() hooks. Mark `color_normal' and
43397 `color_highlight' variables as global.
43398
43399 * normal/menu.c (grub_wait_after_message): New function.
43400 (grub_color_menu_normal): New variable. Replaces ...
43401 (GRUB_COLOR_MENU_NORMAL): ... this macro.
43402 (grub_color_menu_highlight): New variable. Replaces ...
43403 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
43404 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
43405 `GRUB_TERM_COLOR_STANDARD'.
43406 (print_message): Use `grub_setcolorstate' to reload colors. Rename
43407 `normal_code' and `highlight_code' to `old_color_normal' and
43408 `old_color_highlight', respectively.
43409 (grub_menu_init_page): Update colors when drawing the menu, based on
43410 `menu_color_normal' and `menu_color_highlight' variables.
43411 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
43412 a message is printed.
43413
182dd4e5 434142008-01-05 Robert Millan <rmh@aybabtu.com>
43415
43416 * kern/env.c (grub_env_context_open): Propagate hooks for global
43417 variables to new context.
43418
43419 * kern/main.c (grub_set_root_dev): Export `root' variable.
43420
ddf8f6ad 434212008-01-05 Robert Millan <rmh@aybabtu.com>
43422
43423 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 43424 discs unconditionally, since udev and others have options to provide
ddf8f6ad 43425 them.
43426
d8b43d9b 434272008-01-05 Robert Millan <rmh@aybabtu.com>
43428
43429 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
43430
2bff2de3 434312008-01-04 Christian Franke <franke@computer.org>
43432
43433 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
43434 of eisa_mmap.
43435
97eab917 434362008-01-03 Pavel Roskin <proski@gnu.org>
43437
43438 * kern/i386/linuxbios/init.c: Put "void" to all function
43439 declarations with no arguments.
43440 * kern/powerpc/ieee1275/init.c: Likewise.
43441 * term/i386/pc/at_keyboard.c: Likewise.
43442 * term/i386/pc/vga_text.c: Likewise.
43443 * util/grub-mkdevicemap.c: Likewise.
43444
b9416d00 434452008-01-02 Robert Millan <rmh@aybabtu.com>
43446
43447 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
43448 message when loaded image is out of bounds.
43449 (grub_multiboot_load_elf64): Likewise.
43450
92695df9 434512008-01-02 Pavel Roskin <proski@gnu.org>
43452
43453 * util/grub.d/10_linux.in: Try version without ".old" when
43454 looking for initrd. It's better to use initrd from the newer
43455 kernel of the same version than no initrd at all.
43456
d98d9cad 434572008-01-01 Robert Millan <rmh@aybabtu.com>
43458
43459 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
43460
dbfdce36 434612008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
43462
f19dbdb7 43463 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 43464 grub_video_get_active_render_target.
43465 (grub_video_adapter): Added unmap_color and get_active_render_target.
43466
f19dbdb7 43467 * video/video.c: Added grub_video_unmap_color and
dbfdce36 43468 grub_video_get_active_render_target.
43469 (grub_video_get_info): Changed method to accept NULL pointer as an
43470 argument to allow detection of active video adapter.
43471
43472 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
43473 grub_video_vbe_unmap_color_int.
43474 Added grub_video_vbe_unmap_color and
43475 grub_video_vbe_get_active_render_target.
43476 (grub_video_vbe_adapter): Added unmap_color and
43477 get_active_render_target.
43478
f19dbdb7 43479 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 43480 with grub_video_vbe_unmap_color_int.
43481
43482 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
43483 (DEFAULT_NORMAL_COLOR): Likewise.
43484 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
43485 (DEFAULT_FG_COLOR): Removed.
43486 (DEFAULT_BG_COLOR): Likewise.
43487 (DEFAULT_CURSOR_COLOR): Changed value.
43488 (grub_virtual_screen): Added standard_color_setting,
43489 normal_color_setting, highlight_color_setting and term_color.
43490 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
43491 (bitmap_width): Added.
43492 (bitmap_height): Likewise.
43493 (bitmap): Likewise.
43494 (set_term_color): Likewise.
43495 (grub_virtual_screen_setup): Changed to use new terminal coloring
43496 settings.
43497 (grub_gfxterm_init): Added init for bitmap.
43498 (grub_gfxterm_fini): Added destroy for bitmap.
43499 (redraw_screen_rect): Updated to use background bitmap and new
43500 terminal coloring.
43501 (scroll_up): Added optimization for case when there is no bitmap.
43502 (grub_gfxterm_cls): Fixed to use correct background color.
43503 (grub_virtual_screen_setcolorstate): Changed to use new terminal
43504 coloring.
43505 (grub_virtual_screen_setcolor): Likewise.
43506 (grub_virtual_screen_getcolor): Added.
43507 (grub_gfxterm_background_image_cmd): Likewise.
43508 (grub_video_term): Added setcolor and getcolor.
43509 (MOD_INIT): Added registration of background_image command.
43510 (MOD_TERM): Added unregistration for background_image command.
43511
c3c20931 435122007-12-30 Pavel Roskin <proski@gnu.org>
43513
43514 * loader/multiboot_loader.c: Fix multiboot command
43515 unregistration. Fix all typos in the word "multiboot".
43516
df266716 435172007-12-29 Pavel Roskin <proski@gnu.org>
94239199 43518
43519 * util/grub.d/10_linux.in: Refactor search for initrd. Add
43520 support for initrd names used in Fedora.
43521
fc6e896c 435222007-12-26 Bean <bean123ch@gmail.com>
43523
43524 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
43525 (cpio_mod_SOURCES): New variable.
43526 (cpio_mod_CFLAGS): Likewise.
43527 (cpio_mod_LDFLAGS): Likewise.
43528
43529 * fs/cpio.c: New file.
43530
43531 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
43532
43533 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43534
43535 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43536
43537 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43538
533110ad 435392007-12-25 Robert Millan <rmh@aybabtu.com>
43540
43541 * include/grub/term.h (struct grub_term): Add `getcolor' function.
43542 (grub_getcolor): New function.
43543
43544 * kern/term.c (grub_getcolor): New function.
43545 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
43546 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
43547 (print_entry): Set normal and highlight colors to
43548 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
43549 respectively, before printing and restore them to old
43550 values afterwards.
43551 (grub_menu_init_page): Likewise. Fill an additional colored space
43552 that would otherwise be left blank.
43553
43554 * term/efi/console.c (grub_console_getcolor): New function.
43555 (struct grub_console_term.getcolor): New variable.
43556 * term/i386/pc/console.c (grub_console_getcolor): New function.
43557 (struct grub_console_term.getcolor): New variable.
43558 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
43559 (struct grub_console_term.getcolor): New variable.
43560
43561 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
43562 (struct grub_console_term.setcolor): Remove variable.
43563 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
43564 (struct grub_console_term.setcolor): Remove variable.
43565 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
43566 (struct grub_console_term.setcolor): Remove variable.
43567 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
43568 (struct grub_console_term.setcolor): Remove variable.
43569
4931827f 435702007-12-25 Robert Millan <rmh@aybabtu.com>
43571
43572 * configure.ac: Search for possible unifont.hex locations, and
43573 define UNIFONT_HEX if found.
43574
43575 * Makefile.in (UNIFONT_HEX): Define variable.
43576 (DATA): Rename to ...
43577 (PKGLIB): ... this. Update all users.
43578 (PKGDATA): New variable.
43579 (pkgdata_IMAGES): Rename to ...
43580 (pkglib_IMAGES): ... this. Update all users.
43581 (pkgdata_MODULES): Rename to ...
43582 (pkglib_MODULES): ... this. Update all users.
43583 (pkgdata_PROGRAMS): Rename to ...
43584 (pkglib_PROGRAMS): ... this. Update all users.
43585 (pkgdata_DATA): Rename to ...
43586 (pkglib_DATA): ... this. Update all users.
43587 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
43588 (unicode.pff, ascii.pff): New rules.
43589 (all-local): Add `$(PKGDATA)' dependency.
43590 (install-local): Process `$(PKGDATA)'.
43591
43592 * util/update-grub_lib.in (font_path): Search for *.pff files in
43593 a few more locations, including `${pkgdata}'.
43594
57e57e31 435952007-12-23 Robert Millan <rmh@aybabtu.com>
43596
43597 Patch from Bean <bean123ch@gmail.com>:
43598 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
43599 `size'.
43600
4bc72aa9 436012007-12-21 Bean <bean123ch@gmail.com>
43602
43603 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
43604 (ntfscomp_mod_SOURCES): New variable.
43605 (ntfscomp_mod_CFLAGS): Likewise.
43606 (ntfscomp_mod_LDFLAGS): Likewise.
43607
43608 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
43609 (grub_probe_SOURCES): Likewise.
43610 (grub_emu_SOURCES): Likewise.
43611
43612 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43613 (grub_emu_SOURCES): Likewise.
43614
43615 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43616 (grub_emu_SOURCES): Likewise.
43617
43618 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43619 (grub_emu_SOURCES): Likewise.
43620
43621 * fs/ntfs.c (grub_ntfscomp_func): New variable.
43622 (read_run_list): Renamed to grub_ntfs_read_run_list.
43623 (decomp_nextvcn): Moved to ntfscomp.c.
43624 (decomp_getch): Likewise.
43625 (decomp_get16): Likewise.
43626 (decomp_block): Likewise.
43627 (read_block): Likewise.
43628 (read_data): Partially moved to ntfscomp.c.
43629 (fixup): Change unsigned to grub_uint16_t.
43630 (read_mft): Change unsigned long to grub_uint32_t.
43631 (read_attr): Likewise.
43632 (read_data): Likewise.
43633 (read_run_data): Likewise.
43634 (read_run_list): Likewise.
43635 (read_mft): Likewise.
43636
43637 * fs/ntfscomp.c: New file.
43638
43639 * include/grub/ntfs.h: New file.
43640
af680a87 436412007-12-16 Robert Millan <rmh@aybabtu.com>
43642
43643 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
43644 IDE disk check, since Linux is known to support 20 IDE disks.
43645 Reported by Colin Watson.
43646
84be7599 436472007-12-15 Bean <bean123ch@gmail.com>
43648
43649 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
43650 (lnxboot_img_SOURCES): New variable.
43651 (lnxboot_img_ASFLAGS): Likewise.
43652 (lnxboot_img_LDFLAGS): Likewise.
43653
43654 * boot/i386/pc/lnxboot.S: New file.
43655
6af9db01 436562007-11-24 Pavel Roskin <proski@gnu.org>
43657
43658 * configure.ac: Test if '--build-id=none' is supported by the
43659 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
43660 objcopy to generate incorrect binary files (binutils
43661 2.17.50.0.18-1 as shipped by Fedora 8).
43662 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
43663 linking, so that build ID doesn't break the test.
43664
7361cfe6 436652007-11-24 Pavel Roskin <proski@gnu.org>
43666
43667 * include/grub/i386/time.h: use "void" in the argument list
43668 of grub_cpu_idle().
43669 * include/grub/powerpc/time.h: Likewise.
43670 * include/grub/sparc64/time.h: Likewise.
43671
1593e10c 436722007-11-18 Christian Franke <franke@computer.org>
43673
43674 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
43675 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
43676 This fixes the problem that function keys did not work in grub-emu.
43677
3b8db1a8 436782007-11-18 Christian Franke <franke@computer.org>
43679
43680 * disk/host.c (grub_host_open): Remove attribute unused from
43681 name parameter. Add check for "host". This fixes the problem
43682 that grub-emu does not find partitions.
43683
2e29408d 436842007-11-18 Christian Franke <franke@computer.org>
43685
43686 * util/hostfs.c (is_dir): New function.
43687 (grub_hostfs_dir): Handle missing dirent.d_type case.
43688 (grub_hostfs_read): Add missing fseek().
43689 (grub_hostfs_label): Clear label pointer. This fixes a crash
43690 of grub-emu on "ls (host)".
43691
398cd047 436922007-11-18 Christian Franke <franke@computer.org>
43693
43694 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
43695 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
43696 to 64 bit boundary by default.
43697
c405c391 436982007-11-18 Bean <bean123ch@gmail.com>
43699
43700 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
43701 (hexdump_mod_SOURCES): New variable.
43702 (hexdump_mod_CFLAGS): Likewise.
43703 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 43704
c405c391 43705 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43706
43707 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43708
43709 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43710
43711 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43712
43713 * include/grub/hexdump.h: New file.
43714
43715 * commands/hexdump.c: New file.
43716
5cced7fd 437172007-11-10 Robert Millan <rmh@aybabtu.com>
43718
43719 * commands/i386/pc/play.c (beep_off): Switch order of arguments
43720 in grub_outb() calls.
43721 (beep_on): Likewise.
43722
8b714eb0 437232007-11-10 Christian Franke <franke@computer.org>
43724
43725 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
43726 (grub_menu_run): Likewise.
43727
ce0f1839 437282007-11-10 Robert Millan <rmh@aybabtu.com>
43729
43730 * include/grub/i386/efi/machine.h: New file.
43731 * include/grub/i386/linuxbios/machine.h: Likewise.
43732 * include/grub/i386/pc/machine.h: Likewise.
43733 * include/grub/powerpc/ieee1275/machine.h: Likewise.
43734 * include/grub/sparc64/ieee1275/machine.h: Likewise.
43735
43736 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
43737 (serial_hw_io_addr): New variable.
43738 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
43739 instead of `(unsigned short *) 0x400'.
43740
270c237d 437412007-11-10 Bean <bean123ch@gmail.com>
43742
43743 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
43744
a87783bf 437452007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43746
43747 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
43748 (vga_mod_SOURCES): Added.
43749 (vga_mod_CFLAGS): Likewise.
43750 (vga_mod_LDFLAGS): Likewise.
43751
43752 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
43753 grub_outb() calls.
43754 (set_map_mask): Likewise.
43755 (set_read_map): Likewise.
43756 (set_read_address): Likewise.
43757 (vga_font): Removed variable.
43758 (get_vga_glyph): Removed function.
43759 (invalidate_char): Likewise.
43760 (write_char): Changed to use grub_font_get_glyph() for font
43761 information.
43762 (grub_vga_putchar): Likewise.
43763 (grub_vga_getcharwidth): Likewise.
43764
6433b448 437652007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43766
43767 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
43768 flags.
43769 (pxeboot_img_LDFLAGS): Likewise.
43770 (diskboot_img_LDFLAGS): Likewise.
43771 (kernel_img_LDFLAGS): Likewise.
43772
49178511 437732007-11-06 Robert Millan <rmh@aybabtu.com>
43774
43775 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
43776 in grub_outb() calls.
43777 (serial_hw_init): Likewise.
43778
53b052de 437792007-11-05 Robert Millan <rmh@aybabtu.com>
43780
43781 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
43782 spaces. Skip non-regular files.
43783
5ab33bba 437842007-11-05 Robert Millan <rmh@aybabtu.com>
43785
43786 * kern/disk.c (grub_disk_firmware_fini)
43787 (grub_disk_firmware_is_tainted): New variables.
43788
43789 * include/grub/disk.h (grub_disk_firmware_fini)
43790 (grub_disk_firmware_is_tainted): Likewise.
43791
43792 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
43793 (grub_disk_biosdisk_fini): ... to here.
43794 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
43795 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
43796 is set. Register grub_disk_biosdisk_fini() in
43797 `grub_disk_firmware_fini'.
43798
43799 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
43800 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
43801 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
43802 to finish existing firmware disk interface.
43803
43804 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
43805 (ata_mod_SOURCES): New variable.
43806 (ata_mod_CFLAGS): Likewise.
43807 (ata_mod_LDFLAGS): Likewise.
43808
0149ab7c 438092007-11-05 Robert Millan <rmh@aybabtu.com>
43810
43811 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
43812 (grub_ata_wait): Reimplement using grub_millisleep().
43813
43814 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
43815 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
43816
be7ac41e 438172007-11-03 Marco Gerards <marco@gnu.org>
43818
43819 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
43820 (CRTC_ADDR_PORT): New macro.
43821 (CRTC_DATA_PORT): Likewise.
43822 (CRTC_CURSOR): Likewise.
43823 (CRTC_CURSOR_ADDR_HIGH): Likewise.
43824 (CRTC_CURSOR_ADDR_LOW): Likewise.
43825 (update_cursor): New function.
43826 (grub_console_real_putchar): Call `update_cursor'.
43827 (grub_console_gotoxy): Likewise.
43828 (grub_console_cls): Set the default color when clearing the
43829 screen.
43830 (grub_console_setcursor): Implemented.
43831
bb06ab2e 438322007-11-03 Marco Gerards <marco@gnu.org>
43833
43834 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
43835 become activate.
43836 (grub_ata_pio_write): Likewise.
43837
43838 (grub_atapi_identify): Wait after issuing an ATA command.
43839 (grub_atapi_packet): Likewise.
43840 (grub_ata_identify): Likewise.
43841 (grub_ata_readwrite): Likewise.
43842
cf8f780b 438432007-11-03 Marco Gerards <marco@gnu.org>
43844
43845 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
43846 (grub_ata_pio_write): Likewise.
43847 (grub_ata_readwrite): Use `grub_error', instead of
43848 returning `grub_errno'.
43849
ed649e54 438502007-11-03 Marco Gerards <marco@gnu.org>
43851
43852 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
43853 grub_ata_pio_write once for every single sector, instead of for
43854 multiple sectors.
43855
ca25d8f0 438562007-10-31 Robert Millan <rmh@aybabtu.com>
43857
43858 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
43859
43860 * conf/i386-linuxbios.rmk: New file.
43861
43862 * kern/i386/pc/hardware.c: Likewise.
43863 * term/i386/pc/at_keyboard.c: Likewise.
43864 * term/i386/pc/vga_text.c: Likewise.
43865
43866 * include/grub/i386/linuxbios/boot.h: Likewise.
43867 * include/grub/i386/linuxbios/console.h: Likewise.
43868 * include/grub/i386/linuxbios/init.h: Likewise.
43869 * include/grub/i386/linuxbios/kernel.h: Likewise.
43870 * include/grub/i386/linuxbios/loader.h: Likewise.
43871 * include/grub/i386/linuxbios/memory.h: Likewise.
43872 * include/grub/i386/linuxbios/serial.h: Likewise.
43873 * include/grub/i386/linuxbios/time.h: Likewise.
43874
43875 * kern/i386/linuxbios/init.c: Likewise.
43876 * kern/i386/linuxbios/startup.S: Likewise.
43877 * kern/i386/linuxbios/table.c: Likewise.
43878
e911ecc1 438792007-10-31 Marco Gerards <marco@gnu.org>
43880
43881 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
43882 (ata_mod_SOURCES): New variable.
43883 (ata_mod_CFLAGS): Likewise.
43884 (ata_mod_LDFLAGS): Likewise.
43885
43886 * disk/ata.c: New file.
43887
43888 * include/grub/disk.h (grub_disk_dev_id): Add
43889 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 43890
7f66d0e0 438912007-10-31 Robert Millan <rmh@aybabtu.com>
43892
43893 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
43894 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
43895
43896 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
43897 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
43898
43899 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
43900 `<grub/types.h>'.
43901
43902 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
43903
5cd7dd46 439042007-10-27 Robert Millan <rmh@aybabtu.com>
43905
3236ca65 43906 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 43907
2ebfc90f 439082007-10-22 Robert Millan <rmh@aybabtu.com>
43909
43910 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
43911 `"../realmode.S"'.
43912 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
43913
73fcb0f3 439142007-10-22 Robert Millan <rmh@aybabtu.com>
43915
43916 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
43917 (pkgdata_MODULES): Add `biosdisk.mod'.
43918 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
43919 variables.
43920
43921 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
43922 (grub_biosdisk_init): Replace with ...
43923 (GRUB_MOD_INIT(biosdisk)): ... this.
43924 (grub_biosdisk_fini): Replace with ...
43925 (GRUB_MOD_FINI(biosdisk)): ... this.
43926
43927 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
43928 (grub_machine_init): Remove call to grub_biosdisk_init().
43929 (grub_machine_fini): Remove call to grub_machine_fini().
43930
43931 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
43932
3381d274 439332007-10-22 Robert Millan <rmh@aybabtu.com>
43934
43935 * include/grub/time.h: New file.
43936 * include/grub/i386/time.h: Likewise.
43937 * include/grub/powerpc/time.h: Likewise.
43938 * include/grub/sparc64/time.h: Likewise.
43939
43940 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
43941 instances to ...
43942 (KERNEL_MACHINE_TIME_HEADER): ... this.
43943 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
43944 instances to ...
43945 (KERNEL_MACHINE_TIME_HEADER): ... this.
43946 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
43947 instances to ...
43948 (KERNEL_MACHINE_TIME_HEADER): ... this.
43949
43950 * kern/i386/efi/init.c: Include `<grub/time.h>'.
43951 (grub_millisleep): New function.
43952 * kern/i386/pc/init.c: Include `<grub/time.h>'.
43953 (grub_millisleep): New function.
43954 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
43955 Remove `grub/machine/time.h' include.
43956 (grub_millisleep): New function.
43957 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
43958 Remove `grub/machine/time.h' include.
43959 (grub_millisleep): New function.
43960
43961 * include/grub/misc.h (grub_div_roundup): New function.
43962
43963 * kern/misc.c: Include `<grub/time.h>'.
43964 (grub_millisleep_generic): New function.
43965
43966 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
43967 Add `time.h'.
43968 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
43969 Add `time.h'.
43970 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
43971 `machine/time.h'. Add `time.h'.
43972 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43973
a39a0312 439742007-10-21 Robert Millan <rmh@aybabtu.com>
43975
43976 * include/grub/misc.h (grub_max): New function.
43977
2aad70e2 439782007-10-21 Robert Millan <rmh@aybabtu.com>
43979
43980 * util/misc.c (grub_util_info): Call fflush() before returning.
43981
54b71c4b 439822007-10-20 Robert Millan <rmh@aybabtu.com>
43983
43984 * genmk.rb (Image): Copy `extra_flags' from here ...
43985 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
43986
43987 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
43988 to `argc' and `args' arguments.
43989
a979f513 439902007-10-17 Robert Millan <rmh@aybabtu.com>
43991
43992 * kern/i386/loader.S: New file.
43993
43994 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
43995 * kern/i386/loader.S (grub_linux_prot_size)... to here.
43996 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
43997 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
43998 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
43999 * kern/i386/loader.S (grub_linux_real_addr)... to here.
44000 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
44001 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
44002 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
44003 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
44004 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
44005 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
44006 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
44007 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
44008
44009 * kern/i386/realmode.S: New file.
44010
44011 * kern/i386/pc/startup.S (protstack): Moved from here ...
44012 * kern/i386/realmode.S (protstack)... to here.
44013 * kern/i386/pc/startup.S (gdt): Moved from here ...
44014 * kern/i386/realmode.S (gdt)... to here.
44015 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
44016 * kern/i386/realmode.S (prot_to_real)... to here.
44017
44018 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
44019 `kern/i386/realmode.S'.
44020
825fc8fd 440212007-10-17 Robert Millan <rmh@aybabtu.com>
44022
44023 * include/grub/i386/loader.h: New file.
44024
44025 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
44026 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44027 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44028 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44029 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
44030 * include/grub/i386/loader.h (grub_linux_prot_size)
44031 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44032 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44033 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44034 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
44035
44036 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
44037
e179b2f4 440382007-10-15 Robert Millan <rmh@aybabtu.com>
44039
44040 * normal/misc.c (grub_normal_print_device_info): Do not probe for
44041 filesystem when dev->disk is unset.
44042 Do probe for filesystem even when dev->disk->has_partitions is set.
44043 In case a filesystem is found, always report it.
44044 In case it isn't, if dev->disk->has_partitions is set, report that
44045 a partition table was found instead of reporting that no filesystem
44046 could be identified.
44047
5db82af6 440482007-10-12 Robert Millan <rmh@aybabtu.com>
44049
44050 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
44051 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
44052
68f6ac74 44053 * include/grub/types.h (grub_host_to_target16): New macro.
44054 (grub_host_to_target32): Likewise.
44055 (grub_host_to_target64): Likewise.
44056 (grub_target_to_host16): Likewise.
44057 (grub_target_to_host32): Likewise.
44058 (grub_target_to_host64): Likewise.
5db82af6 44059
44060 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
44061 Renamed from to ...
44062 (GRUB_MOD_ALIGN): ...this. Update all users.
44063
68f6ac74 44064 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
44065 grub_host_to_target32.
44066 Replace grub_be_to_cpu32 with grub_target_to_host32.
44067 (load_modules): Likewise.
44068 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
44069 Replace grub_be_to_cpu32 with grub_target_to_host32.
44070 Replace grub_cpu_to_be16 with grub_host_to_target16.
44071 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 44072
3cf497cc 440732007-10-12 Robert Millan <rmh@aybabtu.com>
44074
44075 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
44076 * util/elf/grub-mkimage.c: ... here.
44077
44078 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
44079 `util/powerpc/ieee1275/grub-mkimage.c'.
44080
c8cc3692 440812007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 44082
c8cc3692 44083 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
44084 and make it easier to figure out.
44085 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
44086 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
44087 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
44088 leave us with less than HEAP_MIN_SIZE total heap.
44089 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 44090
5c58b791 440912007-10-03 Robert Millan <rmh@aybabtu.com>
44092
44093 * include/grub/i386/io.h: New file.
44094 * commands/i386/pc/play.c (inb): Removed.
44095 (outb): Removed.
44096 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44097 with grub_outb().
afcd2ef8 44098 * term/i386/pc/serial.c (inb): Removed.
44099 (outb): Removed.
44100 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44101 with grub_outb().
44102 * term/i386/pc/vga.c (inb): Removed.
44103 (outb): Removed.
44104 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44105 with grub_outb().
5c58b791 44106
1a477ed6 441072007-10-02 Robert Millan <rmh@aybabtu.com>
44108
44109 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
44110 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44111 Reported by Marcin Kurek.
44112
6b5d80fa 441132007-09-07 Robert Millan <rmh@aybabtu.com>
44114
44115 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
44116 SmartFirmware version updates (as released by Sven Luther), and avoid
44117 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
44118 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
44119 known broken.
44120
5618afbf 441212007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44122
44123 From Hitoshi Ozeki:
44124 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
44125 when merging two regions.
44126
6139dcd9 441272007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44128
508e39ee 44129 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
44130 * normal/completion.c (grub_normal_do_completion): Likewise.
44131 Reported by Hitoshi Ozeki.
44132
441332007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 44134
6139dcd9 44135 Do not use devices at boot in chainloading.
f19dbdb7 44136
6139dcd9 44137 * loader/i386/pc/chainloader.c (boot_drive): New variable.
44138 (boot_part_addr): Likewise.
44139 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
44140 with BOOT_DRIVE and BOOT_PART_ADDR.
44141 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
44142 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
44143
38da6516 441442007-08-29 Robert Millan <rmh@aybabtu.com>
44145
44146 Patch from Simon Peter <dn.tlp@gmx.net>:
44147 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
44148 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
44149 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
44150 util/i386/pc/grub-setup.c_DEPENDENCIES.
44151 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
44152 util/grub-probe.c_DEPENDENCIES.
44153 * conf/powerpc-ieee1275.rmk: Likewise.
44154
29d0928c 441552007-08-28 Robert Millan <rmh@aybabtu.com>
44156
44157 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
44158 to tell grub-mkdevicemap how to name devices.
44159 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
44160 feature).
44161
44162 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
44163 util/i386/get_disk_name.c.
44164 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
44165 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
44166 util/ieee1275/get_disk_name.c.
44167
44168 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
44169
44170 * DISTLIST: Add util/i386/get_disk_name.c and
44171 util/ieee1275/get_disk_name.c.
44172
44173 * util/grub-mkdevicemap.c: Replace device naming logic with
44174 grub_util_get_disk_name() calls.
44175
5a0d3cca 441762007-08-20 Robert Millan <rmh@aybabtu.com>
44177
44178 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
44179 (so that it works for both plural and singular quantities).
44180
8b72db2f 441812007-08-05 Robert Millan <rmh@aybabtu.com>
44182
44183 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
44184 so that [xz] isn't taken into account when determining order.
44185
352466bf 441862007-08-02 Marco Gerards <marco@gnu.org>
44187
44188 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
44189 `include/multiboot2.h', `include/grub/elfload.h',
44190 `include/multiboot.h', `include/grub/multiboot.h',
44191 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
44192 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
44193 `kern/elf.c', `loader/multiboot_loader.c',
44194 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
44195 `loader/i386/pc/multiboot2.c',
44196 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
44197 `util/i386/pc/grub-mkrescue.in'. Remove
44198 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
44199 `include/grub/i386/pc/util/biosdisk.h' and
44200 `include/grub/powerpc/ieee1275/multiboot.h'.
44201
8f096014 442022007-08-02 Bean <bean123ch@gmail.com>
44203
44204 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
44205 (ntfs_mod_SOURCES): New variable.
44206 (ntfs_mod_CFLAGS): Likewise.
44207 (ntfs_mod_LDFLAGS): Likewise.
44208
44209 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
44210 (grub_probe_SOURCES): Likewise.
44211 (grub_emu_SOURCES): Likewise.
44212
44213 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44214 (grub_emu_SOURCES): Likewise.
44215
44216 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44217 (grub_emu_SOURCES): Likewise.
f19dbdb7 44218
8f096014 44219 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
44220
44221 * fs/ntfs.c: New file.
44222
9959f7db 442232007-08-02 Bean <bean123ch@gmail.com>
44224
44225 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
44226
44227 * file.h (grub_file): Likewise.
44228
44229 * fshelp.h (grub_fshelp_read_file): Likewise.
44230
44231 * util/i386/pc/grub-setup.c (setup): Likewise.
44232 (save_first_sector): Likewise.
44233 (save_blocklists): Likewise.
f19dbdb7 44234
9959f7db 44235 * fs/affs.c (grub_affs_read_file): Likewise.
44236
44237 * fs/ext2.c (grub_ext2_read_file): Likewise.
44238
44239 * fs/fat.c (grub_fat_read_data): Likewise.
44240
44241 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
44242
44243 * fs/hfs.c (grub_hfs_read_file): Likewise.
44244
44245 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
44246
44247 * fs/jfs.c (grub_jfs_read_file): Likewise.
44248
44249 * fs/minix.c (grub_minix_read_file): Likewise.
44250
44251 * fs/sfs.c (grub_sfs_read_file): Likewise.
44252
44253 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 44254
9959f7db 44255 * fs/xfs.c (grub_xfs_read_file): Likewise.
44256
44257 * command/blocklist.c (read_blocklist): Likewise.
44258 (print_blocklist): Likewise.
44259
0a203f83 442602007-08-02 Marco Gerards <marco@gnu.org>
44261
44262 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
44263 `util/hostfs.c'.
44264
44265 * disk/host.c: New file.
44266
44267 * util/hostfs.c: Likewise.
44268
44269 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
44270 return `GRUB_ERR_BAD_FS'.
44271 * fs/sfs.c (grub_sfs_mount): Likewise.
44272 * fs/xfs.c (grub_xfs_mount): Likewise.
44273
44274 * include/grub/disk.h (enum grub_disk_dev_id): Add
44275 `GRUB_DISK_DEVICE_HOST_ID'.
44276
44277 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
44278
e5dfe777 442792007-07-24 Jerone Young <jerone@gmail.com>
44280
f19dbdb7 44281 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 44282 modules for compilation.
44283 * conf/powerpc-ieee1275.rmk: Likewise.
44284
44285 * include/multiboot.h: Move multiboot definitions to one file. Rename
44286 many definitions to not get grub specific.
44287 * include/multiboot2.h: Create header with multiboot 2 definitions.
44288 * include/grub/multiboot.h: Header for grub specific function
44289 prototypes and definitions.
44290 * include/grub/multiboot2.h: Likewise.
44291 * include/grub/multiboot_loader.h: Likewise.
44292 * include/grub/i386/pc/multiboot.h: Removed.
44293 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
44294
44295 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
44296 and 2 to allow for one multiboot and module commands.
44297 * loader/multiboot2.c: Add multiboot2 functionality.
44298 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
44299 and definition names.
44300 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
44301 2 functions.
44302 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
44303 ieee1275 specific multiboot2 code.
44304
44305 * kern/i386/pc/startup.S: Change headers and definition names for
44306 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
44307
daf0f0ba 443082007-07-22 Robert Millan <rmh@aybabtu.com>
44309
44310 * geninitheader.sh: Process file specified in first parameter rather
44311 than hardcoding grub_modules_init.lst.
fe6b695a 44312 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 44313 than hardcoding grub_modules_init.h.
44314
44315 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
44316 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
44317 grub_probe_init.[ch] and grub_setup_init.[ch].
44318
44319 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
44320 grub_modules_init.h with grub_emu_init.h.
44321 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
44322 grub_probe_init.[ch] files.
44323 * conf/i386-efi.rmk: Likewise.
44324 * conf/i386-pc.rmk: Likewise.
44325 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
44326 grub_setup_init.[ch] files.
44327
44328 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
44329 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
44330 to initialize modules rather than a list of hardcoded functions.
44331 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
44332 grub_init_all() to initialize modules rather than a list of hardcoded
44333 functions.
44334
54cdc1cc 443352007-07-22 Robert Millan <rmh@aybabtu.com>
44336
44337 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
44338 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
44339
ad0686cc 443402007-07-22 Robert Millan <rmh@aybabtu.com>
44341
44342 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
44343 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
44344 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
44345 flag when running on SmartFirmware.
44346 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
44347 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
44348 was set.
44349
44350 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44351 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
44352 rather than decreasing it.
44353
44354 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
44355 there's not enough space to do it, fail in the same way as when it
44356 can't be done because there are no partitions.
44357
44358 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
44359 when nvsetenv failed.
44360
969c02ec 443612007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44362
44363 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
44364 because this rule is automatically generated.
44365 (grub-mkrescue): Removed for the same reason as above.
44366
5a79f472 443672007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44368
44369 Migrate to GNU General Public License Version 3.
f19dbdb7 44370
5a79f472 44371 * COPYING: Replaced with the plain text version of GPLv3.
44372
44373 * config.guess: Updated from gnulib.
44374 * config.sub: Likewise.
44375
44376 * geninit.sh: Output a GPLv3 copyright notice.
44377 * geninitheader.sh: Likewise.
44378 * genmodsrc.sh: Likewise.
44379 * gensymlist.sh.in: Likewise.
44380
44381 * boot/i386/pc/boot.S: Upgraded to GPLv3.
44382 * boot/i386/pc/diskboot.S: Likewise.
44383 * boot/i386/pc/pxeboot.S: Likewise.
44384 * commands/blocklist.c: Likewise.
44385 * commands/boot.c: Likewise.
44386 * commands/cat.c: Likewise.
44387 * commands/cmp.c: Likewise.
44388 * commands/configfile.c: Likewise.
44389 * commands/echo.c: Likewise.
44390 * commands/help.c: Likewise.
44391 * commands/ls.c: Likewise.
44392 * commands/search.c: Likewise.
44393 * commands/terminal.c: Likewise.
44394 * commands/test.c: Likewise.
44395 * commands/videotest.c: Likewise.
44396 * commands/i386/cpuid.c: Likewise.
44397 * commands/i386/pc/halt.c: Likewise.
44398 * commands/i386/pc/play.c: Likewise.
44399 * commands/i386/pc/reboot.c: Likewise.
44400 * commands/i386/pc/vbeinfo.c: Likewise.
44401 * commands/i386/pc/vbetest.c: Likewise.
44402 * commands/ieee1275/halt.c: Likewise.
44403 * commands/ieee1275/reboot.c: Likewise.
44404 * commands/ieee1275/suspend.c: Likewise.
44405 * disk/loopback.c: Likewise.
44406 * disk/lvm.c: Likewise.
44407 * disk/raid.c: Likewise.
44408 * disk/efi/efidisk.c: Likewise.
44409 * disk/i386/pc/biosdisk.c: Likewise.
44410 * disk/ieee1275/ofdisk.c: Likewise.
44411 * font/manager.c: Likewise.
44412 * fs/affs.c: Likewise.
44413 * fs/ext2.c: Likewise.
44414 * fs/fat.c: Likewise.
44415 * fs/fshelp.c: Likewise.
44416 * fs/hfs.c: Likewise.
44417 * fs/hfsplus.c: Likewise.
44418 * fs/iso9660.c: Likewise.
44419 * fs/jfs.c: Likewise.
44420 * fs/minix.c: Likewise.
44421 * fs/sfs.c: Likewise.
44422 * fs/ufs.c: Likewise.
44423 * fs/xfs.c: Likewise.
44424 * hello/hello.c: Likewise.
44425 * include/grub/acorn_filecore.h: Likewise.
44426 * include/grub/arg.h: Likewise.
44427 * include/grub/bitmap.h: Likewise.
44428 * include/grub/boot.h: Likewise.
44429 * include/grub/cache.h: Likewise.
44430 * include/grub/device.h: Likewise.
44431 * include/grub/disk.h: Likewise.
44432 * include/grub/dl.h: Likewise.
44433 * include/grub/elfload.h: Likewise.
44434 * include/grub/env.h: Likewise.
44435 * include/grub/err.h: Likewise.
44436 * include/grub/file.h: Likewise.
44437 * include/grub/font.h: Likewise.
44438 * include/grub/fs.h: Likewise.
44439 * include/grub/fshelp.h: Likewise.
44440 * include/grub/gzio.h: Likewise.
44441 * include/grub/hfs.h: Likewise.
44442 * include/grub/kernel.h: Likewise.
44443 * include/grub/loader.h: Likewise.
44444 * include/grub/lvm.h: Likewise.
44445 * include/grub/misc.h: Likewise.
44446 * include/grub/mm.h: Likewise.
44447 * include/grub/net.h: Likewise.
44448 * include/grub/normal.h: Likewise.
44449 * include/grub/parser.h: Likewise.
44450 * include/grub/partition.h: Likewise.
44451 * include/grub/pc_partition.h: Likewise.
44452 * include/grub/raid.h: Likewise.
44453 * include/grub/rescue.h: Likewise.
44454 * include/grub/script.h: Likewise.
44455 * include/grub/setjmp.h: Likewise.
44456 * include/grub/symbol.h: Likewise.
44457 * include/grub/term.h: Likewise.
44458 * include/grub/terminfo.h: Likewise.
44459 * include/grub/tparm.h: Likewise.
44460 * include/grub/types.h: Likewise.
44461 * include/grub/video.h: Likewise.
44462 * include/grub/efi/api.h: Likewise.
44463 * include/grub/efi/chainloader.h: Likewise.
44464 * include/grub/efi/console.h: Likewise.
44465 * include/grub/efi/console_control.h: Likewise.
44466 * include/grub/efi/disk.h: Likewise.
44467 * include/grub/efi/efi.h: Likewise.
44468 * include/grub/efi/pe32.h: Likewise.
44469 * include/grub/efi/time.h: Likewise.
44470 * include/grub/i386/linux.h: Likewise.
44471 * include/grub/i386/setjmp.h: Likewise.
44472 * include/grub/i386/types.h: Likewise.
44473 * include/grub/i386/efi/kernel.h: Likewise.
44474 * include/grub/i386/efi/loader.h: Likewise.
44475 * include/grub/i386/efi/time.h: Likewise.
44476 * include/grub/i386/pc/biosdisk.h: Likewise.
44477 * include/grub/i386/pc/boot.h: Likewise.
44478 * include/grub/i386/pc/chainloader.h: Likewise.
44479 * include/grub/i386/pc/console.h: Likewise.
44480 * include/grub/i386/pc/init.h: Likewise.
44481 * include/grub/i386/pc/kernel.h: Likewise.
44482 * include/grub/i386/pc/loader.h: Likewise.
44483 * include/grub/i386/pc/memory.h: Likewise.
44484 * include/grub/i386/pc/multiboot.h: Likewise.
44485 * include/grub/i386/pc/serial.h: Likewise.
44486 * include/grub/i386/pc/time.h: Likewise.
44487 * include/grub/i386/pc/vbe.h: Likewise.
44488 * include/grub/i386/pc/vbeblit.h: Likewise.
44489 * include/grub/i386/pc/vbefill.h: Likewise.
44490 * include/grub/i386/pc/vbeutil.h: Likewise.
44491 * include/grub/i386/pc/vga.h: Likewise.
44492 * include/grub/ieee1275/ieee1275.h: Likewise.
44493 * include/grub/ieee1275/ofdisk.h: Likewise.
44494 * include/grub/powerpc/libgcc.h: Likewise.
44495 * include/grub/powerpc/setjmp.h: Likewise.
44496 * include/grub/powerpc/types.h: Likewise.
44497 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
44498 * include/grub/powerpc/ieee1275/console.h: Likewise.
44499 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
44500 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
44501 * include/grub/powerpc/ieee1275/loader.h: Likewise.
44502 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
44503 * include/grub/powerpc/ieee1275/time.h: Likewise.
44504 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
44505 * include/grub/sparc64/libgcc.h: Likewise.
44506 * include/grub/sparc64/setjmp.h: Likewise.
44507 * include/grub/sparc64/types.h: Likewise.
44508 * include/grub/sparc64/ieee1275/console.h: Likewise.
44509 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44510 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44511 * include/grub/sparc64/ieee1275/time.h: Likewise.
44512 * include/grub/util/biosdisk.h: Likewise.
44513 * include/grub/util/getroot.h: Likewise.
44514 * include/grub/util/lvm.h: Likewise.
44515 * include/grub/util/misc.h: Likewise.
44516 * include/grub/util/raid.h: Likewise.
44517 * include/grub/util/resolve.h: Likewise.
44518 * io/gzio.c: Likewise.
44519 * kern/device.c: Likewise.
44520 * kern/disk.c: Likewise.
44521 * kern/dl.c: Likewise.
44522 * kern/elf.c: Likewise.
44523 * kern/env.c: Likewise.
44524 * kern/err.c: Likewise.
44525 * kern/file.c: Likewise.
44526 * kern/fs.c: Likewise.
44527 * kern/loader.c: Likewise.
44528 * kern/main.c: Likewise.
44529 * kern/misc.c: Likewise.
44530 * kern/mm.c: Likewise.
44531 * kern/parser.c: Likewise.
44532 * kern/partition.c: Likewise.
44533 * kern/rescue.c: Likewise.
44534 * kern/term.c: Likewise.
44535 * kern/efi/efi.c: Likewise.
44536 * kern/efi/init.c: Likewise.
44537 * kern/efi/mm.c: Likewise.
44538 * kern/i386/dl.c: Likewise.
44539 * kern/i386/efi/init.c: Likewise.
44540 * kern/i386/efi/startup.S: Likewise.
44541 * kern/i386/pc/init.c: Likewise.
44542 * kern/i386/pc/lzo1x.S: Likewise.
44543 * kern/i386/pc/startup.S: Likewise.
44544 * kern/ieee1275/ieee1275.c: Likewise.
44545 * kern/powerpc/cache.S: Likewise.
44546 * kern/powerpc/dl.c: Likewise.
44547 * kern/powerpc/ieee1275/cmain.c: Likewise.
44548 * kern/powerpc/ieee1275/crt0.S: Likewise.
44549 * kern/powerpc/ieee1275/init.c: Likewise.
44550 * kern/powerpc/ieee1275/openfw.c: Likewise.
44551 * kern/sparc64/cache.S: Likewise.
44552 * kern/sparc64/dl.c: Likewise.
44553 * kern/sparc64/ieee1275/init.c: Likewise.
44554 * kern/sparc64/ieee1275/openfw.c: Likewise.
44555 * loader/efi/chainloader.c: Likewise.
44556 * loader/efi/chainloader_normal.c: Likewise.
44557 * loader/i386/efi/linux.c: Likewise.
44558 * loader/i386/efi/linux_normal.c: Likewise.
44559 * loader/i386/pc/chainloader.c: Likewise.
44560 * loader/i386/pc/chainloader_normal.c: Likewise.
44561 * loader/i386/pc/linux.c: Likewise.
44562 * loader/i386/pc/linux_normal.c: Likewise.
44563 * loader/i386/pc/multiboot.c: Likewise.
44564 * loader/i386/pc/multiboot_normal.c: Likewise.
44565 * loader/powerpc/ieee1275/linux.c: Likewise.
44566 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
44567 * normal/arg.c: Likewise.
44568 * normal/cmdline.c: Likewise.
44569 * normal/command.c: Likewise.
44570 * normal/completion.c: Likewise.
44571 * normal/execute.c: Likewise.
44572 * normal/function.c: Likewise.
44573 * normal/lexer.c: Likewise.
44574 * normal/main.c: Likewise.
44575 * normal/menu.c: Likewise.
44576 * normal/menu_entry.c: Likewise.
44577 * normal/misc.c: Likewise.
44578 * normal/parser.y: Likewise.
44579 * normal/script.c: Likewise.
44580 * normal/i386/setjmp.S: Likewise.
44581 * normal/powerpc/setjmp.S: Likewise.
44582 * normal/sparc64/setjmp.S: Likewise.
44583 * partmap/acorn.c: Likewise.
44584 * partmap/amiga.c: Likewise.
44585 * partmap/apple.c: Likewise.
44586 * partmap/gpt.c: Likewise.
44587 * partmap/pc.c: Likewise.
44588 * partmap/sun.c: Likewise.
44589 * term/gfxterm.c: Likewise.
44590 * term/terminfo.c: Likewise.
44591 * term/efi/console.c: Likewise.
44592 * term/i386/pc/console.c: Likewise.
44593 * term/i386/pc/serial.c: Likewise.
44594 * term/i386/pc/vesafb.c: Likewise.
44595 * term/i386/pc/vga.c: Likewise.
44596 * term/ieee1275/ofconsole.c: Likewise.
44597 * util/biosdisk.c: Likewise.
44598 * util/console.c: Likewise.
44599 * util/genmoddep.c: Likewise.
44600 * util/getroot.c: Likewise.
44601 * util/grub-emu.c: Likewise.
44602 * util/grub-mkdevicemap.c: Likewise.
44603 * util/grub-probe.c: Likewise.
44604 * util/lvm.c: Likewise.
44605 * util/misc.c: Likewise.
44606 * util/raid.c: Likewise.
44607 * util/resolve.c: Likewise.
44608 * util/update-grub.in: Likewise.
44609 * util/update-grub_lib.in: Likewise.
44610 * util/grub.d/00_header.in: Likewise.
44611 * util/grub.d/10_hurd.in: Likewise.
44612 * util/grub.d/10_linux.in: Likewise.
44613 * util/i386/efi/grub-install.in: Likewise.
44614 * util/i386/efi/grub-mkimage.c: Likewise.
44615 * util/i386/pc/grub-install.in: Likewise.
44616 * util/i386/pc/grub-mkimage.c: Likewise.
44617 * util/i386/pc/grub-mkrescue.in: Likewise.
44618 * util/i386/pc/grub-setup.c: Likewise.
44619 * util/i386/pc/misc.c: Likewise.
44620 * util/powerpc/ieee1275/grub-install.in: Likewise.
44621 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
44622 * util/powerpc/ieee1275/misc.c: Likewise.
44623 * video/bitmap.c: Likewise.
44624 * video/video.c: Likewise.
44625 * video/i386/pc/vbe.c: Likewise.
44626 * video/i386/pc/vbeblit.c: Likewise.
44627 * video/i386/pc/vbefill.c: Likewise.
44628 * video/i386/pc/vbeutil.c: Likewise.
44629 * video/readers/tga.c: Likewise.
44630
3572d015 446312007-07-02 Robert Millan <rmh@aybabtu.com>
44632
44633 * conf/i386-efi.rmk: Replace obsolete reference to
44634 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
44635 with util/getroot.c.
44636 * conf/powerpc-ieee1275.rmk: Likewise.
44637 * conf/sparc64-ieee1275.rmk: Likewise.
44638
44639 * util/grub-emu.c (main): Fix unchecked pointer handling.
44640
2c2a681b 446412007-07-02 Robert Millan <rmh@aybabtu.com>
44642
44643 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
44644 invocation to fail, in order to support partition-less media.
44645
44646 * util/i386/pc/grub-install.in: Likewise.
44647
44648 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
44649 which fs or partmap modules are needed (akin to its sister scripts).
44650
44651 Also use grub-probe to get rid of unportable /proc/mounts check.
44652
44653 Print the same informational message that the other scripts do, before
fe6b695a 44654 exiting.
2c2a681b 44655
6193defe 446562007-06-23 Robert Millan <rmh@aybabtu.com>
44657
fe6b695a 44658 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 44659 a font file can be found and, if so, echo the GRUB path to it.
44660
44661 * util/update-grub.in: Handle multiple terminals depending on user
44662 input, platform availability and font file presence. Propagate
44663 variables of our findings to /etc/grub.d/ children.
44664
44665 * util/grub.d/00_header.in: Handle multiple terminals, based on
44666 environment setup by update-grub.
44667
eface1dc 446682007-06-23 Robert Millan <rmh@aybabtu.com>
44669
ba50d28f 44670 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 44671
bf697e28 446722007-06-21 Robert Millan <rmh@aybabtu.com>
44673
44674 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
44675 indicate end of data section in kernel image.
44676 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
44677 GRUB_KERNEL_MACHINE_DATA_END.
44678
44679 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
44680 space for it.
44681 * kern/i386/efi/startup.S: Likewise.
44682
44683 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
44684 during image generation. Implement --prefix option to override this
44685 patch.
44686 * util/i386/efi/grub-mkimage.c: Likewise.
44687
44688 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
44689 code to make path relative to its root into a separate function.
44690
44691 * util/i386/pc/grub-install.in: Use newly provided
44692 make_system_path_relative_to_its_root() to convert ${grubdir}, then
44693 pass the result to grub-install --prefix.
44694
baa574b4 446952007-06-13 Robert Millan <rmh@aybabtu.com>
44696
44697 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
44698 DEFAULT_DEVICE_MAP.
44699 * util/grub-emu.c: Use above definitions from misc.h instead of
44700 defining them.
44701 * util/grub-mkdevicemap.c: Likewise.
44702 * util/i386/pc/grub-setup.c: Likewise.
44703 * util/grub-probe.c: Likewise.
44704 (probe): Abort with grub_util_error() when either
44705 grub_guess_root_device or grub_util_get_grub_dev fails.
44706
0215dcbf 447072007-06-12 Robert Millan <rmh@aybabtu.com>
44708
44709 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
44710 "pager" assignment.
44711 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
44712 "pcdata".
44713 * util/grub-probe.c (probe): Likewise for "drive_name".
44714
8af2ab7b 447152007-06-11 Robert Millan <rmh@aybabtu.com>
44716
44717 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
44718 not just the cdrom one.
44719
59d31694 447202007-06-11 Robert Millan <rmh@aybabtu.com>
44721
44722 * util/i386/pc/grub-mkrescue.in: Add "set -e".
44723 Add --pkglibdir=DIR option to override pkglibdir.
44724 Mention --image-type=TYPE in help output.
44725 Fix --grub-mkimage (it was a no-op).
fe6b695a 44726 Abort gracefully when no parameter is given.
59d31694 44727
7ee367e4 447282007-06-11 Robert Millan <rmh@aybabtu.com>
44729
44730 * util/i386/pc/grub-mkrescue.in: New file.
44731 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
44732 * Makefile.in: Handle bin_SCRIPTS.
44733
29b0ed46 447342007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
44735
44736 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
44737 list of video modes.
44738
c0f90770 447392007-06-06 Robert Millan <rmh@aybabtu.com>
44740
44741 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
44742 file doesn't exist, or if it is in a filesystem grub can't read.
44743
44744 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
44745 not abort if GRUB_DRIVE could not be defined. Rearrange generated
44746 header comment to fit in 80 columns when the variables are resolved.
44747
44748 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
44749 could be identified by update-grub. Remove redundant check for
fe6b695a 44750 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 44751 handles that).
44752
fb36dc26 447532007-06-04 Robert Millan <rmh@aybabtu.com>
44754
44755 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
44756
44757 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
44758
44759 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
44760
0c68c93e 447612007-06-04 Robert Millan <rmh@aybabtu.com>
44762
44763 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
44764
44765 * include/grub/partition.h: Declare grub_apple_partition_map_init and
44766 grub_apple_partition_map_fini.
44767
44768 * util/biosdisk.c
44769 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
44770 to access >2 TiB disks).
44771
44772 Print disk->total_sectors with %llu instead of %lu, since this
44773 variable is always 64-bit (prevents wrong disk size from being displayed
44774 on either >2 TiB disk or big-endian CPU).
44775
44776 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
44777 into a generic case that supports all (sane) partition maps.
44778
44779 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
44780 breaks big-endian.
44781
44782 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
44783 and grub_apple_partition_map_fini() after that.
44784
0f23eb74 447852007-06-01 Robert Millan <rmh@aybabtu.com>
44786
44787 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
44788
44789 * util/grub.d/00_header.in: Only enable gfxterm when
44790 convert_system_path_to_grub_path() succeeds.
44791
42c71976 447922007-05-20 Robert Millan <rmh@aybabtu.com>
44793
44794 * util/update-grub_lib.in: New file.
44795 * DISTLIST: Add update-grub_lib.in.
44796 * conf/common.rmk: Generate update-grub_lib and install it in
44797 $(lib_DATA).
44798 * Makefile.in: Add install routine for $(lib_DATA).
44799
44800 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
44801 function provided by update-grub_lib to support arbitrary paths of
44802 unifont.pff.
44803 * util/update-grub.in: Use convert_system_path_to_grub_path() to
44804 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
44805
5beb2291 448062007-05-19 Robert Millan <rmh@aybabtu.com>
44807
44808 * commands/i386/cpuid.c: New module.
44809 * DISTLIST: Add it.
44810 * conf/i386-efi.rmk: Enable cpuid.mod.
44811 * conf/i386-pc.rmk: Likewise.
44812
7262eca1 448132007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44814
44815 * kern/disk.c (grub_disk_read): Check return value of
44816 grub_realloc().
44817
260ba823 448182007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44819
44820 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
44821 arrays.
44822 * disk/raid.c (grub_raid_open): Likewise.
44823
1ecb6cf2 448242007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44825
44826 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
44827 stack instead of on the heap.
44828
44829 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
44830 before doing a read on it.
44831
44832 * configure.ac: Only use -fno-stack-protector for the target
44833 environment.
f19dbdb7 44834
21c8cbb1 448352007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44836
44837 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
44838 __attribute_ ((unused)) to mode_type argument.
44839
44840 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 44841
21c8cbb1 44842 * kern/misc.c (memcmp): Fix prototype.
44843
44844 * include/grub/partition.h [GRUB_UTIL]
44845 (grub_gpt_partition_map_init): Add prototype.
44846 (grub_gpt_partition_map_fini): Likewise.
44847
44848 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
44849 at the right place.
44850
44851 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
44852 (grub_fat_read_data): Likewise.
44853 (grub_fat_find_dir): Likewise.
44854
44855 * font/manager.c (find_glyph): Make table a const.
44856 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 44857
849d55d3 448582007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
44859
44860 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
44861 code, first search for device in /dev/mapper, then in /dev.
44862 (grub_util_get_grub_dev): New function.
44863 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
44864 prototype.
44865 * util/grub-probe.c (probe): Remove check for RAID, call
44866 grub_util_get_grub_dev() instead of
44867 grub_util_biosdisk_get_grub_dev().
44868 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
44869 grub_util_biosdisk_get_grub_dev().
44870 * util/i386/pc/grub-setup.c (main): Likewise.
44871
8fff7c2f 448722007-05-16 Robert Millan <rmh@aybabtu.com>
44873
44874 * DISTLIST: Update for the latest changes.
44875 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
44876 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
44877 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
44878 grub/util/biosdisk.h.
44879 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
44880 grub/util/biosdisk.h.
44881
48e12b52 448822007-05-16 Robert Millan <rmh@aybabtu.com>
44883
44884 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
44885
46b9d128 448862007-05-16 Robert Millan <rmh@aybabtu.com>
44887
44888 * util/i386/efi/grub-install.in: New.
44889 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
44890 newly added grub-install.
44891 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
44892 include.
44893 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
44894 grub/util/biosdisk.h.
44895 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
44896 grub/util/biosdisk.h.
44897
2d1a40a9 448982007-05-16 Robert Millan <rmh@aybabtu.com>
44899
44900 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
44901 * include/grub/util/biosdisk.h: ... here.
44902 * util/i386/pc/biosdisk.c: Moved to ...
44903 * util/biosdisk.c: ... here.
44904 * util/i386/pc/getroot.c: Moved to ...
44905 * util/getroot.c: ... here.
44906 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
44907 * util/grub-mkdevicemap.c: ... here.
44908 * util/i386/pc/grub-probe.c: Moved to ...
44909 * util/grub-probe.c: ... here.
44910
9e26e3bc 449112007-05-15 Robert Millan <rmh@aybabtu.com>
44912
44913 * util/update-grub.in: Remove duplicated line in grub.cfg header
44914 message.
44915
57f96397 449162007-05-13 Robert Millan <rmh@aybabtu.com>
44917
44918 * util/update-grub.in: Fix a few assumptions about the devices holding
44919 /, /boot and /boot/grub being the same.
44920 * util/grub.d/00_header.in: Likewise.
44921 * util/grub.d/10_hurd.in: Likewise.
44922 * util/grub.d/10_linux.in: Likewise.
44923
44924 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
44925 patterns. Use that to define the `.old' suffix as older than `'.
44926
44927 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
44928
44929 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
44930 the grub.cfg header message.
44931
2e610d62 449322007-05-11 Robert Millan <rmh@aybabtu.com>
44933
44934 * util/update-grub.in: Create device.map if it doesn't already exist,
44935 before attempting to run grub-probe.
44936 Check for grub-probe and grub-mkdevicemap with the same code
44937 grub-install is using.
44938 Remove test mode.
44939
3f6a10ef 449402007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
44941
44942 * Makefile.in: Add the datarootdir autoconf variable.
44943
02e7b75e 449442007-05-09 Robert Millan <rmh@aybabtu.com>
44945
44946 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 44947 fail gracefully if dev->disk->partition == NULL.
02e7b75e 44948
75f396cc 449492007-05-07 Robert Millan <rmh@aybabtu.com>
44950
44951 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
44952 determine partition map module.
44953 * util/i386/pc/grub-install.in: Use this feature to decide which
44954 partition module to load, instead of hardcoding pc and gpt.
44955
da65cb36 449562007-05-07 Robert Millan <rmh@aybabtu.com>
44957
44958 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
44959 source directory differs from build directory.
44960
b57d6a91 449612007-05-05 Robert Millan <rmh@aybabtu.com>
44962
44963 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
44964 initialisation.
44965
509d00f1 449662007-05-05 Robert Millan <rmh@aybabtu.com>
44967
44968 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
44969
c48f23ef 449702007-05-05 Robert Millan <rmh@aybabtu.com>
44971
44972 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
44973 command-line arguments via ${GRUB_CMDLINE_LINUX}.
44974
20b97658 449752007-05-05 Robert Millan <rmh@aybabtu.com>
44976
44977 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
44978 (grub_probe_SOURCES): Likewise.
44979 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
44980 GPT and initialize dos_part and bsd_part accordingly.
44981 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
44982 install_bsd_part.
44983 (main): Activate gpt module for use during partition identification,
44984 and deactivate it afterwards.
44985 * util/i386/pc/grub-install.in: Add gpt module to core.img.
44986 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
44987 partition identification, and deactivate it afterwards.
44988
99123174 449892007-05-05 Robert Millan <rmh@aybabtu.com>
44990
44991 * term/i386/pc/console.c (grub_console_fini): Call
44992 grub_term_set_current() before grub_term_unregister().
44993
ebd97f6e 449942007-05-04 Robert Millan <rmh@aybabtu.com>
44995
44996 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
44997 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
44998 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
44999 and update-grub_DATA.
45000 * conf/common.rmk: Build and install update-grub components.
45001 * conf/common.mk: Regenerate.
45002 * util/update-grub.in: New. Core of update-grub.
45003 * util/grub.d/00_header.in: New. Generates grub.cfg header.
45004 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
45005 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
45006 * util/grub.d/README: New. Document grub.d directory layout.
45007
b06a264d 450082007-05-01 Robert Millan <rmh@aybabtu.com>
45009
45010 * util/grub-emu.c: Move initialization functions
45011 grub_util_biosdisk_init() and grub_init_all() before
45012 grub_util_biosdisk_get_grub_dev(), which relies on them.
45013
41f0050e 450142007-04-19 Robert Millan <rmh@aybabtu.com>
45015
45016 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
45017 it is used later.
45018
04582bb3 450192007-04-18 Jerone Young <jerone@gmail.com>
45020
f19dbdb7 45021 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 45022 stanza.
45023
08db4632 450242007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 45025
08db4632 45026 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
45027 continue on and look for device node with real device name.
45028
801b76be 450292007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 45030
fe6b695a 45031 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 45032 ability.
45033 * Makefile.in: Add autoconf package transformation code.
45034 * util/i386/pc/grub-install.in: Likewise.
45035 * util/powerpc/ieee1275/grub-install.in: Likewise.
45036
6795c4e1 450372007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45038
45039 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
45040 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
45041 (EXT2_REVISION): Likewise.
45042 (EXT2_INODE_SIZE): Likewise.
45043 (struct grub_ext2_block_group): Added a missing member
45044 "used_dirs".
45045 (grub_ext2_read_inode): Divide by the inode size in a superblock
45046 instead of 128 to obtain INODES_PER_BLOCK.
45047 Use the macro EXT2_INODE_SIZE instead of directly using
45048 SBLOCK->INODE_SIZE.
45049
d70af616 450502007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45051
45052 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
45053 superblock instead of the structure size to compute an
45054 offset. This fixes the problem that GRUB could not read a
45055 filesystem when inode size is different from 128-byte.
45056
3b801603 450572007-03-05 Marco Gerards <marco@gnu.org>
45058
45059 * normal/main.c (read_config_file): When "menu" is not set, create
45060 an initial context.
45061
4785bfe4 450622007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45063
45064 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
45065 (HEAP_LIMIT): New macro.
45066 (grub_claim_heap): Claim memory up to `heaplimit'.
45067
a0cbb023 450682007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45069
45070 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
45071 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
45072 (_start): Likewise.
45073 (grub_arch_modules_addr): Return address after `_end'.
45074 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
45075 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
45076 (add_segments): Calculate `_end' from phdr size and location.
45077 (ALIGN_UP): Moved to ...
45078 * include/grub/misc.h: here.
45079 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
45080 New macro.
45081 (GRUB_IEEE1275_MODULE_BASE): Removed.
45082
fd7d8eba 450832007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45084
45085 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
45086 loop boundary.
45087
9b09e6fc 450882007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45089
45090 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
45091 All users updated.
45092 (grub_elf64_load_hook_t): Likewise.
45093 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
45094 debug output.
45095
3ce27299 450962007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45097
45098 * kern/mm.c: Update copyright.
45099 (grub_mm_debug): Correct syntax error.
45100 (grub_mm_dump_free): New function.
45101 (grub_debug_free): Call `grub_free'.
45102 * include/grub/mm.h: Update copyright.
45103 (grub_mm_dump_free): Add declaration.
45104
077d5fee 451052007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45106
45107 * include/grub/ieee1275/ieee1275.h: Update copyright.
45108 * kern/powerpc/ieee1275/init.c: Likewise.
45109 * kern/powerpc/ieee1275/openfw.c: Likewise.
45110
45111 * loader/powerpc/ieee1275/linux.c: Likewise.
45112 * include/grub/elfload.h: Likewise.
45113 * kern/elf.c: Likewise.
45114 (grub_elf32_load): Pass `base' and `size' parameters. Update all
45115 callers.
45116 (grub_elf64_load): Likewise.
45117 (grub_elf32_load_segment): Move to a nested function.
45118 (grub_elf64_load_segment): Likewise.
45119
dc946850 451202007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45121
45122 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
45123 prototype.
45124 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
45125 (grub_heap_len): Likewise.
45126 (HEAP_SIZE): New macro.
45127 (grub_claim_heap): New function.
45128 (grub_machine_init): Don't claim heap directly. Call
45129 `grub_claim_heap'.
45130 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
45131 (grub_available_iterate): New function.
45132
baa2a121 451332007-02-03 Thomas Schwinge <tschwinge@gnu.org>
45134
45135 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
45136 * configure.ac: Use it for testing the HOST and TARGET compilers.
45137
4fe9862e 451382006-12-13 Thomas Schwinge <tschwinge@gnu.org>
45139
45140 * Makefile.in (enable_grub_emu): New variable.
45141 * configure.ac (--enable-grub-emu): New option.
45142 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
45143 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
45144 * conf/i386-pc.rmk: Likewise.
45145 * conf/powerpc-ieee1275.rmk: Likewise.
45146 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
45147
a8aa5762 451482006-12-12 Marco Gerards <marco@gnu.org>
45149
45150 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
45151
45152 * kern/env.c (grub_env_unset): Don't free the member `value' when
45153 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
45154 pointer.
45155
45156 * normal/main.c (current_menu): Removed.
45157 (free_menu): Unset the `menu' environment variable.
45158 (grub_normal_menu_addentry): Make use of the environment variable
45159 `menu', instead of using the global `current_menu'. Allocate
45160 memory for the sourcecode of this entry.
45161 (read_config_file): New argument `nested', changed all callers.
45162 Only in the case of a new context, initialize a new menu. Set the
45163 `menu' environment variable.
45164 (grub_normal_execute): Don't set and unset the environment
45165 variable `menu' here anymore. Only free the menu when leaving the
45166 context.
45167
45168 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
45169 leak.
45170
957b3a3e 451712006-12-11 Marco Gerards <marco@gnu.org>
45172
45173 * normal/menu_entry.c (run): Fix off by one bug so the last line
45174 is executed. Move the loader check to outside the loop.
45175
ef875714 451762006-12-08 Hollis Blanchard <hollis@penguinppc.org>
45177
45178 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
45179
4e739985 451802006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
45181
45182 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
45183 the number of sectors. Reported by Andrey Shuvikov
45184 <mr_hyro@yahoo.com>.
f19dbdb7 45185
790707f2 451862006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
45187
45188 * kern/disk.c (grub_disk_read): When there is a read error, always
45189 try to read only the necessary data.
f19dbdb7 45190
790707f2 45191 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
45192 disk/raid.c.
45193 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
45194 prototype.
45195 [GRUB_UTIL] (grub_raid_fini): Likewise.
45196 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 45197 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 45198 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
45199 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
45200 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
45201 and grub_raid_fini().
f19dbdb7 45202
03e58196 452032006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
45204
45205 * include/grub/types.h (__unused): Rename to UNUSED.
45206 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
45207 (grub_elf64_size): Likewise.
f19dbdb7 45208
ae4f23bf 452092006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45210
45211 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
45212 grub_error_push and grub_error_pop in the error-handling path.
45213 (grub_elf32_load_segment): Only call grub_file_read with non-zero
45214 length.
45215
2166cc83 452162006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45217
45218 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
45219 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45220 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45221 (kernel_elf_SOURCES): Likewise.
45222 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
45223 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
45224 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45225 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45226 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
45227 (elf_mod_SOURCES): New variable.
45228 (elf_mod_CFLAGS): Likewise.
45229 (elf_mod_LDFLAGS): Likewise.
45230 * include/grub/types.h (__unused): New macro.
45231 * include/grub/elfload.h: New file.
45232 * kern/elf.c: Likewise.
45233 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
45234 (ELF32_LOADMASK): New macro.
45235 (ELF64_LOADMASK): Likewise.
45236 (vmlinux): Removed.
45237 (grub_linux_load32): New function.
45238 (grub_linux_load64): Likewise.
45239 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
45240 Use grub_elf_t instead of grub_file_t.
45241
a09d5aa5 452422006-11-02 Hollis Blanchard <hollis@penguinppc.org>
45243
45244 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
45245 `catch_result' to struct set_color_args.
45246
d976fc51 452472006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
45248
45249 * normal/menu.c: Include grub/script.h.
45250 * normal/menu_entry.c: Likewise.
45251 * include/grub/normal.h: Do not include grub/script.h.
45252
67507549 452532006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45254
45255 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
45256
69203a99 452572006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45258
45259 * kern/disk.c (grub_disk_open): Print debug messages when opening a
45260 disk.
45261 (grub_disk_close): Print debug messages when closing a disk.
45262 (grub_disk_read): Print debug messages when disk read fails.
45263 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
45264 filesystem type.
45265 * kern/partition.c: Include misc.h.
45266 (grub_partition_iterate): Print debug messages when detecting
45267 partition type.
45268
e2b8278c 452692006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45270
45271 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
45272 is negative.
45273 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
45274
97b2f2ff 452752006-10-26 Hollis Blanchard <hollis@penguinppc.org>
45276
45277 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
45278 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
45279
6555d655 452802006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
45281
45282 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
45283 instead of sizeof(lv). Patch by Michael Guntsche.
45284
4d42b77f 452852006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
45286
45287 * disk/lvm.c: Rename VGS to VG_LIST.
45288 (grub_lvm_iterate): Change VGS->LV to VG-LV.
45289 (grub_lvm_open): Likewise.
45290 Thanks to Michael Guntsche for finding this bug.
45291
5d74d927 452922006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45293
45294 * configure.ac (AC_INIT): Bumped to 1.95.
45295
a1bb27e4 452962006-10-14 Robert Millan <rmh@aybabtu.com>
45297
45298 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
45299 with "/dev/.static/dev/md".
45300
e0994b8b 453012006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45302
45303 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
45304 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
45305 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
45306 DRIVE_NAME are always freed.
45307
45308 * util/i386/pc/biosdisk.c (make_device_name): Add one into
45309 DOS_PART, as a DOS partition is counted from one instead of zero
45310 now. Reported by Robert Millan.
45311
ddd5cee9 453122006-10-14 Robert Millan <rmh@aybabtu.com>
45313
45314 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
45315 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
45316 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
45317 string returned by grub_guess_root_device.
45318 * util/i386/pc/grub-setup.c: Likewise.
45319 * util/i386/pc/grub-probefs.c: Likewise.
45320
45321 * util/i386/pc/grub-probefs.c: Rename to ...
45322 * util/i386/pc/grub-probe.c: ... this.
45323 * DISTLIST: Remove grub-probefs, add grub-probe.
45324 * conf/i386-efi.rmk: Likewise.
45325 * conf/i386-pc.rmk: Likewise.
45326 * util/i386/pc/grub-install.in: Likewise.
45327
45328 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
45329 choose which information we want to print.
45330
2b002173 453312006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45332
45333 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
45334 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
45335 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
45336 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
45337 video/readers/tga.c and video/i386/pc/vbeutil.c.
45338
453392006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
45340
45341 Added support for RAID and LVM.
f19dbdb7 45342
2b002173 45343 * disk/lvm.c: New file.
45344 * disk/raid.c: Likewise.
45345 * include/grub/lvm.h: Likewise.
f19dbdb7 45346 * include/grub/raid.h: Likewise.
2b002173 45347 * include/grub/util/lvm.h: Likewise.
45348 * include/grub/util/raid.h: Likewise.
45349 * util/lvm.c: Likewise.
45350 * util/raid.c: Likewise.
45351
45352 * include/grub/disk.h (grub_disk_dev_id): Add
45353 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
45354 (grub_disk_get_size): New prototype.
45355 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
45356 returns a partition.
45357 (grub_disk_get_size): New function.
f19dbdb7 45358
2b002173 45359 * kern/i386/pc/init.c (make_install_device): Copy the prefix
45360 verbatim if grub_install_dos_part is -2.
45361
45362 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
45363 and LVM devices.
45364
45365 * util/i386/pc/grub-setup.c (setup): New argument
45366 MUST_EMBED. Force embedding of GRUB when the argument is
45367 true. Close FILE before returning.
45368 (main): Add support for RAID and LVM.
f19dbdb7 45369
2b002173 45370 * conf/common.rmk: Add RAID and LVM modules.
45371 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
45372 util/lvm.c.
45373 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
45374
45375 * kern/misc.c (grub_strstr): New function.
45376 * include/grub/misc.h (grub_strstr): New prototype.
45377
050548d0 453782006-10-10 Tristan Gingold <tristan.gingold@bull.net>
45379
45380 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
45381
da849d2d 453822006-10-05 Tristan Gingold <tristan.gingold@bull.net>
45383
45384 * kern/misc.c (grub_strtoull): Guess the base only if not
45385 specified.
45386
97b2f2ff 453872006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 45388
45389 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
45390 PowerMac support.
45391
97b2f2ff 453922006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 45393
45394 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
45395
45396 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
45397 Remove `flags' argument. All callers changed.
45398 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
45399 (IEEE1275_IHANDLE_INVALID): New variable.
45400 (IEEE1275_CELL_INVALID): New variable.
45401 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
45402 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
45403 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
45404 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
45405 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
45406 codes from Open Firmware. All callers updated.
45407 (grub_ieee1275_next_property): Directly return Open Firmware return
45408 code.
45409 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45410 Standardize error checking from `grub_ieee1275_get_property'.
45411 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
45412 `devalias' to `aliases'. Correct comments. Consolidate error paths.
45413
97b2f2ff 454142006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 45415
45416 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
45417 `instance_to_package_args' to `instance_to_path_args'.
45418
45419 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
45420 `grub_ieee1275_chosen'.
45421
45422 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
45423 `grub_ieee1275_interpret'.
45424
97b2f2ff 454252006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 45426
45427 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
45428
97b2f2ff 454292006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 45430
45431 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
45432 (__cmpdi): Likewise.
45433
45434 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
45435 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
45436 `grub_ssize_t'.
45437
02bb8acc 45438 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 45439
45440 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
45441 to type `grub_ssize_t'.
45442 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
45443
7f9a8531 454442006-09-22 Marco Gerards <marco@gnu.org>
45445
45446 * normal/script.c (grub_script_create_cmdmenu): Skip leading
45447 newlines.
45448
b5ef1102 454492006-09-22 Marco Gerards <marco@gnu.org>
45450
45451 * commands/echo.c: New file.
45452
45453 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
45454
45455 * conf/common.rmk (echo_mod_SOURCES): New variable.
45456 (echo_mod_CFLAGS): Likewise.
45457 (echo_mod_LDFLAGS): Likewise.
45458
2cff3677 454592006-09-22 Marco Gerards <marco@gnu.org>
45460
45461 * normal/main.c (get_line): Malloc memory instead of using
45462 preallocated memory. Removed the arguments `cmdline' and
45463 `max_len'. Updated all callers.
45464
6ba4688b 454652006-09-22 Marco Gerards <marco@gnu.org>
45466
45467 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
45468 (normal_mod_DEPENDENCIES): Likewise.
45469
45470 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
45471 (normal_mod_DEPENDENCIES): Likewise.
45472
45473 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
45474
e02ac02c 454752006-09-22 Johan Rydberg <jrydberg@gnu.org>
45476
45477 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
45478 programs.
45479 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
45480 (normal_mod_DEPENDENCIES): Likewise.
45481 * conf/i386-pc.mk: Regenerate.
45482 * conf/i386-efi.mk: Likewise
45483 * conf/common.mk: Likewise.
45484 * conf/powerpc-ieee1275.mk: Likewise.
45485 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 45486
8d252e44 454872006-09-22 Robert Millan <rmh@aybabtu.com>
45488
45489 Sync with i386 version.
45490 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
45491 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
45492
209bf7ac 454932006-09-21 Robert Millan <rmh@aybabtu.com>
45494
45495 Import from GRUB Legacy (lib/device.c):
45496 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
45497 (init_device_map) [__linux__]: Add support for I2O devices.
45498
6b146090 454992006-09-14 Marco Gerards <marco@gnu.org>
45500
45501 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
45502 `-melf_i386'.
45503
e38600a8 455042006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 45505
45506 * util/i386/pc/grub-install.in: Skip menu.lst when removing
45507 /boot/grub/*.lst.
78fa1790 45508
2952da5d 45509 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 45510
2952da5d 45511 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
45512 before adding it to device.map.
45513
01b82a64 455142006-08-15 Johan Rydberg <jrydberg@gnu.org>
45515
fe6b695a 45516 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 45517 compiles a file; using the -MD option.
45518 * conf/common.mk: Regenerate.
45519 * conf/i386-pc.mk: Likewise.
45520 * conf/i386-efi.mk: Likewise.
45521 * conf/powerpc-ieee1275.mk: Likewise.
45522 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 45523
1064790d 455242006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
45525
45526 Move the prototypes of grub_setjmp and grub_longjmp to
45527 cpu/setjmp.h, so that each architecture may specify different
45528 attributes.
f19dbdb7 45529
1064790d 45530 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
45531 (grub_longjmp): Likewise.
45532 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
45533 (grub_longjmp): Likewise.
45534 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
45535 (grub_longjmp): Likewise.
45536
45537 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
45538 [!GRUB_UTIL] (grub_longjmp): Removed.
45539
29dda3ed 455402006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
45541
45542 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
45543 "color!" method does not return any value.
45544
ad2a06ed 455452006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45546
45547 * include/grub/bitmap.h: New file.
45548
45549 * include/grub/i386/pc/vbeutil.h: Likewise.
45550
45551 * video/bitmap.c: Likewise.
45552
45553 * video/readers/tga.c: Likewise.
45554
45555 * video/i386/pc/vbeutil.c: Likewise.
45556
45557 * commands/videotest.c: Code cleanup and updated to reflect to new
45558 video API.
45559
45560 * term/gfxterm.c: Likewise.
45561
45562 * video/video.c: Likewise.
45563
45564 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
45565 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
45566 (bitmap_mod_SOURCES): New entry.
45567 (bitmap_mod_CFLAGS): Likewise.
45568 (bitmap_mod_LDFLAGS): Likewise.
45569 (tga_mod_SOURCES): Likewise.
45570 (tga_mod_CFLAGS): Likewise.
45571 (tga_mod_LDFLAGS): Likewise.
45572
45573 * include/grub/video.h (grub_video_blit_operators): New enum type.
45574 (grub_video_render_target): Changed as forward declaration and moved
45575 actual definition to be video driver specific.
45576 (grub_video_adapter.blit_bitmap): Added blitting operator.
45577 (grub_video_adapter.blit_render_target): Likewise.
45578 (grub_video_blit_bitmap): Likewise.
45579 (grub_video_blit_render_target): Likewise.
45580
45581 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
45582 driver specific render target definition.
45583 (grub_video_vbe_map_rgba): Added driver internal helper.
45584 (grub_video_vbe_unmap_color): Updated to use
45585 grub_video_i386_vbeblit_info.
45586 (grub_video_vbe_get_video_ptr): Likewise.
45587
45588 * include/grub/i386/pc/vbeblit.h
45589 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
45590 grub_video_i386_vbeblit_info.
45591 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
45592 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
45593 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
45594 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
45595 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
45596 (grub_video_i386_vbeblit_index_index): Likewise.
45597 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
45598 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
45599 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
45600 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
45601 operator.
45602 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
45603 operator.
45604
45605 * video/i386/pc/vbeblit.c: Updated to reflect changes on
45606 include/grub/i386/pc/vbeblit.h.
45607
45608 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
45609 Updated to use grub_video_i386_vbeblit_info.
45610 (grub_video_i386_vbefill_R8G8B8): Likewise.
45611 (grub_video_i386_vbefill_index): Likewise.
45612 (grub_video_i386_vbefill): Added generic filler.
45613
45614 * video/i386/pc/vbefill.c: Updated to reflect changes on
45615 include/grub/i386/pc/vbefill.h.
45616
45617 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
45618 grub_video_i386_vbeblit_info.
45619 (grub_video_vbe_unmap_color): Likewise.
45620 (grub_video_vbe_blit_glyph): Likewise.
45621 (grub_video_vbe_scroll): Likewise.
45622 (grub_video_vbe_draw_pixel): Removed function.
45623 (grub_video_vbe_get_pixel): Likewise.
45624 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
45625 updated code to use it.
45626 (common_blitter): Added common blitter for render target and bitmap.
45627 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
45628 (grub_video_vbe_blit_render_target): Likewise.
45629
bc8c036d 456302006-07-30 Johan Rydberg <jrydberg@gnu.org>
45631
45632 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
45633 is in text mode if there is no console control protocol instance
45634 available.
45635
684a8eff 456362006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45637
45638 * include/grub/video.h: Code cleanup.
45639
45640 * include/grub/i386/pc/vbe.h: Likewise.
45641
45642 * video/i386/pc/vbe.c: Likewise.
45643
45644 * video/i386/pc/vbeblit.c: Likewise.
45645
45646 * video/i386/pc/vbefill.c: Likewise.
45647
45648 * video/video.c: Likewise. Also added more comments.
45649
5915059b 456502006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45651
45652 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
45653 (struct grub_biosdisk_dap): Likewise.
45654
45655 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
45656 linkage settings for all functions.
45657
90ce5d56 456582006-07-12 Marco Gerards <marco@gnu.org>
45659
45660 * configure.ac (--enable-mm-debug): Fix typo.
45661
45662 * genkernsyms.sh.in: Use proper quoting for `CC'.
45663
43e7f879 456642006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
45665
45666 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
45667 (normal_mod_ASFLAGS): Remove "-m32".
45668
4889bdec 456692006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
45670
45671 * util/misc.c: Include config.h.
45672 [!HAVE_MEMALIGN]: Do not include malloc.h.
45673 (grub_memalign): Use posix_memalign, if present. Then, use
45674 memalign, if present. Otherwise, emit an error.
45675
45676 * util/grub-emu.c: Do not include malloc.h.
45677
45678 * include/grub/util/misc.h: Include unistd.h. This is required for
45679 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
45680 D. Eades III <hde@foobar-qux.org>.
45681
45682 * configure.ac (AC_GNU_SOURCE): Added.
45683 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
45684 type.
45685
fd39d4da 456862006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
45687
45688 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
45689 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
45690
b786f3b5 456912006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
45692
45693 * include/grub/types.h (grub_host_addr_t): Rename to
45694 grub_target_addr_t.
45695 (grub_host_off_t): Rename to grub_target_off_t.
45696 (grub_host_size_t): Rename to grub_target_size_t.
45697 (grub_host_ssize_t): Rename to grub_target_ssize_t.
45698 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
45699
45700 * include/grub/kernel.h (struct grub_module_header): Change type
45701 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
45702 (grub_module_info): Likewise.
f19dbdb7 45703
051988bb 457042006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45705
45706 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
45707 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
45708 Velazquez <jesus.velazquez@gmail.com>.
45709
deae281b 457102006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45711
45712 Count partitions from 1 instead of 0 in the string representation
45713 of partitions. Still use 0-based internally.
f19dbdb7 45714
deae281b 45715 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
45716 (sun_partition_map_iterate): Use grub_partition_t instead of
45717 struct grub_partition *. Cast DESC->START_CYLINDER to
45718 grub_uint64_t after converting the endian.
45719 (sun_partition_map_probe): Subtract 1 for PARTNUM.
45720 (sun_partition_map_get_name): Add 1 to P->INDEX.
45721
45722 * partmap/pc.c (grub_partition_parse): Subtract 1 for
45723 PCDATA->DOS_PART.
45724 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
45725
45726 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
45727 zero instead of one.
45728 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
45729 (gpt_partition_map_get_name): Add 1 into P->INDEX.
45730
45731 * partmap/apple.c (apple_partition_map_iterate): Change the type
45732 of POS to unsigned.
45733 (apple_partition_map_probe): Subtract 1 for PARTNUM.
45734 (apple_partition_map_get_name): Add 1 into P->INDEX.
45735
45736 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
45737 of POS to unsigned.
45738 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
45739 calculate the offset of a partition.
45740 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
45741 (amiga_partition_map_get_name): Add 1 into P->INDEX.
45742
45743 * partmap/acorn.c (acorn_partition_map_find): Change the type of
45744 SECTOR to grub_disk_addr_t.
45745 (acorn_partition_map_iterate): Likewise.
45746 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
45747 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
45748 top.
45749 (acorn_partition_map_get_name): Add 1 into P->INDEX.
45750
45751 * kern/i386/pc/init.c (make_install_device): Add 1 into
45752 GRUB_INSTALL_DOS_PART.
45753
45754 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
45755 conditional.
45756
524a1e6a 457572006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45758
45759 Clean up the code to support 64-bit addressing in disks and
45760 files. This change is not enough for filesystems yet.
f19dbdb7 45761
524a1e6a 45762 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
45763 type of "start" to grub_uint64_t.
45764 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
45765 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
45766 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
45767 convert addresses.
45768
45769 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
45770 to grub_disk_addr_t.
45771
45772 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
45773 string.
45774
45775 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45776
45777 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
45778 to char *.
45779
45780 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
45781
45782 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
45783
45784 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
45785
45786 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
45787 to grub_off_t, to detect an error from grub_file_seek.
45788 (grub_multiboot_load_elf32): Likewise.
45789
45790 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
45791 maximum unsigned long value when an overflow is detected.
45792 (grub_strtoull): New function.
45793 (grub_divmod64): Likewise.
45794 (grub_lltoa): use grub_divmod64.
45795
45796 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
45797 grub_disk_addr_t.
45798 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
45799 the pointer to next character. Use grub_strtoull instead of
45800 grub_strtoul.
45801 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
45802 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
45803 respectively.
45804
fe6b695a 45805 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 45806 return value is signed.
45807 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
45808 test if OFFSET is less than zero, as OFFSET is unsigned now.
45809
45810 * kern/disk.c (struct grub_disk_cache): Change the type of
45811 "sector" to grub_disk_addr_t.
45812 (grub_disk_cache_get_index): Change the type of SECTOR to
45813 grub_disk_addr_t. Calculate the hash with SECTOR casted to
45814 unsigned after shifting.
45815 (grub_disk_cache_invalidate): Change the type of SECTOR to
45816 grub_disk_addr_t.
45817 (grub_disk_cache_unlock): Likewise.
45818 (grub_disk_cache_store): Likewise.
45819 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
45820 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
45821 grub_disk_addr_t and grub_uint64_t, respectively.
45822 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
45823 body, as the value of OFFSET is tweaked by
45824 grub_disk_check_range. Change the types of START_SECTOR, LEN and
45825 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
45826 respectively.
45827 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
45828 body, as the value of OFFSET is tweaked by
45829 grub_disk_check_range. Change the types of LEN and N to
45830 grub_size_t.
45831
45832 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
45833 and "saved_offset" to grub_off_t.
45834 (test_header): Cast BUF to char *.
45835 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
45836 to char *.
45837 (grub_gzio_read): Change the types of OFFSET and SIZE to
45838 grub_off_t and grub_size_t, respectively.
45839
45840 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
45841 Removed.
45842 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
45843 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
45844 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
45845 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
45846 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
45847
45848 * include/grub/types.h (grub_off_t): Unconditionally set to
45849 grub_uint64_t.
45850 (grub_disk_addr_t): Changed to grub_uint64_t.
45851
45852 * include/grub/partition.h (struct grub_partition): Change the
45853 types of "start", "len" and "offset" to grub_disk_addr_t,
45854 grub_uint64_t and grub_disk_addr_t, respectively.
45855 (grub_partition_get_start): Return grub_disk_addr_t.
45856 (grub_partition_get_len): Return grub_uint64_t.
45857
45858 * include/grub/misc.h (grub_strtoull): New prototype.
45859 (grub_divmod64): Likewise.
45860
45861 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
45862 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
45863 grub_off_t, respectively.
45864 All callers and references changed.
45865
45866 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
45867 grub_size_t in "read".
45868 All callers and references changed.
45869
45870 * include/grub/file.h (struct grub_file): Change the types of
45871 "offset" and "size" to grub_off_t and grub_off_t,
45872 respectively. Change the type of SECTOR to grub_disk_addr_t in
45873 "read_hook".
45874 (grub_file_read): Change the type of LEN to grub_size_t.
45875 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
45876 grub_off_t.
45877 (grub_file_size): Return grub_off_t.
45878 (grub_file_tell): Likewise.
45879 All callers and references changed.
45880
45881 * include/grub/disk.h (struct grub_disk_dev): Change the types of
45882 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
45883 "write".
45884 (struct grub_disk): Change the type of "total_sectors" to
45885 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 45886 "read_hook".
524a1e6a 45887 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
45888 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
45889 (grub_disk_write): Likewise.
45890 All callers and references changed.
45891
45892 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
45893 char * for grub_strncmp to silence gcc.
45894 (grub_iso9660_mount): Likewise.
45895 (grub_iso9660_mount): Likewise.
45896 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
45897 return statement.
45898 (grub_iso9660_iterate_dir): Likewise.
45899 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
45900
45901 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
45902 LEN to grub_disk_addr_t and grub_size_t, respectively.
45903
45904 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
45905
45906 * fs/jfs.c (grub_jfs_read_file): Likewise.
45907
45908 * fs/minix.c (grub_jfs_read_file): Likewise.
45909
45910 * fs/sfs.c (grub_jfs_read_file): Likewise.
45911
45912 * fs/ufs.c (grub_jfs_read_file): Likewise.
45913
45914 * fs/xfs.c (grub_jfs_read_file): Likewise.
45915
45916 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
45917 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
45918 respectively.
45919
45920 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
45921 BLKNR to -1 instead of returning GRUB_ERRNO.
45922 (grub_ext2_read_file): Change the types of SECTOR and
45923 LEN to grub_disk_addr_t and grub_size_t, respectively.
45924
45925 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
45926 LEN to grub_disk_addr_t and grub_size_t, respectively.
45927
45928 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
45929 grub_file_read.
45930
45931 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
45932 string. Do not cast SECTOR explicitly.
45933
45934 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
45935 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
45936 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
45937 grub_disk_addr_t and grub_size_t, respectively. If the sector is
45938 over 2TB and LBA mode is not supported, raise an error.
45939 (get_safe_sectors): New function.
45940 (grub_biosdisk_read): Use get_safe_sectors.
45941 (grub_biosdisk_write): Likewise.
45942
45943 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
45944 (grub_efidisk_write): Likewise.
45945
45946 * disk/loopback.c (delete_loopback): Cosmetic changes.
45947 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
45948 correctly.
45949 (grub_loopback_open): Likewise.
45950 (grub_loopback_read): Likewise. Also, change the type of POS to
45951 grub_off_t, and fix the usage of grub_memset.
45952
45953 * commands/i386/pc/play.c: Include grub/machine/time.h.
45954
45955 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
45956 print FILE->SIZE.
45957
45958 * commands/configfile.c: Include grub/env.h.
45959
45960 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
45961 GRUB_ERRNO directly instead. Change the type of POS to
45962 grub_off_t. Follow the coding standard.
45963
45964 * commands/blocklist.c: Include grub/partition.h.
45965 (grub_cmd_blocklist): Return an error if the underlying device is
45966 not a disk. Take the starting sector of a partition into account,
45967 if a partition is used.
45968
45969 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
45970 a length field.
45971 (lba_mode): Support 64-bit addresses.
45972 (chs_mode): Likewise.
45973 (copy_buffer): Adapted to the new offsets of a length field and a
45974 segment field.
45975 (blocklist_default_start): Allocate 64-bit space.
45976
45977 * boot/i386/pc/boot.S (force_lba): Removed.
45978 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 45979 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 45980 space.
45981 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
45982 is useless.
45983 (lba_mode): Refactored to support a 64-bit address. More size
45984 optimization.
45985 (setup_sectors): Likewise.
45986
53af98ad 459872006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45988
45989 * DISTLIST: Added include/grub/i386/linux.h. Removed
45990 include/grub/i386/pc/linux.h
45991
45992 * configure.ac (AC_INIT): Bumped to 1.94.
45993
45994 * config.guess: Updated from gnulib.
45995 * config.sub: Likewise.
45996 * install-sh: Likewise.
45997 * mkinstalldirs: Likewise.
45998
b4c1940a 459992006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46000
46001 * conf/common.rmk (grub_modules_init.lst): Depended on
46002 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
46003 MODSRCFILES.
46004
46005 * genmk.rb (PModule::rule): Reverted the previous change.
46006
cfca1cfd 460072006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46008
46009 * conf/common.rmk (grub_modules_init.lst): Depends on
46010 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
46011 that the target does not exist before producing.
46012 (grub_modules_init.h): Remove the target before generating.
46013 (grub_emu_init.c): Likewise.
46014
46015 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
46016
aa6d7826 460172006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
46018
46019 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
46020 for the target-specific tests. Make sure that we also have the
46021 up-to-date target variables for those tests.
46022
26c607b9 460232006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46024
46025 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
46026 (PModule::rule): Likewise.
46027
0162321a 460282006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46029
46030 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
46031 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
46032 target-specific flags should be prefixed.
46033 (PModule::rule): Likewise.
46034
6c826348 460352006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
46036
46037 * configure.ac (CMP): Check if cmp is available explicitly.
46038
b977bf01 460392006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
46040
46041 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
46042 (target_cpu): New variable.
46043 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 46044
b977bf01 46045 * util/i386/pc/grub-install.in (host_cpu): Removed.
46046 (target_cpu): New variable.
46047 (pkglibdir): Use target_cpu instead of host_cpu.
46048
46049 * util/genmoddep.c: Removed.
f19dbdb7 46050
b977bf01 46051 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
46052 instead of GRUB_HOST_SIZEOF_VOID_P.
46053 * kern/dl.c: Likewise.
46054
46055 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
46056 ...
46057 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46058 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46059 (GRUB_TARGET_SIZEOF_LONG): ... this.
46060 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46061 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46062 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46063 to ...
46064 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46065 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46066 (GRUB_TARGET_SIZEOF_LONG): ... this.
46067 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46068 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46069 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46070 to ...
46071 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46072 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46073 (GRUB_TARGET_SIZEOF_LONG): ... this.
46074 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46075 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46076
46077 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
46078 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
46079 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
46080 instead of GRUB_HOST_SIZEOF_LONG.
46081 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
46082 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
46083 GRUB_CPU_WORDS_BIGENDIAN.
46084 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
46085 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
46086 grub_host_ssize_t.
46087
46088 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
46089 (genmoddep_SOURCES): Likewise.
46090 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
46091 (genmoddep_SOURCES): Likewise.
46092 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
46093 (genmoddep_SOURCES): Likewise.
46094 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
46095 Likewise.
46096 (genmoddep_SOURCES): Likewise.
46097
46098 * genmoddep.awk: New file.
46099
46100 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
46101 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
46102 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
46103 (PModule::rule): Likewise.
46104 (Program::rule): Likewise.
46105 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
46106 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
46107 respectively.
46108
46109 * configure.ac: Rewritten intensively to use host and target
46110 instead of build and host, respectively.
46111
46112 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
46113 (host_cpu): Removed.
46114 (target_cpu): New variable.
46115 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
46116 (BUILD_CC): Removed.
46117 (BUILD_CFLAGS): Likewise.
46118 (BUILD_CPPFLAGS): Likewise.
46119 (TARGET_CC): New variable.
46120 (TARGET_CFLAGS): Likewise.
46121 (TARGET_CPPFLAGS): Likewise.
46122 (TARGET_LDFLAGS): Likewise.
46123 (AWK): Likewise.
46124 (include): Use target_cpu instead of host_cpu.
46125 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 46126
b977bf01 46127 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
46128
f09771a1 461292006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
46130
46131 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
46132 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
46133 field 'false' to 'exec_on_false'.
46134 (grub_script_create_cmdif): Renamed argument names to reflect above
46135 changes.
46136
46137 * normal/execute.c (grub_script_execute_cmdif): Likewise.
46138
46139 * normal/script.c (grub_script_create_cmdif): Likewise.
46140
118f4fb3 461412006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
46142
46143 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
46144 top.
46145 (grub_hfsplus_btree_recptr): Likewise.
46146 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
46147 FILEBLOCK both to pass a block number and store next block
46148 number.
46149 (grub_hfsplus_read_block): Rewritten heavily to support an extent
46150 overflow file correctly. Specify errors appropriately, because
46151 fshelp expects that GRUB_ERRNO is set when fails. Reuse
46152 grub_hfsplus_btree_recptr to get the pointer to a found key.
46153 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
46154 is found.
46155
46156 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
46157 linux.mod.
46158 (_linux_mod_SOURCES): New variable.
46159 (_linux_mod_CFLAGS): Likewise.
46160 (_linux_mod_LDFLAGS): Likewise.
46161 (linux_mod_SOURCES): Likewise.
46162 (linux_mod_CFLAGS): Likewise.
46163 (linux_mod_LDFLAGS): Likewise.
46164
46165 * DISTLIST: Added loader/i386/efi/linux.c,
46166 loader/i386/efi/linux_normal.c and
46167 include/grub/i386/efi/loader.h.
46168
46169 * loader/i386/efi/linux.c: New file.
46170 * loader/i386/efi/linux_normal.c: Likewise.
46171 * include/grub/i386/efi/loader.h: Likewise.
46172
89a7d726 461732006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
46174
46175 * commands/blocklist.c: New file.
46176
46177 * DISTLIST: Added commands/blocklist.c.
46178
46179 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 46180 color for the background, and a darker color for the foreground.
89a7d726 46181 (grub_console_checkkey): Return READ_KEY.
46182 (grub_console_cls): Set the background to
46183 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
46184
46185 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
46186
46187 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
46188 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
46189
46190 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
46191 prototype.
46192
46193 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
46194 BG. The spec is wrong again.
46195
46196 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
46197 prototype.
46198 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
46199
46200 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46201 commands/blocklist.c.
46202 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 46203
89a7d726 46204 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
46205 (blocklist_mod_SOURCES): New variable.
46206 (blocklist_mod_CFLAGS): Likewise.
46207 (blocklist_mod_LDFLAGS): Likewise.
46208
75c8f258 462092006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
46210
46211 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
46212 duplication.
46213 (lba_mode): Use %eax more intensively to reduce the code size.
46214
da2eb181 462152006-05-20 Marco Gerards <marco@gnu.org>
46216
46217 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
46218
46219 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
46220 for `menuentry'.
46221 (script): Accept leading newlines.
46222 (newlines): New rule to describe 0 or more newlines.
46223 (commands): Accept `command' with trailing newline. Fixed the
46224 order in which arguments were passed to `grub_script_add_cmd'.
46225 Accept commands separated by newlines.
46226 (function): Changed to accept newlines.
46227 (menuentry) Rewritten.
46228
46229 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
46230 front of the list, instead of to the end.
46231
577b4050 462322006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
46233
46234 * util/i386/pc/grub-install.in (bindir): New variable.
46235 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
46236 Shaver <lbgwjl@gmail.com>.
46237
0d6e1189 462382006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
46239
46240 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
46241 grub/machine/linux.h
46242 * loader/i386/pc/linux.c: Likewise.
46243
46244 * include/grub/i386/pc/linux.h: Moved to ...
46245 * include/grub/i386/linux.h: ... here.
46246
46247 * include/grub/i386/linux.h (struct linux_kernel_params): New
46248 struct.
f19dbdb7 46249
31b86e9f 462502006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
46251
46252 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
46253 checking.
46254 (grub_video_vbe_blit_glyph): Likewise.
46255 (grub_video_vbe_blit_bitmap): Likewise.
46256 (grub_video_vbe_blit_render_target): Likewise.
46257
83b984de 462582006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
46259
46260 * configure.ac (--with-platform): Properly quote the square
46261 brackets.
46262
5f0413bd 462632006-05-08 Marco Gerards <marco@gnu.org>
46264
46265 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
46266 this...
46267 (kernel_elf_HEADERS): ...to this. Updated all users.
46268 (grubof_symlist.c): Renamed from this...
46269 (kernel_elf_symlist.c): ...to this. Updated all users.
46270 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46271 (grubof_SOURCES): Renamed from this...
46272 (kernel_elf_SOURCES): ...to this.
46273 (grubof_HEADERS): Renamed from this...
46274 (kernel_elf_HEADERS): ...to this.
46275 (grubof_CFLAGS): Renamed from this...
46276 (kernel_elf_CFLAGS): ...to this.
46277 (grubof_ASFLAGS): Renamed from this...
46278 (kernel_elf_ASFLAGS): ...to this.
46279 (grubof_LDFLAGS): Renamed from this...
46280 (kernel_elf_LDFLAGS): ...to this.
46281
46282 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
46283 this...
46284 (kernel_elf_HEADERS): ...to this. Updated all users.
46285 (grubof_symlist.c): Renamed from this...
46286 (kernel_elf_symlist.c): ...to this. Updated all users.
46287 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46288 (grubof_SOURCES): Renamed from this...
46289 (kernel_elf_SOURCES): ...to this.
46290 (grubof_HEADERS): Renamed from this...
46291 (kernel_elf_HEADERS): ...to this.
46292 (grubof_CFLAGS): Renamed from this...
46293 (kernel_elf_CFLAGS): ...to this.
46294 (grubof_ASFLAGS): Renamed from this...
46295 (kernel_elf_ASFLAGS): ...to this.
46296 (grubof_LDFLAGS): Renamed from this...
46297 (kernel_elf_LDFLAGS): ...to this.
46298
46299 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
46300 `kernel.elf' instead of `grubof'.
46301
05568c2e 463022006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
46303
46304 Add --with-platform to configure. Use pkglibdir instead of
46305 pkgdatadir. This is reported by Roger Leigh.
46306
46307 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
46308 (host_vendor): Likewise.
46309 (host_os): Likewise.
46310 (pkgdatadir): Likewise.
46311 (platform): New variable.
46312 (pkglibdir): Likewise.
46313 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 46314
05568c2e 46315 * util/i386/pc/grub-install.in (datadir): Removed.
46316 (host_vendor): Likewise.
46317 (host_os): Likewise.
46318 (pkgdatadir): Likewise.
46319 (platform): New variable.
46320 (pkglibdir): Likewise.
46321 Use PKGLIBDIR instead of PKGDATADIR.
46322
46323 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
46324 instead of GRUB_DATADIR.
46325 (main): Likewise.
46326 * util/i386/pc/grub-mkimage.c (usage): Likewise.
46327 (main): Likewise.
46328 * util/i386/efi/grub-mkimage.c (usage): Likewise.
46329 (main): Likewise.
46330
46331 * configure.ac (--with-platform): New option.
46332 Use PLATFORM instead of HOST_VENDOR to specify a platform.
46333
46334 * Makefile.in: Include a makefile based on PLATFORM instead of
46335 HOST_VENDOR.
46336 (pkgdatadir): Not appended by the machine type.
46337 (pkglibdir): Appended by the machine type.
46338 (host_vendor): Removed.
46339 (platform): New variable.
46340 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
46341 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
46342 (uninstall): Likewise.
46343
4e93851c 463442006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
46345
46346 Use the environment context in the menu. Remove the commands
46347 "default" and "timeout", and use variables instead.
f19dbdb7 46348
4e93851c 46349 * normal/menu.c: Include grub/env.h.
46350 (print_entry): Cast TITLE to silence gcc.
46351 (get_timeout): New function.
46352 (set_timeout): Likewise.
46353 (get_entry_number): Likewise.
46354 (run_menu): Use a default entry, a fallback entry and a timeout
46355 in the environment variables "default", "fallback" and
46356 "timeout". Also, tweak the default entry if it is not within the
46357 current menu entries.
46358 (grub_menu_run): Use a fallback entry in the environment variable
46359 "fallback".
46360
46361 * normal/main.c (read_config_file): Do not initialize
46362 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
46363 NEWMENU->TIMEOUT.
46364 (grub_normal_execute): Use a data slot to store the menu.
46365
46366 * include/grub/normal.h (struct grub_menu): Removed default_entry,
46367 fallback_entry and timeout.
46368 (struct grub_menu_list): Removed.
46369 (grub_menu_list_t): Likewise.
46370 (struct grub_context): Likewise.
46371 (grub_context_t): Likewise.
46372 (grub_context_get): Likewise.
46373 (grub_context_get_current_menu): Likewise.
46374 (grub_context_push_menu): Likewise.
46375 (grub_context_pop_menu): Likewise.
46376 (grub_default_init): Likewise.
46377 (grub_default_fini): Likewise.
46378 (grub_timeout_init): Likewise.
46379 (grub_timeout_fini): Likewise.
46380
46381 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
46382 and timeout.mod.
46383 (normal_mod_SOURCES): Removed normal/context.c.
46384
46385 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
46386 commands/default.c, commands/timeout.c and normal/context.c.
46387 (normal_mod_SOURCES): Removed normal/context.c.
46388
46389 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
46390 commands/timeout.c and normal/context.c.
46391 (normal_mod_SOURCES): Removed normal/context.c.
46392
46393 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
46394 commands/default.c, commands/timeout.c and normal/context.c.
46395 (normal_mod_SOURCES): Removed normal/context.c.
46396
46397 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
46398 timeout.mod.
46399 (default_mod_SOURCES): Removed.
46400 (default_mod_CFLAGS): Likewise.
46401 (default_mod_LDFLAGS): Likewise.
46402 (timeout_mod_SOURCES): Removed.
46403 (timeout_mod_CFLAGS): Likewise.
46404 (timeout_mod_LDFLAGS): Likewise.
46405
46406 * DISTLIST: Removed commands/default.c, commands/timeout.c and
46407 normal/context.c.
46408
46409 * commands/default.c: Removed.
46410 * commands/timeout.c: Likewise.
46411 * normal/context.c: Likewise.
46412
1eb9cc1d 464132006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
46414
46415 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
46416
385bd9c1 464172006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
46418
46419 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
46420 "next" to "prev" for readability.
46421 (struct grub_env_sorted_var): New struct.
46422 (grub_env_context): Renamed to ...
46423 (initial_context): ... this.
46424 (grub_env_var_context): Renamed to ...
46425 (current_context): ... this.
46426 (grub_env_find): Look only at CURRENT_CONTEXT.
46427 (grub_env_context_open): Rewritten to copy exported variables from
46428 previous context.
46429 (grub_env_context_close): Rewritten according to the new
46430 scheme. Also, add an assertion to prevent the initial context from
46431 removed.
46432 (grub_env_insert): Removed the code for the sorted list.
46433 (grub_env_remove): Likewise.
46434 (grub_env_export): Simply mark the variable with
46435 GRUB_ENV_VAR_GLOBAL.
46436 (grub_env_set): A cosmetic change for naming consistency.
46437 (grub_env_get): Likewise.
46438 (grub_env_unset): Likewise.
46439 (grub_env_iterate): Rewritten to sort variables within this
46440 function.
46441 (grub_register_variable_hook): Fixed for naming consistency. Call
46442 grub_env_find again, only if NAME is not found at the first time.
46443 (mangle_data_slot_name): New function.
46444 (grub_env_set_data_slot): Likewise.
46445 (grub_env_get_data_slot): Likewise.
46446 (grub_env_unset_data_slot): Likewise.
46447
46448 * include/grub/env.h (grub_env_var_type): New enum.
46449 (GRUB_ENV_VAR_LOCAL): New constant.
46450 (GRUB_ENV_VAR_GLOBAL): Likewise.
46451 (GRUB_ENV_VAR_DATA): Likewise.
46452 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
46453 "type".
46454 (grub_env_set): Replace VAR with NAME for consistency.
46455 (grub_register_variable_hook): Likewise.
46456 (grub_env_export): Specify the name of the argument.
46457 (grub_env_set_data_slot): New prototype.
46458 (grub_env_get_data_slot): Likewise.
46459 (grub_env_unset_data_slot): Likewise.
46460
7f362539 464612006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46462
46463 Extend the loader so that GRUB can accept a loader which comes
46464 back to GRUB when a loaded image exits. Also, this change adds
46465 support for a chainloader on EFI.
f19dbdb7 46466
7f362539 46467 * term/efi/console.c: Include grub/misc.h.
46468 (grub_console_checkkey): Display a scan code on the top for
46469 debugging. This will be removed once the EFI port gets stable.
46470 Correct the scan code mapping.
46471
46472 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
46473 allocate memory from larger regions, in order to reduce the number
46474 of allocated regions. Otherwise, the MacOSX loader panics.
46475 (filter_memory_map): Avoid less than 1MB for compatibility with
46476 other loaders.
46477 (add_memory_regions): Allocate from the tail of a region, if
46478 possible, to avoid allocating a region near to 1MB, for the MacOSX
46479 loader.
46480
46481 * kern/efi/init.c (grub_efi_set_prefix): Specify
46482 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
46483
46484 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
46485 argument IMAGE_HANDLE and specify it to get a loaded image.
46486 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
46487 grub_efi_get_loaded_image.
fe6b695a 46488 (grub_efi_get_filename): Divide the length by the size of
7f362539 46489 grub_efi_char16_t.
46490 (grub_efi_get_device_path): New function.
46491 (grub_efi_print_device_path): Print End Device Path nodes. Divide
46492 the length by the size of grub_efi_char16_t for a file path device
46493 path node.
46494
46495 * kern/loader.c (grub_loader_noreturn): New variable.
46496 (grub_loader_set): Accept a new argument NORETURN. Set
46497 GRUB_LOADER_NORETURN to NORETURN.
46498 All callers changed.
46499 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
46500 grub_machine_fini.
46501
46502 * include/grub/efi/efi.h (grub_efi_get_device_path): New
46503 prototype.
46504 (grub_efi_get_loaded_image): Take an argument to specify an image
46505 handle.
46506
46507 * include/grub/loader.h (grub_loader_set): Added one more argument
46508 NORETURN.
46509
46510 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
46511 instead of grub_efi_open_protocol.
46512 (grub_efidisk_get_device_name): Likewise.
46513 (grub_efidisk_close): Print a newline.
46514 (grub_efidisk_get_device_handle): Fixed to use
46515 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
46516 GRUB_EFI_DEVICE_PATH_TYPE.
46517
46518 * disk/efi/efidisk.c (device_path_guid): Moved to ...
46519 * kern/efi/efi.c (device_path_guid): ... here.
46520
46521 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
46522 chain.mod.
46523 (kernel_mod_HEADERS): Added efi/disk.h.
46524 (_chain_mod_SOURCES): New variable.
46525 (_chain_mod_CFLAGS): Likewise.
46526 (_chain_mod_LDFLAGS): Likewise.
46527 (chain_mod_SOURCES): Likewise.
46528 (chain_mod_CFLAGS): Likewise.
46529 (chain_mod_LDFLAGS): Likewise.
46530
46531 * DISTLIST: Added include/grub/efi/chainloader.h,
46532 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
46533
46534 * include/grub/efi/chainloader.h: New file.
46535 * loader/efi/chainloader.c: Likewise.
46536 * loader/efi/chainloader_normal.c: Likewise.
46537
c0111d6e 465382006-04-30 Marco Gerards <marco@gnu.org>
46539
46540 * commands/configfile.c (grub_cmd_source): New function.
46541 (GRUB_MOD_INIT): Register the commands `source' and `.'.
46542 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
46543
df5341da 465442006-04-30 Marco Gerards <marco@gnu.org>
46545
46546 * normal/execute.c (grub_script_execute_cmd): Change the return
46547 type to `grub_err_t'. Correctly return the error.
46548 (grub_script_execute_cmdline): In case a command line is not a
46549 command or a function, try to interpret it as an assignment.
46550
f85934bd 465512006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46552
46553 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
46554 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
46555 skip a node whose name is obviously invalid as UTF-16,
46556 i.e. contains a NUL character. Stop the iteration when the last
46557 directory entry is found. Instead of using the return value of
46558 grub_hfsplus_btree_iterate_node, store the value in RET and use
46559 it, because the iterator can be stopped by the last directory
46560 entry.
46561
8f8a2cf8 465622006-04-30 Marco Gerards <marco@gnu.org>
46563
46564 * include/grub/env.h (grub_env_export): New prototype. Reported
46565 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
46566
a27e84ce 465672006-04-30 Marco Gerards <marco@gnu.org>
46568
46569 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
46570 size of the extents in a catalog file record.
46571
eaef0553 465722006-04-29 Marco Gerards <marco@gnu.org>
46573
46574 * commands/configfile.c (grub_cmd_configfile): Execute the
46575 configfile within its own context.
46576
46577 * include/grub/env.h (grub_env_context_open): New prototype.
46578 (grub_env_context_close): Likewise.
46579
46580 * kern/env.c (grub_env): Removed.
46581 (grub_env_sorted): Likewise.
46582 (grub_env_context): New variable.
46583 (grub_env_var_context): Likewise.
46584 (grub_env_find): Search both the active context and the global
46585 context.
46586 (grub_env_context_open): New function.
46587 (grub_env_context_close): Likewise.
46588 (grub_env_insert): Likewise.
46589 (grub_env_remove): Likewise.
46590 (grub_env_export): Likewise.
46591 (grub_env_set): Changed to use helper functions to avoid code
46592 duplication.
46593 (grub_env_iterate): Rewritten so both the current context and the
46594 global context are being used.
46595
46596 * normal/command.c (export_command): New function.
46597 (grub_command_init): Register the `export' function.
46598
7b455f4d 465992006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
46600
46601 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
46602 explicitly to suppress gcc's warnings.
46603 * fs/fat.c (grub_fat_find_dir): Likewise.
46604 (grub_fat_label): Likewise.
46605 * fs/xfs.c (grub_xfs_read_inode): Likewise.
46606 (grub_xfs_mount): Likewise.
46607 (grub_xfs_label): Likewise.
46608 * fs/affs.c (grub_affs_mount): Likewise.
46609 (grub_affs_label): Likewise.
46610 (grub_affs_iterate_dir): Likewise.
46611 * fs/sfs.c (grub_sfs_mount): Likewise.
46612 (grub_sfs_iterate_dir): Likewise.
46613 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
46614 * fs/hfs.c (grub_hfs_mount): Likewise.
46615 (grub_hfs_cmp_catkeys): Likewise.
46616 (grub_hfs_find_dir): Likewise.
46617 (grub_hfs_dir): Likewise.
46618 (grub_hfs_label): Likewise.
46619 * fs/jfs.c (grub_jfs_mount): Likewise.
46620 (grub_jfs_opendir): Likewise.
46621 (grub_jfs_getent): Likewise.
46622 (grub_jfs_lookup_symlink): Likewise.
46623 (grub_jfs_label): Likewise.
46624 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
46625 (grub_hfsplus_iterate_dir): Likewise.
46626 (grub_hfsplus_btree_iterate_node): Made static.
46627
46628 * util/grub-emu.c (prefix): New variable.
46629 (grub_machine_set_prefix): New function.
46630 (main): Do not set the environment variable "prefix" here. Only
46631 set PREFIX, which is used later by grub_machine_set_prefix.
46632
46633 * include/grub/video.h: Do not include grub/symbol.h.
46634 (grub_video_register): Not exported. This symbol is not defined in
46635 the kernel.
46636 (grub_video_unregister): Likewise.
46637 (grub_video_iterate): Likewise.
46638 (grub_video_setup): Likewise.
46639 (grub_video_restore): Likewise.
46640 (grub_video_get_info): Likewise.
46641 (grub_video_get_blit_format): Likewise.
46642 (grub_video_set_palette): Likewise.
46643 (grub_video_get_palette): Likewise.
46644 (grub_video_set_viewport): Likewise.
46645 (grub_video_get_viewport): Likewise.
46646 (grub_video_map_color): Likewise.
46647 (grub_video_map_rgb): Likewise.
46648 (grub_video_map_rgba): Likewise.
46649 (grub_video_fill_rect): Likewise.
46650 (grub_video_blit_glyph): Likewise.
46651 (grub_video_blit_bitmap): Likewise.
46652 (grub_video_blit_render_target): Likewise.
46653 (grub_video_scroll): Likewise.
46654 (grub_video_swap_buffers): Likewise.
46655 (grub_video_create_render_target): Likewise.
46656 (grub_video_delete_render_target): Likewise.
46657 (grub_video_set_active_render_target): Likewise.
46658
46659 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
46660 Undefined.
46661 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
46662
46663 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
46664 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46665 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46666 instead of $(srcdir)/genkernsyms.sh.
46667
46668 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
46669 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46670 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46671 instead of $(srcdir)/genkernsyms.sh.
46672
46673 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
46674 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46675 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46676 instead of $(srcdir)/genkernsyms.sh.
46677
46678 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
46679 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46680 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46681 instead of $(srcdir)/genkernsyms.sh.
46682
46683 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
46684 genkernsyms.sh.
46685
46686 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
46687 genkernsyms.sh.
46688 (gensymlist.sh): New target.
46689 (genkernsyms.sh): Likewise.
46690
46691 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
46692 genkernsyms.sh.in and gensymlist.sh.in.
46693
46694 * genkernsyms.sh: Removed.
46695 * gensymlist.sh: Likewise.
f19dbdb7 46696
7b455f4d 46697 * genkernsyms.sh.in: New file.
46698 * gensymlist.sh.in: Likewise.
46699
1885bb27 467002006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46701
46702 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
46703 clobber "prefix", since we may have already set it manually.
46704
71538dff 467052006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46706
46707 * kern/misc.c (abort): New alias for grub_abort.
46708
2965c7cc 467092006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
46710
46711 A new machine-specific function "grub_machine_set_prefix" is
46712 defined. This is called after loading modules, so that a prefix
46713 initialization can use modules. Also, this change adds an
46714 intensive debugging feature for the memory manager via the
46715 configure option "--enable-mm-debug".
f19dbdb7 46716
2965c7cc 46717 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
46718 PART.LEN.
46719
46720 * kern/sparc64/ieee1275/init.c (abort): Removed.
46721 (grub_stop): Likewise.
46722 (grub_exit): New function.
46723 (grub_set_prefix): Renamed to ...
46724 (grub_machine_set_prefix): ... this.
46725 (grub_machine_init): Do not call grub_set_prefix.
46726
46727 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
46728 (grub_machine_set_prefix): ... this.
46729 (grub_machine_init): Do not call grub_set_prefix.
46730
46731 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
46732 (grub_machine_init): Do not set the prefix here.
46733
46734 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
46735
46736 * kern/efi/init.c: Include grub/mm.h.
46737 (grub_efi_set_prefix): New function.
46738
46739 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
46740 (grub_efi_get_filename): New function.
46741 (grub_print_device_path): Renamed to ...
46742 (grub_efi_print_device_path): ... this.
46743
46744 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
46745 [MM_DEBUG] (grub_realloc): Likewise.
46746 [MM_DEBUG] (grub_free): Likewise.
46747 [MM_DEBUG] (grub_memalign): Likewise.
46748 [MM_DEBUG] (grub_mm_debug): New variable.
46749 [MM_DEBUG] (grub_debug_malloc): New function.
46750 [MM_DEBUG] (grub_debug_free): New function.
46751 [MM_DEBUG] (grub_debug_realloc): New function.
46752 [MM_DEBUG] (grub_debug_memalign): New function.
46753
46754 * kern/misc.c (grub_abort): Print a newline to distinguish
46755 the message.
46756
46757 * kern/main.c (grub_main): Call grub_machine_set_prefix and
46758 grub_set_root_dev after loading modules. This is necessary when
46759 setting a prefix depends on modules.
46760
46761 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
46762 (grub_efi_print_device_path): ... this.
46763 (grub_efi_get_filename): New prototype.
46764 (grub_efi_set_prefix): Likewise.
46765
46766 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
46767 and grub/disk.h.
46768 (grub_efidisk_get_device_handle): New prototype.
46769 (grub_efidisk_get_device_name): Likewise.
46770
46771 * include/grub/mm.h: Include config.h.
46772 (MM_DEBUG): Removed.
46773 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
46774 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
46775 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
46776 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
46777 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
46778 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
46779 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
46780 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
46781 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
46782
46783 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
46784
46785 * disk/efi/efidisk.c: Include grub/partition.h.
46786 (iterate_child_devices): New function.
46787 (add_device): First, compare only last device path nodes, so that
46788 devices are sorted by the types.
46789 (grub_efidisk_get_device_handle): New function.
46790 (grub_efidisk_get_device_name): Likewise.
46791
46792 * configure.ac (--enable-mm-debug): New option to enable the
46793 memory manager debugging feature. This makes the binary much
46794 bigger, so is disabled by default.
46795
9cacaa17 467962006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
46797
46798 Use grub_abort instead of grub_stop, and grub_exit must be
46799 define in each architecture now. Also, this change adds support
46800 for EFI disks.
f19dbdb7 46801
9cacaa17 46802 * util/i386/pc/grub-probefs.c: Include grub/term.h.
46803 (grub_getkey): New function.
46804 (grub_term_get_current): Likewise.
46805
46806 * util/i386/pc/grub-setup.c: Include grub/term.h.
46807 (grub_getkey): New function.
46808 (grub_term_get_current): Likewise.
46809
46810 * util/misc.c (grub_stop): Renamed to ...
46811 (grub_exit): ... this.
46812
46813 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
46814 (grub_exit): ... this.
46815 (grub_machine_init): Use grub_abort instead of abort.
46816 (grub_stop): Removed.
46817
46818 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
46819 abort.
46820
46821 * kern/i386/pc/startup.S (grub_exit): New function.
46822 (cold_reboot): New label.
46823
46824 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
46825 (grub_efi_init): Call grub_efidisk_init.
46826 (grub_efi_fini): Call grub_efidisk_fini.
46827
46828 * kern/efi/efi.c: Include grub/mm.h.
46829 (grub_efi_console_control_guid): Renamed to ...
46830 (console_control_guid): ... this.
46831 (grub_efi_loaded_image_guid): Renamed to ...
46832 (loaded_image_guid): ... this.
46833 (grub_efi_locate_handle): New function.
46834 (grub_efi_open_protocol): Likewise.
46835 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
46836 GRUB_EFI_CONSOLE_CONTROL_GUID.
46837 (grub_efi_exit): Removed.
46838 (grub_stop): Likewise.
46839 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
46840 (grub_exit): New function.
46841 (grub_print_device_path): Likewise.
46842
46843 * kern/rescue.c (grub_rescue_cmd_exit): New function.
46844 (grub_enter_rescue_mode): Register "exit".
46845
46846 * kern/misc.c (grub_real_dprintf): A cosmetic change.
46847 (grub_abort): New function.
46848
46849 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
46850
46851 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
46852
46853 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
46854
46855 * include/grub/efi/efi.h (grub_efi_exit): Removed.
46856 (grub_print_device_path): New prototype.
46857 (grub_efi_locate_handle): Likewise.
46858 (grub_efi_open_protocol): Likewise.
46859
46860 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
46861 * disk/efi/efidisk.c: Likewise.
46862
46863 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
46864
46865 * include/grub/efi/console_control.h
46866 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
46867
46868 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
46869 last 8 bytes as an array.
46870 (GRUB_EFI_DISK_IO_GUID): New macro.
46871 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
46872 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
46873 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
46874 grub_uint8_t.
46875 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
46876 (struct grub_efi_device_path): Rename the member "sub_type" to
46877 "subtype".
46878 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
46879 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
46880 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
46881 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
46882 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
46883 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
46884 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
46885 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
46886 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
46887 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
46888 (struct grub_efi_pci_device_path): New structure.
46889 (grub_efi_pci_device_path_t): New type.
46890 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
46891 (struct grub_efi_pccard_device_path): New structure.
46892 (grub_efi_pccard_device_path_t): New type.
46893 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
46894 (struct grub_efi_memory_mapped_device_path): New structure.
46895 (grub_efi_memory_mapped_device_path_t): New type.
46896 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
46897 (struct grub_efi_vendor_device_path): New structure.
46898 (grub_efi_vendor_device_path_t): New type.
46899 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
46900 (struct grub_efi_controller_device_path): New structure.
46901 (grub_efi_controller_device_path_t): New type.
46902 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
46903 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
46904 (struct grub_efi_acpi_device_path): New structure.
46905 (grub_efi_acpi_device_path_t): New type.
46906 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
46907 (struct grub_efi_expanded_acpi_device_path): New structure.
46908 (grub_efi_expanded_acpi_device_path_t): New type.
46909 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
46910 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
46911 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
46912 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
46913 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
46914 (struct grub_efi_atapi_device_path): New structure.
46915 (grub_efi_atapi_device_path_t): New type.
46916 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
46917 (struct grub_efi_fibre_channel_device_path): New structure.
46918 (grub_efi_fibre_channel_device_path_t): New type.
46919 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
46920 (struct grub_efi_1394_device_path): New structure.
46921 (grub_efi_1394_device_path_t): New type.
46922 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
46923 (struct grub_efi_usb_device_path): New structure.
46924 (grub_efi_usb_device_path_t): New type.
46925 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
46926 (struct grub_efi_usb_class_device_path): New structure.
46927 (grub_efi_usb_class_device_path_t): New type.
46928 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
46929 (struct grub_efi_i2o_device_path): New structure.
46930 (grub_efi_i2o_device_path_t): New type.
46931 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
46932 (struct grub_efi_mac_address_device_path): New structure.
46933 (grub_efi_mac_address_device_path_t): New type.
46934 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
46935 (struct grub_efi_ipv4_device_path): New structure.
46936 (grub_efi_ipv4_device_path_t): New type.
46937 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
46938 (struct grub_efi_ipv6_device_path): New structure.
46939 (grub_efi_ipv6_device_path_t): New type.
46940 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
46941 (struct grub_efi_infiniband_device_path): New structure.
46942 (grub_efi_infiniband_device_path_t): New type.
46943 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
46944 (struct grub_efi_uart_device_path): New structure.
46945 (grub_efi_uart_device_path_t): New type.
46946 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
46947 (struct grub_efi_vendor_messaging_device_path): New structure.
46948 (grub_efi_vendor_messaging_device_path_t): New type.
46949 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
46950 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
46951 (struct grub_efi_hard_drive_device_path): New structure.
46952 (grub_efi_hard_drive_device_path_t): New type.
46953 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
46954 (struct grub_efi_cdrom_device_path): New structure.
46955 (grub_efi_cdrom_device_path_t): New type.
46956 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
46957 (struct grub_efi_vendor_media_device_path): New structure.
46958 (grub_efi_vendor_media_device_path_t): New type.
46959 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
46960 (struct grub_efi_file_path_device_path): New structure.
46961 (grub_efi_file_path_device_path_t): New type.
46962 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
46963 (struct grub_efi_protocol_device_path): New structure.
46964 (grub_efi_protocol_device_path_t): New type.
46965 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
46966 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
46967 (struct grub_efi_bios_device_path): New structure.
46968 (grub_efi_bios_device_path_t): New type.
46969 (struct grub_efi_disk_io): New structure.
46970 (grub_efi_disk_io_t): New type.
46971 (struct grub_efi_block_io_media): New structure.
46972 (grub_efi_block_io_media_t): New type.
46973 (struct grub_efi_block_io): New structure.
46974 (grub_efi_block_io_t): New type.
46975
46976 * include/grub/misc.h (grub_stop): Removed.
46977 (grub_exit): New prototype.
46978 (grub_abort): Likewise.
46979
46980 * include/grub/disk.h (enum grub_disk_dev_id): Added
46981 GRUB_DISK_DEVICE_EFIDISK_ID.
46982
46983 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
46984 disk/efi/efidisk.c.
46985 (kernel_syms.lst): Remove the target if an error occurs.
46986
49986a9f 469872006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
46988
46989 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
46990 as it was simply too buggy.
46991
970d3b8a 469922006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
46993
46994 * kern/misc.c (grub_lltoa): New function.
46995 (grub_vsprintf): Added support for the long long suffix,
46996 i.e. "ll".
46997
ff04ec24 469982006-04-20 Hollis Blanchard <hollis@penguinppc.org>
46999
47000 * Makefile.in (LDFLAGS): Add variable.
47001 (LD): Remove variable.
47002 * configure.ac: Add -m32 to LDFLAGS.
47003 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
47004 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
47005 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
47006 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
47007 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
47008 variables.
47009 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
47010 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
47011 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
47012
37e5e1a4 470132006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
47014
47015 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
47016 length for unknown glyph.
47017
c352d8dd 470182006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
47019
2eab1c0d 47020 Add support for pre-loaded modules into the EFI port.
f19dbdb7 47021
2eab1c0d 47022 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
47023 completely. Accept one more argument DIR. The caller has changed.
47024
47025 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
47026
47027 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
47028 (grub_efi_loaded_image_guid): New variable.
47029 (grub_efi_get_loaded_image): New function.
47030 (grub_arch_modules_addr): Likewise.
47031
47032 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
47033 prototype.
47034
47035 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
47036 (struct grub_efi_loaded_image): New structure.
47037 (grub_efi_loaded_image_t): New type.
47038
470392006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 47040
c352d8dd 47041 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
47042 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
47043 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
47044
6d01d6b4 470452006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
47046
47047 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
47048
976a4ea0 470492006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
47050
47051 * DISTLIST: Added include/grub/efi/console.h,
47052 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
47053 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47054
47055 * include/grub/efi/console.h: New file.
47056 * include/grub/efi/time.h: Likewise.
47057 * include/grub/i386/efi/kernel.h: Likewise.
47058 * kern/efi/init.c: Likewise.
47059 * kern/efi/mm.c: Likewise.
47060 * term/efi/console.c: Likewise.
f19dbdb7 47061
976a4ea0 47062 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
47063 (grub_stop): Removed.
47064 (grub_get_rtc): Likewise.
47065 (grub_machine_init): Simply call grub_efi_init.
47066 (grub_machine_fini): Call grub_efi_fini.
47067
47068 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
47069 (grub_efi_output_string): Removed.
47070 (grub_efi_stall): New function.
47071 (grub_stop): Likewise.
47072 (grub_get_rtc): Likewise.
47073
47074 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
47075 (grub_efi_stall): New prototype.
47076 (grub_efi_allocate_pages): Likewise.
47077 (grub_efi_free_pages): Likewise.
47078 (grub_efi_get_memory_map): Likewise.
47079 (grub_efi_mm_init): Likewise.
47080 (grub_efi_mm_fini): Likewise.
47081 (grub_efi_init): Likewise.
47082 (grub_efi_fini): Likewise.
47083
47084 * include/grub/i386/efi/time.h: Do not include
47085 grub/symbol.h. Include grub/efi/time.h.
47086 (GRUB_TICKS_PER_SECOND): Removed.
47087 (grub_get_rtc): Likewise.
47088
47089 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
47090 Added padding. The EFI spec is buggy.
47091 (GRUB_EFI_BLACK): New macro.
47092 (GRUB_EFI_BLUE): Likewise.
47093 (GRUB_EFI_GREEN): Likewise.
47094 (GRUB_EFI_CYAN): Likewise.
47095 (GRUB_EFI_RED): Likewise.
47096 (GRUB_EFI_MAGENTA): Likewise.
47097 (GRUB_EFI_BROWN): Likewise.
47098 (GRUB_EFI_LIGHTGRAY): Likewise.
47099 (GRUB_EFI_BRIGHT): Likewise.
47100 (GRUB_EFI_DARKGRAY): Likewise.
47101 (GRUB_EFI_LIGHTBLUE): Likewise.
47102 (GRUB_EFI_LIGHTGREEN): Likewise.
47103 (GRUB_EFI_LIGHTCYAN): Likewise.
47104 (GRUB_EFI_LIGHTRED): Likewise.
47105 (GRUB_EFI_LIGHTMAGENTA): Likewise.
47106 (GRUB_EFI_YELLOW): Likewise.
47107 (GRUB_EFI_WHITE): Likewise.
47108 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
47109 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
47110 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
47111 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
47112 (GRUB_EFI_BACKGROUND_RED): Likewise.
47113 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
47114 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
47115 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
47116 (GRUB_EFI_TEXT_ATTR): Likewise.
47117
47118 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
47119 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47120 (kernel_mod_HEADERS): Added efi/time.h.
47121
83709125 471222006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
47123
47124 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
47125 include/grub/efi/api.h, include/grub/efi/console_control.h,
47126 include/grub/efi/efi.h, include/grub/efi/pe32.h,
47127 include/grub/i386/efi/time.h, kern/efi/efi.c,
47128 kern/i386/efi/init.c, kern/i386/efi/startup.S,
47129 and util/i386/efi/grub-mkimage.c.
47130
47131 * Makefile.in (RMKFILES): Added i386-efi.rmk.
47132
47133 * genmk.rb (PModule#rule): Do not export symbols if
47134 #{prefix}_EXPORTS is set to "no".
47135
47136 * conf/i386-efi.mk: New file.
47137 * conf/i386-efi.rmk: Likewise.
47138 * include/grub/efi/api.h: Likewise.
47139 * include/grub/efi/console_control.h: Likewise.
47140 * include/grub/efi/efi.h: Likewise.
47141 * include/grub/efi/pe32.h: Likewise.
47142 * include/grub/i386/efi/time.h: Likewise.
47143 * kern/efi/efi.c: Likewise.
47144 * kern/i386/efi/init.c: Likewise.
47145 * kern/i386/efi/startup.S: Likewise.
47146 * util/i386/efi/grub-mkimage.c: Likewise.
47147
471482006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 47149
47150 * include/grub/script.h: Include <grub/parser.h> and
47151 "grub_script.tab.h".
47152 (struct grub_lexer_param): New struct.
47153 (struct grub_parser_param): Likewise.
47154 (grub_script_create_arglist): Pass the state in an argument.
47155 (grub_script_add_arglist): Likewise.
47156 (grub_script_create_cmdline): Likewise.
47157 (grub_script_create_cmdblock): Likewise.
47158 (grub_script_create_cmdif): Likewise.
47159 (grub_script_create_cmdmenu): Likewise.
47160 (grub_script_add_cmd): Likewise.
47161 (grub_script_arg_add): Likewise.
47162 (grub_script_lexer_ref): Likewise.
47163 (grub_script_lexer_deref): Likewise.
47164 (grub_script_lexer_record_start): Likewise.
47165 (grub_script_lexer_record_stop): Likewise.
47166 (grub_script_mem_record): Likewise.
47167 (grub_script_mem_record_stop): Likewise.
47168 (grub_script_malloc): Likewise.
47169 (grub_script_yylex): Likewise.
47170 (grub_script_yyparse): Likewise.
47171 (grub_script_yyerror): Likewise.
47172 (grub_script_yylex): Likewise.
47173 (grub_script_lexer_init): Return the state.
47174
47175 * normal/lexer.c (grub_script_lexer_state): Removed variable.
47176 (grub_script_lexer_done): Likewise.
47177 (grub_script_lexer_getline): Likewise.
47178 (grub_script_lexer_refs): Likewise.
47179 (script): Likewise.
47180 (newscript): Likewise.
47181 (record): Likewise.
47182 (recording): Likewise.
47183 (recordpos): Likewise.
47184 (recordlen): Likewise.
47185 (grub_script_lexer_init): Return the state instead of setting
47186 global variables.
47187 (grub_script_lexer_ref): Use the newly added argument for state
47188 instead of globals.
47189 (grub_script_lexer_deref): Likewise.
47190 (grub_script_lexer_record_start): Likewise.
47191 (grub_script_lexer_record_stop): Likewise.
47192 (recordchar): Likewise.
47193 (nextchar): Likewise.
47194 (grub_script_yylex2): Likewise.
47195 (grub_script_yylex): Likewise.
47196 (grub_script_yyerror): Likewise.
47197
47198 * normal/parser.y (func_mem): Removed variable.
47199 (menu_entry): Likewise.
47200 (err): Likewise.
47201 (%lex-param): New parser option.
47202 (%parse-param): Likewise.
47203 (script): Always return the AST.
47204 (argument): Pass the state around.
47205 (arguments): Likewise.
47206 (grubcmd): Likewise.
47207 (commands): Likewise.
47208 (function): Likewise.
47209 (menuentry): Likewise.
47210 (if_statement): Likewise.
47211 (if): Likewise.
47212
47213 * normal/script.c (grub_script_memused): Removed variable.
47214 (grub_script_parsed): Likewise.
47215 (grub_script_malloc): Added a state argument. Use that instead of
47216 global variables.
47217 (grub_script_mem_record): Likewise.
47218 (grub_script_mem_record_stop): Likewise.
47219 (grub_script_arg_add): Likewise.
47220 (grub_script_add_arglist): Likewise.
47221 (grub_script_create_cmdline): Likewise.
47222 (grub_script_create_cmdif): Likewise.
47223 (grub_script_create_cmdmenu): Likewise.
47224 (grub_script_add_cmd): Likewise.
47225 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 47226
e2a8c904 472272006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 47228
47229 * normal/command.c (grub_command_init): Remove the title command.
47230
47231 * normal/lexer.c (grub_script_yylex): Renamed from this...
47232 (grub_script_yylex2): ... to this.
47233 (grub_script_yylex): New function. Temporary
47234 introduced to filter some tokens.
47235 (grub_script_yyerror): Print a newline.
47236
47237 * normal/main.c (read_config_file): Output information about the
47238 lines that contain errors. Wait for a key after all lines have
47239 been processed. Don't return an empty menu.
47240
47241 * normal/parser.y (func_mem): Don't initialize.
47242 (menu_entry): Likewise.
47243 (err): New variable.
47244 (script): Don't return anything when an error was encountered.
47245 (ws, returns): Removed rules.
47246 (argument): Disabled concatenated variable support.
47247 (arguments): Remove explicit separators.
47248 (grubcmd): Likewise.
47249 (function): Likewise.
47250 (menuentry): Likewise.
47251 (if): Likewise.
47252 (commands): Likewise. Add error handling.
47253
47254 * normal/script.c (grub_script_create_cmdline): If
47255 `grub_script_parsed' is 0, assume the parser encountered an error.
47256
c9a86192 472572006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
47258
47259 * configure.ac: Add support for EFI. Fix the typo
47260 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
47261
70f3b243 472622006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47263
47264 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
47265 foreign multibyte characters should be shown correctly.
47266
65f201ad 472672006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47268
47269 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
47270 calculation.
47271 (read_config_file): Made it to close file before returning.
47272
b4b93674 472732006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
47274
47275 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
47276 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
47277 video/i386/pc/vbefill.c.
47278
47279 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
47280 video/i386/pc/vbefill.c.
47281
47282 * include/grub/video.h (grub_video_blit_format): New enum.
47283 (grub_video_mode_info): Added new member blit_format.
47284 (grub_video_get_blit_format): New function prototype.
47285
47286 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
47287 function prototype.
47288 (grub_video_vbe_map_rgb): Likewise.
47289 (grub_video_vbe_unmap_color): Likewise.
47290
47291 * include/grub/i386/pc/vbeblit.h: New file.
47292
47293 * include/grub/i386/pc/vbefill.h: New file.
47294
47295 * video/video.c (grub_video_get_blit_format): New function.
47296 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
47297 (grub_video_vbe_map_rgb): Likewise.
47298 (grub_video_vbe_unmap_color): Likewise.
47299
47300 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
47301 optimized fills.
47302 (grub_video_vbe_blit_render_target): Changed to use more optimized
47303 blits.
47304 (grub_video_vbe_setup): Added detection for optimized settings.
47305 (grub_video_vbe_create_render_target): Likewise.
47306
47307 * video/i386/pc/vbeblit.c: New file.
47308
47309 * video/i386/pc/vbefill.c: New file.
47310
c2379b9c 473112006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
47312
47313 * font/manager.c (grub_font_get_glyph): Removed font fixup from
47314 here...
47315
47316 * util/unifont2pff.rb: ... and moved it to here. Improved argument
47317 parsing to support both hex and dec ranges. If filename was missing
47318 show usage information.
47319
bd0d7896 473202006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
47321
47322 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
47323 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
47324
47325 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
47326 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
47327 (video_mod_SOURCES): Added.
47328 (video_mod_CFLAGS): Likewise.
47329 (video_mod_LDFLAGS): Likewise.
47330 (gfxterm_mod_SOURCES): Likewise.
47331 (gfxterm_mod_CFLAGS): Likewise.
47332 (gfxterm_mod_LDFLAGS): Likewise.
47333 (videotest_mod_SOURCES): Likewise.
47334 (videotest_mod_CFLAGS): Likewise.
47335 (videotest_mod_LDFLAGS): Likewise.
47336 (vesafb_mod_SOURCES): Removed.
47337 (vesafb_mod_CFLAGS): Likewise.
47338 (vesafb_mod_LDFLAGS): Likewise.
47339 (vga_mod_SOURCES): Likewise.
47340 (vga_mod_CFLAGS): Likewise.
47341 (vga_mod_LDFLAGS): Likewise.
47342
47343 * commands/videotest.c: New file.
47344
47345 * font/manager.c (fill_with_default_glyph): Modified to use
47346 grub_font_glyph.
47347 (grub_font_get_glyph): Likewise.
47348 (fontmanager): Renamed from this...
47349 (font_manager): ... to this.
47350
47351 * include/grub/font.h (grub_font_glyph): Added new structure.
47352 (grub_font_get_glyph): Modified to use grub_font_glyph.
47353
47354 * include/grub/misc.h (grub_abs): Added as inline function.
47355
47356 * include/grub/video.h: New file.
47357
47358 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
47359 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
47360 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
47361 (grub_vbe_get_controller_info): Renamed from this...
47362 (grub_vbe_bios_get_controller_info): ... to this.
47363 (grub_vbe_get_mode_info): Renamed from this...
47364 (grub_vbe_bios_get_mode_info): ... to this.
47365 (grub_vbe_set_mode): Renamed from this...
47366 (grub_vbe_bios_set_mode): ... to this.
47367 (grub_vbe_get_mode): Renamed from this...
47368 (grub_vbe_bios_get_mode): ... to this.
47369 (grub_vbe_set_memory_window): Renamed from this...
47370 (grub_vbe_bios_set_memory_window): ... to this.
47371 (grub_vbe_get_memory_window): Renamed from this...
47372 (grub_vbe_bios_get_memory_window): ... to this.
47373 (grub_vbe_set_scanline_length): Renamed from this...
47374 (grub_vbe_set_scanline_length): ... to this.
47375 (grub_vbe_get_scanline_length): Renamed from this...
47376 (grub_vbe_bios_get_scanline_length): ... to this.
47377 (grub_vbe_set_display_start): Renamed from this...
47378 (grub_vbe_bios_set_display_start): ... to this.
47379 (grub_vbe_get_display_start): Renamed from this...
47380 (grub_vbe_bios_get_display_start): ... to this.
47381 (grub_vbe_set_palette_data): Renamed from this...
47382 (grub_vbe_bios_set_palette_data): ... to this.
47383 (grub_vbe_set_pixel_rgb): Removed.
47384 (grub_vbe_set_pixel_index): Likewise.
47385
47386 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
47387 from this...
47388 (grub_vbe_bios_get_controller_info): ... to this.
47389 (grub_vbe_get_mode_info): Renamed from this...
47390 (grub_vbe_bios_get_mode_info): ... to this.
47391 (grub_vbe_set_mode): Renamed from this...
47392 (grub_vbe_bios_set_mode): ... to this.
47393 (grub_vbe_get_mode): Renamed from this...
47394 (grub_vbe_bios_get_mode): ... to this.
47395 (grub_vbe_set_memory_window): Renamed from this...
47396 (grub_vbe_bios_set_memory_window): ... to this.
47397 (grub_vbe_get_memory_window): Renamed from this...
47398 (grub_vbe_bios_get_memory_window): ... to this.
47399 (grub_vbe_set_scanline_length): Renamed from this...
47400 (grub_vbe_set_scanline_length): ... to this.
47401 (grub_vbe_get_scanline_length): Renamed from this...
47402 (grub_vbe_bios_get_scanline_length): ... to this.
47403 (grub_vbe_set_display_start): Renamed from this...
47404 (grub_vbe_bios_set_display_start): ... to this.
47405 (grub_vbe_get_display_start): Renamed from this...
47406 (grub_vbe_bios_get_display_start): ... to this.
47407 (grub_vbe_set_palette_data): Renamed from this...
47408 (grub_vbe_bios_set_palette_data): ... to this.
47409 (grub_vbe_bios_get_controller_info): Fixed problem with registers
47410 getting corrupted after calling it. Added more pushes and pops.
47411 (grub_vbe_bios_set_mode): Likewise.
47412 (grub_vbe_bios_get_mode): Likewise.
47413 (grub_vbe_bios_get_memory_window): Likewise.
47414 (grub_vbe_bios_set_scanline_length): Likewise.
47415 (grub_vbe_bios_get_scanline_length): Likewise.
47416 (grub_vbe_bios_get_display_start): Likewise.
47417 (grub_vbe_bios_set_palette_data): Likewise.
47418
47419 * normal/cmdline.c (cl_set_pos): Refresh the screen.
47420 (cl_insert): Likewise.
47421 (cl_delete): Likewise.
47422
47423 * term/gfxterm.c: New file.
47424
47425 * term/i386/pc/vesafb.c: Removed file.
47426
47427 * video/video.c: New file.
47428
47429 * video/i386/pc/vbe.c (real2pm): Added new function.
47430 (grub_video_vbe_draw_pixel): Likewise.
47431 (grub_video_vbe_get_video_ptr): Likewise.
47432 (grub_video_vbe_get_pixel): Likewise
47433 (grub_video_vbe_init): Likewise.
47434 (grub_video_vbe_fini): Likewise.
47435 (grub_video_vbe_setup): Likewise.
47436 (grub_video_vbe_get_info): Likewise.
47437 (grub_video_vbe_set_palette): Likewise.
47438 (grub_video_vbe_get_palette): Likewise.
47439 (grub_video_vbe_set_viewport): Likewise.
47440 (grub_video_vbe_get_viewport): Likewise.
47441 (grub_video_vbe_map_color): Likewise.
47442 (grub_video_vbe_map_rgb): Likewise.
47443 (grub_video_vbe_map_rgba): Likewise.
47444 (grub_video_vbe_unmap_color): Likewise.
47445 (grub_video_vbe_fill_rect): Likewise.
47446 (grub_video_vbe_blit_glyph): Likewise.
47447 (grub_video_vbe_blit_bitmap): Likewise.
47448 (grub_video_vbe_blit_render_target): Likewise.
47449 (grub_video_vbe_scroll): Likewise.
47450 (grub_video_vbe_swap_buffers): Likewise.
47451 (grub_video_vbe_create_render_target): Likewise.
47452 (grub_video_vbe_delete_render_target): Likewise.
47453 (grub_video_vbe_set_active_render_target): Likewise.
47454 (grub_vbe_set_pixel_rgb): Remove function.
47455 (grub_vbe_set_pixel_index): Likewise.
47456 (index_color_mode): Remove static variable.
47457 (active_mode): Likewise.
47458 (framebuffer): Likewise.
47459 (bytes_per_scan_line): Likewise.
47460 (grub_video_vbe_adapter): Added new static variable.
47461 (framebuffer): Likewise.
47462 (render_target): Likewise.
47463 (initial_mode): Likewise.
47464 (mode_in_use): Likewise.
47465 (mode_list): Likewise.
47466
5f97350b 474672006-03-10 Marco Gerards <marco@gnu.org>
47468
47469 * configure.ac (AC_INIT): Bumped to 1.93.
47470
47471 * DISTLIST: Added `include/grub/hfs.h'.
47472
a3c5c6f8 474732006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
47474
47475 * boot/i386/pc/boot.S (general_error): Before looping, try INT
47476 18H, which might help the BIOS falling back to next boot media.
47477
6de53d26 474782006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
47479
47480 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
47481 Poe Chen <poe.poechen@gmail.com>.
47482
77c4a393 474832006-01-17 Marco Gerards <marco@gnu.org>
47484
47485 * include/grub/normal.h: Include <grub/script.h>.
47486 (grub_command_list): Removed struct.
47487 (grub_command_list_t): Removed type.
47488 (grub_menu_entry): Remove members `num' and `command_list'. Add
47489 members `commands' and `sourcecode'.
47490 * include/grub/script.h: Add inclusion guards.
47491 (grub_script_cmd_menuentry): New struct.
47492 (grub_script_execute_menuentry): New prototype.
47493 (grub_script_lexer_record_start): Likewise.
47494 (grub_script_lexer_record_stop): Likewise.
47495 * normal/execute.c (grub_script_execute_menuentry): New function.
47496 * normal/lexer.c (record, recording, recordpos, recordlen): New
47497 variables.
47498 (grub_script_lexer_record_start): New function.
47499 (grub_script_lexer_record_stop): Likewise.
47500 (recordchar): Likewise.
47501 (nextchar): Likewise.
47502 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
47503 2048 as the buffer size. Add the tokens `menuentry' and `@'.
47504 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
47505 (current_menu): New variable.
47506 (free_menu): Mainly rewritten.
47507 (grub_normal_menu_addentry): New function.
47508 (read_config_file): Rewritten.
47509 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 47510 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 47511 the menu entry.
47512 (run): Mainly rewritten.
47513 * normal/parser.y (menu_entry): New variable.
47514 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
47515 (menuentry): New rule.
47516 (command): Add `menuentry'.
47517 (if_statement): Allow additional returns before `fi'.
47518 * normal/script.c (grub_script_create_cmdmenu): New function.
47519
144f1f98 475202006-01-03 Marco Gerards <marco@gnu.org>
47521
47522 * INSTALL: GNU Bison is required.
47523 * configure.ac: Rewritten the test to detect Bison.
47524 * Makefile.in (YACC): New variable. Reported by Xun Sun
47525 <xun.sun.cn@gmail.com>.
47526
af4b2d89 475272006-01-03 Marco Gerards <marco@gnu.org>
47528
47529 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
47530 the HFS+ filesystem to filesystem blocks.
47531 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
47532 GCC warning is silenced.
47533
15643b71 475342006-01-03 Marco Gerards <marco@gnu.org>
47535
47536 * partmap/apple.c (apple_partition_map_iterate): Convert the data
47537 read from disk from big endian to host byte order.
47538
00905879 475392006-01-03 Hollis Blanchard <hollis@penguinppc.org>
47540
47541 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
47542 documentation.
47543 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
47544 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
47545 embedded HFS+ filesystem.
47546 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
47547 (grub_hfs_sblock): Move from here...
47548 * include/grub/hfs.h: To here... New file.
47549 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
47550 documentation.
47551 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
47552 New macros.
47553 (grub_hfsplus_volheader): Change type of member `magic' to
47554 `grub_uint16_t'.
47555 (grub_hfsplus_data): Add new member `embedded_offset'.
47556 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
47557 returned block.
47558 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
47559 Calculate the offset.
47560
8899bc3e 475612005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47562
47563 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
47564 Removed.
47565 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
47566
ae8c0277 475672005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47568
47569 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
47570 ENV->NAME is NULL after allocating ENV->VALUE.
47571
07084456 475722005-12-25 Marco Gerards <marco@gnu.org>
47573
47574 * kern/env.c (grub_env_set): Rewritten the error handling code.
47575
4750f5f1 475762005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47577
47578 * geninit.sh: Made more robust, and more portable.
47579
50214199 475802005-12-25 Marco Gerards <marco@gnu.org>
47581
47582 Add support for Apple HFS+ filesystems.
f19dbdb7 47583
50214199 47584 * fs/hfsplus.c: New file.
47585
47586 * DISTLIST: Added `fs/hfsplus.c'.
47587
47588 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
47589 (hfsplus_mod_SOURCES): New variable.
47590 (hfsplus_mod_CFLAGS): Likewise.
47591 (hfsplus_mod_LDFLAGS): Likewise.
47592 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
47593 (grub_setup_SOURCES): Likewise.
47594 (grub_mkdevicemap_SOURCES): Likewise.
47595 (grub_emu_SOURCES): Likewise.
47596 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47597
47598 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
47599
47600 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
47601
befaed6c 476022005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47603
47604 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
47605 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
47606 include/grub/parser.h, include/grub/script.h, kern/parser.c,
47607 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
47608 normal/lexer.c, normal/parser.y, normal/script.c, and
47609 partmap/gpt.c.
47610 Removed kern/sparc64/cache.c.
47611
47612 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
47613 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
47614 grub_emu_init.c.
47615
47616 * configure.ac (AC_INIT): Bumped to 1.92.
47617
6a124103 476182005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
47619
47620 * kern/err.c (grub_error_push): Added new function to support error
47621 stacks.
47622 (grub_error_pop): Likewise.
47623 (grub_error_stack_items): New local variable to support error stacks.
47624 (grub_error_stack_pos): Likewise.
47625 (grub_error_stack_assert): Likewise.
47626 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
47627 stack depth.
47628 (grub_print_error): Added support to print errors from error stack.
47629
47630 * include/grub/err.h (grub_error_push): Added function prototype.
47631 (grub_error_pop): Likewise.
47632
be973c1b 476332005-12-09 Hollis Blanchard <hollis@penguinppc.org>
47634
47635 * configure.ac: Accept `powerpc64' as host_cpu.
47636 (amd64): Rename to `biarch32'.
47637
47638 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
47639 non-cacheline-aligned addresses.
47640
47641 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
47642 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
47643 if `size' is non-zero.
47644
b04216ab 476452005-12-03 Marco Gerards <mgerards@xs4all.nl>
47646
47647 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
47648 and `cd' to make sure the filename is not prefixed with a
47649 directory name.
47650 (pkgdata_MODULES): Add `gpt.mod'.
47651 (gpt_mod_SOURCES): New variable.
47652 (gpt_mod_CFLAGS): Likewise.
47653 (gpt_mod_LDFLAGS): Likewise.
47654
47655 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
47656
47657 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
47658 New macro.
47659
47660 * partmap/gpt.c: New file.
47661
47662 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
47663 GPT partition map is detected.
47664
41730ed9 476652005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
47666
47667 * commands/i386/pc/play.c: New file.
47668 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
47669 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
47670 macros.
f19dbdb7 47671
95dc3643 476722005-11-27 Marco Gerards <mgerards@xs4all.nl>
47673
47674 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
47675 ((unused))' to silence gcc warning.
47676
1569ec51 476772005-11-26 Hollis Blanchard <hollis@penguinppc.org>
47678
47679 * configure.ac: Correct `AC_PROG_YACC' test.
47680
9abde152 476812005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47682
47683 * util/powerpc/ieee1275/grub-install.in: Run the mount point
47684 check before installing files.
47685
44b83271 476862005-11-22 Mike Small <smallm@panix.com>
47687
47688 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
47689 number regex so multidigit numbers are recognized correctly.
47690
476912005-11-22 Mike Small <smallm@panix.com>
47692
47693 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
47694 debugging message before attempting to claim memory.
47695 (grub_rescue_cmd_initrd): Add a claim debugging message and try
47696 multiple addresses in case of failure.
47697
9c12956b 476982005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47699
47700 * term/tparm.c (get_space): Remove empty `if' statement.
47701
47702 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
47703
47704 * kern/parser.c (check_varstate): Rename `state' to 's'.
47705
aeaf81d9 477062005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47707
47708 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
47709 variable definitions to the beginning of each function. Sort stack
47710 variables by size.
47711 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
47712 `buf' argument to `char *'.
47713
79bbb63f 477142005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47715
47716 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
47717 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 47718 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 47719 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47720 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47721 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47722 configfile.mod, search.mod, gzio.mod and test.mod.
47723 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47724 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47725 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47726 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47727 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47728 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47729 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47730 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47731 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47732 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47733 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47734 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47735 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47736 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47737 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47738 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47739 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47740 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47741 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47742 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47743 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47744 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47745 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
47746
47747 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
47748 `grep --include'.
47749 (pkgdata_MODULES): Add test.mod.
47750
233b1628 477512005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47752
47753 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
47754 appending to variables with "+=".
47755 (PModule): Use full pathname to generate *.lst filenames.
47756
47757 * Makefile.in: Fixed list rules moved from genmk.rb.
47758 (.DELETE_ON_ERROR): New special target.
47759 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
47760
47761 * conf/i386-pc.rmk: Include conf/common.mk.
47762 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 47763 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 47764 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47765 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47766 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47767 configfile.mod, search.mod, gzio.mod and test.mod.
47768 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47769 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47770 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47771 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47772 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47773 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47774 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47775 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47776 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47777 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47778 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47779 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47780 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47781 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47782 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47783 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47784 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47785 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47786 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47787 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47788 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47789 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47790 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
47791 here...
47792 * conf/common.rmk: ... to here. New file.
47793
47794 * conf/common.mk: New file.
47795
16f820c8 477962005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
47797
47798 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
47799 (grub_script.tab.c): ... here.
47800
47801 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
47802 (grub_script.tab.c): ... here.
47803
47804 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
47805 (grub_script.tab.c): ... here.
47806
47807 * normal/command.c (grub_command_find): Fixed a memory leak of
47808 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
47809
63ba1554 478102005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47811
47812 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
47813 "@" which marks the start of a comment on ARM.
47814 (VARIABLE): Likewise.
47815
7f67dc13 478162005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47817
79bbb63f 47818 Add support for Linux/ADFS partition tables.
7f67dc13 47819
47820 * partmap/acorn.c: New file.
47821
47822 * include/grub/acorn_filecore.h: Likewise.
47823
47824 * DISTLIST: Added `partmap/acorn.c' and
47825 `include/grub/acorn_filecore.h'.
f19dbdb7 47826
7f67dc13 47827 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47828 `partmap/acorn.c'.
47829 (pkgdata_MODULES): Add `acorn.mod'.
47830 (acorn_mod_SOURCES): New variable.
47831 (acorn_mod_CFLAGS): Likewise.
47832
47833 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47834 `partmap/acorn.c'.
47835 (pkgdata_MODULES): Add `acorn.mod'.
47836 (acorn_mod_SOURCES): New variable.
47837 (acorn_mod_CFLAGS): Likewise.
47838
47839 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
47840 (pkgdata_MODULES): Add `acorn.mod'.
47841 (acorn_mod_SOURCES): New variable.
47842 (acorn_mod_CFLAGS): Likewise.
47843 (acorn_mod_LDFLAGS): Likewise.
47844
47845 * include/types.h (grub_disk_addr_t): New typedef.
47846
6d099807 478472005-11-13 Marco Gerards <mgerards@xs4all.nl>
47848
47849 * geninit.sh: New file.
47850
47851 * geninitheader.sh: Likewise.
47852
47853 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
47854 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
47855 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
47856 * commands/configfile.c (grub_configfile_init)
47857 (grub_configfile_fini): Likewise.
47858 * commands/default.c (grub_default_init, grub_default_fini):
47859 Likewise.
47860 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
47861 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
47862 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
47863 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
47864 Likewise.
47865 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
47866 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
47867 Likewise.
47868 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 47869 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 47870 Likewise.
47871 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
47872 Likewise.
fe6b695a 47873 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 47874 Likewise.
47875 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
47876 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
47877 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
47878 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
47879 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
47880 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
47881 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
47882 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
47883 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
47884 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
47885 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
47886 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
47887 * partmap/amiga.c (grub_amiga_partition_map_init)
47888 (grub_amiga_partition_map_fini): Likewise.
47889 * partmap/apple.c (grub_apple_partition_map_init)
47890 (grub_apple_partition_map_fini): Likewise.
47891 * partmap/pc.c (grub_pc_partition_map_init)
47892 (grub_pc_partition_map_fini): Likewise.
47893 * partmap/sun.c (grub_sun_partition_map_init,
47894 grub_sun_partition_map_fini): Likewise.
47895 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
47896 Likewise.
47897
47898 * util/grub-emu.c: Include <grub_modules_init.h>.
47899 (main): Don't initialize and de-initialize any modules directly,
47900 use `grub_init_all' and `grub_fini_all' instead.
47901
47902 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
47903 `grub_vesafb_mod_init'.
47904 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
47905 all users.
47906 * term/i386/pc/vga.c (grub_vga_init): Renamed to
47907 `grub_vga_mod_init'. Updated all users.
47908 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 47909
6d099807 47910 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
47911 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
47912 rules.
47913
47914 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
47915 Generate a function to initialize the module in utilities.
47916 Updated all callers.
47917 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
47918 initialize the module in utilities. Updated all callers.
47919
9046bcf0 479202005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47921
47922 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
47923 escape sequence and a literal ^L to clear the screen.
47924
47925 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
47926 when returning from Open Firmware.
47927
d13ea639 479282005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47929
47930 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
47931 (grub_ofconsole_height): Likewise.
47932 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
47933 manually insert a '\n'.
47934 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
47935 `grub_ofconsole_height'. Return early if these are already set.
47936
a8fcf206 479372005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
47938
47939 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47940 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
47941 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
47942 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
47943 and `normal/script.c'.
47944 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47945 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47946 (test_mod_SOURCES): New variable.
47947 (test_mod_CFLAGS): Likewise.
47948 (test_mod_LDFLAGS): Likewise.
47949 (pkgdata_MODULES): Add `test.mod'.
47950 (grub_script.tab.c): New rule.
47951 (grub_script.tab.h): Likewise.
47952
b6b32745 479532005-11-07 Marco Gerards <mgerards@xs4all.nl>
47954
47955 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47956 `commands/test.c', `normal/execute.c', `normal/lexer.c',
47957 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47958 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47959 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47960 (test_mod_SOURCES): New variable.
47961 (test_mod_CFLAGS): Likewise.
47962 (pkgdata_MODULES): Add `test.mod'.
47963 (grub_script.tab.c): New rule.
47964 (grub_script.tab.h): Likewise.
47965
daac212a 479662005-11-06 Marco Gerards <mgerards@xs4all.nl>
47967
47968 Add initial scripting support.
47969
47970 * commands/test.c: New file.
47971 * include/grub/script.h: Likewise.
47972 * normal/execute.c: Likewise.
47973 * normal/function.c: Likewise.
47974 * normal/lexer.c: Likewise.
47975 * normal/parser.y: Likewise.
47976 * normal/script.c: Likewise.
47977
47978 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 47979
daac212a 47980 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
47981 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
47982 `normal/function.c' and `normal/script.c'.
47983 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47984 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 47985 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
47986 variables.
daac212a 47987 (pkgdata_MODULES): Add `test.mod'.
47988 (grub_script.tab.c): New rule.
47989 (grub_script.tab.h): Likewise.
47990
47991 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
47992
47993 * include/grub/normal.h (grub_test_init): New prototype.
47994 (grub_test_fini): Likewise.
f19dbdb7 47995
daac212a 47996 * normal/command.c: Include <grub/script.h>.
47997 (grub_command_execute): Rewritten.
f19dbdb7 47998
daac212a 47999 * util/grub-emu.c (main): Call `grub_test_init' and
48000 `grub_test_fini'.
48001
77500b2b 480022005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48003
48004 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
48005 to 0.
48006 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
48007 there are no pending characters.
48008
e45deb9e 480092005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48010
48011 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
48012 `grub_strndup' to drop device arguments. Replace unnecessary
48013 `grub_strndup' with `grub_strdup'.
48014
4ce32619 480152005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48016
48017 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
48018 `debug' environment variable has been set.
48019
480202005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 48021
4ce32619 48022 * Makefile.in (install-local): Use $(DATA).
48023 (uninstall): Likewise.
48024 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
48025 (sbin_UTILITIES): ... to here.
48026 (sbin_SCRIPTS): New variable.
48027 (grub_install_SOURCES): New variable.
48028 * util/powerpc/ieee1275/grub-install.in: New file.
48029 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
48030 variable.
48031 (add_segments): Call `grub_util_get_path'.
48032
25fe6f03 480332005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48034
48035 From Timothy Baldwin:
48036 * commands/ls.c (grub_ls_list_files): Close FILE with
48037 grub_file_close.
48038 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
48039
04ccf3ec 480402005-10-24 Marco Gerards <mgerards@xs4all.nl>
48041
48042 * include/grub/parser.h: New file.
48043
48044 * kern/parser.c: Likewise.
48045
48046 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
48047 (grub_setup_SOURCES): Likewise.
48048 (grub_probefs_SOURCES): Likewise.
48049 (grub_emu_SOURCES): Likewise.
48050 (kernel_img_HEADERS): Add `parser.h'.
48051
48052 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48053 (grub_emu_SOURCES): Add `kern/parser.c'.
48054 (grubof_SOURCES): Likewise.
48055
48056 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48057 (grubof_SOURCES): Add `kern/parser.c'.
48058
48059 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
48060
48061 * kern/misc.c (grub_split_cmdline): Removed function.
48062
48063 * kern/rescue.c: Include <grub/parser.h>.
48064 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
48065 of `grub_split_cmdline'.
48066
48067 * normal/command.c: Include <grub/parser.h>.
48068 (grub_command_execute): Use `grub_parser_split_cmdline' instead
48069 of `grub_split_cmdline'.
48070
48071 * normal/completion.c: Include <grub/parser.h>.
48072 (cmdline_state): New variable.
48073 (iterate_dir): End the filename with a quote depending on the
48074 command line state.
48075 (get_state): new function.
48076 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
48077 split the arguments and determine the current argument. When the
48078 argument string is not quoted, escape all spaces.
48079
6d8f4b0e 480802005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48081
48082 * normal/sparc64/setjmp.S: New file.
48083
15cf03ed 480842005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48085
48086 * include/grub/sparc64/libgcc.h: New file.
48087 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
48088 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
48089 normal/sparc64/setjmp.c.
48090
03e8661a 480912005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48092
48093 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
48094 * kern/sparc64/cache.S: New file.
48095 * kern/sparc64/cache.c: Removed.
48096 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
48097 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
48098 -mtune=ultrasparc.
48099 (COMMON_LDFLAGS): Add -melf64_sparc.
48100 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
48101 (grubof_SOURCES): Use cache.S instead of cache.c.
48102 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
48103 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
48104 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
48105 commented though.
48106 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
48107 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
48108 (linux_mod_CFLAGS): Commented out.
48109 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
48110 out because module isn't built.
48111 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
48112 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
48113 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
48114 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
48115 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
48116 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48117 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48118 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
48119 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
48120 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
48121 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48122 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48123 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
48124 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
48125
34eeec8a 481262005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
48127
48128 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
48129 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
48130 longer, because HFS should not be used on PC.
48131
708367a3 481322005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48133
48134 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
48135 consistently within the loop.
48136
6fa1251a 481372005-10-15 Marco Gerards <mgerards@xs4all.nl>
48138
48139 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
48140 directory can not be read.
48141
4801580b 481422005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48143
48144 * configure.ac (AC_INIT): Increase the version number to 1.91.
48145
48146 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
48147 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
48148 term/i386/pc/serial.c.
48149
219ad426 481502005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48151
48152 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
48153 file size must be permitted.
48154
48155 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
48156 between %ah and %al.
48157
688e5699 481582005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48159
48160 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
48161 grub_uint64_t.
48162 Call the hook with a NUL-terminated filename.
48163 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
48164 grub_cpu_to_be32.
48165
48166 * kern/term.c (cursor_state): New variable.
48167 (grub_term_set_current): Reset the cursor state on a new
48168 terminal.
48169 (grub_setcursor): Rewritten to use CURSOR_STATE.
48170 (grub_getcursor): New function.
48171
48172 * include/grub/term.h (grub_getcursor): New prototype.
48173
48174 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
48175 integers on ARM. Reported by Timothy Baldwin
48176 <T.E.Baldwin99@members.leeds.ac.uk>.
48177
bb34586c 481782005-10-11 Marco Gerards <mgerards@xs4all.nl>
48179
48180 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
48181 allocated.
48182 (grub_sfs_dir): Likewise.
48183
9a909877 481842005-10-09 Marco Gerards <mgerards@xs4all.nl>
48185
48186 Add support for the SFS filesystem.
48187
48188 * fs/sfs.c: New file.
48189
48190 * DISTLIST: Added `fs/sfs.c'.
48191
48192 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
48193 (grub_probefs_SOURCES): Likewise.
48194 (grub_emu_SOURCES): Likewise.
48195 (pkgdata_MODULES): Add `sfs.mod'.
48196 (sfs_mod_SOURCES): New variable.
48197 (sfs_mod_CFLAGS): Likewise.
48198 (sfs_mod_LDFLAGS): Likewise.
48199
48200 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
48201 (pkgdata_MODULES): Add `sfs.mod'.
48202 (sfs_mod_SOURCES): New variable.
48203 (sfs_mod_CFLAGS): Likewise.
48204
48205 * util/grub-emu.c (main): Call `grub_sfs_init' and
48206 `grub_sfs_fini'.
48207
48208 * include/grub/fs.h (grub_sfs_init): New prototype.
48209 (grub_sfs_fini): Likewise.
48210
57bdbde3 482112005-10-07 Marco Gerards <mgerards@xs4all.nl>
48212
48213 Add support for the AFFS filesystem.
48214
48215 * fs/affs.c: New file.
48216
48217 * DISTLIST: Added `fs/affs.c'.
48218
48219 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
48220 (grub_probefs_SOURCES): Likewise.
48221 (grub_emu_SOURCES): Likewise.
48222 (pkgdata_MODULES): Add `affs.mod'.
48223 (affs_mod_SOURCES): New variable.
48224 (affs_mod_CFLAGS): Likewise.
48225 (affs_mod_LDFLAGS): Likewise.
48226
48227 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
48228 (pkgdata_MODULES): Add `affs.mod'.
48229 (affs_mod_SOURCES): New variable.
48230 (affs_mod_CFLAGS): Likewise.
48231
48232 * util/grub-emu.c (main): Call `grub_affs_init' and
48233 `grub_affs_fini'.
48234
48235 * include/grub/fs.h (grub_affs_init): New prototype.
48236 (grub_affs_fini): Likewise.
48237
047b67e0 482382005-10-01 Marco Gerards <mgerards@xs4all.nl>
48239
48240 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
48241
59b8208a 482422005-10-01 Marco Gerards <mgerards@xs4all.nl>
48243
48244 * configure.ac: Accept `x86_64' as host_cpu. In that case add
48245 `-m32' to CFLAGS.
48246
48247 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
48248 linking.
f19dbdb7 48249
59b8208a 48250 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
48251 (COMMON_LDFLAGS): New variable.
48252 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
48253 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
48254 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
48255 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
48256 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
48257 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
48258 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
48259 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
48260 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
48261 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
48262 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48263 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48264 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
48265 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
48266 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
48267 variables.
48268 (normal_mod_ASFLAGS): Add `-m32'.
48269
48270 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
48271 (grub_host_size_t, grub_host_ssize_t): New types.
48272 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 48273 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 48274 `GRUB_HOST_SIZEOF_VOID_P'.
48275
48276 * include/grub/kernel.h (struct grub_module_header): Type of
48277 member offset changed to `grub_host_off_t'. Type of member size
48278 changed to `grub_host_size_t'.
48279 (struct grub_module_info): Type of member offset changed to
48280 `grub_host_off_t'. Type of member size changed to
48281 `grub_host_size_t'.
48282
b4093103 482832005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
48284
48285 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 48286
b4093103 48287 * kern/i386/pc/startup.S (multiboot_header): New label.
48288 (multiboot_entry): Likewise.
48289 (multiboot_trampoline): Likewise.
48290
48291 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48292 Increased to 0x4A0.
48293
48294 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
48295 put parentheses after a question mark.
48296 [!GRUB_UTIL] (my_mod): New variable.
48297
48298 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
48299
b2499b29 483002005-09-28 Marco Gerards <mgerards@xs4all.nl>
48301
48302 Adds support for the XFS filesystem. Btrees are not supported
48303 yet.
48304
48305 * fs/xfs.c: New file.
48306
48307 * DISTLIST: Added `fs/xfs.c'.
48308
48309 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
48310 (grub_probefs_SOURCES): Likewise.
48311 (grub_emu_SOURCES): Likewise.
48312 (pkgdata_MODULES): Add `xfs.mod'.
48313 (xfs_mod_SOURCES): New variable.
48314 (xfs_mod_CFLAGS): Likewise.
48315
48316 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
48317 (pkgdata_MODULES): Add `xfs.mod'.
48318 (xfs_mod_SOURCES): New variable.
48319 (xfs_mod_CFLAGS): Likewise.
48320
48321 * util/grub-emu.c (main): Call `grub_xfs_init' and
48322 `grub_xfs_fini'.
48323
48324 * include/grub/fs.h (grub_xfs_init): New prototype.
48325 (grub_xfs_fini): Likewise.
48326
f19dbdb7 48327
83d37a62 483282005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
48329
48330 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
48331 color modes, allow greater than 16 colors to be configured as
48332 a default palette.
48333
47d2d65e 483342005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
48335
48336 * normal/completion.c (complete_arguments): Add the qualifier
48337 const into OPTIONS.
48338
48339 From Omniflux <omniflux+lists@omniflux.com>:
48340 * include/grub/terminfo.h: New file.
48341 * include/grub/tparm.h: Likewise.
48342 * include/grub/i386/pc/serial.h: Likewise.
48343 * term/terminfo.c: Likewise.
48344 * term/tparm.c: Likewise.
48345 * term/i386/pc/serial.c: Likewise.
48346 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
48347 serial.mod.
48348 (terminfo_mod_SOURCES): New variable.
48349 (terminfo_mod_CFLAGS): Likewise.
48350 (serial_mod_SOURCES): Likewise.
48351 (serial_mod_CFLAGS): Likewise.
48352
48b671ff 483532005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
48354
48355 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
48356 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
48357 and kern/powerpc/ieee1275/cmain.c, respectively.
48358
48359 * boot/powerpc/ieee1275/crt0.S: Moved to ...
48360 * kern/powerpc/ieee1275/crt0.S: ... here.
48361
48362 * boot/powerpc/ieee1275/cmain.c: Moved to ...
48363 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 48364
48b671ff 48365 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
48366 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
48367 instead of boot/powerpc/ieee1275/crt0.S and
48368 boot/powerpc/ieee1275/cmain.c, respectively.
48369
48370 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
48371 sectors. It was not used anyway.
48372
09fc77a7 483732005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48374
48375 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
48376 `unused parameter' warning.
48377
003789c7 483782005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48379
48380 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
48381 function.
48382 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
48383 getcharwidth.
48384
67f44c86 483852005-08-28 Marco Gerards <metgerards@student.han.nl>
48386
48387 * include/grub/normal.h (enum grub_completion_type): Added
48388 `GRUB_COMPLETION_TYPE_ARGUMENT'.
48389
48390 * normal/cmdline.c (print_completion): Handle
48391 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
48392 * normal/menu_entry.c (store_completion): Likewise.
48393
48394 * normal/completion.c (complete_arguments): New function.
48395 (grub_normal_do_completion): Call `complete_arguments' when the
48396 current words start with a dash.
48397
0b5abe02 483982005-08-27 Marco Gerards <metgerards@student.han.nl>
48399
48400 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
48401 `gzio.mod' instead of `io.mod').
48402
d9864ee1 484032005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
48404
48405 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
48406 (DISTDIRS): Added io and video.
48407 Rewrite the search routine to make an output consistently.
48408
48409 * DISTLIST: Added conf/sparc64-ieee1275.mk,
48410 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
48411 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
48412 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
48413 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
48414 util/powerpc/ieee1275/misc.c.
f19dbdb7 48415
d9864ee1 48416 * include/grub/gzio.h: New file.
48417 * io/gzio.c: Likewise.
f19dbdb7 48418
d9864ee1 48419 * kern/file.c (grub_file_close): Call grub_device_close only if
48420 FILE->DEVICE is not NULL.
48421
48422 * include/grub/mm.h [!NULL] (NULL): New macro.
48423
48424 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
48425
48426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
48427 (pkgdata_MODULES): Added gzio.mod.
48428 (gzio_mod_SOURCES): New variable.
48429 (gzio_mod_CFLAGS): Likewise.
48430
48431 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
48432 (pkgdata_MODULES): Added gzio.mod.
48433 (gzio_mod_SOURCES): New variable.
48434 (gzio_mod_CFLAGS): Likewise.
48435
48436 * commands/cat.c: Include grub/gzio.h.
48437 (grub_cmd_cat): Use grub_gzfile_open instead of
48438 grub_file_open.
f19dbdb7 48439
d9864ee1 48440 * commands/cmp.c: Include grub/gzio.h.
48441 (grub_cmd_cmp): Use grub_gzfile_open instead of
48442 grub_file_open.
48443
48444 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
48445 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
48446 grub_file_open.
48447 (grub_rescue_cmd_module): Likewise.
48448
fa46f4b5 484492005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48450
48451 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
48452 kern/sparc64/ieee1275/init.c because it contains _start.
48453 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
48454
e9211b5d 484552005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48456
48457 * configure.ac: Add support for sparc64 host with ieee1275
48458 firmware.
48459 * configure: Generated from configure.ac.
48460 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
48461 instead of int.
48462 (grub_ofdisk_read): Likewise.
48463 (grub_ofdisk_open): Use %p to print pointer values, and cast the
48464 pointers as (void *) to remove a warning.
48465 (grub_ofdisk_close): Likewise.
48466 (grub_ofdisk_read): Likewise.
48467 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
48468 returns, so make it return void to remove a warning.
48469 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
48470 Corresponding prototype change.
48471 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
48472 values, and cast the pointers as (void *) to remove a warning.
48473 (grub_mm_dump): Likewise.
48474 * conf/sparc64-ieee1275.mk: New file.
48475 * conf/sparc64-ieee1275.rmk: Likewise.
48476 * include/grub/sparc64/setjmp.h: Likewise.
48477 * include/grub/sparc64/types.h: Likewise.
48478 * include/grub/sparc64/ieee1275/console.h: Likewise.
48479 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48480 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48481 * include/grub/sparc64/ieee1275/time.h: Likewise.
48482 * kern/sparc64/cache.c: Likewise.
48483 * kern/sparc64/dl.c: Likewise.
48484 * kern/sparc64/ieee1275/init.c: Likewise.
48485 * kern/sparc64/ieee1275/openfw.c: Likewise.
48486
385c6a92 484872005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48488
48489 * util/console.c (grub_ncurses_putchar): If C is greater than
48490 0x7f, set C to a question mark.
48491 (grub_ncurses_getcharwidth): New function.
48492 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
48493 getcharwidth.
48494
48495 * normal/menu.c (print_entry): Made aware of Unicode. First,
48496 convert TITLE to UCS-4, and predict the cursor position by
48497 grub_getcharwidth.
48498
48499 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
48500 const to SRC.
48501 * kern/misc.c (grub_utf16_to_utf8): Likewise.
48502
16ccb8b1 485032005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48504
48505 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
48506 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48507 grub_strcat.
48508
48509 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
48510 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48511 grub_strcpy and grub_strlen. Take it into account that a space
48512 character is inserted as a delimiter.
48513
6a85ce79 485142005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48515
48516 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 48517 invalid magic in the error.
6a85ce79 48518
48519 * commands/search.c: New file.
f19dbdb7 48520
6a85ce79 48521 * util/grub-emu.c (main): Call grub_search_init and
48522 grub_search_fini.
48523
48524 * kern/rescue.c (grub_rescue_print_disks): Removed.
48525 (grub_rescue_print_devices): New function.
48526 (grub_rescue_cmd_ls): Use grub_device_iterate with
48527 grub_rescue_print_devices instead of grub_disk_dev_iterate with
48528 grub_rescue_print_disks.
48529
48530 * kern/partition.c (grub_partition_iterate): Return the result of
48531 PARTMAP->ITERATE instead of GRUB_ERRNO.
48532
48533 * kern/device.c: Include grub/partition.h.
48534 (grub_device_iterate): New function.
48535
48536 * include/grub/partition.h (grub_partition_iterate): Return int
48537 instead of grub_err_t.
48538
48539 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
48540 prototype.
48541 [GRUB_UTIL] (grub_search_fini): Likewise.
48542
48543 * include/grub/device.h (grub_device_iterate): New prototype.
48544
48545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48546 commands/search.c.
48547 (pkgdata_MODULES): Added search.mod.
48548 (search_mod_SOURCES): New variable.
48549 (search_mod_CFLAGS): Likewise.
48550
48551 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
48552 (pkgdata_MODULES): Added search.mod.
48553 (search_mod_SOURCES): New variable.
48554 (search_mod_CFLAGS): Likewise.
48555
48556 * commands/ls.c (grub_ls_list_disks): Renamed to ...
48557 (grub_ls_list_devices): ... this, and use grub_device_iterate.
48558 All callers changed.
48559
48560 * DISTLIST: Added commands/search.c.
48561
ef095434 485622005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48563
48564 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
48565 conversion.
48566 (grub_getcharwidth): New function.
48567
48568 * kern/misc.c (grub_utf8_to_ucs4): New function.
48569
48570 * include/grub/term.h (struct grub_term): Added a new member
48571 "getcharwidth".
48572 (grub_getcharwidth): New prototype.
48573
48574 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
48575
48576 * term/i386/pc/console.c (map_char): New function. Segregated from
48577 grub_console_putchar.
48578 (grub_console_putchar): Use map_char.
48579 (grub_console_getcharwidth): New function.
48580 (grub_console_term): Specified grub_console_getcharwidth as
48581 getcharwidth.
48582
48583 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
48584 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
48585
48586 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
48587 GRUB_ERRNO.
48588 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
48589 on grub_strtoul completely.
48590 (write_char): Declare local variables in the beginning of the
48591 function.
48592 (grub_vesafb_getcharwidth): New function.
48593 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
48594 getcharwidth.
48595
1f0a95e4 485962005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
48597
48598 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
48599 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
48600 commands/i386/pc/vbetest.c.
48601
48602 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
48603 call grub_vbe_get_controller_info again, because the returned
48604 information is volatile.
48605 (grub_vbe_set_video_mode): Mostly rewritten.
48606 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
48607 grub_vbe_status_t correctly.
48608 (grub_vbe_get_video_mode_info): Likewise.
48609 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
48610 several if statements.
48611
48612 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
48613 * commands/i386/pc/vbeinfo.c: ... this.
48614
48615 * commands/i386/pc/vbe_test.c: Renamed to ...
48616 * commands/i386/pc/vbetest.c: ... this.
48617
48618 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
48619 ...
48620 (grub_cmd_vbeinfo): ... this. Save video modes before
48621 iterating. Skip a video mode, if it is not available, not enough
48622 information is given or it is monochrome. Show the memory
48623 model. Leave the interpretation of MODEVAR to grub_strtoul
48624 completely.
48625 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
48626 (GRUB_MOD_FINI): Likewise.
48627
48628 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
48629 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
48630 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
48631 duplicated grub_env_get. Leave the interpretation of MODEVAR to
48632 grub_strtoul completely.
48633 (real2pm): Removed.
48634 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
48635 (GRUB_MOD_FINI): Likewise.
48636
48637 * normal/misc.c: Include grub/mm.h.
48638
48639 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
48640 vbe_list_modes with vbetest.mod and vbeinfo.mod.
48641 (vbe_list_modes_mod_SOURCES): Removed.
48642 (vbe_list_modes_mod_CFLAGS): Likewise.
48643 (vbe_test_mod_SOURCES): Likewise.
48644 (vbe_test_mod_CFLAGS): Likewise.
48645 (vbeinfo_mod_SOURCES): New variable.
48646 (vbeinfo_mod_CFLAGS): Likewise.
48647 (vbetest_mod_SOURCES): Likewise.
48648 (vbetest_mod_CFLAGS): Likewise.
48649
992ffbbe 486502005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
48651
48652 * normal/misc.c: New file.
48653
48654 * DISTLIST: Added normal/misc.c.
f19dbdb7 48655
992ffbbe 48656 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
48657 DISK to HOOK. Call HOOK with DISK.
48658 * partmap/apple.c (apple_partition_map_iterate): Likewise.
48659 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48660 * partmap/sun.c (sun_partition_map_iterate): Likewise.
48661
48662 * normal/menu_entry.c (struct screen): Added a new member
48663 "completion_shown".
48664 (completion_buffer): New global variable.
48665 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
48666 (store_completion): New function.
48667 (complete): Likewise.
48668 (clear_completions): Likewise.
48669 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
48670 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
48671 a tab, call complete.
48672
48673 * normal/completion.c (disk_dev): Removed.
48674 (print_simple_completion): Likewise.
48675 (print_partition_completion): Likewise.
48676 (print_func): New global variable.
48677 (add_completion): Do not take the arguments WHAT or PRINT any
48678 longer. Added a new argument TYPE. Instead of printing directly,
48679 call PRINT_FUNC if not NULL.
48680 All callers changed.
48681 (complete_device): Use a local variable DEV instead of
48682 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
48683 (grub_normal_do_completion): Take a new argument HOOK. Do not
48684 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
48685 empty string, return NULL instead.
48686 All callers changed.
48687
48688 * normal/cmdline.c (print_completion): New function.
48689
48690 * kern/partition.c (grub_partition_iterate): Add an argument DISK
48691 to HOOK.
48692 All callers changed.
48693
48694 * kern/disk.c (grub_print_partinfo): Removed.
48695
48696 * include/grub/partition.h (struct grub_partition_map): Add a new
48697 argument DISK into HOOK of ITERATE.
48698 (grub_partition_iterate): Add a new argument DISK to HOOK.
48699
48700 * include/grub/normal.h (enum grub_completion_type): New enum.
48701 (grub_completion_type_t): New type.
48702 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
48703 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
48704 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
48705 (GRUB_COMPLETION_TYPE_FILE): Likewise.
48706 (grub_normal_do_completion): Added a new argument HOOK.
48707 (grub_normal_print_device_info): New prototype.
48708
48709 * include/grub/disk.h (grub_print_partinfo): Removed.
48710
48711 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
48712 (normal_mod_SOURCES): Likewise.
48713 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48714 (normal_mod_SOURCES): Likewise.
48715
48716 * commands/ls.c (grub_ls_list_disks): Use
48717 grub_normal_print_device_info instead of grub_print_partinfo. Free
48718 PNAME.
48719 (grub_ls_list_files): Use grub_normal_print_device_info instead of
48720 duplicating the code.
48721
0bd41162 487222005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48723
48724 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 48725 follow GCS more precisely.
48726 * commands/i386/pc/vbe_test.c: Likewise.
48727 * include/grub/i386/pc/vbe.h: Likewise.
48728 * term/i386/pc/vesafb.c: Likewise.
48729 * video/i386/pc/vbe.c: Likewise.
0bd41162 48730
6323696a 487312005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48732
48733 * DISTLIST: Added term/i386/pc/vesafb.c
48734 DISTLIST: Added video/i386/pc/vbe.c
48735 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
48736 DISTLIST: Added commands/i386/pc/vbe_test.c.
48737 * commands/i386/pc/vbe_list_modes.c: New file.
48738 * commands/i386/pc/vbe_test.c: Likewise.
48739 * term/i386/pc/vesafb.c: Likewise.
48740 * video/i386/pc/vbe.c: Likewise.
48741 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
48742 (grub_vbe_probe) Added prototype.
48743 (grub_vbe_set_video_mode) Likewise.
48744 (grub_vbe_get_video_mode) Likewise.
48745 (grub_vbe_get_video_mode_info) Likewise.
48746 (grub_vbe_set_pixel_rgb) Likewise.
48747 (grub_vbe_set_pixel_index) Likewise.
48748 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
48749 (pkgdata_MODULES): Added vesafb.mod.
48750 (pkgdata_MODULES): Added vbe_list_modes.mod.
48751 (pkgdata_MODULES): Added vbe_test.mod.
48752 (vbe_mod_SOURCES): Added.
48753 (vbe_mod_CFLAGS): Likewise.
48754 (vesafb_mod_SOURCES): Likewise.
48755 (vesafb_mod_CFLAGS): Likewise.
48756 (vbe_list_modes_mod_SOURCES): Likewise.
48757 (vbe_list_modes_mod_CFLAGS): Likewise.
48758 (vbe_test_mod_SOURCES): Likewise.
48759 (vbe_test_mod_CFLAGS): Likewise.
48760
0a74e62f 487612005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
48762
0a74e62f 48763 * normal/command.c (grub_command_execute): If INTERACTIVE is
48764 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
48765 CMDLINE. Disable the pager if INTERACTIVE is true.
48766 All callers are changed.
48767
48768 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
48769 before reading a config file.
48770 * normal/main.c (read_config_file): Even if a command is not
48771 found, register it if it is within an entry.
48772
48773 * util/grub-emu.c: Include sys/types.h and unistd.h.
48774 (options): Added --hold.
48775 (struct arguments): Added a new member "hold".
48776 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
48777 missing.
48778 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
48779 cleared by a debugger, if it is not zero.
48780
48781 * include/grub/normal.h (grub_command_execute): Add an argument
48782 INTERACTIVE.
48783
e51f85ae 487842005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
48785
48786 * DISTLIST: Added include/grub/i386/pc/vbe.h.
48787
e9c6f39b 487882005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
48789
48790 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
48791 program with another one, because the old one didn't detect a bug
48792 in gcc-3.4. Always use regparm 2, because the new test is still
48793 not enough for gcc-4.0. Someone must investigate a simple test
48794 case which detects a bug in gcc-4.0.
48795
8de3495c 487962005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
48797
48798 * DISTLIST: Added normal/completion.c.
48799
48800 * normal/completion.c: New file.
f19dbdb7 48801
8de3495c 48802 * term/i386/pc/console.c (grub_console_getwh): New function.
48803 (grub_console_term): Assign grub_console_getwh to getwh.
48804
48805 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
48806 function is defined in normal/completion.c as
48807 grub_normal_do_completion.
48808 (grub_cmdline_get): Use grub_normal_do_completion instead of
48809 grub_tab_complete.
48810
48811 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
48812 returns non-zero, otherwise return 0.
48813 (grub_partition_iterate): First, probe the partition map. Then,
48814 call ITERATE only for this partition map.
48815
48816 * kern/misc.c (grub_strncmp): Rewritten.
48817
48818 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
48819 returns non-zero. Otherwise return 0.
48820
48821 * include/grub/partition.h (grub_partition_map_iterate): Return
48822 int instead of void.
48823
48824 * include/grub/normal.h (grub_normal_do_completion): New prototype.
48825
48826 * include/grub/misc.h (grub_strncmp): Change the type of N to
48827 grub_size_t.
48828
48829 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
48830 of void.
48831
48832 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 48833 unsigned explicitly before comparing it with I.
8de3495c 48834
48835 * kern/main.c (grub_env_write_root): Add the attribute unused into
48836 VAR.
48837
48838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48839 normal/completion.c.
48840 (normal_mod_SOURCES): Likewise.
48841 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48842 (normal_mod_SOURCES): Likewise.
48843
48844 * normal/command.c (grub_iterate_commands): If ITERATE returns
48845 non-zero, return one immediately.
48846
e85e144b 488472005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
48848
48849 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
48850 * kern/i386/pc/startup.S: Updated Global Descriptor table's
48851 descriptions.
48852 (grub_vbe_get_controller_info): New function.
48853 (grub_vbe_get_mode_info): Likewise.
48854 (grub_vbe_set_mode): Likewise.
48855 (grub_vbe_get_mode): Likewise.
48856 (grub_vbe_set_memory_window): Likewise.
48857 (grub_vbe_get_memory_window): Likewise.
48858 (grub_vbe_set_scanline_length): Likewise.
48859 (grub_vbe_get_scanline_length): Likewise.
48860 (grub_vbe_set_display_start): Likewise.
48861 (grub_vbe_get_display_start): Likewise.
48862 (grub_vbe_set_palette_data): Likewise.
48863 * include/grub/i386/pc/vbe.h: New file.
48864
c46153d2 488652005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48866
48867 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48868 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
48869 * DISTLIST: Likewise.
48870 * kern/ieee1275/of.c: Moved to ...
48871 * kern/ieee1275/ieee1275.c: ... here.
48872
0cb90c45 488732005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48874
48875 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
48876 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
48877 Pass 0 as `end' parameter to grub_strtoul().
48878
a19fb360 488792005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48880
48881 * include/grub/powerpc/ieee1275/console.h: Do not include
48882 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
48883 ifdef.
48884 (grub_console_cur_color): Remove i386-specific prototype.
48885 (grub_console_real_putchar): Likewise.
48886 (grub_console_checkkey): Likewise.
48887 (grub_console_getkey): Likewise.
48888 (grub_console_getxy): Likewise.
48889 (grub_console_gotoxy): Likewise.
48890 (grub_console_cls): Likewise.
48891 (grub_console_setcursor): Likewise.
48892 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
48893 Include <grub/machine/console.h>.
48894 * term/ieee1275/ofconsole.c: Likewise.
48895
4ac9bd04 488962005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
48897
48898 * Makefile.in (LIBLZO): New variable.
48899
48900 * configure.ac: Check for LZO version 2.
48901
48902 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
48903 lzo/lzo1x.h instead of lzo1x.h.
48904
48905 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
48906 of -llzo.
48907
48908 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
48909 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
48910
48911 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
48912 copying the data from PARTITION to P.
48913
f4917dfd 489142005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48915
48916 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
48917 negative, unload the module.
48918
48919 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
48920 map is "pc_partition_map" but not "pc".
48921 (usage): Fix the description. The options are --boot-image and
48922 --core-image but not --boot-file or --core-file.
48923 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
48924 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
48925 DEFAULT_DIRECTORY.
48926
48927 * util/i386/pc/grub-install.in: Do not specify --boot-file or
48928 --core-file. Specify INSTALL_DEVICE as an argument.
48929
48930 * util/console.c: Include config.h.
48931 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
48932 [HAVE_NCURSES_H]: Include ncurses.h.
48933 [HAVE_CURSES_H]: Include curses.h.
48934 [!A_NORMAL] (A_NORMAL): Defined as zero.
48935 [!A_STANDOUT] (A_STANDOUT): Likewise.
48936
48937 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
48938 -lncurses.
48939 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
48940
48941 * configure.ac: Check for curses libraries and headers.
48942
48943 * Makefile.in (LIBCURSES): New variable.
48944
48945 * genmk.rb (Script::rule): Set the executable bits.
48946
48947 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
48948 name of the PC partition map is "pc_partition_map" but not "pc".
48949
0e143073 489502005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48951
48952 * util/i386/pc/grub-install.in (grub_probefs): New variable.
48953 (modules): Likewise.
48954 (usage): Added descriptions for --modules and --grub-probefs.
48955 Handle --modules and --grub-probefs. Save the arguments in MODULES
48956 and GRUB_PROBEFS, respectively.
48957 Auto-detect a filesystem module against GRUBDIR. If the result is
48958 empty and modules are not specified explicitly, abort the
48959 installation. Add the result to MODULES.
48960
48961 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
48962 disk/powerpc/ieee1275/ofdisk.c,
48963 include/grub/powerpc/ieee1275/init.h and
48964 term/powerpc/ieee1275/ofconsole.c.
48965 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
48966 term/ieee1275/ofconsole.c.
48967
48968 * include/grub/powerpc/ieee1275/console.h: Resurrected.
48969
48970 * COPYING: Upgraded to the latest version. Only the address of the
48971 FSF office has changed.
f19dbdb7 48972
efd6e6d5 489732005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48974
48975 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48976 kern/ieee1275.c with kern/ieee1275/of.c.
48977
48978 * kern/ieee1275.c: Moved to ...
48979 * kern/ieee1275/of.c: ... here.
48980
8ceafda2 489812005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
48982
48983 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 48984 readability.
8ceafda2 48985
48986 * config.guess: Updated to the latest version from gnulib.
48987 * config.sub: Likewise.
48988 * install.sh: Likewise.
48989 * mkinstalldirs: Likewise.
48990
48991 * include/grub/console.h: Removed. This file is arch-specific. Do
48992 not put this in include/grub.
48993
48994 * include/grub/i386/pc/console.h: Resurrected.
48995
48996 * util/console.c: Include grub/machine/console.h instead of
48997 grub/console.h.
48998 * util/grub-emu.c: Likewise.
48999
267f6cd9 490002005-08-04 Marco Gerards <metgerards@student.han.nl>
49001
49002 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
49003 hardcoded value.
f19dbdb7 49004
267f6cd9 49005 From Vincent Pelletier <subdino2004@yahoo.fr>
49006 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
49007 Redefined to use grub_getwh.
49008 (grub_term): New member named getwh.
49009 (grub_getwh): New prototype.
49010 * kern/term.c (grub_getwh): New function.
49011 * term/i386/pc/console.c (grub_console_getwh): New function.
49012 (grub_console_term): New member `getwh'.
49013 * term/i386/pc/vga.c (grub_vga_getwh): New function.
49014 (grub_vga_term): New member `getwh'.
0b5abe02 49015 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 49016 grub_ssize_t.
49017 (grub_ofconsole_getw): New function.
49018 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
49019 (grub_ofconsole_term): New field named getwh and new initial
49020 value.
49021
3be7266d 490222005-08-03 Hollis Blanchard <hollis@penguinppc.org>
49023
49024 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
49025 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
49026 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
49027 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
49028 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
49029 of <grub/machine/ieee1275.h>.
49030 * commands/ieee1275/reboot.c: Likewise.
49031 * boot/powerpc/ieee1275/ieee1275.c: Move ...
49032 * kern/ieee1275.c: ... to here. All users updated. Change all
49033 parameter structs to use new type `grub_ieee1275_cell_t'.
49034 * term/powerpc/ieee1275/ofconsole.c: Move ...
49035 * term/ieee1275/ofconsole.c: ... to here. All users updated.
49036 * disk/powerpc/ieee1275/ofdisk.c: Move ...
49037 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
49038 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
49039 to return int.
49040 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
49041 Remove unused prototypes. All users updated.
49042 * include/grub/powerpc/ieee1275/console.h: Removed.
49043 * include/grub/powerpc/ieee1275/ieee1275.h: Define
49044 `grub_ieee1275_cell_t'.
49045 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
49046 Cast comparisons with -1 to the correct type.
49047 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
49048 type to match `grub_ieee1275_entry_fn'.
49049
8b5f3938 490502005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
49051
49052 * DISTLIST: Added util/i386/pc/grub-probefs.c.
49053
49054 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
49055 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
49056 partmap/sun.c.
49057 (grub_probefs_SOURCES): New variable.
49058
49059 * util/i386/pc/grub-probefs.c: New file.
49060
49061 * util/i386/pc/grub-setup.c (main): Call
49062 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
49063 grub_hfs_init and grub_jfs_init to initialize the system. Call
49064 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
49065 grub_pc_partition_map_fini to finish the system.
49066
ea409713 490672005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
49068
49069 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
49070 function.
49071 (grub_multiboot_load_elf32): Likewise.
49072 (grub_multiboot_is_elf64): Likewise.
49073 (grub_multiboot_load_elf64): Likewise.
49074 (grub_multiboot_load_elf): Likewise.
49075 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
49076 an ELF32 or ELF64 file.
49077 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
49078
49079 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
49080 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
49081 NULL before calling FS->LABEL.
49082 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
49083 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
49084 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
49085 before calling FS->LABEL.
49086
141a288b 490872005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
49088
49089 * util/i386/pc/grub-install.in (datadir): New variable.
49090 (libdir): Removed.
49091 (pkgdatadir): New variable.
49092 (pkglibdir): Removed.
49093
0d5f8a54 490942005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
49095
49096 * DISTLIST: Added util/i386/pc/grub-install.in.
49097
49098 * util/i386/pc/grub-install.in: New file.
49099
49100 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
49101 (grub_install_SOURCES): Likewise.
49102
49103 * genmk.rb: Added support for scripts.
49104 (Script): New class.
49105 (scripts): New variable.
49106
49107 * Makefile.in (install-local): Install sbin_SCRIPTS by
49108 INSTALL_SCRIPT.
49109 (uninstall): Remove sbin_SCRIPTS.
49110
49111 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
49112 device, try to get a GRUB device by
49113 grub_util_biosdisk_get_grub_dev.
49114 Free DEST_DEV.
49115
49116 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
49117 description for --device-map.
49118
5f968e1e 491192005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49120
49121 Change the semantics of variable hooks. They now return strings
49122 instead of error values.
f19dbdb7 49123
5f968e1e 49124 * util/i386/pc/grub-setup.c: Include grub/env.h.
49125 (setup): Use grub_device_set_root instead of grub_env_set.
49126
49127 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
49128 grub_env_get instead of grub_device_set_root and
49129 grub_device_get_root, respectively.
49130
49131 * kern/main.c (grub_env_write_root): New function.
49132 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
49133 grub_env_set instead of grub_device_set_root.
49134
49135 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
49136 many variables.
49137 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
49138 rather than calling ENV->WRITE_HOOK afterwards.
49139 (grub_env_get): Return the result of ENV->READ_HOOK rather than
49140 passing a pointer of a pointer.
49141 (grub_register_variable_hook): Change the types of "read_hook" and
49142 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
49143 respectively.
49144 Allocate the default empty string on the heap, because this string
49145 may be freed later.
49146
49147 * kern/device.c: Include grub/env.h.
49148 (grub_device_set_root): Removed.
49149 (grub_device_get_root): Likewise.
49150 (grub_device_open): Use grub_env_get instead of
49151 grub_device_get_root.
49152
49153 * include/grub/env.h (grub_env_read_hook_t): New type.
49154 (grub_env_write_hook_t): Likewise.
49155 (grub_env_var): Change the types of "read_hook" and "write_hook"
49156 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
49157 (grub_register_variable_hook): Likewise.
49158
49159 * include/grub/device.h (grub_device_set_root): Removed.
49160 (grub_device_set_root): Likewise.
49161
49162 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
49163 make sure that DIRNAME terminates with '/', so that
49164 grub_fat_find_dir will fail if PATH is not a directory.
49165
49166 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
49167 from DIRNAME.
49168 Use the qualifier auto for print_files and print_files_long.
49169 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
49170 as a regular file.
49171 Put a newline only if there is no error.
49172 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
49173 used.
49174
896f0afd 491752005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49176
49177 * kern/partition.c (grub_partition_probe): Initialize PART to
49178 NULL. Otherwise, when no partition map is registered, this returns
49179 a garbage.
49180
b28b81b2 491812005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
49182
49183 * partmap/apple.c (apple_partition_map_iterate): Check if POS
49184 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
49185 valid.
49186
5f3607e0 491872005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
49188
49189 * commands/ls.c (grub_ls_list_disks): Print the filesystem
49190 information on each device, if it does not have partitions. Print
49191 "Device" instead of "Disk", because this function is not specific
49192 to disk devices.
49193
49194 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
49195 static to ensure that it is put on the memory rather than a
49196 register.
49197
502c87e8 491982005-07-17 Yoshinori Okuji <okuji@enbug.org>
49199
49200 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
49201 (grub_cat_init): Likewise.
49202 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
49203 (options): Likewise.
49204 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
49205 (grub_configfile_init): Likewise.
49206 * font/manager.c (GRUB_MOD_INIT): Likewise.
49207 * commands/help.c (GRUB_MOD_INIT): Likewise.
49208 (grub_help_init): Likewise.
49209 * normal/command.c (grub_command_init): Likewise.
49210 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
49211 * disk/loopback.c (grub_loop_init): Likewise.
49212 (GRUB_MOD_INIT): Likewise.
49213 * commands/ls.c (grub_ls_init): Likewise.
49214 (GRUB_MOD_INIT): Likewise.
49215 (options): Likewise.
49216 * commands/boot.c (grub_boot_init): Likewise.
49217 (GRUB_MOD_INIT): Likewise.
49218 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
49219 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
49220 (GRUB_MOD_INIT): Likewise.
49221 * commands/cmp.c (grub_cmp_init): Likewise.
49222 (GRUB_MOD_INIT): Likewise.
49223
49224 * normal/arg.c: Use <> instead of "" to include header files.
49225 (SHORT_ARG_HELP): New macro.
49226 (SHORT_ARG_USAGE): Likewise.
49227 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
49228 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
49229 descriptions.
49230 (find_short): Check if C is 'h' or 'u' explicitly.
49231 (grub_arg_show_help): Use space characters instead of tabs. Treat
49232 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
49233 are shown with --help and --usage only if they are not used for
49234 the command itself.
49235 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
49236 'h' and 'u'.
49237
49238 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
49239 const into "longarg". Change the type of "shortarg" to int.
49240
f806d18e 492412005-07-17 Yoshinori Okuji <okuji@enbug.org>
49242
49243 * boot/i386/pc/boot.S (boot_drive_check): New label.
49244
49245 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
49246 macro.
49247
49248 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
49249 which do not pass a boot drive correctly. Copied from GRUB Legacy.
49250
e293232b 492512005-07-17 Yoshinori Okuji <okuji@enbug.org>
49252
49253 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
49254 When turning off Gate A20, skip the check and return immediately,
49255 because this is not fatal usually.
49256
ebedfd00 492572005-07-17 Yoshinori Okuji <okuji@enbug.org>
49258
49259 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
49260 be 0x7C00 instead of 0x8000.
49261
49262 * boot/i386/pc/pxeboot.S: Rewritten.
49263
49264 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
49265 EXT_C.
49266 (gate_a20_check_state): Read a byte from 0x108000. Invert the
49267 result.
49268
654fc59f 492692005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
49270
49271 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
49272 robustness. This routine now supports a BIOS call and System
49273 Control Port A to modify the gate A20.
49274
49275 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
49276 Increased to 0x440.
49277
09f9923f 492782005-07-12 Hollis Blanchard <hollis@penguinppc.org>
49279
49280 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
49281 device path and resulting ihandle.
49282 (grub_ofdisk_close): dprintf the ihandle being closed.
49283 (grub_ofdisk_read): dprintf function parameters.
49284 * kern/mm.c (grub_mm_init_region): Likewise.
49285 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
49286 (grub_linux_boot): dprintf the Linux entry point, initrd address and
49287 size, and boot arguments.
49288 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
49289 before loading into memory.
49290 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
49291 before loading into memory.
49292
7ef504d8 492932005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
49294
49295 * kern/mm.c: Added much documentation.
49296 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
49297 8, set to 5 instead of 8.
49298
e0f050c2 492992005-07-10 Yoshinori Okuji <okuji@enbug.org>
49300
49301 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
49302
49303 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
49304 (grub_mkdevicemap_SOURCES): New variable.
49305
49306 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
49307 lib/device.c of GRUB Legacy.
49308
7224189a 493092005-07-10 Yoshinori Okuji <okuji@enbug.org>
49310
49311 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
49312 instead of PATH is NULL.
49313
68c864eb 493142005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
49315
49316 * commands/cmp.c (BUFFER_SIZE): New macro.
49317 (grub_cmd_cmp): Close the right file at the right time. Compare
49318 only data just read. Don't report files of different size as
49319 identical. Dynamically allocate buffers. Move variable
49320 declarations at the beginning of function.
49321
e6f3e614 493222005-07-09 Yoshinori Okuji <okuji@enbug.org>
49323
49324 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
49325 reverse.
49326
f8f1559a 493272004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
49328
49329 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
49330 when backspace is pressed at beginning of line.
49331
39c9d41d 493322005-07-03 Yoshinori Okuji <okuji@enbug.org>
49333
49334 * DISTLIST: Added genfslist.sh.
49335
49336 * normal/main.c (fs_module_list): New variable.
49337 (autoload_fs_module): New function.
49338 (read_fs_list): Likewise.
49339 (grub_normal_execute): Call read_fs_list.
49340
49341 * kern/fs.c (grub_fs_autoload_hook): New variable.
49342 (grub_fs_probe): Added support for auto-loading.
49343
49344 * include/grub/normal.h (struct grub_fs_module_list): New struct.
49345 (grub_fs_module_list_t): New type.
49346
49347 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
49348 (grub_fs_autoload_hook): New prototype.
49349
49350 * genfslist.sh: New file.
f19dbdb7 49351
39c9d41d 49352 * genmk.rb: Added a rule to generate a filesystem list.
49353
121c1d83 493542005-06-30 Marco Gerards <metgerards@student.han.nl>
49355
49356 * configure.ac: Fix the test for cross-compiling.
49357
49358 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
49359 define GRUB_UTIL anymore.
49360
49361 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
49362 so this function works on other systems than just big endian.
49363 (load_modules): Likewise.
49364 (add_segments): Likewise.
49365
e75d76e1 493662005-06-23 Hollis Blanchard <hollis@penguinppc.org>
49367
49368 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
49369 contains `l' modifier, get a long from va_arg().
49370
50b5a0a7 493712005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
49372
49373 * kern/mm.c (grub_free): If the next free block which is being
49374 merged is the first free block, set the first block to the block
49375 being freed.
49376 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
49377
89371b20 493782005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49379
49380 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
49381 `grub_ieee1275_chosen'.
49382
168d6e58 493832005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49384
49385 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
49386 (grub_ieee1275_chosen): New variable.
49387 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
49388 `chosen'.
49389 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
49390 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49391 Rename first argument to `phandle' for consistency.
49392 (grub_ieee1275_get_property_length): Likewise.
49393 (grub_ieee1275_next_property): Likewise. Change type of first argument
49394 to grub_ieee1275_phandle_t.
49395 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
49396 Move export next to declaration.
49397 (grub_ieee1275_chosen): New variable.
49398 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
49399 Correct cosmetic typo.
49400 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
49401 `grub_ieee1275_chosen'.
49402 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
49403 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
49404 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
49405 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
49406 `grub_ieee1275_chosen'.
49407
ca5baa3f 494082005-05-10 Hollis Blanchard <hollis@penguinppc.org>
49409
49410 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
49411 /chosen/bootargs.
49412 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
49413 /chosen/bootargs as "variable=value" pairs.
49414
708b345f 494152005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
49416
49417 * include/grub/misc.h (grub_dprintf): New macro.
49418 (grub_real_dprintf): New prototype.
49419 (grub_strword): Likewise.
49420 (grub_iswordseparator): Likewise.
49421 * kern/misc.c (grub_real_dprintf): New function.
49422 (grub_strword): Likewise.
49423 (grub_iswordseparator): Likewise.
49424
f4c5e67c 494252005-04-30 Hollis Blanchard <hollis@penguinppc.org>
49426
49427 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
49428 (roundup): Remove macro.
49429 (grub_ieee1275_flags): Make static.
49430 (grub_ieee1275_realmode): Remove.
49431 (grub_ieee1275_test_flag): New function.
49432 (grub_ieee1275_set_flag): Likewise.
49433 (find_options): Rename to `grub_ieee1275_find_options'; update
49434 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
49435 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
49436 (cmain): New prototype.
49437 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
49438 `grub_ieee1275_flags' directly.
49439 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
49440 machine/biosdisk.h.
49441 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
49442 Don't include grub/machine/init.h.
49443 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
49444 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49445 Remove prototype.
49446 (grub_ieee1275_realmode): Likewise.
49447 (grub_ieee1275_flag): New enum.
49448 (grub_ieee1275_test_flag): New prototype.
49449 (grub_ieee1275_set_flag): New prototype.
49450 * include/grub/powerpc/ieee1275/init.h: Remove file.
49451 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
49452 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
49453 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
49454 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
49455 comment.
49456 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
49457 `grub_ieee1275_test_flag'.
49458 (grub_ieee1275_encode_devname): Likewise.
49459
ed16607e 494602005-04-21 Hollis Blanchard <hollis@penguinppc.org>
49461
49462 * include/grub/powerpc/ieee1275/ieee1275.h
49463 (grub_ieee1275_encode_devname): New prototype.
49464 (grub_ieee1275_get_filename): Likewise.
49465 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
49466 function.
49467 (grub_set_prefix): Likewise.
49468 (grub_machine_init): Call grub_set_prefix.
49469 * kern/powerpc/ieee1275/openfw.c: Fix typos.
49470 (grub_parse_type): New enum.
49471 (grub_ieee1275_get_devargs): New function.
49472 (grub_ieee1275_get_devname): Likewise.
49473 (grub_ieee1275_parse_args): Likewise.
49474 (grub_ieee1275_get_filename): Likewise.
49475 (grub_ieee1275_encode_devname): Likewise.
49476
be369920 494772005-03-30 Marco Gerards <metgerards@student.han.nl>
49478
49479 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
49480 `grub_loader_unset'.
49481
a5ce3a4a 494822005-03-26 Hollis Blanchard <hollis@penguinppc.org>
49483
49484 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
49485 instead of grub_ieee1275_interpret.
49486 (grub_halt_init): New function.
49487 (grub_halt_fini): Likewise.
49488 (GRUB_MOD_INIT): Correct message grammar.
49489 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
49490 instead of grub_ieee1275_interpret.
49491 (grub_reboot_init): New function.
49492 (grub_reboot_fini): Likewise.
49493 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
49494 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
49495 util/i386/pc/misc.c with commands/ieee1275/halt.c,
49496 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
49497 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
49498 function.
49499 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
49500 Add prototype.
49501 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
49502 prototype.
49503 (grub_halt): Likewise.
49504 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
49505 (cmain): Remove __attribute__((unused)).
49506 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
49507 (grub_heap_len): Likewise.
49508 (grub_machine_fini): New function.
49509 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
49510 (grub_halt): Likewise.
49511 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
49512 function.
49513 * util/powerpc/ieee1275/misc.c: New file.
49514
0058f771 495152005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
49516
49517 * DISTLIST: New file.
49518 * gendistlist.sh: Likewise.
f19dbdb7 49519
0058f771 49520 * Makefile.in (COMMON_DISTFILES): Removed.
49521 (BOOT_DISTFILES): Likewise.
49522 (CONF_DISTFILES): Likewise.
49523 (DISK_DISTFILES): Likewise.
49524 (FS_DISTFILES): Likewise.
49525 (INCLUDE_DISTFILES): Likewise.
49526 (KERN_DISTFILES): Likewise.
49527 (LOADER_DISTFILES): Likewise.
49528 (TERM_DISTFILES): Likewise.
49529 (UTIL_DISTFILES): Likewise.
49530 (DISTFILES): Likewise.
49531 (uninstall): Uninstall files in $(pkgdata_DATA).
49532 (DISTLIST): New target.
49533 (distdir): Use the contents of the file DISTLIST to get a list of
49534 distributed files.
49535
46b3b8a5 495362005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
49537
49538 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
49539 descriptor. This is ported from GRUB Legacy.
49540
49541 * gencmdlist.sh: Added an extra semicolon to make it work with
49542 old sed versions. Reported by Robert Bihlmeyer
49543 <robbe@orcus.priv.at>.
49544
5822ff87 495452005-03-08 Yoshinori Okuji <okuji@enbug.org>
49546
49547 Automatic loading of commands is supported.
f19dbdb7 49548
5822ff87 49549 * normal/main.c (read_command_list): New function.
49550 (grub_normal_execute): Call read_command_list.
49551
49552 * normal/command.c (grub_register_command): Return zero or CMD.
49553 Allocate CMD->NAME from the heap.
49554 Initialize CMD->MODULE_NAME to zero.
49555 Find the same name as well. If the same command is found and it is
49556 a dummy command, overwrite members. If it is not a dummy command,
49557 return zero.
49558 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
49559 (grub_command_find): If a dummy command is found, load a module
49560 and retry to find a command only once.
49561
49562 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
49563 make sure that each command is loaded.
49564
49565 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
49566 macro.
49567 (struct grub_command): Remove const from the member `name'.
49568 Add a new member `module_name'.
49569 (grub_register_command): Return grub_command_t.
49570
49571 * commands/help.c (grub_cmd_help): Call grub_command_find to make
49572 sure that each command is loaded.
49573
49574 * genmk.rb (PModule::rule): Specify a module name without the
49575 suffix ".mod" to gencmdlist.sh.
49576
7b1f4b57 495772005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49578
49579 * gencmdlist.sh: New file.
f19dbdb7 49580
7b1f4b57 49581 * genmk.rb (PModule::rule): Generate a rule for a command list.
49582 Clean command.lst.
49583 Generate command.lst from $(COMMANDFILES).
49584
49585 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
49586 (DATA): Added $(pkgdata_DATA).
49587 (install-local): Install files in $(pkgdata_DATA).
49588
062aaf39 495892005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49590
49591 * term/i386/pc/vga.c (debug_command): Removed.
49592 (GRUB_MOD_INIT): Do not register the command "debug".
49593
49594 From Hollis Blanchard:
49595 * commands/configfile.c: New file.
49596 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49597 commands/configfile.c.
49598 (pkgdata_MODULES): Added configfile.mod.
49599 (configfile_mod_SOURCES): New variable.
49600 (configfile_mod_CFLAGS): Likewise.
49601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49602 commands/configfile.c.
49603 (pkgdata_MODULES): Added configfile.mod.
49604 (configfile_mod_SOURCES): New variable.
49605 (configfile_mod_CFLAGS): Likewise.
49606 * util/grub-emu.c (main): Call grub_configfile_init and
49607 grub_configfile_fini.
49608 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
49609 prototype.
49610 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 49611
cee01aa6 496122005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49613
49614 * normal/arg.c (grub_arg_show_help): Do not show the bug report
49615 address.
49616
49617 * commands/help.c (grub_cmd_help): Do not print newlines after
49618 the last command in print_command_help.
49619
93f3a1d8 496202005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49621
49622 * commands/default.h: New file.
49623 * commands/timeout.h: Likewise.
49624 * normal/context.c: Likewise.
f19dbdb7 49625
93f3a1d8 49626 * util/misc.c: Do not include sys/times.h.
49627 Include sys/time.h and grub/machine/time.h.
49628 (grub_get_rtc): Rewritten with gettimeofday.
49629
49630 * util/grub-emu.c (main): Call grub_default_init and
49631 grub_timeout_init before grub_normal_init, and call
49632 grub_timeout_fini and grub_default_fini after grub_main.
49633
49634 * util/console.c (grub_ncurses_checkkey): Return the read
49635 character or -1.
49636
49637 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
49638 timeouts.
49639
49640 * normal/main.c (read_config_file): Push MENU. If this fails,
49641 print an error and wait for a user input.
49642 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
49643 If a menu is empty or an error occurs, pop MENU.
49644 (grub_normal_execute): Pop and free MENU after grub_menu_run
49645 returns.
49646
49647 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
49648
49649 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
49650 include time.h.
49651 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49652 without GRUB_UTIL.
49653 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
49654 time.h.
49655 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49656 without GRUB_UTIL.
49657
49658 * include/grub/normal.h (struct grub_menu_list): New struct.
49659 (grub_menu_list_t): New type.
49660 (struct grub_context): New struct.
49661 (grub_context_t): New type.
49662 (grub_register_command): Got rid of EXPORT_FUNC.
49663 (grub_unregister_command): Likewise.
49664 (grub_context_get): New prototype.
49665 (grub_context_get_current_menu): Likewise.
49666 (grub_context_push_menu): Likewise.
49667 (grub_context_pop_menu): Likewise.
49668 [GRUB_UTIL] (grub_default_init): Likewise.
49669 [GRUB_UTIL] (grub_default_fini): Likewise.
49670 [GRUB_UTIL] (grub_timeout_init): Likewise.
49671 [GRUB_UTIL] (grub_timeout_fini): Likewise.
49672
49673 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
49674 commands/timeout.c and normal/context.c.
49675 (pkgdata_MODULES): Added default.mod and timeout.mod.
49676 (normal_mod_SOURCES): Added normal/context.c.
49677 (default_mod_SOURCES): New variable.
49678 (default_mod_CFLAGS): Likewise.
49679 (timeout_mod_SOURCES): Likewise.
49680 (timeout_mod_CFLAGS): Likewise.
49681 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
49682 conf/i386-pc.rmk.
49683 (pkgdata_MODULES): Added default.mod and timeout.mod.
49684 (normal_mod_SOURCES): Added normal/context.c.
49685 (default_mod_SOURCES): New variable.
49686 (default_mod_CFLAGS): Likewise.
49687 (timeout_mod_SOURCES): Likewise.
49688 (timeout_mod_CFLAGS): Likewise.
49689
49690 * Makefile.in (all-local): Added $(MKFILES).
49691
4ed2e1dd 496922005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
49693
49694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
49695 (grub_emu_SOURCES): Likewise.
49696 (pkgdata_MODULES): Add `sun.mod'.
49697 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49698 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49699 `partmap/sun.c'.
49700 (pkgdata_MODULES): Add `sun.mod'.
49701 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49702 * include/grub/partition.h (grub_sun_partition_map_init): New
49703 prototype.
49704 (grub_sun_partition_map_fini): Likewise.
49705 * partmap/sun.c: New file.
49706 * util/grub-emu.c (main): Initialize and de-initialize the sun
49707 partitionmap support.
49708
4d4e372e 497092005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
49710
49711 This implements an Emacs-like menu entry editor.
f19dbdb7 49712
4d4e372e 49713 * normal/menu_entry.c: New file.
f19dbdb7 49714
4d4e372e 49715 * util/console.c (grub_ncurses_putchar): Translate some Unicode
49716 characters to ASCII.
49717 (saved_char): New variable.
49718 (grub_ncurses_checkkey): Rewritten completely.
49719 (grub_ncurses_getkey): Likewise.
49720 (grub_ncurses_init): Call raw instead of cbreak.
49721
49722 * normal/menu.c (print_entry): Do not put a space.
49723 (init_page): Renamed to ...
49724 (grub_menu_init_page): ... this. All callers changed.
49725 (edit_menu_entry): Removed.
49726 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
49727
49728 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
49729
49730 * kern/misc.c (grub_vprintf): Call grub_refresh.
49731
49732 * normal/menu.c (DISP_LEFT): Renamed to ...
49733 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
49734 * normal/menu.c (DISP_UP): Renamed to ...
49735 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
49736 * normal/menu.c (DISP_RIGHT): Renamed to ...
49737 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
49738 * normal/menu.c (DISP_DOWN): Renamed to ...
49739 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
49740 * normal/menu.c (DISP_HLINE): Renamed to ...
49741 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
49742 * normal/menu.c (DISP_VLINE): Renamed to ...
49743 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
49744 * normal/menu.c (DISP_UL): Renamed to ...
49745 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
49746 * normal/menu.c (DISP_UR): Renamed to ...
49747 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
49748 * normal/menu.c (DISP_LL): Renamed to ...
49749 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
49750 * normal/menu.c (DISP_LR): Renamed to ...
49751 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
49752 * normal/menu.c (TERM_WIDTH): Renamed to ...
49753 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
49754 * normal/menu.c (TERM_HEIGHT): Renamed to ...
49755 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
49756 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
49757 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
49758 * normal/menu.c (TERM_MARGIN): Renamed to ...
49759 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
49760 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
49761 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
49762 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
49763 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
49764 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
49765 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
49766 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
49767 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
49768 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
49769 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
49770 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
49771 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
49772 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
49773 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
49774 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
49775 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
49776 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
49777 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
49778 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
49779 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
49780 All callers changed.
49781
49782 * include/grub/normal.h: New prototype.
49783
49784 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49785 normal/menu_entry.c.
49786 (normal_mod_SOURCES): Likewise.
49787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49788 (normal_mod_SOURCES): Likewise.
49789
e6b92c8a 497902005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
49791
49792 * include/grub/normal.h (grub_halt_init): New prototype.
49793 (grub_halt_fini): Likewise.
49794 (grub_reboot_init): Likewise.
49795 (grub_reboot_fini): Likewise.
49796
49797 * util/grub-emu.c: Include signal.h.
49798 (main_env): New global variable.
49799 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
49800 catch C-c.
49801 (grub_machine_fini): New function.
49802 (main): Call grub_halt_init and grub_reboot_init before
49803 grub_main, and grub_reboot_fini and grub_halt_fini after it.
49804 Call setjmp with MAIN_ENV to go back afterwards.
49805 Call grub_machine_fini right before return.
49806
49807 * include/grub/util/misc.h: Include setjmp.h.
49808 (main_env): New prototype.
49809
49810 * include/grub/kernel.h (grub_machine_fini): New prototype.
49811 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
49812 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
49813
49814 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
49815 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
49816 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 49817
e6b92c8a 49818 * util/i386/pc/misc.c: New file.
f19dbdb7 49819
e6b92c8a 49820 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49821 util/i386/pc/misc.c, commands/i386/pc/halt.c and
49822 commands/i386/pc/reboot.c.
49823
c642636f 498242005-02-14 Guillem Jover <guillem@hadrons.org>
49825
49826 * include/grub/dl.h (grub_dl_check_header): New prototype.
49827 (grub_arch_dl_check_header): Change return type to grub_err_t,
49828 remove size parameter and export function. Update all callers.
49829 * kern/dl.c (grub_dl_check_header): New function.
49830 (grub_dl_load_core): Use `grub_dl_check_header' instead of
49831 `grub_arch_dl_check_header'. Check ELF type. Check if sections
49832 are inside the core.
49833 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
49834 independent ELF header checks.
49835 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
49836 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
49837 `grub_dl_check_header' instead of explicit checks. Check for the
49838 ELF type.
49839 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
49840 `grub_dl_check_header' instead of explicit checks. Remove arch
49841 specific ELF header checks.
49842
e6b92c8a 49843 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
49844 argument SIZE.
49845
5eabe94b 498462005-02-13 Hollis Blanchard <hollis@penguinppc.org>
49847
49848 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
49849 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
49850
1b14a681 498512005-02-12 Hollis Blanchard <hollis@penguinppc.org>
49852
49853 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 49854 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 49855 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 49856 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 49857 * partmap/amiga.c (amiga_partition_map_iterate): Return
49858 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
49859 * partmap/apple.c (apple_partition_map_iterate): Likewise.
49860
aca108aa 498612005-02-01 Guillem Jover <guillem@hadrons.org>
49862
49863 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
49864 help info.
49865
c9f9c556 498662005-01-31 Marco Gerards <metgerards@student.han.nl>
49867
49868 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
49869 Removed prototype.
49870 (grub_rescue_cmd_linux): New prototype.
49871 (grub_rescue_cmd_initrd): Likewise.
49872 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
49873 `bi_rec'.
49874 (grub_linux_release_mem): Release the memory for the initrd.
49875 (grub_load_linux): Renamed from this...
49876 (grub_rescue_cmd_linux): ...To this. Changed all callers.
49877 Changed `entry' not to be static. Loop over memory regions to
49878 find another one when the default fails.
49879 (grub_rescue_cmd_initrd): New function.
49880 (grub_linux_init): Remove function.
49881 (grub_linux_fini): Likewise.
49882 (GRUB_MOD_INIT): Register `initrd'.
49883 (GRUB_MOD_FINI): Unregister `initrd'.
49884 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
49885 Function removed.
49886 (grub_linux_normal_fini): Likewise.
49887 (GRUB_MOD_INIT): Register `initrd'.
49888 (GRUB_MOD_FINI): Unregister `initrd'.
49889
990cf3aa 498902005-01-31 Marco Gerards <metgerards@student.han.nl>
49891
49892 * commands/help.c: New file.
49893 * normal/arg.c (show_help): Renamed to...
49894 (grub_arg_show_help): ... this.
49895 * commands/i386/pc/halt.c: New file.
49896 * commands/i386/pc/reboot.c: Likewise.
49897 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
49898 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
49899 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
49900 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
49901 variables.
49902 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49903 `commands/help.c'.
49904 (pkgdata_MODULES): Add `help.mod'.
49905 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
49906 * grub/i386/pc/init.h (grub_reboot): New prototype.
49907 (grub_halt): Likewise.
49908 * include/grub/normal.h (grub_arg_show_help): New prototype.
49909 (grub_help_init): Likewise.
49910 (grub_help_fini): Likewise.
49911 * util/grub-emu.c (main): Initialize and deinitialize the help
49912 command.
49913
49914 * normal/cmdline.c (grub_cmdline_get): Doc fix.
49915
49916 * normal/command.c (grub_command_init): Fixed the description of
49917 the `set' and `unset' commands.
49918
499192005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 49920
49921 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
49922 function.
49923 * commands/ieee1275/halt.c: New file.
49924 * commands/ieee1275/reboot.c: Likewise.
49925 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
49926 `__attribute__ ((unused))'. Some GCS related fixed.
49927 (grub_suspend_init) [GRUB_UTIL]: Function removed.
49928 (grub_suspend_fini): Likewise.
49929 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
49930 and `halt.mod'.
49931 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
49932 (halt_mod_CFLAGS): New variables.
49933 * include/grub/powerpc/ieee1275/ieee1275.h
49934 (grub_ieee1275_interpret): New prototype.
49935
1ab09cc7 499362005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
49937
49938 * include/grub/misc.h (memmove): New prototype.
49939 (memcpy): Likewise.
49940
8b8cbdb2 499412005-01-22 Hollis Blanchard <hollis@penguinppc.org>
49942
49943 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
49944 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
49945
e3741a27 499462005-01-22 Marco Gerards <metgerards@student.han.nl>
49947
49948 * kern/misc.c (grub_strndup): Function rewritten.
49949
776bd780 499502005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
49951
49952 * normal/menu.c (TERM_WIDTH): Macro redefined.
49953 (TERM_TOP_BORDER_Y): Likewise.
49954 (draw_border): Replaced while-loop by a for-loop. Make the number
49955 of lines consistent with the number of lines displayed in
49956 print_entries. Added a margin below the rectangle.
49957 (print_entry): Make the entry fit in the rectangle.
49958 (print_entries): Display the scroll arrows next to the right
49959 border.
49960
78026bce 499612005-01-21 Marco Gerards <metgerards@student.han.nl>
49962
49963 * fs/minix.c (grub_minix_find_file): Reserve more space for
49964 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
49965 `grub_strncpy' to copy `path' into it.
49966
67bbaf0f 499672005-01-21 Marco Gerards <metgerards@student.han.nl>
49968
49969 Add the loopback device, a device via which files can be accessed
49970 as devices.
f19dbdb7 49971
67bbaf0f 49972 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
49973 (pkgdata_MODULES): Add loopback.mod.
49974 (loopback_mod_SOURCES): New variable.
49975 (loopback_mod_CFLAGS): Likewise.
49976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49977 `disk/loopback.c'.
49978 (pkgdata_MODULES): Add loopback.mod.
49979 (loopback_mod_SOURCES): New variable.
49980 (loopback_mod_CFLAGS): Likewise.
49981 * disk/loopback.c: new file.
49982 * include/grub/normal.h (grub_loop_init): New prototype.
49983 (grub_loop_fini): New prototype.
49984 * util/grub-emu.c (main): Initialize and de-initialize loopback
49985 support.
49986 * include/grub/disk.h (grub_disk_dev_id): Add
49987 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
49988
6f1c18bd 499892005-01-20 Hollis Blanchard <hollis@penguinppc.org>
49990
49991 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
49992 function.
49993 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
49994 (suspend_mod_SOURCES): New variable.
49995 (suspend_mod_CFLAGS): Likewise.
49996 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
49997 New prototype.
49998 * commands/ieee1275/suspend.c: New file.
49999
b38551da 500002005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50001
50002 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 50003 ((unused))' to `__attribute__ ((used))'.
b38551da 50004 (GRUB_MOD_FINI): Likewise.
50005 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
50006 * genmk.rb (PModule): Assign space to common symbols when linking
50007 modules.
50008
777aff39 500092005-01-20 Marco Gerards <metgerards@student.han.nl>
50010
50011 * include/grub/mm.h (grub_mm_init_region): Change the type of the
50012 `unsigned' arguments to `grub_size_t'.
50013 (grub_malloc): Likewise.
50014 (grub_realloc): Likewise.
50015 (grub_memalign): Likewise.
50016 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
50017 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
50018 * util/misc.c (grub_malloc): Likewise.
50019 (grub_realloc): Likewise.
50020 * kern/mm.c (get_header_from_pointer): Change the casts to
50021 `unsigned' into a cast to `grub_size_t'.
50022
50023 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
50024 point to `currnode' when `currnode' is changed.
50025
50026 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
50027 Schottelius <nico-linux@schottelius.org>.
50028
d0ff18e1 500292005-01-09 Hollis Blanchard <hollis@penguinppc.org>
50030
50031 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
50032 (note_path): Remove variable.
50033 (GRUB_IEEE1275_NOTE_NAME): New macro.
50034 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
50035 (grub_ieee1275_note_hdr): New structure.
50036 (grub_ieee1275_note_desc): Likewise.
50037 (grub_ieee1275_note): Likewise.
50038 (load_note): Remove `dir' argument. All callers updated. Remove
50039 `note_img' and `path'. Do not load a file from `note_path'.
50040 Initialize a struct grub_ieee1275_note and write that to `out'.
50041 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
50042
4ca7004c 500432005-01-05 Marco Gerards <metgerards@student.han.nl>
50044
50045 * util/misc.c (grub_util_read_image): Revert last change. It
50046 called `grub_util_read_at', which seeks from the beginning of the
50047 file.
50048
0b412211 500492005-01-04 Hollis Blanchard <hollis@penguinppc.org>
50050
50051 * TODO: Add note about endianness in grub-mkimage.
50052 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
50053 section.
50054 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
50055 (grub_mkimage_SOURCES): New target.
50056 * include/grub/kernel.h (grub_start_addr): Remove variable.
50057 (grub_end_addr): Likewise.
50058 (grub_total_module_size): Likewise.
50059 (grub_kernel_image_size): Likewise.
50060 (GRUB_MODULE_MAGIC): New constant.
50061 (grub_module_info): New structure.
50062 (grub_arch_modules_addr): New prototype.
50063 (grub_get_end_addr): Remove prototype.
50064 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
50065 * include/grub/powerpc/ieee1275/kernel.h: New file.
50066 * include/grub/util/misc.h (grub_util_get_fp_size): New
50067 prototype.
50068 (grub_util_read_at): Likewise.
50069 (grub_util_write_image_at): Likewise.
50070 * kern/main.c (grub_get_end_addr): Remove function.
50071 (grub_load_modules): Call grub_arch_modules_addr instead of using
50072 grub_end_addr. Look for a grub_module_info struct in memory. Use
50073 the grub_module_info fields instead of calling grub_get_end_addr
50074 as loop conditions. Move grub_add_unused_region code here.
50075 (grub_add_unused_region): Remove function.
50076 * kern/i386/pc/init.c: Include grub/cache.h.
50077 (grub_machine_init): Remove call to grub_get_end_addr. Remove
50078 one call to add_mem_region.
50079 (grub_arch_modules_addr): New function.
50080 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
50081 (grub_total_module_size): Likewise.
50082 Include grub/machine/kernel.h.
50083 (grub_arch_modules_addr): New function.
50084 * util/grub-emu.c (grub_end_addr): Remove variable.
50085 (grub_total_module_size): Likewise.
50086 (grub_arch_modules_addr): New function.
50087 * util/misc.c: Include unistd.h.
50088 (grub_util_get_fp_size): New function.
50089 (grub_util_read_at): Likewise.
50090 (grub_util_write_image_at): Likewise.
50091 (grub_util_read_image): Call grub_util_read_at.
50092 (grub_util_write_image): Call grub_util_write_image_at.
50093 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
50094 additional memory in kernel_img for a struct grub_module_info.
50095 Fill in that grub_module_info.
50096 * util/powerpc/ieee1275/grub-mkimage.c: New file.
50097
458786f8 500982005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50099
50100 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
50101 New function.
50102 * include/grub/powerpc/ieee1275/ieee1275.h
50103 (grub_ieee1275_milliseconds): New prototype.
50104 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
50105 Change to 1000.
50106 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
50107 grub_ieee1275_milliseconds.
50108
ac507d1b 501092005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50110
50111 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
50112 variable.
50113 (find_options): New function.
50114 (cmain): Call find_options.
50115 * include/grub/powerpc/ieee1275/ieee1275.h
50116 (grub_ieee1275_realmode): New extern variable.
50117 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
50118 grub_map if grub_ieee1275_realmode is false.
50119
6b8fd1c4 501202004-12-29 Marco Gerards <metgerards@student.han.nl>
50121
50122 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
50123 lines are inserted and make it work like readline. Reported by
50124 Vincent Pelletier <subdino2004@yahoo.fr>.
50125
8514a1e0 501262004-12-28 Marco Gerards <metgerards@student.han.nl>
50127
50128 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
50129
50130 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
50131 `kern/powerpc/cache.S'.
50132
924b6140 501332004-12-27 Marco Gerards <metgerards@student.han.nl>
50134
50135 * genmk.rb: Handle the `Program' class in the main loop. Written
50136 by Johan Rydberg <jrydberg@gnu.org>.
50137 (Program): New class.
50138 (programs): New variable.
50139 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
50140 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
50141 instead of "grub/kernel.h". Include <grub/machine/init.h>.
50142 (help_arch): Function removed.
50143 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
50144 `powerpc/libgcc.h' and `loader.h'.
50145 (pkgdata_PROGRAMS): New variable.
50146 (sbin_UTILITIES): Variable removed.
50147 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
50148 (grubof_SOURCES): Variable re-defined so it only includes the
50149 core functionality.
50150 (grubof_CFLAGS): Remove `-DGRUBOF'.
50151 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
50152 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
50153 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
50154 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
50155 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
50156 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
50157 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
50158 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
50159 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
50160 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
50161 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50162 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
50163 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
50164 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
50165 (pc_mod_CFLAGS): New variables.
50166 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
50167 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
50168 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
50169 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
50170 Moved from here...
50171 * include/grub/i386/pc/init.h (grub_os_area_addr)
50172 (rub_os_area_size): ... to here.
50173 * include/grub/powerpc/ieee1275/ieee1275.h
50174 (grub_ieee1275_entry_fn): Export symbol.
50175 * include/grub/powerpc/ieee1275/init.h: New file.
50176 * include/grub/powerpc/libgcc.h: Likewise.
50177 * include/grub/cache.h: Likewise.
50178 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
50179 <hollis@penguinppc.org>.
50180 * kern/dl.c: Include <grub/cache.h>.
50181 (grub_dl_flush_cache): New function.
50182 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
50183 for this module.
50184 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
50185 (grub_console_init): Removed prototypes.
50186 (grub_machine_init): Don't initialize the modules anymore.
50187 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
50188 static.
50189 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
50190 Macro undef removed.
50191 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
50192 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
50193 relocation `R_PPC_REL32'. Return an error when the relocation is
50194 unknown.
50195 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
50196 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
50197 * util/misc.c (grub_arch_sync_caches): Likewise.
50198
e4b47e0c 501992004-12-19 Marco Gerards <metgerards@student.han.nl>
50200
50201 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
50202 `symlist.c', add `grubof_symlist.c'.
50203 (symlist.c): Variable removed.
50204 (grubof_HEADERS): Variable added.
50205 (grubof_symlist.c): New target.
50206 (kernel_syms.lst): Use `grubof_HEADERS' instead of
50207 `kernel_img_HEADERS'.
50208 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
50209 * kern/powerpc/dl.c: New file.
50210 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
50211 Function removed.
50212 (grub_arch_dl_relocate_symbols): Likewise.
50213 (grub_register_exported_symbols): Likewise.
50214
4ceb3636 502152004-12-13 Marco Gerards <metgerards@student.han.nl>
50216
50217 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
50218 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
50219 to fail instead. Reported by Vincent Pelletier
50220 <subdino2004@yahoo.fr>.
50221
50222 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
50223 it is not allocated. Reported by Vincent Pelletier
50224 <subdino2004@yahoo.fr>.
50225
50226 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
50227 output so the output looks better.
f19dbdb7 50228
3f1578fe 502292004-12-04 Marco Gerards <metgerards@student.han.nl>
50230
50231 Modulize the partition map support and add support for the amiga
50232 partition map.
f19dbdb7 50233
3f1578fe 50234 * commands/ls.c: Include <grub/partition.h> instead of
50235 <grub/machine/partition.h>.
50236 * kern/disk.c: Likewise.
50237 * kern/rescue.c: Likewise.
50238 * loader/i386/pc/chainloader.c: Likewise.
50239 * normal/cmdline.c: Likewise.
50240 * kern/powerpc/ieee1275/init.c: Likewise.
50241 (grub_machine_init): Call `grub_pc_partition_map_init',
50242 `grub_amiga_partition_map_init' and
50243 `grub_apple_partition_map_init'.
50244 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
50245 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
50246 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
50247 `partition.h' and `pc_partition.h'.
50248 (grub_setup_SOURCES): Remove
50249 `disk/i386/pc/partition.c'. Add `kern/partition.c',
50250 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50251 (grub_emu_SOURCES): Likewise.
50252 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
50253 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
50254 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
50255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50256 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
50257 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50258 (grubof_SOURCES): Likewise.
50259 * disk/i386/pc/partition.c: File removed.
50260 * disk/powerpc/ieee1275/partition.c: Likewise.
50261 * include/grub/powerpc/ieee1275/partition.h: Likewise.
50262 * include/grub/i386/pc/partition.h: Likewise.
50263 * kern/partition.c: New file.
50264 * partmap/amiga.c: Likewise.
50265 * partmap/apple.c: Likewise.
50266 * partmap/pc.c: Likewise.
50267 * include/grub/partition.h: Likewise..
50268 * include/grub/pc_partition.h: Likewise.
50269 * util/grub-emu.c: Include <grub/partition.h> instead of
50270 <grub/machine/partition.h>.
50271 (main): Call `grub_pc_partition_map_init',
50272 `grub_amiga_partition_map_init' and
50273 `grub_apple_partition_map_init' and deinitialize afterwards.
50274 * util/i386/pc/biosdisk.c: Include `#include
50275 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50276 `<grub/machine/partition.h>'.
50277 * util/i386/pc/grub-setup.c: Likewise.
50278 * util/i386/pc/biosdisk.c: Likewise.
50279 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
50280 partition information in case of a PC partition.
50281 * util/i386/pc/grub-setup.c: Include `#include
50282 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50283 `<grub/machine/partition.h>'.
50284 (setup): Only access the PC specific partition information in case
50285 of a PC partition.
50286
0ef4ced9 502872004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 50288
0ef4ced9 50289 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
50290 (grub_longjmp): Likewise.
50291 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
50292 20.
50293 * normal/powerpc/setjmp.S: New file.
50294 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50295 `normal/powerpc/setjmp.S'.
50296 (grubof_CFLAGS): Add `-DGRUBOF'.
50297 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
50298 [GRUB_UTIL && !GRUBOF].
f19dbdb7 50299
19950e29 503002004-11-16 Marco Gerards <metgerards@student.han.nl>
50301
50302 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
50303 property named `name'. Correctly handle the error returned by
50304 `grub_ieee1275_finddevice' if a device can not be opened.
50305
a2fea427 503062004-11-02 Hollis Blanchard <hollis@penguinppc.org>
50307
50308 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
50309 `actual' for negativity.
50310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50311 kern/fshelp.c.
50312
41ea0ea3 503132004-11-01 Marco Gerards <metgerards@student.han.nl>
50314
50315 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
50316 (PAGE_OFFSET): New macro.
50317 (CRTC_ADDR_PORT): Likewise.
50318 (CRTC_DATA_PORT): Likewise.
50319 (START_ADDR_HIGH_REGISTER): Likewise.
50320 (START_ADDR_LOW_REGISTER): Likewise.
50321 (GRAPHICS_ADDR_PORT): Likewise.
50322 (GRAPHICS_DATA_PORT): Likewise.
50323 (READ_MAP_REGISTER): Likewise.
50324 (INPUT_STATUS1_REGISTER): Likewise.
50325 (INPUT_STATUS1_VERTR_BIT): Likewise.
50326 (page): New variable.
50327 (wait_vretrace): New function.
50328 (set_read_map): Likewise.
50329 (set_start_address): Likewise.
50330 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
50331 the right page.
50332 (check_vga_mem): Take the page into account.
50333 (write_char): Likewise.
50334 (write_cursor): Likewise.
50335 (scroll_up): Likewise. Copy the page to the page that is not
50336 shown and switch between both pages.
50337 (grub_vga_putchar): Fix off by one error.
50338 (grub_vga_cls): Wait for the vertical retrace. Take the page into
50339 account.
50340
ad0bd20b 503412004-11-01 Marco Gerards <metgerards@student.han.nl>
50342
50343 Add support for iso9660 (including rockridge).
f19dbdb7 50344
ad0bd20b 50345 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50346 (iso9660_mod_SOURCES): New variable.
50347 (iso9660_mod_CFLAGS): Likewise.
50348 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50349 * include/grub/fs.h (grub_iso9660_init): New prototype.
50350 * util/grub-emu.c (main): Call `grub_iso9660_init'.
50351 * fs/iso9660.c: New file.
50352
50353 * include/grub/misc.h (grub_strncat): New prototype.
50354 * kern/misc.c (grub_strncat): New function.
f19dbdb7 50355
ad0bd20b 50356 * fs/hfs.c (grub_hfs_mount): Translate the error
50357 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
50358 * fs/jfs.c (grub_jfs_mount): Likewise.
50359 * fs/ufs.c (grub_ufs_mount): Likewise.
50360
a5477a59 503612004-10-28 Hollis Blanchard <hollis@penguinppc.org>
50362
50363 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
50364 which initialized BAT registers.
50365 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
50366 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50367 Move from here...
50368 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
50369 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50370 ... to here.
50371 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
50372 (grub_mapclaim): Likewise.
50373 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
50374 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
50375 hand.
50376
9304c1f8 503772004-10-19 Hollis Blanchard <hollis@penguinppc.org>
50378
50379 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
50380 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
50381 -ffreestanding and -msoft-float.
50382
86f4ae25 503832004-10-15 Hollis Blanchard <hollis@penguinppc.org>
50384
50385 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
50386 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
50387 set in grub_ieee1275_flags.
50388
38912228 503892004-10-14 Hollis Blanchard <hollis@penguinppc.org>
50390
50391 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
50392 prototype.
50393 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
50394 grub_console_init first.
50395 Change the memory range used for grub_ieee1275_claim and
50396 grub_mm_init_region.
50397 Print an error message if the claim fails.
50398 Include <grub/misc.h>.
50399
d1923dc8 504002004-10-13 Hollis Blanchard <hollis@penguinppc.org>
50401
50402 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
50403 Call grub_children_iterate for device nodes of type `scsi',
50404 `ide', or `ata'.
50405 (grub_ofdisk_open): Remove manual device alias resolution.
50406 Fix memory leak when device cannot be opened.
f19dbdb7 50407 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 50408 (grub_children_iterate): New prototype.
50409 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
50410 New function.
50411 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50412 Return -1 if args.size was -1.
50413
4512e4f3 504142004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50415
50416 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
50417 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
50418 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
50419 Open Firmware's memory for it; claim memory from _start to _end.
50420 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
50421 (_end): New extern.
50422 (_start): Zero BSS from __bss_start to _end.
50423 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
50424 New extern.
50425 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
50426
4d61feb0 504272004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50428
ad0bd20b 50429 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
50430 -1 if args.base was -1.
4d61feb0 50431
026fa2f9 504322004-10-08 Hollis Blanchard <hollis@penguinppc.org>
50433
50434 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
50435 escape sequence instead of a literal ^L. Also call
50436 grub_ofconsole_gotoxy.
50437
9f2220ef 504382004-10-03 Hollis Blanchard <hollis@penguinppc.org>
50439
50440 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
50441 void * arguments to grub_addr_t. All callers updated. Also make
50442 the `result' argument optional.
50443 (grub_ieee1275_release): change void * arguments to grub_addr_t.
50444 All callers updated.
50445
8a572cd7 504462004-09-22 Hollis Blanchard <hollis@penguinppc.org>
50447
50448 * commands/ls.c (grub_ls_list_files): Use the string following the
50449 initial ')', if present, as the filesystem path.
50450 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
50451
50452 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
50453
18aa81f2 504542004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
50455
50456 Make the source code of the menu interface more readable.
f19dbdb7 50457
18aa81f2 50458 * normal/menu.c: Include grub/mm.h.
50459 (TERM_WIDTH): New macro.
50460 (TERM_HEIGHT): Likewise.
50461 (TERM_INFO_HEIGHT): Likewise.
50462 (TERM_MARGIN): Likewise.
50463 (TERM_SCROLL_WIDTH): Likewise.
50464 (TERM_TOP_BORDER_Y): Likewise.
50465 (TERM_LEFT_BORDER_X): Likewise.
50466 (TERM_BORDER_WIDTH): Likewise.
50467 (TERM_MESSAGE_HEIGHT): Likewise.
50468 (TERM_BORDER_HEIGHT): Likewise.
50469 (TERM_NUM_ENTRIES): Likewise.
50470 (TERM_FIRST_ENTRY_Y): Likewise.
50471 (TERM_ENTRY_WIDTH): Likewise.
50472 (TERM_CURSOR_X): Likewise.
50473 (draw_border): Use macros instead of magic numbers.
50474 (print_entry): Likewise.
50475 (print_entries): Likewise.
50476 (run_menu): Likewise. Also, handle the key 'e'.
50477 (run_menu_entry): Ignore empty command lines.
50478 (print_message): Added a new argument EDIT. If EDIT is true,
50479 print a different message.
50480 (init_page): Likewise.
50481 (edit_menu_entry): New function. Not implemented yet.
50482
b47efe30 504832004-09-17 Marco Gerards <metgerards@student.han.nl>
50484
50485 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
50486 can be loaded from normal mode.
f19dbdb7 50487
b47efe30 50488 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
50489 `multiboot.mod'.
50490 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
50491 (multiboot_mod_CFLAGS): New variables.
50492 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 50493 * loader/i386/pc/multiboot_normal.c: Likewise.
50494
b47efe30 50495 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
50496 attribute `unused'.
f19dbdb7 50497
b47efe30 50498 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
50499 `fdiro' to read the mode information from instead of `diro'.
50500
50501 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
50502 looking up a symlink.
50503
50504 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
50505 macro.
50506 * normal/command.c (grub_command_execute): Don't parse the
50507 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
50508 flags of the command.
50509
50510 * normal/menu.c (grub_menu_run): Fix typo.
50511
da75ac71 505122004-09-14 Hollis Blanchard <hollis@penguinppc.org>
50513
50514 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
50515
50516 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
50517 `y + 1' instead of `y - 1'.
50518
50519 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 50520
062b24c2 505212004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
50522
50523 From Hollis Blanchard <hollis@penguinppc.org>:
50524 * kern/misc.c (memmove): New alias for grub_memmove.
50525 (memcmp): New alias for grub_memcmp.
50526 (memset): New alias for grub_memset.
f19dbdb7 50527 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 50528 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 50529 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 50530 (grub_ieee1275_get_property): Likewise.
f19dbdb7 50531
8ddad845 505322004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
50533
50534 Added normal mode command `chainloader' as module chain.mod, which
50535 depends on normal.mod and _chain.mod.
f19dbdb7 50536
8ddad845 50537 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
50538 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
50539 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
50540 Deleted prototype.
50541 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
50542 but arguments parsing moved to ...
50543 (grub_chainloader_cmd): ... here. New function.
50544 * include/grub/i386/pc/chainloader.h: New file.
50545 * loader/i386/pc/chainloader_normal.c: Likewise.
50546
2c1f4ce3 505472004-09-11 Marco Gerards <metgerards@student.han.nl>
50548
50549 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
50550 (grub_mkimage_LDFLAGS): Likewise.
50551 (grub_emu_SOURCES): Likewise.
50552 (kernel_img_HEADERS): Added fshelp.h.
50553 * fs/ext2.c: Include <grub/fshelp.h>.
50554 (FILETYPE_REG): New macro.
50555 (FILETYPE_INO_REG): Likewise.
50556 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
50557 Changed all users.
50558 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
50559 all users.
50560 (grub_fshelp_node): New struct.
50561 (grub_ext2_data): Added member `diropen'. Changed member `inode'
50562 to a pointer.
50563 (grub_ext2_get_file_block): Removed function.
50564 (grub_ext2_read_block): New function.
50565 (grub_ext2_read_file): Replaced parameter `data' by `node'.
50566 This function was written.
50567 (grub_ext2_mount): Read the root inode. Create a diropen struct.
50568 (grub_ext2_find_file): Removed function.
50569 (grub_ext2_read_symlink): New function.
50570 (grub_ext2_iterate_dir): Likewise.
50571 (grub_ext2_open): Rewritten.
50572 (grub_ext2_dir): Rewritten.
50573 * include/grub/fshelp.h: New file.
50574 * fs/fshelp.c: Likewise.
50575
3c52136a 505762004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
50577
50578 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
50579 (print_message): Add a missing newline.
50580 (run_menu): Added timeout support.
50581 (run_menu_entry): New local function.
50582 (grub_menu_run): Added support for booting.
50583
50584 * kern/loader.c (grub_loader_is_loaded): New function.
50585
50586 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
50587 (grub_get_rtc): Exported.
50588
50589 * include/grub/i386/pc/time.h: Include grub/symbol.h.
50590 (grub_get_rtc): Exported.
50591
50592 * include/grub/normal.h (struct grub_command_list): Remove
50593 constant from the member `command'.
50594
50595 * include/grub/loader.h (grub_loader_is_loaded): Declared.
50596
50597 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
50598
50599 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
50600
aa033560 506012004-08-28 Marco Gerards <metgerards@student.han.nl>
50602
50603 Add support for the JFS filesystem.
50604
50605 * fs/jfs.c: New file.
50606 * include/grub/fs.h (grub_jfs_init): New prototype.
50607 (grub_jfs_fini): New prototype.
50608 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
50609 (grub_emu_SOURCES): Likewise.
50610 (pkgdata_MODULES): Add jfs.mod.
50611 (jfs_mod_SOURCES): New variable.
50612 (jfs_mod_CFLAGS): Likewise.
50613 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
50614 (grubof_SOURCES): Likewise.
50615 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
50616
50617 * fs/fat.c (grub_fat_find_dir): Convert the filename little
50618 endian to the host endian.
50619 (grub_fat_utf16_to_utf8): Move function from there...
50620 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 50621 the endianness of the source string anymore.
aa033560 50622 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
50623
94bc45af 506242004-08-24 Marco Gerards <metgerards@student.han.nl>
50625
50626 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
50627 (grub_boot_fini) [GRUB_UTIL]: Likewise.
50628 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
50629 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 50630
94bc45af 50631 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
50632 (grub_hfs_iterate_dir): Make the function static. Add prototypes
50633 for `node_found' and `it_dir'.
50634 (grub_hfs_dir): Add prototype for `dir_hook'.
50635
50636 * fs/minix.c (grub_minix_get_file_block): Add prototype for
50637 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
50638 and `indir32' to silence a gcc warning.
50639
50640 * include/grub/fs.h (grub_hfs_init): New prototype.
50641 (grub_hfs_fini): Likewise.
f19dbdb7 50642
50643
97543f08 506442004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
50645
50646 Each disk device has its own id now. This is useful to make use
50647 of multiple disk devices.
f19dbdb7 50648
97543f08 50649 * include/grub/disk.h (grub_disk_dev_id): New enum.
50650 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
50651 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
50652
50653 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
50654 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50655
50656 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
50657 GRUB_DISK_DEVICE_OFDISK_ID as an id.
50658
50659 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
50660 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50661
50662 * include/grub/disk.h (struct grub_disk_dev): Added a new member
50663 "id" which is used by the cache manager.
50664
50665 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
50666 of just "GRUB".
50667
64372eb4 506682004-08-18 Marco Gerards <metgerards@student.han.nl>
50669
50670 * fs/hfs.c: New file.
50671 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
50672 (grub_emu_SOURCES): Likewise.
50673 (pkgdata_MODULES): Add hfs.mod.
50674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
50675 (grubof_SOURCES): Likewise.
50676 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
50677
50678 * include/grub/misc.h (grub_strncasecmp): Add prototype.
50679 * kern/misc.c (grub_strncasecmp): Add function.
50680
cc61b58f 506812004-08-14 Marco Gerards <metgerards@student.han.nl>
50682
50683 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
50684 with parentheses.
50685
50686 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
50687 (grub_ext2_dir): In case the directory entry type is unknown, read
50688 it from the inode.
50689
0ef123f6 506902004-08-02 Peter Bruin <pjbruin@dds.nl>
50691
50692 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
50693 grub_load_linux instead of grub_rescue_cmd_linux as second
50694 argument of grub_rescue_register_command.
50695
50696 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
50697
a447c5df 506982004-07-27 Marco Gerards <metgerards@student.han.nl>
50699
50700 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
50701 function.
50702 * commands/boot.c: Remove the check for `GRUB_UTIL'.
50703 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50704 `loader/powerpc/ieee1275/linux.c',
50705 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
50706 * include/grub/powerpc/ieee1275/ieee1275.h
50707 (grub_ieee1275_release): New prototype.
50708 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
50709 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
50710 normal, boot, linux and linux_normal.
50711 * loader/powerpc/ieee1275/linux.c: New file.
50712 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
50713
5a9e3546 507142004-07-12 Marco Gerards <metgerards@student.han.nl>
50715
50716 * normal/arg.c (grub_arg_parse): Correct error handling after
50717 reallocating the argumentlist (check if `argl' is not null instead
50718 of checking if `args' is not null).
50719 * kern/mm.c (grub_realloc): Return the same pointer when using the
50720 same region, instead of returning the header address.
50721
e15199cb 507222004-07-11 Marco Gerards <metgerards@student.han.nl>
50723
50724 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
50725 one block instead of two when looking for the initial partition.
50726 (grub_partition_probe): Initialize the local variable `p' with 0.
50727 Use base 10 for the grub_strtoul call.
50728 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
50729 need for one local variable.
50730 (grub_strtoul): Don't add the new value to `num', instead of that
50731 just assign it.
50732
020616c2 507332004-07-11 Marco Gerards <metgerards@student.han.nl>
50734
50735 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
50736 (pxeboot_img_SOURCES): New variable.
50737 (pxeboot_img_ASFLAGS): Likewise.
50738 (pxeboot_img_LDFLAGS): Likewise.
50739 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
50740 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
50741 <lode_leroy@hotmail.com>.
50742
6c51eb64 507432004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50744
50745 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
50746 there was no input.
50747
cfb12aff 507482004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50749
50750 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
50751 the history buffer logic.
50752
6eabba74 507532004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50754
50755 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
50756 (FILETYPE_INO_SYMLINK): New macros.
50757 (grub_ext2_find_file): Check if the node is a directory using the
50758 inode stat information instead of using the filetype in the
50759 dirent. Exclude the first character of an absolute symlink.
50760 (grub_ext2_dir): Mask out the filetype part of the mode member of
50761 the inode.
50762
66e19ef8 507632004-05-24 Marco Gerards <metgerards@student.han.nl>
50764
50765 Add support for UFS version 1 and 2. Add support for the minix
50766 filesystem version 1 and 2, both the variants with 14 and 30 long
50767 filenames.
f19dbdb7 50768
66e19ef8 50769 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
50770 fs/minix.c.
50771 (grub_emu_SOURCES): Likewise.
50772 (pkgdata_MODULES): Add ufs.mod and minix.mod.
50773 (ufs_mod_SOURCES): New variable.
50774 (ufs_mod_CFLAGS): Likewise.
50775 (minix_mod_SOURCES): Likewise.
50776 (minix_mod_CFLAGS): Likewise.
50777 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
50778 fs/minix.c.
50779 (grubof_SOURCES): Likewise.
50780 * fs/ufs.c: New file.
50781 * fs/minix.c: New file.
50782 * include/grub/fs.h (grub_ufs_init): New prototype.
50783 (grub_ufs_fini): Likewise.
50784 (grub_minix_init): Likewise.
50785 (grub_minix_fini): Likewise.
50786 * util/grub-emu.c (main): Initialize and deinitialize UFS and
50787 minix fs.
50788
cc2e748a 507892004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
50790
50791 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
50792 commands/ls.c, commands/terminal.c, commands/boot.c,
50793 commands/cmp.c and commands/cat.c.
50794 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
50795
50796 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
50797 "env.h"
50798
4b13b216 507992004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50800
50801 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
50802 and grub_, respectively. Because the conversion is trivial and
50803 mechanical, I omit the details here. Please refer to the CVS
50804 if you need more information.
50805
6a142551 508062004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50807
50808 * include/pupa: Renamed to ...
50809 * include/grub: ... this.
50810 * util/i386/pc/pupa-mkimage.c: Renamed to ...
50811 * util/i386/pc/grub-mkimage.c: ... this.
50812 * util/i386/pc/pupa-setup.c: Renamed to ...
50813 * util/i386/pc/grub-setup.c: ... this.
50814 * util/pupa-emu.c: Renamed to ...
50815 * util/grub-emu.c: ... this.
50816
e56cdf21 508172004-03-29 Marco Gerards <metgerards@student.han.nl>
50818
50819 Add support for the newworld apple macintosh (PPC). This has been
50820 tested on the powerbook 2000 only. It only adds support for
50821 generic ieee1275 functions, console and disk support. This should
50822 be easy to port to other architectures with support for Open
50823 Firmware.
f19dbdb7 50824
e56cdf21 50825 * configure.ac: Accept the powerpc as host_cpu. In the case of
50826 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
50827 specific tests are only executed while building for the i386.
50828 Inverse test for crosscompile.
50829 * genmk.rb (Utility): Allow assembler files.
50830 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
50831 * conf/powerpc-ieee1275.rmk: New file.
50832 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
50833 * disk/powerpc/ieee1275/partition.c: Likewise.
50834 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
50835 * include/pupa/powerpc/ieee1275/console.h: Likewise.
50836 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
50837 * include/pupa/powerpc/ieee1275/time.h: Likewise.
50838 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
50839 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
50840 * include/pupa/powerpc/ieee1275/loader.h
50841 * include/pupa/powerpc/setjmp.h: Likewise.
50842 * include/pupa/powerpc/types.h: Likewise.
50843 * kern/powerpc/ieee1275/init.c: Likewise.
50844 * kern/powerpc/ieee1275/openfw.c: Likewise.
50845 * term/powerpc/ieee1275/ofconsole.c: Likewise.
50846
50847 These files were written by Johan Rydberg
50848 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 50849
e56cdf21 50850 * boot/powerpc/ieee1275/cmain.c: New file.
50851 * boot/powerpc/ieee1275/crt0.S: Likewise.
50852 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
50853 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
50854
8c8cc205 508552004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
50856
50857 * Makefile.in: Update copyright.
50858 * genmodsrc.sh: Likewise.
50859 * gensymlist.sh: Likewise.
50860 * term/i386/pc/vga.c: Indent correctly.
50861
50862 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
50863 bugreporting address.
50864 * util/i386/pc/pupa-setup.c (usage): Likewise,
50865 (main): Call pupa_ext2_init and pupa_ext2_fini.
50866
f19dbdb7 50867 * fs/fat.c (log2): Renamed to ...
8c8cc205 50868 (fat_log2): ... this.
50869 All callers changed.
50870 * kern/misc.c (memcpy): Alias to pupa_memmove.
50871 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
50872 lvalue cast.
50873 * util/console.c (pupa_ncurses_fini): Return 0.
50874
50875 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
50876 Move fail label here.
50877 [__GNU__]: Don't warn when using stat.
50878 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
50879 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
50880 long int. Use strtol instead of strtoul.
f19dbdb7 50881
db1771cf 508822004-03-14 Marco Gerards <metgerards@student.han.nl>
50883
50884 * commands/boot.c: New file.
50885 * commands/cat.c: Likewise.
50886 * commands/cmp.c: Likewise.
50887 * commands/ls.c: Likewise.
50888 * commands/terminal.c: Likewise.
50889 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
50890 (pupa_register_command): Changed interface to match the new
50891 argument parser.
50892 (pupa_command_execute): Changed (almost rewritten) so it uses
50893 pupa_split_command. Added support for setting variables using the
50894 syntax `foo=bar'.
50895 (rescue_command): Changed to work with the new argument parser.
50896 (terminal_command): Moved from here to commands/terminal.c.
50897 (set_command): New function.
50898 (unset_command): New function.
50899 (insmod_command): New function.
50900 (rmmod_command): New function.
50901 (lsmod_command): New function.
50902 (pupa_command_init): Don't initialize the command terminal
50903 anymore. Initialize the commands set, unset, insmod, rmmod and
50904 lsmod.
50905 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
50906 (kernel_img_HEADERS): Add arg.h and env.h.
50907 (pupa_mkimage_LDFLAGS): Add kern/env.c.
50908 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
50909 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
50910 normal/arg.c.
50911 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
50912 terminal.mod.
50913 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
50914 (boot_mod_SOURCES): New variable.
50915 (terminal_mod_SOURCES): Likewise.
50916 (ls_mod_SOURCES): Likewise.
50917 (cmp_mod_SOURCES): Likewise.
50918 (cat_mod_SOURCES): Likewise.
50919
50920 * normal/arg.c: New file.
50921 * kern/env.c: Likewise.
50922 * include/pupa/arg.h: Likewise.
50923 * include/pupa/env.h: Likewise.
50924 * font/manager.c (font_command): Changed to match argument parsing
50925 interface changes.
50926 (PUPA_MOD_INIT): Likewise.
50927 * hello/hello.c (pupa_cmd_hello): Likewise.
50928 (PUPA_MOD_INIT): Likewise.
50929 * include/pupa/disk.h: Include <pupa/device.h>.
50930 (pupa_print_partinfo): New prototype.
50931 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
50932 (pupa_dl_get_prefix): Likewise.
50933 * include/pupa/misc.h: Include <pupa/err.h>.
50934 (pupa_isgraph): New prototype.
50935 (pupa_isdigit): Likewise.
50936 (pupa_split_cmdline): Likewise.
50937 * include/pupa/normal.h: Include <pupa/arg.h>.
50938 (pupa_command): Changed the prototype of the member `func' to
50939 match the argument parsing interface. Added member `options'.
50940 (pupa_register_command): Updated to match function.
50941 (pupa_arg_parse): New prototype.
50942 (pupa_hello_init) [PUPA_UTIL]: New prototype.
50943 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
50944 (pupa_ls_init) [PUPA_UTIL]: Likewise.
50945 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
50946 (pupa_cat_init) [PUPA_UTIL]: Likewise.
50947 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
50948 (pupa_boot_init) [PUPA_UTIL]: Likewise.
50949 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
50950 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
50951 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
50952 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
50953 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
50954 * kern/disk.c: Include <pupa/file.h>.
50955 (pupa_print_partinfo): New function.
50956 * kern/dl.c: Include <pupa/env.h>.
50957 (pupa_dl_dir): Variable removed.
50958 (pupa_dl_load): Use the environment variable `prefix' instead of
50959 the variable pupa_dl_dir.
50960 (pupa_dl_set_prefix): Function removed.
50961 (pupa_dl_get_prefix): Likewise.
50962 * kern/i386/pc/init.c: Include <pupa/env.h>.
50963 (pupa_machine_init): Use the environment variable `prefix' instead of
50964 using pupa_dl_set_prefix to set the prefix.
50965 * kern/main.c: Include <pupa/env.h>.
50966 (pupa_set_root_dev): Use the environment variable `prefix' instead of
50967 using pupa_dl_get_prefix to get the prefix.
50968 * kern/misc.c: Include <pupa/env.h>.
50969 (pupa_isdigit): New function.
50970 (pupa_isgraph): Likewise.
50971 (pupa_ftoa): Likewise.
50972 (pupa_vsprintf): Added support for printing values of the type
50973 `double'. Make it possible to format variable output when using
50974 formatting like `%1.2%f'.
50975 (pupa_split_cmdline): New function.
50976 * kern/rescue.c: Include <pupa/env.h>.
50977 (next_word): Removed function.
50978 (pupa_rescue_cmd_prefix): Likewise.
50979 (pupa_rescue_cmd_set): New function.
50980 (pupa_rescue_cmd_unset): New function.
50981 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
50982 split the command line instead of splitting it here. Added
50983 support for setting variables using the syntax `foo=bar'. Don't
50984 initialize the prefix command anymore. Initialized the set and
50985 unset commands.
50986 * normal/cmdline.c: Include <pupa/env.h>.
50987 (pupa_tab_complete): Added prototypes for print_simple_completion,
50988 print_partition_completion, add_completion, iterate_commands,
50989 iterate_dev, iterate_part and iterate_dir. Moved code to print
50990 partition information from here to kern/disk.c.
fe6b695a 50991 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 50992 * normal/main.c: Include <pupa/env.h>.
50993 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
50994 instead of using pupa_dl_get_prefix to get the prefix.
50995 * term/i386/pc/vga.c: Include <pupa/arg.h>.
50996 (check_vga_mem): Cast pointers to `void *' to silence a gcc
50997 warning.
50998 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
50999 (pupa_vga_setcolor): Declare unused variables with `__attribute__
51000 ((unused))' to silence a gcc warning.
51001 (pupa_vga_setcolor): Likewise.
51002 (debug_command): Changed to match argument parsing
51003 interface changes.
51004 * util/pupa-emu.c: Include <pupa/env.h>.
51005 (options): Added 0's for unused fields to silence a gcc warning.
51006 (argp): Likewise.
51007 (main): Use the environment variable `prefix' instead of using
51008 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
51009 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
51010 and terminal.
51011
51012 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
51013 * util/misc.c: Include <malloc.h>.
51014 (pupa_malloc): Rewritten so errors are correctly reported.
51015 (pupa_realloc): Likewise.
51016 (pupa_memalign): Likewise.
51017 (pupa_mm_init_region): Declare unused variables with
51018 `__attribute__ ((unused))' to silence a gcc warning.
51019 * normal/i386/setjmp.S: Remove tab at the end of the file to
51020 silence a gcc warning.
51021 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
51022 variables with `__attribute__ ((unused))' to silence a gcc
51023 warning.
51024 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
51025 local variable i unsigned to silence a gcc warning.
51026
51027 * kern/term.c: Include <pupa/misc.h>.
51028 (pupa_more_lines): New variable.
51029 (pupa_more): Likewise.
51030 (pupa_putcode): When the pager is active pause at the end of every
51031 screen.
51032 (pupa_set_more): New function.
51033 * include/pupa/term.h (pupa_set_more): New prototype.
51034
51035
3b1139cb 510362004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
51037
51038 Now this project is GRUB 2 rather than PUPA. The location of
51039 the CVS repository was moved to GRUB's.
f19dbdb7 51040
3b1139cb 51041 * configure.ac: Use bug-grub as the reporting address.
51042 Use GRUB instead of PUPA.
51043 Change the version number to 1.90.
51044
8367695c 510452004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
51046
51047 * genkernsyms.sh: Updated copyright information.
51048 * genmk.rb: Likewise.
51049 * genmodsrc.sh: Likewise.
51050 * gensymlist.sh: Likewise.
51051 * boot/i386/pc/boot.S: Likewise.
51052 * boot/i386/pc/diskboot.S: Likewise.
51053 * disk/i386/pc/biosdisk.c: Likewise.
51054 * disk/i386/pc/partition.c: Likewise.
51055 * font/manager.c: Likewise.
51056 * fs/ext2.c: Likewise.
51057 * fs/fat.c: Likewise.
51058 * include/pupa/boot.h: Likewise.
51059 * include/pupa/device.h: Likewise.
51060 * include/pupa/disk.h: Likewise.
51061 * include/pupa/dl.h: Likewise.
51062 * include/pupa/elf.h: Likewise.
51063 * include/pupa/err.h: Likewise.
51064 * include/pupa/file.h: Likewise.
51065 * include/pupa/font.h: Likewise.
51066 * include/pupa/fs.h: Likewise.
51067 * include/pupa/kernel.h: Likewise.
51068 * include/pupa/loader.h: Likewise.
51069 * include/pupa/misc.h: Likewise.
51070 * include/pupa/mm.h: Likewise.
51071 * include/pupa/net.h: Likewise.
51072 * include/pupa/normal.h: Likewise.
51073 * include/pupa/rescue.h: Likewise.
51074 * include/pupa/setjmp.h: Likewise.
51075 * include/pupa/symbol.h: Likewise.
51076 * include/pupa/term.h: Likewise.
51077 * include/pupa/types.h: Likewise.
51078 * include/pupa/i386/setjmp.h: Likewise.
51079 * include/pupa/i386/types.h: Likewise.
51080 * include/pupa/i386/pc/biosdisk.h: Likewise.
51081 * include/pupa/i386/pc/boot.h: Likewise.
51082 * include/pupa/i386/pc/console.h: Likewise.
51083 * include/pupa/i386/pc/init.h: Likewise.
51084 * include/pupa/i386/pc/kernel.h: Likewise.
51085 * include/pupa/i386/pc/linux.h: Likewise.
51086 * include/pupa/i386/pc/loader.h: Likewise.
51087 * include/pupa/i386/pc/memory.h: Likewise.
51088 * include/pupa/i386/pc/multiboot.h: Likewise.
51089 * include/pupa/i386/pc/partition.h: Likewise.
51090 * include/pupa/i386/pc/time.h: Likewise.
51091 * include/pupa/i386/pc/vga.h: Likewise.
51092 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
51093 * include/pupa/util/getroot.h: Likewise.
51094 * include/pupa/util/misc.h: Likewise.
51095 * include/pupa/util/resolve.h: Likewise.
51096 * kern/device.c: Likewise.
51097 * kern/disk.c: Likewise.
51098 * kern/dl.c: Likewise.
51099 * kern/err.c: Likewise.
51100 * kern/file.c: Likewise.
51101 * kern/fs.c: Likewise.
51102 * kern/loader.c: Likewise.
51103 * kern/main.c: Likewise.
51104 * kern/misc.c: Likewise.
51105 * kern/mm.c: Likewise.
51106 * kern/rescue.c: Likewise.
51107 * kern/term.c: Likewise.
51108 * kern/i386/dl.c: Likewise.
51109 * kern/i386/pc/init.c: Likewise.
51110 * kern/i386/pc/lzo1x.S: Likewise.
51111 * kern/i386/pc/startup.S: Likewise.
51112 * loader/i386/pc/chainloader.c: Likewise.
51113 * loader/i386/pc/linux.c: Likewise.
51114 * loader/i386/pc/multiboot.c: Likewise.
51115 * normal/cmdline.c: Likewise.
51116 * normal/command.c: Likewise.
51117 * normal/main.c: Likewise.
51118 * normal/menu.c: Likewise.
51119 * normal/i386/setjmp.S: Likewise.
51120 * term/i386/pc/console.c: Likewise.
51121 * term/i386/pc/vga.c: Likewise.
51122 * util/console.c: Likewise.
51123 * util/genmoddep.c: Likewise.
51124 * util/misc.c: Likewise.
51125 * util/pupa-emu.c: Likewise.
51126 * util/resolve.c: Likewise.
51127 * util/unifont2pff.rb: Likewise.
51128 * util/i386/pc/biosdisk.c: Likewise.
51129 * util/i386/pc/getroot.c: Likewise.
51130 * util/i386/pc/pupa-mkimage.c: Likewise.
51131 * util/i386/pc/pupa-setup.c: Likewise.
51132
e6eced71 511332004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
51134
51135 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
51136 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
51137 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
51138 reading and reset it after reading.
51139 (pupa_ext2_close): Return PUPA_ERR_NONE.
51140
51141 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
51142 Correct value.
51143 (struct linux_kernel_header): Add kernel_version and
51144 initrd_addr_max.
51145 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
51146 pupa_file_read succeeds.
51147 (pupa_rescue_cmd_initrd): Implement.
51148
5aded270 511492003-12-03 Marco Gerards <metgerards@student.han.nl>
51150
51151 * fs/ext2.c (pupa_ext2_label): New function.
51152 (pupa_ext2_fs): Added label.
51153 * fs/fat.c (pupa_fat_label): New function.
51154 (pupa_fat_fs): Added label.
51155 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
51156
51157 * kern/misc.c (pupa_strndup): New function.
51158 * include/pupa/misc.h (pupa_strndup): New prototype.
51159
51160 * include/pupa/normal.h: Include <pupa/err.h>.
51161 (pupa_set_history): New prototype.
51162 (pupa_iterate_commands): New prototype.
51163 * normal/cmdline.c: Include <pupa/machine/partition.h>,
51164 <pupa/disk.h>, <pupa/file.h>.
51165 (hist_size): New variable.
51166 (hist_lines): Likewise.
51167 (hist_end): Likewise.
51168 (hist_used): Likewise.
51169 (pupa_set_history): New function.
51170 (pupa_history_get): Likewise.
51171 (pupa_history_add): Likewise.
51172 (pupa_history_replace): Likewise.
51173 (pupa_tab_complete): Likewise.
51174 (pupa_cmdline_run): Added tab completion and history buffer. Tab
51175 completion shows partitionnames while completing partitions, this
51176 feature was suggested by Jeff Bailey.
51177 * normal/command.c (pupa_iterate_commands): New function.
51178 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
51179 (pupa_normal_init): Initialize history buffer.
51180 (PUPA_MOD_INIT): Likewise.
51181 (pupa_normal_fini): Free the history buffer.
51182 (PUPA_MOD_FINI): Likewise.
51183
51184 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
51185 key.
51186
51187 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
51188 * configure.ac [i386]: Check for regparam bug.
51189 (NESTED_FUNC_ATTR) [! i386]: Defined.
51190
1f7315a3 511912003-11-17 Marco Gerards <metgerards@student.han.nl>
51192
51193 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
51194 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
51195 (pupa_emu_SOURCES): New variable.
51196 (pupa_emu_LDFLAGS): Likewise.
51197 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
51198 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
51199 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
51200 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51201 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
51202 (pupa_jmp_buf): New typedef.
51203 (pupa_setjmp) [PUPA_UTIL]: New macro.
51204 (pupa_longjmp) [PUPA_UTIL]: Likewise.
51205 * include/pupa/term.h (struct pupa_term): New member `refresh'.
51206 (pupa_refresh): New prototype.
51207 * include/pupa/util/getroot.h: New file.
51208 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
51209 it.
51210 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
51211 (pupa_rescue_cmd_cat): Likewise.
51212 (pupa_rescue_cmd_ls): Likewise.
51213 (pupa_rescue_cmd_testload): Likewise.
51214 (pupa_rescue_cmd_lsmod): Likewise.
51215 * normal/cmdline.c (pupa_cmdline_get): Likewise.
51216 * normal/menu.c (run_menu): Likewise.
51217 * kern/term.c (pupa_cls): Likewise.
51218 (pupa_refresh): New function.
51219 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
51220 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51221 * util/console.c: New file.
f19dbdb7 51222
1f7315a3 51223 * util/i386/pc/getroot.c: New file.
51224 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
51225 (pupa_putchar): New function.
51226 (pupa_refresh): Likewise.
51227 (xgetcwd): Function moved to ...
51228 (strip_extra_slashes): Likewise.
51229 (get_prefix): Likewise.
f19dbdb7 51230 * util/i386/pc/getroot.c: ... here.
1f7315a3 51231 (find_root_device): Function moved and renamed to...
51232 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
51233 Changed all callers.
51234 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
51235 and renamed to...
51236 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
51237 Changed all callers.
51238 * util/misc.c (pupa_memalign): New function.
51239 (pupa_mm_init_region): Likewise.
51240 (pupa_register_exported_symbols): Likewise.
51241 (pupa_putchar): Function removed.
51242 * util/pupa-emu.c: New file.
51243
9a5c1ade 512442003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
51245
51246 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
51247 (_multiboot_mod_SOURCES): New variable.
51248 (_multiboot_mod_CFLAGS): Likewise.
51249 * loader/i386/pc/multiboot.c: New file.
51250 * include/pupa/i386/pc/multiboot.h: Likewise.
51251 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
51252 (pupa_multiboot_real_boot): New function.
51253 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
51254 (pupa_multiboot_real_boot): New prototype.
51255 (pupa_rescue_cmd_multiboot): Likewise
51256 (pupa_rescue_cmd_module): Likewise.
51257
51258 * kern/loader.c (pupa_loader_set): Continue when
51259 pupa_loader_unload_func() fails.
51260 (pupa_loader_unset): New function.
51261 * include/pupa/loader.h (pupa_loader_unset): New prototype.
51262
51263 * kern/misc.c (pupa_stpcpy): New function.
51264 * include/pupa/misc.h (pupa_stpcpy): New prototype.
51265
8e72a9c0 512662003-11-12 Marco Gerards <metgerards@student.han.nl>
51267
51268 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
51269 for available extensions.
51270
51271 * include/pupa/i386/pc/time.h: New file.
51272 * kern/disk.c: Include <pupa/machine/time.h>.
51273 (PUPA_CACHE_TIMEOUT): New macro.
51274 (pupa_last_time): New variable.
51275 (pupa_disk_open): Flush the cache when there was a timeout.
51276 (pupa_disk_close): Reset the timer.
51277 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
51278 pupa_currticks.
51279 * util/misc.c: Include <sys/times.h>
51280 (pupa_get_rtc): New function.
51281
c4adbd32 512822003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
51283
51284 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
51285 as blocks.
51286 (pupa_ext2_get_file_block): Use blocks member.
51287
51288 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
51289 first block. Return -1 instead of pupa_errno on error.
51290
bfd30f06 512912003-10-27 Marco Gerards <metgerards@student.han.nl>
51292
51293 * README: In the pupa-mkimage example use _chain instead of chain
51294 and ext2 instead of fat.
51295 * TODO: Replace ext2fs with jfs as an example. Add an item for
51296 adding journal playback for ext2fs.
51297 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
51298 (pkgdata_MODULES): Added ext2.mod.
51299 (ext2_mod_SOURCES): New variable.
51300 (ext2_mod_CFLAGS): Likewise.
51301 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
51302 * include/pupa/misc.h (pupa_strncpy): New prototype.
51303 (pupa_strcat): Likewise.
51304 (pupa_strncmp): Likewise.
51305 * kern/misc.c (pupa_strcat): Enable function.
51306 (pupa_strncpy): New function.
51307 (pupa_strncmp): Likewise.
51308 * fs/ext2.c: New file.
f19dbdb7 51309
bfd30f06 51310 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
51311 when the read failed before retrying.
51312 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
51313 (_FILE_OFFSET_BITS): Likewise.
51314 * configure.ac: Added AC_SYS_LARGEFILE.
51315
98d15063 513162003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51317
51318 * genmk.rb (PModule#rule): Make sure to get only symbol names
51319 from the output of nm.
59cad637 51320 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 51321
18d9c7cd 513222003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51323
51324 I forgot to check in these changes for a long time. This adds
51325 incomplete support for VGA console, and this is still very
51326 buggy. Also, a lot of consideration is required for I18N,
51327 UNICODE, and VGA font issues. Therefore, assume that this is
51328 such that "better than nothing".
f19dbdb7 51329
18d9c7cd 51330 * font/manager.c: New file.
51331 * include/pupa/font.h: Likewise.
51332 * include/pupa/i386/pc/vga.h: Likewise.
51333 * term/i386/pc/vga.c: Likewise.
51334 * util/unifont2pff.rb: Likewise.
51335
51336 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
51337 (pkgdata_MODULES): Added vga.mod and font.mod.
51338 (vga_mod_SOURCES): New variables.
51339 (vga_mod_CFLAGS): Likewise.
51340 (font_mod_SOURCES): Likewise.
51341 (font_mod_CFLAGS): Likewise.
51342
51343 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
51344
51345 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 51346 (struct pupa_term): Added init and fini.
18d9c7cd 51347 Changed the argument of putchar to pupa_uint32_t.
51348
51349 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
51350 (pupa_console_real_putchar): New prototype.
51351 (pupa_console_putchar): Removed.
51352 (pupa_console_checkkey): Exported.
51353 (pupa_console_getkey): Likewise.
51354
51355 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
51356 characters.
51357
51358 * kern/term.c (pupa_term_set_current): Rewritten.
51359 (pupa_putchar): Likewise.
51360 (pupa_putcode): New function.
51361
51362 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
51363 (pupa_console_real_putchar): ... this.
51364 (pupa_vga_set_mode): New function.
51365 (pupa_vga_get_font): Likewise.
51366
51367 * normal/command.c: Include pupa/term.h.
51368 (terminal_command): New function.
51369 (pupa_command_init): Register the command "terminal".
51370
51371 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
51372 (DISP_UP): Likewise.
51373 (DISP_RIGHT): Likewise.
51374 (DISP_DOWN): Likewise.
51375 (DISP_HLINE): Likewise.
51376 (DISP_VLINE): Likewise.
51377 (DISP_UL): Likewise.
51378 (DISP_UR): Likewise.
51379 (DISP_LL): Likewise.
51380 (DISP_LR): Likewise.
51381
51382 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 51383
977329f5 513842003-02-08 NIIBE Yutaka <gniibe@m17n.org>
51385
51386 * util/resolve.c (pupa_util_resolve_dependencies): BUG
51387 FIX. Reverse the path_list.
51388
51389 * include/pupa/normal.h: Export pupa_register_command and
51390 pupa_unregister_command.
51391
51392 * hello/hello.c (pupa_cmd_hello): New module.
51393 * conf/i386-pc.rmk: Added hello.mod.
51394
1f5ab428 513952003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
51396
51397 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 51398
1f5ab428 51399 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
51400 (compress_kernel): New variable.
51401 (generate_image): Heavily modified to support compressing a
51402 large part of the core image.
51403
51404 * util/misc.c (pupa_util_read_image): Fix a file descriptor
51405 leak.
51406 (pupa_util_load_image): New function.
51407
51408 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
51409 (pupa_compressed_size): New variable.
51410 (codestart): Enable Gate A20 here.
51411 Decompress the compressed part of the core image.
51412 Rearrange the code to put functions and variables which are
51413 required for initialization in the non-compressed part.
51414 Include lzo1x.S.
51415
51416 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
51417 here.
51418
51419 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
51420
f19dbdb7 51421 * include/pupa/i386/pc/kernel.h
1f5ab428 51422 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
51423 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
51424 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51425 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51426 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
51427
51428 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
51429
51430 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
51431 (Utility#rule): Likewise.
51432
51433 * configure.ac: Check if LZO is available.
51434
ce5bf700 514352003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
51436
51437 * include/pupa/normal.h: New file.
51438 * include/pupa/setjmp.h: Likewise.
51439 * include/pupa/i386/setjmp.h: Likewise.
51440 * normal/cmdline.c: Likewise.
51441 * normal/command.c: Likewise.
51442 * normal/main.c: Likewise.
51443 * normal/menu.c: Likewise.
51444 * normal/i386/setjmp.S: Likewise.
f19dbdb7 51445
ce5bf700 51446 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
51447 (pupa_rescue_cmd_initrd): Likewise.
51448
51449 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
51450 Likewise.
51451
51452 * kern/i386/pc/startup.S (translation_table): New variable.
51453 (translate_keycode): New function.
51454 (pupa_console_getkey): Call translate_keycode.
51455
51456 * kern/rescue.c (attempt_normal_mode): New function.
51457 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
51458 it failed, print a message.
51459
51460 * kern/mm.c (pupa_real_malloc): Print more information when a
51461 free magic is broken.
51462 (pupa_free): If the first free header is not free actually, set
51463 it to P.
51464
51465 * kern/main.c (pupa_load_normal_mode): Just load the module
51466 "normal".
51467 (pupa_main): Don't print the message
51468 "Entering into rescue mode..." here.
51469
51470 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
51471 Declared.
51472 (pupa_rescue_cmd_initrd): Likewise.
51473 (pupa_rescue_cmd_initrd): Likewise.
51474
51475 * include/pupa/symbol.h (FUNCTION): Specify the type.
51476 (VARIABLE): Likewise.
51477
51478 * include/pupa/err.h (pupa_err_t): Added
51479 PUPA_ERR_UNKNOWN_COMMAND.
51480
51481 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
51482 (pupa_dl_get_prefix): Likewise.
51483
51484 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
51485 Added _chain.mod and _linux.mod instead of chain.mod and
51486 linux.mod.
51487 (chain_mod_SOURCES): Renamed to ...
51488 (_chain_mod_SOURCES): ... this.
51489 (chain_mod_CFLAGS): Renamed to ...
51490 (_chain_mod_CFLAGS): ... this.
51491 (linux_mod_SOURCES): Renamed to ...
51492 (_linux_mod_SOURCES): ... this.
51493 (linux_mod_CFLAGS): Renamed to ...
51494 (_linux_mod_CFLAGS): ... this.
51495 (normal_mod_SOURCES): New variable.
51496 (normal_mod_CFLAGS): Likewise.
51497 (normal_mod_ASFLAGS): Likewise.
51498
514992003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
51500
51501 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
51502 possible.
51503
fe6b695a 51504 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 51505 recursively.
51506 (pupa_dl_unref): Unrefer depending modules recursively.
51507 Don't call pupa_dl_unload implicitly, because PUPA can crash if
51508 a module is unloaded before one depending on that module is
51509 unloaded.
51510 (pupa_dl_unload): Unload depending modules explicitly,
51511 if possible.
51512
c04da074 515132003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
51514
51515 * include/pupa/i386/pc/linux.h: New file.
51516 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 51517
c04da074 51518 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
51519 Removed.
51520 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
51521 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
51522 of PUPA_CHAINLOADER_BOOT_SECTOR.
51523
51524 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
51525 (pupa_linux_prot_size): New variable.
51526 (pupa_linux_tmp_addr): Likewise.
51527 (pupa_linux_real_addr): Likewise.
51528 (pupa_linux_boot_zimage): New function.
51529 (pupa_linux_boot_bzimage): Likewise.
51530
51531 * kern/i386/pc/init.c (struct mem_region): New structure.
51532 (MAX_REGIONS): New macro.
51533 (mem_regions): New variable.
51534 (num_regions): Likewise.
51535 (pupa_os_area_addr): Likewise.
51536 (pupa_os_area_size): Likewise.
51537 (pupa_lower_mem): Likewise.
51538 (pupa_upper_mem): Likewise.
51539 (add_mem_region): New function.
51540 (compact_mem_regions): Likewise.
51541 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
51542 the size of the conventional memory and that of so-called upper
51543 memory (before the first memory hole).
51544 Instead of adding each found region to free memory, use
51545 add_mem_region and add them after removing overlaps.
51546 Also, add only 1/4 of the upper memory to free memory. The rest
51547 is used for loading OS images. Maybe this is ad hoc, but this
51548 makes it much easier to relocate OS images when booting.
51549
51550 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
51551 (pupa_enter_rescue_mode): Don't register initrd and module.
51552
51553 * kern/mm.c: Include pupa/dl.h.
51554
51555 * kern/main.c: Include pupa/file.h and pupa/device.h.
51556
51557 * kern/loader.c (pupa_loader_load_module_func): Removed.
51558 (pupa_loader_load_module): Likewise.
51559
51560 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
51561 ``.o''.
51562
51563 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
51564 (pupa_linux_tmp_addr): Likewise.
51565 (pupa_linux_real_addr): Likewise.
51566 (pupa_linux_boot_zimage): Likewise.
51567 (pupa_linux_boot_bzimage): Likewise.
51568
51569 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
51570 (pupa_upper_mem): Likewise.
51571 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
51572 module is too dangerous.
51573
51574 * include/pupa/loader.h (pupa_os_area_addr): Declared.
51575 (pupa_os_area_size): Likewise.
51576 (pupa_loader_set): Remove the first argument. Loader doesn't
51577 manage modules or initrd any longer.
51578 (pupa_loader_load_module): Removed.
51579
51580 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
51581 (linux_mod_SOURCES): New variable.
51582 (linux_mod_CFLAGS): Likewise.
51583
a13f9237 515842003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
51585
51586 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
51587 the length of a blocklist correctly.
51588
51589 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
51590 Use ioctl only if the OS file is a block device.
51591 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
51592 not very useful for normal files.
51593
51594 * kern/main.c (pupa_set_root_dev): New function.
51595 (pupa_load_normal_mode): Likewise.
51596 (pupa_main): Call those above.
51597
51598 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
51599 pupa_uint16_t.
51600
51601 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
51602
a5ffe966 516032003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
51604
51605 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
51606 (setup): Configure the installed partition information and the
51607 dl prefix.
51608
51609 * loader/i386/pc/chainloader.c (my_mod): New variable.
51610 (pupa_chainloader_unload): New function.
51611 (pupa_rescue_cmd_chainloader): Refer itself.
51612 (PUPA_MOD_INIT): Save its own module in MY_MOD.
51613
51614 * kern/i386/pc/startup.S (install_partition): Removed.
51615 (version_string): Likewise.
51616 (config_file): Likewise.
51617 (pupa_install_dos_part): New variable.
51618 (pupa_install_bsd_part): Likewise.
51619 (pupa_prefix): Likewise.
51620 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
51621
51622 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
51623 and pupa/misc.h.
51624 (make_install_device): New function.
51625 (pupa_machine_init): Set the dl prefix.
51626
51627 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
51628 (buf): Renamed to ...
51629 (linebuf): ... this.
51630 (pupa_rescue_cmd_prefix): New function.
51631 (pupa_rescue_cmd_insmod): Likewise.
51632 (pupa_rescue_cmd_rmmod): Likewise.
51633 (pupa_rescue_cmd_lsmod): Likewise.
51634 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
51635 rmmod and lsmod.
51636
51637 * kern/mm.c (pupa_memalign): If failed even after invalidating
51638 disk caches, unload unneeded modules and retry.
51639
51640 * kern/misc.c (pupa_memmove): New function.
51641 (pupa_memcpy): Removed.
51642 (pupa_strcpy): New function.
51643 (pupa_itoa): Made static.
51644
51645 * kern/dl.c (pupa_dl_iterate): New function.
51646 (pupa_dl_ref): Likewise.
51647 (pupa_dl_unref): Likewise.
51648 (pupa_dl_unload): Return if succeeded or not.
51649 (pupa_dl_unload_unneeded): New function.
51650 (pupa_dl_unload_all): Likewise.
51651 (pupa_dl_init): Renamed to ...
51652 (pupa_dl_set_prefix): ... this.
51653 (pupa_dl_get_prefix): New function.
51654
51655 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
51656 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
51657 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51658 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51659 (pupa_install_dos_part): Declared.
51660 (pupa_install_bsd_part): Likewise.
51661 (pupa_prefix): Likewise.
51662 (pupa_boot_drive): Likewise.
51663
51664 * include/pupa/types.h: Fix a typo.
51665
51666 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
51667 pupa_memmove.
51668 (pupa_memmove): Declared.
51669 (pupa_strcpy): Likewise.
51670
51671 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
51672 pupa_mod_init takes one argument, its own module.
51673 (pupa_dl_unload_unneeded): Declared.
51674 (pupa_dl_unload_all): Likewise.
51675 (pupa_dl_ref): Likewise.
51676 (pupa_dl_unref): Likewise.
51677 (pupa_dl_iterate): Likewise.
51678 (pupa_dl_init): Renamed to ...
51679 (pupa_dl_set_prefix): ... this.
51680 (pupa_dl_get_prefix): Declared.
51681
51682 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 51683 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 51684 unloaded.
51685 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
51686 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
51687
51688 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
51689 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
51690
012d7999 516912003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51692
51693 * util/i386/pc/pupa-setup.c (setup): Define the internal
51694 function find_first_partition_start at the top level, because GCC
51695 3.0.x cannot compile internal functions in deeper scopes
51696 correctly.
51697 (find_root_device): Use lstat instead of stat.
51698 Don't follow symbolic links.
51699 Fix the path-constructing code.
51700
51701 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
51702 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
51703 by a BLKGETSIZE ioctl first, because block devices don't fill
51704 the member st_mode of the structure stat on Linux.
51705 [__linux__] (linux_find_partition): Use a temporary buffer
51706 REAL_DEV for the working space. Copy it to DEV before returning.
51707 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
51708 buffer cache consistent.
51709 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
51710 strncmp. The previous value was merely wrong.
51711 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
51712
51713 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
51714 FAT size is 12. The previous value was merely wrong.
51715
51716 * kern/main.c (pupa_main): Don't split the starting message from
51717 newlines.
51718
51719 * kern/term.c (pupa_putchar): Put CR after LF instead of before
51720 LF, because BIOS goes crazy about character attributes in this
51721 case.
51722
1cc73a62 517232003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51724
51725 * include/i386/pc/util/biosdisk.h: New file.
51726 * util/i386/pc/biosdisk.c: Likewise.
51727 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 51728
1cc73a62 51729 * Makefile.in (INCLUDE_DISTFILES): Added
51730 include/pupa/i386/pc/util/biosdisk.h.
51731 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
51732 directory util/i386/pc.
51733 (install-local): Added a rule for sbin_UTILITIES.
51734 (uninstall): Likewise.
51735
51736 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
51737
51738 * util/misc.c (xrealloc): New function.
51739 (pupa_malloc): Likewise.
51740 (pupa_free): Likewise.
51741 (pupa_realloc): Likewise.
51742 (pupa_stop): Likewise.
51743 (pupa_putchar): Likewise.
51744
51745 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
51746
51747 * include/pupa/util/misc.h (xrealloc): Declared.
51748
51749 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
51750 macro.
51751 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
51752 (PUPA_BOOT_MACHINE_BPB_END): ... this.
51753
51754 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
51755 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51756
51757 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
51758 way should be implemented.
51759 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51760
51761 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
51762 the size of NAME for safety.
51763 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
51764 0x88.
51765
51766 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
51767 (pupa_setup_SOURCES): Likewise.
51768
51769 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
51770
08b70fe8 517712002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51772
51773 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
51774 bunch of pushl's from pusha, because this destroys the return
51775 value.
51776
62ddcc8f 517772002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51778
51779 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
51780 This means that any missing prototypes could be fatal. Also, you
51781 must take care when writing assembly code. See the comments at
51782 the beginning of startup.S, for more details.
f19dbdb7 51783
62ddcc8f 51784 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
51785 compilation mechanism.
51786 (pupa_chainloader_real_boot): Likewise.
51787 (pupa_biosdisk_rw_int13_extensions): Likewise.
51788 (pupa_biosdisk_rw_standard): Likewise.
51789 (pupa_biosdisk_check_int13_extensions): Likewise.
51790 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
51791 (pupa_biosdisk_get_diskinfo_standard): Likewise.
51792 (pupa_get_memsize): Likewise.
51793 (pupa_get_mmap_entry): Likewise.
51794 (pupa_console_putchar): Likewise.
51795 (pupa_console_setcursor): Likewise.
51796 (pupa_getrtsecs): Use pushl instead of push.
51797
51798 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
51799 memory instead of the stack for a mmap entry, because some
51800 BIOSes may ignore the maximum size and overflow.
51801
51802 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
51803
51804 * genmk.rb (PModule#rule): Compile automatically generated
51805 sources with module-specific CFLAGS as well as other sources.
51806
9962ed99 518072002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51808
51809 * configure.ac: Check ld.
51810 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
51811 respectively, before checking endianness and sizes.
51812
51813 * Makefile.in (LD): New variable.
f19dbdb7 51814
abdfc3c5 518152002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51816
51817 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
51818
6a161fa9 518192002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51820
51821 * Changelog: New file.
51822