]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Support --base-clock for serial command to handle weird cards with
[grub2.git] / ChangeLog
CommitLineData
89295a06
VS
12013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Support --base-clock for serial command to handle weird cards with
4 non-standard base clock.
5
eb03ede0
VS
62013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
9 strncpy.
10 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
11 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
12 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
13 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
14 + strcpy rather than strncpy.
15
8fbe5c7d
VS
162013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
19 (check_pool_label): Likewise. Fixes overflow.
20 (nvlist_find_value): Fix comparison.
21
e54b8f53
VS
222013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
23
24 * include/grub/misc.h (grub_strcat): Removed. All users changed to
25 more appropriate functions.
26
fa9b3dca
VS
272013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
28
29 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
30 realloc.
31
9a021c55
VS
322013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
33
34 * util/grub-mkrescue.in: Do not use UUID search on EFI.
35
80e8b13a
VS
362013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
37
38 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
39 on core size.
40
b61599ac
VS
412013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
42
43 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
44
a602dc54
VS
452013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
46
47 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
48 (initialize_tables): reset tl and td to NULL after freeing.
49
93c12075
VS
502013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
51
52 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
53
1ca4b75e
VS
542013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
55
56 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
57 of supported tags.
58
329550c4
VS
592013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
60
61 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
62
00bfa988
VS
632013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
64
65 * grub-core/loader/multiboot.c: Add support for multiboot kernels
66 quirks.
67
81afc5cc
VS
682013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
69
70 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
71 a page in protected space.
72
cb3c4a47
VS
732013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
74
75 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
76 allocate space for zero-sized modules.
77
954f7bf5
VS
782013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
79
80 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
81
526d3d25
FL
822013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
83
84 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
85
74124c34
VS
862013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
87
88 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
89 safeguards. Fixes a crash with i386/pc/console.c.
90
5177391e
VS
912013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
92
93 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
94 and grub_hostfs_init.
95
64db14b0
VS
962013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
99 windows method on other platforms without good stat as well.
100
effe2036
VS
1012013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
102
103 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
104
82591fa6 1052013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 106
82591fa6
VS
107 Make / in btrfs refer to real root, not the default volume.
108 Modify mkrelpath to work even if device is mounted with subvolid option.
109
1102013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
111
112 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
113 extra_dist.
114 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
115 extra_dist.
116
30fd7198
VS
1172013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
118
119 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
120 fails.
121
8d179dae
BC
1222013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
123
124 * docs/autoiso.cfg: New file.
125
3bc9c8cf
VS
1262013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
127
128 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
129 COND_GRUB_PE2ELF conditions.
130
8b46b0ea
VS
1312013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
132
133 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
134 "vnd", "rd" and "fd" disks.
135
442b86de
VS
1362013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
137
138 Move grub_disk_write out of kernel into disk.mod.
139
04dea7e6
VS
1402013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
143 handling.
144
1452013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
146
147 * grub-core/kern/misc.c (grub_abort): Make static
148
04dea7e6 1492013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
150
151 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
152 transform invalid unicode codepoints.
153
04dea7e6 1542013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
155
156 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
157 \0 checking.
158
03dcac7f
VS
1592013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
160
161 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
162
c81acb7f
VS
1632013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
164
165 Consolidate cpuid code.
166
c1bee646
VS
1672013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
168
169 Move cpuid code to cpuid.h and TSC code to tsc.c.
170
f37bf9c7
GS
1712013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
172
173 * util/grub.d/00_header.in: Don't use LANG if it's not set.
174
4021132b
GS
1752013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
176
177 * util/grub-mkconfig.in: Replace $0 with $self.
178 * util/grub-reboot.in: Likewise.
179 * util/grub-set-default.in: Likewise.
180
3ace8d75
BC
1812013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
182
183 * docs/osdetect.cfg: New file.
184
1e6ad6a6
BC
1852013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
186
187 * tests/util/grub-shell.in: Add new --debug option.
188
188929eb
BC
1892013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
190
191 * tests/test_unset.in: New test.
192
7994a09a
BC
1932013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
194
195 * tests/test_sha512sum.in: New test.
196
2a8a7585
VS
1972013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
198
199 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
200 * include/grub/misc.h: Remove strncat.
201 * grub-core/lib/posix_wrap/string.h: Likewise.
202
cf8d6bbd
VS
2032013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
204
205 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
206 Try to handle more than 0xFFFF packets.
207 Reported by: Bernhard Übelacker <bernhardu>.
208 He also spotted few overflows in first version of this patch.
209
6d1fc99a
VS
2102013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
211
212 * tests/date_unit_test.c: New test.
213
10bafa1c
VS
2142013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
215
216 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
217 of first three years after start of validity of unixtime.
218
b1c6d037
VS
2192013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
220
221 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
222 division as the one making more sense.
223 (update_screen): Likewise.
224 (complete): Likewise.
225
5f4028d4
VS
2262013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
227
228 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
229
a2856736
VS
2302013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
231
232 Make char and string width grub_size_t rather than grub_ssize_t.
233
0a7e52b2
VS
2342013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
235
236 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
237 unsigned.
238 (grub_history_replace): Likewise.
239
42829573
VS
2402013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
243 appropriate.
244
3523b8d8
VS
2452013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
246
247 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
248 appropriate.
249
d43c6489
VS
2502013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
251
252 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
253 Use unsigned divisions rather than signed variants.
254
f690f8b0
VS
2552013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * grub-core/video/readers/png.c (grub_png_convert_image): Use
258 unsigned arithmetics.
259 Add missing break.
260
74ff2c05
VS
2612013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
262
263 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
264
fb56391e
VS
2652013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
266
267 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
268 rather than signed one.
269 (recovery): Likewise.
270
40f29060
VS
2712013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
272
273 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
274
c64577a5
VS
2752013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
278 than signed.
279
c16535a8
JM
2802013-10-25 Jon McCune <jonmccune@google.com>
281
282 * docs/grub.texi: Cleanup security documentation around signatures.
283
6673d8e7
VS
2842013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
285
286 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
287
a105d375
VS
2882013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
289
290 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
291 than int.
292
af81ed88
VS
2932013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
294
295 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
296 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
297 functions when compiling for kernel.
298
ea899a57
VS
2992013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
300
301 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
302 unsigned long long when using %llu.
303
c6dc6fa1
VS
3042013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
305
306 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
307 terminal after updating progress.
308
ad2dc003
VS
3092013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
310
311 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
312 argument. We don't disable Gate A20 in this code.
313
b46684ae
VS
3142013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
315
316 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
317 Conceptually based on change in branch "vbe-on-coreboot".
318
f70d5c07
RM
3192013-10-24 Robert Millan <rmh@gnu.org>
320
321 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
322 numeric constants with their symbolic equivalent.
323 Taken from branch "vbe-on-coreboot".
324
bca274b4
VS
3252013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
326
327 * docs/grub.texi: Fix ordering and use pxref rather than xref.
328
238f0489
VS
3292013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
330
331 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
332 divmod64 for offset division.
333
863c590b
PFS
3342013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
335
336 Rename .bzrignore to .gitignore. Add "*.o" rule.
337
338 * .bzrignore: Renamed to...
339 * .gitignore: ...this.
340
84a0e969
PFS
3412013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
342
343 Add new progress module that displays the load progress of files.
344
345 * grub-core/lib/progress.c: New file.
346 * grub-core/Makefile.core.def (progress): New module.
347 * grub-core/kern/file.c (grub_file_open): File name added.
348 * (grub_file_read): Progress hook added.
349 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
350 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
351 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
352 * include/grub/file.h (struct grub_file): Add progress module members.
353 * include/grub/term.h (struct grub_term_output): Likewise.
354 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
355 Terminal velocity added.
356 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
357 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
358 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
359 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
360 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
361 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
362 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
363 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
364 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
365 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
366 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
367 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
368
0d711431
VS
3692013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
370
371 Verify signatures of signatures unless --skip-sig is specified.
372
f8401f76
VS
3732013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
374
375 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
376 \0 checking.
377
378 Saves 70 bytes on compressed image.
379
ac1feb61
VS
3802013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
383 check.
384
385 Saves 10 bytes on compressed image.
386
00f72e89
VS
3872013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
388
389 * grub-core/kern/misc.c (grub_isprint): Move to ...
390 * include/grub/misc.h (grub_isprint): ... here. Make inline.
391
392 Saves 20 bytes on compressed image due to remving exporting.
393
067e6ae7
VS
3942013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
395
396 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
397
398 Saves 5 bytes on compressed image.
399
64a6c791
VS
4002013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
401
402 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
403 function get_utf8.
404
405 Saves 379 bytes on compressed image.
406
979d9f52
VS
4072013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
408
409 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
410
1437da54
VS
4112013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
412
413 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
414
415 Saves 40 bytes on compressed image.
416
d9ee2269
VS
4172013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
418
419 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
420 mask rather than 64-bit type.
421
422 Saves 20 bytes on compressed image.
423
63efa602
VS
4242013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
427 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
428
47601ffe
VS
429 Saves 273 bytes on compressed image.
430
2cc679ad
VS
4312013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
432
433 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
434 variable length arrays.
435
436 Saves 50 bytes on compressed image.
437
2e4659b8
VS
4382013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
439
440 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
441
2a40badf
VS
4422013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
443
444 * grub-core/fs/ufs.c: Remove variable length arrays.
445
1ba6b9b9
VS
4462013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
447
448 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
449
f3e39341
VS
4502013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
451
452 * grub-core/fs/zfs.c: Remove variable length arrays.
453 Reduces zfs.mod by 160 bytes (208 compressed).
454
71523935
VS
4552013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
456
457 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
458
28153eb8
VS
4592013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
460
461 * grub-core/net/arp.c: Remove variable length arrays.
462 * grub-core/net/bootp.c: Likewise.
463 * grub-core/net/dns.c: Likewise.
464 * grub-core/net/icmp6.c: Likewise.
465 * grub-core/net/net.c: Likewise.
466
88ce4cd7
VS
4672013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
468
469 * grub-core/fs/ntfs.c: Remove variable length arrays.
470 Increases ntfs.mod by 64 bytes (but decreases by 3 when
471 compressed).
472
66123940
VS
4732013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
474
475 * grub-core/fs/hfs.c: Remove variable length arrays.
476 Reduces hfs.mod by 8 bytes (52 compressed).
477
0927e5bd
VS
4782013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
479
480 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 481 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
482 compressed).
483
9c12ac97
VS
4842013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
485
486 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 487 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
488 compressed).
489
97ec2d71
VS
4902013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
491
492 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 493 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
494 compressed).
495
156e4ea0
VS
4962013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
497
498 * grub-core/fs/xfs.c: Remove variable length arrays.
499 Reduces xfs.mod by 40 bytes (43 compressed).
500
3b502c29
VS
5012013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
502
503 * grub-core/fs/fshelp.c: Remove variable length arrays.
504 Reduces fshelp.mod by 116 bytes (23 compressed).
505
c7037f1d
VS
5062013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
507
508 * grub-core/normal/completion.c: Remove variable length arrays.
509 * grub-core/normal/menu_entry.c: Likewise.
510
511 Reduces normal.mod by 496 bytes.
512
a07e6ad0
VS
5132013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
514
515 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
516 by 356 bytes (158 compressed).
517
2359bf88
VS
5182013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
519
520 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
521 by 364 bytes (169 compressed).
522
d28e1163
VS
5232013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
524
525 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
526 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
527 * include/grub/types.h (grub_unaligned_uint64_t): New type.
528
e89c2d48
VS
5292013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
530
531 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
532 bitmasks to small structures of size chosen to fit in registers.
533
7abdac8e
VS
5342013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
535
536 * conf/Makefile.common: Use -freg-struct-return on i386. This
537 decreases code size and improves performance.
538
518864c0
VS
5392013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
540
541 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
542
bbd2b539
VS
5432013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
544
545 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
546 "(null)" string.
547 Simplify expressions to save around 256 bytes in kernel.img.
548 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
549
99519c15
VS
5502013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
551
552 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
553 Use GRUB_UTIL_FD_O_* rather than O_*.
554
20285765
VS
5552013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
556
557 Add haiku-specific functions.
558
887c0bb6
VS
5592013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
562
cd78a56f
VS
5632013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
564
565 Move stat () and device mode checking into OS-dependent files as
566 long as performance doesn't suffer.
567
a4012f07
VS
5682013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
569
570 Split make_system_path_relative_to_its_root into separate file
571 relpath.c from getroot.c as it's common between unix and haiku
572 but otherwise haiku doesn't use any functions from unix getroot.c.
573
31de274d
VS
5742013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
575
576 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
577 New function.
578 (grub_util_is_special_file): Likewise.
579
40346de6
VS
5802013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
581
582 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
583 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
584
d3923ab9
VS
5852013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
586
587 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
588 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
589
663f6eb1
VS
5902013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
591
592 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
593 (load_image): Likewise.
594
44d1c20a
VS
5952013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
596
597 * util/grub-render-label.c: Move backend part to ...
598 * util/render-label.c: ... here.
599
d0a116ee
VS
6002013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
601
602 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
603 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
604
b47fcae6
VS
6052013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
606
607 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
608
0f7c00c1
VS
6092013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
610
611 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
612 CD-ROM in case when it's declared as having subpartitions.
613
29013cba
VS
6142013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
615
616 Don't add -lm on haiku.
617
618 * configure.ac: Define BUILD_LIBM to -lm on most platforms
619 and empty on haiku.
620 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
621 -lm.
622
e8559d24
VS
6232013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
624
625 * configure.ac: Use -melf_*_haiku as target on haiku.
626
8104063c
VS
6272013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
628
629 * Makefile.util.def: Add util/setup.c to extra_dist.
630
fc3182c7
VS
6312013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
634 unknown types through.
635
f90a3cc0
VS
6362013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
637
638 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
639 (grub_util_check_char_device): Likewise.
640 * include/grub/emu/getroot.h: Likewise.
641
1e3e7419
VS
6422013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
643
644 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
645 memset rather than inline static function.
646
92c88fc8
VS
6472013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
648
649 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
650 not doing embedded decompressor.
651
3cd910a2
VS
6522013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
653
654 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
655 shadowing.
656 * grub-core/kern/disk.c: Likewise.
657 * grub-core/kern/misc.c: Likewise.
658 * include/grub/parser.h: Likewise.
659 * include/grub/script_sh.h: Likewise.
660 * include/grub/zfs/zfs.h: Likewise.
661
7b3aca00
VS
6622013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
663
664 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
665
97dfe7e4
VS
6662013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
669 defined before trying to use it.
670
bf919aa9
VS
6712013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
674 warning.
675
f4ccf29d
VS
6762013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
677
678 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
679 Use __unused__ rather than __used__ on gcc < 3.2.
680
0d3a6f85
VS
6812013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
682
683 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
684 gcc < 4.0.
685 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
686
757e3eb7
VS
6872013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
688
689 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
690
fb320faf
VS
6912013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
692
693 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
694 * include/grub/emu/misc.h: Likewise.
695
ea73acd2
VS
6962013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
697
698 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
699 cur_color.
700
71237a6f
VT
7012013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
702
703 * grub-core/tests/checksums.h: Regenerated due to progress bar
704 get_minimal_size changes.
705
3d46c22f
BC
7062013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
707
708 Added `tr' command support.
709
710 * grub-core/commands/tr.c: New file.
711 * grub-core/Makefile.core.def: Build rules for new module.
712
713 * tests/grub_cmd_tr.in: New test.
714 * Makefile.util.def: Build rules for new test.
715
47e0a61f
VT
7162013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
717
718 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
719
946fd073
VT
7202013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
721
722 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
723 * docs/gurb.texi: Likewise.
724
9c13c576
VT
7252013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
726
727 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
728 Pixmap highlighted section with east and west slices was displayed
729 incorrectly due to negative width of the central slice.
730
ad543f12
VT
7312013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
732
733 * docs/grub.texi: Graphical options information update.
734 Removed outdated. Updated current. Inserted missed.
735
6176a0cd
VS
7362013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
737
738 * docs/grub.texi: Mention few new platform-specific commands.
739
9688cae2
VS
7402013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
741
742 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
743 currently used so this doesn't really have any effect.
744 Reported by: Douglas Ray <dougray>
745
f7b69a3f
VS
7462013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
747
748 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
749 compilation but prevents gcc from displaying messages in non-Latin
750 alphabets.
751 * conf/Makefile.common: Likewise.
752
ceca6ddf
HY
7532013-10-16 Hiroyuki YAMAMORI
754
755 Handle Japanese special keys.
756 Reported by: Hiroyuki YAMAMORI.
757 Codes supplied by: Hiroyuki YAMAMORI.
758
ac48d334
VT
7592013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
760
761 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
762
b2b71bff
VT
7632013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
764
765 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
766 * docs/grub.texi: Likewise.
767
669fc449
VS
7682013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
769
770 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
771 value in case of incomplete read.
772 (grub_util_fd_write): Likewise.
773
59381678
VS
7742013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
775
776 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
777
bacfefbb
VS
7782013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
779
780 * util/grub-editenv.c (create_envblk_file): More from here ...
781 * util/editenv.c (grub_util_create_envblk_file): ... to here.
782
f7c49570
VS
7832013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
784
785 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
786 canonicalize file name before doing the rest.
787
7b83ca44
VS
7882013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
789
790 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
791 mingw32.
792
df1e64c9
VS
7932013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
794
795 Define grub_util_is_directory/regular/special_file and
796 use OS-dependent versions rather than to rely on stat().
797
ec16e026
VS
7982013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
799
800 * util/grub-mkimage.c: Move backend part to ...
801 * util/mkimage.c: ... here.
802
4b4eeb3c
VS
8032013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
804
805 Allow compilation with mingw64 albeit with warnings due to lack of
806 %llx/%llu.
807
808 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
809 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
810 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
811 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
812 on mingw64.
813 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
814
f4e0adc0
VS
8152013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
816
817 Remove leftover references to some of the system headers.
818
e0127364
VS
8192013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
820
821 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
822 read.
823
20d53541
VS
8242013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
825
826 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
827 of strerror.
828
5a869940
VS
8292013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
830
831 Split out blocklist retrieving from setup.c to
832 grub-core/osdep/blocklist.c and add windows implementation since
833 generic version doesn't work on NTFS on Windows due to aggressive
834 unflushable cache.
835
c06c7520
VS
8362013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
837
838 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
839 files.
840
8f53bb3f
VS
8412013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
842
843 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
844 Cut tailing newline. Remove arbitrary limitation. Always use
845 grub_util_tchar_to_utf8.
846
148f1007
VS
8472013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
848
849 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
850 * tests/printf_unit_test.c (printf_test): Add %% tests.
851 Reported by: Paulo Flabiano Smorigo.
852
af3b06be
VS
8532013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
854
855 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
856 implement fsync.
857
27f9d02e
VS
8582013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
859
860 * configure.ac: Check for nvlist_lookup_string in nvpair since we
861 use nvlist_lookup_string and don't use nvlist_print.
862
f6a81f0a
VS
8632013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
864
865 Add wrappers around rename, unlink, mkdir, opendir, readdir and
866 closedir to handle filename charset translation.
867
d7750b32
VS
8682013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
869
870 * include/grub/emu/hostdisk.h: Move file operations to
871 * include/grub/emu/hostfile.h: ... here.
872
2859196e
VS
8732013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
874
875 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
876 unicode path.
877
c018c968
VS
8782013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
879
880 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
881
7e45abce
VS
8822013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
883
884 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
885 and remove export.h.
886
23934da2
VS
8872013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
888
889 * grub-core/kern/emu/error.c: Removed.
890 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
891 explicitly as it's already in libgnu.a.
892
c11ebcc8
VS
8932013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
896 config-util.h include.
897
70671037
VS
8982013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
899
900 Split emunet into platform-dependent and GRUB-binding parts. Keep
901 platform-dependent part in kernel for easy access to OS functions.
902
25ac643a
VS
9032013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
904
905 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
906 open/read/write.
907
69ca5876
VS
9082013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
909
910 * grub-core/osdep/windows/emuconsole.c: New file.
911
d9d68ef0
AB
9122013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
913
914 * conf/Makefile.extra-dist: Add osdep/*/init.c
915
58e211cc
VS
9162013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
917
918 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
919
588744d0
VS
9202013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
921
922 * util/grub-probe.c (probe): Separate different drives in hint-str
923 by spaces and not newlines.
924 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
925
44016e52
AB
9262013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
927
928 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
929 Handle CD-ROMs.
930
6de9ee86
VS
9312013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
932
933 Pass-through unknown E820 types. It required reorganisation of mmap
934 module.
935
f8f3f155
AB
9362013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
937
938 * Makefile.util.def: Add osdep/init.c to grub-mount files.
939
b73249d2
VS
9402013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
941
942 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
943 fseeko.
944
dac86b18 9452013-10-14 qwertial <qwertial>
946
947 * grub-core/gdb_grub.in: Fix overflow and wrong field.
948
17614b84
JM
9492013-10-14 Jon McCune <jonmccune@google.com>
950
951 * docs/grub.texi: Document new signatures possibility.
952
6de292cb
VS
9532013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
954
955 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
956
84379b61
VS
9572013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
958
959 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
960 missing prototype.
961 (grub_util_tchar_to_utf8): Likewise.
962
21d85db1
VS
9632013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
964
965 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
966 * grub-core/kern/emu/main.c: Add missing include.
967 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
968 Don't call grub_util_init_nls.
969 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
970 Likewise.
971
66a1b3ee
VS
9722013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
973
974 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
975 stat.
976
e19bec17
VS
9772013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
978
979 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
980
ee8c1b29
VS
9812013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
982
983 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
984
bb338aaf
VS
9852013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
986
987 Add a wrapper for fopen. On unix-like systems just pass-through. On
988 windows use unicode version.
989
ae5540d3
VS
9902013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
991
992 Move set_program_name and init_nls to host_init. On windows
993 fix in this fuction console and argument charset as well.
994
4cd3c4fe
AB
9952013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
996
997 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
998 GRUB_ENABLE_CRYPTODISK.
999
1000 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
1001 GRUB_ENABLE_CRYPTODISK.
1002 * util/grub-mkconfig_lib.in: Likewise.
1003
78170f3e
CCZ
10042013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
1005
1006 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
1007
3414b6c0
MC
10082013-10-12 Melki Christian <Christian.melki@saabgroup.com>
1009
1010 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
1011 error when enabling debug.
1012
6d0740e8
IB
10132013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
1014
1015 * configure.ac: Use -melf_*_obsd on openbsd.
1016
ff2d4dc4
VS
10172013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
1020
eac6ae82
VS
10212013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * include/grub/misc.h: Use gnu_printf rather than printf as format
1024 template since our functions are independent of libc.
1025
ba9baabe
VS
10262013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * util/grub-setup.c (setup): Move copying of partition table as
1029 futher up as possible to avoid possible overwrite by floppy routines.
1030
10312013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
1032
1033 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
1034
145e2369
VT
10352013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1036
1037 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
1038 * docs/grub.texi: Likewise.
1039
3530bc9d
VS
10402013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
1043 it's mostly unused. Move vestiges to the callers.
1044
fb9f59c3
VS
10452013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
1048 version of salt and hash. Use grub_snprintf rather than snprintf.
1049
9be1c255
VS
10502013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * docs/grub.texi: Fix problem with braces.
1053
ed8c0887
VS
10542013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * conf/Makefile.extra-dist: Fix extra-dist list.
1057 * grub-core/Makefile.core.def: Likewise.
1058
f72ab14e
VS
10592013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 * docs/grub.texi: Document disk names used on Windows and AROS.
1062
2fe53a22
VS
10632013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
1066 with AROS devs.
1067 * grub-core/osdep/aros/hostdisk.c: Likewise.
1068
71c1d67a
VS
10692013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 Avoid including hostfile.h when not necessarry as it pulls
1072 in OS-specific headers which may redefine generic names
1073 like "far".
1074
ad297ec7
VT
10752013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1076
1077 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
1078 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
1079 scrollbar_bottom_pad
1080 * docs/grub.texi: Likewise.
1081
6e9e5dc9
VT
10822013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1083
1084 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
1085
761c718b
VS
10862013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
1089
37149a2f
VS
10902013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
1093 Removed.
1094 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
1095 Made static.
1096
3837a151
VS
10972013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1098
1099 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
1100 leftover.
1101
caca1c70
VS
11022013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 Move OS-specific driver configuration to grub_util_fd_open. This
1105 moves OS-dependent parts from kern/emu/hostdisk.c to
1106 grub-core/osdep/*/hostdisk.c.
1107
f7676b70
VS
11082013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1109
1110 * util/grub-mkimage.c (generate_image): Use size_t instead of
1111 grub_size_t.
1112 * util/grub-mkimagexx.c (locate_sections): Likewise.
1113 (load_image): Likewise.
1114
22f98db2
VS
11152013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
1118 size_t.
1119 (grub_util_write_image): Likewise.
1120
b102ce69
VS
11212013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
1124 get random when no RNG is available.
1125 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
1126
acbbe5cb
VS
11272013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1128
1129 * include/grub/util/lvm.h: Removed.
1130
2112fb3f
VS
11312013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
1134 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
1135
79f78fbf
VS
11362013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1137
1138 * grub-core/osdep/windows/sleep.c: Add missing config.h.
1139
c2e6f705
VS
11402013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1141
1142 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
1143
aabe433a
VS
11442013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 * grub-core/net/drivers/emu/emunet.c: Move to ..
1147 * grub-core/osdep/linux/emunet.c: ..here.
1148
9a2c903f
VS
11492013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * util/ieee1275/ofpath.c: Move to ...
1152 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
1153 * grub-core/osdep/basic/ofpath.c: ..here.
1154
4a445f58
VS
11552013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 Move password-querying (util-version) routines to grub-core/osdep.
1158
c1ca4244
VS
11592013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 Move sleep routines to grub-core/osdep.
1162
672fa55e
VS
11632013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1164
1165 Move OS-dependent files to grub-core/osdep and document it.
1166
a5b0365a
VS
11672013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1168
1169 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
1170 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
1171
29072e99
VS
11722013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
1175
f8772ea7
VS
11762013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 * util/misc.c: Remove leftover inclusion of malloc.h.
1179
a1a315e7
VS
11802013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 * include/grub/setjmp.h: Remove leftover GRUBOF.
1183
cef86fef
VS
11842013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 * util/raid.c: Fold into ...
1187 * util/getroot_linux.c: ... here. Make all functions static.
1188
c4cf25ee
VS
11892013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
1192 macros to GRUB ones.
1193
53a5f5c2
VT
11942013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1195
1196 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
1197 occasional bug. If there are too many boot entries or too low
1198 scrollbar height then we need to use another formula to calculate
1199 the position and size of the scrollbar thumb.
1200
de300af2
VS
12012013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1202
c4cf25ee 1203 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 1204
c5827364
VT
12052013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1206
1207 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
1208 * docs/grub.texi: Likewise.
1209
dd2ed8b0
VT
12102013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1211
1212 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
1213 viewport.
1214
7286c384
VT
12152013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1216
ffdfc1f3
VT
1217 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
1218 minimal width calculations.
7286c384 1219
ea547e14
VS
12202013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 * docs/grub.texi: Update note on colors on emu console.
1223
b726be76
VS
12242013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
1227 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
1228 it's FS and not GRUB limitation.
1229
a5f6ade6
VS
12302013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
1233
3b0f3aa2
VS
12342013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1235
1236 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
1237
1db38304
ST
12382013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1239
1240 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
1241 kernels by version order.
1242
fb295fc0
VS
12432013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1244
1245 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
1246
47345010
VS
12472013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1248
1249 Add AROS hostdisk and getroot routines.
1250
bf25f879
VS
12512013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 Make cryptodisk and diskfilter probe data retrievable programmatically
1254 and not just printable.
1255
24ca4512
VS
12562013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1257
1258 Split random retrieving code into separate files.
1259
c7c177f0
VS
12602013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
1263 R_ARM_V4BX.
1264
d71b45ae
VS
12652013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
1268 condition.
1269 * grub-core/tests/fake_input.c: Likewise.
1270 * grub-core/tests/cmdline_cat_test.c: Likewise.
1271
e44b9a83
VS
12722013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 * grub-core/video/capture.c: Do not do finalization when .fini
1275 is called as there is explicit capture_end.
1276
4fa60739
VS
12772013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
1280 changing windows to avoid crash.
1281
17c8bc37
VS
12822013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
1285
9d4d7977
VS
12862013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 * po/exclude.pot: Add several strings to exclude.
1289
0caa407c
VS
12902013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1291
1292 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
1293
9ae393da
VS
12942013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 * autogen.sh: Add ./util/grub-gen-widthspec.c and
1297 ./util/grub-gen-asciih.c to exclude list.
1298
498d5033
VS
12992013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
1302 and don't mark error strings for translation.
1303
7d93298f
VS
13042013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
1307 properly in case of missing block size.
1308
b2cae20c
VS
13092013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 * grub-core/lib/arm/setjmp.S: Add missing license section.
1312
3896d6b4
VS
13132013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 * po/swiss.sed: Add replacement for key names and for term computer.
1316
ebc1da55
VT
13172013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
1318
1319 * grub-core/gfxmenu/theme_loader.c: New global options for the
1320 theme background image handling. desktop-image-scale-method,
1321 desktop-image-h-align, desktop-image-v-align.
1322 * grub-core/gfxmenu/view.c: Likewise.
1323 * include/gfxmenu_view.h: Likewise.
1324 * include/bitmap_scale.h: Proportional scale functions introduced.
1325 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
1326 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
1327 cases of unexpected input variables for scale functions.
1328 * docs/grub.texi: Updated documentation for new options.
1329
c5739143
VS
13302013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
1333
be74aeb3
VT
13342013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1335
1336 * grub-core/tests/checksums.h: Corrected due to changes in
1337 bilinear interpolation function.
1338
d999ac72
VT
13392013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1340
1341 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
1342 to eliminate artefacts in bilinear interpolation.
1343
2b131610
VS
13442013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 * grub-core/video/readers/tga.c: Support paletted tga.
1347
de6e5ff8
VS
13482013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1349
1350 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
1351 incorrect cbcr setting when in color mode.
1352
fa31ee9c
VS
13532013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1354
1355 * grub-core/video/readers/png.c: Support paletted images and clean up
1356 greyscale support.
1357
e84f8188
VS
13582013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1359
1360 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
1361 usage of wrong table which resulted in mishandling of 4-byte
1362 sequences.
1363
13642013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
1365
1366 * grub-core/term/terminfo.c: Add Home and End key sequences.
1367
d72bff09
VS
13682013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 * grub-core/video/readers/png.c (grub_png_decode_image_header):
1371 Fix formula for computing total number of bytes.
1372
29648c5d
VS
13732013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
1376 image processing, fix big-endian and support grayscale.
1377
4a876492
VS
13782013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1379
1380 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
1381 Correctly will with maximum transparency when using index color.
1382
3ccf16df
VS
13832013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1384
1385 * grub-core/video/readers/png.c: Support grayscale
1386
13872013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
1388
1389 * grub-core/video/readers/jpeg.c: Support grayscale.
1390
3ccf16df 13912013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
1392
1393 * grub-core/commands/loadenv.c: Support skipping signature check
1394 and variable names filtering.
1395
30b7f58f
VS
13962013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
1399 * grub-core/kern/emu/hostfs.c: Likewise.
1400 * util/getroot_unix.c: Likewise.
1401
bab7b1eb
VS
14022013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1403
1404 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
1405 Migrate all explicit defines to this new one.
1406
43b1c99d
VS
14072013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
1410 grub_util_fd_strerror when using grub_util_fd_*.
1411 (grub_util_fd_open_device): Likewise.
1412 (grub_util_biosdisk_read): Likewise.
1413 (grub_util_biosdisk_write): Likewise.
1414 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
1415 (grub_util_fd_strerror): Likewise.
1416 (grub_util_fd_sync): Likewise.
1417 (grub_util_fd_close): Likewise.
1418 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
1419 (grub_util_fd_close): Likewise.
1420 (grub_util_fd_strerror): Likewise.
1421 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
1422 function proto rather than macro.
1423 (grub_util_fd_sync): Likewise.
1424 (grub_util_fd_open): Likewise.
1425 (grub_util_fd_strerror): New proto.
1426
e8fd80bc
VS
14272013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1428
1429 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
1430 platforms on which it doesn't work.
1431
bf645fda
VS
14322013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
1435 stat immediately to where it's used.
1436
5177ba14
VS
14372013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1438
1439 * util/getroot.c (grub_util_check_block_device): Move to ...
1440 * util/getroot_unix.c (grub_util_check_block_device): ... here.
1441 * util/getroot.c (grub_util_check_char_device): Move to ...
1442 * util/getroot_unix.c (grub_util_check_char_device): ... here.
1443
9db826e1
VS
14442013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1445
1446 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
1447 disk closing logic.
1448
49120085
AB
14492013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1450
1451 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
1452
b3328b68
AB
14532013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1454
1455 * docs/grub.texi (File name syntax): Document ZFS filenames
1456 (/volume@snapshot/...).
1457
3fff48ab
VS
14582013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1459
1460 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
1461 Always return full path. Fixes a problem with mkrelpath.
1462
39cfdaa9
PFS
14632013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1464
1465 * util/grub-install.in: Add GPT PReP support.
1466 * util/grub-probe.c (probe): Support GPT partition type.
1467 (main): Support -t gpt_parttype.
1468
7c680e1f 14692013-09-23 Aleš Nesrsta <starous@volny.cz>
1470
1471 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
1472
890bdabe
MM
14732013-09-23 Massimo Maggi <me@massimo-maggi.eu>
1474
1475 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
1476
9c262ff9
TH
14772013-09-23 Tim Hardeck <thardeck>
1478
1479 * util/grub.d/10_hurd.in: Filter out character for the class.
1480 * util/grub.d/10_kfreebsd.in: Likewise.
1481 * util/grub.d/10_linux.in: Likewise.
1482 * util/grub.d/20_linux_xen.in: Likewise.
1483
d755342a
MC
14842013-09-23 Melki Christian <Christian.melki@saabgroup.com>
1485
1486 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
1487 "changed".
1488
68b77707
JT
14892013-09-23 Josh Triplett <josh@joshtriplett.org>
1490
1491 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
1492 boot partition.
1493
efa68bfa
VS
14942013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
1497 doesn't use posix_wrap. Keep literal -fno-builtin however.
1498
d9104204
VS
14992013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
1502
c248781a 15032013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15042013-09-23 neil
1505
5830df88 1506 * configure.ac: Do not enable -Wmissing-noreturn as its
1507 usefulness is limited and creates problems on some OS notably with
1508 code generated by bison.
1509
15102013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15112013-09-23 neil
1512
1513 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 1514 supported by all gcc and when it is, it's already enabled by -Wall.
1515
621bed69
VS
15162013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
1519 desactivated use of EDID at all.
1520
71764dc8 15212013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15222013-09-23 neil
1523
1524 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
1525 video if no text is available.
1526
affce7d4 15272013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
15282013-09-23 neil
1529
1530 * configure.ac: Substitute TARGET_RANLIB.
1531
15322013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15332013-09-23 neil
affce7d4
VS
1534
1535 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
1536
1537 Based on patches from AROS.
1538
0e8daad0 15392013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 15402013-09-23 neil
0e8daad0
VS
1541
1542 * grub-core/Makefile.am: Override STRIP and RANLIB.
1543 * configure.ac: compute TARGET_RANLIB.
1544 * INSTALL: Document TARGET_RANLIB
1545
1546 Based on patches from AROS.
1547
3f7d9c82
VS
15482013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1549
1550 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
1551 that floppies are unpartitioned.
1552
bca8873a
VS
15532013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1554
1555 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
1556 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
1557
15582013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1559
1560 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
1561 less nice but more portable.
1562 * grub-core/lib/posix_wrap/wchar.h: Likewise.
1563
a47a78be
VS
15642013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
1567 for cheat_fd.
1568 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
1569 functions.
1570 (grub_cryptodisk_cheat_insert): Likewise.
1571 (grub_cryptodisk_close): Likewise.
1572
e85a5d5c
VS
15732013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
1576 Use windows path for DEFAULT_DIRECTORY.
1577
dad9fa6b
VS
15782013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1579
1580 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
1581 difference was likely just gcc version, not anything mingw-related.
1582
7e518ca8
VS
15832013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 Use Winapi on both cygwin and mingw32 to share more code between both.
1586
d68d0157
AB
15872013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1588
1589 * util/grub-install.in: Add --grub-editenv option.
1590 * util/grub-install_header (grub_compress_file): Explicitly check for
1591 plain file to avoid cp error.
1592
775b284d
AB
15932013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1594
1595 * docs/grub.texi (Device syntax): Document new LVM UUID based device
1596 names; fix LVM driver name (lvm, not lv).
1597 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
1598 names.
1599
3ff4063d
VS
16002013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1601
1602 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
1603 files rather than one file with loads of #if's.
1604 * util/getroot.c: Likewise.
1605
287faafe
VS
16062013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
1609
d1983764
VS
16102013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
1613 GNU/Hurd to the list of checked PRNG.
1614
15ce95c4
VS
16152013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 * configure.ac: On FreeBSD use -melf_*_fbsd format.
1618
207862dd 16192013-09-21 Ales Nesrsta <starous@volny.cz>
1620
7c680e1f 1621 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 1622
63653cfd
VS
16232013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
1626 * grub-core/disk/lvm.c: Add LVM UUIDs.
1627 * util/getroot.c: Use LVM UUIDs whenever possible.
1628
f5d3e7ef
AB
16292013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
1630
1631 * docs/grub.texi (Networking commands): Add documentation for
1632 network related commands.
1633
53c6b7d6
VS
16342013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * util/getroot.c (grub_util_open_dm): Check major rather than the name
1637 to determine if device is handled by devmapper.
1638 (convert_system_partition_to_system_disk): Likewise.
1639 (get_dm_uuid): Don't check explicitly if device is mapped, it's
1640 already done in grub_util_open_dm.
1641
e70d6736
LL
16422013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
1643
1644 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
1645 Clean up stack manipulation (sync_caches_armv*)
1646
90379808
VS
16472013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 * util/lvm.c: Remove since unused. Remove remaining references.
1650
386701a8
VS
16512013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 Handle the case of partitioned LVM properly.
1654
1655 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1656 Stop on meeting LVM, mpath or DMRAID.
1657 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
1658 (read_device_map): Likewise.
1659 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
1660 device is full disk rather than erroring out on LVM and similar cases.
1661
53070787
VS
16622013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1663
1664 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
1665
1bc783bd
VS
16662013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
1669 4K before the end.
1670 Reported by: Leif Lindholm
1671
436ad5c3
PW
16722013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
16732013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
1676 codes.
1677
607319c9
CW
16782013-09-18 Colin Watson <cjwatson@ubuntu.com>
1679
1680 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
1681 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
1682
d404d154
DR
16832013-09-18 Douglas Ray <dougray@cpan.org>
1684
1685 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
1686 as secure.
1687
28851ef6
AN
16882013-09-18 Aleš Nesrsta <starous@volny.cz>
1689
1690 * docs/grub.texi: Fix broken link.
1691
897c3bc6
MC
16922013-09-18 Melki Christian <Christian.melki@saabgroup.com>
1693
1694 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
1695 to break endless loop.
1696
f1630459
VS
16972013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 * util/grub-fstest.c: Fix several printf formats.
1700 * util/grub-mkimage.c: Likewise.
1701 * util/grub-mkimagexx.c: Likewise.
1702 * util/grub-script-check.c: Likewise.
1703
64463dfd
VS
17042013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
1707 error.
1708
48972495
VS
17092013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
1712
5dd5e64b
VS
17132013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
1716 removed in current versions cygwin_conv_*.
1717
1c1f31e5
VS
17182013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * configure.ac: Disable efiemu runtime on cygwin.
1721
c546a259
VS
17222013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
1725 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
1726
81690478
VS
17272013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1728
1729 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
1730 error message.
1731
6b87c10a
VS
17322013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1733
1734 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
1735 windows variant.
1736 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
1737 data.
1738
8f0baaac
VS
17392013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1740
1741 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
1742 when on x86 and not cygwin.
1743 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
1744 -Wl,-melf_x86_64.
1745
b224c266
VS
17462013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * configure.ac: Set CPP to build one when checkoing for freetype for
1749 build.
1750
506b336b
VS
17512013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
1754 [!GRUB_BUILD]: Remove has_argument.
1755
8c8c87b7
VS
17562013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1757
1758 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
1759 Replace with a dummy.
1760
7dc5ca13
VS
17612013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1762
1763 * configure.ac: Don't change host_os from mingw to cygwin.
1764
c3302aa5
VS
17652013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1766
1767 * configure.ac: Change target_os from windows to cygwin.
1768
7b780018
VS
17692013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1770
1771 Handle grub-pe2elf and grub-mkfont for cases when build != host.
1772
1773 * Makefile.am (build-grub-mkfont): Don't include gnulib.
1774 (build-grub-gen-asciih): Likewise.
1775 (build-grub-gen-widthspec): Likewise.
1776 * Makefile.util.def (grub-pe2elf): Remove.
1777 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
1778 * configure.ac: Separate tests for build.
1779 Move ./build-grub-pe2elf to grub-core.
1780 Fix typo.
1781 * grub-core/Makefile.am (build-grub-pe2elf): New target.
1782 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
1783 defined.
1784 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
1785 constants.
1786 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
1787 * util/grub-pe2elf.c: Simplify not to rely on getopt.
1788 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
1789
984cfd8a
VS
17902013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
1793 mingw32 as well based on grub_util_get_disk_size.
1794 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
1795 grub_util_get_fd_size.
1796 (sync): Removed.
1797 (fsync): Moved to ...
1798 * grub-core/kern/emu/misc.c (fsync): ... here.
1799
f82d79c9
VS
18002013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1801
1802 * include/grub/mm.h (grub_extend_alloc): Remove.
1803 * grub-core/loader/i386/pc/plan9.c: Use own version of
1804 grub_extend_alloc with appropriate types.
1805
fd7dd66d
VS
18062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
1809
43ffba7c
VS
18102013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1811
1812 * util/getroot.c: Include sys/wait.h only when we need waitpid.
1813
3c7eac44
VS
18142013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1815
1816 Fix dependencies on cygwin.
1817
1818 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
1819 dependencies when used and defined.
1820 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
1821
bdb5ba47
VS
18222013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1823
1824 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
1825 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
1826
ed7fbf43
VS
18272013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
1830 implementation available to cause compile-time rather than runtime
1831 error.
1832
fc46e9fc
VS
18332013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1834
1835 * util/grub-fstest.c: Don't check for symlinks on windows.
1836
7f68269a
VS
18372013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 * INSTALL: Mention unavailability of man pages when cross-compiling.
1840
8ed358e0
VS
18412013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1842
1843 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
1844 and gcry_log_bug.
1845 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
1846
fc97214f
VS
18472013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 * INSTALL: Document cross-compilation.
1850 * acinclude.m4: Determine whether nm support -P and --defined-only.
1851 * configure.ac: Add TARGET_ to all variables pertaining to target
1852 that don't have it yet.
1853 * gentpl.py: Likewise.
1854 * grub-core/Makefile.am: Likewise.
1855 * grub-core/genmod.sh.in: Likewise.
1856 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
1857 as well.
1858
ca1fb563
IB
18592013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
1860
1861 * configure.ac: Remove -Wempty-body. It's not essential and needs
1862 recent gcc.
1863
0031b229
IB
18642013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
1865
1866 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
1867 * util/getroot.c: Likewise.
1868
54ea2f44
VS
18692013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1870
1871 * grub-core/disk/ahci.c: Add needed explicit cast.
1872 * grub-core/lib/backtrace.c: Likewise.
1873 * grub-core/net/ip.c: Likewise.
1874 * grub-core/net/tcp.c: Likewise.
1875 * grub-core/net/udp.c: Likewise.
1876
3c601f8c
VS
18772013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1878
1879 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
1880
1d679dda
VS
18812013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1882
1883 * util/import_gcry.py: Add final newline in visibility.h.
1884
00c28dd9
VS
18852013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 * conf/Makefile.common: Fix typo.
1888
32af299a
VS
18892013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1890
1891 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
1892
e733cf52
VS
18932013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1894
1895 * Makefile.am (widthspec.h): Fix typo.
1896 * util/grub-gen-widthspec.c: Likewise.
1897
c6b066f2
VS
18982013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 Move ascii.h and widthspec.h generation to a separate build-time-only
1901 tool.
1902
ad1fe3f9 19032013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
1904
1905 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
1906 Always fill bootdisk info and improve check for NetBSD disklabel.
1907
92a52dd4
VS
19082013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 * conf/Makefile.extra-dist: Add util/bin2h.c.
1911 Reported by: floppym.
1912
b2e9d276
VS
19132013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1914
1915 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
1916
7b966834
VS
19172013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 * configure.ac: Disable unifont and starfield if no freetype was found.
1920
d5c1eef1
VS
19212013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1922
1923 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
1924 on NetBSD and OpenBSD.
1925
66345b50 19262013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
1927
1928 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
1929
66345b50 19302013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
1931
1932 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
1933 reduced. Inheritant options are processed during the theme loading.
1934
66345b50 19352013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
1936
1937 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
1938
369508b3
AS
19392013-08-14 Avik Sil <aviksil@in.ibm.com>
1940
1941 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
1942
19432013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
1944
1945 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
1946 using qemu.
1947
6f27a3f6
PFS
19482013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1949
1950 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
1951 remove-potcdate.sed.
1952
c6ed362a
AB
19532013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1954
1955 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
1956 unused attribute from pull argument.
1957
5e7d9464
AB
19582013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1959
1960 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
1961 memory leak.
1962
dea55e2a
AB
19632013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1964
1965 * util/getroot.c (pull_lvm_by_command): add --separator option
1966 to vgs call to disable padding of output to 10 characters.
1967
f0b94ded
VS
19682013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1969
1970 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
1971 here ...
1972 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
1973 here.
1974
b828fb5d
VS
19752013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
1978 length.
1979
7c9d0c39
VS
19802013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 Fix handling of build-time grub-bin2h and grub-mkfont when doing
1983 full Canadian cross. Tested with build=x86_64, host=arm,
1984 target=ppc-ieee1275.
1985
816719c8
VS
19862013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * configure.ac: Error if no $BUILD_CC could be found.
1989 Reported by: DevHC.
1990
2af2353b
VS
19912013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1992
1993 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
1994 i386-multiboot.
1995
797abd0a
VS
19962013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1997
1998 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
1999 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
2000
36e87d25
CW
20012013-08-13 Colin Watson <cjwatson@ubuntu.com>
2002
2003 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
2004 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
2005 falling back to the partition device, otherwise a later call to this
2006 function may fail spuriously.
2007 Reported by Axel Beckert. Fixes Debian bug #708614.
2008
273349fe
GS
20092013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2010
2011 * autogen.sh: Replace find -not by the POSIX-compliant find !.
2012
418f86c6
GS
20132013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2014
2015 Prevent shadowing of stdlib's devname(3) on BSD.
2016
2017 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
2018 and devlast to diskname and disklast, respectively.
2019
c137aea0
CW
20202013-08-11 Colin Watson <cjwatson@ubuntu.com>
2021
2022 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
2023
272dc8df 20242013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
2025
2026 * docs/grub.texi: Introduce terminal window position options:
2027 terminal-left: terminal window's left position
2028 terminal-top: terminal window's top position
2029 terminal-width: terminal window's width
2030 terminal-height: terminal window's height
2031 terminal-border: terminal window's border width
2032 * grub-core/gfxmenu/theme-loader.c: Likewise.
2033 * include/grub/gfxmenu_view.h: Likewise.
2034 * po/exlude.pot: Likewise.
2035 * grub-core/gfxmenu/view.c: Likewise.
2036 Also updated minimal window size.
2037 Also terminal_sanity_check function has been introduced.
272dc8df
VT
2038 * grub-core/tests/checksums.h: Update (terminal window height
2039 is adjusted now for low resolution screen)
b4743461 2040
748a4533
VS
20412013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
2044 position).
2045
fca5f944
VS
20462013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 * po/exclude.pot: Add few recent exceptions.
2049
4f47d809
VS
20502013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2051
2052 * tests/grub_func_test.in: Add unicode.pf2.
2053
a62ae90c
VS
20542013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
2057 standard rather than noral color, in line with other terminals.
2058
4ed41392
VS
20592013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
2062 analysis.
2063
3719fbc5
VS
20642013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 * grub-core/loader/arm/linux.c: Change printf to dprintf.
2067
459b1d91
VS
20682013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2069
2070 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
2071 inappropriate printf.
2072
f4e1ab9d
AB
20732013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
2074
2075 * .bzrignore: Remove grub-core/lib/dtc-grub,
2076 grub-core/Makefile.libfdt.def
2077 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
2078
fa471bfa
VS
20792013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2080
2081 * include/grub/video.h (grub_video_register): Keep double-linked as
2082 well as single-linked invariants.
2083 Reported by: qwertial.
2084
d65be02b
VS
20852013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 * grub-core/commands/nativedisk.c (get_uuid): Handle
2088 GRUB_DISK_DEVICE_UBOOTDISK_ID.
2089
ba8bc620
VT
20902013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
2091
2092 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
2093 maximum of NW, N, NE heights instead of N's height and maximum of
2094 NW, W, SW widths instead of W's width. (So the box will be always
2095 correctly drawn)
2096
4f0ad029
GS
20972013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
2098
2099 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
2100 Fix misuse of variable count.
2101
43d53b72
LL
21022013-07-18 Leif Lindholm <leif.lindholm@arm.com>
21032013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
21042013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 2105
43d53b72
LL
2106 New ports to arm-uboot and arm-efi.
2107 Mostly by Leif Lindholm with some additions from
2108 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 2109
88f8d146
VS
21102013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
2113 and not before.
2114 Reported by: Leon Drugi.
2115
3f42504c
VS
21162013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
2119 Reported by: Paulo Flabiano Smorigo.
2120
d110499b
VT
21212013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2122
2123 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
2124
a8674ad3
VT
21252013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2126
2127 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
2128
286fe4b3
VS
21292013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
2132
1bd57aa3
VS
21332013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2134
2135 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
2136
7a87d69f
AB
21372013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
2138
2139 * grub-core/net/bootp.c: Export net_* variables.
2140 * grub-core/net/net.c: Likewise.
2141
b2182299
VS
21422013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
2145
795b3dc0
VS
21462013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
2149
68714c43
VS
21502013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
2153
af211bab
VS
21542013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2155
2156 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
2157
0036f02d
MM
21582013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2159
2160 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
2161 <= 0.
2162
6d0ddff3
MM
21632013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2164
2165 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
2166 functions.
2167
038016f4
MM
21682013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2169
2170 * grub-core/fs/zfs/zfs_lz4.c: New file.
2171 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
2172
776bdce2
MM
21732013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2174
2175 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
2176
c71dbd40
MM
21772013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2178
2179 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
2180 (check_pool_label): Likewise.
2181 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
2182
21832013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
2184
2185 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
2186
8e67b50f
AB
21872013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2188
2189 * docs/grub.texi (Commands): Document postition parameters
2190 for menuentry command.
2191
f5ae3717
AB
21922013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2193
2194 * util/grub-mknetdir.in: Remove stray line from help output.
2195
9c28da2a
VS
21962013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 Remove early sm712 init as there is no reason for it (the "watchdog"
2199 effect was due to wrong GPIO map).
2200
139072b8
VS
22012013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2202
2203 * grub-core/commands/pcidump.c: Remove static variables.
2204
c6a61bda
VS
22052013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 * grub-core/commands/sleep.c: Refresh screen before sleeping.
2208
51369614
VS
22092013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2210
2211 * configure.ac: Move delimiter after the infos.
2212
efa8640a
VS
22132013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
2216
6f80a7b2
VS
22172013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
2220 not filling whole 8x16 space.
2221
a2371e19
VS
22222013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2223
2224 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
2225
64fce2d8
VS
22262013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * configure.ac: Indicate which liblzma is used if any.
2229
eb272d84
PW
22302013-06-21 Paul Wise <pabs3@bonedaddy.net>
22312013-06-21 Craig Sanders <savannah@taz.net.au>
2232
2233 * util/grub-reboot.in: Document submenu usage.
2234
a9e5abee
CW
22352013-06-25 Colin Watson <cjwatson@ubuntu.com>
2236
2237 * .bzrignore: Update with a number of new test-related files.
2238
e639c204
CW
22392013-06-25 Colin Watson <cjwatson@ubuntu.com>
2240
2241 * util/grub-script-check.c: Fail on scripts containing no
2242 commands, to guard against corrupted grub-mkconfig setups that
2243 produce no useful output.
2244 * tests/grub_script_no_commands.in: New test.
2245 * Makefile.util.def (grub_script_no_commands): Add.
2246 Reported by Hans Putter. Fixes Debian bug #713886.
2247
a4c89b17
AB
22482013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2249
2250 * grub-core/disk/diskfilter.c: Forgot to remove comment
2251 from previous commit.
2252
5b06b53c
AB
22532013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2254
2255 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
2256 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
2257
702da5c9
AB
22582013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2259
2260 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
2261
aa62a5b7
AB
22622013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2263
2264 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
2265 rescan diskfilter devices until nothing new is found.
2266
4aa237c8
VS
22672013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 Fix casts when compiling coreboot-specific code for 64-bit EFI.
2270
93d8479b
VS
22712013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 Don't try to detect cbfs on *-emu.
2274
837222cc
VS
22752013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2276
2277 * grub-core/term/gfxterm.c: USe right background color when scrolling.
2278
99c971af
VS
22792013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2280
2281 Add support for processed coreboot payload chainloading.
2282
e6930a45
VS
22832013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 Enable coreboot information commands even when not loaded as
2286 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
2287
5027af38
VS
22882013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 Support for cbfs. Also factor out the part which is common
2291 for all archives to a separate module. This splits tar from cpio
2292 as they are very different but keeps cpio, cpio_be, odc and newc
2293 together since they're very similar.
2294
a5b55c4b
DM
22952013-06-15 David Michael <fedora.dm0@gmail.com>
2296
2297 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
2298 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
2299
0301a8b3
VS
23002013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 * tests/grub_script_eval.in: Really add the eval test.
2303
3d84cb17
VS
23042013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2305
2306 Move flavour-specific parts out of common cpio.c file and
2307 rename remaining to cpio_common.c
2308
593e430c
AB
23092013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2310
2311 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
2312 off new function grub_script_execute_new_scope. Change callers to use
2313 either of them as appropriate.
2314 * grub-core/commands/eval.c: New command eval.
2315 * docs/grub.texi (Commands): Document it.
2316
63c29849
AB
23172013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2318
2319 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
2320 to fetch values when listing.
2321
cc284112
AB
23222013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2323
2324 Fix make dist on non-pc.
2325
23262013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
2327
2328 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
2329 without a device name.
2330
69544d1e
VS
23312013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2332
2333 Remove enable_executable_check as it's not needed anymore.
2334 Reported by: dougray.
2335
96dbe648
VS
23362013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2337
2338 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
2339 ambigouos RAID before discovering RAIDs on top of it.
2340 Reported by: bodom.
2341
ccfc0bdb
VS
23422013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 Fix typo (failback vs fallback).
2345
f2587088
AB
23462013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
2347
2348 * util/grub.d/30_os-prober.in: Add support for probing EFI
2349 System Partition (as of os-prober 1.58).
2350
cec5cf0c
VS
23512013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2352
2353 * configure.ac: Add yet another path to unifont. For parabola.
2354
e40b4596
JT
23552013-05-30 Josh Triplett <josh@joshtriplett.org>
2356
2357 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
2358 handling to copy the killed characters to the kill buffer as
2359 UCS4 stored as grub_uint32_t rather than as 8-bit characters
2360 stored as char. Eliminates UCS4 truncation and corruption
2361 observed when killing characters with Ctrl-u and yanking them
2362 back with Ctrl-y.
2363
fc4c4fdd
VS
23642013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 Detach optional parts of gfxterm and integrate in with coreboot init.
2367
6570b205
VS
23682013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 Move blit and fill dispatcher to appropriate files to decrease export
2371 and relocation overhead.
2372
b8323067
VS
23732013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 * grub-core/font/font.c, include/grub/font.h: Inline simple font
2376 functions.
2377
3cc1878f
VS
23782013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2379
2380 * grub-core/Makefile.am: Fix compilation problem with some
2381 automake versions.
2382
4b80e43c
VS
23832013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2384
2385 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
2386
57e0c20c
VS
23872013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2388
2389 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
2390 automake versions.
2391
4fd42c53
VS
23922013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
2395 SSDT.
2396
1e908b34
RS
23972013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
2398
2399 * grub-core/partmap/dfly.c: New partition map.
2400
1359e474
VS
24012013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
2404 checking.
2405 Reported by: Francesco Lavra.
2406
17806392
AB
24072013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
2408
2409 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
2410 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
2411 false conditions.
2412 * conf/Makefile.common: define dist_grubconf_DATA
2413
cdce14fa
VS
24142013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2415
2416 Progressively skip menu elements on small terminals rather
2417 than crashing.
2418
c8d6cc3c
VS
24192013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2420
2421 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
2422 to avoid losing last column.
2423
a73b31ce
VS
24242013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * po/exclude.pot: Add missing string "%C".
2427
1202c764
VS
24282013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
2431 after the test.
2432
50268344
VS
24332013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * util/grub-install.in: Gettextize "Not found" message.
2436
62b15edf
VS
24372013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 Fix distfiles list.
2440 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2441
24422013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
2443
2444 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
2445 present.
2446 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
2447
709ad61b
VS
24482013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2449
2450 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
2451
d128901a
VS
24522013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
2455 attribute since structure is not necessarily aligned.
2456
34b22f5c
AB
24572013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
2458
2459 * docs/grub.texi (Device syntax): Clarify description of network
2460 drives.
2461
0f7e980b
VS
24622013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
2465 for vasprintf presence.
2466
30b03dc2
VS
24672013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 * util/grub-install.in: Handle efibootmgr presence check.
2470 Reported by: Leif Lindholm.
2471
0dc11c08
VS
24722013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2473
2474 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
2475 new strings to translate.
2476
f8024c3f
VS
24772013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
2480 yet another string (pun intended) to translate.
2481
b4c1da62
VS
24822013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 * po/POTFILES-shell.in: Autogenerate it.
2485
0ef7478b
VS
24862013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2487
2488 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
2489
8200fa15
VS
24902013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
2493 misnomer.
2494
091945b2
AB
24952013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
2496
2497 * docs/grub.texi (Network): Add description of net_default_interface,
2498 net_default_ip and net_default_mac. Rewrite variables description
2499 to emphasize that they are per-interface.
2500
0e7b2e32
VS
25012013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 New test: cmdline and cat.
2504
16f7c8f6
VS
25052013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * grub-core/commands/cat.c: Show UTF-8 characters.
2508
3e912fda
VS
25092013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2510
2511 * conf/Makefile.common: Poison float and double on non-emu.
2512
ee0220bc
VS
25132013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2514
2515 * configure.ac: Don't disable extended registers on emu.
2516
89e0240c
VS
25172013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * configure.ac: Don't use extended registers on x86_64.
2520 Reported by: Peter Jones.
2521
e56d9637
VS
25222013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 * grub-core/term/efi/console.c: Fix compile error.
2525
8098f655
VS
25262013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 Compressed HFS+ support.
2529
16940e07
VS
25302013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2531
2532 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
2533 pixel".
2534
c5dbc13d
VS
25352013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2536
2537 Menu color test.
2538
011f8ae8
VS
25392013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 * grub-core/tests/setjmp_test.c: New test.
2542
2aa072d7
VS
25432013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2544
2545 New variables 'net_default_*' to determine MAC/IP of default interface.
2546
43fe02cb
VS
25472013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * tests/gettext_strings_test.in: A test to check for strings not
2550 marked for translation.
2551
bed06142
VS
25522013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * autogen.sh: Exclude unused libgcrypt files from translation.
2555
fb2666b5
VS
25562013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2557
2558 Simplify few strings.
2559
d22840ec
VS
25602013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2561
2562 Mark few forgotten strings for translation.
2563
e34092fd
VS
25642013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
2567 rather than printf.
2568
47cf82b4
VS
25692013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2570
2571 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
2572 rather than printf.
2573 * grub-core/video/readers/tga.c: Likewise.
2574
1eed0e6e
VS
25752013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2576
2577 * tests/priority_queue_unit_test.cc: New test.
2578
c5b7697b
VS
25792013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
2582 than printf.
2583
5945c2f8
AB
25842013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
2585
2586 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
2587 variable for one time boot menu entry.
2588
fa292343
B
25892013-05-05 Bean <bean123ch@gmail.com>
2590
2591 * grub-core/commands/testspeed.c: New command testspeed.
2592
310d4214
VS
25932013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2594
2595 Factor-out human-size printing.
2596
85002bf3
VS
25972013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 Agglomerate more mallocs to speed-up gfxterm.
2600
22b06e96
VS
26012013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2602
2603 Speed-up gfxterm by slightly agglomerating mallocs.
2604
b7c036bc
VS
26052013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2606
2607 More video checks.
2608
92323d1f
VS
26092013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 Speed-up gfxterm by saving intermediate results in index+alpha
2612 format.
2613
0fb356a3
VS
26142013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2615
2616 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
2617 test.
2618
44dea3f9
VS
26192013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
2622 line of timeout as it may contain the rest of long line.
2623
14af86e4
VS
26242013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * grub-core/normal/main.c: Fix freed memory dereference.
2627
03f7c8c3
VS
26282013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 Fix several memory leaks.
2631
c686014c
VS
26322013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
2635
0788a695
VS
26362013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2637
2638 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
2639
daf01d61
VS
26402013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2641
2642 Fix test -a and -o precedence.
2643 Reported by: adrian15.
2644
82ae74d7
VS
26452013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2646
2647 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
2648
8cec7bd4
AB
26492013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
2650
2651 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
2652 and add it as source to functional_test module.
2653
aa73d688
VS
26542013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
2657
c104b6f9
VS
26582013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 New series of tests for gfxterm and gfxmenu.
2661
7391c4d5
VS
26622013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2663
2664 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
2665 the theme path relative to $prefix/themes.
2666
cff50118
VS
26672013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
2670 Fix order bug.
2671 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
2672
7c332bdc
VS
26732013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2674
2675 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
2676 descriptor.
2677
a4f9a5ff
VS
26782013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2679
2680 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
2681 grub_gfxmenu_timeout_notifications.
2682 (grub_gfxmenu_view_destroy): Likewise.
2683
b5a2114d
VS
26842013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
2687
a8905e8a
VS
26882013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2689
2690 Several fixes to ieee1275 and big-endian video.
2691
813c1622
VS
26922013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 Add missing exports on mips.
2695
3f3e7326
VS
26962013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2697
2698 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
2699 if no unifont is found.
2700 Restore original keyboard.
2701
095accd1
VS
27022013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2703
2704 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
2705 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
2706
50361660
VS
27072013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 First automated video test (running videotest and comparing results)
2710
cd0f6eec
VS
27112013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
2714 instead of 2 to have full RGB/CMY test pattern.
2715
3f9634e5
VS
27162013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 Add few more tests.
2719
583e5b64
VS
27202013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * include/grub/arc/arc.h: Account for missing "other" peripheral on
2723 ARCS. All users updated.
2724
aa7bcb99
VS
27252013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
2728
95ef1a54
VS
27292013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2730
2731 * grub-core/partmap/amiga.c: Fix size of checksummed block.
2732
46546fc5
VS
27332013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
2736 Reported by: qwertial.
2737
3476e0ef
VT
27382013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
2739
2740 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
2741 with syntax "XXX deg"/"XXX °".
2742
96f33fed
VS
27432013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2744
2745 Make PCI init in i386-qemu port more robust.
2746
27472013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
2748
2749 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
2750 cached view is reused.
2751 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
2752 open boot menus.
2753
c53b4e67
VS
27542013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 Unify more code in grub-install_header.
2757
f7457fb2
VS
27582013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2759
2760 Add few new tests.
2761
e2f27a8c
VS
27622013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 Enforce disabling of firmware disk drivers when native drivers kick in.
2765
ef9d8cd5
VS
27662013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2767
2768 * grub-core/commands/nativedisk.c: Customize the list of modules on
2769 platform. Don't try to search for disks already using native drivers.
2770
f7bf6c31
VS
27712013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
2774 platforms.
2775
bdc4add8
VS
27762013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
2779 handling of variables containing backslash.
2780
e9e46c9a
VS
27812013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
2784 dereference.
2785 Reported by: qwertial.
2786
0e90dee8
VS
27872013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2788
2789 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
2790
e0aacf24
VS
27912013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
2794 dereference.
2795 Reported by: qwertial.
2796
3c0003c3
VS
27972013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2798
2799 * docs/grub.texi: Add a comment about usefullness of nativedisk.
2800
adb7d667
VS
28012013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
2804
7cd0df84
VS
28052013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 New command `nativedisk'.
2808
02adbb93
VS
28092013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2810
2811 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
2812 * grub-core/loader/i386/bsd.c: Likewise.
2813
9fb0fd4f
VS
28142013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2815
2816 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
2817
bd69257a
VS
28182013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
2821 grub_get_unaligned16 rather than shifts.
2822
178c2764
VS
28232013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 * grub-core/kern/file.c: Use const char * rather than casting to
2826 non-const.
2827
eadfad24
VS
28282013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 * grub-core/commands/probe.c: Add missing grub_device_close.
2831
9f73ebd4
VS
28322013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * INSTALL: Document linguas.sh.
2835
965fa829
VS
28362013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2837
2838 Remove POTFILES.in and regenerate it in autogen.sh.
2839
d417ddc4
VS
28402013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2841
2842 Move --directory/--override-directorry to grub-install_header and unify.
2843
f97ec546
VS
28442013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * grub-core/term/morse.c: Macroify dih and dah.
2847
b2d7470c
PFS
28482013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2849
2850 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
2851
141e2a78
VS
28522013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2853
2854 * grub-core/term/ns8250.c: Systematically probe ports by writing
2855 to SR before using them.
2856
1dd70ebd
PFS
28572013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2858
2859 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
2860 disks.
2861 (check_sas): Get sas_adress info.
2862
c796a107
VS
28632013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
2866 ports.
2867
43168646
LD
28682013-04-27 Leon Drugi <eyak>
2869
2870 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
2871 BSS clearing.
2872
e7b8fd08
VS
28732013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 Core compression test.
2876
17f9fd29
VS
28772013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 Implement grub_machine_get_bootlocation for ARC.
2880
dc2a6c8b
VS
28812013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 Improve AHCI detection and command issuing.
2884
f25a2ba6
VS
28852013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2886
2887 Fix pseries test.
2888
a6393224
VS
28892013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2890
2891 Make 'make check' work on emu.
2892
db99fbe8
VS
28932013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 Replace libcurses with our own vt100 handling for the ease of testing
2896 and decreasing prerequisites.
2897
b24ca7cd
VS
28982013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
2901
63314aa4
VS
29022013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2903
2904 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
2905 compile when not needed.
2906
c1b00fff
VS
29072013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * tests/pseries_test.in: New test.
2910
f93e89ef
VS
29112013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 Add test to check that different boot mediums work.
2914
c4b456d3
VS
29152013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
2918 ofw limited ISO support.
2919
5fe67f39
VS
29202013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2921
2922 * configure.ac: Fix loongson conditional.
2923
7f63a64f
VS
29242013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 Enable mipsel-arc.
2927
b04b5990
VS
29282013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 Add serial on ARC platform.
2931
88d2f302
VS
29322013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
2935 commit.
2936
86eb23bc
VS
29372013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 * tests/partmap_test.in: Add missing double semicolon.
2940
eec3bb75
VS
29412013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * util/grub-mkrescue.in: Fix loongson filename.
2944
e0810df3
VS
29452013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 * util/grub-mkrescue.in: Move all files that don't have a location
2948 set in stone under /boot/grub. Use ISO hard links rather than copies
2949 to save some space.
2950
65a6b30b
VS
29512013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
2954 bogus SLOF values.
2955
6aff0107
VS
29562013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 Make check work on mips-arc.
2959
5e013e56
VS
29602013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 * util/grub-mkrescue.in: Alias sashARCS as sash.
2963
d1989e2e
VS
29642013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
2967 it's serial.
2968
1a25e72c
VS
29692013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * util/grub-install.in: Fix target fo qemu_mips.
2972 Fix extension on EFI.
2973
a59a9826
VS
29742013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
2977 in front of chosen entry to mark it even if highlighting is lost.
2978
1a40f80c
VS
29792013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
2982 gfxpayload=keep if cbfb is active.
2983
e343549c
VS
29842013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
2987
45fbd9a2
VS
29882013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2989
2990 Add missing video ids to coreboot and ieee1275 video.
2991
ab1440bd
VS
29922013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2993
2994 * util/grub-mkrescue.in: Add mips-arc support.
2995
cdeb8324
VS
29962013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
2999
8528c879
VS
30002013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 Move mips-arc link address. Previous link address was chosen
3003 in belief that RAM on SGI platforms grows down while in fact it
3004 grows up from an unusual base.
3005
17fca573
VS
30062013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
3009 Fix a type which prevented CD-ROM and floppy boot.
3010
d178788e
VS
30112013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3012
3013 Support coreboot framebuffer.
3014
3015 * grub-core/video/i386/coreboot/cbfb.c: New file.
3016
fe4c3e7e
VS
30172013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3018
3019 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
3020 detecting too small regions.
3021
ec2dd179
VS
30222013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
3025
872dac83
VS
30262013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
3029 Remove dprintf.
3030 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3031
90ec4b7f
VS
30322013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
3035 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3036 * grub-core/loader/powerpc/ieee1275/linux.c
3037 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3038
f32555dd
VS
30392013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3042 Look for /boot-rom as well as /rom/boot-rom.
3043
38649799
VS
30442013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3045
3046 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
3047 handling when creating text_layer failed.
3048 * grub-core/video/video.c (grub_video_create_render_target):
3049 Set result to 0 on error.
3050 (grub_video_delete_render_target): Do not dereference NULL.
3051
aeace7f7
VS
30522013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
3055 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
3056 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
3057 (grub_linux_load64): Mask out 2 high bits.
3058
4eafa175
AB
30592013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
3060
3061 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
3062 more place.
3063
daaa64bd
VS
30642013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 Add support for pseries and other bootinfo machines to grub-mkrescue.
3067
3068 Tested by: Paulo Flabiano Smorigo.
3069
d0d2daa6
VS
30702013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 * util/grub-mkrescue.in: Add GPT for EFI boot.
3073
b193e100
VS
30742013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
3077 It improves performance in qemu.
3078
a0f8f3ac
VS
30792013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * build-aux/snippet: Add missing gnulib files.
3082
284df0e2
AB
30832013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3084
3085 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
3086
740201f3
AB
30872013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3088
3089 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
3090
a7e03923
PJ
30912013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
30922013-04-15 Peter Jones <pjones@redhat.com>
3093
3094 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
3095 sectors.
3096 Based on patch by Peter Jones.
3097
25fc51a8
VS
30982013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3099
3100 Fix DMRAID partition handling.
3101
88017d47
VS
31022013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 * tests/grub_cmd_date.in: Skip on sparc64.
3105
fa7d914e
VS
31062013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3107
3108 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
3109 firmware error messages.
3110
cbe57a48
VS
31112013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
3114 source and destination differ.
3115
21aecce0
VS
31162013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
3119 detection.
3120
25092d29
VS
31212013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
3124 match config-util.h to avoid warnings and increase compatibility.
3125
79451522 31262013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 31272013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
3128
3129 Add option to compress files on install/image creation.
3130
78b7d77b
VS
31312013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 * docs/grub-dev.texi: Rearrange menu to match the section order.
3134 Reported by: Bryan Hundven.
3135
cc2fa5ec
VS
31362013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
3139
b49fe879
VS
31402013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3141
3142 Move GRUB out of system area when using xorriso 1.2.9 or later.
3143
5351da81
VS
31442013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 * tests/grub_cmd_date.in: Add missing exit 1.
3147
c9d586ea
VS
31482013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3149
3150 * tests/partmap_test.in: Skip on sparc64.
3151
3f729741
VS
31522013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 Support grub-shell on sparc64.
3155
8ca86b3a
VS
31562013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3157
3158 Support mkrescue on sparc64.
3159
aa1af9bb
VS
31602013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 Allow IEEE1275 ports on path even if it wasn't detected automatically.
3163 Needed on OpenBIOS due to incomplete device tree.
3164
ac4fea79
VS
31652013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3166
3167 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
3168 would be otherwise excluded.
3169
31702013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
3171
3172 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3173 Inline name defines used only once.
3174
fe22b071
VS
31752013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 Fix memory leaks in ofnet.
3178 Reported by: Francesco Lavra.
3179
9d21381b
VS
31802013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3181
3182 * docs/man/grub-glue-efi.h2m: Add missing file.
3183
07aec23c
VS
31842013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
3187
67ab8353
VS
31882013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 Better support Apple Intel Macs on CD.
3191
ba44ca6d
VS
31922013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3193
3194 Replace stpcpy with grub_stpcpy in tools.
3195
bbdd6305
VS
31962013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 Handle Japanese special keys.
3199 Reported by: Hiroyuki YAMAMORI.
3200 Codes supplied by: Hiroyuki YAMAMORI.
3201
8573d302
VS
32022013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3203
3204 * util/grub-mkimage.c: Document memdisk implying --prefix.
3205
d70dbab7
VS
32062013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3207
3208 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
3209 much we can do about it anyway.
3210
51a4c3e3
AN
32112013-04-12 Aleš Nesrsta <starous@volny.cz>
3212
3213 Fix handling of split transfers.
3214
92c8f58d
VS
32152013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 * grub-core/net/http.c: Fix bad free.
3218
b7d17a49
VS
32192013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3220
3221 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
3222 than buffer size.
3223
a3d566d4
VS
32242013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 Disable partmap check on i386-ieee1275 due to openfirmware issues.
3227
a936af56
VS
32282013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * tests/util/grub-shell.in: Fix it on powerpc.
3231
51212234
VS
32322013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 Turn off QEMU ACPI-way since new releases don't have shutdown port
3235 anymore.
3236
a21eec9e
VS
32372013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * docs/grub.texi: Update coreboot status info.
3240
e3734b84
VS
32412013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3242
3243 * tests/grub_cmd_date.in: New test for datetime.
3244
f9d40055
VS
32452013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * tests/partmap_test.in: Fix missing qemudisk setting.
3248
dbc56d8f
VS
32492013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 Support i386-ieee1275 grub-mkrescue and make check on it.
3252
a79b8a15
VS
32532013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3254
3255 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
3256 feature for it.
3257
48f39bb4
VS
32582013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3259
3260 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
3261 GRUB_CMDLINE_XEN_DEFAULT.
3262 Reported by: Marc Warne (GigaTux) <gigatux>
3263
053cfcdd
VS
32642013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 Import new gnulib.
3267
93cd84df
VS
32682013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 Use ACPI shutdown intests as traditional port was removed.
3271
f4b1fa4f
AB
32722013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
3273
3274 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
3275 distinction.
3276
49818a59
VS
32772013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
3280 Fix few warining messages and leaks while on it.
3281
9277a306
AB
32822013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
3283
3284 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
3285 links under grub-core/lib/libgcrypt-grub/mpi.
3286
d5e2a158
VS
32872013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3288
3289 Fix ia64-efi image generation on big-endian machines. Deduplicate
3290 some code while on it.
3291 Reported by: Leif Lindholm.
3292
18866643
AB
32932013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3294
3295 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
3296 as extra_dist.
3297
ca53deb8
AB
32982013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3299
3300 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
3301
d4c4b8e1
BH
33022013-04-08 Bryan Hundven <bryanhundven@gmail.com>
3303
3304 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
3305 texinfo-5.1.
3306
47043f95
VS
33072013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/normal/term.c: Few more fixes for menu entry editor
3310 rendering.
3311 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3312
a3216068
VS
33132013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * grub-core/normal/term.c: Few more fixes for menu entry editor
3316 rendering.
3317 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3318
21026747
AB
33192013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3320
3321 * conf/Makefile.extra-dist (EXTRA_DIST): Add
3322 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
3323
59624ca8
AB
33242013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3325
3326 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
3327 instead of hardcoding grub.mo.
3328
1f44478c
FN
33292013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
3330
3331 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
3332
eeada7b1
VS
33332013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
3336 grub-core/disk/geli.c.
3337
132867de
VS
33382013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3339
3340 * util/grub-mkfont.c: Prefer enum to #define.
3341
de73de17
VS
33422013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3343
3344 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
3345
1865baa7
VS
33462013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3347
3348 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
3349
ce7d92a9
VS
33502013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3351
3352 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
3353
52eab656
VS
33542013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
3357
98b23b95
VS
33582013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * include/grub/bsdlabel.h: Use enums.
3361
0467a5dd
VS
33622013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3363
3364 Move GRUB_CHAR_BIT to types.h.
3365
16cc9f03
AB
33662013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3367
3368 * docs/grub.texi: Document more user commands.
3369
3152aecb
AB
33702013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3371
3372 * docs/grub.texi: Document menuentry --id option.
3373
c506fc30
FL
33742013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
3375
3376 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
3377
aa428238
VS
33782013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3379
3380 Unify file copying setup across different install scripts. Add
3381 options for performing partial install.
3382
efe0cdda
PJ
33832013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
33842013-04-04 Peter Jones <pjones@redhat.com>
3385
3386 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
3387
f75835bd
VS
33882013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3389
3390 Use TSC as a possible time source on i386-ieee1275.
3391
2cd5ce6c
VS
33922013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
3395 Init err.
3396
c9625630
VS
33972013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 * util/grub-setup.c (setup): Handle some corner cases.
3400
be008941
VS
34012013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3402
3403 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
3404
1a78d573
VS
34052013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * grub-core/commands/verify.c: Save verified file to avoid it being
3408 tampered with after verification was done.
3409
db8ff59f
VS
34102013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
3413 reported width by one to compensate for curesor algorithm problem.
3414
91bf46b1
VS
34152013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3416
3417 Fix screen corruption in menu entry editor and simplify the code
3418 flow while on it.
3419
a7b1d693
AB
34202013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
3421
3422 * util/grub-mount.c (fuse_init): Return error if fuse_main
3423 failed.
3424
31df9ad8
FL
34252013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
3426
3427 * include/grub/elf.h: Add missing ARM relocation codes and fix
3428 existing ones.
3429
07f392eb
VT
34302013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3431
3432 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
3433
9efd73ec 34342013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
34352013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
3438 into account when calculating radius.
3439
34402013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
3441
3442 * grub-core/gfxmenu/view.c: Fix off-by-one error.
3443
4985ddaa
VT
34442013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3445
3446 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
3447
8c3635ff
RS
34482013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3449
3450 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
3451 missing closing bracket.
3452
74a35e69
RS
34532013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3454
3455 * INSTALL: Mention xorriso requirement.
3456
40f1c000
AB
34572013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
3458
3459 * grub-core/commands/verify.c: Fix hash algorithms values for
3460 the first three hashes - they start with 1, not with 0.
3461
e75fdee4
VS
34622013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
3465 Try terminating EFI services several times due to quirks in some
3466 implementations.
3467
33028f4c
CW
34682013-03-26 Colin Watson <cjwatson@ubuntu.com>
3469
3470 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
3471 skipping Event, Device, Processor, PowerRes, ThermalZone, and
3472 BankField extended opcodes.
3473 (get_sleep_type): Add minimal scope handling (just enough to
3474 handle setting the scope to the root path).
3475 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
3476 * include/grub/acpi.h: Add enumeration values for Event, Device,
3477 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
3478
33871a10
VT
34792013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
3480
3481 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
3482 memory leak.
3483
8990963a
VS
34842013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3485
3486 * grub-core/disk/ahci.c: Give more time for AHCI request.
3487
daae8f9e
VS
34882013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3489
3490 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
3491 command.
3492
6a7fb94b
VS
34932013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3494
3495 Replace the region at 0 from coreboot tables to available in BSD
3496 memory map.
3497
ff99babd
VS
34982013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
3501 non-BIOS platforms.
3502
30d6b1b2
VS
35032013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
3506 platforms.
3507
6ccd0b31
VS
35082013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
3511 handling of multi-device filesystems.
3512
23c9cc04
VS
35132013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3514
3515 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
3516 platforms.
3517
ce50dbd7
VS
35182013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 Add new 'proc' filesystem framework and put luks_script into it.
3521
d975e8d5
VS
35222013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
3525 and qemu.
3526
e73ba5e8
VS
35272013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
3530
92750e4c
VS
35312013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3532
3533 Add ability to generate newc additions on runtime.
3534
0ec45a68
VS
35352013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
3538 description.
3539
320abd43
VS
35402013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * po/POTFILES.in: Regenerate.
3543
d7a6506e
VS
35442013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * grub-core/commands/verify.c (hashes): Add several hashes
3547 from the spec.
3548
8fe05def
VS
35492013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 Slight improve in USB-related boot-time checkpoints.
3552
524e2766
VS
35532013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3554
3555 * grub-core/commands/boottime.c: Fix copyright header.
3556
cc19857a
VS
35572013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
3560 coreboot tables content. Support for cbmemc.
3561
ef8810e9
VS
35622013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 Fix a conflict between ports structures with 2 controllers of
3565 same kind.
3566
e9dabdfa
VS
35672013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 * include/grub/boottime.h: Add missing file.
3570
f6df57d2
VS
35712013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 Initialize USB ports in parallel to speed-up boot.
3574
d745dda7
VS
35752013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 Fix USB devices not being detected when requested
3578 due to delayed attach.
3579
e5a2dd7b
VS
35802013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3581
e744219b
VS
3582 Implement boot time analysis framework.
3583
35842013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3585
3586 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
3587 descriptor to just receive it as argument rather than endpoint
3588 address.
3589
5dd6f587
VS
35902013-03-19 Aleš Nesrsta <starous@volny.cz>
3591
3592 Better estimate the maximum USB transfer size.
3593
2f1071d5
VS
35942013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3595
3596 Resend a packet if we got the wrong buffer in status.
3597
46ecfc49
VS
35982013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
3601 multiplication rather than division.
3602
ea811130
VS
36032013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
3606 than divisions.
3607
d2789cf0
VS
36082013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
3611 operations to have intended shifts and not divisions.
3612
a9c94590
VS
36132013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
3616 intended shifts rather than division.
3617
84cfe81b
VS
36182013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
3621 computation for some years before epoch. Avode confusing division
3622 while on it.
3623
21344ef6
VS
36242013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3625
3626 * grub-core/video/i386/pc/vbe.c
3627 (grub_video_vbe_print_adapter_specific_info): Replace division by
3628 shifts.
3629
3f2b4d1a
VS
36302013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3631
3632 Adjust types in gdb module to have intended unsigned shifts rather than
3633 signed divisions.
3634
3dac5878
VS
36352013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
3638 maximum size is 4G - 1 on hfs
3639
5341c0fb
VS
36402013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
3643
fc3ff2a2
VS
36442013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3645
3646 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
3647 function.
3648
81455e8e
AB
36492013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
3650
3651 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
3652 causing gcc error with gcc 4.7.1.
3653
efd4f117
NZ
36542013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
3655
3656 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
3657 dereference null pointer. While the code is technically correct, gcc
3658 may eliminate a null check if pointer is already dereferenced.
3659
e11645f4
NZ
36602013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
3661
3662 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
3663 OOM check.
3664 * grub-core/normal/term.c (read_terminal_list): Likewise.
3665
77468368
VS
36662013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3667
3668 Lift up core size limits on some platforms. Fix potential memory
3669 corruption with big core on small memory systems. Document remaining
3670 limits.
3671
f6b58fe5
VS
36722013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3673
3674 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
3675 gotoxy to 0,0.
3676
19ce697d
VS
36772013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 Remove all trampoline support. Add -Wtrampolines when
3680 present. Remove symbols used for trampolines to make
3681 link fail if trampolines are present.
3682
73b5d90f
VS
36832013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3684
3685 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
3686 append out of its parent.
3687
cb758e96
VS
36882013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
3691 parent.
3692
3188131f
VS
36932013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3694
3695 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
3696 all vars to a macro. All users updated.
3697
e42b2514
VS
36982013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/disk/ieee1275/nand.c: Fix compilation on
3701 i386-ieee1275.
3702
83e1a1a1
VS
37032013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
3706
1d5a880f
VS
37072013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
3710
6e4146c4
VS
37112013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 Move to more hookless approach in IEEE1275 devices handling.
3714
99fcda8a
VS
37152013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 * grub-core/kern/term.c (grub_term_normal_color),
3718 (grub_term_highlight_color): Add back lost defaults.
3719
73bf57e2
VS
37202013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3721
3722 Make elfload not use hooks. Opt for flags and iterators instead.
3723
7f8c105f
VS
37242013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3725
3726 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
3727 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
3728
396d4091
VS
37292013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3730
3731 * grub-core/script/execute.c (gettext_append): Remove nested functions.
3732
37332013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3734
3735 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
3736 hook pass-through parameter. All users updated and unnested.
3737
74a27421
VS
37382013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
3741 out of its parent.
3742
b46d4213
VS
37432013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3744
3745 * grub-core/fs/hfs.c: Remove nested functions.
3746
e114c3cc
VS
37472013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3748
3749 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
3750 the context through.
3751 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
3752
f9b7d780
VS
37532013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3754
3755 * util/grub-editenv.c (list_variables): Move print_var out of its
3756 parent.
3757
ca9c2608
VS
37582013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3759
3760 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
3761 function.
3762
5d983f5f
VS
37632013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * grub-core/gentrigtables.c: Make tables const.
3766
3056d3e7
VS
37672013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 Remove nested functions from videoinfo iterators.
3770
e2303774
VS
37712013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3772
3773 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
3774 for 64-bit platforms.
3775
f42e3a2f
VS
37762013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
3779 a FOR_CHILDREN macro.
3780
be174e5e
VS
37812013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3782
3783 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
3784 platform from firmware path.
3785
0789b672
VS
37862013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 Enable linux16 on non-BIOS systems for i.a. memtest.
3789
3790 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
3791 correctly.
3792 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
3793
005a9c32
VS
37942013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3795
3796 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
3797 Fix end of table condition.
3798
ff2b3cd9
VS
37992013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3800
3801 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
3802 out of its parent.
3803
4fc40ff8
VS
38042013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 * grub-core/fs/jfs.c: Remove nested functions.
3807
be42d97a
VS
38082013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * grub-core/fs/minix.c: Remove nested functions.
3811
99373ce4
VS
38122013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3813
3814 * grub-core/fs/iso9660.c: Remove nested functions.
3815
5aec2afe
VS
38162013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3817
3818 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
3819 of parent function.
3820
6c69e691
VS
38212013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3822
3823 * util/grub-fstest.c: Remove nested functions.
3824
43c91882
VS
38252013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3826
3827 * grub-core/loader/machoXX.c: Remove nested functions.
3828
4eb8b756
CW
38292013-02-27 Colin Watson <cjwatson@ubuntu.com>
3830
3831 Remove nested functions from disk and file read hooks.
3832
3833 * include/grub/disk.h (grub_disk_read_hook_t): New type.
3834 (struct grub_disk): Add read_hook_data member.
3835 * include/grub/file.h (struct grub_file): Likewise.
3836 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
3837 argument.
3838
3839 Update all callers.
3840
df6da5a5
AB
38412012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
3842
3843 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
3844 Fix off by one error in enumerating extended partitions.
3845
21aecde5
AB
38462013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
3847
3848 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
3849 memory leak if device name is not found.
3850
f1a19118
AB
38512013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
3852
3853 * grub-core/normal/menu_entry.c (update_screen): remove
3854 unused variable `off' which caused scroll down arrow to be always shown.
3855
958bfd20
AB
38562013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
3857
3858 * grub-core/normal/menu_entry.c (insert_string): fix off by one
3859 access to unallocated memory.
3860
b7b78edb
AB
38612013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
3862
3863 * Makefile.util.def: Add partmap/msdos.c to common library.
3864 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
3865 * grub-core/disk/ldm.c: Check for existence of
3866 GRUB_PC_PARTITION_TYPE_LDM.
3867
28d468d6
VS
38682013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
3871 sizes and display sector size.
3872
d55ffb02
VS
38732013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 Implement new command cmosdump.
3876
b5ea6ce0
VS
38772013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3878
3879 Support Openfirmware disks with non-512B sectors.
3880
3881 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
3882 size of the disk.
3883 * (grub_ofdisk_get_block_size): New function.
3884 * (grub_ofdisk_prepare): Use the correct block size.
3885 * (grub_ofdisk_read): Likewise.
3886 * (grub_ofdisk_write): Likewise.
3887 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
3888 New proto.
3889
cc0e476f
VS
38902013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
3893
c5dbdc33
VS
38942013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
3897 on first error.
3898
3f078c0f
VS
38992013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
3902 freeing it.
3903
66a93674
VS
39042013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 Implement USBDebug (full USB stack variant).
3907
c9f0c134
VS
39082013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
3911 unless they have unexpected values.
3912
cfe1288b
VS
39132013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
3916 grub_print_error.
3917
e42b9969
VS
39182013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
3921 zero-out of port structure.
3922
cf94fd62
VS
39232013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
3924
3925 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
3926 of extended attributes.
3927
f81ef4b5
AB
39282013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
3929
3930 * util/grub-install.in: change misleading comment about
3931 device.map creation
3932
af18fdb4
VS
39332013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3934
3935 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
3936 when menu highlight color isn't set.
3937
08bcec50
M
39382013-01-27 C. Masloch <pushbx@38.de>
3939
3940 Improve FreeDOS direct loading support compatibility.
3941
3942 * include/grub/i386/relocator.h (grub_relocator16_state):
3943 New member ebp.
3944 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
3945 variable.
3946 (grub_relocator16_boot): Handle %ebp.
3947 * grub-core/lib/i386/relocator16.S: Likewise.
3948 * grub-core/loader/i386/pc/freedos.c:
3949 Load BPB to pass kernel which partition to load from.
3950 Check that kernel file is not too large.
3951 Set register dl to BIOS unit number as well.
3952
7782b8a6
CW
39532013-01-22 Colin Watson <cjwatson@ubuntu.com>
3954
3955 * util/grub-reboot.in (usage): Document the need for
3956 GRUB_DEFAULT=saved.
3957 * util/grub-set-default.in (usage): Likewise.
3958 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
3959
e661c180
VS
39602013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3961
3962 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
3963 than defining WORDS_BIGENDIAN manually.
3964
1c22ca9a
VS
39652013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3966
3967 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
3968 invariants.
3969
d44892fe
CW
39702013-01-21 Colin Watson <cjwatson@ubuntu.com>
3971
3972 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
3973 nested.
3974 (blit_comb: add_device_width): Likewise.
3975
5fdbaed1
CW
39762013-01-21 Colin Watson <cjwatson@ubuntu.com>
3977
3978 Remove nested functions from USB iterators.
3979
3980 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
3981 (grub_usb_controller_iterate_hook_t): Likewise.
3982 (grub_usb_iterate): Add hook_data argument.
3983 (grub_usb_controller_iterate): Likewise.
3984 (struct grub_usb_controller_dev.iterate): Likewise.
3985
3986 Update all implementations and callers.
3987
4250985a
VS
39882013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3989
3990 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
3991 margin when not needed.
3992
7d8848f3
VS
39932013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3994
bc136973 3995 Make color variables global instead of it being per-terminal.
7d8848f3
VS
3996
39972013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3998
bc136973
VS
3999 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
4000 asterisk.
7d8848f3 4001
ed12a003
CW
40022013-01-21 Colin Watson <cjwatson@ubuntu.com>
4003
4004 Fix powerpc and sparc64 build failures caused by un-nesting memory
4005 map iterators.
4006
6a0db449
CW
40072013-01-21 Colin Watson <cjwatson@ubuntu.com>
4008
4009 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
4010 parameter declarations.
4011
ccd86b21
VS
40122013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
4015
822b726b
VS
40162013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 Improve spkmomdem reliability by adding a separator between bytes.
4019
115c2cc1
CW
40202013-01-21 Colin Watson <cjwatson@ubuntu.com>
4021
4022 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
4023 an Acer registration utility with several sightings in the wild.
4024 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
4025
fc524edf
CW
40262013-01-21 Colin Watson <cjwatson@ubuntu.com>
4027
4028 Remove nested functions from filesystem directory iterators.
4029
4030 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
4031 (struct grub_fs.dir): Add hook_data argument.
4032
4033 Update all implementations and callers.
4034
53d3e4e3
CW
40352013-01-21 Colin Watson <cjwatson@ubuntu.com>
4036
4037 * docs/grub.texi (Multi-boot manual config): Fix typo for
4038 "recommended".
4039
c821711f
LL
40402013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4041
4042 * util/grub-mkimage.c (main): Postpone freeing arguments.output
4043 until after its use in generate_image.
4044
6a0debbd
CW
40452013-01-20 Colin Watson <cjwatson@ubuntu.com>
4046
4047 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
4048 initrd size to addr_min, since the initrd will be allocated after
4049 this address.
4050
f41e08db
AB
40512013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4052
4053 * conf/Makefile.common: Fix autogen rules to pass definition
4054 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
4055
77529e0f
LL
40562013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4057
4058 * include/grub/elf.h: Update ARM definitions based on binutils.
4059
b879aa7b
VS
40602013-01-20 Aleš Nesrsta <starous@volny.cz>
4061
4062 Split long USB transfers into short ones.
4063
8eb8284d
AB
40642013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4065
4066 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
4067 is interrupted by ESC.
4068
08dad2dc
VS
40692013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 * util/grub-script-check.c (main): Uniform the error message.
4072
6c724b85
CW
40732013-01-20 Colin Watson <cjwatson@ubuntu.com>
4074
4075 Remove nested functions from ELF iterators.
4076
25239370
CW
40772013-01-20 Colin Watson <cjwatson@ubuntu.com>
4078
4079 Remove nested functions from device iterators.
4080
4081 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
4082 (grub_arc_iterate_devs): Add hook_data argument.
4083 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
4084 (struct grub_ata_dev.iterate): Add hook_data argument.
4085 * include/grub/device.h (grub_device_iterate_hook_t): New type.
4086 (grub_device_iterate): Add hook_data argument.
4087 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
4088 (struct grub_disk_dev.iterate): Add hook_data argument.
4089 (grub_disk_dev_iterate): Likewise.
4090 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
4091 Likewise.
4092 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
4093 Likewise.
4094 * include/grub/partition.h (grub_partition_iterate_hook_t): New
4095 type.
4096 (struct grub_partition_map.iterate): Add hook_data argument.
4097 (grub_partition_iterate): Likewise.
4098 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
4099 (struct grub_scsi_dev.iterate): Add hook_data argument.
4100
4101 Update all callers.
4102
6c0314d6
CW
41032013-01-20 Colin Watson <cjwatson@ubuntu.com>
4104
4105 Fix typos for "developer" and "development".
4106
600dc5f1
VS
41072013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 Add license header to spkmodem-recv.c.
4110
17334a6b
VS
41112013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 Rewrite spkmodem to use PIT for timing. Double the speed.
4114
7d462559
VS
41152013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4116
4117 Add new command pcidump.
4118
b78d6c32
VS
41192013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 New terminal outputs using serial: morse and spkmodem.
4122
34f71cb8
VS
41232013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 Improve bidi handling in entry editor.
4126
4542e71b
VS
41272013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
4130 argument to prevent name collision.
4131
09fd6d82
CW
41322013-01-15 Colin Watson <cjwatson@ubuntu.com>
4133
4134 Remove nested functions from script reading and parsing.
4135
4136 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
4137 getline_data argument, passed to getline.
4138 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
4139 getline_data argument, passed to grub_parser_split_cmdline.
4140 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
4141 lexerstate->getline_data to lexerstate->getline.
4142 (grub_script_lexer_init): Add getline_data argument, saved in
4143 lexerstate->getline_data.
4144 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
4145 argument, passed to grub_script_parse.
4146 * grub-core/script/script.c (grub_script_parse): Add getline_data
4147 argument, passed to grub_script_lexer_init.
4148 * include/grub/parser.h (grub_parser_split_cmdline): Update
4149 prototype. Update all callers to pass appropriate getline data.
4150 (struct grub_parser.parse_line): Likewise.
4151 (grub_rescue_parse_line): Likewise.
4152 * include/grub/reader.h (grub_reader_getline_t): Add void *
4153 argument.
4154 * include/grub/script_sh.h (struct grub_lexer_param): Add
4155 getline_data member.
4156 (grub_script_parse): Update prototype. Update all callers to pass
4157 appropriate getline data.
4158 (grub_script_lexer_init): Likewise.
4159 (grub_normal_parse_line): Likewise.
4160
4161 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
4162 data argument.
4163 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
4164 static instead of nested. Rename to ...
4165 (grub_parser_execute_getline): ... this.
4166 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
4167 data argument.
4168 * grub-core/normal/main.c (read_config_file: getline): Make static
4169 instead of nested. Rename to ...
4170 (read_config_file_getline): ... this.
4171 (grub_normal_read_line): Add unused data argument.
4172 * grub-core/script/execute.c (grub_script_execute_sourcecode:
4173 getline): Make static instead of nested. Rename to ...
4174 (grub_script_execute_sourcecode_getline): ... this.
4175 * util/grub-script-check.c (main: get_config_line): Make static
4176 instead of nested.
4177
d0d4b8a0
CW
41782013-01-15 Colin Watson <cjwatson@ubuntu.com>
4179
4180 Remove nested functions from memory map iterators.
4181
4182 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
4183 argument, passed to hook.
4184 * grub-core/kern/i386/coreboot/mmap.c
4185 (grub_linuxbios_table_iterate): Likewise.
4186 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
4187 instead of nested.
4188 (grub_machine_mmap_iterate): Add hook_data argument.
4189 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
4190 Add hook_data argument, passed to hook.
4191 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
4192 Likewise.
4193 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
4194 Likewise.
4195 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
4196 Likewise.
4197 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
4198 Likewise.
4199 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
4200 Likewise.
4201 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
4202 Likewise.
4203 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
4204 (grub_machine_mmap_iterate): Likewise.
4205 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
4206 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
4207 prototype.
4208 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
4209 Remove NESTED_FUNC_ATTR from here and from all users.
4210 (grub_mmap_iterate): Update prototype.
4211 (grub_efi_mmap_iterate): Update prototype. Update all callers to
4212 pass appropriate hook data.
4213 (grub_machine_mmap_iterate): Likewise.
4214
4215 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
4216 static instead of nested.
4217 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
4218 Rename to ...
4219 (lsmmap_hook): ... this.
4220 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
4221 Likewise.
4222 (grub_efiemu_mmap_fill: fill_hook): Likewise.
4223 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
4224 heap_init): Likewise.
4225 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
4226 Rename to ...
4227 (mmap_iterate_hook): ... this.
4228 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
4229 Likewise.
4230 * grub-core/lib/ieee1275/relocator.c
4231 (grub_relocator_firmware_get_max_events: count): Likewise.
4232 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
4233 to ...
4234 (grub_relocator_firmware_fill_events_iter): ... this.
4235 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
4236 hook): Likewise. Rename to ...
4237 (grub_relocator_alloc_chunk_align_iter): ... this.
4238 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
4239 Rename to ...
4240 (generate_e820_mmap_iter): ... this.
4241 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
4242 Rename to ...
4243 (count_hook): ... this.
4244 (grub_linux_boot: hook): Likewise. Rename to ...
4245 (grub_linux_boot_mmap_find): ... this.
4246 (grub_linux_boot: hook_fill): Likewise. Rename to ...
4247 (grub_linux_boot_mmap_fill): ... this.
4248 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
4249 hook): Likewise. Rename to ...
4250 (grub_fill_multiboot_mmap_iter): ... this.
4251 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
4252 hook): Likewise. Rename to ...
4253 (count_hook): ... this.
4254 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
4255 hook): Likewise. Rename to ...
4256 (grub_fill_multiboot_mmap_iter): ... this.
4257 * grub-core/loader/powerpc/ieee1275/linux.c
4258 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
4259 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
4260 Likewise. Rename to ...
4261 (alloc_phys_choose): ... this.
4262 (determine_phys_base: get_physbase): Likewise.
4263 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
4264 find_hook): Likewise.
4265 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
4266 (malloc_hook: count_hook): Likewise.
4267 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
4268 Likewise. Rename to ...
4269 (lower_hook): ... this.
4270 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4271 (upper_hook): ... this.
4272 (grub_mmap_get_post64: hook): Likewise. Rename to ...
4273 (post64_hook): ... this.
4274 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
4275 Likewise. Rename to ...
4276 (lower_hook): ... this.
4277 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4278 (upper_hook): ... this.
4279 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
4280 (grub_mmap_iterate: fill_hook): Likewise.
4281 (fill_mask): Pass addr and mask within a single struct.
4282 (grub_cmd_badram: hook): Make static instead of nested. Rename
4283 to ...
4284 (badram_iter): ... this.
4285 (grub_cmd_cutmem: hook): Likewise. Rename to ...
4286 (cutmem_iter): ... this.
4287
22099030
VS
42882013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4289
4290 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
4291 delimit path in strings using quotes.
4292 * util/getroot.c (grub_guess_root_devices): Likewise.
4293 (grub_make_system_path_relative_to_its_root): Likewise.
4294 * util/grub-probe.c (probe): Likewise.
4295 * util/ieee1275/ofpath.c (find_obppath): Likewise.
4296 (xrealpath): Likewise.
4297
4a9950ec
VS
42982013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 Fix compilation with older compilers.
4301
4302 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
4303 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
4304 declarations.
4305 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
4306 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
4307 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
4308 identifier with b.
4309 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
4310 * include/grub/crypto.h: Add type defines.
4311 * util/import_gcrypth.sed: Remove duplicate type defines.
4312
adcc6020
VS
43132013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4314
4315 New command list_trusted.
4316
4317 * grub-core/commands/verify.c (grub_cmd_list): New function.
4318
a4528937
CW
43192013-01-13 Colin Watson <cjwatson@ubuntu.com>
4320
4321 * util/grub-mkimage.c (generate_image): Fix "size of public key"
4322 info message.
4323
ca3a7446
CW
43242013-01-13 Colin Watson <cjwatson@ubuntu.com>
4325
4326 Remove nested functions from PCI iterators.
4327
4328 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
4329 passed to hook. Update all callers to pass appropriate hook data.
4330 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
4331 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
4332 Remove NESTED_FUNC_ATTR from here and from all users.
4333 (grub_pci_iterate): Update prototype.
4334 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
4335 instead of nested. Rename to ...
4336 (grub_cs5536_find_iter): ... this.
4337 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
4338 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
4339 Likewise.
4340 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
4341 Likewise.
4342 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
4343 Likewise.
4344 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
4345 Likewise.
4346 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
4347 * grub-core/video/radeon_fuloong2e.c
4348 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
4349 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
4350 find_card): Likewise.
4351 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
4352 Likewise.
4353
f8e98fee
VS
43542013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * grub-core/commands/verify.c: Mark messages for translating.
4357
055b36b6
VS
43582013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
4361 fatal.
4362
f7ff879b
VS
43632013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
4366 fatal.
4367
43682013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
4369
4370 * autogen.sh: Do not try to delete nonexistant files.
4371 * util/import_gcrypth.sed: Add some missing header removals.
4372
01323d49
CW
43732013-01-12 Colin Watson <cjwatson@ubuntu.com>
4374
4375 Clean up dangling references to grub-setup.
4376 Fixes Ubuntu bug #1082045.
4377
4378 * docs/grub.texi (Images): Refer generally to grub-install rather
4379 than directly to grub-setup.
4380 (Installing GRUB using grub-install): Remove direct reference to
4381 grub-setup.
4382 (Device map) Likewise.
4383 (Invoking grub-install): Likewise.
4384 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
4385 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
4386 * util/grub-install.in (usage): Likewise.
4387
4388 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
4389 Apply to grub-bios-setup and grub-sparc64-setup rather than to
4390 grub-setup.
4391 * configure.ac: Remove grub_setup output variable.
4392
4393 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
4394 to grub-bios-setup.
4395 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
4396 grub-setup to grub-sparc64-setup.
4397
5e3b8dcb
VS
43982013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 Import gcrypt public-key cryptography and implement signature checking.
4401
535714bd
VS
44022013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 * grub-core/fs/ntfs.c: Ue more appropriate types.
4405 * grub-core/fs/ntfscomp.c: Likewise.
4406 * include/grub/ntfs.h: Likewise.
4407
3e4f3566
VS
44082013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4409
4410 Support Apple FAT binaries on non-Apple platforms.
4411
4412 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
4413 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
4414 Likewise.
4415 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
4416 Apple FAT binaries.
4417
4dedb13f
VS
44182013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
4421 sector devices.
4422
f8861eaf
CW
44232013-01-07 Colin Watson <cjwatson@ubuntu.com>
4424
4425 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
4426 explicitly zeroing elements.
4427 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
4428 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
4429 of elements in a structure already allocated using grub_zalloc.
4430 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
4431
86065b0a
CW
44322013-01-07 Colin Watson <cjwatson@ubuntu.com>
4433
4434 * docs/grub.texi (grub_cpu): New subsection.
4435 (grub_platform): Likewise.
4436
c6f1e92f
VS
44372013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
4440
f797ec85
VS
44412013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
4444 divisions.
4445
033d0b4b
VS
44462013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
4449 * grub-core/fs/ntfscomp.c: Likewise.
4450 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
4451 (grub_ntfs_comp): Likewise.
4452
21d1b9a0
VS
44532013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4454
4455 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
4456 Rename to ...
4457 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
4458 of groups_per_block. All users updated.
4459
10ca8645
VS
44602013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
4463 grub_error properly.
4464 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
4465 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
4466
a4c3ed4c
VS
44672013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
4470 always in /boot/zfs.
4471 Reported by: Yuta Satoh.
4472
0b716507
YS
44732013-01-03 Yuta Satoh <nigoro>
4474
4475 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
4476 ${grub_probe}
4477
00c05e22
VS
44782013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4479
4480 * configure.ac: Extend -Wno-trampolines to host.
4481
dadddb76
VS
44822013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
4485 entry->len = 0.
4486
54ce53ca
CW
44872013-01-03 Colin Watson <cjwatson@ubuntu.com>
4488
4489 * docs/grub.texi (Invoking grub-mkrelpath): New section.
4490 (Invoking grub-script-check): Likewise.
4491
8912efca
CW
44922013-01-03 Colin Watson <cjwatson@ubuntu.com>
4493
4494 * docs/grub.texi (Invoking grub-mount): New section.
4495 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
4496
c3fc8394
CW
44972013-01-02 Colin Watson <cjwatson@ubuntu.com>
4498
4499 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
4500 test failures, so that a failing unit test correctly causes 'make
4501 check' to fail.
4502
45d26abb
CW
45032013-01-02 Colin Watson <cjwatson@ubuntu.com>
4504
4505 Fix failing printf test.
4506
4507 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
4508 '$' in the correct order when collecting type information.
4509
971dd2c6
CW
45102013-01-02 Colin Watson <cjwatson@ubuntu.com>
4511
4512 * docs/grub.texi (configfile): Explain environment variable
4513 handling.
4514 (source): New section.
4515 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
4516
5c67ea6c
CW
45172012-12-31 Colin Watson <cjwatson@ubuntu.com>
4518
4519 Remove several trivially-unnecessary uses of nested functions.
4520
4521 * grub-core/commands/i386/pc/sendkey.c
4522 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
4523 instead of nested.
4524 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
4525 Rename to ...
4526 (legacy_file_getline): ... this.
4527 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
4528 Likewise.
4529 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
4530 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
4531 to ...
4532 (probe_dummy_iter): ... this.
4533 * grub-core/kern/i386/coreboot/mmap.c
4534 (grub_linuxbios_table_iterate: check_signature): Likewise.
4535 * grub-core/kern/parser.c (grub_parser_split_cmdline:
4536 check_varstate): Likewise. Mark inline.
4537 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
4538 an additional parameter.
4539 (find_long: fnd_long): Likewise. Pass two additional parameters.
4540 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
4541 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
4542 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
4543 Likewise. Rename to ...
4544 (grub_cmos_find_port_iter): ... this.
4545 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
4546 Rename to ...
4547 (find_rtc_iter): ... this.
4548
4549 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
4550 function directly into the function body, since it is only called
4551 once.
4552
33a68ac6
CW
45532012-12-30 Colin Watson <cjwatson@ubuntu.com>
4554
4555 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
4556 __attribute__ ((unused)).
4557 * grub-core/video/bochs.c (find_card): Likewise.
4558 * grub-core/video/cirrus.c (find_card): Likewise.
4559 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
4560 * grub-core/video/sis315pro.c (find_card): Likewise.
4561 * grub-core/video/sm712.c (find_card): Likewise.
4562
608b647a
CW
45632012-12-28 Colin Watson <cjwatson@ubuntu.com>
4564
4565 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
4566 Fixes Savannah bug #37821.
4567
fd49ceb3
CW
45682012-12-28 Colin Watson <cjwatson@ubuntu.com>
4569
4570 Apply program name transformations at build-time rather than at
4571 run-time. Fixes Debian bug #696465.
4572
4573 * acinclude.m4 (grub_TRANSFORM): New macro.
4574 * configure.ac: Create output variables with transformed names for
4575 most programs.
4576 * util/bash-completion.d/grub-completion.bash.in: Use
4577 pre-transformed variables for program names.
4578 * util/grub-install.in: Likewise.
4579 * util/grub-kbdcomp.in: Likewise.
4580 * util/grub-mkconfig.in: Likewise.
4581 * util/grub-mkconfig_lib.in: Likewise.
4582 * util/grub-mknetdir.in: Likewise.
4583 * util/grub-mkrescue.in: Likewise.
4584 * util/grub-mkstandalone.in: Likewise.
4585 * util/grub-reboot.in: Likewise.
4586 * util/grub-set-default.in: Likewise.
4587 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4588 * tests/util/grub-shell-tester.in: Remove unused assignment.
4589 * tests/util/grub-shell.in: Likewise.
4590 * util/grub.d/00_header.in: Likewise.
4591
7024b3c0
CW
45922012-12-28 Colin Watson <cjwatson@ubuntu.com>
4593
4594 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
4595
4596 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
4597 HAVE_RAW_DECL_GETS.
4598 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
4599
e3501b13
VS
46002012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
4601
4602 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
4603 Reported by: Eriks Latosheks <foresterlv>.
4604
b40c88a9
VS
46052012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4606
4607 * docs/grub.texi (Network): Update instructions on generating netboot
4608 image.
4609
ce96d01c
VS
46102012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
4613 around device name if necessarry.
4614
0f596201
PFS
46152012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4616
4617 * util/grub-install.in: Follow the symbolic link parameter added
4618 to the file command.
4619
600d5bdb
AB
46202012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
4621
4622 * util/grub-install.in: Remove stale TODO.
4623
64ebd2f4
PFS
46242012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4625
4626 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
4627 dynamic allocation for the bootpath buffer.
4628
74b2fe3e
DTB
46292012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
4630
4631 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
4632 window too small.
4633
969b804f
VS
46342012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4635
4636 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
4637 argument rather than font name. All users updated.
4638 (grub_gfxterm_set_window): Likewise.
4639
b9f5ebd6
VT
46402012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4641
4642 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
4643 from working.
4644
258f43b7
VS
46452012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4646
4647 * util/getroot.c (convert_system_partition_to_system_disk): Support
4648 nbd disks.
4649
cc1ce5f9
VS
46502012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4651
4652 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
4653 infinite loop on corrupted FS.
4654
e77a16ca
VS
46552012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
4656
4657 Fix big-endian mtime.
4658
4659 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
4660 together sec and usec.
4661 (grub_ufs_dir): Use correct byteswapping for UFS time.
4662
d9c48c7b
VS
46632012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 Support big-endian UFS1.
4666
4667 * Makefile.util.def (libgrubmods): Add ufs_be.c
4668 * grub-core/Makefile.core.def (ufs1_be): New module.
4669 * grub-core/fs/ufs_be.c: New file.
4670 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
4671 the file.
4672
2f9f40ba
LL
46732012-11-28 Leif Lindholm <leif.lindholm@arm.com>
4674
4675 * include/grub/types.h: Fix functionality unaffecting typo in
4676 GRUB_TARGET_WORDSIZE conditional macro.
4677
48ff0889
PFS
46782012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4679
4680 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
4681
03711240
GS
46822012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
4683
4684 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
4685 that /netbsd appears first (when it exists).
4686
a31b11bd
CJ
46872012-10-12 Christoph Junghans <ottxor@gentoo.org>
4688
4689 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
4690 Fixes Savannah bug #37558.
4691
e8a5d5d4
CW
46922012-10-12 Colin Watson <cjwatson@ubuntu.com>
4693
4694 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
4695 description of extract_entries_configfile.
4696
46972012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
4698
4699 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
4700 preferred_address.
4701 (grub_cmd_linux): Likewise.
4702 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
4703 preferred_lifetime. Update all users.
4704
288c757d
CW
47052012-09-26 Colin Watson <cjwatson@ubuntu.com>
4706
4707 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
4708 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
4709
0d35da3f
CW
47102012-09-26 Colin Watson <cjwatson@ubuntu.com>
4711
4712 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
4713 errors from grub-probe to /dev/null, not stdout.
4714
b78c3127
VS
47152012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
4718 sector 1.
4719
473959f0
CW
47202012-09-24 Colin Watson <cjwatson@ubuntu.com>
4721
4722 * util/grub-install.in: Make the error message if $source_dir
4723 doesn't exist more useful.
4724
794c8c33
CW
47252012-09-22 Colin Watson <cjwatson@ubuntu.com>
4726
4727 Fix grub-emu build on FreeBSD.
4728
4729 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
4730 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
4731 headers on Linux.
4732 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
4733 implementation is currently Linux-specific.
4734 * util/getroot.c (exec_pipe): Define only on Linux or when either
4735 libzfs or libnvpair is unavailable.
4736 (find_root_devices_from_poolname): Remove unused path variable.
4737
86d08fdb
CW
47382012-09-19 Colin Watson <cjwatson@ubuntu.com>
4739
4740 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
4741 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
4742 should fit before end == 63.
4743
735abf54
CW
47442012-09-19 Colin Watson <cjwatson@ubuntu.com>
4745
4746 * util/grub-setup.c (write_rootdev): Remove unused core_img
4747 parameter. Update all callers.
4748 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
4749 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
4750 GRUB_SETUP_BIOS.
4751
140acd3c
VS
47522012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 * util/grub-mkconfig_lib.in (grub_tab): New variable.
4755 (grub_add_tab): New function.
4756 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
4757 * util/grub.d/10_illumos.in: Likewise.
4758 * util/grub.d/10_kfreebsd.in: Likewise.
4759 * util/grub.d/10_linux.in: Likewise.
4760 * util/grub.d/10_netbsd.in: Likewise.
4761 * util/grub.d/10_windows.in: Likewise.
4762 * util/grub.d/10_xnu.in: Likewise.
4763 * util/grub.d/20_linux_xen.in: Likewise.
4764 * util/grub.d/30_os-prober.in: Likewise.
4765
7ddffdad
VS
47662012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4767
4768 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4769 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
4770 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
4771 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
4772 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
4773 ieee1275-nocursor.
4774 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
4775 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
4776
4e092454
VS
47772012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
4780 le-conversion.
4781 Reported by: BURETTE, Bernard.
4782
735abf54 47832012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
4784
4785 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
4786 from comment.
4787
dfd39dbd
CW
47882012-09-14 Colin Watson <cjwatson@ubuntu.com>
4789
4790 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
4791 IEEE1275 machines. Fixes powerpc-emu compilation.
4792 * include/grub/terminfo.h: Likewise.
4793
3bfa763c
VS
47942012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
4797 a const pointer.
4798 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
4799 const pointer.
4800 (efiemu_set_variable): Make vendor_guid a const pointer.
4801
250e475b
VS
48022012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4803
4804 Don't require grub-mkconfig_lib to generate manpages for programs.
4805
4806 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
4807 dependencies, don't add grub-mkconfig_lib.
4808 (program): Pass empty adddeps.
4809 (script): Pass grub-mkconfig_lib as adddeps.
4810
592fd0e4
VS
48112012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4812
4813 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
4814 * util/getroot.c (grub_find_device): Likewise.
4815 (get_mdadm_uuid): Likewise.
4816 (grub_util_is_imsm): Likewise.
4817 (grub_util_pull_device): Likewise.
4818 * util/grub-probe.c (probe): Likewise.
4819
801a3027
BG
48202012-09-10 Benoit Gschwind <gschwind>
4821
4822 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
4823 (devs): Add devpath_8.
4824
c5052c81
PJ
48252012-09-08 Peter Jones <pjones@redhat.com>
4826
4827 * grub-core/Makefile.core.def (efifwsetup): New module.
4828 * grub-core/commands/efi/efifwsetup.c: New file.
4829 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
4830 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
4831 New define.
4832 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
4833
8e832f71
JS
48342012-09-05 Jiri Slaby <jslaby@suse.cz>
4835
4836 * configure.ac: Add SuSe path.
4837
f0f55752
CW
48382012-09-05 Colin Watson <cjwatson@ubuntu.com>
4839
4840 * NEWS: Fix typo.
4841
ecadc4c2
CW
48422012-09-05 Colin Watson <cjwatson@ubuntu.com>
4843
4844 * util/import_gcry.py: Sort cipher_files, to make build system
4845 generation more deterministic.
4846
64498f25
VS
48472012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
4850 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
4851 (grub_set_datetime): Likewise.
4852
9cc836a2
VS
48532012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4854
4855 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
4856 warnings.
4857
bcfcea01
VS
48582012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4859
4860 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
4861
a4099485
VS
48622012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4863
4864 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
4865
265c162a
CW
48662012-09-04 Colin Watson <cjwatson@ubuntu.com>
4867
4868 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
4869 required for checkouts from bzr, but it may be useful for users or
4870 distributors wishing to update translations against a tarball
4871 distribution, and it can be helpful for the tarball to be a superset
4872 of what's in bzr.
4873
3d171e95
CW
48742012-09-04 Colin Watson <cjwatson@ubuntu.com>
4875
4876 * Makefile.am (EXTRA_DIST): Add
4877 grub-core/tests/boot/linux.init-mips.S,
4878 grub-core/tests/boot/linux.init-ppc.S, and
4879 grub-core/tests/boot/linux-ppc.cfg.
4880
f2c2503e
CW
48812012-09-04 Colin Watson <cjwatson@ubuntu.com>
4882
4883 * grub-core/mmap/mips/loongson: Remove empty directory.
4884
48852012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
4886
4887 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
4888 gone.
4889
ab2163d5
CW
48902012-09-04 Colin Watson <cjwatson@ubuntu.com>
4891
4892 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
4893 grub-sparc64-setup.
4894
ce938140
GS
48952012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
4896
4897 * configure.ac: Strengthen the test for working -nostdinc -isystem.
4898
529f58a5
GS
48992012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
4900
4901 * po/POTFILES.in: Regenerated.
4902
16cf79e9
GS
49032012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
4904
4905 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
4906 (NetBSD): New subsection.
4907
39b27f1e 49082012-07-22 Ales Nesrsta <starous@volny.cz>
4909
4910 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
4911 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
4912
a885261b
VS
49132012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
4916 * util/grub.d/10_hurd.in: Add missing quoting.
4917 * util/grub.d/10_illumos.in: Likewise.
4918 * util/grub.d/10_kfreebsd.in: Likewise.
4919 * util/grub.d/10_linux.in: Likewise.
4920 * util/grub.d/20_linux_xen.in: Likewise.
4921
7bd29c01
VS
49222012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 New command `lsefi'.
4925
4926 * grub-core/Makefile.core.def (lsefi): New module.
4927 * grub-core/commands/efi/lsefi.c: New file.
4928 * include/grub/efi/api.h: Add more GUIDs.
4929
ac625d8f
VS
49302012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4931
4932 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
4933 (grub_bsd_elf32_hook): Likewise.
4934 (grub_bsd_elf64_size_hook): Likewise.
4935 (grub_bsd_elf64_hook): Likewise.
4936 (grub_bsd_load_elf): Likewise.
4937
e73bb801
VS
49382012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4939
4940 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
4941 if hash function is unavailable.
4942 (dec_stream_header): Likewise.
4943
e81db8b5
VS
49442012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
4947 filter state.
4948
d187a1c3
VS
49492012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 Fix coreboot compilation.
4952
4953 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
4954 (grub_vga_text_init_real): ... this.
4955 (grub_vga_text_fini): Rename to ...
4956 (grub_vga_text_fini_real): ... this.
4957
91a05f64
VS
49582012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4959
4960 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
4961
6af96df7
VS
49622012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4963
4964 * grub-core/lib/legacy_parse.c: Support clear and testload.
4965
4d569e12
VS
49662012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
4969
073b57bb
VS
49702012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4971
4972 * grub-core/fs/ext2.c: Experimental support for 64-bit.
4973
a706f4cc
VS
49742012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * grub-core/net/tftp.c (ack): Fix endianness problem.
4977 (tftp_receive): Likewise.
4978 Reported by: Michael Davidsaver.
4979
e7850aa9
VS
49802012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4981
4982 * gentpl.py: Make mans depend on grub-mkconfig_lib.
4983
49842012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
4987 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
4988 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
4989
35692881
VS
49902012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4991
4992 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
4993 efi_mmap_size.
4994 Reported by: Stuart Hayes.
4995
c35fc5bd
VS
49962012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
4999
5000 * grub-core/Makefile.core.def (mda_text): New module.
5001 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
5002 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
5003 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
5004 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
5005 here.
5006 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
5007 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
5008 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
5009 here.
5010 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
5011 to ..
5012 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
5013 ... here
5014 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
5015 here.
5016 * grub-core/term/i386/vga_common.c: Removed.
5017 * include/grub/i386/vga_common.h: Likewise.
5018 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
5019 (grub_vga_cr_bw_read): Likewise.
5020 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
5021 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
5022 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
5023 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
5024 grub_vga_cr_read/grub_vga_cr_write.
5025 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
5026
5f91f701
VS
50272012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * configure.ac: Bump version to 2.00.
5030 * grub-core/normal/main.c (features): Add feature_200_final.
5031
0c4f85f6
VS
50322012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
50332012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
5034
5035 * NEWS: Fix unclarity and language mistakes.
5036
f923ad22
VS
50372012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5038
5039 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
5040 additional size to 3 pages.
5041 Reported by: Stuart Hayes.
5042
d22029ba
VS
50432012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5044
5045 * NEWS: Add 2.00 entry.
5046
58eee08f
VS
50472012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5048
5049 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
5050 put explicit "/" for empty path.
5051 (wildcard_expand): Improve dprintf.
5052
c59bdff7
VS
50532012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5054
5055 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
5056 it's equal to currnode. This can happen with "" symlink.
5057
5e6a440a
YB
50582012-06-27 Yves Blusseau <blusseau@zetam.org>
5059
5060 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
5061 echo shell command by printf command.
5062
73a68bcb
VS
50632012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5064
5065 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
5066 the value returned by firmware is the maximal position, not diumension.
5067 (grub_terminfo_output_state): Use a more sane fallback.
5068
392a603b
VS
50692012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5070
5071 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
5072
42d0867f
VS
50732012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
5076 frequency to 150 MHz.
5077
489509f4
VS
50782012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5079
5080 Apple fixes.
5081
5082 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
5083 __APPLE_
5084 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
5085 definition.
5086 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
5087
9f3fc883
VS
50882012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5089
5090 Handle slash in HFS label.
5091
5092 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
5093 (grub_hfs_dir): Tanslate slash.
5094 (grub_hfs_label): Don't translate slash.
5095
54853fd7
VS
50962012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5097
5098 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
5099 network protocol listing since it introduces problematic dependency on
5100 net module.
5101
4dc02ddf
VS
51022012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
5105
c50c867d
VS
51062012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5107
5108 Init video early on yeeloong to avoid being rebooted by watchdog.
5109
5110 * grub-core/Makefile.am (gensm712): New target.
5111 (sm712_start.S): Likewise.
5112 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
5113 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
5114 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
5115 description.
5116 * include/grub/vga.h: Move registry definitions to...
5117 * include/grub/vgaregs.h: ... here.
5118
5f92c8a1
VS
51192012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
5122 signedness.
5123
e9e6f111
VS
51242012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5125
5126 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
5127 platforms with firmware disk drivers in the core.
5128
754ad9eb
VS
51292012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
5132 informative verbose message.
5133 (read_lv): Handle 64-bit segment size.
5134
315654c2
VS
51352012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
5138
fb022c79
VS
51392012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5140
5141 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
5142 character but still remove trainling spaces.
5143 (grub_fat_label): Ignore archive flag.
5144
8645f72c
VS
51452012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5146
5147 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
5148 cast between linux_kernel_header and linux_kernel_params.
5149
36498496
VS
51502012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
5153 type for size.
5154 (grub_raid6_recover_func_t): Likewise.
5155 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
5156 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
5157
0b5ea6b8
VS
51582012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5159
5160 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
5161
650cfcfe
GS
51622012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
5163
5164 Fix overflow.
5165
5166 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
5167 [__NetBSD__]: Add explicit cast before bitshift.
5168
8a4d6a44
VS
51692012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5170
5171 * configure.ac: Bump to 2.00~rc1.
5172
2fb97ed3
VS
51732012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
5176 half of $a0.
5177
1fa097dc
VS
51782012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
51792012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
5180
5181 * docs/grub.texi: Fix search syntax.
5182 (Multi-boot manual config): Put msdos rather than GPT example.
5183 Grammar corrections.
5184
c890ba78
VS
51852012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5186
5187 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
5188
0f92dca7
VS
51892012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
5192
3988c4a0
VS
51932012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
5196 message on double free. Put the value of magic in case of mismatch.
5197
9e86d4c5
VS
51982012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5199
5200 Speed-up video on yeeloong.
5201
5202 * grub-core/video/sm712.c (framebuffer): Remove render_target and
5203 add cached_ptr.
5204 (grub_video_sm712_video_fini): Unmap cached_ptr.
5205 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
5206 (grub_video_sm712_set_active_render_target): Removed.
5207 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5208 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
5209 sync caches.
5210
ed24c312
VS
52112012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5212
5213 Avoid flushing the same line multiple times on loongson.
5214
5215 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
5216 Step in 32 bytes and not 1 byte.
5217 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
5218 Likewise.
5219
d1718e7d
VS
52202012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
5223 subvolumes.
5224
982f1909
VS
52252012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 Implement flow control for http.
5228
5229 * grub-core/net/http.c (parse_line): Handle response 206.
5230 (http_receive): Stall if too many packets are in the queue.
5231 (http_establish): Fix range header.
5232 (http_seek): Fix double free.
5233 (http_close): Likewise.
5234 (http_packets_pulled): New function.
5235 (grub_http_protocol): Set http_seek
5236 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
5237 (ack_real): Set window depending on i_stall.
5238 (grub_net_send_tcp_packet): Likewise.
5239 (grub_net_tcp_stall): New function.
5240 (grub_net_tcp_unstall): Likewise.
5241 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
5242 (grub_net_tcp_unstall): Likewise.
5243
bd407d6e
VS
52442012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5245
5246 * grub-core/net/tftp.c: Decrease stall to 50 packets.
5247
c7564b8e
VS
52482012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5249
5250 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
5251
a3706162
VS
52522012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5253
5254 * tests/util/grub-shell.in: Fix a typo.
5255
b27069e0
VS
52562012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5257
5258 Implement flow control for tftp.
5259
5260 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
5261 packets but stop only if stop condition is satisfied.
5262 (grub_net_fs_read_real): Call packets_pulled after real read. Use
5263 `stall' instead of `eof' as stop condition.
5264 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
5265 (http_err): Likewise.
5266 * grub-core/net/tftp.c (ack): Replace the first argument with data
5267 instead of socket.
5268 (tftp_receive): Stall if too many packets are in wait queue.
5269 (tftp_packets_pulled): New function.
5270 (grub_tftp_protocol): Set packets_pulled.
5271 * include/grub/net.h (grub_net_packets): New field count.
5272 (grub_net_put_packet): Increment count.
5273 (grub_net_remove_packet): Likewise.
5274 (grub_net_app_protocol): New field `packets_pulled'.
5275 (grub_net): New field `stall'.
5276
6b9cfac6
VS
52772012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5278
5279 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
5280 sync part to handle them.
5281
f35abd81
VS
52822012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5283
5284 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
5285 * grub-core/net/drivers/ieee1275/ofnet.c
5286 (grub_ieee1275_net_config_real): Likewise.
5287
0e7ec820
VS
52882012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
5291 the direct route for server/gateway.
5292
9d611a31
VS
52932012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5294
5295 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
5296 IP address to server name since we may not hame the DNS.
5297
418f45ab
VS
52982012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5299
5300 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
5301 freeing random buffer on failure.
5302 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
5303
44a0efc1
VS
53042012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5305
5306 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
5307
531e2241
VS
53082012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5309
5310 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
5311 reserved bytes.
5312 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
5313 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
5314 Handle malloc error correctly.
5315
cde393c9
VS
53162012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5317
5318 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
5319 blocks.
5320
538478d0
VS
53212012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5322
5323 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
5324 increment.
5325
9b55efe0
VS
53262012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5327
5328 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
5329 none is explicitly specified.
5330
9eb832c3
VS
53312012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5332
5333 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
5334 while reallocating.
5335
d6b7c7c9
VS
53362012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5337
5338 Respect netmask from bootp/dhcp.
5339
5340 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
5341 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
5342 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
5343 into ...
5344 (grub_net_add_ipv4_local): ... this.
5345 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
5346 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
5347 (grub_net_add_ipv4_local): New proto.
5348
67caf9eb
VS
53492012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5350
5351 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
5352 determining EFI memory map size.
5353
43657558
VS
53542012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5355
5356 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
5357
eb6d0dd3
VS
53582012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5359
5360 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
5361 when looking for partition separator.
5362
31230544
VS
53632012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
5366 Escape commas.
5367
918a2517
VS
53682012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 Restructure FAT driver to avoid hook in label reading as it hits a
5371 GCC bug.
5372
5373 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
5374 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
5375 (grub_fat_iterate_dir): Split into ...
5376 (grub_fat_iterate_init): ... this, ...
5377 (grub_fat_iterate_fini): ... this, ...
5378 (grub_fat_iterate_dir_next): ... and this. All users updated.
5379
9f1d654e
VS
53802012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5381
5382 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
5383 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
5384 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5385 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
5386 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
5387 New fields last_key and last_key_time.
5388 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
5389 extended key-esc into extended key-extended key.
5390
52f0f643
VS
53912012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5392
5393 Avoid unnecessary memcpy of whole video buffer.
5394
5395 * grub-core/video/fb/video_fb.c (dirty): New struct.
5396 (framebuffer): Add members current_dirty and previous_dirty.
5397 (dirty): New function.
5398 (grub_video_fb_fill_rect): Update dirty.
5399 (common_blitter): Likewise.
5400 (grub_video_fb_scroll): Likewise.
5401 (doublebuf_blit_update_screen): Copy only dirty part.
5402 (doublebuf_pageflipping_update_screen): Likewise.
5403 (grub_video_fb_doublebuf_blit_init): Init dirty.
5404 (doublebuf_pageflipping_init): Likewise.
5405 (grub_video_fb_setup): Likewise.
5406
e169a180
VS
54072012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5408
5409 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
5410 poll rate.
5411
48556879
VS
54122012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5413
5414 Fix wildcard regexp dot and other special characters handling.
5415 Reported by: Robert Mabee.
5416
5417 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
5418 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
5419 (split_path): Trigger expansion on '?'.
5420 (unescape): New function.
5421 (wildcard_expand): Unescape parts copied without globbing.
5422 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
5423 (grub_script_arglist_to_argv): Don't unescape expansions.
5424
0494408e
VS
54252012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5426
5427 * include/grub/net.h (grub_net_card): New member txbufsize.
5428 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
5429 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5430 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
5431 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
5432 txbufsize.
5433 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
5434 compatible property to check for macs. Set
5435 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5436 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
5437 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
5438 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
5439 (send_card_buffer): Use txbuf.
5440 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
5441 nested function out of the parent while on it.
5442
cc35fe8f
VS
54432012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5444
5445 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
5446 presence check.
5447 (grub_ieee1275_net_config_real): Fix config pointer.
5448
970a0a09
VS
54492012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5450
5451 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
5452 filename parsing to non-block devices.
5453
3e19bf87
VS
54542012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5455
5456 * grub-core/kern/device.c (grub_device_open): Remove dead code.
5457
c62d1a0c
VS
54582012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5459
5460 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
5461 All users updated.
5462
ef76bec3
VS
54632012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5464
5465 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
5466 UUID search command even if hints probing failed.
5467
54682012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
5469
5470 * po/POTFILES.in: Regenerated.
5471
70aaf305
VS
54722012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
5473
5474 Speed-up video on fuloong.
5475
5476 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
5477 New function.
5478 (grub_pci_device_unmap_range): Handle non-cached address.
5479 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
5480 add direct_ptr.
5481 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
5482 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
5483 (grub_video_sis315pro_set_active_render_target): Removed.
5484 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
5485 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5486 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
5487 sync caches.
5488 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
5489 New proto.
5490
10400f0b
VS
54912012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 * docs/grub.texi (Multi-boot manual config): New section.
5494
ba67e2c6
VS
54952012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 Avoid slow read-back from VRAM.
5498
5499 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
5500 Move from here ...
5501 * grub-core/video/fb/video_fb.c
5502 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
5503 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
5504 (front_target): Remove front_target. Add pages.
5505 (grub_video_fb_init): Skip setting front_pages.
5506 (grub_video_fb_fini): Likewise.
5507 (doublebuf_blit_update_screen): Use pages.
5508 (grub_video_fb_doublebuf_blit_init): Likewise.
5509 (doublebuf_pageflipping_init): Allocate offscreen buffer.
5510 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
5511 (grub_video_fb_setup): Prefer doublebuffing.
5512
377c98cb
VS
55132012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
5516 gzio.
5517
eac49cff
VS
55182012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 Add loongson tests.
5521
5522 * tests/util/grub-shell.in: Handle loongson.
5523 * tests/partmap_test.in: Add loongson to the list of platform using ATA
5524 drivers.
5525 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
5526 Reboot instead of shutdown if REBOOT is defined.
5527
0321415e
VS
55282012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
5531 sized ports since unlike on real hardware qemu supports only 32-bit
5532 regs.
5533
3f2bdd8f
VS
55342012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * Makefile.util.def (grub-mkrescue): Enable on loongson.
5537 * util/grub-mkrescue.in: Handle loongson.
5538
29a049c9
VS
55392012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5540
5541 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
5542 Set is_part appropriately.
5543 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
5544 names. Canonicalize partition without full disk.
5545
4abde346
VS
55462012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 Revert usb-quiesce since it's wrong.
5549
5550 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
5551 (grub_ofdisk_init): Don't do quiesce.
5552
61f1d93b
VS
55532012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5554
5555 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
5556 PowerMac workaround to Xserves as well.
5557 Information supplied by: Benjamin Herrenschmidt.
5558
a09eb541
VS
55592012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 Don't assume that beginning address is also the entry point on ppc.
5562
5563 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
5564 (grub_linux_boot): Use linux_entry.
5565 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
5566 (grub_linux_load64): Likewise.
5567
505b3c9b
VS
55682012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5569
5570 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
5571
cbe0b4ef
VS
55722012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5573
5574 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
5575 needlessly lose the console.
5576
3006e981
VS
55772012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5578
5579 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
5580 space.
5581
4e5a96b0
VS
55822012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5583
7da036bb
VS
5584 Remove non-functional EFI grub_get_rtc. Put a better fatal message
5585 than current grub_get_rtc() not implemented when booted with
5586 coreboot without TSC.
5587
5588 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
5589 Add machine/time.h to kernel headers on loongson.
5590 * grub-core/Makefile.core.def (kernel): Remove
5591 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
5592 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
5593 (grub_get_rtc): Likewise.
5594 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
5595 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
5596 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
5597 * grub-core/kern/i386/tsc.c (grub_tsc_init)
5598 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
5599 rather than installing known non-working time source.
5600 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
5601 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
5602 * include/grub/time.h: Don't include machine/time.h.
5603 * include/grub/efi/time.h: Removed.
5604 * include/grub/i386/efi/time.h: Likewise.
5605 * include/grub/i386/ieee1275/time.h: Likewise.
5606 * include/grub/powerpc/ieee1275/time.h: Likewise.
5607 * include/grub/sparc64/ieee1275/time.h: Likewise.
5608 * include/grub/x86_64/efi/time.h: Likewise.
5609
56102012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
5613
5614 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
5615 value.
5616 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
5617 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
5618 with dotless variants when any combining above is present.
5619
5561c22d
VS
56202012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
5623 text and not binary.
5624
96f7e60e
VS
56252012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5626
5627 Stop polling as soon as we have the packet we were waiting for.
5628
5629 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
5630 All users updated.
5631 * grub-core/net/arp.c (have_pending): New var.
5632 (pending_req): Likewise.
5633 (grub_net_arp_send_request): Fill pending_req and use have_pending as
5634 stop indicator.
5635 (grub_net_arp_receive): Set have_pending.
5636 * grub-core/net/dns.c (recv_data): New field stop.
5637 (recv_hook): Set stop.
5638 (grub_net_dns_lookup): Init stop and use as stop condition.
5639 * grub-core/net/http.c (http_establish): Use headers_recv as stop
5640 condition.
5641 * grub-core/net/net.c (grub_net_poll_cards): New argument
5642 stop_condition. Stop when it goes true.
5643 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
5644 indicator.
5645 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
5646
3e747239
VS
56472012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 Keep TX and RX buffers on EFI rather than always allocate new ones.
5650
5651 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
5652 card. All users updated.
5653 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
5654 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
5655 (get_card_packet): Likewise.
5656 (grub_efinet_findcards): Init new fields.
5657
f695e99a
VS
56582012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
5661 compilation error on sparc64.
5662
9e5e66d1
VS
56632012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5664
5665 Use ITC on IA64 rather than broken routine based on daytime.
5666
5667 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
5668 ia64.
5669 (grub_get_rtc) [__ia64__]: Likewise.
5670 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
5671 (get_itc): New function.
5672 (grub_rtc_get_time_ms): Likewise.
5673 (grub_machine_init): Calibrate ITC.
5674 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
5675 Keep only on non-ia64. Don't export since it's broken and used only
5676 if TSC is unavailable.
5677
a1767404
VS
56782012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5679
5680 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
5681 even if it's used.
5682 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
5683 Skip if parent is unused.
5684
34b2bced
VS
56852012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5686
5687 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
5688
5e619f40
VS
56892012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5690
5691 Fix wildcard escaping.
5692
5693 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
5694 * grub-core/script/execute.c (wildcard_escape): .. to here.
5695 Don't escape dot.
5696 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
5697 * grub-core/script/execute.c (wildcard_unescape): .. to here.
5698 Don't escape dot.
5699 * grub-core/script/execute.c (gettext_append): Always escape.
5700 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
5701 * grub-core/script/yylex.l: Don't cut away the escaping.
5702 * tests/grub_script_echo1.in: Add tests with wildcard.
5703
c8ca5855
VS
57042012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5705
5706 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
5707 (ftdi_hw_configure): Likewise.
5708 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
5709 define.
5710 (real_config): Handle 1.5 stop bits.
5711 (pl2303_hw_configure): Likewise.
5712
7183452c
VS
57132012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5714
5715 * Makefile.am: Add ppc linux bootcheck.
5716 * grub-core/tests/boot/linux-ppc.cfg: New file.
5717 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
5718
f57c84cd
VS
57192012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 * tests/grub_script_expansion.in: Skip network protocols.
5722
ecfc6207
VS
57232012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5724
5725 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
5726
8d03d284
VS
57272012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5728
5729 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
5730 --rom-directory.
5731 Add -graft-points.
5732
61c42af0
VS
57332012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5734
5735 ESCC serial driver for conducting sautomated tests in qemu.
5736 Not tested on real hardware.
5737
5738 * include/grub/serial.h (grub_serial_port): New field escc_desc.
5739 * grub-core/term/ieee1275/escc.c: New file.
5740 * grub-core/Makefile.core.def (escc): New module.
5741
08fd1291
VS
57422012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
5745 invalid on error.
5746 (serial_hw_fetch): Don't read invalid handle.
5747 (serial_hw_put): Don't write into invalid handle.
5748
08dafeea
VS
57492012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5750
5751 Add a 1.5 stop bits value.
5752
5753 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
5754 * include/grub/serial.h (grub_serial_stop_bits_t): Add
5755 GRUB_SERIAL_STOP_BITS_1_5.
5756
9068fdcf
VS
57572012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5758
5759 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
5760 value rather than let it uninited.
5761
f4d5820f
VS
57622012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5763
5764 * grub-core/commands/wildcard.c (+check_file): New function.
5765 (wildcard_expand): Don't expand to non-existing files, expand with
5766 suffix and not attempt to expand if not needed.
5767
3d2de9a7
VS
57682012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5769
5770 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
5771 out of partitions containing other partitions.
5772
c5c81ff9
VS
57732012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5774
5775 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
5776 on some qemu versions with GRUB.
5777
5778 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
5779 define.
5780 (grub_openbsd_bootarg_pcibios): New struct.
5781 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
5782 Add PCIINFO.
5783
08a14e0b
VS
57842012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5785
5786 * tests/util/grub-shell.in: Trim firmware output on EFI.
5787
cede3ca3
VS
57882012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5789
5790 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
5791 and coreboot since it's already in kernel.
5792
558d3a60
VS
57932012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5794
5795 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
5796 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5797 to here. New return value start. All users updated.
5798 Recursively scan linear mappings.
5799 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
5800 proto.
5801 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
5802 Use grub_util_get_dm_node_linear_info.
5803 * util/getroot.c (convert_system_partition_to_system_disk): Use
5804 grub_util_info rather than grub_dprintf.
5805 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
5806
60fde14d
VS
58072012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5808
5809 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
5810
5811 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
5812 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
5813
24bd8838
VS
58142012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5815
5816 * include/grub/types.h (grub_set_unaligned64): New function.
5817 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
5818 (setup): Likewise.
5819
7bc06a49
VS
58202012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
5823 (grub_ofdisk_fini): Quiesce USB devices.
5824
49cea015
VS
58252012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5826
5827 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
5828 caches.
5829
8dcbe03b
VS
58302012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5831
5832 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
5833
5b258735
VS
58342012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5835
5836 * grub-core/disk/pata.c (grub_pata_pio_read)
5837 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
5838 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
5839
37ba07eb
VS
58402012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5841
5842 Extend automated tests to qemu-mips.
5843
5844 * Makefile.am: reorganise tests and enable qemu-mips.
5845 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
5846 * grub-core/tests/boot/linux.init-mips.S: New file.
5847 * tests/partmap_test.in: Handle ata0 disks.
5848 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
5849 non-pc i386.
5850
070038f8
VS
58512012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5852
5853 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
5854 ia64.
5855 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
5856 quotes while on it.
5857
004be2cd
VS
58582012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5859
5860 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
5861 (grub_halt): Likewise.
5862 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
5863
b1622487
VS
58642012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 * grub-core/term/serial.c (grub_serial_register)
5867 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
5868 the behaviour in line with x86 platforms.
5869
b7b4ab33
VS
58702012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5871
5872 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
5873 (grub_ata_strncpy): Likewise.
5874 (grub_ata_identify): Add missing byteswaps.
5875
5e3535ae
VS
58762012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5877
5878 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
5879 byte-swap.
5880 (screen_read_char): Likewise.
5881 (grub_vga_text_cls): Likewise.
5882
c21b17e6
VS
58832012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5884
5885 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
5886 filenames.
5887 (make_file_path): Likewise.
5888
bf293dec
VS
58892012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5890
5891 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
5892 machines.
5893 Tested by: Paulo Flabiano Smorigo.
5894 Crucial information about API supplied by: Coleen <Last name unknown>.
5895 Reviewed by: Coleen <Last name unknown>.
5896
81f6ef0e
VS
58972012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 * util/grub-mkimage.c: Disable -Wcast-align.
5900
7284143a
VS
59012012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
5904 as they are fatal.
5905
b99f3e00
VS
59062012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
5909
944f752d
VS
59102012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5911
5912 * util/grub-probe.c (escape_of_path): Fix double free.
5913
6cce6f38
VS
59142012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5915
5916 * grub-core/commands/videoinfo.c (hook): Show pitch.
5917
1e1eb50e
VS
59182012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5919
5920 * util/grub.d/20_linux_xen.in: Skip xen-syms.
5921
1c715b5a
VS
59222012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5923
5924 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
5925 (probe): Add ieee1275 to OFW devices.
5926
007ae52d
VS
59272012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
5928
5929 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
5930
4557a36d
VS
59312012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
5932
5933 Handle IBM OFW path.
5934
5935 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
5936 available.
5937 (of_path_of_scsi): Handle vdevice.
5938
efbeefe9
VS
59392012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
5940
5941 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
5942 Allocate in multiples of 16 to avoid adding a few bytes free region the
5943 windows bugs upon.
5944
15a940bb
VS
59452012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
5948 Allocate in multiples of 16 to avoid adding a few bytes free region the
5949 windows bugs upon.
5950 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
5951
6e5efd60
VS
59522012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5953
5954 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
5955 resolutions.
5956 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
5957 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
5958
0d3d137e
IS
59592012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
5960
5961 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
5962
45dbe300
VS
59632012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5964
5965 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
5966 resulted in \\ at the end of the line.
5967
6d8db947
VS
59682012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
5971 (grub_parser_cmdline_state): Likewise.
5972 (grub_parser_split_cmdline): Likewise.
5973
de89d338
VS
59742012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
5977 /dev/root and /dev/dm-*.
5978
00d41dee
VS
59792012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
5982 fix partially stale display.
5983
f95d1f11
VS
59842012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 * grub-core/normal/menu_entry.c (backward_char): Use right line for
5987 substraction.
5988
6297e197
VS
59892012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5990
5991 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
5992 Fix MBR remapping workaround.
5993 (grub_util_biosdisk_read) [__linux__]: Likewise.
5994
8a7ecad3
VS
59952012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * util/grub-install.in: Check for ieee1275 and not ieee1276.
5998
2b34f944
VS
59992012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6000
6001 * configure.ac: Bump to beta6.
6002
684aef11
CW
60032012-05-31 Christer Weinigel <christer@weinigel.se>
6004
6005 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
6006
05b0bb91
VS
60072012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
6010 (grub_cmd_linux): Likewise.
6011
bda36bfa
CW
60122012-05-31 Christer Weinigel <christer@weinigel.se>
6013
6014 Fix EHCI low-speed.
6015
6016 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
6017 (GRUB_EHCI_MULT_TWO): Likewise.
6018 (GRUB_EHCI_MULT_THREE): Likewise.
6019 (GRUB_EHCI_CMASK_MASK): New enum value.
6020 (GRUB_EHCI_SMASK_MASK): Likewise.
6021 (GRUB_EHCI_CMASK_OFF): Likewise.
6022 (GRUB_EHCI_SMASK_OFF): Likewise.
6023 (grub_ehci_pci_iter): Enable periodic schedule.
6024 (grub_ehci_parse_notrun): Likewise.
6025 (grub_ehci_restore_hw): Likewise.
6026 (grub_ehci_setup_qh): Set flags for low speed transfers.
6027 (grub_ehci_find_qh): Use periodic list for low speed.
6028 (grub_ehci_setup_transfer): Check periodic queue as well.
6029 (grub_ehci_check_transfer): Likewise.
6030 (grub_ehci_cancel_transfer): Cancel periodic transfer.
6031
e12bcb1c
PFS
60322012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6033
6034 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
6035 parameter is used.
6036
bcc75fb3
PJ
60372012-05-31 Peter Jones <pjones@redhat.com>
6038
6039 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
6040 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
6041 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
6042
f19cb95e
VS
60432012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
6046 uninited variable. Allocate at least setup_sects.
6047
a4e5ca80
VS
60482012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 Fix handling of EFI with big memory maps.
6051
6052 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
6053 (real_mode_mem): Likewise.
6054 (real_mode_target): Likewise.
6055 (real_mode_pages): Likewise.
6056 (prot_mode_pages): Likewise.
6057 (linux_params): New var.
6058 (linux_cmdline): Likewise.
6059 (free_pages): Don't set real mode variables.
6060 (allocate_pages): Don't allocate real mode memory.
6061 (grub_e820_add_region): Remove the limit.
6062 (grub_linux_boot): Allocate and copy real mode memory.
6063 (grub_linux_unload): Free linux_cmdline.
6064 (grub_cmd_linux): Use temporary storage for parameters.
6065 (grub_cmd_initrd): Likewise.
6066 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
6067 (linux_kernel_params): Make it 1K big.
6068
ddb73558
VS
60692012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6070
6071 * Makefile.util.def: Remove -Wno-format.
6072 * grub-core/Makefile.core.def: Likewise.
6073
1c4afb60
VS
60742012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6075
6076 * tests/cmp_unit_test.c: Add missing failure message.
6077 * tests/example_unit_test.c: Likewise.
6078 * tests/printf_unit_test.c: Likewise.
6079
941e3a6d
VS
60802012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6081
6082 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
6083 relaxation of protective MBR requirements.
6084
b105df76
VS
60852012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6086
6087 * configure.ac: Add condition for COND_HOST_XNU.
6088 * Makefile.util.def (10_xnu): New script.
6089 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
6090
84e1569e
VS
60912012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
6094 objconv bug.
6095
130c0f77
VS
60962012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6097
6098 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
6099 Binary on other platforms stays identical.
6100
6fd0b143
VS
61012012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6102
6103 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
6104 Apple.
6105
0af1751d
VS
61062012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6107
6108 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
6109
176d5f7d
VS
61102012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6111
6112 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
6113 rather than defining size_t ourselves to avoid conflict.
6114
7de5e20a
VS
61152012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6116
6117 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
6118 initialisation to avoid __bzero reference.
6119
f7143efe
VS
61202012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
6123 version.
6124 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
6125 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
6126 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
6127 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
6128 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
6129
e6ad0555
VS
61302012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6131
6132 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
6133 * grub-core/kern/misc.c: Likewise.
6134 * grub-core/loader/i386/xnu.c: Likewise.
6135 * include/grub/i386/tsc.h: Likewise.
6136 * include/grub/symbol.h: Likewise.
6137
4a5a3c4a
VS
61382012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
6141 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
6142 on older compiler.
6143
037f6d90
VS
61442012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6145
6146 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
6147 Implement Apple flavour.
6148 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
6149
f7194551
VS
61502012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
6153 (memmove) [__APPLE__]: Likewise.
6154 (memcpy) [__APPLE__]: Likewise.
6155 (memset) [__APPLE__]: Likewise.
6156 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
6157 (memmove) [__APPLE__]: Likewise.
6158 (memcpy) [__APPLE__]: Likewise.
6159 (memset) [__APPLE__]: Likewise.
6160
85a730ca
VS
61612012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6162
6163 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
6164 dependency discard.
6165
40e80b94
VS
61662012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6167
6168 * grub-core/normal/main.c (read_config_file): Provide config_file and
6169 config_directory.
6170 * util/grub.d/41_custom.in: Use config_directoy when available.
6171
9da59c32
VS
61722012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
6175 (grub_bfs_dir): Likewise.
6176
2787ae53
PJ
61772012-05-27 Peter Jones <pjones@redhat.com>
6178
6179 The old code gives arguments to a printf function which can't work
6180 correctly, and the compiler complains.
6181
6182 * grub-core/tests/example_functional_test.c (example_test): Add
6183 missing text.
6184 * grub-core/tests/lib/test.c (add_failure): Rewrite.
6185 * include/grub/test.h (grub_test_assert_helper): New declaration.
6186 (grub_test_assert): Use grub_test_assert_helper.
6187
526ef13d
VS
61882012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
6191 (exfctest): ... this to avoid overlong filenames.
6192 All users updated.
6193
20dd511c
VS
61942012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6195
6196 Handle "." and ".." on squashfs.
6197
6198 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
6199 Make inode numbers into stack.
6200 (grub_squash_read_symlink): Use stack.
6201 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
6202 (make_root_node): Fill stack.
6203 (grub_squash_open): Use stack.
6204
1d80c62a
VS
62052012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6206
6207 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
6208 freeing.
6209
d336f652
VS
62102012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
6213 stderr on test calls.
6214
8b43f587
VS
62152012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6216
6217 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
6218
80a3dc3f
VS
62192012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6220
6221 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
6222
47e297d4
VS
62232012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
6226 "..".
6227
df042ccb
VS
62282012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
6231 (grub_hfsplus_iterate_dir): Add "." and "..".
6232
fc977f48
VS
62332012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 * grub-core/fs/cpio.c (canonicalize): Handle "..".
6236 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
6237
f3250e5f
VS
62382012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6239
6240 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
6241 (find_path): Handle "." and "..".
6242
fd8ed4c5
VS
62432012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6244
6245 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
6246 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
6247 (grub_affs_iterate_dir): Handle hardlinks.
6248
4ce776d2
MG
62492012-05-26 Matthew Garrett <mjg@redhat.com>
6250
6251 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
6252 (grub_efi_console_fini): Likewise.
6253 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
6254 (grub_video_gop_fill_mode_info): Rename to ...
6255 (grub_video_gop_fill_real_mode_info): ... this.
6256 (grub_video_gop_fill_mode_info): New function.
6257 (grub_video_gop_setup): Setup double framebuffer.
6258 (grub_video_gop_get_info_and_fini): Use original framebuffer.
6259 Free offscreen.
6260 (grub_video_gop_swap_buffers): Copy framebuffer.
6261 (grub_video_gop_fini): Free offscreen buffer.
6262 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
6263 New enum.
6264 (grub_efi_gop_blt_pixel): New struct.
6265
683031ba
VS
62662012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6267
6268 * gentpl.py: Remove error disabling for objconv.
6269
c2deb798
VS
62702012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * configure.ac: Remove -Wunitialized as it's not available on older
6273 compilers.
6274
62752012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
6276
6277 Fix extent overflow comparator.
6278
6279 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
6280 (grub_hfsplus_read_block): Set type.
6281 (grub_hfsplus_cmp_extkey): Compare type.
6282
d6b1fd36
VS
62832012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
6284
6285 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
6286
0a9aa0f6
VS
62872012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
6290 than 0.
6291
8360e159
VS
62922012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6293
6294 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
6295 (dejavu_bold_14.pf2): New target.
6296
501b9e4b
VS
62972012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 * configure.ac: Fix djvu font detection.
6300
7026b0e2
VS
63012012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
6304 ext* instead of ext2.
6305
c2a51ade
VS
63062012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6307
6308 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
6309 name with \0.
6310
8f803a5d
JU
63112012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
6312
6313 * docs/grub-dev.texi: Remove dot from .png.
6314
13c6353f
VS
63152012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
6318 protective entry in any slot.
6319 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
6320 if protective entry is found in any slot.
6321
6322 Protective entry in non-first slot make no sense but is a widespread
6323 brain damage.
6324
4cf6be1b
VS
63252012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
6328
937d1c44
VS
63292012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
6332 with old reiserfs.
6333 (grub_reiserfs_open): Don't free root.
6334
021d90ec
VS
63352012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
6338 after freeing for safety.
6339
967b2b64
VS
63402012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6341
6342 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
6343 Reported by: Jordan Uggla.
6344
34274d02
JU
63452012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
6346
967b2b64
VS
6347 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
6348 actual implementation. Specifically, clarify that the grub menu will
6349 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
6350 passed.
34274d02 6351
dcaaae9d
BH
63522012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
6353
6354 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
6355 of r0.
6356
7086ad52
VS
63572012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 Remove unjustified hard dependency of normal.mod on gfxterm.
6360
6361 * include/grub/term.h (grub_term_output): New member fullscreen.
6362 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
6363 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
6364 (grub_gfxterm): Set .fullscreen.
6365 * grub-core/normal/menu.c (menu_init): Use fullscreen.
6366 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
6367
37ed2c9b
VS
63682012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
6371 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 6372 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 6373
a4469c88
VS
63742012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
6377
4e461486
VS
63782012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6379
6380 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6381 a bad FS.
6382
aa78f5c4
VS
63832012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6384
6385 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
6386 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
6387
197626b5
VS
63882012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
6391 (grub_jfs_mount): Fill caseins.
6392 (grub_jfs_find_file): Respect caseins.
6393
8ad3f28c
VS
63942012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6395
6396 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
6397 through UTF-16.
6398
0c6c324e
VS
63992012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
6402 New argument origpath. All users updated.
6403
c6666ba6
VS
64042012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6405
6406 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
6407 (read_attr): Ensure that we read start of possibly compressed block.
6408
e28e5fe5
VS
64092012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6410
6411 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
6412 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
6413 All users updated.
6414
5fc23ab2
VS
64152012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6416
6417 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
6418 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
6419 (dejavu.pf2): Replace with ...
6420 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
6421 this.
6422
79dbc21c
VS
64232012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6424
6425 * util/grub.d/20_linux_xen.in: Add missing line.
6426
d2fcfb0c
VS
64272012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
6430 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
6431 (grub_utf16_to_utf8): Likewise.
6432
5560e9d6
VS
64332012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
6436 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
6437 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6438 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
6439 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6440 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
6441
64422012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
6443
6444 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6445 a bad FS.
6446
5560e9d6 64472012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
6448
6449 * grub-core/fs/udf.c (read_string): Bail out on size=0.
6450 (grub_udf_read_symlink): Handle read_string failure.
6451
5eae3175
VS
64522012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
6455 comment.
6456
c1ad82db
VS
64572012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 Fix handling of UDF symlinks.
6460
6461 * grub-core/fs/udf.c (read_string): New argument outbuf.
6462 All users updated.
6463 (grub_ufs_read_symlink): Rename to ...
6464 (grub_udf_read_symlink): ... this. All users updated.
6465 Handle symlinks with more than one component.
6466
33eca6e0
VS
64672012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
6470 symlinks. Replace leading colon with a slash.
6471
57f4a70b
VS
64722012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
6475 filename.
6476
38c8ee20
VS
64772012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
6480 match in inner node.
6481
2e57f28f
VS
64822012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
6485 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
6486 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
6487 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
6488 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
6489 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
6490 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
6491 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
6492 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
6493
fe8c2f11
VS
64942012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6495
6496 Use grub-probe and not cmp to check that disk is empty.
6497
6498 * util/grub-install.in: Use grub-probe for zero-check.
6499 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
6500 (probe): Handle PRINT_ZERO_CHECK.
6501 (argp_parser): Handle -t zero_check.
6502
65032012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
6504
6505 Flush block cache on adding disk to device map.
6506
6507 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
6508 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
6509 adding.
6510 (read_device_map): Likewise.
6511 (open_device): Flush on opening.
6512
690434e8
VS
65132012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6514
6515 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
6516 (handle_symlink): Fix off-by-one error.
6517 Canonicalize the target.
6518 (grub_cpio_dir): Canonicalize the name.
6519 Fix memory leak.
6520 Set directory.
6521 (grub_cpio_open): Canonicalize the name.
6522
742d2be6
VS
65232012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6524
6525 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
6526 handling.
6527
3244fe96
VS
65282012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6529
6530 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
6531 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
6532
8aeb1837
VS
65332012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6534
6535 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
6536 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 6537 All users updated.
8aeb1837 6538
9133fd05
VS
65392012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
6542 counterpart.
6543
6d521c5b
VS
65442012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 Fix UFS1 big file support.
6547
6548 * grub-core/fs/ufs.c (INODE): Removed.
6549 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
6550 64-bit.
6551 (INODE_MODE): Simplify.
6552 (grub_ufs_inode): Use uint64_t for size and not int64_t.
6553 (grub_ufs_lookup_symlink): Don't use INODE.
6554
21b82e17
VS
65552012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 Fix minixfs with non-power-of-two blocks since it's supported by minix.
6558
6559 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
6560 (grub_minix_data): Replace log_block_size with block_size.
6561 (grub_minix_read_file): Use block_size but avoid 64-bit division.
6562 (grub_minix_mount): Fill block_size.
6563
65642012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
6565
6566 * configure.ac: Bump to beta5.
6567
f417ed04
VS
65682012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 Fix wrapped HFS+ handling.
6571
6572 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
6573 blocks_start. All users updated.
6574 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
6575 wrapping offset.
6576 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
6577
607d282b
VS
65782012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 Fix long symlinks on reiserfs.
6581
6582 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
6583 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
6584 (grub_reiserfs_iterate_dir): Save size for non-directories.
6585 (grub_reiserfs_open): Don't reread stat block as we already know the
6586 size.
6587 (grub_reiserfs_read): Split into...
6588 (grub_reiserfs_read_real): ... and ...
6589 (grub_reiserfs_read): ...this.
6590
ae16024d
VS
65912012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6592
6593 Fix non-indexed JFS.
6594
6595 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
6596 (grub_jfs_data): New field namecomponentlen.
6597 (grub_jfs_mount): Fill namecomponentlen.
6598 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
6599
eea1e26e
VS
66002012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
6603 * tests/grub_script_echo1.in: Add tests.
6604
df760f77
VS
66052012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * util/grub-install.in: Ignore empty devicetree directory.
6608
5efb817d
B
66092012-05-08 Bean <bean123ch@gmail.com>
6610
6611 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
6612 All users updated.
6613 (free_rsm): Free header as well.
6614 (free_old_fragments): Fix memory leak.
6615 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
6616 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
6617 (destroy_pq): Likewise.
6618 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
6619
668ea6d2
VS
66202012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
6623 resulting hash as a precaution.
6624
1739b1fe
VS
66252012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6626
6627 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
6628 '_' in variable names.
6629 * grub-core/net/net.c (grub_net_network_level_interface_register):
6630 Likewise.
6631
6ae485aa
VS
66322012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6633
6634 Fix AFFS with non-512B blocks.
6635
6636 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
6637 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
6638 (grub_affs_data): Replace blocksize with log_blocksize.
6639 (grub_affs_read_block): Fix non-512B blocks.
6640 (grub_affs_read_symlink): Likewise.
6641 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
6642 (grub_affs_read): Fix non-512B blocks.
6643 (grub_affs_label): Likewise.
6644 (grub_affs_mtime): Likewise.
6645 (grub_affs_mount): Fix block detection routine.
6646
d20fab84
VS
66472012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 Add filesystem mtime to AFFS.
6650
6651 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
6652 (aftime2ctime): New function.
6653 (grub_affs_dir): Use aftime2ctime.
6654 (grub_affs_label): Fix return value.
6655 (grub_affs_mtime): New function.
6656 (grub_affs_fs): Add mtime.
6657
e87b10f5
VS
66582012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
6661 UTF-8.
6662
7dceec9b
VS
66632012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
6666 UTF-8.
6667
2f48221f
VS
66682012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6669
6670 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
6671
dacd85cf
VS
66722012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6673
6674 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
6675 flags.
6676 (FLAGS_CASE_SENSITIVE): New enum value.
6677 (cache_entry): New struct.
6678 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
6679 cache_size and cache.
6680 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
6681 Add log_blocksize and fshelp_flags.
6682 (grub_sfs_read_extent): Handle non-512 blocks.
6683 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
6684 (grub_sfs_read_file): Handle non-512 blocks.
6685 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
6686 fshelp_flags.
6687 (grub_sfs_read_symlink): Handle non-512 blocks.
6688 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
6689 (grub_sfs_dir): Free cache.
6690 (grub_sfs_close): Likewise.
6691
24e9a854
VS
66922012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6693
6694 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
6695 filesystems.
6696
62ace64d
VS
66972012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
6700
83b2e89c
VS
67012012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
6704
75ccaea3
VS
67052012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
6708 (grub_sfs_read_extent): Likewise.
6709 (grub_sfs_read_block): Likewise.
6710 (grub_sfs_mount): Likewise.
6711 (grub_sfs_iterate_dir): Likewise.
6712 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
6713 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
6714
1b8463f2
VS
67152012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 Fix errors on compressed NTFS with 512B clusters.
6718
6719 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
6720 types.
6721 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
6722 not 0.
6723 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
6724 Relax check for inline extents.
6725 (ntfscomp): Return correct -1 on error and not 0.
6726
4f8e368f
VS
67272012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * util/grub-install.in: Fix handling of prefix containing spaces.
6730
6f5d5ee8
VS
67312012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
6734 (grub_squash_read_data): Fix offset byte-swapping.
6735
ce41ab7a
VS
67362012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
6739 per common usage and preffered in several parts of code.
6740 (grub_memcmp): Likewise.
6741 (grub_strncmp): Likewise.
6742 * include/grub/misc.h (grub_strcasecmp): Likewise.
6743 (grub_strncasecmp): Likewise.
6744 * Makefile.util.def (cmp_test): New test.
6745 (grub_script_strcmp): Likewise.
6746 * tests/cmp_unit_test.c: New file.
6747 * tests/grub_script_strcmp.in: Likewise.
6748 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
6749
49717bf4
VS
67502012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6751
6752 * include/grub/pci.h: Move enums into no-asm part.
6753
0a308f64
VS
67542012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6755
6756 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
6757
1796965f
ST
67582012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
6759
6760 * util/getroot.c (find_hurd_root_device): Try to make error message
6761 and comments to translators clearer.
6762
4e9b2819
VS
67632012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6764
6765 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
6766
076aeb50
VS
67672012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6768
6769 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
6770 btrfs.
6771
19424d94
VS
67722012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6773
6774 * docs/grub.cfg: Update.
6775
ebb73076
VS
67762012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6777
6778 * docs/grub.texi (PXE): Remove not present variables.
6779
9a1b669c
VS
67802012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 * grub-core/net/net.c (defserver_set_env): New function.
6783 (defserver_get_env): Likewise.
6784 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
6785
d38bf7d3
VS
67862012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6787
6788 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
6789 entries.
6790
67912012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
6792
6793 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
6794 * grub-core/kern/emu/hostdisk.c: Likewise.
6795
e5e4ca48
ST
67962012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6797
6798 Handle hurd userspace partitions.
6799
6800 * util/getroot.c (find_hurd_root_device): New function.
6801 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
6802
56bb5dd5
VS
68032012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
6806 names.
6807 Reported by: Bastian Blank.
6808
9e8bc27a
VS
68092012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6810
6811 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
6812 crossing page boundary.
6813
aa01499d
VS
68142012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6815
6816 Fix B-tree search in BFS, especially in presence of non-ASCII
6817 characters.
6818
6819 * grub-core/fs/bfs.c (bfs_strcmp): New function.
6820 (find_in_b_tree): Use standard bsearch + btree algorithm.
6821
57006035
VS
68222012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6823
6824 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
6825 and so on.
6826
9d34bb85
MG
68272012-05-03 Matthew Garrett <mjg@redhat.com>
68282012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6829
6830 Suspend broadcom cards in order to stop their DMA.
6831
6832 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
6833 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
6834 (pci): Don't build on x86 EFI.
6835 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
6836 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
6837 New function.
6838 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
6839 stop_broadcom if running on EFI.
6840 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
6841 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
6842 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
6843 (grub_pci_find_capability): New proto.
6844
01aab997
VS
68452012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 * docs/grub.texi: Remove dot from the extension as it apparently
6848 doesn't work with some makeinfo versions.
6849
fbd8dca6
VS
68502012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6851
6852 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
6853 with GRUB expectance.
6854
dab797f4
VS
68552012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6856
6857 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
6858
1516bfb4
VS
68592012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
6862 zero after directory block since last entry may be not 0-terminated if
6863 it ends on block boundary. Use continue instead of if spanning whole
6864 loop.
6865
a3a0eace
VS
68662012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 Support 4K sectors UDF inline files.
6869
6870 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
6871 (grub_udf_extended_file_entry): Likewise.
6872 (grub_fshelp_node): Name the anonymous union. Put block at the end.
6873 All users updated.
6874 (get_fshelp_size): New function.
6875 (grub_udf_read_icb): Read whole block.
6876 (grub_udf_iterate_dir): Likewise.
6877 (grub_udf_dir): Likewise.
6878 (grub_udf_open): Likewise.
6879
c82f16c1
VS
68802012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
6883
59fd2aac
VS
68842012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6885
6886 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
6887 inline symlinks in addition to workaround.
6888
3b4afb4d
VS
68892012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6890
6891 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
6892
f45c794a
VS
68932012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
6896
f25cecbd
VS
68972012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6898
6899 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
6900
bb9a34e8
VS
69012012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6902
6903 Fix reiserfs big seek times.
6904
6905 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
6906 exact. All users updated.
6907 (grub_reiserfs_read): Use nearest btree search for seeking.
6908 Fix return value on error.
6909
dc478aea
VS
69102012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6911
6912 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
6913 entries.
6914 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
6915 * docs/grub.texi: Update menuentry description.
6916
8db10f47
VS
69172012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6918
6919 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
6920 crash when embedding onto filesystem.
6921
bcb288ed
VS
69222012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
6925 name.
6926
a626fdd7
VS
69272012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6928
6929 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
6930
b2f68477
VS
69312012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6932
6933 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
6934 commit.
6935
ba15b2af
B
69362012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
69372012-05-01 Bean <bean123ch@gmail.com>
6938
6939 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
6940
a188012e
VS
69412012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6942
6943 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
6944 Special behaviour for len = 0 to read whole file isn't used anywhere and
6945 can cause buffer ovewrflows in several places.
6946
f0a53ed2
VS
69472012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
6950
5ed554f0
VS
69512012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 Handle RAIDZ on non-512B sectors.
6954
6955 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
6956 max_children_ashift.
6957 (fill_vdev_info_real): Fill max_children_ashift.
6958 (read_device): Use max_children_ashift.
6959
ddc58357
VS
69602012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
6963
e3282399
VS
69642012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
6967 disk names.
6968 * docs/grub.texi: Update device.map parts.
6969
ee618bd4
VS
69702012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 Don't scan into non-diskfilter devices having diskfilter names.
6973
6974 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
6975 (scan_disk): New argument accept_diskfilter. Fix recursion depth
6976 handling.
6977 (scan_disk_hook): New function.
6978
bdf88864
B
69792012-04-29 Bean <bean123ch@gmail.com>
6980
6981 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
6982 allocation.
6983
32745f51
MK
69842012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
6985
6986 * configure.ac: Detect starfield theme font path
6987 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
6988
bc95c8c0
VS
69892012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6990
6991 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
6992 geometry on serial consoles.
6993
147fbcab
VS
69942012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6995
6996 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
6997 because of network consoles.
6998
0f42c889
VS
69992012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7000
7001 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
7002 handling.
7003
4a3594c9
VS
70042012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7005
7006 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
7007 falls on Q syndrom.
7008
5cb53879
VS
70092012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7010
7011 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
7012 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
7013
b282dfe5
VS
70142012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7015
7016 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
7017 Allocate at lest 8192 for temporary buffer as required for lzo.
7018
daa59f47
VS
70192012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
7022 to cluster_bits, since it's already added in.
7023 (grub_fat_read_data): Likewise.
7024
986748ce
VS
70252012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7026
7027 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
7028 as long as cluster size is multiple of 512 bytes.
7029
a20f6ad0
VS
70302012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7031
7032 * util/grub-mkrescue.in: Fix locale directory.
7033
385f9abb
VS
70342012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * grub-core/kern/emu/hostdisk.c (map): Make static.
7037
1c557d30
B
70382012-04-23 Bean <bean123ch@gmail.com>
7039
7040 * util/grub-fstest.c (fstest): Add missing break.
7041
524b5d3a
ST
70422012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7043
7044 Fix hurd build.
7045
7046 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
7047 not define nr variable.
fe4824e9 7048 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
7049 find_root_devices_from_poolname, find_root_devices_from_libzfs,
7050 grub_find_device): Do not define.
524b5d3a 7051
9a06490c
VS
70522012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 Fix kfreebsd compile and behaviour.
7055
7056 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
7057 format-security.
7058 * util/getroot.c: Fix wait.h include.
7059 (grub_guess_root_devices): Error if grub_find_device fails.
7060 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
7061 (grub_util_get_dev_abstraction): Likewise.
7062 (grub_util_pull_device): Likewise.
7063 (grub_util_get_grub_dev): Likewise.
7064 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
7065
48143d96
VS
70662012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7067
7068 Fix and unify wholedisk detection.
7069
7070 * util/getroot.c (convert_system_partition_to_system_disk): New argument
7071 is_part. All users updated.
7072 (device_is_wholedisk): Removed.
7073 (grub_util_biosdisk_get_grub_dev): Use is_part.
7074
ebbd24f3
VS
70752012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7076
7077 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
7078 mode.
7079
56f7aa1e
VS
70802012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7081
7082 * configure.ac: Bump to beta4.
7083
9c815e01
VS
70842012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
7087 --fs-uuid --set UUID syntax.
7088
59e2651a
VS
70892012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7090
7091 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
7092 disunification.
7093
54e03cfc
VS
70942012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7095
7096 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
7097
81092a75
MK
70982012-04-18 Mads Kiilerich <mads@kiilerich.com>
7099
7100 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
7101
f8315e14
MG
71022012-04-18 Mike Gilbert <floppym@gentoo.org>
7103
7104 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
7105
1501ac21
B
71062012-04-18 Bean <bean123ch@gmail.com>
7107
7108 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
7109 place.
7110
cb7f944e
VS
71112012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
7114 users updated.
7115 (grub_util_biosdisk_read): Handle Linux partitions not exactly
7116 corresponding to GRUB partitions.
7117 (grub_util_biosdisk_write): Likewise.
7118
b72d44a1
VS
71192012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7120
7121 Scan mdraid before LVM.
7122
7123 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
7124 (grub_diskfilter_register_front): ... this.
7125 (grub_diskfilter_register_back): New function.
7126 All users of grub_diskfilter_register updated.
7127
33d918b8
VS
71282012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 * util/grub-install.in: Fix an automatic target detection bug.
7131
c6ca973d
VS
71322012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7133
7134 * util/grub-install.in: New option --efi-directory.
7135
b41be562
VS
71362012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7137
7138 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
7139 boot services if we have no other choice.
7140
71412012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7142
7143 * util/grub-mknetdir.in: Rename --override-directory to --directory and
7144 document it.
7145 * tests/util/grub-shell.in: Update to --directory.
7146
e0595a73
VS
71472012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7148
7149 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
7150
4ed80652
VS
71512012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
7154 (grub_minix_read_file): Likewise.
7155 (grub_minix_read_inode): Likewise.
7156 (grub_minix_find_file): Likewise.
7157 (grub_minix_dir): Likewise.
7158
56008077
VS
71592012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7160
7161 * util/grub-setup.c (setup): Fix partition handling and blocklist
7162 check.
7163
ee520775
VS
71642012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7165
7166 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
7167 redundant buggy overlap check.
7168
16fc9293
VS
71692012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7170
7171 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
7172 and grub-mknetdir.
7173
9bab65c4
VS
71742012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
7177 kh.loadflags on pre-2.00 kernels.
7178
3c491b47
VS
71792012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7180
7181 Terminate UNDI and PXE before launching the payload to avoid problems
7182 with DMA.
7183
7184 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
7185 (grub_loader_flags): ... this. All users updated.
7186 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
7187 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
7188 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
7189 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
7190 function.
7191 (grub_pxe_restore): Likewise.
7192 (fini_hnd): New var.
7193 (GRUB_MOD_INIT): Register shutdown hook.
7194 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
7195 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
7196 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
7197 (grub_loader_set): Rename second argument to flags.
7198
851ffada
VS
71992012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
7202 written bytes.
7203 (grub_get_num_of_utf8_bytes): New function.
7204 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
7205 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
7206 executing it.
7207 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
7208 (grub_ucs4_to_utf8): Change return type.
7209
491c57a8
VS
72102012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7211
7212 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
7213 warning.
851ffada
VS
7214 * grub-core/fs/bfs.c (hop_level): Likewise.
7215 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 7216
756773df
VS
72172012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 * grub-core/lib/adler32.c: Recode due to license unclearness.
7220
fd556a96
VS
72212012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7222
7223 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
7224 (test_header): Likewise.
7225
9f9d3f69
VS
72262012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7227
7228 Fix --help formatting.
7229
7230 * util/grub-mkconfig_lib.in (print_option_help): New function.
7231 (grub_fmt): Likewise.
7232 * util/grub-install.in: Use print_option_help and grub_fmt.
7233 * util/grub-kbdcomp.in: Likewise.
7234 * util/grub-mkconfig.in: Likewise.
7235 * util/grub-mknetdir.in: Likewise.
7236 * util/grub-mkrescue.in: Likewise.
7237 * util/grub-mkstandalone.in: Likewise.
7238 * util/grub-reboot.in: Likewise.
7239 * util/grub-set-default.in: Likewise.
7240 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7241
561ec77e
VS
72422012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7243
7244 * linguas.sh: Remove autogenerated *.po.
7245
7ec2b021
VS
72462012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7247
7248 * po/README: Move language fetcing to ...
7249 * linguas.sh: ... here.
7250 * po/README: Point to linguas.sh.
7251
a88f3270
VS
72522012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 * po/README: Exclude ko.po due to disclaimer problems.
7255
d61357ce
VS
72562012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7257
7258 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
7259 len = 0.
7260 (grub_gettext_translate_real): Handle 0th string.
7261 (grub_gettext_translate): Ensure that "" isn't translated.
7262
505e41dc
VS
72632012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7264
7265 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
7266 TRANSLATORS comment.
7267 (grub_diskfilter_print_partmap): Propagate changing of error into
7268 warning.
7269
e44092db
VS
72702012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7271
7272 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
7273 to uint64_t to prevent overflow.
7274 (grub_diskfilter_lv): Increase start_extent and extent_count
7275 to uint64_t to prevent overflow.
7276
9b83956a
VS
72772012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7278
7279 * configure.ac: Increase version.
7280
da0d5b3f
VS
72812012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
7284
7285 * po/Rules-translit: New file.
7286 * po/arabic.sed: Likewise.
7287 * po/cyrillic.sed: Likewise.
7288 * po/greek.sed: Likewise.
7289 * po/hebrew.sed: Likewise.
7290 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
7291 * po/Makefile.in.in: Add extra_dist4.
7292
ac66b453
VS
72932012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7294
7295 Handle big-endian minixfs (fixes minixfs tests on bigendian).
7296
7297 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
7298 modify names. Introduce MODE_BIGENDIAN.
7299 * grub-core/fs/minix_be.c: New file.
7300 * grub-core/fs/minix2_be.c: Likewise
7301 * grub-core/fs/minix3_be.c: Likewise.
7302 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
7303 minix3_be.
7304 * grub-core/Makefile.core.def (minix_be): New module.
7305 (minix2_be): Likewise.
7306 (minix3_be): Likewise.
7307
73082012-04-01 Felix <email@hamburg.de>
7309
7310 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
7311 (devs): Add MBP 2011.
7312
0a2d5a82
VS
73132012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
7316
d1625889
VS
73172012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/normal/cmdline.c (print_completion): New field
7320 prompt_len.
7321 (grub_cmdline_get): Handle width properly.
7322
6d36a236
VS
73232012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7324
7325 * grub-core/commands/lsacpi.c (options): Add missing terminator.
7326
9576977e
VS
73272012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7328
7329 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 7330 after 29th of February.
9576977e 7331
d73ff15d
VS
73322012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 Fix exfat endianness handling.
7335
7336 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
7337 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
7338 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
7339 Byte-swap utf16 when necessary.
7340 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
7341
bbb39a45
AB
73422012-03-31 Anton Blanchard <anton@samba.org>
73432012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7344
7345 Fix btrfs endianness handling.
7346
7347 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
7348 (lower_bound): Make root uint64_t. Use root in le.
7349 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
7350 (find_path): Fix template key init.
7351 (grub_btrfs_dir): Fix mtime byteswap.
7352 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
7353
354e0af7
VS
73542012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
7357 recursion_depth. Break infinite resursions. All users updated.
7358
4e75f21c
VS
73592012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7360
7361 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
7362 after free.
7363 Reported by: Peter Jones.
7364
25581802
AB
73652012-03-31 Anton Blanchard <anton@samba.org>
7366
7367 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
7368 8 bit values.
7369
08fbf92e
VS
73702012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7371
7372 * util/grub-install.in: Fix nvram call for PreP.
7373
5d1182a6
VS
73742012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7375
7376 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
7377 the error when some elements are missing into a warning.
7378
3f8cdd90
VS
73792012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
7382
51006716
CW
73832012-03-28 Colin Watson <cjwatson@ubuntu.com>
7384
7385 * docs/grub.texi (Invoking grub-probe): New section.
7386 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
7387
e1bd676b
VS
73882012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7389
7390 Fix tab and wide character handling in editor and menu.
7391
7392 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
7393 agglomerate control characters with combining marks.
7394 (bidi_line_wrap): Allow break on tab.
7395 (grub_unicode_get_comb_start): New function.
7396 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
7397 and tab correctly.
7398 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
7399 with a space.
7400 * grub-core/normal/term.c (print_ucs4_terminal): New argument
7401 fixed_tab_size. All users updated.
7402 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
7403 (grub_term_getcharwidth): Handle \t.
7404 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
7405 and copy.
7406
22e6a774
VS
74072012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7408
7409 Handle big-endian mdraid.
7410
7411 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
7412 * grub-core/Makefile.core.def (mdraid09_be): New module.
7413 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
7414 rather than grub_le_to_cpu* and grub_cpu_to_le*.
7415 * grub-core/disk/mdraid_linux_be.c: New file.
7416
3c0eae66
VS
74172012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
7420
b6cf74c9
VS
74212012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7422
7423 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
7424 missing quotes which caused confusion among translators.
7425
83c93b9c
VS
74262012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 * util/grub-mkconfig_lib.in: Fix typo.
7429
ac6fd218
VS
74302012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
7433 spaces.
7434 * tests/grub_script_leading_whitespace.in: New file.
7435 * Makefile.util.def (grub_script_leading_whitespace): New test.
7436
ba287dd8
VS
74372012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
7440 to work.
7441
d2d58d0a
VS
74422012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7443
7444 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
7445 starts with control character.
7446
0382d9bb
VS
74472012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7448
7449 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
7450 overflow.
7451 (grub_gdb_outbuf): Likewise.
7452
d83ff9f9
VS
74532012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
7456 zero terminator. Fixes a crash.
7457
2282da4a
VS
74582012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7459
7460 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
7461 beyond 4 GiB.
7462 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
7463 images independently of preffered adderss field.
7464
0ae4f0bd
VS
74652012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
7468 * grub-core/commands/regexp.c: Likewise.
7469 * grub-core/loader/i386/linux.c: Likewise.
7470 * grub-core/partmap/msdos.c: Likewise.
7471 * grub-core/script/execute.c: Likewise.
7472 * grub-core/term/gfxterm.c: Likewise.
7473
546fbe9b
VS
74742012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7475
7476 Add variable parsing in $"..." and fix several mismatches with bash.
7477
7478 * Makefile.util.def (grub_script_gettext): New test.
7479 * grub-core/script/execute.c (parse_string): New function.
7480 (gettext_append): Likewise.
7481 (grub_script_arglist_to_argv): Use gettext_append.
7482 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
7483 * tests/grub_script_gettext.in: New file.
7484
9fdb2d7b
VS
74852012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 Fix handling of leading spaces in scripts.
7488
7489 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
7490 spaces.
7491 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
7492 other than skipping \r. All users updated.
7493 * tests/grub_script_echo1.in: Add space-related tests.
7494 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
7495
1a1ac4f6
VS
74962012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7497
7498 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
7499
b63d89b6
VS
75002012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 * configure.ac: Bump up the version to beta2.
7503
17f38c0f
VS
75042012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7505
7506 Fix gettext reload bugs (e.g. inability to disable gettext
7507 once enabled).
7508
7509 * grub-core/gettext/gettext.c: Encapsulate all static variables in
7510 main_context and secondary_context. All functions updated.
7511 (grub_gettext_translate): Rename to ...
7512 (grub_gettext_translate_real): ... this. Return NULL on failed
7513 translate.
7514 (grub_gettext_translate): Handle secondary context.
7515 (grub_gettext_delete_list): Close file and zero-out the context.
7516 (grub_mofile_open): Don't call grub_gettext_delete_list.
7517 Don't close file.
7518 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
7519 if locale="" to avoid pointless error message.
7520 (grub_gettext_env_write_lang): Update lang even if load fails.
7521 Handle secondary context.
7522 (grub_gettext_reread_prefix): New function.
7523 (read_main): Likewise.
7524 (read_secondary): Likewise.
7525 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
7526 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
7527 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
7528 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
7529
8e56f870
VS
75302012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7531
7532 * configure.ac: Decrease warning level to avoid spurious warnings and
7533 to be able to compile with GCC 4.2.
7534 * Makefile.util.def: Remove -Wno-error=logical-op.
7535
82f6d455
WB
75362012-03-10 William Bittner <william.bittner@gmail.com>
7537
7538 * util/import_unicode.py: Add missing brackets around string for
7539 python 3 support.
7540
1ecd61a4
VS
75412012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7542
7543 Fix efi chainloader on network root.
7544
7545 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
7546 network devices.
7547 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
7548 New function.
7549
14361ee8
VS
75502012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7551
7552 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
7553 unused show_text member.
7554 * docs/grub.texi: Document "text" property.
7555
922aabf3
VS
75562012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7557
7558 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
7559 in dprintf.
7560
ec316771
VS
75612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7562
7563 Fix IMSM handling on Fedora.
7564
7565 * util/getroot.c (grub_util_is_imsm): New function.
7566 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
7567
0f021838
VS
75682012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7569
7570 * Makefile.am: Strip gold section.
7571 * conf/Makefile.common: Likewise.
7572 * gentpl.py: Likewise.
7573 * grub-core/Makefile.core.def: Likewise.
7574 * grub-core/genmod.sh.in: Likewise.
7575
1039c8eb
VS
75762012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7577
7578 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
7579 * util/grub.d/20_linux_xen.in: Likewise.
7580 Based on Debian patch.
7581
6dd412cd
VS
75822012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7583
7584 * util/grub.d/10_linux.in: Fix syntax error resulting in
7585 Richard Laager's patch.
7586 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
7587
3fd8bae5
VS
75882012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7589
7590 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
7591 dependencies.
7592
7eea1671
RL
75932012-03-10 Richard Laager <rlaager@wiktel.com>
7594
7595 * util/grub.d/10_linux.in: Fix ZFS root passing.
7596
e8e0566b
VS
75972012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7598
7599 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
7600 * grub-core/commands/xnu_uuid.c: Likewise.
7601 * grub-core/loader/efi/appleloader.c: Likewise.
7602 * grub-core/script/execute.c: Likewise.
7603 * grub-core/script/main.c: Likewise.
7604 * util/grub-mkfont.c: Likewise.
7605
1acc5b1f
VS
76062012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7607
7608 * util/grub-mkfont.c (options): Use more appropriate "select" that
7609 "set" for face index.
7610
35d70620
VS
76112012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7612
7613 * util/grub-editenv.c (options): Gettextize command summaries.
7614
c9eb96b5
VS
76152012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7616
7617 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
7618 "out of memory" error messagge.
7619
1f493136
VS
76202012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7621
7622 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
7623 of diskfilter for diskfilter on diskfilter support.
7624
6d790129
VS
76252012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7626
7627 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
7628
005f46c9
VS
76292012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7630
7631 * util/grub-install.in: Check for themes/starfield/theme.txt and not
7632 themes/starfield.
7633
c8f778a0
VS
76342012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7635
7636 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
7637
de1e64eb
VS
76382012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
7641
c6d54211
VS
76422012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7643
7644 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
7645 of error message.
7646
dd390777
VS
76472012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
7648
7649 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
7650
5fd1c522
VS
76512012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
7652
7653 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
7654 message.
c6d54211 7655 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 7656
fae01f6c
VS
76572012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7658
7659 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
7660 Gettextize.
7661 * util/grub-mount.c (options): Likewise.
7662
292fdaff
VS
76632012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7664
7665 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
7666 gettextize.
7667 * grub-core/commands/search_wrap.c (options): Likewise.
7668
ecdbae77
VS
76692012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
7672
52bfedfa
VS
76732012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7674
7675 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
7676 size calculation.
7677 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
7678 none is known.
7679
55b20e58
VS
76802012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
7683 "temporary" since it's used in identifier and is limited in space.
7684
fda9d101
VS
76852012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7686
7687 * po/POTFILES.in: Regenerate. Include *.h since they contain
7688 translatable strings as well.
7689
6a0295e2
VS
76902012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
7693 byte-swap on big-endian.
7694 Reported by: Lennart Sorensen
7695
807fb77c
VS
76962012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
7699 (allocate_pages): Improve dprintf.
7700 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
7701 code32_start. Fill code32_start and kernel_alignment in params.
7702 (grub_cmd_initrd): Use prot_init_space.
7703
61ac50ba
VS
77042012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7705
7706 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
7707
abdd26dd
VS
77082012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 * util/grub-install.in: Add missing dot at the end of sentence.
7711
6e69da9c
VS
77122012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7713
7714 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
7715 * grub-core/commands/videotest.c: Likewise.
7716 * grub-core/loader/i386/linux.c: Likewise.
7717
4a929343
VS
77182012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
7721 sentence.
7722 Reported by: Milo Casagrande.
7723
bb51c6c6
VS
77242012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
7727 * grub-core/commands/gptsync.c: Likewise.
7728 * grub-core/commands/hashsum.c: Likewise.
7729 * grub-core/commands/i386/pc/sendkey.c: Likewise.
7730 * grub-core/commands/legacycfg.c: Likewise.
7731 * grub-core/io/gzio.c: Likewise.
7732 * grub-core/net/net.c: Likewise.
7733 * grub-core/term/gfxterm.c: Likewise.
7734 * grub-core/term/terminfo.c: Likewise.
7735 * grub-core/tests/test_blockarg.c: Likewise.
7736 * grub-core/video/video.c: Likewise.
7737 * util/grub-install.in: Likewise.
7738 * util/grub-mkfont.c: Likewise.
7739
b2b149cb
VS
77402012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7741
7742 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
7743
c7c080ad
VS
77442012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7745
7746 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 7747 Reported by: David Prévot.
c7c080ad 7748
f2e243c0
VS
77492012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7750
7751 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
7752 description.
7753
09963c76
VS
77542012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7755
7756 * util/grub-script-check.c (main): Fix a syntax error message which was
7757 unclear.
7758
a50514a8
VS
77592012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7760
7761 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
7762
4650daec
VS
77632012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7764
7765 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
7766 messages.
7767
77682012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
7769
7770 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
7771 without argument.
7772 * util/grub-mount.c (options): Likewise.
7773
bbc5a342
VS
77742012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7775
7776 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
7777
ef292a87
VS
77782012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7779
7780 * grub-core/net/http.c: Add TRANSLATORS comments.
7781 * grub-core/normal/cmdline.c: Likewise.
7782 * grub-core/normal/misc.c: Likewise.
7783 * grub-core/partmap/msdos.c: Likewise.
7784 * grub-core/parttool/msdospart.c: Likewise.
7785 * grub-core/script/execute.c: Likewise.
7786 * grub-core/script/main.c: Likewise.
7787 * grub-core/term/terminfo.c: Likewise.
7788 * grub-core/video/bitmap.c: Likewise.
7789 * util/grub-install.in: Likewise.
7790 * util/grub-mkimage.c: Likewise.
7791 * util/grub-mklayout.c: Likewise.
7792 * util/grub-setup.c: Likewise.
7793
0fc19bd0
VS
77942012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7795
7796 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
7797 with similar messages in grub-fstest.
7798
d95862ef
VS
77992012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7800
7801 * util/grub-install.in: Unify "option requires an argument" message
7802 with similar messages in other files.
7803 * util/grub-mkconfig.in: Likewise.
7804
b7308f90
VS
78052012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7806
7807 * util/grub-set-default.in: Replace printf with gettext_printf (the
7808 string in in question is already translated from grub-reboot)
7809
559dc587
VS
78102012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7811
7812 * configure.ac: Bump up the version to beta1.
7813
1a11761f
VS
78142012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7815
7816 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
7817 case when min_align = 0.
7818
24539abd
VS
78192012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7820
7821 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
7822 and fix a case when line_start overflows.
7823
32bd735b
VS
78242012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7825
7826 * util/grub-reboot.in (usage): Mention id posibility.
7827 * util/grub-set-default.in (usage): Likewise.
7828
1a2fd1e6
VS
78292012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
7832 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
7833 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7834 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7835 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7836 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7837 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7838
90eeab76
VS
78392012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7840
7841 * grub-core/commands/menuentry.c (options): Remove
7842 GRUB_ARG_OPTION_REPEATABLE.
7843 Reported by: Andreas Vogel
7844
5ad1be82
AV
78452012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
7846
7847 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
7848
cb055286
HE
78492012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
7850
7851 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
7852 error.
7853
93b1cd79
VS
78542012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7855
7856 Use sort -V by the idea of Georgi Georgiev.
7857
7858 * util/grub-mkconfig_lib.in (version_sort): New function.
7859 (version_test_numeric): Use version_sort.
7860
0cdc126c
VS
78612012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7862
7863 Use submenus in grub-mkconfig.
7864
7865 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
7866 * util/grub-mkconfig_lib.in (grub_quote): New function.
7867 (gettext_printf): Use gettext and not gettext_quoted to fix several
7868 messages.
7869 * util/grub.d/10_hurd.in: Use submenus.
7870 * util/grub.d/10_kfreebsd.in: Likewise.
7871 * util/grub.d/10_linux.in: Likewise.
7872 * util/grub.d/10_netbsd.in: Likewise.
7873 * util/grub.d/20_linux_xen.in: Likewise.
7874 * util/grub.d/30_os-prober.in: Likewise.
7875 * util/grub.d/10_illumos.in: Add missing quoting.
7876 * util/grub.d/10_windows.in: Likewise.
7877
d9bef9bc
VS
78782012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7879
7880 Fix menu title instability bug.
7881
7882 * grub-core/commands/menuentry.c (options): New option --id.
7883 (grub_normal_add_menu_entry): New argument id. All users updated.
7884 (grub_cmd_menuentry): Handle --id.
7885 (grub_menu_init): Accept unknown arguments.
7886 * grub-core/normal/main.c (features): Add feature_menuentry_id and
7887 feature_menuentry_options.
7888 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
7889 saved_entry.
7890 (get_entry_number): Match with id as well.
7891 * include/grub/menu.h (grub_menu_entry): New member id.
7892 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
7893 * util/grub.d/00_header.in: Define menuentry_id_option.
7894 * util/grub.d/10_hurd.in: Define id.
7895 * util/grub.d/10_illumos.in: Likewise.
7896 * util/grub.d/10_kfreebsd.in: Likewise.
7897 * util/grub.d/10_linux.in: Likewise.
7898 * util/grub.d/10_netbsd.in: Likewise.
7899 * util/grub.d/10_windows.in: Likewise.
7900 * util/grub.d/20_linux_xen.in: Likewise.
7901 * util/grub.d/30_os-prober.in: Likewise.
7902
79032012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
7904
7905 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
7906 "scope" with "body".
7907
7c8d0ce7
VS
79082012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
7911 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
7912 prot_size and prot_file_size.
7913
49de079b
VS
79142012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7915
7916 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
7917 All users updated. If easily=1 require raid-5/-6 to be full.
7918 (is_node_readable): Likewise.
7919 (scan_devices): Scan incomplete but readable LVs at the end.
7920 (grub_diskfilter_memberlist): Pull missing devices.
7921 (insert_array): Skip scanning until device is complete or scan is
7922 done otherwise.
7923 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
7924 check.
7925 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
7926 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
7927
aff05d45
MG
79282012-03-03 Matthew Garrett <mjg@redhat.com>
79292012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7930
7931 Avoid EFI boot services when loading Linux.
7932
7933 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
7934 avoid_efi_bootservices. All users updated.
7935 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
7936 argument avoid_efi_bootservices. All users updated.
7937 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
7938 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
7939 align, min_align, relocatable, prefered_address. All users updated.
7940 Allocate avoiding boot services if kernel is relocatable.
7941 (grub_cmd_linux): Check if kernel is relocatable.
7942 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
7943 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
7944 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
7945 avoid_efi_boot_services.
7946 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
7947 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
7948 (linux_kernel_params): Likewise.
7949
3935dde2
MG
79502012-03-03 Matthew Garrett <mjg@redhat.com>
79512012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7952
7953 Use EDID on EFI.
7954
7955 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
7956 datasize_out.
7957 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
7958 modes. Set gop_handle.
7959 (grub_video_gop_get_edid): New function.
7960 (grub_gop_get_preferred_mode): Likewise.
7961 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
7962 (grub_video_efi_gop_adapter): Set .get_edid.
7963 * include/grub/efi/edid.h: New file.
7964 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
7965
32107ec0
VS
79662012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7967
7968 * util/grub-install.in: Load efivars unconditionally.
7969
e70a2c50
VS
79702012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7971
7972 * po/Rules-piglatin: Change suffix from .po-update-en to
7973 .po-update-en-piglatin.
7974
8f9cace1
VS
79752012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7976
7977 Add a pig farm.
7978
7979 * po/piglatin.sed: New file.
7980 * po/en@piglatin.header: Likewise.
7981 * po/Rules-piglatin: Likewise.
7982 * po/README: Add en@piglatin to autogenerated languages.
7983
8f95d002
VS
79842012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7985
7986 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
7987 "Command for ...".
7988 * grub-core/commands/hdparm.c (options): Use "Display" rather than
7989 "Check" since we don't check anything.
7990 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
7991 is 64-bit one.
7992 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
7993 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
7994 (grub_md_sha512_real): Likewise.
7995
805a8dcc
VS
79962012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7997
7998 * grub-core/commands/gptsync.c: Fix typographic quoting.
7999 * grub-core/commands/ieee1275/suspend.c: Likewise.
8000 * grub-core/commands/parttool.c: Likewise.
8001 * grub-core/commands/search_wrap.c: Likewise.
8002 * grub-core/commands/videoinfo.c: Likewise.
8003 * grub-core/gfxmenu/gui_label.c: Likewise.
8004 * grub-core/hello/hello.c: Likewise.
8005 * grub-core/kern/emu/main.c: Likewise.
8006 * grub-core/net/net.c: Likewise.
8007 * grub-core/normal/menu.c: Likewise.
8008 * grub-core/normal/menu_text.c: Likewise.
8009 * grub-core/normal/misc.c: Likewise.
8010 * util/grub-editenv.c: Likewise.
8011 * util/grub-install.in: Likewise.
8012 * util/grub-kbdcomp.in: Likewise.
8013 * util/grub-mkconfig.in: Likewise.
8014 * util/grub-mknetdir.in: Likewise.
8015 * util/grub-mkrescue.in: Likewise.
8016 * util/grub-mkstandalone.in: Likewise.
8017 * util/grub-reboot.in: Likewise.
8018 * util/grub-set-default.in: Likewise.
8019 * util/grub-setup.c: Likewise.
8020 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8021
40211ab8
VS
80222012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8023
8024 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
8025 * grub-core/commands/keystatus.c: Likewise.
8026 * grub-core/commands/loadenv.c: Likewise.
8027 * grub-core/commands/probe.c: Likewise.
8028 * grub-core/commands/regexp.c: Likewise.
8029 * grub-core/commands/true.c: Likewise.
8030 * grub-core/commands/videoinfo.c: Likewise.
8031 * grub-core/disk/cryptodisk.c: Likewise.
8032 * grub-core/disk/ldm.c: Likewise.
8033 * grub-core/disk/loopback.c: Likewise.
8034 * grub-core/disk/luks.c: Likewise.
8035 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8036 * grub-core/kern/disk.c: Likewise.
8037 * grub-core/kern/emu/hostdisk.c: Likewise.
8038
0c7d99c7
VS
80392012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
8042 * util/grub-install.in: Add missing quote in the comment.
8043
e7d2559b
VS
80442012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8045
8046 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
8047 * grub-core/commands/lsmmap.c: Likewise.
8048 * grub-core/commands/minicmd.c: Likewise.
8049 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8050 * grub-core/commands/regexp.c: Likewise.
8051 * grub-core/gdb/gdb.c: Likewise.
8052 * grub-core/term/gfxterm.c: Likewise.
8053 * util/grub-mkconfig.in: Likewise.
8054 * util/grub-mkfont.c: Likewise.
8055 * util/grub-mklayout.c: Likewise.
8056 * util/grub-mknetdir.in: Likewise.
8057 * util/grub-mkrescue.in: Likewise.
8058 * util/grub.d/30_os-prober.in: Likewise.
8059
49ce9e50
VS
80602012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8061
8062 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
8063 with "Direct color" and "Packed" with "Packed pixel".
8064 (grub_cmd_videoinfo): Simplify legend.
8065
e4b791fa
VS
80662012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8067
8068 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8069 absolutely unclear error message.
8070
fd1265cb
VS
80712012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8072
8073 * util/grub-mkstandalone.in: Remove confusing leftover print.
8074
8822a8a0
VS
80752012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8076
8077 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
8078 comments.
8079 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
8080 (GRUB_MOD_INIT): Likewise.
8081 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
8082 VGA mode.
8083 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
8084 comments.
8085 * util/grub-install.in (usage): Likewise.
8086 Spell ID in whole letters.
8087 Add missing ending dot.
8088 Quote variables.
8089 * util/grub-reboot.in: Fix capitalisation.
8090 * util/grub-set-default.in: Likewise.
8091
937fd0cc
VS
80922012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
8095 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
8096 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
8097 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
8098 Disable -Werror for -Wdeprecated-declarations.
8099 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
8100 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
8101 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
8102 (grub_util_get_grub_dev): Make luks handling dependent on
8103 HAVE_DEVICE_MAPPER and not __linux__.
8104 (get_win32_path): Fix format security.
8105 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
8106 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
8107 Don't try grub_find_zpool_from_dir.
8108 (grub_make_system_path_relative_to_its_root) [!__linux__]:
8109 #ifdef-out paresdir.
8110
1bab1ae3
VS
81112012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8112
8113 * util/grub-pe2elf.c (usage): Add missing noreturn.
8114 (write_section_data): Rename name to shname to avoid shadowing.
8115 (write_symbol_table): Rename name to symname to avoid shadowing.
8116 Fix write_reloc_section call.
8117
ef023e42
VS
81182012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8119
8120 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
8121 to ensure that it's after the last byte of .text.
8122
48afcb75
VS
81232012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8124
8125 * util/ieee1275/ofpath.c (my_isdigit): New function.
8126 (trailing_digits): Use my_isdigit.
8127 (strip_trailing_digits): Likewise.
8128
88d51eff
VS
81292012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8130
8131 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
8132 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
8133
17edc2ba
VS
81342012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8135
8136 * grub-core/kern/i386/pc/startup.S: Define __start.
8137
ad5518d7
VS
81382012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8139
8140 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
8141 strip already transforms he format.
8142
9e95e1bf
VS
81432012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8144
8145 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
8146
9cc3ee5c
VS
81472012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8148
8149 * util/grub-install.in: Add missing gettext init.
8150 * util/grub-kbdcomp.in: Likewise.
8151 * util/grub-mkconfig.in: Likewise.
8152 * util/grub-mknetdir.in: Likewise.
8153 * util/grub-mkrescue.in: Likewise.
8154 * util/grub-mkstandalone.in: Likewise.
8155 * util/grub-reboot.in: Likewise.
8156 * util/grub-set-default.in: Likewise.
8157 * util/grub.d/00_header.in: Likewise.
8158 * util/grub.d/10_hurd.in: Likewise.
8159 * util/grub.d/10_windows.in: Likewise.
8160 * util/grub.d/30_os-prober.in: Likewise.
8161 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8162
49e08a06
VS
81632012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8164
8165 * po/Rules-swiss: Fix header comment.
8166
3809cb41
AV
81672012-02-29 Andreas Vogel <anvoit>
8168
8169 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
8170 resulted in leak of arguments.
8171
fa6ec573
VS
81722012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8173
8174 * grub-core/boot/i386/pc/startup_raw.S: Use separate
8175 reed_solomon_size const definition instead of computing it since
8176 Apple assembler doesn't support the later.
8177
22899b9c
VS
81782012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8179
8180 * gentpl.py (kernel): Rewrite Apple part.
8181
a132afc3
VS
81822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8183
8184 * include/grub/kernel.h (FOR_MODULES): Check module magic.
8185
9d742bd4
VS
81862012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8187
8188 * util/grub-mkimagexx.c (locate_sections): Support non-standard
8189 ELF section gap.
8190 (load_image): Likewise.
8191
f04a9a21
VS
81922012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8193
8194 * configure.ac: Fix a typo in previous commit.
8195
46cf439c
VS
81962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8197
8198 Don't add -Wl,-N on Apple platform.
8199
8200 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
8201 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
8202
c4c48c54
VS
82032012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8204
8205 * grub-core/Makefile.core.def (lzma_decompress): Use
8206 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
8207
31a12124
VS
82082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8209
8210 * grub-core/genmod.sh.in: Rewrite the Apple part.
8211
4f3aa1af
VS
82122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8213
8214 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
8215 comparison.
8216
7bd8b0c7
VS
82172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8218
8219 * acinclude.m4 (grub_CHECK_PIC): New test.
8220 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
8221
97304d7c
VS
82222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8223
8224 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
8225 to avoid the warning.
8226
fb883812
VS
82272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8228
8229 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
8230 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
8231 after. All users updated.
8232
a121c964
VS
82332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8234
8235 Use the common size routine in hostfs so we can read disks as well.
8236
8237 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
8238 (grub_util_get_fd_size): ... this. Return size in bytes.
8239 All users updated.
8240 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
8241 grub_util_get_fd_size.
8242
c66d6410
VS
82432012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
8246 Add blocksize retrieval.
8247
dfc8aeb0
VS
82482012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8249
8250 * configure.ac: Restore CFLAGS after efiemu check.
8251
403e25a5
VS
82522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8253
8254 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
8255 Apple bug.
8256
382775d1
VS
82572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8258
8259 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
8260
6fd4e6e4
VS
82612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8262
8263 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
8264 (grub_cmd_halt): Likewise.
8265
bea359d6
VS
82662012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8267
8268 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
8269 for local arithmetics.
8270 Break %sp init into 2 instructions.
8271 Add 0 byte at the end.
8272
32eb6ee1
VS
82732012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 * grub-core/disk/diskfilter.c (read_segment): Initialise err
8276 before loops.
8277
e8377389
VS
82782012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
8281 for context.
8282
8cb17de7
VS
82832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8284
8285 * grub-core/disk/ldm.c (make_vg): Init part.name.
8286 (grub_ldm_detect): Silence spurious warning.
8287 (grub_util_is_ldm): Likewise.
8288
595717e6
VS
82892012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8290
8291 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
8292 sane value to avoid a spurious warning.
8293
c4b7e588
VS
82942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8295
8296 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
8297 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
8298
59824957
VS
82992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8300
8301 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
8302 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
8303
70115b99
VS
83042012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8305
8306 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
8307 hardcoding the relevant info.
8308
56733740
VS
83092012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8310
8311 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
8312 missing const qualifiers.
8313 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
8314
43481481
VS
83152012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8316
8317 * util/getroot.c [__APPLE__]: Add missing includes.
8318 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
8319
3cb38f01
VS
83202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8321
8322 * util/grub-mkimage.c (generate_image): Silence spurious warning.
8323
d9dbf11e
VS
83242012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
8327 avoid conflicts.
8328
0c42a45d
VS
83292012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8330
8331 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
8332
46c34eb0
VS
83332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8334
8335 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
8336 and grub_file_close call.
8337
99ce1597
VS
83382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8339
8340 Add LZSS Mach-O support (needed for new xnu kernelcache).
8341
8342 * grub-core/Makefile.core.def (xnu): Add file lzss.c
8343 * grub-core/loader/lzss.c: New file.
8344 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
8345 on Mach-O open failure.
8346 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
8347 Don't free cmdsXX in uncompressedXX is set.
8348 (grub_macho_file): Init new fields.
8349 New argument is_64bit. All users updated.
8350 Handle compressed. Error out if no suitable architecture is found.
8351 Don't close file.
8352 (grub_macho_open): New argument is_64bit. All users updated.
8353 * grub-core/loader/macho32.c: Add defines for new fields.
8354 * grub-core/loader/macho64.c: Likewise.
8355 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
8356 (grub_macho_parse): Handle compressed.
8357 Defer actual processing if compressed.
8358 (grub_macho_cmds_iterate): Decompress if compressed. New argument
8359 "filename". All users updated.
8360 (grub_macho_size): New argument "filename". All users updated.
8361 (grub_macho_get_entry_point): Likewise.
8362 (grub_macho_load): Handle compressed.
8363 * include/grub/macho.h (grub_macho_lzss_header): New struct.
8364 (GRUB_MACHO_LZSS_OFFSET): New define.
8365 (grub_decompress_lzss): New proto.
8366 * include/grub/machoload.h (grub_macho_file): New fields to handle
8367 compressed.
8368 (grub_macho_contains_macho64): Remove proto.
8369 (grub_macho_contains_macho32): Likewise.
8370 * util/grub.d/30_os-prober.in: Use kernel cache if available.
8371
ebd17d6f
VS
83722012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8373
8374 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
8375
2702b4e4
VS
83762012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8377
8378 Fix make dist.
8379
8380 * Makefile.am (starfield_theme_files): New var.
8381 (starfield_DATA): Use starfield_theme_files.
8382 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
8383 Add bootcheck-related files.
8384 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
8385 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
8386 and font_char_metrics.txt.
8387 * grub-core/Makefile.core.def (kernel): Update extra_dist.
8388 (setjmp): Add lib/ia64/longjmp.S.
8389 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
8390 * po/POTFILES.in: Regenerate.
8391 * po/Rules-swiss: use DISTFILES.common.extra2 and not
8392 DISTFILES.common.extra1.
8393 * util/devicemap.c: Removed.
8394 * grub-core/lib/i386/relocator_backward.S: Likewise.
8395 * util/import_gcry.py: Remove unused files. Add extra_dist for
8396 ChangeLog.
8397
cf1adfdf
VS
83982012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8399
8400 * grub-core/gettext/gettext.c (grub_mofile_open): Call
8401 grub_gettext_delete_list before changing grub_gettext_max to avoid
8402 running out of array bounds.
8403
84042012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
8405
8406 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
8407 grub_vga_text_init/grub_vga_text_fini.
8408
cf1adfdf 84092012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
8410
8411 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
8412
541d92e9
VS
84132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8414
8415 * configure.ac: Bump to 2.00~beta0.
8416
7931dddf
VS
84172012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8418
8419 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
8420 missing initialisation.
8421
f1b16fa3
VS
84222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
8425
83ddae23
VS
84262012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8427
8428 Support v2 xnu boot arguments.
8429
8430 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
8431 New argument fsbfreq_out.
8432 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
8433 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
8434 be used.
8435 * grub-core/loader/machoXX.c (grub_macho_load): New argument
8436 darwin_version.
8437 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
8438 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
8439 (grub_xnu_boot_params): Rename to ...
8440 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
8441 (grub_xnu_boot_params_v2): New struct.
8442
dc693fe6
VS
84432012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
8446 zeroing of CRC field before computing CRC.
8447
5a6e39c2
VS
84482012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8449
8450 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
8451 Change order of allocations to decrease fragmentation.
8452
6c21f5d7
VS
84532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8454
8455 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
8456
cfe456dc
CW
84572012-02-27 Colin Watson <cjwatson@ubuntu.com>
8458
8459 Use write-combining MTRR to speed up video with buggy BIOSes.
8460
8461 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
8462 (cpuid): New define.
8463 (rdmsr): Likewise.
8464 (wrmsr): Likewise.
8465 (mtrr_base): Likewise.
8466 (mtrr_mask): Likewise.
8467 (grub_vbe_enable_mtrr_entry): New function.
8468 (grub_vbe_enable_mtrr): Likewise.
8469 (grub_vbe_disable_mtrr): Likewise.
8470 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
8471 control off to BIOS.
8472 (grub_video_vbe_init): Fill mtrr.
8473 (grub_video_vbe_fini): Disable mtrr.
8474 (grub_video_vbe_get_info_and_fini): Likewise.
8475 (grub_video_vbe_setup): Enable mtrr.
8476
e3c78337
CW
84772012-02-27 Colin Watson <cjwatson@ubuntu.com>
8478
8479 * include/grub/partition.h (grub_partition_map): Change prototype of
8480 embed to take a maximum value for nsectors.
8481 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
8482 * include/grub/fs.h (grub_fs): Likewise.
8483 * grub-core/partmap/msdos.c (embed_signatures): New array.
8484 (pc_partition_map_embed): Check for and avoid sectors matching any
8485 of the signatures in embed_signatures, up to max_nsectors.
8486 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
8487 returned sector map to max_nsectors.
8488 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
8489 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
8490 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
8491 * util/grub-setup.c (setup): Allow for the embedding area being
8492 split into multiple blocklists. Tell dest_partmap->embed the
8493 maximum number of sectors we care about.
8494
84952012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8496
8497 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
8498 Specify blocklist_install and reserver_first_sector for all fs.
8499 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
8500 blocklists.
8501
984b973f
VS
85022012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8503
8504 * util/grub-install.in: Clarify strings.
8505 Fix source dir check.
8506
f122e0d6
RL
85072012-02-27 Richard Laager <rlaager@wiktel.com>
8508
8509 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
8510 "zfs" and "fuse.zfs" as synonyms.
8511
071114bb
VS
85122012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * configure.ac: Put platform and target_cpu substitutions back since
8515 they are used for directories.
8516
817e6abc
RL
85172012-02-27 Richard Laager <rlaager@wiktel.com>
85182012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8519
8520 * util/grub.d/10_linux.in: Add ZFS-related arguments.
8521 * util/grub.d/20_linux_xen.in: Likewise.
8522
897b7419
RL
85232012-02-27 Richard Laager <rlaager@wiktel.com>
8524
8525 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
8526 with full paths.
8527
a414bd15
RL
85282012-02-27 Richard Laager <rlaager@wiktel.com>
8529
8530 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
8531 unescape.
8532
30ac48c4
VS
85332012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 Don't use insecure popen in getroot.
8536
8537 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
8538 (exec_pipe): ... here.
8539 (find_root_devices_from_poolname): Use exec_pipe.
8540
53f13848
VS
85412012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 Remove platform and target_cpu replacement.
8544
8545 * configure.ac: Remove platform and target_cpu substitutions.
8546 * tests/util/grub-shell.in: Use modinfo.
8547 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
8548 explicitly.
8549
90cb2803
VS
85502012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8551
8552 Autodetect platform in grub-install but allow override.
8553
8554 * util/grub-install.in: Autodetect platform. Support --target and
8555 --directory. Read platform from modinfo.sh.
8556
b9136427
VS
85572012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8558
8559 Support btrfs multi-volume probe.
8560
8561 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
8562 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
8563 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
8564 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
8565 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
8566 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
8567 grub_find_root_devices_from_btrfs if on btrfs.
8568
c36e5cd1
VS
85692012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8570
8571 Remove any awareness of *.c util files about target.
8572
8573 * Makefile.util.def (grub-setup): Split to ...
8574 (grub-bios-setup): ... and this.
8575 (grub-sparc64-setup): ... and this.
8576 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
8577 * docs/man/grub-setup.h2m: Split into ...
8578 * docs/man/grub-sparc64-setup.h2m: ... this.
8579 * docs/man/grub-bios-setup.h2m: ... and this.
8580 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
8581 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
8582 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
8583 (grub_target_addr_t): Remove.
8584 (grub_target_size_t): Remove.
8585 (grub_target_ssize_t): Remove.
8586 * util/grub-install.in: Use new grub-*-setup.
8587 * util/grub-mkimagexx.c (Elf_Word): New define.
8588 (Elf_Half): Likewise.
8589 (Elf_Section): Likewise.
8590 (ELF_ST_TYPE): Likewise.
8591 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
8592 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
8593
584b2f8a
VS
85942012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8595
8596 Replace grub_target_addr with more appropriate types.
8597
8598 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
8599 grub_target_addr with grub_addr.
8600 * grub-core/commands/iorw.c (grub_cmd_read): Replace
8601 grub_target_addr with grub_port.
8602 (grub_cmd_write): Likewise.
8603 * grub-core/commands/memrw.c (grub_cmd_read): Replace
8604 grub_target_addr with grub_addr.
8605 (grub_cmd_write): Likewise.
8606 * grub-core/video/efi_uga.c (find_line_len): Likewise.
8607
5a0dc6fb
VS
86082012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8609
8610 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
8611 const qualifier for vendor_guid.
8612
786aff6e
VS
86132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8614
8615 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
8616 const qualifier.
8617 (efiemu_memequal): Likewise.
8618 (find_variable): Likewise.
8619
49017b17
VS
86202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8621
8622 Fix missing console prototype on qemu-mips.
8623
8624 * include/grub/mips/qemu_mips/console.h: New file.
8625
c5988629
MG
86262012-02-27 Matthew Garrett <mjg@redhat.com>
86272012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8628
8629 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
8630 * include/grub/efi/efi.h: Likewise.
8631 * include/grub/efi/api.h: Add guid for EFI-specified variables.
8632 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
8633 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
8634 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
8635 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
8636 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
8637
e33f8d69
MG
86382012-02-27 Matthew Garrett <mjg@redhat.com>
8639
8640 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
8641
fb312cd9
VS
86422012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
8645 error.
8646
7134247c
VS
86472012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8648
8649 * configure.ac: Remove inappropriate use of program_transform_name
8650 on grubdir and bootdir but allow explicit specification of those
8651 variables.
8652
6a313124
VS
86532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8654
8655 * util/grub-mknetdir.in (grub_prefix): Removed.
8656 (subdir): Use @bootdirname@ and @grubdirname@.
8657
2311c5ca
VS
86582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8659
8660 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
8661
7d5d60f7
VS
86622012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8663
8664 * po/POTFILES.in: Regenerated.
8665
8151bc82
VS
86662012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8667
8668 Remove improper use of program_transform_name on pkglibrootdir.
8669
8670 * configure.ac (pkglibrootdir): Removed.
8671 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
8672 * util/grub-mkimage.c: Likewise.
8673
b4a6a533
VS
86742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8675
8676 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
8677 warning.
8678
668f304f
VS
86792012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8680
8681 * util/grub-install.in: Use file identifier if no UUID is available
8682 or user explicitly prompted for it.
8683
665f2341
NP
86842012-02-27 Navdeep Parhar <nparhar@gmail.com>
8685
8686 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
8687 (freebsd_get_zfs): New function.
8688 (grub_freebsd_boot): Pass zfs UUID.
8689 (grub_cmd_freebsd): Set zfs UUID.
8690
8151bc82 86912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
8692
8693 * conf/Makefile.common (platformdir): Base on pkglibdir and not
8694 pkglibrootdir.
8695
e4c498a1
MG
86962012-02-27 Mike Gilbert <floppym@gentoo.org>
8697
8698 Add configure flag to control libzfs integration.
8699
8700 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
8701
1e9a9a3f
VS
87022012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8703
8704 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
8705 device.
8706 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
8707 small devices.
8708
036985b8
VS
87092012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8710
8711 Remove grub_{modname}_init and grub_{modname}_fini. They should never
8712 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
8713 be used on non-modules.
8714
8715 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
8716 Rename to grub_boot_init.
8717 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
8718 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
8719 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
8720 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
8721 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
8722 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
8723 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
8724 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
8725 includes.
8726 (grub_machine_init): Remove empty inits.
8727 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
8728 includes.
8729 (grub_machine_init): Remove empty inits.
8730 * grub-core/term/arc/console.c: Remove explicit proto.
8731 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
8732 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
8733 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8734 grub_at_keyboard_fini.
8735 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
8736 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
8737 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8738 grub_gfxterm_fini.
8739 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
8740 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
8741 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8742 grub_vgatext_fini.
8743 * grub-core/term/ieee1275/console.c: Remove explicit proto.
8744 * grub-core/term/serial.c (GRUB_MOD_INIT)
8745 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
8746 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8747 grub_serial_fini.
8748 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
8749 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
8750 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8751 grub_terminfo_fini.
8752 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
8753 (GRUB_MOD_FINI): Likewise.
8754 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
8755 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
8756 (GRUB_MOD_FINI) [LOONGSON]: Rename to
8757 grub_video_radeon_fuloong2e_fini.
8758 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
8759 [LOONGSON]: Rename to grub_video_sis315pro_init.
8760 (GRUB_MOD_FINI) [LOONGSON]: Rename to
8761 grub_video_sis315pro_fini.
8762 * grub-core/video/sm712.c (GRUB_MOD_INIT)
8763 [LOONGSON]: Rename to grub_video_sm712_init.
8764 (GRUB_MOD_FINI) [LOONGSON]: Rename to
8765 grub_video_sm712_fini.
8766 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
8767 (grub_at_keyboard_fini): Likewise.
8768 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
8769 Don't declare grub_{modname}_init.
8770 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
8771 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
8772 New proto.
8773 (grub_keylayouts_fini) [!EMU]: Likewise.
8774 * include/grub/serial.h (grub_serial_init) [!EMU]:
8775 New proto.
8776 (grub_serial_fini) [!EMU]: Likewise.
8777 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
8778 New proto.
8779 (grub_terminfo_fini) [!EMU]: Likewise.
8780 * include/grub/video.h (grub_font_init) [!EMU]:
8781 New proto.
8782 (grub_font_fini) [!EMU]: Likewise.
8783 (grub_gfxterm_init) [!EMU]: Likewise.
8784 (grub_gfxterm_fini) [!EMU]: Likewise.
8785 (grub_video_sm712_init) [!EMU]: Likewise.
8786 (grub_video_sm712_fini) [!EMU]: Likewise.
8787 (grub_video_sis315pro_init) [!EMU]: Likewise.
8788 (grub_video_sis315pro_fini) [!EMU]: Likewise.
8789 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
8790 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
8791
d5534665
VS
87922012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8793
8794 Make nand a prefix for nand devices.
8795
8796 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
8797
10133b5f
VS
87982012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8799
8800 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
8801 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
8802
8e307a62
VS
88032012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8804
8805 * include/grub/env.h (grub_env_find): Remove prototype.
8806 * grub-core/kern/env.c (grub_env_find): Make static.
8807 (grub_env_set): Remove useless set.
8808
a4c65f34
VS
88092012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 * grub-core/kern/i386/realmode.S: Remove useless align.
8812
d87893d5
VS
88132012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 * include/grub/dl.h (grub_dl_load_file): Don't export.
8816
50159add
VS
88172012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8818
8819 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
8820 grub_dprintf.
8821
b2582b84
VS
88222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8823
8824 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
8825 grub_errors.
8826 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
8827 not reloading whole superblock but only the part which is really needed.
8828 Remove useless grub_errors.
8829 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
8830 grub_errors.
8831
e2a83395
VS
88322012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8833
8834 Don't export grub_get_rtc.
8835
8836 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
8837 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
8838
e7d2a906
VS
88392012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8840
8841 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
8842
6cf1363b
VS
88432012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8844
8845 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 8846 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 8847
eece3349
VS
88482012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8849
8850 Remove prio_list.
8851
8852 * include/grub/list.h (grub_prio_list): Removed.
8853 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
8854 GRUB_COMMAND_PRIO_MASK.
8855 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
8856 GRUB_COMMAND_FLAG_ACTIVE.
8857 (grub_prio_list_insert): Removed.
8858 (grub_prio_list_remove): Likewise.
8859 (GRUB_AS_PRIO_LIST): Likewise.
8860 (GRUB_AS_PRIO_LIST_P): Likewise.
8861 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
8862 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
8863 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
8864 * grub-core/kern/command.c (grub_register_command_prio): Inline
8865 the prio_list code.
8866 (grub_unregister_command): Likewise.
8867
94f064b4
VS
88682012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8869
8870 Fix interrupt mixup from previous commit.
8871
8872 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
8873 (grub_realidt): New var.
8874 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
8875 Load idt.
8876 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
8877 New declaration.
8878 (grub_relocator16_boot): Set grub_relocator16_idt.
8879 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
8880 (LOCAL(realidt)): ... this.
8881 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
8882 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
8883 (grub_realidt): New variable.
8884
27317084
VS
88852012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8886
8887 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
8888 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
8889 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
8890 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
8891 Gettextize.
8892 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
8893 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
8894 * po/POTFILES.in: Regenerate.
8895
47b40053
VS
88962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8897
8898 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
8899 errors.
8900
2b343101
VS
89012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8902
8903 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
8904 \0.
8905 (add_length): Likewise.
8906
ff27c3dd
LK
89072012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
89082012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
8909
8910 GDB serial and backtrace support.
8911
8912 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
8913 (prot_to_real): Likewise.
8914 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
8915 * grub-core/Makefile.core.def (backtrace): New module.
8916 (gdb): Likewise.
8917 * grub-core/gdb/cstub.c: New file.
8918 * grub-core/gdb/gdb.c: Likewise.
8919 * grub-core/gdb/i386/idt.c: Likewise.
8920 * grub-core/gdb/i386/machdep.S: Likewise.
8921 * grub-core/gdb/i386/signal.c: Likewise.
8922 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 8923 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
8924 * include/grub/backtrace.h: Likewise.
8925 * include/grub/gdb.h: Likewise.
8926 * include/grub/i386/gdb.h: Likewise.
8927
89282012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
8929
8930 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
8931 New function.
8932 (add_length): Likewise.
8933 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
8934 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
8935 proto.
8936 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
8937 __argp_get_display_len.
8938
ff27c3dd 89392012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
8940
8941 $"..." support in scripts.
8942
8943 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
8944 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
8945 * grub-core/script/yylex.l: Likewise.
8946 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
8947 value.
8948
ff27c3dd 89492012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
8950
8951 * gentpl.py: Remove obsolete pkglib_DATA handling.
8952
ff27c3dd 89532012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
8954
8955 Don't transform PACKAGE_TARNAME following a discussion on autoconf
8956 mailing list.
8957
8958 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
8959 * util/grub-kbdcomp.in: Likewise.
8960 * util/grub-mkconfig.in: Likewise.
8961 * util/grub-mkconfig_lib.in: Likewise.
8962 * util/grub-mknetdir.in: Likewise.
8963 * util/grub-mkrescue.in: Likewise.
8964 * util/grub-mkstandalone.in: Likewise.
8965 * util/grub-reboot.in: Likewise.
8966 * util/grub-set-default.in: Likewise.
8967 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8968
ff27c3dd 89692012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
8970
8971 Remove GRUB_PREFIX.
8972
8973 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
8974 * util/grub.d/00_header.in: Compute prefix in the only place it's still
8975 used for backward compatibility.
8976
ff27c3dd 89772012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
8978
8979 Add new all_video module.
8980
8981 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
8982 * grub-core/Makefile.core.def (all_video): New module.
8983 * grub-core/genmoddep.awk: Generate dependency of all_video from
8984 video.lst.
8985 * grub-core/lib/fake_module.c: New file.
8986 * grub-core/normal/main.c (features): Add feature_all_video_module.
8987 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
8988 don't do explicit search again.
47454da5 8989 insmod all_video in load_video if available.
22c7ce85 8990
ff27c3dd 89912012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
8992
8993 Another round of string clarification and adding TRANSLATORS comments.
8994
ff27c3dd 89952012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
8996
8997 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
8998
ff27c3dd 89992012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
9000
9001 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
9002 to grub_ssize_t.
9003 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
9004 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
9005
ff27c3dd 90062012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
9007
9008 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
9009 trailing newline implicitly. All users updated.
9010
ff27c3dd 90112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
9012
9013 Implement serial on IEEE1275 and EFI.
9014
9015 * docs/grub.texi (Platform-specific limitations): Fix the columen video
9016 on emu. Mention arc and emu as the only platforms without serial
9017 support.
9018 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
9019 ieee1275 platforms.
9020 * grub-core/term/efi/serial.c: New file.
9021 * grub-core/term/ieee1275/serial.c: Likewise.
9022 * grub-core/term/serial.c (grub_serial_find): Disable direct port
9023 specification if no ns8250 driver is available.
9024 (grub_cmd_serial): Likewise.
9025 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
9026 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
9027 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
9028 (grub_efi_parity_type_t): New type.
9029 (grub_efi_stop_bits_t): Likewise.
9030 (grub_efi_serial_io_interface): New struct.
9031 * include/grub/serial.h (grub_serial_port): Make 'broken' field
9032 available for all interfaces.
9033 Add EFI and IEEE1275 fields.
9034 (grub_ofserial_init): New proto.
9035 (grub_efiserial_init): Likeiwse.
9036 * util/grub.d/00_header.in: Don't check for the presence of serial
9037 module.
9038
ff27c3dd 90392012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
9040
9041 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
9042 name as if it was an alias.
9043
114076ef
VS
90442012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9045
9046 * grub-core/commands/lsacpi.c (options): Fix typo.
9047
6a656b0e
VS
90482012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9049
9050 Convert grub-emu to argp.
9051
9052 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
9053 emu.
9054 * util/argp_common.c: Rename to ...
9055 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
9056 Add missing includes.
9057 * grub-core/kern/emu/main.c: Convert to argp.
9058 * po/POTFILES.in: Regenerate.
9059 * util/grub-install.in (usage): Make first letter lowcase in messages
9060 for uniformity.
9061 * util/grub-setup.c (options): Likewise.
9062
1e3f8ae8
VS
90632012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9064
9065 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
9066 Put back accidently commented-out code.
9067
ed167a80
VS
90682012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
9071 loop check using Brent algorithm.
9072 (grub_hfsplus_btree_search): Likewise.
9073
6753c0ec
VS
90742012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9075
9076 * util/grub-install.in: Fix usage of wrong device for PreP install.
9077
4e27343f
VS
90782012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 * conf/Makefile.common (CFLAGS_GNULIB): Add
9081 -Wno-unsafe-loop-optimizations.
9082 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
9083 on tools.
9084 * grub-core/commands/legacycfg.c: Add pragma to skip
9085 -Wunsafe-loop-optimizations.
9086 (check_password_md5_real): Fix loop counter type.
9087 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
9088 reading.
9089 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
9090 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
9091 loop condition.
9092 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
9093 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
9094 * grub-core/net/net.c (grub_net_route_address): Add safety loop
9095 condition.
9096 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
9097 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
9098 avoid possible infinite loops.
9099 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
9100 and -Wunsafe-loop-optimizations.
9101 * grub-core/script/yylex.l: Likewise.
9102 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
9103 (print_glyphs): Avoid infinite loops.
9104 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
9105
697f18b0
GS
91062012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
9107
9108 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
9109 to avoid infinite loop.
9110 (disp_acpi_rsdt_table): Likewise.
9111
274416e8
VS
91122012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9113
9114 * grub-core/font/font.c (grub_font_load): Add support for default
9115 path for fonts ($prefix/fonts).
9116 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
9117 for checking if string is a path.
9118 * grub-core/normal/main.c (features): Add feature_default_font_path.
9119 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
9120 * util/grub.d/00_header.in: Use default directory if possible.
9121 * util/grub-install.in: Install unicode.pf2.
9122
b3e08622
VS
91232012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
9126 * po/Rules-swiss: New file.
9127 * po/swiss.sed: Likewise.
9128
fe42ce09
VS
91292012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9130
9131 * grub-core/fs/btrfs.c (find_device): Fix typos.
9132 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
9133 * util/grub-mkrelpath.c (argp_parser): Likewise.
9134 Reported by: Yuri Chornoivan.
9135
72f1d065
DO
91362012-02-23 Dalet Omega <daletomega@gmail.com>
9137
9138 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
9139 for usual informative messages.
9140
c5884973
DO
91412012-02-23 Dalet Omega <daletomega@gmail.com>
9142
9143 Starfield theme.
9144
9145 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
9146 * conf/Makefile.common: Define starfielddir.
9147 * configure.ac: Configure starfield.
9148 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
9149 * themes/starfield/README: Likewise.
9150 * themes/starfield/blob_w.png: Likewise.
9151 * themes/starfield/boot_menu_c.png: Likewise.
9152 * themes/starfield/boot_menu_e.png: Likewise.
9153 * themes/starfield/boot_menu_n.png: Likewise.
9154 * themes/starfield/boot_menu_ne.png: Likewise.
9155 * themes/starfield/boot_menu_nw.png: Likewise.
9156 * themes/starfield/boot_menu_s.png: Likewise.
9157 * themes/starfield/boot_menu_se.png: Likewise.
9158 * themes/starfield/boot_menu_sw.png: Likewise.
9159 * themes/starfield/boot_menu_w.png: Likewise.
9160 * themes/starfield/slider_c.png: Likewise.
9161 * themes/starfield/slider_n.png: Likewise.
9162 * themes/starfield/slider_s.png: Likewise.
9163 * themes/starfield/src/blob_nw.xcf: Likewise.
9164 * themes/starfield/src/bootmenu/: Likewise.
9165 * themes/starfield/src/bootmenu/center.xcf: Likewise.
9166 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
9167 * themes/starfield/src/bootmenu/side.xcf: Likewise.
9168 * themes/starfield/src/slider_c.xcf: Likewise.
9169 * themes/starfield/src/slider_n.xcf: Likewise.
9170 * themes/starfield/src/slider_s.xcf: Likewise.
9171 * themes/starfield/src/terminalbox/: Likewise.
9172 * themes/starfield/src/terminalbox/center.xcf: Likewise.
9173 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
9174 * themes/starfield/src/terminalbox/side.xcf: Likewise.
9175 * themes/starfield/starfield.png: Likewise.
9176 * themes/starfield/terminal_box_c.png: Likewise.
9177 * themes/starfield/terminal_box_e.png: Likewise.
9178 * themes/starfield/terminal_box_n.png: Likewise.
9179 * themes/starfield/terminal_box_ne.png: Likewise.
9180 * themes/starfield/terminal_box_nw.png: Likewise.
9181 * themes/starfield/terminal_box_s.png: Likewise.
9182 * themes/starfield/terminal_box_se.png: Likewise.
9183 * themes/starfield/terminal_box_sw.png: Likewise.
9184 * themes/starfield/terminal_box_w.png: Likewise.
9185 * themes/starfield/theme.txt: Likewise.
9186
17d73325
VS
91872012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 * util/grub.d/00_header.in: Add missing export theme.
9190
dbebaf92
VS
91912012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9192
9193 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
9194 already included.
9195 Reported by: Eren D.
9196
3d68bffb
VS
91972012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9198
9199 * conf/Makefile.common (grubdatadir): Removed.
9200 (Makefile.am): Move eveything grubdata to pkgdata.
9201
4b59234d
VS
92022012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9203
9204 * grub-core/commands/acpihalt.c (get_sleep_type):
9205 Remove unused variable.
9206
463dcadc
VS
92072012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9208
9209 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
9210 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
9211 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
9212 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
9213 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
9214 i18n with gettext no-op.
9215 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
9216 GRUB_ACPI_OPCODE_STRING_CONST.
9217 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
9218 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
9219
e5b90c82
VS
92202012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9221
9222 * po/POTFILES.in: Regenerate.
9223
2a704ca9
VS
92242012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
9227 -Wno-error=missing-noreturn.
9228
84f9d341
VS
92292012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
9232 condition to avoid possibly infinite loops.
9233 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
9234 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
9235
d46683f9
VS
92362012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9237
9238 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
9239 condition to avoid possibly infinite loops.
9240
c44866b2
VS
92412012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9242
9243 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
9244 on show_error.
9245
96790539
VS
92462012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9247
9248 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
9249
1ba7e295
VS
92502012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9251
9252 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
9253
21ffe8f1
VS
92542012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9255
9256 * util/bin2h.c (usage): Add missing attribute noreturn.
9257
0ccb6b3c
VS
92582012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9259
9260 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
9261 if the size isn't divisible by 512.
9262
b00d7fb6
VS
92632012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9264
9265 Make list_push and list_remove functions rather than inline functions
9266 to decrease size and avoid aliasing violations.
9267
9268 * include/grub/list.h (grub_list_push): Move to ...
9269 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
9270 * include/grub/list.h (grub_list_remove): Move to ...
9271 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
9272
9d369087
VS
92732012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9274
9275 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
9276 and -Wunused-result.
9277
af0250d9
VS
92782012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
9281 Reported by: Seth Goldberg
9282
aad32b14
VS
92832012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
9286
ac96441c
ST
92872012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9288
9289 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
9290 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
9291 command line.
9292 * docs/grub.texi (Simple configuration): Document
9293 GRUB_CMDLINE_GNUMACH.
9294
92952012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
9296
9297 * conf/Makefile.common (platform_SCRIPTS): New variable.
9298 (platform_PROGRAMS): Likewise.
9299 * gentpl.py: Mark *,module and *.image for install.
9300 * grub-core/gdb_grub.in: Add a notice of expected environment.
9301 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
9302 (gmodule.pl): Likewise.
9303
ac96441c 93042012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
9305
9306 Replace grub_checkkey with grub_getkey_noblock.
9307
9308 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
9309 (grub_getkey_noblock): ... this. All users updated.
9310
ac96441c 93112012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
9312
9313 * grub-core/kern/emu/console.c: Move to ...
9314 * grub-core/term/emu/console.c: ...here.
9315 (grub_ncurses_getkey): Fix return value if no key is detected.
9316
e51b5666
VS
93172012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9318
9319 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
9320 (grub_unit_test_fini): Likewise.
9321 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
9322
93232012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9324
9325 * include/grub/test.h (GRUB_UNIT_TEST)
9326
d9a62292
VS
93272012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9328
9329 * grub-core/script/execute.c (grub_script_break): Clarify logic.
9330 Better error handling.
9331 (grub_script_return): Likewise.
9332 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
9333
77c9182f
VS
93342012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9335
9336 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
9337 rimplicit redifinition.
9338
edb13cf9
VS
93392012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9340
9341 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
9342 GRUB.
9343
a9e9dc7c
VS
93442012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9345
9346 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
9347 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
9348 prompt here.
9349
b4ba8e02
VS
93502012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9351
9352 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
9353 as GRUB_ERR_BUG. Don't malloc if no device is available.
9354
dded5540
VS
93552012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
9358 Mark calling with invalid term as GRUB_ERR_BUG.
9359
0cf69874
VS
93602012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9361
9362 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
9363 packets rather than raising an error.
9364
59bfe502
VS
93652012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9366
9367 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
9368 in if.
9369
db5fc596
VS
93702012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
9373 diagnostic to dprintf.
9374 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9375
e4b7f404
VS
93762012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9377
9378 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
9379 device name.
9380
e7b02f9e
VS
93812012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9382
9383 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
9384 (grub_ntfs_iterate_dir): Likewise.
9385
0331e102
VS
93862012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9387
9388 Efiemu stylistic fixes and gettext.
9389
9390 * grub-core/efiemu/i386/loadcore32.c
9391 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
9392 * grub-core/efiemu/i386/loadcore64.c
9393 (grub_arch_efiemu_relocate_symbols64): Likewise.
9394 * grub-core/efiemu/i386/pc/cfgtables.c
9395 (grub_machine_efiemu_init_tables): Likewise.
9396 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
9397 (grub_efiemu_loadcore_initXX): Add a filename argument.
9398 All users updated.
9399 Improved error message.
9400 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
9401 Add a filename argument.
9402 All users updated.
9403 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
9404 Reclassify double relocation as GRUB_ERR_BUG.
9405
306fc074
VS
94062012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9407
9408 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
9409 handling.
9410
794d8ef2
VS
94112012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9412
9413 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
9414 on partition.
9415
94162012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
9417
9418 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
9419
794d8ef2 94202012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
9421
9422 Improve string. Gettextize.
9423
78dde88e
VS
94242012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9425
9426 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
9427 utils.
9428 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
9429
4786a90f
VS
94302012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
9433 [GRUB_UTIL]: New function.
9434 (insert_array) [GRUB_UTIL]: Store partmaps.
9435 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
9436 partmaps.
9437 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
9438 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
9439 (probe_abstraction): Print diskfilter and not raid.
9440 Reported by: Lennart Sorensen
9441
0b6225bd
VS
94422012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
9445 * util/grub-mkimagexx.c (MASK3): New define.
9446 (add_value_to_slot_20b): Use MASK3.
9447 (add_value_to_slot_21): Likewise.
9448 (relocate_addresses): Fix format specification.
9449 (load_image): Explicitly init symtab_section.
9450
b055f8f6
VS
94512012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
9454 (grub_util_biosdisk_get_grub_dev): Fix format specification.
9455
b77c2fb7
VS
94562012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9457
9458 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
9459 on powerpc.
9460 Reported by: Lennart Sorensen
9461
e3ec28ab
VS
94622012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9463
9464 * gentpl.py: Add missing license header.
9465 * docs/grub.texi: Update copyright year.
9466
c8d9ead6
GS
94672012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
9468
9469 Source grub-mkconfig_lib from the build directory at build time.
9470 Suggested by: Vladimir Serbinenko.
9471
9472 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
9473 * util/grub-install.in: Define pkgdatadir if not already set, and source
9474 grub-mkconfig_lib from there.
9475 * util/grub-kbdcomp.in: Likewise.
9476 * util/grub-mkconfig.in: Likewise.
9477 * util/grub-mknetdir.in: Likewise.
9478 * util/grub-mkrescue.in: Likewise.
9479 * util/grub-mkstandalone.in: Likewise.
9480 * util/grub-reboot.in: Likewise.
9481 * util/grub-set-default.in: Likewise.
9482 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9483
ebcecdf1
VS
94842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 Increase warning level.
9487
9488 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
9489 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
9490 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
9491 (TARGET_CFLAGS): Likewise.
9492 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
9493 * grub-core/Makefile.core.def (decompressor_xz): Add
9494 -Wno-unreachable-code.
9495 (normal): Add -Wno-redundant-decls.
9496 (xzio): Add -Wno-unreachable-code.
9497 (lzopio): Add -Wno-redundant-decls -Wno-error.
9498 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
9499 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
9500 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
9501 * grub-core/kern/dl.c: Add exception to -Wcast-align.
9502 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
9503 * grub-core/kern/i386/coreboot/init.c: Add exception to
9504 -Wsuggest-attribute=noreturn.
9505 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
9506 * grub-core/kern/ia64/dl_helper.c: Likewise.
9507 * grub-core/kern/mips/dl.c: Likewise.
9508 * grub-core/kern/sparc64/dl.c: Likewise.
9509 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
9510 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
9511 (memcmp): Likewise.
9512 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
9513 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
9514 * grub-core/loader/mips/linux.c: Likewise.
9515 * grub-core/loader/multiboot_elfxx.c: Likewise.
9516 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
9517 * grub-core/video/sm712.c: Add exception to -Wcast-align.
9518 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
9519 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
9520 fixme.
9521 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9522 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
9523 Fix prototype.
9524
37bb97fe
VS
95252012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9526
9527 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
9528 address.
9529
29a3550b
VS
95302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9531
9532 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
9533 Avoid improper use of strings.
9534 (grub_cmd_legacy_initrdnounzip): Likewise.
9535
dfdffd0d
VS
95362012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9537
9538 * include/grub/emu/misc.h (grub_util_warn): Add missing format
9539 attribute.
9540 (grub_util_info): Likewise.
9541 (grub_util_error): Likewise.
9542
102fae4a
VS
95432012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9544
9545 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
9546 * util/grub-fstest.c (fstest): Likewise.
9547
7e94d044
VS
95482012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9549
9550 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
9551 (grub_md_sha512_real): Likewise.
9552 (grub_util_get_geli_uuid): Likewise.
9553 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
9554 (grub_util_biosdisk_open): Fix format specification.
9555 Respect format security.
9556 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
9557 (xrealloc): Likewise.
9558 (xasprintf): Likewise.
9559
5ebd9769
VS
95602012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 * util/import_gcry.py: Include grub/crypto.h in init.c.
9563
495fc8c1
VS
95642012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
9567 (generate_image): Make prefix a const char *.
9568 Fix format specifications. Respect format security.
9569 Avoid void * arithmetics.
9570 Avoid shadowing.
9571 (argp_parser): Remove unused variable. Respect format security.
9572 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
9573 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
9574 (count_funcs): Remove unused variable.
9575 (relocate_addresses): Fix format specification.
9576 Disable x86-64 with elf32. Remove unused variables.
9577 (add_fixup_entry): Avoid shadowing.
9578 (make_reloc_section): Fix format specification.
9579 Use assert.
9580 (locate_sections): Fix format specifications.
9581 (load_image): Avoid shadowing.
9582
043c2ea3
VS
95832012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9584
9585 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
9586 Fix format specifications. Respect format security.
9587 Don't translate already translated grub_errmsg.
9588 (argp_parser): Remove unused variable
9589
3ec65a81
VS
95902012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9591
9592 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
9593
a4d9fe4a
VS
95942012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9595
9596 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
9597 (main): Likewise. Use xmalloc. Respect format security.
9598
15b81d49
VS
95992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
9602 a const char *.
9603 (argp_parser): Remove unused variable.
9604
31731fc0
VS
96052012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9606
9607 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
9608 (add_pixel): Make static.
9609 (add_font): Likewise.
9610 (write_string_section): Make name and str a const char *.
9611 (write_be16_section): Make name a const char *.
9612 (print_glyphs): Make static.
9613 (write_font_ascii_bitmap): Likewise.
9614 (write_font_width_spec): Likewise.
9615 (write_font_pf2): Likewise.
9616 (argp_parser): Remove unused variable.
9617 Respect format security.
9618 (main): Avoid shadowing. Respect format security.
9619
0809527b
VS
96202012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 * util/grub-editenv.c (argp_parser): Make static.
9623 (create_envblk_file): Use xmalloc.
9624 (open_envblk_file): Likewise.
9625 Resepect format security.
9626 (set_variables): Respect format security.
9627
45b0c8b7
VS
96282012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9629
9630 * util/getroot.c (grub_find_device): Respect format security.
9631 (get_mdadm_uuid): Remove unused variable.
9632 (grub_util_pull_device): Dont call gettext on already translated
9633 grub_errmsg.
9634 (find_system_device): Remove unused variable.
9635 (grub_util_get_grub_dev): Likewise.
9636 (grub_make_system_path_relative_to_its_root): Respect format security.
9637
1b024b4e
VS
96382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9639
9640 * util/grub-fstest.c (execute_command): Make first argument
9641 a const char *.
9642 (read_file): Avoid shadowing.
9643 Reuse underlying error message if device open fails.
9644 (cmd_cmp): Respect format security.
9645 (root): Make const char *.
9646 (fstest): Remove args argument and use global copy.
9647 Respect format security.
9648 (argp_parser): Make static.
9649 (main): Make default_root const char *.
9650
5d1d4e28
VS
96512012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 * util/grub-mount.c (root): Make const char *.
9654 (execute_command): Make first argument a const char *.
9655 (fuse_init): Respect format security.
9656 (argp_parser): Make static. Remove unused variable.
9657 (main): Make default_root a const char *.
9658 Respect format security.
9659
36eb7379
VS
96602012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 * util/grub-probe.c (probe): Don't call gettext on already translated
9663 grub_errmsg.
9664 Remove unused variables.
9665 (argp_parser): Remove unused variable.
9666
76fb2ea9
VS
96672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9668
9669 * util/grub-script-check.c (argp_parser): Remove unused variable.
9670 (main): Rename read to curread to avoid shadowing.
9671
56c98584
VS
96722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9673
9674 * util/misc.c (grub_util_write_image_at): Fix format specification.
9675 (grub_util_write_image): Likewise.
9676 (grub_script_execute_argument_to_string): Removed (unused).
9677 (grub_script_execute_menuentry): Likewise.
9678 (grub_putchar): Likewise.
9679
164ebb48
VS
96802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
9683 (FUNCTION) [GRUB_UTIL]: Likewise.
9684 (VARIABLE) [GRUB_UTIL]: Likewise.
9685
44318d61
VS
96862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
9689 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
9690
31a26002
VS
96912012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9692
9693 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
9694 buffer.
9695
96962012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9697
9698 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
9699 (LzmaEnc_SaveState): Removed (unused).
9700 (LzmaEnc_RestoreState): Likewise.
9701 (LzmaEnc_InitPriceTables): Made static.
9702 (LzmaEnc_Construct): Likewise.
9703 (LzmaEnc_FreeLits): Likewise.
9704 (LzmaEnc_Destruct): Likewise.
9705 (LzmaEnc_Init): Likewise.
9706 (LzmaEnc_InitPrices): Likewise.
9707 (LzmaEnc_Finish): Likewise.
9708 (LzmaEnc_PrepareForLzma2): Removed (unused).
9709 (LzmaEnc_MemPrepare): Likewise.
9710 (LzmaEnc_GetNumAvailableBytes): Likewise.
9711 (LzmaEnc_GetCurBuf): Likewise.
9712 (LzmaEnc_CodeOneMemBlock): Likewise.
9713
6fa67967
VS
97142012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9715
9716 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
9717 (grub_util_ldm_embed): Likewise.
9718
9a7428e6
VS
97192012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9720
9721 * util/grub-editenv.c (print_var): Rename name to varname to
9722 avoid shadowing.
9723 (main): Rename index to curindex to avoid shadowing.
31a26002 9724 Make filename a const char *.
9a7428e6 9725
4f96abd1
VS
97262012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
9729 to arg_getline to avoid shadowing.
9730
44d10dad
VS
97312012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9732
9733 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
9734 disk_ to avoid shadowing.
9735
340ba63e
VS
97362012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9737
9738 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
9739 curindex to avoid shadowing.
9740 Make static.
9741 (MatchFinder_GetNumAvailableBytes): Make static.
9742
22965bce
VS
97432012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9744
9745 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
9746 avoid shadowing.
9747
7b5784d4
VS
97482012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9749
9750 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
9751 argument from encrypt to do_encrypt to avoid shadowing.
9752
6f48ca01
VS
97532012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9754
9755 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
9756 incorrect nesting of #if's.
9757
a4ea2dff
VS
97582012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9759
9760 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
9761 checks which are always false on some platforms.
9762 (grub_cmd_lsacpi): Likewise.
9763 * grub-core/kern/misc.c (grub_strtoul): Likewise.
9764 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
9765 Likewise.
9766
def9fc1b
VS
97672012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
9770 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
9771
a67b2a04
VS
97722012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9773
9774 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
9775 re_dfa_t to avoid breaking alignment invariants.
9776 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
9777 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
9778
44c6828d
VS
97792012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9780
9781 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
9782 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
9783
bebe0dd0
VS
97842012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9785
9786 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
9787 Fix declaration.
9788
a9cdb3cf
VS
97892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9790
9791 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
9792 conserve alignment invariants.
9793 (grub_ehci_ehcc_read16): Likewise.
9794 (grub_ehci_oper_read32): Likewise.
9795 (grub_ehci_oper_write32): Likewise.
9796 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
9797 Conserve alignment invariants.
9798
ccc3b1b8
VS
97992012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9800
9801 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
9802 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
9803 declarations.
9804
987fbd95
VS
98052012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9806
9807 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
9808 Remove unused variable.
9809
0df363f3
VS
98102012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9811
9812 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
9813 Remove set in if.
9814
b2c0c4a6
VS
98152012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 * include/grub/net.h: Remove double declarations.
9818
690c531f
VS
98192012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9820
9821 Remove "payload" command in ia64 Linux loader since I couldn't
9822 find any evidence of it being used for anything.
9823 Replace "relocate" command with an environment variable
9824
9825 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
9826 fields.
9827 (ia64_boot_payload): Removed.
9828 (last_payload): Likewise.
9829 (RELOCATE_OFF): Likewise.
9830 (RELOCATE_ON): Likewise.
9831 (RELOCATE_FORCE): Likewise.
9832 (relocate): Likewise.
9833 (free_pages): Don't free payloads.
9834 (grub_load_elf64): Use common error messages.
9835 Use "linux_relocate" variable.
9836 Increase the space after boot_params.
9837 (grub_cmd_payload): Removed.
9838 (grub_cmd_relocate): Likewise.
9839 (grub_cmd_fpswa): Improve messages.
9840 (cmd_payload): Removed.
9841 (cmd_relocate): Likewise.
9842 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
9843 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
9844
01783768
VS
98452012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9846
9847 Convert UHCI to DMA framework.
9848
9849 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
9850 (grub_uhci_pci_iter): Fill new members
9851 (grub_alloc_td): Use P2V and V2P functions.
9852 (grub_free_queue): Likewise.
9853 (grub_alloc_qh): Likewise.
9854 (grub_uhci_setup_transfer): Likewise.
9855 (grub_uhci_check_transfer): Likewise.
9856
43206939
VS
98572012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9858
9859 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
9860 Remove assignment in if while on it.
9861
571e140e
VS
98622012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * util/grub-mkstandalone.in: Fix modules directory.
9865
a9d96eeb
VS
98662012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9867
9868 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
9869 on i386-pc target.
9870 (argp_parser): Accept "auto" as compression specification.
9871
e4e37e8d
VS
98722012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9873
9874 Fix `help' with unloaded modules.
9875
9876 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
9877 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
9878 (grub_dyncmd_dispatcher): Small stylistic fix.
9879 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
9880 explicit help is requested.
9881
e1ea3ade
VS
98822012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9883
9884 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
9885 Explicitly init restart while on it.
9886
27556881
VS
98872012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9888
9889 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
9890 uninited variable.
9891
d65f6b36
VS
98922012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9893
9894 * util/grub-mknetdir.in: Use . rather than source for POSIX
9895 compatibility.
9896
0a1e473c
VS
98972012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9898
9899 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
9900
ce6647c8
VS
99012012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
9904 variable.
9905
66747894
VS
99062012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9907
9908 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
9909 without quotes.
9910
71645f6e
VS
99112012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
9914
0e1c1f61
VS
99152012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9916
9917 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
9918 iteration of partitions.
9919
9c4b5c13
VS
99202012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9921
9922 Improve gettext support. Stylistic fixes and error handling fixes while
9923 on it.
9924
215c90cb
VS
99252012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9926
9927 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
9928 part. Instead setup the correct stack in RM.
9929 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
9930 for stack.
9931 * include/grub/i386/relocator_private.h: New file.
9932
b5c1f9bf
VS
99332012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9934
9935 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
9936 argument.
9937 * util/grub-fstest.c (options): Add missing DEVICE part.
9938
b525fd83
VS
99392012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 Clarify and unify messages.
9942
9943 * grub-core/commands/hashsum.c (options): Unify messages.
9944 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
9945 literal-only message as translatable.
9946 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
9947 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
9948 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
9949 commands.
9950 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
9951 key, not the key used to unlock. Clarify what it's used for.
9952 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
9953 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
9954 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
9955 * util/grub-editenv.c (options): Unify "verbose" message.
9956 * util/grub-fstest.c (read_file): Unify error message.
9957 (fstest): Add quotes around commands.
9958 (options): Unify "verbose" message.
9959 * util/grub-install.in: Add quotes around variable name.
9960 * util/grub-kbdcomp.in: Unify error message.
9961 * util/grub-mkfont.c (main): Likewise.
9962 * util/grub-mkrescue.in: Likewise.
9963 * util/grub-mklayout.c (options): Unify "verbose" message.
9964 * util/grub-mkstandalone.in: Unify help and verbose messages.
9965 * util/grub-mount.c (options): Unify "verbose" message.
9966 * util/grub-probe.c (options): Likewise.
9967 * util/grub-script-check.c (options): Likewise.
9968 * util/grub-setup.c (setup): Unify no-terminator message.
9969 (options): Use DEVICE and not DEV.
9970 Unify "verbose" message.
9971 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
9972
0ae70393
VS
99732012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9974
9975 Improve and unify messages.
9976
9977 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
9978 name. All users updated.
9979 Print filename in error.
9980 (read_device_map): Print filename in error.
9981 * util/getroot.c (grub_guess_root_devices): Print filename in error.
9982 (grub_util_get_os_disk): Likewise.
9983 (grub_util_biosdisk_get_grub_dev): Likewise.
9984 (grub_util_check_block_device): Likewise.
9985 (grub_util_check_char_device): Likewise.
9986 (grub_make_system_path_relative_to_its_root): Likewise.
9987 * util/grub-editenv.c (create_envblk_file): Likewise.
9988 (open_envblk_file): Likewise.
9989 (write_envblk): Likewise.
9990 * util/grub-fstest.c (cmd_cp): Likewise.
9991 (cmd_cat): Likewise.
9992 (cmd_cmp): Likewise.
9993 * util/grub-menulst2cfg.c (main): Likewise.
9994 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
9995 (write_font_width_spec): Likewise.
9996 (write_font_pf2): Likewise.
9997 * util/grub-mkimage.c (generate_image): New argument outname.
9998 All users updated.
9999 Remove unreacheable message.
10000 (options): Unify messages.
10001 (help_filter): Likewise.
10002 * util/grub-mklayout.c (usage): Removed (unused).
10003 (main): Print filename in error.
10004 * util/grub-mkrescue.in: Fix wrong quoting.
10005 * util/grub-setup.c (setup): Print filename in error.
10006 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
10007 (check_sas): Likewise.
10008 * util/misc.c (grub_util_get_fp_size): Removed.
10009 (grub_util_get_image_size): Print filename in error.
10010 (grub_util_read_at): Removed.
10011 (grub_util_read_image): Print filename in error.
10012 (grub_util_load_image): Likewise.
10013 (grub_util_write_image_at): New argument filename. All users updated.
10014 Print filename in error.
10015 (grub_util_write_image): New argument filename. All users updated.
10016 Print filename in error.
10017 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
10018 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
10019
0a96117d
VS
100202012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10021
10022 * grub-core/Makefile.core.def (pxechain): New module.
10023 * grub-core/loader/i386/pc/pxechainloader.c: New file.
10024 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
10025 function.
10026 (grub_pc_net_config_real): Use grub_pxe_get_cached.
10027 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
10028
aca002f7
VS
100292012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10030
10031 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
10032 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
10033 * include/grub/err.h (grub_error_saved): New struct.
10034 (grub_errmsg): Make array size explicit.
10035 * include/grub/misc.h (grub_error_save): New function.
10036 (grub_error_load): Likewise.
10037 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
10038 (grub_error_push): Update `errno' member name.
10039 (grub_error_pop): Likewise
10040 * grub-core/net/tftp.c (tftp_data): New member save_err.
10041 (tftp_receive): Save error.
10042 (tftp_open): Restore error.
10043
a51dab13
VS
100442012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10045
10046 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
10047 to real mode down to execute A20-related code in protected mode as
10048 intended.
10049
eb6e6649
GS
100502012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
10051
10052 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
10053 NULL when the argument `level' has an unexpected value.
10054
92cd0f6e
VS
100552012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10056
10057 Move platform-dependent files from $prefix to $prefix/$platform.
10058
10059 * config.h.in (GRUB_TARGET_CPU): New definition.
10060 (GRUB_PLATFORM): Likewise.
10061 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
10062 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
10063 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10064 * grub-core/kern/dl.c (grub_dl_load): Likewise.
10065 * grub-core/normal/autofs.c (read_fs_list): Likewise.
10066 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
10067 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
10068 * grub-core/normal/term.c (read_terminal_list): Likewise.
10069 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
10070 $prefix/locale.
10071 (grub_gettext_init_ext): Likewise.
10072 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
10073 grub_platform.
10074 * util/grub-install.in: Update directories.
10075 * util/grub-mknetdir.in: Likewise.
10076 * util/grub-mkrescue.in: Likewise.
10077
db606889
VS
100782012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10079
10080 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
10081 grub_error framework. All users updated.
10082
c39992a4
VS
100832012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10084
10085 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
10086 lists (by always binsearching), improve caching (cache strings
10087 used for binsearch, not only results), improve
10088 maintainability (by using more structured binary search) and correct
10089 error handling.
10090
1e5ec32f
VS
100912012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10092
10093 * grub-core/script/execute.c (grub_script_return): Fix warning.
10094
ac576cde
VS
100952012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 * grub-core/script/execute.c (grub_script_return): Fix potential
10098 NULL-dereference.
10099 Reported by: Jim Meyering.
10100
498453f6
VS
101012012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10102
10103 * po/POTFILES.in: Regenerate.
10104 * util/grub-install.in: Gettextize the strings missed in first pass.
10105
8be63f2e
VS
101062012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10107
10108 * Makefile.util.def (grub-mkdevicemap): Removed.
10109 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
10110 * include/grub/util/deviceiter.h: Removed.
10111 * util/deviceiter.c: Likewise.
10112 * util/getroot.c (grub_util_get_os_disk): New function.
10113 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
10114 replacement for EFI.
10115 * util/grub-mkdevicemap.c: Removed.
10116 * util/grub-probe.c (probe): Handle PRINT_DISK.
10117 (argp_parser): Handle -t disk.
10118
8e1e4e39
VS
101192012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10120
10121 * util/grub-mkfont.c: Migrate to argp.
10122 * util/grub-mklayout.c: Likewise.
10123 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10124 * util/grub-mkrelpath.c: Likewise.
10125 * util/grub-probe.c: Likewise.
10126 * util/grub-script-check.c: Likewise.
10127
4459819a
VS
101282012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10129
10130 * util/grub-reboot.in: Add missing datarootdir.
10131 Add missing newline.
10132 * util/grub-set-default.in: Add missing datarootdir.
10133 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
10134 * util/grub-mkrescue.in: Likewise.
10135
f65741c7
VS
101362012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10137
10138 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
10139
c1a33466
VS
101402012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 * util/grub-kbdcomp.in: Add decent help and gettextize.
10143 * docs/man/grub-kbdcomp.h2m: New file.
10144
c76899a0
VS
101452012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 Migrate grub-mkimage.c to argp.
10148
10149 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
10150 (grub-setup): Likewise.
10151 * util/grub-setup.c (print_version): Move to ...
10152 * util/argp_common.c (print_version): ... here.
10153 * util/grub-setup.c (argp_program_version_hook): Move to ...
10154 * util/argp_common.c (argp_program_version_hook): ... here.
10155 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
10156 safety.
10157 * util/grub-mkimage.c (main): Migrate to argp.
10158
57db0757
VS
101592012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10160
10161 * util/grub-mkrescue.in: Use same message as
10162 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
10163 for better translations.
10164
18534ad9
VS
101652012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10166
10167 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
10168 options with generic grub-mkrescue.in with the goal of future
10169 merge.
10170
c84ba308
VS
101712012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10172
10173 * grub-core/kern/mm.c: Add missing include of i18n.h
10174 * grub-core/lib/relocator.c: Likewise.
10175
347998c2
VS
101762012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
10179 error.
10180 (allocate_pages): Check return value.
10181 Replace fatal with error.
10182 (grub_linux_boot): Replace printf with dprintf.
10183 Check find_mmap_size return value.
10184 Replace fatal with error.
10185 Don't call grub_machine_fini.
10186 (grub_load_elf64): Replace printf with dprintf.
10187 (grub_cmd_linux): Likewise.
10188 (grub_cmd_initrd): Likewise.
10189 (grub_cmd_payload): Likewise.
10190
c779226e
VS
101912012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10192
10193 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
10194 message.
10195 * grub-core/video/radeon_fuloong2e.c
10196 (grub_video_radeon_fuloong2e_setup): Likewise.
10197 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
10198 * grub-core/video/video.c (grub_video_set_mode): Don't override
10199 standard out of memory message.
10200
dc87d45a
GS
102012012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10202
10203 NetBSD disk wedge support.
10204
10205 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
10206 [__NetBSD__]: Handle NetBSD disk wedges.
10207 * util/getroot.c (convert_system_partition_to_system_disk)
10208 [__NetBSD__]: Likewise.
10209
055f856f
MW
102102012-02-03 Mark Wooding <mdw@distorted.org.uk>
10211
10212 * util/grub-mkconfig.in: Use umask rather than chmod to create
10213 grub.cfg.new to avoid insecure grub.cfg.
10214
4a9f8346
VS
102152012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10216
10217 * grub-core/commands/ls.c: Gettextize.
10218 * grub-core/commands/setpci.c: Likewise.
10219 * grub-core/commands/videotest.c: Likewise.
10220 * grub-core/disk/geli.c: Likewise.
10221 * grub-core/kern/mm.c: Likewise.
10222 * grub-core/lib/relocator.c: Likewise.
10223 * grub-core/loader/efi/appleloader.c: Likewise.
10224 * grub-core/loader/i386/xnu.c: Likewise.
10225 * grub-core/loader/ia64/efi/linux.c: Likewise.
10226 * grub-core/loader/xnu.c: Likewise.
10227 * grub-core/net/dns.c: Likewise.
10228 * grub-core/net/net.c: Likewise.
10229 * grub-core/script/lexer.c: Likewise.
10230 * grub-core/script/parser.y: Likewise.
10231 * grub-core/script/yylex.l: Likewise.
10232 * util/getroot.c: Likewise.
10233 * util/grub-setup.c: Likewise.
10234
a646a366
VS
102352012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10236
10237 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
10238 number.
10239
54e2be26
VS
102402012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10241
10242 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
10243
f7c71e68
VS
102442012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10245
10246 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
10247 macro.
10248 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
10249 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
10250
a32d5c71
VS
102512012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
10254 * util/grub-install.in: Gettextize.
10255 * util/grub-mkconfig.in: Likewise.
10256 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
10257 if not available.
10258 (grub_warn): Gettextize.
10259 * util/grub-mknetdir.in: Gettextize.
10260 * util/grub-mkrescue.in: Likewise.
10261 * util/grub-mkstandalone.in: Likewise.
10262 * util/grub-reboot.in: Likewise.
10263 * util/grub-set-default.in: Likewise.
10264 * util/grub.d/00_header.in: Likewise.
10265 * util/grub.d/10_hurd.in: Likewise.
10266 * util/grub.d/10_kfreebsd.in: Likewise.
10267 * util/grub.d/10_linux.in: Likewise.
10268 * util/grub.d/10_netbsd.in: Likewise.
10269 * util/grub.d/10_windows.in: Likewise.
10270 * util/grub.d/20_linux_xen.in: Likewise.
10271 * util/grub.d/30_os-prober.in: Likewise.
10272 * po/POTFILES-shell.in: Regenerate.
10273
69edd81a
RL
102742012-02-03 Richard Laager <rlaager@wiktel.com>
10275
10276 * util/grub-mkimage.c (main): Fix format-security warning.
10277 * util/grub-mkrelpath.c (main): Likewise.
10278 * util/grub-probe.c (main): Likewise.
10279
65f08dbf
RL
102802012-02-03 Richard Laager <rlaager@wiktel.com>
10281
10282 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
10283 failure.
10284 Put back lost PRINT_DRIVE.
10285
e9084abe
RL
102862012-02-03 Richard Laager <rlaager@wiktel.com>
10287
10288 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
10289 (grub_guess_root_devices): Replace strlen with sizeof.
10290 Avoid crash.
10291 (find_root_devices_from_poolname): Remove unused variable.
10292 Handle raidzN.
10293
cf5f7ee7
VS
102942012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10295
10296 Support install on multi-device filesystems.
10297
10298 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
10299 (grub_guess_root_devices): ...this. Return char **. All users updated.
10300 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
10301 Removed.
10302 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
10303 (find_root_devices_from_poolname): ... here.
10304 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
10305 Support zfs-fuse.
10306 (grub_guess_root_device): Rename to ...
10307 (grub_guess_root_devices): ... this. Return char **. All users updated.
10308 * util/grub-install.in: Handle multi-device filesystems.
10309 * util/grub-probe.c (probe). Make device_names a char **. Add delim
10310 argument. All users updated.
10311 Handle multi-device filesystems.
10312 Use 'delim' as separator.
10313 Remove device check to allow filesystems on file.
10314 (main): Support -0 argument. Handle multi-device.
10315 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
10316 Fix a cross-device check while on it.
10317 (arguments): Remove root_dev.
10318 (argp_parser): Remove -r.
10319 (main): Remove root_dev.
10320
2f53a9ed
VS
103212012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10322
10323 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
10324
17e1d934
VS
103252012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10326
10327 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
10328 symbol.
10329 Reported by: NODA, Kai <nodakai>.
10330
d3e3fab5
VS
103312012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10332
10333 Fix ehci on amd64.
10334
10335 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
10336 pointers.
10337 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
10338 (grub_ehci_setup_qh): Likewise.
10339 (grub_ehci_find_qh): Likewise.
10340 (grub_ehci_transaction): Likewise.
10341 (grub_ehci_setup_transfer): Likewise.
10342 (grub_ehci_check_transfer): Likewise.
10343 (grub_ehci_portstatus): Likewise.
10344 (grub_ehci_detect_dev): Likewise.
10345 (grub_ehci_transfer_controller_data): New field td_last_phys.
10346 (grub_ehci_setup_transfer): Fill td_last_phys.
10347 (grub_ehci_check_transfer): Use td_last_phys.
10348
3008675b
SG
103492012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
10350
10351 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
10352 if no submenu is present.
10353
fc9b5652
AN
103542012-02-01 Aleš Nesrsta <starous@volny.cz>
10355
10356 CBI support.
10357
10358 * include/grub/usb.h (grub_usbms_protocol_t): New values
10359 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
10360 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
10361 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
10362 (grub_usbms_dev): Add subclass, protocol and intrpt.
10363 Remove in_maxsz and out_maxsz.
10364 (grub_usbms_reset): Rename to ...
10365 (grub_usbms_bo_reset): .. this.
10366 (grub_usbms_cbi_cmd): New function.
10367 (grub_usbms_cbi_reset): Likewise.
10368 (grub_usbms_reset): Likewise.
10369 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
10370 (grub_usbms_transfer): Rename to ...
10371 (grub_usbms_transfer_bo): ... this.
10372 (grub_usbms_transfer_cbi): Likewise.
10373 (grub_usbms_transfer): Likewise.
10374
a2b81d53
AN
103752012-02-01 Aleš Nesrsta <starous@volny.cz>
103762012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10377
10378 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
10379 the support for the CS5536 modification thereos and few bugfixes.
10380
10381 * grub-core/Makefile.core.def (ehci): New module.
10382 * grub-core/bus/usb/ehci.c: New file.
10383 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
10384 port and hubaddr. All users updated.
10385 Save port and hubaddr into dev structure.
10386 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
10387 define.
10388 * include/grub/pci.h (grub_dma_phys2virt): New function.
10389 (grub_dma_virt2phys): Likewise.
10390 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
10391
b1d51f02
VS
103922012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10393
10394 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
10395 check as some mkfs implementations omit it.
10396
fc694106
VS
103972012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10398
10399 * docs/grub.texi (Unicode): Mention identifier and space limitations.
10400
6c0920e3
VS
104012012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10402
10403 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
10404 Add new member volname2.
10405 (grub_jfs_label): Use volname2 if available.
10406
d1a46f9a
VS
104072012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10408
10409 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
10410 over last_mounted as seen in image generated by mkfs.nilfs2.
10411 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
10412
dec8ed14
VS
104132012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10414
10415 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
10416 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
10417 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
10418
7397c69b
VS
104192012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10420
10421 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
10422 over the sector.
10423
b3fe42ad
VS
104242012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10425
10426 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
10427 subvolume name (by removing a bogus and useless check).
10428
10476bb0
VS
104292012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10430
10431 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
10432 sizeof while on it.
10433
9c08ad87
VS
104342012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10435
10436 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
10437 (grub_scsi_read_capacity10): ... this.
10438 (grub_scsi_read_capacity16): New function.
10439 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
10440 0xffffffff.
10441 Fix off-by-one error.
10442 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
10443 64-bit unsigned.
10444 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
10445 (grub_scsi_read_capacity10): ... this.
10446 (grub_scsi_read_capacity_data): Rename to ...
10447 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
10448 (grub_scsi_read_capacity16): New struct.
10449 (grub_scsi_read_capacity16_data): Likewise.
10450 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
10451 grub_scsi_cmd_read_capacity10.
10452 New command grub_scsi_cmd_read_capacity16.
10453
bc8d0f45
VS
104542012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10455
10456 SCSI >2TiB support.
10457
10458 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
10459 (grub_scsi_write16): Likewise.
10460 (grub_scsi_read): Use read16 when necessary.
10461 (grub_scsi_write): Likewise.
10462 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
10463 (grub_scsi_write16): Likewise.
10464 (grub_scsi_cmd_t): Add READ16 and WRITE16.
10465
cc774926
VS
104662012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10467
10468 SCSI write support (for usbms mainly).
10469
10470 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
10471 a const pointer.
10472 (grub_scsi_write): Implement.
10473 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
10474
67639fd7
VS
104752012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
10478 variable.
10479
9079d3ed
VS
104802012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10481
10482 * grub-core/lib/posix_wrap/string.h (memchr): New function.
10483
c6a6f204
VS
104842012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10485
10486 * po/POTFILES.in: Regenerate.
10487
ecbf8cd1
VS
104882012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10489
10490 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
10491 with grub_printf to avoid unnecessary fatal failure.
10492
0b3b3b38
VS
104932012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10494
10495 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
10496 (INT_MAX): Likewise.
10497 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
10498 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
10499 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
10500 (strcpy): Likewise.
10501 (strstr): Likewise.
10502 (strchr): Likewise.
10503 (strncpy): Likewise.
10504 (strcat): Likewise.
10505 (strncat): Likewise.
10506 (strcoll): Likewise.
10507 * include/grub/types.h (GRUB_SHRT_MAX): New define.
10508 (GRUB_INT_MAX): Likewise.
10509
db7337a3
VS
105102012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
10513 unexpected error.
10514 (optimize_utf8): Likewise.
10515 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
10516
f37c87e1
VS
105172012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * grub-core/boot/i386/pc/lnxboot.S: Use
10520 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
10521 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
10522 location.
10523 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
10524 definition.
10525 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
10526
63fe43f3
VS
105272012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10528
10529 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
10530 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
10531 now to avoid double free.
10532 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
10533 hostdisk.
10534 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
10535 * util/grub-probe.c (escape_of_path): Always return a new copy.
10536 (print_full_name): Escape path.
10537 (probe): Don't call grub_util_devname_to_ofpath on NULL.
10538 Fix hints on abstractions.
10539
ebe2c961
VS
105402012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10541
10542 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
10543 Don't add "root" line if no compatibility hont is available.
10544 Suggested by: Seth Goldberg.
10545
2b5336a2
VS
105462012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10547
10548 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
10549 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
10550 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
10551 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
10552
74310bd8
VS
105532012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10554
10555 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
10556
c30582ba
VS
105572012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10558
10559 * util/grub-pe2elf.c (ehdr): Make static.
10560 (shdr): Likewise.
10561 (num_sections): Likewise.
10562 (offset): Likewise.
10563
5f47782c
VS
105642012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10565
10566 Eliminate ofpath limits and possible overflows.
10567
10568 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
10569 (OF_PATH_MAX): Removed.
10570 (MAX_DISK_CAT): New const.
10571 (find_obppath): Use allocated rather than preallocated buffer.
10572 Return result. Argument of_path removed. All users updated.
10573 Add missing fdstat.
10574 (xrealpath): New function.
10575 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
10576 Allocate rather than use preallocated buffer. All users updated.
10577 (__of_path_common): Use allocated rather than preallocatecd buffer.
10578 Return result. Argument of_path removed. All users updated.
10579 (vendor_is_ATA): Read only needed part form the file.
10580 (check_sas): Allocate depending on contents rather than fixed.
10581 (main) [STANDALONE]: Handle NULL result.
10582
f990cbf9
VS
105832012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10584
10585 * grub-core/normal/completion.c (iterate_dev): Close the disk.
10586
9c6e84b8
VS
105872012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10588
10589 Cryptodisk write support.
10590
10591 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
10592 (grub_cryptodisk_decrypt): Moved logic to ...
10593 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
10594 (grub_cryptodisk_write): Implement.
10595 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
10596 (grub_util_fd_write): ... this. Make global.
10597 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
10598
87cf9744
VS
105992012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10600
10601 * include/grub/list.h (grub_list_remove): Don't crash if element is
10602 removed twice.
10603
ca8c0baf
VS
106042012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10605
10606 Rename ofconsole to console.
10607
10608 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
10609 as sysnonym to console.
10610 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
10611 * grub-core/term/ieee1275/console.c: ... this. All users updated.
10612 Rename grub_ofconsole_ to grub_console_. All users updated
10613 (grub_console_term_output): Rename "ofconsole" to "console".
10614 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
10615 as "console".
10616
64c8b8f6
VS
106172012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10618
10619 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
10620 handling.
10621 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
10622 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
10623 GRUB_DISK_DEVICE_FILE_ID.
10624
f6c434d5
VS
106252012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10626
10627 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
10628 and improve performance.
10629
5858b42d
VS
106302012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10631
10632 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
10633 missing ieee1275/ prefix on whole disk.
10634
4ed3c26b
VS
106352012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10636
10637 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
10638 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
10639
df71143e
VS
106402012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10641
10642 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
10643
076e7c0f
VS
106442012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10645
10646 Merge common RAID and LVM logic to an abstract diskfilter.
10647 Add LDM support using the same framework.
10648
10649 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
10650 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
10651 (libgrubmods): Remove grub-core/disk/raid.c and
10652 grub-core/partmap/gpt.c.
10653 * grub-core/Makefile.core.def (ldm): New module.
10654 (raid): Renamed to diskfilter. All users updated.
10655 * grub-core/disk/raid.c: Moved to ...
10656 * grub-core/disk/diskfilter.c: ... here.
10657 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
10658 (lv_num): New var.
10659 (find_array): Renamed to ...
10660 (find_lv): ... this. Support multi-LV. Skip nameless LVs
10661 (grub_is_array_readable): Renamed to ...
10662 (grub_is_lv_readable): ... this. Support multinode hierarchy.
10663 (insert_array): New argument id.
10664 (is_node_readable): New function.
10665 (scan_device): Rename to ...
10666 (scan_disk): .. this. Restrict to one disk.
10667 (scan_devices): New function.
10668 (grub_diskfilter_iterate): Support multi-LV.
10669 Skip invisible and nameless LVs.
10670 (grub_diskfilter_memberlist): Support multi-LV.
10671 (grub_diskfilter_read_node): New function.
10672 (grub_raid_read): Most of logic moved to ...
10673 (read_segment): ... here
10674 (read_lv): New function.
10675 (grub_diskfilter_get_vg_by_uuid): New function.
10676 (grub_diskfilter_make_raid): Likewise.
10677 * grub-core/disk/ldm.c: New file.
10678 * grub-core/disk/lvm.c (vg_list): Removed.
10679 (lv_count): Likewise.
10680 (scan_depth): Likewise.
10681 (is_lv_readable): Likewise.
10682 (grub_lvm_getvalue): Advance pointer past the number.
10683 (find_lv): Removed.
10684 (do_lvm_scan): Refactored into ...
10685 (grub_lvm_detect): ... this. Support raid.
10686 (grub_lvm_iterate): Removed.
10687 (grub_lvm_memberlist): Likewise.
10688 (grub_lvm_open): Likewise.
10689 (grub_lvm_close): Likewise.
10690 (read_lv): Likewise.
10691 (read_node): Likewise.
10692 (is_node_readable): Likewise.
10693 (is_lv_readable): Likewise.
10694 (grub_lvm_read): Likewise.
10695 (grub_lvm_write): Likewise.
10696 (grub_lvm_dev): Use diskfilter
10697 (GRUB_MOD_INIT): Likewise.
10698 (GRUB_MOD_FINI): Likewise.
10699 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
10700 new interface.
10701 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
10702 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10703 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
10704 grub_diskfilter_read_node.
10705 Fix a bug with xor.
10706 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
10707 grub_diskfilter_read_node.
10708 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
10709 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
10710 (grub_disk_dev_iterate): Move from here...
10711 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
10712 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
10713 Make global.
10714 (grub_hostdisk_find_partition_start): Likewise.
10715 (grub_hostdisk_os_dev_to_grub_drive): New function.
10716 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
10717 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
10718 * util/getroot.c (make_device_name): ... here.
10719 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
10720 Move to ...
10721 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
10722 * grub-core/kern/emu/hostdisk.c
10723 (convert_system_partition_to_system_disk): Move to ...
10724 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
10725 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
10726 * util/getroot.c (device_is_wholedisk): ... here.
10727 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
10728 * util/getroot.c (find_system_device): ... here.
10729 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
10730 Move to ...
10731 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
10732 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
10733 Move to ...
10734 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
10735 Handle LDM.
10736 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10737 Move to ...
10738 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
10739 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
10740 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
10741 DISKFILTER.
10742 * include/grub/raid.h: Renamed to ...
10743 * include/grub/diskfilter.h: ... this.
10744 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
10745 (GRUB_RAID_LAYOUT_*): Make into array.
10746 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
10747 (grub_diskfilter_vg): New struct.
10748 (grub_diskfilter_pv_id): Likewise.
10749 (grub_raid_member): Removed.
10750 (grub_raid_array): Likewise.
10751 (grub_diskfilter_pv): New struct.
10752 (grub_diskfilter_lv): Likewise.
10753 (grub_diskfilter_segment): Likewise.
10754 (grub_diskfilter_node): Likewise.
10755 (grub_diskfilter_get_vg_by_uuid): New proto.
10756 (grub_raid_register): Inline.
10757 (grub_diskfilter_unregister): Likewise.
10758 (grub_diskfilter_make_raid): New proto.
10759 (grub_diskfilter_vg_register): Likewise.
10760 (grub_diskfilter_read_node): Likewise.
10761 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
10762 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
10763 (grub_util_is_ldm): Likewise.
10764 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
10765 (grub_hostdisk_find_partition_start): Likewise.
10766 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
10767 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
10768 New definition.
10769 (grub_gpt_partition_map_iterate): New proto.
10770 * include/grub/lvm.h (grub_lvm_vg): Removed.
10771 (grub_lvm_pv): Likewise.
10772 (grub_lvm_lv): Likewise.
10773 (grub_lvm_segment): Likewise.
10774 (grub_lvm_node): Likewise.
10775 * util/getroot.c [...]
10776 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
10777 (probe_abstraction): Likewise.
10778 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
10779 (main): Remove dead logic.
10780
8a7f9b9c
VS
107812012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
10782
10783 Simplify root device discover and don't fail when trying to open
10784 incorrect devices.
10785
10786 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
10787 function.
10788 (get_diskname_from_path): Likewise.
10789 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
10790 of iterating.
10791
30545b85
VS
107922012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10793
10794 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
10795
28ea58cf
VS
107962012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10797
10798 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
10799 pastthe end.
10800
692dabca
VS
108012012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10802
10803 * util/grub-install.in: Add missing \.
10804 Reported by: gentoofan
10805
f6e4ea70
VS
108062012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
10807
10808 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
10809 (direct_read): Use correct compressed size.
10810 (grub_squash_read_data): Likewise.
10811
108122012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
10813
10814 * docs/grub.texi (Platform limitations): New section.
10815 (Platform-specific operations): Likewise.
10816 * docs/grub-dev.texi (Porting): Likewise.
10817
76261110
VS
108182012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10819
10820 IEEE1275 disk write support.
10821
10822 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
10823 const void *.
10824 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
10825 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
10826 and seek loginc to ...
10827 (grub_ofdisk_prepare): ... here.
10828 (grub_ofdisk_write): Implement.
10829
fc36d603
VS
108302012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10831
10832 ARC disk write support.
10833
10834 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
10835 (reopen): New argument writable. All users updated.
10836 Handle required access mode.
10837 (grub_arcdisk_write): Implement.
10838 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
10839 (grub_arc_firmware_vector): Make buffer to write a const buffer.
10840
e06c2e7a
VS
108412012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10842
10843 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
10844 (read_sblock): Don't attempt to read superblocks outside the disk size.
10845
ff447958
VS
108462012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10847
10848 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
10849 first superblock to find the second one when possible.
10850
9e88df39
VS
108512012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10852
10853 * util/grub-install.in: Fix an ARC bug.
10854 Print a warning if no platform-specific setup is available.
10855
bb26e4ff
VS
108562012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10857
10858 Use static allocation rather than scratch pointer in reed_solomon.
10859 It decreases its size significantly and avoids a variable in .text.
10860
10861 * grub-core/lib/reed_solomon.c (scratch): Removed.
10862 (chosenstat): New const or static array.
10863 (sigma): Likewise.
10864 (errpot): Likewise.
10865 (errpos): Likewise.
10866 (sy): Likewise.
10867 (mstat): Likewise.
10868 (errvals): Likewise.
10869 (eqstat): Likewise.
10870 (pol_evaluate): Replace x with log_x argument. All users updated.
10871 (syndroms): Removed.
10872 (gauss_solve): Use statically allocated arrays.
10873 (rs_recover): Likewise.
10874 Calculate syndroms directly.
10875 (decode_block): Use statically allocated arrays.
10876 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
10877 (main) [TEST]: Allow -DTEST -DSTANDALONE.
10878
2e13ede5
VS
108792012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10880
10881 Eliminate fixed limit on reed solomon decoder length.
10882
10883 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
10884 rather than hardcoding the address.
10885 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
10886 no_reed_solomon_length.
10887 Move gate_a20 to no-reed-solomon part.
10888 Don't force a particular size of no reed-solomon part.
10889 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
10890 Removed.
10891 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
10892 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
10893
f8a9ab12
VS
108942012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10895
10896 * grub-core/commands/wildcard.c (match_files): Handle filenames
10897 without explicit device.
10898 (wildcard_expand): Don't add explicit device if not already present.
10899 * tests/grub_script_echo1.in: Add a new expansion test.
10900
87edb894
VS
109012012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 Replace single-linked with double-linked lists. It results in more
10904 compact and more efficient code.
10905
10906 * grub-core/kern/list.c (grub_list_push): Moved from here ...
10907 * include/grub/list.h (grub_list_push): ... to here. Set prev.
10908 (grub_list_remove): Moved from here ...
10909 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
10910 (grub_prio_list_insert): Set prev.
10911 * include/grub/list.h (grub_list): Add prev. All users updated.
10912
48b391e9
VS
109132012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10914
10915 Handle newer autotools. Add some missing quotes while on it.
10916
10917 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
10918 (pkglib_DATA): Move grub-mkconfig_lib from here ...
10919 (pkgdata_DATA): ... here.
10920 * Makefile.util.def (update-grub_lib): Removed.
10921 * conf/Makefile.common (pkglib_DATA): Removed.
10922 (pkglib_SCRIPTS): Likewise.
10923 (pkgdata_DATA): New variable.
10924 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
10925 needed.
10926 Add missing quotes.
10927 Remove unused variable while on it.
10928 * tests/util/grub-shell.in: Likewise.
10929 * util/grub-install.in: Likewise.
10930 * util/grub-mkconfig.in: Likewise.
10931 * util/grub-mknetdir.in: Likewise.
10932 * util/grub-mkrescue.in: Likewise.
10933 * util/grub-mkstandalone.in: Likewise.
10934 * util/grub.d/00_header.in: Likewise.
10935 * util/grub.d/10_hurd.in: Likewise.
10936 * util/grub.d/10_illumos.in: Likewise.
10937 * util/grub.d/10_kfreebsd.in: Likewise.
10938 * util/grub.d/10_linux.in: Likewise.
10939 * util/grub.d/10_netbsd.in: Likewise.
10940 * util/grub.d/10_windows.in: Likewise.
10941 * util/grub.d/20_linux_xen.in: Likewise.
10942 * util/grub.d/30_os-prober.in: Likewise.
10943 * util/update-grub_lib.in: Removed.
10944
109452012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
10946
10947 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
10948 a workaround for intel problem.
10949
66832792
PRP
109502012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
109512012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
109522012-01-23 pfsmorigo
10953
10954 * util/grub-install.in: Support dd'in into PreP partition.
10955 * util/grub-probe.c (probe): Support discovering partition type.
10956 (main): Support -t msdos_parttype.
10957
7816a17e
VS
109582012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
10961 infinite recursion using counter.
10962 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
10963 init to skip it if the magic check fails.
10964 (dec_stream_header): Init s->crc32.
10965
8f9d3a8c
ZB
109662012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
109672012-01-22 Zachary Bedell <pendorbound@gmail.com>
109682012-01-22 Richard Laager <rlaager@wiktel.com>
10969
10970 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
10971 All users updated.
10972 (find_bestub): Determine correct size.
10973 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
10974 (scan_disk): Align the size down.
10975 Call check pool before find_bestub to have ashift.
10976
b055dd32
VS
109772012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10978
10979 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
10980 dprintf in no-malloc zone.
10981
d779e9bd
ML
109822012-01-22 Mario Limonciello <mario_limonciello@dell.com>
10983
10984 * configure.ac: Add back in test for limits.h.
10985
b508af69
VS
109862012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10987
10988 Support 4K-sector NTFS.
10989
10990 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
10991 (grub_ntfs_data): Remove blocksize.
10992 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
10993 Remove data argument. All users updated.
10994
dad9c8b5
VS
109952012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
10998 being in .text to avoid dprel references.
10999 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
11000 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
11001 (grub_arch_highmemsize): Likewise.
11002 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
11003 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
11004 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
11005
d43a777e
VS
110062012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11007
11008 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
11009
11010 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
11011 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
11012
34e4208f
VS
110132012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11014
11015 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
11016 GRUB_UTIL.
11017 (grub_set_datetime_cmos): Likewise.
11018
3ec0fc1c
VS
110192012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11020
11021 Make XZ compression parameters dependent on target and not host CPU.
11022
11023 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
11024 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
11025
22489834
VS
110262012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11027
11028 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
11029 set but not used variable.
11030
8502fbca
VS
110312012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11032
11033 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
11034 created when no uuid support is compiled into mkfs.reiser.
11035
76df2068
VS
110362012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11037
11038 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
11039 (utf8_to_macroman): Do the opposite.
11040 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
11041
64e3f8f6
VS
110422012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11043
11044 * configure.ac: Refise build qemu_mips w/o unifont.
11045
9c271078
VS
110462012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11047
11048 Eliminate grub_min/grub_max prone to overflow usage.
11049
11050 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
11051 (poll_nonroot_hub): Likewise.
11052 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
11053 (grub_affs_label): Likewise.
11054 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
11055 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
11056 (grub_hfs_label): Likewise.
11057 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
11058 * grub-core/fs/zfs/zfs.c (MIN): Remove.
11059 (zap_leaf_array_equal): Use grub_size. Remove MIN.
11060 (zap_leaf_array_get): Likewise.
11061 (dnode_get_path): Likewise.
11062 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
11063 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
11064 * grub-core/script/execute.c (grub_script_break): Likewise.
11065 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
11066 grub_max.
11067 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
11068 * include/grub/misc.h (grub_min): Removed.
11069 (grub_max): Likewise.
11070
80662dbc
VS
110712012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11072
11073 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
11074 direct.inode = 0.
11075
e6da1467
VS
110762012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11077
11078 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
11079
b1ac4cb1
VS
110802012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11081
11082 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
11083
b4bf7c3b
VS
110842012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11085
11086 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
11087 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
11088
8ee1101a
VS
110892012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11090
11091 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
11092 rather than a hack for grub_strncasemap.
11093
110942012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 Support multiple initrds
11097 Note: part of this was accidently committed in r3739.
11098
11099 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
11100 initrd.
11101 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11102 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11103 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11104 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11105 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11106
4d1e2bc9
VS
111072012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11108
11109 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
11110 disks with unknown size.
11111 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
11112
75b49ebe
VS
111132012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 Remove defines pertaining to arbitrary limits not affecting GRUB
11116 anymore.
11117
11118 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
11119 (EXT2_MAX_SYMLINKCNT): Likewise.
11120 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
11121 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
11122 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
11123 (GRUB_PXE_MAX_BLKSIZE): Likewise.
11124 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
11125 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
11126 (DN_MAX_OBJECT_SHIFT): Likewise.
11127 (DN_MAX_OFFSET_SHIFT): Likewise.
11128 (DN_MAX_OBJECT): Likewise.
11129 (DNODES_PER_LEVEL_SHIFT): Likewise.
11130 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
11131 (SPA_MAXBLOCKSIZE): Likewise.
11132 (SPA_BLOCKSIZES): Likewise.
11133 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
11134 (MZAP_MAX_BLKSZ): Likewise.
11135
74a1dce7
VS
111362012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11137
11138 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
11139 handle NULL appropriately.
11140 Remove MIN.
11141
30c7d3ce
VS
111422012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11143
11144 Fix efiemu.
11145
11146 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
11147 cpu/types.h.
11148 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
11149 * configure.ac: Fix efiemu check.
11150
3c76ea0c
VS
111512012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11152
11153 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
11154 grub_probe.
11155 Reported by: adamwill
11156
7e532280
SG
111572012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
11158
11159 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
11160
30492374
VS
111612012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11162
11163 Fix handling of wide characters in gfxterm.
11164
11165 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
11166 (clear_char): Likewise.
11167 (paint_char): Skip code == NULL chars.
11168 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
11169
e70cb72f
VS
111702012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 * grub-core/normal/charset.c: Move comment to right place.
11173
5c827cf9
VS
111742012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11175
11176 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
11177 (GRUB_AFFS_FLAG_FFS): Put back where it was.
11178 (grub_affs_mount): Revert the correct version checking.
11179
53603892
VS
111802012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 * docs/grub.texi (Unicode): Mention several other unsupported features.
11183
ff094b9b
VS
111842011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11185
11186 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
11187 case statements as compile-time one.
11188 (direct_read): Prevent spurious warnings.
11189 (grub_squash_read_data): Likewise.
11190
c029da8a
VS
111912011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11192
11193 Various squash4 fixes and LZO and XZ support.
11194
11195 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
11196 Add xzembed source files.
11197 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
11198 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
11199 (grub_squash_inode): New subtype long_dir.
11200 (SQUASH_TYPE_LONG_DIR): New inode type.
11201 (COMPRESSION): New enum.
11202 (XZBUFSIZ): New const.
11203 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
11204 (read_chunk): Use data->decompress.
11205 (zlib_decompress): New function.
11206 (lzo_decompress): Likewise.
11207 (xz_decompress): Likewise.
11208 (squash_mount): Set new data fields.
11209 (grub_squash_iterate_dir): Handle long dir.
11210 (squash_unmount): Free xzdec and xzbuf.
11211 (grub_squash_open): Check ino type.
11212 (direct_read): Stylistic fixes. Use data->decompress.
11213 (grub_squash_read_data): Likewise.
11214 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
11215 (get_byte): Likewise.
11216 (grub_zlib_disk_read): Removed.
11217 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
11218 (GRUB_POSIX_BOOL_DEFINED): New define.
11219 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
11220 * grub-core/lib/xzembed/xz.h: Addmissing includes.
11221 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
11222 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
11223
7a45a539
VS
112242011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 Don't override more informative errors.
11227
11228 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
11229 * grub-core/font/font.c (open_section): Likewise.
11230 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
11231 filename. Don't override errors.
11232 (grub_cmd_openbsd_ramdisk): Don't override errors.
11233 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
11234 (grub_cmd_initrd): Likewise.
11235 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11236 (grub_cmd_initrd): Likewise.
11237 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
11238 (grub_cmd_linux): Likewise.
11239 (grub_cmd_initrd): Likewise.
11240 (grub_cmd_payload): Likewise.
11241 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11242 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
11243 (grub_cmd_module): Likewise.
11244 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11245 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11246 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
11247 (grub_cmd_xnu_mkext): Likewise.
11248 (grub_cmd_xnu_ramdisk): Likewise.
11249 (grub_xnu_check_os_bundle_required): Likewise.
11250 (grub_xnu_load_kext_from_dir): Likewise.
11251 (grub_cmd_xnu_kextdir): Likewise.
11252 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
11253
b2d004db
VS
112542011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11255
11256 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
11257 as 1024 in block size field. Found on one of my test images.
11258 Small optimisation while on it.
11259
ec000eac
VS
112602011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11261
11262 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
11263 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
11264 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
11265 performance fixes while on it.
11266 (grub_sfs_close): Fix memory leak while on it.
11267 (grub_sfs_label): Convert Latin1 to UTF-8.
11268
f50e1165
VS
112692011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11270
11271 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
11272 space to avoid overflows.
11273 (grub_hfs_label): Convert from macroman to UTF-8.
11274
2ae254de
VS
112752011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11276
11277 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
11278
0108f491
VS
112792011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11280
11281 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
11282
f45f5f89
VS
112832011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11284
11285 * unicode: Import Unicode 6.0 data.
11286
4d8c4765
VS
112872011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11288
63fa8ef9
VS
11289 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
11290 outside of range.
11291
112922011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
11295
11296 * include/grub/charset.h (grub_getend): New function.
11297 * grub-core/script/function.c (grub_script_function_find): Use
11298 grub_getend.
11299 * grub-core/normal/completion.c (add_completion): Likewise.
11300
f3cb4a4e
VS
113012011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11302
11303 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
11304 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
11305 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
11306 (GRUB_UNICODE_TAG_END): Likewise.
11307 (GRUB_UNICODE_LAST_VALID): Likewise.
11308
5da8dbc5
VS
113092011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11310
11311 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
11312 len and make it smaller. All users updated.
11313 * util/import_unicode.py: Put length and not end character.
11314 Check length.
11315
8569f13d
VS
113162011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11317
11318 Make better Unicode-compliant and unify some UTF-8 code pathes.
11319
11320 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
11321 valid character.
11322 (grub_is_valid_utf8): Use grub_utf8_process.
11323 Check resulting code range.
11324 (grub_utf8_to_ucs4): Use grub_utf8_process.
11325 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
11326 valid character.
11327
cc4fddf5
VS
113282011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11329
11330 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
11331
bbc47747
VS
113322011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11333
11334 * docs/grub.texi (Filesystems): Mention AFS.
11335
f63d6bf4
VS
113362011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11337
11338 * docs/grub.texi (Filesystems): Clarify restrictions.
11339 (Regexp): Mention non-Unicode regexp behaviour.
11340 (Other): Mention non-Unicode matching behaviour.
11341
74bbf0db
VS
113422011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11343
f63d6bf4 11344 Make HFS implementation use MacRoman.
74bbf0db
VS
11345
11346 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
11347 (macroman): New const array.
11348 (macroman_to_utf8): New function.
11349 (utf8_to_macroman): Likewise.
11350 (grub_hfs_find_dir): Use utf8_to_macroman.
11351 (grub_hfs_dir): Use macroman_to_utf8.
11352 Set case_insensitive.
11353
4ea0316e
VS
113542011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11355
11356 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
11357
d3c13cbd
VS
113582011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11359
11360 Integrate hints into autogeneration scripts.
11361
11362 * docs/grub.texi (Filesystems): Add a hostdisk example.
11363 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
11364 (grub-probe): Add ofpath.
11365 * gentpl.py: Remove group nosparc64.
11366 * grub-core/commands/search.c (cache_entry): New struct.
11367 (cache): New var.
11368 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
11369 * grub-core/commands/search_wrap.c (options): Add platform-specific
11370 hint options.
11371 (grub_cmd_search): Handle platform-specific hints.
11372 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
11373 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
11374 (grub_util_biosdisk_data): Likewise.
11375 (grub_util_biosdisk_open): Set device_map.
11376 (read_device_map): Handle "" as indication of no map.
11377 Set device_map.
11378 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
11379 (grub_util_biosdisk_get_compatibility_hint): New function.
11380 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
11381 * include/grub/emu/hostdisk.h
11382 (grub_util_biosdisk_get_compatibility_hint): New proto.
11383 * util/grub-install.in: Don't call grub-mkdevicemap.
11384 Add platform-specific hint to load.cfg.
11385 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
11386 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11387 hints. Set root preliminary to compatibility hint, not to OS name.
11388 * util/grub-probe.c (PRINT_*): Add hints.
11389 (print): Make static.
11390 (escape_of_path): New function.
11391 (guess_bios_drive): Likewise.
11392 (guess_efi_drive): Likewise.
11393 (guess_baremetal_drive): Likewise.
11394 (print_full_name): Likewise.
11395 (probe): Handle hints.
11396 (main): Likewise.
11397 * util/ieee1275/devicemap.c: Removed.
11398 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
11399 updated.
11400 (grub_util_devname_to_ofpath): Return NULL on failure.
11401
11402 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
11403 resource leak.
11404 * util/getroot.c (grub_util_pull_device): Fix memory leak.
11405
11406 * po/POTFILES.in: Regenerated.
11407
11408 Allow purely long options
11409
11410 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
11411 (SHORT_ARG_USAGE): Likewise.
11412 (grub_arg_show_help): Compare opt with help_options.
11413 (parse_option): Receive opt as argument. If makes big simplificatons.
11414 All users updated
11415
00ce2df3
VS
114162011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11417
11418 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
11419 Restructure to avoid warning.
11420
e77e325f
VS
114212011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11422
11423 * util/grub-install.in: Account for possible escaped comma in device
11424 name.
11425
165099ea
VS
114262011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11427
11428 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
11429 channel.
11430
ce4a999d
VS
114312011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11432
11433 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
11434 allocation and zero-setting.
11435 (grub_ieee1275_get_devname): Check that alias is complete.
11436
379586ad
VS
114372011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11438
11439 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
11440 unaligned segments.
11441
9197b0ad
VS
114422011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
11445 prefix.
11446 (grub_ofdisk_open): Check and discard ieee1275 prefix.
11447 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11448 Add ieee1275 prefix.
11449
edddb7f9
VS
114502011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11451
11452 * docs/grub.texi (Filesystems): Update.
11453
a1a8b1b9
VS
114542011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11455
11456 Support odc, newc and bigendian cpio formats.
11457
11458 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
11459 * grub-core/Makefile.core.def (newc): New module.
11460 (odc): Likewise.
11461 (cpio_be): Likewise.
11462 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
11463 (MAGIC): Likewise.
11464 (MAGIC2): Likewise.
11465 (head) [MODE_ODC]: Adapt for the format.
11466 (head) [MODE_NEWC]: Likewise.
11467 (head) [!MODE_*]: Write fields of interest as arrays.
11468 (MAGIC_USTAR): Removed.
11469 (read_number) [MODE_NEWC]: Change to hex.
11470 (read_number) [!MODE_*]: Parse binary arrays.
11471 (grub_cpio_find_file): Factor out the code for better structure and
11472 always use read_number.
11473 (grub_cpio_mount): Use MAGIC and MAGIC2.
11474 (grub_cpio_dir): Exit on first hook non-0 return.
11475 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
11476 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
11477 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
11478 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
11479 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
11480 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
11481 * grub-core/fs/newc.c: New file.
11482 * grub-core/fs/odc.c: Likewise.
11483 * grub-core/fs/cpio_be.c: Likewise.
11484
58eba9ee
VS
114852011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 Fix handling of tar numbers occupying the whole field.
11488
11489 * grub-core/fs/cpio.c (read_number): New function.
11490 (grub_cpio_find_file): Use read_number instead of strtoull.
11491
a54a0e12
VS
114922011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11493
11494 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
11495 occupying the whole field size.
11496
a6120aca
LA
114972011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
11498
11499 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
11500
a93964ce
VS
115012011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11502
11503 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
11504
3ea1ca46
SG
115052011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
11506
11507 * grub-core/Makefile.core.def (lzma_decompress): Add missing
11508 TARGET_IMG_LDFLAGS.
11509
b87f7ef2
VS
115102011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11511
11512 * util/getroot.c (ESCAPED_PATH_MAX): New define.
11513 (mountinfo_entry): Increase the field size to take escaping into
11514 account.
11515 (find_root_device_from_libzfs): Add one byte to size of strings for
11516 security.
11517
62092395
VS
115182011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11519
11520 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
11521 an assert.
11522 * util/grub-setup.c (setup): Likewise.
11523
1f0b1a77
VS
115242011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11525
11526 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
11527 _LzmaDecodeA.
11528
8eba9997
VS
115292011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11530
11531 * docs/grub.texi (Internationalisation): New section.
11532
dd0c91e9
VS
115332011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11534
11535 * docs/grub.texi (Loopback booting): New section.
11536
115372011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
11538
11539 * util/grub-mkstandalone.in: Fix minor typo errors.
11540
198e150a
VS
115412011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11542
11543 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
11544
11545 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
11546 net/icmp.c and net/icmp6.c.
11547 (http): New module.
11548 (priority_queue): Likewise.
11549 * grub-core/io/bufio.c: Rewritten.
11550 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
11551 TYPE_WITH_CONFIGFILE_OPTION.
11552 (legacy_commands): Add bootp and dhcp.
11553 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
11554 (grub_legacy_parse): Likewise.
11555 * grub-core/lib/priority_queue.c: New file.
11556 * grub-core/net/arp.c: Add missing license header.
11557 (arp_find_entry): Removed.
11558 (arp_find_entry): Likewise.
11559 (grub_net_arp_resolve): Rename to ...
11560 (grub_net_arp_send_request): ...this.
11561 (grub_net_arp_receive): New card argument.
11562 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
11563 Set router and DNS server.
11564 (grub_net_configure_by_dhcp_ack): Handle routing information.
11565 (grub_cmd_bootp): Set checksum.
11566 (grub_bootp_init): Remove net_dhcp.
11567 * grub-core/net/dns.c: New file.
11568 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
11569 completion.
11570 (get_card_packet): Handle allocation.
11571 (grub_efinet_findcards): Set mtu.
11572 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
11573 (get_card_packet): Handle allocation.
11574 (emucard): Set mtu.
11575 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
11576 (GRUB_MOD_INIT): Set mtu.
11577 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
11578 mtu.
11579 (get_card_packet): Handle allocation.
11580 (grub_ofnet_findcards): Set mtu.
11581 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
11582 assert.
11583 (grub_net_recv_ethernet_packet): Handle IPv6.
11584 * grub-core/net/http.c: New file.
11585 * grub-core/net/icmp.c: Likewise.
11586 * grub-core/net/icmp6.c: Likewise.
11587 * grub-core/net/ip.c (ip6addr): New type.
11588 (ip6hdr): Likewise.
11589 (reassemble): Likewise.
11590 (cmp): New function.
11591 (reassembles): New variable.
11592 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
11593 (id): New variable.
11594 (send_fragmented): New function.
11595 (grub_net_send_ip_packet): Rename to ...
11596 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
11597 Handle non-UDP.
11598 (grub_net_recv_ip_packets): Rename to ...
11599 (handle_dgram): ... this. Check checksum. Handle non-UDP.
11600 (free_rsm): New function.
11601 (free_old_fragments): Likewise.
11602 (grub_net_recv_ip4_packets): New function.
11603 (grub_net_send_ip6_packet): Likewise.
11604 (grub_net_send_ip_packet): Likewise.
11605 (grub_net_recv_ip6_packets): Likewise.
11606 (grub_net_recv_ip_packets): Likewise.
11607 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
11608 (LINK_LAYER_CACHE_SIZE): New const.
11609 (link_layer_find_entry): New function.
11610 (grub_net_link_layer_add_address): Likewise.
11611 (grub_net_link_layer_resolve_check): Likewise.
11612 (grub_net_link_layer_resolve): Likewise.
11613 (grub_net_ipv6_get_slaac): Likewise.
11614 (grub_net_ipv6_get_link_local): Likewise.
11615 (grub_cmd_ipv6_autoconf): Likewise.
11616 (parse_ip): Handle one number representation.
11617 (parse_ip6): New functoion.
11618 (match_net): Handle IPv6.
11619 (grub_net_resolve_address): Handle IPv6 and DNS.
11620 (grub_net_resolve_net_address): Handle IPv6.
11621 (route_cmp): New function.
11622 (grub_net_route_address): Find best route.
11623 (grub_net_addr_to_str): Handle IPv6.
11624 (grub_net_addr_cmp): New function.
11625 (grub_net_add_addr): Register local route.
11626 (print_net_address): Handle net address.
11627 (grub_net_poll_cards): Retransmit TCP.
11628 (grub_net_poll_cards_idle_real): Likewise.
11629 (have_ahead): New function.
11630 (grub_net_seek_real): Use underlying seek.
11631 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
11632 * grub-core/net/tcp.c: New file.
11633 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
11634 (cmp): New function.
11635 (ack): Likewise.
11636 (tftp_receive): Handle unordered input.
11637 (destroy_pq): New function.
11638 (tftp_close): Close pq.
11639 * grub-core/net/udp.c: Put missing license header.
11640 (grub_net_udp_socket): New function.
11641 (udp_socket_register): Likewise.
11642 (grub_net_udp_close): Likewise.
11643 (grub_net_recv_udp_packet): Check checksum.
11644 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
11645 * include/grub/misc.h (grub_memchr): New function.
11646 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
11647 (grub_net_card_driver): Return buf in recv.
11648 (grub_net_slaac_mac_list): New struct.
11649 (grub_network_level_protocol_id): Add ipv6.
11650 (grub_net_network_level_addr): Likewise.
11651 (grub_net_network_level_net_addr): Likewise.
11652 (grub_net_app_protocol): Add seek.
11653 (grub_net_socket): Removed.
11654 (grub_net_sockets): Likewise.
11655 (grub_net_socket_register): Likewise.
11656 (grub_net_socket_unregister): Likewise.
11657 (FOR_NET_SOCKETS): Likewise.
11658 (grub_net_add_addr): Add const.
11659 (GRUB_NET_BOOTP_*): New enum.
11660 (grub_net_addr_cmp): New proto.
11661 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
11662 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
11663 (grub_net_hwaddr_to_str): NEw proto.
11664 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
11665 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
11666 (grub_dns_init): New proto.
11667 (grub_dns_fini): Likewise.
11668 (grub_net_tcp_retransmit): Likewise.
11669 (grub_net_link_layer_add_address): Likewise.
11670 (grub_net_link_layer_resolve_check): Likewise.
11671 (grub_net_link_layer_resolve): Likewise.
11672 (grub_net_dns_lookup): Likewise.
11673 (grub_net_add_dns_server): Likewise.
11674 (grub_net_remove_dns_server): Likewise.
11675 (GRUB_NET_TRIES): New const.
11676 (GRUB_NET_INTERVAL): Likewise.
11677 * include/grub/net/arp.h: Mostly rewritten.
11678 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
11679 * include/grub/net/ip.h: Mostly rewritten.
11680 * include/grub/net/netbuff.h: Indent.
11681 * include/grub/net/tcp.h: New file.
11682 * include/grub/net/udp.h: Mostly rewritten.
11683 * include/grub/priority_queue.h: New file.
11684 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
11685 (grub_swap_bytes64_compile_time): Likewise.
11686 (grub_cpu_to_be16_compile_time): Likewise.
11687 (grub_cpu_to_be32_compile_time): Likewise.
11688 (grub_cpu_to_be64_compile_time): Likewise.
11689 (grub_be_to_cpu64_compile_time): Likewise.
11690
215c1800
VS
116912011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
11692
11693 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
11694 UINT_TO_PTR with cast.
11695
c17e546c
VS
116962011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11697
11698 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
11699 don't use them.
11700
ff6b18b6
VS
117012011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11702
11703 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
11704 already there.
11705
70ffcc93
VS
117062011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
11709 confusing ipxe.
11710
e5f4d260
VS
117112011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
11714 Add missing const attribute.
11715 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
11716 Likewise.
11717 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
11718 Likewise.
11719
8e54b4b7
VS
117202011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11721
11722 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
11723 misaligned access.
11724 (serpent_setkey): Likewise.
11725 (serpent_encrypt_internal): Likewise.
11726 (serpent_decrypt_internal): Likewise.
11727 (serpent_encrypt): Don't put an alignment-increasing cast.
11728 (serpent_decrypt): Likewise.
11729 (serpent_test): Likewise.
11730
813c0a2b
VS
117312011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11732
11733 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
11734
f2b60fbd
VS
117352011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11736
11737 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
11738
11739 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
11740 grub_addr_t casts.
11741 (PTR_TO_UINT64): Likewise.
11742 (PTR_TO_UINT32): Likewise.
11743
5ef5c511
VS
117442011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11745
11746 * util/grub-mkimage.c (generate_image): Decrease the higher limit
11747 because of stack.
11748 * util/grub-setup.c (setup): Don't add redundancy past the higher load
11749 limit.
11750
c476e6df
VS
117512011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11752
11753 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
11754 text_width > available width a bit more gracefully.
11755
384ad7cc
VS
117562011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11757
11758 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
11759 current address calculation.
11760
96f8caf8
VS
117612011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11762
11763 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
11764 stack.
11765 (encode_block): Likewise.
11766
276b7a8b
VS
117672011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11768
11769 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
11770 certainety.
11771
e3fd394a
VS
117722011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11773
11774 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
11775 non-RS part to avoid RS messing with GDT.
11776 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11777 Increase to suit in realmode routines.
11778
117792011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11780
11781 * grub-core/kern/i386/realmode.S: Increase alignment.
11782 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
11783
ee9c2e7a
VS
117842011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11785
11786 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
11787 be deterministic.
11788 (syndroms): Compute 0 syndrom.
11789 (rs_recover): Use 0 syndrom.
11790
7a7f7cc9
VS
117912011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11792
11793 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
11794
a14b16d1
VS
117952011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11796
11797 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
11798 brackets.
11799
9f59e9fc
VS
118002011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11801
ca1b552c
VS
11802 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
11803 account.
11804 (get_top_pad): Likewise.
11805 (get_right_pad): Likewise.
11806 (get_bottom_pad): Likewise.
11807
118082011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11809
11810 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 11811
e739d698
VS
118122011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11813
11814 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
11815 attribute as the structure isn't guaranteed to be properly aligned.
11816 (grub_efi_pci_device_path): Likewise.
11817 (grub_efi_pccard_device_path): Likewise.
11818 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
11819 specify the size of `memory_type'.
11820 (grub_efi_vendor_device_path): Likewise.
11821 (grub_efi_controller_device_path): Likewise.
11822 (grub_efi_acpi_device_path): Likewise.
11823 (grub_efi_expanded_acpi_device_path): Likewise.
11824 (grub_efi_atapi_device_path): Likewise.
11825 (grub_efi_scsi_device_path): Likewise.
11826 (grub_efi_fibre_channel_device_path): Likewise.
11827 (grub_efi_1394_device_path): Likewise.
11828 (grub_efi_usb_device_path): Likewise.
11829 (grub_efi_usb_class_device_path): Likewise.
11830 (grub_efi_i2o_device_path): Likewise.
11831 (grub_efi_mac_address_device_path): Likewise.
11832 (grub_efi_ipv4_device_path): Likewise.
11833 (grub_efi_ipv6_device_path): Likewise.
11834 (grub_efi_infiniband_device_path): Likewise.
11835 (grub_efi_uart_device_path): Likewise.
11836 (grub_efi_vendor_messaging_device_path): Likewise.
11837 (grub_efi_hard_drive_device_path): Likewise.
11838 (grub_efi_cdrom_device_path): Likewise.
11839 (grub_efi_vendor_media_device_path): Likewise.
11840 (grub_efi_file_path_device_path): Likewise.
11841 (grub_efi_protocol_device_path): Likewise.
11842 (grub_efi_piwg_device_path): Likewise.
11843 (grub_efi_bios_device_path): Likewise.
11844
cb8f88ea
VS
118452011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11846
11847 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
11848 (grub_ucs4_to_utf8_alloc): Likewise.
11849 (grub_ucs4_to_utf8): Likewise.
11850 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
11851 (grub_ucs4_to_utf8_alloc): Likewise.
11852
309e5352
VS
118532011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 AFFS never uses unicode.
11856
11857 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
11858 (grub_latin1_to_utf8): New inline function.
11859 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
11860
e7987e1b
VS
118612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11862
11863 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
11864 overflow.
11865
efc2616e
VS
118662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11867
11868 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
11869 (grub_squash_dirent_header): Likewise.
11870 (read_chunk): Don't double swap.
11871 (grub_squash_iterate_dir): Fix swap sizes.
11872
3c349f5a
VS
118732011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11874
11875 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
11876
b453412d
VS
118772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11878
11879 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
11880 (grub_hfs_iterate_dir): Likewise.
11881
12e9d4d1
VS
118822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11883
11884 Fix video on platforms where unaligned access is forbidden.
11885 Make several optimisations while on it.
11886
11887 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
11888 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
11889 (grub_video_fbblit_replace_32bit_1bit): Likewise.
11890 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
11891 Disable.
11892 (grub_video_fbblit_replace_16bit_1bit):
11893 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
11894 (grub_video_fbblit_replace_8bit_1bit): Likewise.
11895 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
11896 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
11897 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
11898 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
11899 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
11900 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
11901 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
11902 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
11903 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
11904 (grub_video_fbblit_replace_index_RGB888): Likewise.
11905 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
11906 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
11907 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
11908 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
11909 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
11910 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
11911 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
11912 Disable.
11913 (grub_video_fbblit_blend_XXX565_1bit):
11914 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
11915 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
11916 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
11917 void *.
11918 * grub-core/video/fb/video_fb.c (common_blitter)
11919 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
11920 (grub_video_fb_create_render_target_from_pointer)
11921 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
11922 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
11923 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
11924 definition.
11925 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
11926
ace96609
VS
119272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11928
11929 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
11930 HH22 and HM10 relocations.
11931
fd261d73
VS
119322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11933
11934 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
11935
e59b7857
VS
119362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11937
11938 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
11939 allocation succeeded.
11940
9b4baaa4
VS
119412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11942
11943 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
11944 argument a u8 pointer. All users updated.
11945 Handle unaligned buffers.
11946
dc713193
VS
119472011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11948
11949 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
11950 add_part to workaround compiler bug.
11951
30dd48c2
VS
119522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11953
11954 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
11955
0c6087a8
VS
119562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11957
11958 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
11959 Reserve alignment invariants.
11960 (grub_multiboot_load): Likewise.
11961 (retrieve_video_parameters): Likewise.
11962 (grub_multiboot_make_mbi): Likewise.
11963
c2e77777
VS
119642011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11965
11966 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
11967 incorrect pointer.
11968
b70b6d11
VS
119692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11970
11971 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
11972 (grub_pata_pio_write): Likewise.
11973
02a2bf83
VS
119742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11975
11976 Add noreturn attributes and remove unreachable code.
11977
11978 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
11979 code.
11980 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
11981 code. Mark as noreturn.
11982 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
11983 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
11984 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
11985 unreachable code.
11986 * grub-core/kern/main.c (grub_main): Mark as noreturn.
11987 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
11988 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
11989 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
11990 * include/grub/kernel.h (grub_main): Mark as noreturn.
11991 * include/grub/reader.h (grub_rescue_run): Likewise.
11992
2019d09e
VS
119932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11994
11995 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
11996 redundant declaration.
11997
d1c501ee
VS
119982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11999
12000 * include/grub/net.h (grub_net_network_level_interfaces): Remove
12001 redundant declaration.
12002 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
12003
61664420
VS
120042011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12005
12006 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
12007 to ensure alignment.
12008 (grub_hdparm_print_identify): Make argument uint16 * to ensure
12009 alignment. Ensure tmp alignment.
12010 (grub_cmd_hdparm): Ensure buf alignment.
12011 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
12012 to ensure alignment.
12013 (grub_ata_dumpinfo): Ensure text alignment.
12014 (grub_atapi_identify): Preserve alignment invariant.
12015 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
12016
0d51ee20
VS
120172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12018
12019 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
12020 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
12021 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
12022 * include/grub/misc.h (grub_reboot)
12023 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
12024 (grub_halt) [__mips__]: Likewise.
12025
753ef8c1
VS
120262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12027
12028 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
12029 Remove redundant declaration.
12030 (grub_mmap_get_post64): Likewise.
12031 (grub_mmap_get_upper): Likewise.
12032 (grub_mmap_get_lower): Likewise.
12033
85c85365
VS
120342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12035
12036 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
12037 uint32_t * to ensure alignment.
12038 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
12039
a23f2cc4
VS
120402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12041
93018f64
VS
12042 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
12043 uint16_t * to ensure alignment.
12044 (sun_pc_partition_map_iterate): Make `block' a union to ensure
12045 alignment.
12046
120472011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12048
12049 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
12050 to ensure alignment.
12051 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
12052
58acccd6
VS
120532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12054
12055 * grub-core/fs/ntfs.c (u16at): Make into inline function.
12056 Handle unaligned pointers.
12057 (u32at): Likewise.
12058 (u64at): Likewise.
12059 (fixup): Use byte access instead of v16at.
12060 (find_attr): Fix imporper usage of v32at.
12061 (read_data): Likewise.
12062 (list_file): Handle byte-swapping and unaligned strings.
12063 (grub_ntfs_label): Likewise.
12064
9b05cad7
VS
120652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12066
12067 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
12068 as it's not necessarily aligned.
12069
b3950b84
VS
120702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12071
12072 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
12073 redundant declaration.
12074 (grub_serial_init): Likewise.
12075 (grub_terminfo_init): Likewise.
12076
fcd232b7
VS
120772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12078
12079 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
12080 function.
12081 (ZAP_HASH_IDX): Likewise.
12082 (ZAP_LEAF_HASH_SHIFT): Likewise.
12083 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
12084 (LEAF_HASH): Likewise.
12085 (ZAP_LEAF_NUMCHUNKS): Likewise.
12086 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
12087 alignment invariants. Return pointer. All users updated.
12088 (ZAP_LEAF_ENTRY): Make into inline function.
12089 (NBBY): Removed.
12090 (xor): LIkewise.
12091 (xor_out): Use grub_crypto_xor.
12092 (dnode_get_path): Use grub_get_unaligned.
12093 (nvlist_find_value): Likewise.
12094 (grub_zfs_nvlist_lookup_uint64): Likewise.
12095 (grub_zfs_nvlist_lookup_string): Likewise.
12096 (get_nvlist_size): Likewise.
12097 (grub_zfs_open): Likewise.
12098 (fill_fs_info): Likewise.
12099 (grub_zfs_dir): Likewise.
12100 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
12101 alignment invariants.
12102 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
12103 necessarily aligned.
12104
f138623a
VS
121052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12106
12107 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
12108
564840dc
VS
121092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12110
12111 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
12112 arithmetic to conserve alignment invariants.
12113
9b40df20
VS
121142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12115
12116 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
12117 redundant declaration.
12118 (grub_efiemu_mm_obtain_request): Likewise.
12119 (grub_efiemu_prepare): Likewise.
12120
d1c930f9
VS
121212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12122
12123 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
12124 to match types.
12125
4c5f3056
VS
121262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12127
12128 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
12129 case of aunaligned recptr.
12130 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
12131 alignment.
12132 (grub_hfsplus_btree_search): Handle unaligned index.
12133
728cba91
VS
121342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12135
12136 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
12137 to get freetag and skip.
12138
eb561f31
VS
121392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12140
12141 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
12142 array.
12143 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
12144 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
12145
20993fbb
VS
121462011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12147
12148 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
12149 name for checksum and fix allocation algorithm.
12150
1f313b94
VS
121512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12152
12153 * include/grub/types.h (grub_properly_aligned_t): New type.
12154 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
12155 (grub_get_unaligned16): Add explicit casts.
12156 (grub_get_unaligned32): Likewise.
12157 (grub_get_unaligned64): Likewise.
12158 (grub_set_unaligned16): New function.
12159 (grub_set_unaligned32): Likewise.
12160
47ae27ec
VS
121612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12164
78c2cd1c
VS
121652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12166
12167 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
12168 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
12169 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
12170
53072f9b
VS
121712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12172
12173 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
12174 conditionals.
12175
055dc239
VS
121762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12177
12178 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
12179 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
12180
496bd074
VS
121812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12182
12183 Unify and improve RAID and crypto xor.
12184
12185 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
12186 changed to grub_crypto_xor
12187 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
12188 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
12189 Use bigger types when possible.
12190
ef6e4335
VS
121912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12192
12193 * grub-core/disk/raid.c (scan_devices): Fix condition.
12194
5d048bf2
VS
121952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12196
12197 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
12198 Make name a const ptr.
12199
ee533335
VS
122002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12201
12202 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
12203 first argument a const pointer.
12204 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12205 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
12206 proto.
12207 (grub_children_iterate): Likewise.
12208 (grub_machine_mmap_iterate): Remove redundant declaration.
12209
cc8f3668
VS
122102011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12211
12212 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
12213 (grub_cmd_acpi) [!x86]: Disable EBDA.
12214
c5fc563a
VS
122152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12216
12217 Enable UTF8 in gnulib regexp.
12218
12219 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
12220 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
12221 (isupper): Use grub_isupper.
12222 (isascii): New inline function.
12223 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
12224 * grub-core/lib/posix_wrap/wctype.h: Likewise.
12225 * grub-core/normal/charset.c (grub_utf8_process): New function.
12226 (grub_utf8_to_utf16): Use grub_utf8_process.
12227 (grub_encode_utf8_character): New function.
12228 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
12229 * include/grub/charset.h (grub_utf8_process): New declaration.
12230 (grub_encode_utf8_character): Likewise.
12231 * include/grub/misc.h (grub_islower): New inline function.
12232 (grub_isupper): Likewise.
12233 (grub_strchrsub): Moved down to fix the definitions.
12234
0af2346f
VS
122352011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12236
12237 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
12238 specification.
12239
74dbd244
VS
122402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12241
12242 * include/grub/loader.h (grub_loader_register_preboot_hook):
12243 Use struct preboot * and not void * for handle. All users updated.
12244 (grub_loader_unregister_preboot_hook): Likewise.
12245
1bc8f60d
VS
122462011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12247
12248 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
12249 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
12250 UTF-16-BE. All users updated.
12251 (grub_hfsplus_cmp_catkey): Fix unicode handling.
12252 (grub_hfsplus_iterate_dir): Likewise.
12253 (grub_hfsplus_label): Likewise.
12254
48d6e456
VS
122552011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12256
12257 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
12258
bf3a3857
VS
122592011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
12260
12261 Add missing const qualifiers.
12262
12263 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
12264 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
12265 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
12266 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
12267 (grub_lvm_check_flag): Likewise.
12268 * grub-core/efiemu/i386/coredetect.c
12269 (grub_efiemu_get_default_core_name): Likewise
12270 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
12271 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
12272 * grub-core/fs/ntfs.c (fixup): Likewise.
12273 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
12274 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
12275 (fzap_lookup): Likewise.
12276 (zap_lookup): Likewise.
12277 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
12278 * grub-core/lib/legacy_parse.c (check_option): Likewise.
12279 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
12280 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
12281 (grub_freebsd_add_meta_module): Likewise.
12282 (grub_cmd_freebsd_module): Likewise.
12283 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
12284 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
12285 (grub_xnu_writetree_get_size): Likewise.
12286 (grub_xnu_writetree_toheap_real): Likewise.
12287 (grub_xnu_find_key): Likewise.
12288 (grub_xnu_create_key): Likewise.
12289 (grub_xnu_create_value): Likewise.
12290 (grub_xnu_register_memory): Likewise.
12291 (grub_xnu_check_os_bundle_required): Likewise.
12292 (grub_xnu_scan_dir_for_kexts): Likewise.
12293 (grub_xnu_load_kext_from_dir): Likewise.
12294 * grub-core/normal/color.c (color_list): Likewise.
12295 * grub-core/normal/completion.c (current_word): Likewise.
12296 * grub-core/normal/menu_entry.c (insert_string): Likewise.
12297 * grub-core/term/serial.c (grub_serial_find): Likewise.
12298 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
12299 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
12300 Likewise.
12301 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
12302 (grub_freebsd_add_meta_module): Likewise.
12303 * include/grub/lib/arg.h (grub_arg_option): Likewise.
12304 * include/grub/net.h (grub_net_card_driver): Likewise.
12305 (grub_net_card): Likewise.
12306 (grub_net_app_protocol): Likewise.
12307 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
12308 * include/grub/serial.h (grub_serial_find): Likewise.
12309 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
12310 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
12311 (grub_xnu_create_value): Likewise.
12312 (grub_xnu_find_key): Likewise.
12313 (grub_xnu_scan_dir_for_kexts): Likewise.
12314 (grub_xnu_load_kext_from_dir): Likewise.
12315
12316 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
12317 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
12318 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
12319 Moved from here ...
12320 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
12321
112b4837
CW
123222011-11-28 Colin Watson <cjwatson@ubuntu.com>
12323
12324 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
12325
49e891ac
VS
123262011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
12327
12328 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
12329 (read_device): Fix size calculation.
12330
fd258e5c
RM
123312011-11-25 Robert Millan <rmh@gnu.org>
12332
12333 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
12334 (find_root_device_from_libzfs): Add zpool output parser to be used
12335 as fallback when libzfs isn't available.
12336
78845dc2
SG
123372011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
12338
12339 * po/Makefile.in.in: Add missing escape-continuation.
12340
adac5211
VS
123412011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
12342
12343 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
12344
10b64f1c
VS
123452011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12346
12347 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
12348
bb416954
VS
123492011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
12352
bdfe9eeb
VS
123532011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12354
12355 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
12356
581ffa8a
VS
123572011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
12358
12359 * grub-core/lib/adler32.c: Add missing license specification.
12360 * grub-core/lib/crc64.c: Likewise.
12361 * grub-core/loader/i386/pc/plan9.c: Likewise.
12362 * grub-core/partmap/plan.c: Likewise.
12363
2536cf64
LK
123642011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
12365
12366 Add facility to debug GRUB with gdb under qemu.
12367
12368 * grub-core/gdb_grub.in: New file.
12369 * grub-core/gmodule.pl.in: Likewise.
12370 * grub-core/Makefile.core.def (gmodule.pl): New script.
12371 (gdb_grub): Likewise.
12372
bc108a4a
VS
123732011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12374
12375 * util/grub-mount.c (argp_parser): Accept relative pathes.
12376 * util/grub-fstest.c (argp_parser): Likewise.
12377
111c1778
VS
123782011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12379
12380 Plan9 support.
12381
12382 * Makefile.util.def (libgrubmods): Add
12383 grub-core/partmap/plan.c.
12384 * docs/grub.texi: Notice Plan9 support.
12385 * grub-core/Makefile.core.def (plan9): New module.
12386 (part_plan): Likewise.
12387 * grub-core/loader/i386/pc/plan9.c: New file.
12388 * grub-core/partmap/plan.c: Likewise.
12389 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
12390 define.
12391 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
12392 * include/grub/mm.h (grub_extend_alloc): New inline function.
12393
c30be3b6
VS
123942011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12395
12396 Make Reed-Solomon faster by using power of generator representation of
12397 GF(256)*.
12398
12399 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
12400 (gf_double_t): Likewise.
12401 (gf_invert): Removed.
12402 (gf_powx): New array.
12403 (gf_powx_inv): Likewise.
12404 (scratch): Move higher.
12405 (gf_reduce): Removed.
12406 (gf_mul): Use powx.
12407 (gf_invert): Likewise.
12408 (init_inverts): Replaced with ...
12409 (init_powx): ...this. All users updated.
12410 (pol_evaluate): Replace multiplications with additions.
12411 (rs_encode): Likewise.
12412 (gauss_eliminate): Call gf_invert.
12413 (grub_reed_solomon_add_redundancy): Call init_powx.
12414 (grub_reed_solomon_recover): Call init_powx unconditionally.
12415
fa5aeffc
VS
124162011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12417
12418 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
12419
a346b81c
VS
124202011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12421
12422 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
12423 disk->partiton for safety.
12424
d89ee414
VS
124252011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12426
12427 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
12428 Fix a memory leak.
12429 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
12430
91ee7b6d
VS
124312011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12432
12433 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
12434
91e5a33d
VS
124352011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12436
12437 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
12438
9edd7be2
VS
124392011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12440
12441 Fix spaces handling in proc/self/mountinfo.
12442
12443 * util/getroot.c (unescape): New function.
12444 (grub_find_root_device_from_mountinfo): Use unescape.
12445
ba102053
VS
124462011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12447
12448 Support ZFS embedding.
12449
12450 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
12451 (grub_zfs_fs): Register grub_zfs_embed.
12452
aa94b870
VS
124532011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12454
12455 Fix MIPS compilation.
12456
12457 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
12458 * include/grub/offsets.h: Rename decompressor fields from
12459 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
12460 * util/grub-mkimage.c (image_targets): Use new names.
12461
5fbdac14
VS
124622011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12463
12464 Defer multiboot device parsing until we're in compressed part.
12465
12466 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
12467 bsd_part. setdevice has fallen into disuse.
12468 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
12469 (bsd_part): Likewise.
12470 (boot_dev): New variable.
12471 (multiboot_trampoline): Don't parse multiboot device.
12472 Pass multiboot device in %edx.
12473 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
12474 grub_boot_device.
12475 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
12476 Likewise.
12477 * grub-core/kern/i386/pc/startup.S: Save edx.
12478 (grub_boot_drive): Removed.
12479 (grub_install_dos_part): Likewise.
12480 (grub_install_bsd_part): Likewise.
12481 (grub_boot_device): New variable.
12482 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
12483 (grub_install_bsd_part): Likewise.
12484 (grub_boot_drive): Likewise.
12485 (grub_boot_device): New variable.
12486 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
12487 Removed.
12488 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12489 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
12490 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
12491 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
12492 * util/grub-install.in: Remove redundant condition.
12493
691cbb58
VS
124942011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12495
12496 Fix bug introduced by previous commit.
12497
12498 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
12499
60240b8b
VS
125002011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12501
12502 Use decompressors framework on i386-pc. It increases core size
12503 by 46 bytes but improves compatibility and maintainability.
12504
12505 * grub-core/Makefile.core.def (lzma_decompress): New image.
12506 (kernel): Add i386_pc_ldflags.
12507 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
12508 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
12509 to real_to_prot, prot_to_real and device info.
12510 * include/grub/offsets.h: Renamed decompressor offsets.
12511 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
12512 (image_target_desc): Remove raw_size and rename decompressor fields.
12513 (compress_kernel): Handle lzma.
12514 (generate_image): Handle decompressors on i386-pc.
12515
e9d3421c
VS
125162011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12517
12518 * configure.ac: Add -fno-asynchronous-unwind-tables.
12519
2b23074a
VS
125202011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12521
12522 Move assembly code to C by using intwrap. It increases core size
12523 by 88 bytes but improves compatibility and maintainability.
12524
12525 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
12526 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
12527 ... here. Translated to C.
12528 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
12529 * grub-core/term/i386/pc/console.c (grub_console_getkey):
12530 ... here. Translated to C.
12531 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
12532 * grub-core/term/i386/pc/console.c (grub_console_getxy):
12533 ... here. Translated to C.
12534 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
12535 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
12536 ... here. Translated to C.
12537 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
12538 * grub-core/term/i386/pc/console.c (grub_console_cls):
12539 ... here. Translated to C.
12540 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
12541 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
12542 ... here. Translated to C.
12543 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
12544 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
12545 Translated to C.
12546 * grub-core/term/i386/pc/console.c (int10_9): New function.
12547 (grub_console_putchar): Likewise.
12548 * include/grub/i386/pc/console.h: Removed the not anymore shared
12549 functions.
12550
678f4b67
VS
125512011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12552
12553 Move grub_chainloader_real_boot out of the kernel.
12554
12555 * grub-core/Makefile.am: Remove machine/loader.h.
12556 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12557 Removed.
12558 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
12559 variable.
12560 (grub_relocator16_keep_a20_enabled): Likewise.
12561 (grub_relocator16_boot): Fill new variables.
12562 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
12563 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
12564 relocator.
12565 (grub_chainloader_unload): Likewise.
12566 (grub_chainloader_cmd): Likewise.
12567 * include/grub/i386/pc/loader.h: Removed.
12568 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
12569 and esi. All initialisers updated.
12570
4626edf6
VS
125712011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
125722011-11-12 Colin Watson <cjwatson@ubuntu.com>
12573
12574 * Makefile.util.def (grub-mount): New util.
12575 * .bzrignore: Add grub-mount.
12576 * configure.ac: Check for fuse and enable grub-mount if available.
12577 * docs/man/grub-mount.h2m: New file.
12578 * util/grub-mount.c: Likewise.
12579
10f0117b
VS
125802011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12581
12582 * grub-core/commands/efi/fixvideo.c: Gettextize.
12583 * grub-core/commands/hashsum.c: Likewise.
12584 * grub-core/commands/i386/cmostest.c: Likewise.
12585 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12586 * grub-core/commands/i386/pc/lsapm.c: Likewise.
12587 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12588 * grub-core/commands/lsmmap.c: Likewise.
12589 * grub-core/commands/menuentry.c: Likewise.
12590 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
12591 * grub-core/commands/setpci.c: Likewise.
12592 * grub-core/loader/i386/bsd.c: Likewise.
12593 * grub-core/loader/i386/linux.c: Likewise.
12594 * util/getroot.c: Likewise.
12595 * util/grub-editenv.c: Likewise.
12596 * util/grub-fstest.c: Likewise.
12597 * util/grub-mkfont.c: Likewise.
12598 * util/grub-mkimage.c: Likewise.
12599 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12600 * util/grub-pe2elf.c: Likewise.
12601 * util/grub-probe.c: Likewise.
12602 * util/grub-setup.c: Likewise.
12603 * util/ieee1275/ofpath.c: Likewise.
12604 * util/misc.c: Likewise.
12605 * util/raid.c: Likewise.
12606
566f779b
RM
126072011-11-11 Robert Millan <rmh@gnu.org>
12608
12609 * util/getroot.c (grub_util_get_geom_abstraction): Remove
12610 __attribute__((unused)) from `os_dev', which *is* being used.
12611
b50787de
VS
126122011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12613
12614 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
12615 forgotten define.
12616 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
12617 GRUB_IA64_DL_GOT_ALIGN.
12618 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
12619 GRUB_IA64_DL_TRAMP_ALIGN.
12620
119d11c8
VS
126212011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12622
12623 Replace grub_fatal with normal errors in i386 linux loader.
12624
12625 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
12626 (allocate_pages): Check find_efi_mmap_size return value.
12627 (grub_e820_add_region): Return error.
12628 (grub_linux_boot): Check mmap return value.
12629
6e0632e2
VS
126302011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12631
12632 * grub-core/commands/acpihalt.c: Gettextized.
12633 * grub-core/commands/cacheinfo.c: Likewise.
12634 * grub-core/commands/cmp.c: Likewise.
12635 * grub-core/commands/efi/loadbios.c: Likewise.
12636 * grub-core/commands/gptsync.c: Likewise.
12637 * grub-core/commands/ieee1275/suspend.c: Likewise.
12638 * grub-core/commands/legacycfg.c: Likewise.
12639 * grub-core/commands/memrw.c: Likewise.
12640 * grub-core/commands/minicmd.c: Likewise.
12641 * grub-core/commands/parttool.c: Likewise.
12642 * grub-core/commands/time.c: Likewise.
12643 * grub-core/commands/videoinfo.c: Likewise.
12644 * grub-core/disk/geli.c: Likewise.
12645 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
12646 * grub-core/disk/luks.c: Likewise.
12647 * grub-core/disk/lvm.c: Likewise.
12648 * grub-core/font/font_cmd.c: Likewise.
12649 * grub-core/fs/zfs/zfscrypt.c: Likewise.
12650 * grub-core/fs/zfs/zfsinfo.c: Likewise.
12651 * grub-core/gfxmenu/view.c: Likewise.
12652 * grub-core/kern/emu/hostdisk.c: Likewise.
12653 * grub-core/kern/emu/main.c: Likewise.
12654 * grub-core/kern/emu/misc.c: Likewise.
12655 * grub-core/kern/emu/mm.c: Likewise.
12656 * grub-core/kern/mips/arc/init.c: Likewise.
12657 * grub-core/kern/mips/loongson/init.c: Likewise.
12658 * grub-core/kern/partition.c: Likewise.
12659 * grub-core/lib/i386/halt.c: Likewise.
12660 * grub-core/lib/mips/arc/reboot.c: Likewise.
12661 * grub-core/lib/mips/loongson/reboot.c: Likewise.
12662 * grub-core/loader/i386/pc/chainloader.c: Likewise.
12663 * grub-core/loader/i386/xnu.c: Likewise.
12664 * grub-core/loader/multiboot.c: Likewise.
12665 * grub-core/net/bootp.c: Likewise.
12666 * grub-core/net/net.c: Likewise.
12667 * grub-core/normal/term.c: Likewise.
12668 * grub-core/partmap/bsdlabel.c: Likewise.
12669 * grub-core/parttool/msdospart.c: Likewise.
12670 * grub-core/term/gfxterm.c: Likewise.
12671 * grub-core/term/terminfo.c: Likewise.
12672 * grub-core/video/i386/pc/vbe.c: Likewise.
12673 * util/grub-menulst2cfg.c: Likewise.
12674 * util/grub-mkdevicemap.c: Likewise.
12675 * util/grub-mklayout.c: Likewise.
12676 * util/grub-mkrelpath.c: Likewise.
12677 * util/grub-script-check.c: Likewise.
12678 * util/ieee1275/grub-ofpathname.c: Likewise.
12679 * util/resolve.c: Likewise.
12680
073aa7a9
VS
126812011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12682
12683 Support %1$d syntax.
12684
12685 * tests/printf_unit_test.c: New file.
12686 * Makefile.util.def (printf_test): New test.
12687 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
12688
c76b5417
VS
126892011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12690
12691 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
12692 fix.
12693
df067ad1
VS
126942011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12695
12696 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
12697 dprintf.
12698 * grub-core/font/font.c (grub_font_load): Likewise.
12699
5b289bc5
VS
127002011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12701
12702 * util/grub-macho2img.c: Add comment concerning gettext.
12703 * grub-core/lib/legacy_parse.c: Likewise.
12704
c1860f87
VS
127052011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12706
12707 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
12708 (grub_xvasprintf): Likewise.
12709
d35d0d37
VS
127102011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12711
12712 Add const keyword to grub_env_get and gettextize week days.
12713
12714 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
12715 (grub_read_hook_datetime): Return const char *.
12716 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
12717 updated.
12718 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12719 Mark for gettext.
12720 (grub_get_weekday_name): Return const char *. Call gettext.
12721 * grub-core/script/argv.c (grub_script_argv_append): Receive const
12722 char * and len as the argument. All users updated.
12723 (grub_script_argv_split_append): Receive const char *.
12724 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
12725 * include/grub/env.h (grub_env_get): Likewise.
12726 (grub_env_read_hook_t): Return const char *.
12727 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
12728 (grub_script_argv_split_append): Likewise.
12729
9aed8a71
VS
127302011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12731
12732 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
12733
067fdf00
VS
127342011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12735
12736 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
12737 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
12738
a8bd9d39
VS
127392011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12740
12741 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
12742 Fix prototype.
12743
f7ce5baf
VS
127442011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12745
12746 Fix mips compilation.
12747
12748 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
12749 normal decoder.
12750 (hashes): Use in embed decoder as well (for sizes).
12751 (dec_stream_header): Fix embed decompressor logic.
12752 (dec_stream_footer): Likewise.
12753
9bb182f3
VS
127542011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12755
12756 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
12757 an error and not a fatal on unrecognised relocation types.
12758
63a9e6f6
VS
127592011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12760
12761 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
12762 Issue error rather than printf on unknown arguments.
12763
4c458569
VS
127642011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12765
12766 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
12767 Make buf a const.
12768
e2d22baf
VS
127692011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12770
12771 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
12772 Fix module name.
12773
53dc8590
VS
127742011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12775
12776 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
12777 leftover debug printf.
12778
6c189294
VS
127792011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12780
12781 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
12782
f7688369
VS
127832011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12784
12785 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
12786 A stylistic fix.
12787
11a775a3
VS
127882011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12789
12790 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
12791
33f784e8
SL
127922011-11-10 Shea Levy <slevy@tieronedesign.com>
12793
12794 Allow all modules to perform serial IO
12795
12796 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
12797 * include/grub/serial.h (grub_serial_port_configure): New inline
12798 function.
12799 (grub_serial_port_fetch): Likewise.
12800 (grub_serial_port_put): Likewise.
12801 (grub_serial_port_fini): Likewise.
12802 (grub_serial_find): New proto.
12803
f6276525
VS
128042011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12805
12806 Put symlink at the end of the node and fix a potential
12807 memory corruption.
12808
12809 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
12810 Make symlink into an array.
12811 (set_rockridge): Set have_symlink and alloc_dirents.
12812 (grub_iso9660_read_symlink): Use new layout.
12813 (grub_iso9660_iterate_dir): Fix memory corruption.
12814 Use new layout.
12815 (grub_iso9660_dir): Set have_symlink.
12816 (grub_iso9660_open): Likewise.
12817
c3591189
VS
128182011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 Remove local keyword.
12821
12822 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
12823 (version_test_gt): Likewise.
12824 (version_find_latest): Likewise.
12825 (gettext_printf): Likewise.
12826 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
12827
cb544caa
VS
128282011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12829
12830 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
12831
45bd824d
VS
128322011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12833
12834 Fix ZFS memory and resource leaks.
12835
12836 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
12837 All users updated.
12838 Free type on exit.
12839 (fill_vdev_info): New parameter inserted. All users updated.
12840 (check_pool_label): Likewise.
12841 (scan_disk): Likewise.
12842 (scan_devices): Close non-inserted disks.
12843 (fzap_iterate): Free l.
12844 (unmount_device): Free children descripto memory.
12845
ad9a2f44
VS
128462011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12847
12848 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
12849 argument (access out of bounds).
12850
6b68db81
VS
128512011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12852
12853 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
12854 >= 6 drives.
12855
28840fda
VS
128562011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12857
12858 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
12859 Fix declaration.
12860
8a5a3a5b
VS
128612011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12862
12863 Fix several memory leaks.
12864
12865 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
12866 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
12867 (grub_cpio_dir): Likewise.
12868 * grub-core/fs/fat.c (grub_fat_label): Likewise.
12869 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
12870 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
12871 (grub_romfs_label): Likewise.
12872 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
12873 (squash_unmount): New function.
12874 (grub_squash_dir): Fix memory leak.
12875 (grub_squash_open): Likewise.
12876 (grub_squash_read): Likewise.
12877 (grub_squash_mtime): Likewise.
12878 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
12879 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
12880 * util/grub-fstest.c (fstest): Likewise.
12881
57b01250
VS
128822011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12883
12884 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
12885 avoid accessing beyond the array.
12886
19e81ba7
VS
128872011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12888
12889 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
12890
52b656c0
VS
128912011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12892
12893 Several AFFS fixes.
12894
12895 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
12896 (GRUB_AFFS_FLAG_FFS): Removed.
12897 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
12898 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
12899 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
12900 (grub_fshelp_node): Make block 32-bit.
12901 Add block_cache and last_block_cache.
12902 (grub_affs_read_block): Fill and use block cache.
12903 (grub_affs_read_file): Removed.
12904 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
12905 boot block.
12906 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
12907 safety.
12908 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
12909 space.
12910 (grub_affs_close): Free block cache.
12911 (grub_affs_read): Use grub_fshelp_read_file directly.
12912
438a746a
VS
129132011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12914
12915 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
12916 with no error set.
12917
49a45021
VS
129182011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12919
12920 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
12921 used variable.
12922 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12923 Likewise.
12924
3ae17eb8
VS
129252011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12926
12927 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
12928
12929 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
12930 byteswap when needed.
12931
27610c38
VS
129322011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 Fix FreeBSD compilation.
12935
12936 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
12937 to avoid circular dependency.
12938 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
12939 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
12940 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
12941
4a19b601
VS
129422011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12943
12944 Fix ZFS crypto error types.
12945
12946 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
12947 (grub_gcm_decrypt): Likewise.
12948 (grub_zfs_load_key_real): Fix error code type. Handle possible error
12949 from PBKDF2.
12950
958ee221
VS
129512011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12952
12953 Illumos support.
12954
12955 * Makefile.util.def (10_illumos): New script.
12956 * configure.ac: Set COND_HOST_ILLUMOS.
12957 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
12958 Support Illumos calls.
12959 (find_partition_start) [__sun__]: Likewise.
12960 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
12961 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
12962 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
12963 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
12964 device.
12965 * util/grub-probe.c (probe) [__sun__]: Do character check.
12966 * util/grub.d/10_illumos.in: New file.
12967
cac14fb6
VS
129682011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12969
12970 Support escaped commas in hostdisk.
12971
12972 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
12973 (find_grub_drive): Use unescape_cmp.
12974 (make_device_name): Escape commas.
12975
78e08dc3
VS
129762011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12977
12978 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
12979
9f421dd1
VS
129802011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
12983 variable.
12984
ed64e9e2
VS
129852011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12986
12987 Support trampoline jumps on powerpc.
12988
12989 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
12990 __ia64__ path.
12991 (grub_dl_load_segments): Set mod->sz.
12992 (grub_dl_flush_cache): Flush whole space occupied by module, not just
12993 segments.
12994 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
12995 (jump): Likewise.
12996 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
12997 function.
12998 (trampoline): New struct.
12999 (trampoline_template): New const.
13000 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
13001 * include/grub/dl.h (grub_dl): Add sz element.
13002 [__powerpc__]: Follow __ia64__.
13003 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
13004 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
13005 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
13006 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
13007
3084ede4
VS
130082011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13009
13010 ZFS crypto support.
13011
13012 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
13013 * grub-core/Makefile.core.def (zfscrypt): New module.
13014 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
13015 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
13016 it. All users updated.
13017 (grub_zfs_decrypt): New var.
13018 (grub_zfs_load_key): Likewise.
13019 (zio_checksum_functions): Add SHA256+MAC.
13020 (zio_checksum_verify): Handle incomplete comparison due to MAC.
13021 (zio_read): Handle encrypted blocks.
13022 (zap_verify): Remove incorrect check.
13023 (fzap_iterate): Handle non-standard fzap.
13024 (zap_iterate): Likewise.
13025 (zap_iterate_u64): New function.
13026 (dnode_get_fullpath): Load keys.
13027 * grub-core/fs/zfs/zfscrypt.c: New file.
13028 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
13029 (grub_crypto_ecb_encrypt): Make input const.
13030 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
13031 (grub_crypto_ecb_encrypt): Make input const.
13032 (GRUB_CIPHER_AES): New macro.
13033 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
13034 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
13035 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
13036 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
13037 prefix. All users updated.
13038 (grub_zfs_add_key): New proto.
13039 (grub_zfs_decrypt): Likewise.
13040 (grub_zfs_load_key): Likewise.
13041 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
13042 * util/grub-fstest.c (options): Add -K option.
13043 (argp_parser): Likewise.
13044
b632b404
VS
130452011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 Support zle compression on ZFS.
13048
13049 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
13050 (decomp_table): Add zle.
13051 * include/grub/zfs/zio.h (zio_compress): Add zle.
13052
c7ba4f69
VS
130532011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13054
13055 Support BtrFS embedding.
13056
13057 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
13058 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
13059 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
13060 * util/grub-setup.c (setup): Use fs embedding if available.
13061 Add additional sanity check.
13062
455377d9
VS
130632011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13064
13065 * util/grub-install.in: Fix condition for config_opt.
13066
c2fd16ca
VS
130672011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13068
13069 Support third redundancy strip on raidz3.
13070
13071 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
13072 Return error on singularity. All users updated.
13073 (read_device): Don't stop on 3rd failure on raidz3.
13074
8622923b
VS
130752011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13076
13077 Support case-insensitive ZFS subvolumes.
13078
13079 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
13080 All users updated.
13081 (zap_hash): Likewise.
13082 (name_cmp): New function.
13083 (zap_leaf_array_equal): New parameter case_insensitive.
13084 All users updated.
13085 (zap_leaf_lookup): Likewise.
13086 (fzap_lookup): Likewise.
13087 (zap_lookup): Likewise.
13088 (dnode_get_path): New parameter case_insensitive. Retrieve case
13089 sensitiviness of a volume. All users updated.
13090 (dnode_get_fullpath): New parameter case_insensitive.
13091 All users updated.
13092 (grub_zfs_dir): Set info.case_insensitiveness.
13093
95f2e860
VS
130942011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13095
13096 Support second redundancy strip on raidz(2,3).
13097
13098 * grub-core/fs/zfs/zfs.c (powx): New array.
13099 (powx_inv): Likewise.
13100 (poly): New const.
13101 (xor_out): New function.
13102 (gf_mul): Likewise.
13103 (recovery): Likewise.
13104 (read_device): Use second redundancy strip.
13105
11ee4389
VS
131062011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13107
13108 Use a power of generator representation of GF(256) multiplication group
13109 to save space time and complexity.
13110
13111 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
13112 (raid6_table2): Likewise.
13113 (powx): New array.
13114 (powx_inv): Likewise.
13115 (poly): New const.
13116 (grub_raid_block_mul): Replace with ...
13117 (grub_raid_block_mulx): ...this.
13118 (grub_raid6_init_table): Rewritten.
13119 (grub_raid6_recover): Use power of generator representation.
13120
09e2763f
VS
131212011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13122
13123 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
13124 for the right device.
13125
8bec9a28
VS
131262011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13127
13128 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
13129 expected by grub-mkimage and it's more clear since there is no implicit
13130 padding.
13131
dbd3a32e
VS
131322011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13133
13134 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
13135 disk.
13136 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13137
182c872a
PMH
131382011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
13139
13140 * util/grub-mkrescue.in: Fix handling xorriso option.
13141
1e51cabd
VS
131422011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13143
13144 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
13145 NULL.
13146
9cc3581d 131472011-11-03 crocket <crockabiscuit@gmail.com>
13148
13149 * util/grub.d/10_linux.in: Add Slackware initrd naming.
13150
158dc1ea
VS
131512011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13152
13153 XZ CRC64 and SHA256 support.
13154
13155 * Makefile.util.def (libgrubmods): Add crc64.c.
13156 * grub-core/Makefile.core.def (crc64): New module.
13157 * grub-core/lib/crc64.c: New file.
13158 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
13159 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
13160 Fix the type.
13161 (MAX_HASH_SIZE): New define.
13162 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
13163 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
13164 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13165 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13166 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
13167 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
13168 Handle non-crc32 hashes.
13169 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
13170 (dec_stream_header): Handle non-crc32 hashes.
13171 (dec_stream_footer): Likewise.
13172 (dec_block_header): Likewise.
13173 (dec_main): Likewise.
13174 (xz_dec_init): Likewise.
13175 (xz_dec_reset): Likewise.
13176 (xz_dec_end): Likewise.
13177 * util/import_gcry.py: Add CRC64 line.
13178
9d9b3d2f
VS
131792011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13180
13181 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
13182 as well.
13183
7d0ac931
VS
131842011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13185
13186 Make reiserfs label retrieval similar to other *_label functions.
13187
13188 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
13189 (REISERFS_MAX_LABEL_LENGTH): Removed.
13190 (REISERFS_LABEL_OFFSET): Likewise.
13191 (grub_reiserfs_label): Rewritten.
13192
131932011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13194
13195 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
13196 field.
13197
cf5ba824
VS
131982011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13199
13200 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
13201
17744004
VS
132022011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13203
13204 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
13205 drive failure on both raidz and raidz2.
13206
aca5aefc
VS
132072011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13208
13209 Fix RAIDZ(2) for >= 5 devices.
13210
13211 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
13212 asize argument. All users updated.
13213
ce8ca56e
VS
132142011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 Fix RAIDZ(2).
13217
13218 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
13219 (fill_vdev_info_real): Set ashift.
13220 (read_device): Rewrite RAIDZ part based on reverse engineering.
13221
7c01e783
VS
132222011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13223
13224 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
13225 don't report potentially unavialiable fields in debug output.
13226 (find_path): Fix double-free and memory leak.
13227
ce109e84
VS
132282011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13229
13230 Read label on UFS1.
13231
13232 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
13233 (grub_ufs_fs): Always set .label.
13234
87661123
VS
132352011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13236
13237 Use shifts in UFS.
13238
13239 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
13240 (grub_ufs_data): New field log2_blksz.
13241 (grub_ufs_read_file): Use shifts.
13242 (grub_ufs_mount): Check block size and logarithm it.
13243
46bc1dc2
VS
132442011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13245
13246 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
13247 long symlinks.
13248
19ee2987
VS
132492011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13250
13251 Handle symlinks and long names on tar and cpio.
13252
13253 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
13254 (ATTR_FILE): Likewise.
13255 (ATTR_DIR): Likewise.
13256 (ATTR_LNK): Likewise.
13257 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
13258 (grub_cpio_find_file): Fill mode, handle linkname field as well as
13259 L and K entries.
13260 (grub_cpio_mount): Zero-fill data.
13261 (handle_symlink): New function.
46bc1dc2
VS
13262 (grub_cpio_dir): Handle symlinks.
13263 (grub_cpio_open): Likewise.
13264 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 13265
c83a08d8
VS
132662011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 Fix iso9660 filename limitations and fix memory leaks.
13269
13270 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
13271 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
13272
45cdd3ea
VS
132732011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13274
13275 Fix JFS file name length limitations.
13276
13277 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
13278 (grub_jfs_diropen): Fix maximum filename length.
13279 (grub_jfs_getent): Fix filename length.
13280 (grub_jfs_lookup_symlink): Fix size checks.
13281
94ef05c2
VS
132822011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13283
13284 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
13285 string.
13286
785ab8c7
VS
132872011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13288
eb0b6b45
VS
13289 Leverage BFS implementation to read AFS.
13290
13291 * Makefile.util.def (libgrubmods): Add afs.c.
13292 * grub-core/Makefile.core.def (afs): New module
13293 * grub-core/fs/afs.c: New file.
13294 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
13295
132962011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13297
13298 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 13299
c4a1628f
VS
133002011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13301
13302 * grub-core/fs/bfs.c: Run indent.
13303
5825b379
VS
133042011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13305
13306 BFS implementation based on the specification.
13307
13308 * grub-core/fs/bfs.c: New file.
13309 * Makefile.util.def (libgrubmods): Add bfs.c.
13310 * grub-core/Makefile.core.def (bfs): New module.
13311
42b2a706
VS
133122011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13313
13314 * util/grub-fstest.c (cmd_cp): Clarify error message.
13315 (cmd_cmp): Likewise.
13316
61b99bfc
YB
133172011-10-30 Yves Blusseau <blusseau@zetam.org>
13318
13319 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
13320 and befs_be.
13321
faba3d16
VS
133222011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
13323
13324 Remove afs and befs because of copyright problem.
13325
13326 * grub-core/fs/afs.c: Removed.
13327 * grub-core/fs/afs_be.c: Removed.
13328 * grub-core/fs/befs.c: Removed.
13329 * grub-core/fs/befs_be.c: Removed.
13330 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
13331 * grub-core/Makefile.core.def (afs): Removed.
13332 (afs_be): Likewise.
13333 (befs): Likewise.
13334 (befs_be): Likewise.
13335
c39224b0
VS
133362011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13337
13338 Prefer rockridge over Joliet.
13339
13340 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
13341 to ...
13342 (set_rockridge): ... here.
13343 (grub_iso9660_mount): Check rockridge on the primary label when
13344 discovering. Ignore Joliet if Rockridge is present.
13345
e551115a
VS
133462011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 Use shifts in nilfs2.
13349
13350 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
13351 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
13352 (grub_nilfs2_palloc_entries_per_group): Replace with ...
13353 (grub_nilfs2_log_palloc_entries_per_group): ... this.
13354 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
13355 (grub_nilfs2_entries_per_block): Replaced with ...
13356 (grub_nilfs2_log_entries_per_block_log): ... this.
13357 (grub_nilfs2_blocks_per_group): Replaced with ...
13358 (grub_nilfs2_blocks_per_group_log): ... this.
13359 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
13360 (grub_nilfs2_blocks_per_desc_block_log): ... this.
13361 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
13362 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
13363 (grub_nilfs2_palloc_entry_offset): Replaced ...
13364 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
13365 (grub_nilfs2_dat_translate): Use shifts.
13366 (grub_nilfs2_read_inode): Likewise.
13367 (GRUB_MOD_INIT): Ensure that logs are correct.
13368
564dd58c
VS
133692011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13370
13371 Use shifts in minix filesystem.
13372
13373 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
13374 (GRUB_MINIX_ZONE2SECT): Likewise.
13375 (grub_minix_data): Replace block_size with log_block_size.
13376 (grub_minix_read_file): Use shifts.
13377 (grub_minix_mount): Check block size and take a logarithm.
13378
ed9ba06d
VS
133792011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13380
13381 Use shifts in squash4.
13382
13383 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
13384 (squash_mount): Check block size and take logarithm.
13385 (direct_read): Use shifts.
13386
ad03fe76
VS
133872011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13388
13389 Correct befs block counting logic.
13390
13391 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
13392 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
13393 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
13394 (grub_afs_read_inode): Use block_shift.
13395 (RANGE_SHIFT): New definition.
13396 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
13397 unexpected conditions, use shifts and appropriate types.
13398 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
13399
6563f63d
VS
134002011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13401
13402 * grub-core/disk/raid.c (scan_devices): Check partition.
13403 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13404
5b1ae25f
VS
134052011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13406
13407 Support BFS (befs) UUID.
13408
13409 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
13410 (grub_afs_small_data_element_header): New struct.
13411 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
13412 (grub_afs_read_attribute) [MODE_BFS]: New function.
13413 (grub_afs_iterate_dir): Allocate for complete inode.
13414 (grub_afs_mount): Likewise.
13415 (grub_afs_uuid) [MODE_BFS]: New function.
13416 (grub_afs_fs) [MODE_BFS]: Add .uuid.
13417
f8d82408
VS
134182011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13419
13420 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
13421 (zfs_unmount): Fix memory leak.
13422
5773fb64
VS
134232011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 Support NTFS reparse points.
13426
13427 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
13428 (symlink_descriptor): New struct.
13429 (grub_ntfs_read_symlink): New function.
13430 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
13431 (grub_ntfs_open): Likewise.
13432
91c3fdde
VS
134332011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13434
13435 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
13436
3be82e10
VS
134372011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13438
13439 fstest xnu_uuid subcommand.
13440
13441 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
13442 grub-core/commands/xnu_uuid.c.
13443 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
13444 (fstest): Handle xnu_uuid.
13445 (options): Document xnu_uuid.
13446 (argp_parser): Parse xnu_uuid.
13447
8e32442e
VS
134482011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13449
13450 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
13451 -l argument. Add newline at the end if printing.
13452 (GRUB_MOD_INIT): Document -l.
13453
52a05075
VS
134542011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13455
13456 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
13457
1869edb5
VS
134582011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 ZFS multi-device and version 33 support.
13461
13462 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
13463 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
13464 (grub_zfs_data): Add multidev-ice-related fields.
13465 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
13466 (dva_get_offset): Make dva const.
13467 (zfs_fetch_nvlist): New function.
13468 (fill_vdev_info_real): Likewise.
13469 (fill_vdev_info): Likewise.
13470 (check_pool_label): Likewise.
13471 (scan_disk): Likewise.
13472 (scan_devices): Likewise.
13473 (read_device): Likewise.
13474 (read_dva): Likewise.
13475 (zio_read_gang): Use read_dva.
13476 (zio_read_data): Likewise.
13477 (zap_leaf_lookup): Add missing endian conversion.
13478 (zap_verify): Add missing endian conversion. All users updated.
13479 (fzap_lookup): Likewise.
13480 (fzap_iterate): Likewise.
13481 (dnode_get_path): Handle SA bonus.
13482 (nvlist_find_value): Make input const. All users updated.
13483 (unmount_device): New function.
13484 (zfs_unmount): Use unmount_device.
13485 (zfs_mount): Use scan_disk.
13486 (zfs_mtime): New function.
13487 (grub_zfs_open): Handle system attributes.
13488 (fill_fs_info): Likewise.
13489 (grub_zfs_dir): Likewise.
13490 (grub_zfs_fs): Add mtime.
13491 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
13492 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
13493 (SA_MTIME_OFFSET): Likewise.
13494 (SA_SYMLINK_OFFSET): Likewise.
13495 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
13496 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
13497 (fstest): Support zfsinfo.
13498 (argp_parser): Likewise.
13499
186b4028
VS
135002011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13501
13502 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
13503 error.
13504
135052011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
13506
13507 ZFS fixes.
13508
13509 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
13510 sharing the same block. Iterate over correct number of indices.
13511 (dnode_get_path): Handle symlinks correctly.
13512
c0584900
VS
135132011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
13516
67e2bd71
VS
135172011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 Read label on HFS+.
13520
13521 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
13522 (grub_hfsplus_btree_search): Fix types.
13523 (grub_hfsplus_label): Implement.
13524
e9cc6b7b
VS
135252011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
13528
19832ddb
VS
135292011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13530
13531 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
13532
66b40850
VS
135332011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13534
13535 Fix symlink handling on iso9660.
13536
13537 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
13538 All users updated.
13539 (grub_iso9660_susp_iterate): Accept zero-size iterate.
13540 (grub_iso9660_read_symlink): Moved most of code ...
13541 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
13542
db821363
VS
135432011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13544
13545 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
13546 Use union to avoid breaking strict-aliasing rules.
13547
e1211949
VS
135482011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13549
13550 Support multi-extent iso files.
13551
13552 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
13553 Add node.
13554 (grub_fshelp_node): Revamp. All users updated.
13555 (FLAG_*): New enum.
13556 (read_node): New function.
13557 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
13558 All users updated.
13559 (grub_iso9660_mount): Don't attempt to read sua when there is none.
13560 (get_node_size): New function.
13561 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
13562 entries.
13563 Fix memory leak on . and ..
13564 (grub_iso9660_read): Use read_node.
13565 (grub_iso9660_close): Free node.
13566
d4888031
VS
135672011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13568
13569 Fix tar 4G limit and handle paths containing dot.
13570
13571 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
13572 (canonicalize): New function.
13573 (grub_cpio_find_file): Use canonicalize. Store offs in
13574 grub_disk_addr_t.
13575 (grub_cpio_dir): Use grub_disk_addr_t.
13576 (grub_cpio_open): Likewise.
13577
9f12e664
VS
135782011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13579
13580 Fix handling of uncompressed blocks on squashfs and break 4G limit.
13581
13582 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
13583 unused flags.
13584 (grub_squash_inode): Add long_file and block_size.
13585 (grub_squash_cache_inode): New struct.
13586 (grub_squash_dirent): Make types into enum.
13587 (SQUASH_TYPE_LONG_REGULAR): New type.
13588 (grub_squash_frag_desc): Add field size.
13589 (SQUASH_BLOCK_FLAGS): New enum.
13590 (grub_squash_data): Use grub_squash_cache_inode.
13591 (grub_fshelp_node): Make ino_chunk 64-bit.
13592 (read_chunk): Minor argument change. All users updated.
13593 (squash_mount): Use correct le_to_cpu.
13594 (grub_squash_open): Handle LONG_REGULAR.
13595 (direct_read): New function.
13596 (grub_squash_read_data): Handle blocks correctly.
13597
9f326fba
VS
135982011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13599
13600 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
13601
f4d9b64b
VS
136022011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13603
13604 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
13605
5bbd28b8
VS
136062011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13607
13608 Fix 2G limit on ZFS.
13609
13610 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
13611 types.
13612 (uberblock_verify): Likewise.
13613 (dmu_read): Likewise.
13614 (grub_zfs_read): Likewise. Remove invalid cast.
13615
68c72069
VS
136162011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13617
13618 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
13619 (grub_jfs_blkno): Fix incorrect shift.
13620 (grub_jfs_read_file): Use more appropriate types.
13621
6e536dc8
VS
136222011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13623
13624 Support triple indirect on minix2 and minix3.
13625
13626 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
13627 Declare triple_indir_zone.
13628 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
13629 indirect.
13630
e0864e7a
VS
136312011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13632
13633 Minix FS fixes.
13634
13635 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
13636 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
13637 Rename ctime to mtime. All users updated.
13638 (grub_minix_get_file_block): Fix types and double indirect computations.
13639
89481cab
VS
136402011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13641
13642 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
13643 if no label is found.
13644 (grub_fat_iterate_dir): Fix file size type.
13645 (grub_fat_iterate_dir): Likewise.
13646
f646e143
VS
136472011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13648
13649 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
13650 save some space.
13651 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
13652 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13653
534d769e
VS
136542011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13655
13656 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
13657
e084ba18
VS
136582011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13659
13660 * util/import_gcry.py: Accept space between # and include.
13661
3471ecdf
VS
136622011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13663
13664 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
13665
124df5f6
VS
136662011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 Fine grainely disable warnings on lexer. Remove Wno-error on it.
13669
13670 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
13671 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
13672 yylex_strncpy.
13673 * grub-core/script/yylex.l: Add fine-grained #pragma.
13674
4defb8d5
VS
136752011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13676
13677 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
13678 New inline function.
13679 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
13680 Likewise.
13681 (memset) [GRUB_UTIL]: Likewise.
13682 (memcmp) [GRUB_UTIL]: Likewise.
13683
4e94ae65
VS
136842011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13685
13686 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
13687 inline function rather than a define.
13688
18c575e5
VS
136892011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13690
13691 * util/grub-setup.c: Add missing include.
13692
f8bc22a8
VS
136932011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13694
13695 * util/ieee1275/grub-ofpathname.c: Add missing include.
13696
3ce69fc9
VS
136972011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13698
13699 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
13700 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
13701 Likewise.
13702
d1e293bb
VS
137032011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13704
13705 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
13706 grub_memcmp usage.
13707
7a5c54a4
VS
137082011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13709
13710 * util/grub-install.in: Add datarootdir as per automake manual
13711 suggestion.
13712 * util/grub-mknetdir.in: Likewise.
13713
137142011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
13715
13716 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
13717 suggestion.
13718 * util/grub.d/10_kfreebsd.in: Likewise.
13719 * util/grub.d/10_linux.in: Likewise.
13720 * util/grub.d/10_netbsd.in: Likewise.
13721 * util/grub.d/10_windows.in: Likewise.
13722 * util/grub.d/20_linux_xen.in: Likewise.
13723
766f7d08
VS
137242011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
13725
13726 Remove redundant grub_kernel_image_size.
13727
13728 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
13729 _edata and _start.
13730 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
13731 the small code. It moves it only by few bytes but simplifies the code.
13732 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
13733 _start.
13734 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
13735 (grub_kernel_image_size): Removed.
13736 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
13737 (grub_kernel_image_size): Removed.
13738 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
13739 compiled with Apple toolchain.
13740 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
13741 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
13742 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
13743 (grub_total_module_size): Likewise.
13744 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
13745 Removed.
13746 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
13747 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
13748 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
13749 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
13750 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
13751 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
13752 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
13753 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
13754 Removed.
13755 (grub_total_module_size): Removed.
13756 * util/grub-mkimage.c (image_target_desc): Remove image_size.
13757 (image_targets): Likewise.
13758 Set .compressed_size to no field on sparc.
13759 (generate_image): Remove kernel_image_size handling.
13760
fcf1d672
SJ
137612011-10-19 Szymon Janc <szymon@janc.net.pl>
13762
13763 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
13764 NULL pointer dereference.
13765
de9c615e
VS
137662011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13767
13768 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
13769 done with a dedicated section.
13770
13771 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
13772 Ensure the correct position of boot_path.
13773 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
13774 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
13775 other fields.
13776 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
13777 * include/grub/boot.h: Removed. All references removed.
13778 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
13779 Removed.
13780 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
13781
e55599dc
VS
137822011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13783
13784 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
13785 name.
13786
36dd20ad
VS
137872011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13788
13789 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
13790
f8f72eb8
VS
137912011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13792
13793 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13794 Don't add the bogus brackets.
13795
a374751b
VS
137962011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13797
13798 ExFAT support.
13799
13800 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
13801 * grub-core/Makefile.core.def (exfat): New module.
13802 * grub-core/fs/exfat.c: New file.
13803 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
13804 (GRUB_FAT_ATTR_*): Make into an enum.
13805 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
13806 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
13807 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
13808 (GRUB_FAT_MAXFILE): Removed.
13809 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
13810 (grub_current_fat_bpb_t): New type.
13811 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
13812 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
13813 (grub_fat_dir_node_t): New type.
13814 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
13815 (fat_log2) [MODE_EXFAT]: Removed.
13816 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
13817 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
13818 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
13819 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
13820 (grub_fat_label) [MODE_EXFAT]: New function.
13821 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
13822 reserved_first_sector to 0.
13823
544c2487
VS
138242011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13825
13826 Move grub_reboot out of the kernel.
13827
13828 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
13829 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
13830 * grub-core/lib/efi/reboot.c: ... here.
13831 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
13832 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
13833 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
13834 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
13835 * grub-core/lib/i386/reboot_trampoline.S: ... here.
13836 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
13837 * grub-core/lib/ieee1275/reboot.c: ... here.
13838 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
13839 * grub-core/lib/mips/arc/reboot.c: ... here.
13840 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
13841 * grub-core/lib/mips/loongson/reboot.c: ...here.
13842 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
13843 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
13844 * include/grub/emu/misc.h (grub_reboot): New function declaration.
13845 * include/grub/i386/reboot.h: New file.
13846 * include/grub/mips/loongson/ec.h: Fix includes.
13847 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
13848 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
13849 * grub-core/lib/i386/reboot.c: New file.
13850
a97501d2
VS
138512011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
13852
13853 Make grub_prefix into module to fix the arbitrary limit and save
13854 some space.
13855
13856 * grub-core/kern/emu/main.c (grub_prefix): Removed.
13857 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
13858 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
13859 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
13860 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
13861 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
13862 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
13863 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
13864 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
13865 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
13866 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
13867 * include/grub/ia64/efi/kernel.h: Removed.
13868 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
13869 (grub_prefix): Removed.
13870 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
13871 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
13872 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
13873 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
13874 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
13875 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
13876 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
13877 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
13878 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
13879 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
13880 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
13881 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
13882 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
13883 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
13884 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
13885 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
13886 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
13887 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
13888 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
13889 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
13890 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
13891 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
13892 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
13893 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
13894 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
13895 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
13896 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
13897 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
13898 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
13899 from module.
13900 * util/grub-mkimage.c (image_target_desc): Removed prefix and
13901 prefix_end.
13902 (image_targets): Likewise.
13903 (generate_image): Put prefix as a module.
13904
39705fad
VS
139052011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13906
13907 Replace grub_module_iterate with FOR_MODULES.
13908
13909 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
13910 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
13911 (grub_efi_modules_addr): ...this.
13912 * grub-core/kern/efi/init.c (grub_modbase): New variable.
13913 (grub_efi_init): Set grub_modbase.
13914 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
13915 (grub_modbase): New variable.
13916 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
13917 (grub_modbase): New variable.
13918 (grub_machine_init): Set grub_modbase.
13919 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
13920 (grub_modbase): New variable.
13921 (grub_machine_init): Set grub_modbase.
13922 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
13923 (grub_modbase): New variable.
13924 (grub_machine_init): Set grub_modbase.
13925 * grub-core/kern/main.c (grub_module_iterate): Remove.
13926 (grub_modules_get_end): Use grub_modbase.
13927 (grub_load_modules): Use FOR_MODULES.
13928 (grub_load_config): Likewise.
13929 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
13930 (grub_modbase): New variable.
13931 (grub_machine_init): Set grub_modbase.
13932 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
13933 (grub_modbase): New variable.
13934 (grub_machine_init): Set grub_modbase.
13935 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
13936 Removed.
13937 (grub_modbase): New variable.
13938 (grub_machine_init): Set grub_modbase.
13939 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
13940 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
13941 (grub_module_iterate): Likewise.
13942 (grub_modbase): New variable declaration.
13943 (FOR_MODULES): New macro.
13944
2afb7f6c
VS
139452011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13946
13947 * configure.ac: Check for __ctzdi2 and __ctzsi2.
13948 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
13949
366e34fa
VS
139502011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13951
13952 Fix few obvious type discrepancies.
13953
13954 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
13955 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
13956 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
13957 variable.
13958 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
13959 and connected types.
13960 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
13961 offset.
13962 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
13963 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
13964 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
13965 and connected types.
13966
177b960e
VS
139672011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13968
13969 Fix python 3.x incompatibilities.
13970
13971 * gentpl.py: Put brackets around print strings.
13972 * util/import_gcry.py: Open explicitly as utf-8.
13973 Use in instead of has_key.
13974
3b619ae1
VS
139752011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13976
13977 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
13978 (GRUB_XFS_INO_AGBITS): Make into inline function.
13979 (GRUB_XFS_INO_INOINAG): Likewise.
13980 (GRUB_XFS_INO_AG): Likewise.
13981 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
13982 (GRUB_XFS_EXTENT_OFFSET): Likewise.
13983 (GRUB_XFS_EXTENT_BLOCK): Likewise.
13984 (GRUB_XFS_EXTENT_SIZE): Likewise.
13985 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
13986 (GRUB_XFS_NEXT_DIRENT): Likewise.
13987 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
13988 (grub_xfs_read_file): Fix offset type.
13989
8bcebcb8
RM
139902011-10-15 Robert Millan <rmh@gnu.org>
13991
13992 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
13993
0017e5ef
RM
139942011-10-15 Robert Millan <rmh@gnu.org>
13995
13996 Fix build problem on FreeBSD and GNU/kFreeBSD.
13997
13998 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
13999
d8919552
VS
140002011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
14003
14004 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
14005 types.
14006 (grub_hfsplus_btree_recoffset): Likewise.
14007 (grub_hfsplus_btree_recptr): Likewise.
14008 (grub_hfsplus_find_block): Likewise.
14009 (grub_hfsplus_btree_search): Likewise.
14010 (grub_hfsplus_read_block): Likewise.
14011 (grub_hfsplus_read_file): Likewise.
14012 (grub_hfsplus_mount): Likewise.
14013 (grub_hfsplus_btree_iterate_node): Likewise.
14014 (grub_hfsplus_btree_search): Likewise.
14015 (grub_hfsplus_iterate_dir): Likewise.
14016 (grub_hfsplus_read): A small code simplification.
14017
c81296b6
VS
140182011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14019
14020 * grub-core/kern/emu/hostdisk.c
14021 (convert_system_partition_to_system_disk): Don't assume that children
14022 of mapper nodes are mapper nodes.
14023
0eb8ffb1
VS
140242011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14025
14026 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
14027 * include/grub/misc.h (grub_isxdigit): New function.
14028 * grub-core/video/colors.c (my_isxdigit): Removed. All users
14029 switched to grub_isxdigit.
14030 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
14031 number starting with a letter.
14032
a98f4a08
RM
140332011-10-09 Robert Millan <rmh@gnu.org>
14034
14035 LVM support for FreeBSD and GNU/kFreeBSD.
14036
14037 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
14038 GNU/kFreeBSD.
14039 (LVM_DEV_MAPPER_STRING): Move from here ...
14040 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
14041 * util/getroot.c: Include `<grub/util/lvm.h>'.
14042 (grub_util_get_dev_abstraction): Enable
14043 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
14044 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
14045 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
14046 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
14047 support it.
14048 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
14049 GNU/kFreeBSD.
14050 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
14051 when LVM abstraction is required for ${GRUB_DEVICE}.
14052
050e8e90
SJ
140532011-10-06 Szymon Janc <szymon@janc.net.pl>
14054
14055 Add support for LZO compression in GRUB:
14056 - import of minilzo library,
14057 - LZO decompression for btrfs,
14058 - lzop files decompression.
14059
14060 * grub-core/io/lzopio.c: New file.
14061 * grub-core/lib/adler32.c: Likewise.
14062 * grub-core/lib/minilzo/lzoconf.h: Likewise.
14063 * grub-core/lib/minilzo/lzodefs.h: Likewise.
14064 * grub-core/lib/minilzo/minilzo.c: Likewise.
14065 * grub-core/lib/minilzo/minilzo.h: Likewise.
14066 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
14067 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
14068 grub-core/lib/minilzo/minilzo.c to common.
14069 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
14070 cflags in cppflags.
14071 * grub-core/Makefile.core.def (btrfs): Likewise.
14072 * grub-core/Makefile.core.def (lzopio): New module.
14073 (adler32): Likewise.
14074 * grub-core/fs/btrfs.c: Include minilzo.h.
14075 (GRUB_BTRFS_COMPRESSION_LZO): New define.
14076 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
14077 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
14078 (grub_btrfs_lzo_decompress): New function.
14079 (grub_btrfs_extent_read): Add support for LZO compression type.
14080 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
14081 (GRUB_USHRT_MAX): Likewise.
14082 (GRUB_UINT_MAX): Likewise.
14083 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
14084 (UINT_MAX): Likewise.
14085 (CHAR_BIT): Likewise.
14086 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
14087 grub-core/lib/posix_wrap/limits.h
14088 (UCHAR_MAX): Likewise.
14089 * include/grub/file.h (grub_file_filter_id): New compression filter
14090 GRUB_FILE_FILTER_LZOPIO.
14091 * include/grub/file.h (grub_file_filter_id): Set
14092 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
14093 * include/grub/types.h (grub_get_unaligned16): New function.
14094 (grub_get_unaligned32): Likewise.
14095 (grub_get_unaligned64): Likewise.
14096 * util/import_gcry.py (cryptolist): Add adler32.
14097
0eb8ffb1
VS
140982011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
14099
14100 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
14101 in perspective decreases the complexity of build system and fixes
14102 compilation right now.
14103
ce79cc99 141042011-10-01 Ales Nesrsta <starous@volny.cz>
14105
14106 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
14107 (fixed problem related to using UHCI with coreboot).
14108
8667a314
BC
141092011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
14110
14111 * gentpl.py: Use Autogen macros so that the output template file
14112 (Makefile.tpl) size is reduced.
14113
fc5efcc0
MK
141142011-09-29 Mads Kiilerich <mads@kiilerich.com>
14115
14116 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
14117 extra_dist.
14118
d1ab689d
ML
141192011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14120
14121 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
14122 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
14123
c05de032
ML
141242011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14125
14126 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
14127 _fullpath.
14128
cca7ccd8
ML
141292011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14130
14131 Remove extra declaration of sleep for mingw32.
14132
14133 * util/misc.c (sleep) [__MINGW32__]: Removed.
14134 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
14135
e0b0dc83
GS
141362011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
14137
14138 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
14139 type and packname.
14140 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
14141 Resurrected.
14142 (NETBSD_BTINFO_BOOTWEDGE): New definition.
14143 (grub_netbsd_btinfo_bootwedge): New struct.
14144 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14145 New function.
14146 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
14147
91a1a164
TH
141482011-09-28 Thomas Haller <thomas.haller@fen-net.de>
14149
14150 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
14151 loader.
14152
2ded951e
AB
141532011-09-28 Andreas Born <futur.andy@googlemail.com>
14154
14155 Fix incorrect identifiers in bash-completion.
14156
14157 * util/bash-completion.d/grub-completion.bash.in
14158 (_grub_mkpasswd-pbkdf2): Rename to ...
14159 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
14160 (_grub_script-check): Rename to ...
14161 (_grub_script_check): ... this. All users updated.
14162
69915030
VS
141632011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
14164
14165 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14166 Return 0 if disk isn't biosdisk.
14167
20fd15f9
GS
141682011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14169
14170 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
14171 on NetBSD.
14172 * Makefile.util.def (grub-fstest): Likewise.
14173
1a7d7db9
GS
141742011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14175
14176 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
14177 Get sector size from disk label.
14178
2221ab6c
CW
141792011-09-05 Colin Watson <cjwatson@ubuntu.com>
14180
14181 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
14182 */README* as well as README*.
14183 Reported by: Axel Beckert.
14184
ca51c4a0
VS
141852011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14186
14187 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
14188 case of less than 256 MiB of RAM.
14189
ab80f326
VS
141902011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14191
14192 * grub-core/commands/wildcard.c (make_regex): Handle @.
14193
4155e697
VS
141942011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14195
14196 * util/grub-install.in: Move cryptodisk logic to appropriate place.
14197
ab178c08
SJ
141982011-08-21 Szymon Janc <szymon@janc.net.pl>
14199
14200 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
14201 AC_LANG_CONFTEST macros.
14202
7dc3c686
SJ
142032011-08-20 Szymon Janc <szymon@janc.net.pl>
14204
14205 Add grub-fstest option to uncompress data for commands.
14206
14207 * util/grub-fstest.c (uncompress): New var.
14208 (options): New option -u.
14209
fe8d4a7b
SJ
142102011-08-20 Szymon Janc <szymon@janc.net.pl>
14211
14212 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
14213 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
14214
a5219af1
SJ
142152011-08-20 Szymon Janc <szymon@janc.net.pl>
14216
14217 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
14218 file type was not recognized correctly (not gzip or corrupted).
14219
f87abff5
VS
142202011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14221
14222 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
14223 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
14224
d94497ea
VS
142252011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14226
14227 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
14228 loongson.
14229 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14230 video_radeon_fuloong2e.
14231 * grub-core/video/radeon_fuloong2e.c: New file.
14232 * include/grub/video.h (grub_video_id_t): Add new ID
14233 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
14234
0d1fd011
VS
142352011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14236
14237 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
14238 define.
14239 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
14240 that PRID matches the detected subplatform and reset the subplatform
14241 if it doesn't.
14242
84beb0ee
VS
142432011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14244
14245 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
14246
1227c133
VS
142472011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14248
14249 Fix PCI iterating on functions >= 4.
14250
14251 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
14252 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
14253 Removed.
14254 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
14255 (grub_pci_read): Fix bitmask.
14256 (grub_pci_read_word): Likewise.
14257 (grub_pci_read_byte): Likewise.
14258 (grub_pci_write): Likewise.
14259 (grub_pci_write_word): Likewise.
14260 (grub_pci_write_byte): Likewise.
14261
9594c689
VS
142622011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14263
14264 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
14265 can still be specified in TARGET_CFLAGS)
14266
14a2562c
VS
142672011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14268
14269 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
14270
14271 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
14272 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
14273 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
14274 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
14275 (FULOONG): Rename to ...
14276 (FULOONG2F): ... this. All users updated.
14277 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
14278 (machtype_fuloong2f_str): ... this.
14279 (machtype_fuloong2e_str): New string.
14280 Check for machtype_fuloong2e_str.
14281 * grub-core/loader/mips/linux.c (loongson_machtypes)
14282 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
14283 * grub-core/term/serial.c (loongson_defserial)
14284 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
14285 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
14286 loongson_defserial.
14287 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
14288 Rename to ...
14289 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
14290 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
14291 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
14292 to IMAGE_FULOONG2F_FLASH. All users updated.
14293 (image_targets): Rename images.
14294 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
14295
b526cbb6
SJ
142962011-08-19 Szymon Janc <szymon@janc.net.pl>
14297
14298 Make enable of disk cache statistics code configurable.
14299
14300 * configure.ac: --enable-cache-stats added.
14301 * config.h.in (DISK_CACHE_STATS): New define.
14302 * grub-core/Makefile.core.def (cacheinfo): New command.
14303 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
14304 * grub-core/commands/cacheinfo.c: New file.
14305 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
14306 moved to cacheinfo.c.
14307 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
14308 debug code.
14309 * include/grub/disk.h: Likewise.
14310
fb739ccd
SJ
143112011-08-19 Szymon Janc <szymon@janc.net.pl>
14312
14313 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
14314 * grub-core/Makefile.am: Likewise.
14315
2bba8cfd
VS
143162011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14317
14318 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
14319 non-zero pull.
14320
43526629
VS
143212011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14322
14323 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
14324 All users updated.
14325 (grub_jfs_lookup_symlink): Use correct starting inode.
14326
5c144cc8
VS
143272011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14328
14329 * util/grub-setup.c (main): Add missing gcry initialisation.
14330
b1257f65
VS
143312011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14332
14333 Don't accept text modes on EFI when booting Linux.
14334
14335 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
14336 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
14337
828bc390
ML
143382011-08-15 Mario Limonciello <mario_limonciello@dell.com>
143392011-08-15 Colin Watson <cjwatson@ubuntu.com>
14340
14341 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
14342 use of "/path/.." as in grub-install for EFI as well as handling
14343 symlinks correctly.
14344 Fixes Debian bug #637768.
14345
5f60ccac
CW
143462011-08-15 Colin Watson <cjwatson@ubuntu.com>
14347
14348 * util/grub-probe.c: Remove duplicate #include.
14349
6dc212f9
RM
143502011-08-10 Robert Millan <rmh@gnu.org>
14351
14352 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
14353
14354 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
14355 function.
14356 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
14357 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
14358
66816d85
RM
143592011-08-03 Robert Millan <rmh@gnu.org>
14360
14361 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
14362 la_array as packed.
14363 Reported by: Zachary Bedell
14364
20168fca
CW
143652011-07-26 Colin Watson <cjwatson@ubuntu.com>
14366
14367 * configure.ac: The Loongson port requires grub-mkfont due to its
14368 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
14369 be built.
14370
303b6246
CW
143712011-07-26 Colin Watson <cjwatson@ubuntu.com>
14372
14373 * util/grub-install.in: Don't source grub-mkconfig_lib until after
14374 processing arguments (otherwise help2man fails when GRUB has not yet
14375 been installed).
14376
6795300e
VS
143772011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14378
41aa28ea
VS
14379 New script grub-mkstandalone.
14380
14381 * Makefile.util.def (grub-mkstandalone): New script.
14382 * docs/man/grub-mkstandalone.h2m: New file.
14383 * util/grub-mkstandalone.in: Likewise.
14384
143852011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14386
14387 Support ATA disks with 4K sectors.
6795300e
VS
14388
14389 * include/grub/ata.h (grub_ata): New member log_sector_size.
14390 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
14391 (grub_ata_identify): Read sector size.
14392 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
14393
92227597
VS
143942011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14395
14396 * util/grub-install.in: Don't use uhci outside of x86.
14397
c77069f5
VS
143982011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14399
14400 * util/grub-mkrescue.in: Add missing quotes.
14401
144022011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
14403
14404 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
14405 dereference.
14406
583168a2
VS
144072011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14408
14409 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
14410
6be1c01f
VS
144112011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14412
14413 * include/grub/video.h: add missing EXPORT_FUND on
14414 grub_video_edid_checksum and grub_video_edid_preferred_mode.
14415
a1167439
VS
144162011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14417
14418 * include/grub/mips/kernel.h: Fix define conflict.
14419
bf66054f
VS
144202011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14421
14422 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
14423 all four ways.
14424
8fc4fa45
CW
144252011-07-21 Colin Watson <cjwatson@ubuntu.com>
14426
14427 Preferred resolution detection for VBE.
14428
14429 * grub-core/video/video.c (grub_video_edid_checksum): New function.
14430 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
14431 the Flat Panel extension, in line with the X.org VESA driver.
14432 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
14433 New function.
14434 (grub_vbe_bios_get_ddc_capabilities): Likewise.
14435 (grub_vbe_bios_read_edid): Likewise.
14436 (grub_vbe_get_preferred_mode): Likewise.
14437 (grub_video_vbe_setup): When the mode is "auto", try to get the
14438 preferred mode from VBE, and use the largest mode that is no larger
14439 than the preferred mode (some BIOSes expose a preferred mode that is
14440 not in their mode list!). If this fails, fall back to 640x480 as a
14441 safe conservative choice.
14442 (grub_video_vbe_get_edid): New function.
14443 (grub_video_vbe_adapter): Add get_edid.
14444 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
14445 (struct grub_video_adapter): Add get_edid.
14446 (grub_video_edid_checksum): Add prototype.
14447 (grub_video_edid_preferred_mode): Likewise.
14448 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
14449 structure.
14450
14451 * grub-core/commands/videoinfo.c (print_edid): New function.
14452 (grub_cmd_videoinfo): Print EDID if available.
14453
14454 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
14455 is more appropriate on a wider range of platforms than 640x480.
14456 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
14457 documentation.
14458
ca5572a9
VS
144592011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14460
14461 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
14462
e4bcf625
VS
144632011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14464
14465 * po/POTFILES.in: Regenerate.
14466
c4edd548
VS
144672011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14468
14469 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
14470 incorrect memory usage.
14471
16a2bab0
VS
144722011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14473
14474 * util/grub-install.in: Source grub-mkconfig_lib.
14475
2e418de6
VS
144762011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14477
14478 Remove getroot.c from core on emu platform.
14479
14480 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
14481 kern/emu/raid.c.
14482 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
14483 useless.
14484 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
14485 * util/getroot.c (get_win32_path): ... here.
14486 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
14487 * util/getroot.c (fini_libzfs): ... here.
14488 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
14489 * util/getroot.c (grub_get_libzfs_handle): ... here.
14490 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
14491 Moved from here...
14492 * util/getroot.c (grub_find_zpool_from_dir): ... here.
14493 * grub-core/kern/emu/misc.c
14494 (grub_make_system_path_relative_to_its_root): Moved from here...
14495 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
14496 * grub-core/kern/emu/getroot.c: Moved from here ...
14497 * util/getroot.c: ... here. All users updated.
14498 * grub-core/kern/emu/raid.c: Moved from here ...
14499 * util/raid.c: ... here. All users updated.
14500
def9832a
VS
145012011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14502
14503 * po/POTFILES.in: Regenerate.
14504
cd8fe79a
VS
145052011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14506
14507 Fix compilation on GNU/Linux.
14508
14509 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
14510 Disable geli.
14511 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
14512 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
14513 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
14514
a251b719
VS
145152011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
145162011-07-07 Michael Gorven <michael@gorven.za.net>
145172011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
14518
14519 LUKS and GELI support.
14520
14521 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
14522 grub-core/disk/luks.c, grub-core/disk/geli.c,
14523 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
14524 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
14525 grub-core/lib/arg.c.
14526 (libgrubmods.a): Remove gcrypts cflags and cppflags.
14527 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
14528 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
14529 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
14530 (grub-bin2h): Add libgcry.a.
14531 (grub-mkimage): Likewise.
14532 (grub-mkrelpath): Likewise.
14533 (grub-script-check): Likewise.
14534 (grub-editenv): Likewise.
14535 (grub-mkpasswd-pbkdf2): Likewise.
14536 (grub-pe2elf): Likewise.
14537 (grub-fstest): Likewise.
14538 (grub-mkfont): Likewise.
14539 (grub-mkdevicemap): Likewise.
14540 (grub-probe): Likewise.
14541 (grub-ofpath): Likewise.
14542 (grub-mklayout): Likewise.
14543 (example_unit_test): Likewise.
14544 (grub-menulst2cfg): Likewise.
14545 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
14546 * grub-core/Makefile.core.def (cryptodisk): New module.
14547 (luks): Likewise.
14548 (geli): Likewise.
14549 * grub-core/disk/AFSplitter.c: New file.
14550 * grub-core/disk/cryptodisk.c: Likewise.
14551 * grub-core/disk/geli.c: Likewise.
14552 * grub-core/disk/luks.c: Likewise.
14553 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
14554 grub_util_is_lvm.
14555 (grub_util_get_dm_abstraction): New function.
14556 (grub_util_follow_gpart_up): Likewise.
14557 (grub_util_get_geom_abstraction): Likewise.
14558 (grub_util_get_dev_abstraction): Use new functions.
14559 (grub_util_pull_device): Pull GELI and LUKS.
14560 (grub_util_get_grub_dev): Handle LUKS and GELI.
14561 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
14562 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
14563 (follow_geom_up): Removed.
14564 (grub_util_fd_seek): New function.
14565 (open_device): Use grub_util_fd_seek.
14566 (nread): Rename to ..
14567 (grub_util_fd_read): ... this. All users updated.
14568 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
14569 (grub_crypto_cbc_decrypt): Likewise.
14570 (grub_crypto_hmac_write): Likewise.
14571 (grub_crypto_hmac_buffer): Likewise.
14572 (grub_password_get): Extend to util.
14573 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
14574 New member modname.
14575 (gcry_md_spec) [GRUB_UTIL]: Likewise.
14576 * include/grub/cryptodisk.h: New file.
14577 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
14578 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
14579 LUKS and GELI.
14580 (grub_util_follow_gpart_up): New proto.
14581 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
14582 (grub_util_fd_read): Likewise.
14583 (grub_cryptodisk_cheat_mount): Likewise.
14584 (grub_util_cryptodisk_print_uuid): Likewise.
14585 (grub_util_get_fd_sectors): Likewise.
14586 * util/grub-fstest.c (mount_crypt): New var.
14587 (fstest): Mount crypto if requested.
14588 (options): New option -C.
14589 (argp_parser): Parse -C.
14590 (main): Init and fini gcry.
14591 * util/grub-install.in: Support cryptodisk install.
14592 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
14593 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
14594 cryptodisk.
14595 (prepare_grub_to_access_device): Likewise.
14596 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
14597 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
14598 (probe_cryptodisk_uuid): New function.
14599 (probe_abstraction): Likewise.
14600 (probe): Use new functions.
14601 * util/import_gcry.py: Create Makefile.utilgcry.def.
14602 Add modname member.
14603
9bfdcbbc
VS
146042011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14605
14606 Lazy device scanning.
14607
14608 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
14609 (grub-setup): Remove util/raid.c.
14610 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
14611 * grub-core/disk/lvm.c (scan_depth): New variable.
14612 (grub_lvm_iterate): Rescan if necessary.
14613 (find_lv): New function based on grub_lvm_open.
14614 (grub_lvm_open): Use find_lv. Rescan on error.
14615 (is_node_readable): New function.
14616 (is_lv_readable): Likewise.
14617 (grub_lvm_scan_device): Skip already found disks.
14618 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
14619 Stop if searched device is found and readable.
14620 * grub-core/disk/raid.c (inscnt): New variable.
14621 (scan_depth): Likewise.
14622 (scan_devices): New function based on grub_raid_register. Abort if
14623 looked for device is found.
14624 (grub_raid_iterate): Rescan if needed.
14625 (find_array): NEw function based on -grub_raid_open.
14626 (grub_raid_open): Use find_array and rescan.
14627 (insert_array): Set became_readable_at.
14628 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
14629 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
14630 New function.
14631 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
14632 (grub_util_pull_device): New function.
14633 (grub_util_get_grub_dev): Call grub_util_pull_device.
14634 * util/raid.c: Moved to ..
14635 * grub-core/kern/emu/raid.c: ... here.
14636 (grub_util_raid_getmembers): New parameter "bootable".
14637 All users updated. Support 1.x.
14638 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
14639 All users updated.
14640 * include/grub/disk.h (grub_disk_pull_t): New enum.
14641 (grub_disk_dev): Change iterate prototype.
14642 All users updated.
14643 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
14644 New proto.
14645 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
14646 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
14647 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
14648 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
14649 All users updated.
14650 * include/grub/util/raid.h: Removed.
14651
1c358e59
VS
146522011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
14653
14654 * po/POTFILES.in: Regenerate.
14655
abee94ed
VS
146562011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
14657
14658 Unify sparc init with other ieee1275.
14659
14660 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
14661 instead of kern/sparc64/ieee1275/init.c.
14662 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
14663 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
14664 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
14665 grub/machine/kernel.h.
14666 (grub_ieee1275_original_stack) [__sparc__]: New variable.
14667 (grub_claim_heap) [__sparc__]: Use sparc version.
14668 (grub_machine_init): Moved args parsing to
14669 (grub_parse_cmdline): ...this.
14670 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
14671 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
14672 New definition.
14673 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
14674
14675 Move BOOTP to separate file.
14676
14677 * grub-core/Makefile.core.def (net): Add net/bootp.c.
14678 * grub-core/net/net.c: Move all BOOTP functions to
14679 * grub-core/net/bootp.c: ... here.
14680
14681 Use frame interface on PXE.
14682
14683 * grub-core/Makefile.core.def (pxecmd): Removed.
14684 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
14685 * grub-core/commands/i386/pc/pxecmd.c: Removed.
14686 * grub-core/i386/pc/pxe.c: Moved from here ...
14687 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
14688 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
14689 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
14690
14691 EFI network support.
14692
14693 * grub-core/Makefile.core.def (efinet): New module.
14694 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
14695 here...
14696 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
14697 All users updated.
14698 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
14699 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
14700 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
14701 * grub-core/net/drivers/efi/efinet.c: New file.
14702 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
14703 (grub_efi_net_config): New extern var.
14704
14705 Various cleanups and bugfixes.
14706
14707 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
14708 error.
14709 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
14710 disk declared as partition.
14711 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
14712 leak on failure.
14713 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
14714 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
14715 (grub_debug_zalloc): Likewise.
14716 (grub_debug_realloc): Likewise.
14717 (grub_debug_memalign): Likewise.
14718 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
14719 Check that target is IPv4.
14720 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
14721 local-mac-address as fallback.
14722 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
14723 memory leak.
14724 * grub-core/net/ip.c (ipchksum): Rename to ...
14725 (grub_net_ip_chksum): ... this. All users updated.
14726 (grub_net_recv_ip_packets): Special handling for DHCP.
14727 * util/grub-mkimage.c (generate_image): Zero-out aout header.
14728
14729 Unify prefix handling
14730
14731 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
14732 (grub_machine_get_bootlocation): ... this.
14733 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
14734 (grub_machine_get_bootlocation): ... this.
14735 (grub_prefix): New variable.
14736 (prefix): Removed.
14737 (root_dev): New variable.
14738 (dir): Likewise.
14739 (main): Use new variables.
14740 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
14741 Revamped into ...
14742 (grub_machine_get_bootlocation): ... this.
14743 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
14744 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
14745 (grub_machine_get_bootlocation): ... this.
14746 (grub_machine_set_prefix): Removed.
14747 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
14748 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
14749 Revamped into ...
14750 (grub_machine_get_bootlocation): ... this.
14751 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
14752 (grub_set_prefix_and_root): ... this. All users updated.
14753 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
14754 Revamped into ...
14755 (grub_machine_get_bootlocation): ... this.
14756 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
14757 (grub_machine_get_bootlocation): New proto.
14758 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
14759
14760 Less intrusive and more reliable seek on network implementation.
14761
14762 * grub-core/kern/file.c (grub_file_net_seek): Removed.
14763 (grub_file_seek): Don't call grub_file_net_seek.
14764 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
14765 (grub_net_fs_read_real): .. this.
14766 (grub_net_seek_real): Use net->offset.
14767 (grub_net_fs_read): Seek if necessary.
14768
14769 Unify IEEE1275 netwotk config with the other platforms.
14770
14771 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
14772 New variable.
14773 (grub_machine_get_bootlocation): Support network.
14774 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
14775 Support type and device parsing.
14776 (grub_ieee1275_get_device_type): New function.
14777 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
14778 into ...
14779 (grub_ieee1275_net_config_real): ... this.
14780 (grub_ofnet_probecards): Removed.
14781 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
14782 * include/grub/ieee1275/ofnet.h: Removed.
14783 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
14784 extern var.
14785 (grub_ieee1275_get_device_type): New function.
14786
14787 Unify network device closing across platforms and make more robust.
14788
14789 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
14790 grub_grubnet_fini.
14791 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
14792 already.
14793 * grub-core/net/net.c (grub_net_network_level_interface_register):
14794 Update num_ifaces.
14795 (grub_net_card_unregister): Close all interfaces.
14796 (receive_packets): Don't poll if no iterfaces are registered.
14797 Open if necessary.
14798 (grub_net_fini_hw): New function.
14799 (grub_net_restore_hw): Likewise.
14800 (fini_hnd): New variable.
14801 (GRUB_MOD_INIT): Register preboot hook.
14802 (GRUB_MOD_FINI): Run and unregister preboot hook.
14803
14804 Poll network cards when idle.
14805
14806 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
14807 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
14808 * grub-core/net/net.c (receive_packets): Save last poll time.
14809 (grub_net_poll_cards_idle_real): New function.
14810 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
14811 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
14812 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
14813
14814 Rename ofnet interfaces.
14815
14816 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
14817 (grub_ofnet_findcards): Use ofnet_%s names.
14818
14819 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
14820
14821 Cleanup socket opening.
14822
14823 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
14824 (grub_net_fs_close): Likewise.
14825 (grub_net_fs_read_real): Use eof member.
14826 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
14827 (+grub_net_udp_close): New inline function.
14828
14829 * include/grub/net/tftp.h: Moved to the top of ...
14830 * grub-core/net/tftp.c: ... here.
14831 * include/grub/net/ip.h: Moved mostly to the top of ...
14832 * grub-core/net/ip.c: ... here.
14833 * include/grub/net/ethernet.h: Moved mostly to the top of ...
14834 * grub-core/net/ethernet.c: ... here.
14835
14836 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
14837
14838 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
14839 FS name.
14840
14841 * include/grub/net/ip.h (ipv4_ini): Removed.
14842 (ipv4_fini): Likewise.
14843
14844 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
14845 (grub_net_send_ip_packets): Likewise.
14846
cf1337aa
VS
148472011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14848
14849 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
14850 grub_read_cmos prototype.
14851
93c06ff9
VS
148522011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14853
14854 VGA text support in qemu-mips
14855
14856 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
14857 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
14858 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
14859 text.
14860 * grub-core/kern/i386/qemu/init.c: Renamed to ...
14861 * grub-core/kern/vga_init.c: ... this.
14862 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
14863 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
14864 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
14865 Adjust.
14866 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
14867 GRUB_MACHINE_PCI_IO_BASE.
14868
748ccabe
VS
148692011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14870
14871 MIPS qemu flash support.
14872
14873 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
14874 magic.
14875 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
14876 (grub_machine_init): Probe memory if its size isn't known.
14877 * util/grub-mkimage.c (image_targets): Add flash targets.
14878 (generate_image): Handle flash targets.
14879
d7345994
VS
148802011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14881
14882 MIPS qemu at_keyboard support.
14883
14884 * gentpl.py (videoinkernel): Add qemu-mips.
14885 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
14886 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
14887 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
14888 modules.
14889 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
14890 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
14891 * grub-core/term/serial.c (grub_serial_register)
14892 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
14893
a07a81b3
VS
148942011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14895
14896 CMOS support on sparc.
14897
14898 * gentpl.py (cmos): Add powerpc and sparc.
14899 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
14900 powerpc and sparc.
14901 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
14902 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
14903 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
14904 grub_set_datetime_cmos.
14905 * grub-core/lib/ieee1275/cmos.c: New file.
14906 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
14907 (find_rtc): Set no_ieee1275_rtc on error.
14908 (grub_get_datetime): Call grub_get_datetime_cmos on error.
14909 (grub_set_datetime): Call grub_set_datetime_cmos on error.
14910 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
14911 fail. Move value to argument. All users updated
14912 (grub_cmos_write): Likewise.
14913 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
14914 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
14915 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
14916 grub_get_datetime_cmos and grub_set_datetime_cmos.
14917
77546584
GS
149182011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
14919
14920 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
14921 sourcing grub-mkconfig_lib.
14922 * util/update-grub_lib.in: Likewise.
14923 * util/grub.d/00_header.in: Likewise.
14924 * util/grub.d/10_hurd.in: Likewise.
14925 * util/grub.d/10_kfreebsd.in: Likewise.
14926 * util/grub.d/10_linux.in: Likewise.
14927 * util/grub.d/10_netbsd.in: Likewise.
14928 * util/grub.d/10_windows.in: Likewise.
14929 * util/grub.d/20_linux_xen.in: Likewise.
14930 * util/grub.d/30_os-prober.in: Likewise.
14931
54894791
CW
149322011-06-28 Colin Watson <cjwatson@ubuntu.com>
14933
14934 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
14935 default_bg_color rather than black.
14936 (grub_gfxterm_fullscreen): Likewise.
14937 (grub_gfxterm_background_color_cmd): Save new background color in
14938 default_bg_color.
14939
8d5d8444
VS
149402011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14941
14942 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
14943
5afeb5bd
VS
149442011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14945
14946 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
14947 mismerge.
14948
ba7df45e
VS
149492011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14950
14951 Chainloading on coreboot support.
14952
14953 * grub-core/Makefile.core.def (chain): Add coreboot.
14954 * grub-core/loader/i386/coreboot/chainloader.c: New file.
14955
d0b526b2
VS
149562011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14957
14958 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
14959 if it happens.
14960
5ff1d945
VS
149612011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14962
14963 Implement time command.
14964
14965 * grub-core/Makefile.core.def (time): New module.
14966 * grub-core/commands/time.c: New file.
14967 * grub-core/script/parser.y: Remove "time" keyword.
14968 * grub-core/script/yylex.l: Likewise.
14969
5ebaad7e
VS
149702011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14971
14972 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
14973
bdea3798
VS
149742011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14975
14976 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
14977 when handling leftovers.
14978
b28c5655
VS
149792011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14980
14981 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
14982 so that help2man doesn't fail.
14983
b6f945dc
VS
149842011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14985
14986 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
14987 type in pointers on sparc64.
14988 (get_card_packet): Likewise.
14989
f9b75e8a
CW
149902011-06-27 Colin Watson <cjwatson@ubuntu.com>
14991
14992 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
14993 with `*'.
14994 (grub_cmd_videoinfo): Fetch current video mode.
14995
1e3d9b86
VS
149962011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14997
14998 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
14999 because of underlying system restrictions.
15000
efff4b1c
VS
150012011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15002
15003 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
15004 necessary.
15005
9fc9ce37
VS
150062011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15007
15008 Coreboot video support.
15009
15010 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
15011 (vbe): Likewise.
15012 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
15013 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
15014 here ...
15015 * grub-core/kern/i386/int.S: ... here.
15016 * grub-core/video/i386/pc/vbe.c: Updated includes.
15017 * grub-core/video/i386/pc/vga.c: Likewise.
15018 * include/grub/i386/coreboot/memory.h
15019 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
15020 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
15021 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
15022 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
15023 Disable interrupts.
15024 * include/grub/i386/pc/vga.h: Removed. All users updated.
15025
41bec7fe
VS
150262011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15027
15028 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
15029 definitions for dprintf.
15030 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
15031
ca80309d
VS
150322011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15033
15034 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
15035 prototype.
15036 (get_card_packet): Likewise.
15037
9e322ce8
YB
150382011-06-26 Yves Blusseau <blusseau@zetam.org>
15039
15040 Display the path of the file when file is not found
15041
15042 * grub-core/fs/fat.c: Display the filename when file is not found.
15043 * grub-core/fs/fshelp.c: Likewise.
15044 * grub-core/fs/hfs.c: Likewise.
15045 * grub-core/fs/jfs.c: Likewise.
15046 * grub-core/fs/minix.c: Likewise.
15047 * grub-core/fs/ufs.c: Likewise.
15048 * grub-core/fs/btrfs.c: Likewise.
15049 * grub-core/commands/i386/pc/play.c: Likewise.
15050
cbf597af
SJ
150512011-06-26 Szymon Janc <szymon@janc.net.pl>
15052
15053 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
15054 pointer checks before calling grub_free().
15055 * grub-core/commands/wildcard.c (match_devices): Likewise.
15056 * grub-core/commands/wildcard.c (match_files): Likewise.
15057 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
15058 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
15059 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
15060 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
15061 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
15062 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
15063 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
15064 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15065 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
15066
6295b32f
P
150672011-06-25 Patrick <p55@mailinator.com>
15068
15069 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
15070
77c0840b
VS
150712011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
15072
15073 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
15074 (grub_pxe_send): Likewise.
15075 (GRUB_MOD_INIT): Fix types.
15076
40ea05de
SJ
150772011-06-24 Szymon Janc <szymon@janc.net.pl>
15078
15079 * grub-core/io/xzio.c: Fix code style issues
15080
90162423
MRA
150812011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
150822011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
15083
15084 Network infrastructure.
15085 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
15086
15087 * include/grub/net/arp.h: New file.
90162423
MRA
15088 * include/grub/net/device.h: Likewise.
15089 * include/grub/net/ethernet.h: Likewise.
15090 * include/grub/net/ip.h: Likewise.
15091 * include/grub/net/netbuff.h: Likewise.
15092 * include/grub/net/tftp.h: Likewise.
15093 * include/grub/net/udp.h: Likewise.
15094 * include/grub/ieee1275/ofnet.h: Likewise.
15095 * include/grub/emu/export.h: Likewise.
15096 * include/grub/net.h: Likewise.
15097 * grub-core/net/arp.c: Likewise.
15098 * grub-core/net/ethernet.c: Likewise.
15099 * grub-core/net/ip.c: Likewise.
15100 * grub-core/net/udp.c: Likewise.
15101 * grub-core/net/tftp.c: Likewise.
15102 * grub-core/net/netbuff.c: Likewise.
15103 * grub-core/net/net.c: Likewise.
15104 * grub-core/net/drivers/emu/emunet.c: Likewise.
15105 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
15106 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
15107 export.h.
15108 * grub-core/Makefile.core.def (net): New module.
15109 (tftp): Likewise.
15110 (ofnet): Likewise.
15111 (emunet): Likewise.
15112 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
15113 network protocols.
15114 * grub-core/kern/device.c (grub_net_open) : New variable.
15115 (grub_device_open): Handle network device.
15116 (grub_device_close): Likewise.
15117 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
15118 (grub_grubnet_fini): Likewise.
15119 (grub_file_seek): Seek in network device.
15120 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
15121 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
15122 network root.
15123 (grub_machine_fini): Call grub_grubnet_fini.
15124 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
15125 network.
15126 (grub_ieee1275_get_aliasdevname): New function.
15127 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15128 Add unofficial Solaris network info.
15129 (grub_multiboot_make_mbi): Likewise.
15130 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
15131 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
15132 * include/grub/device.h (grub_fs): Removed.
15133 * include/grub/err.h (grub_err_t): Add network-related values.
15134 * include/grub/i386/pc/pxe.h: Removed bootp parts.
15135 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
15136 (grub_ieee1275_get_aliasdevname): New proto.
15137 * include/grub/net.h: Rewritten.
423a1849 15138
031f22a0
VS
151392011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15140
15141 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
15142 names.
15143
4388ca72
VS
151442011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15145
15146 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
15147 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
15148 it truncates the output.
15149 Reported by: Ximin Luo.
15150
98e2f506
VS
151512011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15152
15153 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
15154
2a5e94d8
VS
151552011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15156
15157 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
15158 partmap before abstraction.
15159
535c1910
AK
151602011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
15161
15162 * util/grub-mkconfig_lib.in: Add missing quotes.
15163
bc09e1a2
VS
151642011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15165
15166 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
15167 old method if mountinfo would return /dev/root and /dev/root doesn't
15168 exist.
15169
290766fb
VS
151702011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15171
15172 ZFS zlib support
15173
15174 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
15175 (decomp_table): Add zlib entries.
15176 (zio_read): USe 8 bits for compression function rather than 3.
15177 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
15178
151792011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15180
15181 * grub-core/disk/ahci.c: Add missing license statements.
15182 * grub-core/fs/romfs.c: Likewise.
15183 * grub-core/lib/ia64/setjmp.S: Likewise.
15184 * grub-core/loader/i386/pc/freedos.c: Likewise.
15185 * grub-core/loader/ia64/efi/linux.c: Likewise.
15186 * grub-core/video/colors.c: Likewise.
15187 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
15188
5ab3f48a
VS
151892011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15190
15191 AHCI support.
15192
15193 * grub-core/Makefile.core.def (ata_pthru): Removed.
15194 (ahci): New module.
15195 (pata): Likewise.
15196 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
15197 on unload.
15198 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
15199 readwrite.
15200 (grub_hdparm_do_check_powermode_cmd): Likewise.
15201 (grub_hdparm_do_smart_cmd): Likewise.
15202 (grub_hdparm_set_val_cmd): Likewise.
15203 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
15204 * grub-core/disk/ahci.c: New file.
15205 * grub-core/disk/ata.c: Factor out the low-level part into ...
15206 * grub-core/disk/pata.c: ... here.
15207 * grub-core/disk/ata_pthru.c: Contents moved to ...
15208 * grub-core/disk/pata.c: ... here.
15209 * grub-core/disk/scsi.c (grub_scsi_names): New array.
15210 (grub_scsi_iterate): Use grub_scsi_names.
15211 (grub_scsi_open): Likewise.
15212 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
15213 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
15214 (grub_ata_regs_t): New struct.
15215 (grub_disk_ata_pass_through_parms): Likewise.
15216 (grub_ata_device): Renamed to ...
15217 (grub_ata): ... this.
15218 (grub_ata_dev): New struct.
15219 Removed all low-level inline functions.
15220 * include/grub/scsi.h: Add PATA and AHCI subsystems.
15221 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
15222 iterate hooks and open. All users updated.
15223 * util/grub-install.in: Handle AHCI disk module.
15224
c31dc5f5
SJ
152252011-06-23 Szymon Janc <szymon@janc.net.pl>
15226
15227 Add support for DRI and RSTn markers in JPEG files.
15228
15229 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
15230 (JPEG_MARKER_RST0): Likewise.
15231 (JPEG_MARKER_RST1): Likewise.
15232 (JPEG_MARKER_RST2): Likewise.
15233 (JPEG_MARKER_RST3): Likewise.
15234 (JPEG_MARKER_RST4): Likewise.
15235 (JPEG_MARKER_RST5): Likewise.
15236 (JPEG_MARKER_RST6): Likewise.
15237 (JPEG_MARKER_RST7): Likewise.
15238 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
15239 (grub_jpeg_decode_dri): New function.
15240 (grub_jpeg_decode_sos): Move image data related part into
15241 grub_jpeg_decode_data function.
15242 (grub_jpeg_decode_data): New function.
15243 (grub_jpeg_reset): New function.
15244 (grub_jpeg_decode_jpeg): Handle new markers.
15245
fe12fd5b
VS
152462011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15247
15248 * util/ieee1275/ofpath.c (check_sas): Close fd.
15249 (main): Free of_path.
15250 Reported by: David Volgyes <dvolgyes>.
15251
03147f46
VS
152522011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15253
15254 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
15255 Reported by: David Volgyes <dvolgyes>.
15256
cad3237f
VS
152572011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15258
15259 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
15260 file after stat.
15261 Reported by: David Volgyes <dvolgyes>.
15262
13548d26
VS
152632011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15264
15265 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
15266
15267 Reported by: David Volgyes <dvolgyes>.
15268
e061a1b5
VS
152692011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15270
15271 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
15272 Prevent memory leak.
15273
1abe47dc
VS
152742011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15275
15276 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
15277 (main): Close file.
e061a1b5 15278 Reported by: David Volgyes <dvolgyes>.
1abe47dc 15279
fbc62666
VS
152802011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15281
15282 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
15283 to continue if allocation is failed.
15284
15285 Reported by: David Volgyes <dvolgyes>.
15286
e98c83e9
DV
152872011-06-23 David Volgyes <dvolgyes>
15288
15289 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
15290 dereference.
15291
a199a8cd
VS
152922011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15293
15294 Fix spurious warning.
15295
15296 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
15297 (acorn_partition_map_find): Use .bin member.
15298
e2d1dba0
VS
152992011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15300
15301 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
15302 /dev/root as a valid device.
15303
8a5d6919
JM
153042011-06-23 Jim Meyering <meyering@redhat.com>
15305
e2d1dba0
VS
15306 Avoid NULL deref in grub_device_open.
15307
8a5d6919
JM
15308 * grub-core/kern/device.c (grub_device_open): Don't dereference
15309 a NULL pointer upon failed grub_env_get.
15310
f7db6f4a
VS
153112011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 Support non-512B sectors and agglomerate reads.
15314
15315 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
15316 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
15317 (disk_io_guid): Removed.
15318 (make_devices): Locate solely by BlockIO.
15319 (grub_efidisk_open): Fill log_sector_size and total_sectors.
15320 (grub_efidisk_read): Use read_blocks.
15321 (grub_efidisk_write): Use write_blocks.
15322 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
15323 log_sector_size.
15324 (get_safe_sectors): Handle non-512B sectors.
15325 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
15326 sectors.
15327 (grub_biosdisk_write): Handle non-512B sectors.
15328 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
15329 (grub_scsi_read): Remove special non-512B block handling (now handled
15330 one level up).
15331 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
15332 and do sanity checks.
15333 (grub_disk_adjust_range): Handle non-512B sectors.
15334 (transform_sector): New function.
15335 (grub_disk_read_small): Likewise.
15336 (grub_disk_read): Rewritten.
15337 (grub_disk_write): Handle non-512B sectors.
15338 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
15339 log_sector_size.
15340 (open_device): Use log_sector_size.
15341 (grub_util_biosdisk_read): Likewise.
15342 (grub_util_biosdisk_write): Likewise.
15343 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
15344 non-512B sectors.
15345 (pc_partition_map_embed): Likewise.
15346 * include/grub/disk.h (grub_disk): New field log_sector_size.
15347 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
15348 (GRUB_DISK_CACHE_BITS): Increased to 6.
15349 * util/grub-fstest.c (fstest): New command testload.
15350 (argp_parser): Likewise.
15351
881ac815
RM
153522011-06-16 Robert Millan <rmh@gnu.org>
15353
15354 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
15355 `ata' driver on kernel of FreeBSD 9.
15356
15357 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
15358 (get_ataraid_disk_name): New functions.
15359 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
15360 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
15361 get_ataraid_disk_name() and get_ada_disk_name().
15362
1e9aef7d
CW
153632011-06-13 Colin Watson <cjwatson@ubuntu.com>
15364
15365 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
15366 input format.
15367
351c7c8a
CW
153682011-05-29 Colin Watson <cjwatson@ubuntu.com>
15369
15370 * docs/grub.texi (Obtaining and Building GRUB): Substitute
15371 `ftp.gnu.org' for `alpha.gnu.org'.
15372
6b4e6430
CW
153732011-05-27 Colin Watson <cjwatson@ubuntu.com>
15374
15375 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
15376 partitions under /dev/disk/by-id/.
15377
c64db050
CW
153782011-05-27 Colin Watson <cjwatson@ubuntu.com>
15379
15380 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
15381 after ten consecutive open failures. Scanning all the way up to
15382 10000 is excessive and can cause serious performance problems in
15383 some configurations.
15384 Fixes Ubuntu bug #787461.
15385
245f4aba
VS
153862011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15387
15388 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
15389 opening new one.
15390
f767c929
VS
153912011-05-21 Colin Watson <cjwatson@ubuntu.com>
153922011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15393
15394 Don't stat devices unless we have to.
15395
15396 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
15397 dir == /dev/mapper.
15398 (grub_guess_root_device): Use already known os_dev if possible.
15399 * grub-core/kern/emu/hostdisk.c
15400 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
15401 if device is known to be a dm one.
15402
f35fa3a6
CW
154032011-05-20 Colin Watson <cjwatson@ubuntu.com>
15404
15405 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
15406 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
15407 Reported by: Pawel Tecza.
15408
9a79fcf2
VS
154092011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
15410
15411 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
15412 (lsefisystab): Likewise.
15413 (lssal): Likewise.
15414 (lsefimmap): Likewise.
15415 (hdparm): Enable on qemu-mips.
15416 (setjmp): Add ia64 nodist.
15417 (serial): Simplify tags.
15418
63e3eea9
CW
154192011-05-18 Colin Watson <cjwatson@ubuntu.com>
15420
15421 * Makefile.util.def (grub-ofpathname): Install manual page.
15422
09728256
CW
154232011-05-18 Colin Watson <cjwatson@ubuntu.com>
15424
15425 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
15426
8b63a142
CW
154272011-05-18 Colin Watson <cjwatson@ubuntu.com>
15428
15429 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
15430
e775d8ed
VS
154312011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15432
15433 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
15434 into dprintf.
15435
bf947d36
VS
154362011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15437
15438 Use full 64-bit division.
15439
15440 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
15441 (grub_divmod64): ... this.
15442 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
15443 version.
15444
b84f26c5
CW
154452011-05-18 Colin Watson <cjwatson@ubuntu.com>
15446
15447 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
15448 `source'.
15449
5626056f
CW
154502011-05-18 Colin Watson <cjwatson@ubuntu.com>
15451
15452 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
15453 to avoid accidents when debugging with 'sh -x'.
15454 * grub-core/gensyminfo.sh.in: Likewise.
15455 * tests/example_scripted_test.in: Likewise.
15456 * tests/grub_cmd_regexp.in: Likewise.
15457 * tests/grub_script_blanklines.in: Likewise.
15458 * tests/grub_script_dollar.in: Likewise.
15459 * tests/grub_script_expansion.in: Likewise.
15460 * tests/grub_script_final_semicolon.in: Likewise.
15461 * tests/partmap_test.in: Likewise.
15462 * tests/util/grub-shell-tester.in: Likewise.
15463 * tests/util/grub-shell.in: Likewise.
15464
e2965f4a
CW
154652011-05-18 Colin Watson <cjwatson@ubuntu.com>
15466
15467 Move gfxmenu color handling to video, so that gfxterm can use it
15468 too.
15469
15470 * grub-core/gfxmenu/named_colors.c: Move to ...
15471 * grub-core/video/colors.c: ... here. Rename
15472 grub_gui_get_named_color to grub_video_get_named_color.
15473 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
15474 * grub-core/video/colors.c (my_isxdigit): ... here.
15475 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
15476 Move to ...
15477 * grub-core/video/colors.c (parse_hex_color_component): ... here.
15478 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
15479 to ...
15480 * grub-core/video/colors.c (grub_video_parse_color): ... here.
15481
15482 * include/grub/gui.h (grub_gui_color_t): Move to ...
15483 * include/grub/video.h (grub_video_rgba_color_t): ... here.
15484 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
15485 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
15486 * include/grub/gui.h (grub_gui_map_color): Move to ...
15487 * include/grub/video.h (grub_video_map_rgba_color): ... here.
15488 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
15489 to ...
15490 * include/grub/video.h (grub_video_get_named_color): ... here.
15491 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
15492 * include/grub/video.h (grub_video_parse_color): ... here.
15493
15494 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
15495 video/colors.c.
15496 (gfxmenu): Remove gfxmenu/named_colors.c.
15497 (video) [videomodules]: Add video/colors.c.
15498
15499 Add a background_color command.
15500
15501 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
15502 function.
15503 (GRUB_MOD_INIT): Register background_color command.
15504 (GRUB_MOD_FINI): Unregister background_color command.
15505 (redraw_screen_rect): Allow blend/replace of text layer to be
15506 controlled independently from whether there is a background bitmap.
15507 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
15508 changing bitmap.
15509
1e4b4390
VS
155102011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15511
26618ff0
VS
15512 Patch BPB in ntldr and chainloader --bpb.
15513
1e4b4390
VS
15514 * grub-core/fs/fat.c: Include grub/fat.h.
15515 (grub_fat_bpb): Moved to ...
15516 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
15517 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
15518 grub/ntfs.h.
15519 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
15520 Moved from here...
15521 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
15522 here.
15523 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
15524 New function.
15525 (grub_chainloader_cmd): Patch BPB if --bpb is given.
15526 (GRUB_MOD_INIT): Show --bpb.
15527 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
15528 * grub-core/normal/main.c (features): New variable.
15529 (GRUB_MOD_INIT): Set feature_* variables.
15530 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
15531 proto.
15532 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
15533
cf02731e
VS
155342011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15535
15536 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
15537 for cleanness.
15538
e3a1073f
VS
155392011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15540
15541 FreeDOS direct loading support.
15542
15543 * docs/grub.texi (Supported OS): Add FreeDOS.
15544 * grub-core/Makefile.core.def (freedos): New module.
15545 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
15546 variable.
15547 (grub_relocator16_boot): Handle %ebx.
15548 * grub-core/lib/i386/relocator16.S: Likewise.
15549 * grub-core/loader/i386/pc/freedos.c: New file.
15550
05caa461
VS
155512011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15552
15553 Long Linux command line support.
15554
15555 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15556 (maximal_cmdline_size): New variable.
15557 (allocate_pages): Use maximal_cmdline_size.
15558 (grub_cmd_linux): Set and use maximal_cmdline_size.
15559 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15560 (allocate_pages): Use maximal_cmdline_size.
15561 (grub_cmd_linux): Set and use maximal_cmdline_size.
15562 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
15563 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
15564 and cmdline_size.
15565
a2491e23
VS
155662011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
155672011-05-18 Colin Watson <cjwatson@ubuntu.com>
15568
15569 Improve devmapper support
15570
15571 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
15572 (grub_util_is_lvm): New function.
15573 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
15574 than lvm if not dmraid.
15575 Handle mapped md nodes.
15576 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
15577 (grub_util_device_is_mapped): ... this. Make always available. All users
15578 updated.
15579 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
15580 (convert_system_partition_to_system_disk): Handle lvm, mpath and
15581 dmraid nodes.
15582 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
15583
6ad6223e
VS
155842011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15585
15586 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
15587
15588 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
15589 * grub-core/modinfo.sh.in: New file.
15590 * grub-core/Makefile.core.def (modinfo.sh): New script.
15591 * util/grub-mknetdir.in: Use modinfo.sh.
15592 * util/grub-mkrescue.in: Likewise.
15593
543a8f6e
VS
155942011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15595
15596 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15597 Fix potential usage of Elf32 instead of Elf64 when compiling on
15598 32-bit architecture. Add endianness macros while on it.
15599
4959e111
VS
156002011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15601
15602 Use mipsel- rather than mips- in directories involving mipsel ports to
15603 allow both endiannesses coexist.
15604
15605 * configure.ac: proparate target_cpu=mipsel rather than resetting to
15606 mips. All conditions adjusted.
15607 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
15608 variable.
15609 * util/grub-install.in: Adjust conditions to take renaming into account.
15610 * util/grub-mkimage.c (image_targets): Likewise. New target
15611 mips-qemu_mips-elf for bigendian mips.
15612
35341bbc
VS
156132011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15614
15615 Avoid unnecessary copying on MIPS.
15616
15617 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
15618 early if src == dest.
15619 * util/grub-mkimage.c (generate_image): Arange for src == dest if
15620 compression is none.
15621
b772baed
VS
156222011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15623
15624 Reduce memory footprint on SGI by putting modules before the kernel
15625 as opposed to after.
15626
15627 * grub-core/Makefile.core.def (kernel): Increase linking address.
15628 (none_decompress): Likewise.
15629 (xz_decompress): Likewise.
15630 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
15631 address.
15632 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
15633 layout change.
15634 (grub_arch_modules_addr): New function.
15635 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
15636 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
15637 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
15638 here.
15639 * grub-core/kern/mips/startup.S (total_size): Rename to ...
15640 (grub_total_modules_size): ... this. Make global.
15641 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
15642 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
15643 New definition.
15644 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
15645 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
15646 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
15647 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
15648 * util/grub-mkimage.c (image_target_desc): New flag
15649 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
15650 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
15651 (generate_image): Handle images with modules before kernel.
15652
566a1917
VS
156532011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15654
15655 Prevent potential loss of memory map by overwrite on qemu-mips.
15656
15657 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
15658 Save ram size in $s4.
15659 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
15660 All users changed to grub_arch_memsize.
15661 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
15662 Loongson.
15663 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
15664 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
15665 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
15666 external variable.
15667
5d420cd9
CW
156682011-05-17 Colin Watson <cjwatson@ubuntu.com>
15669
15670 * .bzrignore: Remove grub-dumpbios.
15671
d064b830
CW
156722011-05-17 Colin Watson <cjwatson@ubuntu.com>
15673
15674 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
15675 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
15676 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
15677 existing options which append).
15678 * docs/grub.texi (Simple configuration): Document new options.
15679 Reported by: Ian Jackson. Fixes Debian bug #617538.
15680
3ca2b466
CW
156812011-05-17 Colin Watson <cjwatson@ubuntu.com>
15682
15683 * util/grub-fstest.c (cmd_cat): New function.
15684 (fstest): Handle CMD_CAT.
15685 (options): Add cat.
15686 (argp_parser): Handle cat.
15687
24c9143a
CW
156882011-05-17 Colin Watson <cjwatson@ubuntu.com>
15689
15690 * Makefile.util.def (grub-bin2h): Don't install.
15691 * docs/man/grub-bin2h.h2m: Remove.
15692
90f7ac19
VS
156932011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15694
15695 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
15696 place.
15697
8d4a5178
VS
156982011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15699
15700 Reenable qemu-mips port.
15701
15702 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
15703 Fix small arc bug while on it.
15704 * gentpl.py: Handle qemu_mips.
15705 * grub-core/Makefile.am: Likewise.
15706 * grub-core/Makefile.core.def: Likewise.
15707 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
15708 inappropriate includes.
15709 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
15710 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
15711 * grub-core/kern/main.c (grub_modules_get_end)
15712 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
15713 * grub-core/kern/mips/qemu-mips: Moved to ..
15714 * grub-core/kern/mips/qemu_mips: ... this.
15715 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
15716 (grub_machine_init): Call terminfo_init and serial_init.
15717 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
15718 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
15719 New variable.
15720 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
15721 parameter passing.
15722 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
15723 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
15724 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
15725 * include/grub/mips/qemu_mips/cmos.h: New file.
15726 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
15727 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
15728 Removed.
15729 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
15730 Use correct mips-style address.
15731 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
15732 (GRUB_TICKS_PER_SECOND): Removed.
15733 (grub_get_rtc): Likewise.
15734 (grub_cpu_idle): Likewise.
15735 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
15736 New definition.
15737 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
15738 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
15739 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
15740 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
15741 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
15742 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
15743 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
15744 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
15745
400b9371
VS
157462011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15747
15748 SGI ARCS port.
15749
15750 * Makefile.util.def (libgrubmods.a): Add dvh.c.
15751 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
15752 platforms.
15753 * configure.ac: New target mips-arc.
15754 * gentpl.py: Likewise.
15755 * grub-core/Makefile.am: Likewise.
15756 * grub-core/Makefile.core.def: Likewise.
15757 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
15758 (none_decompress): Likewise.
15759 (lsdev): New module.
15760 (datetime): Use lib/arc/datetime.c on ARC.
15761 (part_dvh): New module.
15762 * grub-core/commands/arc/lsdev.c: New file.
15763 * grub-core/disk/arc/arcdisk.c: Likewise.
15764 * grub-core/kern/mips/arc/init.c: Likewise.
15765 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
15766 aligned addresses.
15767 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
15768 support.
15769 (grub_arch_dl_relocate_symbols): Likewise.
15770 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
15771 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
15772 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
15773 platforms.
15774 * grub-core/lib/arc/datetime.c: New file.
15775 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
15776 pci.h on non-loongson.
15777 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
15778 (grub_linux_boot): Set unused registers to 0.
15779 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
15780 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
15781 * grub-core/mmap/mips/uppermem.c: ...here.
15782 * grub-core/partmap/dvh.c: New file.
15783 * grub-core/term/arc/console.c: Likewise.
15784 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
15785 (grub_terminfo_set_current): Add terminal "arc".
15786 (grub_terminfo_readkey): Support ARC sequences.
15787 * include/grub/arc/arc.h: New file.
15788 * include/grub/arc/console.h: Likewise.
15789 * include/grub/disk.h (grub_disk_dev_id): Add
15790 GRUB_DISK_DEVICE_ARCDISK_ID.
15791 * include/grub/mips/arc/kernel.h: New file.
15792 * include/grub/mips/arc/memory.h: Likewise.
15793 * include/grub/mips/arc/time.h: Likewise.
15794 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
15795 * include/grub/mips/kernel.h (grub_halt): ... here.
15796 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
15797 here...
15798 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
15799 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
15800 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
15801 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
15802 proto.
15803 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
15804 from here ...
15805 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
15806 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
15807 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
15808 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
15809 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
15810 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
15811 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
15812 (grub_phys_addr_t): Moved from here ...
15813 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
15814 (grub_vtop): Moved from here ...
15815 * include/grub/mips/memory.h (grub_vtop): ... here.
15816 (grub_map_memory): Moved from here ...
15817 * include/grub/mips/memory.h (grub_map_memory): ... here.
15818 (grub_unmap_memory): Moved from here ...
15819 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
15820 (grub_machine_mmap_iterate): Moved from here ...
15821 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
15822 (grub_mmap_get_lower): Moved from here ...
15823 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
15824 (grub_mmap_get_upper): Moved from here ...
15825 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
15826 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
15827 here ...
15828 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
15829 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
15830 here ...
15831 * include/grub/mips/time.h (grub_get_rtc): ... here.
15832 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
15833 here ...
15834 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
15835 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
15836 here ...
15837 * include/grub/mips/time.h (grub_cpu_idle): ... here.
15838 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
15839 definition.
15840 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
15841 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
15842 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
15843 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
15844 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
15845 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
15846 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
15847 (GRUB_MACHINE_LINK_ADDR): Likewise.
15848 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
15849 to 6.
15850 * util/grub-install.in: Run dvhtool on ARC.
15851 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 15852 (generate_image): Handle ECOFF output for mips-arc.
400b9371 15853
c8ecc840
VS
158542011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15855
15856 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
15857 blocks.
15858
153a4b55
VS
158592011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15860
15861 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
15862 after enabling port.
15863
ff44d107
VS
158642011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15865
15866 Skip incorrect USB devices.
15867
15868 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
15869 configcnt == 0.
15870 * include/grub/usb.h (grub_usb_err_t): New enum value
15871 GRUB_USB_ERR_BADDEVICE.
15872
638dbe4f
VS
158732011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15874
15875 Fuloong video init support.
15876
15877 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
15878 well.
15879 (grub_vga_read_arx): New function.
15880 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
15881 definition.
15882 (framebuffer): New members io, mmioptr and mmiobase.
15883 (read_sis_cmd): New function.
15884 (write_sis_cmd): Likewise.
15885 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
15886 rather than 640x400.
15887 * grub-core/video/sis315_init.c: New file.
15888
c3fc520c
VS
158892011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15890
15891 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
15892 non-loongson.
15893 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
15894 to grub_dl_register_symbol.
15895
67b1e5c9
VS
158962011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15897
15898 Fix compilation errors.
15899
15900 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
15901 potentially unused.
15902 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
15903 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
15904 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
15905 to loongson machines.
15906
b756f75f
VS
159072011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15908
15909 Several FS mtime support.
15910
15911 * grub-core/fs/affs.c (grub_affs_time): New struct.
15912 (grub_affs_file): New field mtime.
15913 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
15914 type. Removed 'size'. New field 'di'. All users updated.
15915 (grub_affs_mount): Simplify checsum checking.
15916 (grub_affs_iterate_dir): New helper grub_affs_create_node.
15917 (grub_affs_dir): Handle mtime.
15918 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
15919 (grub_cpio_dir): Likewise.
15920 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
15921 (grub_hfs_filerec): New field mtime.
15922 (grub_hfs_dir): Handle mtime.
15923 (grub_hfs_mtime): New function.
15924 (grub_hfs_fs): Register grub_hfs_mtime.
15925 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
15926 (grub_iso9660_dir): New field mtime.
15927 (grub_fshelp_node): New field dirent.
15928 (iso9660_to_unixtime): New function.
15929 (iso9660_to_unixtime2): Likewise.
15930 (grub_iso9660_read_symlink): Use node->dirent.
15931 (grub_iso9660_iterate_dir): Likewise.
15932 (grub_iso9660_dir): Set mtime.
15933 (grub_iso9660_mtime): New function.
15934 (grub_iso9660_fs): Register grub_iso9660_mtime.
15935 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
15936 (grub_jfs_inode): New fields atime, ctime and mtime.
15937 (grub_jfs_dir): Set mtime.
15938 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15939 * grub-core/fs/ntfs.c (list_file): Set mtime.
15940 (grub_ntfs_dir): Likewise.
15941 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
15942 (grub_reiserfs_iterate_dir): Set mtime.
15943 (grub_reiserfs_dir): Likewise.
15944 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
15945 (grub_fshelp_node): Likewise.
15946 (grub_sfs_iterate_dir): Set mtime.
15947 (grub_sfs_dir): Likewise.
15948 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
15949 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
15950 (grub_xfs_inode): New fields atime, mtime, ctime.
15951 (grub_xfs_dir): Set mtime.
15952 * include/grub/datetime.h (grub_datetime2unixtime): New function.
15953 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
15954 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
15955
15956 Support UDF symlinks.
15957
15958 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
15959 (grub_ufs_read_symlink): New function. All users updated.
15960
15961 Check amiga partmap checksum.
15962
15963 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
15964 (grub_amiga_partition): Likewise.
15965 (amiga_partition_map_checksum): New function.
15966 (amiga_partition_map_iterate): Check checksum.
15967
5470225d
VS
159682011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15969
15970 ROMFS support.
15971
15972 * Makefile.util.def (libgrubmods.a): Add romfs.
15973 * grub-core/Makefile.core.def (romfs): New module.
15974 * grub-core/fs/romfs.c: New file.
15975
d4680a35
VS
159762011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15977
15978 Squashfs v4 support.
15979
15980 * Makefile.util.def (libgrubmods.a): Add squash4.
15981 * grub-core/Makefile.core.def (squash4): New module.
15982 * grub-core/fs/squash4.c: New file.
15983 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
15984 disk_input_start, disk_input.
15985 (get_byte): Handle disk_input.
15986 (grub_zlib_disk_read): New function.
15987 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
15988
bcb18e74
FZ
159892011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
159902011-05-15 Feiran Zheng <famcool@gmail.com>
15991
15992 * Makefile.util.def (libgrubmods.a): Add minix3.
15993 * grub-core/Makefile.core.def (minix3): New module.
15994 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
15995 (GRUB_MINIX_BSIZE): Removed.
15996 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
15997 (grub_minix_ino_t): New type.
15998 (grub_minix_le_to_cpu_ino): New macro.
15999 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
16000 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
16001 (grub_minix_data): New field block_size.
16002 (grub_minix_read_file): Handle 64-bit correctly.
16003 * grub-core/fs/minix3.c: New file.
16004
32297d5f
TG
160052011-05-15 Tristan Gingold <gingold@free.fr>
160062011-05-15 Robert Millan <rmh.grub@aybabtu.com>
160072011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16008
16009 IA64 support.
16010
16011 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
16012 * configure.ac: Add ia64-efi target.
16013 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
16014 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
16015 * gentpl.py: Add ia64_efi platform.
16016 Rename x86_efi to efi and Add ia64-efi. All users updated.
16017 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
16018 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
16019 Remove kern/generic/rtc_get_time_ms.c on EFI.
16020 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
16021 kern/ia64/dl_helper.c on ia64-efi.
16022 Add kern/emu/cache.c on emu.
16023 (linux): Use on loader/ia64/efi/linux.c on ia64.
16024 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
16025 whether symbol is a function.
16026 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
16027 (grub_symbol): New field 'isfunc'.
16028 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
16029 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
16030 (grub_dl_load_segments): Place all sections into the same region.
16031 [__ia64__]: Create trampolines and got.
16032 [GRUB_MACHINE_EMU]: Call mprotect.
16033 (grub_dl_resolve_symbols): Resolve symbol type as well.
16034 [__ia64__]: Create function descriptors.
16035 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
16036 (grub_rtc_get_time_ms): ... this. Expressions simplified.
16037 (grub_get_rtc): New function.
16038 * grub-core/kern/emu/cache.c [__ia64__]: New file.
16039 * grub-core/kern/emu/cache.S: Renamed to ...
16040 * grub-core/kern/emu/cache_s.S: ... this.
16041 [__ia64__]: Add a nop.
16042 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
16043 [__ia64__]: New function.
16044 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
16045 * grub-core/kern/ia64/dl.c: New file.
16046 * grub-core/kern/ia64/dl_helper.c: Likewise.
16047 * grub-core/kern/ia64/efi/init.c: New file.
16048 * grub-core/kern/ia64/efi/startup.S: Likewise.
16049 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
16050 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
16051 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
16052 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
16053 * grub-core/loader/ia64/efi/linux.c: New file.
16054 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
16055 (GRUB_MOD_DEP): Likewise.
16056 (grub_dl) [__ia64__]: New fields got and tramp.
16057 (grub_dl): New field 'base'.
16058 (grub_dl_register_symbol): New argument isfunc. All users updated.
16059 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
16060 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
16061 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
16062 (grub_ia64_dl_get_tramp_got_size): New proto.
16063 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
16064 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
16065 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
16066 * include/grub/efi/api.h: Skip call wrappers on ia64.
16067 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
16068 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
16069 * include/grub/elf.h (ELF_ST_INFO): New definition.
16070 * include/grub/ia64/efi/kernel.h: New file.
16071 * include/grub/ia64/efi/memory.h: Likewise.
16072 * include/grub/ia64/efi/time.h: Likewise.
16073 * include/grub/ia64/kernel.h: Likewise.
16074 * include/grub/ia64/setjmp.h: Likewise (from glibc).
16075 * include/grub/ia64/time.h: New file.
16076 * include/grub/ia64/types.h: Likewise.
16077 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
16078 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
16079 New protos.
16080 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
16081 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16082 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
16083 * util/grub-mkimage.c (image_target_desc): New field pe_target.
16084 All users updated.
16085 (EFI64_HEADER_SIZE): New definition. All users updated.
16086 (image_targets): Add ia64-efi.
16087 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
16088 jumpers_addr. All users updated.
16089 Create function descriptors.
16090 (count_funcs): New function.
16091 (unaligned_uint32): New struct.
16092 (MASK20): New definition.
16093 (MASK19): Likewise.
16094 (MASKF21): Likewise.
16095 (add_value_to_slot_20b): New function.
16096 (add_value_to_slot_21_real): Likewise.
16097 (add_value_to_slot_21): Likewise.
16098 (ia64_kernel_trampoline): New struct.
16099 (nopm): New variable.
16100 (jump): Likewise.
16101 (make_trampoline): New function.
16102 (relocate_addresses): Handle ia64.
16103 (make_reloc_section): Likewise.
16104 (load_image): Likewise.
16105
983b414d
VS
161062011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16107
16108 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
16109 warning. Move variables before code while on it.
16110
5d063cdc
VS
161112011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16112
16113 Fuloong support.
16114
16115 * configure.ac: Rename yeeloong platform to loongson. All users updated.
16116 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
16117 * grub-core/boot/mips/loongson/fuloong.S: New file.
16118 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
16119 Explicitly init CS5536.
16120 [FULOONG]: Don't use serial until CS5536 is available.
16121 Set GPIO based on dumps.
16122 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
16123 [FULOONG]: Handle GPIO and memory controller differences.
16124 Parse machine type in $a2.
16125 * grub-core/boot/mips/startup_raw.S: Determine and save the
16126 architecture.
16127 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
16128 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
16129 init on architecture type.
16130 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16131 SIS315E. Don't init at_keyboard on fuloong.
16132 (grub_halt): Support Fuloong.
16133 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
16134 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
16135 (loongson_machtypes): New array.
16136 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
16137 type.
16138 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
16139 config. All users updated. Handle CS5536 serial.
16140 * grub-core/term/serial.c (grub_serial_register): Conditionalise
16141 default port on machine type. Register serial as inactive.
16142 * grub-core/video/sis315pro.c: New file.
16143 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
16144 definition.
16145 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
16146 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
16147 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
16148 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
16149 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
16150 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
16151 to ...
16152 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
16153 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
16154 definition.
16155 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
16156 (grub_arch_machine): New extern var.
16157 * include/grub/mips/loongson/serial.h
16158 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
16159 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
16160 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
16161 (GRUB_MACHINE_SERIAL_PORT0): ... this.
16162 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
16163 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
16164 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
16165 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
16166 * include/grub/term.h (grub_term_register_input_inactive): New inline
16167 function.
16168 (grub_term_register_output_inactive): Likewise.
16169 * include/grub/video.h (grub_video_driver_id): New value
16170 GRUB_VIDEO_DRIVER_SIS315PRO.
16171 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
16172 New field "names". All users updated.
16173 New field value IMAGE_FULOONG_FLASH.
16174 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
16175
6ada82d1
JU
161762011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
16177
16178 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
16179 and add some clarification.
16180
90c571a4
VS
161812011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16182
16183 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
16184 platforms if kernel is compressed.
16185
de04eecf
VS
161862011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16187
16188 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
16189 unused modules since currently referrence counter isn't reliable and
16190 there isn't much memory to recover there anyway.
16191
57688121
VS
161922011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16193
16194 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
16195 rather than resetting it to allow modules to reference themselves
16196 in init.
16197
3d2c7e35
VS
161982011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16199
16200 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
16201 counter on dependencies since grub_dl_unref already handles this.
16202
b25db218
VS
162032011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16204
16205 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
16206 on error if not already done.
16207
25a45338
VS
162082011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16209
16210 Fix few potential memory misusage.
16211
16212 * grub-core/font/font.c (load_font_index): Don't free char_index to
16213 avoid double free.
b25db218
VS
16214 (grub_font_load): Zero-fill font at alloc for safety.
16215 Close file on error.
16216 (free_font): Free bmp_idx.
25a45338 16217
0cac83df
VS
162182011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16219
16220 * docs/grub.texi (Installation): Fix several outdated claims.
16221
2217a143
VS
162222011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16223
16224 Handle module_license on windows.
16225
16226 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
16227 sections shifted.
16228 (insert_string): Make argument const char * instead of char *.
16229 (write_section_data): Handle long section names.
16230 Handle module_license.
16231
d4de6b01
VS
162322011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16233
16234 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
16235 handle class-free menuentries.
16236 (grub_normal_add_menu_entry): Add a check to be sure.
16237
4c2a3b43
VS
162382011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16239
16240 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
16241 PgUp and PgDown.
16242
85c6210f
VS
162432011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16244
16245 * configure.ac: Bump version to 1.99.
16246
36084912
VS
162472011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16248
16249 Give ATA device a bit more time on first try in order to allow disks
16250 to spin up.
16251
16252 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
16253 if dev->present is 1. Reset dev->present on failure.
16254 (grub_ata_device_initialize): Set dev->present to 1.
16255 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
16256 (grub_ata_device): New member 'present'.
16257
bda0e219
VS
162582011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16259
16260 * util/grub-mkimage.c (generate_image): Update hash.
16261
19e1c41b
VS
162622011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16263
16264 Flush caches on DMA memory.
16265
16266 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
16267 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
16268 (grub_dma_free): Likewise.
16269 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
16270
91bbcc0c
VS
162712011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16272
16273 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
16274 to avoid asm treating ld and sd as macros.
16275
60ddfad3
VS
162762011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16277
16278 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
16279 decompressor.
16280
a298aa04
VS
162812011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16282
16283 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
16284 grub_decompress_core since later would fail if grub_decompress_core
16285 is too far.
16286
9b44feca
VS
162872011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16288
16289 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
16290 R_MIPS_JALR since it's used by newer compiler.
16291
56dbe7b4
VS
162922011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
16293
16294 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
16295
52856af2
VS
162962011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16297
16298 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
16299 file_path to 0 for surety.
16300 (grub_chainloader_boot): Set exit_data to NULL.
16301 Unset the loader once done.
16302 (grub_cmd_chainloader): Fix confusing error message if file is empty.
16303
9c9bfc6d
VS
163042011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16305
16306 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
16307 unknown key into a dprintf.
16308
dd94a3df
VS
163092011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16310
16311 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
16312 on first non-existant partition.
16313
fa68d99c
VS
163142011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16315
16316 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
16317 openning fails.
16318 Reported by: Mark Korenberg.
16319
157effb7
VS
163202011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16321
16322 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
16323 overflow.
16324
ea75312f
VS
163252011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16326
16327 * util/grub-mkimage.c (main): Explicitely flush and sync the output
16328 before closing to ensure that it will be readable by grub-setup.
16329
072b5d31
VS
163302011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16331
16332 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
16333 (devpath_1): Use MAKE_PIWG_PATH.
16334 (devpath_2): Likewise.
16335 (devpath_3): Likewise.
16336 (devpath_4): Likewise.
16337 (devpath_5): Likewise.
16338 (devpath_6): Likewise.
16339
16340 The appleldr.mod was checked that to be binary identical to previous
16341 version.
16342
7fae0051
Z
163432011-05-05 Zach <mikezackles>
16344
16345 Support 2010 Macbooks.
16346
16347 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
16348 (devs): Add devpath_6.
16349
7c515bee
VS
163502011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16351
16352 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
16353 /dev/random. /dev/urandom is good enough for our purposes (salting).
16354
ed660bd8
VS
163552011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16356
16357 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
16358
ee5614b7
VS
163592011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16360
16361 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
16362 hexadecimal.
16363
664889a6
VS
163642011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16365
16366 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
16367 and not 0 on failure.
16368
bd405bbc
CW
163692011-05-03 Colin Watson <cjwatson@ubuntu.com>
16370
16371 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
16372 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
16373 disk; otherwise grub_fs_probe will not fall back to the next
16374 filesystem.
16375 (grub_pxefs_open): Likewise, for consistency.
16376 Reported and tested by: Ezekiel Grave.
16377
4ebff753
CW
163782011-05-03 Colin Watson <cjwatson@ubuntu.com>
16379
16380 * tests/partmap_test.in: Don't hardcode path to parted.
16381 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
16382
8f942553
CW
163832011-05-01 Colin Watson <cjwatson@ubuntu.com>
16384
16385 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
16386 of `ls' to find out which devices are available.
16387
3c62402d
VS
163882011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16389
16390 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
16391 than source address for efi mmap buffer.
16392
723f63f2
VS
163932011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16394
16395 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
16396 wrong action on non-detecting the magic.
16397
68797f92
VS
163982011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16399
16400 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
16401 already supplied by another part of the module (fixes compilation on
16402 FreeBSD).
16403
6be8715d
VS
164042011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16405
16406 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
16407 match the one used by mdadm.
16408
e91dba5b
CW
164092011-04-21 Colin Watson <cjwatson@ubuntu.com>
16410
16411 * po/README: Add instructions for creating po/LINGUAS.
16412
c85140b3
CW
164132011-04-21 Colin Watson <cjwatson@ubuntu.com>
16414
16415 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
16416 #551428.
16417
16418 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
16419 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
16420 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
16421 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
16422 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
16423 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
16424 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
16425 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
16426 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
16427 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
16428 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
16429 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
16430 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
16431 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
16432 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
16433 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
16434 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
16435 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
16436 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
16437 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
16438 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
16439 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
16440
92051871
CW
164412011-04-21 Colin Watson <cjwatson@ubuntu.com>
16442
16443 * grub-core/kern/emu/getroot.c
16444 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
16445 test that was incorrectly reintroduced in r3214.
16446 Reported by: Ian Dall. Fixes Savannah bug #33133.
16447
b13f79a4
CW
164482011-04-21 Colin Watson <cjwatson@ubuntu.com>
16449
16450 Fix stack pointer handling in 16-bit relocator.
16451
16452 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
16453 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
16454 Fixes Ubuntu bug #683904.
16455
9b710a88
VS
164562011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16457
16458 * configure.ac: Bump version to 1.99~rc2.
16459
d97e7b59
VS
164602011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16461
16462 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
16463 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
16464 * grub-core/lib/x86_64/setjmp.S: Likewise.
16465 * grub-core/lib/mips/setjmp.S: Likewise.
16466 * grub-core/lib/powerpc/setjmp.S: Likewise.
16467 * grub-core/lib/sparc64/setjmp.S: Likewise.
16468
0624551c
VS
164692011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16470
16471 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
16472 * grub-core/lib/efi/datetime.c: Likewise.
16473
e8f28d4c
VS
164742011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16475
16476 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
16477 New function.
16478 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
16479 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
16480 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
16481
bba79a15
VS
164822011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16483
16484 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
16485 bitmap.
16486 (grub_gfxterm_term_init): Likewise.
16487
abc474ef
VS
164882011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16489
16490 Take into account the decorations the computing menu entry width.
16491
16492 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
16493 (grub_gfxmenu_create_box): Register get_border_width.
16494 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
16495 if available.
16496 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
16497 get_border_width.
16498
e74b3947
EP
164992011-04-18 Endres Puschner <code@e7p.de>
16500
16501 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
16502 Don't skip first class.
16503
34faa595
VS
165042011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16505
16506 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
16507 chunks.
16508 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
16509
93a777e3
VS
165102011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16511
16512 Complete 64-bit division support.
16513
16514 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
16515 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
16516 * include/grub/misc.h (grub_divmod64): Rename to ...
16517 (grub_divmod64_full): ... this.
16518 (grub_divmod64): New inline function.
16519
a5102d94
VS
165202011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16521
16522 * util/grub-mkimage.c (generate_image): Add forgotten comma.
16523
f3fb7b36
VS
165242011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16525
16526 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
16527 performing the necessary test.
16528
9ac718b0
VS
165292011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16530
16531 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
16532 (kfreebsd.elf): Likewise.
16533 (pc-chainloader.elf): Likewise.
16534 (ntldr.elf): Likewise.
16535
50d2cc5a
VS
165362011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16537
16538 Identify RAID by its UUID rather than (guessed) name.
16539
16540 * grub-core/disk/raid.c (ascii2hex): New function.
16541 (grub_raid_open): Accept mduuid/%s specification.
16542 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
16543 (get_mdadm_uuid): ... this.
16544 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
16545
e03f7bea
VS
165462011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
16547
16548 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
16549 to negative size.
16550
e74c3112
CW
165512011-04-13 Colin Watson <cjwatson@ubuntu.com>
16552
16553 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
16554 btrfs subvolume.
16555 * util/grub.d/20_linux_xen.in: Likewise.
16556
78fa584f
CW
165572011-04-13 Colin Watson <cjwatson@ubuntu.com>
16558
16559 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
16560 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
16561
16562 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16563 Build a list of relevant visible mounts using the mnt_id and
16564 parent_mnt_id fields, and then scan that list at the end.
16565
9d5f8162
CW
165662011-04-12 Colin Watson <cjwatson@ubuntu.com>
16567
16568 * docs/grub.texi (normal): New section.
16569 (normal_exit): New section.
16570 (Embedded configuration): Add reference to normal.
16571 (GRUB only offers a rescue shell): Likewise.
16572 * docs/grub-dev.texi (Error Handling): Fix typo.
16573
09a9d66f
CW
165742011-04-12 Colin Watson <cjwatson@ubuntu.com>
16575
16576 * NEWS: Drop obsolete entry about probe-only btrfs support.
16577
0c676933
CW
165782011-04-12 Colin Watson <cjwatson@ubuntu.com>
16579
16580 * util/import_gcry.py: Fix typo.
16581
ec9f5e0d
VS
165822011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16583
16584 * NEWS: Add btrfs support.
16585
fe6b2cba
VS
165862011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
165872011-04-11 Colin Watson <cjwatson@ubuntu.com>
16588
16589 BtrFS support. Written by me (Vladimir) with important bugfixes and
16590 even more important testing by Colin.
16591
16592 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
16593 * grub-core/Makefile.core.def (btrfs): Add crc.c.
16594 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
16595 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
16596 mem_input_off and mem_input. All users updated to accept in-RAM input.
16597 (gzio_seek): New function.
16598 (test_zlib_header): Likewise.
16599 (grub_gzio_read): Likewise.
16600 (grub_zlib_decompress): Likewise.
16601 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
16602 Accept partial and non-virtual mounts.
16603 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
16604 avoid receiving /dev/dm-X as device.
16605 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
16606 Handle bind and partial mounts.
16607 * grub-core/lib/crc.c: New file.
16608 * include/grub/deflate.h: Likewise.
16609 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
16610 proto.
16611 * include/grub/lib/crc.h: New file.
16612
e745cf0c
VS
166132011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16614
16615 Implement automatic module license checking according to new GNU
16616 guidelines.
16617
16618 * grub-core/kern/dl.c (grub_dl_check_license): New function.
16619 (grub_dl_load_core): Use grub_dl_check_license.
16620 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
16621 (GRUB_MOD_LICENSE): Likewise.
16622 (GRUB_MOD_DUAL_LICENSE): Likewise.
16623 All modules updated.
16624
2a9bc016
CW
166252011-04-11 Colin Watson <cjwatson@ubuntu.com>
16626
16627 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
16628 reserved_first_sector to 1. btrfs reserves plenty of space for boot
16629 loaders.
16630 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
16631
8a3bc88e
VS
166322011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16633
16634 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
16635
af869a4a
VS
166362011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16637
16638 * util/grub-fstest.c (read_file): Report GRUB error if file opening
16639 failed.
16640
9ee8d94f
VS
166412011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 * grub-core/kern/file.c (grub_file_open): Don't take into account the
16644 parenthesis in the middle of the filename.
16645
b01abe3e
VS
166462011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16647
16648 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
16649 rather than trying to put initrd way too high.
16650 Reported by: Ryan Lortie <desrt@desrt.ca>
16651
335bda1e
VS
166522011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16653
16654 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
16655 improperly removed string.
16656
5ca1a64d
VS
166572011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16658
16659 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
16660 is_disk.
16661 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
16662 (open_device) Likewise.
16663 (grub_util_biosdisk_close): Likewise.
d8ce9995 16664 Reported by: Mark Korenberg.
5ca1a64d 16665
cbac5b1e
AK
166662011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
16667
16668 * util/grub-mkconfig_lib.in: Add missing quotes.
16669
088cdb65
CW
166702011-04-10 Colin Watson <cjwatson@ubuntu.com>
16671
16672 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
16673 is NULL.
16674
8b8a81fa
VS
166752011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16676
16677 Dynamically count the number of lines for the lower banner.
16678
16679 * grub-core/normal/menu_entry.c (per_term_screen): New member
16680 num_entries.
16681 (print_down): Use num_entries.
16682 (update_screen): Likewise.
16683 (grub_menu_entry_run): Set num_entries.
16684 * grub-core/normal/menu_text.c (menu_viewer_data): New member
16685 num_entries.
16686 (grub_print_message_indented): Move real part to ...
16687 (grub_print_message_indented_real): ... here. Additional argument
16688 dry_run.
16689 (draw_border): Additional argument num_entries.
16690 (print_message): Additional argument dry_run.
16691 (print_entries): Receive menu viewer data.
16692 (grub_menu_init_page): New argment num_entries.
16693 (menu_text_set_chosen_entry): Use num_entries.
16694 (grub_menu_try_text): Likewise.
16695 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
16696 All users updated.
16697 (grub_ucs4_count_lines): New function.
16698 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
16699 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
16700 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
16701 (grub_term_border_height): Likewise.
16702 (grub_term_num_entries): Likewise.
16703
277f955b
VS
167042011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
16707 Remove now unused string.
16708
536ce85a
CW
167092011-04-09 Colin Watson <cjwatson@ubuntu.com>
16710
16711 * docs/grub-dev.texi (Finding your way around): Update for 1.99
16712 build system.
16713 (Getting started): GRUB is developed in Bazaar now, not Subversion.
16714
16715 (Comment): Fix typo.
16716 (Getting started): General copy-editing.
16717 (Typical Development Experience): Likewise.
16718 (Error Handling): Likewise.
16719 (Video API): Likewise.
16720
2cf09e32
CW
167212011-04-09 Colin Watson <cjwatson@ubuntu.com>
16722
16723 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
16724 throughout.
16725
1ec652f4
VS
167262011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16727
16728 * util/grub-mkimage.c (main): Handle special naming of yeeloong
16729 directory.
16730
2c583728
CW
167312011-04-08 Colin Watson <cjwatson@ubuntu.com>
16732
16733 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
16734 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
16735 "development".
16736
d7a565e9
VS
167372011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16738
16739 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
16740 grub_strcpy since the lines aren't necessarily 0-terminated.
16741
7c2e4909
VS
167422011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16743
16744 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
16745 root on legacy.
16746
34c09785
VS
167472011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16748
16749 * grub-core/commands/probe.c (options): Argument to set isn't optional.
16750 (GRUB_MOD_INIT): DEVICE isn't optional.
16751
6a6f8058
VS
167522011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16753
16754 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
16755 word on new line if it's too long anyway. Fixes a hang.
16756
2e335e90
VS
167572011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16758
16759 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
16760 const.
16761 * util/grub-setup.c (main): Reuse md device name if available.
16762 * util/raid.c (grub_util_raid_getmembers): Receive device name and
16763 not GRUB name as argument.
16764 Based on patch by: Florian Wagner <fwagner>.
16765
10a7a867
VS
167662011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16767
16768 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16769 Place mbi on low memory for better compatibility.
16770
7a3d6cd9
VS
167712011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16772
16773 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
16774
18dd6b47
VS
167752011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
167762011-04-08 Colin Watson <cjwatson@ubuntu.com>
16777
16778 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 16779 * conf/Makefile.common: Likewise.
18dd6b47 16780
3c0e3f14
VS
167812011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16782
f7148863
VS
16783 * grub-core/normal/menu.c: Add missing include.
16784
167852011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16786
16787 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 16788
6d1fa41f
MZ
167892011-04-08 Martin Zuther <mzuther@mzuther.de>
16790
16791 * util/grub-mkconfig.in: Ignore emacsen backup.
16792
478182a8
VS
167932011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16794
16795 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
16796 on open.
16797 (grub_util_biosdisk_close): Likewise.
16798
72a89a54
VS
167992011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16800
16801 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
16802 const attribute and use grub_isdigit.
16803
b5ebecfa
A
168042011-04-06 Andrey <dev_null@ukr.net>
16805
16806 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
16807 gcc warning.
16808
7755f66e
VS
168092011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16810
16811 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
16812 useful grub_dprintf's.
16813
461121ff
VS
168142011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16815
16816 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
16817
2a961775
VS
168182011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16819
16820 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
16821
adf594cc
VS
168222011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16823
16824 Output errors if theme loading failed.
16825
16826 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
16827 grub_gfxterm_fullscreen on error paths to ...
16828 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
16829 theme loading error.
16830
665900a3
VS
168312011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16832
16833 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
16834 space for older compilers.
16835 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16836
a562b479
VS
168372011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16838
16839 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
16840 and report them as not RAID members since they are useless for GRUB.
16841 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16842
850e9373
VS
168432011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16844
16845 Increase LVM implementation robustness in order not to crash on
16846 configurations like pvmove. Previously code assumed that in some places
16847 only lvs or only pvs are used whereas it seems that they are used
16848 interchangeably.
16849
16850 * grub-core/disk/lvm.c (read_node): New function.
16851 (read_lv): Use read_node.
16852 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
16853 Match volumes only at the end when all lvs are found. Take both
16854 pvs (first) and lvs (second) into account.
16855 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
16856 mirror_* into node_*. All users updated.
16857 (grub_lvm_stripe): Merge this ...
16858 (grub_lvm_mirror): ... and this ...
16859 (grub_lvm_node): ... into this. All users updated.
16860
6f332153
VS
168612011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16862
16863 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
16864 of function to allow further scanning for LVMs.
16865
829ea451
VS
168662011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16867
16868 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
16869 on failed seek as it breaks open fd reusage.
16870
09ceb9a5
VS
168712011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16872
16873 * util/grub-install.in: Add a recommendation to use --recheck before
16874 reporting bugs.
16875
67e11623
VS
168762011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16877
16878 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
16879 are obtained.
16880
caee5efd
VS
168812011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16882
16883 GRUB developper manual based on existing Internals section and
16884 contributions by the various authors with active copyright assignment.
16885
16886 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
16887 * docs/font_char_metrics.png: New file.
16888 * docs/font_char_metrics.txt: Likewise.
16889 * docs/grub-dev.texi: Likewise.
16890 * docs/grub.texi (Internals): Move from here ...
16891 * docs/grub-dev.texi: ... here.
16892
2cccc747
CW
168932011-04-01 Colin Watson <cjwatson@ubuntu.com>
16894
16895 Store the loopback device as data on loopback grub_disk structures,
16896 rather than the file it points to. This fixes use of freed memory
16897 if an existing loopback device is replaced.
16898
16899 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
16900 disk->data, not dev->file.
16901 (grub_loopback_read): Adjust file assignment to match.
16902 Fixes Ubuntu bug #742967.
16903
186ae367
CW
169042011-04-01 Colin Watson <cjwatson@ubuntu.com>
16905
16906 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
16907 when replacing an existing device.
16908
cfed2ad0
VS
169092011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
16910
16911 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
16912 memory corruptions.
16913
16914 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
16915 unsigned.
16916 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
16917 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
16918 (grub_jfs_read_inode): Likewise.
16919 (grub_jfs_opendir): Likewise. Remove now useless casts.
16920 (grub_jfs_getent): Likewise.
16921 Make ino a grub_uint32_t rather than int.
16922 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
16923 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
16924 division and module with bit operations.
16925 (grub_jfs_find_file): Make ino a grub_uint32_t.
16926 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
16927
05d2ed32
CW
169282011-04-01 Colin Watson <cjwatson@ubuntu.com>
16929
16930 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
16931 warning. (This was in fact always initialised before use, but GCC
16932 wasn't smart enough to prove that.)
16933 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
16934
91dc6073
VS
169352011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
16936
16937 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
16938 stack alignment.
16939 (efi_wrap_1): Likewise.
16940 (efi_wrap_2): Likewise.
16941 (efi_wrap_3): Likewise.
16942 (efi_wrap_4): Likewise.
16943 (efi_wrap_5): Likewise.
16944 (efi_wrap_6): Likewise.
16945 (efi_wrap_10): Likewise.
16946 Based on information by: Red Hat/Peter Jones.
16947
a8afc1d1
CW
169482011-03-31 Colin Watson <cjwatson@ubuntu.com>
16949
16950 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
16951 set-but-not-used variable.
16952
a826cc7d
CW
169532011-03-31 Colin Watson <cjwatson@ubuntu.com>
16954
16955 * docs/grub.texi (Simple configuration): Be more explicit about
16956 GRUB_DEFAULT, and add an example.
16957 Reported by: Leslie Rhorer.
16958
875b67ba
CW
169592011-03-30 Colin Watson <cjwatson@ubuntu.com>
16960
16961 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
16962 shell".
16963
fd7cd914
AS
169642011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
16965
16966 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
16967 * util/grub.d/20_linux_xen.in: Likewise.
16968
090b1b6a
VS
169692011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16970
16971 * util/grub.d/10_linux.in: Try alternative config filenames where
16972 we parse config file.
16973 * util/grub.d/20_linux_xen.in: Likewise.
16974
baad885c
AS
169752011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
16976
16977 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
16978 * util/grub.d/20_linux_xen.in: Likewise.
16979
241e41f5
VS
169802011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16981
16982 * grub-core/disk/raid.c (insert_array): Add few potentially
16983 useful grub_util_info.
16984 (grub_raid_register): Likewise.
16985
56445fb2
VS
169862011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16987
16988 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
16989 Preserve partition number in mdadm code path.
16990
c871b1c6
VS
169912011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16992
16993 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
16994 few potentially useful grub_util_info.
16995
5e631b4f
CW
169962011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16997
16998 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
16999
2d5d0333
CW
170002011-03-30 Colin Watson <cjwatson@ubuntu.com>
17001
17002 * docs/grub.texi (default): Use @example rather than nested
17003 itemized lists to avoid breaking gendocs.
17004
3d7ed04e
CW
170052011-03-30 Colin Watson <cjwatson@ubuntu.com>
17006
17007 * docs/grub.texi (Future): Update.
17008
abf04200 170092011-03-30 Colin Watson <cjwatson@ubuntu.com>
17010
17011 * docs/grub.texi (Environment): New chapter.
17012 (Changes from GRUB Legacy): Link to "Environment block" section for
17013 details of limitations.
17014 (Simple configuration): Likewise. Link to documentation of gfxmode
17015 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
17016 respectively.
17017 (Shell-like scripting): Note that normal variables are stored in the
17018 environment.
17019 (gettext): Link to documentation of lang and locale_dir.
17020 (list_env): New section.
17021 (load_env): New section.
17022 (save_env): New section.
17023
17024 (Reporting bugs): Fix typo.
17025
e1ad0edd
VS
170262011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17027
17028 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
17029 the example.
17030
5d803174
VS
170312011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17032
17033 * grub-core/term/at_keyboard.c (set_scancodes)
17034 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
17035
2a2da1d0
CW
170362011-03-30 Colin Watson <cjwatson@ubuntu.com>
17037
17038 * docs/grub.texi (Menu-specific commands): Remove some semantics
17039 that were true in GRUB Legacy but not in GRUB 2.
17040 (submenu): New section.
17041 (false): New section.
17042 (read): New section.
17043 (true): New section.
17044
a7527639
CW
170452011-03-30 Colin Watson <cjwatson@ubuntu.com>
17046
17047 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
17048
170492011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
17050
17051 * docs/grub.texi (Simple configuration): Explain some of the
17052 current limitations of grub-mkconfig.
8a748df2 17053 Reported by: Leslie Rhorer.
e30af029 17054
fc858482
VS
170552011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17056
17057 Old macs search for boot.efi rather than for bootia32.efi.
17058
17059 * util/grub-install.in: Copy bootia32.efi to boot.efi.
17060 * util/grub-mkrescue.in: Likewise.
17061 Suggested by: Peter Jones.
17062
e1eb511d
VS
170632011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17064
17065 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
17066
70e75364
VS
170672011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17068
17069 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
17070 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
17071 (grub_lvm_mirror): New struct.
17072 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
17073 (grub_lvm_iterate): Iterate only visible volumes.
17074 (grub_lvm_read): Factor out to ..
17075 (read_lv): ... this. Support mirrors.
17076 (grub_lvm_read): New wrapper function.
17077 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
17078 stripped or mirrored.
17079
fc18f6a3
VS
170802011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17081
17082 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
17083
5c650f4c
CW
170842011-03-29 Colin Watson <cjwatson@ubuntu.com>
17085
17086 * docs/grub.texi (loopback): New section.
17087
61d7156b
CW
170882011-03-29 Colin Watson <cjwatson@ubuntu.com>
17089
17090 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
17091 removed -p option.
17092
994b8264
CW
170932011-03-29 Colin Watson <cjwatson@ubuntu.com>
17094
17095 * docs/grub.texi (BIOS installation): New section, partly based on
17096 previous text in other sections.
17097 (Installing GRUB using grub-install): Replace BIOS discussion with a
17098 cross-reference.
17099 (Images): Likewise.
17100
9e4d19e0
VS
171012011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17102
17103 * grub-core/kern/emu/hostdisk.c (find_partition_start)
17104 [HAVE_DIOCGDINFO]: Add safety checks.
17105
a307c0b2
VS
171062011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17107
17108 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
17109 per default compiled in kernel and prior to 8.0 isn't shipped at all.
17110
b4db4f39
CW
171112011-03-29 Colin Watson <cjwatson@ubuntu.com>
17112
17113 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
17114 real_sb->size is zero (e.g. RAID-0), get the disk size from
17115 real_sb->data_size instead.
17116 Fixes Ubuntu bug #743136.
17117
35e5f84c
VS
171182011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17119
17120 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
17121 printf clauses for printing size and start.
17122
d2e29d81
VS
171232011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17124
17125 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
17126 Reported and tested by: Timothy Nikkel.
17127
ed5587af
VS
171282011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17129
17130 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
17131 (dirty_region_add_real): ... this.
17132 (dirty_region_add): Don't discard margin refresh when performing
17133 scheduled repaint.
17134
a1dc717c
VS
171352011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17136
17137 * grub-core/lib/relocator.c (allocate_regstart)
17138 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
17139 terminals are capabple of malloc-free operation.
17140 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17141 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17142
9f3677d3
VS
171432011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
17144
17145 * util/grub-setup.c: Copy the partition table zone if floppy support
17146 is disabled, even if no partition table is found.
17147
17148 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
17149 during POST if an invalid partition table is contained in the PBR
17150 of the active partition when GRUB is installed to a partition.
17151
24148725
CW
171522011-03-28 Colin Watson <cjwatson@debian.org>
17153
17154 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
17155 comment.
17156
f329eda7
CW
171572011-03-28 Colin Watson <cjwatson@debian.org>
17158
17159 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
17160 to be specific about what kind of RAID device we're scanning for.
17161
c482ad98
SG
171622011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
17163
17164 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
17165 return freed string.
17166
5ee04984
VS
171672011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17168
17169 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
17170
f4727da9
VS
171712011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17172
17173 Use libgeom on FreeBSD to detect partitions.
17174
17175 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
17176 (grub-mkrelpath): Likewise.
17177 (grub-script-check): Likewise.
17178 (grub-editenv): Likewise.
17179 (grub-mkpasswd-pbkdf2): Likewise.
17180 (grub-fstest): Likewise.
17181 (grub-mkfont): Likewise.
17182 (grub-mkdevicemap): Likewise.
17183 (grub-probe): Likewise.
17184 (grub-setup): Likewise.
17185 (grub-ofpathname): Likewise.
17186 (grub-mklayout): Likewise.
17187 (example_unit_test): Likewise.
17188 (grub-menulst2cfg): Likewise.
17189 * grub-core/Makefile.core.def (grub-emu): Likewise.
17190 (grub-emu-lite): Likewise.
17191 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
17192 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
17193 define HAVE_DIOCGDINFO.
17194 (follow_geom_up) [FreeBSD]: New function.
17195 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
17196 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
17197 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
17198 unconditionally of HAVE_DIOCGDINFO.
17199
82fe6c75
VS
172002011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17201
17202 Fix FreeBSD compilation problem.
17203
17204 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
17205 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
17206
4c6c9431
CW
172072011-03-24 Colin Watson <cjwatson@ubuntu.com>
17208
17209 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
17210 Switch back to page zero before loading a kernel, since some kernel
17211 drivers expect that.
17212 Thanks to: Felix Kuehling.
17213
c7064d94
VS
172142011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17215
17216 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
17217 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
17218 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
17219
3f71cded
VS
172202011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17221
17222 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
17223 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
17224
ef6de21a
VS
172252011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17226
17227 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
17228 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
17229 malloc is disabled.
17230
8bc66a2c
VS
172312011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17232
17233 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
17234 for modules headers when counting the needed allocation size.
17235
5657722c
VS
172362011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17237
17238 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
17239 if no ASCII character is found to prevent crash.
17240
41a85f55
AK
172412011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
17242
17243 * grub-core/video/bitmap.c (match_extension): Ignore case.
17244
59e1e5f1
VS
172452011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17246
17247 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
17248
bd4d051a
VS
172492011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17250
17251 * grub-core/script/parser.y: Declare "time" as valid argument.
17252
bae7fcc1
PJ
172532011-03-23 Peter Jones <pjones@redhat.com>
17254
17255 Fix incorrect assert failure reporting.
17256
17257 * grub-core/tests/example_functional_test.c (example_test): Add
17258 a failure comment.
17259 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
17260 (failure_start): ...this. Check that malloc succeeded.
17261 Don't call xvasprintf. Return failure struct.
17262 (failure_append_vtext): New function.
17263 (failure_append_text): Likewise.
17264 (add_failure): Likewise.
17265 (grub_test_assert_helper): Likewise.
17266 * include/grub/test.h (grub_test_assert_helper): New declaration.
17267 (grub_test_assert): Macro rewritten.
17268
537dc9be
VS
172692011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17270
17271 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
17272
fa3e01bf
VS
172732011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17274
17275 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
17276
b1d28404
VS
172772011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17278
17279 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
17280 into GRUB-style one.
17281
2e3e2e09
VS
172822011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17283
17284 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
17285 error and not grub_errno.
17286 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
17287
ed57e557
VS
172882011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17289
17290 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
17291 GRUB_USB_SPEED_NONE in case of failure and not the error code.
17292
d1611f01
VS
172932011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17294
17295 * grub-core/efiemu/i386/pc/cfgtables.c
17296 (grub_machine_efiemu_init_tables): Make declaration a prototype.
17297 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
17298 (grub_xnu_unlock): Likewise.
17299 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
17300
7d4e39d6
VS
173012011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17302
17303 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
17304 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
17305 * grub-core/commands/hashsum.c (aliases): Likewise.
17306 * grub-core/commands/setpci.c (pci_registers): Likewise.
17307 * grub-core/disk/usbms.c (attach_hook): Likewise.
17308 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
17309 (zio_checksum_table): Likewise.
17310 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
17311 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
17312 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
17313 * grub-core/lib/relocator.c (leftovers): Likewise.
17314 (extra_blocks): Likewise.
17315 * grub-core/loader/i386/bsd.c (relocator): Likewise.
17316 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
17317 (modules_last): Likewise.
17318 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
17319 (devices): Likewise.
17320 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
17321 (modules_last): Likewise.
17322 * grub-core/normal/auth.c (users): Likewise.
17323 * grub-core/normal/context.c (initial_menu): Likewise.
17324 (current_menu): Likewise.
17325 * grub-core/normal/crypto.c (crypto_specs): Likewise.
17326 * grub-core/term/serial.c (grub_serial_ports): Likewise.
17327 (grub_serial_terminfo_input_template): Likewise.
17328 (grub_serial_terminfo_output_template): Likewise.
17329 (grub_serial_terminfo_input): Likewise.
17330 (grub_serial_terminfo_output): Likewise.
17331 (registered): Likewise.
17332 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
17333
40fc4659
VS
173342011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17335
17336 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
17337 grub_video_mode_type_t.
17338 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
17339 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
17340 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
17341
2da48d28
VS
173422011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17343
17344 * util/grub-install.in: Correct the x86-64 name as x86_64.
17345
9b43bf39
CW
173462011-03-11 Colin Watson <cjwatson@ubuntu.com>
17347
17348 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
17349 initial chunk read from the kernel always includes GRUB's multiboot
17350 header, which is now outside the first sector.
17351
be1a7ce0
CW
173522011-03-09 Colin Watson <cjwatson@ubuntu.com>
17353
17354 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
17355 cached mmap_size, so that this works correctly when called multiple
17356 times.
17357 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
17358
83a3c48d
CW
173592011-03-09 Colin Watson <cjwatson@ubuntu.com>
17360
17361 * docs/grub.texi (Simple configuration): Tidy up formatting.
17362
57d75699
SJ
173632011-03-07 Szymon Janc <szymon@janc.net.pl>
17364
17365 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
17366 Set-but-not-used variable removed.
17367
028501a0
VS
173682011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17369
17370 Workaround yet another IEEE1275 bug.
17371
17372 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
17373 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
17374 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
17375 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
17376 is set.
17377 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17378 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
17379
d998657d
VS
173802011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17381
17382 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
17383 error.
17384
fee7cdd4
CW
173852011-02-11 Colin Watson <cjwatson@ubuntu.com>
17386
17387 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
17388 empty, since in that case we can only generate either nothing or a
17389 syntactically invalid configuration file.
17390 Reported by: Michal Suchanek. Fixes Debian bug #612898.
17391
97286eb5
CW
173922011-02-09 Colin Watson <cjwatson@ubuntu.com>
17393
17394 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
17395 (Making a GRUB bootable CD-ROM): Likewise.
17396 (Invoking grub-mkrescue): New section.
17397 Reported by: Yann Dirson. Fixes Debian bug #612585.
17398
22b28eb3
CW
173992011-02-09 Colin Watson <cjwatson@ubuntu.com>
17400
17401 * util/grub-install.in: Remove unnecessary brackets from tr
17402 arguments.
17403 * util/grub.d/10_hurd.in: Likewise.
17404 * util/grub.d/10_kfreebsd.in: Likewise.
17405 * util/grub.d/10_linux.in: Likewise.
17406 * util/grub.d/20_linux_xen.in: Likewise.
17407 Reported by: Jamie Heilman. Fixes Debian bug #612564.
17408
7e735e43
CW
174092011-02-08 Colin Watson <cjwatson@ubuntu.com>
17410
17411 * include/grub/file.h (not_easly_seekable): Rename to ...
17412 (not_easily_seekable): ... this. Update all users.
17413
800f1881
CW
174142011-01-28 Colin Watson <cjwatson@ubuntu.com>
17415
17416 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
17417 grub-mkrescue.
17418
3281d3d6
VS
174192011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
17420
17421 * util/grub-mkimage.c (generate_image): Refuse to create the images
17422 bigger than the actual flash (512K) in Loongson machines. 512K is also
17423 the biggest chip supported by them.
17424
3533413c
VS
174252011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17426
17427 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
17428
73ae4f4f
VS
174292011-01-22 Anthony DeRobertis <anthony@derobert.net>
17430
17431 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
17432 super_offset field.
17433
37f4f608
VS
174342011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17435
17436 * util/grub-install.in: Ignore install device on platforms
17437 where it doesn't make sense. Always use UUIDs except on pc, efi and
17438 sparc64.
17439 Reported by: Daniel Kahn Gillmor.
17440
03a4ccb5
VS
174412011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17442
17443 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
17444
ffc8f4d8
VS
174452011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17446
17447 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
17448 (iterate_real): Don't rely on partition being non-NULL.
17449
80f23be7
VS
174502011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17451
17452 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
17453 supported platforms. Put a compile time assert for this rather than
17454 generate a warning with 32-bit shift.
17455
5d4f4dd5
VS
174562011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17457
17458 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
17459 logical expression more readable.
17460
e489601a
VS
174612011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17462
17463 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
17464 even if some elements have a name.
17465 Reported by: Alexander GQ Gerasiov.
17466
96e0a6ea
CW
174672011-01-22 Colin Watson <cjwatson@ubuntu.com>
17468
17469 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
17470 path unreadable if `grub-probe -t abstraction' fails, for example if
17471 memberlist fails on an LVM volume group.
17472 Reported by: Darius Jahandarie.
17473
81431e2b
CW
174742011-01-22 Colin Watson <cjwatson@ubuntu.com>
17475
17476 * docs/grub.texi (Simple configuration): Document
17477 GRUB_PRELOAD_MODULES.
17478
5e79d66a
CW
174792011-01-17 Colin Watson <cjwatson@ubuntu.com>
17480
17481 * .bzrignore: Remove nonexistent grub-pbkdf2.
17482
646ada34
VS
174832011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
17484
17485 * configure.ac: Bump version to 1.99~rc1.
17486
04360337
VS
174872011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17488
17489 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
17490 for safety.
17491
46c9db88
VS
174922011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17493
17494 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
17495 module.
17496
174972011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
17498
17499 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
17500
4fbf1852
VS
175012011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17502
17503 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
17504 diskdevid.
17505
f1632d4d
VS
175062011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17507
17508 Fix compilation on cygwin.
17509
17510 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
17511 -R .drectve on cygwin.
17512 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
17513 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
17514 (COND_CYGWIN): New condition.
17515 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
17516 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
17517 not @TARGET_OBJ2ELF@.
17518 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
17519 type to determine whether aux is to be used.
17520
0b5e127b
VS
175212011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17522
17523 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
17524 realpath'ed device string.
17525 Handle floppy (somewhat).
17526 Issue error in unknown case rather than garbage.
17527 Reported by: Axel Beckert.
17528
173b71e9
VS
175292011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17530
17531 * util/grub.d/00_header.in (load_video): Handle the case when no video
17532 drivers available.
17533 Thanks to: Axel Beckert.
17534
f8f479db
VS
175352011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17536
17537 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
17538 variable. Fixes problem on big endian platforms.
17539
8fc0a245
VS
175402011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17541
17542 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
17543 It doesn't work well there.
17544
b8494fbe
VS
175452011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17546
17547 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
17548 warning.
17549 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
17550 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
17551 counter.
17552
b44a558c
VS
175532011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17554
17555 Use alias->path rather than buggy "canon".
17556
17557 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
17558 (ofdisk_hash_add): New argument curcan. All users updated.
17559
51fa856c
CW
175602011-01-11 Colin Watson <cjwatson@ubuntu.com>
17561
17562 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
17563
9da068a5
VS
175642011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17565
17566 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
17567 loadmask before doing any calculations. Use correct type for offset.
17568 (grub_linux_load64): Likewise.
17569
86205c94
CW
175702011-01-11 Colin Watson <cjwatson@ubuntu.com>
17571
17572 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
17573 with NULL.
17574 (console_grub_equivalences_unshift): Likewise.
17575 Reported by: Daniel Dehennin.
17576
4531a206
VS
175772011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17578
17579 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
17580 (set_env_limn_ro): Likewise.
17581 (GRUB_MOD_INIT): Likewise.
17582 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
17583 ARRAY_SIZE while on it.
17584 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
17585 * grub-core/normal/context.c (grub_env_export): Move from here ...
17586 * grub-core/kern/env.c (grub_env_export): ... here.
17587 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
17588 prefix.
17589 * grub-core/kern/main.c (grub_main): Export root and prefix.
17590 * include/grub/env.h (grub_env_export): Export.
17591 Reported by: Seth Goldberg.
17592
45146057
VS
175932011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17594
17595 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17596 Take into account space used by ELF sections and multiboot palette.
17597 Reported by: Grégoire Sutre.
17598
f093110b
VS
175992011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17600
17601 * BUGS: New file.
17602
3395fe52
VS
176032011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17604
17605 Pass more appropriate video id to Linux.
17606
17607 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
17608 grub_video_get_driver_id and variable gfxpayloadforcelfb to
17609 fill have_vga.
17610 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
17611 shift params->lfb_size.
17612 * include/grub/i386/linux.h: Make an enume out of have_vga values.
17613
c2fa6cbb
VS
176142011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17615
17616 * util/grub-menulst2cfg.c: Add missing include of misc.h.
17617
b3ff6ff0
VS
176182011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17619
17620 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
17621 separator and pass bootpath/devid even if only one of them is available.
17622 Reported by: Seth Goldberg.
17623
ae67942e
VS
176242011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17625
17626 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
17627 implementations bug on them.
17628
17629 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
17630 memory.
17631 (filter_memory_map): Likewise.
17632
d570097a
VS
176332011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17634
17635 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
17636 Reported by: nebuchadnezzar.
17637
a508e776
VS
176382011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17639
17640 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
17641 Reported by: nebuchadnezzar.
17642
dcb883b1
VS
176432011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17644
17645 Submenu default support.
17646
17647 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
17648 auto_boot. All users updated.
17649 Declared static.
17650 Handle chosen and default with submenus.
17651 (grub_menu_execute_with_fallback): Declared static.
17652 Don't notify failure if autobooted. Upper level does it.
17653 (menuentry_eq): New function.
17654 (get_entry_number): Use menuentry_eq.
17655 (show_menu): New parameter "autobooted". All users updated.
17656 (grub_show_menu): Likewise.
17657 * include/grub/normal.h (grub_show_menu): Likewise.
17658 * include/grub/menu.h (grub_menu_execute_entry): Removed.
17659 (grub_menu_execute_with_fallback): Likewise.
17660
6fef99b4
VS
176612011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17662
17663 * util/grub-mklayout.c (usage): Update help text.
17664
47a77af5
VS
176652011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17666
17667 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
17668
ce6bb3ee
VS
176692011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17670
17671 * util/grub-menulst2cfg.c (main): Trim the line.
17672
db87be2a
VS
176732011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17674
17675 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
17676 (grub_machine_init): Don't check amount of low memory as reportedly
17677 INT 12h can be broken and if low memory is too low we wouldn't have
17678 gotten into grub_machine_init anyway.
17679
c49849cc
VS
176802011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17681
17682 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
17683 (grub_machine_mmap_iterate): Take low memory into account
17684
b1969b30
VS
176852011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17686
17687 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
17688 badfs.
17689 Reported by: TiCPU.
17690
cf0eaf13
VS
176912011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17692
17693 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
17694 members errors.
17695
1f060f39
GS
176962011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
17697
17698 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
17699 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
17700
a21e5672
GS
177012011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
17702
17703 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
17704 openbsd and netbsd types being in part_bsd module.
17705
c88172fa
VS
177062011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17707
17708 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
17709 (_FILE_OFFSET_BITS): Likewise.
17710 Reported by: Seth Goldberg.
17711
53798c4b
GS
177122011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
17713
17714 * configure.ac: Check for libdevmapper header.
17715
e7121b69
VS
177162011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17717
17718 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
17719 avoid aliasing.
17720 (fzap_lookup): Likewise.
17721 (dnode_get): Likewise.
17722 (make_mdn): Likewise.
17723 (zfs_mount): Likewise.
17724 (fzap_iterate): Use temporary pointer to avoid aliasing.
17725 (grub_zfs_read): Likewise.
17726 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
17727 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
17728 pointers to avoid aliasing.
17729 (grub_cmd_xnu_kernel64): Likewise.
17730 (grub_xnu_load_driver): Likewise.
17731
fc836af9
VS
177322011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17733
17734 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
17735 aliasing warning.
17736 (grub_cmd_terminal_output): Likewise.
17737 Reported and tested by: Grégoire Sutre.
17738
f9f37648
VS
177392011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17740
17741 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
17742 warning.
17743 Reported and tested by: Grégoire Sutre.
17744
ec1dfd63
VS
177452011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17746
17747 * configure.ac: Do CPU substitution even if it's specified explicitly.
17748 Reported and tested by: Alain Greppin.
17749
9462775a
VS
177502011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17751
17752 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
17753 Reported and tested by: Alain Greppin.
17754
0fd48e35
VS
177552011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17756
17757 Satisfy some bison versions need for inttypes.h.
17758
17759 * grub-core/lib/posix_wrap/inttypes.h: New file.
17760 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
17761 (int16_t): Likewise.
17762 (int32_t): Likewise.
17763 (int64_t): Likewise.
17764 Reported and tested by: Alain Greppin.
17765
43f1bc83
VS
177662011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17767
17768 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
17769 Silence spurious warning.
17770 Reported and tested by: Alain Greppin.
17771
64d1f041
SJ
177722011-01-07 Szymon Janc <szymon@janc.net.pl>
17773
17774 * docs/grub.texi (Support automatic decompression): Update with xz
17775 decompression support.
17776
25953e10
SJ
177772011-01-07 Szymon Janc <szymon@janc.net.pl>
17778
17779 Improve loaders' kernel command line handling.
17780
17781 * grub-core/lib/cmdline.c: New file.
17782 * include/grub/lib/cmdline.h: Likewise.
17783 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
17784 grub_create_loader_cmdline to create kernel command line.
17785 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
17786 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
17787 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
17788 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
17789 (linux): Add lib/cmdline.c on common.
17790
e72d259f
VS
177912011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17792
17793 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
17794 inopos might be unaligned.
17795
c0cf26da
VS
177962011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17797
17798 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
17799 endian transformations.
17800 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17801 Based on report by: Doug Nazar.
17802
0ca09e6c
DN
178032011-01-07 Doug Nazar <nazard.michi@gmail.com>
17804
17805 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
17806 array->members[i].start_sector.
17807 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
17808
014b6806
VS
178092011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17810
17811 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
17812 Reported and tested by: Grégoire Sutre.
17813
415502c2
CW
178142011-01-06 Colin Watson <cjwatson@ubuntu.com>
17815
17816 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
17817 avoid causing test failures by clearing the screen.
17818
71b6a2b7
CW
178192011-01-06 Colin Watson <cjwatson@ubuntu.com>
17820
17821 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
17822 Fix prefix check to handle the case where dir ends with a slash
17823 (most significantly, "/" itself).
17824 Reported by: Michael Vogt.
17825
b3f8d28a
VS
178262011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17827
17828 Run terminfo_cls on initing terminfo output to clear the screen and
17829 move the cursor to (0,0).
17830
17831 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
17832 Call grub_terminfo_output_init.
17833 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
17834 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
17835 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
17836
4c3e4f37
VS
178372011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17838
17839 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
17840 only when needed.
17841
488f71f1
VS
178422011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17843
17844 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
17845 CTRL.
17846
18a38098
VS
178472011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17848
17849 The E820 type 5 is BADRAM, not EXEC_CODE.
17850
17851 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
17852 (GRUB_E820_BADRAM): New define.
17853 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
17854 into reserved. Propagate BADRAM.
17855 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
17856 (GRUB_E820_BADRAM): New define.
17857
9eae2084
VS
178582011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17859
17860 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
17861 Ignore the memory post-4G.
17862 (grub_relocator_firmware_alloc_region): Additional debug statement.
17863
ebc71d28
VS
178642011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17865
17866 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
17867 names.
17868 Reported by: David Pravec.
17869
446fa400
VS
178702011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17871
17872 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
17873 BIOSes.
17874
a0159f37
VS
178752011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17876
17877 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
17878 Prevent overflow.
17879 (grub_reed_solomon_recover): Likewise.
17880
e5146ca1
VS
178812011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17882
17883 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
17884
178852011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
17886
17887 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
17888 variable.
17889
5b1bdf12
CW
178902011-01-04 Colin Watson <cjwatson@ubuntu.com>
17891
17892 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
17893 descriptions of extract_legacy_entries_source and
17894 extract_legacy_entries_configfile.
17895 Reported by: Seung Soo, Ha.
17896
99d925aa
CW
178972011-01-03 Colin Watson <cjwatson@ubuntu.com>
17898
17899 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
17900 on devices that do not implement function 0.
17901
4af0504b
DV
179022011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
17903
17904 * grub-core/fs/hfsplus.c: Make parent unsigned.
17905 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
17906 overflows.
17907 (grub_hfsplus_cmp_extkey): Likewise
17908
469ee10a
VS
179092011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
17910
17911 * util/grub-install.in: Correctly use bootloader_id and not
17912 GRUB_DISTRIBUTOR on efibootmgr line.
17913
323a8e9c
VS
179142011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
17915
17916 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
17917
1b394975
IC
179182010-12-31 Ian Campbell <ijc@hellion.org.uk>
17919
17920 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
17921 Xen and reorder menu item wording to make it clearer that this entry
17922 will launch Xen. Print separate messages when loading Xen and
17923 Linux.
17924
275bff5f
VS
179252010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
17926
17927 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
17928 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
17929 loop in case of incorrect amiga partmap.
17930
307806cb
VS
179312010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
17932
17933 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
17934 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
17935 Reported by:EHeM.
17936
b12b923e
VS
179372010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
17938
17939 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
17940 spurious warning.
17941 Reported by: crocket
17942
14b48a19
VS
179432010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17944
17945 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
17946 Preload EFIemu.
17947 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
17948
693db2df
VS
179492010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17950
17951 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
17952 is loaded
17953 (grub_cmd_xnu_kextdir): Likewise.
17954 (grub_cmd_xnu_splash): Likewise.
17955
c7638645
VS
179562010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17957
17958 Avoid using Reed-Solomon with 0 redundancy.
17959
17960 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
17961 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
17962 or 0 redundancy.
17963 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
17964 (grub_reed_solomon_recover): Likewise.
17965
25dd4780
VS
179662010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17967
17968 Don't use disk subsystem in freebsd_boot.
17969
17970 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
17971 (freebsd_biosdev): Likewise.
17972 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
17973 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
17974
0b2db943
VS
179752010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
17976
17977 Handling of files of unknown size is currently limited. They can't be
17978 used e.g. for initrd or modules. Moreover gzip handling of not
17979 easily seekable files is buggy. Disable unknown file size for now. May
17980 be inefficient but works.
17981
17982 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
17983 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
17984
5c408d0f
MP
179852010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
17986
17987 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
17988 floppy probe.
17989
190a011a
JD
179902010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
17991
17992 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
17993
022d01b8
SL
179942010-12-25 Shea Levy <shlevy>
17995
17996 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
17997
c4855fdc
VS
179982010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17999
18000 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
18001 Windows Server 2008.
18002 Reported by: Devin Giddings.
18003
0354b867
VS
180042010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18005
18006 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
18007 writing an error message because of async power management.
18008 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
18009 (grub_reboot): Likewise.
18010
ab66c69f
JU
180112010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
18012
18013 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
18014 keep unit tests from failing when they shouldn't.
18015
1426ef35
CW
180162010-12-21 Colin Watson <cjwatson@ubuntu.com>
18017
18018 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
18019 previous patch increased the size of the RS code by 20 bytes (at
18020 least with gcc-4.4), so increase this by 20 bytes to match.
18021 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
18022
20641b6b
CW
180232010-12-21 Colin Watson <cjwatson@ubuntu.com>
18024
18025 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
18026 scratch area. Make sure to initialise chosen in standalone mode as
18027 well as non-standalone.
18028 Reported by: Robert Hooker and Andy Whitcroft.
18029 Tested by: Andy Whitcroft.
18030
d060ad60
CW
180312010-12-21 Colin Watson <cjwatson@ubuntu.com>
18032
18033 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
18034 constructing a new unescaped string and passing it to grub_xputs in
18035 one go, rather than passing characters to grub_printf one at a time.
18036
b889cfad
CW
180372010-12-21 Colin Watson <cjwatson@ubuntu.com>
18038
18039 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
18040 initialising utf16.
18041
4e01b6c8
CW
180422010-12-21 Colin Watson <cjwatson@ubuntu.com>
18043
18044 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
18045 comment. Add an extra layer of quotation, requiring the output of
18046 this function to be used in a printf format string.
18047 (gettext_printf): New function.
18048 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
18049 Extract translatable strings from here-documents and use a temporary
18050 variable instead, so that xgettext can find them.
18051 * util/grub.d/10_kfreebsd.in: Likewise.
18052 * util/grub.d/10_linux.in: Likewise.
18053 * util/grub.d/20_linux_xen.in: Likewise.
18054
18055 * po/grub.d.sed: New file.
18056 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
18057 arguments. Set c-format flags on all strings extracted from
18058 util/grub.d/ (xgettext refuses to include these itself for strings
18059 it extracted from a shell file, but these really are c-format).
18060
5318fe98
VS
180612010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18062
18063 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
18064 Avoid next pointing to nowhere.
18065
6c85b743
VS
180662010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18067
18068 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
18069 rather than assuming than rootblock is exactly in the middle.
18070 (grub_affs_label): Likewise.
18071
a2a08a35
VS
180722010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18073
18074 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
18075 reserved_first_sector to 0.
18076 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
18077 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
18078 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
18079
7059d1ec
VS
180802010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18081
18082 Fix handling of UTF-16 UDF labels.
18083
18084 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
18085 (read_string): .. here.
18086 (grub_udf_label): Use read_string.
18087
30aff4cb
BC
180882010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
18089
18090 * grub-core/normal/menu_entry.c (run): Execute commands from menu
18091 editor under argument scope.
18092 Reported by: Jordan Uggla
18093
5cf86f4b
VS
180942010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18095
18096 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
18097
32570200
CW
180982010-12-18 Colin Watson <cjwatson@ubuntu.com>
18099
18100 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
18101 line, and other keys scroll an entire page (previous handling was
18102 for \r and \n to scroll a page and other keys to scroll two lines).
18103
e1dffcf2
VS
181042010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18105
18106 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18107 Set ptrdest to correct get_physical_target_address rather than
18108 incorrect get_virtual_current_address.
18109
b04298cf 181102010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
18111
18112 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
18113 correct cat to grub_uint8_t * rather than grub_uint32_t *.
18114
5367ecd3
CW
181152010-12-10 Colin Watson <cjwatson@ubuntu.com>
18116
18117 * .bzrignore: Ignore grub-core/rs_decoder.S.
18118
1fb430f8
CW
181192010-12-10 Colin Watson <cjwatson@ubuntu.com>
18120
18121 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
18122 .mo/.mo.gz opening sequence to ...
18123 (grub_mofile_open_lang): ... here.
18124 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
18125 * util/grub.d/00_header.in (grub_lang): Include country part of
18126 locale.
18127 Reported by: Mario Limonciello.
18128
a94a6671
RM
181292010-12-09 Robert Millan <rmh@gnu.org>
18130
18131 * NEWS: Document addition of ZFS support.
18132
24b7938b
CW
181332010-12-04 Colin Watson <cjwatson@ubuntu.com>
18134
18135 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
18136 rather than `/ 2', as the latter requires -Wa,--divide which would
18137 require bumping our minimum binutils version.
18138
bddc3ef6
BC
181392010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
18140
18141 * util/grub-script-check.c (main): Print script line number on
18142 error.
18143
bf78d5b2
RM
181442010-12-01 Robert Millan <rmh@gnu.org>
18145
18146 * grub-core/fs/zfs/zfs.c: New file.
18147 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
18148 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
18149 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
18150 * grub-core/fs/zfs/zfsinfo.c: Likewise.
18151
18152 * include/grub/zfs/dmu.h: Likewise.
18153 * include/grub/zfs/dmu_objset.h: Likewise.
18154 * include/grub/zfs/dnode.h: Likewise.
18155 * include/grub/zfs/dsl_dataset.h: Likewise.
18156 * include/grub/zfs/dsl_dir.h: Likewise.
18157 * include/grub/zfs/sa_impl.h: Likewise.
18158 * include/grub/zfs/spa.h: Likewise.
18159 * include/grub/zfs/uberblock_impl.h: Likewise.
18160 * include/grub/zfs/vdev_impl.h: Likewise.
18161 * include/grub/zfs/zap_impl.h: Likewise.
18162 * include/grub/zfs/zap_leaf.h: Likewise.
18163 * include/grub/zfs/zfs.h: Likewise.
18164 * include/grub/zfs/zfs_acl.h: Likewise.
18165 * include/grub/zfs/zfs_znode.h: Likewise.
18166 * include/grub/zfs/zil.h: Likewise.
18167 * include/grub/zfs/zio.h: Likewise.
18168 * include/grub/zfs/zio_checksum.h: Likewise.
18169
18170 * Makefile.util.def: Build ZFS into libgrubmods.
18171 * grub-core/Makefile.core.def: Build zfs.mod.
18172
3f0f3831
SJ
181732010-11-30 Szymon Janc <szymon@janc.net.pl>
18174
18175 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
18176 variable.
18177 * grub-core/commands/wildcard.c (match_files): Likewise.
18178
3a4253b2
RM
181792010-11-30 Robert Millan <rmh@gnu.org>
18180
18181 * grub-core/loader/i386/bsd.c
18182 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
18183 whether kernel is loaded using grub_loader_is_loaded(), rather
18184 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
18185 certain error conditions.
18186
8c317b27
RM
181872010-11-30 Robert Millan <rmh@gnu.org>
18188
c5c9cd3e
RM
18189 * grub-core/commands/echo.c: Include `<grub/term.h>'.
18190 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 18191
49d3ab46
VS
181922010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18193
18194 Avoid using tricks for initialising endian variables.
18195
18196 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
18197 Make const.
18198 (GRUB_MOD_INIT): Don't byte-swap.
18199 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18200 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
18201 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
18202 (grub_swap_bytes32_compile_time): Likewise.
18203 (grub_cpu_to_le32_compile_time): Likewise.
18204 (grub_cpu_to_le16_compile_time): Likewise.
18205
f420a804
VS
182062010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18207
18208 * util/grub-setup.c (setup): Stop recommending --force. People who
18209 understand the dangers of blocklists are able to find this option
18210 anyway and the ones who don't shouldn't use it anyway.
18211
4e7db17b
RM
182122010-11-26 Robert Millan <rmh@gnu.org>
18213
18214 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
18215 Update all users.
18216
9be57a0d
CW
182172010-11-26 Colin Watson <cjwatson@ubuntu.com>
18218
18219 Fix LVM-on-RAID probing.
18220
18221 * util/grub-probe.c (probe): Remember which disk was detected as
18222 RAID (perhaps an LVM physical volume). Use that disk's raidname
18223 rather than that of the top-level disk.
18224
2c7859b3 182252010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 18226
d7647bb6
BC
18227 Fix cmdline argument quotes for setparams command of menuentry
18228 definitions.
7e623b0d
BC
18229
18230 * grub-core/commands/menuentry.c (setparams_prefix): Use single
18231 quotes for arguments.
f866fe80 18232 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 18233 grub_strchrsub function instead.
f866fe80 18234
7955bea0 18235 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 18236
74f72a64
CW
182372010-11-24 Colin Watson <cjwatson@ubuntu.com>
18238
18239 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
18240 effort by skipping "." and ".." entries up-front.
18241 Suggested by: Michael Lazarev.
18242
5a407278
CW
182432010-11-24 Colin Watson <cjwatson@ubuntu.com>
18244
18245 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
18246 ldflags to ldadd, to fix link line ordering.
18247 (none_decompress): Likewise.
18248
3030d8ec
CW
182492010-11-24 Colin Watson <cjwatson@ubuntu.com>
18250
18251 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
18252 platforms.
18253 (grub-emu-lite): Remove kern/emu/cache.S.
18254
b7fbac12
CW
182552010-11-23 Colin Watson <cjwatson@ubuntu.com>
18256
18257 * util/deviceiter.c (compare_devices): If the by-id link for a
18258 device couldn't be resolved, fall back to sorting by the by-id link
18259 rather than segfaulting.
18260 Reported and tested by: Daniel Mierswa.
18261
5225f328
CW
182622010-11-23 Colin Watson <cjwatson@ubuntu.com>
18263
18264 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
18265 ldflags, to fix link line ordering.
18266
038b3ce8
CW
182672010-11-23 Colin Watson <cjwatson@ubuntu.com>
18268
18269 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
18270 linkers are picky about this.
18271
bf16e98e
CW
182722010-11-23 Colin Watson <cjwatson@ubuntu.com>
18273
18274 * grub-core/Makefile.am (command.lst): Adjust sed expression
18275 ordering so that extended and priority commands aren't treated as
18276 ordinary commands.
18277
7242bab6
CW
182782010-11-23 Colin Watson <cjwatson@ubuntu.com>
18279
18280 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18281 Remove byte-swapping function calls, which are not valid in
18282 structure initialisers.
18283 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
18284 non-const.
18285 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
18286 grub_gpt_partition_type_bios_boot.
18287
14e8b279
CW
182882010-11-22 Colin Watson <cjwatson@ubuntu.com>
18289
18290 Fix test program build on GNU/kFreeBSD.
18291
18292 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
18293 $(LIBNVPAIR)' library dependencies.
18294
e6f63338 182952010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
18296
18297 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
18298
cf8ffc38
CW
182992010-11-22 Colin Watson <cjwatson@ubuntu.com>
18300
18301 * util/grub-install.in: Remove excessive quoting that broke
18302 installations to RAID devices.
18303
7f8b0fd7
VS
183042010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18305
18306 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
18307 bootloader version instead of 0.
18308
dfd240b1
VS
183092010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18310
18311 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
18312 warning.
18313
7b61e609
VS
183142010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18315
18316 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
18317 retrieve the metadat sector if size isn't known.
18318 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18319
9dfe92d0
RM
183202010-11-18 Robert Millan <rmh@gnu.org>
18321
18322 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
18323 with grub_memcmp().
18324
41cc919e
VS
183252010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
18326
18327 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
18328 arrow.
18329 Reported by: Jordan Uggla.
18330
1afcc914
VS
183312010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18332
18333 Make better UTF compliant.
18334
18335 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
18336 sequences as incorrect.
18337 (grub_is_valid_utf8): Likewise.
18338 (grub_utf8_to_ucs4): Likewise.
18339 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
18340 (grub_ucs4_to_utf8_alloc): Likewise.
18341 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
18342
f1808884
VS
183432010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18344
18345 Make legacy_source behave like source.
18346
18347 * grub-core/commands/legacycfg.c (legacy_file): Don't call
18348 grub_show_menu.
18349 (grub_cmd_legacy_source): Call grub_show_menu if needed.
18350
24ec575b
CW
183512010-11-16 Colin Watson <cjwatson@debian.org>
18352
18353 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
18354 (-Wunused implies -Wunused-parameter, but not vice versa).
18355
72b7c7aa
CW
183562010-11-16 Colin Watson <cjwatson@ubuntu.com>
18357
18358 * configure.ac: Make error messages less confusing by testing for
18359 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
18360 accepted, but produces a diagnostic if something else is wrong).
18361
e98937aa
VS
183622010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18363
18364 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
18365 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
18366 (now unused).
18367 (grub_keyboard_controller_init)
18368 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
18369 read the initial state since controller isn't inited yet.
18370
f6bbabc3
VS
183712010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18372
18373 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
18374 allocate_regbeg may need to create new chunk header.
18375
22e7dbb2
VS
183762010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18377
18378 Fix quoting in legacy parser.
18379
18380 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
18381 single quotes.
18382 (grub_legacy_parse): Likewise.
18383 Reported by: Jordan Uggla.
18384 Tested by: Jordan Uggla.
18385
03f80960
VS
183862010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18387
18388 Don't add -lgcc on i386 and x86_64.
18389
18390 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
18391 * conf/Makefile.common (LDADD_KERNEL): Likewise.
18392 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
18393
779dc15b
VS
183942010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18395
18396 * configure.ac: Add -Wno-trampolines when supported.
18397
d20a3b37
MV
183982010-11-14 Modestas Vainius <modax@debian.org>
18399
18400 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
18401 fakeraid.
18402
e5360933
GC
184032010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18404
18405 Add generic logical block size support for UDF.
18406
18407 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
18408 (GRUB_UDF_BLKSZ): Removed.
18409 (struct grub_udf_data): New field "lbshift" to hold the logical block
18410 size of the file system in log2 format. All users updated.
18411 (sblocklist): Change type to unsigned.
18412 (grub_udf_mount): Change type of "sblklist" to unsigned.
18413 Move AVDP search before VRS recognition, because the latter requires
18414 knowledge of the logical block size, which is detected during the
18415 former.
18416 Detect and validate logical block size during AVDP search, adding
18417 support for block sizes 512, 1024 and 4096.
18418 Make VRS recognition independent of block size.
18419
cb0229c5
GC
184202010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18421
18422 Properly handle deleted files on UDF.
18423
18424 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
18425 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
18426 set.
18427
406858a8
GC
184282010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18429
18430 Support reading files larger than 2 GiB.
18431
18432 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
18433 "offset" to grub_off_t.
18434 (grub_udf_read_file): Likewise for parameter "pos".
18435
130da6a7
VS
184362010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18437
18438 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
18439 unavailable.
18440 (Simple configuration): Refer to Changes from GRUB Legacy about
18441 save_env availability.
18442
65e93f6b
VS
184432010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18444
18445 * util/grub-install.in: Ignore empty partition table detection
18446 instead of trying to include part_ module.
18447
1fd08bf1
VS
184482010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18449
18450 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
18451 LVM on RAID support.
18452
de1a024f
VS
184532010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18454
18455 Properly define WORDS_BIGENDIAN in wrapped environments.
18456
18457 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
18458 definition.
18459 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
18460
18461 Reported by: Manoel Rebelo Abranches.
18462 Tested by: Manoel Rebelo Abranches.
18463
bc5dd0b9
VS
184642010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18465
18466 * util/grub-mkconfig.in: Fix quoting.
18467
58c184be
VS
184682010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18469
18470 Support big ext2 files.
18471
18472 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
18473 (grub_ext2_read_block): Support triple indirect blocks.
18474 (grub_ext2_read_file): Use 64-bit types and read size_high.
18475 (grub_ext2_open): Read size_high.
18476 Reported by: Ximin Luo.
18477 Tested by: Manoel Rebelo Abranches.
18478
5f0c02b3
VS
184792010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18480
18481 * util/grub-install.in: Handle filenames containing spaces.
18482 Reported by: Jordan Uggla.
18483 Tested by: Jordan Uggla.
18484
4417aae6
VS
184852010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18486
18487 * util/grub-mkconfig.in (grub_script_check): New variable.
18488 Use grub_script_check instead of grub-script-check.
18489 Reported by: Barry Jackson.
18490
7625a68e
VS
184912010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18492
18493 * docs/grub.texi (menu): Correct the order.
18494 Reported by: D. Hugh Redelmeier.
18495
10001ac5
VS
184962010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
18497
18498 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
18499 jump.
18500
9c4cf53b
MRA
185012010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
18502
10001ac5
VS
18503 * include/grub/elfload.h (grub_elf32_size): New parameter.
18504 All users updated.
9c4cf53b
MRA
18505 Return maximum segments alignment.
18506 (grub_elf64_size): Likewise.
18507 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
18508 Return maximum segments alignment.
18509 (grub_elf64_size): Likewise.
18510 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
18511 (grub_linux_claimmap_iterate): New function. Uses the
18512 "available" property in the "memory" node for memory allocation
18513 for kernel in the PowerPC loader.
9c4cf53b
MRA
18514 (grub_linux_load32): Correctly find linux entry point offset.
18515 (grub_linux_load64): Likewise.
18516
d2bf06bf
RM
185172010-11-07 Robert Millan <rmh@gnu.org>
18518
18519 On mips-yeeloong, build with -march=loongson2f when this flag is
18520 available (GCC >= 4.4).
18521 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
18522 `-march=mips3'.
18523 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
18524 or otherwise add -march=mips3.
18525
898c99a2
BC
185262010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
18527
87220a68
BC
18528 Suppress shell expansion on echo '*' and echo "*" like cases.
18529 Reported by: Jordan Uggla.
898c99a2
BC
18530
18531 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
18532 string arguments before shell expansion.
18533 * tests/grub_cmd_echo.in: New testcases.
18534
4f9b406a
RM
185352010-11-07 Robert Millan <rmh@gnu.org>
18536
18537 * conf/mips-qemu-mips.rmk: Remove stale file from previous
18538 transition.
18539
80c6d25e
VS
185402010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
18541
18542 * grub-core/kern/emu/hostdisk.c
18543 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
18544
4a1a0153
VS
185452010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18546
18547 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
18548 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
18549 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
18550
34706ddc
VS
185512010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18552
18553 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
18554
6972dea9
VS
185552010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18556
18557 * util/grub-install.in: Replace useless recomendation to pass
18558 --modules with a recomendation to report a bug.
18559
9c693bd6
VS
185602010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18561
18562 Properly register serial terminfo.
18563 Reported by: Jordan Uggla
18564
18565 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
18566 const.
18567 (grub_serial_terminfo_output_template): Likewise.
18568 (grub_cmd_serial): Register "serial" with terminfo.
18569 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
18570 grub_serial_terminfo_output.
18571
6c9e4c0c
RM
185722010-11-05 Robert Millan <rmh@gnu.org>
18573
18574 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
18575 needed).
18576
b9b3839f
RM
185772010-11-05 Robert Millan <rmh@gnu.org>
18578
18579 On Yeeloong, pass machine type information to Linux.
18580
18581 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
18582 (LOONGSON_MACHTYPE): New macro, set to
18583 "machtype=lemote-yeeloong-2f-8.9inches".
18584 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
18585 additional argument to Linux.
18586
1a3aaff4
RM
185872010-11-04 Robert Millan <rmh@gnu.org>
18588
18589 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
18590 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
18591 (its SATA disks are detected as slaveless IDE master drives on
18592 kFreeBSD).
18593 Reported by Carsten Aulbert.
18594
a75f4f62
CW
185952010-11-02 Colin Watson <cjwatson@ubuntu.com>
18596
18597 * util/bin2h.c (main): Fix spelling error in generated output.
18598
33b4b0c6
GS
185992010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
18600
18601 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
18602
2b36fbf4
VS
186032010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18604
18605 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
18606 vga= option is supplied.
18607
74aaf558
VS
186082010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18609
18610 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
18611 * util/grub.d/10_kfreebsd.in: Likewise.
18612 * util/grub.d/10_linux.in: Likewise.
18613 * util/grub.d/20_linux_xen.in: Likewise.
18614
6428dec3
VS
186152010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18616
18617 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
18618 argument as an argument to no-argument option.
18619
f8729d98
VS
186202010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18621
18622 * util/grub.d/10_linux.in: Add missing load_video with explicit
18623 GRUB_GFXPAYLOAD_LINUX.
18624
89d68fa6
VS
186252010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18626
18627 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
18628
3a1197cd
VS
186292010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18630
18631 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
18632 elements with invlid index.
18633 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18634 * grub-core/disk/raid.c (insert_array): Automatically reallocate
18635 members.
18636 * include/grub/raid.h (grub_raid_member): New struct.
18637 (grub_raid_array): Transform devices and start_sector into usage of
18638 grub_raid_member. All users updated
18639 (allocated_devs): New member.
18640
71574288
VS
186412010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18642
18643 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
18644 is modified
18645
8d40ec65
BC
186462010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
18647
18648 NetBSD build fix for getline function conflict from gnulib.
18649
18650 * Makefile.util.def (libgrubkern.a): New library for grub kernel
18651 components that depend on gnulib headers.
18652 (libgrubmods.a): Renamed from earlier libgrub.a.
18653 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
18654
95b9257e
VS
186552010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18656
18657 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
18658 install rather than creating a broken install.
18659
26c53dc6
VS
186602010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18661
18662 * util/grub-setup.c (argp): Remove misleading example of installing to
18663 a partition.
18664
4171b3c5
VS
186652010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18666
18667 * util/grub-setup.c (setup): Clarify the error message.
18668
18568d18
VS
186692010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18670
18671 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
18672
4f6a2e21
VS
186732010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
18674
18675 * grub-core/kern/emu/misc.c
18676 (grub_make_system_path_relative_to_its_root)
18677 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
18678
186792010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
18680
18681 * grub-core/kern/emu/misc.c
18682 (grub_make_system_path_relative_to_its_root): Revert r2882.
18683
e138c458
VS
186842010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
18685
18686 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
18687 useless field head. All users updated.
18688 (free_subchunk): Correct handling of IN_REGION subchunk.
18689
0cbcdf0e
CW
186902010-10-22 Colin Watson <cjwatson@ubuntu.com>
18691
18692 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
18693 (Supported kernels): Likewise.
18694
b65ea155
GS
186952010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
18696
18697 Make mktemp invocations portable.
18698
18699 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
18700 exit if mktemp fails.
18701 * tests/grub_script_blockarg.in: Likewise.
18702 * tests/partmap_test.in: Likewise.
18703 * tests/util/grub-shell-tester.in: Likewise.
18704 * tests/util/grub-shell.in: Likewise.
18705 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
18706 * Makefile.am: Likewise, and chain shell commands with `&&'
18707 instead of ';'.
18708 * util/grub-mkrescue.in: Use the same explicit template as above, and
18709 exit if mktemp fails.
18710
05f43cdd
BC
187112010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
18712
18713 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
18714 Linux kernel, reported by Dennis Schridde.
18715
800e6a9b
SJ
187162010-10-17 Szymon Janc <szymon@janc.net.pl>
18717
18718 * grub-core/normal/auth.c (grub_auth_check_authentication):
18719 Set-but-not-used variable removed.
18720
d82df574
VS
187212010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18722
18723 * docs/grub.texi (GNU/Linux): Document APM unavailability with
18724 32-bit linux protocol.
18725
7bced458
VS
187262010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18727
18728 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
18729 cursor shape for sanity.
18730
5b027690
VS
187312010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18732
18733 * docs/grub.texi (Installation): Document buggy BIOS install.
18734
ba5f65cf
VS
187352010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18736
18737 * docs/grub.texi (Installation): Indent.
18738
fdf2ec9c
VS
187392010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18740
18741 * util/grub-setup.c (setup): New parameter allow_floppy.
18742 (arguments): New member allow_floppy.
18743 (argp_parser): Handle --allow-floppy.
18744 (main): Pass allow_floppy.
18745 * util/grub-install.in: New option --allow-floppy passed though to
18746 grub-setup.
18747
861dfd4c
VS
187482010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18749
18750 * util/grub-install.in: Handle partitionless disks.
18751
f77a8c24
VS
187522010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18753
18754 * util/grub-setup.c (setup): Don't clean blocklists before readability
18755 verfification.
18756
27d9ee32
VS
187572010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18758
18759 * docs/grub.texi (Installation): Document embedding zone. Remove
18760 obsolete grub-install example.
18761
6bdda8f8
SJ
187622010-10-16 Szymon Janc <szymon@janc.net.pl>
18763
18764 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
18765 Set-but-not-used variable ifdef'ed.
18766 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
18767 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
18768 variable removed.
18769 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
18770 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
18771 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
18772 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
18773 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
18774 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
18775 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
18776 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
18777 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
18778 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
18779 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
18780 Likewise.
18781
e19b016b
VS
187822010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18783
18784 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
18785 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
18786 enum value.
18787
6c8d3002
VS
187882010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18789
18790 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
18791 synonym to _S5_. Needed for some DSDTs.
18792
c32b51c9
VS
187932010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18794
18795 Userspace ACPI parser debugging.
18796
18797 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
18798 headers and add relevant defines. Don't include standard headers.
18799 (main) [GRUB_DSDT_TEST]: New function.
18800 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
18801 Don't declare functions.
18802
fbfbeb39
VS
188032010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18804
18805 Remove dead grub_efi_mm_fini.
18806
18807 * grub-core/kern/efi/mm.c (allocated_page): Removed.
18808 (ALLOCATED_PAGES_SIZE): Likewise.
18809 (MAX_ALLOCATED_PAGES): Likewise.
18810 (allocated_pages): Likewise.
18811 (grub_efi_allocate_pages): Don't record allocated pages.
18812 (grub_efi_free_pages): Likewise.
18813 (grub_efi_mm_init): Likewise.
18814 (grub_efi_mm_fini): Removed.
18815
65f7ed7c
VS
188162010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18817
18818 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
18819 (grub_efi_mm_init): Take into account the memory map size increase.
18820
24977b44
VS
188212010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18822
18823 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
18824 (serial_hw_put): Wait based on real time rather than port reads. Don't
18825 roken ports.
18826 * include/grub/serial.h (grub_serial_port): New field broken.
18827
1eb01cd2
RM
188282010-10-16 Robert Millan <rmh@gnu.org>
18829
18830 * grub-core/kern/emu/misc.c
18831 (grub_make_system_path_relative_to_its_root): Fix premature return
18832 when processing non-root ZFS filesystems.
5f8b440b 18833 Reported by Sergio Talens-Oliag.
1eb01cd2 18834
2d5fed60
RM
188352010-10-15 Robert Millan <rmh@gnu.org>
18836
18837 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
18838 guarantee compressed ones are processed first.
18839
d0f4c1ea
VS
188402010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
18841
18842 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
18843 grub_efiemu_autocore.
18844
d87c681f
VS
188452010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
18846
18847 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
18848 rather than 0x1b.
18849 (grub_console_getkey): Use correct jae opcode rather than ja.
18850
219b3564
RM
188512010-10-12 Robert Millan <rmh@gnu.org>
18852
18853 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
18854 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
18855 variable. All references updated.
18856
18857 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
18858
20c6bb7e
VS
188592010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
18860
18861 Correctly distinguish mdraid flavours.
18862
18863 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
18864 (insert_array): New argument raid.
18865 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
18866 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
18867 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
18868
74baff84
VS
188692010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
18870
18871 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
18872 handling of special keys.
18873
3ef068df 188742010-10-02 Aleš Nesrsta <starous@volny.cz>
18875
c7980ad9
VS
18876 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
18877 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 18878
a9455194 188792010-10-02 Aleš Nesrsta <starous@volny.cz>
18880
c7980ad9
VS
18881 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
18882 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
18883 users updated.
a9455194 18884 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 18885 Use right endpoint when querying descriptor.
a9455194 18886
441cfe65
VS
188872010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
18888
18889 Clear out 0x80 color bit on EFI.
18890 Tested by: decoder
18891 Reported by: decoder and meta tech.
18892
18893 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
18894 (grub_console_setcolorstate): Clear out 0x80 bit.
18895 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
18896 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
18897 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
18898
bf26bcc4
VS
188992010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
18900
18901 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
18902 Set to "auto".
18903
6e3c515d
VS
189042010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18905
18906 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
18907 mo_file after freeing.
18908
e6d983ba
VS
189092010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18910
18911 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
18912
74ccb5b5
VS
189132010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18914
18915 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
18916 flags.
18917
17821956
VS
189182010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18919
18920 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
18921 usage.
18922
ee74fa48
VS
189232010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18924
18925 Put terminfo into core on ieee1275 and yeeloong (needed for console).
18926
18927 * gentpl.py: New groups terminfoinkernel and terminfomodule.
18928 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
18929 and terminfo.h when needed.
18930 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
18931 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
18932 (terminfo): Enable only on terminfokernel.
18933 (extcmd): Likewise.
18934 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
18935 * include/grub/lib/arg.h: Likewise.
18936 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
18937 incorrect usage of ->.
18938
aa438e68
VS
189392010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18940
18941 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
18942 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
18943
57994012
VS
189442010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18945
18946 Fix coreboot compilation.
18947
18948 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18949 Take VBE info into account even if only text is supported.
18950 (fill_vbe_info): Take into account the case when only VGA text
18951 is supported.
18952 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
18953 on coreboot, multiboot and qemu.
18954
2a406611
VS
189552010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18956
18957 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
18958 debug messages.
18959 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
18960
d33613fc
VS
189612010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18962
18963 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
18964 parameters.
18965
44a1b432
VS
189662010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18967
18968 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
18969 if they were BSD-style.
18970
edde54e6
VS
189712010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18972
18973 * grub-core/boot/i386/pc/lnxboot.S: Replace
18974 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
18975 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
18976
b65830fa
VS
189772010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18978
18979 Write embedding zone using Reed-Solomon.
18980
18981 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
18982 * grub-core/Makefile.am (rs_decoder.S): New target.
18983 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
18984 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
18985 (multiboot): Move to RS part.
18986 (post_reed_solomon): New label.
18987 (grub_boot_drive): Move to non-RS part since it's modified in memory
18988 on boot.
18989 Include rs_decoder.S.
18990 * grub-core/lib/reed_solomon.c: New file.
18991 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
18992 New definition.
18993 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
18994 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
18995 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
18996 * include/grub/partition.h (grub_partition_map): Change prototype of
18997 embed to allow returning additional sectors.
18998 * include/grub/reed_solomon.h: New file.
18999 * util/grub-setup.c (setup): Handle Reed-Solomon.
19000
0b4b227f
CW
190012010-09-28 Colin Watson <cjwatson@ubuntu.com>
19002
19003 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19004 i386 and x86-64 definedness tests.
19005
f772623b
YB
190062010-09-27 Yves Blusseau <blusseau@zetam.org>
19007
19008 Fix generation of kernel_syms.lst
19009
19010 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
19011 ASM_PREFIX
19012
8e57a6ca
RM
190132010-09-26 Robert Millan <rmh@gnu.org>
19014
19015 Support degraded ZFS arrays in "grub-probe -t device" resolution.
19016
19017 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
19018 the pool is an array of devices, iterate through it and return the
19019 first device that passes a stat() test (instead of blindly returning
19020 the first one).
19021
f9130836
RM
190222010-09-26 Robert Millan <rmh@gnu.org>
19023
19024 Build fixes for GNU/kFreeBSD.
19025
19026 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
19027 to programs that require ZFS conversion.
19028 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
19029 kernels that don't have FLOPPY_MAJOR.
19030
96510faf
BC
190312010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19032
19033 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
19034
449333eb
BC
190352010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19036
19037 Fix grub-emu build.
19038
19039 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
19040 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
19041 mdraid09 and mdraid1x.
19042
e1fd1939
CW
190432010-09-24 Colin Watson <cjwatson@ubuntu.com>
19044
19045 Re-enable grub-extras.
19046
19047 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
19048 avoid confusing Automake. Run autogen only twice, once for the top
19049 level and once for grub-core. Add Makefile.util.def and
19050 Makefile.core.def from extra modules to the appropriate autogen
19051 invocations. If Makefile.common exists in an extra module, include
19052 it in both Makefile.util.am and grub-core/Makefile.core.am;
19053 similarly, include any Makefile.util.common file in Makefile.util.am
19054 and any Makefile.core.common file in grub-core/Makefile.core.am.
19055 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
19056 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
19057 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
19058 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
19059
19060 * gentpl.py (gvar_add): Turn GVARS into a set.
19061 (global_variable_initializers): Sort global variables on output.
19062 (vars_init): New function.
19063 (first_time): Likewise.
19064 (library): Ensure that non-global variable initialisations are
19065 emitted before the first time we emit code for a library block.
19066 Append to variables rather than setting them. Only emit
19067 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
19068 each conditional path.
19069 (program): installdir() emits an Autogen macro, so must be passed to
19070 var_add rather than gvar_add.
19071 (data): Likewise.
19072 (script): Likewise.
19073 (rules): New function, centralising handling for different target
19074 types. Set up Guile association lists for first_time and vars_init,
19075 and send most output to a diversion so that variable initialisations
19076 can be emitted first.
19077 (module_rules): Use new rules function.
19078 (kernel_rules): Likewise.
19079 (image_rules): Likewise.
19080 (library_rules): Likewise.
19081 (program_rules): Likewise.
19082 (script_rules): Likewise.
19083 (data_rules): Likewise.
19084
19085 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
19086
19087 * .bzrignore: Add contrib and grub-core/contrib. Remove
19088 grub-core/Makefile.gcry.am.
19089
1d12cf29
YB
190902010-09-24 Yves Blusseau <blusseau@zetam.org>
19091
19092 * grub-core/lib/LzFind.c: Add missing include.
19093 * grub-core/lib/LzmaEnc.c: Likewise.
19094 * grub-core/script/lexer.c: Likewise.
19095 * grub-core/script/yylex.l: Likewise.
19096 * util/grub-macho2img.c: Likewise.
19097 * util/grub-menulst2cfg.c: Likewise.
19098 * util/grub-mklayout.c: Likewise.
19099 * util/grub-mkpasswd-pbkdf2.c
19100 * util/grub-mkrelpath.c: Likewise.
19101 * util/resolve.c: Likewise.
19102
dd363028
BC
191032010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
19104
19105 * Makefile.util.def (example_unit_test): Add
19106 grub-core/gnulib/libgnu.a.
19107
f5a109e2
GS
191082010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
19109
19110 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
19111
6d0fa83c
VS
191122010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
19113
19114 Support xz compression on yeeloong.
19115
19116 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
19117 * configure.ac: Check for LZMA.
19118 * grub-core/Makefile.core.def (xz_decompress): New target.
19119 (none_decompress): Likewise.
19120 * grub-core/boot/decompressor/minilib.c: New file.
19121 * grub-core/boot/decompressor/none.c: Likewise.
19122 * grub-core/boot/decompressor/xz.c: Likewise.
19123 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
19124 * grub-core/kern/mips/cache_flush.S: Likewise.
19125 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
19126 * grub-core/kern/mips/startup.S: Move first stage to ...
19127 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
19128 nomacro.
19129 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
19130 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
19131 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
19132 Allocate statically.
19133 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
19134 Allocate statically or use scratch. Don't check CRC32.
19135 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
19136 Allocate statically. Don't check CRC32.
19137 * include/grub/decompressor.h: New file.
19138 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
19139 Removed.
19140 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
19141 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
19142 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
19143 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
19144 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
19145 * util/grub-mkimage.c (grub_compression_t): New type.
19146 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
19147 (image_target_desc): New field default_compression.
19148 (image_targets): Adjust yeeloong targets.
19149 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
19150 (compress_kernel): New parameter comp.
19151 (generate_image): Likewise. Handle new compression case.
19152 (options): New option --compression
19153 (help): Likewise.
19154 (main): Handle new option.
19155
1b655af6
GS
191562010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
19157
19158 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
19159
8f03f0b5
CW
191602010-09-22 Colin Watson <cjwatson@ubuntu.com>
19161
19162 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19163 typo in __i386__ conditional.
19164
7835dfd3
VS
191652010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19166
19167 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
19168 include.
19169
e255597e
VS
191702010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19171
6d0fa83c 19172 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
19173
19174 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
19175 new tags as supported.
19176 (acpiv2_size): New function.
19177 (grub_multiboot_get_mbi_size): Take new tags into account.
19178 (grub_multiboot_make_mbi): Add new tags.
19179 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 19180
6cc14051 191812010-09-21 Aleš Nesrsta <starous@volny.cz>
19182
19183 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
19184 Added missing configuration of USB device.
19185
df7769d8
CW
191862010-09-21 Colin Watson <cjwatson@ubuntu.com>
19187
19188 * grub-core/normal/menu_entry.c (run): Make sure we always return
19189 a value.
19190
b031012d
CW
191912010-09-21 Colin Watson <cjwatson@ubuntu.com>
19192
19193 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
19194 NumberOfPages is UINT64 according to the UEFI specification, not
19195 UINTN. Fix printf format.
19196
174de8f3
CW
191972010-09-21 Colin Watson <cjwatson@ubuntu.com>
19198
19199 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
19200 `err' to grub_usb_err_t.
19201 Reported and tested by: KESHAV P.R.
19202
d7dbe923
CW
192032010-09-21 Colin Watson <cjwatson@ubuntu.com>
19204
19205 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
19206 tpart non-const, so that we can assign to it. (Since this is a
19207 typedef, the constness refers to the pointer rather than what it
19208 points to.)
19209
8d5e2af3
CW
192102010-09-21 Colin Watson <cjwatson@ubuntu.com>
19211
19212 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
19213 $(top_srcdir)/grub-core/gnulib as well as
19214 $(top_builddir)/grub-core/gnulib.
19215 Reported by: KESHAV P.R.
19216
5c527783
CW
192172010-09-21 Colin Watson <cjwatson@ubuntu.com>
19218
19219 * util/grub-install.in: Fix the bootloader ID option to be
19220 consistently --bootloader-id, not --bootloader_id.
19221 Reported by: KESHAV P.R.
19222
d309a16e
CW
192232010-09-21 Colin Watson <cjwatson@ubuntu.com>
19224
19225 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
19226 check hash checksum." consistently translatable.
19227
b830cd16
YB
192282010-09-21 Yves Blusseau <blusseau@zetam.org>
19229
19230 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
19231 $(top_builddir).
19232
c4fe27a8
CW
192332010-09-21 Colin Watson <cjwatson@ubuntu.com>
19234
19235 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
19236 (GRUB_MOD_INIT): Register sha1sum command.
19237 (GRUB_MOD_FINI): Unregister sha1sum command.
19238
a4c1d277
YB
192392010-09-21 Yves Blusseau <blusseau@zetam.org>
19240
19241 Keep boot and grub directory names in sync with utils scripts
19242
19243 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
19244 * config.h.in: Add previous macros.
19245 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
19246 * util/grub-install.in: Use $bootdir and $grubdir variables.
19247
4eff79d2
CW
192482010-09-21 Colin Watson <cjwatson@ubuntu.com>
19249
19250 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
19251 convert partition names to disk names if the new `convert' parameter
19252 is set.
19253 (grub_util_biosdisk_get_grub_dev): If opening the disk device
19254 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
19255 disk in its own right. This can happen with Xen disk images.
19256
934d7e44
YB
192572010-09-21 Yves Blusseau <blusseau@zetam.org>
19258
19259 * util/grub-editenv.c: Update strings to avoid warnings when generating
19260 grub.pot file.
19261 * util/grub-setup.c: Likewise.
934d7e44 19262
df3367cc
VS
192632010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19264
19265 * configure.ac: Change version to 1.99~beta0.
19266
77a94e98
VS
192672010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19268
19269 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
19270 Add BADRAM.
19271 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
19272 Likewise.
19273 * include/multiboot.h: Resynced with specification.
19274 * include/multiboot2.h: Likewise.
19275
269004c1
CW
192762010-09-21 Colin Watson <cjwatson@ubuntu.com>
19277
19278 Fix po directory handling.
19279
19280 * configure.ac: Create po/Makefile.in rather than po/Makefile.
19281 * grub-core/gnulib/Makefile.am: Import gettext module.
19282 * m4/gnulib-cache.m4: Likewise.
19283 * m4/gnulib-comp.m4: Likewise.
19284 * m4/gettext.m4: New file, from gnulib.
19285 * m4/glibc2.m4: Likewise.
19286 * m4/iconv.m4: Likewise.
19287 * m4/intdiv0.m4: Likewise.
19288 * m4/intl.m4: Likewise.
19289 * m4/intldir.m4: Likewise.
19290 * m4/intlmacosx.m4: Likewise.
19291 * m4/intmax.m4: Likewise.
19292 * m4/inttypes-pri.m4: Likewise.
19293 * m4/lcmessage.m4: Likewise.
19294 * m4/lib-ld.m4: Likewise.
19295 * m4/lib-link.m4: Likewise.
19296 * m4/lib-prefix.m4: Likewise.
19297 * m4/lock.m4: Likewise.
19298 * m4/nls.m4: Likewise.
19299 * m4/po.m4: Likewise.
19300 * m4/printf-posix.m4: Likewise.
19301 * m4/progtest.m4: Likewise.
19302 * m4/threadlib.m4: Likewise.
19303 * m4/uintmax_t.m4: Likewise.
19304 * m4/visibility.m4: Likewise.
19305 * po/Makefile.am: Remove.
19306 * po/Makefile.in.in: New file, from gettext.
19307 ($(DOMAIN).pot-update): Support POTFILES-shell.
19308 * po/Makevars: New file.
19309 * po/POTFILES-shell: Rename to ...
19310 * po/POTFILES-shell.in: ... this. Update.
19311 * po/POTFILES: Rename to ...
19312 * po/POTFILES.in: ... this. Update.
19313 * po/Rules-quot: New file, from gettext.
19314 * po/boldquot.sed: Likewise.
19315 * po/en@boldquot.header: Likewise.
19316 * po/en@quot.header: Likewise.
19317 * po/insert-header.sin: Likewise.
19318 * po/quot.sed: Likewise.
19319 * po/remove-potcdate.sin: Likewise.
19320
3e0fa5d0
VS
193212010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19322
19323 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
19324
ade9bd66
VS
193252010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19326
19327 * util/grub.d/20_linux_xen.in: Use submenus.
19328
fc55cc4c
VS
193292010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19330
19331 Support submenus.
19332
19333 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
19334 parameter submenu. All users updated.
19335 * grub-core/normal/main.c (free_menu): Rename to ...
19336 (grub_normal_free_menu): ... this. Made global.
19337 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
19338 if requested.
19339 * grub-core/normal/menu_entry.c (screen): New field submenu.
19340 (make_screen): Set submenu.
19341 (run): Open new context if requested.
19342 * include/grub/menu.h (grub_menu_entry): New field submenu.
19343 * include/grub/normal.h (grub_normal_free_menu): New proto.
19344
600cedf7
VS
193452010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19346
19347 Menu entries extractor.
19348
19349 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
19350 variants.
19351 (GRUB_MOD_INIT): Register new variants.
19352 (GRUB_MOD_FINI): Unregister new variants.
19353 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
19354 into grub_cmd_legacy_source.
19355 (grub_cmd_legacy_source): Implement extractor variants.
19356 (GRUB_MOD_INIT): Register new variants.
19357 (GRUB_MOD_FINI): Unregister new variants.
19358 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
19359 as an extractor.
19360 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
19361 search as an extractor.
19362 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
19363 test as an extractor.
19364 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
19365 as an extractor.
19366 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
19367 (grub_env_new_context): New function.
19368 (grub_env_context_open): Likewise.
19369 (grub_env_extractor_open): Likewise.
19370 (grub_env_extractor_close): Likewise.
19371 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
19372 grub_extractor_level.
19373 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
19374 * include/grub/env.h (grub_env_extractor_open): New proto.
19375 (grub_env_extractor_close): Likewise.
19376 * include/grub/normal.h (grub_extractor_level): New external variable.
19377
7bda3a87
VS
193782010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19379
19380 Make cutmem accept a region specification.
19381 Suggested by: Samuel Thibault
19382
19383 * grub-core/mmap/mmap.c (parsemem): New function.
19384 (grub_cmd_cutmem): Handle new arguments.
19385
2ea57f88
VS
193862010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19387
19388 New command cutmem.
19389
19390 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
19391 (GRUB_MOD_INIT): Register new command.
19392 (GRUB_MOD_FINI): Unregister new command.
19393
74342e31
VS
193942010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19395
19396 Support some annoying BSD and Minix subpartitions.
19397
19398 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
19399 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
19400 Properly handle concatenation.
19401 * grub-core/kern/device.c (grub_device_iterate): Likewise.
19402 * grub-core/normal/completion.c (iterate_partition): Likewise.
19403 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
19404 contain partition. All users updated.
19405 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
19406 struct.
19407 (grub_openbsdlabel_partition_map): Likewise.
19408 (bsdlabel_partition_map_iterate): Rename to ..
19409 (iterate_real): ... this. New arguments sector, freebsd and pmap.
19410 (bsdlabel_partition_map_iterate): New function.
19411 (netopenbsdlabel_partition_map_iterate): Likewise.
19412 (netbsdlabel_partition_map_iterate): Likewise.
19413 (openbsdlabel_partition_map_iterate): Likewise.
19414 (GRUB_MOD_INIT): Register new partmaps.
19415 (GRUB_MOD_FINI): Unregister new partmaps.
19416 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
19417 (grub_partition_msdos_iterate): ... this. All users updated.
19418 Don't support embedding other than in a minix partition.
19419 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
19420 proto.
19421 * include/grub/partition.h (grub_partition): New field msdostype.
19422 * util/grub-install.in: Handle openbsd and netbsd types being in
19423 part_bsd module.
19424
1e8d555b
VS
194252010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19426
19427 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
19428
19429 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
19430 * grub-core/Makefile.core.def (mdraid): Renamed to ...
19431 (mdraid09): ... this.
19432 (mdraid1x): New module.
19433 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
19434 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
19435
899d8af4
VS
194362010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19437
19438 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
19439 vsprintf.
19440
40901acd
CW
194412010-09-20 Colin Watson <cjwatson@ubuntu.com>
19442
19443 * grub-core/commands/efi/lsefimmap.c: Correct header.
19444 * NEWS: Update.
19445
dfe3b247
CW
194462010-09-20 Colin Watson <cjwatson@ubuntu.com>
19447
19448 * util/grub-editenv.c (argp_parser): Don't pass translated strings
19449 as printf format strings; the translations might contain '%' which
19450 could cause a crash.
19451 (main): Likewise.
19452 * util/grub-fstest.c (argp_parser): Likewise.
19453 * util/grub-setup.c (argp_parser): Likewise.
19454 (main): Likewise.
19455
3286a4b4
VS
194562010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19457
19458 Use argp in grub-fstest.
19459
19460 * util/grub-fstest.c: Don't include getopt.h.
19461 Include argp.h.
19462 (root): New variable.
19463 (args_count): Likewise.
19464 (nparm): Likewise.
19465 (num_disks): Likewise.
19466 (images): Likewise.
19467 (cmd): Likewise.
19468 (debug_str): Likewise.
19469 (args): Likewise.
19470 (options): Transformed to argp.
19471 (usage): Removed.
19472 (main): Split argument parsing into ...
19473 (argp_parser): ... this. Changed to argp format.
19474 (argp): New variable.
19475 (main): Use argp_parse.
19476
3dccbe4b
TG
194772010-09-20 Tristan Gingold <gingold@free.fr>
194782010-09-20 Robert Millan <rmh.grub@aybabtu.com>
194792010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19480
19481 * grub-core/commands/efi/lsefimmap.c: New file.
19482 * grub-core/Makefile.core.def (lsefimmap): New module.
19483 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
19484
38c259a7
VS
194852010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19486
19487 Pause the execution (10s max) if any errors are displayed so the user
19488 has a chance to see them.
19489
19490 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
19491 (grub_print_error): Increment grub_err_printed_errors.
19492 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
19493 execution if any errors were displayed.
19494 (show_menu): Remove old code for pause.
19495 * grub-core/normal/menu_entry.c (run): Likewise.
19496 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
19497 users updated.
19498 (grub_normal_get_char_counter): Likewise.
19499 * include/grub/err.h (grub_err_printed_errors): New external variable.
19500 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
19501
f218b09c
VS
195022010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19503
19504 Support multiboot VBE info.
19505
19506 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19507 Take VBE info into account.
19508 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
19509 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19510 Call fill_vbe_info when appropriate.
19511 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
19512 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
19513 as supported.
19514 (grub_multiboot_get_mbi_size): Take new tags into account.
19515 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
19516 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19517 Call fill_vbe_tag when appropriate.
19518 (grub_multiboot_make_mbi): Properly align tags.
19519 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
19520 function.
19521 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
19522 proto.
19523 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
19524
a9cc5438
VS
195252010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19526
19527 Suport manual terminal geometry specification.
19528
19529 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
19530 Save state in grub_ofconsole_terminfo_output.
19531 (grub_ofconsole_term): Use grub_terminfo_getwh.
19532 (grub_ofconsole_getwh): Removed.
19533 * grub-core/term/serial.c (grub_serial_getwh): Removed.
19534 (grub_serial_term): Use grub_terminfo_getwh.
19535 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
19536 (options): New struct.
19537 (OPTION_*): New enum.
19538 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
19539 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
19540 width and height.
19541 (grub_terminfo_getwh): New proto.
19542 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
19543
1a8fed20
VS
195442010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19545
19546 Handle legacy "terminal" command.
19547
19548 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
19549 and FLAG_TERMINAL.
19550 (legacy_commands): Add terminal and title.
19551 (grub_legacy_parse): Handle terminal. Simplify title handling.
19552
41e9c57d
VS
195532010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19554
19555 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
19556 parameters overflow.
19557
61c874c5
CW
195582010-09-20 Colin Watson <cjwatson@ubuntu.com>
19559
19560 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
19561 widthspec.h.
19562
19563 * docs/grub.texi (Shell-like scripting): Document `!'.
19564 (Network): Simplify using new i386-pc-pxe format. Mention
19565 grub-mknetdir.
19566
19567 * NEWS: Update.
19568
943682b4
CW
195692010-09-20 Colin Watson <cjwatson@ubuntu.com>
19570
19571 * Makefile.am (SUBDIRS): Restore "."; it's important to force
19572 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
19573 when needed.
19574
6d3d698d
CW
195752010-09-20 Colin Watson <cjwatson@ubuntu.com>
19576
19577 * grub-core/commands/efi/lsefisystab.c: Correct header.
19578 * grub-core/commands/efi/lssal.c: Likewise.
19579 * grub-core/commands/testload.c: Likewise.
19580
c982589f
CW
195812010-09-20 Colin Watson <cjwatson@ubuntu.com>
19582
19583 * util/grub-mkrescue.in: Add explicit root argument to --set to
19584 prevent the UUID being interpreted as an argument to --set (matches
19585 previous change to prepare_grub_to_access_device).
19586
a63c31b6
CW
195872010-09-20 Colin Watson <cjwatson@ubuntu.com>
19588
19589 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
19590 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
19591 the verbosity of later #ifs.
19592 (find_partition_start): Define this function on FreeBSD too.
19593 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
19594 function.
19595 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
19596 on FreeBSD.
19597
6439b8ee
YB
195982010-09-20 Yves Blusseau <blusseau@zetam.org>
19599
19600 * util/grub-editenv.c: Use argp instead of getopt.
19601
c5930ec8
YB
196022010-09-20 Yves Blusseau <blusseau@zetam.org>
19603
19604 * util/grub-setup.c: Use argp instead of getopt.
19605
15c69261
YB
196062010-09-20 Yves Blusseau <blusseau@zetam.org>
19607
19608 Use gnulib-tool to create gnulib source files.
19609
19610 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
19611 grub-core/gnulib directories
19612 * .bzignore: Add **/.deps and autogenerated gnulib files
19613 * configure.ac: Assign auxiliary directory to build-aux, add invocation
19614 of gnulib macros, add grub-core/gnulib/Makefile
19615 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
19616 include m4 directory to aclocal.
19617 * Makefile.util.def: Remove direct compilation of gnulib source files
19618 and use the new grub-core/gnulib/libgnu.a.
19619 * build-aux/config.rpath: move config.rpath from top directory to
19620 build-aux
19621 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
19622 in gnulib headers
19623 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
19624 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
19625 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
19626 header.
19627 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
19628 string.
19629
e511c9f5
YB
196302010-09-20 Yves Blusseau <blusseau@zetam.org>
19631
19632 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
19633 grub-core/genmod.sh and grub-core/gensyminfo.sh
19634
c2dede05
BC
196352010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
19636
19637 Add a test for echo command options.
19638
19639 * tests/grub_cmd_echo.in: New test.
19640 * Makefile.util.def: Rules for new test.
19641
c55f5018
SJ
196422010-09-20 Szymon Janc <szymon@janc.net.pl>
19643
19644 Remove crc.mod and move crc command to hashsum.mod.
19645 Remove lib/crc.c - users updated to use gcrypt implementation.
19646
19647 * grub-core/commands/crc.c: Removed.
19648 * grub-core/Makefile.core.def (crc): Module removed.
19649 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
19650 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
19651 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
19652 * grub-core/lib/crc.c: Removed.
19653 * include/grub/lib/crc.h: Removed.
19654 * Makefile.util.def (crc): Remove lib/crc.c
19655 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
19656 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
19657 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
19658 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
19659 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
19660 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
19661
e0337366
VS
196622010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19663
19664 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
19665
742f9232
VS
196662010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19667
19668 Split config.h for util and core.
19669
19670 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
19671 (ADDR32): Likewise.
19672 (DATA32): Likewise.
19673 (BSS_START_SYMBOL): Likewise.
19674 (END_SYMBOL): Likewise.
19675 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
19676 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
19677 * config.h.in: New file.
19678 * configure.ac: Use config-util.h as config define file.
19679 Rename MACHINE into GRUB_MACHINE. All users updated.
19680 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
19681 updated.
19682 (NESTED_FUNC_ATTR): Likewise.
19683 Substitue new variables.
19684 (COND_HAVE_ASM_USCORE): New conditional.
19685 * grub-core/Makefile.am (ASM_PREFIX): New variable.
19686 (kernel_syms.lst): Use ASM_PREFIX.
19687 * grub-core/kern/emu/console.c: Include config-util.h.
19688 * grub-core/kern/emu/misc.c: Likewise.
19689 * grub-core/kern/emu/mm.c: Likewise.
19690 * include/grub/emu/misc.h: Likewise.
19691 * include/grub/libgcc.h: Likewise.
19692
39feb0e8
VS
196932010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19694
19695 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
19696 constants usage.
19697 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
19698 Fix GRUB_TERM_KEY_* constants usage.
19699 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
19700
9af6dac3
VS
197012010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19702
19703 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
19704 print pointer.
19705 * grub-core/bus/usb/uhci.c: Remove empty define.
19706 (grub_uhci_check_transfer): Add missing cast.
19707 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
19708 print pointer.
19709 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
19710 PRIuGRUB_SIZE.
19711 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
19712
d6d94820
VS
197132010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19714
19715 * grub-core/Makefile.core.def (legacycfg): Add
19716 lib/i386/pc/vesa_modes_table.c on emu.
19717
3572f2b6
BC
197182010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
19719
19720 Reduce number of temporary files generated by build system.
19721
19722 * grub-core/gencmdlist.sh: Removed.
19723 * grub-core/genfslist.sh: Removed.
19724 * grub-core/genhandlerlist.sh: Removed.
19725 * grub-core/genmodsrc.sh: Removed.
19726 * grub-core/genpartmaplist.sh: Removed.
19727 * grub-core/genparttoollist.sh: Removed.
19728 * grub-core/gentermiinallist.sh: Removed.
19729 * grub-core/genvideolist.sh: Removed.
19730
19731 * grub-core/genmod.sh.in: New file.
19732 * grub-core/gensyminfo.sh.in: New file.
19733
19734 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
19735 * conf/Makefile.extra-dist: Update with new files.
19736 * gentpl.py: Remove rules related to unnecessary temporary files.
19737 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
19738 and und-* files.
19739 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
19740 genmod.sh scripts.
19741 * grub-core/bus/usb/uhci.c: Remove empty #define.
19742 * grub-core/genmoddep.awk: Updated with new syminfo format.
19743 * util/bash-completion.d/Makefile.am: Add config.log to
19744 CLEANFILES.
19745
c836b030
YB
197462010-09-19 Yves Blusseau <blusseau@zetam.org>
19747
19748 * Makefile.util.def: Add forgotten $(LIBINTL) library.
19749
2f4e8053
BC
197502010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
19751
19752 * util/grub-mkconfig.in: Check the config script for syntax errors
19753 before saving.
19754
75831c34
CW
197552010-09-19 Colin Watson <cjwatson@ubuntu.com>
197562010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19757
19758 * Makefile.util.def (grub-install): Use util/grub-install.in on all
19759 platforms.
19760 * util/grub-install.in: Add EFI and IEEE1275 support.
19761 * util/i386/efi/grub-install.in: Removed.
19762 * util/ieee1275/grub-install.in: Likewise.
19763
eaf41b25
VS
197642010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19765
19766 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
19767 (grub_cmd_cmosclean): Likewise.
19768 (GRUB_MOD_INIT): Register command cmosclean.
19769 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
19770 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
19771
1a9130dd
CPE
197722010-09-18 Carles Pina i Estany <carles@pina.cat>
197732010-09-18 Aleš Nesrsta <starous@volny.cz>
197742010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19775
19776 Add keyboard layouts support.
19777
19778 * Makefile.util.def (grub-mklayout): New file.
19779 (grub-kbdcomp): New script.
19780 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
19781 Add keyboard_layouts.h.
19782 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
19783 commands/boot.c on yeeloong.
19784 (keylayouts): New module.
19785 * grub-core/bus/usb/ohci.c
19786 * grub-core/bus/usb/uhci.c
19787 * grub-core/bus/usb/usbhub.c (rescan): New variable.
19788 (grub_usb_add_hub): Poll interrupt pipe for device handling.
19789 (attach_root_port): Likewise.
19790 (poll_nonroot_hub): Likewise.
19791 (grub_usb_poll_devices): Likewise.
19792 (detach_device): Close transfer.
19793 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
19794 function.
19795 (grub_usb_bulk_setup_readwrite): Likewise.
19796 (grub_usb_bulk_finish_readwrite): Likewise.
19797 * grub-core/commands/keylayouts.c: New file.
19798 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
19799 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
19800 aliases.
19801 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
19802 support scancode 2.
19803 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
19804 * include/grub/keyboard_layouts.h: New file.
19805 * util/grub-mklayout.c: New file.
19806 * util/grub-kbdcomp.in: Likewise.
19807
a1d84a5e
VS
198082010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19809
19810 Unify memory types.
19811
19812 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
19813 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
19814 types.
19815 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
19816 (grub_upper_mem): Likewise.
19817 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
19818 * include/grub/memory.h (grub_memory_type_t): New enum.
19819 All users updated.
19820
9696382e
VS
198212010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19822
19823 * grub-core/Makefile.core.def (lsapm): New module.
19824 * grub-core/commands/i386/pc/lsapm.c: New file.
19825 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
19826 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
19827 Likewise.
19828 * include/grub/i386/pc/apm.h: New file.
19829 * include/multiboot.h (multiboot_apm_info): New struct.
19830
198312010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19832
19833 GRUB-legacy configuration file support.
19834
19835 * Makefile.util.def (grub-menulst2cfg): New util.
19836 * docs/man/grub-menulst2cfg.h2m: New file.
19837 * grub-core/Makefile.core.def (legacycfg): New module.
19838 * grub-core/commands/legacycfg.c: New file.
19839 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
19840 (grub_normal_add_menu_entry): ... this.
19841 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
19842 (grub_normal_set_password): ...this.
19843 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
19844 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
19845 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
19846 * grub-core/lib/legacy_parse.c: New file.
19847 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
19848 * include/grub/i386/pc/vesa_modes_table.h: New file.
19849 * include/grub/legacy_parse.h: Likewise.
19850 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
19851 * util/grub-menulst2cfg.c: New file.
19852
bf8d1338
CW
198532010-09-17 Colin Watson <cjwatson@ubuntu.com>
19854
19855 * grub-core/kern/emu/hostdisk.c
19856 (convert_system_partition_to_system_disk): Initialise node.
19857
9c0bad2e
CW
198582010-09-17 Colin Watson <cjwatson@ubuntu.com>
19859
19860 * grub-core/kern/emu/hostdisk.c
19861 (convert_system_partition_to_system_disk): Fix devmapper memory pool
19862 leak.
19863 Reported and based on patch by: Modestas Vainius.
19864
a939d135
CW
198652010-09-17 Colin Watson <cjwatson@ubuntu.com>
19866
19867 Fix DM-RAID probing with recent versions of device-mapper udev
19868 rules.
19869
19870 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
19871 canonicalise device paths under /dev/mapper/.
19872 (convert_system_partition_to_system_disk): Compare the
19873 uncanonicalised path to /dev/mapper/ rather than the canonicalised
19874 path, since device nodes under /dev/mapper/ are often symlinks.
19875
0f7ee3c9
YB
198762010-09-17 Yves Blusseau <blusseau@zetam.org>
19877
19878 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
19879
10854d0d
YB
198802010-09-16 Yves Blusseau <blusseau@zetam.org>
19881
19882 * configure.ac: Avoid some annoying error messages if freetype-config
19883 program is not found.
19884
108538d8
CW
198852010-09-16 Colin Watson <cjwatson@ubuntu.com>
19886
19887 Support RAID on virtio devices, and others.
19888
19889 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
19890 Rename to ...
19891 [__MINGW32__] (grub_find_device): ... this.
19892 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
19893 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
19894 reasonable default if dir is NULL.
19895 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
19896 ...
19897 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
19898 (grub_guess_root_device): Update callers.
19899 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
19900
19901 * util/raid.c (grub_util_getdiskname): Remove.
19902 (grub_util_raid_getmembers): Use grub_find_device rather than
19903 grub_util_getdiskname.
19904
e5bfc130
CW
199052010-09-16 Colin Watson <cjwatson@ubuntu.com>
19906
19907 * docs/grub.texi (serial): Remove obsolete comment about GRUB
19908 needing to be compiled with serial support.
19909 (ls): Indicate that multiple files are accepted.
19910 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
19911 indicate that multiple files are accepted.
19912
be458ae2
CW
199132010-09-16 Colin Watson <cjwatson@ubuntu.com>
19914
19915 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
19916 libgrub_a_init.c, and util/bash-completion.d/grub.
19917
cb731b5e
VS
199182010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19919
19920 * util/grub-setup.c (setup): Fix incorrect container semantics.
19921
35139e8a
VS
199222010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19923
19924 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
19925 misusage.
19926 Reported by: J. Nick Terry
19927
e50fca4a
VS
199282010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19929
19930 Move embedding routines to partmap sources files.
19931
19932 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
19933 [GRUB_UTIL]: New variable.
19934 (gpt_partition_map_iterate): Set part.parent.
19935 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
19936 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
19937 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
19938 New function.
19939 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
19940 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
19941 (grub_partition_map) [GRUB_UTIL]: New field embed.
19942 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
19943 (setup): Use ->embed.
19944
f00478b7
VS
199452010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19946
19947 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
19948 function.
19949 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
19950 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
19951
2b94e3ff
YB
199522010-09-15 Yves Blusseau <blusseau@zetam.org>
19953
19954 Add function to get completions from usage.
19955
19956 * util/bash-completion.d/grub-completion.bash.in: Add function to get
19957 completions from usage. Use LC_ALL=C to get options properly.
19958
2e04a006
VS
199592010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19960
19961 * grub-core/gnulib/basename-lgpl.c: Imported.
19962 * grub-core/gnulib/basename.c: Likewise.
19963 * grub-core/gnulib/dirname-lgpl.c: Likewise.
19964 * grub-core/gnulib/dirname.c: Likewise.
19965 * grub-core/gnulib/dirname.h: Likewise.
19966 * grub-core/gnulib/stripslash.c: Likewise.
19967
5dcdf93a
VS
199682010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19969
19970 * grub-core/gnulib/error.c: Resynced.
19971 * grub-core/gnulib/getopt.c: Likewise.
19972 * grub-core/gnulib/getopt_int.h: Likewise.
19973 * grub-core/gnulib/regex.h: Likewise.
19974 * grub-core/gnulib/regex_internal.c: Likewise.
19975 * grub-core/gnulib/regex_internal.h: Likewise.
19976
014f47b7
SJ
199772010-09-15 Szymon Janc <szymon@janc.net.pl>
19978
19979 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
19980 CRC calculations and validity checks.
19981 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
19982 calculations.
19983
dd521a4a
SJ
199842010-09-15 Szymon Janc <szymon@janc.net.pl>
19985
19986 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
19987
79c4eeb9
VS
199882010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19989
19990 Fix incorrect echo options handling.
19991 Reported by: Yves Blusseau.
19992
19993 * include/grub/command.h (grub_command_flags_t): New flags
19994 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
19995 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
19996 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
19997
ed80f7d5
VS
199982010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19999
20000 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
20001 users updated.
20002 (GRUB_COMMAND_FLAG_MENU): Likewise.
20003 (GRUB_COMMAND_FLAG_BOTH): Likewise.
20004 (GRUB_COMMAND_FLAG_TITLE): Removed.
20005 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
20006 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
20007 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
20008 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
20009 (grub_command_flags_t): New enum. All users updated.
20010
5fe7620a
SG
200112010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
20012
20013 Fix solaris compilation.
20014
20015 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
20016 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
20017 (grub-emu-list): Likewise.
20018
545b752f
VS
200192010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20020
20021 Remove deprecated root command.
20022
20023 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
20024 updated.
20025
6c1a338c
VS
200262010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20027
20028 * util/i386/pc/grub-setup.c: Merge this ...
20029 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
20030 * util/grub-setup.c: ... into this.
20031 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
20032 New struct.
20033
200342010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20035
20036 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
20037 possible.
20038
d2ea4551
VS
200392010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20040
20041 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
20042 allocate p.
20043
3c3b5040
VS
200442010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20045
20046 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
20047 explicit root argument to set to prevent UUID to be interpreted as
20048 argument to set.
20049
b71c3fae
VS
200502010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20051
20052 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
20053
275433e6
VS
200542010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20055
20056 Don't export grub_gate_a20.
20057
20058 * grub-core/kern/i386/pc/init.c: Remove leftovers.
20059 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
20060 to ...
20061 (grub_gate_a20): ... this. All users updated.
20062 * include/grub/i386/pc/init.h: Removed. All users updated.
20063
a5dbb1f1
VS
200642010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20065
20066 Create euro.pf2 which supports most European languages.
20067
20068 * Makefile.am (grubdata_DATA): Add euro.pf2.
20069 (euro.pf2): New target.
20070 (CLEANFILES): Add euro.pf2.
20071
62a747cb
VS
200722010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20073
20074 * configure.ac: Disable emu-usb by default to prevent inadvertent
20075 device takeover.
20076
608e43b1
VS
200772010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20078
20079 Disable usbserial on grub-emu since our libusb code isn't good enough
20080 yet.
20081
20082 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
20083 (usbserial_pl2303): Likewise.
20084 (usbserial_ftdi): Likewise.
20085
94564f81
VS
200862010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20087
20088 * include/grub/disk.h (grub_disk): Remove has_partitions.
20089 All users updated.
20090 * disk/loopback.c (grub_loopback): Remove has_partitions.
20091 All users updated.
20092 (options): Remove partitions. All users updated.
20093 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
20094 * util/i386/pc/grub-setup.c (setup): copy partition table only when
20095 actual partition table is found.
20096
3352800b
VS
200972010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20098
20099 Remove readability checks (too many false negatives).
20100
20101 * util/grub-install.in: Remove readability checks.
20102 * util/grub-mkconfig.in: Likewise.
20103 * util/grub.d/10_hurd.in: Likewise.
20104 * util/grub.d/10_kfreebsd.in: Likewise.
20105 * util/grub.d/10_linux.in: Likewise.
20106 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
20107 way.
20108
2419f17a
VS
201092010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20110
20111 Enable acpi shutdown on all ACPI platforms.
20112
20113 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
20114 on coreboo, multiboot and EFI.
20115 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
20116 (grub_acpi_halt): Likewise.
20117 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
20118 (grub_cmd_halt): Don't call grub_acpi_halt directly.
20119 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
20120 * grub-core/lib/i386/halt.c (grub_halt)
20121 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
20122
0575c7c3
VS
201232010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20124
20125 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
20126 context.
20127
54ac3cd1
VS
201282010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20129
20130 * grub-core/video/efi_gop.c: Fix over-80-chars line.
20131 * grub-core/video/efi_uga.c: Likewise.
20132
b2a30ac5
VS
201332010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20134
20135 Filter devaliases and never open same device twice.
20136
20137 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
20138 (last_ihandle): Likewise.
20139 (ofdisk_hash_ent): New member shortest.
20140 (ofdisk_hash_add): Add canonical path too.
20141 (scan): New function.
20142 (grub_ofdisk_iterate): Iterate over hashed entries.
20143 (compute_dev_path): Don't add :0.
20144 (grub_ofdisk_open): Don't really open the disk.
20145 (grub_ofdisk_close): Avoid closing unrelated disk.
20146 (grub_ofdisk_read): Implement reopen logic.
20147 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
20148 New function.
20149 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
20150 New proto.
20151
fb53b340
VS
201522010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20153
20154 Fix sparc64.
20155
20156 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
20157 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
20158 right address. Add sparc64_ieee1275_ldflags.
20159 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
20160 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
20161 to grub_host_to_target_addr
20162 (load_image): Likewise.
20163
f452b040
VS
201642010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20165
20166 * grub-core/normal/completion.c (complete_file): Handle device
20167 containing slash.
20168 Fix based on patch by Doug Nazar.
20169
9b5b2541
VS
201702010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20171
20172 grub-mknetdir script.
20173
20174 * Makefile.util.def (grub-mknetdir): New module.
20175 * tests/util/grub-shell.in: Support boot=net
20176 * util/grub-mknetdir.in: New file.
20177
9d2be652
VS
201782010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20179
20180 videoinfo on non-vbe.
20181
20182 * grub-core/Makefile.core.def (vbeinfo): Removed.
20183 (vbetest): Removed.
20184 (videoinfo): New module.
20185 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
20186 * grub-core/commands/i386/pc/vbetest.c: Removed.
20187 * grub-core/commands/videoinfo.c: New file.
20188 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
20189 specification.
20190 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
20191 as vbetest.
20192 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
20193 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
20194 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
20195 mode_number. New parameter mode. All users updated.
20196 (grub_video_gop_iterate): New function.
20197 (grub_video_efi_gop): New member iterate.
20198 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
20199 (grub_vbe_set_video_mode): Remove setting useless fields.
20200 (vbe2videoinfo): New function.
20201 (grub_video_vbe_iterate): Likewise.
20202 (grub_video_vbe_setup): Use vbe2videoinfo.
20203 (grub_video_vbe_print_adapter_specific_info): New function.
20204 (grub_video_vbe_adapter): New fields iterate and
20205 print_adapter_specific_info.
20206 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
20207 All users updated.
20208 (grub_video_mode_info): New field mode_number.
20209 (grub_video_adapter): New fields iterate and
20210 print_adapter_specific_info.
20211
179503f5
TG
202122010-09-13 Tristan Gingold <gingold@free.fr>
202132010-09-13 Robert Millan <rmh.grub@aybabtu.com>
202142010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20215
20216 * grub-core/commands/efi/lsefisystab.c: New file.
20217 * grub-core/commands/efi/lssal.c: Likewise.
20218 * grub-core/Makefile.core.def (lsacpi): New module.
20219 (lsefisystab): Likewise.
20220 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
20221 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
20222 (grub_efi_sal_system_table): New struct.
20223 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
20224 (grub_efi_sal_system_table_memory_descriptor): Likewise.
20225 (grub_efi_sal_system_table_platform_features): Likewise.
20226 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
20227 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
20228 (grub_efi_sal_system_table_ap_wakeup): Likewise.
20229 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
20230
cf9827de
VS
202312010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20232
20233 Support explicit user claim that a device is BIOS-visible.
20234
20235 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
20236 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
20237 * grub-core/kern/emu/hostdisk.c
20238 (convert_system_partition_to_system_disk): Support mdX.
20239 (find_system_device): New parameter add. All users updated.
20240 (grub_util_biosdisk_is_present): New function.
20241 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
20242 proto.
20243
53f0eb1f
VS
202442010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20245
20246 Search hints support.
20247
20248 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
20249 All users updated.
20250
b23ffd70
YB
202512010-09-13 Yves Blusseau <blusseau@zetam.org>
20252
20253 Bash completion script for util commands
20254
20255 * Makefile.am: Add util/bash-completion.d directory
20256 * configure.ac: Likewise.
20257 * util/bash-completion.d/Makefile.am: New file.
20258 * util/bash-completion.d/grub-completion.bash.in: Likewise.
20259
d547dc28
VS
202602010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20261
20262 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
20263 (print_backlog): set backlog_ucs4 and backlog_glyphs.
20264 Reported by: Yves Blusseau.
20265
2fc8ccb9
VS
202662010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20267
20268 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
20269 partition size and offset.
20270
d8a84076
VS
202712010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20272
20273 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
20274
84fb3b3d
VS
202752010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20276
20277 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
20278
768ec2e2
VS
202792010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20280
20281 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
20282 (grub_xvasprintf): Likewise.
20283
4870900f
VS
202842010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20285
20286 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
20287
faca6bec
VS
202882010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20289
20290 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
20291 args ending with NULL.
20292
202932010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
20294
20295 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
20296 pointer.
20297
3c70f225
SJ
202982010-09-11 Szymon Janc <szymon@janc.net.pl>
20299
20300 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
20301
4df7996d
VS
203022010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20303
20304 Shutdown using ACPI.
20305
20306 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
20307 * grub-core/commands/acpihalt.c: New file.
20308 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
20309 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
20310 (grub_acpi_halt): New proto.
20311 (GRUB_ACPI_SLP_EN): New const.
20312 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
20313 (GRUB_ACPI_OPCODE_*): New enum.
20314 (GRUB_ACPI_EXTOPCODE_*): Likewise.
20315
126b4c32
TG
203162010-09-11 Tristan Gingold <gingold@free.fr>
203172010-09-11 Robert Millan <rmh.grub@aybabtu.com>
203182010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20319
20320 * commands/lsacpi.c: New file.
20321 * grub-core/Makefile.core.def (lsacpi): New module.
20322 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
20323 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
20324 (grub_acpi_madt_entry_header): New struct.
20325 (grub_acpi_madt): Likewise.
20326 (grub_acpi_madt_entry_interrupt_override): Likewise.
20327 (grub_acpi_madt_entry_sapic): Likewise.
20328 (grub_acpi_madt_entry_lsapic): Likewise.
20329 (grub_acpi_madt_entry_platform_int_source): Likewise.
20330 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
20331 (PRIuGRUB_UINT32_T): Likewise.
20332 (PRIxGRUB_UINT64_T): Likewise.
20333
1aa4fe88
VS
203342010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20335
20336 Implement loading palette on ieee1275_fb.
20337
20338 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
20339 (have_setcolors): Likewise.
20340 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
20341 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
20342 (grub_video_ieee1275_set_palette): Implement.
20343
25761e13
VS
203442010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
203452010-09-11 Colin Watson <cjwatson@ubuntu.com>
20346
20347 * util/grub-install.in (grub_partition): New variable.
20348 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
20349 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
20350 Fixes a bug reported by Yves Blusseau.
20351
050abaea
VS
203522010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20353
20354 Fix emu on mipsel.
20355
20356 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
20357 =grub_cpu_flush_cache on all mips and not only yeeloong.
20358 * configure.ac (COND_mips): New conditional.
20359 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
20360 platforms.
20361 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
20362 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
20363 [GRUB_LINKER_HAVE_INIT]: New function.
20364 (grub_emu_post_init): Likewise.
20365 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
20366 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
20367 * include/grub/cache.h (_mips): Include mips/cache.h.
20368 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
20369 LVM and RAID prototypes.
20370 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
20371 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
20372 function.
20373
5ed7d816
CW
203742010-09-10 Colin Watson <cjwatson@ubuntu.com>
20375
20376 * util/grub-install.in: Don't try to verify core.img until after
20377 running grub-mkimage to create it.
20378
90367e04
RM
203792010-09-10 Robert Millan <rmh@gnu.org>
20380
20381 * util/grub.d/10_hurd.in: Add misc readability checks.
20382 * util/grub.d/10_kfreebsd.in: Likewise.
20383 * util/grub.d/10_linux.in: Likewise.
20384
c452fa66
CW
203852010-09-10 Colin Watson <cjwatson@ubuntu.com>
20386
20387 * util/grub-install.in: ${imgext} won't be defined here until the
20388 install branch is merged. For the meantime, only verify core.img on
20389 i386-pc and sparc64-ieee1275 platforms.
20390
c38fe9f4
RM
203912010-09-10 Robert Millan <rmh@gnu.org>
20392
20393 Solaris support in grub_find_zpool_from_dir(). Thanks
20394 Seth Goldberg for referring to getextmntent() facility.
20395
20396 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
20397 `sys/mkdev.h'.
20398 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
20399 `<sys/mnttab.h>'.
20400 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
20401 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
20402 method for finding zpool name.
20403
905f7773
CW
204042010-09-10 Colin Watson <cjwatson@ubuntu.com>
20405
20406 grub-fstest needs the host and hostfs modules while other utilities
20407 actively require those modules to be absent, so grub-fstest needs
20408 its own initialisation and finalisation code.
20409
20410 * Makefile.am (grub_fstest.pp): New target.
20411 (grub_fstest_init.lst): Likewise.
20412 (grub_fstest_init.c): Likewise.
20413 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
20414
fb90b546
RM
204152010-09-10 Robert Millan <rmh@gnu.org>
20416
20417 * configure.ac: Check for `struct statfs.f_fstypename' and
20418 `struct statfs.f_mntfromname'.
20419
20420 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
20421 kFreeBSD-specific code.
20422
66d4bea5
RM
204232010-09-10 Robert Millan <rmh@gnu.org>
20424
20425 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
20426 on ZFS. Now non-main filesystems are supported as / too.
20427
b6a690ee
CW
204282010-09-09 Colin Watson <cjwatson@ubuntu.com>
20429
20430 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
20431 and grub-core/disk/host.c to ...
20432 (grub-fstest): ... here. Having the host disk implementation
20433 present confuses grub-probe and other utility programs.
20434
20435 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
20436 when writing to a file, not when writing to stdout.
20437
8901b00c 204382010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
20439
20440 * tests/partmap_test.in: New test for partitions.
20441 * Makefile.util.def: Rules for new test.
20442
7bf45fdd
RM
204432010-09-09 Robert Millan <rmh@gnu.org>
20444
20445 * util/grub-probe.c (probe): Fix a pair of unhandled error
20446 conditions.
20447
4dfbc574
RM
204482010-09-09 Robert Millan <rmh@gnu.org>
20449
20450 Basic Btrfs support (detection and UUID).
20451
20452 * grub-core/fs/btrfs.c: New file.
20453 * Makefile.util.def (library): Register btrfs.c.
20454 * grub-core/Makefile.core.def: Likewise.
20455
6b8e78ae
RM
204562010-09-08 Robert Millan <rmh@gnu.org>
20457
20458 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
20459 with (optional) parameters to specify device and relative path.
20460 * util/grub-install.in: Use is_path_readable_by_grub() to
20461 verify readability of a few critical files.
20462 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
20463 verify readability of grub.cfg.new.
20464
27f21a8b
VS
204652010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20466
20467 Split minix.mod into minix.mod and minix2.mod.
20468
20469 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
20470 * grub-core/Makefile.core.def (minix2): New module.
20471 * grub-core/fs/minix.c: Use definitions instead of runtime version
20472 checking.
20473 * grub-core/fs/minix2.c: New file.
20474
c0e53ea5
YB
204752010-09-08 Yves Blusseau <blusseau@zetam.org>
20476
20477 Add new --boot-directory option to replace --root-directory
20478
20479 * util/grub-install.in: Add new --boot-directory option
20480 * util/grub-reboot.in: Likewise.
20481 * util/grub-set-default.in: Likewise.
20482
b9fe6ea2
YB
204832010-09-08 Yves Blusseau <blusseau@zetam.org>
20484
20485 * util/grub-mkconfig.in: Use new variable.
20486
d87aedff
YB
204872010-09-08 Yves Blusseau <blusseau@zetam.org>
20488
20489 * configure.ac: Define some useful variables.
20490
e55e8495
VS
204912010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20492
20493 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20494 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
20495 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
20496 Use terminfo and don't use cursor-on/cursor-off unless it's known
20497 to work.
20498 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
20499 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
20500
6fa6d675
CW
205012010-09-08 Colin Watson <cjwatson@ubuntu.com>
20502
20503 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
20504 starts with "(,", fill the drive containing the loaded image in
20505 between those two characters, but expect that a full partition
20506 specification including partition map names will follow.
20507
92f2aef0
RM
205082010-09-08 Robert Millan <rmh@gnu.org>
20509
20510 * configure.ac: Remove `--enable-grub-fstest' option.
20511 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
20512
20513 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
20514 `grub-fstest' instead of `grub-probe' for readability verification.
20515 * util/grub-probe.c (probe): Remove readability verification kludge.
20516
99fd620d
RM
205172010-09-08 Robert Millan <rmh@gnu.org>
20518
20519 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
20520 initializing `GRUB_FS'.
20521
058e30ac 205222010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
20523
20524 Not command (!) support to GRUB script.
20525
20526 * tests/grub_script_not.in: New test.
20527 * Makefile.util.def: Rules for new test.
20528
20529 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
20530 ! command as a special case.
20531 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
20532
b61d05ed 205332010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20534
058e30ac 20535 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
20536 grub_free.
b61d05ed 20537
4d69c786 205382010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20539
20540 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
20541
aa3119c4 205422010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20543
20544 * docs/grub.texi (Shell-like scripting): Documentation for break,
20545 continue, shift and return commands.
20546
db0f7e3d
VS
205472010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
20548
20549 Rename CD-ROM to cd on BIOS.
20550
20551 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
20552 "cd".
20553 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
20554
88b87c93
VS
205552010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20556
20557 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
20558 * util/grub-probe.c (main): Likewise.
20559 * util/i386/pc/grub-setup.c (main): Likewise.
20560 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
20561 Reported and debugged by: alexxy
20562
294f324d
VS
205632010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20564
20565 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
20566 diagnostic info.
20567
d7ee3441
JS
205682010-09-05 Jo Shields <directhex@apebox.org>
20569
20570 * util/grub.d/30_os-prober.in: Add missing classes.
20571
d7e06c1f
VS
205722010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20573
20574 * docs/grub.texi (Theme file format): Document new position format.
20575
fc157e53
VS
205762010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20577
20578 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
20579 a table. Use @code instead of @verbatim.
20580
506e9a1c
CB
205812010-09-05 Colin D Bennett <colin@gibibit.com>
20582
20583 Gfxmenu documentation.
20584
20585 * docs/grub.texi (Theme file format): New chapter.
20586
f0aff67c
SJ
205872010-09-05 Szymon Janc <szymon@janc.net.pl>
20588
20589 * grub-core/Makefile.core.def (xzio): New module.
20590 * grub-core/io/xzio.c: New file.
20591 * grub-core/lib/xzembed/xz.h: New file (from xembed).
20592 * grub-core/lib/xzembed/xz_config.h: Likewise.
20593 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
20594 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
20595 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
20596 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
20597 * grub-core/lib/xzembed/xz_private.h: Likewise.
20598 * grub-core/lib/xzembed/xz_stream.h: Likewise.
20599 * include/grub/file.h (grub_file_filter_id): New compression filter
20600 GRUB_FILE_FILTER_XZIO.
20601
82a85062
VS
206022010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20603
20604 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
20605 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
20606 size.
20607
3579415d
VS
206082010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20609
20610 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
20611 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
20612
5124ae6d
VS
206132010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20614
20615 Uncompressed checksum support.
20616
20617 * grub-core/commands/hashsum.c (options): Add option --uncompress.
20618 (check_list): New parameter uncompress.
20619 (grub_cmd_hashsum): Handle --uncompress.
20620
9aadb3d1
VS
206212010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20622
20623 Reintroduce testload.
20624
20625 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
20626 from here ...
20627 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
20628 (GRUB_MOD_INIT): New function.
20629 (GRUB_MOD_FINI): Likewise.
20630 * grub-core/Makefile.core.def (testload): New module.
20631
a17792c3
SJ
206322010-09-05 Szymon Janc <szymon@janc.net.pl>
20633
20634 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
20635 (uint8_t): New type.
20636 (uint16_t): Likewise.
20637 (uint32_t): Likewise.
20638 (uint64_t): Likewise.
20639
b81e40a3
SJ
206402010-09-05 Szymon Janc <szymon@janc.net.pl>
20641
20642 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
20643
fc2ef117
VS
206442010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20645
20646 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
20647 Made static.
20648 (grub_gzfile_open): Removed. All users updated.
20649 (GRUB_MOD_INIT): New function.
20650 (GRUB_MOD_FINI): Likewise.
20651 * grub-core/kern/file.c (grub_file_filters_all): New variable.
20652 (grub_file_filters_enabled): Likewise.
20653 (grub_file_open): Handle filters.
20654 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
20655 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
20656 * include/grub/file.h (grub_file_filter_id_t): New type.
20657 (grub_file_filter_t): Likewise.
20658 (grub_file_filters_all): New extern variable.
20659 (grub_file_filters_enabled): Likewise.
20660 (grub_file_filter_register): New inline function.
20661 (grub_file_filter_unregister): Likewise.
20662 (grub_file_filter_disable): Likewise.
20663 (grub_file_filter_disable_compression): Likewise.
20664 * include/grub/gzio.h: Removed.
20665
35ee15e0
BC
206662010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20667
20668 Filename expansion support for wildcards in GRUB script.
20669
20670 * tests/grub_script_expansion.in: New test.
20671 * Makefile.util.def: Rule for new test.
20672
20673 * grub-core/commands/wildcard.c: New file, implements filename
20674 expansion support for GRUB script.
20675 * grub-core/Makefile.core.def: Rule update for regexp.mod.
20676 * grub-core/script/argv.c: Cosmetic changes.
20677 * grub-core/script/execute.c (grub_script_arglist_to_argv):
20678 Refactored to perform wildcard expansion on arguments.
20679 * include/grub/script_sh.h (grub_script_wildcard_translator): New
20680 struct.
20681
20682 * tests/util/grub-shell.in: Fix quoting for read input.
20683
5f0c4aca
BC
206842010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20685
20686 Support for updating environment variables with matched substrings
20687 of regexp.
20688
20689 * tests/grub_cmd_regexp.in: New test.
20690 * Makefile.util.def: Rule for new test.
20691
20692 * grub-core/commands/regexp.c: New option -s to update environment
20693 variables with regexp matches.
20694
3759a35f
SJ
206952010-09-04 Szymon Janc <szymon@janc.net.pl>
20696
20697 * include/grub/file.h (grub_file): New member not_easly_seekable.
20698 (grub_file_seekable): New inline function.
20699 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
20700 easily seekable.
20701 (grub_gzio_open): Set not_easly_seekable.
20702 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
20703 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
20704
ed8c6dec
BC
207052010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20706
20707 Support for options to appear multiple times on cmdline.
20708
20709 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
20710 * grub-core/commands/extcmd.c: Support for repeatable option.
20711 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
20712 repeatable option support.
20713
20714 Refactor menuentry into a regular command.
20715
20716 * grub-core/commands/menuentry.c: New file, menuentry command
20717 implementation.
20718 * grub-core/Makefile.core.def: Rule update for normal.mod.
20719 * grub-core/normal/main.c: Moved menuentry creation to
20720 grub-core/commands/menuentry.c.
20721 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
20722 (grub_menu_execute_entry_real): Removed.
20723 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
20724 function.
20725 (grub_script_execute_menuentry): Removed.
20726 * grub-core/script/parser.y (menuentry): Removed.
20727 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
20728 * grub-core/script/yylex.l (menuentry): Removed.
20729 * include/grub/menu.h (grub_menu_init): New prototype.
20730 (grub_menu_fini): New prototype.
20731 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
20732 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
20733 (grub_script_execute_sourcecode): New prototype.
20734
dacd0cf0
BC
207352010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20736
20737 "return" command for GRUB script functions.
20738
20739 * tests/grub_script_return.in: New test.
20740 * Makefile.util.def: Rules for new test.
20741
20742 * grub-core/script/execute.c (grub_script_return): New function.
20743 * grub-core/script/main.c: Register/unregister return commaond.
20744 * include/grub/script_sh.h (grub_script_return): New prototype.
20745
52e72f9d
BC
207462010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20747
20748 "setparams" command to update positional parameters.
20749
20750 * tests/grub_script_setparams.in: New test.
20751 * Makefile.util.def: Rules for new test.
20752
20753 * grub-core/script/argv.c (grub_script_argv_make): New function.
20754 * grub-core/script/execute.c (replace_scope): New function.
20755 (grub_script_setparams): New function.
20756 * grub-core/script/lexer.c: Remove unused variables.
20757 * grub-core/script/main.c: Register/unregister setparams command.
20758 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
20759 (grub_script_setparams): New prototype.
20760
25b60c91
BC
207612010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20762
20763 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
20764 grub_free order.
20765
37e7bf68
BC
207662010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20767
20768 Support for passing block of commands as an argument to extcmds.
20769
20770 * Makefile.util.def: Rules for new test.
20771 * tests/grub_script_blockarg.in: New test.
20772 * grub-core/tests/test_blockarg.c: New file, block argument
20773 command used in the test.
20774
20775 * include/grub/extcmd.h (grub_extcmd_context): New struct.
20776 (grub_register_extcmd_prio): New function prototype.
20777 (grub_extcmd_dispatcher): New function prototype.
20778 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
20779 type.
20780 * include/grub/script_sh.h (struct grub_script): New members
20781 `children', `next_siblings' and `refcnt' for block arguments and
20782 reference counting.
20783 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
20784 (grub_script_arg): New member `script' for block argument.
20785 (grub_script_argv): New member `script' for block argument.
20786 (grub_parser_param): New member `scripts' for block argument.
20787 (grub_script_mem_free): New extern function prototype.
20788 (grub_script_ref): New function prototype.
20789 (grub_script_unref): New function prototype.
20790
20791 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
20792 extcmd form to support block arguments.
20793 * grub-core/script/argv.c: Block arguments support.
20794 * grub-core/script/execute.c: Likewise.
20795 * grub-core/script/lexer.c: Likewise.
20796 * grub-core/script/main.c: Likewise.
20797 * grub-core/script/script.c: Likewise.
20798 * grub-core/script/parser.y: Likewise. New `block' and `block0'
20799 non-terminals.
20800
20801 * grub-core/commands/acpi.c: Update extcmd implementations with
20802 grub_extcmd_context_t.
20803 * grub-core/commands/cat.c: Likewise.
20804 * grub-core/commands/echo.c: Likewise.
20805 * grub-core/commands/extcmd.c: Likewise.
20806 * grub-core/commands/hashsum.c: Likewise.
20807 * grub-core/commands/hdparm.c: Likewise.
20808 * grub-core/commands/help.c: Likewise.
20809 * grub-core/commands/hexdump.c: Likewise.
20810 * grub-core/commands/i386/cpuid.c: Likewise.
20811 * grub-core/commands/i386/pc/drivemap.c: Likewise.
20812 * grub-core/commands/i386/pc/halt.c: Likewise.
20813 * grub-core/commands/i386/pc/sendkey.c: Likewise.
20814 * grub-core/commands/iorw.c: Likewise.
20815 * grub-core/commands/keystatus.c: Likewise.
20816 * grub-core/commands/loadenv.c: Likewise.
20817 * grub-core/commands/ls.c: Likewise.
20818 * grub-core/commands/lspci.c: Likewise.
20819 * grub-core/commands/memrw.c: Likewise.
20820 * grub-core/commands/probe.c: Likewise.
20821 * grub-core/commands/search_wrap.c: Likewise.
20822 * grub-core/commands/setpci.c: Likewise.
20823 * grub-core/commands/sleep.c: Likewise.
20824 * grub-core/disk/loopback.c: Likewise.
20825 * grub-core/hello/hello.c: Likewise.
20826 * grub-core/loader/i386/bsd.c: Likewise.
20827 * grub-core/loader/xnu.c: Likewise.
20828 * grub-core/term/gfxterm.c: Likewise.
20829 * grub-core/term/serial.c: Likewise.
20830 * grub-core/tests/lib/functional_test.c: Likewise.
20831
888d1500
BC
208322010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20833
20834 Multi-line quoted strings support.
20835
20836 * grub-core/script/lexer.c (append_newline): Removed.
20837 (grub_script_lexer_yywrap): Refactored.
20838 (grub_script_lexer_init): Refactored.
20839 * grub-core/script/yylex.l (yywrap): New function.
20840 (grub_lexer_resplit): New function.
20841 (grub_lexer_unput): New function.
20842 * include/grub/script_sh.h (grub_lexer_param): New members, unput
20843 and resplit.
20844 * tests/grub_script_echo1.in: Added few more testcases.
20845
dda060dd
VS
208462010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
20847
20848 * grub-core/kern/misc.c: Don't add abort alias in utils.
20849 Reported by: echoline.
20850
6556eba9
BC
208512010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
20852
20853 Add missing files into "make dist" tarball for other platforms.
20854
20855 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
20856 * conf/Makefile.common (dist_noinst_DATA): New variable.
20857 * conf/Makefile.extra-dist: Added missing make dist files.
20858 * grub-core/Makefile.core.def: Likewise.
20859
c8e7bf5f
VS
208602010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
20861
20862 Compress grub_prefix.
20863
20864 * grub-core/boot/i386/pc/lnxboot.S: Use
20865 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
20866 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
20867 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
20868 GRUB_MACHINE_PREFIX_END. All users updated.
20869 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
20870 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
20871 + 0x40.
20872 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
20873 * util/grub-mkimage.c (image_target_desc): Change data_end to
20874 prefix_end. All users updated.
20875
a7c00cdb
VS
208762010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
20877
20878 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
20879 value.
20880 (grub_openbsd_boot): Likewise.
20881 (grub_netbsd_boot): Likewise.
20882 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
20883 (grub_xnu_boot): Likewise.
20884
9f915872
VS
208852010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20886
20887 * configure.ac: Clean LIBS variable after tests.
20888
efa1bee7
CW
208892010-09-02 Colin Watson <cjwatson@ubuntu.com>
20890
20891 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
20892
61d720e5
VS
208932010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20894
20895 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
20896 echo if libdevmapper will be used.
20897
ef8e0ec8
IT
208982010-09-02 Ian Turner <Ian.Turner@deshaw.com>
20899
20900 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
20901 constant for the same file.
20902
03e261d8
VS
209032010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20904
20905 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
20906
c2a4eba6
CW
209072010-09-02 Colin Watson <cjwatson@ubuntu.com>
20908
20909 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
20910 grub-core/*.pp.
20911
9056cbf3
CW
209122010-09-02 Colin Watson <cjwatson@ubuntu.com>
20913
20914 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
20915 required by the boot protocol.
20916
20917 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
20918 ebp and edi members.
20919 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
20920 state.ebp and state.edi.
20921 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
20922 %ebp and %edi according to grub_relocator32_ebp and
20923 grub_relocator32_edi respectively.
20924 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
20925 and state.edi.
20926
529cc99a
VS
209272010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20928
20929 Add i386-pc-pxe image target.
20930
20931 * util/grub-mkimage.c (image_target_desc): New enum value
20932 IMAGE_I386_PC_PXE.
20933 (image_targets): New target i386-pc-pxe.
20934 (generate_image): Handle i386-pc-pxe image.
20935
9a093920
VS
209362010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20937
20938 Fix grub_pxe_scan.
20939
20940 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
20941 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
20942 All users updated.
20943 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
20944 (grub_pxe_pxenv): Correct type.
20945
f9cefc4e
CW
209462010-09-01 Colin Watson <cjwatson@ubuntu.com>
20947
20948 * NEWS: Document most of the important changes since 1.98.
20949
4066f57f
CW
209502010-09-01 Colin Watson <cjwatson@ubuntu.com>
20951
20952 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
20953 generated manual page) a little.
20954
da2891f9
CW
209552010-09-01 Colin Watson <cjwatson@ubuntu.com>
20956
20957 * docs/grub.texi: Add myself as an author.
20958
ad717fae
VS
209592010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
20960
20961 * Makefile.util.def (libgrub.a): Add missing sunpc.
20962 Reported by: Seth Goldberg.
20963
eefe8abd
VS
209642010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20965
20966 Interrupt wrapping and code simplifications.
20967
9494ef9a
VS
20968 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
20969 x86_noieee1275 which are functionaly equivalent in this case.
20970 (grub-install): Make source on each platform explicit. Enable on
20971 all noemu.
20972 * gentpl.py (x86_efi_pc): Removed group.
20973 (x86_noefi): Likewise.
20974 (i386_noefi): Likewise.
20975 (x86_noieee1275): Likewise.
20976 (i386_noieee1275): Likewise.
20977 (i386_noefi_noieee1275): Likewise.
20978 (i386_pc_qemu_coreboot): Likewise.
20979 (i386_coreboot_multiboot): Likewise.
20980 (i386_pc_coreboot_multiboot_qemu): Likewise.
20981 (x86_noefi_mips): Likewise.
20982 (noieee1275): Likewise.
20983 (ieee1275_mips): Likewise.
20984 (noemu_noieee1275): Likewise.
20985 (cmos): New group.
20986 (usb): Likewise.
20987 (videoinkernel): Likewise.
20988 (videomodules): Likewise.
eefe8abd 20989 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
20990 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
20991 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
20992 include/grub/loader.h, include/grub/msdos_partition.h,
20993 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
20994 include/grub/machine/console.h, include/grub/machine/vga.h,
20995 include/grub/machine/vbe.h, include/grub/machine/init.h,
20996 include/grub/machine/kernel.h, include/grub/cpu/time.h,
20997 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 20998 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
20999 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
21000 * grub-core/Makefile.core.def (kernel): Explicit the source for
21001 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
21002 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
21003 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
21004 Use videoinkernel tag.
21005 (usb): Enable on all usb.
21006 (usbserial_common): Likewise.
21007 (usbserial_pl2303): Likewise.
21008 (usbserial_ftdi): Likewise.
21009 (uhci): Enable on all x86.
21010 (ohci): Enable on all pci.
21011 (cmostest): Enable on all CMOS.
21012 (acpi): Include commands/acpi.c on all platforms.
21013 (halt): Add relevant lib/*/halt.c.
21014 (hdparm): Enable on all pci.
21015 (lspci): Likewise.
21016 (usbtest): Enable on all usb.
21017 (ata): Enable on all pci.
21018 (ata_pthru): Likewise.
21019 (usbms): Enable on all usb.
21020 (usb_keyboard): Likewise.
21021 (font): Use tag videomodules.
21022 (bufio): Likewise.
21023 (datetime): Use tag cmos. Enable on all noemu.
21024 (mmap): Use tags common and x86.
21025 (gfxterm): Use tag videomodules.
21026 (bitmap): Likewise.
21027 (bitmap_scale): Likewise.
21028 (video_fb): Likewise.
21029 (video): Likewise.
21030 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
21031 adjust padding accordingly. All users updated.
21032 (grub_ohci_transaction): Fix bad format specification.
21033 (GRUB_MOD_INIT): Add asserts for struct size.
21034 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
21035 (grub_alloc_td): Likewise.
21036 (grub_free_queue): Likewise.
21037 (grub_uhci_transfer): Likewise.
21038 (grub_uhci_transaction): Fix bad format specification.
21039 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21040 (grub_usb_bulk_readwrite): Likewise.
21041 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
21042 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
21043 Made static.
21044 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
21045 Made static.
21046 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
21047 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
21048 Transformed into C.
21049 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
21050 Moved from here ...
21051 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
21052 ... here. Transformed into C. Made static.
21053 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
21054 Moved from here ...
21055 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
21056 ... here. Transformed into C. Made static.
21057 * grub-core/kern/i386/pc/startup.S
21058 (grub_biosdisk_check_int13_extensions): Moved from here ...
21059 * grub-core/disk/i386/pc/biosdisk.c
21060 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
21061 Made static.
21062 * grub-core/kern/i386/pc/startup.S
21063 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
21064 * grub-core/disk/i386/pc/biosdisk.c
21065 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
21066 Transformed into C. Made static.
21067 * grub-core/kern/i386/pc/startup.S
21068 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
21069 * grub-core/disk/i386/pc/biosdisk.c
21070 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
21071 Transformed into C. Made static.
21072 * grub-core/kern/i386/pc/startup.S
21073 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
21074 * grub-core/disk/i386/pc/biosdisk.c
21075 (grub_biosdisk_get_diskinfo_standard): ... here.
21076 Transformed into C. Made static.
21077 * grub-core/kern/i386/pc/startup.S
21078 (grub_biosdisk_get_num_floppies): Moved from here ...
21079 * grub-core/disk/i386/pc/biosdisk.c
21080 (grub_biosdisk_get_num_floppies): ... here.
21081 Transformed into C. Made static.
21082 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
21083 New function.
21084 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
21085 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
21086 Transformed into C. Made static.
21087 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
21088 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
21089 Transformed into C. Made static.
21090 * grub-core/kern/i386/ieee1275/init.c: Removed.
21091 * grub-core/kern/i386/misc.S: Likewise.
21092 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
21093 Splitted from here ...
21094 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
21095 Transformed into C. Made static. All users updated.
21096 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
21097 Transformed into C. Made static. All users updated.
21098 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
21099 Moved from here...
21100 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
21101 Transformed into C. Made static. All users updated.
21102 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
21103 Moved from here...
21104 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
21105 Transformed into C. Made static. All users updated.
21106 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
21107 Removed (replaced by C version).
21108 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
21109 Moved from here...
21110 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
21111 Transformed into C. Made static.
21112 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
21113 Moved from here...
21114 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
21115 ... here. Transformed into C.
21116 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
21117 Moved from here...
21118 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
21119 ... here. Transformed into C.
21120 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
21121 Moved from here...
21122 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
21123 ... here. Transformed into C. Made static.
21124 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
21125 Moved from here...
21126 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
21127 ... here. Transformed into C.
21ed554b
VS
21128 * grub-core/kern/i386/pc/startup.S
21129 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
21130 * grub-core/video/i386/pc/vbe.c
21131 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
21132 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
21133 Moved from here...
21134 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
21135 ... here. Transformed into C.
21136 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
21137 Moved from here...
21138 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
21139 ... here. Transformed into C.
21140 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
21141 Moved from here...
21142 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
21143 ... here. Transformed into C.
21144 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
21145 Moved from here...
21146 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
21147 ... here. Transformed into C.
21148 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
21149 Moved from here...
21150 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
21151 ... here. Transformed into C. Made static.
21152 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
21153 Moved from here...
21154 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
21155 ... here. Transformed into C. Made static.
21156 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
21157 Moved from here...
21158 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
21159 ... here. Transformed into C. Made static.
21160 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
21161 pxe_rm_entry as third argument.
21162 (grub_bios_interrupt): New function.
21163 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
21164 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
21165 of calling grub_stop.
21166 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
21167 * grub-core/lib/efi/halt.c (grub_halt): ...here.
21168 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
21169 * grub-core/lib/emu/halt.c (grub_halt): ... here.
21170 * grub-core/lib/i386/halt.c: Moved from here ...
21171 * grub-core/lib/i386/halt.c: ... here.
21172 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
21173 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
21174 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
21175 grub_stop_floppy.
21176 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
21177 * include/grub/i386/coreboot/init.h: Removed.
21178 * include/grub/i386/multiboot/init.h: Likewise.
21179 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
21180 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
21181 * include/grub/i386/pc/int.h: New file.
21182 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
21183 (grub_pxe_scan): Removed.
21184 (grub_pxe_call): Update prototype.
21185 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
21186 prototypes.
21187 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
21188 * include/grub/i386/qemu/init.h: Removed.
21189 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
21190 noreturn.
21191 (grub_halt): Likewise.
21192 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
21193 (grub_reboot): Likewise.
21194 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
21195 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
21196 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
21197
215dd471
RM
211982010-08-30 Robert Millan <rmh@gnu.org>
21199
21200 * NEWS: Document addition of ZFS support in `grub-install' and
21201 `grub-mkconfig'.
21202
ebd65b82
BC
212032010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
21204
21205 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
21206 dprintf output.
21207
11721d19
VS
212082010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21209
21210 Remove leftover embedding of font objects.
21211
21212 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21213 * util/grub-install.in (font): Removed.
21214 * util/grub-mkimage.c (generate_image): Remove font support. All users
21215 updated.
21216
37837d4e
VS
212172010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21218
21219 Remove leftover embedding of font objects.
21220
21221 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21222 * util/grub-install.in (font): Removed.
21223 * util/grub-mkimage.c (generate_image): Remove font support. All users
21224 updated.
21225
b4c1aae0
VS
212262010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21227
21228 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 21229 Reported by: Ian Turner
b4c1aae0 21230
8920a08d
VS
212312010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21232
21233 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
21234 timeout to avoid indefinite boot stalling.
21235
f21db033
VS
212362010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21237
21238 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
21239 (grub_env_write_color_highlight): Likewise.
21240
9a9de209
VS
212412010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21242
21243 * grub-core/normal/term.c (print_more): Return to normal and not
21244 to standard state after printing "---MORE---".
21245
3dca01d7
VS
212462010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21247
21248 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
21249 Mask out the bit 0x80 since it has other meaning that specifiing color.
21250
0b986c40
VS
212512010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21252
21253 New relocator. Allows for more kernel support and more straightforward
21254 loader writing.
21255
21256 * Makefile.am (BOOTTARGET): New variable.
21257 (QEMU32): Likewise.
21258 (linux.init.x86_64): New target.
21259 (linux.init.i386): Likewise.
21260 (multiboot.elf): Likewise.
21261 (kfreebsd.elf): Likewise.
21262 (kfreebsd.aout): Likewise.
21263 (pc-chainloader.elf): Likewise.
21264 (pc-chainloader.bin): Likewise.
21265 (ntldr.elf): Likewise.
21266 (ntldr.bin): Likewise.
21267 (multiboot2.elf): Likewise.
21268 (kfreebsd.init.x86_64): Likewise.
21269 (kfreebsd.init.i386): Likewise.
21270 (knetbsd.init.i386): Likewise.
21271 (kopenbsd.init.i386): Likewise.
21272 (knetbsd.init.x86_64): Likewise.
21273 (kopenbsd.init.x86_64): Likewise.
21274 (linux-initramfs.i386): Likewise.
21275 (linux-initramfs.x86_64): Likewise.
21276 (kfreebsd-mfsroot.i386.img): Likewise.
21277 (knetbsd.image.i386): Likewise.
21278 (kopenbsd.image.i386): Likewise.
21279 (kopenbsd.image.x86_64): Likewise.
21280 (knetbsd.miniroot-image.i386.img): Likewise.
21281 (kfreebsd-mfsroot.x86_64.img): Likewise.
21282 (knetbsd.image.x86_64): Likewise.
21283 (knetbsd.miniroot-image.x86_64.img): Likewise.
21284 (kfreebsd-mfsroot.i386.gz): Likewise.
21285 (bootcheck-kfreebsd-i386): Likewise.
21286 (kfreebsd-mfsroot.x86_64.gz): Likewise.
21287 (bootcheck-kfreebsd-x86_64): Likewise.
21288 (knetbsd.miniroot-image.i386.gz): Likewise.
21289 (bootcheck-knetbsd-i386): Likewise.
21290 (bootcheck-kopenbsd-i386): Likewise.
21291 (bootcheck-kopenbsd-x86_64): Likewise.
21292 (knetbsd.miniroot-image.x86_64.gz): Likewise.
21293 (bootcheck-knetbsd-x86_64): Likewise.
21294 (bootcheck-linux-i386): Likewise.
21295 (bootcheck-linux-x86_64): Likewise.
21296 (bootcheck-linux16-i386): Likewise.
21297 (bootcheck-linux16-x86_64): Likewise.
21298 (bootcheck-multiboot): Likewise.
21299 (bootcheck-multiboot2): Likewise.
21300 (bootcheck-kfreebsd-aout): Likewise.
21301 (bootcheck-pc-chainloader): Likewise.
21302 (bootcheck-ntldr): Likewise.
21303 (CLEANFILES): Add new targets.
21304 (BOOTCHECKS): New variable.
21305 (.PHONY): Add bootchecks.
21306 (SUCCESSFUL_BOOT_STRING): New variable.
21307 (BOOTCHECK_TIMEOUT): Likewise.
21308 (bootcheck): New target
21309 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
21310 * configure.ac: Correct efiemu excuse.
21311 * docs/grub.texi (Supported kernels): New chapter.
21312 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
21313 include/grub/mm_private.h. Simplify inclusion of
21314 include/grub/boot.h, include/grub/loader.h
21315 and include/grub/msdos_partition.h
21316 (KERNEL_HEADER_FILES) [i386_coreboot]:
21317 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
21318 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
21319 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
21320 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
21321 include/grub/machine/loader.h.
21322 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
21323 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
21324 extra_dist.
21325 (pci.mod): Enable on i386-multiboot.
21326 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
21327 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
21328 i386-qemu.
21329 (relocator.mod): Rewritten.
21330 (aout.mod): Enable on all x86.
21331 (bsd.mod): Likewise.
21332 (ntldr.mod): New module.
21333 (linux.mod): Use loader/i386/linux.c on all x86.
21334 (xnu.mod): Enable on all x86.
21335 (vga_text.mod): disable on EFI and QEMU.
21336 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
21337 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
21338 * grub-core/efiemu/loadcore.c: Likewise.
21339 * grub-core/efiemu/main.c: Likewise.
21340 (grub_efiemu_exit_boot_services): Removed.
21341 (grub_efiemu_finish_boot_services): Likewise.
21342 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
21343 function.
21344 * grub-core/efiemu/i386/nocfgtables.c: New file.
21345 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
21346 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
21347 (grub_efi_finish_boot_services): Moved from here ...
21348 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
21349 Fille finish memory map and related data.
21350 (finish_mmap_buf): New variable.
21351 (grub_efi_uintn_t finish_mmap_size): Likewise.
21352 (grub_efi_uintn_t finish_key): Likewise.
21353 (grub_efi_uintn_t finish_desc_size): Likewise.
21354 (grub_efi_uint32_t finish_desc_version): Likewise.
21355 (grub_efi_is_finished): Likewise.
21356 (grub_efi_get_memory_map): Use saved memory map if EFI is already
21357 finished.
21358 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
21359 (grub_elf64_phdr_iterate): Likewise.
21360 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
21361 (grub_os_area_size): Likewise.
21362 (grub_machine_init): Don't reserve os area.
21363 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
21364 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
21365 * grub-core/kern/i386/loader.S: Removed.
21366 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
21367 (grub_os_area_size): Likewise.
21368 (grub_machine_init): Don't reserve os area.
21369 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
21370 Don't call grub_dl_unload_all.
21371 Don't include loader.S.
21372 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
21373 Declare the memory after _end as available.
21374 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 21375 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 21376 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
21377 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
21378 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
21379 * include/grub/mm_private.h (grub_mm_header): ... here.
21380 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
21381 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
21382 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
21383 (grub_mm_region): ..here. Removed addr. Added pre_size.
21384 All users updated.
21385 * grub-core/kern/mm.c (base): Renamed to ...
21386 (grub_mm_base): ... this. Made global.
21387 (grub_real_malloc): Alloc from end of region.
21388 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
21389 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
21390 * grub-core/kern/powerpc/cache_flush.S: ... here.
21391 * grub-core/lib/efi/relocator.c: New file.
21392 * grub-core/lib/i386/relocator.c: Rewritten.
21393 * grub-core/lib/i386/relocator16.S: New file.
21394 * grub-core/lib/i386/relocator32.S: Likewise.
21395 * grub-core/lib/i386/relocator64.S: Likewise.
21396 * grub-core/lib/i386/relocator_asm.S: Rewritten.
21397 * grub-core/lib/i386/relocator_common.S: New file.
21398 * grub-core/lib/ieee1275/relocator.c: Likewise.
21399 * grub-core/lib/mips/relocator.c: Rewritten.
21400 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
21401 stylistic adjustments.
21402 * grub-core/lib/powerpc/relocator.c: New file.
21403 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
21404 * grub-core/lib/relocator.c: Rewritten.
21405 * grub-core/lib/x86_64/relocator_asm.S: New file.
21406 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
21407 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
21408 (bsd_tag): New struct.
21409 (tags): New variable.
21410 (tags_last): Likewise.
21411 (netbsd_module): New struct.
21412 (netbsd_mods): New variable.
21413 (netbsd_mods_last): Likewise.
21414 (openbsd_opts): New parameter "serial".
21415 (OPENBSD_SERIAL_ARG): New definition.
21416 (netbsd_opts): New parameter "serial".
21417 (NETBSD_SERIAL_ARG): New definition.
21418 (grub_freebsd_add_meta): Reorganised into ...
21419 (grub_bsd_add_meta): ...this. All users updated.
21420 (grub_freebsd_add_mmap): Reorganised into ...
21421 (generate_e820_mmap): ...this...
21422 (grub_bsd_add_mmap): ...and this. All users updated.
21423 (grub_freebsd_list_modules): Use tags.
21424 (grub_netbsd_add_meta_module): New function.
21425 (grub_netbsd_list_modules): Likewise.
21426 (grub_freebsd_boot): Use relocator and finish EFI.
21427 (grub_openbsd_boot): Likewise.
21428 (grub_netbsd_setup_video): New function.
21429 (grub_netbsd_add_modules): Likewise.
21430 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
21431 and finish EFI.
21432 (grub_bsd_unload): Unload tags.
21433 (grub_bsd_load_aout): Use relocator.
21434 (grub_bsd_elf32_size_hook): New function.
21435 (grub_bsd_elf32_hook): Use relocator.
21436 (grub_bsd_elf64_size_hook): New function.
21437 (grub_bsd_elf64_hook): Use relocator.
21438 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
21439 (grub_bsd_load): Zero-out openbsd_ramdisk.
21440 (grub_bsd_load): Use relocator.
21441 (grub_cmd_openbsd): Support serial.
21442 (grub_cmd_netbsd): Support modules.
21443 (grub_cmd_freebsd_module): Use relocator.
21444 (grub_netbsd_module_load): New function.
21445 (grub_cmd_netbsd_module): Likewise.
21446 (grub_cmd_openbsd_ramdisk): Likewise.
21447 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
21448 kopenbsd_ramdisk.
21449 (GRUB_MOD_FINI): Unregister new commands.
21450 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
21451 (grub_freebsd_load_elfmodule_obj): Use relocator.
21452 (grub_freebsd_load_elfmodule): Likewise.
21453 (grub_freebsd_load_elf_meta): Likewise.
21454 (grub_netbsd_load_elf_meta): New function.
21455 (grub_openbsd_find_ramdisk): Likewise.
21456 * grub-core/loader/i386/bsd_helper.S: Removed.
21457 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
21458 * grub-core/loader/i386/bsd_trampoline.S: Removed.
21459 * grub-core/loader/i386/efi/linux.c: Likewise.
21460 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
21461 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
21462 (DEFAULT_VIDEO_MODE): Likewise.
21463 (real_mode_target): New variable.
21464 (prot_mode_target): Likewise.
21465 (initrd_mem_target): Likewise.
21466 (relocator): Likewise.
21467 (efi_mmap_buf): Likewise.
21468 (efi_mmap_size): Likewise.
21469 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
21470 (free_pages): Use relocator.
21471 (allocate_pages): Account for efi_mmap and use relocator. Return error.
21472 (grub_linux_setup_video): Return error.
21473 (grub_linux_trampoline_start): Removed.
21474 (grub_linux_trampoline_end): Likewise.
21475 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
21476 andd video parameters depending on firmware.
21477 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
21478 [GRUB_MACHINE_EFI]: Pass EFI parameters.
21479 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
21480 (grub_cmd_initrd): Use relocator.
21481 * grub-core/loader/i386/linux_trampoline.S: Removed.
21482 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
21483 (elf_sec_entsize): Likewise.
21484 (elf_sec_shstrndx): Likewise.
21485 (elf_sections): Likewise.
21486 (grub_multiboot_load): Use relocator.
21487 (grub_multiboot_get_mbi_size): Account for sections.
21488 (grub_multiboot_make_mbi): Use relocator and support sections.
21489 (grub_multiboot_add_elfsyms): New function.
21490 (grub_multiboot_free_mbi): Free sections.
21491 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
21492 (grub_linux_real_target): Likewise.
21493 (grub_linux_real_chunk): Likewise.
21494 (grub_linux16_prot_size): Likewise.
21495 (grub_linux16_boot): Use relocator.
21496 (grub_linux_unload): Unload relocator.
21497 (grub_cmd_linux): Use relocator.
21498 (grub_cmd_initrd): Likewise.
21499 * grub-core/loader/i386/pc/ntldr.c: New file.
21500 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
21501 Don't try to guess CPU frequency.
21502 (grub_xnu_set_video): Stretch bitmap.
21503 (grub_xnu_boot): Use relocator.
21504 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
21505 (grub_linux_unload): Free relocator.
21506 (grub_linux_load32): Use relocator.
21507 (grub_linux_load64): Likewise.
21508 (grub_cmd_initrd): Likewise.
21509 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
21510 (grub_multiboot_unload): Unload relocator.
21511 (grub_cmd_multiboot): Use relocator.
21512 (grub_cmd_module): Likewise.
21513 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
21514 Use relocator and support sections.
21515 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
21516 (elf_sec_entsize): Likewise.
21517 (elf_sec_shstrndx): Likewise.
21518 (elf_sections): Likewise.
21519 (grub_multiboot_load): Use relocator.
21520 (grub_multiboot_get_mbi_size): Account for sections.
21521 (grub_multiboot_make_mbi): Use relocator and support sections.
21522 (grub_multiboot_add_elfsyms): New function.
21523 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
21524 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
21525 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
21526 Prototype changed. All users updated.
21527 (grub_xnu_align_heap): Simplified.
21528 (grub_xnu_writetree_toheap): Likewise.
21529 (grub_xnu_unload): Unload relocator.
21530 (grub_cmd_xnu_kernel): Use relocator.
21531 (grub_cmd_xnu_kernel64): Likewise.
21532 (grub_xnu_register_memory): Simplified.
21533 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
21534 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
21535 EFI is finished.
21536 (grub_console_checkkey): Likewise.
21537 (grub_console_getkey): Likewise.
21538 (grub_console_getwh): Likewise.
21539 (grub_console_getxy): Likewise.
21540 (grub_console_gotoxy): Likewise.
21541 (grub_console_cls): Likewise.
21542 (grub_console_setcolorstate): Likewise.
21543 (grub_console_setcursor): Likewise.
21544 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
21545 * grub-core/tests/boot/kbsd.init-i386.S: New file.
21546 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
21547 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
21548 * grub-core/tests/boot/kernel-8086.S: Likewise.
21549 * grub-core/tests/boot/kernel-i386.S: Likewise.
21550 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
21551 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
21552 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
21553 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
21554 * grub-core/tests/boot/knetbsd.cfg: Likewise.
21555 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
21556 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
21557 * grub-core/tests/boot/linux.cfg: Likewise.
21558 * grub-core/tests/boot/linux.init-i386.S: Likewise.
21559 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
21560 * grub-core/tests/boot/linux16.cfg: Likewise.
21561 * grub-core/tests/boot/multiboot.cfg: Likewise.
21562 * grub-core/tests/boot/multiboot2.cfg: Likewise.
21563 * grub-core/tests/boot/ntldr.cfg: Likewise.
21564 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
21565 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
21566 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
21567 New definition.
21568 * include/grub/dl.h (grub_dl_unload_all): Removed.
21569 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
21570 (grub_efi_finish_boot_services): Change prototype.
21571 (grub_efi_is_finished): New variable.
21572 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
21573 Changed prototype.
21574 (grub_efiemu_finish_boot_services): Removed.
21575 (grub_machine_efiemu_init_tables): New prototype.
21576 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
21577 (grub_elf64_phdr_iterate): Likewise.
21578 * include/grub/i386/bsd.h: Include relocator.h.
21579 (freebsd_tag_header): New struct.
21580 (grub_openbsd_bios_mmap): Removed.
21581 (grub_unix_real_boot): Removed.
21582 (grub_freebsd_load_elfmodule32): Changed prototype.
21583 (grub_freebsd_load_elfmodule_obj64): Likewise.
21584 (grub_freebsd_load_elf_meta32): Likewise.
21585 (grub_freebsd_load_elf_meta64): Likewise.
21586 (grub_freebsd_add_meta): Removed.
21587 (grub_netbsd_load_elf_meta32): New prototype.
21588 (grub_netbsd_load_elf_meta64): Likewise.
21589 (grub_bsd_add_meta): Likewise.
21590 (grub_openbsd_ramdisk_descriptor): New struct.
21591 (grub_openbsd_find_ramdisk32): New prototype.
21592 (grub_openbsd_find_ramdisk64): Likewise.
21593 * include/grub/i386/coreboot/loader.h: Removed.
21594 * include/grub/i386/efi/loader.h: Likewise.
21595 * include/grub/i386/ieee1275/loader.h: Likewise.
21596 * include/grub/i386/linux.h (linux_kernel_header): Change void *
21597 to grub_uint32_t.
21598 * include/grub/i386/loader.h: Removed.
21599 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
21600 value.
21601 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
21602 (grub_phys_addr_t): New type.
21603 (grub_vtop): New inline function.
21604 (grub_map_memory): Likewise.
21605 (grub_unmap_memory): Likewise.
21606 * include/grub/i386/multiboot/loader.h: Removed.
21607 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
21608 (NETBSD_BTINFO_CONSOLE): New definition.
21609 (NETBSD_BTINFO_SYMTAB): Likewise.
21610 (NETBSD_BTINFO_MODULES): Likewise.
21611 (NETBSD_BTINFO_FRAMEBUF): Likewise.
21612 (grub_netbsd_bootinfo): New struct.
21613 (grub_netbsd_btinfo_common): Use explicit bitsize.
21614 (grub_netbsd_btinfo_mmap_entry): Removed.
21615 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
21616 (grub_netbsd_btinfo_bootdisk): New struct.
21617 (grub_netbsd_btinfo_symtab): Likewise.
21618 (grub_netbsd_btinfo_serial): Likewise.
21619 (grub_netbsd_btinfo_modules): Likewise.
21620 (grub_netbsd_btinfo_framebuf): Likewise.
21621 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
21622 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
21623 Likewise.
21624 (grub_openbsd_bootargs): Use explicit bitsize.
21625 (grub_openbsd_bootarg_console): New struct.
21626 (GRUB_OPENBSD_COM_MAJOR): New definition.
21627 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
21628 * include/grub/i386/pc/efiemu.h: Removed.
21629 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
21630 * include/grub/i386/qemu/loader.h: Removed.
21631 * include/grub/i386/relocator.h: Rewritten.
21632 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
21633 * include/grub/mips/memory.h: New file.
21634 * include/grub/mips/multiboot.h: Rewritten.
21635 * include/grub/mips/relocator.h: Rewritten.
21636 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
21637 (grub_vtop): New function.
21638 (grub_map_memory): Likewise.
21639 (grub_unmap_memory): Likewise.
21640 * include/grub/misc.h (ALIGN_DOWN): New definition.
21641 * include/grub/mm.h (grub_mm_check_real): New proto.
21642 (GRUB_MM_CHECK): New definition.
21643 * include/grub/mm_private.h: New file.
21644 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
21645 (grub_multiboot_get_mbi_size): Removed.
21646 (grub_multiboot_make_mbi): Change prottype.
21647 (grub_multiboot_set_accepts_video): New proto.
21648 (grub_multiboot_add_elfsyms): Likewise.
21649 (grub_multiboot_payload_eip): New variable.
21650 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
21651 New prototype.
21652 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
21653 New definition.
21654 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
21655 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
21656 * include/grub/powerpc/ieee1275/loader.h: Removed.
21657 * include/grub/powerpc/memory.h: New file.
21658 * include/grub/powerpc/relocator.h: Likewise.
21659 * include/grub/relocator.h: Likewise.
21660 * include/grub/relocator_private.h: Likewise.
21661 * include/grub/sparc64/ieee1275/loader.h: Removed.
21662 * include/grub/x86_64/memory.h: New file.
21663 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
21664 (grub_xnu_heap_malloc): Likewise.
21665 (grub_xnu_heap_real_start): Removed.
21666 (grub_xnu_heap_start): Likewise.
21667 (grub_xnu_relocator): New variable.
21668 (grub_xnu_heap_target_start): Likewise.
21669 * tests/util/grub-shell.in: Support non-pc.
21670 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 21671
5303b85d
VS
216722010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21673
21674 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
21675 on malloc error.
21676 (grub_bidi_logical_to_visual): Check that malloc succeded.
21677 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
21678 puts.
21679 (grub_xputs_normal): Likewise.
21680
d768d159
VS
216812010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21682
21683 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
21684 extra_dist.
21685
216862010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21687
21688 * grub-core/efiemu/runtime/efiemu.sh: Removed.
21689
5bf84df4
VS
216902010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21691
21692 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
21693
3626810e
VS
216942010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21695
21696 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
21697 dprintf.
21698
a7363f53
BC
216992010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
21700
21701 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
21702
902f75f6
VS
217032010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21704
21705 * grub-core/normal/term.c (print_more): Fix a memory leak.
21706 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
21707 (grub_xputs_normal): Likewise.
21708
3c707967
VS
217092010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21710
21711 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
21712 the begining of the string
21713
2053cc07
VS
217142010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21715
21716 * grub-core/script/script.c (grub_script_parse): Free parsed on
21717 failure.
21718
46422ebf
VS
217192010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21720
21721 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
21722 on failure.
21723
9e0fa3f6
VS
217242010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21725
21726 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
21727 return.
21728
3393cf16
VS
217292010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21730
21731 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
21732 (scroll_up): Fix a memory leak.
21733
b17540cb
VS
217342010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21735
21736 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
21737 errors.
21738
67140446
VS
217392010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
21740
21741 Handle USB pendrives exposed as floppies.
21742
21743 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
21744 floppy.
21745 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
21746 Check for partitions on all devices.
21747
e35e46fc
VS
217482010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21749
21750 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
21751 (readkey): Likewise.
21752
d24c6190
BC
217532010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
21754
21755 Multiple variable names support to "export" command.
21756
21757 * normal/context.c (grub_cmd_export): "export" command supports
21758 multiple variable names.
21759
04ddcc6a
ST
217602010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
21761
21762 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
21763 --target=drive output to Mach device name.
21764
0c8b61d8
BC
217652010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
21766
21767 New Automake based build system for GRUB.
21768
21769 * ABOUT-NLS: New file.
21770 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
21771 in Makefile.util.def file.
21772 * Makefile.util.def: New file. Autogen build definitions file for
21773 GRUB host utils.
21774 * conf/Makefile.common: New file. Common variables for GRUB host
21775 utils and target modules.
21776 * conf/Makefile.extra-dist: New file. Extra files for make dist.
21777 * docs/Makefile.am: New file. Automake file for docs.
21778 * gentpl.py: New file. Python script to generate Autogen
21779 template.
21780 * grub-core/Makefile.am: New file. GRUB target modules' rules
21781 that doesn't fit in Makefile.core.def file.
21782 * grub-core/Makefile.core.def: New file. Autogen build
21783 definitions file for GRUB target modules.
21784 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
21785 specific setjmp.S file.
21786 * po/Makefile.am: New file.
21787
21788 * .bzrignore: New ignores.
21789 * INSTALL: New requirements, without Ruby.
21790 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
21791 * autogen.sh: Updated to invoke autogen as necessary.
21792 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
21793 and defines for Automake conditionals.
21794 * geninit.sh: Refactoring.
21795
21796 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
21797 necessary.
21798 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
21799 New prototype.
21800
21801 * include/grub/test.h: Fix functional test modules' naming.
21802 * grub-core/tests/example_functional_test.c: Fix test module name.
21803
21804 * util/misc.c: Hosted versions' of grub functions for libgrub.a
21805 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
21806 * util/grub-editenv.c: Likewise.
21807 * util/grub-fstest.c: Likewise.
21808 * util/grub-mkdevicemap.c: Likewise.
21809 * util/grub-mkfont.c: Likewise.
21810 * util/grub-mkimage.c: Likewise.
21811 * util/grub-mkpasswd-pbkdf2.c: Likewise.
21812 * util/grub-probe.c: Likewise.
21813 * util/grub-script-check.c: Likewise.
21814 * util/i386/pc/grub-setup.c: Likewise.
21815 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21816
21817 * tests/util/grub-shell.in: Fix override directory path.
21818 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
21819 * util/import_gcry.py: Create Makefile.gcry.def file instead.
21820
21821 * util/lvm.c: Update #includes.
21822 * util/raid.c: Likewise.
21823 * util/resolve.c: Likewise.
21824 * grub-core/bus/emu/pci.c: Likewise.
21825 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
21826 * grub-core/lib/posix_wrap/string.h: Likewise.
21827 * grub-core/kern/emu/main.c: Likewise.
21828
21829 * grub-core/gensymlist.sh: New file. Script for generating kernel
21830 symbols file.
21831 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
21832
21833 * grub-core/gentrigtables.c: Fix unused variable warnings.
21834
21835 * Makefile.in: Removed.
21836 * conf/any-emu.rmk: Removed.
21837 * conf/common.rmk: Removed.
21838 * conf/i386-coreboot.rmk: Removed.
21839 * conf/i386-efi.rmk: Removed.
21840 * conf/i386-ieee1275.rmk: Removed.
21841 * conf/i386-multiboot.rmk: Removed.
21842 * conf/i386-pc.rmk: Removed.
21843 * conf/i386-qemu.rmk: Removed.
21844 * conf/i386.rmk: Removed.
21845 * conf/mips-yeeloong.rmk: Removed.
21846 * conf/mips.rmk: Removed.
21847 * conf/powerpc-ieee1275.rmk: Removed.
21848 * conf/sparc64-ieee1275.rmk: Removed.
21849 * conf/tests.rmk: Removed.
21850 * conf/x86-efi.rmk: Removed.
21851 * conf/x86_64-efi.rmk: Removed.
21852 * gendistlist.sh: Removed.
21853 * geninitheader.sh: Removed.
21854 * genkernsyms.sh.in: Removed.
21855 * genmk.rb: Removed.
21856 * gensymlist.sh.in: Removed.
21857 * mkinstalldirs: Removed.
21858 * boot: Moved ...
21859 * grub-core/boot: ... to here.
21860 * bus: Moved ...
21861 * grub-core/bus: ... to here.
21862 * commands: Moved ...
21863 * grub-core/commands: ... to here.
21864 * disk: Moved ...
21865 * grub-core/disk: ... to here.
21866 * efiemu: Moved ...
21867 * grub-core/efiemu: ... to here.
21868 * font: Moved ...
21869 * grub-core/font: ... to here.
21870 * fs: Moved ...
21871 * grub-core/fs: ... to here.
21872 * gencmdlist.sh: Moved ...
21873 * grub-core/gencmdlist.sh: ... to here.
21874 * genemuinit.sh: Moved ...
21875 * grub-core/genemuinit.sh: ... to here.
21876 * genemuinitheader.sh: Moved ...
21877 * grub-core/genemuinitheader.sh: ... to here.
21878 * genfslist.sh: Moved ...
21879 * grub-core/genfslist.sh: ... to here.
21880 * genhandlerlist.sh: Moved ...
21881 * grub-core/genhandlerlist.sh: ... to here.
21882 * genmoddep.awk: Moved ...
21883 * grub-core/genmoddep.awk: ... to here.
21884 * genmodsrc.sh: Moved ...
21885 * grub-core/genmodsrc.sh: ... to here.
21886 * genpartmaplist.sh: Moved ...
21887 * grub-core/genpartmaplist.sh: ... to here.
21888 * genparttoollist.sh: Moved ...
21889 * grub-core/genparttoollist.sh: ... to here.
21890 * genterminallist.sh: Moved ...
21891 * grub-core/genterminallist.sh: ... to here.
21892 * gentrigtables.c: Moved ...
21893 * grub-core/gentrigtables.c: ... to here.
21894 * genvideolist.sh: Moved ...
21895 * grub-core/genvideolist.sh: ... to here.
21896 * gettext: Moved ...
21897 * grub-core/gettext: ... to here.
21898 * gfxmenu: Moved ...
21899 * grub-core/gfxmenu: ... to here.
21900 * gnulib: Moved ...
21901 * grub-core/gnulib: ... to here.
21902 * hello: Moved ...
21903 * grub-core/hello: ... to here.
21904 * hook: Moved ...
21905 * grub-core/hook: ... to here.
21906 * io: Moved ...
21907 * grub-core/io: ... to here.
21908 * kern: Moved ...
21909 * grub-core/kern: ... to here.
21910 * lib: Moved ...
21911 * grub-core/lib: ... to here.
21912 * loader: Moved ...
21913 * grub-core/loader: ... to here.
21914 * mmap: Moved ...
21915 * grub-core/mmap: ... to here.
21916 * normal: Moved ...
21917 * grub-core/normal: ... to here.
21918 * partmap: Moved ...
21919 * grub-core/partmap: ... to here.
21920 * parttool: Moved ...
21921 * grub-core/parttool: ... to here.
21922 * script: Moved ...
21923 * grub-core/script: ... to here.
21924 * term: Moved ...
21925 * grub-core/term: ... to here
21926 * tests/example_functional_test.c: Moved ...
21927 * grub-core/tests/example_functional_test.c: ... to here.
21928 * tests/lib/functional_test.c: Moved ...
21929 * grub-core/tests/lib/functional_test.c: ... to here.
21930 * tests/lib/test.c: Moved ...
21931 * grub-core/tests/lib/test.c: ... to here.
21932 * video: Moved ...
21933 * grub-core/video: ... to here.
21934
645586e6
BC
219352010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
21936
21937 Replace --enable-grub-emu-modules with grub-emu-lite.
21938
21939 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
21940 cache.S.
21941
21942 * include/grub/emu/misc.h (grub_emu_init): New prototype.
21943 * kern/emu/full.c: New file. For grub-emu specific initialization.
21944 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
21945 * kern/emu/main.c: Call initialization function grub_emu_init.
21946
21947 * Makefile.in: Include grub-emu-lite in install.
21948 * commands/parttool.c: Use grub_no_autoload to differentiate
21949 between grub-emu and grub-emu-lite.
21950 * include/grub/misc.h: New variable grub_no_autoload.
21951
21952 * conf/any-emu.rmk: New rules for grub-emu-lite.
21953 * configure.ac: Remove --enable-grub-emu-modules.
21954 * genmk.rb: Cleanup unnecessary rules.
21955 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
21956
21957 * normal/main.c: Don't load list files on grub-emu-lite.
21958 * util/misc.c (grub_arch_sync_caches): Removed.
21959
f86a4030
CW
219602010-08-23 Colin Watson <cjwatson@ubuntu.com>
21961
21962 * kern/mips/startup.S (grub_prefix): Update comment to refer to
21963 grub-mkimage rather than grub-mkelfimage.
21964 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
21965
06776944
VS
219662010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21967
21968 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
21969 a key after CapsLock or NumLock. It's just a qemu bug.
21970
df262419
VS
219712010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
21972
21973 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
21974 needed by libusb wrapper.
21975
b40ea81b
ST
219762010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21977
21978 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
21979
dee50575
VS
219802010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
21981
21982 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
21983 --nounzip is passed.
21984
fb1d7b79
VS
219852010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
21986
21987 USB hotunplugging and USB serial support.
21988
21989 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
21990 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
21991 (grub_uhci_transfer): Respect timeout and set *actual.
21992 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
21993 non-standard length.
21994 (grub_usb_device_attach): Autoload modules.
21995 (GRUB_MOD_INIT): Set grub_term_poll_usb.
21996 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
21997 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
21998 users updated.
21999 (grub_usb_add_hub): Fill nports and children.
22000 (attach_root_port): Receive hub instead of controller.
22001 All users updated. Fill hub->devices.
22002 (grub_usb_root_hub): Allocate hub->devices.
22003 (detach_device): New function.
22004 (poll_nonroot_hub): Fill children and detach devices.
22005 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
22006 actual arguments. All users updated.
22007 (grub_usb_bulk_read_extended): New function.
22008 * bus/usb/serial/common.c: New file.
22009 * bus/usb/serial/ftdi.c: Likewise.
22010 * bus/usb/serial/pl2303.c: Likewise.
22011 * commands/terminal.c (handle_command): Support wildcard.
22012 * commands/usbtest.c: Output "Unknown" instead of empty string.
22013 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
22014 (usbserial_common_mod_SOURCES): New variable.
22015 (usbserial_common_mod_CFLAGS): Likewise.
22016 (usbserial_common_mod_LDFLAGS): Likewise.
22017 (pkglib_MODULES): Add usbserial_pl2303.mod.
22018 (usbserial_pl2303_mod_SOURCES): New variable.
22019 (usbserial_pl2303_mod_CFLAGS): Likewise.
22020 (usbserial_pl2303_mod_LDFLAGS): Likewise.
22021 (pkglib_MODULES): Add usbserial_ftdi.mod.
22022 (usbserial_ftdi_mod_SOURCES): New variable.
22023 (usbserial_ftdi_mod_CFLAGS): Likewise.
22024 (usbserial_ftdi_mod_LDFLAGS): Likewise.
22025 (pkglib_MODULES): Add serial.mod.
22026 (serial_mod_SOURCES): New variable.
22027 (serial_mod_CFLAGS): Likewise.
22028 (serial_mod_LDFLAGS): Likewise.
22029 * conf/i386-pc.rmk: Likewise.
22030 * conf/mips-yeeloong.rmk: Likewise.
22031 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
22032 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22033 * disk/usbms.c (first_available_slot): New variable.
22034 (grub_usbms_attach): Don't reuse free slots due to potential cache
22035 problems.
22036 * include/grub/serial.h: Moved to ..
22037 * include/grub/ns8250.h: ...this.
22038 * include/grub/serial.h: New file.
22039 * include/grub/term.h (grub_term_poll_usb): New variable.
22040 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
22041 readkey. All users updated.
22042 (grub_terminfo_output_state): Pass term to put.
22043 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
22044 (grub_usb_controller_dev): Add timeout and actual arguments to
22045 transfer. All users updated.
22046 (grub_usb_interface): New field detach_data.
22047 (grub_usb_device): New fields children and nports.
22048 (grub_usb_ep_type_t): New type.
22049 (grub_usb_get_ep_type): New function.
22050 (grub_usb_bulk_read_extended): Likewise.
22051 * include/grub/usbdesc.h (grub_usb_desc): New type.
22052 * include/grub/usbserial.h: New file.
22053 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
22054 * kern/term.c (grub_term_poll_usb): New variable.
22055 (grub_getkey): Call grub_term_poll_usb if set.
22056 (grub_checkkey): Likewise.
22057 (grub_getkeystatus): Likewise.
22058 * term/serial.c: Moved controller-specific parts to ...
22059 * term/ns8250.c: ... here.
22060 * term/serial.c: Mostly rewritten.
22061 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
22062 according to spec.
22063
21a313de
RM
220642010-08-20 Robert Millan <rmh@gnu.org>
22065
22066 Make kFreeBSD code more generic to support ext2fs as root, ufs as
22067 a separate module and maybe other interesting combinations.
22068
22069 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
22070 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
22071 (kfreebsd_entry): Add generic filesystem module load routine.
22072 Map GRUB `ext2' to kFreeBSD `ext2fs'.
22073
63c734a6
CW
220742010-08-20 Colin Watson <cjwatson@ubuntu.com>
22075
22076 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
22077 "numcenter" (I misunderstood the purpose of this entry).
22078 * docs/grub.texi (sendkey): Likewise.
22079
c4d16542
CW
220802010-08-20 Colin Watson <cjwatson@ubuntu.com>
22081
22082 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
22083 status flag options; simply omitting the option is equivalent and
22084 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
22085 (keysym_table): Rename "num5numlock" to "numlock".
22086 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
22087 can uniformly say that only the last of multiple `sendkey'
22088 invocations has any effect.
22089 * docs/grub.texi (sendkey): New section.
22090
93541d66
CW
220912010-08-19 Colin Watson <cjwatson@ubuntu.com>
22092
22093 * commands/i386/pc/sendkey.c (options): Fix three typos.
22094
b4ece5e1
VS
220952010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
22096
22097 Implement sendkey support.
22098
22099 * commands/i386/pc/sendkey.c: New file.
22100 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
22101 (sendkey_mod_SOURCES): New variable.
22102 (sendkey_mod_CFLAGS): Likewise.
22103 (sendkey_mod_LDFLAGS): Likewise.
22104
51f1f5af
CW
221052010-08-18 Colin Watson <cjwatson@ubuntu.com>
22106
22107 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
22108 fix warnings from Autoconf.
22109
9da94e05
CW
221102010-08-18 Colin Watson <cjwatson@ubuntu.com>
22111
22112 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
22113 to avoid false positives with some assemblers that output things
22114 like "someprefix_func" as part of their output.
22115
729a0f2e
RM
221162010-08-15 Robert Millan <rmh@gnu.org>
22117
22118 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
22119 errors.
22120 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
22121 grub_get_libzfs_handle() errors.
22122
f3710e08
RM
221232010-08-14 Robert Millan <rmh@gnu.org>
22124
22125 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
22126 filesystem is not ZFS.
22127
7a3c13de
BC
221282010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22129
22130 Fix for misspelled color names defaulting to black/black (bug
22131 reported by Doug Nazar)
22132
22133 * include/grub/normal.h (grub_parse_color_name_pair): Add return
22134 status to prototype.
22135 * normal/color.c (grub_parse_color_name_pair): Return failure
22136 status.
22137 (grub_env_write_color_normal): Ignore bad color names.
22138 (grub_env_write_color_highlight): Likewise.
22139 * normal/main.c (GRUB_MOD_INIT): Set default color names.
22140
ab8ba50d
BC
221412010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22142
22143 "shift" command support to GRUB script.
22144
22145 * include/grub/script_sh.h (grub_script_shift): New prototype.
22146 * script/execute.c (grub_script_shift): New function.
22147 * script/main.c (grub_script_init): Register shift command.
22148 (grub_script_fini): Unregister shift command.
22149 * util/grub-script-check.c (grub_script_cmd_shift): New function.
22150
22151 * tests/grub_script_shift.in: New testcase.
22152 * conf/tests.rmk: Rules for new testcase.
22153
4d61999e
BC
221542010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22155
22156 "continue" command support to GRUB script.
22157
22158 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
22159 (grub_script_break): Continue support.
22160 * script/main.c (grub_script_init): Register continue command.
22161 (grub_script_fini): Unregister continue command.
22162
22163 * tests/grub_script_continue.in: New testcase.
22164 * conf/tests.rmk: Rules for new testcase.
22165
4df51e00
BC
221662010-08-12 BVK Chaitanya <bvk@dbook>
22167
22168 "break" command support to GRUB script.
22169
22170 * conf/common.rmk: Rule updates to grub-script-check.
22171 * include/grub/misc.h (grub_min): New function.
22172 * include/grub/script_sh.h (grub_script_init): New prototype.
22173 (grub_script_fini): New prototype.
22174 (grub_script_break): New prototype.
22175 * script/main.c (grub_script_init): New function.
22176 (grub_script_fini): New function.
22177 * script/execute.c (grub_script_break): New function.
22178 * normal/main.c: Calls to grub_script_{init,fini}.
22179 * util/grub-script-check.c (grub_script_break): New function.
22180
22181 * tests/grub_script_break.in: New testcase.
22182 * conf/tests.rmk: Rules for new test case.
22183
f12c8420
BC
221842010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22185
22186 Function parameters support to GRUB script.
22187
22188 * script/yylex.l (VARIABLE): Regular expression update.
22189 * script/function.c (grub_script_function_call): Moved ...
22190 * script/execute.c (grub_script_function_call): ... to here.
22191 (grub_script_execute_arglist_to_argv): Removed.
22192 (grub_script_arglist_to_argv): New function.
22193 * script/argv.c: New file.
22194 (grub_script_argv_free): New function.
22195 (grub_script_argv_next): Likewise.
22196 (grub_script_argv_append): Likewise.
22197 (grub_script_argv_split_append): Likewise.
22198 * include/grub/script_sh.h (grub_script_argv): New struct.
22199 (grub_script_argv_free): New function.
22200 (grub_script_argv_next): Likewise.
22201 (grub_script_argv_append): Likewise.
22202 (grub_script_argv_split_append): Likewise.
22203
22204 * conf/common.rmk (normal.mod): New source script/argv.c.
22205
22206 * tests/grub_script_echo1.in: More tests.
22207 * tests/grub_script_vars1.in: Likewise.
22208 * tests/grub_script_functions.in: New test case.
22209 * conf/tests.rmk: Rules for new testcase.
22210
8022b748
BC
222112010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22212
22213 Remove grub_script_cmdblock struct.
22214
22215 * include/grub/script_sh.h: Remove grub_script_cmdblock.
22216 * script/parser.y: Likewise.
22217 * script/execute.c: Rename cmdblock suffix to cmdlist.
22218 * script/script.c: Likewise.
22219 * util/grub-script-check.c: Likewise.
22220
79a6ba61
YB
222212010-08-11 Yves Blusseau <blusseau@zetam.org>
22222
22223 * .bzrignore: add grub-macho2img
22224
d04b9414
VS
222252010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22226
22227 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
22228
f947ab49
VS
222292010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22230
22231 Remove the dump of sm712 initialisation sequence.
22232
22233 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
22234 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
22235 (GRUB_VGA_IO_MISC_WRITE): Likewise.
22236 (GRUB_VGA_CR_*): Added many registers.
22237 (GRUB_VGA_SR_*): Likewise.
22238 (GRUB_VGA_GR_*): Likewise.
22239 (grub_vga_write_arx): New function.
22240 (grub_video_hw_config): New struct.
22241 (grub_vga_set_geometry): New function.
22242 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
22243 GRUB_PCI_CLASS_SUBCLASS_VGA.
22244 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
22245 * video/sm712.c (grub_sm712_write_reg): New function
22246 (grub_sm712_read_reg): Likewise.
22247 (grub_sm712_sr_write): Likewise.
22248 (grub_sm712_gr_write): Likewise.
22249 (grub_sm712_cr_write): Likewise.
22250 (grub_sm712_write_arx): Likewise.
22251 (grub_sm712_cr_shadow_write): Likewise.
22252 (grub_sm712_write_dda_lookup): Likewise.
22253 (grub_video_sm712_setup): Initialise the video rather then
22254 blindly replay the dump.
22255 (main) [TEST]: Add a routine to be able to compile as standalone for
22256 tests.
22257 * video/sm712_init.c (sm712_init): Removed.
22258 (sm712_sr_seq1): New array.
22259 (sm712_sr_seq2): Likewise.
22260
f0206638
VS
222612010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22262
22263 * include/grub/vga.h: Add missing grub/pci.h include.
22264
2764da3b
YB
222652010-08-10 Yves Blusseau <blusseau@zetam.org>
22266
22267 * util/grub-macho2img.c (main): fix typo
22268
cf0c775e
VS
222692010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22270
22271 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
22272 (grub_vga_gr_read): Likewise.
22273 (grub_vga_cr_write): Likewise.
22274 (grub_vga_cr_read): Likewise.
22275 (grub_vga_sr_write): Likewise.
22276 (grub_vga_sr_read): Likewise.
22277 (grub_vga_palette_read): Likewise.
22278 (grub_vga_palette_write): Likewise.
22279 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
22280 (grub_sm712_sr_read): New function.
22281 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
22282 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
22283
07f360e9
RM
222842010-08-09 Robert Millan <rmh@gnu.org>
22285
22286 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
22287 out unused variables on non-ZFS build.
22288
346c2072
RM
222892010-08-08 Robert Millan <rmh@gnu.org>
22290
22291 Fix path generation for sub-filesystems in ZFS.
22292
22293 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
22294 missing slash.
22295
71175420
RM
222962010-08-08 Robert Millan <rmh@gnu.org>
22297
22298 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
22299
0d8286f3
RM
223002010-08-08 Robert Millan <rmh@gnu.org>
22301
22302 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
22303 exist, issue a proper error message (rely on `ls' for translated
22304 strings).
22305
55dd2924
RM
223062010-08-08 Robert Millan <rmh@gnu.org>
22307
22308 Fix grub-probe invocation.
22309
22310 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
22311
d3dd9e80
RM
223122010-08-04 Robert Millan <rmh@gnu.org>
22313
22314 * configure.ac: Remove checks for getfsstat() and getmntany().
22315 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
22316 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
22317 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
22318 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
22319 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
22320 function.
22321 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
22322 via find_mount_point_from_dir() and getfsstat() / getmntany().
22323
0de22aa9
RM
223242010-08-04 Robert Millan <rmh@gnu.org>
22325
22326 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22327 (grub_find_zpool_from_mount_point): Merge into ...
22328 (grub_find_zpool_from_dir): ... this.
22329 * kern/emu/misc.c: Likewise.
22330
22331 * kern/emu/misc.c
22332 (grub_make_system_path_relative_to_its_root): Replace
22333 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
22334 with grub_find_zpool_from_dir().
22335 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
22336
62858144
RM
223372010-08-04 Robert Millan <rmh@gnu.org>
22338
22339 Support OpenSolaris in ZFS device resolution.
22340
22341 * configure.ac: Check for getmntany().
22342 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
22343 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
22344 support.
22345
9dd6fd50
RM
223462010-08-03 Robert Millan <rmh@gnu.org>
22347
22348 Fix grub-emu build.
22349
22350 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
22351 * include/grub/emu/misc.h: ... here.
22352
22353 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
22354 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
22355
22356 * util/misc.c: Remove `<grub/util/libzfs.h>'.
22357 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
22358 (grub_get_libzfs_handle): Move to ...
22359 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
22360 (grub_get_libzfs_handle): ... here.
22361
c9f7ff97
BC
223622010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
22363
22364 * script/execute.c (grub_script_execute_cmdline): Check for NULL
22365 as command name case.
22366
a870a783
CW
223672010-08-02 Colin Watson <cjwatson@ubuntu.com>
22368
22369 * disk/raid.c (insert_array): Select unique numbers for named arrays
22370 as well, for use as keys in the disk cache.
22371
c7db243b
RM
223722010-08-01 Robert Millan <rmh@gnu.org>
22373
22374 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
22375 kFreeBSD device name, except on ZFS where the filesystem label is
22376 used.
22377 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
22378 `/boot/zfs/zpool.cache'.
22379 Set mountfrom kernel variable using ${kfreebsd_device}.
22380
f7abdefb
RM
223812010-08-01 Robert Millan <rmh@gnu.org>
22382
22383 Make it even harder to use uninitialized `libzfs_handle' (and
22384 make the interface a bit simpler).
22385
22386 * include/grub/util/misc.h (grub_util_init_libzfs)
22387 (libzfs_handle): Remove.
22388 (grub_get_libzfs_handle): New prototype.
22389
22390 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
22391 attribute.
22392 (grub_util_init_libzfs): Remove.
22393 (grub_get_libzfs_handle): New function.
22394
22395 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
22396 grub_get_libzfs_handle() to obtain a libzfs handle instead of
22397 accessing `libzfs_handle' directly.
22398
c882acc0
RM
223992010-08-01 Robert Millan <rmh@gnu.org>
22400
22401 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22402 (grub_find_zpool_from_mount_point): New function prototypes.
22403
22404 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22405 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22406
22407 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22408 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22409 `static' attribute.
22410
22411 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22412 finding zpool from mount point into ...
22413 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22414
22415 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22416 requested path is part of a ZFS pool, use
22417 grub_find_zpool_from_mount_point() to detect its filesystem name,
22418 and generate a path with `/fsname@path' syntax.
22419
8bfe31d8
CW
224202010-08-01 Colin Watson <cjwatson@ubuntu.com>
22421
22422 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
22423 (void) rather than () so that this is a proper prototype.
22424
553df63d
VS
224252010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22426
22427 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
22428
8687cf07
VS
224292010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22430
22431 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
22432 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
22433
ea9be8ea
CW
224342010-08-01 Colin Watson <cjwatson@ubuntu.com>
22435
22436 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
22437
6eea041a
CW
224382010-08-01 Colin Watson <cjwatson@ubuntu.com>
22439
22440 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
22441
2cfb45df
CW
224422010-08-01 Colin Watson <cjwatson@ubuntu.com>
22443
22444 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
22445 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
22446 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
22447 disable gfxpayload.
22448 (Shell-like scripting): Add real content.
22449 (Serial terminal): Suggest `terminal_input serial; terminal_output
22450 serial' rather than putting the two commands on separate lines,
22451 since console input will be inoperative after the first command.
22452 (menuentry): Document --class, --users, and --hotkey options.
22453 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
22454 Vladimir Serbinenko).
22455
7decd202
VS
224562010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
224572010-08-01 Colin Watson <cjwatson@ubuntu.com>
22458
22459 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
22460
c882acc0
RM
224612010-08-01 Robert Millan <rmh@gnu.org>
22462
22463 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22464 (grub_find_zpool_from_mount_point): New function prototypes.
22465
22466 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22467 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22468
22469 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22470 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22471 `static' attribute.
22472
22473 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22474 finding zpool from mount point into ...
22475 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22476
22477 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22478 requested path is part of a ZFS pool, use
22479 grub_find_zpool_from_mount_point() to detect its filesystem name,
22480 and generate a path with `/fsname@path' syntax.
22481
deb0caa3
RM
224822010-08-01 Robert Millan <rmh@gnu.org>
22483
22484 Prevent accidental use of uninitialized libzfs_handle.
22485
22486 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
22487 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
22488 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
22489
ce04ef47
CW
224902010-08-01 Colin Watson <cjwatson@ubuntu.com>
22491
22492 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
22493 util/grub.d/10_linux.in). Fixes Debian bug #591093.
22494
ebf53056
RM
224952010-08-01 Robert Millan <rmh@gnu.org>
22496
22497 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 22498
3710bb6b
RM
224992010-07-31 Robert Millan <rmh@gnu.org>
22500
22501 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
22502
8072efeb
RM
225032010-07-31 Robert Millan <rmh@gnu.org>
22504
22505 * kern/emu/misc.c: Add missing license header.
22506
3169f4c7
RM
225072010-07-31 Robert Millan <rmh@gnu.org>
22508
22509 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
22510
22511 * include/grub/util/libnvpair.h: Include `<config.h>'.
22512 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
22513 declaring libnvpair prototypes ourselves.
22514 * include/grub/util/libzfs.h: Include `<config.h>'.
22515 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
22516 declaring libzfs prototypes ourselves.
22517
22518 (libzfs_handle): Moved to ...
22519 * include/grub/util/misc.h (libzfs_handle): ... here.
22520 Include `<grub/util/libzfs.h>'.
22521
c9a00aee
RM
225222010-07-30 Robert Millan <rmh@gnu.org>
22523
22524 * include/grub/emu/misc.h: Add missing license header.
22525
a184f9c8
RM
225262010-07-30 Robert Millan <rmh@gnu.org>
22527
22528 Enable `grub-probe -t device' resolution on ZFS.
22529
22530 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
22531 * include/grub/util/libnvpair.h: New file.
22532 * include/grub/util/libzfs.h: New file.
22533
22534 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
22535 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
22536 `<grub/util/libnvpair.h>'.
22537 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
22538
22539 (find_mount_point_from_dir): New static function.
22540 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
22541 function.
22542 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
22543 find_root_device_from_libzfs() before ressorting to find_root_device().
22544
22545 * include/grub/util/misc.h (grub_util_init_libzfs): New function
22546 prototype.
22547 * util/misc.c: Include `<grub/util/libzfs.h>'.
22548 (grub_util_init_libzfs): New function.
22549 [HAVE_LIBZFS] (libzfs_handle): New global variable.
22550 [HAVE_LIBZFS] (fini_libzfs): New static function.
22551 (grub_util_init_libzfs): New function.
22552 * util/grub-probe.c (main): Call grub_util_init_libzfs().
22553
f7790cdd
RM
225542010-07-30 Robert Millan <rmh@gnu.org>
22555
22556 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
22557 (xmalloc, xrealloc, xstrdup, xasprintf): Add
22558 `warn_unused_result' attribute.
22559 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
22560 (grub_xasprintf, grub_xvasprintf): Likewise.
22561 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
22562
0806b63c
RM
225632010-07-29 Robert Millan <rmh@gnu.org>
22564
22565 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
22566 (probe): Handle `PRINT_FS_LABEL'.
22567 (main): Handle `-t fs_label'.
22568
9f841f5c
RM
225692010-07-29 Robert Millan <rmh@gnu.org>
22570
22571 * configure.ac: Remove grub-mkisofs checks.
22572
46371121
VS
225732010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
22574
22575 * util/ieee1275/grub-install.in: Don't use empty grub_device.
22576 Reported by: Lennart Sorensen.
22577
225782010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22579
22580 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
22581 prior to terminal_input/terminal_output separation. It's been over 1.5
22582 years and those versions weren't widely deployed.
22583
a9600892
CW
225842010-07-22 Colin Watson <cjwatson@ubuntu.com>
22585
22586 * disk/raid.c (insert_array): Don't count named arrays when looking
22587 for unused array numbers.
697e053c 22588 Reported and tested by: Michael Guntsche.
a9600892 22589
c03507df
CW
225902010-07-20 Colin Watson <cjwatson@ubuntu.com>
22591
22592 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
22593 implementation of this so that grub-emu links again, with a note
22594 that this should support hotplugging in the future.
22595
b26f1c11
CW
225962010-07-20 Colin Watson <cjwatson@ubuntu.com>
22597
22598 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
22599
efc9d7f1
CW
226002010-07-20 Colin Watson <cjwatson@ubuntu.com>
22601
22602 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
22603 handle on failure.
22604 (grub_loopback_close): Remove empty function.
22605 (grub_loopback_dev): Remove close method.
22606
dd8ff5c9
CW
226072010-07-20 Colin Watson <cjwatson@ubuntu.com>
22608
22609 Disable EFI cursor when the EFI console becomes inactive.
22610
22611 * term/efi/console.c (grub_efi_console_init): New function.
22612 (grub_efi_console_fini): New function.
22613 (grub_console_term_output): Register init and fini methods.
22614
5e3bec67
VS
226152010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22616
22617 * tests/util/grub-shell-tester.in: Remove bashism and declare as
22618 sh script.
22619
afaec079
VS
226202010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22621
22622 * disk/loopback.c (grub_loopback): Replace filename with file.
22623 (delete_loopback): Handle new semantics.
22624 (grub_cmd_loopback): Likewise.
22625 (grub_loopback_iterate): Likewise.
22626 (grub_loopback_close): Likewise.
22627
a6a11f3c
VS
226282010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22629
22630 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
22631 with -p "".
22632 Reported by: Tito Keitel.
22633
64a638b0
VS
226342010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22635
22636 * docs/grub.texi (Naming convention): Document new naming convention.
22637
ab8ba957
VS
226382010-07-20 Vadim Solomin <vadic052@gmail.com>
226392010-07-20 Colin Watson <cjwatson@ubuntu.com>
22640
22641 Generate device.map in something closer to the old ordering.
22642
22643 * util/deviceiter.c (struct device): New declaration.
22644 (compare_file_names): Rename to ...
22645 (compare_devices): ... this. Sort by kernel name in preference to
22646 the stable by-id name, but keep the latter as a fallback comparison.
22647 Update header comment.
22648 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
22649 of `struct device' rather than of plain file names.
22650
a29d6a4b
TF
226512010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
22652
22653 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
22654 on i386.
22655
39d824e8
VS
226562010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22657
22658 * commands/acpi.c (setup_common_tables): Use sizeof instead of
22659 hardcoding size.
22660 (setv1table): Likewise.
22661
f058276b
FZ
226622010-07-20 Colin Watson <cjwatson@ubuntu.com>
22663
22664 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
22665 removing the homehost if present.
22666 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
22667 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
22668 removing the homehost if present.
22669 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
22670 if possible.
22671 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
22672
22673 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
22674 parameter. Set its pointer target to 0.
22675 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
22676 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
22677 `data_offset' value from the superblock for 1.x metadata.
22678 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
22679 data on the device.
22680 (insert_array): Record the start sector of data on the device.
22681 (grub_raid_register): Pass start_sector parameters to
22682 grub_raid_list->detect and insert_array.
22683 * include/grub/raid.h (struct grub_raid_array): Add start_sector
22684 member.
22685 (struct grub_raid): Add start_sector parameter to `detect'.
22686
22687 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
22688 __attribute__ ((packed)), leaving a comment.
22689 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
22690 (grub_mdraid_detect_09): ... here and ...
22691 (grub_mdraid_detect_1x): ... here.
22692
226932010-07-20 Peter Henn <peter.henn@web.de>
22694
22695 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
22696 chunk size and disk size, which are already given as sector counts
22697 as distinct from the 0.90 units. Fetch the correct device number
22698 from the role table instead of using the table index.
22699
227002010-07-20 Felix Zielcke <fzielcke@z-51.de>
22701
22702 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
22703 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
22704 (WriteMostly1): New macro.
22705 Set array->name to NULL for metadata format 0.90. Add support for
22706 metadata 1.x. Fix some comments.
22707 * disk/raid.c (): Add support for name based RAID arrays. Fix a
22708 few comments.
22709 * util/getroot.c (grub_util_get_grub_dev): Add support for
22710 /dev/md/name style devices.
22711
4b761da9
CW
227122010-07-20 Colin Watson <cjwatson@ubuntu.com>
22713
22714 * .bzrignore: Ignore 20_linux_xen.
22715
5771289a
CW
227162010-07-17 Colin Watson <cjwatson@ubuntu.com>
22717
22718 * util/import_unicode.py: Remove unnecessary imports.
22719
5dab68df
AN
227202010-07-17 Aleš Nesrsta <starous@volny.cz>
22721
22722 Hotplugging and USB hub support.
22723
22724 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
22725 (grub_ohci): Likewise.
22726 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
22727 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
22728 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
22729 (GRUB_OHCI_CTRL_EDS): Likewise.
22730 (GRUB_OHCI_BULK_EDS): Likewise.
22731 (GRUB_OHCI_TDS): Likewise.
22732 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
22733 (grub_ohci_ed_phys2virt): New function.
22734 (grub_ohci_virt_to_phys): Likewise.
22735 (grub_ohci_td_phys2virt): Likewise.
22736 (grub_ohci_td_virt2phys): Likewise.
22737 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
22738 attachment.
22739 (grub_ohci_find_ed): New function.
22740 (grub_ohci_alloc_td): Likewise.
22741 (grub_ohci_free_td): Likewise.
22742 (grub_ohci_free_tds): Likewise.
22743 (grub_ohci_transfer): Use previously allocated memory.
22744 (grub_ohci_portstatus): Reset status changed bit.
22745 (grub_ohci_detect_dev): Supply status changed.
22746 (grub_ohci_fini_hw): Free memory.
22747 (grub_ohci_restore_hw): Reallocate memory.
22748 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
22749 Reset status change.
22750 (grub_uhci_detect_dev): Supply status_change.
22751 * bus/usb/usb.c (attach_hooks): New var.
22752 (grub_usb_device_attach): New function.
22753 (grub_usb_register_attach_hook_class): Likewise.
22754 (grub_usb_unregister_attach_hook_class): Likewise.
22755 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
22756 (grub_usb_add_hub): Reset connection changed bit.
22757 (attach_root_port): New function.
22758 (grub_usb_root_hub): Likewise.
22759 (poll_nonroot_hub): Likewise.
22760 (grub_usb_poll_devices): Likewise.
22761 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
22762 * disk/usbms.c (grub_usbms_open): Use device hooks.
22763 (grub_usbms_iterate) :Poll devices.
22764 (grub_usbms_finddevs): Split into ...
22765 (grub_usbms_attach): ... this ...
22766 (grub_usbms_attach): ... and this.
22767 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
22768 in detect_dev.
22769 (grub_usb_interface): New fields attached and detach_hook.
22770 (grub_usb_attach_hook_class): New type.
22771 (grub_usb_attach_desc): New struct.
22772 (grub_usb_register_attach_hook_class): New function.
22773 (grub_usb_unregister_attach_hook_class): Likewise.
22774 (grub_usb_poll_devices): Likewise.
22775 (grub_usb_device_attach): Likewise.
22776 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
22777 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
22778
3222efaf
VS
227792010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
22780
22781 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
22782 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
22783 delta determination style. Works with most NetBSD partitions too.
22784
139b714a
VS
227852010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
22786
22787 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
22788 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
22789
986aad56
VS
227902010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
22791
22792 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
22793
99be513c
AB
227942010-07-14 Anton Blanchard <anton@samba.org>
22795
22796 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
22797 ET_DYN files.
22798
18075f62
GS
227992010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22800
22801 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
22802
8d9a5b15
GS
228032010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22804
22805 * kern/partition.c (grub_partition_check_containment): New function to
22806 check that a partition is physically contained in a parent. Since
22807 offsets are relative (and non-negative), this reduces to checking that
22808 the partition ends before its parent.
22809 (grub_partition_map_probe): Discard out-of-range sub-partitions.
22810 (grub_partition_iterate): Likewise.
22811 * include/grub/partition.h (grub_partition_map): Slightly more detailed
22812 comments.
22813 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
22814 partitions that start before their parent, and add debug printfs.
22815
19563c25
CW
228162010-07-13 Colin Watson <cjwatson@ubuntu.com>
22817
22818 * Makefile.in (.SUFFIX): Spell correctly, as ...
22819 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
22820 bare module name without `.mod', e.g. `test') tried to invoke a
22821 Modula-2 compiler.
22822
1a1f1e67
CW
228232010-07-13 Colin Watson <cjwatson@ubuntu.com>
22824
22825 * README: Point to the Info manual.
22826
811b0dca
JS
228272010-07-13 Jiro SEKIBA <jir@unicus.jp>
22828
22829 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
22830 2nd superblock position from partition size.
22831
e4f4eafc
CW
228322010-07-10 Colin Watson <cjwatson@ubuntu.com>
22833
22834 * Makefile.in (MAINTAINER_CLEANFILES): Remove
22835 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
22836 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
22837 outputs.
22838
4274c30f
VS
228392010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22840
22841 Restructure SCSI .id handling.
22842 Reported and tested by: Aleš Nesrsta.
22843
22844 * disk/ata.c (grub_atapi_close): Removed. All users updated.
22845 (grub_atapi_dev): Changed .name to "ata". New field .id.
22846 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
22847 (grub_usbms_dev): New field .id.
22848 * disk/scsi.c (grub_scsi_iterate): Generate name.
22849 (grub_scsi_open): Parse name.
22850 * include/grub/scsi.h (grub_make_scsi_id): New function.
22851 (grub_scsi_dev): Change iterate and open to number instead of naming
22852 busses. All users updated.
22853 (grub_scsi): Remove name. Add .bus.
22854
5bc24388
VS
228552010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22856
22857 * commands/help.c (grub_cmd_help): Fix a typo.
22858
249975ba
VS
228592010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22860
22861 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
22862 Reported and tested by: Colin Watson.
22863
3eaac1a1
VS
228642010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22865
22866 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
22867 in this context.
22868
becce1b1
VS
228692010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
22870
22871 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
22872
f7bf0918
CW
228732010-07-07 Colin Watson <cjwatson@ubuntu.com>
22874
22875 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
22876 indentation.
22877
0b0f9620
CW
228782010-07-06 Colin Watson <cjwatson@ubuntu.com>
22879
22880 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
22881 and disk/raid6_recover.c.
22882 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22883 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22884
1e545469
CW
228852010-07-06 Colin Watson <cjwatson@ubuntu.com>
22886
22887 * term/gfxterm.c (repaint_schedulded): Rename to ...
22888 (repaint_scheduled): ... this. Update all callers.
22889 (repaint_was_schedulded): Rename to ...
22890 (repaint_was_scheduled): ... this. Update all callers.
22891
5357687a
CW
228922010-07-06 Colin Watson <cjwatson@ubuntu.com>
22893
22894 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
22895 which we expect to be handled by upper layers.
22896
29d7e783
BC
228972010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
22898
22899 * bus/usb/usbhub.c: #include time.h header.
22900
37582066
CW
229012010-07-06 Colin Watson <cjwatson@ubuntu.com>
22902
22903 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
22904 entry_name also for entries without stat blocks (e.g. ".."); fixes
22905 corruption of the first entry in a directory.
22906
c8c06953
CW
229072010-07-06 Colin Watson <cjwatson@ubuntu.com>
22908
22909 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
22910 after setting gfxterm as the active terminal. GRUB_BACKGROUND
22911 doesn't work otherwise.
22912
e75056f1
CW
229132010-07-05 Colin Watson <cjwatson@ubuntu.com>
22914
22915 * docs/grub.texi (Features): Update list of supported file systems.
22916 (GNU/Linux): Update for GRUB 2.
22917 (Serial terminal): Remove mention of --disable-serial, which was a
22918 GRUB Legacy configure option. Update instructions to use
22919 `terminal_input' and `terminal_output' rather than `terminal'.
22920 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
22921 configuration' and `Installing GRUB using grub-install'.
22922 (Menu entry editor): Update for GRUB 2.
22923 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
22924 Document new -a, -u, and -v options.
22925 (initrd): New section.
22926 (initrd16): New section.
22927 (linux): New section.
22928 (linux16): New section.
22929 (search): The `var' argument to `--set' is optional.
22930 (GRUB only offers a rescue shell): Go into a little more detail on
22931 drive ordering.
22932
5cf69151
CW
229332010-07-05 Colin Watson <cjwatson@ubuntu.com>
22934
22935 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
22936
e3f90044
CW
229372010-07-05 Colin Watson <cjwatson@ubuntu.com>
22938
22939 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
22940 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
22941
38d8f4f3
CW
229422010-07-05 Colin Watson <cjwatson@ubuntu.com>
22943
22944 * util/i386/pc/grub-setup.c (setup): Rename prefix to
22945 install_prefix, in line with install_dos_part and install_bsd_part.
22946 Add new prefix variable, which is copied to install_prefix after
22947 comparing core.img in memory with the one read from disk in the
22948 no-embedding case, and use that rather than overwriting
22949 install_prefix immediately when installing to a partition.
22950 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
22951 Bicakci.
22952
57ebd41e
GS
229532010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
22954
22955 * configure.ac: Avoid == in test command, it's not portable.
22956 * util/grub.d/30_os-prober.in: Likewise.
22957
cb7f64b2
CW
229582010-07-04 Colin Watson <cjwatson@ubuntu.com>
22959
22960 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
22961
6b654bb0
GS
229622010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
22963
22964 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
22965 multiple (top-level) partmaps.
22966
72a2026d
VS
229672010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22968
22969 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 22970 Reported by: Tino Keitel.
72a2026d 22971
df3eb88f
VS
229722010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22973
22974 Bidi and diacritics support.
22975
22976 * Makefile.in (widthspec.bin): New target.
22977 (widthspec.h): Likewise.
22978 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
22979 * autogen.sh: Generate unidata.c.
22980 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
22981 * commands/ls.c (grub_ls_list_devices): Likewise.
22982 (grub_ls_list_files): Likewise.
22983 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
22984 (grub_mini_cmd_lsmod): Likewise.
22985 * commands/read.c: Likewise.
22986 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
22987 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
22988 * lib/arg.c (grub_arg_show_help): Likewise.
22989 * lib/crypto.c (grub_password_get): Likewise.
22990 * normal/auth.c (grub_username_get): Likewise.
22991 * normal/misc.c (grub_normal_print_device_info): Likewise.
22992 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
22993 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
22994 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
22995 (normal/charset.c_DEPENDENCIES): New variable.
22996 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
22997 (pkglib_MODULES): Remove charset.mod.
22998 (charset_mod_SOURCES): Removed.
22999 (charset_mod_CFLAGS): Likewise.
23000 (charset_mod_LDFLAGS): Likewise.
23001 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
23002 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
23003 and term/tparm.c.
23004 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23005 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23006 (kernel_img_HEADERS): Add terminfo.h.
23007 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
23008 Fill ->font. Reverse ascii bitmaps.
23009 (grub_font_get_xheight): New function.
23010 * font/font.c (grub_font_get_string_width): Moved from here ...
23011 * gfxmenu/font.c (grub_font_get_string_width): ... here.
23012 * font/font.c (grub_font_draw_string): Moved from here ...
23013 * gfxmenu/font.c (grub_font_draw_string): ... here.
23014 * font/font.c (grub_font_dup_glyph): New function.
23015 (grub_font_blit_glyph): Likewise.
23016 (grub_font_blit_glyph_mirror): Likewise.
23017 (blit_comb): Likewise.
23018 (grub_font_construct_dry_run): Likewise.
23019 (grub_font_get_constructed_device_width): Likewise.
23020 (grub_font_construct_glyph): Likewise.
23021 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
23022 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
23023 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
23024 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
23025 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
23026 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
23027 (grub_font_get_xheight): New proto.
23028 (grub_font_get_constructed_device_width): Likewise.
23029 (grub_font_construct_glyph): Likewise.
23030 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
23031 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
23032 * include/grub/font.h (grub_font_draw_string): Moved from here ...
23033 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
23034 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
23035 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
23036 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
23037 (grub_console_getcharwidth): Likewise.
23038 * include/grub/misc.h (grub_xputs): New proto.
23039 (grub_puts): Inlined.
23040 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
23041 (grub_normal_get_line_counter): Removed.
23042 (grub_install_newline_hook): Likewise.
23043 (grub_normal_get_char_counter): New proto.
23044 (grub_normal_reset_more): Likewise.
23045 (grub_xputs_normal): Likewise.
23046 * include/grub/powerpc/ieee1275/console.h: Removed.
23047 * include/grub/sparc64/ieee1275/console.h: Likewise.
23048 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
23049 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
23050 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
23051 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
23052 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
23053 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
23054 (grub_term_input): Pass reference to self. All users updated.
23055 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
23056 Pass reference to self. New fields normal_color, highlight_color and
23057 data. All users updated.
23058 (grub_putchar): Removed.
23059 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
23060 (grub_unicode_estimate_width): New function.
23061 (grub_term_getcharwidth): Add defaults.
23062 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
23063 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
23064 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
23065 (grub_cls): Remove EXPORT_FUNC.
23066 (grub_setcolorstate): Inline.
23067 (grub_newline_hook): Removed.
23068 * include/grub/terminfo.h: Rewritten. All users updated.
23069 * include/grub/unicode.h: New file.
23070 * include/grub/video.h (grub_video_signed_rect): New type.
23071 * kern/emu/console.c (grub_console_highlight_color): Removed.
23072 (grub_console_normal_color): Likewise.
23073 (grub_console_standard_color): Made static.
23074 (grub_ncurses_putchar): Remove mapping.
23075 (grub_ncurses_getcharwidth): Removed.
23076 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23077 (grub_ncurses_setcolor): Removed.
23078 (grub_ncurses_getcolor): Likewise.
23079 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
23080 (grub_console_putchar): ... this.
23081 (grub_console_putchar): Handle argument difference.
23082 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
23083 console_init_early and console_init_lately.
23084 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
23085 * kern/misc.c (grub_puts): Removed.
23086 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
23087 (grub_vsnprintf_real): Remove str = NULL support.
23088 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
23089 * normal/charset.c (grub_utf8_to_ucs4): ... here.
23090 * kern/term.c (grub_putcode): Renamed to ...
23091 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
23092 (grub_putchar): Removed.
23093 (grub_xputs_dumb): New function.
23094 (grub_xputs): New variable.
23095 * lib/charset.c: Move from here ...
23096 * normal/charset.c: ... to here.
23097 (grub_ucs4_to_utf8): New function.
23098 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
23099 (join_types): New variable.
23100 (unpack_join): New function.
23101 (bidi_types): New variable.
23102 (unpack_bidi): New function.
23103 (get_bidi_type): Likewise.
23104 (get_join_type): Likewise.
23105 (is_mirrored): Likewise.
23106 (grub_unicode_get_comb_type): Likewise.
23107 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
23108 (is_type_after): Likewise.
23109 (grub_unicode_aglomerate_comb): Likewise.
23110 (bidi_line_wrap): Likewise.
23111 (grub_bidi_line_logical_to_visual): Likewise.
23112 (grub_bidi_logical_to_visual): Likewise.
23113 (grub_unicode_mirror_code): Likewise.
23114 (grub_unicode_shape_code): Likewise.
23115 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
23116 Don't use grub_putchar.
23117 * normal/main.c (grub_normal_init_page): Use grub_putcode.
23118 (grub_normal_reader_init): Likewise.
23119 (grub_xputs_saved): New variable.
23120 (GRUB_MOD_INIT): Set grub_xputs.
23121 (GRUB_MOD_FINI): Restore grub_xputs.
23122 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
23123 (menu_init): Avoid printing gfxmenu error.
23124 (show_menu): Use grub_normal_get_char_counter.
23125 * normal/menu_entry.c (update_screen): Fix out-of-array.
23126 (complete): Avoid NULL dereferencing.
23127 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
23128 * normal/menu_text.c (print_spaces): Removed.
23129 (grub_print_ucs4): Likewise.
23130 (grub_print_message_indented): Use grub_print_ucs4.
23131 (print_message): Use grub_putcode.
23132 (print_entry): Hanlde diacritics.
23133 * normal/term.c (term_state): New type.
23134 (grub_more_lines): Removed.
23135 (term_states): New variable.
23136 (grub_normal_line_counter): Renamed to ..
23137 (grub_normal_char_counter): ...this. All users updated.
23138 (grub_normal_get_line_counter): Renamed to ...
23139 (grub_normal_get_char_counter): ... this.
23140 (grub_normal_reset_more): New function.
23141 (process_newline): Removed.
23142 (print_more): New function.
23143 (grub_install_newline_hook): Removed.
23144 (map_code): New function.
23145 (grub_puts_terminal): Use grub_print_ucs4.
23146 (putglyph): New function.
23147 (putcode_real): Likewise.
23148 (grub_putcode): Use putcode_real.
23149 (get_maxwidth): New function.
23150 (get_startwidth): Likewise.
23151 (print_ucs4_terminal): Likewise.
23152 (find_term_state): Likewise.
23153 (put_glyphs_terminal): Likewise.
23154 (print_backlog): Likewise.
23155 (print_ucs4_real): Likewise.
23156 (grub_print_ucs4): Likewise.
23157 (grub_xputs_normal): Likewise.
23158 * term/efi/console.c (grub_console_putchar): Output diacritics.
23159 (grub_console_getcharwidth): Removed.
23160 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23161 * term/gfxterm.c (clear_char): Free chars.
23162 (scroll_up): Avoid leaking memory.
23163 (grub_gfxterm_putchar): Support diacritics.
23164 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23165 * term/i386/pc/console.c (grub_console_term_output): Declare as
23166 GRUB_TERM_CODE_TYPE_VGA.
23167 * term/i386/pc/vga.c (grub_vga_term): Declare as
23168 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
23169 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
23170 GRUB_TERM_CODE_TYPE_VGA.
23171 * term/i386/vga_common.c (map_char): Removed.
23172 (grub_console_putchar): Likewise.
23173 (grub_console_getcharwidth): Likewise.
23174 * term/ieee1275/ofconsole.c: Simplify using terminfo.
23175 (colors): Reordered to match terminfo.
23176 (grub_ofconsole_normal_color): Removed.
23177 (grub_ofconsole_writeesc): Likewise.
23178 (grub_ofconsole_highlight_color): Likewise.
23179 (grub_ofconsole_getcharwidth): Likewise.
23180 (grub_ofconsole_setcolorstate): Likewise.
23181 (grub_ofconsole_setcolor): Likewise.
23182 (grub_ofconsole_getcolor): Likewise.
23183 (grub_ofconsole_readkey): Renamed to ...
23184 (readkey): ... this. Remove escape sequence handling. Return -1 on no
23185 key.
23186 (grub_ofconsole_checkkey): Removed.
23187 (grub_ofconsole_getkey): Likewise.
23188 (grub_ofconsole_getxy): Likewise.
23189 (grub_ofconsole_gotoxy): Likewise.
23190 (grub_ofconsole_cls): Likewise.
23191 (grub_ofconsole_refresh): Likewise.
23192 (grub_ofconsole_terminfo_input): New struct.
23193 (grub_ofconsole_terminfo_output): Likewise.
23194 (grub_ofconsole_term_input): Use terminfo.
23195 (grub_ofconsole_term_output): Likewise.
23196 (grub_console_init): Split into ...
23197 (grub_console_init_early): ...this and ...
23198 (grub_console_init_lately): ...this. Use terminfo.
23199 (grub_ofconsole_putchar): Renamed to ...
23200 (put): ... this. Remove mapping.
23201 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23202 * term/serial.c: Simplify using terminfo.
23203 (xpos): Removed.
23204 (ypos): Likewise.
23205 (keep_track): Likewise.
23206 (registered): Likewise.
23207 (input_buf): Likewise.
23208 (npending): Likewise.
23209 (serial_translate_key_sequence): Likewise.
23210 (fill_input_buf): Likewise.
23211 (grub_serial_checkkey): Likewise.
23212 (grub_serial_getkey): Likewise.
23213 (grub_serial_getxy): Likewise.
23214 (grub_serial_gotoxy): Likewise.
23215 (grub_serial_putchar): Likewise.
23216 (grub_serial_cls): Likewise.
23217 (grub_serial_setcolorstate): Likewise.
23218 (grub_serial_setcursor): Likewise.
23219 (serial_hw_init): Use serial_hw_fetch.
23220 (grub_serial_terminfo_input): New variable.
23221 (grub_serial_terminfo_output): Likewise.
23222 (grub_serial_term_input): Use terminfo.
23223 (grub_serial_term_output): Likewise.
23224 * term/terminfo.c (putstr): Use put.
23225 (grub_terminfo_all_free): New function
23226 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
23227 (grub_terminfo_output_register): New function.
23228 (grub_terminfo_output_unregister): Likewise.
23229 (grub_terminfo_getxy): Likewise.
23230 (grub_terminfo_readkey): Likewise.
23231 (grub_terminfo_checkkey): Likewise.
23232 (grub_terminfo_getkey): Likewise.
23233 (grub_terminfo_input_init): Likewise.
23234 (print_terminfo): Likewise.
23235 (grub_cmd_terminfo): Handle encoding.
23236 (grub_terminfo_gotoxy): Track position.
23237 (grub_terminfo_cls): Likewise.
23238 (grub_terminfo_putchar): Likewise.
23239 (grub_terminfo_setcolorstate): Handle colors
23240 (grub_terminfo_cursor_on): This ...
23241 (grub_terminfo_cursor_off): ... and this merged into ...
23242 (grub_terminfo_setcursor): ... this.
23243 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
23244 * unicode/ArabicShaping.txt: New file (imported from Unicode).
23245 * unicode/BidiMirroring.txt: Likewise.
23246 * unicode/UnicodeData.txt: Likewise.
23247 * unicode/COPYING: Likewise.
23248 * util/grub-editenv.c (grub_putchar): Removed.
23249 (grub_xputs_real): New function.
23250 (grub_xputs): New variable.
23251 * util/grub-fstest.c (grub_putchar): Removed.
23252 (grub_xputs_real): New function.
23253 (grub_xputs): New variable.
23254 * util/grub-mkdevicemap.c (grub_putchar): Removed.
23255 (grub_xputs_real): New function.
23256 (grub_xputs): New variable.
23257 * util/grub-probe.c (grub_putchar): Removed.
23258 (grub_xputs_real): New function.
23259 (grub_xputs): New variable.
23260 * util/grub-script-check.c (grub_putchar): Removed.
23261 (grub_xputs_real): New function.
23262 (grub_xputs): New variable.
23263 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
23264 (grub_xputs_real): New function.
23265 (grub_xputs): New variable.
23266 * util/import_unicode.py: New file.
23267 * util/grub-mkfont.c (ft_errmsgs): New array.
23268 (grub_glyph_info): Make bitmap a pointer.
23269 (file_formats): New type WIDTH_SPEC.
23270 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
23271 (options): Add width-spec.
23272 (help): Likewise.
23273 (add_char): Renamed to ...
23274 (add_glyph): ... this.
23275 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
23276 (glyph_replace): New type.
23277 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
23278 (add_char): New function.
23279 (add_subst): Likewise.
23280 (process_cursive): Likewise.
23281 (add_font): Handle GSUB.
23282 (write_font_width_spec): New function.
23283 (main): Sort glyphs.
23284 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
23285 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
23286 * kern/term.c (grub_cls): Moved from here...
23287 * normal/term.c (grub_cls): ... here.
23288
50f0bcda
CW
232892010-07-02 Colin Watson <cjwatson@ubuntu.com>
23290
23291 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
23292 suitable for using within the format argument of printf when
23293 converting grub_size_t.
23294 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
23295 "x" to convert grub_size_t arguments.
23296
40372103
VS
232972010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23298
23299 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
23300 too long captions.
23301 (list_get_minimal_size): Take selection box into account.
23302
942a10c7
VS
233032010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23304
23305 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
23306 NULL font.
23307
2bdb2892
CW
233082010-07-02 Colin Watson <cjwatson@ubuntu.com>
23309
23310 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
23311 devices when iterating over /dev/disk/by-id; they will be handled
23312 later if appropriate, which they aren't always (e.g. LVM).
23313
e03ed6c1
CW
233142010-07-02 Colin Watson <cjwatson@ubuntu.com>
23315
23316 * include/grub/misc.h (grub_reboot): Declare as noreturn.
23317 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
23318 fails.
23319 (grub_halt): Likewise.
23320 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
23321 reset-all fails.
23322 (grub_halt): Don't return, even if all of shut-down, power-off, and
23323 poweroff fail.
23324
47695765
CW
233252010-07-02 Colin Watson <cjwatson@ubuntu.com>
23326
23327 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
23328 arguments, not three.
23329
507736c8
CW
233302010-07-02 Colin Watson <cjwatson@ubuntu.com>
23331
23332 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
23333 * util/grub.d/10_linux.in: Use it to check for LVM, so that
23334 LVM-on-RAID is handled correctly.
23335
e3c8cd37
CW
233362010-07-02 Colin Watson <cjwatson@ubuntu.com>
23337
23338 * docs/grub.texi (Changes from GRUB Legacy): New section.
23339 (Future): Fix typo.
23340
8d4a2fec
CW
233412010-07-02 Colin Watson <cjwatson@ubuntu.com>
23342
23343 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
23344 grub.d/README accidentally ends up executable for one reason or
23345 another. Ignore it.
23346
1c4827be
VS
233472010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23348
23349 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
23350 (gpt_partition_map_iterate): Support non-512B sectors.
23351
d9a0c941
VS
233522010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23353
23354 * kern/efi/init.c (grub_efi_init): Disable watchdog.
23355 Tested by: Seth Goldberg.
23356
48f27e87
VS
233572010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23358
23359 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
23360 Properly align mbi.
23361 Reported by: Seth Goldberg.
23362
b0c4f956
VS
233632010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23364
23365 * util/grub-mkrescue.in: Avoid module duplication.
23366
105a2e8c
SF
233672010-07-01 Sean Finney <seanius@seanius.net>
23368
23369 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
23370
5944958c
SF
233712010-07-01 Sean Finney <seanius@seanius.net>
23372
23373 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
23374
233752010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23376
23377 * disk/lvm.c (grub_lvm_checkvalue): New function.
23378 (grub_lvm_check_flag): Likewise.
23379
b79889ba
RM
233802010-07-01 Robert Millan <rmh@gnu.org>
23381
23382 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
23383 Support 'p' as partition separator on kernel of FreeBSD (used
23384 with GPT labels).
23385 (grub_util_biosdisk_get_grub_dev): Likewise.
23386
ec1d04f1
VS
233872010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23388
23389 Yeeloong firmware port.
23390
23391 * boot/mips/yeeloong/fwstart.S: New file.
23392 * bus/cs5536.c (gpiodump): New const.
23393 (set_io_space): New function.
23394 (set_iod): Likewise.
23395 (set_p2d): Likewise.
23396 (grub_cs5536_init_geode): Likewise.
23397 * commands/mips/yeeloong/lsspd.c: New file.
23398 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
23399 (serial_mod_SOURCES): New variable.
23400 (serial_mod_CFLAGS): Likewise.
23401 (serial_mod_LDFLAGS): Likewise.
23402 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
23403 term/terminfo.c and term/tparm.c.
23404 (pkglib_IMAGES): Add fwstart.img.
23405 (fwstart_img_SOURCES): New variable.
23406 (fwstart_img_CFLAGS): Likewise.
23407 (fwstart_img_ASFLAGS): Likewise.
23408 (fwstart_img_LDFLAGS): Likewise.
23409 (fwstart_img_FORMAT): Likewise.
23410 (pkglib_MODULES): Add lsspd.mod.
23411 (lsspd_mod_SOURCES): New variable.
23412 (lsspd_mod_CFLAGS): Likewise.
23413 (lsspd_mod_LDFLAGS): Likewise.
23414 (pkglib_MODULES): Add halt.mod.
23415 (halt_mod_SOURCES): New variable.
23416 (halt_mod_CFLAGS): Likewise.
23417 (halt_mod_LDFLAGS): Likewise.
23418 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
23419 (serial_mod_SOURCES): Removed.
23420 (serial_mod_CFLAGS): Likewise.
23421 (serial_mod_LDFLAGS): Likewise.
23422 * disk/ata.c (check_device): New function.
23423 (grub_ata_device_initialize): Use check_device.
23424 (grub_ata_iterate): Recheck devices.
23425 (grub_ata_open): Likewise.
23426 (grub_atapi_iterate): Likewise.
23427 (grub_atapi_open): Likewise.
23428 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
23429 (GRUB_ATA_CH1_PORT1): Likewise.
23430 (GRUB_ATA_CH0_PORT2): Likewise.
23431 (GRUB_ATA_CH1_PORT2): Likewise.
23432 * include/grub/mips/loongson.h: New file.
23433 * include/grub/mips/yeeloong/ec.h: Likewise.
23434 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
23435 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
23436 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
23437 * include/grub/misc.h (grub_halt): Declare as noreturn.
23438 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
23439 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
23440 (UART_ENABLE_FIFO_TRIGGER1): New definition.
23441 (UART_ENABLE_DTRRTS): Likewise.
23442 (UART_ENABLE_MODEM): Removed.
23443 (UART_ENABLE_OUT2): New const.
23444 * include/grub/term.h (grub_term_register_input_active): New function.
23445 (grub_term_register_output_active): Likewise.
23446 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
23447 argument.
23448 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
23449 (init_pci): New function.
23450 (grub_machine_init): Execute platform init when firmware. Init serial.
23451 (grub_halt): Implement.
23452 (grub_exit): Likewise.
23453 (grub_reboot): Likewise.
23454 * term/serial.c (serial_hw_init): Update macros.
23455 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
23456 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
23457 (image_targets): New target mipsel-yeeloong-flash.
23458 (generate_image): Support IMAGE_YEELOONG_FLASH.
23459 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
23460 (grub_video_sm712_setup): Init card.
23461 (grub_video_sm712_set_palette): Removed.
23462 * video/sm712_init.c: New file.
23463
ff4a70d2
CW
234642010-06-30 Colin Watson <cjwatson@ubuntu.com>
23465
23466 * Makefile.in (install-local): Temporarily prepend $(builddir) to
23467 PATH when running help2man and then run it on the unadorned
23468 executable names, rather than passing $(builddir)/* paths to
23469 help2man. This avoids the build directory ending up in generated
23470 manual pages.
23471
1246efeb
CW
234722010-06-29 Colin Watson <cjwatson@ubuntu.com>
23473
23474 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
23475 to avoid accidents when debugging with 'sh -x'.
23476 * util/grub-mkrescue.in: Likewise.
23477 * util/grub.d/00_header.in: Likewise.
23478 * util/grub.d/10_hurd.in: Likewise.
23479 * util/grub.d/10_kfreebsd.in: Likewise.
23480 * util/grub.d/10_linux.in: Likewise.
23481 * util/grub.d/10_netbsd.in: Likewise.
23482 * util/grub.d/10_windows.in: Likewise.
23483 * util/grub.d/20_linux_xen.in: Likewise.
23484 * util/grub.d/30_os-prober.in: Likewise.
23485 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23486
1ba9b889
CW
234872010-06-29 Colin Watson <cjwatson@ubuntu.com>
23488
23489 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
23490 last character in the buffer.
23491 Reported by: Vladimir Serbinenko.
23492
dccaf99d
RM
234932010-06-29 Robert Millan <rmh@gnu.org>
23494
23495 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
23496 (Command-line and menu entry commands): Document `badram' command.
23497
d500ed12
RM
234982010-06-28 Robert Millan <rmh@gnu.org>
23499
23500 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
23501 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
23502 command using ${GRUB_BADRAM} as parameter.
23503
20bc84a6
CW
235042010-06-28 Colin Watson <cjwatson@ubuntu.com>
23505
23506 * docs/grub.texi (Device map): New section.
23507 (Themes): New section (stub).
23508 * Makefile.in (docs/grub.info): The info documentation now builds
23509 without errors. Make sure it stays that way.
23510
4045dee1
VS
235112010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23512
23513 Use normal parser for menu entries.
23514 Reported by: Thomas Frauendorfer
23515
23516 * include/grub/parser.h (grub_parser_execute): Don't export.
23517 * normal/menu.c (grub_menu_execute_entry_real): New function.
23518 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
23519
bca58c7b
CW
235202010-06-28 Colin Watson <cjwatson@ubuntu.com>
23521
23522 * docs/grub.texi (Embedded configuration): New section (replacing
23523 old "Preset Menu" stub).
23524 (Images): New section.
23525 (configfile): Note that any menu entries defined in `file' are shown
23526 immediately.
23527
dec53e63
JT
235282010-06-28 Josh Triplett <josh@joshtriplett.org>
23529
23530 * mmap/i386/pc/mmap_helper.S: Set CF on return.
23531
c06e40f7
CW
235322010-06-28 Colin Watson <cjwatson@ubuntu.com>
23533
23534 * util/grub-install.in: Add --debug-image= option.
23535
cb88052b
CW
235362010-06-28 Colin Watson <cjwatson@ubuntu.com>
23537
23538 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
23539 possible on Linux.
23540
23541 * util/deviceiter.c (check_device): Rename to ...
23542 (check_device_readable_unique): ... this. Update all callers.
23543 Maintain and check a list of which devices (by canonicalized name)
23544 have already been seen.
23545 (clear_seen_devices): New function.
23546 (compare_file_names) [__linux__]: New function.
23547 (grub_util_iterate_devices): Clear the list of seen devices on exit
23548 and (just in case) on entry.
23549 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
23550 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
23551 seen-devices list, superseded by general code in check_device.
23552
bbe34652
CW
235532010-06-28 Colin Watson <cjwatson@ubuntu.com>
23554
23555 * commands/cat.c (options): New variable.
23556 (grub_cmd_cat): Parse options. If the --dos option is given, print
23557 DOS-style "\r\n" line endings as simple newlines (Debian bug
23558 #586358).
23559 (GRUB_MOD_INIT): Use extcmd.
23560 (GRUB_MOD_FINI): Likewise.
23561 * docs/grub.texi (cat): Document --dos.
23562
412e09f3
VS
235632010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23564
23565 XEN with Linux grub-mkconfig support.
23566
23567 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
23568 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
23569 GRUB_CMDLINE_XEN_DEFAULT.
23570 * util/grub.d/20_linux_xen.in: New file.
23571
53f3ef38 235722010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
23573
23574 Initialise VGA video on qemu ourselves.
23575
23576 * boot/i386/qemu/boot.S: Don't call 0xc000.
23577 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
23578 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
23579 (kernel_img_HEADERS): Add pci.h.
23580 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
23581 * configure.ac: Force unifont on qemu and yeeloong.
23582 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
23583 (grub_vga_palette_write): Use correct register.
23584 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
23585 Call grub_qemu_init_cirrus.
23586 * kern/i386/qemu/init.c: New file.
23587 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
23588
23589 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
23590
c75be4fb
PR
235912010-06-26 Pavel Roskin <proski@gnu.org>
23592
23593 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
23594 13.
23595
d8034603
CW
235962010-06-26 Colin Watson <cjwatson@ubuntu.com>
23597
23598 * docs/grub.texi (Simple configuration): Explain that
23599 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
23600 set to `true' to disable their respective recovery entries, not
23601 merely set.
23602
3fa06487
CW
236032010-06-26 Colin Watson <cjwatson@ubuntu.com>
23604
23605 Make the `source' command slightly faster.
23606
23607 * normal/main.c (grub_normal_execute): Don't re-read list files when
23608 nested.
23609
e9b29642
CW
236102010-06-23 Colin Watson <cjwatson@ubuntu.com>
23611
23612 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
23613 field position and mask size to red fields from mode_info, not
23614 green.
23615 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
23616 Remove redundant tag->common.framebuffer_type assignment.
23617 Reported by: Seth Goldberg.
23618
e726542f
CW
236192010-06-23 Colin Watson <cjwatson@ubuntu.com>
23620
23621 Sync up other versions of the Linux loader with Robert Millan's
23622 change of 2010-01-09, "Make loader output a bit more user-friendly".
23623
23624 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
23625 grub_dprintf().
23626 (grub_cmd_linux): Likewise.
23627 (grub_cmd_initrd): Likewise.
23628 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
23629 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
23630
d6e98a17
CW
236312010-06-21 Colin Watson <cjwatson@ubuntu.com>
23632
23633 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
23634 larger than MEMORY_MAP_SIZE.
23635
14d3f08e
BC
236362010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
23637
23638 Fix parallel build.
23639
23640 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
23641 dependency.
23642 * script/parser.y: #include grub_script.tab.h header.
23643
4f9613a3
VS
236442010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23645
23646 Support >3GiB and <16MiB RAM in i386-qemu.
23647
23648 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
23649 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
23650 (grub_lower_mem): Removed.
23651 (grub_upper_mem): Likewise.
23652 (mem_size): Made static.
23653 (above_4g): New variable.
23654 (grub_machine_mmap_init): Detect small mem_size and above_4g.
23655 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
23656 support.
23657
05e51879
VS
236582010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23659
23660 Cirrus 5446 and Bochs video cards support.
23661
23662 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
23663 video_bochs.mod
23664 (video_cirrus_mod_SOURCES): New variable.
23665 (video_cirrus_mod_CFLAGS): Likewise.
23666 (video_cirrus_mod_LDFLAGS): Likewise.
23667 (video_bochs_mod_SOURCES): Likewise.
23668 (video_bochs_mod_CFLAGS): Likewise.
23669 (video_bochs_mod_LDFLAGS): Likewise.
23670 * include/grub/vga.h: New file.
23671 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
23672 (grub_video_fb_set_page_t): New type.
23673 (grub_video_fb_setup): New prototype.
23674 (grub_video_fb_swap_buffers): Likewise.
23675 (grub_video_fb_get_info_and_fini): Likewise.
23676 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
23677 (CRTC_DATA_PORT): Likewise.
23678 (CRTC_CURSOR): Likewise.
23679 (CRTC_CURSOR_ADDR_HIGH): Likewise.
23680 (CRTC_CURSOR_ADDR_LOW): Likewise.
23681 (CRTC_CURSOR_DISABLE): Likewise.
23682 (update_cursor): Use grub_vga_cr_write.
23683 (grub_vga_text_setcursor): Likewise.
23684 * video/bochs.c: New file.
23685 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
23686 (palette): Likewise.
23687 (palette_size): Likewise.
23688 (framebuffer): New variable.
23689 (grub_video_fb_init): Use 'framebuffer'.
23690 (grub_video_fb_fini): Likewise.
23691 (grub_video_fb_get_info): Likewise.
23692 (grub_video_fb_get_palette): Likewise.
23693 (grub_video_fb_set_palette): Likewise.
23694 (grub_video_fb_set_viewport): Likewise.
23695 (grub_video_fb_get_viewport): Likewise.
23696 (grub_video_fb_map_color): Likewise.
23697 (grub_video_fb_map_rgb): Likewise.
23698 (grub_video_fb_map_rgba): Likewise.
23699 (grub_video_fb_unmap_color): Likewise.
23700 (grub_video_fb_unmap_color_int): Likewise.
23701 (grub_video_fb_fill_rect): Likewise.
23702 (grub_video_fb_blit_bitmap): Likewise.
23703 (grub_video_fb_blit_render_target): Likewise.
23704 (grub_video_fb_scroll): Likewise.
23705 (grub_video_fb_create_render_target): Likewise.
23706 (grub_video_fb_doublebuf_blit_init): Likewise.
23707 (grub_video_fb_set_active_render_target): Handle doublebuffering.
23708 (doublebuf_pageflipping_update_screen): New function.
23709 (doublebuf_pageflipping_init): Likewise.
23710 (grub_video_fb_setup): Likewise.
23711 (grub_video_fb_swap_buffers): Likewise.
23712 (grub_video_fb_get_info_and_fini): Likewise.
23713 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
23714 All users updated.
23715 (doublebuf_pageflipping_commit): Restructured into ...
23716 (doublebuf_pageflipping_set_page): ... this.
23717 (doublebuf_pageflipping_update_screen): Removed.
23718 (doublebuf_pageflipping_init): Likewise.
23719 (double_buffering_init): Likewise.
23720 (grub_video_vbe_setup): Use grub_video_fb_setup.
23721 (grub_video_vbe_swap_buffers): Removed.
23722 (grub_video_vbe_set_active_render_target): Likewise.
23723 (grub_video_vbe_get_active_render_target): Likewise.
23724 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
23725 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
23726 grub_video_fb_set_active_render_target and
23727 grub_video_fb_get_active_render_target.
23728 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
23729 (SEQUENCER_DATA_PORT): Likewise.
23730 (MAP_MASK_REGISTER): Likewise.
23731 (CRTC_ADDR_PORT): Likewise.
23732 (CRTC_DATA_PORT): Likewise.
23733 (START_ADDR_HIGH_REGISTER): Likewise.
23734 (START_ADDR_LOW_REGISTER): Likewise.
23735 (GRAPHICS_ADDR_PORT): Likewise.
23736 (GRAPHICS_DATA_PORT): Likewise.
23737 (READ_MAP_REGISTER): Likewise.
23738 (INPUT_STATUS1_REGISTER): Likewise.
23739 (INPUT_STATUS1_VERTR_BIT): Likewise.
23740 (get_map_mask): Use grub_vga_sr_read.
23741 (set_map_mask): Use grub_vga_sr_write.
23742 (set_read_map): Use grub_vga_gr_write.
23743 (set_start_address): Use grub_vga_cr_write.
23744 * video/sm712.c (framebuffer): Remove leftover fields.
23745
4321c64a
CW
237462010-06-20 Colin Watson <cjwatson@ubuntu.com>
23747
23748 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
23749 setting GRUB_VIDEO_BACKEND. Make it available as a user override
23750 instead. Replace the gfxterm backend check with a check that
23751 ${GRUB_PREFIX}/video.lst is non-empty.
23752 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
23753 again.
23754 (load_video): New generated function. Call it before loading
23755 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
23756 * util/grub.d/10_linux.in (linux_entry): Call load_video.
23757 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
23758 * docs/grub.texi (Simple configuration): Document
23759 GRUB_VIDEO_BACKEND.
23760
237612010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23762
23763 Use video functions in linux and xnu loaders.
23764
23765 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
23766 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
23767 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
23768 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
23769 loader/i386/pc/linux.c.
23770 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
23771 (find_line_len): Removed.
23772 (find_framebuf): Likewise.
23773 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
23774 * loader/i386/efi/xnu.c: Removed.
23775 * loader/i386/pc/xnu.c: Moved from here...
23776 * loader/i386/xnu.c: ...here.
23777
23778 Enable priorities in video drivers.
23779
23780 * include/grub/video.h (grub_video_adapter_prio_t): New type.
23781 (grub_video_adapter): New field prio.
23782 (grub_video_register): Respect prio when inserting.
23783 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
23784 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
23785 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
23786 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
23787 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
23788 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
23789 * video/sm712.c (grub_video_sm712_adapter): Likewise.
23790
23791 Fix SDL driver ID.
23792
23793 * include/grub/video.h (grub_video_driver_id_t): New value
23794 GRUB_VIDEO_DRIVER_SDL.
23795 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
23796
7d24e434
CW
237972010-06-17 Colin Watson <cjwatson@ubuntu.com>
23798
23799 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
23800 argument to printf.
23801 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
23802
c88a83f6
CW
238032010-06-17 Colin Watson <cjwatson@ubuntu.com>
23804
23805 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
23806 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
23807
094dfb69
CW
238082010-06-17 Colin Watson <cjwatson@ubuntu.com>
23809
23810 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
23811 directly, and recommend grub-install instead.
23812 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
23813
2164da6b
CW
238142010-06-17 Colin Watson <cjwatson@ubuntu.com>
23815
23816 Fix i386-pc prefix handling with nested partitions (Debian bug
23817 #585068). Note that the case where the core image is booted using
23818 multiboot and relocated from its original location still requires
23819 more work.
23820
23821 * kern/i386/pc/init.c (make_install_device): If the prefix starts
23822 with "(,", fill the boot drive in between those two characters, but
23823 expect that a full partition specification including partition map
23824 names will follow.
23825 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
23826 specified, write a prefix without the drive name but including a
23827 full partition specification.
23828
044e2e60
CW
238292010-06-16 Colin Watson <cjwatson@ubuntu.com>
23830
23831 * util/grub-mkconfig.in: Ignore non-option arguments, for
23832 compatibility with older versions (before 2010-06-12) which did the
23833 same. In particular, this makes it easier to ship an update-grub
23834 wrapper which is compatible with that used with GRUB Legacy (Debian
23835 bug #586056).
23836
5591324f
GS
238372010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23838
23839 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
23840 for manual page generation.
23841
662e24d5
GS
238422010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23843
23844 * po/POTFILES: Remove leftover commands/handler.c.
23845
8d70754e
CW
238462010-06-14 Colin Watson <cjwatson@ubuntu.com>
23847
23848 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
23849 left this script non-functional.
23850
41160e2e
CW
238512010-06-14 Colin Watson <cjwatson@ubuntu.com>
23852
23853 * docs/man/grub-emu.h2m: New file.
23854
b5309cc1
CW
238552010-06-13 Colin Watson <cjwatson@ubuntu.com>
23856
23857 * docs/grub.texi (Commands): Document reduced command set in rescue
23858 mode.
23859 (cpuid): New section.
23860
fcb2d090
GS
238612010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
23862
23863 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
23864 new partition naming style.
23865 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
23866
96e5c556
BC
238672010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
23868
23869 Add "-o grub.iso" like cmdline options support.
23870
23871 * util/grub-install.in: Improve cmdline option parsing.
23872 * util/grub-mkconfig.in: Likewise.
23873 * util/grub-mkrescue.in: Likewise.
23874 * util/grub-reboot.in: Likewise.
23875 * util/grub-set-default.in: Likewise.
23876 * util/i386/efi/grub-install.in: Likewise.
23877 * util/ieee1275/grub-install.in: Likewise.
23878 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23879
c16be99b
CW
238802010-06-12 Colin Watson <cjwatson@ubuntu.com>
23881
23882 * .bzrignore: Ignore 41_custom.
23883
ce08a9fb
TS
238842010-06-12 Thomas Schmitt <scdbackup@gmx.net>
23885
23886 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
23887
7beac90c
CW
238882010-06-12 Colin Watson <cjwatson@ubuntu.com>
23889
23890 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
23891 prototype declarations.
23892
23893 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
23894 generating fs, partmap, and video lists.
23895 * include/grub/fs.h (grub_fs_register): Omit prototype if
23896 GRUB_LST_GENERATOR is defined.
23897 * include/grub/partition.h (grub_partition_map_register): Likewise.
23898 * include/grub/video.h (grub_video_register): Likewise.
23899
1c8f0f8d
JM
239002010-06-12 Javier Martín <lordhabbit@gmail.com>
23901
23902 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
23903
a6085973
TS
239042010-06-12 Thomas Schmitt <scdbackup@gmx.net>
23905
23906 * util/grub-mkrescue.in: Support --xorriso argument.
23907
25c56d29
VS
239082010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23909
23910 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
23911 Suggested by: Thomas Schmitt.
23912
e03e4b24
VS
239132010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23914
23915 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
23916 Suggested by: Thomas Schmitt.
23917
57711df6
VS
239182010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23919
23920 custom.cfg support.
23921
23922 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
23923 * util/grub.d/41_custom.in: New file.
23924
ee62c427
CW
239252010-06-12 Colin Watson <cjwatson@ubuntu.com>
23926
23927 * util/grub-mkrescue.in (make_image): Remove sh module, which has
23928 been merged back into normal.
23929
283af07a
CW
239302010-06-11 Colin Watson <cjwatson@ubuntu.com>
23931
23932 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
23933 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
23934
56a0d956
CW
239352010-06-11 Colin Watson <cjwatson@ubuntu.com>
23936
23937 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
23938 when generating manual pages.
23939 * docs/man/grub-bin2h.h2m: New file.
23940 * docs/man/grub-editenv.h2m: New file.
23941 * docs/man/grub-fstest.h2m: New file.
23942 * docs/man/grub-install.h2m: New file.
23943 * docs/man/grub-macho2img.h2m: New file.
23944 * docs/man/grub-mkconfig.h2m: New file.
23945 * docs/man/grub-mkdevicemap.h2m: New file.
23946 * docs/man/grub-mkfont.h2m: New file.
23947 * docs/man/grub-mkimage.h2m: New file.
23948 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
23949 * docs/man/grub-mkrelpath.h2m: New file.
23950 * docs/man/grub-mkrescue.h2m: New file.
23951 * docs/man/grub-ofpathname.h2m: New file.
23952 * docs/man/grub-pe2elf.h2m: New file.
23953 * docs/man/grub-probe.h2m: New file.
23954 * docs/man/grub-reboot.h2m: New file.
23955 * docs/man/grub-script-check.h2m: New file.
23956 * docs/man/grub-set-default.h2m: New file.
23957 * docs/man/grub-setup.h2m: New file.
23958
3a37e322
VS
239592010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
23960
23961 Use FOR_* macros instead of *_iterate whenever possible.
23962
23963 * commands/handler.c: Removed.
23964 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
23965 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
23966 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23967 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
23968 (grub_probe_SOURCES): Remove kern/parser.c.
23969 (util/grub-script-check.c_DEPENDENCIES): Removed.
23970 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
23971 and grub_script_check_init.c.
23972 (grub_script_check_init.lst): Removed.
23973 (grub_script_check_init.h): Likewise.
23974 (grub_script_check_init.c): Likewise.
23975 (pkglib_MODULES): Remove handler.mod and sh.mod.
23976 (handler_mod_SOURCES): Removed.
23977 (handler_mod_CFLAGS): Likewise.
23978 (handler_mod_LDFLAGS): Likewise.
23979 (normal_mod_SOURCES): Remove normal/handler.c.
23980 Add script/main.c, script/script.c, script/execute.c,
23981 script/function.c, script/lexer.c, grub_script.tab.c
23982 and grub_script.yy.c.
23983 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23984 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23985 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
23986 (grub_setup_SOURCES): Remove kern/parser.c.
23987 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23988 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
23989 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
23990 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23991 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23992 (grub_setup_SOURCES): Remove kern/parser.c.
23993 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23994 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
23995 * include/grub/command.h (grub_command_iterate): Removed.
23996 (FOR_COMMANDS): New macro.
23997 * include/grub/dl.h (grub_dl): New member next.
23998 (grub_dl_iterate): Removed.
23999 (grub_dl_head): New variable declaration.
24000 (FOR_DL_MODULES): New macro.
24001 * include/grub/fs.h: Include list.h.
24002 (grub_fs): Make next first element.
24003 (grub_fs_list): New variable declaration.
24004 (grub_fs_register): Make inline.
24005 (grub_fs_unregister): Likewise.
24006 (grub_fs_iterate): Removed.
24007 (FOR_FILESYSTEMS): New macro.
24008 * include/grub/handler.h: Removed.
24009 * include/grub/list.h (grub_list_hook_t): Removed.
24010 (grub_list_test_t): Likewise.
24011 (grub_list_pop): Likewise.
24012 (grub_list_iterate): Likewise.
24013 (grub_list_insert): Likewise.
24014 (FOR_LIST_ELEMENTS): New macro.
24015 * include/grub/parser.h (grub_parser_class): Removed.
24016 (grub_parser_register): Likewise.
24017 (grub_parser_unregister): Likewise.
24018 (grub_parser_get_current): Likewise.
24019 (grub_parser_set_current): Likewise.
24020 (grub_register_rescue_parser): Likewise.
24021 (grub_rescue_parse_line): New function.
24022 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
24023 * include/grub/script_sh.h (grub_script_function_list): New variable
24024 declaration.
24025 (FOR_SCRIPT_FUNCTIONS): New macro.
24026 (grub_script_function_iterate): Removed.
24027 (grub_normal_parse_line): New prototype.
24028 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
24029 (FOR_DISABLED_TERM_INPUTS): Likewise.
24030 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24031 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24032 * include/grub/video.h (grub_video_adapter): Move 'next' to first
24033 element.
24034 (grub_video_register): Inline.
24035 (grub_video_unregister): Likewise.
24036 (grub_video_adapter_list): New variable declaration.
24037 (grub_video_iterate): Removed.
24038 (FOR_VIDEO_ADAPTERS): New macro.
24039 * kern/dl.c (grub_dl_list): Removed. All users updated.
24040 (grub_dl_iterate): Removed.
24041 * kern/fs.c (grub_fs_list): Make global.
24042 (grub_fs_register): Removed.
24043 (grub_fs_unregister): Likewise.
24044 (grub_fs_iterate): Likewise.
24045 * kern/handler.c: Removed.
24046 * kern/list.c (grub_list_pop): Removed.
24047 (grub_list_iterate): Likewise.
24048 (grub_list_insert): Likewise.
24049 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
24050 (grub_prio_list_insert): Don't use grub_list_insert.
24051 * kern/main.c (grub_register_rescue_parser): Don't call
24052 grub_register_rescue_parser.
24053 * kern/parser.c (grub_parser_class): Removed.
24054 (grub_parser_execute): Use grub_rescue_parse_line.
24055 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
24056 (grub_rescue_parser): Removed.
24057 (grub_register_rescue_parser): Likewise.
24058 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
24059 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
24060 (grub_auth_check_authentication): Likewise.
24061 * normal/completion.c (iterate_command): Removed.
24062 (grub_normal_do_completion): Use FOR_COMMANDS.
24063 * normal/handler.c: Removed.
24064 * normal/main.c (read_config_file): Remove parser changing.
24065 (grub_normal_execute): Don't call read_handler_list.
24066 (grub_normal_read_line_real): Statically allocate prompt.
24067 (grub_cmdline_run): Use grub_normal_parse_line.
24068 (GRUB_MOD_FINI): Don't call free_handler_list.
24069 * normal/menu_entry.c (run): Likewise.
24070 * script/function.c (grub_script_function_list): Make global.
24071 (grub_script_function_iterate): Removed.
24072 * script/main.c (grub_normal_parse_line): Make global.
24073 (grub_sh_parser): Removed.
24074 (GRUB_MOD_INIT): Likewise.
24075 (GRUB_MOD_FINI): Likewise.
24076 * tests/lib/functional_test.c (grub_functional_test): Use
24077 FOR_LIST_ELEMENTS.
24078 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
24079 (grub_test_run): Use FOR_LIST_ELEMENTS.
24080 * tests/lib/unit_test.c (main): Likewise.
24081 * util/deviceiter.c (grub_util_iterate_devices): Don't use
24082 grub_list_pop.
24083 * util/grub-fstest.c (grub_term_input_class): Removed.
24084 (grub_term_output_class): Likewise.
24085 * util/grub-probe.c: Likewise.
24086 * util/i386/pc/grub-setup.c: Likewise.
24087 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24088 * util/grub-script-check.c (main): Don't call grub_init_all and
24089 grub_fini_all.
24090 * video/video.c (grub_video_adapter_list): Make global.
24091 (grub_video_register): Removed.
24092 (grub_video_unregister): Likewise.
24093 (grub_video_iterate): Likewise.
24094
6289c3a7
VS
240952010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
24096
24097 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
24098 reported by Henrique Ferreiro.
24099
91460247
RM
241002010-06-09 Robert Millan <rmh@gnu.org>
24101
24102 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
24103 ones, when both are available.
24104
0ea7c4f9
GS
241052010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24106
24107 Make --version uniform and avoid hard-coded program name.
24108
24109 * util/grub-mkimage.c (main): Use `program_name' instead of
24110 hard-coded string.
24111 * util/i386/pc/grub-setup.c (main): Likewise.
24112 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
24113 * util/grub-install.in: Save the basename of $0 in $self, and use the
24114 latter in informational messages. Use the same format for --version
24115 as the binary programs.
24116 * util/grub-mkconfig.in: Likewise.
24117 * util/grub-mkrescue.in: Likewise.
24118 * util/grub-reboot.in: Likewise.
24119 * util/grub-set-default.in: Likewise.
24120 * util/i386/efi/grub-install.in: Likewise.
24121 * util/ieee1275/grub-install.in: Likewise.
24122 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24123
e8a6f3b6
GS
241242010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24125
24126 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
24127 embedding area. Use <= instead of == when checking for non-emptiness.
24128
f4d095d7
GS
241292010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24130
24131 * configure.ac: Add `.' to the directories searched for unifont.
24132
50e532ca
CW
241332010-06-08 Colin Watson <cjwatson@ubuntu.com>
24134
24135 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
24136 grub_script.yy.h.
24137
d39f3dec
CW
241382010-06-08 Colin Watson <cjwatson@ubuntu.com>
24139
24140 * docs/grub.texi (History): Expand to cover GRUB 2.
24141 (Serial terminal): Refer to `terminal_input' and `terminal_output'
24142 commands, not `terminal'.
24143 (serial): Likewise.
24144 (terminal_input): New section.
24145 (terminal_output): New section.
24146 (uppermem): New section (stub).
24147 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
24148
6ef0ddb4
CW
241492010-06-08 Colin Watson <cjwatson@ubuntu.com>
24150
24151 * docs/grub.texi (Security): Menu entries are unrestricted by
24152 default, not restricted to superusers as I had previously thought.
24153 Reword to account for this.
24154
e0f4c438
CW
241552010-06-07 Colin Watson <cjwatson@ubuntu.com>
24156
24157 * kern/emu/misc.c (device_mapper_null_log): New function.
24158 (grub_device_mapper_supported): New function.
24159 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
24160 prototype.
24161 * kern/emu/hostdisk.c (find_partition_start): Check whether
24162 device-mapper is supported before trying to use it.
24163 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
24164
da908200
CW
241652010-06-07 Colin Watson <cjwatson@ubuntu.com>
24166
24167 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
24168 (File name syntax): Likewise.
24169 (help): --all is no longer supported in GRUB 2. Be more precise
24170 about pattern matching.
24171
fb55c3ac
CW
241722010-06-07 Colin Watson <cjwatson@ubuntu.com>
24173
24174 * normal/completion.c (grub_normal_do_completion): When completing
24175 arguments to "set" and the current word contains an equals sign,
24176 skip to after the equals sign before starting completion.
24177
258c2573
CW
241782010-06-07 Colin Watson <cjwatson@ubuntu.com>
24179
24180 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
24181
ee75515e
CW
241822010-06-07 Colin Watson <cjwatson@ubuntu.com>
24183
24184 * docs/grub.texi (Network): New section.
24185 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
24186 `(nd)' as in GRUB Legacy.
24187 (pxe_unload): New section.
24188
a6a700aa
CW
241892010-06-07 Colin Watson <cjwatson@ubuntu.com>
24190
24191 * docs/grub.texi (Troubleshooting): `echo' is not usually available
24192 in the rescue shell, so recommend using `set' instead. Thanks,
24193 Jordan Uggla.
24194
4003dd38
CW
241952010-06-07 Colin Watson <cjwatson@ubuntu.com>
24196
24197 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
24198 (password): New section.
24199 (password_pbkdf2): New section.
24200 (search): New section.
24201 (Security): New section.
24202 (Troubleshooting): New section, currently very incomplete.
24203 (Invoking grub-mkpasswd-pbkdf2): New section.
24204 (Internals): New section, currently very incomplete.
24205
e1cbcc40
CW
242062010-06-07 Colin Watson <cjwatson@ubuntu.com>
24207
24208 * util/grub.d/00_header.in: Add some more quoting (of
24209 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
24210 work again.
24211 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
24212
db8fa1ad
CW
242132010-06-07 Colin Watson <cjwatson@ubuntu.com>
24214
24215 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
24216 to `count', fixing variable shadowing that broke the -c option.
24217
242182010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
24219
24220 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
24221 in case they contain spaces.
24222
f28a9212
CW
242232010-06-04 Colin Watson <cjwatson@ubuntu.com>
24224
24225 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
24226 "part_" to partmap module names, in line with grub-install.
24227 Reported by: Jindřich Makovička (Debian bug #584426).
24228
9cdfe32f
CW
242292010-06-04 Colin Watson <cjwatson@ubuntu.com>
24230
24231 * util/grub-mkimage.c: Make target-related error messages slightly
24232 more helpful; -O talks about "format". Explicitly point to the use
24233 of -O if no target is specified.
24234 Reported by: Didier Raboud (Debian bug #584415).
24235
795b593a
CW
242362010-06-03 Colin Watson <cjwatson@ubuntu.com>
24237
24238 * INSTALL: Document several build requirements for optional features
24239 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
24240
9d9b5833
GS
242412010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
24242
24243 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
24244 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
24245 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
24246
0819fec8
CW
242472010-06-02 Colin Watson <cjwatson@ubuntu.com>
24248
24249 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
24250 Thanks to Jordan Uggla for spotting this.
24251
49396b4f
VS
242522010-06-02 Aleš Nesrsta <starous@volny.cz>
24253
24254 Finally make USB usable.
24255
24256 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
24257 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
24258 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
24259 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
24260 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
24261 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
24262 (GRUB_OHCI_FSMPS): Likewise.
24263 (GRUB_OHCI_PERIODIC_START): Likewise.
24264 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
24265 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
24266 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
24267 (GRUB_OHCI_SET_PORT_RESET): Likewise.
24268 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
24269 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
24270 (grub_ohci_transaction): Likewise.
24271 (grub_ohci_transfer): Improve condition detection algorithms.
24272 Handle toggle property. Program the transactions correctly.
24273 Improve error handling. Various important fixups.
24274 (grub_ohci_portstatus): Put register writes in right order.
24275 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
24276 (grub_uhci_transfer): Don't show "failed" message on success.
24277 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
24278 array.
24279 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
24280 determine its size.
24281 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
24282 before initialization is completed. Use IN direction for empty
24283 transfers. Use last_trans and compute toggle.
24284 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
24285 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
24286 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
24287 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
24288 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
24289 (grub_usb_device): Increase toggle to 256.
24290 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
24291 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
24292 GRUB_USBMS_SUBCLASS_SFF8070.
24293 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
24294 (grub_scsi_inquiry): New member page and alloc_length.
24295 (grub_scsi_request_sense): New structure.
24296 (grub_scsi_request_sense_data): Likewise.
24297 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
24298 control.
24299 * disk/scsi.c (grub_scsi_request_sense): New function.
24300 (grub_scsi_test_unit_ready): Likewise.
24301 (grub_scsi_inquiry): Fill new fields.
24302 (grub_scsi_read_capacity): Likewise.
24303 (grub_scsi_read10): Add request sense at the end.
24304 (grub_scsi_read12): Likewise.
24305 (grub_scsi_write10): Likewise.
24306 (grub_scsi_write12): Likewise.
24307 (grub_scsi_open): Add Test Unit Ready.
24308 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
24309 Support additional subclasses. Con't clear halt yet. Activate the
24310 proper config. Calculate LUNs correctly.
24311 (grub_usbms_transfer): Various important fixups.
24312
243132010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24314
24315 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
24316 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
24317 (grub_ohci_fini_hw): New function.
24318 (grub_ohci_restore_hw): Likewise.
24319 (GRUB_MOD_INIT(ohci)): Register preboot hook.
24320 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
24321 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
24322
243232010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24324
24325 Dedicated DMA allocations.
24326
24327 * bus/pci.c (grub_memalign_dma32): New function
24328 (grub_dma_free): Likewise.
24329 (grub_dma_get_virt): Likewise.
24330 (grub_dma_get_phys): Likewise.
24331 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
24332 (grub_ohci_pci_iter): Use dma32_alloc.
24333 (grub_ohci_transfer): Likewise.
24334 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24335 (grub_usb_bulk_readwrite): Likewise.
24336 * include/grub/pci.h: Add declarations.
24337
243382010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24339
24340 CS5536 support.
24341
24342 * bus/cs5536.c: New file.
24343 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
24344 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
24345 (cs5536_mod_SOURCES): New variable.
24346 (cs5536_mod_CFLAGS): Likewise.
24347 (cs5536_mod_LDFLAGS): Likewise.
24348 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
24349 machine/pci.h.
24350 (kernel_img_SOURCES): Add bus/cs5536.c.
24351 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
24352 usb_keyboard.mod.
24353 (usb_mod_SOURCES): New variable.
24354 (usb_mod_CFLAGS): New variable.
24355 (usb_mod_LDFLAGS): New variable.
24356 (usbtest_mod_SOURCES): New variable.
24357 (usbtest_mod_CFLAGS): New variable.
24358 (usbtest_mod_LDFLAGS): New variable.
24359 (ohci_mod_SOURCES): New variable.
24360 (ohci_mod_CFLAGS): New variable.
24361 (ohci_mod_LDFLAGS): New variable.
24362 (usbms_mod_SOURCES): New variable.
24363 (usbms_mod_CFLAGS): New variable.
24364 (usbms_mod_LDFLAGS): New variable.
24365 (usb_keyboard_mod_SOURCES): New variable.
24366 (usb_keyboard_mod_CFLAGS): New variable.
24367 (usb_keyboard_mod_LDFLAGS): New variable.
24368 * include/grub/smbus.h: New file.
24369 * include/grub/cs5536.h: New file.
24370
0b35b2a9
CW
243712010-06-02 Colin Watson <cjwatson@ubuntu.com>
24372
24373 * util/grub.d/00_header.in: Add safety check to make sure that
24374 ${locale_dir} exists before trying to probe it.
24375
ca0afd5b
CW
243762010-06-02 Colin Watson <cjwatson@ubuntu.com>
24377
24378 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
24379 per the GNU Coding Standards; this is now too obscure to be worth
24380 documenting.
24381 (QNX): Likewise.
24382 (chainloader): Remove cross-reference to `SCO UnixWare'.
24383
1c41aa78
CW
243842010-06-02 Colin Watson <cjwatson@ubuntu.com>
24385
24386 * docs/grub.texi (Chain-loading): New section.
24387 (DOS/Windows): New section, borrowed from GRUB Legacy with details
24388 adjusted for GRUB 2.
24389 (SCO UnixWare): Likewise.
24390 (QNX): Likewise.
24391 (chainloader): Add reference to `Block list syntax'.
24392 (drivemap): New section.
24393 (parttool): New section.
24394
bb8ea0f5
CW
243952010-06-02 Colin Watson <cjwatson@ubuntu.com>
24396
24397 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
24398 the grub shell'.
24399 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
24400 (Installing GRUB using grub-install): Remove reference to the grub
24401 shell; mention `grub-mkimage' and `grub-setup' instead.
24402 (Invoking grub-install): Likewise.
24403 (Interface): Add reference to `Menu entry editor'.
24404 (serial): Remove `--device' option.
24405
288dd6ed
CW
244062010-06-02 Colin Watson <cjwatson@ubuntu.com>
24407
24408 * docs/grub.texi (Configuration): New section, documenting
24409 configuration file generation using grub-mkconfig. I've left a slot
24410 for documenting the full shell scripting format but have not yet
24411 started on writing that up.
24412 (Invoking grub-mkconfig): New section.
24413
34c9f0e9
CW
244142010-06-02 Colin Watson <cjwatson@ubuntu.com>
24415
24416 * docs/grub.texi (direntry): Remove grub-terminfo reference.
24417 (GNU GRUB manual): Likewise.
24418 (General commands): Update description of `terminfo' for GRUB 2.
24419
9121567e
CW
244202010-06-02 Colin Watson <cjwatson@ubuntu.com>
24421
24422 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
24423 (GRUB_MOD_INIT): Fix capitalisation.
24424 * docs/grub.texi (Command-line and menu entry commands): Document
24425 gettext and gptsync commands.
24426
ab631611
CW
244272010-06-02 Colin Watson <cjwatson@ubuntu.com>
24428
24429 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
24430 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
24431
bde4a9ac
CW
244322010-06-01 Colin Watson <cjwatson@ubuntu.com>
24433
24434 Add btrfs probing support, currently only in the single-device case.
24435
24436 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
24437 function.
24438 (grub_guess_root_device): Call find_root_device_from_mountinfo
24439 before looking in /dev.
24440
b1d17e10
VS
244412010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24442
24443 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
24444 GRUB_DISK_SIZE_UNKNOWN.
24445 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
24446
dfbfe004
JS
244472010-05-31 Jiro SEKIBA <jir@unicus.jp>
24448
24449 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
24450 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
24451 corrupted or not synced properly.
24452
c2ffc8e9
VS
244532010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24454
24455 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
24456 Reported by: Seth Goldberg.
24457
56293166
VS
244582010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24459
24460 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
24461 addition of dest.
24462 Reported by: Seth Goldberg.
24463
7620e7de
VS
244642010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24465
24466 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
24467 Reported by: Seth Goldberg.
24468
c837af3f
VS
244692010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24470
24471 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
24472 64-bit address as signed on MIPS.
24473
c7c75cf4
CW
244742010-05-28 Colin Watson <cjwatson@ubuntu.com>
24475
24476 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
24477 to the empty string.
24478
fa4b8490
BC
244792010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
24480
24481 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
24482
24483 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
24484 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
24485 * kern/misc.c (__enable_execute_stack): Disable on
24486 GRUB_MACHINE_EMU.
24487
a33075b9
CW
244882010-05-28 Colin Watson <cjwatson@ubuntu.com>
24489
24490 Make grub-probe work with symbolic links under /dev/mapper as well
24491 as with real block devices. The Linux world seems to be (at best)
24492 in transition here, and GRUB shouldn't get caught in the middle.
24493
24494 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
24495 /dev/mapper.
24496
d8708134
CW
244972010-05-27 Colin Watson <cjwatson@ubuntu.com>
24498
24499 * util/grub-script-check.c (main): Ensure defined behaviour on empty
24500 input files (in which case exit zero).
24501
db2102a0
CW
245022010-05-27 Colin Watson <cjwatson@ubuntu.com>
24503
24504 * kern/emu/misc.c (canonicalize_file_name): realpath can still
24505 return NULL for various reasons even if it has a maximum-length
24506 buffer: for example, there might be a symlink loop, or the path
24507 might exceed PATH_MAX. If this happens, return NULL.
24508
5fdba519
RM
245092010-05-27 Robert Millan <rmh@gnu.org>
24510
24511 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
24512 partmap module to handle cross-partmap setups.
24513 Reported by Orestes Mas. Gràcies!
24514
d1d368e4
CW
245152010-05-27 Colin Watson <cjwatson@ubuntu.com>
24516
24517 * util/grub-mkrescue.in: Initialise override_dir rather than
24518 assuming that it's unset or empty in the environment.
24519
95ac3c73
GS
245202010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
24521
24522 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
24523 variable index into p_index to suppress a warning with -Wshadow.
24524
7d8c0213
BC
245252010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
24526
24527 * INSTALL: Added flex >= 2.5.35 requirement.
24528
db4d5813
VS
245292010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24530
24531 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
24532
f24f4300
VS
245332010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24534
24535 cmostest support.
24536
24537 * commands/i386/cmostest.c: New file.
24538 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
24539 (cmostest_mod_SOURCES): New variable.
24540 (cmostest_mod_CFLAGS): Likewise.
24541 (cmostest_mod_LDFLAGS): Likewise.
24542 * conf/i386-pc.rmk: Likewise.
24543 * docs/grub.texi (Vendor power-on keys): New section.
24544 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
24545 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
24546 and GRUB_BUTTON_CMOS_ADDRESS.
24547 * util/grub.d/00_header.in: Handle powering-on by separate button.
24548
ad603f61
VS
245492010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24550
24551 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
24552 Removed drawing_scrollbar argument. All users updated
24553 Fixes #29792.
24554 Reported by Jo Shields
24555
3ecb080a
VS
245562010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24557
24558 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
24559 buffer since gfxterm handles double repaint.
24560
5f2316c1
VS
245612010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24562
24563 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
24564 * term/gfxterm.c (real_scroll): Likewise.
24565
9a25f885
VS
245662010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24567
24568 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
24569 before calling BIOS.
24570
39fbb79a
VS
245712010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24572
24573 * include/grub/i18n.h: Always enable grub_gettext.
24574
228cfa97
VS
245752010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24576
24577 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
24578 partition naming style.
24579
21717c8f
CW
245802010-05-21 Colin Watson <cjwatson@ubuntu.com>
24581
24582 * util/grub-mkconfig.in: Fix handling of -o so that it works when
24583 not the first option.
24584
c0f48e65
CW
245852010-05-20 Colin Watson <cjwatson@ubuntu.com>
24586
24587 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
24588
96779aec
CW
245892010-05-20 Colin Watson <cjwatson@ubuntu.com>
24590
24591 * util/misc.c: Move inclusion of <limits.h> to ...
24592 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
24593
fa9d256e
GS
245942010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
24595
24596 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
24597 Fix merge error in NetBSD code.
24598 (find_partition_start) [__NetBSD__]: Likewise.
24599
123b7a85
BC
246002010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
24601
24602 Fix grub-mkrescue usage unit testing.
24603
24604 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
24605
74276c0d
CF
246062010-05-18 Christian Franke <franke@computer.org>
24607
24608 * util/grub.d/10_windows.in: Use path names instead of
24609 drive letters to prevent warning from Cygwin 1.7.
24610 Add drivemap command to menuentry if needed.
24611
c4f7b523
ST
246122010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
24613
24614 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
24615 gnumach and gnumach.gz.
24616
95b97950
VS
246172010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24618
24619 * include/grub/i18n.h (gettext): Inline instead of using #define.
24620 (grub_gettext): Likewise.
24621 (_): Likewise.
24622
01b8d2d7
VS
246232010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24624
24625 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
24626 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
24627 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
24628 (main): Add a slash after pkglibdirroot.
24629
654e1d1e
VS
246302010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24631
24632 * util/grub-install.in: Add missing "in" keyword.
24633
26966aeb
VS
246342010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24635
24636 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
24637 Reported by: Seth Goldberg.
24638
75006747
VS
246392010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24640
24641 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
24642
74cbf5bd
CW
246432010-05-18 Colin Watson <cjwatson@ubuntu.com>
24644
24645 * configure.ac: Check for Linux device-mapper support.
24646
24647 * util/hostdisk.c (device_is_mapped): New function.
24648 (find_partition_start): New function, partly broken out from
24649 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
24650 device-mapper support added.
24651 (linux_find_partition): Use find_partition_start.
24652 (convert_system_partition_to_system_disk): Add `st' argument.
24653 Support Linux /dev/mapper/* devices if device-mapper support is
24654 available; only DM-RAID devices are understood at present.
24655 (find_system_device): Add `st' argument. Pass it to
24656 convert_system_partition_to_system_disk.
24657 (grub_util_biosdisk_get_grub_dev): Pass stat result to
24658 find_system_device and convert_system_partition_to_system_disk. Use
24659 find_partition_start.
24660
24661 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
24662 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
24663 * util/deviceiter.c [__linux__]: Define MINOR.
24664 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
24665 * util/mkdevicemap.c (grub_putchar): New function.
24666 (grub_getkey): New function.
24667 (grub_refresh): New function.
24668 (main): Set debug=all if -v -v is used.
24669
355b51e9
CW
246702010-05-18 Colin Watson <cjwatson@ubuntu.com>
24671
24672 Fix build with non-GNU libcs.
24673
24674 * util/misc.c (canonicalize_file_name): Move to ...
24675 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
24676 grub_make_system_path_relative_to_its_root.
24677
7fb5c25f
CW
246782010-05-18 Colin Watson <cjwatson@ubuntu.com>
24679
24680 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
24681 we handle finding grub-mkimage. Default to finding grub-mkimage in
24682 ${bindir} with program_transform_name applied, and provide a
24683 --grub-mkimage option to override this.
24684
1d3293d6
VS
246852010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24686
24687 Remove grub-mkisofs.
24688
24689 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
24690 (grub_mkisofs_SOURCES): Removed.
24691 (grub_mkisofs_CFLAGS): Removed.
24692 * util/mkisofs/defaults.h: Removed.
24693 * util/mkisofs/eltorito.c: Likewise.
24694 * util/mkisofs/exclude.h: Likewise.
24695 * util/mkisofs/hash.c: Likewise.
24696 * util/mkisofs/include/: Likewise.
24697 * util/mkisofs/include/fctldefs.h: Likewise.
24698 * util/mkisofs/include/mconfig.h: Likewise.
24699 * util/mkisofs/include/prototyp.h: Likewise.
24700 * util/mkisofs/include/statdefs.h: Likewise.
24701 * util/mkisofs/iso9660.h: Likewise.
24702 * util/mkisofs/joliet.c: Likewise.
24703 * util/mkisofs/match.c: Likewise.
24704 * util/mkisofs/match.h: Likewise.
24705 * util/mkisofs/mkisofs.c: Likewise.
24706 * util/mkisofs/mkisofs.h: Likewise.
24707 * util/mkisofs/msdos_partition.h: Likewise.
24708 * util/mkisofs/multi.c: Likewise.
24709 * util/mkisofs/name.c: Likewise.
24710 * util/mkisofs/rock.c: Likewise.
24711 * util/mkisofs/tree.c: Likewise.
24712 * util/mkisofs/write.c: Likewise.
24713
5dde9afe
VS
247142010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24715
24716 Unify grub-mkimage accross platforms.
24717
24718 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
24719 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
24720 (grub_mkelfimage_SOURCES): Removed.
24721 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
24722 (util/grub-mkimage.c_DEPENDENCIES): .. this.
24723 (bin_UTILITIES): Add grub-mkimage.
24724 (grub_mkimage_SOURCES): New variable.
24725 (kernel_img_HEADERS): Remove machine/kernel.h.
24726 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
24727 (pkglib_PROGRAMS): Add kernel.img.
24728 (kernel_img_HEADERS): Add machine/kernel.h.
24729 (kernel_img_FORMAT): Removed.
24730 (bin_UTILITIES): Remove grub-mkimage.
24731 (grub_mkimage_SOURCES): Removed.
24732 (grub_mkimage_CFLAGS): Likewise.
24733 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24734 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
24735 (pkglib_PROGRAMS): Add kernel.img.
24736 (bin_UTILITIES): Remove grub-mkimage.
24737 (grub_mkimage_SOURCES): Removed.
24738 (grub_mkimage_CFLAGS): Likewise.
24739 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24740 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
24741 (pkglib_PROGRAMS): Add kernel.img.
24742 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
24743 (pkglib_PROGRAMS): Add kernel.img.
24744 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
24745 (grub_mkimage_SOURCES): Removed.
24746 (grub_mkimage_CFLAGS): Likewise.
24747 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24748 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
24749 (pkglib_PROGRAMS): Add kernel.img.
24750 (bin_UTILITIES): Remove grub-mkimage.
24751 (grub_mkimage_SOURCES): Removed.
24752 (grub_mkimage_CFLAGS): Likewise.
24753 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24754 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
24755 (grub_mkimage_SOURCES): Removed.
24756 (grub_mkimage_CFLAGS): Likewise.
24757 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24758 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
24759 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
24760 (grub_pe32_optional_header): ... this.
24761 (grub_pe64_optional_header): ... and this. All users updated.
24762 (GRUB_PE32_PE32_MAGIC): Split into ..
24763 (GRUB_PE32_PE32_MAGIC): .. this.
24764 (GRUB_PE32_PE64_MAGIC): .. and this.
24765 (GRUB_PE32_SIGNATURE_SIZE): New definition.
24766 * include/grub/elf.h (PT_GNU_STACK): New definition.
24767 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
24768 * include/grub/i386/efi/kernel.h: Likewise.
24769 * include/grub/i386/kernel.h: Likewise.
24770 * include/grub/i386/pc/kernel.h: Likewise.
24771 * include/grub/i386/qemu/boot.h: Likewise.
24772 * include/grub/mips/kernel.h: Likewise.
24773 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24774 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
24775 * include/grub/powerpc/kernel.h: Likewise.
24776 * include/grub/sparc64/ieee1275/boot.h: Likewise.
24777 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24778 * include/grub/sparc64/kernel.h: Likewise.
24779 * include/grub/x86_64/efi/kernel.h: Likewise.
24780 * include/grub/x86_64/kernel.h: Likewise.
24781 * include/grub/offsets.h: New file.
24782 * include/grub/kernel.h (grub_module_info): Split into ...
24783 (grub_module_info32): ... this.
24784 (grub_module_info64): ... and this.
24785 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
24786 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
24787 (grub_boot_blocklist): Moved from here ...
24788 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
24789 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
24790 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
24791 * include/grub/types.h (grub_target_to_host16): Removed.
24792 (grub_target_to_host32): Likewise.
24793 (grub_target_to_host64): Likewise.
24794 (grub_host_to_target16): Likewise.
24795 (grub_host_to_target32): Likewise.
24796 (grub_host_to_target64): Likewise.
24797 (grub_host_to_target_addr): Likewise.
24798
24799 Support grub-mkrescue for efi, coreboot and qemu.
24800
24801 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
24802 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
24803 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
24804 * util/grub-mkrawimage.c: Moved from here ...
24805 * util/grub-mkimage.c: ... here. All users updated.
24806 (ALIGN_ADDR): Use image_target.
24807 (TARGET_NO_FIELD): New const.
24808 (image_target_desc): New type.
24809 (image_targets): New array.
24810 (grub_target_to_host64): Use image_target.
24811 (grub_target_to_host32): Likewise.
24812 (grub_target_to_host16): Likewise.
24813 (grub_host_to_target64): Likewise.
24814 (grub_host_to_target32): Likewise.
24815 (grub_host_to_target16): Likewise.
24816 (grub_host_to_target_addr): Likewise.
24817 (generate_image): Handle multiimage.
24818 (main): Require -O parameter. All users updated.
24819 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
24820 util/efi/grub-mkimage.c
24821 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
24822 New option --rom-directory.
24823 Use xorriso.
24824 * util/i386/efi/grub-mkimage.c: Removed.
24825 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
24826 (grub_target_to_host32): Likewise.
24827 (grub_target_to_host64): Likewise.
24828 (grub_host_to_target16): Likewise.
24829 (grub_host_to_target32): Likewise.
24830 (grub_host_to_target64): Likewise.
24831 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
24832 (grub_target_to_host32): Likewise.
24833 (grub_target_to_host64): Likewise.
24834 (grub_host_to_target16): Likewise.
24835 (grub_host_to_target32): Likewise.
24836 (grub_host_to_target64): Likewise.
24837
f4fc97d0
BC
248382010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
24839
24840 Source tree is reorganized for emu build.
24841
24842 * include/grub/util/console.h: Move from here...
24843 * include/grub/emu/console.h: ...to here.
24844 * include/grub/util/getroot.h: Move from here...
24845 * include/grub/emu/getroot.h: ...to here.
24846 * include/grub/util/hostdisk.h: Move from here...
24847 * include/grub/emu/hostdisk.h: ...to here.
24848 * util/console.c: Move from here...
24849 * kern/emu/console.c: ...to here.
24850 * util/getroot.c: Move from here...
24851 * kern/emu/getroot.c: ...to here.
24852 * util/grub-emu.c: Move from here...
24853 * kern/emu/main.c: ...to here.
24854 * util/hostdisk.c: Move from here...
24855 * kern/emu/hostdisk.c: ...to here.
24856 * util/hostfs.c: Move from here...
24857 * kern/emu/hostfs.c: ...to here.
24858 * util/mm.c: Move from here...
24859 * kern/emu/mm.c: ...to here.
24860 * util/pci.c: Move from here...
24861 * bus/emu/pci.c: ...to here.
24862 * util/sdl.c: Move from here...
24863 * video/emu/sdl.c: ...to here.
24864 * util/time.c: Move from here...
24865 * kern/emu/time.c: ...to here.
24866 * util/usb.c: Move from here...
24867 * bus/usb/emu/usb.c: ...to here.
24868
24869 * include/grub/emu/misc.h: New header for grub-emu functions.
24870 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
24871
24872 * conf/any-emu.rmk: Rule updates for above renames.
24873 * conf/common.rmk: Likewise.
24874 * conf/i386-pc.rmk: Likewise.
24875 * conf/i386-qemu.rmk: Likewise.
24876 * conf/mips.rmk: Likewise.
24877 * conf/sparc64-ieee1275.rmk: Likewise.
24878 * conf/x86-efi.rmk: Likewise.
24879
24880 * disk/lvm.h: #include updates for above renames.
24881 * util/grub-mkrelpath.c: Likewise.
24882 * util/grub-probe.c: Likewise.
24883 * util/i386/pc/grub-setup.c: Likewise.
24884 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24885 * kern/emu/console.c: Likewise.
24886 * kern/emu/getroot.c: Likewise.
24887 * kern/emu/hostdisk.c: Likewise.
24888 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
24889
24890 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
24891 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
24892 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
24893 * util/misc.c: Remove grub-emu functions.
24894
cced9145
VS
248952010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
24896
24897 Fix gfxmenu crash.
24898 Reported by: Thorsten Grützmacher.
24899
24900 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
24901 timeout hook.
24902 (circprog_set_property): Register and unregister timeout hook.
24903 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
24904 (label_destroy): Free template. and unregister hook.
24905 (label_set_state): New function.
24906 (label_set_property): Handle templates and hooks.
24907 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
24908 timeout hook.
24909 (progress_bar_set_property): Register and unregister timeout hook.
24910 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
24911 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
24912 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
24913 (update_timeout_visit): Removed.
24914 (update_timeouts): New function.
24915 (redraw_timeouts): Likewise.
24916 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
24917 (grub_gfxmenu_clear_timeout): Likewise.
24918 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
24919 (grub_gfxmenu_timeout_notify): Likewise.
24920 (grub_gfxmenu_timeout_notifications): New external variable.
24921 (grub_gfxmenu_timeout_register): New function.
24922 (grub_gfxmenu_timeout_unregister): Likewise.
24923
c6e5caab
VS
249242010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24925
24926 Transform (broken) vga terminal into (working) vga video driver.
24927
24928 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
24929 video/i386/pc/vga.c.
24930 * include/grub/video.h (grub_video_driver_id):
24931 Add GRUB_VIDEO_DRIVER_VGA.
24932 * term/i386/pc/vga.c: Renamed to ...
24933 * video/i386/pc/vga.c: ...this
24934 (DEBUG_VGA): Removed.
24935 (CHAR_WIDTH): Likewise.
24936 (CHAR_HEIGHT): Likewise.
24937 (TEXT_WIDTH): Likewise.
24938 (TEXT_HEIGHT): Likewise.
24939 (DEFAULT_FG_COLOR): Likewise.
24940 (DEFAULT_BG_COLOR): Likewise.
24941 (colored_char): Likewise.
24942 (xpos): Likewise.
24943 (ypos): Likewise.
24944 (cursor_state): Likewise.
24945 (fg_color): Likewise.
24946 (bg_color): Likewise.
24947 (text_buf): Likewise.
24948 (page): Likewise.
24949 (font): Likewise.
24950 (framebuffer): New variable.
24951 (set_read_map): Disabled.
24952 (setup): New variable.
24953 (is_target): Likewise.
24954 (grub_vga_mod_init): Likewise.
24955 (grub_vga_mod_fini): Likewise.
24956 (check_vga_mem): Likewise.
24957 (write_char): Likewise.
24958 (write_cursor): Likewise.
24959 (scroll_up): Likewise.
24960 (grub_vga_putchar): Likewise.
24961 (grub_vga_getcharwidth): Likewise.
24962 (grub_vga_getwh): Likewise.
24963 (grub_vga_getxy): Likewise.
24964 (grub_vga_gotoxy): Likewise.
24965 (grub_vga_cls): Likewise.
24966 (grub_vga_setcolorstate): Likewise.
24967 (grub_vga_setcursor): Likewise.
24968 (grub_video_vga_init): New function.
24969 (grub_video_vga_setup): Likewise.
24970 (grub_video_vga_fini): Likewise.
24971 (update_target): Likewise.
24972 (grub_video_vga_blit_bitmap): Likewise.
24973 (grub_video_vga_blit_render_target): Likewise.
24974 (grub_video_vga_set_active_render_target): Likewise.
24975 (grub_video_vga_get_active_render_target): Likewise.
24976 (grub_video_vga_swap_buffers): Likewise.
24977 (grub_video_vga_set_palette): Likewise.
24978 (grub_video_vga_get_info_and_fini): Likewise.
24979 (grub_vga_term): Removed.
24980 (grub_video_vga_adapter): New variable.
24981 (GRUB_MOD_INIT): Register a video driver instead of terminal.
24982 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
24983
2bf61a98
VS
249842010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24985
24986 * video/readers/jpeg.c: Indented.
24987
09ddcd11
VS
249882010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24989
24990 Various jpeg cleanups.
24991
24992 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
24993 (grub_jpeg_decode_quan_table): Use sizeof.
24994 (grub_jpeg_decode_du): Use ARRAY_SIZE.
24995
e5507505
PH
249962010-05-05 Peter Hurley <No e-mail available> (tiny change)
24997
24998 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
24999 tables. Ignore non-last ac bit.
25000 (grub_jpeg_decode_quan_table): Likewise.
25001
7e720a9b
VS
250022010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25003
25004 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
25005 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
25006 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
25007 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
25008 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
25009 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
25010
a7fc080b
VS
250112010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25012
25013 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
25014 error.
25015
2bf6012d
VS
250162010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25017
25018 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
25019
265d68cd
VS
250202010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25021
25022 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
25023 condition.
25024
250252010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
25026
25027 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
25028 part.
25029
265d68cd 250302010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
25031
25032 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
25033 pointers.
25034
265d68cd 250352010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
25036
25037 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
25038
d1b61374
CF
250392010-05-01 Christian Franke <franke@computer.org>
25040
25041 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
25042 Remove broken Cygwin path conversion.
25043 * util/misc.c: [__CYGWIN__] Add include and define.
25044 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
25045 for Cygwin 1.7.
25046 (make_system_path_relative_to_its_root): Simplify loop, replace early
25047 return by break.
25048 [__CYGWIN__] Add conversion to win32 path.
25049 Include "/" case in trailing slash removal.
25050
3558c6e9
VS
250512010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25052
25053 * kern/main.c (grub_load_config): Fix copy-pasted comment.
25054 Reported by: Seth Goldberg
25055
f5f3ff93
VS
250562010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25057
25058 * commands/help.c (grub_cmd_help): Fix a typo.
25059 Reported by: Seth Goldberg
25060
d8b5cd40
VS
250612010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25062
25063 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
25064 name and add N_.
25065 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
25066 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
25067 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
25068 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
25069 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
25070 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
25071 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25072 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25073 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25074 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25075 * normal/context.c (GRUB_MOD_INIT): Likewise.
25076 * normal/main.c (GRUB_MOD_INIT): Likewise.
25077 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25078 * term/serial.c (GRUB_MOD_INIT): Likewise.
25079 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25080
88c14915
VS
250812010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25082
25083 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
25084 extra == 0.
25085
165134bc
VS
250862010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25087
25088 * commands/iorw.c: New file.
25089 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
25090 (iorw_mod_SOURCES): New variable.
25091 (iorw_mod_CFLAGS): Likewise.
25092 (iorw_mod_LDFLAGS): Likewise.
25093
c5ac9b32
VS
250942010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25095
25096 Hotkey support
25097
25098 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
25099 * normal/main.c (hotkey_aliases): New variable.
25100 (grub_normal_add_menu_entry): Parse "--hotkey".
25101 * normal/menu_text.c (run_menu): Handle hotkeys.
25102
ce60689c
VS
251032010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25104
25105 * kern/i386/coreboot/init.c (grub_machine_init): Call
25106 grub_machine_mmap_init on qemu.
25107
0359d006
VS
251082010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25109
25110 * boot/i386/qemu/boot.S: Add a missing .code16.
25111
7819a456
VS
251122010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25113
25114 Use LBIO on coreboot.
25115
25116 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
25117 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
25118 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
25119 New declaration.
25120 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
25121 grub_machine_mmap_init on coreboot.
25122 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
25123 GRUB_LINUXBIOS_MEMBER_LINK.
25124 (grub_machine_mmap_iterate): Fix declaration.
25125 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
25126
7210dca9
VS
251272010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25128
25129 Split coreboot and multiboot ports.
25130
25131 * conf/i386-multiboot.rmk: New file.
25132 * configure.ac: Add multiboot port.
25133 * include/grub/i386/multiboot/boot.h: New file.
25134 * include/grub/i386/multiboot/console.h: Likewise.
25135 * include/grub/i386/multiboot/init.h: Likewise.
25136 * include/grub/i386/multiboot/kernel.h: Likewise.
25137 * include/grub/i386/multiboot/loader.h: Likewise.
25138 * include/grub/i386/multiboot/memory.h: Likewise.
25139 * include/grub/i386/multiboot/serial.h: Likewise.
25140 * include/grub/i386/multiboot/time.h: Likewise.
25141 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
25142 * loader/multiboot.c: Likewise.
25143 * loader/multiboot_mbi2.c: Likewise.
25144 * util/grub-mkrescue.in: Generate multiboot rescue.
25145
6f8aaf68
VS
251462010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25147
3080f7a7
VS
25148 * kern/parser.c (grub_parser_execute): Cope with read-only config.
25149
251502010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25151
25152 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
25153
25154 * commands/terminal.c (abstract_terminal): New struct.
25155 (handle_command): New function. Based on grub_cmd_terminal_input.
25156 (grub_cmd_terminal_input): Use handle_command.
25157 (grub_cmd_terminal_output): Use handle_command.
25158
a8ebb841
BC
251592010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
25160
25161 Fix comment handling.
25162
25163 * tests/grub_script_comments.in: New testcase.
25164 * conf/tests.rmk: Rules for new testcase.
25165 * script/yylex.l: Updated flex rules.
25166
bb06ba08
ST
251672010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
25168
25169 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
25170 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
25171 if argc is 1.
bb06ba08 25172
cc9d2425
VS
251732010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25174
25175 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
25176 autogen issues.
25177
460d8402
CF
251782010-04-26 Christian Franke <franke@computer.org>
25179
25180 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
25181 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
25182 (grub_get_prefix): Remove function.
25183 * util/grub-emu.c (main): Replace grub_get_prefix () call by
25184 make_system_path_relative_to_its_root ().
25185 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
25186
553c01f9
CF
251872010-04-24 Christian Franke <franke@computer.org>
25188
25189 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
25190 (kernel_img_LDFLAGS): Remove -static-libgcc.
25191
2aec1692
CF
251922010-04-24 Christian Franke <franke@computer.org>
25193
25194 * configure.ac: Do not CHECK_BSS_START_SYMBOL
25195 and CHECK_END_SYMBOL if grub-emu is built.
25196 Unset TARGET_OBJ2ELF if grub-emu is built
25197 without module support.
25198
f67dc308
JS
251992010-04-24 Jiro SEKIBA <jir@unicus.jp>
25200
25201 Nilfs2 support.
25202
25203 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
25204 (grub_fstest_SOURCES): Likewise.
25205 (pkglib_MODULES): Add nilfs2.mod.
25206 (nilfs2_mod_SOURCES): New variable.
25207 (nilfs2_mod_CFLAGS): Likewise.
25208 (nilfs2_mod_LDFLAGS): Likewise.
25209 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25210 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25211 * fs/nilfs2.c: New file.
25212
4ba8d354
VS
252132010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
25214
25215 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
25216 is not supported.
25217
0d2c20c6
GS
252182010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
25219
25220 Add grub-mkconfig support for NetBSD.
25221
25222 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
25223 * util/grub-mkconfig.in: export new NetBSD specific variables.
25224 * po/POTFILES-shell: added 10_netbsd.in.
25225 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
25226
bc4a2d83
BC
252272010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
25228
25229 Fix emu build with grub-emu-pci and grub-emu-modules.
25230
25231 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
25232 functions.
25233 * include/grub/libpciaccess.h: New file.
25234 * conf/any-emu.rmk: Update kernel headers for emu build.
25235
f48c87aa
VS
252362010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25237
25238 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
25239
18959385
VS
252402010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25241
25242 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
25243
0037de3f
VS
252442010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25245
25246 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
25247 Retrieve chosen/bootpath if bootpath isn't hardcoded.
25248 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
25249 util/ieee1275/ofpath.c.
25250 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
25251 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
25252 * include/grub/sparc64/ieee1275/boot.h
25253 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
25254 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
25255 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
25256 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
25257 const char *.
25258 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
25259 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
25260 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
25261 install.
25262
38e55e90
GS
252632010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
25264
25265 * util/grub-mkconfig.in: Corrected two == equality tests.
25266 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
25267 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
25268 expect a number appended to it.
25269 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
25270 expects a number appended to it.
25271
a9e6ff28
VS
252722010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25273
25274 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
25275
0b830b8f
VS
252762010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25277
25278 * util/hostdisk.c (make_device_name): Change to new partition naming.
25279
0973daeb
VS
252802010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
25281
25282 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
25283
460d8402 252842010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
25285
25286 * Makefile.in: Add missing localedir setting.
25287
0b456309
CW
252882010-04-14 Colin Watson <cjwatson@ubuntu.com>
25289
25290 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
25291 mistake in r2156. Noticed by Anthony Fok.
25292
25293 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
25294 @localedir@.
25295 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
25296
08f46d62
BC
252972010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
25298
25299 Fix a spurious, uninitialized variable warning.
25300
25301 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
25302 Initialize variable, shdr.
25303 (grub_freebsd_load_elfmodule): Likewise.
25304 (grub_freebsd_load_elf_meta): Likewise.
25305
8c4a72d4
BC
253062010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
25307
25308 Fix for escaped dollar in double quoted strings.
25309
25310 * script/yylex.l: Updated flex rules.
25311 * conf/tests.rmk: Rule for new testcase.
25312 * tests/grub_script_dollar.in: New testcase.
25313
ce44826e
CPE
253142010-04-13 Carles Pina i Estany <carles@pina.cat>
253152010-04-13 Colin Watson <cjwatson@ubuntu.com>
25316
25317 Enclose all translated strings in grub.cfg in single quotes, and
25318 escape them appropriately (Ubuntu bug #552921).
25319
25320 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
25321 * util/grub.d/10_hurd.in: Use it.
25322 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
25323 * util/grub.d/10_linux.in (linux_entry): Likewise.
25324
4b0cd8f8
VS
253252010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25326
25327 Fix cygwin compilation.
25328
25329 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
25330 * include/grub/misc.h (__register_frame_info)
25331 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
25332 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25333 * kern/misc.c (__register_frame_info)
25334 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
25335 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25336
01fcf061
VS
253372010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25338
25339 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
25340
5d04b11e
VS
253412010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25342
25343 Unify libgcc processing.
25344
25345 * Makefile.in (kernel_img_LDFLAGS): New variable.
25346 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
25347 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
25348 overwriting.
25349 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
25350 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
25351 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
25352 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
25353 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
25354 overwriting. Remove -lgcc and -static-libgcc
25355 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
25356 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25357 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25358 (kernel_img_LDFLAGS): Append instead of overwriting.
25359 Remove -lgcc and -static-libgcc
25360 * conf/sparc64-ieee1275.rmk: Likewise.
25361 * include/grub/powerpc/libgcc.h: Move to ...
25362 * include/grub/libgcc.h: .. this.
25363 * include/grub/libgcc.h: Don't export most of the function on x86.
25364 (__bswapsi2): New export.
25365 (__bswapdi2): Likewise.
25366 * include/grub/mips/libgcc.h: Removed.
25367 * include/grub/sparc64/libgcc.h: Likewise.
25368
b7f3ac29
VS
253692010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25370
25371 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
25372 disk_info_msg (conflicts with gettexting into languages with cases).
25373
2c7031b1
GS
253742010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
25375
25376 Add grub-probe support for NetBSD.
25377
25378 * util/getroot.c (find_root_device): Convert block device to
25379 character device on NetBSD.
25380 * util/probe.c (probe): Require character device on NetBSD.
25381 * util/hostdisk.c: NetBSD specific headers.
25382 (configure_device_driver): new function to tune device driver
25383 parameters (currently only for NetBSD floppy driver).
25384 (grub_util_biosdisk_open): NetBSD specific code (get disk size
25385 via disklabel ioctl).
25386 (open_device): call configure_device_driver on NetBSD.
25387 (convert_system_partition_to_system_disk): NetBSD specific code.
25388 (device_is_wholedisk): Likewise.
25389 (grub_util_biosdisk_get_grub_dev): Likewise.
25390 (make_device_name): Fixed a typo in bsd_part_str.
25391 * configure.ac: check for opendisk() and getrawpartition() on
25392 NetBSD and set LIBUTIL.
25393 * Makefile.in: add LIBUTIL to LIBS.
25394
f516290c
BC
253952010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25396
25397 Documentation fix.
25398
25399 * util/grub-script-check.c: Better help message.
25400
d8dcc0df
BC
254012010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25402
25403 Fix FreeBSD build.
25404
25405 * configure.ac: Flex version check.
25406 * conf/common.rmk: Add -Wno-error to sh.mod.
25407 * script/yylex.l: Remove all #pragma.
25408
6734334a
VS
254092010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25410
25411 * include/grub/util/misc.h (canonicalise_file_name): Add missing
25412 prototype.
25413 Reported by: Seth Goldberg.
25414
daea6abd
VS
254152010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25416
25417 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
25418 Rename "module" to "module2".
25419 Reported by: Seth Goldberg.
25420
f2fd9d2b
VS
254212010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25422
25423 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
25424 EXPORT_FUNC.
25425 Reported by: Seth Goldberg.
25426
be124579
VS
254272010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25428
25429 * lib/posix_wrap/locale.h: Add missing file.
25430 Reported by: Seth Goldberg.
25431
ef5da797
VS
254322010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25433
25434 grub-emu module load support.
25435
25436 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
25437 NO_DYNAMIC_MODULES switched to this.
25438 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
25439 (CFLAGS): Likewise.
25440 * conf/any-emu.rmk: Generate symlist.
25441 (kernel_img_HEADERS): Add util/datetime.h.
25442 (kernel_img_HEADERS) [sdl]: Add sdl.h.
25443 (kernel_img_HEADERS) [libusb]: Add libusb.h.
25444 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
25445 kern/$(target_cpu)/cache.S.
25446 * configure.ac (grub-emu-modules): New option.
25447 * genmk.rb: Handle multiple source lists.
25448 * include/grub/sdl.h: New file.
25449 * include/grub/libusb.h: Likewise.
25450 * util/grub-emu.c (main): Hanle (host) root.
25451 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
25452 GRUB_ERR_UNKNOWN_DEVICE.
25453 * util/misc.c: Move mm functions to ...
25454 * util/mm.c: ... here. All users updated.
25455
47822096
VS
254562010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25457
25458 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
25459 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
25460 missing files.
25461 (maintainer-clean): Remove libgcrypt-grub.
25462
5d7e7445
VS
254632010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25464
25465 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
25466
25f4e252
EC
254672010-04-09 EFI Coder <eficoder@hotmail.com>
25468
25469 * normal/menu_text.c (print_message): Clean up the message and show
25470 the Fn information when on EFI
25471 * term/efi/console.c (grub_console_checkkey): Add F4 support.
25472
027de555
VS
254732010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25474
25475 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
25476 All users updated.
25477 * normal/crypto.c (read_crypto_list): Likewise.
25478 * normal/dyncmd.c (read_command_list): Likewise.
25479 * normal/term.c (read_terminal_list): Likewise.
25480 * normal/main.c (read_lists): Use explicit prefix.
25481 (read_lists_hook): Use read_lists.
25482 (grub_normal_execute): Likewise.
25483
47779711
VS
254842010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25485
25486 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
25487 Reported by: Thomas Schmitt.
25488 Add -no-emul-boot to grub-mkisofs parameters.
25489
1118c32e
VS
254902010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25491
25492 * font/font.c: Indented.
25493
7d652447
BC
254942010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25495
25496 Elif support to GRUB script (by Deepak Vankadaru).
25497
25498 * tests/grub_script_if.in: New testcase.
25499 * conf/tests.rmk: Rule for new testcase.
25500 * script/parser.y: Grammar rules for elif.
25501
34bb22df
BC
255022010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25503
25504 While and until loops support to GRUB script.
25505
25506 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
25507 (grub_script_create_cmdwhile): New function prototype.
25508 (grub_script_execute_cmdwhile): New function prototype.
25509 * script/execute.c (grub_script_execute_cmdwhile): New function.
25510 * script/parser.y (command): New commands.
25511 (whilecmd): New grammar rule.
25512 (untilcmd): New grammar rule.
25513 * script/script.c (grub_script_create_cmdwhile): New function.
25514 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
25515 function.
25516
25517 * tests/grub_script_while1.in: New testcase.
25518 * conf/tests.rmk: Rule for new testcase.
25519
e215d8e0
VS
255202010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25521
25522 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
25523 as *.jpg.
25524
d7c43ba1
MV
255252010-04-09 Mario Vazquez <mariovazq@gmail.com>
25526
25527 GRUB_BACKGROUND support.
25528
25529 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
25530 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
25531
d64795c0
VS
255322010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25533
25534 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 25535 Idea by: Mario Vazquez
d64795c0
VS
25536
25537 * util/grub.d/00_header.in: Load pf2 and image modules.
25538
f267f83a
VS
255392010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25540
25541 grub-mkconfig multiple terminal support.
25542
25543 * util/grub-mkconfig.in: Handle multiple terminals correctly.
25544 * util/grub.d/00_header.in: Likewise.
25545
b7841ceb
VS
255462010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25547
25548 * Makefile.in: Specify files explicitly instead of using $< and $@ since
25549 we use cd $(srcdir).
25550
df60998c
CW
255512010-04-08 Colin Watson <cjwatson@ubuntu.com>
25552
25553 * util/grub.d/10_linux.in: Only use the first word of
25554 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
25555 spaces in GRUB_DISTRIBUTOR.
25556 * util/grub.d/10_kfreebsd.in: Likewise.
25557 * util/grub.d/10_hurd.in: Likewise.
25558
fa09c82e
BC
255592010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
25560
14e18ae3 25561 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
25562
25563 * tests/util/grub-shell.in: Remove -serial stdio option.
25564
daf892b3
BC
255652010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25566
25567 POSIX header file wrappers.
25568
25569 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
25570 equivalents.
25571 * lib/posix_wrap/ctype.h: Likewise.
25572 * lib/posix_wrap/errno.h: Likewise.
25573 * lib/posix_wrap/langinfo.h: Likewise.
25574 * lib/posix_wrap/limits.h: Likewise.
25575 * lib/posix_wrap/localcharset.h: Likewise.
25576 * lib/posix_wrap/stdint.h: Likewise.
25577 * lib/posix_wrap/stdio.h: Likewise.
25578 * lib/posix_wrap/stdlib.h: Likewise.
25579 * lib/posix_wrap/string.h: Likewise.
25580 * lib/posix_wrap/sys/types.h: Likewise.
25581 * lib/posix_wrap/unistd.h: Likewise.
25582 * lib/posix_wrap/wchar.h: Likewise.
25583 * lib/posix_wrap/wctype.h: Likewise.
25584 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
25585 (grub_script.yy.h): Likewise.
25586 * script/yylex.l: Remove POSIX emulation #defines.
25587 * Makefile.in (POSIX_CFLAGS): New variable.
25588 (GNULIB_UTIL_CFLAGS): Likewise.
25589
25590 Regexp support.
25591
25592 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
25593 (regexp_mod_SOURCES): New variable.
25594 (regexp_mod_CFLAGS): Likewise.
25595 (regexp_mod_LDFLAGS): Likewise.
25596 * commands/regexp.c: New file.
25597 * gnulib/regcomp.c: New file. Imported from gnulib.
25598 * gnulib/regex.c: Likewise.
25599 * gnulib/regex_internal.c: Likewise.
25600 * gnulib/regex_internal.h: Likewise.
25601 * gnulib/regexec.c: Likewise.
25602 * gnulib/regex.h: Likewise.
25603
974ac4f7
VS
256042010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25605
25606 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
25607 unsupported video mode types.
25608
2622c3ff
VS
256092010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25610
25611 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
25612
064cb524
VS
256132010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25614
25615 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
25616 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
25617
a8c3b552
VS
256182010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25619
25620 Remove unused grub_vga_get_font.
25621
25622 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
25623 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
25624
187bbe3d
GS
256252010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25626
25627 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
25628 * include/grub/misc.h: Likewise.
25629
b9396631
GS
256302010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25631
25632 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
25633 for which failure is fatal.
25634
50479feb
GS
256352010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25636
25637 * util/grub-install.in: Use mkdir -p to create grub directory.
25638 * util/i386/efi/grub-install.in: Likewise.
25639 * util/ieee1275/grub-install.in: Likewise.
25640
b1654fdf
GS
256412010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25642
25643 * Makefile.in (LEX): new variable.
25644
bd5a6415
GS
256452010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25646
25647 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
25648 `=' and added double quotes on operands of this equality test.
25649
3db3a82b
VS
256502010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
25651
25652 * Makefile.in (uninstall): Remove a leftover debug echo.
25653 Reported by: Grégoire Sutre
25654
38023412
VS
256552010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
25656
25657 MIPS multiboot2 support.
25658
25659 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
25660 (multiboot2_mod_SOURCES): New variable.
25661 (multiboot2_mod_CFLAGS): Likewise.
25662 (multiboot2_mod_LDFLAGS): Likewise.
25663 (multiboot2_mod_ASFLAGS): Likewise.
25664 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
25665 definition.
25666 (MULTIBOOT_ENTRY_REGISTER): Likewise.
25667 (MULTIBOOT_MBI_REGISTER): Likewise.
25668 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
25669 (MULTIBOOT_ELF32_MACHINE): Likewise.
25670 (MULTIBOOT_ELF64_MACHINE): Likewise.
25671 * include/grub/mips/multiboot.h: New file.
25672 * include/grub/video.h (grub_video_driver_id): New type
25673 GRUB_VIDEO_DRIVER_SM712.
25674 (grub_video_get_info_and_fini): Export.
25675 (grub_video_get_palette): Likewise.
25676 (grub_video_get_driver_id): Likewise.
25677 * include/multiboot2.h: Resynced with spec.
25678 * loader/i386/multiboot.c: Moved from here ...
25679 * loader/multiboot.c: ... here. All users updated.
25680 (grub_multiboot_boot): Use platform-specific macros.
25681 * loader/i386/multiboot_elfxx.c: Moved from here ...
25682 * loader/multiboot_elfxx.c: ... here. All users updated.
25683 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
25684 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
25685 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
25686
47674667
VS
256872010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
25688
25689 Import gnulib argp module.
25690
25691 * gnulib/argp-ba.c: New file.
25692 * gnulib/argp-eexst.c: Likewise.
25693 * gnulib/argp-fmtstream.c: Likewise.
25694 * gnulib/argp-fmtstream.h: Likewise.
25695 * gnulib/argp-fs-xinl.c: Likewise.
25696 * gnulib/argp-help.c: Likewise.
25697 * gnulib/argp-namefrob.h: Likewise.
25698 * gnulib/argp-parse.c: Likewise.
25699 * gnulib/argp-pin.c: Likewise.
25700 * gnulib/argp-pv.c: Likewise.
25701 * gnulib/argp-pvh.c: Likewise.
25702 * gnulib/argp-version-etc.c: Likewise.
25703 * gnulib/argp-version-etc.h: Likewise.
25704 * gnulib/argp-xinl.c: Likewise.
25705 * gnulib/argp.h: Likewise.
25706
495442ed
VS
257072010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
25708
25709 * kern/device.c (grub_device_iterate): Clear errors after failed
25710 opening device.
25711
f9fd65df
VS
257122010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
25713
25714 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
25715 returned by firmware.
25716
af09641e
VS
257172010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
25718
25719 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
25720 compilation on coreboot and qemu
25721
016883a5
VS
257222010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
25723
25724 * include/multiboot2.h: Resync with spec.
25725
f97e1f7d
VS
257262010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
25727
25728 Multiboot2 tag support
25729
25730 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
25731 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
25732 Remove loader/multiboot_loader.c.
25733 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
25734 (grub_multiboot2_real_boot): Likewise.
25735 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
25736 (grub_get_multiboot_mmap_count): New proto.
25737 (grub_fill_multiboot_mmap): Likewise.
25738 (grub_multiboot_set_video_mode): Likewise.
25739 (grub_multiboot_set_console): Likewise.
25740 (grub_multiboot_load): Likewise.
25741 (grub_multiboot_load_elf): Likewise.
25742 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
25743 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
25744 * include/multiboot.h: Resynced with specification.
25745 * include/multiboot2.h: Resynced with specification.
25746 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
25747 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
25748 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
25749 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
25750 users updated.
25751 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
25752 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
25753 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
25754 Removed.
25755 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
25756 Moved from here...
25757 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
25758 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
25759 Moved from here...
25760 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
25761 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
25762 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
25763 All users updated.
25764 * loader/i386/multiboot_mbi2.c: New file.
25765
3506b90b
VS
257662010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
25767
25768 Resync with gnulib.
25769
25770 * Makefile.in (GNULIB_CFLAGS): New variable.
25771 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
25772 (grub_script_check_CFLAGS): New variable.
25773 * gnulib/alloca.h: Resync with gnulib.
25774 * gnulib/error.c: Likewise.
25775 * gnulib/error.h: Likewise.
25776 * gnulib/fnmatch.c: Likewise.
25777 * gnulib/fnmatch_loop.c: Likewise.
25778 * gnulib/getdelim.c: Likewise.
25779 * gnulib/getline.c: Likewise.
25780 * gnulib/getopt.c: Likewise.
25781 * gnulib/getopt1.c: Likewise.
25782 * gnulib/getopt_int.h: Likewise.
25783 * gnulib/gettext.h: Likewise.
25784 * gnulib/progname.c: Likewise.
25785 * gnulib/progname.h: Likewise.
25786
394a3120
GS
257872010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
25788
25789 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
25790 which is the case with --disabled-nls.
25791
25792 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
25793 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
25794 * util/misc.c: Likewise.
25795 * util/mkisofs/mkisofs.c: Likewise.
25796 * util/mkisofs/mkisofs.h: Likewise.
25797
969d1c78
VS
257982010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
25799
25800 Simplify Apple CC support.
25801
25802 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
25803 Add 0 byte at the end not to have a symbol with empty target.
25804 * mmap/i386/pc/mmap_helper.S: Likewise.
25805 * genmk.rb: Ignore errors 2030 and 2050.
25806 * kern/i386/pc/startup.S: Use LOCAL when possible.
25807
8d2977bb
BC
258082010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
25809
25810 Testcase and the fix for final semicolon on cmdline.
25811
25812 * tests/grub_script_final_semicolon.in: New testcase.
25813 * conf/tests.rmk: Rules for the new testcase.
25814 * script/parser.y: Grammar fix.
25815
a7bd6915
BC
258162010-03-26 BVK Chaitanya <bvk@localhost>
25817
25818 Blank lines testcase for GRUB script.
25819
25820 * tests/grub_script_blanklines.in: New testcase.
25821 * conf/tests.rmk: Rules for the new testcase.
25822
e4ff6628
VS
258232010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
25824
25825 Don't use __FILE__.
25826
25827 * genmk.rb: Add -DGRUB_FILE to all C targets.
25828 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
25829 * include/grub/list.h: Likewise.
25830 * include/grub/misc.h: Likewise.
25831 * include/grub/mm.h: Likewise.
25832 * include/grub/test.h: Likewise.
25833 * kern/mm.c: Likewise.
25834 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25835
6a5cf6b6
VS
258362010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
25837
25838 Sunpc partitions support.
25839
25840 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
25841 (grub_fstest_SOURCES): Likewise.
25842 (pkglib_MODULES): Add part_sunpc.mod.
25843 (part_sunpc_mod_SOURCES): New variable.
25844 (part_sunpc_mod_CFLAGS): Likewise.
25845 (part_sunpc_mod_LDFLAGS): Likewise.
25846 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
25847 * partmap/sunpc.c: New file.
25848
746d9045
BC
258492010-03-26 BVK Chaitanya <bvk@localhost>
25850
25851 For loop support to GRUB script.
25852
25853 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
25854 (grub_script_create_cmdfor): New function prototype.
25855 (grub_script_execute_cmdfor): New function prototype.
25856 * script/execute.c (grub_script_execute_cmdfor): New function.
25857 * script/parser.y (command): New for command.
25858 (forcmd): New grammar rule.
25859 * script/script.c (grub_script_create_cmdfor): New function.
25860 * util/grub-script-check.c (grub_script_execute_cmdfor): New
25861 function.
25862 * tests/grub_script_for1.in: New testcase.
25863 * conf/tests.rmk: Rules for new testcase.
25864
18486b18
VS
258652010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
25866
25867 Nested partitions
25868
25869 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
25870 'partition' is NULL, grub_partition_get_start already does that.
25871 * commands/loadenv.c (check_blocklists): Likewise.
25872 (write_blocklists): Likewise.
25873 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
25874 (grub_fstest_SOURCES): Likewise.
25875 (pkglib_MODULES): Add part_bsd.mod.
25876 (part_bsd_mod_SOURCES): New variable.
25877 (part_bsd_mod_CFLAGS): Likewise.
25878 (part_bsd_mod_LDFLAGS): Likewise.
25879 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
25880 (grub_emu_SOURCES): Likewise.
25881 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25882 * include/grub/bsdlabel.h: New file.
25883 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
25884 'get_name'.
25885 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
25886 (grub_partition_map_list): New variable.
25887 (grub_partition_map_register): Inline.
25888 (grub_partition_map_unregister): Likewise.
25889 (FOR_PARTITION_MAPS): New macro.
25890 (grub_partition_map_iterate): Removed.
25891 (grub_partition_get_start): Handle nested partitions.
25892 * include/grub/msdos_partition.h: Remove bsd-related entries.
25893 (grub_pc_partition): Remove.
25894 * kern/disk.c (grub_disk_close): Free partition data.
25895 (grub_disk_adjust_range): Handle nested partitions.
25896 * kern/partition.c (grub_partition_map_probe): New function.
25897 (grub_partition_probe): Parse name to number, handle subpartitions.
25898 (get_partmap): New function.
25899 (grub_partition_iterate): Handle subpartitions.
25900 (grub_partition_get_name): Likewise.
25901 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
25902 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
25903 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
25904 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
25905 Set 'number'.
25906 (acorn_partition_map_probe): Remove.
25907 (acorn_partition_map_get_name): Likewise.
25908 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
25909 Set 'number'.
25910 Set 'index' to 0 since there can be only one partition entry per sector.
25911 (amiga_partition_map_probe): Remove.
25912 (amiga_partition_map_get_name): Likewise.
25913 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
25914 Set 'number'.
25915 Set 'offset' and 'index' to real positions of partitions.
25916 (apple_partition_map_probe): Remove.
25917 (apple_partition_map_get_name): Likewise.
25918 * partmap/bsdlabel.c: New file.
25919 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
25920 Set 'number'.
25921 Allocate 'data' so it can be correctly freed.
25922 Set 'index' to offset inside sector.
25923 (gpt_partition_map_probe): Remove.
25924 (gpt_partition_map_get_name): Likewise.
25925 * partmap/msdos.c (grub_partition_parse): Remove.
25926 (pc_partition_map_iterate): Don't force raw access.
25927 Set 'number'.
25928 Make 'ext_offset' a local variable.
25929 (pc_partition_map_probe): Remove.
25930 (pc_partition_map_get_name): Remove.
25931 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
25932 Set 'number'.
25933 (sun_partition_map_probe): Remove.
25934 (sun_partition_map_get_name): Likewise.
25935 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
25936 (grub_pcpart_type): Likewise.
25937 * util/hostdisk.c (open_device): Handle new numbering scheme.
25938 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
25939 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
25940 * util/grub-probe.c (probe_partmap): Handle nested paritions.
25941 * util/grub-install.in: Insert all subpartition modules.
25942 * util/ieee1275/grub-install.in: Likewise.
25943
a3940f88
AG
259442010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
25945
25946 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
25947 grammar.
25948
21b99926 259492010-03-24 Colin Watson <cjwatson@ubuntu.com>
25950
25951 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
25952
bed1d352
CW
259532010-03-21 Colin Watson <cjwatson@ubuntu.com>
25954
25955 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
25956 match where 'make install' puts them.
25957 * util/i386/efi/grub-install.in: Likewise.
25958
c9f58427
CW
259592010-03-19 Colin Watson <cjwatson@ubuntu.com>
25960
25961 * .bzrignore: Add gentrigtables, grub-script-check,
25962 grub_script_check_init.c, grub_script_check_init.h, and
25963 trigtables.c.
25964
f84afb27
VS
259652010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
25966
25967 * kern/parser.c: Indented.
25968
ed0e3d30
VS
259692010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
25970
25971 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
25972
0ea81d98
VS
259732010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
25974
25975 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
25976 alpha_mask_size == 0 case.
25977
0cdc2a09
BC
259782010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
25979
25980 GRUB shell lexer and parser improvements.
25981
25982 * conf/any-emu.rmk: Build rule updates.
25983 * conf/common.rmk: Likewise.
25984 * conf/i386-coreboot.rmk: Likewise.
25985 * conf/i386-efi.rmk: Likewise.
25986 * conf/i386-ieee1275.rmk: Likewise.
25987 * conf/i386-pc.rmk: Likewise.
25988 * conf/powerpc-ieee1275.rmk: Likewise.
25989 * conf/x86_64-efi.rmk: Likewise.
25990
25991 * configure.ac: Configure check for flex.
25992
25993 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
25994 types.
25995 (grub_lexer_param): Struct member updates.
25996 (grub_parser_param): Likewise.
25997 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
25998 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
25999 (grub_script_lexer_init): Prototype update.
26000 (grub_script_lexer_record_start): Likewise.
26001 (grub_script_lexer_record_stop): Likewise.
26002 (grub_script_lexer_yywrap): New function prototype.
26003 (grub_script_lexer_fini): Likewise.
26004 (grub_script_execute_argument_to_string): Removed by...
26005 (grub_script_execute_argument_to_argv): ...better version.
26006
26007 * script/execute.c (ROUND_UPTO): New macro.
26008 (grub_script_execute_cmdline): Out of memory fixes.
26009 (grub_script_execute_menuentry): Likewise.
26010 (grub_script_execute_argument_to_string): Removed. Update all
26011 users by...
26012 (grub_script_execute_argument_to_argv): ...better version.
26013 * script/function.c (grub_script_function_create): Use
26014 grub_script_execute_argument_to_argv instead of
26015 grub_script_execute_argument_to_string.
26016
26017 * script/lexer.c (check_varstate): Removed.
26018 (check_textstate): Removed.
26019 (grub_script_lexer_record_start): Likewise.
26020 (grub_script_lexer_record_stop): Likewise.
26021 (recordchar): Replaced with...
26022 (grub_script_lexer_record): ...new function.
26023 (nextchar): Removed.
26024 (grub_script_lexer_init): Rewritten.
26025 (grub_script_yylex): Rewritten.
26026 (append_newline): New function.
26027 (grub_script_lexer_yywrap): New function.
26028 (grub_script_lexer_fini): New function.
26029 (grub_script_yyerror): Sets error flag.
26030
26031 * script/yylex.l: New file.
26032 (grub_lexer_yyfree): Wrapper for flex yyffre.
26033 (grub_lexer_yyalloc): Likewise.
26034 (grub_lexer_yyrealloc): Likewise.
26035 * script/parser.y: Refactored.
26036
26037 * script/script.c (grub_script_arg_add): Out of memory fixes.
26038 (grub_script_add_arglist): Likewise.
26039 (grub_script_create_cmdline): Likewise.
26040 (grub_script_create_cmdmenu): Likewise.
26041 (grub_script_add_cmd): Likewise.
26042 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
26043 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
26044 unnecessary code.
26045
26046 * tests/grub_script_echo1.in: New testcase.
26047 * tests/grub_script_vars1.in: New testcase.
26048 * tests/grub_script_echo_keywords.in: New testcase.
26049
1d63a066
VS
260502010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26051
26052 Remove some redundancy in build system.
26053
26054 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
26055 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
26056 (TARGET_LDFLAGS): Add -nostdlib.
26057 (TARGET_IMG_LDFLAGS): Likewise.
26058 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
26059 anything since mmap isn't available.
26060 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
26061 Add util/time.c.
26062 (pkglib_MODULES): Remove reboot.mod.
26063 (reboot_mod_SOURCES): Removed.
26064 (reboot_mod_CFLAGS): Likewise.
26065 (reboot_mod_LDFLAGS): Likewise.
26066 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
26067 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
26068 (DEFSYMFILES): Add kernel_syms.lst.
26069 (kernel_img_HEADERS): Add common headers.
26070 (symlist.c): New target.
26071 (kernel_syms.lst): Likewise.
26072 (pkglib_MODULES): Add memdisk.mod.
26073 (memdisk_mod_SOURCES): New variable.
26074 (memdisk_mod_CFLAGS): Likewise.
26075 (memdisk_mod_LDFLAGS): Likewise.
26076 (pkglib_MODULES): Add reboot.mod.
26077 (reboot_mod_SOURCES): New variable.
26078 (reboot_mod_CFLAGS): Likewise.
26079 (reboot_mod_LDFLAGS): Likewise.
26080 (pkglib_MODULES): Add date.mod.
26081 (date_mod_SOURCES): New variable.
26082 (date_mod_CFLAGS): Likewise.
26083 (date_mod_LDFLAGS): Likewise.
26084 (pkglib_MODULES): Add datehook.mod.
26085 (datehook_mod_SOURCES): New variable.
26086 (datehook_mod_CFLAGS): Likewise.
26087 (datehook_mod_LDFLAGS): Likewise.
26088 (pkglib_MODULES): Add lsmmap.mod.
26089 (lsmmap_mod_SOURCES): New variable.
26090 (lsmmap_mod_CFLAGS): Likewise.
26091 (lsmmap_mod_LDFLAGS): Likewise.
26092 (pkglib_MODULES): Add boot.mod.
26093 (boot_mod_SOURCES): New variable.
26094 (boot_mod_CFLAGS): Likewise.
26095 (boot_mod_LDFLAGS): Likewise.
26096 * conf/i386-coreboot.rmk: Removed redundant parts.
26097 * conf/i386-ieee1275.rmk: Likewise.
26098 * conf/i386-pc.rmk: Likewise.
26099 * conf/mips-yeeloong.rmk: Likewise.
26100 * conf/mips.rmk: Likewise.
26101 * conf/powerpc-ieee1275.rmk: Likewise.
26102 * conf/sparc64-ieee1275.rmk: Likewise.
26103 * conf/x86_64-efi.rmk: Likewise.
26104 * conf/i386-coreboot.rmk: Moved qemu parts ..
26105 * conf/i386-qemu.rmk: ... here
26106 * conf/i386-efi.rmk: Moved common parts to...
26107 * conf/x86-efi.rmk: ... here.
26108 * conf/i386.rmk: Added modules common to all x86 variants.
26109 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
26110 * disk/memdisk.c: Remove grub/machine/kernel.h.
26111 * gensymlist.sh.in: Include symbol.h.
26112 * hook/datehook.c: Correct module name.
26113 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
26114 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
26115 * include/grub/i386/efi/serial.h: New file.
26116 * include/grub/x86_64/efi/serial.h: Likewise.
26117 * util/time.c: Likewise.
26118 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
26119
463ac55f
CK
261202010-03-14 Colin King <colin.king@ubuntu.com>
261212010-03-14 Colin Watson <cjwatson@ubuntu.com>
26122
26123 Shrink the pre-partition-table part of boot.img by eight bytes.
26124
26125 * boot/i386/pc/boot.S (ERR): New macro.
26126 (chs_mode): Use ERR.
26127 (geometry_error): Likewise.
26128 (hd_probe_error): Remove. This is only used once, so we wrwite
26129 it inline instead.
26130 (read_error): Instead of printing read_error_string, just set up
26131 %si and fall through to ...
26132 (error_message): ... this new function, also used by ERR.
26133
08e46ede
CW
261342010-03-14 Colin Watson <cjwatson@ubuntu.com>
26135
26136 Speed up consecutive hostdisk operations on the same device.
26137
26138 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
26139 (grub_util_biosdisk_open): Initialise disk->data.
26140 (struct linux_partition_cache): New structure.
26141 (linux_find_partition): Cache partition start positions; these are
26142 expensive to compute on every read and write.
26143 (open_device): Cache open file descriptor in disk->data, so that we
26144 don't have to reopen it and flush the buffer cache for consecutive
26145 operations on the same device.
26146 (grub_util_biosdisk_close): New function.
26147 (grub_util_biosdisk_dev): Set `close' member.
26148
26149 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
26150 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
26151 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26152 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26153 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
26154
4a6d2d06
VS
261552010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26156
26157 Compile parts of grub-emu as modules.
26158
26159 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
26160 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
26161 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
26162 (all-local): Add $(GRUB_EMU).
26163 (install-local): Install $(GRUB_EMU).
26164 (uninstall): Uninstall $(GRUB_EMU).
26165 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
26166 * kern/dl.c: Likewise.
26167 * commands/sleep.c: Not include machine/time.h.
26168 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
26169 (COMMON_CFLAGS): Likewise.
26170 (sbin_UTILITIES): Remove grub-emu.
26171 (grub_emu_SOURCES): Removed.
26172 (kernel_img_RELOCATABLE): New variable.
26173 (pkglib_PROGRAMS): Add kernel.img.
26174 (kernel_img_SOURCES): New variable
26175 (kernel_img_CFLAGS): Likewise.
26176 (kernel_img_LDFLAGS): Likewise.
26177 (TARGET_NO_STRIP): Likewise.
26178 (TARGET_NO_DYNAMIC_MODULES): Likewise.
26179 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
26180 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
26181 (grub-emu): New target.
26182 (GRUB_EMU): New variable.
26183 * configure.ac: Whitelist -emu as possible x86_64 architecture.
26184 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
26185 * loader/xnu.c: Likewise.
26186 * include/grub/pci.h: Likewise.
26187 * genemuinit.sh: New file.
26188 * genemuinitheader.sh: Likewise.
26189 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
26190 Support TARGET_NO_DYNAMIC_MODULES.
26191 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
26192 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
26193 * disk/loopback.c: Likewise.
26194 * font/font_cmd.c: Likewise.
26195 * partmap/acorn.c: Likewise.
26196 * partmap/amiga.c: Likewise.
26197 * partmap/apple.c: Likewise.
26198 * partmap/gpt.c: Likewise.
26199 * partmap/msdos.c: Likewise.
26200 * partmap/sun.c: Likewise.
26201 * parttool/msdospart.c: Likewise.
26202 * term/gfxterm.c: Likewise.
26203 * video/bitmap.c: Likewise.
26204 * video/readers/jpeg.c: Likewise.
26205 * video/readers/png.c: Likewise.
26206 * video/readers/tga.c: Likewise.
26207 * video/video.c: Likewise.
26208 * util/grub-emu.c (read_command_list): Removed.
26209 (main): Don't call util_init_nls.
26210 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
26211 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
26212
91fdd2ed
VS
262132010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26214
26215 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
26216 date.mod, datehook.mod.
26217 (datetime_mod_SOURCES): New variable.
26218 (datetime_mod_CFLAGS): Likewise.
26219 (datetime_mod_LDFLAGS): Likewise.
26220 (date_mod_SOURCES): Likewise.
26221 (date_mod_CFLAGS): Likewise.
26222 (date_mod_LDFLAGS): Likewise.
26223 (datehook_mod_SOURCES): Likewise.
26224 (datehook_mod_CFLAGS): Likewise.
26225 (datehook_mod_LDFLAGS): Likewise.
26226 * conf/sparc64-ieee1275.rmk: Likewise.
26227 * lib/ieee1275/datetime.c: New file.
26228
873ccae6
VS
262292010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26230
26231 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
26232 (ieee1275_fb_mod_SOURCES): New variable.
26233 (ieee1275_fb_mod_CFLAGS): Likewise.
26234 (ieee1275_fb_mod_LDFLAGS): Likewise.
26235 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
26236 New proto.
26237 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
26238 (HEAP_MAX_ADDR): Likewise.
26239 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
26240 type.
26241 Correct stop condition.
26242 (grub_ieee1275_devices_iterate): New function.
26243 * video/ieee1275.c: New file.
26244
601c97c0
VS
262452010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26246
26247 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
26248
26249 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
26250 as scratch.
26251 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
26252 SCRATCH_PAD_DISKBOOT as scratch.
26253 (bootit): Pass Openfirmware pointer in %o4.
26254 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
26255 of 0x200000.
26256 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
26257 with util/grub-mkrawimage.c.
26258 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
26259 * include/grub/aout.h (AOUT_MID_SUN): New definition.
26260 (grub_aout_get_type) [GRUB_UTIL]: Removed.
26261 (grub_aout_load) [GRUB_UTIL]: Likewise.
26262 * include/grub/kernel.h (grub_modules_get_end): New proto.
26263 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
26264 (SCRATCH_PAD_BOOT): New definition.
26265 (SCRATCH_PAD_DISKBOOT): Likewise.
26266 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
26267 * include/grub/sparc64/ieee1275/ieee1275.h
26268 (grub_ieee1275_original_stack): New variable
26269 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26270 New definition
26271 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
26272 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
26273 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
26274 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
26275 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
26276 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
26277 (grub_platform_image_format_t): New type.
26278 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
26279 * kern/main.c (grub_modules_get_end)
26280 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
26281 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
26282 (codestart): Switch stacks.
26283 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
26284 variable.
26285 (grub_heap_init): Use grub_modules_get_end.
26286 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
26287 stack.
26288 * util/grub-mkrawimage.c (generate_image): Support sparc64.
26289 (main): Likewise.
26290 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
26291
d68b491e
TG
262922010-03-14 Thorsten Glaser <tg@mirbsd.org>
26293
26294 * util/grub-mkrescue.in: Base ISO UUID on UTC.
26295
4e02ed50
MK
262962010-03-08 Matt Kraai <kraai@ftbfs.org>
26297
26298 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
26299 bug #559005).
26300
1f15fc1e
VS
263012010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
26302
26303 * genmoddep.awk: Output all missing symbols and not only first.
26304
fce5d8ff
VS
263052010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26306
26307 * NEWS: Put the date of 1.98 release.
26308
d1e8a02f
VS
263092010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26310
26311 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
26312 ft2build.h.
26313
696fd607
VS
263142010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26315
26316 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
26317 completition in the middle of string.
26318
33e2e6f3
VS
263192010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26320
26321 * util/grub-mkrescue.in: Use mktemp with explicit template.
26322
b1f6d291
VS
263232010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26324
26325 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
26326
2ac227c7
VS
263272010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26328
26329 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
26330 right pointer.
26331
8f9a632b
VS
263322010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26333
26334 Fix FreeBSD compilation.
26335
26336 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
26337 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
26338
60b03859
VS
263392010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26340
26341 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
26342
48a5a769
VS
263432010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26344
26345 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
26346
3ab4bd77
VS
263472010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26348
26349 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
26350
d116e0d8
RM
263512010-03-04 Robert Millan <rmh.grub@aybabtu.com>
26352
26353 Support relative image path in theme file.
26354
26355 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
26356 (image_set_property): Handle theme_dir and relative path.
26357
c7ef54aa
VS
263582010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26359
26360 * configure.ac: Alias amd64 to x86_64.
26361
fcee14ed
VS
263622010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26363
26364 * NEWS: mention multiboot on EFI.
26365
d0780363
VS
263662010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26367
26368 * kern/main.c (grub_load_modules): Handle errors from init functions of
26369 embeded modules.
26370
41168ea4
VS
263712010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26372
26373 * normal/autofs.c (autoload_fs_module): Handle errors.
26374
b54d93ac
VS
263752010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26376
26377 Disable linux.mod on qemu-mips since it's not functional and leads
26378 to compilation failure.
26379
26380 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
26381 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
26382 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
26383 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
26384 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
26385 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
26386 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
26387 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
26388 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
26389 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
26390 Reported by: BVK Chaitanya
26391
fc8345da
JU
263922010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
26393
26394 * INSTALL: Add gettext as a dependency and add qemu to a new section
26395 "Prerequisites for make-check".
26396
4760f979
CF
263972010-03-04 Christian Franke <franke@computer.org>
26398
26399 * util/grub-pe2elf.c: Add missing include "progname.h".
26400
f209b5b2
VS
264012010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26402
26403 * normal/crypto.c (read_crypto_list): Fix a typo.
26404 Reported by: Seth Goldberg.
26405
b4b7be98
VS
264062010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26407
26408 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 26409 Reported by: Seth Goldberg.
b4b7be98 26410
c0ee0385
VS
264112010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26412
26413 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
26414 ascii.bitmaps.
26415
a8efbf64
VS
264162010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26417
26418 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 26419 Reported by: Seth Goldberg.
a8efbf64 26420
08dcd913
VS
264212010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26422
26423 * util/i386/efi/grub-install.in: Copy gettext files.
26424
c4d0b332
VS
264252010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26426
26427 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
26428
c6f2fe52
VS
264292010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26430
26431 Wait for user entry basing on presence of output rather than on errors.
26432
26433 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
26434 (grub_install_newline_hook): Likewise.
26435 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
26436 * normal/menu.c (show_menu): Check line_counter to determine presence
26437 of output.
26438 * normal/term.c (grub_normal_line_counter): New variable.
26439 (grub_normal_get_line_counter): New function.
26440 (grub_install_newline_hook): Likewise.
26441
5382b1e4
VS
264422010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26443
26444 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
26445
5519963b
VS
264462010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26447
26448 * configure.ac: Update version to 1.98.
26449
72b28631
VS
264502010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
26451
26452 * util/grub.d/10_linux.in (linux_entry): Don't default to
26453 gfxpayload=keep if Linux doesn't support video handover.
26454
c140a180
VS
264552010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
26456
26457 Don't compile video modules on yeeloong since video subsystem is part
26458 of kernel.
26459
26460 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
26461 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
26462 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
26463 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
26464 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
26465 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
26466 * include/grub/bitmap_scale.h: Likewise.
26467 * include/grub/bufio.h: Likewise.
26468 * include/grub/font.h: Likewise.
26469 * include/grub/gfxterm.h: Likewise.
26470 * include/grub/video.h: Likewise.
26471 * include/grub/vbe.h: Don't include video_fb.h.
26472 * video/i386/pc/vbe.c: Include video_fb.h.
26473 * commands/i386/pc/vbetest.c: Include video.h.
26474
a0ca21c2
CW
264752010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
26476
26477 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
26478 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
26479 default entry if GRUB_SAVEDEFAULT=true. This allows using
26480 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
26481 saving a new default on every boot.
26482
4a8a763c
VS
264832010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26484
26485 * normal/crypto.c (read_crypto_list): Fix a memory leak.
26486 * normal/term.c (read_terminal_list): Likewise.
26487 * normal/main.c (grub_normal_init_page): Likewise.
26488 (grub_normal_read_line_real): Likewise.
26489
607ffde2
VS
264902010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26491
26492 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
26493 memory leak.
26494 Reported by: Seth Goldberg.
26495
2b8fa975
CW
264962010-02-24 Joey Korkames <joey+lists@kidfixit.com>
26497
26498 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
26499 duplicate declaration of `start'.
26500
618307dd
VS
265012010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26502
26503 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
26504 filename.
26505 Reported by: Georgy Buranov
26506
7dd05b96 265072010-02-20 Carles Pina i Estany <carles@pina.cat>
26508
26509 * util/grub-mkrawimage.c (usage): Change string formatting to
26510 improve gettext.
26511
d1484a42
MRA
265122010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
26513
26514 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
26515 backspace keys.
26516
42b1d186
VS
265172010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26518
26519 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
26520 Reported by: Michael Suchanek.
26521
265222010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
26523
26524 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
26525 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
26526
d9f31a41
VS
265272010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
26528
26529 Remove any reference to non-free fonts.
26530
26531 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
26532 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
26533 uses non-free components.
26534 * font/font.c (grub_font_get_name): Remove example name.
26535 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
26536 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
26537 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
26538 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
26539
2793c71e
GB
265402010-02-16 Georgy Buranov <gburanov@gmail.com>
26541
26542 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
26543
402e3779
VS
265442010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26545
26546 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
26547 Double divisor.
26548 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
26549 features.
26550 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
26551
0dd1e0dd
VS
265522010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26553
26554 * gensymlist.sh.in: Use TARGET_CC instead of CC.
26555
6fa7cfce
ST
265562010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26557
26558 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
26559 * docs/grub.texi (Command-line and menu entry commands): Document play
26560 command.
26561
37c8483b
ST
265622010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26563
26564 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
26565 parse arguments as inline tempo and notes. Move code for playing notes
26566 to...
26567 (play): ... new function.
26568
14da0fb7
ST
265692010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26570
26571 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
26572 grub_uint16_t instead of short.
26573 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
26574 disk from little endian to cpu endianness.
26575
04459e70
ST
265762010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
26577
26578 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
26579 GRUB_TICKS_PER_SECOND instead of 120.
26580
a0876943
VS
265812010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26582
26583 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
26584 escape sequence after \e.
26585
e29f95dc
VS
265862010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26587
26588 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
26589 non-ASCII characters.
26590
d27859b2
VS
265912010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26592
26593 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
26594 set root in single quotes to prevent \, from being unescaped.
26595
bc028f2f
VS
265962010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26597
26598 Prevent unknown commands from stopping menuentry execution.
26599
26600 * script/execute.c (grub_script_execute_cmdline): Print error after
26601 unknown command.
26602
095f5f82
VS
266032010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26604
26605 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
26606 Reported by: Pavel Pisa.
26607
8c717950
VS
266082010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26609
26610 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
26611
904935c3
VS
266122010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26613
26614 Merge grub_ieee1275_map_physical into grub_map and rename to
26615 grub_ieee1275_map
26616
26617 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
26618 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
26619 Remove.
26620 * kern/ieee1275/openfw.c (grub_map): Rename to ...
26621 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
26622 necessary.
26623 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
26624
5b59a4e3
VS
266252010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26626
26627 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
26628 opening and not after.
26629
69e137e8
VS
266302010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26631
26632 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
26633 constants.
26634
2c0fcc36
VS
266352010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26636
26637 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
26638 (alloc_phys): Use ALIGN_UP instead of align_addr.
26639
8c6052ce
VS
266402010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26641
26642 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
26643
17cec782
VS
266442010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26645
26646 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
26647
e0128bbd
VS
266482010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26649
26650 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
26651 verbose dprintf.
26652
ca62070b
VS
266532010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26654
26655 Fix over-4GiB seek on sparc64.
26656
26657 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
26658 Replace pos_i and pos_lo with pos. All users updated.
26659 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
26660 New constant.
26661 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
26662 Likewise.
26663 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
26664 and pos_lo.
26665
bdca2607
VS
266662010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26667
26668 * util/grub-mkrawimage.c (main): Call set_program_name.
26669
da278c4d
VS
266702010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26671
26672 Properly align 64-bit targets.
26673
26674 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
26675 (generate_image): Use ALIGN_ADDR.
26676
b274d734
VS
266772010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26678
26679 Properly create cross-endian images.
26680
26681 * include/grub/types.h (grub_host_to_target_addr): New macro
26682 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
26683
82da2062
VS
266842010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26685
26686 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
26687
7cae4377
VS
266882010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26689
26690 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
26691
26692 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
26693 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
26694 (grub_linux_boot): Divide by 64K when on VESA.
26695
65a533e7
VS
266962010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26697
26698 Support GRUB_GFXPAYLOAD_LINUX.
26699
26700 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
26701 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
26702
dd01d397
VS
267032010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26704
26705 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
26706 to show messages instead of discarding them.
26707 Process errors after executing command and not before. Keep old method
26708 too as precaution.
26709
660960d6
VS
267102010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
26711
26712 * configure.ac: Check for ft2build.h.
26713
62509f04
VS
267142010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26715
26716 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
26717
473df63d
VS
267182010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26719
26720 * genkernsyms.sh.in: Use TARGET_CC.
26721
c98d2a13
CW
267222010-02-07 Colin Watson <cjwatson@ubuntu.com>
26723
26724 * NEWS: Update.
26725
6e14234c
VS
267262010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26727
26728 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
26729 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
26730 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 26731
b255e9cf
YB
267322010-02-07 Yves Blusseau <blusseau@zetam.org>
26733
6e14234c 26734 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 26735
98e6959d
VS
267362010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26737
26738 Fix warnings in grub-emu when compiling with maximum warning options.
26739
26740 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
26741 (grub_arch_modules_addr): Return 0 and not NULL.
26742 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 26743 (xstrdup): Use newstr instead of dup.
f88d801b
VS
26744 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
26745 of disk to dsk to avoid shadowing.
74e4934e
VS
26746 (find_free_slot): Fix prototype.
26747 * util/getroot.c (grub_util_is_dmraid): Make static.
26748 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
26749 Add missing prototype.
26750 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 26751
74e31b5c
VS
267522010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26753
26754 * loader/i386/linux.c (grub_linux_setup_video): Handle error
26755 appropriately.
26756
6b2ad14b
VS
267572010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26758
26759 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
26760 code out.
26761
8f891adc
VS
267622010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26763
26764 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
26765 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
26766 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
26767 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
26768 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
26769 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
26770
74b45184
VS
267712010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26772
26773 * include/grub/err.h (grub_err_printf): Don't export.
26774
a4bced77
VS
267752010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26776
26777 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
26778
007d0695
VS
267792010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26780
26781 * include/grub/i18n.h (grub_gettext_dummy): Removed.
26782 * kern/misc.c (grub_gettext_dummy): Make static.
26783
b6c0d9c2
VS
267842010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26785
26786 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
26787 by non-valid ones.
26788 * kern/term.c (grub_putchar): Likewise.
26789
f51a90d0
VS
267902010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26791
26792 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
26793 buggy hook call and memory leak.
26794
6846cec5
VS
267952010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26796
26797 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
26798
468d69fe
VS
267992010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26800
26801 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
26802
51906b8c
VS
268032010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26804
26805 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
26806 modevar.
26807 Return grub_errno on allocation error.
26808
09706ce5
VS
268092010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26810
26811 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
26812
911df80c
YB
268132010-02-06 Yves Blusseau <blusseau@zetam.org>
26814
26815 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
26816 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
26817
3746a6bc
VS
268182010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26819
26820 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
26821 non-pxe disk.
26822 (grub_pxefs_open): Likewise.
26823
09706ce5
VS
268242010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26825
26826 * util/grub.d/10_hurd.in: Add --class information to menuentries.
26827 * util/grub.d/10_kfreebsd.in: Likewise.
26828 * util/grub.d/10_linux.in: Likewise.
26829
7cc192d9
VS
268302010-02-06 Colin D Bennett <colin@gibibit.com>
26831
26832 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
26833 (gfxmenu_mod_SOURCES): New variable.
26834 (gfxmenu_mod_CFLAGS): Likewise.
26835 (gfxmenu_mod_LDFLAGS): Likewise.
26836 * include/grub/term.h (grub_term_set_current_output): Declare
26837 argument as const.
26838 * docs/gfxmenu-theme-example.txt: New file.
26839 * gfxmenu/gfxmenu.c: Likewise.
26840 * gfxmenu/gui_box.c: Likewise.
26841 * gfxmenu/gui_canvas.c: Likewise.
26842 * gfxmenu/gui_circular_progress.c: Likewise.
26843 * gfxmenu/gui_image.c: Likewise.
26844 * gfxmenu/gui_label.c: Likewise.
26845 * gfxmenu/gui_list.c: Likewise.
26846 * gfxmenu/gui_progress_bar.c: Likewise.
26847 * gfxmenu/gui_string_util.c: Likewise.
26848 * gfxmenu/gui_util.c: Likewise.
26849 * gfxmenu/icon_manager.c: Likewise.
26850 * gfxmenu/model.c: Likewise.
26851 * gfxmenu/named_colors.c: Likewise.
26852 * gfxmenu/theme_loader.c: Likewise.
26853 * gfxmenu/view.c: Likewise.
26854 * gfxmenu/widget-box.c: Likewise.
26855 * include/grub/gfxmenu_model.h: Likewise.
26856 * include/grub/gfxmenu_view.h: Likewise.
26857 * include/grub/gfxwidgets.h: Likewise.
26858 * include/grub/gui.h: Likewise.
26859 * include/grub/gui_string_util.h: Likewise.
26860 * include/grub/icon_manager.h: Likewise.
26861
268622010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26863
26864 Agglomerate scrolling in gfxterm.
26865
26866 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
26867 (grub_virtual_screen_setup): Initialise 'total_screen'.
26868 (write_char): Split to ...
26869 (paint_char): ... this ...
26870 (write_char): ... and this.
26871 (paint_char): Handle delayed scrolling.
26872 (draw_cursor): Likewise.
26873 (scroll_up): Split to ...
26874 (real_scroll): ... this ...
26875 (scroll_up): ... and this.
26876 (real_scroll): Handle multi-line scroll and draw below-the-bottom
26877 characters.
26878 (grub_gfxterm_refresh): Call real_scroll.
26879
268802010-02-06 Colin D Bennett <colin@gibibit.com>
26881
26882 * include/grub/misc.h (grub_iscntrl): New inline function.
26883 (grub_isalnum): Likewise.
26884 (grub_strtol): Likewise.
26885
268862010-02-06 Colin D Bennett <colin@gibibit.com>
26887
26888 * normal/menu_text.c (get_entry_number): Move from here ...
26889 * normal/menu.c (get_entry_number): ... moved here.
26890 * include/grub/menu.h (grub_menu_get_default_entry_index):
26891 New prototype.
26892 * normal/menu.c (grub_menu_get_default_entry_index): New function.
26893 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
26894 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
26895 (grub_menu_viewer_should_return): Likewise.
26896 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
26897 * normal/menu_text.c (run_menu): Enable menu switching.
26898 * normal/menu_viewer.c (should_return): New variable.
26899 (menu_viewer_changed): Likewise.
26900 (grub_menu_viewer_show_menu): Handle menu viewer changes.
26901 (grub_menu_viewer_should_return): New function.
26902 (menuviewer_write_hook): Likewise.
26903 (grub_menu_viewer_init): Likewise.
26904
269052010-02-06 Colin D Bennet <colin@gibibit.com>
269062010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26907
26908 Support for gfxterm in a window.
26909
26910 * include/grub/gfxterm.h: New file.
26911 * include/grub/video.h (struct grub_video_rect): New declaration.
26912 (grub_video_rect_t): Likewise.
26913 * term/gfxterm.c (struct grub_gfxterm_window): New type.
26914 (refcount): New variable.
26915 (render_target): Likewise.
26916 (window): Likewise.
26917 (repaint_callback): Likewise.
26918 (grub_virtual_screen_setup): Use 'render_target'.
26919 (init_window): New function.
26920 (grub_gfxterm_init_window): Likewise.
26921 (grub_gfxterm_init): Check reference counter.
26922 Use init_window.
26923 (destroy_window): New function.
26924 (grub_gfxterm_destroy_window): Likewise.
26925 (grub_gfxterm_fini): Check reference counter.
26926 Use destroy_window.
26927 (redraw_screen_rect): Restore viewport.
26928 Use 'render_target' and 'window'.
26929 Call 'repaint_callback'.
26930 (write_char): Use 'render_target'.
26931 (draw_cursor): Likewise.
26932 (scroll_up): Restore viewport.
26933 Use 'render_target' and 'window'.
26934 Call 'repaint_callback'.
26935 (grub_gfxterm_cls): Likewise.
26936 (grub_gfxterm_refresh): Use 'window'.
26937 (grub_gfxterm_set_repaint_callback): New function.
26938 (grub_gfxterm_background_image_cmd): Use 'window'.
26939 (grub_gfxterm_get_term): New function.
26940 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
26941
269422010-02-06 Colin D Bennett <colin@gibibit.com>
26943
26944 Bitmap scaling support.
26945
26946 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
26947 (bitmap_scale_mod_SOURCES): New variable.
26948 (bitmap_scale_mod_CFLAGS): Likewise.
26949 (bitmap_scale_mod_LDFLAGS): Likewise.
26950 * include/grub/bitmap_scale.h: New file.
26951 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
26952 (background_image_cmd_options): New variable.
26953 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
26954 (cmd): Rename and change type to ...
26955 (background_image_cmd_handle): ... this. All users updated.
26956 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
26957 * video/bitmap_scale.c: New file.
26958
269592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26960
26961 SDL support.
26962
26963 * Makefile.in (LIBSDL): New variable.
26964 (enable_grub_emu_sdl): Likewise.
26965 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
26966 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
26967 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
26968 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
26969 * util/sdl.c: New file.
26970
269712010-02-06 Colin D Bennett <colin@gibibit.com>
269722010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26973
26974 Double buffering support.
26975
26976 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
26977 * include/grub/video.h: Update comment.
26978 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
26979 New type.
26980 (grub_video_fb_doublebuf_blit_init): New prototype.
26981 * term/gfxterm.c (scroll_up): Support double buffering.
26982 (grub_gfxterm_refresh): Likewise.
26983 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
26984 (grub_video_fb_doublebuf_blit_init): Likewise.
26985 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
26986 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
26987 'displayed_page', 'render_page' and 'update_screen'.
26988 (grub_video_vbe_fini): Free offscreen buffer.
26989 (doublebuf_pageflipping_commit): New function.
26990 (doublebuf_pageflipping_update_screen): Likewise.
26991 (doublebuf_pageflipping_init): Likewise.
26992 (double_buffering_init): Likewise.
26993 (grub_video_vbe_setup): Enable doublebuffering.
26994 (grub_video_vbe_swap_buffers): Implement.
26995 (grub_video_vbe_set_active_render_target): Handle double buffering.
26996 (grub_video_vbe_get_active_render_target): Likewise.
26997 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
26998 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
26999 (grub_video_vbe_enable_double_buffering): Likewise.
27000 (grub_video_vbe_swap_buffers): Use update_screen.
27001 (grub_video_set_mode): Use double buffering.
27002
270032010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27004
27005 * maintainance/gentrigtables.py: Remove.
27006 * lib/trig.c: Likewise.
27007
27008 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
27009
27010 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
27011 `trigtables.c'.
27012 (trigtables.c): New rule.
27013 (gentrigtables): Likewise.
27014 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
27015
270162010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27017
27018 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
27019 integer constants.
27020
270212010-02-06 Colin D Bennet <colin@gibibit.com>
27022
27023 Trigonometry support.
27024
27025 * include/grub/trig.h: New file.
27026 * lib/trig.c: Likewise.
27027 * maintainance/gentrigtables.py: Likewise.
27028 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
27029 (trig_mod_SOURCES): New variable.
27030 (trig_mod_CFLAGS): Likewise.
27031 (trig_mod_LDFLAGS): Likewise.
27032
5562834e
VS
270332010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27034
27035 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
27036 disk devices.
27037
4f8528fc
VS
270382010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27039
27040 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
27041 error.
27042
2b4068e9
VS
270432010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27044
27045 * util/hostdisk.c (open_device): Don't use partition device when reading
27046 before the partition.
27047 (grub_util_biosdisk_read): Don't read from partition and before the
27048 partition in single operation.
27049 (grub_util_biosdisk_write): Don't write to partition and before the
27050 partition in single operation.
27051
399f6e4d
TL
270522010-02-03 Torsten Landschoff <torsten@debian.org>
27053
27054 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27055 last sectors.
27056
996649b0
VS
270572010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27058
27059 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
27060 CDROM reads.
27061 (grub_biosdisk_write): Refuse to write to CDROM.
27062
3b205d4d
VS
270632010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27064
27065 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
27066
61e89d9d
VS
270672010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27068
27069 * font/font.c (find_glyph): Check that bmp_idx is available before
27070 using it.
27071 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
27072 with (font == NULL).
27073
bf7fcba2
CS
270742010-01-28 Christian Schmitt <chris@ilovelinux.de>
27075
27076 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
27077
f45d2663
BC
270782010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
27079
27080 * include/grub/script_sh.h (sourcecode): Add const qualifier.
27081 * util/grub-script-check.c (getline): Fix empty lines case.
27082
ec1444e6
RM
270832010-01-28 Robert Millan <rmh.grub@aybabtu.com>
27084
27085 * Makefile.in (check): Exit with fail status when one of the tests
27086 fails.
27087 * tests/example_functional_test.c (example_test): Fix reversed assert.
27088 * tests/example_unit_test.c (example_test): Likewise.
27089
2e1cb9bb
CW
270902010-01-28 Colin Watson <cjwatson@ubuntu.com>
27091
27092 * util/grub.d/10_linux.in: This script does not use any of the
27093 contents of gettext.sh, only the external command `gettext', so stop
27094 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
27095 the same prefix as GRUB.)
27096 * util/grub.d/10_kfreebsd.in: Likewise.
27097
63533ab0
VS
270982010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27099
27100 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
27101 of the line.
27102
989e1f93
VS
271032010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27104
27105 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27106 last sectors.
27107
e709ebe2
VS
271082010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27109
27110 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
27111 having a 4KiB and not 32KiB buffer size.
27112
27dea7ed
RM
271132010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27114
27115 * util/hostfs.c: Include `<errno.h>'.
27116 (grub_hostfs_read): Handle errors from fseeko() and fread().
27117
67667b9c
RM
271182010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27119
27120 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
27121 loop when using read hooks on files whose size isn't sector-aligned.
27122
c294d9d8
RM
271232010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27124
27125 Remove unused parameter.
27126
27127 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
27128 (grub_iso9660_open): Remove initialization of `data->length'.
27129
af75a9f1
RM
271302010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27131
27132 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
27133 memleak conditions.
27134
254e2ce5 271352010-01-27 Carles Pina i Estany <carles@pina.cat>
27136
27137 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
27138 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
27139
b510928c 271402010-01-26 Carles Pina i Estany <carles@pina.cat>
27141
27142 * util/bin2h.c (usage): Fix warning (space after backslash).
27143
aa2f9dd2 271442010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 27145
27146 * font/font.c: Include `grub/fontformat.h.
27147 Remove font file format constants.
27148 (grub_font_load): Use the new macros.
27149 * include/grub/fontformat.h: New file.
27150 * util/grub-mkfont.c: Include `grub/fontformat.c'.
27151 (write_font_pf2): Use the new macros.
27152
94e7e712
RM
271532010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27154
27155 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
27156 does.
27157
3973a59a
RM
271582010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27159
27160 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
27161
27162 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
27163 (_start): Macroify `0x7F'.
27164
27165 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
27166 (make_install_device): Use "(pxe)" as fallback prefix when booting
27167 via PXE.
27168
42e0cba3
GS
271692010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
27170
27171 * configure.ac: Reset LIBS after check for libgcc symbols.
27172
847effd8
CW
271732010-01-25 Colin Watson <cjwatson@ubuntu.com>
27174
27175 * util/hostdisk.c (open_device): Add trailing newline to debug
27176 message.
27177
ea4a7e35
GS
271782010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
27179
27180 * configure.ac: Check for `limits.h'.
27181 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
27182
67951a53
RM
271832010-01-24 Robert Millan <rmh.grub@aybabtu.com>
27184
27185 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
27186 capitalize error strings.
27187
c273d4ce
ST
271882010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27189
27190 * util/grub.d/10_hurd.in: Add a recovery mode.
27191
69be5b74
VS
271922010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
27193
27194 * configure.ac: Check for libgcc symbols with -nostdlib.
27195
fc9e5810
BC
271962010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
27197
27198 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
27199
4b358c0a
VS
272002010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27201
27202 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
27203 stack since heap may be unavailable at that point.
27204 (grub_ofconsole_gotoxy): Likewise.
27205
454fcd1c
VS
272062010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27207
27208 * configure.ac: Check for _restgpr_14_x.
27209 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
27210 and _savegpr_* prototypes.
27211
566863ca
RM
272122010-01-22 Robert Millan <rmh.grub@aybabtu.com>
27213
27214 Use generic grub_reboot() for i386-efi.
27215
27216 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
27217 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
27218 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
27219
bf86e59a
VS
272202010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27221
27222 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
27223 presence of "prefix" variable as it breaks when normal.mod is
27224 embedded.
27225
d645e0f8
VS
272262010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27227
27228 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
27229 stack since heap is unavailable at that point.
27230
f9ab2e25
VS
272312010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27232
27233 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
27234 (grub_freebsd_bootinfo): Rewritten.
27235 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
27236
01fc7054
VS
272372010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27238
27239 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
27240
caab4fd6
RM
272412010-01-21 Robert Millan <rmh.grub@aybabtu.com>
27242
27243 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
27244 domain now.
27245
67eb1427
FZ
272462010-01-20 Felix Zielcke <fzielcke@z-51.de>
27247
27248 * util/misc.c (make_system_path_relative_to_its_root): Change the work
27249 around for handling "/" to the correct fix. Fix a memory leak. Use
27250 xstrdup instead of strdup.
27251
a9ed4ff3
VS
272522010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27253
27254 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
27255
272562010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
27257
27258 Optimise glyph lookup by Basic Multilingual Plane lookup array.
27259
27260 * font/font.c (struct grub_font): New member 'bmp_idx'.
27261 (font_init): Initialise 'bmp_idx'.
27262 (load_font_index): Fill 'bmp_idx'.
27263 (find_glyph): Make inline. Use bmp_idx for BMP characters.
27264
48209f4f
VS
272652010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27266
27267 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
27268 unnecessary calls.
27269
9f0a4bb7
VS
272702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27271
27272 Move context handling out of the kernel.
27273
27274 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
27275 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
27276 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
27277 * conf/i386-efi.rmk: Likewise.
27278 * conf/i386-ieee1275.rmk: Likewise.
27279 * conf/i386-pc.rmk: Likewise.
27280 * conf/powerpc-ieee1275.rmk: Likewise.
27281 * conf/sparc64-ieee1275.rmk: Likewise.
27282 * conf/x86_64-efi.rmk: Likewise.
27283 * include/grub/env.h: Include grub/menu.h.
27284 (grub_env_var_type): Removed.
27285 (grub_env_var): Replaced field 'type' with 'global'.
27286 (grub_env_find): New prototype.
27287 (grub_env_context_open): Remove EXPORT_FUNC.
27288 (grub_env_context_close): Likewise.
27289 (grub_env_export): Likewise.
27290 (grub_env_set_data_slot): Removed.
27291 (grub_env_get_data_slot): Likewise.
27292 (grub_env_unset_data_slot): Likewise.
27293 (grub_env_unset_menu): New prototype.
27294 (grub_env_set_menu): Likewise.
27295 (grub_env_get_menu): Likewise.
27296 * include/grub/env_private.h: New file.
27297 * include/grub/normal.h (grub_context_init): New prototype.
27298 (grub_context_fini): Likewise.
27299 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
27300 * normal/context.c (grub_cmd_export): ... to here.
27301 * kern/env.c: Include env_private.h.
27302 (HASHSZ): Moved to include/grub/env_private.h.
27303 (grub_env_context): Likewise.
27304 (grub_env_sorted_var): Likewise.
27305 (current_context): Renamed from this ...
27306 (grub_current_context): ...to this. 'static' removed. All users updated.
27307 (grub_env_find): Removed 'static'.
27308 (grub_env_context_open): Moved to normal/context.c.
27309 (grub_env_context_close): Likewise.
27310 (grub_env_export): Likewise.
27311 (mangle_data_slot_name): Removed.
27312 (grub_env_set_data_slot): Likewise.
27313 (grub_env_get_data_slot): Likewise.
27314 (grub_env_unset_data_slot): Likewise.
27315 * kern/main.c (grub_set_root_dev): Don't export root.
27316 It will be done later.
27317 (grub_main): Don't export prefix.
27318 It will be done later.
27319 * normal/context.c: New file.
27320 * normal/main.c (free_menu): Use grub_env_unset_menu.
27321 (grub_normal_add_menu_entry): Use grub_env_get_menu.
27322 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
27323 (GRUB_MOD_INIT(normal)): Call grub_context_init.
27324 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
27325
8dd35b8c
VS
273262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27327
27328 setpci support.
27329
27330 * commands/setpci.c: New file.
27331 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
27332 (setpci_mod_SOURCES): New variable.
27333 (setpci_mod_CFLAGS): Likewise.
27334 (setpci_mod_LDFLAGS): Likewise.
27335
449193d5
VS
273362010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27337
27338 Byte-addressable PCI configuration space.
27339
27340 * bus/pci.c (grub_pci_make_address): Use byte address instead of
27341 dword address.
27342 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
27343 GRUB_PCI_REG_CACHELINE.
27344 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
27345 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
27346 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
27347 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
27348 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
27349 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
27350 grub_pci_make_address.
27351 (lock_rom_area): Likewise.
27352 * commands/lspci.c (grub_lspci_iter): Use macroses
27353 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
27354 of grub_pci_make_address.
27355 * disk/ata.c (grub_ata_pciinit): Likewise.
27356 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
27357 (GRUB_PCI_REG_VENDOR): Likewise.
27358 (GRUB_PCI_REG_DEVICE): Likewise.
27359 (GRUB_PCI_REG_COMMAND): Likewise.
27360 (GRUB_PCI_REG_STATUS): Likewise.
27361 (GRUB_PCI_REG_REVISION): Likewise.
27362 (GRUB_PCI_REG_CLASS): Likewise.
27363 (GRUB_PCI_REG_CACHELINE): Likewise.
27364 (GRUB_PCI_REG_LAT_TIMER): Likewise.
27365 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
27366 (GRUB_PCI_REG_BIST): Likewise.
27367 (GRUB_PCI_REG_ADDRESSES): Likewise.
27368 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27369 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27370 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27371 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27372 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27373 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27374 (GRUB_PCI_REG_CIS_POINTER): Likewise.
27375 (GRUB_PCI_REG_SUBVENDOR): Likewise.
27376 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
27377 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
27378 (GRUB_PCI_REG_CAP_POINTER): Likewise.
27379 (GRUB_PCI_REG_IRQ_LINE): Likewise.
27380 (GRUB_PCI_REG_IRQ_PIN): Likewise.
27381 (GRUB_PCI_REG_MIN_GNT): Likewise.
27382 (GRUB_PCI_REG_MAX_LAT): Likewise.
27383 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
27384 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
27385 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 27386 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
27387 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
27388 space.
27389
96d73208
RM
273902010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27391
27392 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
27393 can be reliably determined to be supported.
27394
d4484482
RM
273952010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27396
27397 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
27398 that VESA is supported.
27399 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
27400 supported.
27401
00308ecf
VS
274022010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27403
27404 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
27405
f66924a4
RM
274062010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27407
27408 * util/misc.c (make_system_path_relative_to_its_root): Work around
27409 special-casing of "/", as previous incarnation of this routine did.
27410
cbca0ada
VS
274112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27412
27413 Fix any-emu compilation.
27414
27415 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
27416 * grub_bin2h_SOURCES: New variable.
27417
34a66d99
RM
274182010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27419
27420 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
27421
94fabf58
RM
274222010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27423
27424 * util/grub.d/00_header.in: Fix handling of locale_dir.
27425
02cf98ca
VS
274262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27427
27428 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
27429 as possible unifont location (Gentoo).
27430 Reported by: Alexander Brüning
27431
327dbcd7
VS
274322010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27433
27434 Don't try to generate lists for kernel.img.
27435
27436 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
27437 (pkglib_MODULES): Remove kernel.img.
27438 (kernel_img_EXPORTS): Removed.
27439 (kernel_img_RELOCATABLE): New variable.
27440 * conf/x86_64-efi.rmk: Likewise.
27441 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
27442
ca467290
VS
274432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27444
27445 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
27446 grub_xasprintf or grub_snprintf.
27447 (grub_vsprintf): Likewise.
27448 (grub_snprintf): New proto.
27449 (grub_vsnprintf): Likewise.
27450 (grub_xasprintf): Likewise.
27451 (grub_xvasprintf): Likewise.
27452 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
27453 (grub_sprintf): Removed.
27454 (grub_vsnprintf): New function.
27455 (grub_snprintf): Likewise.
27456 (grub_xvasprintf): Likewise.
27457 (grub_xasprintf): Likewise.
27458 (grub_vsprintf): Renamed to ...
27459 (grub_vsnprintf_real): ...this. New argument max_len.
27460
aca655fd
BC
274612010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
27462
27463 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
27464 fix grub-script-check warning.
27465
7ee92c32
VS
274662010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27467
27468 * include/grub/font.h (grub_font_load): Fix prototype.
27469
f80927ca
VS
274702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27471
27472 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
27473
119c50ea
VS
274742010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27475
27476 * include/grub/x86_64/at_keyboard.h: New file.
27477
47d5f3c1
VS
274782010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27479
27480 * loader/mips/linux.c: Include missing grub/i18n.h.
27481
55ff5266
RM
274822009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27483
27484 * normal/menu.c (notify_execution_failure): Clarify error message.
27485
c893cc87
RM
274862009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27487
27488 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
27489 return value (and revert all return statements). Update users.
27490
917dd370
CW
274912010-01-20 Dan Merillat <debian@dan.merillat.org>
27492
27493 * kern/device.c (grub_device_iterate): Allocate new part_ent
27494 structure based on sizeof (*p) rather than sizeof (p->next), to
27495 account for structure padding.
27496
27497 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
27498 disk is NULL, which might happen for LVM physical volumes with no
27499 LVM signature.
27500
d4a4ee57
RM
275012009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27502
27503 * loader/mips/linux.c (grub_cmd_initrd)
27504 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
27505
275062009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27507
27508 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
27509 (grub_video_video_init, grub_video_bitmap_init)
27510 (grub_font_manager_init, grub_term_gfxterm_init)
27511 (grub_at_keyboard_init): New extern declarations.
27512 (grub_machine_init): Initialize gfxterm and at_keyboard.
27513
27514 * kern/main.c (grub_main): Revert grub_printf delay kludge.
27515
27516 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
27517 `gfxterm.mod' into core image.
27518
27519 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27520 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27521 (kernel_img_FORMAT): Copy to ...
27522
27523 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27524 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27525 (kernel_img_FORMAT): ... here, and ...
27526
27527 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27528 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27529 (kernel_img_FORMAT): ... here.
27530
27531 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
27532 and input (at_keyboard) terminals in kernel.
27533 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
27534
27535 (pkglib_MODULES): Remove `pci.mod'.
27536 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
27537 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
27538 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27539 (at_keyboard_mod_LDFLAGS): Remove variables.
27540
275412010-01-11 Felix Zielcke <fzielcke@z-51.de>
27542
27543 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
27544
275452009-12-10 Robert Millan <rmh.grub@aybabtu.com>
27546
27547 * include/grub/mips/libgcc.h: Only export symbols for functions
27548 that libgcc provides.
27549
275502009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
27551
27552 MIPS support.
27553
27554 * bus/bonito.c: New file.
27555 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
27556 GRUB_PCI_NUM_DEVICES.
27557 * term/i386/pc/serial.c: Move to ...
27558 * term/serial.c: ... here. All users updated.
27559 * util/i386/pc/grub-mkimage.c: Move to ...
27560 * util/grub-mkrawimage.c: ... here. All users updated.
27561 * term/i386/pc/at_keyboard.c: Move to ...
27562 * term/at_keyboard.c: ... here. All users updated.
27563 * conf/mips-qemu-mips.rmk: New file.
27564 * conf/mips-yeeloong.rmk: Likewise.
27565 * conf/mips.rmk: Likewise.
27566 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
27567 mipsel-qemu-mips.
27568 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
27569 to port addresses.
27570 (grub_ata_pciinit): Support CS5536.
27571 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
27572 * font/font_cmd.c (loadfont_command): Open file before passing it to
27573 grub_font_load.
27574 (pseudo_file_read): New function.
27575 (pseudo_file_close): Likewise.
27576 (pseudo_fs): New structure.
27577 (load_font_module): New function.
27578 (GRUB_MOD_INIT(font_manager)): Load embedded font.
27579 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
27580 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
27581 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
27582 * include/grub/i386/at_keyboard.h: Split into ...
27583 * include/grub/at_keyboard.h: ... this ...
27584 * include/grub/i386/at_keyboard.h: ... and this.
27585 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
27586 New prototype.
27587 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
27588 updated.
27589 (grub_elf64_size): Likewise.
27590 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
27591 filename.
27592 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
27593 * include/grub/i386/coreboot/serial.h: Rewritten.
27594 * include/grub/i386/ieee1275/serial.h: Include
27595 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
27596 * include/grub/i386/pc/serial.h: Moved from here ...
27597 * include/grub/serial.h: ... to here. All users updated.
27598 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
27599 (GRUB_PCI_NUM_BUS): Likewise.
27600 (GRUB_PCI_NUM_DEVICES): Likewise.
27601 (grub_pci_device_map_range): Add missing volatile keyword.
27602 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
27603 * include/grub/mips/at_keyboard.h: New file.
27604 * include/grub/mips/cache.h: Likewise.
27605 * include/grub/mips/io.h: Likewise.
27606 * include/grub/mips/kernel.h: Likewise.
27607 * include/grub/mips/libgcc.h: Likewise.
27608 * include/grub/mips/pci.h: Likewise.
27609 * include/grub/mips/qemu-mips/boot.h: Likewise.
27610 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27611 * include/grub/mips/qemu-mips/loader.h: Likewise.
27612 * include/grub/mips/qemu-mips/memory.h: Likewise.
27613 * include/grub/mips/qemu-mips/serial.h: Likewise.
27614 * include/grub/mips/qemu-mips/time.h: Likewise.
27615 * include/grub/mips/relocator.h: Likewise.
27616 * include/grub/mips/time.h: Likewise.
27617 * include/grub/mips/types.h: Likewise.
27618 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
27619 * include/grub/mips/yeeloong/boot.h: Likewise.
27620 * include/grub/mips/yeeloong/kernel.h: Likewise.
27621 * include/grub/mips/yeeloong/loader.h: Likewise.
27622 * include/grub/mips/yeeloong/memory.h: Likewise.
27623 * include/grub/mips/yeeloong/pci.h: Likewise.
27624 * include/grub/mips/yeeloong/serial.h: Likewise.
27625 * include/grub/mips/yeeloong/time.h: Likewise.
27626 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
27627 * kern/elf.c (grub_elf32_size): New parameter. All users
27628 updated.
27629 (grub_elf64_size): Likewise.
27630 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
27631 Load modules before saying "Welcome to GRUB!".
27632 Call grub_refresh after saying "Welcome to GRUB!".
27633 * kern/mips/cache.S: New file.
27634 * kern/mips/cache_flush.S: Likewise.
27635 * kern/mips/dl.c: Likewise.
27636 * kern/mips/init.c: Likewise.
27637 * kern/mips/qemu-mips/init.c: Likewise.
27638 * kern/mips/startup.S: Likewise.
27639 * kern/mips/yeeloong/init.c: Likewise.
27640 * kern/term.c (grub_putcode): Handle NULL terminal.
27641 (grub_getcharwidth): Likewise.
27642 (grub_getkey): Likewise.
27643 (grub_checkkey): Likewise.
27644 (grub_getkeystatus): Likewise.
27645 (grub_getxy): Likewise.
27646 (grub_getwh): Likewise.
27647 (grub_gotoxy): Likewise.
27648 (grub_cls): Likewise.
27649 (grub_setcolorstate): Likewise.
27650 (grub_setcolor): Likewise.
27651 (grub_getcolor): Likewise.
27652 (grub_refresh): Likewise.
27653 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
27654 (write_jump): Add hatch nop.
27655 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
27656 * lib/mips/setjmp.S: New file.
27657 * loader/mips/linux.c: Likewise.
27658 * term/i386/pc/at_keyboard.c: Move from here ...
27659 * term/at_keyboard.c: ... to here.
27660 * term/i386/pc/serial.c: Moved from here ...
27661 * term/serial.c: ... to here. All users updated.
27662 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
27663 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
27664 (serial_translate_key_sequence): Avoid deadlock.
27665 (grub_serial_getkey): Handle backspace.
27666 (grub_serial_putchar): Fix newline handling.
27667 * util/i386/pc/grub-mkimage.c: Move from here ...
27668 * util/grub-mkrawimage.c: ... to here. All users updated.
27669 (generate_image): New parameters 'font_path' and 'format'.
27670 Support embedding font.
27671 Use grub_host_to_target* instead of grub_cpu_to_le*.
27672 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
27673 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
27674 (options): New option "--font".
27675 (usage): Likewise.
27676 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
27677 (main): Handle "--font".
27678 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
27679 (grub_virtual_screen_setup): Set bg_color_display.
27680 (redraw_screen_rect): Use bg_color_display instead of incorrect
27681 bg_color.
27682 (grub_gfxterm_cls): Likewise.
27683 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
27684 Support embedding config file.
27685 (add_segments): Likewise.
27686 (options): New option "--config".
27687 (main): Handle "--config".
27688 * video/sm712.c: New file.
27689
25c2b5b3
RM
276902010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27691
27692 Fix parallel builds.
27693
27694 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
27695 font.c depend on ascii.h).
27696
276972010-01-12 Carles Pina i Estany <carles@pina.cat>
27698
27699 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
27700
277012010-01-11 Carles Pina i Estany <carles@pina.cat>
27702
27703 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
27704 By default: disabled.
27705 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
27706 parameter.
27707
277082010-01-10 Carles Pina i Estany <carles@pina.cat>
27709
27710 * font/font.c: Update copyright years.
27711 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
27712
277132010-01-10 Carles Pina i Estany <carles@pina.cat>
27714
27715 * font/font.c: Include `ascii.h'.
27716 (ASCII_BITMAP_SIZE): New macro.
27717 (ascii_font_glyph): Define.
27718 (ascii_glyph_lookup): New function.
27719 (grub_font_get_string_width): Change comment. If glyph not found, use
27720 ascii_glyph_lookup.
27721 (grub_font_get_glyph_with_fallback): If glyph not available returns
27722 ascii_glyph_lookup.
27723 * util/grub-mkfont.c (file_formats): New enum.
27724 (options): Add `ascii-bitmaps' new option.
27725 (usage): Add `asii-bitmaps' new option.
27726 (write_font_ascii_bitmap): New function.
27727 (write_font): Rename to ...
27728 (write_font_p2): ... this. Remove print_glyphs call.
27729 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
27730 used. Call print_glyphs.
27731 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
27732
277332010-01-14 Robert Millan <rmh.grub@aybabtu.com>
27734
27735 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
27736 (grub_bin2h_SOURCES): New variable.
27737 * util/bin2h.c: New file.
27738
915fc1b8
VS
277392010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27740
27741 * include/multiboot.h: Resynced with spec.
27742 * include/multiboot2.h: Likewise.
27743 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
27744 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
27745
9444b678
RM
277462010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27747
27748 * include/grub/term.h (grub_term_register_input,
27749 grub_term_register_output): Check return of terminal init()
27750 routines, and abort if errors are raised.
27751
27752 * commands/terminal.c: Update copyright year.
27753
cba98e8d
RM
277542010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27755
27756 * commands/terminal.c (grub_cmd_terminal_input)
27757 (grub_cmd_terminal_output): Check return of terminal init()
27758 routines, and abort if errors are raised.
27759
6f7db5d6
VS
277602010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
27761
27762 * include/grub/i386/bsd.h: Fix include pathes.
27763
262bff8d
VS
277642010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
27765
27766 Add missing *BSD copyright headers.
27767
27768 * include/grub/aout.h: Add BSD licence.
27769 * include/grub/i386/bsd.h: Parts under different licences moved to ...
27770 * include/grub/i386/freebsd_linker.h: ... here,
27771 * include/grub/i386/freebsd_reboot.h: ... here,
27772 * include/grub/i386/netbsd_bootinfo.h: ... here,
27773 * include/grub/i386/netbsd_reboot.h: ... here,
27774 * include/grub/i386/openbsd_bootarg.h: ... here,
27775 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
27776 licence to each file.
27777
b2cab848
RM
277782010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27779
27780 * acinclude.m4: Remove `nop' assembly instruction; it's not
27781 implemented by all architectures.
27782
2cb6be4b
RM
277832010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27784
27785 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
27786 ELILO. This is no longer necessary.
27787
a2eaee15
BC
277882010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
27789
27790 Added new tool, grub-scrit-check to verify grub.cfg syntax.
27791
27792 * util/grub-script-check.c: grub-script-check tool.
27793 * conf/common.rmk: Make rules for grub-script-check.
27794
88d17012
RM
277952010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27796
27797 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
27798 spotting it back in 2008. Shame on me for forgetting he did.
27799
27800 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
27801
8040619d
RM
278022010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27803
27804 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
27805 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
27806 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
27807 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
27808 (GRUB_VIDEO_TYPE_EFI): Rename to ...
27809 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
27810
a0c2a0f6
RM
278112010-01-17 Robert Millan <rmh.grub@aybabtu.com>
27812
27813 * include/grub/test.h: Add license header.
27814 * tests/example_functional_test.c: Likewise.
27815 * tests/example_unit_test.c: Likewise.
27816 * tests/lib/functional_test.c: Likewise.
27817 * tests/lib/test.c: Likewise.
27818 * tests/lib/unit_test.c: Likewise.
27819
b0b13907
VS
278202010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
27821
27822 Use flag-based instead of hook-based video mode selection and "auto"
27823 keyword.
27824
27825 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
27826 (grub_video_set_mode): Changed prototype. All users updated.
27827 (grub_video_check_mode_flag): New inline function.
27828 * video/video.c (parse_modespec): New function.
27829 (grub_video_set_mode): Parse flags and keywords.
27830
ea379330 278312010-01-17 Carles Pina i Estany <carles@pina.cat>
27832
27833 * util/misc.c (grub_util_info): Fix the order of the parameters in a
27834 fprintf call.
27835
e15c215e
FZ
278362010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
27837
27838 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
27839
409ae1c9 278402010-01-16 Carles Pina i Estany <carles@pina.cat>
27841
27842 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
27843 string.
27844 * util/grub-emu.c (usage): Likewise.
27845 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
27846 * util/i386/efi/grub-mkimage.c (usage): Likewise.
27847 * util/i386/pc/grub-mkimage.c (usage): Likewise.
27848 * util/i386/pc/grub-setup.c (usage): Likewise.
27849
70a14d3d 278502010-01-16 Carles Pina i Estany <carles@pina.cat>
27851
27852 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
27853 the message.
27854 (grub_util_info): Likewise.
27855 (grub_util_error): Likewise.
27856 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
27857 and/or new lines in `grub_util_warna', `grub_util_info',
27858 `grub_util_error' calls.
27859 * util/getroot.c: Likewise.
27860 * util/grub-editenv.c: Likewise.
27861 * util/grub-emu.c: Likewise.
27862 * util/grub-fstest.c: Likewise.
27863 * util/grub-mkdevicemap.c: Likewise.
27864 * util/grub-mkfont.c: Likewise.
27865 * util/grub-mkpasswd-pbkdf2.c: Likewise.
27866 * util/grub-mkrelpath.c: Likewise.
27867 * util/grub-pe2elf.c: Likewise.
27868 * util/grub-probe.c: Likewise.
27869 * util/hostdisk.c: Likewise.
27870 * util/i386/efi/grub-mkimage.c: Likewise.
27871 * util/i386/pc/grub-mkimage.c: Likewise.
27872 * util/i386/pc/grub-setup.c: Likewise.
27873 * util/ieee1275/ofpath.c: Likewise.
27874 * util/mkisofs/eltorito.c: Likewise.
27875 * util/mkisofs/rock.c: Likewise.
27876 * util/mkisofs/write.c: Likewise.
27877 * util/raid.c: Likewise.
27878 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
27879 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27880
a0b766fc
VS
278812010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
27882
27883 Enable multiboot on non-pc.
27884
27885 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
27886 multiboot.mod and multiboot2.mod to ...
27887 * conf/i386.rmk (pkglib_MODULES): ... here.
27888 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
27889 Moved to ...
27890 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
27891 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
27892 Moved to ...
27893 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
27894 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
27895 Moved to ...
27896 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
27897 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
27898 Moved to ...
27899 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
27900 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
27901 relocator.mod.
27902 (ata_mod_SOURCES): Removed.
27903 (ata_mod_CFLAGS): Likewise.
27904 (ata_mod_LDFLAGS): Likewise.
27905 (relocator_mod_SOURCES): Removed.
27906 (relocator_mod_CFLAGS): Likewise.
27907 (relocator_mod_ASFLAGS): Likewise.
27908 (relocator_mod_LDFLAGS): Likewise.
27909 Include i386.mk.
27910 * include/grub/x86_64/multiboot.h: New file.
27911 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
27912 Terminate EFI.
27913
884ade56
VS
279142010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
27915
27916 Video multiboot support.
27917
27918 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
27919 New prototype.
27920 * include/multiboot.h: Resynced with multiboot specification.
27921 * include/multiboot2.h: Likewise.
27922 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
27923 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
27924 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
27925 (HAS_VGA_TEXT): Likewise.
27926 (accepts_video): New variable.
27927 (grub_multiboot_set_accepts_video): New function.
27928 (grub_multiboot_get_mbi_size): Account for video structures.
27929 (set_video_mode): New function.
27930 (retrieve_video_parameters): Likewise.
27931 (grub_multiboot_make_mbi): Fill video fields.
27932
0d90e8a6
VS
279332010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
27934
27935 Video driver ids.
27936
27937 * include/grub/video.h (grub_video_driver_id): New type.
27938 (grub_video_adapter): New member 'id'. All users updated.
27939 (grub_video_get_driver_id): New proto.
27940 * video/video.c (grub_video_get_driver_id): New function.
27941
5c71db1b 279422010-01-14 Carles Pina i Estany <carles@pina.cat>
27943
27944 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
27945 `var=val'.
27946
cca15b52 279472010-01-14 Carles Pina i Estany <carles@pina.cat>
27948
27949 * normal/cmdline.c (print_completion): Gettextizze.
27950
c586fbb2 279512001-01-14 Carles Pina i Estany <carles@pina.cat>
27952
27953 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
27954
ba2f6848 279552010-01-14 Carles Pina i Estany <carles@pina.cat>
27956
27957 * gettext/gettext.c (grub_gettext_translate): Push and pop
27958 grub_errno.
27959 (grub_gettext_delete_list): Change comment style.
27960 * kern/err.c (grub_error): Gettextizze.
27961 (grub_fatal): Gettextizze.
27962
0a46429a
RM
279632010-01-14 Robert Millan <rmh.grub@aybabtu.com>
27964
27965 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
27966 (grub_linux16_real_boot): ... this.
27967 * kern/i386/loader.S: Likewise.
27968 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
27969 (grub_linux16_boot): New function. Switches to text mode and calls
27970 grub_linux16_real_boot().
27971
27972 * loader/i386/bsd.c: Include `<grub/video.h>'.
27973 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
27974 text mode before calling grub_unix_real_boot().
27975
27976 * loader/i386/multiboot.c: Include `<grub/video.h>'.
27977 (grub_multiboot_boot): Switch to text mode before calling
27978 grub_relocator32_boot().
27979
27980 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
27981 (grub_chainloader_boot): Switch to text mode before calling
27982 grub_chainloader_real_boot().
27983
d6f93a66
RM
279842010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
279852010-01-05 Colin Watson <cjwatson@ubuntu.com>
27986
27987 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
27988 non-empty value.
27989
279902010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
279912010-01-05 Colin Watson <cjwatson@ubuntu.com>
27992
27993 * util/grub.d/00_header.in: Define a "savedefault" function for use
27994 in menu entries.
27995 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
27996
279972010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
279982010-01-05 Colin Watson <cjwatson@ubuntu.com>
27999
28000 * util/grub-mkconfig_lib.in (save_default_entry): Only set
28001 saved_entry if boot_once is unset.
28002 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
28003 previous saved entry (i.e. grub-reboot).
28004
280052009-12-08 Colin Watson <cjwatson@ubuntu.com>
28006
28007 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
28008
280092009-12-08 Colin Watson <cjwatson@ubuntu.com>
28010
28011 * util/grub.d/00_header.in: Use `set var=val' rather than plain
28012 `var=val'.
28013 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
28014
280152009-12-08 Colin Watson <cjwatson@ubuntu.com>
28016
28017 * util/grub-reboot.in: Fix --version output.
28018 * util/grub-set-default.in: Likewise.
28019
280202009-12-08 Colin Watson <cjwatson@ubuntu.com>
28021
28022 * util/grub.d/00_header.in: Silently ignore zero-sized environment
28023 blocks.
28024
280252009-12-08 Colin Watson <cjwatson@ubuntu.com>
28026
28027 * util/grub.d/00_header.in: Quote the value assigned to `default',
28028 in case it contains spaces.
28029
280302009-12-08 Colin Watson <cjwatson@ubuntu.com>
28031
28032 * util/grub.d/30_os-prober.in: Fix merge error that moved a
28033 `save_default_entry' call from the macosx case to the linux case.
28034
280352009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
280362009-10-25 Colin Watson <cjwatson@ubuntu.com>
28037
28038 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
28039 in `chosen' environment variable.
28040 * normal/menu_text.c (get_entry_number): Check if the variable
28041 matches the title of a menu entry.
28042 (run_menu): Pass menu to get_entry_number.
28043
28044 * util/grub-reboot.in: New file.
28045 * util/grub-set-default.in: New file.
28046 * conf/common.rmk (grub-reboot): New utility.
28047 (grub-set-default): New utility.
28048
28049 * util/grub-mkconfig_lib.in (save_default_entry): New function.
28050 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
28051 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
28052 move it to `saved_entry' for the next boot. Load environment on
28053 initialisation.
28054 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
28055 * util/grub.d/10_hurd.in: Likewise.
28056 * util/grub.d/10_linux.in (linux_entry): Likewise.
28057 * util/grub.d/10_windows.in: Likewise.
28058 * util/grub.d/30_os-prober.in: Likewise.
28059
28060 * util/grub-install.in: Create environment block.
28061 * util/i386/efi/grub-install.in: Likewise.
28062 * util/ieee1275/grub-install.in: Likewise.
28063 * util/sparc64/ieee1275/grub-install.in: Likewise.
28064
0934d184
BC
280652010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
28066
28067 Unit testing framework for GRUB.
28068
28069 * Makefile.in: Test framework build rules for 'make check'.
28070 * conf/tests.rmk: Build rules for individual tests and framework.
28071
28072 * include/grub/test.h: Header file for whitebox tests.
28073 * tests/lib/functional_test.c: Framework support for whitebox
28074 functional tests.
28075 * tests/lib/test.c: Common whitebox testing code for unit and
28076 functional tests.
28077 * tests/lib/unit_test.c: Framework support for whitebox unit
28078 tests.
28079
28080 * tests/util/grub-shell-tester.in: Support utility for grub-script
28081 tests.
28082 * tests/util/grub-shell.in: Utility to execute grub-script
28083 commands in a Qemu instance.
28084
28085 * tests/example_functional_test.c: Example whitebox functional
28086 test.
28087 * tests/example_grub_script_test.in: Example grub-script test.
28088 * tests/example_scripted_test.in: Example scripted test.
28089 * tests/example_unit_test.c: Example whitebox unit test.
28090
9c4ffeeb
VS
280912010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
28092
28093 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
28094 Add loader/i386/multiboot_mbi.c.
28095 (multiboot2_mod_SOURCES): Likewise.
28096 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
28097 (multiboot2_mod_SOURCES): Likewise.
28098 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
28099 (grub_multiboot_make_mbi): Likewise.
28100 (grub_multiboot_free_mbi): Likewise.
28101 (grub_multiboot_init_mbi): Likewise.
28102 (grub_multiboot_add_module): Likewise.
28103 (grub_multiboot_set_bootdev): Likewise.
28104 * loader/i386/multiboot.c (mbi): Removed.
28105 (mbi_dest): Likewise.
28106 (alloc_mbi): New variable.
28107 (grub_multiboot_payload_size): Removed. All users updated.
28108 (grub_multiboot_pure_size): New variable.
28109 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
28110 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
28111 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
28112 (grub_fill_multiboot_mmap): Likewise.
28113 (grub_multiboot_get_bootdev): Likewise.
28114 (grub_multiboot): Use multiboot_mbi functions.
28115 * loader/i386/multiboot_mbi.c: New file.
28116
17383dfe
VS
281172010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28118
28119 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
28120 it would result in module crash.
28121
c1f28820
VS
281222010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28123
28124 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
28125 (grub_ofconsole_getwh): Split to ...
28126 (grub_ofconsole_getwh): ... this.
28127 (grub_ofconsole_dimensions): ...and this.
28128 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
28129
58655a16
RM
281302010-01-13 Robert Millan <rmh.grub@aybabtu.com>
28131
28132 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
28133
10891398
VS
281342010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28135
28136 * loader/i386/pc/multiboot2.c: Removed stalled file.
28137
0b8a223c
VS
281382010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28139
28140 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
28141 Reported by: Grégoire Sutre
28142
92ab12b0
RM
281432010-01-11 Robert Millan <rmh.grub@aybabtu.com>
28144
28145 * util/misc.c (canonicalize_file_name): New function.
28146 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
28147 instead of realpath().
28148
a788afb6
CW
281492010-01-11 Colin Watson <cjwatson@ubuntu.com>
28150
28151 * util/grub-install.in (usage): Clarify meaning of --root-directory,
28152 and make it clearer that it's optional. Based on confusion
28153 witnessed on IRC.
28154
ffa8e3d2
VS
281552010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28156
28157 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
28158 in premature implicit newline.
28159
e9060a9d
VS
281602010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28161
28162 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
28163 which resulted in garbled command line at the end of screen.
28164
f0d0c0b7
RM
281652010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28166
28167 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
28168 initialization with similar approach as with other Linux loaders.
28169
0e60bae7
RM
281702010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28171
28172 Fix i386-ieee1275 build.
28173
28174 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
28175 and grub_term_height() for video_{width,height} initialization.
28176
281772010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
28178
28179 Fix grub-emu build.
28180
28181 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
28182
cdb3f378
RM
281832010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
281842010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28185
28186 Support for multiple terminals.
28187
28188 * Makefile.in (pkglib_DATA): terminal.lst.
28189 (terminal.lst): New target.
28190 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
28191 (GRUB_MOD_INIT(handler)): Likewise.
28192 (GRUB_MOD_FINI(handler)): Likewise.
28193 * commands/help.c (grub_cmd_help): Handle multiple terminals.
28194 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
28195 * commands/sleep.c (do_print): Use grub_term_restore_pos.
28196 (grub_cmd_sleep): Use grub_term_save_pos.
28197 * commands/terminal.c: New file.
28198 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
28199 commands/terminal.c and lib/charset.c.
28200 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
28201 (pkglib_MODULES): Add terminal.mod.
28202 (terminal_mod_SOURCES): New variable.
28203 (terminal_mod_CFLAGS): Likewise.
28204 (terminal_mod_LDFLAGS): Likewise.
28205 * genhandlerlist.sh: Don't handle terminals.
28206 * genmk.rb: Generate terminal-*.lst.
28207 * genterminallist.sh: New file.
28208 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
28209 (grub_is_valid_utf8): Likewise.
28210 (grub_utf8_to_ucs4_alloc): Likewise.
28211 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
28212 (grub_menu_register_viewer): Changed argument.
28213 (grub_menu_try_text): New proto.
28214 (grub_gfxmenu_try_hook): New declaration.
28215 * include/grub/normal.h (grub_normal_exit_level): New declaration.
28216 (grub_menu_init_page): Additional argument term.
28217 (grub_normal_init_page): Likewise.
28218 (grub_cmdline_get): Arguments simplified.
28219 (grub_utf8_to_ucs4_alloc): Removed.
28220 (grub_print_ucs4): Additional argument term.
28221 (grub_getstringwidth): Likewise.
28222 (grub_print_message_indented): Likewise.
28223 (grub_menu_text_register_instances): New proto.
28224 (grub_show_menu): Likewise.
28225 (read_terminal_list): Likewise.
28226 (grub_set_more): Likewise.
28227 * include/grub/parser.h: Include handler.h.
28228 * include/grub/reader.h: Rewritten.
28229 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
28230 (GRUB_TERM_WIDTH): Changed to function.
28231 (GRUB_TERM_HEIGHT): Likewise.
28232 (GRUB_TERM_BORDER_WIDTH): Likewise.
28233 (GRUB_TERM_BORDER_HEIGHT): Likewise.
28234 (GRUB_TERM_NUM_ENTRIES): Likewise.
28235 (GRUB_TERM_ENTRY_WIDTH): Likewise.
28236 (GRUB_TERM_CURSOR_X): Likewise.
28237 (grub_term_input_class): Likewise.
28238 (grub_term_output_class): Likewise.
28239 (grub_term_outputs_disabled): New declaration.
28240 (grub_term_inputs_disabled): Likewise.
28241 (grub_term_outputs): Likewise.
28242 (grub_term_inputs): Likewise.
28243 (grub_term_register_input): Rewritten.
28244 (grub_term_register_output): Likewise.
28245 (grub_term_unregister_input): Likewise.
28246 (grub_term_unregister_output): Likewise.
28247 (FOR_ACTIVE_TERM_INPUTS): New macro.
28248 (FOR_DISABLED_TERM_INPUTS): Likewise.
28249 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
28250 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
28251 * include/grub/terminfo.h: Add oterm argument to all protypes.
28252 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
28253 Use grub_rescue_run.
28254 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
28255 All users updated.
28256 * kern/reader.c: Removed. All users updated.
28257 * kern/rescue_reader.c (grub_rescue_init): Removed.
28258 (grub_rescue_reader): Likewise.
28259 (grub_register_rescue_reader): Likewise.
28260 (grub_rescue_run): New function based on kern/reader.c.
28261 * kern/term.c: Adapted for multiterm.
28262 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
28263 (grub_is_valid_utf8): Likewise.
28264 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
28265 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
28266 right terminal.
28267 * loader/i386/linux.c (grub_linux_boot): Likewise.
28268 * normal/auth.c (grub_username_get): New function.
28269 (grub_auth_check_authentication): Use grub_username_get.
28270 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
28271 * normal/color.c: Adapt for multiterm.
28272 * normal/main.c (read_config_file): Don't use grub_reader_loop.
28273 (grub_normal_init_page): Additional argument term.
28274 (read_lists): Call read_terminal_lists.
28275 (grub_enter_normal_mode): Call grub_cmdline_run.
28276 Handle grub_normal_exit_level.
28277 (grub_cmd_normal): Make reentrant.
28278 (grub_cmd_normal_exit): New function.
28279 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
28280 * normal/menu.c: Adapt for multiterm.
28281 * normal/menu_entry.c: Likewise.
28282 * normal/menu_text.c: Likewise.
28283 * normal/menu_viewer.c: Removed. All users updated.
28284 * normal/term.c: New file.
28285 * util/console.c: Change order of includes to workaround a bug in
28286 ncurses headers.
28287 * term/terminfo.c: New argument oterm on all exported functions.
28288 All users updated.
28289 * util/grub-editenv.c (grub_term_input_class): Removed.
28290 (grub_term_output_class): Likewise.
28291
1a064917
RM
282922010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28293
28294 Make loader output a bit more user-friendly.
28295
28296 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
28297 is being loaded. Likewise for the Hurd.
28298
28299 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
28300 that kernel of FreeBSD ${version} is being loaded.
28301
28302 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
28303 grub_dprintf().
28304 (grub_cmd_initrd): Likewise.
28305 * util/grub.d/10_linux.in (linux_entry): Print message indicating
28306 that Linux ${version} is being loaded. Likewise for initrd.
28307
5ce0a83a 283082010-01-09 Carles Pina i Estany <carles@pina.cat>
28309
28310 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
28311
809bbfeb 283122010-01-08 Carles Pina i Estany <carles@pina.cat>
28313
28314 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
28315 (GRUB_MOD_INIT): Gettextizze.
28316 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
28317 (GRUB_MOD_INIT): Gettextizze.
28318 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
28319 (grub_cmd_linux): Capitalise Linux.
28320 (GRUB_MOD_INIT): Gettextizze.
28321 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
28322 (grub_cmd_linux): Capitalise Linux.
28323 (GRUB_MOD_INIT): Gettextizze.
28324 * loader/i386/linux.c: Include `<grub/i18n.h>'.
28325 (grub_cmd_linux): Capitalise Linux.
28326 (GRUB_MOD_INIT): Gettextizze.
28327 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
28328 (GRUB_MOD_INIT): Gettextizze.
28329 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
28330 (grub_cmd_linux): Capitalise Linux.
28331 (GRUB_MOD_INIT): Gettextizze.
28332 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
28333 (grub_cpu_xnu_init): Gettextizze.
28334 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
28335 (GRUB_MOD_INIT): Gettextizze.
28336 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
28337 (GRUB_MOD_INIT): Gettextizze.
28338 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
28339 (grub_linux_load64): Capitalise Linux.
28340 (GRUB_MOD_INIT): Gettextizze.
28341 * loader/xnu.c: Include `<grub/i18n.h>'.
28342 (GRUB_MOD_INIT): Gettextizze.
28343 * po/POTFILES: Add `loader/efi/appleloader.c',
28344 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
28345 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
28346 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
28347 `loader/i386/xnu.c', `loader/multiboot_loader.c',
28348 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
28349 and `loader/xnu.c'.
28350
b394b2ca
RM
283512010-01-08 Robert Millan <rmh.grub@aybabtu.com>
28352
28353 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
28354
283552010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
28356
28357 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
28358 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
28359 * util/mkisofs/mkisofs.c (main): Readjust --version output.
28360
bc8b32b3
RM
283612010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28362
28363 Reset Multiboot 2 support. New loader implements the draft in
28364 /branches/multiboot2 and shares as much code as possible with the
28365 production Multiboot 1 implementation.
28366
28367 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
28368 * loader/multiboot2.c: Likewise.
28369 * loader/i386/multiboot_helper.S: Likewise.
28370 * include/multiboot2.h: Replace with latest version from the draft
28371 in /branches/multiboot2.
28372
28373 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
28374 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
28375 and `loader/multiboot2.c'.
28376 (pkglib_MODULES): Add `multiboot2.mod'.
28377 (multiboot2_mod_SOURCES): New variable.
28378 (multiboot2_mod_LDFLAGS): Likewise.
28379 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
28380
28381 * conf/i386-pc.rmk: Likewise.
28382
28383 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
28384 (multiboot_mod_SOURCES): Remove variable.
28385 (multiboot_mod_LDFLAGS): Likewise.
28386 (multiboot_mod_CFLAGS): Likewise.
28387
28388 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
28389 `<multiboot2.h>' instead of `<multiboot.h>'.
28390 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
28391 (MULTIBOOT_HEADER_MAGIC): New macros.
28392
28393 * loader/multiboot_loader.c (module_version_status): Remove variable.
28394 (find_multi_boot2_header): Remove function.
28395 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
28396 logic. Always check for the Multiboot version we're compiling for.
28397 (grub_cmd_module_loader): Likewise.
28398 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
28399 command instead of `multiboot'.
28400
5d2c52b8
RM
284012010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28402
28403 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
28404 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
28405 all users.
28406
53108d92
RM
284072010-01-07 Robert Millan <rmh.grub@aybabtu.com>
284082010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28409
28410 Fix breakage introduced with previous commit.
28411
28412 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
28413 commands.
28414 * normal/handler.c (read_handler_list): Revert part of previous commit
28415 affecting this file.
28416 * normal/main.c (read_lists): Move read_handler_list() call back to ...
28417 (grub_normal_execute): ... here.
28418
e2e936b2
RM
284192010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28420
28421 Merge prefix-redefinition-fix branch.
28422
28423 * normal/autofs.c (read_fs_list): Make function capable of being
28424 run multiple times, gracefuly replacing the previous data
28425 structures.
28426 * normal/dyncmd.c (read_command_list): Likewise.
28427 * normal/handler.c (read_handler_list): Likewise.
28428 * normal/main.c (read_lists): New function. Calls all the
28429 list reading functions.
28430 (grub_normal_execute): Use read_lists() instead of calling all
28431 list reading functions explicitly. Register read_lists() as a
28432 variable hook attached to ${prefix}.
28433
607a3701
VS
284342010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28435
28436 Merge crypto branch.
28437
28438 * Makefile.in (pkglib_DATA): Add crypto.lst.
28439 (crypto.lst): New target.
28440 * commands/hashsum.c: New file.
28441 * commands/password.c (check_password): Use grub_crypto_memcmp.
28442 * commands/password_pbkdf2.c: New file.
28443 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
28444 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
28445 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
28446 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
28447 -I$(srcdir)/lib/libgcrypt_wrap.
28448 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
28449 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
28450 password_pbkdf2.mod.
28451 (crypto_mod_SOURCES): New variable.
28452 (crypto_mod_CFLAGS): Likewise.
28453 (crypto_mod_LDFLAGS): Likewise.
28454 (hashsum_mod_SOURCES): New variable.
28455 (hashsum_mod_CFLAGS): Likewise.
28456 (hashsum_mod_LDFLAGS): Likewise.
28457 (pbkdf2_mod_SOURCES): New variable.
28458 (pbkdf2_mod_CFLAGS): Likewise.
28459 (pbkdf2_mod_LDFLAGS): Likewise.
28460 (password_pbkdf2_mod_SOURCES): New variable.
28461 (password_pbkdf2_mod_CFLAGS): Likewise.
28462 (password_pbkdf2_mod_LDFLAGS): Likewise.
28463 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
28464 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
28465 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
28466 Include conf/gcry.rmk.
28467 * include/grub/auth.h: Rewritten.
28468 * include/grub/crypto.h: New file.
28469 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
28470 * include/grub/normal.h (read_crypto_list): New prototype.
28471 * lib/crypto.c: New file.
28472 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28473 * lib/pbkdf2.c: Likewise.
28474 * normal/auth.c (grub_auth_strcmp): Removed.
28475 (grub_iswordseparator): Likewise.
28476 (grub_auth_strword): Likewise.
28477 (is_authenticated): Use grub_strword.
28478 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
28479 and grub_strword. Pass entered password to authentication callback.
28480 * normal/crypto.c: New file.
28481 * normal/main.c: Call read_crypto_list.
28482 * util/grub-mkpasswd-pbkdf2.c: New file.
28483 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
28484
42841caa
VS
284852010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
28486
28487 Fix descent and ascent calculation.
28488
28489 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
28490 (options): New option "asce".
28491 (usage): Likewise.
28492 (add_char): Ignore invalid glyphs for descent calculation.
28493 Calculate ascent from actual content.
28494 (print_glyphs): Use 'asce'.
28495 (write_font): Likewise. Allow ascent override.
28496 (main): Handle "asce" option.
28497
e7730de7 284982010-01-06 Carles Pina i Estany <carles@pina.cat>
28499
28500 * kern/err.c: Include `<grub/i18n.h>'.
28501 (grub_print_error): Add full stop. Gettextizze.
28502 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
28503 (grub_bsd_load_elf): Capitalise ELF.
28504 (grub_cmd_freebsd_loadenv): Add `s' in error string.
28505 (grub_cmd_freebsd_module): Likewise.
28506 (grub_cmd_freebsd_module_elf): Likewise.
28507 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
28508
40e3a41f 285092010-01-06 Carles Pina i Estany <carles@pina.cat>
28510
28511 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
28512 * commands/search_file.c (HELP_MESSAGE): New macro.
28513 * commands/search_label.c (HELP_MESSAGE): Likewise.
28514 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
28515 * po/POTFILES: Add `commands/search_file.c',
28516 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
28517 `commands/search.c'.
28518
83507e68
RM
285192010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28520
28521 * config.rpath: Update from Gnulib.
28522
465c787b
YB
285232010-01-05 Yves Blusseau <blusseau@zetam.org>
28524
28525 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
28526
6581dd3a
YB
285272010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
28528
28529 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
28530
3bff18c5
CW
285312010-01-05 Colin Watson <cjwatson@ubuntu.com>
28532
28533 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
28534 arguments to fread so that we get a return value in bytes, rather
28535 than something that will normally be rounded down to 0.
28536 Adjust error handling to avoid producing garbage when size_t is not
28537 the same size as long long.
28538
a1368118
CW
285392010-01-05 Colin Watson <cjwatson@ubuntu.com>
28540
28541 * util/mkisofs/write.c (padblock_write): Check return value of
28542 fread.
28543
7c302978
RM
285442010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28545
28546 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
28547 floppy images now.
28548
28549 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
28550
e33ace06
RM
285512010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28552
28553 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
28554 instead of manual alignment.
28555 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
28556 verbose). Avoid attempts to read past end of the device
28557 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
28558 but GRUB_DISK_CACHE_SIZE may exceed that).
28559
4b856776
RM
285602010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28561
28562 * commands/crc.c (grub_cmd_crc): Abort on read errors.
28563 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
28564 it to upper layer.
28565
52c2d97f
VS
285662010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28567
28568 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
28569 New constant.
28570 (grub_efi_piwg_device_path): New structure
28571 (grub_efi_piwg_device_path_t): New type.
28572 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
28573 (devpath_1): Transform to a structure. All users updated.
28574 (devpath_2): Likewise.
28575 (devpath_3): Likewise.
28576 (devpath_4): Likewise.
28577 (devpath_5): Likewise.
28578
98ff6a54
VS
285792010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28580
28581 * loader/efi/appleloader.c: Restored. Update all users.
28582
3a73dcb6
RM
285832010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28584
28585 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
28586
28587 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
28588 (struct boot_blocklist): Move from here ...
28589 * include/grub/i386/pc/boot.h [ASM_FILE]
28590 (struct grub_boot_blocklist): ... to here. Update all users.
28591 (setup): Only initialize `start' member of `first_block'
28592 structure. Add assert() calls to verify the other members.
28593
28594 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
28595 (generate_image): Fix broken blocklist length initialization.
28596 Add assert() call to verify blocklist `segment' field.
28597
ab0eeb0c
RM
285982010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28599
28600 * loader/efi/appleloader.c: Remove. Update all users.
28601
58bc8bd5
RM
286022010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28603
28604 * boot/i386/pc/boot.S: Update copyright year.
28605 * boot/i386/pc/cdboot.S: Likewise.
28606 * boot/i386/pc/diskboot.S: Likewise.
28607 * boot/i386/pc/lnxboot.S: Likewise.
28608 * boot/i386/pc/pxeboot.S: Likewise.
28609 * bus/pci.c: Likewise.
28610 * commands/cmp.c: Likewise.
28611 * commands/help.c: Likewise.
28612 * commands/hexdump.c: Likewise.
28613 * commands/i386/pc/halt.c: Likewise.
28614 * commands/i386/pc/play.c: Likewise.
28615 * commands/i386/pc/vbeinfo.c: Likewise.
28616 * commands/ls.c: Likewise.
28617 * commands/test.c: Likewise.
28618 * disk/dmraid_nvidia.c: Likewise.
28619 * disk/i386/pc/biosdisk.c: Likewise.
28620 * disk/ieee1275/nand.c: Likewise.
28621 * disk/ieee1275/ofdisk.c: Likewise.
28622 * disk/lvm.c: Likewise.
28623 * disk/raid.c: Likewise.
28624 * disk/raid6_recover.c: Likewise.
28625 * disk/scsi.c: Likewise.
28626 * fs/affs.c: Likewise.
28627 * fs/cpio.c: Likewise.
28628 * fs/ext2.c: Likewise.
28629 * fs/hfs.c: Likewise.
28630 * fs/iso9660.c: Likewise.
28631 * fs/ntfs.c: Likewise.
28632 * fs/sfs.c: Likewise.
28633 * fs/udf.c: Likewise.
28634 * fs/ufs.c: Likewise.
28635 * fs/xfs.c: Likewise.
28636 * gencmdlist.sh: Likewise.
28637 * genmk.rb: Likewise.
28638 * include/grub/disk.h: Likewise.
28639 * include/grub/efi/api.h: Likewise.
28640 * include/grub/efi/efi.h: Likewise.
28641 * include/grub/efi/pe32.h: Likewise.
28642 * include/grub/elf.h: Likewise.
28643 * include/grub/fs.h: Likewise.
28644 * include/grub/i386/at_keyboard.h: Likewise.
28645 * include/grub/i386/pc/memory.h: Likewise.
28646 * include/grub/i386/pc/vbe.h: Likewise.
28647 * include/grub/i386/pci.h: Likewise.
28648 * include/grub/i386/tsc.h: Likewise.
28649 * include/grub/ieee1275/ieee1275.h: Likewise.
28650 * include/grub/ntfs.h: Likewise.
28651 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
28652 * include/grub/sparc64/libgcc.h: Likewise.
28653 * include/grub/symbol.h: Likewise.
28654 * include/grub/types.h: Likewise.
28655 * include/multiboot2.h: Likewise.
28656 * io/gzio.c: Likewise.
28657 * kern/device.c: Likewise.
28658 * kern/disk.c: Likewise.
28659 * kern/efi/efi.c: Likewise.
28660 * kern/efi/mm.c: Likewise.
28661 * kern/elf.c: Likewise.
28662 * kern/file.c: Likewise.
28663 * kern/i386/dl.c: Likewise.
28664 * kern/i386/pc/init.c: Likewise.
28665 * kern/i386/pc/startup.S: Likewise.
28666 * kern/ieee1275/ieee1275.c: Likewise.
28667 * kern/ieee1275/init.c: Likewise.
28668 * kern/main.c: Likewise.
28669 * kern/mm.c: Likewise.
28670 * kern/powerpc/dl.c: Likewise.
28671 * kern/sparc64/dl.c: Likewise.
28672 * kern/x86_64/dl.c: Likewise.
28673 * lib/hexdump.c: Likewise.
28674 * loader/efi/appleloader.c: Likewise.
28675 * loader/i386/ieee1275/linux.c: Likewise.
28676 * loader/i386/pc/chainloader.c: Likewise.
28677 * loader/i386/pc/linux.c: Likewise.
28678 * loader/i386/pc/multiboot2.c: Likewise.
28679 * loader/ieee1275/multiboot2.c: Likewise.
28680 * loader/multiboot2.c: Likewise.
28681 * loader/multiboot_loader.c: Likewise.
28682 * loader/powerpc/ieee1275/linux.c: Likewise.
28683 * normal/completion.c: Likewise.
28684 * normal/menu_entry.c: Likewise.
28685 * partmap/apple.c: Likewise.
28686 * util/grub.d/10_hurd.in: Likewise.
28687 * util/hostfs.c: Likewise.
28688 * video/readers/png.c: Likewise.
28689
e2d70b5c
CW
286902010-01-03 Colin Watson <cjwatson@ubuntu.com>
28691
28692 * include/grub/misc.h (GNUC_PREREQ): New macro.
28693 (ATTRIBUTE_ERROR): New macro.
28694 * include/grub/list.h (grub_bad_type_cast_real): Use
28695 ATTRIBUTE_ERROR.
28696
a173283f 286972010-01-03 Carles Pina i Estany <carles@pina.cat>
28698
28699 * normal/menu_text.c (print_message): Change messages.
28700
7fa7ff74 287012010-01-03 Carles Pina i Estany <carles@pina.cat>
28702
28703 * normal/menu_entry.c (store_completion): Gettextizze.
28704
136d24f6 287052010-01-03 Carles Pina i Estany <carles@pina.cat>
28706
28707 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
28708
f936862e 287092010-01-03 Carles Pina i Estany <carles@pina.cat>
28710
28711 * po/POTFILES: Sort correctly.
28712
29c44ad1 287132010-01-03 Carles Pina i Estany <carles@pina.cat>
28714
28715 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
28716 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
28717 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
28718 full stop.
28719 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
28720 summary. Gettextizze the strings.
28721 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
28722 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
28723 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
28724 full stop.
28725 (GRUB_MOD_INIT): Remove command name from summary.
28726 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
28727 summary.
28728 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
28729 * term/i386/pc/serial.c (options): Add full stops.
28730 (GRUB_MOD_INIT): Remove command name from the summary.
28731
77a79592 287322010-01-03 Carles Pina i Estany <carles@pina.cat>
28733
28734 * commands/acpi.c: Gettextizze help strings and/or options. Include
28735 `grub/i18n.h' if needed.
28736 * commands/blocklist.c: Likewise.
28737 * commands/boot.c: Likewise.
28738 * commands/cat.c: Likewise.
28739 * commands/cmp.c: Likewise.
28740 * commands/configfile.c: Likewise.
28741 * commands/crc.c: Likewise.
28742 * commands/date.c: Likewise.
28743 * commands/echo.c: Likewise.
28744 * commands/efi/fixvideo.c: Likewise.
28745 * commands/efi/loadbios.c: Likewise.
28746 * commands/gptsync.c: Likewise.
28747 * commands/halt.c: Likewise.
28748 * commands/handler.c: Likewise.
28749 * commands/hdparm.c: Likewise.
28750 * commands/hexdump.c: Likewise.
28751 * commands/i386/cpuid.c: Likewise.
28752 * commands/i386/pc/drivemap.c: Likewise.
28753 * commands/i386/pc/halt.c: Likewise.
28754 * commands/i386/pc/pxecmd.c: Likewise.
28755 * commands/i386/pc/vbeinfo.c: Likewise.
28756 * commands/i386/pc/vbetest.c: Likewise.
28757 * commands/ieee1275/suspend.c: Likewise.
28758 * commands/keystatus.c: Likewise.
28759 * commands/loadenv.c: Likewise.
28760 * commands/ls.c: Likewise.
28761 * commands/lsmmap.c: Likewise.
28762 * commands/lspci.c: Likewise.
28763 * commands/memrw.c: Likewise.
28764 * commands/minicmd.c: Likewise.
28765 * commands/parttool.c: Likewise.
28766 * commands/password.c: Likewise.
28767 * commands/probe.c: Likewise.
28768 * commands/read.c: Likewise.
28769 * commands/reboot.c: Likewise.
28770 * commands/search.c: Likewise.
28771 * commands/sleep.c: Likewise.
28772 * commands/test.c: Likewise.
28773 * commands/true.c: Likewise.
28774 * commands/usbtest.c: Likewise.
28775 * commands/videotest.c: Likewise.
28776 * commands/xnu_uuid.c: Likewise.
28777 * disk/loopback.c: Likewise.
28778 * hello/hello.c: Likewise.
28779 * loader/i386/bsd.c: Likewise.
28780 * term/i386/pc/serial.c: Likewise.
28781 * po/POTFILES: Add new files.
28782
da8d5c53
CW
287832010-01-02 Colin Watson <cjwatson@ubuntu.com>
28784
28785 * term/i386/pc/at_keyboard.c
28786 (keyboard_controller_wait_untill_ready): Rename to ...
28787 (keyboard_controller_wait_until_ready): ... this. Update all users.
28788
33937904 287892010-01-01 Carles Pina i Estany <carles@pina.cat>
28790
28791 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
28792 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
28793 string using string width.
28794 * normal/menu_text.c (grub_print_message_indented): Use
28795 grub_print_spaces and not print_spaces.
28796 (print_timeout): Likewise.
28797 (print_spaces): Move to...
28798 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
28799
3fd3b8d8
RM
288002010-01-01 Robert Millan <rmh.grub@aybabtu.com>
28801
28802 Import from Gnulib.
28803
28804 * gnulib/getdelim.c: New file.
28805 * gnulib/getline.c: Likewise.
28806
33433555
VS
288072009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
28808
28809 * include/grub/list.h (grub_assert_fail): Removed.
28810 (grub_bad_type_cast_real): New function.
28811 (grub_bad_type_cast): New macro.
28812 (GRUB_AS_LIST): Use grub_bad_type_cast.
28813 (GRUB_AS_LIST_P): Likewise.
e44721e8 28814 (GRUB_AS_NAMED_LIST): Likewise.
33433555 28815 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 28816 (GRUB_AS_PRIO_LIST): Likewise.
33433555 28817 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 28818 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 28819
f5a51306
VS
288202009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
28821
28822 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
28823 Fix syntax error.
28824
90d1e879
RM
288252009-12-29 Robert Millan <rmh.grub@aybabtu.com>
28826
28827 * configure.ac: Check for TARGET_CFLAGS initialization before we
28828 initialize it ourselves (sigh).
28829 Move a few modifications to TARGET_CFLAGS to be unconditional
28830 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
28831 eh_frame)
28832
28833 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
28834 * term/i386/pc/at_keyboard.c
28835 (keyboard_controller_wait_untill_ready): Likewise.
28836 (keyboard_controller_led): Rename `led_status' paramter to avoid
28837 name conflict.
28838
465b5a81 288392009-12-28 Carles Pina i Estany <carles@pina.cat>
28840
28841 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
28842 quotes.
28843
c181849b
VS
288442009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
28845
28846 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
28847
9c8739a4
VS
288482009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
28849
28850 * normal/menu_text.c (grub_print_message_indented): Prevent
28851 past-the-end-of-array dereference.
28852
3e74249c
VS
288532009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
28854
28855 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
28856 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
28857
64fd18ed 288582009-12-27 Carles Pina i Estany <carles@pina.cat>
28859
28860 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
28861 * normal/main.c (grub_normal_read_line): Remove a space from the
28862 default prompt.
28863
714af9b9 288642009-12-27 Carles Pina i Estany <carles@pina.cat>
28865
28866 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
28867 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28868 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
28869 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
28870 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28871 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28872 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28873
82f3e412 288742009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 28875
28876 * video/readers/jpeg.c (cmd): Declare.
28877 (grub_cmd_jpegtest): Use `grub_command_t' type.
28878 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
28879 Assign to `cmd'.
28880 (GRUB_MOD_FINI): Use `cmd' to unregister.
28881 * video/readers/png.c (cmd): Declare.
28882 (grub_cmd_pngtest): Use `grub_command_t' type.
28883 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
28884 Assign to `cmd'.
28885 (GRUB_MOD_FINI): Use `cmd' to unregister.
28886 * video/readers/tga.c (cmd): Declare.
28887 (grub_cmd_tgatest): Use `grub_command_t' type.
28888 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
28889 Assign to `cmd'.
28890 (GRUB_MOD_FINI): Use `cmd' to unregister.
28891
82f3e412 288922009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 28893
28894 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
28895 stops.
28896 * kern/corecmd.c (grub_register_core_commands): Likewise.
28897 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
28898 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
28899 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
28900 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28901 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
28902 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
28903 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
28904 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
28905 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28906 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28907 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28908 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28909 * normal/handler.c (insert_handler): Likewise.
28910 * normal/main.c (GRUB_MOD_INIT): Likewise.
28911 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28912
fdcdbb66 289132009-12-26 Carles Pina i Estany <carles@pina.cat>
28914
28915 * commands/help.c (grub_cmd_help): Print the command name before the
28916 summary.
28917 (GRUB_MOD_INIT): Remove command name from the summary.
28918 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 28919 string as summary.
fdcdbb66 28920 * lib/arg.c (find_long): Print the command name before the summary.
28921 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
28922 summary.
28923 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
28924 * commands/cat.c (GRUB_MOD_INIT): Likewise.
28925 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
28926 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
28927 * commands/crc.c (GRUB_MOD_INIT): Likewise.
28928 * commands/date.c (GRUB_MOD_INIT): Likewise.
28929 * commands/echo.c (GRUB_MOD_INIT): Likewise.
28930 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
28931 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
28932 * commands/handler.c (GRUB_MOD_INIT): Likewise.
28933 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
28934 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
28935 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
28936 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
28937 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
28938 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
28939 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
28940 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
28941 * commands/ls.c (GRUB_MOD_INIT): Likewise.
28942 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
28943 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
28944 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
28945 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
28946 * commands/password.c (GRUB_MOD_INIT): Likewise.
28947 * commands/probe.c (GRUB_MOD_INIT): Likewise.
28948 * commands/read.c (GRUB_MOD_INIT): Likewise.
28949 * commands/search.c (GRUB_MOD_INIT): Likewise.
28950 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
28951 * commands/test.c (GRUB_MOD_INIT): Likewise.
28952 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
28953 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28954 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28955 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
28956 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28957 * lib/arg.c (GRUB_MOD_INIT): Likewise.
28958 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
28959 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
28960 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28961 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28962 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28963 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
28964 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
28965 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
28966
9c288be2
VS
289672009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28968
28969 Use search command for preliminar UUID search.
28970
28971 * commands/search.c: Split into ...
28972 * commands/search_wrap.c: ...this
28973 * commands/search.c: ...and this.
28974 * commands/search_file.c: New file.
28975 * commands/search_label.c: New file.
28976 * commands/search_uuid.c: New file.
28977 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
28978 Add commands/search_wrap.c, commands/search_file.c,
28979 commands/search_label.c and commands/search_uuid.c.
28980 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
28981 (search_mod_SOURCES): Set to commands/search_wrap.c.
28982 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
28983 search_label.mod.
28984 (search_fs_file_mod_SOURCES): New variable.
28985 (search_fs_file_mod_CFLAGS): Likewise.
28986 (search_fs_file_mod_LDFLAGS): Likewise.
28987 (search_label_mod_SOURCES): Likewise.
28988 (search_label_mod_CFLAGS): Likewise.
28989 (search_label_mod_LDFLAGS): Likewise.
28990 (search_fs_uuid_mod_SOURCES): New variable.
28991 (search_fs_uuid_mod_CFLAGS): Likewise.
28992 (search_fs_uuid_mod_LDFLAGS): Likewise.
28993 (fs_file_mod_SOURCES): Removed.
28994 (fs_file_mod_CFLAGS): Likewise.
28995 (fs_file_mod_LDFLAGS): Likewise.
28996 (fs_uuid_mod_SOURCES): Removed.
28997 (fs_uuid_mod_CFLAGS): Likewise.
28998 (fs_uuid_mod_LDFLAGS): Likewise.
28999 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
29000 Set to util/grub-install.in.
29001 * disk/fs_file.c: Removed.
29002 * disk/fs_uuid.c: Likewise.
29003 * include/grub/search.h: New file.
29004 * util/grub-install.in: Handle sparc64.
29005 Create and use load.cfg.
29006 * util/sparc64/ieee1275/grub-install.in: Removed.
29007
db943399
VS
290082009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29009
29010 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
29011 Ignore return status if CF is cleared.
29012 (grub_biosdisk_get_diskinfo_standard): Likewise.
29013
3fdae612
RM
290142009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29015
29016 * term/i386/pc/at_keyboard.c
29017 (keyboard_controller_wait_untill_ready): New function.
29018 (grub_keyboard_controller_write, grub_keyboard_controller_read)
29019 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
29020 for keyboard polling, rather than duplicate the same loop. This
29021 saves a few bytes in code size.
29022
7ebaa2b4
VS
290232009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29024
29025 Support for (pxe[:server[:gateway]]) syntax and
29026 use environment variable for PXE.
29027
29028 * commands/i386/pc/pxecmd.c (options): Removed.
29029 (print_ip): Removed.
29030 (grub_cmd_pxe): Removed
29031 (grub_cmd_pxe_unload): New function.
29032 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
29033 (grub_pxe_your_ip): Made static.
29034 (grub_pxe_default_server_ip): Likewise.
29035 (grub_pxe_default_gateway_ip): Likewise.
29036 (grub_pxe_blksize): Likewise.
29037 (parse_ip): New function.
29038 (grub_pxe_open): Support server and gateway specification.
29039 (grub_pxe_close): Free disk->data.
29040 (grub_pxefs_open): Use disk->data.
29041 (grub_pxefs_read): Likewise.
29042 (grub_env_write_readonly): New function.
29043 (set_mac_env): Likewise.
29044 (set_env_limn_ro): Likewise.
29045 (parse_dhcp_vendor): Likewise.
29046 (grub_pxe_detect): Set the environment variables.
29047 (set_ip_env): New function.
29048 (write_ip_env): Likewise.
29049 (grub_env_write_pxe_default_server): Likewise.
29050 (grub_env_write_pxe_default_gateway): Likewise.
29051 (grub_env_write_pxe_blocksize): Likewise.
29052 (GRUB_MOD_INIT(pxe)): Set environment variables.
29053 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
29054 (grub_pxe_mac_addr_t): ... this. All users updated.
29055 (grub_pxe_your_ip): Removed.
29056 (grub_pxe_server_ip): Likewise.
29057 (grub_pxe_gateway_ip): Likewise.
29058 (grub_pxe_blksize): Likewise.
29059
ec5f98ab 290602009-12-25 Carles Pina i Estany <carles@pina.cat>
29061
29062 * commands/help.c: Include `<grub/i18n.h>'.
29063 (grub_cmd_help): Gettextizze.
29064 (GRUB_MOD_INIT): Likewise.
29065 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
29066 (GRUB_MOD_INIT): Gettextizze.
29067 * commands/search.c: Include `<grub/i18n.h>'.
29068 (options): Gettextizze.
29069 (GRUB_MOD_INIT): Gettextizze.
29070 * lib/arg.c: Include `<grub/i18n.h>'.
29071 (help_options): Gettextizze.
29072 (find_long): Likewise.
29073 (grub_arg_show_help): Likewise.
29074 * normal/dyncmd.c: Include `<grub/i18n.h>'.
29075 (read_command_list): Gettextizze.
29076 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 29077 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 29078
22815526
RM
290792009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29080
29081 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
29082 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
29083 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
29084 (led_status): New variable.
29085 (keyboard_controller_led): New function.
29086 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
29087 update led status for caps lock, num lock and scroll lock.
29088
0ad46fd7
FZ
290892009-12-25 Felix Zielcke <fzielcke@z-51.de>
29090
29091 * util/hostdisk.c (open_device): Fix a comment.
29092
d0e158c2
RM
290932009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29094
29095 * util/grub-install.in (host_os): New variable.
29096 * util/i386/efi/grub-install.in (host_os): Likewise.
29097
401c0ad6
RM
290982009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29099
29100 * util/mkisofs/write.c (padblock_write): Abort when given an
29101 excedingly large embed image, instead of silently truncating it.
29102
d14d3370
RM
291032009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29104
29105 * include/multiboot.h: Indentation fixes.
29106
eeed10b4
RM
291072009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29108
29109 * include/multiboot.h (struct multiboot_aout_symbol_table)
29110 (struct multiboot_elf_section_header_table): New structure
29111 declarations (stolen from GRUB Legacy).
29112 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
29113 table information.
29114
29115 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
29116 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
29117 type aliases.
29118
681c70ab
RM
291192009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29120
29121 * include/multiboot.h: Make comments src2texi-friendly.
29122
e4d47d8d
RM
291232009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29124
29125 For consistency with [multiboot]/docs/boot.S.
29126
29127 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
29128 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
29129 (MULTIBOOT_MAGIC2): Rename from this ...
29130 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
29131
a0b70bda
RM
291322009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29133
29134 * include/multiboot.h: Remove `<grub/types.h>'.
29135 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
29136 types. Update all users.
29137
61ba42be 291382009-12-25 Carles Pina i Estany <carles@pina.cat>
29139
29140 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
29141 `couldn't' and `can not' by `cannot'.
29142 * commands/i386/pc/drivemap.c: Likewise.
29143 * disk/ata.c: Likewise.
29144 * disk/ieee1275/nand.c: Likewise.
29145 * fs/affs.c: Likewise.
29146 * fs/fat.c: Likewise.
29147 * fs/hfs.c: Likewise.
29148 * fs/hfsplus.c: Likewise.
29149 * fs/iso9660.c: Likewise.
29150 * fs/jfs.c: Likewise.
29151 * fs/minix.c: Likewise.
29152 * fs/reiserfs.c: Likewise.
29153 * fs/sfs.c: Likewise.
29154 * fs/udf.c: Likewise.
29155 * fs/ufs.c: Likewise.
29156 * fs/xfs.c: Likewise.
29157 * loader/powerpc/ieee1275/linux.c: Likewise.
29158 * loader/sparc64/ieee1275/linux.c: Likewise.
29159 * util/grub-probe.c: Likewise.
29160 * util/misc.c: Likewise.
29161
7fd0baee 291622009-12-24 Carles Pina i Estany <carles@pina.cat>
29163
29164 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
29165 grub_errno calls.
29166 * commands/acpi.c: Likewise.
29167 * commands/blocklist.c: Likewise.
29168 * commands/efi/loadbios.c: Likewise.
29169 * commands/i386/pc/drivemap.c: Likewise.
29170 * commands/loadenv.c: Likewise.
29171 * commands/memrw.c: Likewise.
29172 * commands/password.c: Likewise.
29173 * commands/videotest.c: Likewise.
29174 * disk/ata.c: Likewise.
29175 * disk/ata_pthru.c: Likewise.
29176 * disk/dmraid_nvidia.c: Likewise.
29177 * disk/ieee1275/nand.c: Likewise.
29178 * disk/ieee1275/ofdisk.c: Likewise.
29179 * disk/loopback.c: Likewise.
29180 * disk/lvm.c: Likewise.
29181 * disk/mdraid_linux.c: Likewise.
29182 * disk/raid.c: Likewise.
29183 * disk/raid6_recover.c: Likewise.
29184 * disk/scsi.c: Likewise.
29185 * efiemu/main.c: Likewise.
29186 * efiemu/mm.c: Likewise.
29187 * efiemu/pnvram.c: Likewise.
29188 * efiemu/symbols.c: Likewise.
29189 * font/font.c: Likewise.
29190 * fs/cpio.c: Likewise.
29191 * fs/hfsplus.c: Likewise.
29192 * fs/iso9660.c: Likewise.
29193 * fs/jfs.c: Likewise.
29194 * fs/minix.c: Likewise.
29195 * fs/ntfs.c: Likewise.
29196 * fs/ntfscomp.c: Likewise.
29197 * fs/reiserfs.c: Likewise.
29198 * fs/ufs.c: Likewise.
29199 * fs/xfs.c: Likewise.
29200 * gettext/gettext.c: Likewise.
29201 * include/grub/auth.h: Likewise.
29202 * kern/elf.c: Likewise.
29203 * kern/file.c: Likewise.
29204 * kern/ieee1275/init.c: Likewise.
29205 * kern/ieee1275/mmap.c: Likewise.
29206 * kern/ieee1275/openfw.c: Likewise.
29207 * kern/powerpc/dl.c: Likewise.
29208 * kern/sparc64/dl.c: Likewise.
29209 * lib/arg.c: Likewise.
29210 * loader/i386/bsd.c: Likewise.
29211 * loader/i386/bsdXX.c: Likewise.
29212 * loader/i386/efi/linux.c: Likewise.
29213 * loader/i386/efi/xnu.c: Likewise.
29214 * loader/i386/ieee1275/linux.c: Likewise.
29215 * loader/i386/linux.c: Likewise.
29216 * loader/i386/multiboot.c: Likewise.
29217 * loader/i386/pc/linux.c: Likewise.
29218 * loader/i386/pc/multiboot2.c: Likewise.
29219 * loader/i386/xnu.c: Likewise.
29220 * loader/ieee1275/multiboot2.c: Likewise.
29221 * loader/macho.c: Likewise.
29222 * loader/machoXX.c: Likewise.
29223 * loader/multiboot2.c: Likewise.
29224 * loader/multiboot_loader.c: Likewise.
29225 * loader/powerpc/ieee1275/linux.c: Likewise.
29226 * loader/sparc64/ieee1275/linux.c: Likewise.
29227 * loader/xnu.c: Likewise.
29228 * loader/xnu_resume.c: Likewise.
29229 * mmap/i386/pc/mmap.c: Likewise.
29230 * normal/menu_viewer.c: Likewise.
29231 * partmap/acorn.c: Likewise.
29232 * partmap/amiga.c: Likewise.
29233 * partmap/apple.c: Likewise.
29234 * script/lexer.c: Likewise.
29235 * term/gfxterm.c: Likewise.
29236 * term/i386/pc/serial.c: Likewise.
29237 * term/i386/pc/vga.c: Likewise.
29238 * term/ieee1275/ofconsole.c: Likewise.
29239 * term/terminfo.c: Likewise.
29240 * video/bitmap.c: Likewise.
29241 * video/efi_gop.c: Likewise.
29242 * video/efi_uga.c: Likewise.
29243 * video/fb/video_fb.c: Likewise.
29244 * video/i386/pc/vbe.c: Likewise.
29245 * video/readers/tga.c: Likewise.
29246 * video/video.c: Likewise.
29247
0ad46fd7 292482009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
29249
29250 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
29251 * commands/lspci.c: Likewise.
29252 * commands/probe.c: Likewise.
29253 * commands/xnu_uuid.c: Likewise.
29254 * conf/i386-coreboot.rmk: Likewise.
29255 * conf/i386-efi.rmk: Likewise.
29256 * conf/i386-ieee1275.rmk: Likewise.
29257 * conf/i386-pc.rmk: Likewise.
29258 * conf/powerpc-ieee1275.rmk: Likewise.
29259 * conf/sparc64-ieee1275.rmk: Likewise.
29260 * conf/x86_64-efi.rmk: Likewise.
29261 * fs/i386/pc/pxe.c: Likewise.
29262 * gettext/gettext.c: Likewise.
29263 * include/grub/efi/graphics_output.h: Likewise.
29264 * include/grub/i386/pc/memory.h: Likewise.
29265 * kern/env.c: Likewise.
29266 * kern/i386/qemu/startup.S: Likewise.
29267 * lib/i386/pc/biosnum.c: Likewise.
29268 * lib/i386/relocator.c: Likewise.
29269 * lib/i386/relocator_asm.S: Likewise.
29270 * lib/relocator.c: Likewise.
29271 * loader/i386/bsd.c: Likewise.
29272 * loader/i386/multiboot.c: Likewise.
29273 * loader/i386/pc/chainloader.c: Likewise.
29274 * loader/i386/xnu.c: Likewise.
29275 * loader/xnu.c: Likewise.
29276 * normal/main.c: Likewise.
29277 * normal/menu_text.c: Likewise.
29278 * util/getroot.c: Likewise.
29279 * util/grub-mkconfig_lib.in: Likewise.
29280 * util/grub.d/00_header.in: Likewise.
29281 * util/i386/pc/grub-mkimage.c: Likewise.
29282 * util/mkisofs/eltorito.c: Likewise.
29283 * util/mkisofs/exclude.h: Likewise.
29284 * util/mkisofs/hash.c: Likewise.
29285 * util/mkisofs/iso9660.h: Likewise.
29286 * util/mkisofs/joliet.c: Likewise.
29287 * util/mkisofs/mkisofs.c: Likewise.
29288 * util/mkisofs/mkisofs.h: Likewise.
29289 * util/mkisofs/multi.c: Likewise.
29290 * util/mkisofs/name.c: Likewise.
29291 * util/mkisofs/rock.c: Likewise.
29292 * util/mkisofs/tree.c: Likewise.
29293 * util/mkisofs/write.c: Likewise.
29294 * video/efi_gop.c: Likewise.
29295
009ec743
VS
292962009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
29297
29298 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
29299 size counting.
29300
0ad46fd7 293012009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
29302
29303 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
29304 * genmk.rb (class SCRIPT): Modify the target file instead of source.
29305
d3d30ea0
VS
293062009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29307
29308 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
29309 (GRUB_MOD_INIT(memrw)): Update help line.
29310
a34f5c70
VS
293112009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29312
29313 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
29314 Use grub_extcmd_t. All users updated.
29315 (options): New variable.
29316 (grub_cmd_read): Restructure for readability. Support "-v" option.
29317 (grub_cmd_write): Restructure for readability.
29318
0ad46fd7 293192009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
29320
29321 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
29322
0ad46fd7 293232009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
29324
29325 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
29326 with the actual contents of the correspondending make variable.
29327 * util/grub-mkrescue.in (pkglib_DATA): New variable.
29328 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
29329 specifying `*.lst' and `efiemu??.o'
29330
0ad46fd7 293312009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
29332
29333 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
29334 after function name.
29335 Noticed by Rene Engelhard <rene@debian.org>.
29336
dc77a799
VS
293372009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29338
29339 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
29340 (options): New variable.
29341 (iospace): Likewise.
29342 (grub_lspci_iter): List IO spaces if "-i" was given.
29343 (grub_cmd_lspci): Parse options.
29344 (GRUB_MOD_INIT(lspci)): Use extcmd.
29345 (GRUB_MOD_FINI(lspci)): Likewise.
29346
0ad46fd7 293472009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
29348
29349 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
29350 `function' keyword.
29351 Patch by Tony Mancill <tmancill@debian.org>.
29352
b5d5993b
VS
293532009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29354
29355 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
29356 (grub_uhci_portstatus): Likewise.
29357 (grub_uhci_portstatus): Add necessary delay.
11d18281 29358 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 29359
941903f2 293602009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 29361
941903f2 29362 * commands/acpi.c (options): Fix capitalizations and/or full stops.
29363 (GRUB_MOD_INIT): Likewise.
29364 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 29365 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
29366 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 29367 * commands/efi/loadbios.c (enable_rom_area): Likewise.
29368 (enable_rom_area): Likewise.
29369 (GRUB_MOD_INIT): Likewise.
29370 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29371 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
29372 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29373 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
29374 * commands/hexdump.c (options): Likewise.
29375 * commands/i386/cpuid.c (options): Likewise.
29376 (GRUB_MOD_INIT): Likewise.
29377 * commands/i386/pc/drivemap.c (options): Likewise.
29378 (GRUB_MOD_INIT): Likewise.
29379 * commands/i386/pc/halt (options): Likewise.
29380 (GRUB_MOD_INIT): Likewise.
29381 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29382 * commands/i386/pc/pxecmd.c (options): Likewise.
29383 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
29384 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
29385 * commands/keystatus.c (options): Likewise.
29386 (GRUB_MOD_INIT): Likewise.
29387 * commands/loadenv.c (options): Likewise.
29388 * commands/ls.c (options): Likewise.
29389 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29390 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29391 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29392 * commands/parttool.c (helpmsg): Likewise.
29393 * commands/probe.c (options): Likewise.
29394 * commands/read.c (GRUB_MOD_INIT): Likewise.
29395 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
29396 * commands/search.c (options): Likewise.
29397 * commands/sleep.c (options): Likewise.
29398 * commands/test.c (GRUB_MOD_INIT): Likewise.
29399 * commands/true.c (GRUB_MOD_INIT): Likewise.
29400 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
29401 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
29402 * lib/arg.c (help_options): Likewise.
e9bbb4e7 29403 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
29404 `$(XGETTEXT)'.
98a50553 29405 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 29406
0ad46fd7 294072009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 29408
ef3c2c3a 29409 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
29410 instead of specifying them explicit.
29411
7922f68b
RM
294122009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29413
29414 * NEWS: Add grub-probe support for GNU/Hurd.
29415
537ce47f
RM
294162009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29417
29418 * NEWS: gettext was added after 1.97.
29419
9b214e3a
RM
294202009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29421
29422 * util/mkisofs/msdos_partition.h: New file (based on
29423 include/grub/msdos_partition.h).
29424 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
29425 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
29426 (ld_options, main): Recognize --protective-msdos-label.
29427 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
29428 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
29429 (padblock_write): If `use_protective_msdos_label' is set, patch a
29430 protective DOS-style label in the output image.
29431
29432 * util/grub-mkrescue.in: Use --protective-msdos-label.
29433
e9309813
RM
294342009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29435
29436 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
29437 boot.
29438
0ae56929
RM
294392009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29440
29441 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
29442 variables.
29443 (ld_options, main): Recognize `--embedded-boot'.
29444 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
29445 declarations.
29446 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
29447 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
29448 (padblock_write): Likewise. Rewrite to support embedded boot image.
29449
29450 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
29451 for BIOS-based disk boot instead of only ElTorito.
29452
b15937b1
RM
294532009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29454
29455 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
29456 build (not needed for bootstrap).
29457
52cc3ce0
RM
294582009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29459
29460 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
29461 from i386-pc build (not needed for bootstrap).
29462 Rewrite a pair of strings.
29463
36f5ff04
RM
294642009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29465
29466 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
29467
973c6c85 294682009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
29469
29470 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
29471
05d21547
AB
294722009-12-21 Andreas Born <futur.andy@googlemail.com>
29473
29474 * kern/env.c (grub_env_context_open): Mark exported variable for
29475 reexport.
29476
0175d51f
AB
294772009-12-21 Andreas Born <futur.andy@googlemail.com>
29478
29479 * kern/env.c (grub_env_export): Create nonexistent variables before
29480 exporting.
29481
7f39d92f 294822009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 29483
7f39d92f 29484 * include/grub/auth.h: Include `<grub/i18n.h>'.
29485 (GRUB_GET_PASSWORD): Gettextizze string.
29486 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
29487 menu_text.c.
29488 (grub_utf8_to_ucs4_alloc): Fix indentation.
29489 (grub_print_ucs4): Likewise.
29490 (grub_getstringwidth): Likewise.
29491 (print_message_indented): New declaration.
29492 * normal/auth.c: Include `<grub/i18n.h>'.
29493 (grub_auth_check_authentication): Gettexttize string.
29494 * normal/cmdline.c: Include `<grub/i18n.h>'.
29495 (grub_cmdline_get): Gettextizze.
29496 * normal/color.c: Include `<grub/i18n.h>'.
29497 (grub_parse_color_name_pair): Gettexttize strings.
29498 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
29499 string (use `print_message_indented').
29500 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
29501 `include/grub/normal.h'.
29502 (print_message_indented): Renamed to ...
29503 (grub_print_message_indented): ... this. Remove `static' qualifer (now
29504 used in normal/main.c).
29505 (print_message): Use `grub_print_message_indented' instead of
29506 `print_message_indented'.
29507 (print_timeout): Likewise.
29508 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
29509 (grub_normal_print_device_info): Gettexttize strings.
29510 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
29511
3041d898
VS
295122009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29513
29514 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
29515 of arguments. Return number of tokens and not arguments. All users
29516 updated.
29517
de15bf8e
VS
295182009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29519
29520 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
29521 non-MSDOS paritions.
29522
e0a6ca52
VS
295232009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
29524
29525 * include/grub/types.h (UNUSED): Removed since it conflicts with
29526 NetBSD headers. All users changed to direct __attribute__ ((unused)).
29527 Reported by Grégoire Sutre.
29528
b99518d1 295292009-12-19 Carles Pina i Estany <carles@pina.cat>
29530
29531 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
29532 (grub_print_ucs4_alloc): Likewise.
29533 (grub_getstringwidth): Likewise.
29534 * normal/main.c (grub_normal_init_page): Gettextize version string.
29535 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
29536 (getstringwidth): Renamed to ...
29537 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
29538 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
29539 (grub_print_ucs4): Remove `static' qualifer (now used in
29540 normal/main.c).
29541 * po/POTFILES: Add normal/main.c.
29542
bfd5e52b 295432009-12-19 Carles Pina i Estany <carles@pina.cat>
29544
29545 * normal/menu_text.c (STANDARD_MARGIN): New macro.
29546 (print_message_indented): Add `margin_left' and `margin_right'
29547 parameters.
29548 (print_message): Update `print_message_indented' calls. Adds '\n' to the
29549 strings.
29550 (print_timeout): Use `print_message_indented' to print the message.
29551 Deletes `second_stage' parameter.
29552 (run_menu): Update `print_timeout' calls.
29553
5a1ad2b9
VS
295542009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29555
29556 Fix console palette on OpenFirmware.
29557
29558 * term/ieee1275/ofconsole.c (MAX): Removed.
29559 (colors): Redone based on VGA palette.
29560 (grub_ofconsole_setcolor): Discard brightness bit since only 8
29561 colors are supported.
29562 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
29563
b045f00a
VS
295642009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29565
29566 Fix potential EfiEmu double prepare.
29567
29568 * efiemu/main.c (prepared): New variable
29569 (grub_efiemu_unload): Set prepare to '0'.
29570 (grub_efiemu_prepare): Return if already prepared. Set prepared.
29571
29572 set_virtual_address_map support.
29573
29574 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
29575 prototype.
29576 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
29577 prototype.
29578 (grub_efiemu_crc32): Likewise.
29579 (grub_efiemu_crc64): Likewise.
29580 (grub_efiemu_set_virtual_address_map): Likewise.
29581 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
29582 New definition.
29583 (grub_autoefi_set_virtual_address_map): Likewise.
29584 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
29585 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
29586 Restructure flow to accomodate it.
29587 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
29588 (grub_efiemu_crc): Recompute CRC32.
29589 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
29590 (efiemu_ptv_relocated): ... this. Made global. All users updated.
29591 * efiemu/symbols.c (relocated_handle): New variable.
29592 (grub_efiemu_free_syms): Free relocated_handle.
29593 (grub_efiemu_alloc_syms): Allocate relocated_handle.
29594 (grub_efiemu_write_sym_markers): New function.
29595 (grub_efiemu_set_virtual_address_map): Likewise.
29596
29597 Newer XNU parameters.
29598
29599 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
29600 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
29601 (grub_xnu_fill_devicetree): New prototype.
29602 (grub_xnu_heap_real_start): New variable.
29603 * loader/xnu.c (get_name_ptr): New function.
29604 (grub_xnu_load_driver): Fill namelen and name.
29605
29606 64-bit xnu support.
29607
29608 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
29609 and 'loader/macho64.c'.
29610 * conf/i386-pc.rmk: Likewise.
29611 * conf/x86_64-efi.rmk: Likewise.
29612 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
29613 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
29614 * include/grub/macho.h (grub_macho_segment64): New structure.
29615 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
29616 (grub_macho_size32): ... to this.
29617 (grub_macho32_get_entry_point): Renamed from ...
29618 (grub_macho_get_entry_point32): ... to this.
29619 (grub_macho_contains_macho64): New prototype.
29620 (grub_macho_size64): Likewise.
29621 (grub_macho_get_entry_point64): Likewise.
29622 (grub_macho32_load): Renamed from ...
29623 (grub_macho_load32): ... to this.
29624 (grub_macho32_filesize): Renamed from ...
29625 (grub_macho_filesize32): ... to this.
29626 (grub_macho32_readfile): Renamed from ...
29627 (grub_macho_readfile32): ... to this.
29628 (grub_macho_filesize64): New prototype.
29629 (grub_macho_readfile64): Likewise.
29630 (grub_macho_parse32): Likewise.
29631 (grub_macho_parse64): Likewise.
29632 * loader/macho.c: Split into ...
29633 * loader/machoXX.c: ... and this. Replace 32 with XX.
29634 * loader/macho32.c: New file.
29635 * loader/macho64.c: Likewise.
29636 * loader/xnu.c (grub_xnu_is_64bit): New variable.
29637 (grub_cmd_xnu_kernel): Make 32-bit only.
29638 (grub_cmd_xnu_kernel64): New function.
29639 (grub_xnu_load_driver): Support Mach-O 64.
29640 (grub_cmd_xnu_mkext): Likewise.
29641 * util/grub.d/30_os-prober.in (osx_entry): New function.
29642 Generate entries for 64-bit boot too.
29643
29644 Eliminate ad-hoc tree format in XNU and EfiEmu.
29645
29646 * efiemu/main.c (grub_efiemu_prepare): Update comment.
29647 * efiemu/pnvram.c: Rewritten to use environment variables.
29648 All users updated.
29649
29650 Inline utf16_to_utf8.
29651
29652 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
29653 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
29654 All users updated.
29655 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
29656
29657 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
29658 * commands/usbtest.c (grub_usb_get_string): ... move here.
29659 (usb_print_str): Fix error handling.
29660 * include/grub/usb.h (grub_usb_get_string): Remove.
29661
29662 UTF-8 to UTF-16 transformation.
29663
29664 * conf/common.rmk (pkglib_MODULES): Add charset.mod
29665 (charset_mod_SOURCES): New variable.
29666 (charset_mod_CFLAGS): Likewise.
29667 (charset_mod_LDFLAGS): Likewise.
29668 * include/grub/utf.h: New file.
29669 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
29670
29671 Support for device properties.
29672
29673 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
29674 (grub_xnu_devprop_device_header): Likewise.
29675 (grub_xnu_devprop_device_descriptor): Likewise.
29676 (grub_xnu_devprop_add_device): New prototype.
29677 (grub_xnu_devprop_remove_device): Likewise.
29678 (grub_xnu_devprop_remove_property): Likewise.
29679 (grub_xnu_devprop_add_property_utf8): Likewise.
29680 (grub_xnu_devprop_add_property_utf16): Likewise.
29681 (grub_cpu_xnu_init): Likewise.
29682 (grub_cpu_xnu_fini): Likewise.
29683 (grub_cpu_xnu_unload): Likewise.
29684 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
29685 (property_descriptor): Likewise.
29686 (devices): New variable.
29687 (grub_xnu_devprop_remove_property): New function.
29688 (grub_xnu_devprop_add_device): Likewise.
29689 (grub_xnu_devprop_remove_device): Likewise.
29690 (grub_xnu_devprop_add_property): Likewise.
29691 (grub_xnu_devprop_add_property_utf8): Likewise.
29692 (grub_xnu_devprop_add_property_utf16): Likewise.
29693 (hextoval): Likewise.
29694 (grub_cpu_xnu_fill_devprop): Likewise.
29695 (grub_cmd_devprop_load): Likewise.
29696 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
29697 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
29698 (cmd_devprop_load): New variable.
29699 (grub_cpu_xnu_init): New function.
29700 (grub_cpu_xnu_fini): Likewise.
29701 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
29702 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
29703 (grub_cmd_xnu_devtree): Likewise.
29704 (hextoval): New function.
29705 (unescape): Likewise.
29706 (grub_xnu_fill_devicetree): Likewise.
29707
29708 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
29709 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
29710
0945f181
VS
297112009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29712
29713 Workaround for broken ATI VBE.
29714
29715 * video/i386/pc/vbe.c (last_set_mode): New variable.
29716 (grub_vbe_set_video_mode): Set 'last_set_mode'.
29717 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
29718 (grub_video_vbe_setup): Don't check for reserved flag.
29719
0ad46fd7 297202009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
29721
29722 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
29723 the `find' command.
29724
c179ebe4
VS
297252009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
29726
29727 UUID support for HFS.
29728
29729 * fs/hfs.c (grub_hfs_uuid): New function.
29730 (grub_hfs_fs): New value .uuid.
29731 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
29732
0ad46fd7 297332009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
29734
29735 Fix a segfault with parsing unknown long options.
29736
29737 * util/grub-mkrelpath.c (options): Zero terminate it.
29738
c4a3e41a
CPE
297392009-12-13 Carles Pina i Estany <carles@pina.cat>
29740
29741 * include/grub/misc.h (grub_puts): New declaration.
29742 (grub_puts_): Likewise.
a22008a6 29743 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
29744 (grub_puts_): Likewise.
29745
2e8a7602
RM
297462009-12-13 Robert Millan <rmh.grub@aybabtu.com>
29747
29748 * util/grub-probe.c (probe): Improve error message.
29749
b50b77b9
RM
297502009-12-13 Robert Millan <rmh.grub@aybabtu.com>
29751
29752 * loader/i386/multiboot_elfxx.c
29753 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
29754 initialization.
29755
297562009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
29757
29758 Relocator framework
29759
29760 * loader/i386/xnu_helper.S: Removed. All users updated.
29761 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
29762 (relocator_mod_SOURCES): New variable.
29763 (relocator_mod_CFLAGS): Likewise.
29764 (relocator_mod_LDFLAGS): Likewise.
29765 (relocator_mod_ASFLAGS): Likewise.
29766 * conf/x86_64.rmk: Likewise.
29767 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
29768 (grub_multiboot_payload_entry_offset): Likewise.
29769 (grub_multiboot_forward_relocator): Likewise.
29770 (grub_multiboot_forward_relocator_end): Likewise.
29771 (grub_multiboot_backward_relocator): Likewise.
29772 (grub_multiboot_backward_relocator_end): Likewise.
29773 (grub_multiboot_payload_eip): New variable.
29774 (grub_multiboot_payload_orig): Likewise.
29775 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
29776 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
29777 * include/grub/i386/memory.h
29778 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
29779 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
29780 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
29781 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
29782 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
29783 * include/grub/i386/relocator.h: New file.
29784 * include/grub/x86_64/relocator.h: Likewise.
29785 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
29786 (XNU_RELOCATOR): New macro.
29787 (grub_xnu_launcher_start): Remove.
29788 (grub_xnu_launcher_end): Likewise.
29789 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
29790 (grub_xnu_heap_real_start): Remove.
29791 (grub_xnu_heap_start): Change to void *. All users updated.
29792 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
29793 * lib/i386/relocator.c: New file.
29794 * lib/i386/relocator_asm.S: Likewise.
29795 * lib/i386/relocator_backward.S: Likewise.
29796 * lib/mips/relocator.c: Likewise.
29797 * lib/mips/relocator_asm.S: Likewise.
29798 * lib/relocator.c: Likewise.
29799 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
29800 (entry): Removed.
29801 (playground): Likewise.
29802 (grub_multiboot_payload_orig): New variable.
29803 (grub_multiboot_payload_dest): Likewise.
29804 (grub_multiboot_payload_size): Likewise.
29805 (grub_multiboot_payload_eip): Likewise.
29806 (grub_multiboot_payload_esp): Likewise.
29807 (grub_multiboot_boot): Use grub_relocator32_boot.
29808 (grub_multiboot_unload): Free relocators.
29809 (grub_multiboot): Setup stack. Use relocators.
29810 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
29811 (grub_multiboot_load_elfXX): Use relocators.
29812 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
29813 (grub_multiboot_payload_size): Likewise.
29814 (grub_multiboot_payload_dest): Likewise.
29815 (grub_multiboot_payload_entry_offset): Likewise.
29816 (grub_multiboot_forward_relocator): Likewise.
29817 (grub_multiboot_backward_relocator): Likewise.
29818 (grub_multiboot_real_boot): Likewise.
29819 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
29820 (grub_xnu_entry_point): Likewise.
29821 (grub_xnu_arg1): Likewise.
29822 (grub_xnu_stack): Likewise.
29823 (grub_xnu_launch): Removed.
29824 (grub_xnu_boot_resume): New function.
29825 (grub_xnu_boot): Use relocators.
29826 * loader/i386/xnu_helper.S: Removed.
29827 * loader/xnu.c (grub_xnu_heap_start): New variable.
29828 (grub_xnu_heap_size): Likewise.
29829 (grub_xnu_heap_malloc): Use relocators.
29830 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
29831
29eb90c6
VS
298322009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
29833
29834 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
29835 anything.
29836
31027430
CPE
298372009-12-13 Carles Pina i Estany <carles@pina.cat>
29838
29839 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
29840 GRUB_ERR_NONE before calling grub_env_set.
29841
dc0c71d9
RM
298422009-12-12 Robert Millan <rmh@aybabtu.com>
29843
29844 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
29845 * genmk.rb (video): New variable.
29846 (CLEANFILES, VIDEOFILES): Add #{video}.
29847 (#{video}): New target rule.
29848 * genvideolist.sh: New file.
29849 * Makefile.in (pkglib_DATA): Add video.lst.
29850 (video.lst): New target rule.
29851 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
29852 `video.lst'.
29853 * util/grub.d/30_os-prober.in: Replace `vbe' with
29854 ${GRUB_VIDEO_BACKEND}.
29855
2a4bfcf0
RM
298562009-12-11 Robert Millan <rmh.grub@aybabtu.com>
29857
29858 * THANKS: Add David Miller.
29859
2a3aa4d5
RM
298602009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
29861
29862 libpciaccess support.
29863
29864 * Makefile.in (LIBPCIACCESS): New variable.
29865 (enable_grub_emu_pci): Likewise.
29866 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
29867 util/pci.c and commands/lspci.c.
29868 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
29869 * configure.ac (grub-emu-pci): New option.
29870 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
29871 (grub_pci_device_unmap_range): Likewise.
29872 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
29873 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
29874 (grub_pci_address_t) [!GRUB_UTIL]: New type.
29875 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
29876 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
29877 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
29878 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
29879 * include/grub/pciutils.h: New file.
29880 * util/pci.c: Likewise.
29881
0ad46fd7 298822009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
29883
29884 * util/misc.c: Don't include <errno.h> twice.
29885
0ad46fd7 298862009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
29887
29888 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
29889 name in an error message.
29890 (grub_biosdisk_rw): Likewise.
29891
2e59983c
VS
298922009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29893
29894 Eliminate NTFS 4Gib barrier.
29895
29896 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
29897 (read_run_data): Likewise.
29898 (grub_ntfs_read_run_list): Likewise.
29899 (grub_ntfs_read_block): Likewise.
29900 (grub_ntfs_iterate_dir): Likewise.
29901 (read_mft): Likewise.
29902 (read_data): Likewise.
29903 Use COM_LOG_LEN.
29904 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
29905 to avoid 64-bit division
29906 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
29907 (grub_ntfs_rlst): Use grub_disk_addr_t.
29908
71ee178a
VS
299092009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29910
29911 Eliminate grub-fstest 4Gib barrier.
29912
29913 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
29914 (read_file): Fix error reporting.
29915
2520d4b8
VS
299162009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29917
29918 Eliminate hexdump 4Gib barrier.
29919
29920 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
29921 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
29922
e1f27065
VS
299232009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29924
29925 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
29926 Fixes amarsh bug.
29927
1a0f7f45
RM
299282009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
29929
29930 Remove miscellaneous files in distclean target.
29931
29932 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
29933
c631d9fb
CW
299342009-12-09 Colin Watson <cjwatson@ubuntu.com>
29935
29936 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
29937 if they're already set. This resolves the conflict between my
29938 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
29939 fixing the --grub-probe option again.
29940 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
29941 change on 2009-10-06, so that we now once again source
29942 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
29943
7c7b6106
RM
299442009-12-08 Robert Millan <rmh.grub@aybabtu.com>
29945
29946 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
29947 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
29948 `util/devicemap.c'.
29949
e3069ec1
CPE
299502009-12-08 Carles Pina i Estany <carles@pina.cat>
29951
29952 * include/grub/misc.h (grub_printf_): New declaration.
29953 * kern/misc.c (grub_printf_): New definition.
29954 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
29955 instead of `grub_printf' and `_'.
29956 * normal/menu_entry.c (store_completion): Likewise.
29957 (run): Likewise.
29958 (grub_menu_entry_run): Likewise.
29959 * normal/menu_text.c (grub_wait_after_message): Likewise.
29960 (notify_booting): Likewise.
29961 (notify_fallback): Likewise.
29962 (notify_execution_failure): Likewise.
29963
d6ceebf1
CW
299642009-12-07 Colin Watson <cjwatson@ubuntu.com>
29965
29966 * configure.ac: Check for vasprintf.
29967 * util/misc.c (asprintf): Move allocation from here ...
29968 (vasprintf): ... to here. New function.
29969 (xasprintf): New function.
29970 * include/grub/util/misc.h (vasprintf, xasprintf): Add
29971 prototypes.
29972 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
29973 * util/grub-mkfont.c (write_font): Likewise.
29974 * util/grub-probe.c (probe): Likewise.
29975 * util/hostdisk.c (make_device_name): Likewise.
29976
de6daa8b
DM
299772009-12-06 David S. Miller <davem@sunset.davemloft.net>
29978
29979 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
29980 anything even prefixed with 'cdrom' as a cdrom.
29981
0ad46fd7 299822009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
29983
29984 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
29985 mount points.
29986
98d3dc02
CPE
299872009-12-05 Carles Pina i Estany <carles@pina.cat>
29988
29989 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
29990 grub_gettext_msg_list.
29991 (grub_gettext_gettranslation_from_position): Return const char *
29992 and not char *.
a2c1332b 29993 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
29994 returns from the list if existing there.
29995 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
29996 (grub_gettext_delete_list): Delete the list.
29997 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
29998 lang environment variable is changed.
29999 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
30000
b283f108
VS
300012009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30002
30003 Rename kernel.mod to kernel.img.
30004
30005 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
30006 (kernel_mod_EXPORTS): Rename to ...
30007 (kernel_img_EXPORTS): ... this.
30008 (kernel_mod_SOURCES): Rename to ...
30009 (kernel_img_SOURCES): ... this.
30010 (kernel_mod_HEADERS): Rename to ...
30011 (kernel_img_HEADERS): ... this. All users updated.
30012 (kernel_mod_CFLAGS): Rename to ...
30013 (kernel_img_CFLAGS): ... this.
30014 (kernel_mod_ASFLAGS): Rename to ...
30015 (kernel_img_ASFLAGS): ... this.
30016 (kernel_mod_LDFLAGS): Rename to ...
30017 (kernel_img_LDFLAGS): ... this.
30018 * conf/x86_64-efi.rmk: Likewise.
30019 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
30020 (read_kernel_image): ... this. All users updated.
30021 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
30022
69055f8a
CPE
300232009-12-05 Carles Pina i Estany <carles@pina.cat>
30024
30025 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
30026 (print_spaces): New function.
30027 (grub_print_ucs4): New function.
30028 (getstringwidth): New function.
30029 (print_message_indented): New function.
30030 (print_message): Gettexttize strings using print_message_indented.
30031 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
30032 width.
30033 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 30034 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
30035 Gettextize.
30036 * normal/menu_entry.c (store_completion): Cleanup the gettextized
30037 string.
30038 (run): Likewise.
30039 (grub_menu_entry_run): Likewise.
30040 * PO/POTFILES: Add normal/menu_entry.c.
30041
f616f51c
VS
300422009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30043
30044 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
30045
57bbe3be
CPE
300462009-12-05 Carles Pina i Estany <carles@pina.cat>
30047
30048 * util/grub-install.in: Install gettext .mo files.
30049 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
30050
013d67a1
CPE
300512009-12-05 Carles Pina i Estany <carles@pina.cat>
30052
30053 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
30054 grub_dprintf.
30055
fb954db0
RM
300562009-12-05 Robert Millan <rmh.grub@aybabtu.com>
30057
30058 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
30059 non-firmware-dependant one in realmode.S takes precedence.
30060
6b8474f8
RM
300612009-12-04 Robert Millan <rmh.grub@aybabtu.com>
30062
30063 * commands/halt.c: Replace misc arch-specific headers with
30064 `<grub/misc.h>'.
30065 * commands/reboot.c: Likewise.
30066 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
30067 `<grub/misc.h>'.
30068 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
30069 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
30070 (kernel_img_SOURCES): ... to here.
30071
30072 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
30073 * include/grub/i386/pc/init.h: Likewise.
30074 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
30075 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30076
30077 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
30078
30079 * include/grub/i386/halt.h: Remove.
30080 * include/grub/i386/reboot.h: Likewise.
30081
30082 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
30083
4b2e6ca2
DM
300842009-12-03 David S. Miller <davem@sunset.davemloft.net>
30085
30086 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
30087 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
30088 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
30089 "progname.h"
30090 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30091 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30092 (usage): Add missing comma in printf.
30093
5239348f
RM
300942009-12-02 Robert Millan <rmh.grub@aybabtu.com>
30095
30096 Use the same reboot approach on i386 coreboot and qemu as we do on
30097 BIOS.
30098
30099 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
30100 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
30101 * kern/i386/reboot.c: Remove.
30102 * include/grub/i386/reboot.h (grub_reboot): Export function.
30103 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
30104 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
30105 0xf000:0xfff0 instead of 0xffff:0x0000.
30106 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
30107 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
30108
ef34cbd4
RM
301092009-11-30 Robert Millan <rmh.grub@aybabtu.com>
30110
30111 Fix $srcdir != $objdir build.
30112
30113 * Makefile.in (po/%.po): Rewrite as ...
30114 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
30115
dc9837ea
ST
301162009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
30117
30118 Fix GNU/Hurd grub-install crash.
30119 * util/grub-probe.c (probe): Try to access `path' only when it is not
30120 NULL.
30121
2f857f98
VS
301222009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30123
30124 Correct module naming.
30125
30126 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30127 (GRUB_MOD_INIT(efi_uga)): ... to this
30128 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30129 (GRUB_MOD_FINI(efi_uga)): ... to this
30130 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30131 (GRUB_MOD_INIT(efi_gop)): ... to this
30132 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30133 (GRUB_MOD_FINI(efi_gop)): ... to this
30134
c5448046
RM
301352009-11-28 Robert Millan <rmh.grub@aybabtu.com>
30136
30137 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
30138 translatable.
30139 (usage): Translate `arg' strings using gettext().
30140 Thanks to Jordi Mallach for the suggestion.
30141
c85184ad
VS
301422009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30143
30144 GOP support. Based on patch from Bean
30145 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30146
30147 * video/efi_gop.c: New file.
30148 * include/grub/efi/graphics_output.h: Likewise.
30149 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
30150 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30151 variables.
30152 * conf/x86_64-efi.rmk: Likewise.
30153
8a4c48d8
VS
301542009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30155
30156 Rename efi_fb to efi_uga.
30157
30158 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30159 'efi_uga.mod'.
30160 (efi_fb_mod_SOURCES): Rename this ...
30161 (efi_uga_mod_SOURCES): ... to this.
30162 (efi_fb_mod_CFLAGS): Rename this ...
30163 (efi_uga_mod_CFLAGS): ... to this.
30164 (efi_fb_mod_LDFLAGS): Rename this ...
30165 (efi_uga_mod_LDFLAGS): ... to this.
30166 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30167 'efi_uga.mod'.
30168 (efi_fb_mod_SOURCES): Rename this ...
30169 (efi_uga_mod_SOURCES): ... to this.
30170 (efi_fb_mod_CFLAGS): Rename this ...
30171 (efi_uga_mod_CFLAGS): ... to this.
30172 (efi_fb_mod_LDFLAGS): Rename this ...
30173 (efi_uga_mod_LDFLAGS): ... to this.
30174 * video/efi_fb.c: Move this ...
30175 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
30176
fb6c1a7b
RM
301772009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30178
30179 * po/README: New file. Explain our PO file workflow.
30180
3bc7896c
RM
301812009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30182
30183 * po/ChangeLog: Remove. Move relevant entries back to ...
30184 * ChangeLog: ... here.
30185 * po/ca.po: Remove (now handled by TLP).
30186 * po/id.po: Likewise.
30187 * po/zh_CN.po: Likewise.
30188 * Makefile.in (LINGUAS): Initialize in a way that supports
30189 empty set.
30190
9ed4841d
RM
301912009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30192
30193 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
30194 reliing on po/LINGUAS.
30195 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
30196 (po/%.po): ... this.
30197
0ad46fd7 301982009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
30199
30200 * util/i386/efi/grub-mkimage.c: Include "progname.h".
30201 (main): Use `program_name' instead of nonexistent `progname'.
30202
e30dd392
FZ
302032009-11-26 Felix Zielcke <fzielcke@z-51.de>
30204
30205 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30206 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
30207
7656de4f
RM
302082009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30209
30210 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
30211 commit.
30212 * conf/i386-efi.rmk: Likewise.
30213 * conf/i386-ieee1275.rmk: Likewise.
30214 * conf/powerpc-ieee1275.rmk: Likewise.
30215 * conf/sparc64-ieee1275.rmk: Likewise.
30216 * conf/x86_64-efi.rmk: Likewise.
30217
db77c4d4
FZ
302182009-11-26 Felix Zielcke <fzielcke@z-51.de>
30219
30220 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
30221
a755bb04
FZ
302222009-11-26 Felix Zielcke <fzielcke@z-51.de>
30223
30224 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
30225
8a4c07fd
RM
302262009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30227
30228 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
30229 (grub_mkdevicemap_SOURCES): New variable.
30230 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
30231 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
30232 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
30233 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
30234 (grub_mkdevicemap_SOURCES): Remove.
30235 * conf/i386-efi.rmk: Likewise.
30236 * conf/i386-ieee1275.rmk: Likewise.
30237 * conf/i386-pc.rmk: Likewise.
30238 * conf/powerpc-ieee1275.rmk: Likewise.
30239 * conf/sparc64-ieee1275.rmk: Likewise.
30240 * conf/x86_64-efi.rmk: Likewise.
30241 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
30242 (usage): Fix strings to use `program_name'.
30243 (main): Initialize gettext.
30244 * util/grub-editenv.c: Likewise.
30245 * util/grub-emu.c: Likewise.
30246 * util/grub-fstest.c: Likewise.
30247 * util/grub-mkdevicemap.c: Likewise.
30248 * util/grub-mkfont.c: Likewise.
30249 * util/grub-mkrelpath.c: Likewise.
30250 * util/grub-pe2elf.c: Likewise.
30251 * util/grub-probe.c: Likewise.
30252 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30253 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30254 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30255
30256 * util/misc.c: Include `"progname.h"'.
30257 (progname): Remove variable.
30258 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
30259
6f61ed55
FZ
302602009-11-25 Felix Zielcke <fzielcke@z-51.de>
30261
30262 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
30263 printf and print a newline after the menuentry header line.
30264 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
30265
f022876b
FZ
302662009-11-25 Felix Zielcke <fzielcke@z-51.de>
30267
30268 autoconf >= 2.60 support $(localedir).
30269
30270 * INSTALL: Note that autoconf 2.60 is required.
30271 * configure.ac (AC_PREREQ): Bump to 2.60.
30272 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
30273 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
30274
6717926e
YB
302752009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
30276
30277 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
30278 aclocal is run.
30279
08806a54
RM
302802009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30281
30282 * normal/main.c (grub_normal_read_line): Fix off-by-one
30283 buffer overflow.
30284
13b33fba
RM
302852009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30286
30287 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
30288 "parser.grub" in grub_command_execute() call.
30289
4a8572e9
CPE
302902009-11-24 Carles Pina i Estany <carles@pina.cat>
30291
30292 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
30293 * conf/i386-efi.rmk: Likewise.
30294 * conf/i386-ieee1275.rmk: Likewise.
30295 * conf/i386-pc.rmk: Likewise.
30296 * conf/powerpc-ieee1275.rmk: Likewise.
30297 * conf/sparc64-ieee1275.rmk: Likewise.
30298 * conf/x86_64-efi.rmk: Likewise.
30299 * gettext/gettex.c: Include <grub/i18n.h>.
30300 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
30301 here ...
30302 * include/grub/i18n.h: ... to here
30303 * include/grub/i18n.h: ... to here.
30304 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 30305 (grub_gettext_dummy): Move above user.
4a8572e9 30306
bee48093
FZ
303072009-11-24 Felix Zielcke <fzielcke@z-51.de>
30308
30309 * util/Makefile.in (install-local): Convert a `for' into a normal
30310 shell expansion.
30311
a031e91c
RM
303122009-11-24 Robert Millan <rmh.grub@aybabtu.com>
30313
30314 * autogen.sh: Add automake call.
30315 * config.guess: Remove.
30316 * config.sub: Likewise.
30317 * install-sh: Likewise.
30318
26bec39d
FZ
303192009-11-24 Felix Zielcke <fzielcke@z-51.de>
30320
30321 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
30322
8e2532fd
FZ
303232009-11-24 Felix Zielcke <fzielcke@z-51.de>
30324
30325 * util/Makefile.in (install-local): Convert a make `$(foreach)'
30326 function to a normal shell `for'.
30327
fefa1b7d
FZ
303282009-11-24 Felix Zielcke <fzielcke@z-51.de>
30329
30330 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30331
4501250b
FZ
303322009-11-24 Felix Zielcke <fzielcke@z-51.de>
30333
30334 * util/grub-mkrelpath.c: New file.
30335 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
30336 (grub_mkrelpath_SOURCES): New variable.
30337 * include/grub/util/misc.h: New function prototype.
30338 * util/misc.c (make_system_path_relative_to_its_root): New function.
30339
30340 * util/grub-mkconfig_lib.in (bindir): New variable.
30341 (grub_mkrelpath): Likewise.
30342 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
30343
30344 * util/probe.c (probe): Make the file path relative to its root.
30345 Change a info message to use the GRUB path. Enable again the
30346 check if we can read the file with GRUB facilities.
30347
30348 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
30349 to its root.
30350
11d9778b
FZ
303512009-11-24 Felix Zielcke <fzielcke@z-51.de>
30352
30353 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
30354 platform.
30355
4465287d
FZ
303562009-11-24 Felix Zielcke <fzielcke@z-51.de>
30357
30358 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
30359 strncmp().
30360
62b47f22
FZ
303612009-11-24 Felix Zielcke <fzielcke@z-51.de>
30362
30363 * util/getroot.c (grub_util_is_dmraid): New function.
30364 (grub_util_get_dev_abstraction): Treat dmraid and multipath
30365 devices as normal ones, not as LVM.
30366
1eafb9b9 303672009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
30368
30369 * conf/common.rmk: Add grub-gettext_lib target and updates
30370 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
30371 LDFLAGS.
30372 * gettext/gettext.c: New file. (Reads mo files).
30373 * include/grub/file.h (grub_file_pread): New prototype.
30374 * include/grub/i18n.h (_): New prototype.
30375 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
30376 prototypes.
30377 * kern/misc.c (grub_gettext_dummy): New function.
30378 * normal/menu_text.c: Include <grub/i18n.h>.
30379 * normal/menu_text.c (print_timeout): Gettexttize string.
30380 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
30381 * po/POTFILES: Add `normal/menu_text.c'.
30382 * po/ca.po: Add new translations.
c3ea6bd4
CPE
30383 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
30384 gettext module and defines locale_dir and lang in grub.cfg.
30385 * NEWS: Add gettext support.
30386
0fdb2568
RM
303872009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30388
30389 * util/hostdisk.c: Include `<grub/i18n.h>'.
30390 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
30391 (make_device_name): Rewrite using asprintf.
30392 (convert_system_partition_to_system_disk): Replace 0 with NULL.
30393 (find_system_device): If a device is not found, generate one just
30394 by reusing the OS path name.
30395 (read_device_map): Make it permissible for device.map not to exist.
30396
f515aa62
RM
303972009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30398
30399 * script/sh/execute.c: Move from here ...
30400 * script/execute.c: ... to here. Update all users.
30401 * script/sh/function.c: Move from here ...
30402 * script/function.c: ... to here. Update all users.
30403 * script/sh/lexer.c: Move from here ...
30404 * script/lexer.c: ... to here. Update all users.
30405 * script/sh/main.c: Move from here ...
30406 * script/main.c: ... to here. Update all users.
30407 * script/sh/parser.y: Move from here ...
30408 * script/parser.y: ... to here. Update all users.
30409 * script/sh/script.c: Move from here ...
30410 * script/script.c: ... to here. Update all users.
30411
f84b481b
RM
304122009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30413
30414 * configure.ac: Detect all `emu' platforms. Define
30415 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
30416 --enable-grub-emu logic. Disable include/grub/machine
30417 symlink on `emu' platforms.
30418
30419 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
30420 * gensymlist.sh.in: Likewise.
30421
30422 * include/grub/i386/coreboot/machine.h: Remove file.
30423 * include/grub/i386/efi/machine.h: Likewise.
30424 * include/grub/i386/ieee1275/machine.h: Likewise.
30425 * include/grub/i386/pc/machine.h: Likewise.
30426 * include/grub/i386/qemu/machine.h: Likewise.
30427 * include/grub/powerpc/ieee1275/machine.h: Likewise.
30428 * include/grub/sparc64/ieee1275/machine.h: Likewise.
30429 * include/grub/x86_64/efi/machine.h: Likewise.
30430
30431 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
30432 * commands/halt.c: Likewise.
30433 * commands/reboot.c: Likewise.
30434 * include/grub/autoefi.h: Likewise.
30435 * include/grub/i386/at_keyboard.h: Likewise.
30436 * include/grub/i386/kernel.h: Likewise.
30437 * include/grub/i386/loader.h: Likewise.
30438 * include/grub/i386/pc/memory.h: Likewise.
30439 * kern/dl.c: Likewise.
30440 * kern/i386/coreboot/init.c: Likewise.
30441 * loader/i386/bsd.c: Likewise.
30442 * loader/i386/linux.c: Likewise.
30443 * loader/multiboot_loader.c: Likewise.
30444 * term/i386/pc/serial.c: Likewise.
30445 * term/usb_keyboard.c: Likewise.
30446
30447 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
30448 `<grub/machine/machine.h>'
30449 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
30450 * util/misc.c: Remove `<grub/machine/machine.h>' and
30451 `<grub/machine/time.h>'.
30452
30453 * Makefile.in (enable_grub_emu): Remove variable.
30454 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
30455
30456 * conf/any-emu.rmk: New file.
30457 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
30458 (grub_emu_init.c): Move from here ...
30459 * conf/any-emu.rmk: ... to here.
30460
30461 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
30462 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
30463 * conf/any-emu.rmk: ... to here.
30464
4efeab03
RM
304652009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30466
30467 * include/grub/parser.h (grub_parser_register): Document need
30468 of `name' parameter.
30469 * normal/main.c (grub_normal_read_line): Simplify prompt string.
30470 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
30471 "sh" to "grub".
30472
ea1dd8bf
RM
304732009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30474
30475 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
30476 `$(XGETTEXT)'.
30477 * include/grub/i18n.h (N_): New macro.
30478 * util/mkisofs/mkisofs.h: Likewise.
30479 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
30480 around N_().
30481 (usage): Use gettext() to translate help strings when printing them.
30482
0c140626
RM
304832009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30484
30485 Based on patch from Bean
30486 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30487
30488 * video/efi_fb.c: New file.
30489 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
30490 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30491 variables.
30492 * conf/x86_64-efi.rmk: Likewise.
30493
87d58298
RM
304942009-11-22 Robert Millan <rmh.grub@aybabtu.com>
30495
30496 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
30497 * util/i386/pc/grub-setup.c: Likewise.
30498
994cc3a3
ST
304992009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
30500
30501 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
30502 <hurd/fs.h>
30503 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
30504 file_get_storage_info to implement grub_guess_root_device.
30505
26a61d6a
FZ
305062009-11-21 Felix Zielcke <fzielcke@z-51.de>
30507
30508 * Makefile.in (target): Use make's builtin $(shell) function
30509 instead of calling directly $(SHELL) to create the locale directories,
30510 inside the $(foreach) function.
30511
74ff1dd5
FZ
305122009-11-21 Felix Zielcke <fzielcke@z-51.de>
30513
30514 * util/grub-mkrescue.in: Print an error and usage if output option
30515 has not been given.
30516
0b787d0e
FZ
305172009-11-21 Felix Zielcke <fzielcke@z-51.de>
30518
30519 Patch from Loïc Minier <loic.minier@ubuntu.com>.
30520 * util/grub.d/30_os-prober.in: Cope with Linux entries where
30521 root and /boot are on different devices.
30522
1164b270
RM
305232009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30524
30525 Fix build for srcdir != objdir.
30526
30527 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
30528 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
30529 $(srcdir).
30530 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
30531 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
30532 reference for input.
30533
13774a2f
RM
305342009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30535
30536 * util/grub-mkrescue.in: Use source directory direcly (without copiing
30537 or hardlinking it). Remove -J option, Joliet is not compatible with
30538 multiple source directories.
30539
efda854e
RM
305402009-11-21 Carles Pina i Estany <carles@pina.cat>
305412009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30542
30543 * util/grub-mkrescue.in: Recognize `--override-directory' option.
30544 (process_input_dir): New function. Process an arbitrary input
30545 directory.
30546 Misc adjustments to support both "override mode" and system-wide mode.
30547
6c09890c
FZ
305482009-11-20 Felix Zielcke <fzielcke@z-51.de>
30549
30550 * configure.ac (UNIFONT_BDF): Rename to ...
30551 (FONT_SOURCE): ... this. Update all users.
30552
a797824f
FZ
305532009-11-20 Felix Zielcke <fzielcke@z-51.de>
30554
30555 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
30556 to the list of unifont files to look for.
30557
cd4f42b0
RM
305582009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30559
30560 Patch from Joe Auricchio <jauricchio@gmail.com>
30561 * commands/minicmd.c (grub_mini_cmd_clear): New function.
30562 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
30563 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
30564
393c783d
FZ
305652009-11-19 Felix Zielcke <fzielcke@z-51.de>
30566
30567 * Makefile.in (install-local): Add a missing backslash.
30568
b2f1e327
FZ
305692009-11-19 Felix Zielcke <fzielcke@z-51.de>
30570
30571 * include/grub/x86_64/io.h: New file.
30572
f577f7a0
RM
305732009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30574
30575 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
30576 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
30577 Include `"progname.h"'.
30578 (main): Initialize gettext.
30579 * util/i386/pc/grub-setup.c: Gettexttize.
30580 * util/i386/pc/grub-mkimage.c: Likewise.
30581
30582 * Makefile.in (po/*.po): Redefine as ...
30583 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
30584
3bc7896c
RM
30585 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
30586
c37943b6
RM
305872009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30588
30589 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
30590 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
30591 (program_name): Remove.
30592 (main): Initialize gettext support.
6323f705
RM
30593 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
30594 Include `<libintl.h>'.
30595 (_): New macro.
c37943b6
RM
30596
30597 * util/mkisofs/eltorito.c: Gettexttize.
30598 * util/mkisofs/joliet.c: Likewise.
30599 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
30600 * util/mkisofs/multi.c: Likewise.
30601 * util/mkisofs/rock.c: Likewise.
30602 * util/mkisofs/tree.c: Likewise.
30603 * util/mkisofs/write.c: Likewise.
30604
3bc7896c
RM
30605 * po/POTFILES: Update with new files.
30606
5ce77c6e
RM
306072009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30608
30609 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
30610 * util/mkisofs/iso9660.h: Likewise.
30611 * util/mkisofs/joliet.c: Likewise.
30612 * util/mkisofs/mkisofs.c: Likewise.
30613 * util/mkisofs/mkisofs.h: Likewise.
30614 * util/mkisofs/rock.c: Likewise.
30615 * util/mkisofs/tree.c: Likewise.
30616 * util/mkisofs/write.c: Likewise.
30617
30618 * util/mkisofs/eltorito.c (rcsid): Remove.
30619 * util/mkisofs/hash.c: Likewise.
30620 * util/mkisofs/joliet.c: Likewise.
30621 * util/mkisofs/name.c: Likewise.
30622 * util/mkisofs/rock.c: Likewise.
30623 * util/mkisofs/tree.c: Likewise.
30624 * util/mkisofs/write.c: Likewise.
30625
1dabbc77
RM
306262009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30627
30628 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
30629 instead of static allocation.
30630 * util/mkisofs/match.h: Likewise.
30631
633877cb
RM
306322009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30633
3bc7896c
RM
30634 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
30635 and `util/grub.d/10_linux.in'.
633877cb
RM
30636 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
30637 translatable Shell files.
30638
af1c0c85
RM
306392009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30640
30641 * Makefile.in ($(srcdir)/aclocal.m4): New target.
30642
769ae37b
RM
306432009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30644
30645 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 30646 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
30647 * util/grub.d/10_kfreebsd.in (bindir): New variable.
30648 Add gettext initialization.
30649 (kfreebsd_entry): Make menuentry output translatable.
30650
306512009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30652
30653 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
30654 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
30655 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
30656 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
30657 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 30658 * po/LINGUAS: New file.
769ae37b
RM
30659
306602009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30661
30662 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
30663 other things).
30664 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
30665 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
30666 bindtextdomain() calls for gettext initialization.
30667
306682009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30669
30670 * gnulib/progname.c: New file (imported from Gnulib).
30671 * gnulib/progname.h: Likewise.
30672 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30673 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
30674 (usage): Replace `progname' with `program_name'.
30675 (main): Use set_program_name() for program name initialization.
30676
306772009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30678
30679 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
30680 from here ...
30681 * Makefile.in (CPPFLAGS): ... to here.
30682
306832009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30684
30685 * aclocal.m4: Move from here ...
30686 * acinclude.m4: ... to here.
30687 * autogen.sh: Add call to `aclocal'.
30688 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
30689
306902009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30691
30692 * Makefile.in (CLEANFILES): Add `po/*.mo'.
30693 (LINGUAS): New variable.
30694 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
30695 (install-local): Install MO files.
30696 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
30697 * include/grub/i18n.h: New file.
3bc7896c
RM
30698 * po/POTFILES: New file.
30699 * po/ca.po: New file.
769ae37b
RM
30700 * util/grub.d/10_linux.in (bindir): New variable.
30701 Add gettext initialization.
30702 (linux_entry): Make menuentry output translatable.
30703 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
30704 (usage): Make --help output translatable.
30705 (main): Initialize gettext.
30706
02c0a6ad
RM
307072009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30708
30709 * import_gcry.py: New file (written by Vladimir with minor
30710 adjustments).
30711 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
30712 ciphers.
30713 * INSTALL: Document that Python is required for bootstrap.
30714
307152009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30716
30717 Import ciphers from libgcrypt 1.4.4.
30718
30719 * lib/libgcrypt/cipher/ChangeLog
30720 * lib/libgcrypt/cipher/ac.c
30721 * lib/libgcrypt/cipher/arcfour.c
30722 * lib/libgcrypt/cipher/bithelp.h
30723 * lib/libgcrypt/cipher/blowfish.c
30724 * lib/libgcrypt/cipher/camellia-glue.c
30725 * lib/libgcrypt/cipher/camellia.c
30726 * lib/libgcrypt/cipher/camellia.h
30727 * lib/libgcrypt/cipher/cast5.c
30728 * lib/libgcrypt/cipher/cipher.c
30729 * lib/libgcrypt/cipher/crc.c
30730 * lib/libgcrypt/cipher/des.c
30731 * lib/libgcrypt/cipher/dsa.c
30732 * lib/libgcrypt/cipher/ecc.c
30733 * lib/libgcrypt/cipher/elgamal.c
30734 * lib/libgcrypt/cipher/hash-common.c
30735 * lib/libgcrypt/cipher/hash-common.h
30736 * lib/libgcrypt/cipher/hmac-tests.c
30737 * lib/libgcrypt/cipher/md.c
30738 * lib/libgcrypt/cipher/md4.c
30739 * lib/libgcrypt/cipher/md5.c
30740 * lib/libgcrypt/cipher/primegen.c
30741 * lib/libgcrypt/cipher/pubkey.c
30742 * lib/libgcrypt/cipher/rfc2268.c
30743 * lib/libgcrypt/cipher/rijndael-tables.h
30744 * lib/libgcrypt/cipher/rijndael.c
30745 * lib/libgcrypt/cipher/rmd.h
30746 * lib/libgcrypt/cipher/rmd160.c
30747 * lib/libgcrypt/cipher/rsa.c
30748 * lib/libgcrypt/cipher/seed.c
30749 * lib/libgcrypt/cipher/serpent.c
30750 * lib/libgcrypt/cipher/sha1.c
30751 * lib/libgcrypt/cipher/sha256.c
30752 * lib/libgcrypt/cipher/sha512.c
30753 * lib/libgcrypt/cipher/tiger.c
30754 * lib/libgcrypt/cipher/twofish.c
30755 * lib/libgcrypt/cipher/whirlpool.c
30756
af2f93ac
RM
307572009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30758
30759 Fix build for systems without error().
30760
30761 * gnulib/error.c: New file (imported from Gnulib).
30762 * gnulib/error.h: Likewise.
30763 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
30764 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
30765 (this variable is now used by error()).
30766
73fb3dd5
FZ
307672009-11-16 Felix Zielcke <fzielcke@z-51.de>
30768
814f5e96
FZ
30769 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
30770 instead of relying that char is signed.
73fb3dd5 30771
a691ca33
VS
307722009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
30773
30774 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
30775 blocksize different from specified.
30776 (grub_pxefs_read): Likewise.
30777
2af8f0f4
FZ
307782009-11-16 Felix Zielcke <fzielcke@z-51.de>
30779
30780 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
30781
30782 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
30783 (grub_ata_readwrite): Likewise. Update 2 format strings.
30784 (grub_atapi_read): Likewise.
30785
30786 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
30787 * conf/i386.rmk (pkglib_MODULES): ... to here ...
30788 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
30789 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
30790 (ata_mod_LDFLAGS): Move from here ...
30791 * conf/i386.rmk: ... to here ...
30792 * conf/x86_64-efi.rmk: ... and here.
30793 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
30794 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
30795
83bdecaf
RM
307962009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30797
30798 Relicense multiboot.h, with RMS' blessing.
30799
30800 * include/multiboot.h: Change to X11 license.
30801
fd6fd3d7
RM
308022009-11-15 Robert Millan <rmh.grub@aybabtu.com>
30803
30804 Support --version in grub-mkisofs.
30805
30806 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
30807 (OPTION_VERSION): New macro.
30808 (ld_options): Recognize --version.
30809 (usage): Move `program_name' from here ...
30810 (program_name): ... to here. Add `static' qualifier.
30811 (main): Recognize `OPTION_VERSION'.
30812
16a88c49
FZ
308132009-11-15 Felix Zielcke <fzielcke@z-51.de>
30814
30815 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
30816 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
30817
a4158476
RM
308182009-11-14 Robert Millan <rmh.grub@aybabtu.com>
30819
30820 Fix help2man generation for mkisofs.
30821
30822 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
30823 (usage): Send output to stdout (rather than stderr).
30824
fc2208b0
RM
308252009-11-14 Robert Millan <rmh.grub@aybabtu.com>
30826
30827 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
30828 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
30829 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
30830 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
30831 (bin_SCRIPTS): Add `grub-mkfloppy'.
30832 (grub_mkfloppy_SOURCES): New variable.
30833
30834 * util/grub-mkrescue.in: New file.
30835 * util/i386/pc/grub-mkfloppy.in: New file.
30836
30837 * util/i386/coreboot/grub-mkrescue.in: Remove.
30838 * util/i386/pc/grub-mkrescue.in: Remove.
30839
8d0edf4a
RM
308402009-11-13 Robert Millan <rmh.grub@aybabtu.com>
30841
30842 * include/grub/multiboot.h (struct grub_multiboot_header): Move
30843 from here ...
30844 * include/multiboot.h (struct multiboot_header): ... to here. Update
30845 all users.
30846 * include/grub/multiboot.h (struct grub_multiboot_info): Move
30847 from here ...
30848 * include/multiboot.h (struct multiboot_info): ... to here. Update
30849 all users.
30850 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
30851 from here ...
30852 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
30853 Update all users.
30854 * include/grub/multiboot.h (struct grub_mod_list): Move
30855 from here ...
30856 * include/multiboot.h (struct multiboot_mod_list): ... to here.
30857 Update all users.
30858
a73f5969
RM
308592009-11-13 Robert Millan <rmh.grub@aybabtu.com>
30860
30861 * include/multiboot2.h (multiboot_word): Rename from this ...
30862 (multiboot2_word): ... to this. Update all users.
30863 (multiboot_header): Rename from this ...
30864 (multiboot2_header): ... to this. Update all users.
30865 (multiboot_tag_header): Rename from this ...
30866 (multiboot2_tag_header): ... to this. Update all users.
30867 (multiboot_tag_start): Rename from this ...
30868 (multiboot2_tag_start): ... to this. Update all users.
30869 (multiboot_tag_name): Rename from this ...
30870 (multiboot2_tag_name): ... to this. Update all users.
30871 (multiboot_tag_module): Rename from this ...
30872 (multiboot2_tag_module): ... to this. Update all users.
30873 (multiboot_tag_memory): Rename from this ...
30874 (multiboot2_tag_memory): ... to this. Update all users.
30875 (multiboot_tag_unused): Rename from this ...
30876 (multiboot2_tag_unused): ... to this. Update all users.
30877 (multiboot_tag_end): Rename from this ...
30878 (multiboot2_tag_end): ... to this. Update all users.
30879
1c8927f0
RM
308802009-11-13 Robert Millan <rmh.grub@aybabtu.com>
30881
30882 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
30883 this platform we should support Multiboot1 first.
30884
30885 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
30886 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
30887 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
30888
6e1e0d89
RM
308892009-11-12 Robert Millan <rmh.grub@aybabtu.com>
30890
30891 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
30892 of write calls (converting them to fwrite() if they aren't already).
30893 (get_torito_desc): Likewise.
30894 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
30895
7f2b34d8
RM
308962009-11-12 Robert Millan <rmh.grub@aybabtu.com>
30897
30898 * util/i386/pc/grub-install.in: Move from here ...
30899 * util/grub-install.in: ... to here. Update all users.
30900
c0ef3311
CW
309012009-11-11 Colin Watson <cjwatson@ubuntu.com>
30902
30903 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
30904
e1f240ff
RM
309052009-11-11 Robert Millan <rmh.grub@aybabtu.com>
30906
30907 Support for El Torito without floppy emulation.
30908
30909 * util/mkisofs/eltorito.c: Include `<errno.h>'.
30910 (init_boot_catalog): Improve error handling.
30911 (get_torito_desc): Don't use floppy emulation unless requested by
30912 user. Patch boot information table when requested via
30913 `-boot-info-table'.
30914 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
30915 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
30916 (use_boot_info_table): New variables.
30917 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
30918 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
30919 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
30920 `--eltorito-emul-floppy'.
30921 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
30922 and `OPTION_ELTORITO_EMUL_FLOPPY'.
30923 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
30924 (use_boot_info_table, get_731): New prototypes.
30925 * util/mkisofs/write.c (get_731): New function.
30926
af7d4de5
FZ
309272009-11-11 Felix Zielcke <fzielcke@z-51.de>
30928
30929 Fix the generation of the man page.
30930
30931 * util/pc/i386/grub-install.in: Source
30932 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
30933
2c55dbc0
RM
309342009-11-11 Robert Millan <rmh.grub@aybabtu.com>
30935
30936 Large file support for grub-mkisofs.
30937
30938 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
30939 * util/mkisofs/mkisofs.c (next_extent, last_extent)
30940 (session_start): Upgrade type to `uint64_t'. Update all users.
30941 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
30942 (struct directory_entry): Upgrade type of `starting_block' and
30943 `size' to `uint64_t'. Update all users.
30944 (struct deferred): Remove unused structure.
30945 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
30946 Update all users.
30947 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
30948 file is larger than `UINT32_MAX'.
30949 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
30950 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
30951 return value.
30952 (struct deferred_write): Upgrade type of `extent' and `size' to
30953 `uint64_t'. Update all users.
30954 (last_extent_written): Upgrade type to `uint64_t'. Update all
30955 users.
30956 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
30957 Update all users. Upgrade type of `remain' to `int64_t' and
30958 `use' to `size_t'. Use error() to handle fread() errors.
30959 (write_files): Rely on write_one_file() rather than calling
30960 xfwrite() directly.
30961
6a9cead5
FZ
309622009-11-09 Felix Zielcke <fzielcke@z-51.de>
30963
30964 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
30965
4825d790
RM
309662009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30967
30968 * util/mkisofs/fnmatch.c: Remove.
30969 * util/mkisofs/getopt1.c: Likewise.
30970 * util/mkisofs/getopt.c: Likewise.
30971 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
30972 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
30973 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
30974 `gnulib/getopt1.c' and `gnulib/getopt.c'.
30975 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
30976
30977 * configure.ac: Detect `mingw32msvc' host_os.
30978 Check for lstat(), getuid() and getgid().
30979
30980 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
30981 instances of `u_char' with `uint8_t'.
30982
30983 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
30984 [!HAVE_GETUID] (getuid): New function (stub).
30985 [!HAVE_GETGID] (getgid): Likewise.
30986 [!HAVE_LSTAT] (lstat): Likewise.
30987 [!S_IROTH] (S_IROTH): New macro (dummy).
30988 [!S_IRGRP] (S_IRGRP): Likewise.
30989
84b860d8
RM
309902009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30991
30992 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
30993 conditional expression).
30994
66e9b712
RM
309952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30996
30997 Import from Gnulib.
30998
30999 * gnulib/fnmatch.c: New file.
31000 * gnulib/fnmatch.h: Likewise.
31001 * gnulib/fnmatch_loop.c: Likewise.
31002 * gnulib/getopt.c: Likewise.
31003 * gnulib/getopt.h: Likewise.
31004 * gnulib/getopt1.c: Likewise.
31005 * gnulib/getopt_int.h: Likewise.
31006 * gnulib/gettext.h: Likewise.
31007
34f4a5b0
RM
310082009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31009
31010 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
31011 * normal/handler.c (read_handler_list): Likewise.
31012
ac451143
RM
310132009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31014
31015 Misc cleanup.
31016
31017 * kern/command.c (grub_register_command_prio): Use
31018 grub_zalloc() instead of explicitly zeroing data.
31019 * kern/list.c: Include `<grub/mm.h>'.
31020 (grub_named_list_find): Replace `0' with `NULL'.
31021 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
31022 (fs_module_list): Change type to `grub_named_list_t'. Update all
31023 users.
31024 * normal/dyncmd.c (read_command_list): Add space between function
31025 call and parenthesis.
31026 * normal/handler.c (read_handler_list): Likewise.
31027
4089b167
RM
310282009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31029
31030 * normal/auth.c (punishment_delay): Moved from here ...
31031 (grub_auth_strcmp): ... to here (inside function).
31032
325f5037
RM
310332009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31034
31035 * include/grub/list.h (struct grub_named_list): Remove `const'
31036 qualifier from `name'.
31037 (struct grub_prio_list): Likewise.
31038
7aea29a3
RM
310392009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31040
31041 * normal/auth.c: Include `<grub/time.h>'.
31042 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
31043
3fd6f044
RM
310442009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31045
31046 * normal/auth.c (punishment_delay): New variable.
31047 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
31048 (grub_auth_check_authentication): Punish failed login attempts with
31049 an incremental (2^N) delay.
31050
a4cd68e4
RM
310512009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31052
31053 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
31054 path with $(srcdir).
31055
7ad12f43
VS
310562009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31057
31058 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
31059
c1129f03
RM
310602009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31061
31062 * util/i386/coreboot/grub-mkrescue.in: New file.
31063 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
31064 variables.
31065
31066 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
31067 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
31068 * configure.ac: Add header and function checks to satisfy grub-mkisofs
31069 requirements.
31070 * util/mkisofs/defaults.h: New file.
31071 * util/mkisofs/eltorito.c: Likewise.
31072 * util/mkisofs/exclude.h: Likewise.
31073 * util/mkisofs/fnmatch.c: Likewise.
31074 * util/mkisofs/getopt.c: Likewise.
31075 * util/mkisofs/getopt1.c: Likewise.
31076 * util/mkisofs/hash.c: Likewise.
31077 * util/mkisofs/include/fctldefs.h: Likewise.
31078 * util/mkisofs/include/mconfig.h: Likewise.
31079 * util/mkisofs/include/prototyp.h: Likewise.
31080 * util/mkisofs/include/statdefs.h: Likewise.
31081 * util/mkisofs/iso9660.h: Likewise.
31082 * util/mkisofs/joliet.c: Likewise.
31083 * util/mkisofs/match.c: Likewise.
31084 * util/mkisofs/match.h: Likewise.
31085 * util/mkisofs/mkisofs.c: Likewise.
31086 * util/mkisofs/mkisofs.h: Likewise.
31087 * util/mkisofs/multi.c: Likewise.
31088 * util/mkisofs/name.c: Likewise.
31089 * util/mkisofs/rock.c: Likewise.
31090 * util/mkisofs/tree.c: Likewise.
31091 * util/mkisofs/write.c: Likewise.
31092
ec8bb77d
VS
310932009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31094
31095 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
31096 being insecure.
31097
3716b12c
RM
310982009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31099
31100 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
31101 `grub-mkimage' (and use $0 when possible).
31102
b97b7b91
RM
311032009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31104
31105 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
31106 error message for excessively large memory map.
31107
04114812
RM
311082009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31109
31110 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
31111 executable bit.
31112
e4eb2373
RM
311132009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31114
31115 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
31116 message for coreboot users.
31117
c926e1d5 311182009-11-07 Robert Millan <rmh.grub@aybabtu.com>
31119
31120 Fix build with GNU gold.
31121
31122 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
31123 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
31124 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
31125 link addresses.
31126 * aclocal.m4: Likewise.
31127
86e5b1db 311282009-11-04 Felix Zielcke <fzielcke@z-51.de>
31129
31130 * configure.ac (AC_PREREQ): Bump to 2.59d.
31131 * INSTALL: Make it more clear when Autoconf and Ruby are
31132 needed and when to run `./autogen.sh'.
31133
246cd78f 311342009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31135
31136 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
31137 OSes.
31138
4f9dfb37 311392009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31140
31141 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
31142
b82bd5e1 311432009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31144
31145 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
31146 giving it to GNU Mach.
31147
ff1a9bca 311482009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31149
31150 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
31151 GNU partition number to get internal GRUB partition number.
31152
61697d9c 311532009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31154
31155 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
31156 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
31157
a50569e1 311582009-11-01 Robert Millan <rmh.grub@aybabtu.com>
31159
31160 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
31161 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
31162 case.
31163
5b153867 311642009-11-01 Felix Zielcke <fzielcke@z-51.de>
31165
31166 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
31167
d9e2cd70 311682009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31169
31170 Fix build problem.
31171
31172 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
31173 `-isystem=$(srcdir)/include'.
31174
805111a4 311752009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31176
31177 * util/i386/pc/grub-install.in: Remove hint that device.map should be
31178 checked (grub-install doesn't currently rely on it).
31179
fa6e945f 311802009-10-29 Robert Millan <rmh.grub@aybabtu.com>
31181
31182 Revert SVN r2660.
31183
31184 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
31185 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31186 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
31187 * conf/i386-ieee1275.rmk: Likewise.
31188 * conf/i386-pc.rmk: Likewise.
31189 * conf/powerpc-ieee1275.rmk: Likewise.
31190 * conf/sparc64-ieee1275.rmk: Likewise.
31191 * conf/x86_64-efi.rmk: Likewise.
31192
cee15086 311932009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31194
31195 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
31196
95b9239e 311972009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31198
31199 * include/grub/misc.h: Stop checking for APPLE_CC.
31200
2ed19dfd 312012009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31202
31203 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
31204 doesn't cause an infinite call loop.
31205
fdcdde19 312062009-10-28 Felix Zielcke <fzielcke@z-51.de>
31207
31208 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
31209 strings.
31210
cefabfe1 312112009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31212
31213 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
31214 variable.
31215 * Makefile.in: Likewise.
31216
ed96ab6d 312172009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31218
31219 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
31220
0579b753 312212009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31222
31223 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
31224
478df409 312252009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31226
31227 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
31228
083d1679 312292009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31230
31231 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
31232 from here ...
31233 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
31234
5947ae32 312352009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31236
31237 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
31238 in $(MAKEINFO) invocation. This makes it clear in output that
31239 errors are being ignored.
31240
94180ff6 312412009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31242
31243 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
31244 from here ...
31245 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31246 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
31247 * conf/i386-ieee1275.rmk: Likewise.
31248 * conf/i386-pc.rmk: Likewise.
31249 * conf/powerpc-ieee1275.rmk: Likewise.
31250 * conf/sparc64-ieee1275.rmk: Likewise.
31251 * conf/x86_64-efi.rmk: Likewise.
31252
9031b03a 312532009-10-26 Colin Watson <cjwatson@ubuntu.com>
31254
31255 * util/grub-editenv.c (main): If only a command is given, use
31256 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
31257 (usage): FILENAME is now optional and has a default.
31258
e4f6809b 312592009-10-26 Colin Watson <cjwatson@ubuntu.com>
31260
31261 Improve grub-mkconfig performance when there are several menu
31262 entries on a single filesystem.
31263
31264 * util/grub.d/10_linux.in (linux_entry): Cache the output of
31265 prepare_grub_to_access_device.
31266 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
31267 * util/grub.d/30_os-prober.in: Likewise.
31268
67937d4d 312692009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31270
31271 * util/grub.d/10_freebsd.in: Remove.
31272 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
31273 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
31274
ee3756cc 312752009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31276
5c35048e 31277 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 31278
4dea1c6f 312792009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31280
31281 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
31282 grub_util_error() call.
31283
042484d7 312842009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31285
31286 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
31287 `reserved_first_sector' member.
31288 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
31289 `reserved_first_sector' to 1.
31290 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
31291 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
31292 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
31293 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
31294 filesystems which begin at first sector.
31295 (options): New option --skip-fs-probe.
31296 (main): Handle --skip-fs-probe and pass it to setup().
31297
d64448a7 312982009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31299
31300 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
31301 (memset): Fix function prototype.
31302
508d42ec 313032009-10-25 Robert Millan <rmh.grub@aybabtu.com>
313042009-10-25 Vasily Averin <vvs@parallels.com>
31305
31306 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
31307 `dirent.direntlen == 0'.
31308
b240e30c 313092009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31310
31311 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
31312 `cpio'.
31313 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
31314
346e7fbe 313152009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31316
31317 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
31318 `__trampoline_setup' and `__ucmpdi2'.
31319 * include/grub/powerpc/libgcc.h: Only export symbols for functions
31320 that libgcc provides.
31321
cdb308b0 313222009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31323
31324 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
31325 * include/grub/sparc64/libgcc.h (memset): Likewise.
31326 * include/grub/misc.h (memset, memcmp): New function prototypes.
31327
fb26abc2 313282009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31329
31330 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
31331 `cpio'.
31332 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
31333
f6693890 313342009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31335
31336 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
31337 * docs/grub.cfg: Compensate for recent change in multiboot
31338 loader (since 2009-08-14 it won't pass filename to payload).
31339 * util/grub.d/10_hurd.in: Likewise.
31340
0933cdc0 313412009-10-21 Felix Zielcke <fzielcke@z-51.de>
31342
31343 * config.guess: Update to latest version from config git
31344 repository.
31345 * config.sub: Likewise.
31346
3b2fe8c2 313472009-10-20 Robert Millan <rmh.grub@aybabtu.com>
31348
31349 Fix build on sparc64.
31350
31351 * configure.ac: Perform checks for libgcc symbols before
31352 adding `-nostdlib' to LDFLAGS.
31353
46695a62 313542009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31355
31356 Let user specify OpenBSD root device.
31357
31358 * loader/i386/bsd.c (openbsd_root): New variable.
31359 (openbsd_opts): New option 'root'.
31360 (OPENBSD_ROOT_ARG): New macro.
31361 (grub_openbsd_boot): Use 'openbsd_root'.
31362 (grub_cmd_openbsd): Fill 'openbsd_root'.
31363
d2b6b7fc 313642009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31365
31366 * NEWS: Misc adjustments.
31367
421bd7ac 313682009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31369
31370 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
31371
f1d29d87 313722009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31373
31374 * configure.ac: Bump version to 1.97.
31375
6f3cd880 313762009-10-16 Colin Watson <cjwatson@ubuntu.com>
31377
31378 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
31379 -mno-3dnow on x86 architectures. Some toolchains enable these
31380 features by default, but they rely on registers that aren't enabled
31381 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
31382
035f7122 313832009-10-15 Robert Millan <rmh.grub@aybabtu.com>
31384
31385 Make entry text a bit more readable.
31386
31387 * util/grub.d/10_linux.in: Add `with' before `Linux'.
31388
44998e58 313892009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31390
31391 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
31392
cd2851b3 313932009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31394
31395 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
31396 operations.
31397
c6f3b249 313982009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31399
31400 * configure.ac: Add missing dollar.
31401
6b5886ba 314022009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31403
31404 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
31405
31406 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
31407 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
31408 exports.
31409 * include/grub/sparc64/libgcc.h: Likewise. Use
31410 preprocessor conditionals.
31411
e9d66f6d 314122009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31413
31414 * conf/common.rmk (grub-dumpbios): Remove rule.
31415 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
31416 * util/grub-dumpbios.in: Remove file.
31417
9155bc17 314182009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31419
31420 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
31421 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
31422
31423 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
31424 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
31425 users.
31426
31427 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
31428 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
31429 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
31430 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
31431 users.
31432
bf7f7a18 314332009-10-12 Robert Millan <rmh.grub@aybabtu.com>
31434
31435 * term/tparm.c: Switch to GPLv3.
31436
86564c26 314372009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31438
31439 * include/grub/i386/cpuid.h: Add header protection.
31440
5c936493 314412009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31442
31443 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
31444
31445 * include/grub/i386/cpuid.h: New file.
31446 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
31447 (has_longmode): Rename to ...
31448 (grub_cpuid_has_longmode): ... this. Update all users. Remove
31449 `static' attribute.
31450 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
31451 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
31452 on a CPU that doesn't implement AMD64 instruction set.
31453
186e7cf2 314542009-10-06 Colin Watson <cjwatson@ubuntu.com>
31455
31456 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
31457 that version.texi is rebuilt on version number changes.
31458
83b65c4a 314592009-10-06 Colin Watson <cjwatson@ubuntu.com>
31460
31461 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
31462 Fixes bug #27602.
31463
d244281c 314642009-10-06 Colin Watson <cjwatson@ubuntu.com>
31465
31466 * util/i386/pc/grub-install.in: Source
31467 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
31468 that the --grub-probe option will work.
31469 * util/sparc64/ieee1275/grub-install.in: Likewise.
31470
da25306d 314712009-10-05 Robert Millan <rmh.grub@aybabtu.com>
31472
31473 * configure.ac: Bump version to 1.97~beta4.
31474
e8ee83c0 314752009-10-03 Robert Millan <rmh.grub@aybabtu.com>
31476
31477 Resync grub-mkdevicemap in x86_64-efi.
31478
31479 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
31480 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
31481 `util/devicemap.c'.
31482
50dcabcf 314832009-10-01 Colin Watson <cjwatson@ubuntu.com>
31484
31485 * util/grub-editenv.c (create_envblk_file): Write new block with a
31486 .new suffix and then rename it into place, to ensure atomic
31487 creation.
31488
0e51c3a7 314892009-09-28 Robert Millan <rmh.grub@aybabtu.com>
31490
31491 Do not automatically install headers.
31492
31493 * Makefile.in (include_DATA): Remove. Update all users.
31494
31299a95 314952009-09-26 Robert Millan <rmh.grub@aybabtu.com>
31496
31497 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
31498 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
31499
31500 * util/osdetect.lua: Remove.
31501 * script/lua/lauxlib.c: Likewise.
31502 * script/lua/ldebug.c: Likewise.
31503 * script/lua/grub_main.c: Likewise.
31504 * script/lua/lauxlib.h: Likewise.
31505 * script/lua/ldebug.h: Likewise.
31506 * script/lua/ltablib.c: Likewise.
31507 * script/lua/liolib.c: Likewise.
31508 * script/lua/lstrlib.c: Likewise.
31509 * script/lua/lualib.h: Likewise.
31510 * script/lua/ldo.c: Likewise.
31511 * script/lua/ldump.c: Likewise.
31512 * script/lua/ldo.h: Likewise.
31513 * script/lua/loslib.c: Likewise.
31514 * script/lua/lundump.c: Likewise.
31515 * script/lua/grub_lib.c: Likewise.
31516 * script/lua/ldblib.c: Likewise.
31517 * script/lua/lundump.h: Likewise.
31518 * script/lua/lmem.c: Likewise.
31519 * script/lua/grub_lib.h: Likewise.
31520 * script/lua/lmathlib.c: Likewise.
31521 * script/lua/lstate.c: Likewise.
31522 * script/lua/ltm.c: Likewise.
31523 * script/lua/lvm.c: Likewise.
31524 * script/lua/lmem.h: Likewise.
31525 * script/lua/lstate.h: Likewise.
31526 * script/lua/ltm.h: Likewise.
31527 * script/lua/ltable.c: Likewise.
31528 * script/lua/lvm.h: Likewise.
31529 * script/lua/llex.c: Likewise.
31530 * script/lua/lgc.c: Likewise.
31531 * script/lua/grub_lua.h: Likewise.
31532 * script/lua/loadlib.c: Likewise.
31533 * script/lua/lfunc.c: Likewise.
31534 * script/lua/lopcodes.c: Likewise.
31535 * script/lua/lparser.c: Likewise.
31536 * script/lua/ltable.h: Likewise.
31537 * script/lua/llex.h: Likewise.
31538 * script/lua/lgc.h: Likewise.
31539 * script/lua/lfunc.h: Likewise.
31540 * script/lua/lbaselib.c: Likewise.
31541 * script/lua/lopcodes.h: Likewise.
31542 * script/lua/lparser.h: Likewise.
31543 * script/lua/lzio.c: Likewise.
31544 * script/lua/linit.c: Likewise.
31545 * script/lua/lobject.c: Likewise.
31546 * script/lua/llimits.h: Likewise.
31547 * script/lua/lstring.c: Likewise.
31548 * script/lua/lzio.h: Likewise.
31549 * script/lua/lapi.c: Likewise.
31550 * script/lua/lcode.c: Likewise.
31551 * script/lua/lua.h: Likewise.
31552 * script/lua/lobject.h: Likewise.
31553 * script/lua/lstring.h: Likewise.
31554 * script/lua/lapi.h: Likewise.
31555 * script/lua/lcode.h: Likewise.
31556 * script/lua/luaconf.h: Likewise.
31557
cb8a2c38 315582009-09-26 Colin Watson <cjwatson@ubuntu.com>
31559
31560 * docs/grub.texi (Command-line and menu entry commands): Document
31561 date and echo commands.
31562
6b9b6276 315632009-09-24 Pavel Roskin <proski@gnu.org>
31564
31565 * include/grub/kernel.h (struct grub_module_header): Remove
31566 `grub_module_header_types'. Make `type' unsigned. Make `size'
31567 32-bit on all platforms.
31568 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
31569 8-bit field. Use grub_host_to_target32() for `size'.
31570 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
31571 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
31572 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
31573
4e5a02a7 315742009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31575
31576 Fix "lost keypress" bug in at_keyboard.
31577
31578 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
31579 Checks for readyness of input buffer (without flushing it).
31580 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
31581 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
31582
c6dcedf6 315832009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31584
31585 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
31586 size check within GRUB_MACHINE_PCBIOS section.
31587
74c958b1 315882009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31589
31590 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
31591 return value.
31592 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
31593 KEYBOARD_ISREADY check.
31594 (grub_at_keyboard_checkkey): Rename to ...
31595 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
31596 Remove gratuitous cast.
31597
ff420223 315982009-09-23 Colin Watson <cjwatson@ubuntu.com>
31599
31600 * configure.ac: Call AC_PROG_MKDIR_P.
31601 * Makefile.in (docs/stamp-vti): Create docs directory. Create
31602 version.texi in $(builddir) rather than $(srcdir).
31603 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
31604 to makeinfo's @include search path.
31605
d96875df 316062009-09-23 Felix Zielcke <fzielcke@z-51.de>
31607
31608 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
31609
9b3f8365 316102009-09-23 Felix Zielcke <fzielcke@z-51.de>
31611
31612 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
31613 for `*.dpkg-new'.
31614
c44c90db 316152009-09-21 Colin Watson <cjwatson@ubuntu.com>
31616
31617 Build info documentation. Some code borrowed from Automake.
31618
31619 * configure.ac: Check for makeinfo.
31620 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
31621 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
31622 docs/version.texi.
31623 (MOSTLYCLEANFILES): Add vti.tmp.
31624 (docs/version.texi, docs/stamp-vti): Update automatically.
31625 (docs/grub.info): Build info documentation. Use --force and ignore
31626 errors for now.
31627 (all-local): Add $(INFOS).
31628 (install-local): Install info files.
31629 (uninstall): Uninstall info files.
31630 * docs/version.texi: Remove from revision control. This file is
31631 automatically generated on build now.
31632 * gendistlist.sh: Add `*.info'.
31633
e0b37bb5 316342009-09-21 Felix Zielcke <fzielcke@z-51.de>
31635
31636 * kern/term.c: Fix indentation.
31637
5a78865b 316382009-09-21 Felix Zielcke <fzielcke@z-51.de>
31639
31640 * util/hostdisk.c: Fix a comment.
31641
dace7e8a 316422009-09-20 Robert Millan <rmh.grub@aybabtu.com>
31643
31644 Fix regression introduced in r2539.
31645
31646 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
31647 to 0xA1.
31648
a83d079b 316492009-09-19 Colin Watson <cjwatson@ubuntu.com>
31650
31651 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 31652 os-prober. Under normal operation, it does not print anything to
31653 stderr; if it does, we need to debug it, and throwing away stderr
31654 makes that excessively difficult.
a83d079b 31655
be94a509 316562009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
31657
31658 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
31659
63f745e8 316602009-09-16 Robert Millan <rmh.grub@aybabtu.com>
31661
31662 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
31663 AC_LANG_PROGRAM from autoconf.
31664 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
31665 prototypes (fixes warning).
31666
31667 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
31668 `--disable-werror' was used.
31669
bbb2a70f 316702009-09-16 Robert Millan <rmh.grub@aybabtu.com>
31671
31672 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
31673 uninitialized `lastaddr'.
31674
77c24f1d 316752009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
31676
0f0b8c87 31677 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 31678
07197f23 316792009-09-14 Colin Watson <cjwatson@ubuntu.com>
31680
31681 * commands/test.c (get_fileinfo): Return immediately if
31682 grub_fs_probe fails.
31683
dabf1798 316842009-09-14 José Martínez <xosemp@gmail.com>
31685
31686 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
31687
d52109a7 316882009-09-14 Colin Watson <cjwatson@ubuntu.com>
31689
31690 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
31691 output.
31692
56532179 316932009-09-13 Robert Millan <rmh.grub@aybabtu.com>
31694
31695 * configure.ac: Remove --enable-grub-pe2elf. Only build
31696 grub-pe2elf when needed by the build system itself.
31697 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
31698
8ef070f5 316992009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31700
31701 * configure.ac: Bump version to 1.97~beta3.
31702 * docs/version.texi: Likewise.
31703
61229557 317042009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31705
31706 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
31707 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
31708 from here ...
31709 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
31710 (grub_linux_setup_video): ... to here (with some adjustments).
31711
5c9f8d84 317122009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31713
31714 Fix memory corruption issue (spotted by Colin Watson).
31715
31716 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
31717 causing returned size to be stored in an incorrect memory location.
31718 Fix use of uninitialized value when storing the returned size.
31719
e8f5d6e9 317202009-09-12 Yves Blusseau <blusseau@zetam.org>
31721
31722 Change clean rules to properly remove files
31723
31724 * genmk.rb: add new clean rules
31725 * Makefile.in (clean): add the new targets
31726 (mostlyclean): likewise
31727
cda2a409 317282009-09-11 Colin Watson <cjwatson@ubuntu.com>
31729
31730 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
31731 to grub_uint64_t.
31732 * fs/ntfs.c (init_file): Understand 64-bit sizes for
31733 non-resident files.
31734
86695375 317352009-09-11 Colin Watson <cjwatson@ubuntu.com>
31736
31737 * configure.ac: Don't look for help2man when cross-compiling. Fixes
31738 part of bug #27349.
31739
8aa1541a 317402009-09-10 Felix Zielcke <fzielcke@z-51.de>
31741
31742 * util/grub-mkconfig.in: Make the created config mode 400 and
31743 print a warning if it fails.
31744
48d9bb0a 317452009-09-10 Robert Millan <rmh.grub@aybabtu.com>
31746
31747 * util/grub.d/40_custom.in: Ask user to type custom entries below
31748 comment, rather than below 'exec tail' line.
31749
3b0521be 317502009-09-10 Colin Watson <cjwatson@ubuntu.com>
31751
31752 * util/grub.d/40_custom.in: Make sure that the explanatory text is
31753 visible in grub.cfg.
31754
50051d55 317552009-09-10 Colin Watson <cjwatson@ubuntu.com>
31756
31757 * util/grub.d/40_custom.in: Make it a little clearer how to use this
31758 file.
31759
c0d34387 317602009-09-10 Felix Zielcke <fzielcke@z-51.de>
31761
31762 * docs/grub.cfg: Add an example menu entry for memtest86+.
31763
80a608f3 317642009-09-09 Felix Zielcke <fzielcke@z-51.de>
31765
a2094832 31766 * config.guess: Update to latest version from config git.
80a608f3 31767 * config.sub: Likewise.
31768
99423078 317692009-09-08 Colin Watson <cjwatson@ubuntu.com>
31770
31771 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
31772 unknown-command case. Fixes bug #27320.
31773
44454e4c 317742009-09-08 Felix Zielcke <fzielcke@z-51.de>
31775
31776 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
31777 `help' if the command exists.
31778
e30d87ad 317792009-09-06 Robert Millan <rmh.grub@aybabtu.com>
31780
31781 * INSTALL: Require GCC 4.1.3 or later.
31782
9a86f1ec 317832009-09-06 Yves Blusseau <blusseau@zetam.org>
31784
31785 * Makefile.in (RMKFILES): add i386-qemu.rmk
31786 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
31787 $(srcdir)/stamp-h.in
31788
7f26d466 317892009-09-05 Robert Millan <rmh.grub@aybabtu.com>
31790
31791 * util/grub-probe.c (probe): Comment out buggy codepath, which
31792 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
31793 should be re-enabled after 1.97.
31794
3a613259 317952009-09-05 Felix Zielcke <fzielcke@z-51.de>
31796
31797 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
31798 find searches for.
31799
197f76c7 318002009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
31801
31802 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
31803 unnecessary calls to grub_error.
31804
70ba68ce 318052009-09-04 Colin Watson <cjwatson@ubuntu.com>
31806
31807 * NEWS: Mention `keystatus' and Unicode fonts.
31808
4ff0d7a4 318092009-09-04 Robert Millan <rmh.grub@aybabtu.com>
31810
31811 * configure.ac: Bump version to 1.97~beta2.
31812 * docs/version.texi: Likewise.
31813
77c55a87 318142009-09-03 Colin Watson <cjwatson@ubuntu.com>
31815
31816 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
31817 containing unwind information in some cases where it previously did
31818 not. Use -fno-dwarf2-cfi-asm if available to restore the old
31819 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
31820 discussion.
31821
f79572cd 318222009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
31823
31824 Embedding loadenv module into grub-emu
31825
31826 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
31827 commands/loadenv.c
31828 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
31829 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
31830 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
31831 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
31832 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
31833 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
31834
93a81088 318352009-09-03 Magnus Granberg <zorry@ume.nu>
31836
31837 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
31838 include -fPIE in the default specs.
31839 * configure.ac: Check if pie_possible is yes and add -fno-PIE
31840 to TARGET_CFLAGS.
31841
160034b2 318422009-09-03 Felix Zielcke <fzielcke@z-51.de>
31843
31844 * INSTALL: Note that GNU Bison 2.3 or later is required.
31845
087c07c4 318462009-09-03 Colin Watson <cjwatson@ubuntu.com>
31847
31848 * kern/i386/pc/startup.S: Fix typo.
31849
cbf978c0 318502009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
31851
31852 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
31853 according to GCS.
31854
318552009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 31856
31857 * docs/grub.texi (Naming convention): Describe one-based partition
31858 numbering.
31859 (Device syntax): Likewise.
31860 (File name syntax): Likewise.
31861 (Block list syntax): Likewise.
31862 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
31863 menu.lst.
31864 (File name syntax): Likewise.
31865 (Command-line and menu entry commands): Document acpi, blocklist,
31866 crc, export, insmod, keystatus, ls, set, and unset commands.
31867
f3e8cdfd 318682009-09-02 Colin Watson <cjwatson@ubuntu.com>
31869
31870 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
31871 to avoid implying that only one of --shift, --ctrl, or --alt may be
31872 used.
31873
c0bc232b 318742009-09-02 Colin Watson <cjwatson@ubuntu.com>
31875
31876 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
31877 rather than comparing against S_IFREG, which will almost never work.
31878
aa0f752d 318792009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
31880
31881 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
31882 (write_blocklists): Likewise.
31883
ecb3166a 318842009-09-01 Colin Watson <cjwatson@ubuntu.com>
31885
31886 * script/lua/grub_lua.h (fputs): Supply a format string as the first
31887 argument to grub_printf.
31888
c403a125 318892009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 31890
31891 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 31892 non GNU test.
31aba781 31893
b5e7312c 318942009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
31895
31896 * kern/file.c (grub_file_read): Spelling fix
31897
fe00f472 318982009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
31899
31900 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
31901 loading of headers in some cases.
31902
cc55302e 319032009-08-30 Robert Millan <rmh.grub@aybabtu.com>
31904
31905 * configure.ac: Bump version to 1.97~beta1.
31906 * docs/version.texi: Likewise.
31907
5c90cdd2 319082009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 31909
31910 * include/grub/i386/xnu.h: Add license header.
31911 include grub/err.h explicitly.
31912
c90edae4 319132009-08-29 Robert Millan <rmh.grub@aybabtu.com>
31914
31915 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
31916 to `ufs' in the vfs.root.mountfrom kernel parameter.
31917
d8888b5c 319182009-08-29 Robert Millan <rmh.grub@aybabtu.com>
31919
31920 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
31921
31922 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
31923 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
31924
31925 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
31926 `ARRAY_SIZE' macro.
31927
6f07b921 319282009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31929
31930 * kern/file.c (grub_file_read): Check offset.
31931 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
31932 * fs/jfs.c (grub_jfs_read_file): Likewise.
31933 * fs/ntfs.c (grub_ntfs_read): Likewise.
31934 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
31935 * fs/minix.c (grub_minix_read_file): Correct offset check.
31936 * fs/ufs.c (grub_ufs_read_file): Likewise.
31937
b4f34077 319382009-08-28 Colin Watson <cjwatson@ubuntu.com>
31939
31940 * term/i386/pc/console.c (bios_data_area): Cast
31941 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
31942
e7c69859 319432009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31944
31945 1-bit optimised blitters.
31946
31947 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
31948 prototype.
31949 (grub_video_fbblit_replace_24bit_1bit): Likewise.
31950 (grub_video_fbblit_replace_16bit_1bit): Likewise.
31951 (grub_video_fbblit_replace_8bit_1bit): Likewise.
31952 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
31953 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
31954 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
31955 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
31956 function.
31957 (grub_video_fbblit_replace_24bit_1bit): Likewise.
31958 (grub_video_fbblit_replace_16bit_1bit): Likewise.
31959 (grub_video_fbblit_replace_8bit_1bit): Likewise.
31960 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
31961 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
31962 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
31963 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
31964 when possible.
31965 * video/video.c (grub_video_get_blit_format): Return
31966 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
31967
a57da43f 319682009-08-28 Colin Watson <cjwatson@ubuntu.com>
31969
31970 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
31971 the first argument to grub_printf.
31972
4cbe67e5 319732009-08-28 Colin Watson <cjwatson@ubuntu.com>
319742009-08-28 Robert Millan <rmh.grub@aybabtu.com>
31975
31976 Add `getkeystatus' terminal method. Add a new `keystatus' command
31977 to query it.
31978
31979 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
31980 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
31981 modifier key bitmasks.
31982 (struct grub_term_input): Add `getkeystatus' member.
31983 (grub_getkeystatus): Add prototype.
31984 * kern/term.c (grub_getkeystatus): New function.
31985
31986 * include/grub/i386/pc/memory.h
31987 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
31988 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
31989 Data Area layout.
31990 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
31991 (grub_console_term_input): Set `getkeystatus' member.
31992 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
31993 constants.
31994 (grub_usb_keyboard_getreport): Likewise.
31995 (grub_usb_keyboard_checkkey): Likewise.
31996 (grub_usb_keyboard_getkeystatus): New function.
31997 (grub_usb_keyboard_term): Set `getkeystatus' member.
31998
31999 * commands/keystatus.c: New file.
32000 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
32001 (keystatus_mod_SOURCES): New variable.
32002 (keystatus_mod_CFLAGS): Likewise.
32003 (keystatus_mod_LDFLAGS): Likewise.
32004 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
32005 commands/keystatus.c.
32006 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32007 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32008 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32010 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32011 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 32012
6e2a9085 320132009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32014
32015 Split befs.mod and afs.mod into *_be.mod and *.mod
32016
32017 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
32018 (grub_fstest_SOURCES): Likewise.
32019 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
32020 (afs_be_mod_SOURCES): New variable.
32021 (afs_be_mod_CFLAGS): Likewise.
32022 (afs_be_mod_LDFLAGS): Likewise.
32023 (befs_be_mod_SOURCES): Likewise.
32024 (befs_be_mod_CFLAGS): Likewise.
32025 (befs_be_mod_LDFLAGS): Likewise.
32026 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
32027 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32028 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32029 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
32030 (grub_emu_SOURCES): Likewise.
32031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32032 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32033 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32034 * fs/afs_be.c: New file.
32035 * fs/befs_be.c: New file.
32036 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
32037 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
32038 (U16): Replaced with ...
32039 (grub_afs_to_cpu16): ...this. All users updated.
32040 (U32): Replaced with ...
32041 (grub_afs_to_cpu32): ...this. All users updated.
32042 (U64): Replaced with ...
32043 (grub_afs_to_cpu64): ...this. All users updated.
32044 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
32045 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 32046 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 32047 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32048 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32049 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32050 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32051 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32052 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32053 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32054 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32055
32a71655 320562009-08-26 Bean <bean123ch@gmail.com>
32057
32058 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
32059 64-bit number.
32060 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
32061 (grub_xfs_inode_block): Change return type to grub_uint64_t.
32062 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
32063
552bf6c5 320642009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32065
32066 NetBSD memory map support.
32067
32068 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
32069 (grub_netbsd_btinfo_mmap_header): New structure.
32070 (grub_netbsd_btinfo_mmap_entry): Likewise.
32071 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
32072
1ae2078c 320732009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32074
32075 Enable bsd.mod on coreboot.
32076
32077 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
32078 (bsd_mod_SOURCES): New variable.
32079 (bsd_mod_CFLAGS): Likewise.
32080 (bsd_mod_LDFLAGS): Likewise.
32081 (bsd_mod_ASFLAGS): Likewise.
32082 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
32083 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
32084
beefc598 320852009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32086
32087 Cleanup NetBSD root support.
32088
32089 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
32090 grub_bsd_get_device.
32091 Fix typo.
32092
3b76e68b 320932009-08-25 Felix Zielcke <fzielcke@z-51.de>
32094
32095 * util/grub.d/00_header.in: Move check for the video backend of
32096 gfxterm from here ...
32097 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
32098 a suitable video backend.
32099
aea664ea 321002009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32101
32102 Fix breakage in grub-setup.
32103
32104 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
32105 "msdos_partition_map".
32106
ff747d50 321072009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32108
32109 Fix breakage in normal/auth.c.
32110
32111 * normal/auth.c (grub_iswordseparator): New function.
32112
e7e1f93f 321132009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32114
32115 Authentication support.
32116
32117 * commands/password.c: New file.
32118 * conf/common.rmk (pkglib_MODULES): Add password.mod.
32119 (password_mod_SOURCES): New variable.
32120 (password_mod_CFLAGS): Likewise.
32121 (password_mod_LDFLAGS): Likewise.
32122 (normal_mod_SOURCES): Add normal/auth.c.
32123 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
32124 normal/auth.c.
32125 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32126 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32127 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32128 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32129 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32130 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32131 * include/grub/auth.h: New file.
32132 * include/grub/err.h (grub_err_t): New enum value
32133 GRUB_ERR_ACCESS_DENIED.
32134 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
32135 'users'.
32136 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
32137 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
32138 users updated.
32139 * normal/auth.c: New file.
32140 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
32141 (grub_cmdline_run): Don't allow to go to command line without
32142 authentication.
32143 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
32144 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
32145 menuentry without superuser rights.
32146 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
32147 user isn't a superuser.
32148
70f1161d 321492009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32150
32151 Save space by inlining misc.c functions.
32152
32153 * kern/misc.c (grub_iswordseparator): Made static.
32154 * kern/misc.c (grub_strcat): Moved from here ...
32155 * include/grub/misc.h (grub_strcat): ... here. Inlined.
32156 * kern/misc.c (grub_strncat): Moved from here ...
32157 * include/grub/misc.h (grub_strncat): ... here. Inlined.
32158 * kern/misc.c (grub_strcasecmp): Moved from here ...
32159 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
32160 * kern/misc.c (grub_strncasecmp): Moved from here ...
32161 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
32162 * kern/misc.c (grub_isalpha): Moved from here ...
32163 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
32164 * kern/misc.c (grub_isdigit): Moved from here ...
32165 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
32166 * kern/misc.c (grub_isgraph): Moved from here ...
32167 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
32168 * kern/misc.c (grub_tolower): Moved from here ...
32169 * include/grub/misc.h (grub_tolower): ... here. Inlined.
32170
48e40bff 321712009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32172
32173 * script/sh/function.c (grub_script_function_find): Cut error message
32174 not to flood terminal.
32175 * script/sh/lexer.c (grub_script_yylex): Remove command line length
32176 limit.
32177 * script/sh/script.c (grub_script_arg_add): Duplicate string.
32178
c385bfc3 321792009-08-24 Colin Watson <cjwatson@ubuntu.com>
32180
32181 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
32182 `report' grub_uint8_t *.
32183 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
32184 Use a 50-millisecond timeout rather than just repeating
32185 grub_usb_keyboard_getreport 50 times.
32186 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
32187
2d21e3e8 321882009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32189
32190 Rename *_partition_map to part_*
32191
32192 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
32193 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
32194 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
32195 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
32196 All users updated.
32197 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
32198 All users updated.
32199 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
32200 * util/grub-probe.c (probe_partmap): Don't transform partition name
32201 to get module name.
32202
dd103c4e 322032009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32204
32205 Fix OpenBSD and NetBSD support.
32206
32207 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
32208 memory address conflict.
32209 (OPENBSD_MMAP_ACPI): New definition.
32210 (OPENBSD_MMAP_NVS): Likewise.
32211 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
32212 and OPENBSD_MMAP_NVS.
32213 Add memory map terminator
32214 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 32215 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 32216
16c84d74 322172009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32218
32219 Let user specify NetBSD root device.
32220
32221 * loader/i386/bsd.c (netbsd_root): New variable.
32222 (netbsd_opts): New option 'root'.
32223 (NETBSD_ROOT_ARG): New macro.
32224 (grub_netbsd_boot): Use 'netbsd_root'.
32225 (grub_bsd_unload): Free 'netbsd_root'.
32226 (grub_cmd_netbsd): Fill 'netbsd_root'.
32227
adb29902 322282009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32229
32230 Support for 64-bit NetBSD.
32231
32232 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
32233 point when booting non-FreeBSD.
32234
f5ae9f74 322352009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32236
32237 Support --no-smp and --no-acpi for NetBSD.
32238
32239 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
32240 (NETBSD_AB_NOACPI): Likewise.
32241 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
32242 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
32243
de74f136 322442009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32245
32246 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
32247 errors.
32248 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
32249 errors. Call grub_error when needed.
32250
e9a925da 322512009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32252
32253 * commands/search.c (search_fs): Try searching without autoload first.
32254 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
32255 filesystem module explicitly for faster booting.
32256
5174302b 322572009-08-23 Colin Watson <cjwatson@ubuntu.com>
32258
32259 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
32260
c8c80635 322612009-08-23 Colin Watson <cjwatson@ubuntu.com>
32262
32263 * util/grub.d/30_os-prober.in: Disable os-prober if
32264 `GRUB_DISABLE_OS_PROBER' was set to true.
32265
71acf5e5 322662009-08-23 Robert Millan <rmh.grub@aybabtu.com>
32267
32268 * partmap/pc.c: Rename to ...
32269 * partmap/msdos.c: ... this. Update all users.
32270 (grub_pc_partition_map): Rename to ...
32271 (grub_msdos_partition_map): ... this. Update all users.
32272
32273 * parttool/pcpart.c: Rename to ...
32274 * parttool/msdospart.c: ... this. Update all users.
32275
32276 * include/grub/pc_partition.h: Rename to ...
32277 * include/grub/msdos_partition.h: ... this. Update all users.
32278 (grub_pc_partition_bsd_entry): Rename to ...
32279 (grub_msdos_partition_bsd_entry): ... this. Update all users.
32280 (grub_pc_partition_disk_label): Rename to ...
32281 (grub_msdos_partition_disk_label): ... this. Update all users.
32282 (grub_pc_partition_entry): Rename to ...
32283 (grub_msdos_partition_entry): ... this. Update all users.
32284 (grub_pc_partition_mbr): Rename to ...
32285 (grub_msdos_partition_mbr): ... this. Update all users.
32286 (grub_pc_partition): Rename to ...
32287 (grub_msdos_partition): ... this. Update all users.
32288 (grub_pc_partition_is_empty): Rename to ...
32289 (grub_msdos_partition_is_empty): ... this. Update all users.
32290 (grub_pc_partition_is_extended): Rename to ...
32291 (grub_msdos_partition_is_extended): ... this. Update all users.
32292 (grub_pc_partition_is_bsd): Rename to ...
32293 (grub_msdos_partition_is_bsd): ... this. Update all users.
32294
32295 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
32296 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
32297 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
32298 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
32299 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
32300 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
32301 (gpt_mod_LDFLAGS): Rename to ...
32302 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
32303 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
32304 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
32305 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
32306 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
32307 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
32308 (part_gpt_mod_LDFLAGS): ... this.
32309 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
32310 `pcpart.mod' to `msdospart.mod'.
32311 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
32312 to ...
32313 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
32314 (msdospart_mod_LDFLAGS): ... this.
32315
c11fded5 323162009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32317
32318 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
32319 (openbsd_opts): Likewise.
32320 (netbsd_opts): Likewise.
32321 (freebsd_flags): Added 0 terminator.
32322 (openbsd_flags): Likewise.
32323 (netbsd_flags): Likewise.
32324 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
32325 (grub_cmd_freebsd): Transformed into extended command.
32326 (grub_cmd_openbsd): Likewise.
32327 (grub_cmd_netbsd): Likewise.
32328 (cmd_freebsd): Changed type to grub_extcmd_t.
32329 (cmd_openbsd): Likewise.
32330 (cmd_netbsd): Likewise.
32331 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
32332 grub_cmd_openbsd as extended commands.
32333 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
32334 cmd_netbsd and cmd_openbsd
32335
11d1c769 323362009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
32337
32338 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
32339
7a9094e5 323402009-08-21 Pavel Roskin <proski@gnu.org>
32341
5496c37e 32342 * Makefile.in (install-local): When checking if a file is in the
32343 build directory, use "test -e" to detect symlinks.
32344
7a9094e5 32345 * Makefile.in (install-local): Remove all files in
32346 $(DESTDIR)$(pkglibdir) before installing new files there.
32347
e53cea11 323482009-08-18 Felix Zielcke <fzielcke@z-51.de>
32349
32350 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
32351 grub-mkelfimage.
32352
9aced544 323532009-08-18 Felix Zielcke <fzielcke@z-51.de>
32354
32355 * util/grub-mkconfig.in: Don't use gfxterm by default if not
32356 explicitly specified by the user.
32357
b7da6bab 323582009-08-18 Pavel Roskin <proski@gnu.org>
32359
32360 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
32361 grub_uint8_t pointer for data.
32362 * include/grub/fbutil.h (struct grub_video_fbblit_info):
32363 Likewise.
32364 * video/fb/fbutil.c: Remove unnecessary casts.
32365
19f1b335 323662009-08-17 Michal Suchanek <hramrach@centrum.cz>
32367
32368 VBE cleanup.
32369
32370 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
32371 (grub_vbe_set_video_mode): Save active mode info
32372 only after setting the mode.
32373 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
32374 second argument.
32375
2f467aa9 323762009-08-17 Michal Suchanek <hramrach@centrum.cz>
32377
32378 Rename variables for clarity.
32379
32380 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
32381 (active_vbe_mode_info): ... this. All users updated.
32382 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
32383 All users updated.
32384 (initial_mode): Rename to ...
32385 (initial_vbe_mode): ... this. All users updated.
32386 (mode_in_use): Rename to ..
32387 (vbe_mode_in_use): ... this. All users updated.
32388 (mode_list): Rename to ..
32389 (vbe_mode_list): ... this. All users updated.
32390 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
32391 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
32392 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
32393 'mode_list_size' to 'vbe_mode_list_size'.
32394 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
32395 'best_mode_info' to 'best_vbe_mode_info' and
32396 'best_mode' to 'best_vbe_mode'
32397
6025fcd7 323982009-08-17 Michal Suchanek <hramrach@centrum.cz>
32399
32400 Remove duplicate grub_video_fb_get_video_ptr.
32401
32402 * include/grub/fbutil.h (get_data_ptr): Rename to ...
32403 (grub_video_fb_get_video_ptr): ... this.
32404 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
32405 * video/fb/fbutil.c: Add comment about addressing.
32406 (get_data_ptr): Rename to ...
32407 (grub_video_fb_get_video_ptr): ... this. All users updated.
32408 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
32409
cc8c6faf 324102009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32411
32412 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
32413 grub_dprintf() that was just added.
32414
08aa61f0 324152009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32416
32417 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
32418 (DEFAULT_VIDEO_MODE): Remove macros.
32419 (grub_linux_boot): Remove assumption that Linux has FB support,
32420 and use "text" as default video mode.
32421
7cef4f75 324222009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
32423
32424 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
32425 grub_dprintf.
32426 * fs/fat.c (grub_fat_read_data): Likewise.
32427
e1f39873 324282009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32429
32430 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
32431 payload.
32432 (grub_module): Likewise.
32433
c166d79e 324342009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32435
32436 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
32437 mbi->cmdline but free playground.
32438
c60cee8e 324392009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32440
32441 Handle group offset on UFS1.
32442
32443 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
32444 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
32445
c0d8b5d4 324462009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32447
32448 Split ufs.mod into ufs1.mod and ufs2.mod.
32449
32450 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
32451 (grub_fstest_SOURCES): Likewise.
32452 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
32453 (ufs_mod_SOURCES): Remove.
32454 (ufs_mod_CFLAGS): Likewise.
32455 (ufs_mod_LDFLAGS): Likewise.
32456 (ufs1_mod_SOURCES): New variable.
32457 (ufs1_mod_CFLAGS): Likewise.
32458 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 32459 (ufs2_mod_SOURCES): New variable.
32460 (ufs2_mod_CFLAGS): Likewise.
32461 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 32462 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
32463 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32464 Likewise.
32465 (grub_emu_SOURCES): Likewise.
32466 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32467 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32468 (grub_setup_SOURCES): Likewise.
32469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32470 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
32471 (grub_setup_SOURCES): Likewise.
32472 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32473 Likewise.
32474 * fs/ufs2.c: New file.
32475 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
32476
d3539132 324772009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32478
32479 Framebuffer split.
32480
32481 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
32482 subsystem at the end.
32483 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
32484 (video_fb_mod_SOURCES): New variable.
32485 (video_fb_mod_CFLAGS): Likewise.
32486 (video_fb_mod_LDFLAGS): Likewise.
32487 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
32488 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
32489 * video/i386/pc/vbeblit.c: Moved from here ...
32490 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
32491 * video/i386/pc/vbefill.c: Moved from here ...
32492 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
32493 * video/i386/pc/vbeutil.c: Moved from here ...
32494 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
32495 * include/grub/i386/pc/vbeblit.h: Moved from here ...
32496 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
32497 * include/grub/i386/pc/vbefill.h: Moved from here ...
32498 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
32499 * include/grub/i386/pc/vbeutil.h: Moved from here ...
32500 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
32501 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
32502 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
32503 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
32504 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
32505 (grub_video_adapter): Added 'get_info_and_fini'.
32506 (grub_video_get_info_and_fini): New prototype.
32507 (grub_video_set_mode): make modestring const char *.
32508 * loader/i386/linux.c (grub_linux_setup_video): Use
32509 grub_video_get_info_and_fini.
32510 (grub_linux_boot): Move modesetting just before booting.
32511 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
32512 grub_video_get_info_and_fini.
32513 * video/i386/pc/vbe.c: Moved framebuffer part ...
32514 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
32515 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
32516 grub_video_fbstd_colors and grub_video_fb_set_palette.
32517 (grub_video_vbe_init): Clear 'framebuffer' variable and use
32518 grub_video_fb_init.
32519 (grub_video_vbe_fini): Use grub_video_fb_fini.
32520 (grub_video_vbe_setup): Use framebuffer.render_target instead of
32521 render_target and use grub_video_fb_set_active_render_target and
32522 grub_video_fb_set_palette.
32523 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
32524 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
32525 (grub_video_vbe_adapter): Use framebuffer.
32526 * video/video.c (grub_video_get_info_and_fini): New function.
32527 (grub_video_set_mode): Make modestring const char *.
32528 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
32529 values are already initialised.
32530
d404ee56 325312009-08-14 Pavel Roskin <proski@gnu.org>
32532
32533 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
32534 ABS and APPLE_CC.
32535 * boot/i386/pc/diskboot.S: Likewise.
32536 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
32537 sectors allow compilation on MacOSX.
32538 * conf/i386-pc.rmk: Enable unconditional compilation of
32539 lnxboot.img.
32540
9a10df16 325412009-08-13 Colin Watson <cjwatson@ubuntu.com>
32542
32543 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
32544 * util/grub.d/00_header.in: Enter interruptible sleep if
32545 GRUB_HIDDEN_TIMEOUT is set.
32546
be3c9ca7 325472009-08-13 Yves Blusseau <blusseau@zetam.org>
32548
32549 * include/grub/symbol.h: Add the LOCAL macro.
32550 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
32551 starting with "L_".
32552
1f9e557e 325532009-08-13 Pavel Roskin <proski@gnu.org>
32554
9ca62843 32555 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
32556 any modern compilers we support.
32557
1f9e557e 32558 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
32559 Use local labels starting with "L_" so that Apple assembler
32560 knows they are local.
32561
81623db6 325622009-08-10 Robert Millan <rmh.grub@aybabtu.com>
32563
32564 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
32565 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
32566 (bsd_kernel_types): ... this enum.
32567
32568 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
32569 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
32570 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
32571
32572 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
32573 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
32574 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
32575 messages.
32576
f5d35e7a 325772009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32578
32579 * util/grub-dumpdevtree: Moved from here ...
32580 * util/i386/efi/grub-dumpdevtree: ... to here.
32581 (hexify): New function. Converts a string to its hex version.
32582 Generate hex versions of "efi" and "device-properties" by calling
32583 hexify() on the ASCII strings rather than by hardcoding numbers.
32584
d1e1d527 325852009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32586
32587 * fs/jfs.c: Update copyright year.
32588
1ebbe064 325892009-08-08 Felix Zielcke <fzielcke@z-51.de>
32590
32591 * util/grub.d/00_header.in: Fix a comment.
32592 * util/grub.d/10_linux.in: Likewise.
32593 * util/grub.d/10_windows.in: Likewise.
32594 * util/grub.d/10_hurd.in: Likewise.
32595
a78c8d24 325962009-08-08 Felix Zielcke <fzielcke@z-51.de>
32597
32598 * util/grub-mkconfig.in: Allow the user to specify the used font
32599 with GRUB_FONT.
32600
29a6b9e8 326012009-08-08 Pavel Roskin <proski@gnu.org>
32602
b5f16cc4 32603 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
32604 available, xfs.mod needs it now.
32605
2f5cb827 32606 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
32607 the "g" modifier in sed when the intention is to strip something
32608 once. This fixes comparison of kernels with multiple dashes.
32609
29a6b9e8 32610 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
32611 on it. Add missing space before closing bracket. Fix
32612 misleading formatting.
32613
892a3d98 326142009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32615
32616 * docs/grub.texi: Major overhaul. Remove all sections that are
32617 specific to GRUB Legacy, or mostly composed of Legacy-specific
32618 information.
32619
ed94253f 326202009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32621
32622 * docs/version.texi: New file. Provides version information for
32623 grub.texi.
32624
126d6628 326252009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32626
32627 * docs/grub.texi: Update CVS information to SVN.
32628 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
32629
998b5aa9 326302009-08-07 Felix Zielcke <fzielcke@z-51.de>
32631
32632 * util/grub-mkconfig.in: Remove a wrong `fi'.
32633
818e094a 326342009-08-07 Felix Zielcke <fzielcke@z-51.de>
32635
32636 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
32637 (grub_jfs_uuid): New function.
32638 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
32639
b969c52f 326402009-08-07 Felix Zielcke <fzielcke@z-51.de>
32641
32642 * util/grub-mkconfig_lib.in (font_path): Move the functionality
32643 of it to ...
32644 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
32645 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
32646
7a4894cc 326472009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32648
32649 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
32650 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
32651 Update all users.
32652
32653 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
32654 not just "vmlinu[zx]".
32655 Moved from here ...
32656 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
32657 all users.
32658
32659 * util/grub.d/10_linux.in (find_latest): Moved from here ...
32660 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
32661 all users.
32662
4e2171f8 326632009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32664
32665 * util/grub.d/10_freebsd.in: Use an absolute device path for
32666 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
32667
6dcfcb32 326682009-08-06 Felix Zielcke <fzielcke@z-51.de>
32669
32670 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
32671 handling of multiple abstraction modules.
32672
f56a8756 326732009-08-04 Robert Millan <rmh.grub@aybabtu.com>
32674
32675 Fix a bug resulting in black screen when loading Linux using a
32676 packed video mode.
32677
32678 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
32679 function.
32680
32681 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
32682 (grub_vbe_bios_getset_dac_palette_width): New function.
32683 (grub_vbe_bios_get_dac_palette_width)
32684 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
32685 grub_vbe_bios_getset_dac_palette_width()).
32686
32687 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
32688 check for return status.
32689 (grub_vbe_get_video_mode_info): When getting information for a packed
32690 mode (<= 8 bpp), obtain DAC palette width using
32691 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
32692 {red,green,blue}_mark_size.
32693
222671b2 326942009-08-04 Felix Zielcke <fzielcke@z-51.de>
32695
ecb1a6d9 32696 * commands/search.c (options): Fix help output to match actual code.
222671b2 32697
f84114f5 326982009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
32699
32700 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
32701 of homegrown code.
32702
bd288a20 327032009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 32704
32705 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
32706 on XFS or ReiserFS.
32707
8aab5e25 327082009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
32709
32710 Support Apple partition map with sector size different from 512 bytes.
32711
32712 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
32713 (apple_partition_map_iterate): Respect 'aheader.blocksize'
32714 and 'apart.partmap_size'.
32715
6ad6258a 327162009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
327172009-08-01 Robert Millan <rmh.grub@aybabtu.com>
32718
32719 Fix cpuid command.
32720
32721 * commands/i386/cpuid.c (options): New variable.
32722 (grub_cmd_cpuid): Return real error.
32723 (GRUB_MOD_INIT(cpuid)): Declare options.
32724
67459bc6 327252009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
32726
32727 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
32728 valid.
32729
fbc6ab54 327302009-07-31 Bean <bean123ch@gmail.com>
32731
32732 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
32733 log2_inode.
32734 (grub_fshelp_node): Move inode field to the end.
32735 (grub_xfs_data): Remove inode field.
32736 (grub_xfs_inode_block): Calculate inode size using sblock.
32737 (grub_xfs_inode_offset): Likewise.
32738 (grub_xfs_read_inode): Calculate inode size using sblock.
32739 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
32740 (grub_xfs_iterate_dir): Calculate inode size using sblock.
32741 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
32742 to match inode size.
32743 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
32744 not accessible when data is null.
32745 (grub_xfs_open): Likewise.
32746
f45d6cfc 327472009-07-31 Bean <bean123ch@gmail.com>
32748
32749 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
32750 Don't change pv->disk if it's already set.
32751
32752 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
32753 (grub_raid_register): ... here.
32754 (grub_raid_rescan): Removed.
32755
32756 * include/grub/raid.h (grub_raid_rescan): Removed.
32757
32758 * util/grub-fstest.c: Remove include file <grub/raid.h>.
32759 (fstest): Replace grub_raid_rescan with module fini function followed
32760 by init function.
32761
32762 * util/grub-probe.c: Add include file <grub/raid.h>.
32763 (probe_raid_level): New function.
32764 (probe): Detect abstraction by walking the disk device, support two
32765 level of abstraction (LVM on RAID) when detecting partition map.
32766
24443b5a 327672009-07-31 Pavel Roskin <proski@gnu.org>
32768
32769 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
32770 to grub_zalloc(), it was erroneous.
32771 Reported by Bean <bean123ch@gmail.com>
32772
a275d9e7 327732009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
32774
32775 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 32776 embedding zone, not only the first one.
a275d9e7 32777
56c5a47f 327782009-07-29 Joe Auricchio <jauricchio@gmail.com>
32779
32780 * term/gfxterm.c (clear_char): New function.
32781 (grub_virtual_screen_setup): Use clear_char.
32782 (scroll_up): Likewise.
32783 (grub_virtual_screen_cls): Likewise.
32784
67bb323a 327852009-07-29 Felix Zielcke <fzielcke@z-51.de>
32786
32787 * util/deviceiter.c (get_acceleraid_disk_name): New static
32788 function.
32789 (grub_util_iterate_devices): Handle Accelraid devices.
32790 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
32791
388a7c75 327922009-07-28 Robert Millan <rmh.grub@aybabtu.com>
32793
32794 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
32795 separator for the suggested gfxpayload string (';' collides with the
32796 parser and needs escaping).
32797
3bb7abcf 327982009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
32799
32800 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
32801 Clear direction flag before jumping to OS.
32802 (grub_multiboot2_real_boot): Likewise.
32803
2ddd36d7 328042009-07-28 Felix Zielcke <fzielcke@z-51.de>
32805
32806 * util/i386/pc/grub-install: Fix parsing of --disk-module
32807 option.
32808
c521b62b 328092009-07-28 Felix Zielcke <fzielcke@z-51.de>
32810
32811 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
32812 when embedding.
32813
880e0a0c 328142009-07-26 Felix Zielcke <fzielcke@z-51.de>
32815
32816 * util/grub-mkconfig.in (package_version): New variable.
32817 Use it do display the version.
32818
2366e356 328192009-07-25 Felix Zielcke <fzielcke@z-51.de>
32820
32821 * kern/file.c (grub_file_open): Revert to previous check with
32822 grub_errno.
32823
7ad8c80e 328242009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
32825
32826 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
32827 from help line. It's out of sync with code.
32828
72b9658b 328292009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
32830
32831 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
32832 entries on failed boot.
32833
77435277 328342009-07-25 Felix Zielcke <fzielcke@z-51.de>
32835
32836 * kern/file.c (grub_file_open): Fix an error check.
32837
fcaa8b21 328382009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
32839
35d16c74 32840 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
32841 partition map couldn't be identified.
fcaa8b21 32842
48904cd1 328432009-07-23 Pavel Roskin <proski@gnu.org>
32844
ef3c317f 32845 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
32846 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
32847 case of little endian words becomes just an optimization.
32848 Respect const modifier.
ad8ea1f4 32849 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 32850
48904cd1 32851 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
32852 to avoid loss of upper bits if align is unsigned and shorter
32853 than addr.
32854
260c9a89 328552009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
32856
32857 UUID support for UFS
32858
32859 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
32860 (grub_ufs_uuid): New function.
32861 (grub_ufs_fs): add .uuid
32862
f76ce889 328632009-07-21 Pavel Roskin <proski@gnu.org>
32864
32865 * kern/dl.c (grub_dl_check_header): Make static.
32866
6a6cbcaf 328672009-07-21 Felix Zielcke <fzielcke@z-51.de>
32868
32869 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
32870 add drivemap for Vista. It breaks Windows 7.
32871
cffcddb2 328722009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
32873
32874 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
32875 128 bytes
32876
1ef44b80 328772009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32878
32879 Add BFS support
32880
32881 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
32882 (grub_fstest_SOURCES): Likewise.
32883 (pkglib_MODULES): Add befs.mod.
32884 (befs_mod_SOURCES): New variable.
32885 (befs_mod_CFLAGS): Likewise.
32886 (befs_mod_LDFLAGS): Likewise.
32887 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32888 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32889 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32890 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32891 (grub_setup_SOURCES): Likewise.
32892 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32893 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32894 (grub_setup_SOURCES): Likewise.
32895 * fs/befs.c: New file.
32896 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
32897 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
32898 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
32899 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
32900 (B_KEY_INDEX_ALIGN): New declaration.
32901 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
32902 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
32903 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
32904 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
32905 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
32906 (grub_afs_mount) [MODE_BFS]: Likewise.
32907 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
32908 (grub_afs_fs): Use GRUB_AFS_FSNAME
32909 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
32910 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
32911 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
32912 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
32913
4f253044 329142009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
32915
32916 * util/getroot.c (find_root_device): Add support for MacOSX.
32917 * util/hostdisk.c: Likewise.
32918
57a55913 329192009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32920
32921 * font/font.c (find_glyph): Check whether a font is present to avoid
32922 segmentation fault.
75421ca9 32923
329242009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 32925
32926 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
32927
e98cd0c2 329282009-07-20 Pavel Roskin <proski@gnu.org>
32929
32930 * configure.ac: Trim excessively wordy excuses.
32931
1d2d169a 329322009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32933
32934 Add symlink, mtime and label support to AtheFS.
32935
32936 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
32937 (grub_afs_iterate_dir): Handle symlinks.
32938 (grub_afs_open): Use grub_afs_read_symlink.
32939 (grub_afs_dir): Likewise.
32940 Pass mtime.
32941 (grub_afs_label): New function.
32942 (grub_afs_fs): Add grub_afs_label.
32943 (grub_afs_read_symlink): New function.
32944
186f3189 329452009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32946
32947 Fix AtheFS support.
32948
32949 * fs/afs.c: Fix comments style.
32950 (grub_afs_blockrun): Declare as packed.
32951 (grub_afs_datastream): Likewise.
32952 (grub_afs_bnode): Likewise.
32953 (grub_afs_btree): Likewise.
32954 (grub_afs_sblock): Likewise.
32955 Declare `name' as char.
32956 (grub_afs_inode): Declare as packed.
32957 Change void *vnode to grub_uint32_t unused.
32958 (grub_afs_iterate_dir): Check that key_size is positive.
32959 (grub_afs_mount): Don't read superblock twice.
75421ca9 32960 (grub_afs_dir): Don't free node in case of error,
186f3189 32961 grub_fshelp_find_file already handles this.
32962 (grub_afs_open): Likewise.
32963
5680109e 329642009-07-19 Pavel Roskin <proski@gnu.org>
32965
32966 * Makefile.in: Remove LIBLZO and enable_lzo.
32967 * conf/i386-pc.rmk: Remove lzo support.
32968 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
32969 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
32970 support.
32971 * kern/i386/pc/lzo1x.S: Remove.
32972 * kern/i386/pc/startup.S: Remove lzo support.
32973 * util/i386/pc/grub-mkimage.c: Likewise.
32974
ac70fa32 329752009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
32976
32977 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
32978 * fs/xfs.c (grub_xfs_dir): Likewise.
32979 * fs/afs.c (grub_afs_dir): Likewise.
32980 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
32981 (grub_iso9660_open): Likewise.
32982 * fs/jfs.c (grub_jfs_open): Likewise.
32983 * fs/ext2.c (grub_ext2_dir): Likewise.
32984 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
32985 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 32986
eab58da2 329872009-07-16 Pavel Roskin <proski@gnu.org>
32988
d2838156 32989 * configure.ac: Never add "-c" to CFLAGS.
32990
55c70904 32991 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
32992
43e6200c 32993 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
32994 grub_cv_cc_efiemu should be used.
32995
ce7a733d 32996 * configure.ac: Typo fixes.
32997
eab58da2 32998 * kern/mm.c (grub_zalloc): New function.
32999 (grub_debug_zalloc): Likewise.
33000 * include/grub/mm.h: Declare grub_zalloc() and
33001 grub_debug_zalloc().
33002 * util/misc.c (grub_zalloc): New function.
33003 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
33004 instead of grub_malloc(), remove unneeded initializations.
33005 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
33006 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
33007 * commands/parttool.c (grub_cmd_parttool): Likewise.
33008 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
33009 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
33010 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
33011 * disk/usbms.c (grub_usbms_finddevs): Likewise.
33012 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
33013 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
33014 (grub_cmd_efiemu_pnvram): Likewise.
33015 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
33016 * fs/iso9660.c (grub_iso9660_mount): Likewise.
33017 (grub_iso9660_iterate_dir): Likewise.
33018 * fs/jfs.c (grub_jfs_opendir): Likewise.
33019 * fs/ntfs.c (list_file): Likewise.
33020 (grub_ntfs_mount): Likewise.
33021 * kern/disk.c (grub_disk_open): Likewise.
33022 * kern/dl.c (grub_dl_load_core): Likewise.
33023 * kern/elf.c (grub_elf_file): Likewise.
33024 * kern/env.c (grub_env_context_open): Likewise.
33025 (grub_env_set): Likewise.
33026 (grub_env_set_data_slot): Likewise.
33027 * kern/file.c (grub_file_open): Likewise.
33028 * kern/fs.c (grub_fs_blocklist_open): Likewise.
33029 * loader/i386/multiboot.c (grub_module): Likewise.
33030 * loader/xnu.c (grub_xnu_create_key): Likewise.
33031 (grub_xnu_create_value): Likewise.
33032 * normal/main.c (grub_normal_add_menu_entry): Likewise.
33033 (read_config_file): Likewise.
33034 * normal/menu_entry.c (make_screen): Likewise.
33035 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33036 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
33037 * script/sh/script.c (grub_script_parse): Likewise.
33038 * video/bitmap.c (grub_video_bitmap_create): Likewise.
33039 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
33040 * video/readers/png.c (grub_png_output_byte): Likewise.
33041 (grub_video_reader_png): Likewise.
33042
830afef7 330432009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 33044
33045 Enable all targets that can be built by default
33046
830afef7 33047 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 33048 grub-mkfont and grub-fstest if they can be built
33049
ee293aee 330502009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33051
33052 Fix hang and segmentation fault in grub-emu-usb
33053
33054 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
33055 * util/usb.c (grub_libusb_devices): likewise
33056 (grub_libusb_init): rename to ...
33057 (GRUB_MOD_INIT (libusb)):...this
33058 (grub_libusb_fini): rename to ..
33059 (GRUB_MOD_FINI (libusb)):...this
33060 * disk/usbms.c (grub_usbms_transfer): fix retry logic
33061 * include/grub/disk.h (grub_raid_init): removed, it's useless
33062 (grub_raid_fini): likewise
33063 (grub_lvm_init): likewise
33064 (grub_lvm_fini): likewise
33065 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
33066 by grub_init_all
33067
94414221 330682009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33069
33070 Fix libusb
33071
33072 * Makefile.in (LIBUSB): new macro
33073 * genmk.rb (Utility/print_tail): new method
33074 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
33075 (top level): call util.print_tail at the end.
33076
59ade63d 330772009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33078
33079 Make FreeBSD accept zpool.cache
33080
33081 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
33082 type is /boot/zfs/zpool.cache
33083
a58da8c7 330842009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33085
33086 Fix 64-bit efiemu
33087
33088 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
33089 correct wrong typedef
33090 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
33091
20591577 330922009-07-15 Pavel Roskin <proski@gnu.org>
33093
560ca572 33094 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
33095 * kern/disk.c (struct grub_disk_cache): Likewise.
33096
e8e8e4fd 33097 * commands/probe.c (options): Typo fix.
33098
fde24e10 33099 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
33100 Increase to 0x5a to accommodate FAT32. Adjust other offsets
33101 accordingly.
33102 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
33103
379c54c1 33104 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
33105 the end of "Error" to make the message more readable.
33106
7bd8f5bf 33107 * boot/i386/pc/boot.S (kernel_segment): Remove.
33108 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
33109 for destination.
33110
40b132c5 33111 * boot/i386/pc/boot.S (boot_version): Remove.
33112 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
33113 Remove.
33114
20591577 33115 * include/grub/i386/pc/boot.h: Sort all offsets.
33116 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
33117 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
33118 * boot/i386/pc/boot.S: Assert location of every offset listed in
33119 include/grub/i386/pc/boot.h.
33120
2df32b2c 331212009-07-13 Pavel Roskin <proski@gnu.org>
33122
44b5d879 33123 * include/grub/i386/coreboot/machine.h: Rename
33124 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
33125 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
33126 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
33127
17dc3751 33128 * kern/dl.c: Force native word size to suppress warnings when
33129 compiling grub-emu.
33130
2df32b2c 33131 * kern/device.c (grub_device_iterate): Change struct part_ent to
33132 hold the name, not a pointer to it. Use one grub_malloc() per
33133 partition, not two. Free partition_name if grub_malloc() fails.
33134 Set ents to NULL only before grub_partition_iterate() is called.
33135
75c59f59 331362009-07-11 Bean <bean123ch@gmail.com>
33137
33138 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
33139 childname.
33140
0ae1bf88 331412009-07-10 Bean <bean123ch@gmail.com>
331422009-07-10 Robert Millan <rmh.grub@aybabtu.com>
33143
33144 * kern/ieee1275/openfw.c (grub_children_iterate)
33145 (grub_devalias_iterate): Fix size evaluation for property or path
33146 strings, which was broken since r2132.
33147
8279cade 331482009-07-07 Pavel Roskin <proski@gnu.org>
33149
7d8a52d3 33150 * commands/search.c (search_file): Merge into ...
33151 (search_fs): ... this. Accept search type as argument.
33152 (grub_cmd_search): Pass search type to search_fs().
33153
25f9a05a 33154 * include/grub/util/console.h: New file.
33155 * util/console.c: Use it instead of grub/machine/console.h.
33156 * util/grub-emu.c: Likewise.
33157
8279cade 33158 * lib/arg.c (find_long_option): Remove.
33159 (find_long): Add `len' argument, make `s' const char *.
33160 (grub_arg_parse): Parse long options in place, not in a
33161 temporary buffer.
33162
4a11b60f 331632009-07-06 Pavel Roskin <proski@gnu.org>
33164
99f68041 33165 * commands/search.c (search_fs): Fix potential NULL pointer
33166 dereference.
33167
4a11b60f 33168 * commands/search.c (search_fs): Replace QUID macro with quid_fn
33169 function pointer.
33170
e110f4de 331712009-07-06 Daniel Mierswa <impulze@impulze.org>
33172
33173 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
33174 comparison.
33175
46eeb6a2 331762009-07-05 Pavel Roskin <proski@gnu.org>
33177
bab74958 33178 * include/grub/i386/linux.h (struct linux_kernel_params):
33179 Restore padding3, it's still needed.
33180
46eeb6a2 33181 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
33182 FreeBSD.
33183 * util/osdetect.lua: Likewise.
33184
b4a1dc79 331852009-07-05 Bean <bean123ch@gmail.com>
33186
33187 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
33188
33189 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
33190 (grub_lua_getenv): Likewise.
33191 (grub_lua_setenv): Likewise.
33192 (save_errno): New function.
33193 (push_result): Likewise.
33194 (grub_lua_enum_device): Likewise.
33195 (grub_lua_enum_file): Likewise.
33196 (grub_lua_file_open): Likewise.
33197 (grub_lua_file_close): Likewise.
33198 (grub_lua_file_seek): Likewise.
33199 (grub_lua_file_read): Likewise.
33200 (grub_lua_file_getline): Likewise.
33201 (grub_lua_file_getsize): Likewise.
33202 (grub_lua_file_getpos): Likewise.
33203 (grub_lua_file_eof): Likewise.
33204 (grub_lua_file_exist): Likewise.
33205 (grub_lua_add_menu): Likewise.
33206
33207 * script/lua/grub_lua.h (isupper): New inline function.
33208 (islower): Likewise.
33209 (ispunct): Likewise.
33210 (isxdigit): Likewise.
33211 (strcspn): Change to normal function.
33212 (strpbkr): New function declaration.
33213 (memchr): Likewise.
33214
33215 * script/lua/grub_main.c (scan_str): New function.
33216 (strcspn): Likewise.
33217 (strpbrk): Likewise.
33218 (memchr): Likewise.
33219
33220 * script/lua/linit.c (lualibs): Enable the string library.
33221
33222 * util/osdetect.lua: New file.
33223
2da92295 332242009-07-04 Robert Millan <rmh.grub@aybabtu.com>
33225
33226 * include/grub/i386/linux.h (struct linux_kernel_params): Add
33227 `capabilities' member.
33228
b2582ec9 332292009-07-02 Pavel Roskin <proski@gnu.org>
33230
33231 * genparttoollist.sh: Add missing newline at the end.
33232
32622956 332332009-07-01 Pavel Roskin <proski@gnu.org>
33234
87a7339e 33235 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
33236
d23af54e 33237 * util/hostdisk.c (open_device): Remove `const' from
33238 `sysctl_size', as sysctlbyname() can change it (in this case it
33239 doesn't actually happen).
33240
c94b18a9 33241 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
33242 using signed long int constants.
33243
c6cd3ef0 33244 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
33245 constant to avoid a warning on FreeBSD.
33246
0df63420 33247 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
33248 where it's needed.
33249
999577f1 33250 * Makefile.in: Install include/grub/machine symlink.
33251
6f41557f 33252 * Makefile.in: When installing symlinks, use "cp -fR", which
33253 works on FreeBSD and MacOSX.
33254 From Yves Blusseau <cl7m42e02@sneakemail.com>
33255
c8d22988 33256 * kern/dl.c (grub_dl_resolve_symbol): Make static.
33257 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
33258
1b96e952 33259 * util/misc.c: Move grub_reboot() and grub_halt() ...
33260 * util/grub-emu.c: ... here. Make main_env static.
33261 * include/grub/util/misc.h: Remove main_env.
33262
2ef0084d 33263 * kern/mm.c: Use correct format to print size_t.
33264
32622956 33265 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
33266 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
33267 * kern/powerpc/dl.c: Likewise.
33268 * kern/sparc64/dl.c: Likewise.
33269 * kern/x86_64/dl.c: Likewise.
33270
3f7f0cd0 332712009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33272
33273 Fix grub-emu build on sparc64-ieee1275.
33274
75421ca9 33275 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 33276 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
33277
211d06b5 332782009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33279
33280 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
33281 (grub_reboot, grub_halt): New functions.
33282
33283 * util/i386/pc/misc.c: Delete. Update all users.
33284 * util/sparc64/ieee1275/misc.c: Likewise.
33285 * util/powerpc/ieee1275/misc.c: Likewise.
33286
aaf53e3c 332872009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33288
33289 * conf/i386.rmk (setjmp_mod_SOURCES)
33290 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
33291 * conf/common.rmk (setjmp_mod_SOURCES)
33292 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
33293 to use $(target_cpu).
33294 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
33295 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
33296 * conf/powerpc-ieee1275.rmk: Likewise.
33297 * conf/sparc64-ieee1275.rmk: Likewise.
33298
33299 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
33300 $(target_cpu) for kern/$(target_cpu)/dl.c.
33301 * conf/i386-efi.rmk: Likewise.
33302 * conf/i386-ieee1275.rmk: Likewise.
33303 * conf/x86_64-efi.rmk: Likewise.
33304 * conf/i386-coreboot.rmk: Likewise.
33305 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
33306 $(target_cpu) for kern/$(target_cpu)/dl.c and for
33307 kern/$(target_cpu)/cache.S.
33308 * conf/sparc64-ieee1275.rmk: Likewise.
33309
a337130b 333102009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33311
33312 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
33313 type to `grub_uint8_t', and adjust `padding9' accordingly.
33314
c6fe4d53 333152009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33316
b09db61d 33317 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
33318
c6fe4d53 33319 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
33320 assembly in final jump, using register constraints.
33321
b09db61d 33322 (grub_linux_boot): For text mode, initialize `have_vga' using
33323 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
33324
33325 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
33326 right before the final jump.
33327
33328 Set `video_mode' to 0x3.
33329
33330 Document initialization of `video_page', `video_mode' and
33331 `video_ega_bx'.
33332
28333ad0 333332009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33334
33335 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
33336 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 33337 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 33338
02164e1b 333392009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33340
33341 Fix build on Debian / sparc.
33342
33343 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
33344
18b6c557 333452009-06-28 Pavel Roskin <proski@gnu.org>
33346
85f2aab6 33347 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
33348 fix a warning.
33349
18b6c557 33350 * util/grub.d/10_linux.in: Match SUSE style initrd names.
33351
ad760f81 333522009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33353
33354 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
33355 `err'.
33356
87a4623b 333572009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33358
33359 Revert r2338.
33360
33361 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
33362 file can't be opened. grub_file_open() is already supposed to set
75421ca9 33363 grub_errno / grub_errmsg appropriately.
87a4623b 33364 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33365
8231fb77 333662009-06-27 Pavel Roskin <proski@gnu.org>
333672009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33368
33369 * include/grub/dl.h: Include grub/elf.h.
33370 (struct grub_dl): Add symtab field.
33371 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
33372 GRUB_MODULES_MACHINE_READONLY.
33373 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
33374 of the header for read-only modules.
33375 (grub_dl_unload): Free mod->symtab for read-only modules.
33376 * kern/i386/dl.c: Use mod->symtab.
33377 * kern/powerpc/dl.c: Likewise.
33378 * kern/sparc64/dl.c: Likewise.
33379 * kern/x86_64/dl.c: Likewise.
33380
33381 * conf/i386-qemu.rmk: New file.
33382 * kern/i386/qemu/startup.S: Likewise.
33383 * kern/i386/qemu/mmap.c: Likewise.
33384 * boot/i386/qemu/boot.S: Likewise.
33385 * include/grub/i386/qemu/time.h: Likewise.
33386 * include/grub/i386/qemu/serial.h: Likewise.
33387 * include/grub/i386/qemu/kernel.h: Likewise.
33388 * include/grub/i386/qemu/console.h: Likewise.
33389 * include/grub/i386/qemu/boot.h: Likewise.
33390 * include/grub/i386/qemu/init.h: Likewise.
33391 * include/grub/i386/qemu/machine.h: Likewise.
33392 * include/grub/i386/qemu/loader.h: Likewise.
33393 * include/grub/i386/qemu/memory.h: Likewise.
33394
33395 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
33396 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
33397 [qemu] (pkglib_IMAGES): Add `boot.img'.
33398 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
33399 [qemu] (boot_img_FORMAT): New variables.
33400 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
33401 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
33402 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
33403 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
33404 [qemu] (kernel_img_FORMAT): New variables.
33405
33406 * configure.ac: Recognise `i386-qemu'.
33407
33408 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
33409 (for no compression).
33410 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
33411 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
33412 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
33413 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
33414 ifdefs).
33415
97fe384e 334162009-06-27 Pavel Roskin <proski@gnu.org>
33417
33418 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
33419 read.
33420 * efiemu/prepare32.c: Likewise.
33421 * efiemu/prepare64.c: Likewise.
33422
c402ab17 334232009-06-26 Pavel Roskin <proski@gnu.org>
33424
33425 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
33426 * include/grub/elf.h: Define symbols without "32" or "64" based
33427 on GRUB_TARGET_WORDSIZE.
33428 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
33429 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
33430 ELF definitions.
33431 * efiemu/loadcore64.c: Likewise.
33432 * loader/i386/bsd32.c: Likewise.
33433 * loader/i386/bsd64.c: Likewise.
33434 * kern/dl.c: Remove own ELF definitions.
33435 * util/i386/efi/grub-mkimage.c: Likewise.
33436
9bbdfd4d 334372009-06-23 Robert Millan <rmh.grub@aybabtu.com>
33438
33439 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
33440 segment 0x0 unconditionally, because the reference generated by
33441 GAS is an absolute address.
33442
a42ce6e9 334432009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33444
33445 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
33446 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
33447
c952cf92 334482009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33449
33450 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
33451 indexes. Check for -f explicitly.
cc3752ad 33452 (search_file): Improve error message.
33453 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 33454
132a0a59 334552009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33456
33457 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
33458 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
33459
387a140c 334602009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33461
33462 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
33463 * conf/i386-ieee1275.rmk: Likewise.
33464 * conf/i386-coreboot.rmk: Likewise.
33465
33466 * kern/i386/pc/startup.S (grub_stop): Remove function.
33467 * kern/i386/ieee1275/startup.S: Likewise.
33468 * kern/i386/coreboot/startup.S: Likewise.
33469 * kern/i386/misc.S (grub_stop): New function.
33470
41da9665 334712009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33472
33473 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
33474 * kern/i386/realmode.S (real_to_prot): ... to here.
33475
bf337234 334762009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33477
33478 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
33479 with `kernel.img'.
33480 (kernel_elf_SOURCES): Rename to ...
33481 (kernel_img_SOURCES): ... this.
33482 (kernel_elf_HEADERS): Rename to ...
33483 (kernel_img_HEADERS): ... this. Update all users.
33484 (kernel_elf_ASFLAGS): Rename to ...
33485 (kernel_img_ASFLAGS): ... this.
33486 (kernel_elf_CFLAGS): Rename to ...
33487 (kernel_img_CFLAGS): ... this.
33488 (kernel_elf_LDFLAGS): Rename to ...
33489 (kernel_img_LDFLAGS): ... this.
33490 * conf/i386-coreboot.rmk: Likewise.
33491 * conf/powerpc-ieee1275.rmk: Likewise.
33492
33493 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
33494 with "kernel.img".
33495
f52196ff 334962009-06-21 Pavel Roskin <proski@gnu.org>
33497
c3cee413 33498 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
33499 to match nested functions.
33500 * loader/sparc64/ieee1275/linux.c: Likewise.
33501
f52196ff 33502 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
33503
58750afc 335042009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33505
33506 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
33507 all i386 platforms.
33508
15355c7d 335092009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33510
33511 Fix asm file handling on ELF, and remove workarounds.
33512
33513 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 33514 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 33515 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
33516 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
33517
3f3ec72b 335182009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
33519
33520 Load BSD ELF modules
33521
33522 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
33523 and loader/i386/bsd64.c
33524 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
33525 (FREEBSD_MODTYPE_ELF_MODULE): New definition
33526 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
33527 (grub_freebsd_load_elfmodule32): New declaration
33528 (grub_freebsd_load_elfmoduleobj64): Likewise
33529 (grub_freebsd_load_elf_meta32): Likewise
33530 (grub_freebsd_load_elf_meta64): Likewise
33531 (grub_freebsd_add_meta): Likewise
33532 (grub_freebsd_add_meta_module): Likewise
33533 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
33534 (grub_freebsd_add_meta_module): Likewise and move module-specific
33535 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
33536 (grub_cmd_freebsd): Add elf-kernel specific parts
33537 based on grub_freebsd_add_meta_module
33538 (grub_cmd_freebsd_module): Add type parsing moved from
33539 grub_freebsd_add_meta_module
33540 (grub_cmd_freebsd_module_elf): New function
33541 (cmd_freebsd_module_elf): New variable
33542 (GRUB_MOD_INIT): Register freebsd_module_elf
33543 * loader/i386/bsd32.c: New file
33544 * loader/i386/bsd64.c: Likewise
33545 * loader/i386/bsdXX.c: Likewise
33546 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
33547 (grub_elf64_load): Likewise
33548 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
33549 All users updated
33550 (grub_elf64_load_hook_t): Likewise
33551
0db15301 335522009-06-21 Colin Watson <cjwatson@ubuntu.com>
33553
33554 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
33555 variable.
33556 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
33557 don't write a menu entry for recovery mode.
33558
546796c1 335592009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33560
33561 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
33562 after it's no longer needed.
33563
cd7310d5 335642009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33565
33566 * include/grub/i386/loader.h (grub_linux_prot_size)
33567 (grub_linux_tmp_addr, grub_linux_real_addr)
33568 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
33569 GRUB_MACHINE_PCBIOS.
33570 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
33571 common grub_util_info() call to ...
33572 (generate_image): ... here.
33573 Fix use of uninitialized memory, comparison of signed with
33574 unsigned integers and memory leak.
33575 Remove bogus module address message.
33576
ab32d3b5 335772009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
33578
33579 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
33580 grub_raid_register
33581 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
33582
024ef597 335832009-06-19 Pavel Roskin <proski@gnu.org>
33584
33585 * configure.ac: Remove stray AC_MSG_CHECKING.
33586
3ac72b51 335872009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
33588
33589 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 33590
e14cd814 335912009-06-18 Pavel Roskin <proski@gnu.org>
33592
33593 * conf/common.rmk: Add fs_file.mod.
33594 * disk/fs_file.c: New file.
33595 * include/grub/disk.h (enum grub_disk_dev_id): Add
33596 GRUB_DISK_DEVICE_FILE_ID.
33597
26586d98 335982009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33599
33600 Fix build with Apple's toolchain. Part 2
33601
33602 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
33603 a fake start
33604
26de2bcd 336052009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33606
33607 Fix build with Apple's toolchain. Part 1
33608
33609 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
33610 for long calls
33611 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 33612 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 33613 Apple's toolchain
33614
09b3490b 336152009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33616
33617 Fix warnings
33618
33619 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
33620 (decomp_block): initialize ch
33621 use grub_memcpy instead of memcpy
33622
c22a006a 336232009-06-17 Pavel Roskin <proski@gnu.org>
33624
d3638678 33625 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
33626 version, use declarations needed to use vga_text as the startup
33627 console.
33628
c22a006a 33629 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
33630 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
33631 the kernel.
33632 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
33633 and grub_at_keyboard_fini(), it's done on module load and
33634 unload.
33635
05b129e0 336362009-06-17 Felix Zielcke <fzielcke@z-51.de>
33637
33638 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
33639 file can't be found.
33640 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33641
cf24ed9e 336422009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
33643
33644 Fix newline handling
33645
33646 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 33647 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 33648 (grub_script_yylex): don't segfault on unterminated script
33649 newline terminates command and variable
33650
74aa8e4b 336512009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
33652
33653 avoid double grub_adjust_range call. Bug reported by David Simner
33654
33655 * kern/disk.c (grub_disk_write): change to raw disk access before
33656 calling disk_read
33657
1bd265f3 336582009-06-17 Colin Watson <cjwatson@ubuntu.com>
33659
33660 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
33661 spaces, for the benefit of help2man.
33662 * util/i386/efi/grub-mkimage.c (usage): Likewise.
33663
a2d08c06 336642009-06-16 Pavel Roskin <proski@gnu.org>
33665
33666 * kern/i386/halt.c: Include grub/machine/init.h.
33667 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
33668
b97bcb19 336692009-06-16 Felix Zielcke <fzielcke@z-51.de>
33670
33671 * util/grub.d/30_os-prober.in: Use ${root} in the generated
33672 drivemap menuentry.
33673
0644f96c 336742009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
33675
33676 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
33677 `echo' command.
33678
3ef17a2e 336792009-06-16 Pavel Roskin <proski@gnu.org>
33680
33681 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
33682 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
33683 save %dx, we only need %dl and we never change it.
33684 * boot/i386/pc/cdboot.S: Don't set the root drive.
33685 * boot/i386/pc/pxeboot.S: Likewise.
33686 * include/grub/i386/pc/boot.h: Remove
33687 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
33688 GRUB_BOOT_MACHINE_DRIVE_CHECK.
33689 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
33690 * kern/i386/pc/init.c (make_install_device): Remove references
33691 to grub_root_drive.
33692 * kern/i386/pc/startup.S: Likewise.
33693 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
33694
693fe637 336952009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
33696
33697 xnu_uuid command
33698
33699 * commands/xnu_uuid.c: new file
33700 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
33701 (xnu_uuid_mod_SOURCES): new variable
33702 (xnu_uuid_mod_CFLAGS): likewise
33703 (xnu_uuid_mod_LDFLAGS): likewise
33704 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
33705 * conf/i386-ieee1275.rmk: likewise
33706 * conf/i386-pc.rmk: likewise
33707 * conf/powerpc-ieee1275.rmk: likewise
33708 * conf/sparc64-ieee1275.rmk: likewise
33709 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
33710
c9da87d0 337112009-06-16 Pavel Roskin <proski@gnu.org>
33712
33713 * configure.ac: Avoid '==' in test command, it's not portable.
33714
9c6f4596 337152009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
33716
33717 Probe command
33718
33719 * commands/probe.c: new file
33720 * conf/common.rmk (pkglib_MODULES): add probe.mod
33721 (probe_mod_SOURCES): new variable
33722 (probe_mod_CFLAGS): likewise
33723 (probe_mod_LDFLAGS): likewise
33724 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
33725 * conf/i386-ieee1275.rmk: likewise
33726 * conf/i386-pc.rmk: likewise
33727 * conf/powerpc-ieee1275.rmk: likewise
33728 * conf/sparc64-ieee1275.rmk: likewise
33729
70b7f9fd 337302009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
33731
33732 Fix handling of string like \"hello\" and "a
33733 b"
33734
33735 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
33736 (grub_script_yylex): fix parsing of quoting, escaping and newline
33737
71c79a6b 337382009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
33739
dd74360c 33740 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 33741 handling
dd74360c 33742
0644f96c 337432009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 33744
33745 * util/grub-mkconfig.in: Fix parsing of --output option.
33746
e40893c3 337472009-06-12 Pavel Roskin <proski@gnu.org>
33748
33749 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
33750 genmk.rb don't need to be generated or installed.
33751
3a1acfe2 337522009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
33753
33754 * commands/i386/pc/drivemap_int13h.S: add more comments
33755
3a4575d4 337562009-06-11 Pavel Roskin <proski@gnu.org>
33757
0658e928 33758 * Makefile.in (uninstall): Uninstall manuals.
33759
ca0388f0 33760 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
33761 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
33762 and update-grub_lib in two places.
33763 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
33764
e3b27c39 33765 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
33766 a compiler warning.
33767
3a4575d4 33768 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
33769 `entry_lo' to fix variable shadowing.
33770
af1f4f55 337712009-06-11 Christian Franke <franke@computer.org>
33772
33773 * kern/misc.c (__enable_execute_stack): Add missing return type
33774 to prevent gcc warning.
33775
5225e649 337762009-06-11 Felix Zielcke <fzielcke@z-51.de>
33777
33778 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
33779
7d83bd47 337802009-06-11 Pavel Roskin <proski@gnu.org>
33781
c1cb63ba 33782 * Makefile.in: Don't rely on any scripts being executable.
33783 Always use $(SHELL) to run shell scripts.
33784
7d83bd47 33785 * configure.ac: Always define ___main if using -nostdlib. This
33786 fixes tests on Cygwin.
33787
948f48e7 337882009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
33789
33790 UDF fix
33791
7d83bd47 33792 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 33793 is in bytes and not in blocks
7d83bd47 33794
8ada9bc1 337952009-06-11 Pavel Roskin <proski@gnu.org>
33796
33797 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
33798 warning.
33799
25ad2323 338002009-06-11 Felix Zielcke <fzielcke@z-51.de>
33801
33802 * util/grub.d/30_os-prober.in: Fix a comment. Source
33803 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
33804 to set the root device. Place drivemap command in the generated
33805 chain entry.
33806
e65acb0c 338072009-06-11 Pavel Roskin <proski@gnu.org>
33808
33809 * configure.ac: Remove host_m32. Issues with 64-bit utilities
33810 have long been resolved.
33811
f285fe2d 338122009-06-11 Colin Watson <cjwatson@ubuntu.com>
33813
bd47b0b5 33814 * util/grub.d/10_linux.in: Capitalise "Linux".
33815
f285fe2d 33816 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
33817
a0c62e4e 338182009-06-11 Pavel Roskin <proski@gnu.org>
33819
b6783cb2 33820 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
33821 fix a gcc warning and ensure that the function won't ever exit.
33822
dde032e8 33823 * kern/i386/ieee1275/init.c: Add missing prototype for
33824 grub_stop_floppy().
33825
22cd079d 33826 * loader/ieee1275/multiboot2.c [__i386__]: Include
33827 grub/cpu/multiboot.h.
33828
a0c62e4e 33829 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
33830 casts to short - they are not portable and cause warnings. Fix
33831 use of uninitialized values in input_buf. Use ARRAY_SIZE.
33832
63963d17 338332009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
33834
33835 Drivemap fixes
33836
33837 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
33838 new function
33839 (grub_get_root_biosnumber_saved): new variable
33840 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
33841 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 33842 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 33843 %dx after the call if necessary
33844 * conf/common.rmk (pkglib_MODULES): remove boot.mod
33845 (boot_mod_SOURCES): remove
33846 (boot_mod_CFLAGS): remove
33847 (boot_mod_LDFLAGS): remove
33848 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
33849 (boot_mod_SOURCES): new variable
33850 (boot_mod_CFLAGS): likewise
33851 (boot_mod_LDFLAGS): likewise
33852 * conf/i386-efi.rmk: likewise
33853 * conf/i386-ieee1275.rmk: likewise
33854 * conf/i386-pc.rmk: likewise
33855 * conf/powerpc-ieee1275.rmk: likewise
33856 * conf/sparc64-ieee1275.rmk: likewise
33857 * conf/x86_64-efi.rmk: likewise
33858 * include/grub/i386/pc/biosnum.h: new file
33859 * lib/i386/pc/biosnum.c: likewise
33860 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
33861 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
33862 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 33863
33abf7ae 338642009-06-10 Pavel Roskin <proski@gnu.org>
33865
5ac35b35 33866 * io/gzio.c (test_header): Don't reuse one buffer for all data.
33867 Use separate variables. Read only the file size at the end, but
33868 not the checksum that we don't use.
33869
5c5215d5 33870 * kern/file.c (grub_file_read): Use void pointer for the buffer.
33871 Adjust all callers.
33872
27d5fef7 33873 * kern/ieee1275/openfw.c: Remove libc includes.
33874 * kern/ieee1275/cmain.c: Likewise.
33875 * include/grub/ieee1275/ieee1275.h: Likewise.
33876
33abf7ae 33877 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
33878 compiler warnings.
33879
19d50c2b 338802009-06-10 Felix Zielcke <fzielcke@z-51.de>
33881
33882 * Makefile.in: Remove all trailing whitespace.
33883 * conf/i386-pc.rmk: Likewise.
33884 * conf/powerpc-ieee1275.rmk: Likewise.
33885 * conf/sparc64-ieee1275.rmk: Likewise.
33886 * docs/grub.texi: Likewise.
33887 * docs/texinfo.tex: Likewise.
33888 * disk/fs_uuid.c: Likewise.
33889 * disk/lvm.c: Likewise.
33890 * disk/scsi.c: Likewise.
33891 * disk/ata.c: Likewise.
33892 * disk/ieee1275/ofdisk.c: Likewise.
33893 * disk/i386/pc/biosdisk.c: Likewise.
33894 * disk/host.c: Likewise.
33895 * disk/raid.c: Likewise.
33896 * disk/efi/efidisk.c: Likewise.
33897 * disk/usbms.c: Likewise.
33898 * disk/memdisk.c: Likewise.
33899 * disk/loopback.c: Likewise.
33900 * kern/powerpc/dl.c: Likewise.
33901 * kern/device.c: Likewise.
33902 * kern/dl.c: Likewise.
33903 * kern/sparc64/dl.c: Likewise.
33904 * kern/ieee1275/ieee1275.c: Likewise.
33905 * kern/term.c: Likewise.
33906 * kern/fs.c: Likewise.
33907 * kern/i386/dl.c: Likewise.
33908 * kern/i386/pc/startup.S: Likewise.
33909 * kern/i386/pc/init.c: Likewise.
33910 * kern/i386/pc/mmap.c: Likewise.
33911 * kern/i386/pc/lzo1x.S: Likewise.
33912 * kern/i386/ieee1275/init.c: Likewise.
33913 * kern/i386/realmode.S: Likewise.
33914 * kern/i386/tsc.c: Likewise.
33915 * kern/partition.c: Likewise.
33916 * kern/corecmd.c: Likewise.
33917 * kern/file.c: Likewise.
33918 * kern/efi/efi.c: Likewise.
33919 * kern/efi/init.c: Likewise.
33920 * kern/efi/mm.c: Likewise.
33921 * kern/main.c: Likewise.
33922 * kern/err.c: Likewise.
33923 * kern/env.c: Likewise.
33924 * kern/disk.c: Likewise.
33925 * kern/generic/millisleep.c: Likewise.
33926 * kern/generic/rtc_get_time_ms.c: Likewise.
33927 * kern/misc.c: Likewise.
33928 * kern/parser.c: Likewise.
33929 * genmk.rb: Likewise.
33930 * configure.ac: Likewise.
33931 * boot/i386/pc/diskboot.S: Likewise.
33932 * boot/i386/pc/pxeboot.S: Likewise.
33933 * boot/i386/pc/boot.S: Likewise.
33934 * boot/i386/pc/lnxboot.S: Likewise.
33935 * boot/i386/pc/cdboot.S: Likewise.
33936 * parttool/pcpart.c: Likewise.
33937 * video/readers/tga.c: Likewise.
33938 * video/video.c: Likewise.
33939 * video/bitmap.c: Likewise.
33940 * lib/envblk.c: Likewise.
33941 * lib/i386/setjmp.S: Likewise.
33942 * fs/xfs.c: Likewise.
33943 * fs/afs.c: Likewise.
33944 * fs/fat.c: Likewise.
33945 * fs/ntfs.c: Likewise.
33946 * fs/udf.c: Likewise.
33947 * fs/affs.c: Likewise.
33948 * fs/iso9660.c: Likewise.
33949 * fs/hfs.c: Likewise.
33950 * fs/fshelp.c: Likewise.
33951 * fs/ext2.c: Likewise.
33952 * fs/jfs.c: Likewise.
33953 * fs/reiserfs.c: Likewise.
33954 * fs/hfsplus.c: Likewise.
33955 * fs/minix.c: Likewise.
33956 * fs/cpio.c: Likewise.
33957 * fs/sfs.c: Likewise.
33958 * fs/ufs.c: Likewise.
33959 * efiemu/prepare.c: Likewise.
33960 * efiemu/loadcore_common.c: Likewise.
33961 * efiemu/runtime/efiemu.sh: Likewise.
33962 * efiemu/runtime/efiemu.S: Likewise.
33963 * efiemu/runtime/efiemu.c: Likewise.
33964 * efiemu/pnvram.c: Likewise.
33965 * efiemu/main.c: Likewise.
33966 * efiemu/i386/pc/cfgtables.c: Likewise.
33967 * efiemu/i386/loadcore64.c: Likewise.
33968 * efiemu/i386/loadcore32.c: Likewise.
33969 * efiemu/loadcore.c: Likewise.
33970 * efiemu/symbols.c: Likewise.
33971 * efiemu/mm.c: Likewise.
33972 * include/grub/autoefi.h: Likewise.
33973 * include/grub/datetime.h: Likewise.
33974 * include/grub/term.h: Likewise.
33975 * include/grub/hfs.h: Likewise.
33976 * include/grub/lvm.h: Likewise.
33977 * include/grub/i386/tsc.h: Likewise.
33978 * include/grub/i386/linux.h: Likewise.
33979 * include/grub/i386/xnu.h: Likewise.
33980 * include/grub/i386/efiemu.h: Likewise.
33981 * include/grub/i386/pc/biosdisk.h: Likewise.
33982 * include/grub/i386/pc/memory.h: Likewise.
33983 * include/grub/i386/pc/vbe.h: Likewise.
33984 * include/grub/parttool.h: Likewise.
33985 * include/grub/video.h: Likewise.
33986 * include/grub/memory.h: Likewise.
33987 * include/grub/fs.h: Likewise.
33988 * include/grub/partition.h: Likewise.
33989 * include/grub/xnu.h: Likewise.
33990 * include/grub/efi/api.h: Likewise.
33991 * include/grub/efi/pe32.h: Likewise.
33992 * include/grub/efi/memory.h: Likewise.
33993 * include/grub/multiboot.h: Likewise.
33994 * include/grub/usbdesc.h: Likewise.
33995 * include/grub/multiboot2.h: Likewise.
33996 * include/grub/acpi.h: Likewise.
33997 * include/grub/efiemu/efiemu.h: Likewise.
33998 * include/grub/disk.h: Likewise.
33999 * include/grub/ieee1275/ieee1275.h: Likewise.
34000 * include/grub/net.h: Likewise.
34001 * include/grub/machoload.h: Likewise.
34002 * include/grub/macho.h: Likewise.
34003 * include/multiboot.h: Likewise.
34004 * genmoddep.awk: Likewise.
34005 * normal/main.c: Likewise.
34006 * normal/menu_entry.c: Likewise.
34007 * normal/menu_viewer.c: Likewise.
34008 * normal/completion.c: Likewise.
34009 * normal/cmdline.c: Likewise.
34010 * normal/misc.c: Likewise.
34011 * normal/datetime.c: Likewise.
34012 * bus/usb/usbtrans.c: Likewise.
34013 * bus/usb/ohci.c: Likewise.
34014 * bus/usb/uhci.c: Likewise.
34015 * bus/usb/usb.c: Likewise.
34016 * mmap/efi/mmap.c: Likewise.
34017 * mmap/i386/pc/mmap_helper.S: Likewise.
34018 * mmap/i386/pc/mmap.c: Likewise.
34019 * mmap/i386/mmap.c: Likewise.
34020 * mmap/i386/uppermem.c: Likewise.
34021 * mmap/mmap.c: Likewise.
34022 * commands/acpi.c: Likewise.
34023 * commands/echo.c: Likewise.
34024 * commands/blocklist.c: Likewise.
34025 * commands/loadenv.c: Likewise.
34026 * commands/usbtest.c: Likewise.
34027 * commands/boot.c: Likewise.
34028 * commands/parttool.c: Likewise.
34029 * commands/search.c: Likewise.
34030 * commands/cat.c: Likewise.
34031 * commands/i386/pc/play.c: Likewise.
34032 * commands/i386/pc/drivemap.c: Likewise.
34033 * commands/i386/pc/vbeinfo.c: Likewise.
34034 * commands/i386/pc/acpi.c: Likewise.
34035 * commands/i386/pc/vbetest.c: Likewise.
34036 * commands/ls.c: Likewise.
34037 * commands/cmp.c: Likewise.
34038 * commands/test.c: Likewise.
34039 * commands/efi/acpi.c: Likewise.
34040 * commands/gptsync.c: Likewise.
34041 * commands/help.c: Likewise.
34042 * partmap/amiga.c: Likewise.
34043 * partmap/apple.c: Likewise.
34044 * partmap/acorn.c: Likewise.
34045 * partmap/pc.c: Likewise.
34046 * partmap/sun.c: Likewise.
34047 * partmap/gpt.c: Likewise.
34048 * script/sh/lexer.c: Likewise.
34049 * script/sh/function.c: Likewise.
34050 * font/font.c: Likewise.
34051 * font/font_cmd.c: Likewise.
34052 * loader/powerpc/ieee1275/linux.c: Likewise.
34053 * loader/efi/chainloader.c: Likewise.
34054 * loader/multiboot_loader.c: Likewise.
34055 * loader/macho.c: Likewise.
34056 * loader/i386/multiboot.c: Likewise.
34057 * loader/i386/linux.c: Likewise.
34058 * loader/i386/pc/linux.c: Likewise.
34059 * loader/i386/pc/multiboot2.c: Likewise.
34060 * loader/i386/pc/chainloader.c: Likewise.
34061 * loader/i386/pc/xnu.c: Likewise.
34062 * loader/i386/bsd_trampoline.S: Likewise.
34063 * loader/i386/efi/linux.c: Likewise.
34064 * loader/i386/multiboot_elfxx.c: Likewise.
34065 * loader/i386/bsd_helper.S: Likewise.
34066 * loader/i386/bsd.c: Likewise.
34067 * loader/i386/linux_trampoline.S: Likewise.
34068 * loader/i386/xnu_helper.S: Likewise.
34069 * loader/i386/xnu.c: Likewise.
34070 * loader/i386/bsd_pagetable.c: Likewise.
34071 * loader/i386/multiboot_helper.S: Likewise.
34072 * loader/xnu.c: Likewise.
34073 * loader/xnu_resume.c: Likewise.
34074 * io/gzio.c: Likewise.
34075 * term/efi/console.c: Likewise.
34076 * term/terminfo.c: Likewise.
34077 * term/ieee1275/ofconsole.c: Likewise.
34078 * term/i386/pc/serial.c: Likewise.
34079 * term/i386/pc/vesafb.c: Likewise.
34080 * term/i386/pc/vga.c: Likewise.
34081 * term/usb_keyboard.c: Likewise.
34082 * term/gfxterm.c: Likewise.
34083 * aclocal.m4: Likewise.
34084 * util/lvm.c: Likewise.
34085 * util/grub.d/30_os-prober.in: Likewise.
34086 * util/grub.d/10_hurd.in: Likewise.
34087 * util/console.c: Likewise.
34088 * util/grub-macho2img.c: Likewise.
34089 * util/grub-probe.c: Likewise.
34090 * util/hostfs.c: Likewise.
34091 * util/i386/pc/grub-mkimage.c: Likewise.
34092 * util/i386/pc/grub-setup.c: Likewise.
34093 * util/i386/efi/grub-mkimage.c: Likewise.
34094 * util/grub-mkconfig.in: Likewise.
34095 * util/raid.c: Likewise.
34096 * util/resolve.c: Likewise.
34097 * util/grub-mkdevicemap.c: Likewise.
34098 * util/grub-emu.c: Likewise.
34099 * util/getroot.c: Likewise.
34100 * util/hostdisk.c: Likewise.
34101 * util/usb.c: Likewise.
34102 * util/grub-editenv.c: Likewise.
34103 * util/misc.c: Likewise.
34104
d2d49665 341052009-06-10 Felix Zielcke <fzielcke@z-51.de>
34106
34107 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
34108 `genparttoollist.sh'.
34109 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
34110 Add `*.sh' to the list find searches for and change `mdate.sh'
34111 to `mdate-sh'.
34112
fe052e37 341132009-06-10 Pavel Roskin <proski@gnu.org>
34114
2763ac18 34115 * include/grub/multiboot2.h: Provide compatibility defines for
34116 multiboot2.h.
34117 * include/multiboot2.h: Include stdint.h only if needed, using
34118 angle brackets.
34119 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
34120 grub/multiboot2.h.
34121 * loader/ieee1275/multiboot2.c: Likewise.
34122 * loader/multiboot2.c: Likewise.
34123 * loader/multiboot_loader.c: Likewise.
34124
437e6adc 34125 * configure.ac: Use -nostdlib when probing for the target. It
34126 should not be required to have libc for the target.
34127
06a6836c 34128 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
34129 they fail without libc headers for the target.
34130 * include/grub/powerpc/libgcc.h: Use weak attribute for all
34131 exports.
34132 * include/grub/sparc64/libgcc.h: Likewise. Don't use
34133 preprocessor conditionals.
34134
fe052e37 34135 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
34136 build system doesn't need to be aware of the tar.c internals.
34137
afd22553 341382009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 34139
afd22553 34140 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 34141
6b787c4f 341422009-06-09 Robert Millan <rmh.grub@aybabtu.com>
34143
34144 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
34145 disk limit to 26 for IDE, Virtio, Xen and SCSI.
34146
341472009-06-09 Felix Zielcke <fzielcke@z-51.de>
34148
34149 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 34150 aren't available if ata.mod gets used.
6b787c4f 34151
473d1e45 341522009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 34153
473d1e45 34154 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 34155 initialising controller.
473d1e45 34156 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 34157
255a27d4 341582009-06-08 Felix Zielcke <fzielcke@z-51.de>
34159
34160 * util/i386/pc/grub-install.in: Add a parameter --disk-module
34161 to choose between ata and biosdisk module on i386-pc.
34162
473d1e45 341632009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 34164
d55842d8 34165 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
34166 Subclass and Programming Interface fields in terms of the 3 byte
34167 Class Code register.
34168 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34169
fa5db0b1 34170 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
34171 interface is OHCI. Add grub_dprintf for symmetry with
34172 bus/usb/uhci.c.
34173 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
34174 interface is UHCI. Add interf variable for programming
34175 interface. Print interface with class/subclass.
34176
c0947beb 34177 * bus/usb/ohci.c: Set interf with correct field.
34178
69da8877 34179 * bus/usb/uhci.c: Remove unneeded doubled lines.
34180 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
34181 Remove whitespace inside comment.
34182
9e172e30 341832009-06-08 Robert Millan <rmh.grub@aybabtu.com>
34184
34185 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
34186 as fallback an equivalent option without depth.
34187
de65ee2b 341882009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34189
34190 Not fail if unable to retrieve C/H/S on LBA disks
34191
473d1e45 34192 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 34193 if unable to retrieve C/H/S on LBA disks
34194
b57ea2c9 341952009-06-08 Pavel Roskin <proski@gnu.org>
34196
34197 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
34198 about aliasing.
34199
af361263 342002009-06-08 Felix Zielcke <fzielcke@z-51.de>
34201
34202 * Makefile.in (uninstall): Remove all $lib_DATA files.
34203
4c9ec6b3 342042009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34205
34206 Bugfix: install on partitionless device
34207
34208 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
34209 is a whole disk
34210
e76fc924 342112009-06-08 Felix Zielcke <fzielcke@z-51.de>
34212
34213 * Makefile.in (uninstall): Remove all $include_DATA files.
34214
ba5a0d05 342152009-06-08 Felix Zielcke <fzielcke@z-51.de>
34216
34217 * commands/true.c: New file. Implement the true and false commands.
34218 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
34219 (true_mod_SOURCES): New variable.
34220 (true_mod_CFLAGS): Likewise.
34221 (true_mod_LDFLAGS): Likewise.
34222
c8048e32 342232009-06-05 Colin D Bennett <colin@gibibit.com>
34224
34225 Optimized font character lookup using binary search instead of linear
34226 search. Fonts now are required to have the character index ordered by
34227 code point.
34228
34229 * font/font.c (load_font_index): Verify that fonts have ordered
34230 character indices.
34231 (find_glyph): Use binary search instead of linear search to find a
34232 character in a font.
34233
408305be 342342009-06-05 Michael Scherer <misc@mandriva.org>
34235
34236 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
34237 uses case sensitive btree.
34238 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
34239 only for case insensitive filesystems.
34240
8ee1e0d9 342412009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
34242
34243 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
34244 * conf/common.rmk (search_mod_CFLAGS): likewise
34245
a9966eb1 342462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34247
473d1e45 34248 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 34249 compensate a compiler bug
34250
9e7100fb 342512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34252
473d1e45 34253 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 34254 instead of '\b'
473d1e45 34255
ede21d71 342562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34257
34258 Definitions for creating asm symbols with Apple's CC
34259
34260 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
34261 [APPLE_CC] (VARIABLE): likewise
34262
9dbf7653 342632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34264
34265 Disable lnxboot.img when compiled
34266 with Apple's CC
34267
34268 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
34269 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
34270 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
34271 [! APPLE_CC] (CODE_LENG): skip
34272 [! APPLE_CC] (setup_sects): likewise
34273 [! APPLE_CC]: skip filling
473d1e45 34274
e93cdc3d 342752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34276
34277 Address in trampolines based on 32-bit registers when compiled
34278 with Apple's CC
34279
473d1e45 34280 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 34281 for addresses
34282 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
34283
6c688477 342842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34285
34286 Avoid aliases when compiling with Apple's CC for PCBIOS machine
34287
34288 * kern/misc.c [APPLE_CC] (memcpy): new function
34289 [APPLE_CC] (memmove): likewise
34290 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 34291 (memcpy): define alias conditionally on !APPLE_CC
6c688477 34292 (memset): likewise
34293 (abort): likewise
34294 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
34295 APPLE_CC are defined
34296 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
34297 (grub_assert_fail): make prototype conditional
34298
e37ffc5c 342992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34300
34301 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
34302
473d1e45 34303 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
34304 grub-macho2img
e37ffc5c 34305 (CLEANFILES): add grub-macho2img
34306 (grub_macho2img_SOURCES): new variable
34307 * kern/i386/pc/startup.S (bss_start): new variable
34308 (bss_end): likewise
34309 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
34310 * util/grub-macho2img.c: new file
34311
cf00df31 343122009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34313
34314 Use objconv when compiling with Apple's CC
34315
34316 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
34317 (efiemu64.o): likewise
34318 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
34319 when compiling with Apple's CC
34320 (efiemu64_s.o): likewise
34321 * configure.ac: check for objconv when compiling with Apple's CC
34322 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 34323
d119a20c 343242009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34325
34326 Define segment as well as section when compiling with
34327 Apple's CC
34328
34329 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
34330 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
34331 (efiemu_convert_pointer): likewise
34332 (efiemu_set_virtual_address_map): likewise
34333 (efiemu_convert_pointer): likewise
34334 (efiemu_getcrc32): likewise
34335 (init_crc32_table): likewise
34336 (reflect): likewise
34337 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
34338 (GRUB_MOD_DEP): likewise
473d1e45 34339
c8600122 343402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34341
34342 Allow a compilation without -mcmodel=large
34343
34344 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
34345 when compiled without -mcmodel=large
473d1e45 34346 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 34347 without -mcmodel=large
473d1e45 34348 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 34349 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 34350
e8df1d4e 343512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34352
34353 Remove nested functions in efiemu core
34354
34355 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 34356
cc6c3ac1 343572009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34358
34359 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
34360
34361 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
34362 temporary storage
473d1e45 34363 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
34364 using Apple's CC
cc6c3ac1 34365 (grub_cpu_is_tsc_supported): likewise
34366 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 34367
3e325901 343682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34369
34370 Absolute addressing through constant with Apple's cc
34371
34372 * kern/i386/pc/startup.S: Define necessary constants
34373 and address through it when using ABS with Apple's CC
34374 * boot/i386/pc/diskboot.S: likewise
34375 * boot/i386/pc/boot.S: likewise
34376 * boot/i386/pc/lnxboot.S: likewise
34377 * boot/i386/pc/cdboot.S: likewise
34378 * mmap/i386/pc/mmap_helper.S: likewise
34379 * commands/i386/pc/drivemap_int13h.S: likewise
34380
2b167a72 343812009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34382
34383 Check if compiler is apple cc
34384
34385 * Makefile.in (ASFLAGS): new variable
34386 (TARGET_ASFLAGS): likewise
34387 (TARGET_MODULE_FORMAT): likewise
34388 (TARGET_APPLE_CC): likewise
34389 (OBJCONV): likewise
34390 (TARGET_IMG_CFLAGS): likewise
34391 (TARGET_CPPFLAGS): add includedir
34392 * configure.ac: call grub_apple_cc and grub_apple_target_cc
34393 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
34394 Check for linker script only if compiler isn't Apple's CC
34395 (TARGET_MODULE_FORMAT): set
34396 (TARGET_APPLE_CC): likewise
34397 (TARGET_ASFLAGS): likewise
34398 (ASFLAGS): likewise
34399 Check for objcopy only if compiler isn't Apple's CC
34400 Check for BSS symbol only if compiler isn't Apple's CC
34401 * genmk.rb: adapt nm options if we use Apple's utils
34402 * aclocal.m4 (grub_apple_cc): new test
34403 (grub_apple_target_cc): likewise
473d1e45 34404
fb14123e 344052009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34406
34407 Simplify sed expressions and improve awk
34408
34409 * Makefile.in (install-local): simplify sed expression
34410 * gencmdlist.sh: likewise
34411 * genmoddep.awk: avoid adding module as a dependency of itself
34412
5b889789 344132009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34414
34415 Add missing start symbols
34416
34417 * boot/i386/pc/boot.S: add start
fb14123e 34418 * boot/i386/pc/pxeboot.S: likewise
473d1e45 34419
fd2bf2e3 344202009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34421
34422 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 34423
34424 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 34425 (relocate_addresses): consider both r_addend and value at offset
34426 (make_mods_section): zerofill modinfo and header
34427 (convert_elf): write prefix here
473d1e45 34428
5389763d 344292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34430
34431 Use .asciz instead of .string
34432
34433 * i386/pc/diskboot.S: use .asciz instead of .string
34434 * i386/pc/boot.S: likewise
34435 * include/grub/dl.h (GRUB_MOD_DEP): likewise
34436 (GRUB_MOD_NAME): likewise
473d1e45 34437
3eb5ed4e 344382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34439
34440 gfxpayload support
34441
34442 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
34443 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
34444 (grub_video_setup): remove
34445 (grub_video_set_mode): new prototype
34446 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
34447 (vid_mode): remove
34448 (linux_vesafb_res): compile only on PCBIOS
34449 (grub_linux_boot): support gfxpayload
34450 * loader/i386/pc/xnu.c (video_hook): new function
34451 (grub_xnu_set_video): support gfxpayload
34452 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
34453 (DEFAULT_VIDEO_HEIGHT): likewise
34454 (DEFAULT_VIDEO_FLAGS): likewise
34455 (DEFAULT_VIDEO_MODE): new definition
34456 (video_hook): new function
34457 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 34458 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 34459 loading xnu
34460 * video/video.c (grub_video_setup): removed
473d1e45 34461 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 34462 grub_video_setup
34463
4b0e1143 344642009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34465
34466 Avoid calling biosdisk in drivemap
34467
34468 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
34469 (revparse_biosdisk): likewise
34470 (list_mappings): derive name from id directly
34471 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 34472
fda6cb98 344732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34474
34475 Script fixes
34476
34477 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
34478 (grub_lexer_param): add tokenonhold
34479 (grub_script_create_cmdline): remove cmdline. All callers updated
34480 (grub_script_function_create): make functionname
34481 grub_script_arg. All callers updated
34482 (grub_script_execute_argument_to_string): new prototype
34483 * kern/parser.c (state_transitions): reorder
34484 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 34485 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 34486 make global
34487 (grub_script_execute_cmdline): use new format
34488 * script/sh/function.c (grub_script_function_create): make functionname
34489 grub_script_arg. All callers updated
473d1e45 34490 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 34491 (grub_script_yylex): remove
34492 (grub_script_yylex2): renamed to ...
34493 (grub_script_yylex): ...renamed
34494 parse the expressions like a${b}c
34495 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
34496 (GRUB_PARSER_TOKEN_VAR): remove
34497 (GRUB_PARSER_TOKEN_NAME): likewise
34498 ("if"): declare as typeless
34499 ("while"): likewise
34500 ("function"): likewise
34501 ("else"): likewise
34502 ("then"): likewise
34503 ("fi"): likewise
34504 (text): remove
34505 (argument): likewise
34506 (script): accept empty scripts and make exit on error
34507 (arguments): use GRUB_PARSER_TOKEN_ARG
34508 (function): likewise
34509 (command): move error handling to script
34510 (menuentry): move grub_script_lexer_ref before
473d1e45 34511 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 34512 argument. All callers updated
34513
f4448a07 345142009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34515
34516 Prevent GRUB from probing floppies during boot.
34517
34518 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
34519 * commands/search.c (options): Add --no-floppy.
34520 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
34521 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
34522 --no-floppy when searching for UUIDs.
34523
2bf5885a 345242009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34525
34526 Simplify the code duplication in commands/search.c.
34527
34528 * commands/search.c (search_label, search_fs_uuid): Merge into ...
34529 (search_fs): ... this. Update all users.
34530
f6fd460a 345312009-06-03 Felix Zielcke <fzielcke@z-51.de>
34532
34533 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
34534
cbb3c83e 345352009-05-28 Pavel Roskin <proski@gnu.org>
34536
57788cfd 34537 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
34538 Remove the original symlink explicitly.
34539
cbb3c83e 34540 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
34541 just one slash. That's how grub_fshelp_find_file() does it.
34542
cd0d5e30 345432009-05-26 Pavel Roskin <proski@gnu.org>
34544
f0f8bbe2 34545 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
34546 to `str'.
34547
cd0d5e30 34548 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
34549 possibly unused.
34550
8c2cab51 345512009-05-25 Christian Franke <franke@computer.org>
34552
34553 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
34554 register.
34555 (grub_atapi_identify): Add wait after drive select.
34556 (grub_ata_identify): Do more strict status register check before
34557 calling grub_atapi_identify (). Suppress error message if status
34558 register is 0x00 after command failure. Add status register
34559 check after PIO read to avoid bogus identify due to stuck DRQ.
34560 Thanks to Pavel Roskin for testing.
34561 (grub_device_initialize): Remove unsafe status register check.
34562 Thanks to 'phcoder' for problem report and patch.
34563 Prevent sign extension in debug message.
34564
230c0ad6 345652009-05-23 Colin D Bennett <colin@gibibit.com>
34566
34567 Cleaned up `include/grub/normal.h'. Grouped prototypes by
34568 definition file, and functions defined in `normal/menu.c' have had
34569 their prototypes moved to `include/grub/menu.h' for consistency.
34570
34571 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
34572 from normal.h.
34573 (grub_menu_get_entry): Likewise.
34574 (grub_menu_get_timeout): Likewise.
34575 (grub_menu_set_timeout): Likewise.
34576 (grub_menu_execute_entry): Likewise.
34577 (grub_menu_execute_with_fallback): Likewise.
34578 (grub_menu_entry_run): Likewise.
34579
34580 * include/grub/normal.h: Re-ordered and grouped function
34581 prototypes by file that the function is defined in.
34582 (grub_menu_execute_callback): Removed; moved to menu.h.
34583 (grub_menu_get_entry): Likewise.
34584 (grub_menu_get_timeout): Likewise.
34585 (grub_menu_set_timeout): Likewise.
34586 (grub_menu_execute_entry): Likewise.
34587 (grub_menu_execute_with_fallback): Likewise.
34588 (grub_menu_entry_run): Likewise.
34589 (grub_menu_addentry): Renamed from this ...
34590 (grub_normal_add_menu_entry): ... to this.
34591
34592 * normal/main.c (grub_menu_addentry): Renamed from this ...
34593 (grub_normal_add_menu_entry): ... to this.
34594
34595 * script/sh/execute.c (grub_script_execute_menuentry): Update
34596 reference to renamed grub_menu_addentry function.
34597
861f03a5 345982009-05-23 Felix Zielcke <fzielcke@z-51.de>
34599
34600 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
34601
96b1619a 346022009-05-22 Pavel Roskin <proski@gnu.org>
34603
bf6a5fb2 34604 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
34605 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
34606 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
34607 compiling for the i386 targets, but not for the utilities.
34608
96b1619a 34609 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
34610 to grub_uint8_t.
34611 (grub_root_drive): Likewise.
34612 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
34613 remove alignment.
34614 (grub_root_drive): Change size to byte.
34615 (grub_start_addr): Remove.
34616 (grub_end_addr): Likewise.
34617 (grub_apm_bios_info): Likewise.
34618
b729776b 346192009-05-21 Felix Zielcke <fzielcke@z-51.de>
34620
34621 * normal/i386: Remove.
34622 * normal/powerpc: Likewise.
34623 * normal/sparc64: Likewise.
34624 * normal/x86_64: Likewise.
34625
0a15ce80 346262009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
34627
34628 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 34629 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 34630 * loader/i386/xnu_helper.S: Likewise
d6da58e6 34631
33db9015 346322009-05-18 Colin D Bennett <colin@gibibit.com>
34633
d6da58e6 34634 Display error messages when parsing a Lua statement fails.
34635 Previously, executing a syntactically invalid statement like
34636 ")foo" or "bar;" would silently fail.
33db9015 34637
34638 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 34639 (grub_lua_parse_line): Improved reporting of Lua parser and
34640 execution errors.
33db9015 34641
46422c89 346422009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
34643
34644 Remove -Werror which causes build to fail on some systems
34645
34646 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
34647 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
34648 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 34649
22f53a96 346502009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
34651
34652 trampoline for linux on 64-bit platform
34653
18f547ad 34654 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
34655 loader/i386/efi/linux_trampoline.S
34656 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 34657 declaration
d6da58e6 34658 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
34659 here
22f53a96 34660 * loader/i386/linux_trampoline.S: moved here
d6da58e6 34661 * loader/i386/efi/linux.c (allocate_pages): reserve space for
34662 trampoline
22f53a96 34663 (jumpvector): removed
34664 (grub_linux_trampoline_start): new declaration
34665 (grub_linux_trampoline_end): likewise
34666 (grub_linux_boot): use trampoline when on 64-bit platform
34667 * loader/i386/linux.c: likewise
34668
cb5a0f40 346692009-05-16 Pavel Roskin <proski@gnu.org>
34670
34671 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
34672 const to avoid a warning.
34673 (grub_lua_setenv): Likewise.
34674 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
34675 lmsg to fix a warning.
34676
334f2c28 346772009-05-16 Felix Zielcke <fzielcke@z-51.de>
34678
34679 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 34680 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34681 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
34682 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34683 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
34684 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34685 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
34686 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 34687
59e5d3ec 346882009-05-16 Felix Zielcke <fzielcke@z-51.de>
34689
34690 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
34691
9d87a1ba 346922009-05-16 Bean <bean123ch@gmail.com>
34693
34694 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
34695 (lua_mod_SOURCES): New variable.
34696 (lua_mod_CFLAGS): Likewise.
34697 (lua_mod_LDFLAGS): Likewise.
34698
34699 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
34700 (setjmp_mod_SOURCES): New variable.
34701 (setjmp_mod_CFLAGS): Likewise.
34702 (setjmp_LDFLAGS): Likewise.
34703
34704 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
34705 (setjmp_mod_SOURCES): New variable.
34706 (setjmp_mod_CFLAGS): Likewise.
34707 (setjmp_LDFLAGS): Likewise.
34708
34709 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
34710 (setjmp_mod_SOURCES): New variable.
34711 (setjmp_mod_CFLAGS): Likewise.
34712 (setjmp_LDFLAGS): Likewise.
34713
34714 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
34715 (setjmp_mod_SOURCES): New variable.
34716 (setjmp_mod_CFLAGS): Likewise.
34717 (setjmp_LDFLAGS): Likewise.
34718
34719 * normal/i386/setjmp.S: Moved from here ...
34720 * lib/i386/setjmp.S: ... Moved here
34721 * normal/x86_64/setjmp.S: Moved from here ...
34722 * lib/x86_64/setjmp.S: ... Moved here
34723 * normal/powerpc/setjmp.S: Moved from here ...
34724 * lib/powerpc/setjmp.S: ... Moved here
34725 * normal/sparc64/setjmp.S: Moved from here ...
34726 * lib/sparc64/setjmp.S: ... Moved here
34727
34728 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
34729 returns_twice in mingw.
34730
34731 * script/lua/grub_lib.c: New file.
34732 * script/lua/grub_lib.h: Likewise.
34733 * script/lua/grub_lua.h: Likewise.
34734 * script/lua/grub_main.c: Likewise.
34735 * script/lua/lapi.c: Likewise.
34736 * script/lua/lapi.h: Likewise.
34737 * script/lua/lauxlib.c: Likewise.
34738 * script/lua/lauxlib.h: Likewise.
34739 * script/lua/lbaselib.c: Likewise.
34740 * script/lua/lcode.c: Likewise.
34741 * script/lua/lcode.h: Likewise.
34742 * script/lua/ldblib.c: Likewise.
34743 * script/lua/ldebug.c: Likewise.
34744 * script/lua/ldebug.h: Likewise.
34745 * script/lua/ldo.c: Likewise.
34746 * script/lua/ldo.h: Likewise.
34747 * script/lua/ldump.c: Likewise.
34748 * script/lua/lfunc.c: Likewise.
34749 * script/lua/lfunc.h: Likewise.
34750 * script/lua/lgc.c: Likewise.
34751 * script/lua/lgc.h: Likewise.
34752 * script/lua/linit.c: Likewise.
34753 * script/lua/liolib.c: Likewise.
34754 * script/lua/llex.c: Likewise.
34755 * script/lua/llex.h: Likewise.
34756 * script/lua/llimits.h: Likewise.
34757 * script/lua/lmathlib.c: Likewise.
34758 * script/lua/lmem.c: Likewise.
34759 * script/lua/lmem.h: Likewise.
34760 * script/lua/loadlib.c: Likewise.
34761 * script/lua/lobject.c: Likewise.
34762 * script/lua/lobject.h: Likewise.
34763 * script/lua/lopcodes.c: Likewise.
34764 * script/lua/lopcodes.h: Likewise.
34765 * script/lua/loslib.c: Likewise.
34766 * script/lua/lparser.c: Likewise.
34767 * script/lua/lparser.h: Likewise.
34768 * script/lua/lstate.c: Likewise.
34769 * script/lua/lstate.h: Likewise.
34770 * script/lua/lstring.c: Likewise.
34771 * script/lua/lstring.h: Likewise.
34772 * script/lua/lstrlib.c: Likewise.
34773 * script/lua/ltable.c: Likewise.
34774 * script/lua/ltable.h: Likewise.
34775 * script/lua/ltablib.c: Likewise.
34776 * script/lua/ltm.c: Likewise.
34777 * script/lua/ltm.h: Likewise.
34778 * script/lua/lua.h: Likewise.
34779 * script/lua/luaconf.h: Likewise.
34780 * script/lua/lualib.h: Likewise.
34781 * script/lua/lundump.c: Likewise.
34782 * script/lua/lundump.h: Likewise.
34783 * script/lua/lvm.c: Likewise.
34784 * script/lua/lvm.h: Likewise.
34785 * script/lua/lzio.c: Likewise.
34786 * script/lua/lzio.h: Likewise.
34787
5e898c9d 347882009-05-16 Bean <bean123ch@gmail.com>
34789
34790 * include/grub/kernel.h (grub_module_header_types): Add type
34791 OBJ_TYPE_CONFIG.
34792
34793 * kern/main.c (grub_load_config): New function.
34794 (grub_main): Call grub_load_config to read boot config.
34795
34796 * grub-mkimage (generate_image): New parameter config_path.
34797 (options): New option --config.
34798 (main): Parse --config option, and pass it to generate_image.
34799
cf353a47 348002009-05-14 Christian Franke <franke@computer.org>
34801
34802 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
34803 This fixes build on Cygwin.
34804
3834887f 348052009-05-14 Pavel Roskin <proski@gnu.org>
34806
34807 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
34808 jump. This saves two bytes, so the typical case of 2 swapped
34809 drives would fit 32 bytes.
34810
8090fc01 348112009-05-13 Pavel Roskin <proski@gnu.org>
34812
ac963883 34813 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
34814 grub_uint32_t to avoid a warning.
34815
8090fc01 34816 * loader/i386/linux.c (allocate_pages): When assigning
34817 real_mode_mem, cast through grub_size_t to fix a warning. The
34818 code already makes sure that the value would fit a pointer.
34819 (grub_linux_setup_video): Cast render_target->data to
34820 grub_size_t to fix a warning.
34821
18f547ad 348222009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 34823
34824 * commands/i386/pc/drivemap.c: New file - implement drivemap
34825 command.
34826 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
34827 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
34828
6f6a8b28 348292009-05-13 Pavel Roskin <proski@gnu.org>
34830
34831 * util/i386/pc/grub-setup.c (setup): Remove unused variable
34832 embedding_area_exists.
34833
15fbf4c4 348342009-05-13 Robert Millan <rmh.grub@aybabtu.com>
34835
34836 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
34837 it easier to understand / work with.
59978c8a 34838 Improve warning messages for cases where there's no embedding area,
34839 or when it is too small (or core.img too large).
15fbf4c4 34840
238e871f 348412009-05-13 Pavel Roskin <proski@gnu.org>
34842
0ab3a9a4 34843 * loader/i386/pc/multiboot2.c: Add necessary includes for
34844 grub_multiboot2_real_boot().
34845
a2c8c5f8 34846 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
34847 PX record is always little-endian. We only need the lower 2
34848 bytes of the mode.
34849
faec96af 34850 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
34851 facilitate code reuse.
34852 (grub_cpio_mount): Use "struct head", not a char buffer. This
34853 fixes a warning reported by gcc 4.4.
34854
238e871f 34855 * kernel/disk.c (grub_disk_read): Use void pointer for the
34856 buffer.
34857 (grub_disk_write): Use const void pointer for the buffer.
34858 Adjust all callers. Remove unnecessary casts.
34859
901d2f0c 348602009-05-10 Robert Millan <rmh.grub@aybabtu.com>
34861
34862 * util/i386/pc/grub-install.in: Update copyright year.
34863
18f547ad 348642009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 34865
34866 gptsync
34867
34868 * commands/gptsync.c: new file
34869 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
34870 (gptsync_mod_SOURCES): new variable
34871 (gptsync_mod_CFLAGS): likewise
34872 (gptsync_mod_LDFLAGS): likewise
18f547ad 34873 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 34874 new definition
34875 (GRUB_PC_PARTITION_TYPE_HFS): likewise
34876 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
34877 * conf/i386-ieee1275.rmk: likewise
34878 * conf/i386-pc.rmk: likewise
34879 * conf/powerpc-ieee1275.rmk: likewise
34880
b4ba690a 348812009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
34882
34883 Fixed grub-emu
34884
34885 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
34886 (grub_dl_ref): likewise
34887
317e1a44 348882009-05-08 Robert Millan <rmh.grub@aybabtu.com>
34889
34890 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
34891 split in two functions (one for msdos and one for gpt).
34892
041b8094 348932009-05-08 Pavel Roskin <proski@gnu.org>
34894
752473c2 34895 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
34896 not modified.
34897
041b8094 34898 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
34899 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
34900 Initialize them with -1. Add sanity check for bad1. Eliminate
34901 nerr variable.
34902
172800ce 349032009-05-08 David S. Miller <davem@davemloft.net>
34904
34905 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
34906
29aa5e81 349072009-05-06 Robert Millan <rmh.grub@aybabtu.com>
34908
34909 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 34910 existence.
29aa5e81 34911
96613b62 349122009-05-05 Felix Zielcke <fzielcke@z-51.de>
34913
34914 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 34915 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 34916
eef73c8a 349172009-05-05 David S. Miller <davem@davemloft.net>
34918
34919 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
34920
119494b5 349212009-05-05 Pavel Roskin <proski@gnu.org>
34922
34923 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
34924 of grub_dl_ref() and grub_dl_unref().
34925 * commands/parttool.c: Remove preprocessor conditionals around
34926 grub_dl_ref() and grub_dl_unref().
34927 * fs/affs.c: Likewise.
34928 * fs/afs.c: Likewise.
34929 * fs/cpio.c: Likewise.
34930 * fs/ext2.c: Likewise.
34931 * fs/fat.c: Likewise.
34932 * fs/hfs.c: Likewise.
34933 * fs/hfsplus.c: Likewise.
34934 * fs/iso9660.c: Likewise.
34935 * fs/jfs.c: Likewise.
34936 * fs/minix.c: Likewise.
34937 * fs/ntfs.c: Likewise.
34938 * fs/reiserfs.c: Likewise.
34939 * fs/sfs.c: Likewise.
34940 * fs/udf.c: Likewise.
34941 * fs/ufs.c: Likewise.
34942 * fs/xfs.c: Likewise.
34943 * include/grub/dl.h: Likewise.
34944 * loader/xnu.c: Likewise.
34945
de5fd76e 349462009-05-04 Pavel Roskin <proski@gnu.org>
34947
34948 * commands/acpi.c: Remove unused variable my_mod.
34949 * partmap/amiga.c: Likewise.
34950 * partmap/apple.c: Likewise.
34951 * partmap/gpt.c: Likewise.
34952 * partmap/pc.c: Likewise.
34953 * partmap/sun.c: Likewise.
34954 * term/gfxterm.c: Likewise.
34955 * term/i386/pc/vesafb.c: Likewise.
34956 * term/i386/pc/vga.c: Likewise.
34957
983598ad 349582009-05-04 David S. Miller <davem@davemloft.net>
34959
34960 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
34961 pointer args to grub_ieee1275_get_property().
34962
8aadec43 34963 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
34964
9554b15e 34965 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
34966 devices, and do not traverse down under controller nodes.
34967
67e23c90 34968 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
34969 (grub_ofdisk_open): Use it to un-escape "," characters.
34970 * kern/disk.c (find_part_sep): New.
34971 (grub_disk_open): Use it to find the first non-escaped ','
34972 character in the disk name.
34973 * util/ieee1275/devicemap.c (escape_of_path): New.
34974 (grub_util_emit_devicemap_entry): Use it.
34975 * util/sparc64/ieee1275/grub-install.in: Update script to
34976 strip partition specifiers properly by not triggering on
34977 '\' escaped ',' characters.
34978
74bfdd2f 349792009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34980
34981 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
34982 to 0x300.
34983 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
34984 resolutions.
34985 (linux_vesafb_modes): Add a lot of additional modes to the list (based
34986 on documentation from Wikipedia).
34987
4241d2b1 349882009-05-04 Pavel Roskin <proski@gnu.org>
34989
34990 * disk/ata.c: Spelling fixes.
34991 * disk/raid.c: Likewise.
34992 * disk/usbms.c: Likewise.
34993 * disk/dmraid_nvidia.c: Likewise.
34994 * kern/ieee1275/openfw.c: Likewise.
34995 * kern/ieee1275/init.c: Likewise.
34996 * kern/ieee1275/cmain.c: Likewise.
34997 * boot/i386/pc/cdboot.S: Likewise.
34998 * video/readers/png.c: Likewise.
34999 * video/i386/pc/vbe.c: Likewise.
35000 * fs/udf.c: Likewise.
35001 * fs/hfs.c: Likewise.
35002 * fs/reiserfs.c: Likewise.
35003 * efiemu/runtime/efiemu.c: Likewise.
35004 * efiemu/main.c: Likewise.
35005 * efiemu/mm.c: Likewise.
35006 * include/grub/elf.h: Likewise.
35007 * include/grub/xnu.h: Likewise.
35008 * include/grub/usbdesc.h: Likewise.
35009 * include/grub/usb.h: Likewise.
35010 * include/grub/script_sh.h: Likewise.
35011 * include/grub/lib/LzmaEnc.h: Likewise.
35012 * include/grub/efiemu/efiemu.h: Likewise.
35013 * include/grub/command.h: Likewise.
35014 * normal/menu.c: Likewise.
35015 * normal/main.c: Likewise.
35016 * normal/datetime.c: Likewise.
35017 * bus/usb/uhci.c: Likewise.
35018 * mmap/i386/uppermem.c: Likewise.
35019 * mmap/mmap.c: Likewise.
35020 * commands/acpi.c: Likewise.
35021 * commands/test.c: Likewise.
35022 * partmap/apple.c: Likewise.
35023 * font/font.c: Likewise.
35024 * loader/sparc64/ieee1275/linux.c: Likewise.
35025 * loader/macho.c: Likewise.
35026 * loader/i386/bsd_trampoline.S: Likewise.
35027 * loader/i386/bsd.c: Likewise.
35028 * loader/xnu.c: Likewise.
35029 * term/i386/pc/vesafb.c: Likewise.
35030 * term/usb_keyboard.c: Likewise.
35031 * util/resolve.c: Likewise.
35032 * util/getroot.c: Likewise.
35033
0cfc0083 350342009-05-04 Felix Zielcke <fzielcke@z-51.de>
35035
35036 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
35037
7c1d00cd 350382009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35039
35040 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
35041 build error.
35042
b01f0548 350432009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35044
35045 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
35046 parameter only available on BIOS.
35047
ecc3eb22 350482009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35049
35050 Removed wrong semicolon in declaration
35051
35052 * grub/misc.h (grub_dprintf): remove semicolon
35053
112972a9 350542009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35055
35056 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
35057 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
35058 is done by grub_cmd_linux() now).
35059 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
35060 restore video to text mode.
35061 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
35062 indicates lack of "vga=" parameter. "vga=0" is mapped to
35063 `GRUB_LINUX_VID_MODE_NORMAL'.
35064
afd5c115 350652009-05-04 Felix Zielcke <fzielcke@z-51.de>
35066
35067 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
35068 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
35069 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 35070 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 35071 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
35072 `grub_script.tab.c'.
35073
35074 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35075 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35076 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35077 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35078 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35079
faa517ce 35080 * Makefile.in: Remove duplicated 2008 in Copyright line.
35081
ae0c0bdc 350822009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35083
473d1e45 35084 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 35085 unconditionally.
35086 * include/grub/util/misc.h (grub_util_warn): New declaration.
35087
35088 * util/i386/pc/grub-install.in: Understand --force and pass it down
35089 to grub-setup.
35090
35091 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
35092 down to setup().
35093 (setup): Improve error messages and add warnings when requested to
35094 install in odd layouts. Refuse to install using blocklists unless
35095 --force was set.
35096
18f547ad 350972009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 35098
35099 * disk/raid.c (grub_raid_scan_device): Improve debug message.
35100
6d260daa 351012009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35102
35103 Updated copyright year
35104
35105 * fs/hfsplus.c: updated copyright year
18f547ad 35106
69f853f8 351072009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35108
35109 HFS+ UUID
35110
18f547ad 35111 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 35112 in the space previously used by unused3
35113 (grub_hfsplus_uuid): new function
35114 (grub_hfsplus_fs): added uuid field
35115
4c402e73 351162009-05-03 Pavel Roskin <proski@gnu.org>
35117
35118 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
35119 suppress warnings. It's no longer needed.
35120 * disk/host.c: Likewise.
35121 * disk/ata_pthru.c: Likewise.
35122 * disk/loopback.c: Likewise.
35123 * hook/datehook.c: Likewise.
35124 * parttool/pcpart.c: Likewise.
35125 * fs/i386/pc/pxe.c: Likewise.
35126 * fs/ntfscomp.c: Likewise.
35127 * efiemu/main.c: Likewise.
35128 * mmap/mmap.c: Likewise.
35129 * commands/crc.c: Likewise.
35130 * commands/hexdump.c: Likewise.
35131 * commands/hdparm.c: Likewise.
35132 * commands/acpi.c: Likewise.
35133 * commands/echo.c: Likewise.
35134 * commands/minicmd.c: Likewise.
35135 * commands/blocklist.c: Likewise.
35136 * commands/memrw.c: Likewise.
35137 * commands/loadenv.c: Likewise.
35138 * commands/usbtest.c: Likewise.
35139 * commands/lsmmap.c: Likewise.
35140 * commands/boot.c: Likewise.
35141 * commands/parttool.c: Likewise.
35142 * commands/configfile.c: Likewise.
35143 * commands/search.c: Likewise.
35144 * commands/ieee1275/suspend.c: Likewise.
35145 * commands/cat.c: Likewise.
35146 * commands/i386/pc/pxecmd.c: Likewise.
35147 * commands/i386/pc/play.c: Likewise.
35148 * commands/i386/pc/halt.c: Likewise.
35149 * commands/i386/pc/vbeinfo.c: Likewise.
35150 * commands/i386/pc/vbetest.c: Likewise.
35151 * commands/lspci.c: Likewise.
35152 * commands/date.c: Likewise.
35153 * commands/handler.c: Likewise.
35154 * commands/ls.c: Likewise.
35155 * commands/test.c: Likewise.
35156 * commands/cmp.c: Likewise.
35157 * commands/efi/loadbios.c: Likewise.
35158 * commands/efi/fixvideo.c: Likewise.
35159 * commands/halt.c: Likewise.
35160 * commands/help.c: Likewise.
35161 * commands/reboot.c: Likewise.
35162 * hello/hello.c: Likewise.
35163 * script/sh/main.c: Likewise.
35164 * loader/xnu.c: Likewise.
35165 * term/terminfo.c: Likewise.
35166 * term/i386/pc/serial.c: Likewise.
35167 * term/usb_keyboard.c: Likewise.
35168
515b5079 351692009-05-03 David S. Miller <davem@davemloft.net>
35170
35171 * normal/menu.c: Include grub/parser.h
35172
dfc31a22 351732009-05-03 Pavel Roskin <proski@gnu.org>
35174
2fee74f1 35175 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
35176 not char*.
35177 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
35178 Suggested by Javier Martín <lordhabbit@gmail.com>
35179
dfc31a22 35180 * util/i386/pc/grub-mkrescue.in: Allow for the case when
35181 efiemu??.o doesn't exist.
35182 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
35183 copying.
35184
18f547ad 351852009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 35186
35187 FreeBSD 64-bit support
35188
18f547ad 35189 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 35190 and loader/i386/bsd_trampoline.S
35191 (bsd_mod_ASFLAGS): new variable
35192 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
35193 (FREEBSD_MODTYPE_KERNEL64): likewise
35194 (grub_bsd64_trampoline_start): likewise
35195 (grub_bsd64_trampoline_end): likewise
35196 (grub_bsd64_trampoline_selfjump): likewise
35197 (grub_bsd64_trampoline_gdt): likewise
35198 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
35199 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
35200 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
35201 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 35202 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 35203 of "attrib" member
35204 * loader/i386/bsd_pagetable.c: new file
35205 * loader/i386/bsd_trampoline.S: likewise
35206 * loader/i386/bsd.c (ALIGN_QWORD): new macro
35207 (ALIGN_VAR): likewise
35208 (entry_hi): new variable
35209 (kern_end_mdofs): likewise
35210 (is_64bit): likewise
35211 (grub_freebsd_add_meta): use ALIGN_VAR
35212 (grub_e820_mmap): new declaration
35213 (grub_freebsd_add_mmap): new function
35214 (grub_freebsd_add_meta_module): support 64 bit kernels
35215 (grub_freebsd_list_modules): use ALIGN_VAR
35216 (gdt_descriptor): new declaration
35217 (grub_freebsd_boot): support 64 bit kernels
35218 (grub_bsd_elf64_hook): new function
35219 (grub_bsd_load_elf): support elf64
35220
038c5720 352212009-05-03 Bean <bean123ch@gmail.com>
35222
35223 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
35224 after we get the result of if statement.
35225
fc45fb58 352262009-05-03 Bean <bean123ch@gmail.com>
35227
35228 * Makefile.in (enable_efiemu): New variable.
35229
35230 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
35231 set.
35232 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
35233 path.
35234 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
35235 path, add -mno-red-zone option.
35236 (efiemu64_s.o): Likewise.
35237 (efiemu64.o): Use macro $^ for source file.
35238
35239 * configure.ac (--enable-efiemu): New option.
35240
bbee0f2b 352412009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
35242
35243 xnu support
35244
35245 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
35246 (pkglib_MODULES): add xnu.mod
35247 (xnu_mod_SOURCES): new variable
35248 (xnu_mod_CFLAGS): likewise
35249 (xnu_mod_LDFLAGS): likewise
35250 (xnu_mod_ASFLAGS): likewise
35251 * conf/i386-pc.rmk: likewise
35252 * conf/x86_64-efi.rmk: likewise
7dd4a573 35253 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 35254 new declaration
35255 * include/grub/i386/macho.h: new file
35256 * include/grub/i386/xnu.h: likewise
35257 * include/grub/macho.h: likewise
35258 * include/grub/machoload.h: likewise
35259 * include/grub/x86_64/macho.h: likewise
35260 * include/grub/x86_64/xnu.h: likewise
35261 * include/grub/xnu.h: likewise
35262 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
35263 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
35264 * loader/i386/efi/xnu.c: new file
35265 * loader/i386/pc/xnu.c: likewise
35266 * loader/i386/xnu.c: likewise
35267 * loader/i386/xnu_helper.S: likewise
35268 * loader/macho.c: likewise
35269 * loader/xnu.c: likewise
35270 * loader/xnu_resume.c: likewise
35271 * util/grub-dumpdevtree: likewise
35272 * include/grub/i386/pit.h: include grub/err.h
35273 (grub_pit_wait): export
35274 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 35275
5caf964d 352762009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35277
35278 Efiemu
7dd4a573 35279
5caf964d 35280 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 35281 _linux_efi, linux_efi.
35282 new files in grub-emu
5caf964d 35283 new targets efiemu32.o and efiemu64.o
35284 * loader/linux_normal_efiemu.c: likewise
35285 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 35286 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 35287 files to copy
35288 * include/grub/autoefi.h: new file
7dd4a573 35289 * include/grub/i386/efiemu.h: likewise
5caf964d 35290 * include/grub/i386/pc/efiemu.h: likewise
35291 * include/grub/efi/api.h: add LL suffix when necessary
35292 new definitions relating to tables
35293 * include/grub/efiemu/efiemu.h: new file
35294 * include/grub/efiemu/runtime.h: likewise
35295 * efiemu/prepare.c: likewise
35296 * efiemu/loadcore_common.c: likewise
35297 * efiemu/loadcore64.c: likewise
35298 * efiemu/runtime/efiemu.sh: likewise
35299 * efiemu/runtime/efiemu.S: likewise
35300 * efiemu/runtime/efiemu.c: likewise
35301 * efiemu/runtime/config.h: likewise
35302 * efiemu/prepare32.c: likewise
35303 * efiemu/main.c: likewise
35304 * efiemu/modules/pnvram.c: likewise
35305 * efiemu/modules/i386: likewise
35306 * efiemu/modules/i386/pc: likewise
35307 * efiemu/modules/acpi.c: likewise
35308 * efiemu/i386/pc/cfgtables.c: likewise
35309 * efiemu/i386/loadcore64.c: likewise
35310 * efiemu/i386/loadcore32.c: likewise
35311 * efiemu/prepare64.c: likewise
35312 * efiemu/loadcore.c: likewise
35313 * efiemu/symbols.c: likewise
35314 * efiemu/mm.c: likewise
35315 * efiemu/loadcore32.c: likewise
7dd4a573 35316
353172009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 35318
35319 ACPI spoofing
35320
35321 * commands/acpi.c: new file
35322 * commands/i386/pc/acpi.c: likewise
35323 * commands/efi/acpi.c: likewise
35324 * include/grub/acpi.h: likewise
35325 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
35326 (acpi_mod_SOURCES): new variable
35327 (acpi_mod_CFLAGS): likewise
35328 (acpi_mod_LDFLAGS): likewise
35329 * conf/i386-efi.rmk: likewise
35330 * conf/x86_64-efi.rmk: likewise
35331
7dd4a573 353322009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 35333
35334 Missing part from mmap patch
35335
35336 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
35337 (grub_mmap_unregister)
35338 (grub_mmap_free_and_unregister): use grub_mmap_register
35339
7dd4a573 353402009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 35341
35342 Mmap services
35343
35344 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
35345 * loader/i386/linux.c (find_mmap_size): likewise
35346 (allocate_pages): likewise
35347 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
35348 (grub_fill_multiboot_mmap): likewise
35349 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
35350 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
35351 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
35352 (OPENBSD_MMAP_RESERVED): likewise
35353 * include/grub/i386/pc/memory.h: include grub/memory.h
35354 (grub_lower_mem): removed
35355 (grub_upper_mem): likewise
35356 (GRUB_MACHINE_MEMORY_ACPI): new definition
35357 (GRUB_MACHINE_MEMORY_NVS): likewise
35358 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
35359 (GRUB_MACHINE_MEMORY_HOLE): likewise
35360 (grub_machine_mmap_register): likewise
35361 (grub_machine_mmap_unregister): likewise
35362 (grub_machine_get_upper): likewise
35363 (grub_machine_get_lower): likewise
35364 (grub_machine_get_post64): likewise
35365 * include/grub/i386/efi/memory.h: new file
35366 * include/grub/x86_64/efi/memory.h: likewise
35367 * include/grub/efi/memory.h: likewise
35368 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
35369 (mmap_mod_SOURCES): new variable
35370 (mmap_mod_LDFLAGS): likewise
35371 (mmap_mod_ASFLAGS): likewise
35372 * conf/i386-coreboot.rmk: likewise
35373 * conf/i386-ieee1275.rmk: likewise
35374 * conf/i386-efi.rmk: likewise
35375 * conf/x86_64-efi.rmk: likewise
35376 * include/grub/types.h (UINT_TO_PTR): new macro
35377 (PTR_TO_UINT32): likewise
35378 (PTR_TO_UINT64): likewise
35379 * include/grub/memory.h: new file
35380 * mmap/i386/pc/mmap.c: likewise
35381 * mmap/i386/pc/mmap_helper.S: likewise
35382 * mmap/i386/uppermem.c: likewise
35383 * mmap/mmap.c: likewise
35384 * mmap/efi/mmap.c: likewise
7dd4a573 35385 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 35386 grub_upper_mem
35387 * kern/i386/pc/init.c (grub_lower_mem): removed variable
35388 (grub_upper_mem): likewise
35389 (grub_machine_init): don't use grub_upper_mem,
35390 make grub_lower_mem local
35391 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
35392 grub_mmap_iterate and grub_mmap_get_upper
35393 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
35394
d558e6b5 353952009-05-02 Bean <bean123ch@gmail.com>
35396
35397 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
35398 script/sh/parser.y.
35399 (pkglib_MODULES): Add normal.mod and sh.mod.
35400 (normal_SOURCES): New variable.
35401 (normal_mod_CFLAGS): Likewise.
35402 (normal_mod_LDFLAGS): Likewise.
35403 (sh_mod_SOURCES): Likewise.
35404 (sh_mod_CFLAGS): Likewise.
35405 (sh_mod_LDFLAGS): Likewise.
35406
35407 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
35408 script/sh/lexer.c_DEPENDENCIES.
35409 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
35410 kern/rescue_reader.c and kern/rescue_parser.c.
35411 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
35412 (grub_emu_SOURCES): Change source files.
35413 (pkglib_MODULES): Remove normal.mod.
35414 (normal_SOURCES): Removed.
35415 (normal_mod_CFLAGS): Likewise.
35416 (normal_mod_LDFLAGS): Likewise.
35417 * conf/i386-coreboot.rmk: Likewise.
35418 * conf/i386-efi.rmk: Likewise.
35419 * conf/i386-ieee1276.rmk: Likewise.
35420 * conf/powerpc-ieee1275.rmk: Likewise.
35421 * conf/sparc64-ieee1275.rmk: Likewise.
35422 * conf/x86_64-efi.rmk: Likewise.
35423
35424 * include/grub/command.h (grub_command_execute): New inline function.
35425
35426 * include/grub/menu.h (grub_menu_entry): Removed commands field.
35427
35428 * include/grub/normal.h: Remove <grub/setjmp.h>.
35429 (grub_fs_module_list): Moved to normal/autofs.c.
35430 (grub_exit_env): Removed.
35431 (grub_command_execute): Likewise.
35432 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
35433 parameter script.
35434 (read_command_list): New function declaration.
35435 (read_fs_list): Likewise.
35436
35437 * include/parser.h: Include <grub/reader.h>.
35438 (grub_parser_split_cmdline): Change type of getline parameter.
35439 (grub_parser): New structure.
35440 (grub_parser_class): New variable.
35441 (grub_parser_execute): New function declaration.
35442 (grub_register_rescue_parser): Likewise.
35443 (grub_parser_register): New inline function.
35444 (grub_parser_unregister): Likewise.
35445 (grub_parser_get_current): Likewise.
35446 (grub_parser_set_current): Likewise.
35447
35448 * include/grub/reader.h: New file.
35449 * kern/reader.c: Likewise.
35450 * kern/rescue_parser.c: Likewise.
35451 * kern/rescue_reader.c: Likewise.
35452 * normal/autofs.c: Likewise.
35453 * normal/dyncmd.c: Likewise.
35454
35455 * include/grub/rescue.h: Removed.
35456 * normal/command.h: Likewise.
35457
35458 * include/grub/script.h: Moved to ...
35459 * include/grub/script_sh.h: ... Moved here.
35460 * normal/execute.c: Moved to ...
35461 * script/sh/execute.c: ... Moved here.
35462 * normal/function.c: Moved to ...
35463 * script/sh/function.c: ... Moved here.
35464 * normal/lexer.c: Moved to ...
35465 * script/sh/lexer.c: ... Moved here.
35466 * normal/parser.y: Moved to ...
35467 * script/sh/parser.y: ... Moved here.
35468 * normal/script.c: Moved to ...
35469 * script/sh/script.c: ... Moved here.
35470
35471 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
35472 <grub/reader.h>.
35473 (grub_exit_env): Removed.
35474 (fs_module_list): Moved to normal/autofs.c.
35475 (grub_file_getline): Don't handle comment here.
35476 (free_menu): Skip removed field entry->commands.
35477 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
35478 script parameter.
35479 (read_config_file): Removed nested parameter, change getline function.
35480 (grub_enter_normal_mode): Removed.
35481 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
35482 (read_command_list): Likewise.
35483 (autoload_fs_module): Moved to normal/autofs.c.
35484 (read_fs_list): Likewise.
35485 (reader_nested): New variable.
35486 (grub_normal_execute): Run parser.sh to switch to sh parser.
35487 (grub_cmd_rescue): Removed.
35488 (cmd_normal): Removed.
35489 (grub_cmd_normal): Unregister itself at the beginning. Don't register
35490 rescue command.
35491 (grub_cmdline_run): New function.
35492 (grub_normal_reader_init): Likewise.
35493 (grub_normal_read_line): Likewise.
35494 (grub_env_write_pager): Likewise.
35495 (cmdline): New variable.
35496 (grub_normal_reader): Likewise.
35497 (GRUB_MOD_INIT): Register normal reader and set as current, register
35498 pager hook, register normal command with grub_register_command_prio,
35499 so that it won't show up in command.lst.
35500 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
35501 grub_fs_autoload_hook.
35502
35503 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
35504 (grub_menu_execute_entry): Replace grub_script_execute with
35505 grub_parser_execute, change parameter to grub_command_execute.
35506
35507 * normal/menu_text.c: Remove <grub/script.h>.
35508
35509 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
35510 and <grub/parser.h>.
35511 (run): Change editor_getline to use new parser interface. Change
35512 parameter to grub_command_execute.
35513
35514 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
35515 <grub/reader.h> and <grub/parser.h>.
35516 (grub_load_normal_mode): Execute normal command.
35517 (grub_main): Call grub_register_core_commands,
35518 grub_register_rescue_parser and grub_register_rescue_reader, use
35519 grub_reader_loop to enter input loop.
35520
7dd4a573 35521 * kern/parser.c (grub_parser_split_cmdline): Change type of
35522 getline parameter.
d558e6b5 35523 (grub_parser_class): New variable.
35524 (grub_parser_execute): New function.
35525
35526 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
35527 * loader/multiboot2.c: Likewise.
35528 * loader/sparc64/ieee1275/linux.c: Likewise.
35529
35530 * util/grub-emu.c (read_command_list): New dummy function.
35531
18db813d 355322009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35533
35534 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
35535 count to 16 for CCISS and IDA.
35536
6c67de15 355372009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35538
35539 * normal/menu_text.c (grub_wait_after_message): Print a newline
35540 after waiting for user input.
35541
35542 * loader/i386/linux.c: Include `<grub/normal.h>'.
35543 (grub_cmd_linux): Improve the error message about `ask' mode, by
35544 waiting for user input so it's not missed (we can do this, since
35545 user requested interaction).
35546
d9dc87b0 355472009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35548
35549 Added missing lst to grub-mkrescue
35550
35551 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
35552 and ${input_dir}/parttool.lst
35553
ac8a2baa 355542009-04-30 David S. Miller <davem@davemloft.net>
35555
ad22a610 35556 * util/hostdisk.c (device_is_wholedisk): New function.
35557 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
35558 zero only if device_is_wholedisk() returns true.
35559
6966215d 35560 * util/hostdisk.c (convert_system_partition_to_system_disk):
35561 Handle virtual disk devices named /dev/vdiskX as found on sparc
35562 and powerpc.
35563
ac8a2baa 35564 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
35565 lettered partition specifier is found, convert to numbered.
35566
979b4fb4 355672009-04-29 David S. Miller <davem@davemloft.net>
35568
e2bf39b2 35569 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
35570 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35571
3c64e104 35572 * normal/command.c: Add missing newline at end of file.
35573
979b4fb4 35574 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
35575 warnings.
35576 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
35577 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
35578 grub_ofdisk_read): Likewise, and deal similarly with the fact that
35579 ihandles have a 32-bit type but need to be stored in a "void *".
35580
136d9f82 355812009-04-28 Pavel Roskin <proski@gnu.org>
35582
9459c306 35583 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
35584 not disk. Adjust all dependencies.
2e08a26a 35585 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 35586 grub_disk_close().
35587
136d9f82 35588 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
35589 parent's partition, don't copy it by reference, as it gets freed
35590 on close.
35591
7dd4a573 355922009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 35593
35594 Preboot hooks support
35595
35596 * commands/boot.c (struct grub_preboot_t): new declaration
35597 (preboots_head): new variable
35598 (preboots_tail): likewise
35599 (grub_loader_register_preboot_hook): new function
35600 (grub_loader_unregister_preboot_hook): likewise
35601 (grub_loader_set): launch preboot hooks
35602 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
35603 (grub_loader_register_preboot_hook): new declaration
35604 (grub_loader_unregister_preboot_hook): likewise
35605
5af922b5 356062009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
35607
35608 Warning fix
35609
7dd4a573 35610 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 35611 calling grub_dprintf
35612
a5562c30 356132009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
35614
35615 Bug and warning fixes
35616
7dd4a573 35617 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 35618 declaration
35619 * commands/test.c (test_parse): fixed bug with file tests and corrected
35620 declaration of find_file
35621
4006f85c 356222009-04-26 Pavel Roskin <proski@gnu.org>
35623
35624 * Makefile.in: Don't install empty manual pages if help2man is
35625 missing. Use help2man option for output, not shell redirection.
35626
5c77c3de 356272009-04-26 David S. Miller <davem@davemloft.net>
35628
35629 * util/grub-mkdevicemap.c (make_device_map): Add missing
35630 NESTED_FUNC_ATTR to process_device().
35631
033b10a8 356322009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
35633
35634 Test command
35635
35636 * commands/test.c: rewritten to use bash-like test
35637
e4343593 356382009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
35639
35640 Parttool autoloading and improvements
35641
7dd4a573 35642 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 35643 (parttool.lst): new target
35644 * genmk.rb: generate parttool-*
35645 (CLEANFILES): add #{parttool}
35646 (PARTTOOLFILES): new variable
35647 * genparttoollist.sh: new file
7dd4a573 35648 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 35649 (grub_pcpart_type): likewise
35650 * commands/parttool.c (helpmsg): new variable
35651 (grub_cmd_parttool): output help if not enough arguments are supplied
35652 autoload modules
35653 (GRUB_MOD_INIT(parttool)): use helpmsg
35654
0d312500 356552009-04-24 David S. Miller <davem@davemloft.net>
35656
7dd4a573 35657 Avoiding opening same device multiple times in device iterator.
0d312500 35658
35659 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 35660 and use it to build a list of partitions in iterate_disk() and
0d312500 35661 iterate_partition().
35662
ac20caff 35663 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
35664 on disk->data.
35665
0dcf7495 35666 * disk/ieee1275/nand.c (grub_nand_iterate): Return
35667 grub_devalias_iterate() result instead of unconditional 0.
35668 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
35669 Also, capture hook return value, either directly or via
35670 grub_children_iterate(), and propagate to caller.
35671 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
35672 grub_children_iterate): Return value is now 'int' instead of
35673 'grub_err_t'.
35674 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
35675 like a proper iterator, stopping when hooks return non-zero.
35676 (grub_devalias_iterate): Likewise.
35677
c8c08833 356782009-04-23 David S. Miller <davem@davemloft.net>
35679
35680 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
35681
f01005a8 356822009-04-22 David S. Miller <davem@davemloft.net>
35683
35684 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
35685 is larger than address_cells, use that value for address_cells too.
35686
4e8269da 35687 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
35688 IEEE1275_MAX_PATH_LEN): Define.
35689 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
35690 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
35691 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
35692 'devtype'. Explicitly NULL terminate devalias expansion.
35693
a1447506 35694 * util/sparc64/ieee1275/misc.c: New file.
35695 * util/sparc64/ieee1275/grub-setup.c: New file.
35696 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
35697 * util/sparc64/ieee1275/grub-mkimage.c: New file.
35698 * util/sparc64/ieee1275/grub-install.in: New file.
35699 * util/ieee1275/ofpath.c: New file.
35700 * util/ieee1275/devicemap.c: New file.
35701 * util/devicemap.c: New file.
35702 * util/deviceiter.c: New file.
35703 * kern/sparc64/ieee1275/init.c: New file.
35704 * include/grub/util/ofpath.h: New file.
35705 * include/grub/util/deviceiter.h: New file.
35706 * util/grub-mkdevicemap.c: Include deviceiter.h.
35707 Implement using grub_util_emit_devicemap_entry and
35708 grub_util_iterate_devices.
35709 * conf/i386-corebook.rmk: Build util/deviceiter.c and
35710 util/devicemap.c into grub-mkdevicemap
35711 * conf/i386-efi.rmk: Likewise.
35712 * conf/i386-ieee1275.rmk: Likewise.
35713 * conf/i386-pc.rmk: Likewise.
35714 * conf/powerpc-ieee1275.rmk: Likewise.
35715 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
35716 images and installation utilities. Build kernel as image
35717 instead of as elf binary. Use common rules as much as possible.
35718
7dd4a573 357192009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 35720
35721 Correct GPT definition
35722
7dd4a573 35723 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 35724 of "attrib" member
35725
c6c5219f 357262009-04-19 Felix Zielcke <fzielcke@z-51.de>
35727
35728 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
35729
0552ff9f 357302009-04-19 David S. Miller <davem@davemloft.net>
35731
35732 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
35733 (grub_rescue_cmd_linux): Rename to...
35734 (grub_cmd_linux): and fix prototype.
35735 (grub_rescue_cmd_initrd): Rename to...
35736 (grub_cmd_initrd): and fix prototype.
35737 (cmd_linux, cmd_initrd): New.
35738 (GRUB_MOD_INIT(linux)): Use grub_register_command().
35739 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
35740
d1a282fc 357412009-04-17 Pavel Roskin <proski@gnu.org>
35742
07c5039f 35743 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
35744 format.
35745 (grub_ohci_transfer): Likewise.
35746
b012002d 35747 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
35748
1bc09c35 35749 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
35750 return without a value. Fix inconsistent indentation.
35751
e0ff9126 35752 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
35753 match struct grub_fs.
35754
d1a282fc 35755 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
35756 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
35757 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
35758 * commands/lspci.c (grub_lspci_iter): Likewise.
35759
a96df3f2 357602009-04-16 Bean <bean123ch@gmail.com>
35761
35762 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
35763 value.
35764
41bb0fe9 357652009-04-15 Pavel Roskin <proski@gnu.org>
35766
35767 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
35768 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
35769 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
35770 definitions.
35771
596c6970 357722009-04-15 Felix Zielcke <fzielcke@z-51.de>
35773
35774 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 35775 that no multiple data or metadata areas are supported and `Unknown
596c6970 35776 metadata header'.
35777
7dd4a573 357782009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 35779
35780 Move loader out of the kernel
35781
35782 * kern/loader.c: moved to ...
35783 * commands/boot.c: ... moved here
35784 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
35785 * commands/boot.c (grub_cmd_boot): moved here. All users updated
35786 * include/grub/kernel.h (grub_machine_fini): export
35787 * include/grub/loader.h (grub_loader_is_loaded): update declaration
35788 (grub_loader_set): likewise
35789 (grub_loader_unset): likewise
35790 (grub_loader_boot): likewise
35791 * conf/common.rmk: new module boot.mod
35792 (pkglib_MODULES): add boot.mod
35793 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
35794 (grub_emu_SOURCES): likewise
35795 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
35796 (grub_emu_SOURCES): likewise
35797 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
35798 (grub_emu_SOURCES): likewise
35799 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
35800 (grub_emu_SOURCES): likewise
35801 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
35802 (grub_emu_SOURCES): likewise
7dd4a573 35803 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
35804 (grub_emu_SOURCES): likewise
0d5d5653 35805 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 35806 (grub_emu_SOURCES): likewise
0d5d5653 35807
7dd4a573 358082009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 35809
35810 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 35811
5999d619 35812 * kern/misc.c (grub_itoa): Removed function
35813 (grub_ltoa): likewise
35814 (grub_vsprintf): use grub_lltoa
35815
7dd4a573 358162009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 35817
35818 Restore grub-emu
35819
35820 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
35821 * conf/i386-coreboot.rmk: likewise
35822 * conf/i386-ieee1275.rmk: likewise
35823 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 35824
20318222 358252009-04-15 Felix Zielcke <fzielcke@z-51.de>
35826
35827 * INSTALL: Add that `./autogen.sh' needs to be run before
35828 `./configure.'.
35829
d05f0df3 358302009-04-14 Bean <bean123ch@gmail.com>
35831
35832 * Makefile.in (pkglib_DATA): Add handler.lst.
35833 (handler.lst): New rule.
35834
35835 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
35836 * conf/i386-coreboot.rmk: Likewise.
35837 * conf/i386-ieee1275.rmk: Likewise.
35838 * conf/i386-efi.rmk: Likewise.
35839 * conf/x86_64-efi.rmk: Likewise.
35840 * conf/powerpc-ieee1275.rmk: Likewise.
35841 * conf/sparc64-ieee1275.rmk: Likewise.
35842
35843 * genhandlerlist.sh: New file.
35844
35845 * genmk.rb: Add rules to generate handler.lst.
35846
35847 * include/grub/normal.h (grub_file_getline): New function definition.
35848 (read_handler_list): Likewise.
35849 (free_handler_list): Likewise.
35850
35851 * include/grub/term.h (grub_term_register_input): Add name parameter
35852 for auto generation of handler.lst.
35853 (grub_term_register_output): Likewise.
35854
35855 * normal/handler.c: New file.
35856
35857 * normal/main.c (get_line): Renamed to grub_file_getline.
35858 (read_config_file): Use the newly renamed grub_file_getline.
35859 (read_command_list): Likewise.
35860 (read_fs_list): Likewise.
35861 (grub_normal_execute): Call read_handler_list to parse handler.lst.
35862 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
35863
35864 * term/efi/console.c (grub_console_init): Add name parameter for auto
35865 generation of handler.lst.
35866 * term/gfxterm.c: Likewise.
35867 * term/i386/pc/at_keyboard.c: Likewise.
35868 * term/i386/pc/console.c: Likewise.
35869 * term/i386/pc/serial.c: Likewise.
35870 * term/i386/pc/vesafb.c: Likewise.
35871 * term/i386/pc/vga.c: Likewise.
35872 * term/i386/pc/vga_text.c: Likewise.
35873 * term/ieee1275/ofconsole.c: Likewise.
35874 * term/usb_keyboard.c: Likewise.
35875
33c846be 358762009-04-14 Bean <bean123ch@gmail.com>
35877
35878 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
35879 properly with null character.
35880
4484e01e 358812009-04-14 Felix Zielcke <fzielcke@z-51.de>
35882
35883 * configure: Remove.
35884 * config.h.in: Likewise.
f93d668e 35885 * stamp-h.in: Likewise.
4484e01e 35886 * DISTLIST: Likewise.
35887 * conf/common.mk: Likewise.
35888 * conf/i386-coreboot.mk: Likewise.
35889 * conf/i386-efi.mk: Likewise.
35890 * conf/i386-ieee1275.mk: Likewise.
35891 * conf/i386.mk: Likewise.
35892 * conf/i386-pc.mk: Likewise.
35893 * conf/powerpc-ieee1275.mk: Likewise.
35894 * conf/sparc64-ieee1275.mk: Likewise.
35895 * conf/x86_64-efi.mk: Likewise.
35896
35897 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
35898 develop on GRUB.
35899
7dd4a573 359002009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 35901 David S. Miller <davem@davemloft.net>
35902
35903 * util/hostdisk.c (make_device_name): Fix buffer length
35904 calculations.
35905
e25b5a8c 359062009-04-14 Felix Zielcke <fzielcke@z-51.de>
35907
35908 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
35909 <sys/param.h> and <sys/sysctl.h>.
35910 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
35911 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
35912 opening the device and reset them afterwards.
35913
1f1f580c 359142009-04-13 Pavel Roskin <proski@gnu.org>
35915
35916 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
35917 Reported by John Stanley <jpsinthemix@verizon.net>
35918
7ebc2d6b 359192009-04-13 Robert Millan <rmh@aybabtu.com>
35920
35921 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 35922 that name for menuentries when appropriate.
7ebc2d6b 35923
d8ba3667 359242009-04-13 Felix Zielcke <fzielcke@z-51.de>
35925
35926 * util/grub.d/10_freebsd.in: Add a missing `fi'.
35927
cba416eb 359282009-04-13 Robert Millan <rmh@aybabtu.com>
35929
35930 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
35931 to Linux, simply abort telling the user it's no longer supported.
35932
a547a745 359332009-04-13 Felix Zielcke <fzielcke@z-51.de>
35934
35935 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 35936 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 35937 `freebsd_loadenv' only when devices.hints exist.
35938
232a769c 359392009-04-13 Pavel Roskin <proski@gnu.org>
35940
35941 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
35942
c3012039 359432009-04-13 Felix Zielcke <fzielcke@z-51.de>
35944
35945 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
35946 partition number.
35947 (grub_drive): Likewise.
35948
234022fe 359492009-04-13 David S. Miller <davem@davemloft.net>
35950
35951 * kern/sparc64/ieee1275/ieee1275.c: New file.
35952 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
35953 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
35954 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
35955 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
35956 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
35957 grub_ieee1275_alloc_physmem): Declare new exported functions.
35958
d8e1836c 35959 * include/grub/sparc64/ieee1275/loader.h: New file.
35960 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35961 * include/grub/sparc64/kernel.h: Likewise.
35962 * loader/sparc64/ieee1275/linux.c: Likewise.
35963
96bd81ec 35964 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
35965 (grub_fstest_SOURCES): Likewise.
35966
6a4737e5 35967 * util/hostdisk.c (make_device_name): Do not make any assumptions
35968 about the length of drive names.
35969
1d7a72fd 35970 * kern/dl.c (grub_dl_load_file): Close file immediately when
35971 we are done using it.
35972
56bc2471 359732009-04-12 David S. Miller <davem@davemloft.net>
35974
35975 * kern/misc.c (grub_ltoa): Fix cast when handling negative
35976 values. Noticed by Pavel Roskin.
35977
df38d0bb 35978 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
35979 target compiler.
7dd4a573 35980
e382e93a 35981 * genmk.rb: Add more flexible image type specification, also
35982 pass --strip-unneeded to objcopy.
35983 * conf/i386-pc.rmk: Use *_FORMAT.
35984 * conf/i386-pc.mk: Rebuilt.
35985
f5dbbca9 35986 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
35987 (OFDISK_HASH_SZ): Define.
35988 (ofdisk_hash): New hash table.
35989 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
35990 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
35991 instead of device phandle which is not unique.
35992
91c88b12 35993 * kern/sparc64/ieee1275/init.c: Delete, replace with...
35994 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
35995 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
35996 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
35997 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
35998 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
35999 GRUB_KERNEL_MACHINE_DATA_END): Define.
36000 (grub_kernel_image_size, grub_total_module_size): Declare.
36001
5b5d4aa5 360022009-04-12 Pavel Roskin <proski@gnu.org>
36003
7dd4a573 36004 * configure.ac: Change the logic when we check for target tools.
36005 Do it when the target is specified and it's different from the
36006 specified value of the host.
5b5d4aa5 36007
c91e1793 360082009-04-11 Felix Zielcke <fzielcke@z-51.de>
36009
36010 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
36011 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
36012 GNU/kFreeBSD. Check if a device is a character device. Use
36013 DIOCGMEDIASIZE to get the size.
36014 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
36015 support for GNU/kFreeBSD.
36016 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
36017 is a character device instead of a block device. Add support for
36018 FreeBSD device names.
36019
36020 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
36021 is a character device instead of a block device.
36022
36023 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
36024 is a character device instead of a block device.
36025
b1ac8644 360262009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
36027
36028 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
36029 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
36030 FreeBSD. Check if a device is a character device. Use
36031 DIOCGMEDIASIZE to get the size.
36032 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
36033 support for FreeBSD.
36034 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
36035 is a character device instead of a block device. Add support for
36036 FreeBSD device names.
36037
36038 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
36039 a character device instead of a block device.
36040 (grub_util_check_char_device): New function.
36041
36042 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
36043 a character device instead of a block device.
36044
36045 * include/grub/util/getroot.h (grub_util_check_char_device): New
36046 prototype.
36047
a3f7515a 360482009-04-11 David S. Miller <davem@davemloft.net>
36049
36050 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
36051 static libgcc.
36052 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
36053 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
36054 function, if present.
36055 (__bswapdi2): Likewise.
36056
0d44993d 36057 * include/grub/sparc64/ieee1275/boot.h: New file.
36058 * boot/sparc64/ieee1275/boot.S: Likewise.
36059 * boot/sparc64/ieee1275/diskboot.S: Likewise.
36060
ed3d2bc2 36061 * kern/misc.c (grub_ltoa): New function.
36062 (grub_vsprintf): Use it to format 'long' integers.
36063
d3bfb59c 360642009-04-10 David S. Miller <davem@davemloft.net>
36065
36066 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
36067 slots are of type grub_ieee1275_cell_t.
36068 (grub_nand_read): Likewise.
36069 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
36070 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
36071 macros are used to compare values in arg/ret block of the call.
36072 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36073 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
36074 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
36075 grub_ieee1275_instance_to_path, grub_ieee1275_write,
36076 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
36077 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
36078 grub_ieee1275_close, grub_ieee1275_set_property,
36079 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
36080 grub_ieee1275_cell_t.
36081 * kern/ieee1275/openfw.c (grub_map): Likewise.
36082 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
36083 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
36084
450e2238 36085 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
36086 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
36087 (grub_devalias_iterate): Likewise.
36088
7dd4a573 360892009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 36090
36091 UFS improvements
36092
36093 * fs/ufs.c (INODE_NBLOCKS): new definition
36094 (struct grub_ufs_dirent): added fields for non-BSD dirents
36095 (grub_ufs_get_file_block): fixed double indirect handling
36096 (grub_ufs_lookup_symlink): use more robust way to determine whether
36097 symlink is inline
36098 (grub_ufs_find_file): support for non-BSD dirents
36099 (grub_ufs_dir): support for non-BSD dirents
36100
e7e6862a 361012009-04-10 Bean <bean123ch@gnail.com>
36102
36103 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
36104 attribute, otherwise the size would be wrong for i386 platform.
36105
36106 * include/grub/pci.h (grub_pci_read_word): New inline function.
36107 (grub_pci_read_byte): Likewise.
36108 (grub_pci_write): Likewise.
36109 (grub_pci_write_word): Likewise.
36110 (grub_pci_write_byte): Likewise.
36111
36112 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
36113
36114 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
36115 (find_framebuf): Scan pci to locate the frame buffer address.
36116
36117 * commands/efi/fixvideo.c: New file.
36118
36119 * commands/efi/loadbios.c: Likewise.
36120
36121 * commands/memrw.c: Likewise.
36122
36123 * util/grub-dumpbios.in: Likewise.
36124
36125 * conf/common.rmk (grub-dumpbios): New utility.
36126 (pkglib_MODULES): New module memrw.mod.
36127 (memrw_mod_SOURCE): New macro.
36128 (memrw_mod_CFLAGS): Likewise.
36129 (memrw_mod_LDFLAGS): Likewise.
36130
7dd4a573 36131 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36132 fixvideo.mod.
36133 (loadbios_mod_SOURCE): New macro.
36134 (loadbios_mod_CFLAGS): Likewise.
36135 (loadbios_mod_LDFLAGS): Likewise.
36136 (fixvideo_mod_SOURCE): Likewise.
36137 (fixvideo_mod_CFLAGS): Likewise.
36138 (fixvideo_mod_LDFLAGS): Likewise.
36139
7dd4a573 36140 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36141 fixvideo.mod.
36142 (loadbios_mod_SOURCE): New macro.
36143 (loadbios_mod_CFLAGS): Likewise.
36144 (loadbios_mod_LDFLAGS): Likewise.
36145 (fixvideo_mod_SOURCE): Likewise.
36146 (fixvideo_mod_CFLAGS): Likewise.
36147 (fixvideo_mod_LDFLAGS): Likewise.
36148
af63ada2 361492009-04-08 Felix Zielcke <fzielcke@z-51.de>
36150
36151 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
36152
c2cdde70 361532009-04-07 David S. Miller <davem@davemloft.net>
36154
36155 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
36156 support for R_SPARC_OLO10 relocations. Fix compile warning for
36157 R_SPARC_WDISP30 case.
ea3f72cf 36158 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 36159
761319cf 361602009-04-06 Pavel Roskin <proski@gnu.org>
36161
1007d1f5 36162 * include/grub/misc.h (ARRAY_SIZE): New macro.
36163 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
36164 New macro.
36165 * loader/i386/linux.c (allocate_pages): Use free_pages().
36166 (grub_linux_unload): Don't use free_pages().
36167 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
36168 wrong index. Treat all other modes as text modes.
36169 (grub_cmd_linux): Initialize vid_mode unconditionally to
36170 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
36171
761319cf 36172 * commands/help.c (print_command_help): Use cmd->prio, not
36173 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
36174
ea761d40 361752009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 36176
ea761d40 36177 Parttool
36178
36179 * parttool/pcpart.c: new file
36180 * commands/parttool.c: likewise
36181 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
36182 (parttool_mod_SOURCES): new variable
36183 (parttool_mod_CFLAGS): likewise
36184 (parttool_mod_LDFLAGS): likewise
36185 (pcpart_mod_SOURCES): likewise
36186 (pcpart_mod_CFLAGS): likewise
36187 (pcpart_mod_LDFLAGS): likewise
7dd4a573 36188 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 36189 and parttool/pcpart.c
36190 * conf/i386-efi.rmk: likewise
36191 * conf/i386-ieee1275.rmk: likewise
36192 * conf/i386-pc.rmk: likewise
36193 * conf/powerpc-ieee1275.rmk: likewise
36194 * conf/sparc64-ieee1275.rmk: likewise
36195 * conf/x86_64-ieee1275.rmk: likewise
36196
05aaebfb 361972009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36198
36199 Support for mtime and further expandability of dir command
36200
36201 * include/grub/lib/datetime.h: moved to ...
7dd4a573 36202 * include/grub/datetime.h: ... moved here and added
05aaebfb 36203 declaration of grub_unixtime2datetime. All users updated
7dd4a573 36204 * include/grub/fs.h: new syntax for dir and mtime functions in
36205 struct grub_fs
05aaebfb 36206 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
36207 and GRUB_FSHELP_FLAGS_MASK
36208 * commands/ls.c (grub_ls_list_files): Write mtime in long format
36209 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
36210 (grub_ext2_mtime): new function
36211 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
36212 (grub_hfsplus_mtime): new function
36213 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
36214 (GRUB_UFS_ATTR_FILE): likewise
36215 (GRUB_UFS_ATTR_LNK): likewise
36216 (struct grub_ufs_sblock): new fields mtime
36217 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
36218 all users updated
36219 (grub_ufs_dir): mtime support
36220 (grub_ufs_mtime): new function
36221 * fs/affs.c (grub_affs_dir): use new dir syntax
36222 * fs/afs.c (grub_afs_dir): likewise
36223 * fs/cpio.c (grub_cpio_dir): likewise
36224 * fs/fat.c (grub_fat_find_dir): likewise
36225 * fs/hfs.c (grub_hfs_dir): likewise
36226 * fs/iso9660.c (grub_iso9660_dir): likewise
36227 * fs/jfs.c (grub_jfs_dir): likewise
36228 * fs/minix.c (grub_minix_dir): likewise
36229 * fs/ntfs.c (grub_ntfs_dir): likewise
36230 * fs/reiserfs.c (grub_reiserfs_dir): likewise
36231 * fs/sfs.c (grub_sfs_dir): likewise
36232 * fs/xfs.c (grub_xfs_dir): likewise
36233 * util/hostfs.c (grub_hostfs_dir): likewise
36234 * lib/datetime.c: moved to ...
36235 * normal/datetime.c: ... moved here
36236 (grub_unixtime2datetime): new function
36237 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 36238 * normal/completion.c (iterate_dir): use new dir syntax
36239 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 36240 last modification time of a volume
7dd4a573 36241 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 36242 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 36243 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 36244 (normal_mod_SOURCES): likewise
36245 (datetime_mod_SOURCES): Removed lib/datetime.c
36246 * conf/i386-efi.rmk: likewise
7dd4a573 36247 * conf/i386-ieee1275.rmk: likewise
05aaebfb 36248 * conf/i386-pc.rmk: likewise
36249 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 36250 * conf/sparc64-ieee1275.rmk: likewise
36251 * conf/x86_64-efi.rmk: likewise
05aaebfb 36252
8a7e1a14 362532009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36254
36255 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 36256
36257 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 36258 on grub_fat_find_dir
36259 (grub_fat_find_dir): use grub_fat_iterate_dir
36260 (grub_fat_label): likewise
36261
04186a9c 362622009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
36263
7dd4a573 36264 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 36265 and command.h
36266 remove extraneous kernel_elf_HEADERS
36267
da4c0bb6 362682009-04-04 Bean <bean123ch@gnail.com>
36269
36270 * include/grub/util/misc.h: Add dummy function fsync for mingw.
36271
36272 * util/misc.c: Likewise.
36273
54ad9555 362742009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
36275
36276 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
36277 instead of grub_printf.
36278
7a6bf9f2 362792009-04-03 Robert Millan <rmh@aybabtu.com>
36280
36281 * loader/i386/linux.c (grub_linux_setup_video): Fill
36282 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
36283 values from `mode info' structure instead of hardcoded
36284 values.
36285
3fcc2083 362862009-04-01 Pavel Roskin <proski@gnu.org>
36287
36288 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
36289 unused now.
36290 * genmk.rb: Likewise.
36291 * configure.ac: Likewise.
36292
5ec9740b 362932009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
36294
36295 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
36296 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
36297
5270cec8 362982009-04-01 David S. Miller <davem@davemloft.net>
36299
36300 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 36301 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 36302 (grub_setjmp): Mark with 'returns_twice' attribute.
36303 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
36304 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
36305 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
36306
9c3dd854 363072009-04-01 Robert Millan <rmh@aybabtu.com>
36308
36309 Reapply fix from 2008-07-28 which was accidentally reverted; also
36310 perform the same fix to a similar check in same function.
36311
36312 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36313 with the same number are found, just use issue a warning with
36314 grub_dprintf(), as this error has been reported to be non-fatal.
36315
0d818b7e 363162009-03-31 Pavel Roskin <proski@gnu.org>
36317
36318 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
36319 for cross-compilation.
36320
95646d92 363212009-03-30 Robert Millan <rmh@aybabtu.com>
36322
36323 Fix i386-ieee1275 build.
36324
36325 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
36326 Remove declaration.
36327
6a003ed1 363282009-03-30 Pavel Roskin <proski@gnu.org>
36329
36330 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
36331 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
36332 zero-terminated, rely only on the strlen value. Fix comparison
36333 of strings differing in length.
36334
92f33540 363352009-03-30 Robert Millan <rmh@aybabtu.com>
36336
36337 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
36338 checking for abi version. Improve error messages on BIOS to notify
36339 user about `linux16' command.
36340
a8c48fd5 363412009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
36342
f968172e 36343 Leak fixes
a8c48fd5 36344
f968172e 36345 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
36346 in case of collision
36347 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 36348
9c323f09 363492009-03-29 Robert Millan <rmh@aybabtu.com>
36350
36351 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
36352 set `vid_mode' accordingly.
36353 (grub_linux_boot): Process `vid_mode' and set video mode.
36354
ae68f423 363552009-03-29 Robert Millan <rmh@aybabtu.com>
36356
36357 * util/grub.d/10_linux.in (linux_entry): New function.
36358 Factorize generation of Linux boot entries.
36359
5709cfc4 363602009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
36361
36362 Make the format of Environment Block plain text. The boot loader
36363 part is not tested well yet.
7dd4a573 36364
5709cfc4 36365 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
36366 (buffer): Removed.
36367 (envblk): Likewise.
36368 (usage): Remove "info" and "clear". Add "unset". Update the
36369 description of "set", as this does not delete variables any
36370 longer.
36371 (create_envblk_file): Complete rewrite.
36372 (open_envblk_file): Likewise.
36373 (cmd_info): Removed.
36374 (cmd_list): Likewise.
36375 (cmd_set): Likewise.
36376 (cmd_clear): Likewise.
36377 (list_variables): New function.
36378 (write_envblk): Likewise.
36379 (set_variables): Likewise.
36380 (unset_variables): Likewise.
36381 (main): Complete rewrite.
36382
36383 * commands/loadenv.c (buffer): Removed.
36384 (envblk): Likewise.
36385 (open_envblk_file): New function.
36386 (read_envblk_file): Complete rewrite.
36387 (grub_cmd_load_env): Likewise.
36388 (grub_cmd_list_env): Likewise.
36389 (struct blocklist): New struct.
36390 (free_blocklists): New function.
36391 (check_blocklists): Likewise.
36392 (write_blocklists): Likewise.
36393 (grub_cmd_save_env): Complete rewrite.
36394
36395 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
36396 a plain text signature.
36397 (GRUB_ENVBLK_MAXLEN): Removed.
36398 (struct grub_envblk): Complete rewrite.
36399 (grub_envblk_find): Removed.
36400 (grub_envblk_insert): Likewise.
36401 (grub_envblk_open): New prototype.
36402 (grub_envblk_set): Likewise.
36403 (grub_envblk_delete): Put const to VALUE.
36404 (grub_envblk_iterate): Put const to NAME and VALUE.
36405 (grub_envblk_close): New prototype.
36406 (grub_envblk_buffer): New inline function.
36407 (grub_envblk_size): Likewise.
36408
36409 * lib/envblk.c: Include grub/mm.h.
36410 (grub_env_find): Removed.
36411 (grub_envblk_open): New function.
36412 (grub_envblk_close): Likewise.
36413 (escaped_value_len): Likewise.
36414 (find_next_line): Likewise.
36415 (grub_envblk_insert): Removed.
36416 (grub_envblk_set): New function.
36417 (grub_envblk_delete): Complete rewrite.
36418 (grub_envblk_iterate): Likewise.
36419
a9368fd3 364202009-03-28 Robert Millan <rmh@aybabtu.com>
36421
36422 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
36423 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
36424 variables. Use 16-bit loader.
36425 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
36426 loader.
36427 * kern/i386/loader.S (grub_linux_boot): Rename to ...
36428 (grub_linux16_boot): ... this. Update all users.
36429 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
36430 (grub_linux_boot): ... this. Update all users.
36431
36432 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
36433 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
36434 commands to `linux16' and `initrd16'.
36435 (GRUB_MOD_FINI(linux)): Rename to ...
36436 (GRUB_MOD_FINI(linux16)): ... this.
36437
e4dd5a7e 364382009-03-24 Pavel Roskin <proski@gnu.org>
36439
36440 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
36441 not just for compilation.
36442
c04d6e05 364432009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
36444
36445 Move multiboot helper out of kernel
36446
36447 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
36448 `loader/i386/multiboot_helper.S'.
36449 * conf/i386-coreboot.rmk: Likewise
36450 * conf/i386-ieee1275.rmk: Likewise
36451
36452 * kern/i386/loader.S: Move multiboot helpers from here...
36453 * loader/i386/multiboot_helper.S: ...moved here
36454 * include/grub/i386/loader.h: Move declarations of multiboot
36455 helpers from here...
36456 * include/grub/i386/multiboot.h: ...moved here
36457 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
36458
42a5b3fc 364592009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36460
36461 * kern/env.c (grub_env_context_open): Added an argument to specify
36462 whether a new context inherits exported variables from current
36463 one. This is useful when making a sandbox to interpret a config
36464 file.
36465 All callers updated.
36466
36467 * include/grub/env.h (grub_env_context_open): Updated the prototype.
36468
b28bbc4e 364692009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36470
36471 * kern/env.c (grub_env_context_close): Fix memory leaks.
36472
f04f02e4 364732009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36474
36475 * normal/main.c (grub_normal_execute): Added an argument
36476 BATCH to specify if an interactive interface should be provided
36477 after reading a config file.
36478 All callers updated.
36479 (read_command_list): Prevent being executed twice.
36480 (read_fs_list): Likewise.
36481
42a5b3fc 36482 * include/grub/normal.h (grub_normal_execute): Updated the
36483 prototype.
f04f02e4 36484
41473ac2 364852009-03-22 Pavel Roskin <proski@gno.org>
36486
fbc00b0c 36487 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
36488 _start.
36489 * kern/i386/pc/startup.S: Likewise.
36490 * kern/i386/efi/startup.S: Likewise.
36491 * kern/i386/ieee1275/startup.S: Likewise.
36492 * kern/i386/coreboot/startup.S: Likewise.
36493 * kern/x86_64/efi/startup.S: Likewise.
36494
41473ac2 36495 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
36496 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
36497 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
36498
2274cc8f 364992009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
36500
36501 Bugfixes in multiboot for bugs uncovered by solaris kernel.
36502
36503 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
36504 limit detection.
36505 Use vaddr of correct segment for entry_point.
36506
b1b797cb 365072009-03-21 Bean <bean123ch@gmail.com>
36508
36509 * commands/blocklist.c: Add include file <grub/command.h>, remove
36510 <grub/normal.h> and <grub/arg.h>.
36511 (grub_cmd_blocklist): Use the new command interface.
36512 (GRUB_MOD_INIT): Likewise.
36513 (GRUB_MOD_FINI): Likewise.
36514 * commands/boot.c: Likewise.
36515 * commands/cat.c: Likewise.
36516 * commands/cmp.c: Likewise.
36517 * commands/configfile.c: Likewise.
36518 * commands/crc.c: Likewise.
36519 * commands/echo.c: Likewise.
36520 * commands/halt.c: Likewise.
36521 * commands/handler.c: Likewise.
36522 * commands/hdparm.c: Likewise.
36523 * commands/help.c: Likewise.
36524 * commands/hexdump.c: Likewise.
36525 * commands/loadenv.c: Likewise.
36526 * commands/ls.c: Likewise.
36527 * commands/lsmmap.c: Likewise.
36528 * commands/lspci.c: Likewise.
36529 * commands/loadenv.c: Likewise.
36530 * commands/read.c: Likewise.
36531 * commands/reboot.c: Likewise.
36532 * commands/search.c: Likewise.
36533 * commands/sleep.c: Likewise.
36534 * commands/test.c: Likewise.
36535 * commands/usbtest.c: Likewise.
36536 * commands/videotest.c: Likewise.
36537 * commands/i386/cpuid.c: Likewise.
36538 * commands/i386/pc/halt.c: Likewise.
36539 * commands/i386/pc/play.c: Likewise.
36540 * commands/i386/pc/pxecmd.c: Likewise.
36541 * commands/i386/pc/vbeinfo.c: Likewise.
36542 * commands/i386/pc/vbetest.c: Likewise.
36543 * commands/ieee1275/suspend.c: Likewise.
36544 * disk/loopback.c: Likewise.
36545 * font/font_cmd.c: Likewise.
36546 * hello/hello.c: Likewise.
36547 * loader/efi/appleloader.c: Likewise.
36548 * loader/efi/chainloader.c: Likewise.
36549 * loader/i386/bsd.c: Likewise.
36550 * loader/i386/efi/linux.c: Likewise.
36551 * loader/i386/ieee1275/linux.c: Likewise.
36552 * loader/i386/linux.c: Likewise.
36553 * loader/i386/pc/chainloader.c: Likewise.
36554 * loader/i386/pc/linux.c: Likewise.
36555 * loader/powerpc/ieee1275/linux.c: Likewise.
36556 * loader/multiboot_loader.c: Likewise.
36557 * term/gfxterm.c: Likewise.
36558 * term/i386/pc/serial.c: Likewise.
36559 * term/terminfo.c: Likewise.
36560
36561 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
36562 * term/i386/pc/vga.c: Likewise.
36563 * video/readers/jpeg.c: Likewise.
36564 * video/readers/png.c: Likewise.
36565 * video/readers/tga.c: Likewise.
36566
36567 * util/grub-fstest (cmd_loopback): Removed.
36568 (cmd_blocklist): Likewise.
36569 (cmd_ls): Likewise.
36570 (grub_register_command): Likewise.
36571 (grub_unregister_command): Likewise.
36572 (execute_command): Use grub_command_find to locate command and execute
36573 it.
36574
36575 * include/grub/efi/chainloader.h: Removed.
36576 * loader/efi/chainloader_normal.c: Likewise.
36577 * loader/i386/bsd_normal.c: Likewise.
36578 * loader/i386/pc/chainloader_normal.c: Likewise.
36579 * loader/i386/pc/multiboot_normal.c: Likewise.
36580 * loader/linux_normal.c: Likewise.
36581 * loader/multiboot_loader_normal.c: Likewise.
36582 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
36583
36584 * gencmdlist.sh: Scan new registration command grub_register_extcmd
36585 and grub_register_command_p1.
36586
36587 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
36588 kern/command.c, lib/arg.c and commands/extcmd.c.
36589 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
36590 (minicmd_mod_SOURCES): New variable.
36591 (minicmd_mod_CFLAGS): Likewise.
36592 (minicmd_mod_LDFLAGS): Likewise.
36593 (extcmd_mod_SOURCES): Likewise.
36594 (extcmd_mod_CFLAGS): Likewise.
36595 (extcmd_mod_LDFLAGS): Likewise.
36596 (boot_mod_SOURCES): Removed.
36597 (boot_mod_CFLAGS): Likewise.
36598 (boot_mod_LDFLAGS): Likewise.
36599
36600 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
36601 kern/corecmd.c.
36602 (kernel_img_HEADERS): Add command.h.
36603 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
36604 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
36605 and lib/arg.c.
36606 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
36607 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
36608 remove the corresponding normal mode command.
36609 (normal_mod_SOURCES): Remove normal/arg.c.
36610 * conf/i386-coreboot.rmk: Likewise.
36611 * conf/i386-efi.rmk: Likewise.
36612 * conf/i386-ieee1275.rmk: Likewise.
36613 * conf/powerpc-ieee1275.rmk: Likewise.
36614 * conf/x86_64-efi.rmk: Likewise.
36615
36616 * include/grub/arg.h: Move from here ...
36617 * include/grub/lib/arg.h: ... to here.
36618
36619 * normal/arg.c: Move from here ...
36620 * lib/arg.c: ... to here.
36621
36622 * commands/extcmd.c: New file.
36623 * commands/minicmd.c: Likewise.
36624 * include/grub/command.h: Likewise.
36625 * include/grub/extcmd.h: Likewise.
36626 * kern/command.c: Likewise.
36627 * kern/corecmd.c: Likewise.
36628
36629 * kern/list.c (grub_list_iterate): Return int instead of void.
36630 (grub_list_insert): New function.
36631 (grub_prio_list_insert): Likewise.
36632
36633 * kern/rescue.c (grub_rescue_command): Removed.
36634 (grub_rescue_command_list): Likewise.
36635 (grub_rescue_register_command): Likewise.
36636 (grub_rescue_unregister_command): Likewise.
36637 (grub_rescue_cmd_boot): Move to minicmd.c
36638 (grub_rescue_cmd_help): Likewise.
36639 (grub_rescue_cmd_info): Likewise.
36640 (grub_rescue_cmd_boot): Likewise.
36641 (grub_rescue_cmd_testload): Likewise.
36642 (grub_rescue_cmd_dump): Likewise.
36643 (grub_rescue_cmd_rmmod): Likewise.
36644 (grub_rescue_cmd_lsmod): Likewise.
36645 (grub_rescue_cmd_exit): Likewise.
36646 (grub_rescue_print_devices): Moved to corecmd.c.
36647 (grub_rescue_print_files): Likewise.
36648 (grub_rescue_cmd_ls): Likewise.
36649 (grub_rescue_cmd_insmod): Likewise.
36650 (grub_rescue_cmd_set): Likewise.
36651 (grub_rescue_cmd_unset): Likewise.
7d074e3c 36652 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 36653 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 36654 commands, remove grub_rescue_register_command calls.
b1b797cb 36655
7d074e3c 36656 * normal/command.c (grub_register_command): Removed.
b1b797cb 36657 (grub_unregister_command): Likewise.
36658 (grub_command_find): Likewise.
36659 (grub_iterate_commands): Likewise.
36660 (rescue_command): Likewise.
36661 (export_command): Moved to corecmd.c.
36662 (set_command): Removed.
36663 (unset_command): Likewise.
36664 (insmod_command): Likewise.
36665 (rmmod_command): Likewise.
36666 (lsmod_command): Likewise.
36667 (grub_command_init): Likewise.
36668
36669 * normal/completion.c (iterate_command): Use cmd->prio to check for
36670 active command.
36671 (complete_arguments): Use grub_extcmd_t structure to find options.
36672 (grub_normal_do_completion): Change function grub_iterate_commands to
36673 grub_command_iterate.
36674
36675 * normal/execute.c (grub_script_execute_cmd): No need to parse
36676 argument here.
36677
36678 * normal/main.c (grub_dyncmd_dispatcher): New function.
36679 (read_command_list): Register unload commands as dyncmd.
36680 (grub_cmd_normal): Use new command interface, register rescue,
36681 unregister normal at entry, register normal, unregister rescue at exit.
36682
36683 * include/grub/list.h (grub_list_test_t): New type.
36684 (grub_list_iterate): Return int instead of void.
36685 (grub_list_insert): New function.
36686 (GRUB_AS_NAMED_LIST_P): New macro.
36687 (GRUB_AS_PRIO_LIST): Likewise.
36688 (GRUB_AS_PRIO_LIST_P): Likewise.
36689 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
36690 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
36691 (grub_prio_list): New structure.
36692 (grub_prio_list_insert): New function.
36693 (grub_prio_list_remove): New inline function.
36694
36695 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
36696 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
36697 (GRUB_COMMAND_FLAG_MENU): Likewise.
36698 (GRUB_COMMAND_FLAG_BOTH): Likewise.
36699 (GRUB_COMMAND_FLAG_TITLE): Likewise.
36700 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
36701 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
36702 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
36703 (grub_command): Likewise.
36704 (grub_register_command): Likewise.
36705 (grub_command_find): Likewise.
36706 (grub_iterate_commands): Likewise.
36707 (grub_command_init): Likewise.
36708 (grub_arg_parse): Likewise.
36709 (grub_arg_show_help): Likewise.
36710
36711 * include/grub/rescue.h (grub_rescue_register_command): Removed.
36712 (grub_rescue_unregister_command): Likewise.
36713
36714 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
36715 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
36716 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
36717
36718 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
36719 grub_rescue_cmd_initrd.
36720 * include/grub/i386/loader.h: Likewise.
36721 * include/grub/x86_64/loader.h: Likewise.
36722
36723 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
36724
1f4147aa 367252009-03-21 Bean <bean123ch@gmail.com>
36726
36727 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
36728 instead of stat in mingw environment.
36729
36730 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
36731
36732 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
36733
36734 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
36735 AC_CONFIG_LINKS.
36736
2156d5ba 367372009-03-21 Bean <bean123ch@gmail.com>
36738
36739 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
36740 out of range error.
36741
177b82ca 367422009-03-18 Michel Dänzer <michel@daenzer.net>
36743
36744 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
36745 checking inode flags for EXT4_EXTENTS_FLAG.
36746
14aad807 367472009-03-18 Robert Millan <rmh@aybabtu.com>
36748
36749 * loader/i386/linux.c: Include `<grub/video.h>' and
36750 `<grub/i386/pc/vbe.h>'..
36751 (grub_linux_setup_video): New function. Loosely based on the EFI one.
36752 (grub_linux32_boot): Attempt to configure video settings with
36753 grub_linux_setup_video().
36754 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
36755 to avoid grub_console_fini() which would step out of graphical mode
36756 unconditionally.
36757
8cf83a27 367582009-03-14 Robert Millan <rmh@aybabtu.com>
36759
36760 Fix build on powerpc.
36761 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
36762
40164e75 367632009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
36764
36765 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
36766 background image command.
36767
c58bc32a 367682009-03-12 Colin D Bennett <colin@gibibit.com>
36769
36770 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
36771 (grub_gfxterm_putchar): Extract pairs of identical calls to
36772 draw_cursor out of conditional blocks.
36773
5415144a 367742009-03-11 Pavel Roskin <proski@gnu.org>
36775
36776 * fs/hfs.c (grub_hfs_strncasecmp): New function.
36777 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
36778
6394042e 367792009-03-11 Robert Millan <rmh@aybabtu.com>
36780
36781 * loader/i386/multiboot_elfxx.c
36782 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
36783
b7b50e5f 367842009-03-11 Felix Zielcke <fzielcke@z-51.de>
36785
36786 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
36787 `kern/handler.c'.
36788
1ca7fc96 367892009-03-11 Robert Millan <rmh@aybabtu.com>
36790
36791 * loader/i386/multiboot.c (code_size): New variable.
36792 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 36793 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 36794 4-byte alignment to MBI and others by increasing
7d074e3c 36795 `boot_loader_name_length' appropriately.
1ca7fc96 36796
36797 * loader/i386/multiboot_elfxx.c
36798 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
36799
a83ea1d2 368002009-03-09 Felix Zielcke <fzielcke@z-51.de>
36801
36802 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
36803 `fs/ext2.c'.
36804
aa9f3bff 368052009-03-08 Robert Millan <rmh@aybabtu.com>
36806
36807 Make loader/i386/linux.c usable on i386-pc again.
36808
36809 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
36810 memory to heap.
36811 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
36812 `#error' stanza.
36813
d8b3b60e 368142009-03-07 Bean <bean123ch@gmail.com>
36815
36816 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
36817 allocation.
36818
b362c9e9 368192009-03-06 Robert Millan <rmh@aybabtu.com>
36820
36821 Fix display issue on terminals with screen size other than 80x25
36822 (e.g. gfxterm with resolution higher than 640x480).
36823
36824 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 36825 position relative to the center of the terminal instead of relying
b362c9e9 36826 on a hardcoded offset.
36827
9304eef1 368282009-03-04 Robert Millan <rmh@aybabtu.com>
36829
36830 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
36831 installed.
36832
36833 * Makefile.in (host_kernel): New variable.
36834 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
36835 scripts instead of just the windows one.
36836 * configure.ac: Initialize and AC_SUBST `host_kernel'.
36837
eabc95fb 368382009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 36839
36840 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
36841 `kern/handler.c'.
36842 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36843 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36844 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36845 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36846 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36847 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36848
ceb1223c 368492009-03-04 Felix Zielcke <fzielcke@z-51.de>
36850
36851 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
36852 or if there's no space for the disk label and print the partition number on a
36853 invalid magic.
36854
4910684a 368552009-03-04 Felix Zielcke <fzielcke@z-51.de>
36856
36857 * util/misc.c: Include <time.h>.
36858 (grub_millisleep): New function.
36859
7e9ca17a 368602009-03-04 Bean <bean123ch@gmail.com>
36861
36862 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
36863 another option -mno-red-zone.
36864
36865 * commands/handler.c: Change module description.
36866
36867 * kern/handler.c: Add missing space at the end of description line.
36868
36869 * kern/list.c: Likewise.
36870
f501677c 368712009-03-03 Robert Millan <rmh@aybabtu.com>
36872
36873 Move more components to the relocation area, and fix mbi pointer
36874 handling to use the destination rather than the origin (thanks to
36875 Vladimir Serbinenko for spotting).
36876
36877 * loader/i386/multiboot.c (mbi_dest): New variable.
36878 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
36879 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
36880 relocation area.
36881
9902d047 368822009-03-01 Bean <bean123ch@gmail.com>
36883
50fb7002 36884 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 36885 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
36886 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
36887 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
36888
36889 * loader/i386/efi/linux.c (acpi_guid): New variable.
36890 (acpi_guid): Likewise.
36891 (EBDA_SEG_ADDR): New constant.
36892 (LOW_MEM_ADDR): Likewise.
36893 (FAKE_EBDA_SEG): Likewise.
36894 (fake_bios_data): New function.
36895 (grub_linux_boot): Call fake_bios_data.
36896
71b9f361 368972009-03-01 Bean <bean123ch@gmail.com>
36898
36899 * commands/terminal.c: Removed.
36900
36901 * commands/handler.c: New file.
36902
36903 * include/grub/list.h: Likewise.
36904
36905 * include/grub/handler.h: Likewise.
36906
36907 * kern/list.c: Likewise.
36908
36909 * kern/handler.c: Likewise.
36910
36911 * kern/term.h: Include header file <grub/handler.h>.
36912 (grub_term_input): Move next field to the beginning.
36913 (grub_term_output): Likewise.
36914 (grub_term_input_class): New variable.
36915 (grub_term_output_class): Likewise.
36916 (grub_term_register_input): Changed to inline function.
36917 (grub_term_register_output): Likewise.
36918 (grub_term_unregister_input): Likewise.
36919 (grub_term_unregister_output): Likewise.
36920 (grub_term_set_current_input): Likewise.
36921 (grub_term_set_current_output): Likewise.
36922 (grub_term_get_current_input): Likewise.
36923 (grub_term_get_current_output): Likewise.
36924 (grub_term_iterate_input): Removed.
36925 (grub_term_iterate_output): Likewise.
36926
36927 * kern/term.c (grub_term_list_input): Removed.
36928 (grub_term_list_output): Likewise.
36929 (grub_term_input_class): New variable.
36930 (grub_term_output_class): Likewise.
50fb7002 36931 (grub_cur_term_input): Change variable as macro.
71b9f361 36932 (grub_cur_term_output): Likewise.
36933 (grub_term_register_input): Removed.
36934 (grub_term_register_output): Likewise.
36935 (grub_term_unregister_input): Likewise.
36936 (grub_term_unregister_output): Likewise.
36937 (grub_term_set_current_input): Likewise.
36938 (grub_term_set_current_output): Likewise.
36939 (grub_term_iterate_input): Likewise.
36940 (grub_term_iterate_output): Likewise.
36941 (grub_term_get_current_input): Likewise.
36942 (grub_term_get_current_output): Likewise.
36943
36944 * util/grub-editenv.c: Include header file <grub/handler.h>.
36945 (grub_term_get_current_input): Removed.
36946 (grub_term_get_current_output): Likewise.
36947 (grub_term_input_class): New variable.
50fb7002 36948 (grub_term_output_class): Likewise.
71b9f361 36949
36950 * util/grub-fstest.c (grub_term_get_current_input): Removed.
36951 (grub_term_get_current_output): Likewise.
36952 (grub_term_input_class): New variable.
50fb7002 36953 (grub_term_output_class): Likewise.
71b9f361 36954
36955 * util/grub-probe.c (grub_term_get_current_input): Removed.
36956 (grub_term_get_current_output): Likewise.
36957 (grub_term_input_class): New variable.
50fb7002 36958 (grub_term_output_class): Likewise.
71b9f361 36959
36960 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
36961 (grub_term_get_current_output): Likewise.
36962 (grub_term_input_class): New variable.
50fb7002 36963 (grub_term_output_class): Likewise.
71b9f361 36964
36965 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
36966 (terminal_mod_SOURCES): Likewise.
36967 (terminal_mod_CFLAGS): Likewise.
36968 (terminal_mod_LDFLAGS): Likewise.
36969
36970 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
36971 handler.c.
36972 (kernel_img_SOURCES): Add list.c and handler.c.
36973 (kernel_img_HEADERS): Add list.h and handler.h.
36974
36975 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
36976 handler.c.
36977 (kernel_mod_SOURCES): Add list.c and handler.c.
36978 (kernel_mod_HEADERS): Add list.h and handler.h.
36979
36980 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
36981 handler.c.
36982 (kernel_elf_SOURCES): Add list.c and handler.c.
36983 (kernel_elf_HEADERS): Add list.h and handler.h.
36984
36985 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
36986 handler.c.
36987 (kernel_elf_SOURCES): Add list.c and handler.c.
36988 (kernel_elf_HEADERS): Add list.h and handler.h.
36989
36990 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
36991 handler.c.
36992 (kernel_mod_SOURCES): Add list.c and handler.c.
36993 (kernel_mod_HEADERS): Add list.h and handler.h.
36994
36995 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
36996 handler.c.
36997 (kernel_elf_SOURCES): Add list.c and handler.c.
36998 (kernel_elf_HEADERS): Add list.h and handler.h.
36999
8a31787f 370002009-02-27 Robert Millan <rmh@aybabtu.com>
37001
37002 Factorize elf32 / elf64 code in Multiboot loader. This will
37003 prevent it from getting out of sync again.
37004
37005 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
37006 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
37007 grub_multiboot_load_elf64): Move from here ...
37008 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
37009 grub_multiboot_load_elf): ... to here (new file).
37010
51cd3dfc 370112009-02-27 Robert Millan <rmh@aybabtu.com>
37012
37013 * util/grub.d/10_linux.in: Rename "single-user mode" to
37014 "recovery mode".
37015
6e8c9c3a 370162009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
37017
37018 Don't leak in SCSI code.
37019 * disk/scsi.c (grub_scsi_close): free `scsi'.
37020
4b6bf4f9 370212009-02-27 Robert Millan <rmh@aybabtu.com>
37022
37023 * loader/i386/pc/multiboot.c: Move from here ...
37024 * loader/i386/multiboot.c: ... to here. Update all users.
37025
b9413424 370262009-02-27 Robert Millan <rmh@aybabtu.com>
37027
37028 Patch from Alexandre Bique <bique.alexandre@gmail.com>
37029 * util/i386/pc/grub-setup.c (setup): Fix directory path.
37030
50fb7002 370312009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 37032
37033 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
37034 b-tree.
37035
8cc50345 370362009-02-27 Robert Millan <rmh@aybabtu.com>
37037
37038 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
37039 `0x' qualifier as 0 when base is specified as parameter).
37040
6e09b8b7 370412009-02-24 Bean <bean123ch@gmail.com>
37042
37043 * configure.ac: Check for -mcmodel=large in x86_64 target.
37044
37045 * include/grub/efi/api.h (efi_call_10): New macro.
37046 (efi_wrap_10): New function.
37047
37048 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
37049 (GRUB_PE32_REL_BASED_HIGH): Likewise.
37050 (GRUB_PE32_REL_BASED_LOW): Likewise.
37051 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
37052 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
37053 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
37054 (GRUB_PE32_REL_BASED_SECTION): Likewise.
37055 (GRUB_PE32_REL_BASED_REL): Likewise.
37056 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
37057 (GRUB_PE32_REL_BASED_DIR64): Likewise.
37058 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
37059
37060 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
37061 issue.
37062
37063 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
37064 (efi_wrap_10): New function.
37065
37066 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
37067
37068 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
37069 MB/MBP model (NV chipset).
37070 (devdata_devs): Add devpath_5 to the list.
37071
37072 * load/i386/efi/linux.c (video_base): Remove variable.
37073 (RGB_MASK): New macro.
37074 (RGB_MAGIC): Likewise.
37075 (LINE_MIN): Likewise.
37076 (LINE_MAX): Likewise.
37077 (FBTEST_STEP): Likewise.
37078 (FBTEST_COUNT): Likewise.
37079 (fb_list): New variable.
37080 (grub_find_video_card): Remove function.
37081 (find_framebuf): New function.
37082 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
37083 line length.
37084
37085 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
37086 problem for x86_64.
37087
74b21bee 370882009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
37089
37090 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
37091
37092 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
37093 coding tool name.
37094
a455f472 370952009-02-22 Robert Millan <rmh@aybabtu.com>
37096
37097 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
37098 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
37099 in our relocation, instead of using it directly from heap. Also
37100 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
37101
6374daf3 371022009-02-21 Robert Millan <rmh@aybabtu.com>
37103
37104 Implement USB keyboard support (based on patch by Marco Gerards)
37105
37106 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
37107 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
37108 (usb_keyboard_mod_LDFLAGS): New variables.
37109
37110 * term/usb_keyboard.c: New file.
37111
8fa4ea70 371122009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
37113
37114 Corrected wrong declaration
37115
37116 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
37117
353976ac 371182009-02-14 Christian Franke <franke@computer.org>
37119
37120 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
37121 (grub_lspci_iter): Print class code and programming interface byte.
37122
6aa1169b 371232009-02-14 Christian Franke <franke@computer.org>
37124
37125 * gendistlist.sh: Ignore `.svn' directories.
37126
265372ca 371272009-02-14 Felix Zielcke <fzielcke@z-51.de>
37128
37129 * fs/fat.c: Add 2009 to Copyright line.
37130
9ff516f3 371312009-02-14 Christian Franke <franke@computer.org>
37132
37133 * commands/hdparm.c: New file. Provides `hdparm' command
37134 which sends ATA commands via grub_disk_ata_pass_through ().
37135
37136 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
37137
37138 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
37139 and <grub/cpu/io.h> to include/grub/ata.h.
37140 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
37141 (GRUB_CDROM_SECTOR_SIZE): Remove.
37142 (GRUB_ATA_*): Move to include/grub/ata.h.
37143 (GRUB_ATAPI_*): Likewise.
37144 (enum grub_ata_commands): Likewise.
37145 (enum grub_ata_timeout_milliseconds): Likewise.
37146 (struct grub_ata_device): Likewise.
37147 (grub_ata_regset): Likewise.
37148 (grub_ata_regget): Likewise.
37149 (grub_ata_regset2): Likewise.
37150 (grub_ata_regget2): Likewise.
37151 (grub_ata_check_ready): Likewise.
37152 (grub_ata_wait_not_busy): Remove static, exported in
37153 include/grub/ata.h.
37154 (grub_ata_wait_drq): Likewise.
37155 (grub_ata_pio_read): Likewise.
37156
37157 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
37158 function for hdparm.mod.
37159
37160 * include/grub/ata.h: New file, contains declarations from
37161 disk/ata.c.
37162 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
37163
37164 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
37165 (grub_disk_ata_pass_through): New exported variable.
37166
37167 * kern/disk.c (grub_disk_ata_pass_through): New variable.
37168
772e23da 371692009-02-13 Colin D Bennett <colin@gibibit.com>
37170
37171 Support multiple fallback entries, and provide an API to support
37172 executing default+fallback menu entries. Renamed the `terminal' menu
37173 viewer to `text'.
37174
37175 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
37176 variable declaration.
37177 (grub_menu_execute_callback): New structure declaration.
37178 (grub_menu_execute_callback_t): New typedef.
37179 (grub_menu_execute_with_fallback): New function declaration.
37180 (grub_menu_get_entry): Likewise.
37181 (grub_menu_get_timeout): Likewise.
37182 (grub_menu_set_timeout): Likewise.
37183
37184 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
37185
37186 * normal/menu.c (grub_wait_after_message): Moved to
37187 `normal/menu_text.c'.
37188 (draw_border): Likewise.
37189 (print_message): Likewise.
37190 (print_entry): Likewise.
37191 (print_entries): Likewise.
37192 (grub_menu_init_page): Likewise.
37193 (get_entry_number): Likewise.
37194 (print_timeout): Likewise.
37195 (run_menu): Likewise.
37196 (grub_menu_execute_entry): Likewise.
37197 (show_text_menu): Likewise.
37198 (get_and_remove_first_entry_number): New function.
37199 (grub_menu_execute_with_fallback): Likewise.
37200 (get_entry): Renamed to ...
37201 (grub_menu_get_entry): .. this and made it global.
37202 (get_timeout): Renamed to ...
37203 (grub_menu_get_timeout): ... this and made it global.
37204 (set_timeout): Renamed to ...
37205 (grub_menu_set_timeout): ... this and made it global.
37206 (grub_normal_terminal_menu_viewer): Renamed to ...
37207 (grub_normal_text_menu_viewer): ... this.
37208
37209 * normal/menu_text.c: New file. Extracted text-menu-specific code
37210 from normal/menu.c.
37211
37212 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
37213 (normal_mod_SOURCES): Likewise.
37214
37215 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37216 (normal_mod_SOURCES): Likewise.
37217
37218 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37219 (normal_mod_SOURCES): Likewise.
37220
37221 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
37222 (normal_mod_SOURCES): Likewise.
37223
37224 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37225 (normal_mod_SOURCES): Likewise.
37226
37227 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37228 (normal_mod_SOURCES): Likewise.
37229
37230 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37231 (normal_mod_SOURCES): Likewise.
37232
16ac430e 372332009-02-11 Robert Millan <rmh@aybabtu.com>
37234
37235 * util/grub.d/00_header.in: Update old reference to `font' command.
37236
06ff20fc 372372009-02-10 Felix Zielcke <fzielcke@z-51.de>
37238
37239 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
37240
37241 Based on patch from Javier Martín.
37242
96da9407 372432009-02-09 Felix Zielcke <fzielcke@z-51.de>
37244
37245 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 37246 to avoid false positives with FAT.
96da9407 37247 (grub_fstest_SOURCES): Likewise.
37248 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37249 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37250 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37251 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37252 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37253 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37254
6dca6fe4 372552009-02-09 Felix Zielcke <fzielcke@z-51.de>
37256
06ff20fc 37257 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 37258 bpb.version_specific.fat12_or_fat16.fstype and
37259 bpb.version_specific.fat32.fstype.
37260
2550c62f 372612009-02-08 Robert Millan <rmh@aybabtu.com>
37262
be110b30 37263 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 37264
56978920 372652009-02-08 Robert Millan <rmh@aybabtu.com>
37266
37267 * Makefile.in (host_os, host_cpu): New variables.
37268 (target_os): Remove. Update all users.
37269
d64399b5 372702009-02-08 Marco Gerards <marco@gnu.org>
37271
37272 * Makefile.in (enable_grub_emu_usb): New variable.
37273 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
37274 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
37275 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
37276 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
37277 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
37278 `usbtest.mod' and `usbms.mod'.
37279 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
37280 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
37281 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
37282 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
37283 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
37284 variables.
37285
37286 * disk/usbms.c: New file.
37287
37288 * include/grub/usb.h: Likewise.
37289
37290 * include/grub/usbtrans.h: Likewise.
37291
37292 * include/grub/usbdesc.h: Likewise.
37293
37294 * bus/usb/usbtrans.c: Likewise.
37295
37296 * bus/usb/ohci.c: Likewise.
37297
37298 * bus/usb/uhci.c: Likewise.
37299
37300 * bus/usb/usbhub.c: Likewise.
37301
37302 * bus/usb/usb.c: Likewise.
37303
37304 * commands/usbtest.c: Likewise.
37305
37306 * util/usb.c: Likewise.
50fb7002 37307
d64399b5 37308 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
37309
37310 * configure.ac: Test for libusb presence.
50fb7002 37311
d64399b5 37312 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
37313
2b40d6bb 373142009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
37315
37316 * kern/mm.c: Add more comments.
37317
73a4ce81 373182009-02-08 Robert Millan <rmh@aybabtu.com>
37319
37320 Patch from Javier Martín.
37321 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
37322 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
37323
f821ce59 373242009-02-08 Robert Millan <rmh@aybabtu.com>
37325
37326 * fs/cpio.c: Split tar functionality to ...
37327 * fs/tar.c: ... here (new file). Update all users.
37328
aebfc4b0 373292009-02-07 Robert Millan <rmh@aybabtu.com>
37330
37331 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
37332 backward-incompatible features.
37333
37334 Based on patch from Javier Martín, with some adjustments.
37335
50fb7002 373362009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 37337
37338 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
37339
0bb5115e 373402009-02-07 Robert Millan <rmh@aybabtu.com>
37341
37342 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
37343 position of `disk/lvm.c' to ensure grub_init_all() always picks it
37344 after the RAID stuff.
37345
38a0f8e7 373462009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
37347
50fb7002 37348 Fixes problem when running vbetest command as reported by
38a0f8e7 37349 Vladimir Serbinenko <phcoder@gmail.com>.
37350
37351 * (grub_vbe_set_video_mode): Fixed problem with text modes.
37352
3143cc1c 373532009-02-04 Felix Zielcke <fzielcke@z-51.de>
37354
37355 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
37356 /dev/md/NpN style mdraid devices.
37357
9cba6fce 373582009-02-03 Felix Zielcke <fzielcke@z-51.de>
37359
37360 * util/unifont2pff.rb: Remove.
37361
e507a2c1 373622009-02-03 Felix Zielcke <fzielcke@z-51.de>
37363
37364 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
37365 `#'.
37366
d2c2b4cd 373672009-02-03 Felix Zielcke <fzielcke@z-51.de>
37368
37369 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
37370 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37371 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37372 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37373 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37374 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37375 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37376
b4315fb0 373772009-02-02 Christian Franke <franke@computer.org>
37378
37379 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
37380
de3aa260 373812009-02-01 Felix Zielcke <fzielcke@z-51.de>
37382
7c3ff286 37383 * INSTALL: Note that we now require at least autoconf 2.59 and
37384 that LZO is optional.
de3aa260 37385
825a182b 373862009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37387
37388 Base on patch on bug #24154 created by Tomas Tintera
37389 <trosos@seznam.cz>.
37390
37391 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
37392
a69ef770 373932009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37394
7c3ff286 37395 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 37396 <bero@arklinux.org>.
37397
37398 * normal/parser.y (script_init): Add missing semicolon.
37399
6fa42fa6 374002009-01-31 Colin D Bennett <colin@gibibit.com>
37401
7c3ff286 37402 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 37403 (free_menu_entry_classes): Added.
37404 (grub_normal_menu_addentry): Added class property handling.
37405 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
37406 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
37407
37408 * normal/menu_viewer.c: New file.
37409
37410 * normal/menu.c (run_menu_entry): Renamed to ...
37411 (grub_menu_execute_entry): ... this and made it as global.
37412 (grub_menu_run): Renamed to ...
37413 (show_text_menu): ... this and made it local.
37414 (show_text_menu): Adapt to new function names.
37415 (grub_normal_terminal_menu_viewer): New global variable.
37416
37417 * include/grub/menu.h: New file.
37418
37419 * include/grub/menu_viewer.h: New file.
37420
37421 * include/grub/normal.h: Added include to grub/menu.h.
37422 (grub_menu_entry): Moved to include/grub/menu.h.
37423 (grub_menu_entry_t): Likewise.
37424 (grub_menu): Likewise.
37425 (grub_menu_t): Likewise.
37426 (grub_normal_terminal_menu_viewer): Added.
37427 (grub_menu_execute_entry): Likewise.
37428 (grub_menu_run): Removed.
37429
37430 * DISTLIST: Added include/grub/menu.h.
37431 Added include/grub/menu_viewer.h.
37432 Added normal/menu_viewer.c.
37433
374342009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
37435
37436 * normal/execute.c (grub_script_execute_menuentry): Changed to use
37437 arglist for menutitle arguments.
37438
37439 * normal/main.c (grub_normal_menu_addentry): Likewise.
37440
37441 * normal/parser.y (menuentry): Likewise.
37442
37443 * normal/script.c (grub_script_create_cmdmenu): Likewise.
37444
37445 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
37446 (grub_script_create_cmdmenu): Likewise.
37447
37448 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
37449
37450 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
37451 changes.
37452
37453 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
37454
37455 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
37456
37457 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
37458
37459 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37460
37461 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37462
37463 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37464
56192c23 374652009-01-30 Christian Franke <franke@computer.org>
37466
37467 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
37468 in option help text.
37469
d72521b3 374702009-01-27 Pavel Roskin <proski@gnu.org>
37471
37472 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
37473
994b5e84 374742009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37475
37476 * commands/lsmmap.c: Add include to grub/machine/memory.h.
37477
37478 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
37479
37480 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
37481 unregister function.
37482
6a7eab2c 374832009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37484
37485 * disk/scsi.c (grub_scsi_read): Fix sign problem.
37486
37487 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
37488
37489 * util/grub-mkfont.c (usage): Fix typo.
37490
37491 * util/elf/grub-mkimage.c (load_modules): Fix warning.
37492
1806b56e 374932009-01-26 Daniel Mierswa <impulze@impulze.org>
37494
3fb18f09 37495 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
37496
336e1fb9 37497 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
37498
1806b56e 37499 * kern/misc.c (grub_strcasecmp): New function.
37500 (grub_strcasecmp): Use grub_size_t instead of int for length.
37501 Fix return value.
37502 * include/grub/misc.h: Update function prototypes.
37503
580b2a0f 375042009-01-26 Robert Millan <rmh@aybabtu.com>
37505
37506 * configure.ac: Fix cross-compilation check.
ef257b36 37507
d31c24f1 375082009-01-22 Christian Franke <franke@computer.org>
37509
37510 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
37511 (precision) digit string. Allow `.format2' without `format1' (width).
37512 Limit input chars for `%s' output to `format2' if specified. This is
37513 compatible with standard printf ().
37514
3138b44c 375152009-01-22 Christian Franke <franke@computer.org>
37516
37517 * disk/ata.c (grub_ata_wait_status): Replace by ...
37518 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
37519 other status bits may be invalid while BSY is asserted.
37520 (grub_ata_check_ready): New function.
37521 (grub_ata_cmd): Removed.
37522 (grub_ata_wait_drq): New function.
37523 (grub_ata_strncpy): Remove inline.
37524 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
37525 and error check now done by grub_ata_wait_drq ().
37526 (grub_ata_pio_write): Likewise.
37527 (grub_atapi_identify): Set DEV before check for !BSY. Use
37528 grub_ata_wait_drq () to wait for data.
37529 (grub_ata_device_initialize): Add status register check to
37530 detect missing SATA slave devices. Add debug messages.
37531 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
37532 (grub_atapi_packet): Set DEV before check for !BSY. Replace
37533 transfer loop by grub_ata_pio_write ().
37534 (grub_ata_identify): Set DEV before check for !BSY. Use
37535 grub_ata_wait_drq () to wait for data.
ef257b36 37536 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 37537 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
37538 read/write in one loop. Fix invalid command on write. Fix incomplete
37539 command on (size % batch) == 0. Add missing error check after write of
37540 last block. Add debug messages.
37541 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
37542
59a64ef6 375432009-01-19 Christian Franke <franke@computer.org>
37544
37545 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
37546 (GRUB_ATAPI_IREASON_*): Likewise.
37547 (grub_ata_pio_write): Fix timeout error return.
37548 (grub_atapi_identify): Add grub_ata_wait () after cmd.
37549 (grub_atapi_wait_drq): New function.
37550 (grub_atapi_packet): New parameter `size'.
37551 Use grub_atapi_wait_drq () and direct write instead of
37552 grub_ata_pio_write ().
37553 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
37554 reads the number of bytes requested by the device for each DRQ
37555 assertion.
37556 (grub_atapi_write): Remove old implementation, return not
37557 implemented instead.
37558
1cfe20b3 375592009-01-19 Christian Franke <franke@computer.org>
37560
37561 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
37562 of 512 to calculate data size.
37563 (grub_scsi_read12): Likewise.
37564 (grub_scsi_write10): Likewise.
37565 (grub_scsi_write12): Likewise.
37566 (grub_scsi_read): Adjust size according to blocksize.
37567 Add checks for invalid blocksize and unaligned transfer.
37568
bee5fe5d 375692009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
37570
37571 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
37572
ef257b36 37573 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 37574 width glyphs.
37575
3e643f8c 375762009-01-19 Robert Millan <rmh@aybabtu.com>
37577
37578 * config.guess: Update to latest version from config git.
37579 * config.sub: Likewise.
37580
4fa80998 375812009-01-17 Felix Zielcke <fzielcke@z-51.de>
37582
37583 * Makefile.in: Change font compilation to use new grub-mkfont instead
37584 of java version.
37585
37586 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
37587 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
37588 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37589 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37590 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
37591 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
37592 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
37593 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
37594 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
37595
7086085b 375962009-01-16 Christian Franke <franke@computer.org>
37597
37598 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
37599 (enum grub_ata_timeout_milliseconds): New enum.
37600 (grub_ata_wait_status): Add parameter milliseconds.
37601 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
37602 recovery from timed-out commands.
37603 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
37604 return grub_errno instead of REG_ERROR.
37605 (grub_ata_pio_write): Add parameter milliseconds.
37606 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
37607 Pass milliseconds to grub_ata_wait_status () and
37608 grub_ata_pio_read ().
37609 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
37610 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
37611 grub_ata_wait_status (). Fix IDENTIFY timeout check.
37612 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
37613 It is not suitable for device detection, because DEV bit is ignored,
37614 the command may run too long, and not all devices set the signature
37615 properly.
37616 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
37617 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
37618 Fix device selection, DEV bit must be set first to address the registers
37619 of the correct device.
37620 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
37621 grub_ata_pio_read/write ().
37622 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
37623 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
37624
4a412913 376252009-01-13 Carles Pina i Estany <carles@pina.cat>
37626
37627 * util/grub-editenv.c (main): Use fseeko(), not fseek().
37628
7795c55e 376292009-01-13 Bean <bean123ch@gmail.com>
d913988c 37630
37631 * util/grub-mkfont.c (write_font): forget to remove some debug code.
37632
7795c55e 376332009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 37634
37635 * Makefile.in: (enable_grub_mkfont): New variable.
37636 (freetype_cflags): Likewise.
37637 (freetype_libs): Likewise.
37638
37639 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
37640 (grub_mkfont_SOURCES): New variable.
37641 (grub_mkfont_CFLAGS): Likewise.
37642 (grub_mkfont_LDFLAGS): Likewise.
37643
37644 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
37645 library if `--enable-grub-mkfont' is requested.
37646 (enable_grub_mkfont): New variable.
37647 (freetype_cflags): Likewise.
37648 (freetype_libs): Likewise.
37649
37650 * util/grub-mkfont.c: New file.
37651
093af1fe 376522009-01-12 Christian Franke <franke@computer.org>
37653
37654 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
37655 mode check. Fix setting of compat_use[].
37656
f36cc108 376572009-01-10 Robert Millan <rmh@aybabtu.com>
37658
37659 Update a few copyright years which we forgot to do in 2008 (only for
37660 files whose changes made in 2008 were copyright-significant)
37661
37662 * Makefile.in: Add 2008 to Copyright line.
37663 * disk/ieee1275/ofdisk.c: Likewise.
37664 * disk/efi/efidisk.c: Likewise.
37665 * kern/dl.c: Likewise.
37666 * kern/sparc64/ieee1275/init.c: Likewise.
37667 * kern/mm.c: Likewise.
37668 * kern/efi/mm.c: Likewise.
37669 * boot/i386/pc/boot.S: Likewise.
37670 * genfslist.sh: Likewise.
37671 * fs/iso9660.c: Likewise.
37672 * fs/hfs.c: Likewise.
37673 * fs/jfs.c: Likewise.
37674 * fs/minix.c: Likewise.
37675 * fs/ufs.c: Likewise.
37676 * gensymlist.sh.in: Likewise.
37677 * genkernsyms.sh.in: Likewise.
37678 * include/grub/misc.h: Likewise.
37679 * include/grub/types.h: Likewise.
37680 * include/grub/symbol.h: Likewise.
37681 * include/grub/elf.h: Likewise.
37682 * include/grub/kernel.h: Likewise.
37683 * include/grub/disk.h: Likewise.
37684 * include/grub/dl.h: Likewise.
37685 * include/grub/i386/linux.h: Likewise.
37686 * include/grub/i386/pc/biosdisk.h: Likewise.
37687 * include/grub/efi/api.h: Likewise.
37688 * include/grub/efi/pe32.h: Likewise.
37689 * include/grub/util/misc.h: Likewise.
37690 * normal/execute.c: Likewise.
37691 * normal/arg.c: Likewise.
37692 * normal/completion.c: Likewise.
37693 * normal/lexer.c: Likewise.
37694 * normal/parser.y: Likewise.
37695 * normal/misc.c: Likewise.
37696 * commands/i386/pc/vbeinfo.c: Likewise.
37697 * commands/hexdump.c: Likewise.
37698 * commands/terminal.c: Likewise.
37699 * commands/ls.c: Likewise.
37700 * commands/help.c: Likewise.
37701 * partmap/pc.c: Likewise.
37702 * loader/efi/chainloader.c: Likewise.
37703 * loader/multiboot_loader.c: Likewise.
37704 * loader/i386/pc/multiboot2.c: Likewise.
37705 * term/efi/console.c: Likewise.
37706 * term/i386/pc/serial.c: Likewise.
37707 * util/lvm.c: Likewise.
37708 * util/console.c: Likewise.
37709 * util/i386/efi/grub-mkimage.c: Likewise.
37710 * util/raid.c: Likewise.
37711
7f02114b 377122009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
37713
37714 * commands/videotest.c: Removed include to grub/machine/memory.h.
37715
37716 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
37717 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
37718 (video_mod_SOURCES): Removed.
37719 (video_mod_CFLAGS): Likewise.
37720 (video_mod_LDFLAGS): Likewise.
37721 (gfxterm_mod_SOURCES): Likewise.
37722 (gfxterm_mod_CFLAGS): Likewise.
37723 (gfxterm_mod_LDFLAGS): Likewise.
37724 (videotest_mod_SOURCES): Likewise.
37725 (videotest_mod_CFLAGS): Likewise.
37726 (videotest_mod_LDFLAGS): Likewise.
37727 (bitmap_mod_SOURCES): Likewise.
37728 (bitmap_mod_CFLAGS): Likewise.
37729 (bitmap_mod_LDFLAGS): Likewise.
37730 (tga_mod_SOURCES): Likewise.
37731 (tga_mod_CFLAGS): Likewise.
37732 (tga_mod_LDFLAGS): Likewise.
37733 (jpeg_mod_SOURCES): Likewise.
37734 (jpeg_mod_CFLAGS): Likewise.
37735 (jpeg_mod_LDFLAGS): Likewise.
37736 (png_mod_SOURCES): Likewise.
37737 (png_mod_CFLAGS): Likewise.
37738 (png_mod_LDFLAGS): Likewise.
37739
37740 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
37741 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
37742 (video_mod_SOURCES): Added.
37743 (video_mod_CFLAGS): Likewise.
37744 (video_mod_LDFLAGS): Likewise.
37745 (videotest_mod_SOURCES): Likewise.
37746 (videotest_mod_CFLAGS): Likewise.
37747 (videotest_mod_LDFLAGS): Likewise.
37748 (bitmap_mod_SOURCES): Likewise.
37749 (bitmap_mod_CFLAGS): Likewise.
37750 (bitmap_mod_LDFLAGS): Likewise.
37751 (tga_mod_SOURCES): Likewise.
37752 (tga_mod_CFLAGS): Likewise.
37753 (tga_mod_LDFLAGS): Likewise.
37754 (jpeg_mod_SOURCES): Likewise.
37755 (jpeg_mod_CFLAGS): Likewise.
37756 (jpeg_mod_LDFLAGS): Likewise.
37757 (png_mod_SOURCES): Likewise.
37758 (png_mod_CFLAGS): Likewise.
37759 (png_mod_LDFLAGS): Likewise.
37760 (gfxterm_mod_SOURCES): Likewise.
37761 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 37762 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 37763
37764 * term/gfxterm.c: Removed include to grub/machine/memory.h,
37765 grub/machine/console.h.
37766
644fff97 377672009-01-04 Jerone Young <jerone@gmail.com>
37768
37769 Make on screen instructions clearer
37770
37771 Based on patch created by Jidanni <jidanni@jidanni.org>
37772
37773 * normal/menu.c: print clearer instructions on the screen
37774
1e901a75 377752009-01-02 Colin D Bennett <colin@gibibit.com>
37776
37777 New font engine.
34c44600 37778
1e901a75 37779 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
37780 build system and fixed gfxterm.c to work with different sized fonts.
37781
37782 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 37783
1e901a75 37784 * configure: Re-generated.
34c44600 37785
1e901a75 37786 * DISTLIST: Removed font/manager.c.
37787 Added font/font.c.
37788 Added font/font_cmd.c.
34c44600 37789
1e901a75 37790 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
37791 compilation.
34c44600 37792
1e901a75 37793 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 37794
37795 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 37796
37797 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 37798
1e901a75 37799 * normal/menu.c: Likewise.
34c44600 37800
1e901a75 37801 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
37802 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 37803
1e901a75 37804 * include/grub/font.h: Replaced with new file.
34c44600 37805
1e901a75 37806 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
37807 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
37808 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
37809 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
37810 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 37811 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 37812 fg_red, fg_green, fg_blue, fg_alpha.
37813 (grub_video_adapter): Removed blit_glyph.
34c44600 37814 (grub_video_blit_glyph): Removed.
37815
1e901a75 37816 * font/manager.c: Removed file.
34c44600 37817
37818 * font/font.c: New file.
37819
1e901a75 37820 * font/font_cmd.c: Likewise.
34c44600 37821
1e901a75 37822 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 37823
1e901a75 37824 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
37825 (grub_video_vbe_map_rgba): Likewise.
37826 (grub_video_vbe_unmap_color_int): Likewise.
37827 (grub_video_vbe_blit_glyph): Removed.
37828 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 37829
1e901a75 37830 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
37831 (get_pixel): Likewise.
34c44600 37832 (set_pixel): Likewise.
37833
1e901a75 37834 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 37835
1e901a75 37836 * term/gfxterm.c: Adapted to new font engine.
34c44600 37837
1e901a75 37838 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 37839
1e901a75 37840 * term/i386/pc/vga.c: Likewise.
34c44600 37841
1e901a75 37842 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 37843
1e901a75 37844 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 37845
1e901a75 37846 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 37847
1e901a75 37848 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 37849
1e901a75 37850 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 37851
1e901a75 37852 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 37853
1e901a75 37854 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 37855
1e901a75 37856 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 37857
1e901a75 37858 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
37859
37860 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 37861
1e901a75 37862 * util/grub-mkconfig_lib.in: Changed font extension.
37863
278922e8 378642008-12-28 Felix Zielcke <fzielcke@z-51.de>
37865
37866 * util/getroot.c (grub_util_get_grub_dev): Add support for
37867 /dev/md/dNNpNN style partitionable mdraid devices.
37868
3ced05cf 378692008-12-12 Alex Smith <alex@alex-smith.me.uk>
37870
37871 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
37872 at a time limit of the PXE TFTP API correctly.
37873 (grub_pxefs_close): Likewise.
37874
7fd0ee30 378752008-11-29 Robert Millan <rmh@aybabtu.com>
37876
34c44600 37877 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 37878 grub_ata_device_initialize() calls.
37879
34c44600 378802008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 37881
37882 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
37883 iteration failed.
37884 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
37885
89313780 378862008-11-28 Robert Millan <rmh@aybabtu.com>
37887
37888 Fix build on powerpc-ieee1275. Based on patch created by
37889 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
37890 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37891 `kern/ieee1275/mmap.c'.
37892 * include/grub/powerpc/ieee1275/memory.h: New file.
37893
15257703 37894 Provide grub-install on coreboot.
37895 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
37896 (grub_install_SOURCES): New variable.
37897 * util/i386/pc/grub-install.in: Add a few condition checks to make it
37898 usable on coreboot.
37899
9fc5388a 379002008-11-25 Felix Zielcke <fzielcke@z-51.de>
37901
37902 * util/grub-fstest.c (grub_term_get_current_input): Change return type
37903 to `grub_term_input_t'.
37904 (grub_term_get_current_output): Change return type to
37905 `grub_term_output_t'.
37906
bc3a2f31 379072008-11-22 Robert Millan <rmh@aybabtu.com>
37908
34c44600 37909 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 37910 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
37911 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
37912 grub_vga_text_cls().
37913
80fc88f2 37914 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 37915 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 37916
cbf36fd3 37917 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
37918 to 0x200000 (avoids trouble with some OFW implementations, and matches
37919 with the one in Yaboot).
37920 Reported by Manoel Abranches
37921
73e8e268 379222008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 37923
37924 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
37925 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
37926
73e8e268 37927 * util/grub-mkconfig_lib.in (grub_warn): New function.
37928 (convert_system_path_to_grub_path): Use grub_warn() when issuing
37929 warnings, to obtain consistent formatting.
37930 * util/grub.d/00_header.in: Likewise.
37931 * util/update-grub_lib.in: Likewise.
37932
e94045a1 37933 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 37934 Move comment text to `#error' stanza.
e94045a1 37935
79d29fd7 37936 Harmonize ieee1275's grub_available_iterate() with the generic
37937 grub_machine_mmap_iterate() interface (fixes a recently-introduced
37938 build problem on i386-ieee1275):
37939 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
37940 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
37941 parameter `type'. Update all users of this function.
37942 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
37943 `kern/ieee1275/mmap.c'.
37944 * kern/ieee1275/init.c
37945 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
37946 with ...
37947 (grub_machine_mmap_iterate): ... this.
37948 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
37949 return type to `grub_err_t'. Update all implementations of this
37950 function prototype.
37951 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
37952 Likewise.
37953
60d6b16e 37954 Add `lsmmap' command (lists firmware-provided memory map):
37955 * commands/lsmmap.c: New file.
37956 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
37957 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
37958 variables.
37959 * conf/powerpc-ieee1275.rmk: Likewise.
37960 * conf/i386-coreboot.rmk: Likewise.
37961 * conf/i386-ieee1275.rmk: Likewise.
37962
ebaaf49b 379632008-11-19 Robert Millan <rmh@aybabtu.com>
37964
37965 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 37966 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
37967 constraints to initrd allocation (based on code from
37968 loader/i386/pc/linux.c). Without them, initrd was allocated too high
37969 for Linux to find it.
ebaaf49b 37970
dfab719f 379712008-11-14 Robert Millan <rmh@aybabtu.com>
37972
37973 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
37974 order to cope with duplicate slashes.
37975
10fc3eb9 379762008-11-14 Robert Millan <rmh@aybabtu.com>
37977
37978 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
37979 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
37980 don't want to mess with lower memory, because it is used in the Linux
37981 loader.
37982
37983 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 37984 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 37985 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
37986 is in our heap (probably as a result of it being corrupted during
2f2a3442 37987 decompression). Add #error instance with comment to explain why this
37988 loader isn't currently usable on PC/BIOS.
10fc3eb9 37989
e2e07847 379902008-11-14 Robert Millan <rmh@aybabtu.com>
37991
37992 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 37993 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 37994
fe8e8d69 379952008-11-12 Robert Millan <rmh@aybabtu.com>
37996
37997 Make loader/i386/linux.c buildable on i386-pc (although disabled).
37998
37999 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
38000 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
38001 from here ...
38002 * include/grub/i386/pc/memory.h: ... to here.
38003
976b07d0 380042008-11-12 Robert Millan <rmh@aybabtu.com>
38005
38006 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
38007 split).
38008
38009 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
38010 (grub_console_cur_color, grub_console_real_putchar)
38011 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38012 (grub_console_setcolorstate, grub_console_setcolor)
38013 (grub_console_getcolor): Move from here ...
38014 * include/grub/i386/vga_common.h: ... to here (new file).
38015
38016 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
38017 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
38018 `<grub/i386/io.h>'.
38019 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
38020 `<grub/i386/vga_common.h>'.
38021
76679cd3 380222008-11-12 Robert Millan <rmh@aybabtu.com>
38023
38024 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
38025 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
38026 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
38027 variables.
38028 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38029 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
38030
38031 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
38032 grub_console_init() with call to grub_vga_text_init().
38033 (grub_machine_fini): Replace call to
38034 grub_console_fini() with call to grub_vga_text_fini() and
38035 grub_at_keyboard_fini().
38036
38037 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
38038 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38039 (grub_console_setcolorstate, grub_console_setcolor)
38040 (grub_console_getcolor): New function prototypes.
38041
38042 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
38043 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
38044 (grub_vga_text_setcursor): Static-ize.
38045 (grub_vga_text_term): New structure.
38046 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
38047
38048 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
38049 (grub_console_cur_color, grub_console_standard_color)
38050 (grub_console_normal_color, grub_console_highlight_color)
38051 (map_char, grub_console_putchar, grub_console_getcharwidth)
38052 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
38053 (grub_console_getcolor): Move from here ...
38054 * term/i386/vga_common.c: ... to here (same function names).
38055
95b841d3 380562008-11-12 Robert Millan <rmh@aybabtu.com>
38057
38058 Use newly-added Multiboot support in coreboot.
38059
38060 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38061 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
38062
38063 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
38064 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
38065 (codestart): Store the MBI in `startup_multiboot_info' when we're
38066 being loaded using Multiboot.
38067
38068 * kern/i386/coreboot/init.c (grub_machine_init): Move
38069 grub_at_keyboard_init() call to beginning of function (useful for
38070 debugging). Call grub_machine_mmap_init() before attempting to use
38071 grub_machine_mmap_iterate().
38072 (grub_lower_mem, grub_upper_mem): Move from here ...
38073 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
38074 here (new file).
38075
38076 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
38077 function prototype.
38078
761ca975 380792008-11-12 Robert Millan <rmh@aybabtu.com>
38080
38081 Fix a regression introduced by the at_keyboard.mod split. Because
38082 some terminals are default on some platforms and non-default on
38083 others, the first terminal being registered determines which is
38084 going to be default.
38085
38086 * kern/term.c (grub_term_register_input): If this is the first
38087 terminal being registered, set it as the current one.
38088 (grub_term_register_output): Likewise.
38089
38090 * term/efi/console.c (grub_console_init): Do not call
38091 grub_term_set_current_output() or grub_term_set_current_input().
38092 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
38093 * term/i386/pc/console.c (grub_console_init): Likewise.
38094 (grub_console_fini): Do not call grub_term_set_current_input()
38095 (but leave grub_term_set_current_output() to restore text mode).
38096
6c529df7 380972008-11-10 Robert Millan <rmh@aybabtu.com>
38098
38099 * util/grub.d/00_header.in: Add backward compatibility check for
38100 versions of terminal.mod that don't understand `terminal_input' or
38101 `terminal_output'.
38102
132e4113 381032008-11-09 Robert Millan <rmh@aybabtu.com>
38104
38105 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
38106 `terminal_input' / `terminal_output', not `terminal'.
38107
ac293d50 381082008-11-08 Robert Millan <rmh@aybabtu.com>
38109
38110 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 38111 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 38112
0025933a 381132008-11-08 Robert Millan <rmh@aybabtu.com>
38114
38115 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 38116 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 38117 members. Update all users.
38118 * util/console.c (grub_ncurses_term): Split in ...
38119 (grub_ncurses_term_input): ... this, and ...
38120 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 38121 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 38122
37c86336 381232008-11-08 Robert Millan <rmh@aybabtu.com>
38124
38125 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
38126 (PKGDATA): Add $(pkgdata_SRCDIR).
38127 (pkglib_BUILDDIR): New variable.
38128 (pkgdata_SRCDIR): New variable.
38129 (build_env.mk): New target.
38130 (include_DATA): New variable.
38131 (install-local): Install $(include_DATA) files in $(includedir).
38132
b6c15a2d 381332008-11-07 Pavel Roskin <proski@gnu.org>
38134
d99d46f1 38135 * gendistlist.sh: Use C locale for sorting to ensure consistent
38136 output on all systems.
38137
b6c15a2d 38138 * util/grub.d/00_header.in: Remove incorrect space before
38139 "serial".
38140
c32ee8c9 381412008-11-07 Robert Millan <rmh@aybabtu.com>
38142
38143 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
38144 per specification.
38145 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
38146 * loader/multiboot_loader.c (find_multi_boot2_header): New function
38147 (based on find_multi_boot1_header).
38148 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
38149 using find_multi_boot2_header(), and abort if neither Multiboot or
38150 Multiboot headers were found.
38151
651c29b7 381522008-11-07 Robert Millan <rmh@aybabtu.com>
38153
38154 Modularize at_keyboard.mod:
38155
38156 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
38157 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
38158 (at_keyboard_mod_LDFLAGS): New variables.
38159
38160 Actual terminal split:
38161
38162 * include/grub/term.h (struct grub_term): Split in ...
38163 (struct grub_term_input): ... this, and ...
38164 (struct grub_term_output): ... this. Update all users.
38165 (grub_term_set_current): Split in ...
38166 (grub_term_set_current_input): ... this, and ...
38167 (grub_term_set_current_output): ... this.
38168 (grub_term_get_current): Split in ...
38169 (grub_term_get_current_input): ... this, and ...
38170 (grub_term_get_current_output): ... this.
38171 (grub_term_register): Split in ...
38172 (grub_term_register_input): ... this, and ...
38173 (grub_term_register_output): ... this.
38174 (grub_term_unregister): Split in ...
38175 (grub_term_unregister_input): ... this, and ...
38176 (grub_term_unregister_output): ... this.
38177 (grub_term_iterate): Split in ...
38178 (grub_term_iterate_input): ... this, and ...
38179 (grub_term_iterate_output): ... this.
38180
38181 * kern/term.c (grub_term_list): Split in ...
38182 (grub_term_list_input): ... this, and ...
38183 (grub_term_list_output): ... this. Update all users.
38184 (grub_cur_term): Split in ...
38185 (grub_cur_term_input): ... this, and ...
38186 (grub_cur_term_output): ... this. Update all users.
38187 (grub_term_set_current): Split in ...
38188 (grub_term_set_current_input): ... this, and ...
38189 (grub_term_set_current_output): ... this.
38190 (grub_term_get_current): Split in ...
38191 (grub_term_get_current_input): ... this, and ...
38192 (grub_term_get_current_output): ... this.
38193 (grub_term_register): Split in ...
38194 (grub_term_register_input): ... this, and ...
38195 (grub_term_register_output): ... this.
38196 (grub_term_unregister): Split in ...
38197 (grub_term_unregister_input): ... this, and ...
38198 (grub_term_unregister_output): ... this.
38199 (grub_term_iterate): Split in ...
38200 (grub_term_iterate_input): ... this, and ...
38201 (grub_term_iterate_output): ... this.
38202
38203 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
38204 a check for input and one for output (and only attempt to get keys
38205 from user when input works).
38206
38207 * util/grub-probe.c (grub_term_get_current): Split in ...
38208 (grub_term_get_current_input): ... this, and ...
38209 (grub_term_get_current_output): ... this.
38210 * util/grub-fstest.c: Likewise.
38211 * util/i386/pc/grub-setup.c: Likewise.
38212 * util/grub-editenv.c: Likewise.
38213
38214 Portability adjustments:
38215
38216 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
38217 `term/i386/pc/at_keyboard.c'.
38218 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
38219 grub_keyboard_controller_init() (now handled by terminal .init).
38220 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
38221 grub_at_keyboard_init().
38222 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
38223 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
38224 at_keyboard.mod via input terminal interface).
38225 * include/grub/i386/coreboot/console.h: Convert into a stub for
38226 `<grub/i386/pc/console.h>'.
38227
38228 Migrate full terminals to new API:
38229
38230 * term/efi/console.c (grub_console_term): Split into ...
38231 (grub_console_term_input): ... this, and ...
38232 (grub_console_term_output): ... this. Update all users.
38233 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
38234 (grub_ofconsole_init): Split into ...
38235 (grub_ofconsole_init_input): ... this, and ...
38236 (grub_ofconsole_init_output): ... this.
38237 (grub_ofconsole_term): Split into ...
38238 (grub_ofconsole_term_input): ... this, and ...
38239 (grub_ofconsole_term_output): ... this. Update all users.
38240 * term/i386/pc/serial.c (grub_serial_term): Split into ...
38241 (grub_serial_term_input): ... this, and ...
38242 (grub_serial_term_output): ... this. Update all users.
38243 * term/i386/pc/console.c (grub_console_term): Split into ...
38244 (grub_console_term_input): ... this, and ...
38245 (grub_console_term_output): ... this. Update all users.
38246 (grub_console_term_input): Only enable it on PC/BIOS platform.
38247 (grub_console_init): Remove grub_keyboard_controller_init() call.
38248
38249 Migrate input terminals to new API:
38250
38251 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
38252 `i386' and `i386/pc' to enable build on x86_64 (this driver is
38253 i386-specific anyway).
38254 (grub_console_checkkey): Rename to ...
38255 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
38256 users.
38257 (grub_keyboard_controller_orig): New variable.
38258 (grub_console_getkey): Rename to ...
38259 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
38260 users.
38261 (grub_keyboard_controller_init): Static-ize. Save original
38262 controller value so that it can be restored ...
38263 (grub_keyboard_controller_fini): ... here (new function).
38264 (grub_at_keyboard_term): New structure.
38265 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
38266 functions.
38267
38268 Migrate output terminals to new API:
38269
38270 * term/i386/pc/vga.c (grub_vga_term): Change type to
38271 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38272 members. Update all users.
38273 * term/gfxterm.c (grub_video_term): Change type to
38274 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38275 members. Update all users.
38276 * include/grub/i386/pc/console.h (grub_console_checkkey)
38277 (grub_console_getkey): Do not export (no longer needed by gfxterm,
38278 etc).
38279
38280 Migrate `terminal' command and userland tools to new API:
38281
38282 * commands/terminal.c (grub_cmd_terminal): Split into ...
38283 (grub_cmd_terminal_input): ... this, and ...
38284 (grub_cmd_terminal_output): ... this.
38285 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
38286 `terminal_input' and `terminal_output'.
38287 * util/grub.d/00_header.in: Adjust `terminal' calls to new
38288 `terminal_input' / `terminal_output' API.
38289 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
38290 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
38291 provided ${GRUB_TERMINAL}, convert it).
38292
96e5d876 382932008-11-04 Robert Millan <rmh@aybabtu.com>
38294
38295 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
38296 for FreeBSD.
38297 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
38298
556f3775 382992008-11-03 Bean <bean123ch@gmail.com>
38300
38301 * kern/elf.c (grub_elf32_load): Revert to previous code.
38302 (grub_elf64_load): Likewise.
38303
38304 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
38305
926b9823 383062008-11-01 Robert Millan <rmh@aybabtu.com>
38307
38308 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
38309 (TARGET_CPPFLAGS): Likewise.
38310 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
38311
1432e958 383122008-11-01 Carles Pina i Estany <carles@pina.cat>
38313
38314 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
38315
dba3f844 383162008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 38317
38318 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
38319 addition of objects until the code is not going to be able to fail.
38320
dba3f844 383212008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 38322
38323 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
38324 (add a missing NULL check, and correct them by moving the pointer
38325 operations after the actual check).
38326
7ab28c21 383272008-10-29 Robert Millan <rmh@aybabtu.com>
38328
38329 * util/i386/pc/grub-install.in: Handle empty string as output from
38330 make_system_path_relative_to_its_root().
38331
1b7748eb 383322008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
38333
38334 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
38335 circular metadata worst case scenario. If the metadata is circular
38336 then copy the wrap in place.
38337 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
38338 project lib/format_text/layout.h
38339 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
38340
c9618ab2 383412008-10-03 Felix Zielcke <fzielcke@z-51.de>
38342
7a36edca 38343 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 38344
bf981c62 383452008-10-03 Felix Zielcke <fzielcke@z-51.de>
38346
38347 * util/update-grub_lib.in: Mention filename in warning message.
38348
6d994591 383492008-09-29 Felix Zielcke <fzielcke@z-51.de>
38350
38351 * NEWS: Update for rename of update-grub to grub-mkconfig.
38352
18ade780 383532008-09-29 Felix Zielcke <fzielcke@z-51.de>
38354
38355 * util/update-grub_lib.in: Copy to ...
38356 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 38357 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 38358 * util/update-grub.in: Rename to ...
38359 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
38360 option. Add `--output' option to allow users to specify the generated
38361 configuration file. Default to stdout.
38362 (update_grub_dir): Rename to ...
38363 (grub_mkconfig_dir): ... this.
38364 (grub_cfg): Default to an empty string.
38365 * conf/common.rmk (update-grub): Rename to ...
38366 (grub-mkconfig): ... this.
38367 (update-grub_lib): Copy to ...
38368 (grub-mkconfig_lib): ... this.
38369 (update-grub_SCRIPTS): Copy to ...
38370 (grub-mkconfig_SCRIPTS): ... this. Update all users.
38371 (update-grub_DATA): Rename to ...
38372 (grub-mkconfig_DATA): ... this.
38373
556ce6ac 383742008-09-28 Robert Millan <rmh@aybabtu.com>
38375
38376 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
38377 to `modified'. Add the real `created' field.
38378 (grub_iso9660_uuid): Use `modified' rather than `created' for
38379 constructing the UUID.
38380
383812008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 38382
38383 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
38384 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
38385
92274e85 383862008-09-28 Bean <bean123ch@gmail.com>
38387
38388 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
38389 Thanks to Christian Franke for finding this bug.
38390
add6f17a 383912008-09-25 Robert Millan <rmh@aybabtu.com>
38392
38393 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
38394 instances of grub_util_get_disk_name() (see previous commit).
38395
d2a367b8 383962008-09-25 Robert Millan <rmh@aybabtu.com>
38397
38398 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
38399 `util/i386/get_disk_name.c'.
38400 * conf/i386-efi.rmk: Likewise.
38401 * conf/x86_64-efi.rmk: Likewise.
38402 * conf/i386-coreboot.rmk: Likewise.
38403 * conf/i386-ieee1275.rmk: Likewise.
38404 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
38405 `util/ieee1275/get_disk_name.c'.
38406 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
38407 * util/ieee1275/get_disk_name.c: Remove file.
38408 * util/i386/get_disk_name.c: Remove file.
38409 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
38410 "hd%d" for device.map entries, rather than using
38411 grub_util_get_disk_name().
38412
81a06771 384132008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 38414
38415 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
38416 warning.
38417 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
38418
5a004279 384192008-09-24 Carles Pina i Estany <carles@pina.cat>
38420
38421 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
38422 Changed to 0x5100.
38423 (GRUB_TERM_PPAGE): Changed to 0x4900.
38424
397093d3 384252008-09-24 Robert Millan <rmh@aybabtu.com>
38426
38427 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
38428 macros (they were i386-pc specific).
38429 * include/grub/sparc64/ieee1275/console.h: Likewise.
38430 * include/grub/efi/console.h: Likewise.
38431
a91b6c7c 384322008-09-22 Bean <bean123ch@gmail.com>
38433
38434 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
38435 resident and in attribute list.
38436
38437 * include/grub/ntfs.h (BMP_LEN): Removed.
38438
c40fd116 384392008-09-22 Bean <bean123ch@gmail.com>
38440
81a06771 38441 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 38442 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
38443
38444 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
38445 error occurs, as grub_disk_open will call grub_disk_close, which will
38446 call p->close (scsi).
38447
81a06771 384482008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 38449
38450 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
38451 (AC_PREREQ): Bumped to 2.59.
38452 (AC_TRY_COMPILE): Replace obsolete macro with ...
38453 (AC_COMPILE_IFELSE): ... this.
38454 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
38455 (AC_LINK_IFELSE): ... this.
38456
5dc43410 384572008-09-21 Felix Zielcke <fzielcke@z-51.de>
38458
38459 * autogen.sh: Add a call to `gendistlist.sh'.
38460
9035dce4 384612008-09-19 Christian Franke <franke@computer.org>
38462
38463 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
38464 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
38465 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
38466 Export __enable_execute_stack() to modules.
38467 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
38468 New function.
38469
7fd75377 384702008-09-09 Felix Zielcke <fzielcke@z-51.de>
38471
040030b3 38472 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
38473 Sort the list.
38474
384752008-09-09 Felix Zielcke <fzielcke@z-51.de>
38476
38477 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 38478 #include <grub/util/hostdisk.h>.
38479
89d5ffcf 384802008-09-08 Robert Millan <rmh@aybabtu.com>
38481
38482 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
38483 segments when their filesz is zero (grub_file_read() interprets
81a06771 38484 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 38485 Use `lowest_segment' rather than 0 for calculating the current
38486 segment load address.
38487
40da438f 384882008-09-08 Robert Millan <rmh@aybabtu.com>
38489
38490 * util/hostdisk.c (open_device): Replace a grub_util_info() call
38491 with grub_dprintf("hostdisk", ...), as it was so verbose that it
38492 clobbered useful information.
38493
ddbf5556 384942008-09-08 Robert Millan <rmh@aybabtu.com>
38495
38496 * include/grub/util/biosdisk.h: Move to ...
38497 * include/grub/util/hostdisk.h: ... here. Update all users.
38498 * util/biosdisk.c: Move to ...
38499 * util/hostdisk.c: ... here. Update all users.
38500
783d0f48 385012008-09-07 Robert Millan <rmh@aybabtu.com>
38502
38503 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
38504 variables.
38505 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
38506 and length can be stored directly in the `mbi->mmap_addr' and
38507 `mbi->mmap_length' struct fields.
38508
548e2ea5 385092008-09-07 Robert Millan <rmh@aybabtu.com>
38510
38511 * conf/i386.rmk: New file. Provides declaration for building
38512 `cpuid.mod'.
38513 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
38514 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
38515 variables.
38516 Include `conf/i386.mk'.
38517 * conf/i386-efi.rmk: Likewise.
38518 * conf/x86_64-efi.rmk: Likewise.
38519 * conf/i386-coreboot.rmk: Likewise.
38520 * conf/i386-ieee1275.rmk: Likewise.
38521
0ea85a37 385222008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
38523
38524 Based on patch created by Colin D Bennett <colin@gibibit.com>.
38525 Adds optimization support for BGR based modes.
38526
38527 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
38528 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38529 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38530 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38531 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38532 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38533 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38534 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38535 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38536 (grub_video_i386_vbeblit_index_index): Likewise.
38537 (grub_video_i386_vbeblit_replace_directN): Added.
38538 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38539 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38540 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38541 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38542 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38543 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 38544 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 38545 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38546 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38547 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38548 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38549 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38550 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
38551
38552 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
38553 (grub_video_i386_vbefill_R8G8B8): Likewise.
38554 (grub_video_i386_vbefill_index): Likewise.
38555 (grub_video_i386_vbefill_direct32): Added.
38556 (grub_video_i386_vbefill_direct24): Likewise.
38557 (grub_video_i386_vbefill_direct16): Likewise.
38558 (grub_video_i386_vbefill_direct8): Likewise.
38559
81a06771 38560 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 38561 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
38562 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
38563 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
38564 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
38565 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 38566
0ea85a37 38567 * video/video.c (grub_video_get_blit_format): Updated to use new
38568 blit formats. Added handling for 16 bit color modes.
81a06771 38569
38570 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 38571 fillers.
38572 (common_blitter): Updated to use new blitters.
38573
38574 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
38575 Removed.
38576 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38577 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38578 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38579 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38580 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38581 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38582 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38583 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38584 (grub_video_i386_vbeblit_index_index): Likewise.
38585 (grub_video_i386_vbeblit_replace_directN): Added.
38586 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38587 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38588 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38589 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38590 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38591 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
38592 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
38593 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38594 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38595 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38596 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38597 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38598 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 38599
0ea85a37 38600 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
38601 (grub_video_i386_vbefill_R8G8B8): Likewise.
38602 (grub_video_i386_vbefill_index): Likewise.
38603 (grub_video_i386_vbefill_direct32): Added.
38604 (grub_video_i386_vbefill_direct24): Likewise.
38605 (grub_video_i386_vbefill_direct16): Likewise.
38606 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 38607
0ea85a37 38608 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
38609 types.
81a06771 38610
0ea85a37 38611 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
38612 types.
81a06771 38613
0ea85a37 38614 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
38615 blitter types.
81a06771 38616
0ea85a37 38617 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
38618 types.
38619
e8a83df6 386202008-09-06 Felix Zielcke <fzielcke@z-51.de>
38621
38622 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
38623 RAID level 1.
38624
6bcd8ee5 386252008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 38626
6bcd8ee5 38627 * fs/iso9660.c (grub_iso9660_date): New structure.
38628 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
38629 (grub_iso9660_uuid): New function.
c375ae58 38630
59261157 386312008-09-05 Bean <bean123ch@gmail.com>
38632
38633 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
38634
38635 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
38636 insensitive bit for names in Win32 and Win32 & DOS namespace.
38637
38638 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
38639
38640 * include/grub/types.h (LONG_MAX): Likewise.
38641
58b6645a 386422008-09-04 Felix Zielcke <fzielcke@z-51.de>
38643
4ee55921 38644 * util/getroot.c: Include <config.h>.
38645 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
38646 add support for /dev/md/N devices and handle LVM double dash escaping.
38647
386482008-09-04 Felix Zielcke <fzielcke@z-51.de>
38649
38650 * config.guess: Update to latest version from config git.
38651 * config.sub: Likewise.
58b6645a 38652
9124f65d 386532008-09-03 Robert Millan <rmh@aybabtu.com>
38654
38655 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
38656 `disk->total_sectors'.
38657
81a06771 386582008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 38659
38660 * include/grub/normal.h: Fixed incorrect comment for
38661 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
38662
81a06771 386632008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 38664
38665 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
38666 values with defines.
38667
38668 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
38669 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
38670 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
38671 (GRUB_VBE_MODEATTR_COLOR): Likewise.
38672 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
38673 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
38674 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
38675 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
38676 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
38677 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
38678 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
38679 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
38680 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
38681 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
38682 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
38683 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
38684 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
38685 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
38686 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
38687
93d5cbf8 386882008-08-31 Robert Millan <rmh@aybabtu.com>
38689
38690 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
38691 declaration.
38692 (grub_multiboot): Fix a few warnings.
38693
21751d50 386942008-08-31 Robert Millan <rmh@aybabtu.com>
38695
38696 * loader/i386/pc/multiboot.c: Update comment not to say that
38697 boot_device support is unimplemented.
38698
e27a75c5 386992008-08-31 Robert Millan <rmh@aybabtu.com>
38700
38701 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
38702 or memory map support are unimplemented.
38703
81a06771 387042008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 38705
38706 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
38707
81a06771 387082008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 38709
38710 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
38711 total video memory in 'vbeinfo' output; show color format details for
38712 each video mode.
38713
7c5d8d95 387142008-08-30 Pavel Roskin <proski@gnu.org>
38715
38716 * util/genmoddep.c: Remove for real this time.
38717 * DISTLIST: Remove util/genmoddep.c.
38718
4cebd25a 387192008-08-30 Robert Millan <rmh@aybabtu.com>
38720
38721 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
38722 as required by Multiboot spec (it was already 4-byte aligned, but
38723 only by chance).
38724
b497a269 387252008-08-29 Pavel Roskin <proski@gnu.org>
38726
e3925185 38727 * kern/powerpc/ieee1275/crt0.S: Rename to ...
38728 * kern/powerpc/ieee1275/startup.S: ... this.
38729 * conf/powerpc-ieee1275.rmk: Adjust for the above.
38730 * DISTLIST: Likewise.
38731
b497a269 38732 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
38733 grub/cpu/kernel.h. Add start label for consistency with other
38734 platforms. Add grub_prefix immediately after start. Add jump
38735 to the code after grub_prefix.
38736 * include/grub/powerpc/kernel.h: Provide valid values for
38737 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
38738
6e5a42fe 387392008-08-29 Bean <bean123ch@gmail.com>
38740
38741 * configure.ac: Change host_os to cygwin for mingw.
38742 (asprintf): New check for function.
38743
38744 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
38745 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
38746
38747 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 38748 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 38749 sync, sleep and grub_util_get_disk_size for mingw.
38750
38751 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
38752 to get size in mingw.
38753 (open_device): Use flag O_BINARY if it's defined.
38754 (find_root_device): Add dummy code for mingw.
38755
38756 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
38757 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
38758 (get_scsi_disk_name): Return 0 for mingw.
38759
38760 * util/hostfs.c: #include <grub/util/misc.h>.
38761 (grub_hostfs_open): Use "rb" flag to open file, use
38762 grub_util_get_disk_size to get disk size for mingw.
38763
38764 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
38765 (asprintf): New function if HAVE_ASPRINTF is not set.
38766 (sync): New function for mingw.
38767 (sleep): Likewise.
38768 (grub_util_get_disk_size): Likewise.
38769
ab3f2673 387702008-08-28 Pavel Roskin <proski@gnu.org>
38771
38772 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38773 kern/time.c.
38774
1c282483 387752008-08-28 Robert Millan <rmh@aybabtu.com>
38776
38777 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
38778
678e849c 387792008-08-28 Robert Millan <rmh@aybabtu.com>
38780
38781 Change find_grub_drive() syntax so it doesn't prevent it from
38782 detecting NULL names as errors.
38783
38784 * util/biosdisk.c (find_grub_drive): Move free slot search code
38785 from here ...
38786 (find_free_slot): ... to here.
38787 (read_device_map): Use find_free_slot() to search for free slots.
38788
965c75ca 387892008-08-27 Marco Gerards <marco@gnu.org>
38790
38791 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
38792 (scsi_mod_SOURCES): New variable.
38793 (scsi_mod_CFLAGS): Likewise
38794 (scsi_mod_LDFLAGS): Likewise.
38795
38796 * disk/scsi.c: New file.
38797
38798 * include/grub/scsi.h: Likewise.
38799
38800 * include/grub/scsicmd.h: Likewise.
38801
38802 * disk/ata.c: Include <grub/scsi.h>.
38803 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
38804 instead.
38805 (grub_ata_iterate): Skip ATAPI devices.
38806 (grub_ata_open): Only handle ATAPI devices.
38807 (struct grub_atapi_read): Removed.
38808 (grub_atapi_readsector): Likewise.
38809 (grub_ata_read): No longer handle ATAPI devices.
38810 (grub_ata_write): Likewise.
38811 (grub_atapi_iterate): New function.
38812 (grub_atapi_read): Likewise.
38813 (grub_atapi_write): Likewise.
38814 (grub_atapi_open): Likewise.
38815 (grub_atapi_close): Likewise.
38816 (grub_atapi_dev): New variable.
38817 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
38818 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
38819
38820 * include/grub/disk.h (enum grub_disk_dev_id): Add
38821 `GRUB_DISK_DEVICE_SCSI_ID'.
38822
c07ae501 388232008-08-26 Robert Millan <rmh@aybabtu.com>
38824
38825 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
38826 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
38827 descriptive.
38828
5ed20adc 388292008-08-23 Bean <bean123ch@gmail.com>
38830
38831 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
38832 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
38833 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
38834 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
38835 dm_nv.mod.
38836 (raid5rec_mod_SOURCES): New macro.
38837 (raid5rec_mod_CFLAGS): Likewise.
38838 (raid5rec_mod_LDFLAGS): Likewise.
38839 (raid6rec_mod_SOURCES): Likewise.
38840 (raid6rec_mod_CFLAGS): Likewise.
38841 (raid6rec_mod_LDFLAGS): Likewise.
38842 (mdraid_mod_SOURCES): Likewise.
38843 (mdraid_mod_CFLAGS): Likewise.
38844 (mdraid_mod_LDFLAGS): Likewise.
38845 (dm_nv_mod_SOURCES): Likewise.
38846 (dm_nv_mod_CFLAGS): Likewise.
38847 (dm_nv_mod_LDFLAGS): Likewise.
38848
38849 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
38850 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
38851 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
38852
38853 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
38854 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
38855
38856 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38857
38858 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38859
38860 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38861
38862 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38863
38864 * disk/raid5_recover.c: New file.
38865
38866 * disk/raid6_recover.c: Likewise.
38867
38868 * disk/mdraid_linux.c: Likewise.
38869
38870 * disk/dmraid_nvidia.c: Likewise.
38871
38872 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
38873 ULONG_MAX.
38874
38875 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
38876 calculate the size of raid device.
38877 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
38878 different layout of raid5.
38879 (grub_raid_scan_device): Remove code specific to mdraid.
38880 (grub_raid_list): New variable.
38881 (free_array): New function.
38882 (grub_raid_register): Likewise.
38883 (grub_raid_unregister): Likewise.
38884 (grub_raid_rescan): Likewise.
38885 (GRUB_MOD_INIT): Don't iterate device here.
38886 (GRUB_MOD_FINI): Use free_array to release resource.
38887
38888 * include/grub/raid.h: Remove macro and structure specific to mdraid.
38889 (grub_raid5_recover_func_t): New function variable type.
38890 (grub_raid6_recover_func_t): Likewise.
38891 (grub_raid5_recover_func): New variable.
38892 (grub_raid6_recover_func): Likewise.
38893 (grub_raid_register): New function.
38894 (grub_raid_unregister): Likewise.
38895 (grub_raid_rescan): Likewise.
38896 (grub_raid_block_xor): Likewise.
38897
38898 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
38899 (CMD_CRC): New macro.
38900 (part): Removed.
38901 (read_file): Handle device as well as file.
38902 (cmd_crc): New function.
38903 (fstest): Handle multiple disks.
38904 (options): Remove part, raw and long, add root and diskcount.
38905 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 38906 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 38907 add handling for the new options, support multiple disks.
38908
38909 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
38910
29c18915 389112008-08-23 Bean <bean123ch@gmail.com>
38912
38913 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
38914
38915 * genfslist.sh: Ignore kernel.mod.
38916
38917 * genpartmaplist.sh: Likewise.
38918
8415f261 389192008-08-23 Robert Millan <rmh@aybabtu.com>
38920
38921 * util/getroot.c (find_root_device): Skip anything that starts with
38922 a dot, not just directories. This avoids things like /dev/.tmp.md0.
38923
d5a7dc5b 389242008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 38925
d5a7dc5b 38926 * util/update-grub.in (GRUB_GFXMODE): Export variable.
38927 * util/grub.d/00_header.in: Allow the administrator to change default
38928 gfxmode via ${GRUB_GFXMODE}.
38929
380cfbb4 389302008-08-21 Felix Zielcke <fzielcke@z-51.de>
38931
38932 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
38933
c9baafe7 389342008-08-21 Robert Millan <rmh@aybabtu.com>
38935
38936 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
38937 loader.
38938 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
38939 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
38940
e290bef2 389412008-08-20 Carles Pina i Estany <carles@pina.cat>
38942
38943 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
38944 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
38945
f9dbfc96 389462008-08-19 Robert Millan <rmh@aybabtu.com>
38947
38948 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
38949 (struct grub_virtual_screen): Remove `cursor_color'.
38950 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
38951 initialization.
38952 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
38953
dd6bd6ab 389542008-08-18 Robert Millan <rmh@aybabtu.com>
38955
38956 Unify (identical) linux_normal.c files.
38957 * loader/i386/efi/linux_normal.c: Move from here ...
38958 * loader/linux_normal.c: ... to here. Update all users.
38959 * loader/i386/pc/linux_normal.c: Delete. Update all users.
38960 * loader/i386/ieee1275/linux_normal.c: Likewise.
38961
7f42f83e 389622008-08-18 Robert Millan <rmh@aybabtu.com>
38963
38964 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
38965 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
38966 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
38967 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
38968 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
38969 New macros.
38970 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
38971 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
38972 (GRUB_LINUX_CL_END_OFFSET): ... to here.
38973 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
38974 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
38975 (GRUB_EFI_CL_END_OFFSET): Rename to ...
38976 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
38977 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
38978 Initialize `params->video_cursor_x' and `params->video_cursor_y'
38979 portably using grub_getxy().
38980 Replace `-EFI' with `-bzImage' in boot message.
38981
38487ddb 389822008-08-17 Robert Millan <rmh@aybabtu.com>
38983
38984 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
38985
deceb3ec 389862008-08-17 Robert Millan <rmh@aybabtu.com>
38987
38988 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
38989
38990 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
38991 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
38992 (grub_machine_mmap_iterate): New function declaration.
38993 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
38994 structure.
38995 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
38996 macros.
38997
38998 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
38999 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
39000 Move e820 parsing from here ...
39001 * kern/i386/pc/mmap.c: New file.
39002 (grub_machine_mmap_iterate): ... to here.
39003
39004 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
39005 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
39006 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
39007 (grub_available_iterate): Redeclare to return `void', and redeclare
39008 its hook to use grub_uint64_t as addr and size parameters, and rename
39009 to ...
39010 (grub_machine_mmap_iterate): ... this. Update all users.
39011
39012 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
39013 to make it more readable. Rename to ...
39014 (grub_machine_mmap_iterate): ... this.
39015
39016 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
39017 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
39018 (grub_multiboot): Allocate an extra region after the payload, and fill
39019 it with a Multiboot memory map. Adjust a.out loader to calculate size
39020 with the extra space.
39021 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
39022 with the extra space.
39023
f8aa0f43 390242008-08-17 Carles Pina i Estany <carles@pina.cat>
39025
9807deb9 39026 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 39027
605f5bb6 390282008-08-17 Felix Zielcke <fzielcke@z-51.de>
39029
39030 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
39031 mdate-sh to the list `find' searches for.
39032 * DISTLIST: Regenerated.
39033
210db6c6 390342008-08-16 Felix Zielcke <fzielcke@z-51.de>
39035
39036 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
39037 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 39038 genmoddep.awk, gensymlist.sh.in.
39039 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 39040 * DISTLIST: Regenerated.
48cdbfd4 39041 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 39042
1082b929 390432008-08-16 Robert Millan <rmh@aybabtu.com>
39044
39045 * disk/raid.c (grub_raid_init): Handle/report errors set by
39046 grub_device_iterate().
39047 * disk/lvm.c (grub_lvm_init): Likewise.
39048
42ce5170 390492008-08-15 Bean <bean123ch@gmail.com>
39050
39051 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39052 and datehook.mod.
39053 (datetime_mod_SOURCES): New macro.
39054 (datetime_mod_CFLAGS): Likewise.
39055 (datetime_mod_LDFLAGS): Likewise.
39056 (date_mod_SOURCES): Likewise.
39057 (date_mod_CFLAGS): Likewise.
39058 (date_mod_LDFLAGS): Likewise.
39059 (datehook_mod_SOURCES): Likewise.
39060 (datehook_mod_CFLAGS): Likewise.
39061 (datehook_mod_LDFLAGS): Likewise.
39062
39063 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39064 and datehook.mod.
39065 (datetime_mod_SOURCES): New macro.
39066 (datetime_mod_CFLAGS): Likewise.
39067 (datetime_mod_LDFLAGS): Likewise.
39068 (date_mod_SOURCES): Likewise.
39069 (date_mod_CFLAGS): Likewise.
39070 (date_mod_LDFLAGS): Likewise.
39071 (datehook_mod_SOURCES): Likewise.
39072 (datehook_mod_CFLAGS): Likewise.
39073 (datehook_mod_LDFLAGS): Likewise.
39074
39075 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39076 and datehook.mod.
39077 (datetime_mod_SOURCES): New macro.
39078 (datetime_mod_CFLAGS): Likewise.
39079 (datetime_mod_LDFLAGS): Likewise.
39080 (date_mod_SOURCES): Likewise.
39081 (date_mod_CFLAGS): Likewise.
39082 (date_mod_LDFLAGS): Likewise.
39083 (datehook_mod_SOURCES): Likewise.
39084 (datehook_mod_CFLAGS): Likewise.
39085 (datehook_mod_LDFLAGS): Likewise.
39086
39087 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39088 and datehook.mod.
39089 (datetime_mod_SOURCES): New macro.
39090 (datetime_mod_CFLAGS): Likewise.
39091 (datetime_mod_LDFLAGS): Likewise.
39092 (date_mod_SOURCES): Likewise.
39093 (date_mod_CFLAGS): Likewise.
39094 (date_mod_LDFLAGS): Likewise.
39095 (datehook_mod_SOURCES): Likewise.
39096 (datehook_mod_CFLAGS): Likewise.
39097 (datehook_mod_LDFLAGS): Likewise.
39098
39099 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39100 and datehook.mod.
39101 (datetime_mod_SOURCES): New macro.
39102 (datetime_mod_CFLAGS): Likewise.
39103 (datetime_mod_LDFLAGS): Likewise.
39104 (date_mod_SOURCES): Likewise.
39105 (date_mod_CFLAGS): Likewise.
39106 (date_mod_LDFLAGS): Likewise.
39107 (datehook_mod_SOURCES): Likewise.
39108 (datehook_mod_CFLAGS): Likewise.
39109 (datehook_mod_LDFLAGS): Likewise.
39110
39111 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
39112
39113 * commands/date.c: New file.
39114
39115 * hook/datehook.c: Likewise.
39116
39117 * include/grub/lib/datetime.h: Likewise.
39118
39119 * include/grub/i386/cmos.h: Likewise.
39120
39121 * lib/datetime.c: Likewise.
39122
39123 * lib/i386/datetime.c: Likewise.
39124
39125 * lib/efi/datetime.c: Likewise.
39126
0e9242da 391272008-08-14 Robert Millan <rmh@aybabtu.com>
39128
39129 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
39130 (grub_mkelfimage_SOURCES): New variable.
39131 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
39132
39133 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
39134 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
39135 * conf/powerpc-ieee1275.rmk: Likewise.
39136 * conf/i386-ieee1275.rmk: Likewise.
39137
39138 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
39139 * kern/i386/coreboot/init.c: Likewise.
39140
39141 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
39142 with `<grub/cpu/kernel.h>'.
39143 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
39144 to ...
39145 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
39146 * kern/i386/coreboot/startup.S: Likewise.
39147
39148 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
39149 (GRUB_MOD_GAP): Remove.
39150 * include/grub/powerpc/kernel.h: New file.
39151 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
39152 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39153 * include/grub/i386/kernel.h: New file.
39154 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
39155 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
39156 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39157
39158 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
39159 `grub-mkelfimage'.
39160 Use --directory when invoking grub_mkimage.
39161
39162 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
39163 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
39164 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
39165 and GRUB_KERNEL_CPU_PREFIX.
39166
b86408f8 391672008-08-14 Felix Zielcke <fzielcke@z-51.de>
39168
d5e619ca 39169 * include/grub/err.h (grub_err_printf): New function prototype.
39170 * util/misc.c (grub_err_printf): New function.
39171 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
39172 grub_printf.
39173 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 39174
7161f0e0 391752008-08-13 Robert Millan <rmh@aybabtu.com>
39176
39177 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
39178
a1967522 391792008-08-13 Robert Millan <rmh@aybabtu.com>
39180
39181 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
39182 boot entry.
39183
371458b5 391842008-08-12 Robert Millan <rmh@aybabtu.com>
39185
39186 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
39187 of the relocation code from here ...
39188 (grub_multiboot): ... to here.
39189 (forward_relocator, backward_relocator): Move from here ...
39190 * kern/i386/loader.S (grub_multiboot_forward_relocator)
39191 (grub_multiboot_backward_relocator): ... to here.
39192 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
39193 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
39194 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
39195 (grub_multiboot_forward_relocator_end)
39196 (grub_multiboot_backward_relocator)
39197 (grub_multiboot_backward_relocator_end): New variables.
39198
05f9452b 391992008-08-12 Bean <bean123ch@gmail.com>
39200
39201 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
39202
20024ab0 392032008-08-11 Robert Millan <rmh@aybabtu.com>
39204
39205 * kern/i386/linuxbios/startup.S: Move from here ...
39206 * kern/i386/coreboot/startup.S: ... to here.
39207
39208 * kern/i386/linuxbios/init.c: Move from here ...
39209 * kern/i386/coreboot/init.c: ... to here.
39210
39211 * kern/i386/linuxbios/table.c: Move from here ...
39212 * kern/i386/coreboot/mmap.c: ... to here.
39213
39214 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
39215
e352e9cd 392162008-08-11 Robert Millan <rmh@aybabtu.com>
39217
39218 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
39219 errors. Leave it to the upper layer to handle them.
39220
2d05bc6a 392212008-08-09 Christian Franke <franke@computer.org>
39222
39223 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
39224 * conf/common.rmk: Install `grub-pe2elf' only if requested.
39225 Install `grub.d/10_windows' only on Cygwin.
39226 * configure.ac: Add subst of `target_os'.
39227 Check `target_os' also before setting TARGET_OBJ2ELF.
39228 Add `--enable-grub-pe2elf'.
39229
042bd419 392302008-08-08 Robert Millan <rmh@aybabtu.com>
39231
39232 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39233 (grub_last_time): Change type to grub_uint64_t.
39234 (grub_disk_open): Migrate code from to using grub_get_time_ms().
39235 (grub_disk_close): Likewise.
39236
39237 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39238 (run_menu): Migrate code from to using grub_get_time_ms().
39239
39240 * util/misc.c (grub_get_time_ms): New function.
39241
7f280db5 392422008-08-08 Marco Gerards <marco@gnu.org>
39243
39244 * disk/ata.c (grub_ata_regget): Change return type to
39245 `grub_uint8_t'.
39246 (grub_ata_regget2): Likewise.
39247 (grub_ata_wait_status): New function.
39248 (grub_ata_wait_busy): Removed function, updated all users to use
39249 `grub_ata_wait_status'.
39250 (grub_ata_wait_drq): Likewise.
39251 (grub_ata_cmd): New function.
39252 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
39253 error handling.
39254 (grub_ata_pio_write): Add error handling.
39255 (grub_atapi_identify): Likewise.
39256 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
39257 handling.
39258 (grub_ata_identify): Use `grub_ata_cmd' and improve error
39259 handling. Actually use the detected registers. Reorder the
39260 detection logic such that it is easier to read.
39261 (grub_ata_pciinit): Do not assign the same ID to each controller.
39262 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
39263 handling.
39264 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
39265
39266 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
39267
1fbc5e66 392682008-08-08 Marco Gerards <marco@gnu.org>
39269
39270 * NEWS: Update.
39271
819ce6c0 392722008-08-07 Bean <bean123ch@gmail.com>
39273
39274 * include/grub/x86_64/pci.h: New file.
39275
5c41d44d 392762008-08-07 Christian Franke <franke@computer.org>
39277
39278 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
39279 (TIMER2_GATE): Likewise.
39280 (grub_pit_wait): Add enable/disable of the timer2 gate
39281 bit of port 0x61. This fixes a possible infinite loop.
39282
5ebc275d 392832008-08-07 Bean <bean123ch@gmail.com>
39284
39285 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
39286 kern/i386/tsc.c and kern/i386/pit.c.
39287
39288 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
39289 x86_64 platform.
39290
39291 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
39292 <grub/i386/tsc.h>.
39293
39294 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
39295
e383b3d0 392962008-08-07 Bean <bean123ch@gmail.com>
39297
39298 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
39299
39300 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
39301
39302 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
39303 multiple inclusion. Add #include <grub/types.h>.
39304
1cbb58ac 393052008-08-06 Christian Franke <franke@computer.org>
39306
39307 * conf/common.rmk: Build and install `10_windows'.
39308 * util/grub.d/10_windows.in: New script.
39309
337f5a1e 393102008-08-06 Pavel Roskin <proski@gnu.org>
39311
39312 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
39313
057bc4ac 393142008-08-06 Robert Millan <rmh@aybabtu.com>
39315
39316 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
39317 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
39318
2b99f123 393192008-08-06 Bean <bean123ch@gmail.com>
39320
39321 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
39322 (grub_pxefs_fs_int): Remove dummy definition.
39323 (grub_pxefs_open): Use data->block_size to store the current block
39324 size setting.
39325 (grub_pxefs_read): Use block size stored in data->block_size. As the
39326 value of grub_pxe_blksize can be changed after the file is opened.
39327
9f0234cb 393282008-08-06 Bean <bean123ch@gmail.com>
39329
39330 * fs/i386/pc/pxe.c (curr_file): new variable.
39331 (grub_pxefs_open): Simply the handling of pxe file system. Don't
39332 require the dummy internal file system anymore.
39333 (grub_pxefs_read): Removed.
39334 (grub_pxefs_close): Likewise.
39335 (grub_pxefs_fs_int): Likewise.
39336 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
39337 connection when we switch file.
39338 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
39339
a55d42e0 393402008-08-06 Robert Millan <rmh@aybabtu.com>
39341
39342 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
39343 `halt.mod'.
39344 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
39345 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
39346
39347 * kern/i386/halt.c: New file.
39348 * kern/i386/reboot.c: Likewise.
39349 * include/grub/i386/reboot.h: Likewise.
39350 * include/grub/i386/halt.h: Likewise.
39351
39352 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
39353 Include `<grub/cpu/halt.h>'.
39354 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
39355 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
39356
39357 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
39358 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
39359 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
39360 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
39361 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
39362 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
39363 from here ...
39364 * include/grub/i386/at_keyboard.h: ... to here.
39365
24371d26 393662008-08-05 Robert Millan <rmh@aybabtu.com>
39367
39368 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
39369 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
39370 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
39371 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39372 `kern/generic/millisleep.c'.
39373
39374 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
39375 instead of grub_get_rtc().
39376 (grub_tsc_init): Initialize `tsc_boot_time'.
39377
39378 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
39379 (grub_machine_init): Use grub_tsc_init() rather than
39380 installing an RTC-based handler via grub_install_get_time_ms().
39381
39382 * kern/i386/pit.c: New file.
39383 * include/grub/i386/pit.h: Likewise.
39384
9e7007b3 393852008-08-05 Bean <bean123ch@gmail.com>
39386
39387 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
39388
39389 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
39390 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
39391 (pxe_mod_SOURCES): New macro.
39392 (pxe_mod_CFLAGS): Likewise.
39393 (pxe_mod_LDFLAGS): Likewise.
39394 (pxecmd_mod_SOURCES): Likewise.
39395 (pxecmd_mod_CFLAGS): Likewise.
39396 (pxecmd_mod_LDFLAGS): Likewise.
39397
39398 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
39399 (grub_pxe_call): Likewise.
39400
39401 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
39402
39403 * commands/i386/pc/pxecmd.c: New file.
39404
9f0234cb 39405 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 39406
39407 * include/grub/i386/pc/pxe.h: Likewise.
39408
6977d49f 394092008-08-05 Bean <bean123ch@gmail.com>
39410
39411 * util/console.c (grub_console_cur_color): New variable.
39412 (grub_console_standard_color): Likewise.
39413 (grub_console_normal_color): Likewise.
39414 (grub_console_highlight_color): Likewise.
39415 (color_map): Likewise.
39416 (use_color): Likewise.
39417 (NUM_COLORS): New macro.
39418 (grub_ncurses_setcolorstate): Handle color properly.
39419 (grub_ncurses_setcolor): Don't change color here, just remember the
39420 settings, color will be set in grub_ncurses_setcolorstate.
39421 (grub_ncurses_getcolor): New function.
39422 (grub_ncurses_init): Initialize color pairs.
39423 (grub_ncurses_term): New member grub_ncurses_getcolor.
39424
9c2ff3ee 394252008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 39426
9c2ff3ee 39427 High resolution timer support. Implemented for x86 CPUs using TSC.
39428 Extracted generic grub_millisleep() so it's linked in only as needed.
39429 This requires a Pentium compatible CPU; if the RDTSC instruction is
39430 not supported, then it falls back on the generic grub_get_time_ms()
39431 implementation that uses the machine's RTC.
39432
39433 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
39434 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39435 `kern/generic/millisleep.c'.
39436
39437 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
39438 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
39439
39440 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
39441 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
39442
39443 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39444
39445 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39446 `kern/generic/millisleep.c'.
39447
39448 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39449
39450 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
39451
39452 * kern/generic/rtc_get_time_ms.c: New file.
39453
39454 * kern/generic/millisleep.c: New file.
337f5a1e 39455
9c2ff3ee 39456 * kern/misc.c: Don't include
39457 <kern/time.h> anymore.
39458 (grub_millisleep_generic): Removed.
39459
39460 * commands/sleep.c (grub_interruptible_millisleep): Uses
39461 grub_get_time_ms() instead of grub_get_rtc().
39462
39463 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
39464 function.
39465 (grub_cpu_is_cpuid_supported): New inline function.
39466 (grub_cpu_is_tsc_supported): New inline function.
39467 (grub_tsc_init): New function prototype.
39468 (grub_tsc_get_time_ms): New function prototype.
39469
39470 * kern/i386/tsc.c (grub_get_time_ms): New file.
39471
39472 * include/grub/time.h: Include <grub/types.h.
39473 (grub_millisleep_generic): Removed.
39474 (grub_get_time_ms): New prototype.
39475 (grub_install_get_time_ms): New prototype.
39476 (grub_rtc_get_time_ms): New prototype.
39477
39478 * kern/time.c (grub_get_time_ms): New function.
39479 (grub_install_get_time_ms): New function.
39480
39481 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
39482 <grub/time.h> anymore.
39483 (grub_millisleep): Removed.
39484 (grub_machine_init): Call grub_tsc_init.
39485
39486 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
39487 get_time_ms() implementation.
39488
39489 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
39490 (ieee1275_get_time_ms): New function.
39491 (grub_machine_init): Install get_time_ms() implementation.
39492
39493 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
39494 (grub_machine_init): Call grub_tsc_init().
39495 (grub_millisleep): Removed.
bf06a93f 39496
9c2ff3ee 39497 * kern/ieee1275/init.c (grub_millisleep): Removed.
39498 (grub_machine_init): Install ieee1275_get_time_ms()
39499 implementation.
39500 (ieee1275_get_time_ms): New function.
39501 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
39502 real work.
39503
9ec92aaf 395042008-08-05 Marco Gerards <marco@gnu.org>
39505
39506 * disk/ata.c: Include <grub/pci.h>.
39507 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
39508 (grub_ata_initialize): Rewritten.
39509 (grub_ata_device_initialize): New function.
39510
8d23f507 395112008-08-04 Pavel Roskin <proski@gnu.org>
39512
39513 * kern/main.c: Include grub/mm.h.
39514
5e15ee3d 395152008-08-04 Robert Millan <rmh@aybabtu.com>
39516
39517 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
39518 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
39519 corruption problem).
39520
a9053f8f 395212008-08-04 Robert Millan <rmh@aybabtu.com>
39522
39523 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
39524 warnings introduced in my last commit.
39525
dd19c7d7 395262008-08-03 Robert Millan <rmh@aybabtu.com>
39527
39528 Make PCI available on all i386 architectures.
39529
39530 * include/grub/i386/pc/pci.h: Move from here ...
39531 * include/grub/i386/pci.h: ... to here.
39532
39533 * include/grub/i386/pc/pci.h: Remove.
39534 * include/grub/i386/efi/pci.h: Remove.
39535 * include/grub/x86_64/efi/pci.h: Remove.
39536
39537 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
39538 `<grub/cpu/pci.h>'.
39539
39540 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
39541 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
39542 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
39543
39544 * conf/i386-ieee1275.rmk: Likewise.
39545
e14a6184 395462008-08-03 Robert Millan <rmh@aybabtu.com>
39547
39548 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
39549 (grub_console_setcursor): Make it possible to set cursor off.
39550
52768e37 395512008-08-03 Robert Millan <rmh@aybabtu.com>
39552
39553 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
39554 of modules instead of assuming which platform provides what.
39555 * util/update-grub.in: Likewise.
39556
2d52f57f 395572008-08-03 Robert Millan <rmh@aybabtu.com>
39558
39559 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
39560 instead of `grub_install_dos_part' to determine whether a drive needs
39561 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 39562 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 39563
2a5cd121 395642008-08-02 Robert Millan <rmh@aybabtu.com>
39565
39566 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
39567
93808428 395682008-08-02 Robert Millan <rmh@aybabtu.com>
39569
39570 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
39571 of informational grub_dprintf() calls.
39572
3bd0a12a 395732008-08-02 Robert Millan <rmh@aybabtu.com>
39574
39575 * disk/memdisk.c (memdisk_size): Don't initialize.
39576 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
39577
39578 * include/grub/i386/pc/kernel.h
39579 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
39580 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
39581 (grub_memdisk_image_size, grub_arch_memdisk_addr)
39582 (grub_arch_memdisk_size): Remove.
39583
39584 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
39585 field (was only used to transfer a constant). Add `type' field to
39586 support multiple module types.
39587 (grub_module_iterate): New function.
39588
39589 * kern/device.c (grub_device_open): Do not hide error messages
39590 when grub_disk_open() fails. Use grub_print_error() instead.
39591
39592 * kern/i386/pc/init.c (grub_arch_modules_addr)
39593 (grub_arch_memdisk_size): Remove functions.
39594 (grub_arch_modules_addr): Return the module address in high memory
39595 (now that it isn't copied anymore).
39596
39597 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
39598 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
39599 decompression routine (grub_total_module_size already includes that
39600 now). Don't copy modules back to low memory.
39601
39602 * kern/main.c: Include `<grub/mm.h>'.
39603 (grub_load_modules): Split out (and use) ...
39604 (grub_module_iterate): ... this function, which iterates through
39605 module objects and runs a hook.
39606 Comment out grub_mm_init_region() call, as it would cause non-ELF
39607 modules to be overwritten.
39608
39609 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
39610 the memdisk image in its own region, make it part of the module list.
39611 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
39612 (main): Parse --memdisk|-m option, and pass user-provided path as
39613 parameter to generate_image().
39614 (add_segments): Pass `memdisk_path' down to load_modules().
39615 (load_modules): Embed memdisk image in module section when requested.
39616 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
39617 `header.type' instead of `header.offset'.
39618
39619 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
39620 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
39621 (memdisk_mod_LDFLAGS): New variables.
39622 * conf/i386-coreboot.rmk: Likewise.
39623 * conf/i386-ieee1275.rmk: Likewise.
39624
a927cc73 396252008-08-02 Robert Millan <rmh@aybabtu.com>
39626
39627 * loader/i386/pc/multiboot.c (playground, forward_relocator)
39628 (backward_relocator): New variables. Used to allocate and relocate
39629 the payload, respectively.
39630 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 39631 address, install the appropriate relocator code in each bound of
a927cc73 39632 the payload, and set the entry point such that
39633 grub_multiboot_real_boot() will jump to one of them.
39634
39635 * kern/i386/loader.S (grub_multiboot_payload_size)
39636 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
39637 (grub_multiboot_payload_entry_offset): New variables.
39638 (grub_multiboot_real_boot): Set cpu context to what the relocator
39639 expects, and jump to the relocator instead of the payload.
39640
39641 * include/grub/i386/loader.h (grub_multiboot_payload_size)
39642 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
39643 (grub_multiboot_payload_entry_offset): Export.
39644
b15d8a0c 396452008-08-01 Bean <bean123ch@gmail.com>
39646
39647 * normal/menu_entry.c (editor_getline): Don't return the original
39648 string as result, as it will be released by lexer once it has done
39649 using it.
39650
cdfb3d22 396512008-08-01 Robert Millan <rmh@aybabtu.com>
39652
39653 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
39654 within menuentries, not before them.
39655 util/grub.d/10_hurd.in: Likewise.
39656
9175e93d 396572008-08-01 Bean <bean123ch@gmail.com>
39658
39659 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
39660 (bufio_mod_SOURCES): New macro.
39661 (bufio_mod_CFLAGS): Likewise.
39662 (bufio_mod_LDFLAGS): Likewise.
39663
39664 * include/grub/bufio.h: New file.
39665
39666 * io/bufio.c: Likewise.
39667
39668 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
39669 (grub_video_reader_png): Use grub_buffile_open to open file.
39670
39671 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
39672 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
39673
39674 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
39675 (grub_video_reader_tga): Use grub_buffile_open to open file.
39676
39677 * font/manager.c: Include <grub/bufio.h>.
39678 (add_font): Use grub_buffile_open to open file.
39679
3d8383e7 396802008-07-31 Robert Millan <rmh@aybabtu.com>
39681
39682 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
39683 ELF segments, use a macro for arbitrarily accessing any of them instead
39684 of preparing a pointer that allows access to one at a time.
39685 (grub_multiboot_load_elf64): Likewise.
39686
16e641b6 396872008-07-31 Bean <bean123ch@gmail.com>
39688
39689 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
39690 GRUB_KERNEL_MACHINE_DATA_END.
39691
59198b72 396922008-07-30 Robert Millan <rmh@aybabtu.com>
39693
39694 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
39695 Increase from 0x50 to 0x60.
39696 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
39697 use UUIDs to identify the root drive for them. If that's not
39698 possible, abort.
39699 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
39700 check, for cross-disk installs.
39701
ae88bca3 397022008-07-30 Robert Millan <rmh@aybabtu.com>
39703
39704 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
39705 is non-empty, use it to set the `prefix' environment variable instead
39706 of the usual approach.
39707 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
39708 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
39709 environment variable instead of dummy make_install_device().
39710
39711 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
39712 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 39713 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 39714
39715 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
39716 New variable reference.
39717 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
39718 New macro. Defines offset of `grub_prefix' within startup.S (relative
39719 to `start').
39720 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
39721 section within startup.S (relative to `start').
39722 * include/grub/i386/coreboot/kernel.h: Likewise.
39723
39724 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
39725 Overwrite grub_prefix with its contents, at the beginning of the
39726 first segment.
39727 (main): Understand -p|--prefix.
39728
14f41dd1 397292008-07-30 Robert Millan <rmh@aybabtu.com>
39730
39731 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
39732
4ca049a3 397332008-07-30 Robert Millan <rmh@aybabtu.com>
39734
39735 * term/i386/pc/vga_text.c (grub_console_cls): Use
39736 grub_console_gotoxy() to go back to beginning of the screen.
39737 Found by Patrick Georgi <patrick.georgi@coresystems.de>
39738
2921d337 397392008-07-29 Christian Franke <franke@computer.org>
39740
39741 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
39742 Add conversion of emulated mount points on Cygwin.
39743
b609876d 397442008-07-29 Christian Franke <franke@computer.org>
39745
39746 * util/update-grub.in: Add a check for admin
39747 group on Cygwin.
39748 Remove old `grub.cfg.new' before creation.
39749 Add `-f' to `mv' to handle the different filesystem
39750 semantics of Windows.
39751
e93e4679 397522008-07-29 Bean <bean123ch@gmail.com>
39753
39754 * normal/main.c (get_line): Fix buffer overflow bug.
39755
41694fd0 397562008-07-28 Robert Millan <rmh@aybabtu.com>
39757
39758 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
39759 (struct grub_apple_header): New struct. Describes the layout of
39760 the partmap header.
39761 (apple_partition_map_iterate): Check the header magic as well as the
39762 partition magic (which was already being checked).
39763
cfd0b4e6 397642008-07-28 Pavel Roskin <proski@gnu.org>
39765
39766 * genmk.rb: Add a warning to the beginning of the output that
39767 it's a generated file and should not be edited.
39768
93cce016 397692008-07-28 Robert Millan <rmh@aybabtu.com>
39770
39771 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39772 with the same number are found, just use issue a warning with
39773 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 39774
cd1df915 397752008-07-27 Robert Millan <rmh@aybabtu.com>
39776
39777 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
39778 information.
39779
b70a8427 397802008-07-27 Bean <bean123ch@gmail.com>
39781
39782 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
39783 (grub_fat_find_dir): Ignore case when comparing filename.
39784
8f5e379f 397852008-07-27 Bean <bean123ch@gmail.com>
39786
39787 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
39788 smallino, as it's more descriptive, and i8count can be confused with
39789 the other field count.
39790 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
39791 inode type.
39792
a85cd5a0 397932008-07-27 Bean <bean123ch@gmail.com>
39794
39795 * commands/crc.c: New file.
39796
39797 * lib/crc.c: Likewise.
39798
39799 * include/grub/lib/crc.h: Likewise.
39800
39801 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
39802
39803 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
39804 (hexdump): Move this function to ...
39805
39806 * lib/hexdump.c: ... here.
39807
39808 * include/grub/hexdump.h: Renamed to ...
39809
39810 * include/grub/lib/hexdump.h: ... this.
39811
39812 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
39813
39814 * util/grub-editenv.c: Likewise.
39815
39816 * include/envblk.h: Renamed to ...
39817
39818 * include/lib/envblk.h: ... this.
39819
39820 * util/envblk.c: Renamed to ...
39821
39822 * lib/envblk.c: ... this.
39823
39824 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
39825 lib/hexdump.c.
39826 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
39827 (pkglib_MODULES): Add crc.mod.
39828 (hexdump_mod_SOURCES): Add lib/hexdump.c.
39829 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
39830 (crc_mod_SOURCES): New macro.
39831 (crc_mod_CFLAGS): Likewise.
39832 (crc_mod_LDFLAGS): Likewise.
39833
39834 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
39835
39836 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39837
39838 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39839
39840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39841
39842 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39843
c298def0 398442008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 39845
39846 * commands/help.c: Include <grub/term.h>.
39847 (TERM_WIDTH): Removed. Updated all users.
39848
cc349fb3 398492008-07-27 Pavel Roskin <proski@gnu.org>
39850
39851 * util/getroot.c (find_root_device): Rephrase a comment to avoid
39852 spurious warnings about a comment within a comment.
39853
9051607e 398542008-07-25 Robert Millan <rmh@aybabtu.com>
39855
39856 * util/getroot.c (find_root_device): Skip devices that match
39857 /dev/dm-[0-9]. This lets the real device be found for any type of
39858 abstraction (LVM, EVMS, RAID..).
39859 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
39860 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
39861 device is found first, find_root_device() will now skip it.
39862
01453bfc 398632008-07-24 Pavel Roskin <proski@gnu.org>
39864
39865 * include/grub/types.h: Use __builtin_bswap32() and
39866 __builtin_bswap64() with gcc 4.3 and newer.
39867
6af9849f 398682008-07-24 Christian Franke <franke@computer.org>
39869
3a0fa256 39870 * util/i386/pc/grub-install.in: If `--debug' is specified,
39871 pass `--verbose' to grub-setup.
39872 Abort script if make_system_path_relative_to_its_root() fails.
39873
7810e747 398742008-07-24 Bean <bean123ch@gmail.com>
39875
39876 * configure.ac: Fixed a bug caused by the previous cygwin patch,
39877 variable `target_platform' should be `platform'.
39878
42290e17 398792008-07-24 Bean <bean123ch@gmail.com>
39880
51cc5193 39881 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 39882 (grub_png_init_fixed_block): New function.
39883 (grub_png_decode_image_data): Handle fixed huffman code compression.
39884
2a8a80e4 398852008-07-24 Bean <bean123ch@gmail.com>
39886
39887 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
39888 (grub_pe2elf_SOURCES): New macro.
39889 (CLEANFILES): Add grub-pe2elf.
39890
39891 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
39892 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
39893 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
39894 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
39895 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
39896 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
39897 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
39898 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
39899 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
39900 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
39901 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
39902 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
39903 (GRUB_PE32_DT_FUNCTION): Likewise.
39904 (GRUB_PE32_REL_I386_DIR32): Likewise.
39905 (GRUB_PE32_REL_I386_REL32): Likewise.
39906 (grub_pe32_symbol): New structure.
39907 (grub_pe32_reloc): Likewise.
39908
39909 * util/grub-pe2elf.c: New file.
39910
39911 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
39912 start symbol in non pc platform.
39913
39914 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
39915
39916 The following patches are from Christian Franke.
39917
39918 * include/grub/dl.h: Remove .previous, gas supports this only
39919 for ELF format.
39920
39921 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
39922 Remove .type, gas supports this only for ELF format.
39923
39924 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
39925 nullbytes in symbol table. This fixes an infinite loop if table is
39926 zero filled.
39927
39928 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
39929 TARGET_IMG_LDFLAGS and EXEEXT.
39930
39931 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
39932 TARGET_IMG_LDFLAGS_AC.
39933 (grub_CHECK_STACK_ARG_PROBE): New function.
39934
39935 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
39936
39937 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
39938
39939 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
39940 to set TARGET_IMG_LD* accordingly.
39941 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
39942 Add call to grub_CHECK_STACK_ARG_PROBE.
39943 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
39944
39945 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
39946
39947 * genmk.rb: Add EXEEXT to CLEANFILES.
39948
12ccdb75 399492008-07-23 Robert Millan <rmh@aybabtu.com>
39950
39951 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
39952 define the codes for arrows and lines used for the menu).
39953 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
39954 as well.
39955
39956 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
39957 fonts, because the latter are too slow.
39958
18eeaf04 399592008-07-21 Bean <bean123ch@gmail.com>
39960
39961 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
39962 a20. Run keyboard test last, as it will cause macbook to halt.
39963
b095e2ad 399642008-07-18 Pavel Roskin <proski@gnu.org>
39965
39966 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
39967 load foreign architecture modules correctly anyway. Keep
39968 support for loading host architecture modules, whether we
39969 compile them or not.
39970
737feb35 399712008-07-17 Pavel Roskin <proski@gnu.org>
39972
3f4ce737 39973 * configure.ac: Use -m32 or -m64 regardless of whether we had to
39974 change target_cpu. The compiler default can mismatch target_cpu
39975 in any case.
39976
4ad2d049 39977 * disk/efi/efidisk.c: Fix format warnings on x86_64.
39978 * kern/efi/efi.c: Likewise.
39979
f6130a12 39980 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
39981 target compiler is functional.
39982 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
39983 are set up.
39984
58393a2d 39985 * configure.ac: Default to efi platform for x86_64-apple. Allow
39986 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
39987 adjustments from the rest, only do them if target is not
39988 explicitly given. Merge other adjustments with the final sanity
39989 check. Remove an extraneous check for supported CPU. Be
39990 specific which CPU and which platform is not supported.
39991
737feb35 39992 * configure.ac: Default to pc platform for x86_64.
39993
546f966a 399942008-07-17 Robert Millan <rmh@aybabtu.com>
39995
39996 Partial LinuxBIOS -> Coreboot rename.
39997
39998 * conf/i386-linuxbios.rmk: Renamed to ...
39999 * conf/i386-coreboot.rmk: ... this.
40000 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
40001 * configure.ac: Accept "coreboot" as input platform (but maintain
40002 compatibility with "linuxbios").
40003 * include/grub/i386/linuxbios: Renamed to ...
40004 * include/grub/i386/coreboot: ... this.
40005
20011694 400062008-07-17 Bean <bean123ch@gmail.com>
40007
40008 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 40009 (appleldr_mod_SOURCE): New variable.
20011694 40010 (appleldr_mod_CFLAGS): Likewise.
40011 (appleldr_mod_LDFLAGS): Likewise.
40012 (pci_mod_SOURCES): Likewise.
40013 (pci_mod_CFLAGS): Likewise.
40014 (pci_mod_LDFLAGS): Likewise.
40015 (lspci_mod_SOURCES): Likewise.
40016 (lspci_mod_CFLAGS): Likewise.
40017 (lspci_mod_LDFLAGS): Likewise.
40018
40019 * conf/x86_64-efi.rmk: New file.
40020
40021 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
40022 macro.
40023 (grub_efidisk_write): Likewise.
40024
40025 * include/efi/api.h (efi_call_0): New macro.
40026 (efi_call_1): Likewise.
40027 (efi_call_2): Likewise.
40028 (efi_call_3): Likewise.
40029 (efi_call_4): Likewise.
40030 (efi_call_5): Likewise.
40031 (efi_call_6): Likewise.
40032
40033 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
40034 grub_rescue_cmd_chainloader.
40035
40036 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
40037 (grub_pe32_optional_header): Change some fields based on i386 or
40038 x86_64 platform.
40039 (GRUB_PE32_PE32_MAGIC): Likewise.
40040
40041 * include/grub/efi/uga_draw.h: New file.
40042
40043 * include/grub/elf.h (STN_ABS): New constant.
40044 (R_X86_64_NONE): Relocation constant for x86_64.
40045 (R_X86_64_64): Likewise.
40046 (R_X86_64_PC32): Likewise.
40047 (R_X86_64_GOT32): Likewise.
40048 (R_X86_64_PLT32): Likewise.
40049 (R_X86_64_COPY): Likewise.
40050 (R_X86_64_GLOB_DAT): Likewise.
40051 (R_X86_64_JUMP_SLOT): Likewise.
40052 (R_X86_64_RELATIVE): Likewise.
40053 (R_X86_64_GOTPCREL): Likewise.
40054 (R_X86_64_32): Likewise.
40055 (R_X86_64_32S): Likewise.
40056 (R_X86_64_16): Likewise.
40057 (R_X86_64_PC16): Likewise.
40058 (R_X86_64_8): Likewise.
40059 (R_X86_64_PC8): Likewise.
40060
40061 * include/grub/i386/efi/pci.h: New file.
40062
40063 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
40064 Change it value based on platform.
40065 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
40066 (GRUB_E820_RAM): Likewise.
40067 (GRUB_E820_RESERVED): Likewise.
40068 (GRUB_E820_ACPI): Likewise.
40069 (GRUB_E820_NVS): Likewise.
40070 (GRUB_E820_EXEC_CODE): Likewise.
40071 (GRUB_E820_MAX_ENTRY): Likewise.
40072 (grub_e820_mmap): New structure.
40073 (linux_kernel_header): Change the efi field according to different
40074 kernel version, also field from linux_kernel_header.
40075
40076 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
40077
40078 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
40079 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
40080 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
40081 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
40082 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
40083 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
40084 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
40085 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
40086 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
40087 (GRUB_PCI_ADDR_IO_MASK): Likewise.
40088
40089 * include/grub/x86_64/efi/kernel.h: New file.
40090
40091 * include/grub/x86_64/efi/loader.h: Likewise.
40092
40093 * include/grub/x86_64/efi/machine.h: Likewise.
40094
40095 * include/grub/x86_64/efi/pci.h: Likewise.
40096
40097 * include/grub/x86_64/efi/time.h: Likewise.
40098
40099 * include/grub/x86_64/linux.h: Likewise.
40100
40101 * include/grub/x86_64/setjmp.h: Likewise.
40102
40103 * include/grub/x86_64/time.h: Likewise.
40104
40105 * include/grub/x86_64/types.h: Likewise.
40106
40107 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
40108 GRUB_TARGET_SIZEOF_VOID_P.
40109
40110 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
40111 (grub_efi_locate_handle): Likewise.
40112 (grub_efi_open_protocol): Likewise.
40113 (grub_efi_set_text_mode): Likewise.
40114 (grub_efi_stall): Likewise.
40115 (grub_exit): Likewise.
40116 (grub_reboot): Likewise.
40117 (grub_halt): Likewise.
40118 (grub_efi_exit_boot_services): Likewise.
40119 (grub_get_rtc): Likewise.
40120
40121 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
40122 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
40123 (grub_efi_allocate_pages): Wrap efi calls.
40124 (grub_efi_free_pages): Wrap efi calls.
40125 (grub_efi_get_memory_map): Wrap efi calls.
40126
40127 * kern/x86_64/dl.c: New file.
40128
40129 * kern/x86_64/efi/callwrap.S: Likewise.
40130
40131 * kern/x86_64/efi/startup.S: Likewise.
40132
40133 * loader/efi/appleloader.c: Likewise.
40134
40135 * loader/efi/chainloader.c (cmdline): New variable.
40136 (grub_chainloader_unload): Wrap efi calls.
40137 (grub_chainloader_boot): Likewise.
40138 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
40139 command line.
40140
40141 * loader/efi/chainloader_normal.c (chainloader_command):
40142 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
40143 command line.
40144
40145 * loader/i386/efi/linux.c (allocate_pages): Change allocation
40146 method.
40147 (grub_e820_add_region): New function.
40148 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
40149 booting.
40150 (grub_find_video_card): New function.
40151 (grub_linux_setup_video): New function.
40152 (grub_rescue_cmd_linux): Probe for video information.
40153
40154 * normal/x86_64/setjmp.S: New file.
40155
40156 * term/efi/console.c (map_char): New function.
40157 (grub_console_putchar): Map unicode char.
40158 (grub_console_checkkey): Wrap efi calls.
40159 (grub_console_getkey): Likewise.
40160 (grub_console_getwh): Likewise.
40161 (grub_console_gotoxy): Likewise.
40162 (grub_console_cls): Likewise.
40163 (grub_console_setcolorstate): Likewise.
40164 (grub_console_setcursor): Likewise.
40165
40166 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
40167
59652a20 401682008-07-16 Pavel Roskin <proski@gnu.org>
40169
ef294055 40170 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
40171 format strings.
40172
59652a20 40173 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
40174 pointer, not an integer. This fixes a warning and prevents
40175 precision loss on 64-bit systems.
40176 (relocate_addresses): Remove unneeded cast.
40177
afc3b5d7 401782008-07-15 Pavel Roskin <proski@gnu.org>
40179
506b2b3e 40180 * kern/i386/ieee1275/init.c: Include grub/cache.h.
40181
62ead89c 40182 * term/ieee1275/ofconsole.c: Disable code unused on i386.
40183
c4cd51d7 40184 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
40185 Fix comparison between signed and unsigned.
40186
0d3d8f28 40187 * include/grub/i386/ieee1275/console.h: Declare
40188 grub_console_init() and grub_console_fini().
40189
8804b286 40190 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
40191 It's empty and unused.
40192
ee01cf35 40193 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
40194 beginning to avoid warnings with some compilers.
40195
afc3b5d7 40196 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
40197 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
40198
e4e8eaa5 401992008-07-14 Pavel Roskin <proski@gnu.org>
40200
407aceb4 40201 * kern/env.c (grub_register_variable_hook): Don't copy empty
40202 string, it leaks memory. Pass "" to grub_env_set(), it should
40203 handle constant strings.
40204
e4e8eaa5 40205 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
40206 * commands/cmp.c (grub_cmd_cmp): Likewise.
40207 * kern/dl.c (grub_dl_flush_cache): Likewise.
40208 (grub_dl_load_core): Likewise.
40209 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
40210 (grub_elf64_load_phdrs): Likewise.
40211
d4e2dad3 402122008-07-13 Pavel Roskin <proski@gnu.org>
40213
40214 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
40215 between signed and unsigned.
40216 (LzmaEnc_Finish): Fix warning about an unused parameter.
40217
aa24b516 402182008-07-13 Bean <bean123ch@gmail.com>
40219
40220 * Makefile.in (enable_lzo): New rule.
40221
40222 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
40223
40224 * configure.ac (ENABLE_LZO): New option --enable-lzo.
40225
40226 * boot/i386/pc/lnxboot.S: #include <config.h>.
40227
40228 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 40229 its value according to the compression algorithm used, lzo or lzma.
aa24b516 40230
40231 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
40232 compression algorithm according to configure macro.
40233
40234 * kern/i386/pc/startup.S (codestart): Likewise.
40235
40236 * kern/i386/pc/lzma_decode.S: New file.
40237
40238 * include/grub/lib/LzFind.h: Likewise.
40239
40240 * include/grub/lib/LzHash.h: Likewise.
40241
40242 * include/grub/lib/LzmaDec.h: Likewise.
40243
40244 * include/grub/lib/LzmaEnc.h: Likewise.
40245
40246 * include/grub/lib/LzmaTypes.h: Likewise.
40247
40248 * lib/LzFind.c: Likewise.
40249
40250 * lib/LzmaDec.c: Likewise.
40251
40252 * lib/LzmaEnc.c: Likewise.
40253
4ae821ac 402542008-07-13 Bean <bean123ch@gmail.com>
40255
40256 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
40257 (grub_ext4_extent_header): New structure.
40258 (grub_ext4_extent): Likewise.
40259 (grub_ext4_extent_idx): Likewise.
40260 (grub_ext4_find_leaf): New function.
40261 (grub_ext2_read_block): Handle extents.
40262
9a745147 402632008-07-12 Robert Millan <rmh@aybabtu.com>
40264
40265 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
40266
d49a4cf6 402672008-07-11 Robert Millan <rmh@aybabtu.com>
40268
40269 * util/grub.d/40_custom.in: New file. Example on how to add custom
40270 entries to /etc/grub.d.
40271 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
40272 40_custom (implicitly, by merging all the grub.d rules).
40273
947414b4 402742008-07-11 Pavel Roskin <proski@gnu.org>
40275
0059cf6f 40276 * commands/read.c (grub_getline): Fix invalid memory access.
40277 Don't add newline to the variable value.
40278
947414b4 40279 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
40280 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
40281 (serial_hw_get_port): Check validity of the port number.
40282 (grub_cmd_serial): Check return value of serial_hw_get_port().
40283
62a02d00 402842008-07-07 Pavel Roskin <proski@gnu.org>
40285
40286 * boot/i386/pc/diskboot.S (notification_string): Replace
40287 "Loading kernel" with just "loading". This is shorter, less
40288 confusing and saves a few bytes for possible future changes.
40289
3e5581b0 402902008-07-05 Pavel Roskin <proski@gnu.org>
40291
ea387a48 40292 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
40293 size for ATAPI devices, they are undefined. Output sector
40294 number in decimal form.
40295
3e5581b0 40296 * disk/ata.c: Use named constants for status bits.
40297
fdecb8fd 402982008-07-04 Pavel Roskin <proski@gnu.org>
40299
bcd35b90 40300 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
40301 grub_addr_t before casting it to the void pointer to fix a
40302 warning. Non-addressable regions are discarded earlier.
40303 (grub_arch_modules_addr): Cast _end to grub_addr_t.
40304 * kern/i386/linuxbios/table.c: Include grub/misc.h.
40305 (check_signature): Don't shadow table_header.
40306 (grub_linuxbios_table_iterate): Cast numeric constants to
40307 grub_linuxbios_table_header_t.
40308 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
40309 grub_stop().
40310
af58ab3d 40311 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
40312 prevent warnings.
40313
1759aa57 40314 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
40315 pointer, which can cause warnings. Support 64-bit addresses.
40316
fdecb8fd 40317 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
40318 of sizeof(long). This fixes PowerPC image generation on x86_64.
40319
8516d2a8 403202008-07-04 Robert Millan <rmh@aybabtu.com>
40321
40322 This fixes a performance issue when pc & gpt partmap iterators
40323 didn't abort iteration even after our hook found what it was
fe987087 40324 looking for (often causing expensive probes of non-existent drives).
8516d2a8 40325
40326 Some callers relied on previous buggy behaviour, since they would
34c44600 40327 raise an error when their own hooks caused early abortion of its
8516d2a8 40328 iteration.
40329
40330 * kern/device.c (grub_device_open): Improve error message.
40331 * disk/lvm.c (grub_lvm_open): Likewise.
40332 * disk/raid.c (grub_raid_open): Likewise.
40333
40334 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
40335 when hook requests it, independently of grub_errno.
40336 (pc_partition_map_probe): Do not fail when find_func() caused
40337 early abortion of pc_partition_map_iterate().
40338
40339 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
40340 when hook requests it, independently of grub_errno.
40341 (gpt_partition_map_probe): Do not fail when find_func() caused
40342 early abortion of gpt_partition_map_iterate().
40343
40344 * kern/partition.c (grub_partition_iterate): Abort parent iteration
40345 when hook requests it, independently of grub_errno. Do not fail when
40346 part_map_iterate_hook() caused early abortion of p->iterate().
40347
40348 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
40349 when grub_partition_iterate() returned with non-zero.
40350
277d0de9 403512008-07-03 Pavel Roskin <proski@gnu.org>
40352
40353 * disk/ata.c (grub_ata_pio_write): Check status before writing,
40354 like we do in grub_ata_pio_read().
40355 (grub_ata_readwrite): Always write individual sectors. Fix the
40356 sector count for the remainder.
40357 (grub_ata_write): Enable writing to ATA devices. Correctly
40358 report error for ATAPI devices.
40359
d4c9b428 403602008-07-02 Pavel Roskin <proski@gnu.org>
40361
e43fc690 40362 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
40363 warning.
40364
f707af42 40365 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
40366 for every read sector, we already increment it for the whole
40367 batch. This fixes reading more than 256 sectors at once.
40368
11e16b15 40369 * util/grub-editenv.c (cmd_info): Cast argument to long
40370 explicitly. ptrdiff_t reduces to int on i386.
40371
cbabfdd4 40372 * util/grub-editenv.c (main): Be specific which parameter is
40373 missing.
40374
b8fbce0a 40375 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
40376 (memdisk): Make memdisk_orig_addr a pointer.
40377
c9c8e606 40378 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
40379 for file offsets, use grub_off_t instead. Fix printf format
40380 warnings.
40381
ca62e598 40382 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
40383 there. Real unexpected warnings should not drown in the noise
40384 about known problems.
40385
ce8d1766 40386 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
40387 grub_disk_addr_t for memory addresses.
40388
00c7a56a 40389 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
40390 explicitly to fix a warning.
40391
08d3ef09 40392 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
40393
cb71ba20 40394 * Makefile.in (MODULE_LDFLAGS): New variable.
40395 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
40396 the linker accepts --build-id=none.
40397 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
40398 MODULE_LDFLAGS.
40399 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
40400
d4c9b428 40401 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
40402 those in Linux XFS code. Provide a way to access 64-bit parent
40403 inode.
40404 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
40405 the end of struct grub_xfs_dir_header.
40406
d4156eee 404072008-07-02 Bean <bean123ch@gmail.com>
40408
40409 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
40410 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40411 and GRUB_IEEE1275_FLAG_NO_ANSI.
40412
40413 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
40414 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40415 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
40416
40417 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
40418 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
40419
40420 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
40421 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
40422
40423 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
40424 esc sequence on non ANSI terminal.
40425 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
40426
40427 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
40428 beginning of file.
40429
2270f77b 404302008-07-02 Bean <bean123ch@gmail.com>
40431
40432 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
40433 (grub_editenv_SOURCES): New variable.
40434 (pkglib_MODULES): Add loadenv.mod.
40435 (loadenv_mod_SOURCES): New variable.
40436 (loadenv_mod_CFLAGS): Likewise.
40437 (loadenv_mod_LDFLAGS): Likewise.
40438
40439 * include/grub/envblk.h: New file.
40440
40441 * util/envblk.c: New file.
40442
40443 * util/grub-editenv.c: New file.
40444
40445 * commands/loadenv.c: New file.
40446
0e9e51ec 404472008-07-01 Pavel Roskin <proski@gnu.org>
40448
d89b7634 40449 * include/multiboot2.h (struct multiboot_tag_module): Use char,
40450 not unsigned char. This fixes warnings and is consistent with
40451 other tags.
40452
bf1835b1 40453 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
40454
8222a04b 40455 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
40456
6a42d99d 40457 * term/tparm.c (analyze): Always set *popcount.
40458
10b159d1 40459 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
40460 cast to fix a warning.
40461
b8789f6c 40462 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
40463 cast to suppress a warning.
40464
29d7e38a 40465 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
40466 grub_fshelp_read_file() expects.
40467
f341f669 40468 * fs/fat.c: Fix UUID calculation on big-endian systems. We
40469 write uuid as a 32-bit value in CPU byte order, so declare and
40470 use it as such.
40471
0e9e51ec 40472 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
40473 long if the format specifier expects it.
40474 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
40475 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40476 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
40477 long to fix a warning.
40478 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
40479 grub_dprintf() arguments to fix warnings.
40480
3aefa857 404812008-06-30 Pavel Roskin <proski@gnu.org>
40482
56c7668b 40483 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
40484 install_bsd_part immediately before core.img is embedded or
40485 modified on disk. This fixes core.img verification if core.img
40486 cannot be embedded.
40487
3aefa857 40488 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
40489 core_path to calculate the blocklist.
40490 Patch from Javier Martín <lordhabbit@gmail.com>
40491
5444088d 404922008-06-29 Robert Millan <rmh@aybabtu.com>
40493
40494 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
40495 block to disk block.
40496 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
40497 Patch from Niels Böhm <bitbucket@arcor.de>
40498
674835c8 404992008-06-29 Robert Millan <rmh@aybabtu.com>
40500
40501 * util/update-grub_lib.in (font_path): Search for fonts in
40502 /boot/grub first, which is more likely to be readable (we aren't
40503 deciding where fonts live, just looking for them).
40504
f527dbc8 405052008-06-26 Pavel Roskin <proski@gnu.org>
40506
6c2d8df6 40507 * util/biosdisk.c (read_device_map): Don't leave dead map
40508 entries for devices failing stat() check.
40509
f527dbc8 40510 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
40511 core_path_dev for the core.img path on the target device.
40512
aebe3d13 405132008-06-26 Robert Millan <rmh@aybabtu.com>
40514
40515 * disk/fs_uuid.c: New file.
40516 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
40517 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
40518 (fs_uuid_mod_LDFLAGS): New variables.
40519 * include/grub/disk.h (grub_disk_dev_id): Add
40520 `GRUB_DISK_DEVICE_UUID_ID'.
40521 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
40522 implement iterate().
40523
37aaf354 405242008-06-26 Robert Millan <rmh@aybabtu.com>
40525
40526 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
40527 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
40528 Linux image includes no initrd.
40529
25ff262a 405302008-06-21 Javier Martín <lordhabbit@gmail.com>
40531
40532 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
40533 call to resolve the core image location that effectively appended the
40534 name twice.
40535
76a2bd44 405362008-06-21 Robert Millan <rmh@aybabtu.com>
40537
40538 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
40539 call from here ...
40540
40541 * util/grub.d/10_hurd.in: ... to here ...
40542 * util/grub.d/10_linux.in: ... and here.
40543
650e1c79 405442008-06-19 Robert Millan <rmh@aybabtu.com>
40545
fe987087 40546 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 40547 after it has been set by grub_machine_set_prefix().
40548
6ce63911 405492008-06-19 Robert Millan <rmh@aybabtu.com>
40550
40551 * commands/search.c (search_label, search_fs_uuid, search_file): Print
40552 search result when not saving to variable, not the other way around.
40553 When saving to variable, abort iteration as soon as a match is found.
40554
73940cec 405552008-06-19 Robert Millan <rmh@aybabtu.com>
40556
40557 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
40558 check for partition that provides /boot/grub. Its logic is flawed,
40559 as it prevents prepare_grub_to_access_device() from being called
40560 multiple times.
40561
3c62a39d 405622008-06-19 Robert Millan <rmh@aybabtu.com>
40563
40564 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
40565 "insmod" command directly when abstraction modules are needed,
fe987087 40566 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 40567 since it had already been processed).
40568
47395a42 405692008-06-19 Pavel Roskin <proski@gnu.org>
40570
40571 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
40572 changed. This is needed in case GRUB_LIBDIR changes.
40573 * conf/i386-ieee1275.rmk: Likewise.
40574 * conf/i386-linuxbios.rmk: Likewise.
40575 * conf/i386-pc.rmk: Likewise.
40576 * conf/powerpc-ieee1275.rmk: Likewise.
40577
a145ac2d 405782008-06-18 Pavel Roskin <proski@gnu.org>
40579
40580 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
40581 kernel_elf_symlist.c to symlist.c for consistency with other
40582 architectures. Update all users.
40583 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40584
7847c51e 405852008-06-18 Robert Millan <rmh@aybabtu.com>
40586
40587 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
40588 it in prefix.
40589
40590 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
40591 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
40592 a RAID device, run setup() for all members independently on whether
40593 LVM abstraction is being used.
40594 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
40595 If grub-mkimage has set `*install_dos_part == -2', don't override this
40596 value.
40597 Perform *install_dos_part adjustments independently on whether
40598 we're embedding or not.
40599 Clarify error message when image is too big for embedding.
40600 Remove duplicate *install_dos_part stanza.
40601
b23e5644 406022008-06-17 Robert Millan <rmh@aybabtu.com>
40603
40604 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
40605 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
40606 variables.
40607 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
40608 values in grub_ofconsole_normal_color and
40609 grub_ofconsole_highlight_color (they're not directly related to
40610 background and foreground).
40611 (grub_ofconsole_setcolorstate): Extract background and foreground
40612 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
40613
0aac2f79 406142008-06-17 Robert Millan <rmh@aybabtu.com>
40615
40616 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
40617 /boot/grub for the check in last commit, not /boot (they could be
40618 different partitions).
40619
3cca7ef3 406202008-06-16 Robert Millan <rmh@aybabtu.com>
40621
40622 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
40623 asked to setup access for the same partition that provides /boot,
40624 don't bother using UUIDs since our root already has the value we
40625 want.
40626
347396d8 406272008-06-16 Robert Millan <rmh@aybabtu.com>
40628
40629 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
40630 I2O devices.
40631 Patch from Sven Mueller <sven@debian.org>.
40632
991477f8 406332008-06-16 Robert Millan <rmh@aybabtu.com>
40634
40635 * util/update-grub.in: Check for $EUID instead of $UID.
40636 Reported by Vincent Zweije.
40637
d31a32a1 406382008-06-16 Bean <bean123ch@gmail.com>
40639
fe987087 40640 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 40641 (grub_ext2_read_block): Likewise.
40642 (grub_ext2_read_inode): Likewise.
40643 (grub_ext2_mount): Likewise.
40644 (grub_ext2_close): Likewise.
40645 (grub_ext3_get_journal): Removed.
40646
fe987087 40647 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 40648 (grub_reiserfs_read_symlink): Likewise.
40649 (grub_reiserfs_mount): Likewise.
40650 (grub_reiserfs_open): Likewise.
40651 (grub_reiserfs_read): Likewise.
40652 (grub_reiserfs_close): Likewise.
40653 (grub_reiserfs_get_journal): Removed.
40654
40655 * fs/fshelp.c (grub_fshelp_read): Removed.
40656 (grub_fshelp_map_block): Likewise.
40657
40658 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
40659 (grub_fshelp_journal): Likewise.
40660 (grub_fshelp_read): Likewise.
40661 (grub_fshelp_map_block): Likewise.
40662
3540a760 406632008-06-16 Pavel Roskin <proski@gnu.org>
40664
40665 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
40666 floating point anymore.
40667 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
40668
95614c84 406692008-06-15 Pavel Roskin <proski@gnu.org>
40670
40671 * commands/ls.c (grub_ls_list_files): Use integer calculations
40672 for human readable format, avoid floating point use.
40673 * kern/misc.c (grub_ftoa): Remove.
40674 (grub_vsprintf): Remove floating point support.
40675
50465dd6 406762008-06-15 Robert Millan <rmh@aybabtu.com>
40677
fe6b695a 40678 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 40679 devices.
40680 Reported by Max Vozeler.
40681
a9207284 406822008-06-15 Robert Millan <rmh@aybabtu.com>
40683
40684 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
40685 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
40686 skipped later.
40687 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
40688 the beginning of the prefix.
40689
40690 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
40691 It is assumed that if we have a memdisk, grub-mkimage has set
40692 grub_prefix to include the "(memdisk)" drive in it.
40693
a7cbd45a 406942008-06-15 Robert Millan <rmh@aybabtu.com>
40695
40696 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
40697 Initialize keyboard controller after registering the terminal, so that
40698 grub_printf() can be called from grub_keyboard_controller_init().
40699
21cf716a 407002008-06-15 Robert Millan <rmh@aybabtu.com>
40701
40702 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
40703 extent-btree which is written as big endian on disk.
40704 Reported by Alain Greppin <al@chilibi.org>.
40705
23a64d8e 407062008-06-14 Robert Millan <rmh@aybabtu.com>
40707
40708 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
40709 * util/i386/pc/grub-install.in (modules): Likewise.
40710
d687651c 407112008-06-13 Pavel Roskin <proski@gnu.org>
40712
40713 * commands/ls.c (grub_ls_list_files): Fix format warnings.
40714
dfe9ddd4 407152008-06-13 Bean <bean123ch@gmail.com>
40716
40717 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
40718
40719 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
40720
40721 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
40722 to indicate sparse block.
40723
16ae7781 407242008-06-12 Pavel Roskin <proski@gnu.org>
40725
e6d1a308 40726 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
40727 number, grub_fshelp_read() does it for us.
40728
16ae7781 40729 * fs/fshelp.c (grub_fshelp_read): New function. Implement
40730 linear disk read with journal translation.
40731 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
40732 * include/grub/fshelp.h: Declare grub_fshelp_read().
40733
40fd3a2b 407342008-06-09 Pavel Roskin <proski@gnu.org>
40735
40736 * fs/minix.c (grub_minix_mount): Handle error reading
40737 superblock.
40738
f5679726 407392008-06-08 Robert Millan <rmh@aybabtu.com>
40740
40741 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
40742 don't append the RAID prefix afterwards.
40743 Reported by Clint Adams.
40744
ce525529 407452008-06-08 Robert Millan <rmh@aybabtu.com>
40746
40747 Based on description from Pavel:
40748 * kern/disk.c (grub_disk_check_range): Rename to ...
40749 (grub_disk_adjust_range): ... this. Add a comment explaining the
40750 tasks performed by this function.
40751
ad4936a0 407522008-06-08 Robert Millan <rmh@aybabtu.com>
40753
40754 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
40755 `num_serial' (for consistency with other variables).
40756 (struct grub_ntfs_data): Add `uuid' member.
40757 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
40758 (grub_ntfs_uuid): New function.
40759 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
40760
dc20b0f9 407612008-06-07 Pavel Roskin <proski@gnu.org>
40762
40763 * util/biosdisk.c (open_device): Revert last change to the
40764 function, it broke installation. The sector needs to be
40765 different dependent on which device is opened.
40766
c5e3cfba 407672008-06-06 Robert Millan <rmh@aybabtu.com>
40768
40769 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
40770 rest of GRUB, and breakage doesn't happen if its value were modified.
40771
40772 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
40773 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
40774 a constant (same value).
40775 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
40776 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
40777
26a1f8c4 407782008-06-06 Robert Millan <rmh@aybabtu.com>
40779
40780 * util/biosdisk.c (open_device): Do not modify sector offset when
40781 accessing a partition. kern/disk.c already handles this for us.
40782
25d6b327 407832008-06-06 Robert Millan <rmh@aybabtu.com>
40784
40785 * util/grub-emu.c (grub_machine_init): Move code in this function from
40786 here ...
40787 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
40788 segfault in case grub_printf() is called).
40789
40790 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
40791 grub_probe. Update all users not to explicitly add it again.
40792 (grub_device): New variable; contains corresponding device for grubdir.
40793 (fs_module, partmap_module, devabstraction_module): Pass
40794 `--device ${grub_device}' to grub_probe to avoid traversing /dev
40795 every time.
40796
9ece62fb 407972008-06-05 Robert Millan <rmh@aybabtu.com>
40798
40799 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
40800 is found, print it (same layout as with labels).
40801
1ad36d37 408022008-06-04 Robert Millan <rmh@aybabtu.com>
40803
40804 * util/biosdisk.c (get_drive): Rename to ...
40805 (find_grub_drive): ... this. Update all users.
40806
40807 (get_os_disk): Rename to ...
40808 (convert_system_partition_to_system_disk): ... this. Update all users.
40809
40810 (find_drive): Rename to ...
40811 (find_system_device): ... this. Update all users.
40812
e6a30859 408132008-06-04 Robert Millan <rmh@aybabtu.com>
40814
40815 * util/biosdisk.c (get_os_disk): Handle IDA devices.
40816 * util/grub-mkdevicemap.c (get_mmc_disk_name)
40817 (make_device_map): Likewise.
40818
00c108a4 408192008-06-01 Robert Millan <rmh@aybabtu.com>
40820
40821 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
40822 before dereferencing it.
40823
40824 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
40825 union with fat12/fat16-specific ones. Add some new fields, including
40826 `num_serial' for both versions.
40827 (struct grub_fat_data): Add `uuid' member.
40828 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
40829 names. Initialize `data->uuid' using `num_serial'.
40830 (grub_fat_uuid): New function.
40831 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
40832
40833 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
40834 (grub_reiserfs_uuid): New function.
40835 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
40836 member.
40837
40838 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
40839 (grub_xfs_uuid): New function.
40840 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
40841
1385c5bb 408422008-06-01 Robert Millan <rmh@aybabtu.com>
40843
40844 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
40845 code that is backward compatible with pre-uuid search command.
40846
c682dfd7 408472008-05-31 Robert Millan <rmh@aybabtu.com>
40848
40849 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
40850 floppies after everything else, to ensure floppy drive isn't accessed
40851 unnecessarily (patch from Bean).
40852
b7db5d47 408532008-05-31 Robert Millan <rmh@aybabtu.com>
40854
40855 * commands/search.c (search_label, search_fs_uuid, search_file): Do
40856 not print device names when we were asked to set a variable.
40857
6e037aa9 408582008-05-31 Robert Millan <rmh@aybabtu.com>
40859
40860 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
40861 using "cursor-on" and "cursor-off" commands (understood at least by
40862 the Open Firmware flavour on OLPC).
40863
41305bc8 408642008-05-31 Michael Gorven <michael@gorven.za.net>
40865
40866 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
40867 on and off sequences.
40868
69ba137e 408692008-05-31 Robert Millan <rmh@aybabtu.com>
40870
40871 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
40872 * util/update-grub.in: Likewise.
40873
520ae21b 408742008-05-30 Pavel Roskin <proski@gnu.org>
40875
40876 * util/biosdisk.c (linux_find_partition): Simplify logic and
40877 make the code more universal. Keep special processing for
40878 devfs, but use a simple rule for all other devices. If the
40879 device ends with a number, append 'p' and the partition number.
40880 Otherwise, append only the partition number.
40881
5786569b 408822008-05-30 Robert Millan <rmh@aybabtu.com>
40883
40884 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
40885 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
40886 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
40887 the `root' parameter to Linux.
40888
51500452 408892008-05-30 Robert Millan <rmh@aybabtu.com>
40890
40891 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
40892 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
40893 --fs_uuid with --fs-uuid.
40894 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
40895 all filesystems support them).
40896
811d3878 408972008-05-30 Robert Millan <rmh@aybabtu.com>
40898
40899 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 40900 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 40901
cab63c95 409022008-05-30 Robert Millan <rmh@aybabtu.com>
40903
40904 * util/grub.d/00_header.in: Remove obsolete comment referencing
40905 convert_system_path_to_grub_path().
40906 * util/update-grub.in: Likewise.
40907 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
40908 (convert_system_path_to_grub_path): Add a warning message explaining
40909 that this function is deprecated. Rely on is_path_readable_by_grub()
40910 for the readability checks.
40911 (font_path): Use is_path_readable_by_grub() for the readability
40912 check rather than convert_system_path_to_grub_path().
40913
972e2f7a 409142008-05-30 Robert Millan <rmh@aybabtu.com>
40915
40916 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
40917 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
40918 converting it first.
40919 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
40920 grub.cfg for access to font file, and afterwards call it again to set
40921 the root device.
40922
62191274 409232008-05-30 Robert Millan <rmh@aybabtu.com>
40924
40925 * commands/search.c (options): Add --fs_uuid option.
40926 (search_fs_uuid): New function.
40927 (grub_cmd_search): Fix --set argument passing.
40928 Use search_fs_uuid() when requested via --fs_uuid.
40929 (grub_search_init): Update help message.
40930 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
40931 and redeclare it as an array of 16-bit words.
40932 (grub_ext2_uuid): New function.
40933 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
40934 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
40935 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
40936 (GRUB_DEVICE_BOOT_UUID): New variables.
40937 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
40938 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
40939 whenever possible.
40940 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
40941 just assume `root' variable has the right value.
40942 * util/grub.d/10_linux.in: Likewise.
40943 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
40944 via PRINT_FS_UUID.
40945 (main): Recognise `-t fs_uuid' argument.
40946
01b73ec8 409472008-05-30 Robert Millan <rmh@aybabtu.com>
40948
40949 * util/biosdisk.c (map): Redefine structure to hold information
40950 about GRUB drive name.
fe6b695a 40951 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 40952 drive names.
40953 (call_hook): Remove.
40954 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
40955 member. Assume drive has partitions.
40956 (grub_util_biosdisk_open): Access device names via `.device' struct
40957 member.
40958 (open_device): Likewise.
40959 (find_drive): Likewise.
40960 (read_device_map): Adjust map[] usage to match the new struct
40961 definition. Don't check for duplicates (still possible, but not cheap
40962 anymore).
40963 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
40964 (make_device_name): Remove assumption of BIOS-like drive names.
40965
22f16596 409662008-05-30 Pavel Roskin <proski@gnu.org>
40967
40968 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
40969 compiling execute.c doesn't need grub_script.tab.h anymore.
40970 (normal/command.c_DEPENDENCIES): Likewise.
40971 (normal/function.c_DEPENDENCIES): Likewise.
40972 * conf/i386-ieee1275.rmk: Likewise.
40973 * conf/i386-linuxbios.rmk: Likewise.
40974 * conf/i386-pc.rmk: Likewise.
40975 * conf/powerpc-ieee1275.rmk: Likewise.
40976 * conf/sparc64-ieee1275.rmk: Likewise.
40977
528ad8f2 409782008-05-29 Pavel Roskin <proski@gnu.org>
40979
d1dff95d 40980 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
40981 when scanning metadata for volume group name.
40982
528ad8f2 40983 * include/grub/script.h: Don't include grub_script.tab.h. It's
40984 a generated file, which may only be included from the files with
40985 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
40986 use union YYSTYPE, as the later allows forward declaration.
40987 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
40988
47248e08 409892008-05-29 Robert Millan <rmh@aybabtu.com>
40990
40991 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
40992 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
40993 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
40994 (grub_console_checkkey): Add grub_dprintf() call to report unknown
40995 scan codes.
40996
ee632529 409972008-05-29 Robert Millan <rmh@aybabtu.com>
40998
40999 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
41000 control key combinations.
41001
eee96e08 410022008-05-29 Robert Millan <rmh@aybabtu.com>
41003
41004 * util/powerpc/ieee1275/grub-install.in: Move from here ...
41005 * util/ieee1275/grub-install.in: ... to here.
41006 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
41007 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
41008 (grub_install_SOURCES): Likewise.
41009
da9a6a94 410102008-05-29 Robert Millan <rmh@aybabtu.com>
41011
41012 * fs/affs.c: Update copyright year.
41013 * fs/ext2.c: Likewise.
41014 * fs/fshelp.c: Likewise.
41015 * fs/hfsplus.c: Likewise.
41016 * fs/ntfs.c: Likewise.
41017 * fs/xfs.c: Likewise.
41018 * include/grub/fshelp.h: Likewise.
41019 * util/grub-mkdevicemap.c: Likewise.
41020
12e65f3a 410212008-05-28 Robert Millan <rmh@aybabtu.com>
41022
41023 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
41024 might need to be fatfs to support some firmware implementations
41025 (e.g. OFW or EFI).
41026
23023641 410272008-05-28 Robert Millan <rmh@aybabtu.com>
41028
41029 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
41030 devices.
41031 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41032 (make_device_map): Likewise.
41033
887d2619 410342008-05-20 Bean <bean123ch@gmail.com>
41035
41036 * fs/fshelp.c (grub_fshelp_map_block): New function.
41037 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
41038 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
41039
41040 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
41041 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
41042 (grub_fshelp_journal): New structure.
41043 (grub_fshelp_map_block): New function prototype.
41044 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
41045 (grub_fshelp_map_block): Likewise.
41046
41047 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
41048 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
41049 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
41050 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
41051 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
41052 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
41053 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
41054 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
41055 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
41056 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
41057 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
41058 (grub_ext2_sblock): New members for journal support.
41059 (grub_ext3_journal_header): New structure.
41060 (grub_ext3_journal_revoke_header): Likewise.
41061 (grub_ext3_journal_block_tag): Likewise.
41062 (grub_ext3_journal_sblock): Likewise.
41063 (grub_fshelp_node): New members logfile and journal.
41064 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
41065 grub_fshelp_map_block to get real block number.
41066 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
41067 number.
41068 (grub_ext2_read_inode): Likewise.
41069 (grub_ext3_get_journal): New function.
41070 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
41071 (grub_ext2_close): Release memory used by journal.
41072
41073 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
41074 (REISERFS_MAGIC_DESC_BLOCK): New macro.
41075 (grub_reiserfs_transaction_header): Renamed to
41076 grub_reiserfs_description_block, replace field data with real_blocks.
41077 (grub_reiserfs_commit_block): New structure.
41078 (grub_reiserfs_data): New member journal.
41079 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
41080 number.
41081 (grub_reiserfs_read_symlink): Likewise.
41082 (grub_reiserfs_iterate_dir): Likewise.
41083 (grub_reiserfs_open): Likewise.
41084 (grub_reiserfs_read): Likewise.
41085 (grub_reiserfs_get_journal): New function.
41086 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
41087 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
41088 using grub_reiserfs_get_journal.
41089 (grub_reiserfs_close): Release memory used by journal.
41090
41091 * fs/affs.c (grub_affs_read_block): Change block type to
41092 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
41093
41094 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
41095
41096 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
41097
41098 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
41099
41100 * fs/udf.c (grub_udf_read_block): Change block type to
41101 grub_disk_addr_t. Use type cast to avoid warning.
41102
41103 * fs/xfs.c (grub_xfs_read_block): Likewise.
41104
b7c6bed5 411052008-05-16 Christian Franke <franke@computer.org>
41106
41107 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
41108 to ensure that break with ESC will always work.
41109 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
41110 Remove ESC from keyboard queue.
41111
eedf167f 411122008-05-16 Christian Franke <franke@computer.org>
41113
41114 * util/biosdisk.c: [__CYGWIN__] Add includes.
41115 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
41116 (get_os_disk): Move variable declarations to OS specific
41117 parts to avoid warning.
41118 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
41119 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
41120 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
41121 Cygwin.
41122 * util/getroot.c: [__CYGWIN__] Add includes.
41123 (strip_extra_slashes): Fix "/" case.
41124 [__CYGWIN__] (get_win32_path): New function.
41125 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
41126 [__CYGWIN__] (find_root_device): Disable.
41127 [__CYGWIN__] (get_bootsec_serial): New function.
41128 [__CYGWIN__] (find_cygwin_root_device): Likewise.
41129 [__linux__] (grub_guess_root_device): Add early returns to simplify
41130 structure.
41131 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
41132 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
41133 check for Linux only.
41134
a079699e 411352008-05-15 Bean <bean123ch@gmail.com>
41136
41137 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
41138 keyboard hang problem in apple's intel mac.
41139
1cf4059a 411402008-05-09 Robert Millan <rmh@aybabtu.com>
41141
41142 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
41143 devices.
41144 * util/grub-mkdevicemap.c (get_virtio_disk_name)
41145 (make_device_map): Likewise.
41146 Reported by Aurelien Jarno <aurel32@debian.org>
41147
ed759390 411482008-05-07 Ian Campbell <ijc@hellion.org.uk>
41149
41150 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
41151 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
41152 (make_device_map): Output entries for xvd type disks.
41153
b56c4eaa 411542008-05-07 Robert Millan <rmh@aybabtu.com>
41155
41156 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
41157 devices.
41158 * util/grub-mkdevicemap.c (get_cciss_disk_name)
41159 (make_device_map): Likewise.
41160 Reported by Roland Dreier <rdreier@cisco.com>
41161
7f8866ed 411622008-05-07 Robert Millan <rmh@aybabtu.com>
41163
41164 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
41165 grub_strstr() call. Correct a few mistakes in failure path handling.
41166
b0346e0f 411672008-05-06 Robert Millan <rmh@aybabtu.com>
41168
41169 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
41170 Do not print a trailing slash (therefore, the root directory is an
41171 empty string).
41172 (convert_system_path_to_grub_path): Do not remove trailing slash
41173 from make_system_path_relative_to_its_root() output.
41174
41175 * util/i386/pc/grub-install.in: Add trailing slash to output from
41176 make_system_path_relative_to_its_root().
41177
6cf12cbd 411782008-05-06 Robert Millan <rmh@aybabtu.com>
41179
41180 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
41181 ensures that output lines aren't intermangled with those sent to
41182 stderr (via grub_util_info()).
41183 * util/grub-probe.c (grub_refresh): Likewise.
41184 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
41185
0fbb3117 411862008-05-05 Christian Franke <franke@computer.org>
41187
41188 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
41189 Add Cygwin device names.
41190 (get_ide_disk_name) [__CYGWIN__]: Likewise.
41191 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
41192 (check_device): Return error instead of success on empty name.
41193 (make_device_map): Move label inside linux specific code to
41194 prevent compiler warning.
41195
8124cdb7 411962008-04-30 Robert Millan <rmh@aybabtu.com>
41197
41198 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
41199 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
41200 first boot option.
41201 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
41202
094c01d0 412032008-04-29 Robert Millan <rmh@aybabtu.com>
41204
41205 * docs/grub.cfg: New file (example GRUB configuration).
41206
f4b1fc02 412072008-04-26 Robert Millan <rmh@aybabtu.com>
41208
329ce2a5 41209 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
41210 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
41211 and `disk/ieee1275/nand.c'.
f4b1fc02 41212
25f16ec1 412132008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 41214
25f16ec1 41215 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
41216 i386-linuxbios.
41217
41218 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
41219 change the buffer size to 4096 for cdrom device.
41220
41221 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
41222 and nand.mod.
41223 (_linux_mod_SOURCES): New variable.
41224 (_linux_mod_CFLAGS): Likewise.
41225 (_linux_mod_LDFLAGS): Likewise.
41226 (linux_mod_SOURCES): Likewise.
41227 (linux_mod_CFLAGS): Likewise.
41228 (linux_mod_LDFLAGS): Likewise.
41229 (nand_mod_SOURCES): Likewise.
41230 (nand_mod_CFLAGS): Likewise.
41231 (nand_mod_LDFLAGS): Likewise.
41232
41233 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
41234 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
41235 type property. (nand device in olpc don't have this property)
41236
41237 * include/grub/disk.h (grub_disk_dev_id): New macro
41238 GRUB_DISK_DEVICE_NAND_ID.
41239
41240 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
41241 function prototype.
41242 (grub_rescue_cmd_initrd): Likewise.
41243
41244 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
41245 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
41246 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 41247
25f16ec1 41248 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
41249 GRUB_MACHINE_IEEE1275 is defined.
41250
41251 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
41252 Use NESTED_FUNC_ATTR attribute on the hook parameter.
41253
41254 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
41255 on nested function heap_init.
41256 (grub_upper_mem): New variable for i386-ieee1275.
41257 (grub_get_extended_memory): New function for i386-ieee1275.
41258 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
41259
41260 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
41261 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
41262 property.
f19dbdb7 41263
25f16ec1 41264 * loader/i386/ieee1275/linux.c: New file.
41265
41266 * loader/i386/ieee1275/linux_normal.c: New file.
41267
41268 * disk/ieee1275/nand.c: New file.
41269
e89d61e9 412702008-04-18 Thomas Schwinge <tschwinge@gnu.org>
41271
41272 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
41273 value.
41274 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
41275
602566f6 412762008-04-18 Robert Millan <rmh@aybabtu.com>
41277
41278 Restructures early code path on ieee1275 to unify grub_main() as
41279 the first C function that is executed in every platform.
41280
41281 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
41282 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
41283 cmain().
41284 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
41285 * kern/ieee1275/cmain.c (cmain): Rename to ...
41286 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
41287 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
41288 at the beginning.
41289
57490c2b 412902008-04-18 Robert Millan <rmh@aybabtu.com>
41291
41292 * util/update-grub.in: Fix syntax error when setting
41293 `GRUB_PRELOAD_MODULES'.
41294 Reported by Stephane Chazelas <stephane@artesyncp.com>
41295
1977517d 412962008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
41297
41298 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
41299 section into account, newer toolchains generate unique build ids
41300 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 41301 we want build ids to be preserved
1977517d 41302 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
41303 far from other sections don't cause the raw binary images grow
41304 size
41305
bfb1f1a2 413062008-04-15 Robert Millan <rmh@aybabtu.com>
41307
41308 * disk/lvm.c: Update copyright year.
41309 * kern/misc.c: Likewise.
41310
01979850 413112008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41312
41313 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 41314 there is no memory left for physical volume name.
01979850 41315
0a1150e2 413162008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41317
41318 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
41319 volume name mapping to support bigger than 9 character names properly.
41320
82ead3fe 413212008-04-13 Robert Millan <rmh@aybabtu.com>
41322
41323 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
41324 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
41325
e54a72f5 413262008-04-13 Christian Franke <franke@computer.org>
41327
41328 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
41329 to create a floppy emulation boot CD when non emulation mode
41330 does not work.
41331 Enable Joliet CD filesystem extension.
41332
9fe86034 413332008-04-13 Robert Millan <rmh@aybabtu.com>
41334
41335 * kern/misc.c (grub_strncat): Fix off-by-one error.
41336 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
41337
41338 * kern/env.c (grub_env_context_close): Clear current context, not
41339 previous one.
41340 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
41341
41342 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
41343
7ceeee39 413442008-04-13 Robert Millan <rmh@aybabtu.com>
41345
41346 Improve robustness when handling LVM.
41347
41348 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 41349 (and leave `*p' unmodified).
7ceeee39 41350 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
41351 through it.
41352 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
41353 iterating through it.
41354 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
41355 through it.
fe6b695a 41356 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 41357 when due) on each grub_lvm_getvalue() or grub_strstr() call.
41358 Don't assume `vg->pvs != NULL' when iterating through it.
41359
58cd3d85 413602008-04-13 Robert Millan <rmh@aybabtu.com>
41361
41362 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
41363 * genmk.rb (partmap): New variable.
41364 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
41365 (#{partmap}): New target rule.
41366 * genpartmaplist.sh: New file.
41367 * Makefile.in (pkglib_DATA): Add partmap.lst.
41368 (partmap.lst): New target rule.
41369 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
41370 modules (including all partition maps), instead of preloading them.
41371
78b51059 413722007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
41373
41374 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
41375 `linux-boot-prober' (if installed) to detect other operating
41376 systems which are installed on the computer and add them to
41377 the boot menu.
41378 * conf/common.rmk: Build and install 30_os-prober.
41379
a91627b4 413802008-04-12 Robert Millan <rmh@aybabtu.com>
41381
41382 * kern/powerpc/ieee1275/init.c: Move from here ...
41383 * kern/ieee1275/init.c: ... to here. Update all users.
41384
41385 * kern/powerpc/ieee1275/cmain.c: Move from here ...
41386 * kern/ieee1275/cmain.c: ... to here. Update all users.
41387
41388 * kern/powerpc/ieee1275/openfw.c: Move from here ...
41389 * kern/ieee1275/openfw.c: ... to here. Update all users.
41390
41391 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
41392 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
41393
322562ea 413942008-04-10 Pavel Roskin <proski@gnu.org>
41395
41396 * configure.ac: Always use "_cv_" in cache variables for
41397 compatibility with Autoconf 2.62.
41398
a02a73c5 413992008-04-07 Robert Millan <rmh@aybabtu.com>
41400
41401 Revert grub/machine/init.h addition by Pavel (since it breaks on
41402 i386-ieee1275 and others):
41403 * util/i386/pc/misc.c: Remove grub/machine/init.h.
41404 * util/powerpc/ieee1275/misc.c: Likewise.
41405
25c024b1 414062008-04-07 Robert Millan <rmh@aybabtu.com>
41407
41408 * util/grub-probe.c (probe): Improve error message.
41409
3cbd2f98 414102008-04-07 Robert Millan <rmh@aybabtu.com>
41411
41412 * util/biosdisk.c (read_device_map): Skip devices that don't exist
41413 (this prevents the presence of a bogus entry from ruining the whole
41414 thing).
41415
87a297bf 414162008-04-06 Pavel Roskin <proski@gnu.org>
41417
36747a62 41418 * util/biosdisk.c: Include grub/util/biosdisk.h.
41419 * util/grub-fstest.c (execute_command): Make static.
41420 * util/grub-mkdevicemap.c (check_device): Likewise.
41421 * util/i386/pc/misc.c: Include grub/machine/init.h.
41422 * util/powerpc/ieee1275/misc.c: Likewise.
41423 * util/lvm.c: Include grub/util/lvm.h.
41424 * util/misc.c: Include grub/kernel.h, grub/misc.h and
41425 grub/cache.h.
41426 * util/raid.c: Include grub/util/raid.h.
41427 (grub_util_getdiskname): Make static.
41428
87a297bf 41429 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
41430 grub_hostfs_fini(), as they are called from grub_init_all() and
41431 grub_fini_all() respectively. This fixes an infinite loop in
41432 grub-fstest due to double registration of hostfs.
41433 Reported by Christian Franke <Christian.Franke@t-online.de>
41434
f6ce7629 414352008-04-05 Pavel Roskin <proski@gnu.org>
41436
41437 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
41438 all 8 functions. Otherwise, probe function 0 only.
41439
070e49e4 414402008-04-04 Pavel Roskin <proski@gnu.org>
41441
8b088a4c 41442 * commands/lspci.c (grub_lspci_iter): Print the bus number
41443 correctly.
41444
4f657021 41445 * commands/lspci.c (grub_pci_classes): Fix typos.
41446 (grub_lspci_iter): Don't print func twice. Print vendor ID
41447 before device ID, as it's normally done.
41448
070e49e4 41449 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41450 Fix signedness warnings.
41451 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
41452 Likewise.
41453 * util/ieee1275/get_disk_name.c: Include config.h so that
41454 _GNU_SOURCE is defined and getline() is declared. Mark an
41455 unused argument as such. Fix a signedness warning.
41456
ba7328dc 414572008-04-02 Pavel Roskin <proski@gnu.org>
41458
26887f22 41459 * genkernsyms.sh.in: Use more robust assignments for CC and
41460 srcdir. Quote srcdir.
41461 * gensymlist.sh.in: Likewise. Assert at the compile time that
41462 the symbol table is not empty.
41463
ba7328dc 41464 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
41465 * fs/cpio.c (grub_cpio_read): Likewise.
41466
0f582c6b 414672008-04-01 Pavel Roskin <proski@gnu.org>
41468
4b6e1995 41469 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
41470 * disk/host.c (grub_host_open): Likewise.
41471 * disk/loopback.c (grub_loopback_open): Likewise.
41472 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
41473 disk->id as in disk/host.c, not a multi-character constant.
41474
828a2768 41475 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
41476 later is obsolete, potentially dangerous and sets a bad example.
41477 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
41478 * util/misc.c (grub_util_get_image_size): Likewise.
41479
2bb4fb47 41480 * disk/loopback.c (options): Improve help for "--partitions".
41481
0f582c6b 41482 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
41483 options to align them with the short options, e.g. "echo -e".
41484
a33224e0 414852008-03-31 Bean <bean123ch@gmail.com>
41486
41487 * video/reader/png.c (grub_png_data): New member is_16bit and
41488 image_data.
41489 (grub_png_decode_image_header): Detect 16 bit png image.
41490 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
41491 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
41492 (grub_video_reader_png): Release memory occupied by image_data.
41493
41494 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
41495 4096 bytes.
41496 (grub_nfs_mount): Skip the test for sector per cluster.
41497
41498 * include/grub/ntfs.h (MAX_SPC): Removed.
41499
86cb4f54 415002008-03-31 Bean <bean123ch@gmail.com>
41501
41502 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
41503 (grub_probe_SOURCES): Add fs/afs.c.
41504 (grub_fstest_SOURCES): Likewise.
41505 (afs_mod_SOURCES): New variable.
41506 (afs_mod_CFLAGS): Likewise.
41507 (afs_mod_LDFLAGS): Likewise.
41508
41509 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
41510 (grub_emu_SOURCES): Likewise.
41511
41512 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41513
41514 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41515
41516 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41517
41518 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41519
41520 * fs/afs.c: New file.
41521
17c74c21 415222008-03-30 Pavel Roskin <proski@gnu.org>
41523
4cb68e89 41524 * disk/host.c: Include grub/misc.h to fix a warning.
41525 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
41526 warnings about implicit declarations.
41527
8790bb04 41528 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
41529 variable.
41530 * include/grub/i386/loader.h: Change declaration of
41531 grub_linux_boot() to match what grub_loader_set() expects.
41532 * util/getroot.c (grub_guess_root_device): Return const char* to
41533 fix a warning.
41534 * util/grub-probe.c (probe): Fix a warning about uninitialized
41535 abstraction_name variable.
41536 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
41537 second argument as unused to fix a warning.
41538
9a3f3296 41539 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
41540 missing grub_error() call.
41541
0ecef90d 41542 * util/update-grub_lib.in: Define datarootdir, since Autoconf
41543 2.60 and newer uses it to define datadir.
41544
0bf6d401 41545 * commands/sleep.c: Fix warning about implicit declaration.
41546 * disk/memdisk.c: Likewise.
41547 * loader/aout.c: Likewise.
41548 * loader/i386/bsd_normal.c: Likewise.
41549 * util/grub-probe.c: Likewise.
41550
7cdacf97 41551 * commands/i386/cpuid.c (has_longmode): Make static.
41552 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
41553 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
41554
17c74c21 41555 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
41556 GDT. This is more robust, as %ds can change.
41557 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
41558 calling real_to_prot().
41559 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
41560
80a3e68b 415612008-03-28 Pavel Roskin <proski@gnu.org>
41562
41563 * kern/i386/pc/startup.S: Assert that uncompressed functions
41564 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
41565 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
41566 code, as they push parts of the code (error handlers) beyond
41567 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
41568 code as correctness and size.
41569
77bcd272 415702008-03-28 Pavel Roskin <proski@gnu.org>
41571
41572 * kern/i386/pc/startup.S
41573 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
41574 data block address to the real mode, keep offset minimal. This
41575 works around a bug in AWARD BIOS on old Athlon systems, which
41576 makes CD detection hang.
41577
c5dfd43b 415782008-03-26 Pavel Roskin <proski@gnu.org>
41579
41580 * normal/color.c (grub_parse_color_name_pair): Make `name' a
41581 const.
41582 * include/grub/normal.h: Add grub_parse_color_name_pair()
41583 declaration.
41584
bf962df2 415852008-03-24 Bean <bean123ch@gmail.com>
41586
41587 * disk/i386/pc/biosdisk.c (cd_start): Removed.
41588 (cd_count): Removed.
41589 (cd_drive): New variable.
41590 (grub_biosdisk_get_drive): Don't check for (cdN) device.
41591 (grub_biosdisk_call_hook): Likewise.
41592 (grub_biosdisk_iterate): Change cdrom detection method.
41593 (grub_biosdisk_open): Replace cd_start with cd_drive.
41594 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
41595 detect cdrom device.
41596
41597 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
41598 Removed.
41599 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
41600 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
41601 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
41602 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
41603 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
41604 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
41605 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
41606 (grub_biosdisk_cdrp): New structure.
41607 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
41608
41609 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
41610
41611 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
41612 device.
41613
41614 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
41615 New function.
41616
68e7fc7a 416172008-03-20 Robert Millan <rmh@aybabtu.com>
41618
41619 Remove 2 TiB limit in ata.mod.
41620 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
41621 (grub_ata_dumpinfo): Print sector count with 0x%llx.
41622 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
41623 grub_uint64_t instead of grub_uint32_t.
41624
38ad2cf5 416252008-03-05 Bean <bean123ch@gmail.com>
41626
41627 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
41628 (grub_multiboot): Set boot device.
41629
41630 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
41631
2b89344e 416322008-03-02 Bean <bean123ch@gmail.com>
41633
41634 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
41635 symlink_buffer.
41636
87a95d1f 416372008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
41638
41639 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
41640 texinfo.tex.
41641
41642 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
41643 modified.
41644
41645 * docs/fdl.texi: New file.
f19dbdb7 41646
87a95d1f 41647 * docs/mdate-sh: New file. Copied from gnulib.
41648 * docs/texinfo.tex: Likewise.
41649
41650 * config.guess: Updated from gnulib.
41651 * install-sh: Likewise.
41652
7dc15d8e 416532008-02-28 Robert Millan <rmh@aybabtu.com>
41654
41655 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
41656 (aout_mod_SOURCES): New variable.
41657 (aout_mod_CFLAGS): Likewise.
41658 (aout_mod_LDFLAGS): Likewise.
41659
41660 * conf/i386-ieee1275.rmk: Likewise.
41661
b00ab696 416622008-02-28 Robert Millan <rmh@aybabtu.com>
41663
41664 * util/update-grub.in: Reorganise terminal validity check. Accept
41665 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
41666 Based on suggestion by Franklin PIAT.
41667
79ca2d78 416682008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
41669
41670 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
41671 function.
41672 * util/getroot.c (grub_util_check_block_device): New function that
41673 returns the given argument if it is a block device and returns NULL else.
41674 * util/grub-probe.c (argument_is_device): New variable.
41675 (probe): Promote device_name from a variable to an argument. Receive
41676 device_name from grub_util_check_block_device() if path is NULL and from
41677 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 41678 (options): Introduce new parameter '-d, --device'.
79ca2d78 41679 (main): Add description of the new parameter to the help screen.
41680 Rename path variable to argument. Set argument_is_device if the '-d'
41681 option is given. Pass argument to probe() depending on
41682 argument_is_device.
41683
0d16e571 416842008-02-24 Bean <bean123ch@gmail.com>
41685
41686 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
41687 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
41688 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
41689 (GRUB_ISO9660_VOLDESC_PART): Likewise.
41690 (GRUB_ISO9660_VOLDESC_END): Likewise.
41691 (grub_iso9660_primary_voldesc): New member escape.
41692 (grub_iso9660_data): New member joliet.
41693 (grub_iso9660_convert_string): New function.
41694 (grub_iso9660_mount): Detect joliet extension.
41695 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
41696 (grub_iso9660_iso9660_label): Likewise.
41697
41698 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
41699 (grub_setup_SOURCES): Add fs/udf.c.
41700 (grub_fstest_SOURCES): Likewise.
41701 (udf_mod_SOURCES): New variable.
41702 (udf_mod_CFLAGS): Likewise.
41703 (udf_mod_LDFLAGS): Likewise.
41704
41705 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
41706 (grub_emu_SOURCES): Likewise.
41707
41708 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41709
41710 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41711
41712 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41713
41714 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41715
41716 * fs/udf.c: New file.
41717
8a594a17 417182008-02-24 Robert Millan <rmh@aybabtu.com>
41719
41720 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
41721 (normal/lexer.c_DEPENDENCIES): New variables.
41722 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
41723 (normal/lexer.c_DEPENDENCIES): Likewise.
41724 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
41725 (normal/lexer.c_DEPENDENCIES): Likewise.
41726 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
41727 (normal/lexer.c_DEPENDENCIES): Likewise.
41728 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
41729 (normal/lexer.c_DEPENDENCIES): Likewise.
41730 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
41731 (normal/lexer.c_DEPENDENCIES): Likewise.
41732
2dc33c03 417332008-02-23 Robert Millan <rmh@aybabtu.com>
41734
41735 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
41736 since they were intended to be in hex. This didn't break previously
41737 because of a bug in gpt_partition_map_iterate() (see below).
41738
41739 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
41740 when checking the validity of GPT header.
41741 Remove `partno', since it always provides the same information as `i'.
41742
f6f4cfb0 417432008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
41744
41745 * include/grub/efi/time.h: Fix a wrong comment.
41746
79ff665f 417472008-02-19 Pavel Roskin <proski@gnu.org>
41748
41749 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
41750 message.
41751
d38e24c2 417522008-02-19 Bean <bean123ch@gmail.com>
41753
41754 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
41755 (aout_mod_SOURCES): New variable.
41756 (aout_mod_CFLAGS): Likewise.
41757 (aout_mod_LDFLAGS): Likewise.
41758 (_bsd_mod_SOURCES): New variable.
41759 (_bsd_mod_CFLAGS): Likewise.
41760 (_bsd_mod_LDFLAGS): Likewise.
41761 (bsd_mod_SOURCES): New variable.
41762 (bsd_mod_CFLAGS): Likewise.
41763 (bsd_mod_LDFLAGS): Likewise.
41764
41765 * include/grub/aout.h: New file.
41766
41767 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
41768
41769 * include/grub/i386/bsd.h: New file.
41770
41771 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
41772 to make it public.
41773
41774 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
41775 function is called, so that it's possible to change it inside the hook.
41776 (grub_elf64_load): Likewise.
41777 (grub_elf_file): Don't close the file if elf header is not found.
41778 (grub_elf_close): Close the file if grub_elf_file fails (The new
41779 grub_elf_file won't close it).
41780 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
41781 (grub_elf64_size): Likewise.
41782
41783 * kern/i386/loader.S (grub_unix_real_boot): New function.
41784
41785 * loader/aout.c: New file.
41786
41787 * loader/i386/bsd.c: New file.
41788
41789 * loader/i386/bsd_normal.c: New file.
41790
41791 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
41792
41793 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 41794 can test other formats.
d38e24c2 41795
b93bdb0f 417962008-02-19 Robert Millan <rmh@aybabtu.com>
41797
41798 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
41799 (grub_gpt_partition_type_empty): Redefine with macro from
41800 `<grub/gpt_partition.h>'.
41801 (gpt_partition_map_iterate): Adjust partition type comparison.
41802
41803 Export `entry' as partmap-specific `part.data' struct.
41804 (grub_gpt_header, grub_gpt_partentry): Move from here ...
41805
41806 * include/grub/gpt_partition.h (grub_gpt_header)
41807 (grub_gpt_partentry): ... to here (new file).
41808
41809 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
41810
41811 (grub_gpt_partition_type_bios_boot): New const variable, defined
41812 with macro from `<grub/gpt_partition.h>'.
41813
41814 (setup): Replace `first_start' with `embed_region', which keeps
41815 track of the embed region (and is partmap-agnostic).
41816
41817 Replace find_first_partition_start() with find_usable_region(),
41818 which finds a usable region for embedding using partmap-specific
41819 knowledge (supports PC/MSDOS and GPT).
41820
41821 Fix all assumptions that the embed region start at sector 1, using
41822 `embed_region.start' from now on. Similarly, use `embed_region.end'
41823 rather than `first_start' to calculate available size.
41824
41825 In grub_util_info() message, replace "into after the MBR" with an
41826 indication of the specific sector our embed region starts at.
41827
66cb40f6 418282008-02-19 Robert Millan <rmh@aybabtu.com>
41829
41830 * DISTLIST: Replace `commands/ieee1275/halt.c' and
41831 `commands/ieee1275/reboot.c' with `commands/halt.c' and
41832 `commands/reboot.c'.
41833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
41834 (halt_mod_SOURCES): Likewise.
41835 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
41836 (halt_mod_SOURCES): Likewise.
41837
b7202015 418382008-02-17 Christian Franke <franke@computer.org>
41839
41840 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
41841
32b0fc49 418422008-02-17 Robert Millan <rmh@aybabtu.com>
41843
41844 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
41845 set `first_start' to 0 for non-PC/MSDOS partition maps.
41846
aca63502 418472008-02-16 Robert Millan <rmh@aybabtu.com>
41848
41849 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
41850 do not assume partition map is PC/MSDOS before performing checks that
41851 are specific to that layout.
41852
0de8be86 418532008-02-13 Robert Millan <rmh@aybabtu.com>
41854
41855 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
41856 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
41857 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
41858
c3db8364 418592008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
41860
41861 * configure.ac: Only a cosmetic change on the handling of
41862 -fno-stack-protector.
41863
f714229e 418642008-02-12 Alexandre Boeglin <alex@boeglin.org>
41865
c3db8364 41866 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
41867 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
41868 reboot.c.
f714229e 41869 (grub_install_SOURCES): Add halt.mod and reboot.mod.
41870 (halt_mod_SOURCES): New variable.
41871 (halt_mod_CFLAGS): Likewise.
41872 (halt_mod_LDFLAGS): Likewise.
41873 (reboot_mod_SOURCES): Likewise.
41874 (reboot_mod_CFLAGS): Likewise.
41875 (reboot_mod_LDFLAGS): Likewise.
41876
c3db8364 41877 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
41878 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
41879 reboot.c.
f714229e 41880 (halt_mod_SOURCES): Likewise.
41881 (reboot_mod_SOURCES): Likewise.
41882
c3db8364 41883 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
41884 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 41885 (reboot_mod_SOURCES): Likewise.
41886
41887 * commands/i386/pc/reboot.c: merge this file ...
41888
41889 * commands/ieee1275/reboot.c: ... and this file ...
41890
41891 * commands/reboot.c: ... to this file.
c3db8364 41892 Add some precompiler directive to include the correct header for
41893 each machine.
f714229e 41894
41895 * commands/ieee1275/halt.c: move this file ...
41896
41897 * commands/halt.c: ... to here.
c3db8364 41898 Add some precompiler directive to include the correct header for
41899 each machine.
f714229e 41900
41901 * include/grub/efi/efi.h (grub_reboot): New function declaration.
41902 (grub_halt): Likewise.
41903
41904 * kern/efi/efi.c (grub_reboot): New function.
41905 (grub_halt): Likewise.
41906
c74493e0 419072008-02-12 Robert Millan <rmh@aybabtu.com>
41908
41909 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
41910 /dev (like it is done for /dev/mapper). This doesn't provide support
41911 for EVMS, but at least it is now easy to identify the problem when it
41912 arises.
41913
d0db4b04 419142008-02-11 Robert Millan <rmh@aybabtu.com>
41915
41916 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
41917 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
41918 comparing it with -1, not 0.
41919
bf748642 419202008-02-10 Robert Millan <rmh@aybabtu.com>
41921
41922 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
41923 `disk/lvm.c'.
41924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41925 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
41926
41927 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
41928 `disk/lvm.c' to the end of the list.
41929 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41930 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41931
b5db202a 419322008-02-10 Robert Millan <rmh@aybabtu.com>
41933
41934 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
41935 grub_print_error() instead. This will let user know why we're entering
41936 rescue mode.
41937 Based on suggestions from Sam Morris.
41938
83abee31 419392008-02-10 Alexandre Boeglin <alex@boeglin.org>
41940
41941 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
41942 on remaining N args, instead of "--" arg N times.
41943
78d5a08b 419442008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
41945
41946 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
41947 (fill_with_default_glyph): Changed to use unknown_glyph for fill
41948 pattern for unknown glyphs.
41949
68807e5f 419502008-02-09 Robert Millan <rmh@aybabtu.com>
41951
41952 * configure.ac: Probe for `help2man'.
41953 * Makefile.in (builddir): New variable.
41954 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
41955 or otherwise add a few flags/options to it.
41956 (install-local): For every executable utility or script that is
41957 installed, invoke $(HELP2MAN) to install a manpage based on --help
41958 output.
41959
41960 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
41961 that it doesn't prevent --help from working in build tree.
41962
41963 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
41964 with `bug-grub@gnu.org'.
41965 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
41966 * util/update-grub.in (usage): New function.
41967 Implement proper argument check, with support for --help and --version
41968 (as well as existing -y).
41969
419702008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 41971
41972 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
41973 avoid overwriting previous output.
41974 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
41975
c1962162 419762008-02-09 Robert Millan <rmh@aybabtu.com>
41977
41978 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
41979 drawing the menu.
41980
3dac2e3f 419812008-02-09 Robert Millan <rmh@aybabtu.com>
41982
41983 * commands/sleep.c: New file.
41984 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
41985 (sleep_mod_SOURCES): New variable.
41986 (sleep_mod_CFLAGS): Likewise.
41987 (sleep_mod_LDFLAGS): Likewise.
41988
7a634e08 419892008-02-09 Robert Millan <rmh@aybabtu.com>
41990
41991 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
41992 situations in which we can deduce the RAID size and the superblock
41993 doesn't match it.
41994
b92f0c18 419952008-02-09 Robert Millan <rmh@aybabtu.com>
41996
41997 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
41998 and return a grub_diskmemberlist_t composed of LVM physical volumes.
41999 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
42000
42001 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
42002 and return a grub_diskmemberlist_t composed of physical array members.
42003 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
42004
42005 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
42006 prototype.
42007 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
42008 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
42009 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
42010
42011 * util/grub-probe.c (probe): Move partmap probing code from here ...
42012 (probe_partmap): ... to here.
42013 (probe): Use probe_partmap() once for the disk we're probing, and
42014 additionally, when such disk contains a memberlist() struct member,
42015 once for each disk that is contained in the structure returned by
42016 memberlist().
42017
91a4bf68 420182008-02-09 Robert Millan <rmh@aybabtu.com>
42019
42020 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
42021 environment variable to 'all' in order to obtain debug output from
42022 non-util/ code.
42023 * util/i386/pc/grub-setup.c (main): Likewise.
42024
a96f9caa 420252008-02-08 Robert Millan <rmh@aybabtu.com>
42026
42027 * disk/raid.c (grub_raid_scan_device): Check for
42028 `array->device[sb.this_disk.number]' rather than for
42029 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 42030 guaranteed to be accessible.
a96f9caa 42031
b37a9222 420322008-02-08 Robert Millan <rmh@aybabtu.com>
42033
42034 * disk/raid.c: Update copyright.
42035 * fs/cpio.c: Likewise.
42036 * include/grub/raid.h: Likewise.
42037 * loader/i386/pc/multiboot.c: Likewise.
42038 * util/hostfs.c: Likewise.
42039
5626aee1 420402008-02-08 Robert Millan <rmh@aybabtu.com>
42041
42042 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
42043 to a grub_disk_t array.
42044 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
42045 `device[x]'.
42046 (grub_raid_scan_device): Replace `device[x].name' accesses with
42047 `device[x]->name'. Simplify initialization of `array->device[x]'.
42048
554f0187 420492008-02-08 Robert Millan <rmh@aybabtu.com>
42050
42051 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
42052 grub_dprintf() calls.
42053 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
42054 error message.
42055
1ec8425d 420562008-02-07 Christian Franke <franke@computer.org>
42057
42058 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
42059 instead of fseek and ftell to support large files.
42060 (grub_hostfs_read): Likewise.
42061
f2156fda 420622008-02-07 Robert Millan <rmh@aybabtu.com>
42063
42064 Patch from Jeroen Dekkers.
42065 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 42066 failure, since successfully reading all array members might not be
f2156fda 42067 required.
42068
9216e0e7 420692008-02-06 Robert Millan <rmh@aybabtu.com>
42070
42071 * util/grub-probe.c (probe): Simplify partmap probing (with the
42072 assumption that the first word up to the underscore equals to
42073 the module name).
42074
b0dfd29a 420752008-02-06 Christian Franke <franke@computer.org>
42076
42077 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
42078 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
42079 last block of a cpio or tar stream.
42080 Check for "TRAILER!!!" instead of any empty data
42081 block to detect last block of a cpio stream.
42082 (grub_cpio_dir): Fix constness of variable np.
42083 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
42084 cpio or tar trailer is detected. This fixes a crash
42085 on open of a non existing file.
42086
c32865bf 420872008-02-05 Bean <bean123ch@gmail.com>
42088
42089 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
42090 address of entry.
42091 (grub_multiboot_load_elf64): Likewise.
42092 (grub_multiboot): Initialize mbi structure.
42093
42094 * util/grub-fstest.c: Don't include unused header file script.h.
42095
fe6b695a 42096 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 42097 of file.
42098 (grub_fstest_SOURCES): Likewise.
42099
409480b7 421002008-02-05 Robert Millan <rmh@aybabtu.com>
42101
42102 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
42103 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
42104 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
42105 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
42106
42107 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
42108 (translation_table): Replace hardcoded values with macros
42109 provided by `<grub/term.h>'.
42110
42111 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
42112 (keyboard_map): Correct/add a few values, with macros provided
42113 by `<grub/term.h>'.
42114 (keyboard_map_shift): Zero values that don't differ from their
42115 `keyboard_map' equivalents.
42116 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
42117 Discard the second scan code that is always sent by Caps lock.
42118 Only use `keyboard_map_shift' when it provides a non-zero value,
42119 otherwise fallback to `keyboard_map'.
42120
99fadbaa 421212008-02-04 Bean <bean123ch@gmail.com>
42122
42123 * Makefile.in (enable_grub_fstest): New variable.
42124
42125 * conf/common.rmk (grub_fstest_init.lst): New rule.
42126 (grub_fstest_init.h): Likewise.
42127 (grub_fstest_init.c): Likewise.
42128 (util/grub-fstest.c_DEPENDENCIES): New variable.
42129 (grub_fstest_SOURCES): Likewise.
42130
42131 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
42132
42133 * util/grub-fstest.c: New file.
42134
bf567c50 421352008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42136
42137 Make grub-setup handle a separate root device.
f19dbdb7 42138
bf567c50 42139 * util/i386/pc/grub-setup.c (setup): Always open the root device,
42140 so that the root device can be compared with the destination
42141 device.
42142 When embedding the core image, if the root and destination devices
42143 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
42144 0xFF.
42145 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 42146
9be6b98b 421472008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42148
42149 Add support for having a grub directory in a different drive. This
42150 is still only the data handling part.
f19dbdb7 42151
9be6b98b 42152 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
42153 (codestart): Save %dh in GRUB_ROOT_DRIVE.
42154 (grub_root_drive): New variable.
42155
42156 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
42157 instead of GRUB_BOOT_DRIVE to construct a device name. Set
42158 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
42159 as it was.
42160
42161 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
42162
42163 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
42164 macro.
42165 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
42166
42167 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
42168 is bogus, because PXE booting does not specify any drive
42169 correctly.
42170
42171 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
42172 am not sure if this is really correct.
42173
42174 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
42175 is always identical to the boot drive when booting from a CD.
42176
42177 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
42178 longer.
42179 (root_drive): New variable.
42180 (real_start): Unconditionally set %dh to ROOT_DRIVE.
42181 (setup_sectors): Push %dx right after popping it, because %dh will
42182 be modified later.
42183 (copy_buffer): Restore %dx.
42184
e0ca0677 421852008-02-03 Robert Millan <rmh@aybabtu.com>
42186
42187 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
42188 use `cdboot.img' for cdrom images.
42189
3b3f6629 421902008-02-03 Robert Millan <rmh@aybabtu.com>
42191
42192 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
42193 only setup gfxterm when `font' command has succeeded.
42194
d42b3672 421952008-02-03 Robert Millan <rmh@aybabtu.com>
42196
42197 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
42198 (grub_rescue_cmd_multiboot_loader)
42199 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
42200
fa370ea6 422012008-02-03 Pavel Roskin <proski@gnu.org>
42202
e0c5dacb 42203 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 42204 %edx and %esi from stack only after grub_gate_a20() is called.
42205 grub_gate_a20() clobbers %edx.
42206
f2a76e1d 422072008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42208
42209 * configure.ac (AC_INIT): Bumped to 1.96.
42210
42211 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
42212 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
42213 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
42214 video/readers/png.c.
42215
90fd32d1 422162008-02-03 Bean <bean123ch@gmail.com>
9be665dd 42217
42218 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
42219 (cdboot_img_SOURCES): New variable.
42220 (cdboot_img_ASFLAGS): New variable.
42221 (cdboot_img_LDFLAGS): New variable.
42222
42223 * boot/i386/pc/cdboot.S: New file.
42224
42225 * disk/i386/pc/biosdisk.c (cd_start): New variable.
42226 (cd_count): Likewise.
42227 (grub_biosdisk_get_drive): Add support for cd device.
42228 (grub_biosdisk_call_hook): Likewise.
42229 (grub_biosdisk_iterate): Likewise.
42230 (grub_biosdisk_open): Likewise.
42231 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
42232 (grub_biosdisk_rw): Support reading from cd device.
42233 (GRUB_MOD_INIT): Iterate cd devices.
42234
42235 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
42236 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
42237 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
42238
42239 * kern/i386/pc/init.c (make_install_device): Check for cd device.
42240
4020aa53 422412008-02-02 Robert Millan <rmh@aybabtu.com>
42242
42243 * commands/read.c: New file.
42244 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
42245 (read_mod_SOURCES): New variable.
42246 (read_mod_CFLAGS): Likewise.
42247 (read_mod_LDFLAGS): Likewise.
42248
e03a1132 422492008-02-02 Robert Millan <rmh@aybabtu.com>
42250
42251 * normal/main.c (grub_normal_execute): Check for `menu->size' when
42252 determining whether menu has to be displayed.
42253
58c69220 422542008-02-02 Marco Gerards <marco@gnu.org>
42255
42256 * bus/pci.c: New file.
42257
42258 * include/grub/pci.h: Likewise.
42259
42260 * include/grub/i386/pc/pci.h: Likewise.
42261
42262 * commands/lspci.c: Likewise.
42263
42264 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
42265 `lspci.mod'.
42266 (pci_mod_SOURCES): New variable.
42267 (pci_mod_CFLAGS): Likewise.
42268 (pci_mod_LDFLAGS): Likewise.
42269 (lspci_mod_SOURCES): Likewise.
42270 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 42271 (lspci_mod_LDFLAGS): Likewise.
58c69220 42272
c004e1b4 422732008-02-02 Bean <bean123ch@gmail.com>
42274
42275 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
42276 (grub_ufs_get_file_block): Fix indirect block calculation problem.
42277
42278 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
42279 (grub_xfs_btree_node): New structure.
42280 (grub_xfs_btree_root): New structure.
42281 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
42282 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
42283 (GRUB_XFS_EXTENT_BLOCK): Likewise.
42284 (GRUB_XFS_EXTENT_SIZE): Likewise.
42285 (grub_xfs_read_block): Support btree format type.
42286 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
42287 Use directory block as basic unit.
42288
42289 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
42290
42291 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
42292 __attribute__ ((__regparm__ (1))).
42293
f95562bf 422942008-02-01 Robert Millan <rmh@aybabtu.com>
42295
42296 Correct a mistake in previous commit.
42297
42298 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
42299 top.
42300 (normal/command.c_DEPENDENCIES): New variable.
42301
7d31f41f 423022008-02-01 Robert Millan <rmh@aybabtu.com>
42303
42304 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
42305 top.
42306 (normal/command.c_DEPENDENCIES): New variable.
42307 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
42308 * conf/i386-ieee1275.rmk: Likewise.
42309 * conf/i386-linuxbios.rmk: Likewise.
42310 * conf/i386-pc.rmk: Likewise.
42311 * conf/sparc64-ieee1275.rmk: Likewise.
42312 * conf/powerpc-ieee1275.rmk: Likewise.
42313 (grub_emu_SOURCES): Add `fs/fshelp.c'.
42314
42315 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
42316
60b6be74 423172008-02-01 Robert Millan <rmh@aybabtu.com>
42318
42319 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
42320 call at beginning of function.
42321
078522ab 423222008-01-31 Pavel Roskin <proski@gnu.org>
42323
42324 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 42325 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
42326 (grub_mkrescue_SOURCES): Likewise.
078522ab 42327 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
42328
ccaa8a5f 423292008-01-30 Robert Millan <rmh@aybabtu.com>
42330
42331 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
42332 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
42333 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
42334 (grub_probe_SOURCES): ... to here.
42335
42336 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
42337 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
42338 * conf/i386-ieee1275.rmk: Likewise.
42339 * conf/i386-linuxbios.rmk: Likewise.
42340 * conf/powerpc-ieee1275.rmk: Likewise.
42341
ae5a9cd7 423422008-01-30 Tristan Gingold <gingold@free.fr>
42343
42344 * kern/rescue.c: Silently accept empty lines.
42345
70bc2ef2 423462008-01-29 Bean <bean123ch@gmail.com>
42347
42348 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
42349 (real_code_2): Code cleanup and change comment style.
42350 (move_memory): Avoid using 32-bit address mode.
42351
6a4d50ea 423522008-01-29 Bean <bean123ch@gmail.com>
42353
42354 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
42355 (png_mod_SOURCES): New variable.
42356 (png_mod_CFLAGS): Likewise.
42357 (png_mod_LDFLAGS): Likewise.
42358
42359 * video/readers/png.c: New file.
42360
11cc30ac 423612008-01-28 Robert Millan <rmh@aybabtu.com>
42362
42363 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
42364 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
42365 `ifndef GRUB_MOD_GAP' hack.
42366 * util/elf/grub-mkimage.c (add_segments): Likewise.
42367
3abc589f 423682008-01-27 Robert Millan <rmh@aybabtu.com>
42369
42370 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
42371 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 42372 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 42373
e1907778 423742008-01-27 Robert Millan <rmh@aybabtu.com>
42375
42376 Get grub-emu to build again (including parallel builds).
42377
42378 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
42379 Split into ...
42380 (util/grub-emu.c_DEPENDENCIES): ... this, ...
42381 (normal/execute.c_DEPENDENCIES): ... this, ...
42382 (grub-emu_DEPENDENCIES): ... and this.
42383
42384 * conf/i386-efi.rmk: Likewise.
42385 * conf/i386-linuxbios.rmk: Likewise.
42386 * conf/i386-ieee1275.rmk: Likewise.
42387 * conf/powerpc-ieee1275.rmk: Likewise.
42388 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
42389
2216b101 423902008-01-27 Robert Millan <rmh@aybabtu.com>
42391
42392 * NEWS: Add a few items.
42393
f75172d9 423942008-01-27 Robert Millan <rmh@aybabtu.com>
42395
42396 Fix parallel builds with grub-emu. Based on earlier commit for
42397 grub-probe and grub-setup.
42398
42399 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42400 (util/grub-emu.c_DEPENDENCIES): ... this.
42401 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42402 (util/grub-emu.c_DEPENDENCIES): ... this.
42403 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42404 (util/grub-emu.c_DEPENDENCIES): ... this.
42405 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42406 (util/grub-emu.c_DEPENDENCIES): ... this.
42407 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42408 (util/grub-emu.c_DEPENDENCIES): ... this.
42409
3f51de77 424102008-01-27 Pavel Roskin <proski@gnu.org>
42411
42412 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
42413 to create a gap between _end and the modules added to the image
42414 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
42415 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
42416 * util/elf/grub-mkimage.c (add_segments): Likewise.
42417
2033f53e 424182008-01-26 Pavel Roskin <proski@gnu.org>
42419
42420 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
42421 just return an error.
42422
22da1f6f 424232008-01-26 Bean <bean123ch@gmail.com>
42424
42425 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
42426 (grub_reiserfs_get_item): Save offset of the next item.
42427 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
42428
2a9525e6 424292008-01-25 Robert Millan <rmh@aybabtu.com>
42430
42431 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
42432 make all filesystem sources appear together (possibly fixing omissions
42433 while at it).
42434 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42435 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42436 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42438
42439 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
42440 add `kern/file.c'.
42441 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
42442 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42443 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
42444 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42445
42446 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
42447 (probe): Add a sanity check to make sure of our ability to read
42448 requested files when probing for filesystem type.
42449
42450 * genmk.rb: Update copyright year (2007).
42451
42452 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
42453 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
42454 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
42455 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
42456 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
42457 : Remove function prototypes.
42458
b95f71b5 424592008-01-25 Robert Millan <rmh@aybabtu.com>
42460
42461 Revert my previous commits (based on wrong assumption of how grub_errno
42462 works).
42463
fe6b695a 42464 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 42465 * kern/file.c (grub_file_open): Likewise.
42466
d08bbb49 424672008-01-24 Pavel Roskin <proski@gnu.org>
42468
42469 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
42470 that hang if GRUB tries to setup colors.
42471 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
42472 colors for firmwares that don't support it.
42473 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
42474 Recognize Open Hack'Ware, set flags to work around its
42475 limitations.
42476
605e36ed 424772008-01-24 Robert Millan <rmh@aybabtu.com>
42478
42479 * kern/file.c (grub_file_open): Do not account previous failures of
42480 unrelated functions when grub_errno is checked for.
42481 Reported by Oleg Strikov.
42482
bac332a1 424832008-01-24 Bean <bean123ch@gmail.com>
42484
42485 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
42486 (grub_ufs_sblock): New member volume name.
42487 (grub_ufs_find_file): Fix string copy bug.
42488 (grub_ufs_label): Implement this function properly.
42489
42490 * fs/hfs.c (grub_hfs_cnid_type): New enum.
42491 (grub_hfs_iterate_records): Use the correct file number for extents
42492 and catalog file. Fix problem in next index calculation.
42493 (grub_hfs_find_node): Replace recursive function call with loop.
42494 (grub_hfs_iterate_dir): Replace recursive function call with loop.
42495
15c80c09 424962008-01-23 Robert Millan <rmh@aybabtu.com>
42497
42498 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
42499 `<grub/symbol.h>' and `<grub/multiboot.h>'.
42500 (grub_multiboot2_real_boot): New function prototype.
42501
42502 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
42503 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
42504
42505 * kern/i386/ieee1275/init.c (grub_os_area_addr)
42506 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
42507
305338fd 425082008-01-23 Robert Millan <rmh@aybabtu.com>
42509
42510 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
42511 #ifdef'ed out grub_printf().
42512
3ea52685 425132008-01-23 Robert Millan <rmh@aybabtu.com>
42514
42515 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
42516 grub_dprintf calls, since they make "debug=all" mode unusable.
42517 (grub_console_checkkey): Likewise.
42518
5882ae4b 425192008-01-23 Robert Millan <rmh@aybabtu.com>
42520
42521 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
42522 `term/i386/pc/at_keyboard.c'.
42523 (pkglib_MODULES): Add `serial.mod'.
42524 (serial_mod_SOURCES): New variable.
42525 (serial_mod_CFLAGS): Likewise.
42526 (serial_mod_LDFLAGS): Likewise.
42527
42528 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
42529 `<grub/powerpc/ieee1275/console.h>'.
42530 (grub_keyboard_controller_init): New function prototype.
42531 (grub_console_checkkey): Likewise.
42532 (grub_console_getkey): Likewise.
42533
42534 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
42535 keyboard on i386.
42536
42537 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
42538 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
42539
06ab5303 425402008-01-23 Robert Millan <rmh@aybabtu.com>
42541
42542 * kern/i386/pc/init.c (make_install_device): When memdisk image is
42543 present, "(memdisk)/boot/grub" becomes the default prefix.
42544
42545 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
42546 a memdisk tarball with all the modules. Add --overlay=DIR option that
42547 allows users to overlay additional files into the image.
42548
dbb475a4 425492008-01-23 Robert Millan <rmh@aybabtu.com>
42550
42551 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
42552 and `machine/memory.h'.
42553 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
42554 (_multiboot_mod_SOURCES): New variable.
42555 (_multiboot_mod_CFLAGS): Likewise.
42556 (_multiboot_mod_LDFLAGS): Likewise.
42557 (multiboot_mod_SOURCES): Likewise.
42558 (multiboot_mod_CFLAGS): Likewise.
42559 (multiboot_mod_LDFLAGS): Likewise.
42560
42561 * include/grub/i386/ieee1275/loader.h: New file.
42562
42563 * include/grub/i386/ieee1275/machine.h: Likewise.
42564
42565 * include/grub/i386/ieee1275/memory.h: Likewise.
42566
42567 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
42568 variable declaration.
42569 (grub_os_area_size): Likewise.
42570
42571 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
42572 (grub_lower_mem, grub_upper_mem): New variables.
42573 (grub_stop_floppy): New function (just to make
42574 grub_multiboot2_real_boot() happy).
42575
42576 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
42577 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
42578 (grub_stop): New function.
42579 Include `"../realmode.S"' and `"../loader.S"'.
42580
42581 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
42582 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
42583
42584 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
42585 rely on grub_multiboot2_real_boot() for final boot.
42586
25638629 425872008-01-22 Robert Millan <rmh@aybabtu.com>
42588
42589 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
42590 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
42591 device that doesn't look like an SD card.
42592 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
42593 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
42594 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
42595 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
42596 found.
42597
9dad816d 425982008-01-22 Robert Millan <rmh@aybabtu.com>
42599
42600 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
42601 avoid claiming over our own code.
42602
34842f2d 426032008-01-22 Bean <bean123ch@gmail.com>
42604
42605 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
42606 (jpeg_mod_SOURCES): New variable.
42607 (jpeg_mod_CFLAGS): Likewise.
42608 (jpeg_mod_LDFLAGS): Likewise.
42609
42610 * video/readers/jpeg.c : New file.
42611
44023a28 426122008-01-22 Bean <bean123ch@gmail.com>
42613
42614 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
42615 there are no more items.
42616
bc2d8ac6 426172008-01-21 Robert Millan <rmh@aybabtu.com>
42618
42619 * kern/mm.c (grub_mm_init_region): Improve debug message.
42620
261bd4bc 426212008-01-21 Robert Millan <rmh@aybabtu.com>
42622
42623 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
42624 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
42625 address.
42626 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
42627 a C macro.
42628 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
42629 Indicates start of upper memory.
42630 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
42631 (generate_image): Abort when image size is big enough to corrupt
42632 upper memory.
42633
42634 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
42635 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
42636 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
42637 instead of hardcoding 0xA0000.
42638 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
42639 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
42640 instead of hardcoding 0xA0000.
42641
f970b55e 426422008-01-21 Robert Millan <rmh@aybabtu.com>
42643
42644 * disk/memdisk.c (memdisk_size): New variable.
42645 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
42646 `memdisk_size'.
42647 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
42648 image to dynamic memory.
42649 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
42650 `memdisk_size'. Free memdisk block.
42651
1a8b0526 426522008-01-21 Robert Millan <rmh@aybabtu.com>
42653
42654 Fix detection of very small filesystems (like tar).
42655
42656 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
42657 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
42658 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
42659 a problem with this disk).
42660
6e9b4aab 426612008-01-21 Robert Millan <rmh@aybabtu.com>
42662
42663 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
42664 on grub_biosdisk_rw_standard() error.
42665
0d8837b2 426662008-01-21 Robert Millan <rmh@aybabtu.com>
42667
42668 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
42669 recent changes.
42670 * kern/elf.c: Likewise.
42671 * kern/ieee1275/ieee1275.c: Likewise.
42672 * kern/powerpc/ieee1275/openfw.c: Likewise.
42673 * term/ieee1275/ofconsole.c: Likewise.
42674
ffd36e34 426752008-01-21 Robert Millan <rmh@aybabtu.com>
42676
42677 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
42678
3f0093d0 42679 * include/grub/kernel.h (grub_arch_memdisk_addr)
42680 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 42681
3f0093d0 42682 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
42683 (grub_arch_memdisk_size): ... to here.
ffd36e34 42684
6c391b21 426852008-01-21 Robert Millan <rmh@aybabtu.com>
42686
42687 Mostly based on bugfix from Bean.
42688
42689 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
42690 attribute with hook() parameter.
42691 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
42692 declaration.
42693 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
42694 attribute with hook() parameter.
42695 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
42696 declaration.
42697
55a581dc 426982008-01-21 Robert Millan <rmh@aybabtu.com>
42699
42700 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
42701 (pkglib_MODULES): Add `memdisk.mod'.
42702 (memdisk_mod_SOURCES): New variable.
42703 (memdisk_mod_CFLAGS): Likewise.
42704 (memdisk_mod_LDFLAGS): Likewise.
42705
42706 * disk/memdisk.c: New file.
42707
42708 * include/grub/disk.h (grub_disk_dev_id): Add
42709 `GRUB_DISK_DEVICE_MEMDISK_ID'.
42710
42711 * include/grub/i386/pc/kernel.h
42712 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
42713 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
42714 (grub_kernel_image_size): New variable declaration.
42715 (grub_total_module_size): Likewise.
42716 (grub_memdisk_image_size): Likewise.
42717
42718 * include/grub/i386/pc/memory.h
42719 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
42720
42721 * include/grub/kernel.h: Include `<grub/symbol.h>'.
42722 (grub_arch_memdisk_addr): New variable declaration.
42723 (grub_arch_memdisk_size): Likewise.
42724
42725 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
42726 (grub_arch_memdisk_size): Likewise.
42727
42728 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
42729 (codestart): Replace hardcoded `0x100000' with
42730 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
42731
42732 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
42733 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
42734 not NULL, append the contents of the file it refers to, at the end of
42735 the compressed kernel image. Initialize `grub_memdisk_image_size'
42736 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
42737 (options): Add "memdisk"|'m' option.
42738 (main): Parse --memdisk|-m option, and pass user-provided path as
42739 parameter to generate_image().
42740
3d7f54c9 427412008-01-20 Robert Millan <rmh@aybabtu.com>
42742
42743 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
42744 grub_dprintf() calls from here ...
42745 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
42746
0bf74728 427472008-01-20 Robert Millan <rmh@aybabtu.com>
42748
42749 Fix detection of "real mode" when /options/real-mode? doesn't exist.
42750
42751 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
42752 declaration.
42753 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
42754 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
42755 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 42756 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 42757 property).
42758 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
42759 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
42760
33bf70a7 427612008-01-19 Robert Millan <rmh@aybabtu.com>
42762
fe6b695a 42763 Get rid of confusing function (superseded by
33bf70a7 42764 `grub_ieee1275_get_integer_property')
42765 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
42766 prototype.
42767 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
42768 function.
42769 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
42770 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 42771 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 42772
e2da7d26 427732008-01-19 Robert Millan <rmh@aybabtu.com>
42774
42775 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
42776 command after "shut-down", since implementations differ on which
42777 the command for halt is.
42778
59f1fd8d 427792008-01-19 Robert Millan <rmh@aybabtu.com>
42780
42781 * include/grub/i386/linuxbios/console.h: Add header protection.
42782 (grub_keyboard_controller_init): New function prototype.
42783 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
42784 (KEYBOARD_COMMAND_READ): Likewise.
42785 (KEYBOARD_COMMAND_WRITE): Likewise.
42786 (KEYBOARD_SCANCODE_SET1): Likewise.
42787 (grub_keyboard_controller_write): New function.
42788 (grub_keyboard_controller_read): Likewise.
42789 (grub_keyboard_controller_init): Likewise.
42790
42791 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
42792 (grub_console_init): On coreboot/LinuxBIOS, call
42793 grub_keyboard_controller_init().
42794
5f5a7c15 427952008-01-19 Robert Millan <rmh@aybabtu.com>
42796
42797 PowerPC changes provided by Pavel Roskin.
42798
42799 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
42800 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
42801 don't rely on cmain() doing it.
42802 * kern/i386/ieee1275/startup.S (_start): Store %eax in
42803 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
42804
1210e168 428052008-01-16 Robert Millan <rmh@aybabtu.com>
42806
42807 * include/grub/i386/linuxbios/memory.h
42808 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
42809 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
42810 receive `table_header' as argument. Instead, probe for it in the
42811 known memory ranges where it can be present.
42812 (grub_available_iterate): Do not pass a fixed `table_header' address
42813 to grub_linuxbios_table_iterate().
42814
3d04eab8 428152008-01-15 Robert Millan <rmh@aybabtu.com>
42816
42817 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
42818 * conf/i386-ieee1275.rmk: New file.
42819 * include/grub/i386/ieee1275/console.h: Likewise.
42820 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
42821 * include/grub/i386/ieee1275/kernel.h: Likewise.
42822 * include/grub/i386/ieee1275/time.h: Likewise.
42823 * kern/i386/ieee1275/init.c: Likewise.
42824 * kern/i386/ieee1275/startup.S: Likewise.
42825
d1bc1b73 428262008-01-15 Robert Millan <rmh@aybabtu.com>
42827
42828 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
42829 when pointers are 32-bit (but still do set it to one when they are
42830 64-bit).
42831
66a65807 428322008-01-15 Robert Millan <rmh@aybabtu.com>
42833
42834 * include/grub/ieee1275/ieee1275.h
42835 (grub_ieee1275_get_integer_property): New function prototype.
42836
42837 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
42838 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 42839 grub_ieee1275_get_property() to handle endianness.
66a65807 42840
42841 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
42842 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 42843 where appropriate.
66a65807 42844 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
42845 (grub_map): Likewise.
42846 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
42847
a83ccafd 428482008-01-15 Bean <bean123ch@gmail.com>
42849
42850 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
42851 (grub_script_execute_cmdline): Reset grub_errno.
42852
42853 * normal/main.c (read_config_file): Reset grub_errno.
42854
42855 * normal/parse.y (script_init): New.
42856 (script): Move function and menuentry here.
42857 (delimiter): New.
42858 (command): Add delimiter at the end of command.
42859 (commands): Adjust to match the new command.
42860 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 42861 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 42862 (if): Use the new commands.
42863
42864 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
42865
df6ecfc6 428662008-01-15 Robert Millan <rmh@aybabtu.com>
42867
42868 * normal/menu.c (run_menu): Move timeout message from here ...
42869 (print_timeout): ... to here.
42870 (run_menu): Use print_timeout() once during initial draw to print
42871 the whole message, and again in every clock tick to update only
42872 the number of seconds.
42873
87ae25eb 428742008-01-15 Robert Millan <rmh@aybabtu.com>
42875
42876 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
42877 actual size of `available' from grub_ieee1275_get_property(), and
42878 restrict parsing to that bound.
42879
47bf09a4 428802008-01-15 Christian Franke <franke@computer.org>
42881
42882 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
42883 (argp_program_version): Remove variable.
42884 (argp_program_bug_address): Likewise.
42885 (options): Convert from struct argp_option to struct option.
42886 (struct arguments): Remove.
42887 (parse_opt): Remove.
42888 (usage): New function.
42889 (main): Replace struct args members by simple variables.
42890 Replace argp_parse() by getopt_long().
42891 Add switch to evaluate options.
42892 Add missing "(...)" around root_dev in prefix string.
42893
c86f1469 428942008-01-14 Robert Millan <rmh@aybabtu.com>
42895
42896 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
42897 for grub_ieee1275_exit(), in order to improve portability.
42898
e622c559 428992008-01-14 Robert Millan <rmh@aybabtu.com>
42900
42901 * util/grub.d/10_linux.in (prefix): Define.
42902 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
42903
44cb1ec8 429042008-01-13 Pavel Roskin <proski@gnu.org>
42905
42906 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
42907 grub_errno if no errors have been detected.
42908
1eb8c802 429092008-01-12 Robert Millan <rmh@aybabtu.com>
42910
42911 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
42912 (grub_util_get_dev_abstraction): New function prototype.
42913
42914 * util/getroot.c: Include `<grub/util/getroot.h>'
42915 (grub_util_get_grub_dev): Move detection of abstraction type to ...
42916 (grub_util_get_dev_abstraction): ... here (new function).
42917
42918 * util/grub-probe.c: Convert PRINT_* to an enum. Add
42919 `PRINT_ABSTRACTION'.
42920 (probe): Probe for abstraction type when requested.
42921 (main): Understand `--target=abstraction'.
42922
42923 * util/i386/efi/grub-install.in: Add abstraction module to core
42924 image when it is found to be necessary.
42925 * util/i386/pc/grub-install.in: Likewise.
42926 * util/powerpc/ieee1275/grub-install.in: Likewise.
42927
42928 * util/update-grub_lib.in (font_path): Return system path without
42929 converting to GRUB path.
42930 * util/update-grub.in: Convert system path returned by font_path()
42931 to a GRUB path. Use `grub-probe -t abstraction' to determine what
42932 abstraction module is needed for loading fonts (if any). Export
42933 that as `GRUB_PRELOAD_MODULES'.
42934 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
42935 insmod commands).
42936
52bd3de9 429372008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
42938
42939 Remove some unused code from reiserfs.
f19dbdb7 42940
52bd3de9 42941 * fs/reiserfs.c (struct grub_reiserfs_key)
42942 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
42943 (struct grub_reiserfs_node_body): Removed.
42944 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
42945 Likewise.
42946 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42947 Likewise.
42948 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42949 Likewise.
42950 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42951 Likewise.
42952 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
42953 Likewise.
42954 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
42955 Likewise.
42956 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42957 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42958 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42959
2f80039d 429602008-01-10 Robert Millan <rmh@aybabtu.com>
42961
42962 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
42963 Determines if a file is garbage left by packaging systems, etc.
42964 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
42965 for processing /etc/grub.d scripts.
42966 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
42967 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
42968 as a condition for processing Linux images.
42969
87888032 429702008-01-10 Pavel Roskin <proski@gnu.org>
42971
42972 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
42973 to compile reiserfs.c on PowerPC.
42974
7e54fced 429752008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 42976
42977 * kern/device.c (grub_device_iterate): Do not abort device iteration
42978 when one of the devices cannot be opened.
42979 * kern/disk.c (grub_disk_open): Do not account previous failures of
42980 unrelated functions when grub_errno is checked for.
42981
5aa541e6 429822008-01-08 Robert Millan <rmh@aybabtu.com>
42983
42984 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
42985 `! grub_linux_is_bzimage', change order of address comparison to make
42986 it more intuitive, and improve "too big zImage" error message.
42987
7076340d 429882008-01-08 Robert Millan <rmh@aybabtu.com>
42989
42990 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
42991 `$(update-grub_DATA)'.
42992 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
42993 targets.
42994
9ca70333 429952008-01-07 Robert Millan <rmh@aybabtu.com>
42996
42997 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
42998 which instruction is modified by grub-setup during installation
42999 (since it wasn't obvious by only looking at this file).
43000
38ccf575 430012008-01-07 Robert Millan <rmh@aybabtu.com>
43002
43003 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
43004 listing actual TODO items.
43005
f5db4291 430062008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43007
868967cf 43008 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
43009 correctly.
43010 (grub_reiserfs_get_key_offset): Likewise.
43011 (grub_reiserfs_set_key_offset): Likewise.
43012 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 43013 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 43014
43015 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
43016 better to remove the bitfield version completely.
f19dbdb7 43017
868967cf 430182008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43019
f5db4291 43020 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
43021 allocated from the heap, due to the fshelp implementation.
43022 (grub_reiserfs_dir): Free NODE, due to the same reason.
43023
492e6d9d 430242008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43025
43026 Mostly from Vincent Pelletier:
f19dbdb7 43027
492e6d9d 43028 * fs/reiserfs.c: New file.
f19dbdb7 43029
492e6d9d 43030 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
43031 (reiserfs_mod_SOURCES): New variable.
43032 (reiserfs_mod_CFLAGS): Likewise.
43033 (reiserfs_mod_LDFLAGS): Likewise.
43034
43035 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
43036 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
43037 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
43038 normal/color.c.
43039
9ce3e7c1 430402008-01-06 Robert Millan <rmh@aybabtu.com>
43041
43042 * normal/color.c: Remove `<grub/env.h>'.
43043
f3b58148 430442008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
43045
43046 * include/grub/normal.h: Include <grub/env.h>.
43047
7ac3bcfa 430482008-01-05 Robert Millan <rmh@aybabtu.com>
43049
43050 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
43051 usage example with `(hd0,1)'.
fb358190 43052 Reported by Samuel Thibault.
7ac3bcfa 43053
c8ee99d7 430542008-01-05 Robert Millan <rmh@aybabtu.com>
43055
43056 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
43057 (grub_linux_boot_zimage): Rename to ...
43058 (grub_linux_boot): ... this.
43059 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
43060 (grub_linux_boot_zimage): Conditionalize zImage copy.
43061
43062 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
43063 (grub_linux_boot_bzimage): Remove prototype.
43064 (grub_linux_boot_zimage): Rename to ...
43065 (grub_linux_boot): ... this.
43066
43067 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
43068 (grub_linux_boot): Remove function.
43069
0ece25b1 430702008-01-05 Robert Millan <rmh@aybabtu.com>
43071
43072 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
43073 (grub_env_write_color_highlight): Likewise.
43074 (grub_wait_after_message): Likewise.
43075
43076 * normal/color.c: New file.
43077
43078 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43079 (normal_mod_DEPENDENCIES): Likewise.
43080
43081 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43082 (normal_mod_DEPENDENCIES): Likewise.
43083
43084 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43085 (normal_mod_DEPENDENCIES): Likewise.
43086
43087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43088 (normal_mod_DEPENDENCIES): Likewise.
43089
43090 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
43091 for waiting after a message is printed.
43092 * normal/main.c (read_config_file): Likewise.
43093 (grub_normal_init): Register grub_env_write_color_normal() and
43094 grub_env_write_color_highlight() hooks. Mark `color_normal' and
43095 `color_highlight' variables as global.
43096
43097 * normal/menu.c (grub_wait_after_message): New function.
43098 (grub_color_menu_normal): New variable. Replaces ...
43099 (GRUB_COLOR_MENU_NORMAL): ... this macro.
43100 (grub_color_menu_highlight): New variable. Replaces ...
43101 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
43102 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
43103 `GRUB_TERM_COLOR_STANDARD'.
43104 (print_message): Use `grub_setcolorstate' to reload colors. Rename
43105 `normal_code' and `highlight_code' to `old_color_normal' and
43106 `old_color_highlight', respectively.
43107 (grub_menu_init_page): Update colors when drawing the menu, based on
43108 `menu_color_normal' and `menu_color_highlight' variables.
43109 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
43110 a message is printed.
43111
182dd4e5 431122008-01-05 Robert Millan <rmh@aybabtu.com>
43113
43114 * kern/env.c (grub_env_context_open): Propagate hooks for global
43115 variables to new context.
43116
43117 * kern/main.c (grub_set_root_dev): Export `root' variable.
43118
ddf8f6ad 431192008-01-05 Robert Millan <rmh@aybabtu.com>
43120
43121 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 43122 discs unconditionally, since udev and others have options to provide
ddf8f6ad 43123 them.
43124
d8b43d9b 431252008-01-05 Robert Millan <rmh@aybabtu.com>
43126
43127 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
43128
2bff2de3 431292008-01-04 Christian Franke <franke@computer.org>
43130
43131 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
43132 of eisa_mmap.
43133
97eab917 431342008-01-03 Pavel Roskin <proski@gnu.org>
43135
43136 * kern/i386/linuxbios/init.c: Put "void" to all function
43137 declarations with no arguments.
43138 * kern/powerpc/ieee1275/init.c: Likewise.
43139 * term/i386/pc/at_keyboard.c: Likewise.
43140 * term/i386/pc/vga_text.c: Likewise.
43141 * util/grub-mkdevicemap.c: Likewise.
43142
b9416d00 431432008-01-02 Robert Millan <rmh@aybabtu.com>
43144
43145 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
43146 message when loaded image is out of bounds.
43147 (grub_multiboot_load_elf64): Likewise.
43148
92695df9 431492008-01-02 Pavel Roskin <proski@gnu.org>
43150
43151 * util/grub.d/10_linux.in: Try version without ".old" when
43152 looking for initrd. It's better to use initrd from the newer
43153 kernel of the same version than no initrd at all.
43154
d98d9cad 431552008-01-01 Robert Millan <rmh@aybabtu.com>
43156
43157 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
43158
dbfdce36 431592008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
43160
f19dbdb7 43161 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 43162 grub_video_get_active_render_target.
43163 (grub_video_adapter): Added unmap_color and get_active_render_target.
43164
f19dbdb7 43165 * video/video.c: Added grub_video_unmap_color and
dbfdce36 43166 grub_video_get_active_render_target.
43167 (grub_video_get_info): Changed method to accept NULL pointer as an
43168 argument to allow detection of active video adapter.
43169
43170 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
43171 grub_video_vbe_unmap_color_int.
43172 Added grub_video_vbe_unmap_color and
43173 grub_video_vbe_get_active_render_target.
43174 (grub_video_vbe_adapter): Added unmap_color and
43175 get_active_render_target.
43176
f19dbdb7 43177 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 43178 with grub_video_vbe_unmap_color_int.
43179
43180 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
43181 (DEFAULT_NORMAL_COLOR): Likewise.
43182 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
43183 (DEFAULT_FG_COLOR): Removed.
43184 (DEFAULT_BG_COLOR): Likewise.
43185 (DEFAULT_CURSOR_COLOR): Changed value.
43186 (grub_virtual_screen): Added standard_color_setting,
43187 normal_color_setting, highlight_color_setting and term_color.
43188 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
43189 (bitmap_width): Added.
43190 (bitmap_height): Likewise.
43191 (bitmap): Likewise.
43192 (set_term_color): Likewise.
43193 (grub_virtual_screen_setup): Changed to use new terminal coloring
43194 settings.
43195 (grub_gfxterm_init): Added init for bitmap.
43196 (grub_gfxterm_fini): Added destroy for bitmap.
43197 (redraw_screen_rect): Updated to use background bitmap and new
43198 terminal coloring.
43199 (scroll_up): Added optimization for case when there is no bitmap.
43200 (grub_gfxterm_cls): Fixed to use correct background color.
43201 (grub_virtual_screen_setcolorstate): Changed to use new terminal
43202 coloring.
43203 (grub_virtual_screen_setcolor): Likewise.
43204 (grub_virtual_screen_getcolor): Added.
43205 (grub_gfxterm_background_image_cmd): Likewise.
43206 (grub_video_term): Added setcolor and getcolor.
43207 (MOD_INIT): Added registration of background_image command.
43208 (MOD_TERM): Added unregistration for background_image command.
43209
c3c20931 432102007-12-30 Pavel Roskin <proski@gnu.org>
43211
43212 * loader/multiboot_loader.c: Fix multiboot command
43213 unregistration. Fix all typos in the word "multiboot".
43214
df266716 432152007-12-29 Pavel Roskin <proski@gnu.org>
94239199 43216
43217 * util/grub.d/10_linux.in: Refactor search for initrd. Add
43218 support for initrd names used in Fedora.
43219
fc6e896c 432202007-12-26 Bean <bean123ch@gmail.com>
43221
43222 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
43223 (cpio_mod_SOURCES): New variable.
43224 (cpio_mod_CFLAGS): Likewise.
43225 (cpio_mod_LDFLAGS): Likewise.
43226
43227 * fs/cpio.c: New file.
43228
43229 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
43230
43231 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43232
43233 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43234
43235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43236
533110ad 432372007-12-25 Robert Millan <rmh@aybabtu.com>
43238
43239 * include/grub/term.h (struct grub_term): Add `getcolor' function.
43240 (grub_getcolor): New function.
43241
43242 * kern/term.c (grub_getcolor): New function.
43243 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
43244 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
43245 (print_entry): Set normal and highlight colors to
43246 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
43247 respectively, before printing and restore them to old
43248 values afterwards.
43249 (grub_menu_init_page): Likewise. Fill an additional colored space
43250 that would otherwise be left blank.
43251
43252 * term/efi/console.c (grub_console_getcolor): New function.
43253 (struct grub_console_term.getcolor): New variable.
43254 * term/i386/pc/console.c (grub_console_getcolor): New function.
43255 (struct grub_console_term.getcolor): New variable.
43256 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
43257 (struct grub_console_term.getcolor): New variable.
43258
43259 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
43260 (struct grub_console_term.setcolor): Remove variable.
43261 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
43262 (struct grub_console_term.setcolor): Remove variable.
43263 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
43264 (struct grub_console_term.setcolor): Remove variable.
43265 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
43266 (struct grub_console_term.setcolor): Remove variable.
43267
4931827f 432682007-12-25 Robert Millan <rmh@aybabtu.com>
43269
43270 * configure.ac: Search for possible unifont.hex locations, and
43271 define UNIFONT_HEX if found.
43272
43273 * Makefile.in (UNIFONT_HEX): Define variable.
43274 (DATA): Rename to ...
43275 (PKGLIB): ... this. Update all users.
43276 (PKGDATA): New variable.
43277 (pkgdata_IMAGES): Rename to ...
43278 (pkglib_IMAGES): ... this. Update all users.
43279 (pkgdata_MODULES): Rename to ...
43280 (pkglib_MODULES): ... this. Update all users.
43281 (pkgdata_PROGRAMS): Rename to ...
43282 (pkglib_PROGRAMS): ... this. Update all users.
43283 (pkgdata_DATA): Rename to ...
43284 (pkglib_DATA): ... this. Update all users.
43285 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
43286 (unicode.pff, ascii.pff): New rules.
43287 (all-local): Add `$(PKGDATA)' dependency.
43288 (install-local): Process `$(PKGDATA)'.
43289
43290 * util/update-grub_lib.in (font_path): Search for *.pff files in
43291 a few more locations, including `${pkgdata}'.
43292
57e57e31 432932007-12-23 Robert Millan <rmh@aybabtu.com>
43294
43295 Patch from Bean <bean123ch@gmail.com>:
43296 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
43297 `size'.
43298
4bc72aa9 432992007-12-21 Bean <bean123ch@gmail.com>
43300
43301 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
43302 (ntfscomp_mod_SOURCES): New variable.
43303 (ntfscomp_mod_CFLAGS): Likewise.
43304 (ntfscomp_mod_LDFLAGS): Likewise.
43305
43306 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
43307 (grub_probe_SOURCES): Likewise.
43308 (grub_emu_SOURCES): Likewise.
43309
43310 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43311 (grub_emu_SOURCES): Likewise.
43312
43313 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43314 (grub_emu_SOURCES): Likewise.
43315
43316 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43317 (grub_emu_SOURCES): Likewise.
43318
43319 * fs/ntfs.c (grub_ntfscomp_func): New variable.
43320 (read_run_list): Renamed to grub_ntfs_read_run_list.
43321 (decomp_nextvcn): Moved to ntfscomp.c.
43322 (decomp_getch): Likewise.
43323 (decomp_get16): Likewise.
43324 (decomp_block): Likewise.
43325 (read_block): Likewise.
43326 (read_data): Partially moved to ntfscomp.c.
43327 (fixup): Change unsigned to grub_uint16_t.
43328 (read_mft): Change unsigned long to grub_uint32_t.
43329 (read_attr): Likewise.
43330 (read_data): Likewise.
43331 (read_run_data): Likewise.
43332 (read_run_list): Likewise.
43333 (read_mft): Likewise.
43334
43335 * fs/ntfscomp.c: New file.
43336
43337 * include/grub/ntfs.h: New file.
43338
af680a87 433392007-12-16 Robert Millan <rmh@aybabtu.com>
43340
43341 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
43342 IDE disk check, since Linux is known to support 20 IDE disks.
43343 Reported by Colin Watson.
43344
84be7599 433452007-12-15 Bean <bean123ch@gmail.com>
43346
43347 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
43348 (lnxboot_img_SOURCES): New variable.
43349 (lnxboot_img_ASFLAGS): Likewise.
43350 (lnxboot_img_LDFLAGS): Likewise.
43351
43352 * boot/i386/pc/lnxboot.S: New file.
43353
6af9db01 433542007-11-24 Pavel Roskin <proski@gnu.org>
43355
43356 * configure.ac: Test if '--build-id=none' is supported by the
43357 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
43358 objcopy to generate incorrect binary files (binutils
43359 2.17.50.0.18-1 as shipped by Fedora 8).
43360 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
43361 linking, so that build ID doesn't break the test.
43362
7361cfe6 433632007-11-24 Pavel Roskin <proski@gnu.org>
43364
43365 * include/grub/i386/time.h: use "void" in the argument list
43366 of grub_cpu_idle().
43367 * include/grub/powerpc/time.h: Likewise.
43368 * include/grub/sparc64/time.h: Likewise.
43369
1593e10c 433702007-11-18 Christian Franke <franke@computer.org>
43371
43372 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
43373 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
43374 This fixes the problem that function keys did not work in grub-emu.
43375
3b8db1a8 433762007-11-18 Christian Franke <franke@computer.org>
43377
43378 * disk/host.c (grub_host_open): Remove attribute unused from
43379 name parameter. Add check for "host". This fixes the problem
43380 that grub-emu does not find partitions.
43381
2e29408d 433822007-11-18 Christian Franke <franke@computer.org>
43383
43384 * util/hostfs.c (is_dir): New function.
43385 (grub_hostfs_dir): Handle missing dirent.d_type case.
43386 (grub_hostfs_read): Add missing fseek().
43387 (grub_hostfs_label): Clear label pointer. This fixes a crash
43388 of grub-emu on "ls (host)".
43389
398cd047 433902007-11-18 Christian Franke <franke@computer.org>
43391
43392 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
43393 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
43394 to 64 bit boundary by default.
43395
c405c391 433962007-11-18 Bean <bean123ch@gmail.com>
43397
43398 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
43399 (hexdump_mod_SOURCES): New variable.
43400 (hexdump_mod_CFLAGS): Likewise.
43401 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 43402
c405c391 43403 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43404
43405 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43406
43407 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43408
43409 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43410
43411 * include/grub/hexdump.h: New file.
43412
43413 * commands/hexdump.c: New file.
43414
5cced7fd 434152007-11-10 Robert Millan <rmh@aybabtu.com>
43416
43417 * commands/i386/pc/play.c (beep_off): Switch order of arguments
43418 in grub_outb() calls.
43419 (beep_on): Likewise.
43420
8b714eb0 434212007-11-10 Christian Franke <franke@computer.org>
43422
43423 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
43424 (grub_menu_run): Likewise.
43425
ce0f1839 434262007-11-10 Robert Millan <rmh@aybabtu.com>
43427
43428 * include/grub/i386/efi/machine.h: New file.
43429 * include/grub/i386/linuxbios/machine.h: Likewise.
43430 * include/grub/i386/pc/machine.h: Likewise.
43431 * include/grub/powerpc/ieee1275/machine.h: Likewise.
43432 * include/grub/sparc64/ieee1275/machine.h: Likewise.
43433
43434 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
43435 (serial_hw_io_addr): New variable.
43436 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
43437 instead of `(unsigned short *) 0x400'.
43438
270c237d 434392007-11-10 Bean <bean123ch@gmail.com>
43440
43441 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
43442
a87783bf 434432007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43444
43445 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
43446 (vga_mod_SOURCES): Added.
43447 (vga_mod_CFLAGS): Likewise.
43448 (vga_mod_LDFLAGS): Likewise.
43449
43450 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
43451 grub_outb() calls.
43452 (set_map_mask): Likewise.
43453 (set_read_map): Likewise.
43454 (set_read_address): Likewise.
43455 (vga_font): Removed variable.
43456 (get_vga_glyph): Removed function.
43457 (invalidate_char): Likewise.
43458 (write_char): Changed to use grub_font_get_glyph() for font
43459 information.
43460 (grub_vga_putchar): Likewise.
43461 (grub_vga_getcharwidth): Likewise.
43462
6433b448 434632007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43464
43465 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
43466 flags.
43467 (pxeboot_img_LDFLAGS): Likewise.
43468 (diskboot_img_LDFLAGS): Likewise.
43469 (kernel_img_LDFLAGS): Likewise.
43470
49178511 434712007-11-06 Robert Millan <rmh@aybabtu.com>
43472
43473 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
43474 in grub_outb() calls.
43475 (serial_hw_init): Likewise.
43476
53b052de 434772007-11-05 Robert Millan <rmh@aybabtu.com>
43478
43479 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
43480 spaces. Skip non-regular files.
43481
5ab33bba 434822007-11-05 Robert Millan <rmh@aybabtu.com>
43483
43484 * kern/disk.c (grub_disk_firmware_fini)
43485 (grub_disk_firmware_is_tainted): New variables.
43486
43487 * include/grub/disk.h (grub_disk_firmware_fini)
43488 (grub_disk_firmware_is_tainted): Likewise.
43489
43490 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
43491 (grub_disk_biosdisk_fini): ... to here.
43492 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
43493 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
43494 is set. Register grub_disk_biosdisk_fini() in
43495 `grub_disk_firmware_fini'.
43496
43497 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
43498 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
43499 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
43500 to finish existing firmware disk interface.
43501
43502 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
43503 (ata_mod_SOURCES): New variable.
43504 (ata_mod_CFLAGS): Likewise.
43505 (ata_mod_LDFLAGS): Likewise.
43506
0149ab7c 435072007-11-05 Robert Millan <rmh@aybabtu.com>
43508
43509 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
43510 (grub_ata_wait): Reimplement using grub_millisleep().
43511
43512 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
43513 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
43514
be7ac41e 435152007-11-03 Marco Gerards <marco@gnu.org>
43516
43517 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
43518 (CRTC_ADDR_PORT): New macro.
43519 (CRTC_DATA_PORT): Likewise.
43520 (CRTC_CURSOR): Likewise.
43521 (CRTC_CURSOR_ADDR_HIGH): Likewise.
43522 (CRTC_CURSOR_ADDR_LOW): Likewise.
43523 (update_cursor): New function.
43524 (grub_console_real_putchar): Call `update_cursor'.
43525 (grub_console_gotoxy): Likewise.
43526 (grub_console_cls): Set the default color when clearing the
43527 screen.
43528 (grub_console_setcursor): Implemented.
43529
bb06ab2e 435302007-11-03 Marco Gerards <marco@gnu.org>
43531
43532 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
43533 become activate.
43534 (grub_ata_pio_write): Likewise.
43535
43536 (grub_atapi_identify): Wait after issuing an ATA command.
43537 (grub_atapi_packet): Likewise.
43538 (grub_ata_identify): Likewise.
43539 (grub_ata_readwrite): Likewise.
43540
cf8f780b 435412007-11-03 Marco Gerards <marco@gnu.org>
43542
43543 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
43544 (grub_ata_pio_write): Likewise.
43545 (grub_ata_readwrite): Use `grub_error', instead of
43546 returning `grub_errno'.
43547
ed649e54 435482007-11-03 Marco Gerards <marco@gnu.org>
43549
43550 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
43551 grub_ata_pio_write once for every single sector, instead of for
43552 multiple sectors.
43553
ca25d8f0 435542007-10-31 Robert Millan <rmh@aybabtu.com>
43555
43556 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
43557
43558 * conf/i386-linuxbios.rmk: New file.
43559
43560 * kern/i386/pc/hardware.c: Likewise.
43561 * term/i386/pc/at_keyboard.c: Likewise.
43562 * term/i386/pc/vga_text.c: Likewise.
43563
43564 * include/grub/i386/linuxbios/boot.h: Likewise.
43565 * include/grub/i386/linuxbios/console.h: Likewise.
43566 * include/grub/i386/linuxbios/init.h: Likewise.
43567 * include/grub/i386/linuxbios/kernel.h: Likewise.
43568 * include/grub/i386/linuxbios/loader.h: Likewise.
43569 * include/grub/i386/linuxbios/memory.h: Likewise.
43570 * include/grub/i386/linuxbios/serial.h: Likewise.
43571 * include/grub/i386/linuxbios/time.h: Likewise.
43572
43573 * kern/i386/linuxbios/init.c: Likewise.
43574 * kern/i386/linuxbios/startup.S: Likewise.
43575 * kern/i386/linuxbios/table.c: Likewise.
43576
e911ecc1 435772007-10-31 Marco Gerards <marco@gnu.org>
43578
43579 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
43580 (ata_mod_SOURCES): New variable.
43581 (ata_mod_CFLAGS): Likewise.
43582 (ata_mod_LDFLAGS): Likewise.
43583
43584 * disk/ata.c: New file.
43585
43586 * include/grub/disk.h (grub_disk_dev_id): Add
43587 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 43588
7f66d0e0 435892007-10-31 Robert Millan <rmh@aybabtu.com>
43590
43591 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
43592 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
43593
43594 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
43595 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
43596
43597 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
43598 `<grub/types.h>'.
43599
43600 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
43601
5cd7dd46 436022007-10-27 Robert Millan <rmh@aybabtu.com>
43603
3236ca65 43604 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 43605
2ebfc90f 436062007-10-22 Robert Millan <rmh@aybabtu.com>
43607
43608 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
43609 `"../realmode.S"'.
43610 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
43611
73fcb0f3 436122007-10-22 Robert Millan <rmh@aybabtu.com>
43613
43614 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
43615 (pkgdata_MODULES): Add `biosdisk.mod'.
43616 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
43617 variables.
43618
43619 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
43620 (grub_biosdisk_init): Replace with ...
43621 (GRUB_MOD_INIT(biosdisk)): ... this.
43622 (grub_biosdisk_fini): Replace with ...
43623 (GRUB_MOD_FINI(biosdisk)): ... this.
43624
43625 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
43626 (grub_machine_init): Remove call to grub_biosdisk_init().
43627 (grub_machine_fini): Remove call to grub_machine_fini().
43628
43629 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
43630
3381d274 436312007-10-22 Robert Millan <rmh@aybabtu.com>
43632
43633 * include/grub/time.h: New file.
43634 * include/grub/i386/time.h: Likewise.
43635 * include/grub/powerpc/time.h: Likewise.
43636 * include/grub/sparc64/time.h: Likewise.
43637
43638 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
43639 instances to ...
43640 (KERNEL_MACHINE_TIME_HEADER): ... this.
43641 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
43642 instances to ...
43643 (KERNEL_MACHINE_TIME_HEADER): ... this.
43644 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
43645 instances to ...
43646 (KERNEL_MACHINE_TIME_HEADER): ... this.
43647
43648 * kern/i386/efi/init.c: Include `<grub/time.h>'.
43649 (grub_millisleep): New function.
43650 * kern/i386/pc/init.c: Include `<grub/time.h>'.
43651 (grub_millisleep): New function.
43652 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
43653 Remove `grub/machine/time.h' include.
43654 (grub_millisleep): New function.
43655 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
43656 Remove `grub/machine/time.h' include.
43657 (grub_millisleep): New function.
43658
43659 * include/grub/misc.h (grub_div_roundup): New function.
43660
43661 * kern/misc.c: Include `<grub/time.h>'.
43662 (grub_millisleep_generic): New function.
43663
43664 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
43665 Add `time.h'.
43666 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
43667 Add `time.h'.
43668 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
43669 `machine/time.h'. Add `time.h'.
43670 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43671
a39a0312 436722007-10-21 Robert Millan <rmh@aybabtu.com>
43673
43674 * include/grub/misc.h (grub_max): New function.
43675
2aad70e2 436762007-10-21 Robert Millan <rmh@aybabtu.com>
43677
43678 * util/misc.c (grub_util_info): Call fflush() before returning.
43679
54b71c4b 436802007-10-20 Robert Millan <rmh@aybabtu.com>
43681
43682 * genmk.rb (Image): Copy `extra_flags' from here ...
43683 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
43684
43685 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
43686 to `argc' and `args' arguments.
43687
a979f513 436882007-10-17 Robert Millan <rmh@aybabtu.com>
43689
43690 * kern/i386/loader.S: New file.
43691
43692 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
43693 * kern/i386/loader.S (grub_linux_prot_size)... to here.
43694 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
43695 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
43696 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
43697 * kern/i386/loader.S (grub_linux_real_addr)... to here.
43698 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
43699 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
43700 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
43701 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
43702 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
43703 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
43704 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
43705 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
43706
43707 * kern/i386/realmode.S: New file.
43708
43709 * kern/i386/pc/startup.S (protstack): Moved from here ...
43710 * kern/i386/realmode.S (protstack)... to here.
43711 * kern/i386/pc/startup.S (gdt): Moved from here ...
43712 * kern/i386/realmode.S (gdt)... to here.
43713 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
43714 * kern/i386/realmode.S (prot_to_real)... to here.
43715
43716 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
43717 `kern/i386/realmode.S'.
43718
825fc8fd 437192007-10-17 Robert Millan <rmh@aybabtu.com>
43720
43721 * include/grub/i386/loader.h: New file.
43722
43723 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
43724 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
43725 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
43726 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
43727 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
43728 * include/grub/i386/loader.h (grub_linux_prot_size)
43729 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
43730 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
43731 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
43732 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
43733
43734 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
43735
e179b2f4 437362007-10-15 Robert Millan <rmh@aybabtu.com>
43737
43738 * normal/misc.c (grub_normal_print_device_info): Do not probe for
43739 filesystem when dev->disk is unset.
43740 Do probe for filesystem even when dev->disk->has_partitions is set.
43741 In case a filesystem is found, always report it.
43742 In case it isn't, if dev->disk->has_partitions is set, report that
43743 a partition table was found instead of reporting that no filesystem
43744 could be identified.
43745
5db82af6 437462007-10-12 Robert Millan <rmh@aybabtu.com>
43747
43748 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
43749 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
43750
68f6ac74 43751 * include/grub/types.h (grub_host_to_target16): New macro.
43752 (grub_host_to_target32): Likewise.
43753 (grub_host_to_target64): Likewise.
43754 (grub_target_to_host16): Likewise.
43755 (grub_target_to_host32): Likewise.
43756 (grub_target_to_host64): Likewise.
5db82af6 43757
43758 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
43759 Renamed from to ...
43760 (GRUB_MOD_ALIGN): ...this. Update all users.
43761
68f6ac74 43762 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
43763 grub_host_to_target32.
43764 Replace grub_be_to_cpu32 with grub_target_to_host32.
43765 (load_modules): Likewise.
43766 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
43767 Replace grub_be_to_cpu32 with grub_target_to_host32.
43768 Replace grub_cpu_to_be16 with grub_host_to_target16.
43769 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 43770
3cf497cc 437712007-10-12 Robert Millan <rmh@aybabtu.com>
43772
43773 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
43774 * util/elf/grub-mkimage.c: ... here.
43775
43776 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
43777 `util/powerpc/ieee1275/grub-mkimage.c'.
43778
c8cc3692 437792007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 43780
c8cc3692 43781 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
43782 and make it easier to figure out.
43783 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
43784 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
43785 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
43786 leave us with less than HEAP_MIN_SIZE total heap.
43787 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 43788
5c58b791 437892007-10-03 Robert Millan <rmh@aybabtu.com>
43790
43791 * include/grub/i386/io.h: New file.
43792 * commands/i386/pc/play.c (inb): Removed.
43793 (outb): Removed.
43794 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
43795 with grub_outb().
afcd2ef8 43796 * term/i386/pc/serial.c (inb): Removed.
43797 (outb): Removed.
43798 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
43799 with grub_outb().
43800 * term/i386/pc/vga.c (inb): Removed.
43801 (outb): Removed.
43802 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
43803 with grub_outb().
5c58b791 43804
1a477ed6 438052007-10-02 Robert Millan <rmh@aybabtu.com>
43806
43807 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
43808 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43809 Reported by Marcin Kurek.
43810
6b5d80fa 438112007-09-07 Robert Millan <rmh@aybabtu.com>
43812
43813 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
43814 SmartFirmware version updates (as released by Sven Luther), and avoid
43815 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
43816 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
43817 known broken.
43818
5618afbf 438192007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43820
43821 From Hitoshi Ozeki:
43822 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
43823 when merging two regions.
43824
6139dcd9 438252007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43826
508e39ee 43827 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
43828 * normal/completion.c (grub_normal_do_completion): Likewise.
43829 Reported by Hitoshi Ozeki.
43830
438312007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43832
6139dcd9 43833 Do not use devices at boot in chainloading.
f19dbdb7 43834
6139dcd9 43835 * loader/i386/pc/chainloader.c (boot_drive): New variable.
43836 (boot_part_addr): Likewise.
43837 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
43838 with BOOT_DRIVE and BOOT_PART_ADDR.
43839 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
43840 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
43841
38da6516 438422007-08-29 Robert Millan <rmh@aybabtu.com>
43843
43844 Patch from Simon Peter <dn.tlp@gmx.net>:
43845 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
43846 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
43847 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
43848 util/i386/pc/grub-setup.c_DEPENDENCIES.
43849 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
43850 util/grub-probe.c_DEPENDENCIES.
43851 * conf/powerpc-ieee1275.rmk: Likewise.
43852
29d0928c 438532007-08-28 Robert Millan <rmh@aybabtu.com>
43854
43855 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
43856 to tell grub-mkdevicemap how to name devices.
43857 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
43858 feature).
43859
43860 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
43861 util/i386/get_disk_name.c.
43862 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
43863 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
43864 util/ieee1275/get_disk_name.c.
43865
43866 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
43867
43868 * DISTLIST: Add util/i386/get_disk_name.c and
43869 util/ieee1275/get_disk_name.c.
43870
43871 * util/grub-mkdevicemap.c: Replace device naming logic with
43872 grub_util_get_disk_name() calls.
43873
5a0d3cca 438742007-08-20 Robert Millan <rmh@aybabtu.com>
43875
43876 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
43877 (so that it works for both plural and singular quantities).
43878
8b72db2f 438792007-08-05 Robert Millan <rmh@aybabtu.com>
43880
43881 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
43882 so that [xz] isn't taken into account when determining order.
43883
352466bf 438842007-08-02 Marco Gerards <marco@gnu.org>
43885
43886 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
43887 `include/multiboot2.h', `include/grub/elfload.h',
43888 `include/multiboot.h', `include/grub/multiboot.h',
43889 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
43890 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
43891 `kern/elf.c', `loader/multiboot_loader.c',
43892 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
43893 `loader/i386/pc/multiboot2.c',
43894 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
43895 `util/i386/pc/grub-mkrescue.in'. Remove
43896 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
43897 `include/grub/i386/pc/util/biosdisk.h' and
43898 `include/grub/powerpc/ieee1275/multiboot.h'.
43899
8f096014 439002007-08-02 Bean <bean123ch@gmail.com>
43901
43902 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
43903 (ntfs_mod_SOURCES): New variable.
43904 (ntfs_mod_CFLAGS): Likewise.
43905 (ntfs_mod_LDFLAGS): Likewise.
43906
43907 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
43908 (grub_probe_SOURCES): Likewise.
43909 (grub_emu_SOURCES): Likewise.
43910
43911 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
43912 (grub_emu_SOURCES): Likewise.
43913
43914 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
43915 (grub_emu_SOURCES): Likewise.
f19dbdb7 43916
8f096014 43917 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
43918
43919 * fs/ntfs.c: New file.
43920
9959f7db 439212007-08-02 Bean <bean123ch@gmail.com>
43922
43923 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
43924
43925 * file.h (grub_file): Likewise.
43926
43927 * fshelp.h (grub_fshelp_read_file): Likewise.
43928
43929 * util/i386/pc/grub-setup.c (setup): Likewise.
43930 (save_first_sector): Likewise.
43931 (save_blocklists): Likewise.
f19dbdb7 43932
9959f7db 43933 * fs/affs.c (grub_affs_read_file): Likewise.
43934
43935 * fs/ext2.c (grub_ext2_read_file): Likewise.
43936
43937 * fs/fat.c (grub_fat_read_data): Likewise.
43938
43939 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
43940
43941 * fs/hfs.c (grub_hfs_read_file): Likewise.
43942
43943 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
43944
43945 * fs/jfs.c (grub_jfs_read_file): Likewise.
43946
43947 * fs/minix.c (grub_minix_read_file): Likewise.
43948
43949 * fs/sfs.c (grub_sfs_read_file): Likewise.
43950
43951 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 43952
9959f7db 43953 * fs/xfs.c (grub_xfs_read_file): Likewise.
43954
43955 * command/blocklist.c (read_blocklist): Likewise.
43956 (print_blocklist): Likewise.
43957
0a203f83 439582007-08-02 Marco Gerards <marco@gnu.org>
43959
43960 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
43961 `util/hostfs.c'.
43962
43963 * disk/host.c: New file.
43964
43965 * util/hostfs.c: Likewise.
43966
43967 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
43968 return `GRUB_ERR_BAD_FS'.
43969 * fs/sfs.c (grub_sfs_mount): Likewise.
43970 * fs/xfs.c (grub_xfs_mount): Likewise.
43971
43972 * include/grub/disk.h (enum grub_disk_dev_id): Add
43973 `GRUB_DISK_DEVICE_HOST_ID'.
43974
43975 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
43976
e5dfe777 439772007-07-24 Jerone Young <jerone@gmail.com>
43978
f19dbdb7 43979 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 43980 modules for compilation.
43981 * conf/powerpc-ieee1275.rmk: Likewise.
43982
43983 * include/multiboot.h: Move multiboot definitions to one file. Rename
43984 many definitions to not get grub specific.
43985 * include/multiboot2.h: Create header with multiboot 2 definitions.
43986 * include/grub/multiboot.h: Header for grub specific function
43987 prototypes and definitions.
43988 * include/grub/multiboot2.h: Likewise.
43989 * include/grub/multiboot_loader.h: Likewise.
43990 * include/grub/i386/pc/multiboot.h: Removed.
43991 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
43992
43993 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
43994 and 2 to allow for one multiboot and module commands.
43995 * loader/multiboot2.c: Add multiboot2 functionality.
43996 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
43997 and definition names.
43998 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
43999 2 functions.
44000 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
44001 ieee1275 specific multiboot2 code.
44002
44003 * kern/i386/pc/startup.S: Change headers and definition names for
44004 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
44005
daf0f0ba 440062007-07-22 Robert Millan <rmh@aybabtu.com>
44007
44008 * geninitheader.sh: Process file specified in first parameter rather
44009 than hardcoding grub_modules_init.lst.
fe6b695a 44010 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 44011 than hardcoding grub_modules_init.h.
44012
44013 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
44014 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
44015 grub_probe_init.[ch] and grub_setup_init.[ch].
44016
44017 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
44018 grub_modules_init.h with grub_emu_init.h.
44019 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
44020 grub_probe_init.[ch] files.
44021 * conf/i386-efi.rmk: Likewise.
44022 * conf/i386-pc.rmk: Likewise.
44023 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
44024 grub_setup_init.[ch] files.
44025
44026 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
44027 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
44028 to initialize modules rather than a list of hardcoded functions.
44029 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
44030 grub_init_all() to initialize modules rather than a list of hardcoded
44031 functions.
44032
54cdc1cc 440332007-07-22 Robert Millan <rmh@aybabtu.com>
44034
44035 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
44036 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
44037
ad0686cc 440382007-07-22 Robert Millan <rmh@aybabtu.com>
44039
44040 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
44041 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
44042 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
44043 flag when running on SmartFirmware.
44044 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
44045 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
44046 was set.
44047
44048 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44049 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
44050 rather than decreasing it.
44051
44052 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
44053 there's not enough space to do it, fail in the same way as when it
44054 can't be done because there are no partitions.
44055
44056 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
44057 when nvsetenv failed.
44058
969c02ec 440592007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44060
44061 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
44062 because this rule is automatically generated.
44063 (grub-mkrescue): Removed for the same reason as above.
44064
5a79f472 440652007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44066
44067 Migrate to GNU General Public License Version 3.
f19dbdb7 44068
5a79f472 44069 * COPYING: Replaced with the plain text version of GPLv3.
44070
44071 * config.guess: Updated from gnulib.
44072 * config.sub: Likewise.
44073
44074 * geninit.sh: Output a GPLv3 copyright notice.
44075 * geninitheader.sh: Likewise.
44076 * genmodsrc.sh: Likewise.
44077 * gensymlist.sh.in: Likewise.
44078
44079 * boot/i386/pc/boot.S: Upgraded to GPLv3.
44080 * boot/i386/pc/diskboot.S: Likewise.
44081 * boot/i386/pc/pxeboot.S: Likewise.
44082 * commands/blocklist.c: Likewise.
44083 * commands/boot.c: Likewise.
44084 * commands/cat.c: Likewise.
44085 * commands/cmp.c: Likewise.
44086 * commands/configfile.c: Likewise.
44087 * commands/echo.c: Likewise.
44088 * commands/help.c: Likewise.
44089 * commands/ls.c: Likewise.
44090 * commands/search.c: Likewise.
44091 * commands/terminal.c: Likewise.
44092 * commands/test.c: Likewise.
44093 * commands/videotest.c: Likewise.
44094 * commands/i386/cpuid.c: Likewise.
44095 * commands/i386/pc/halt.c: Likewise.
44096 * commands/i386/pc/play.c: Likewise.
44097 * commands/i386/pc/reboot.c: Likewise.
44098 * commands/i386/pc/vbeinfo.c: Likewise.
44099 * commands/i386/pc/vbetest.c: Likewise.
44100 * commands/ieee1275/halt.c: Likewise.
44101 * commands/ieee1275/reboot.c: Likewise.
44102 * commands/ieee1275/suspend.c: Likewise.
44103 * disk/loopback.c: Likewise.
44104 * disk/lvm.c: Likewise.
44105 * disk/raid.c: Likewise.
44106 * disk/efi/efidisk.c: Likewise.
44107 * disk/i386/pc/biosdisk.c: Likewise.
44108 * disk/ieee1275/ofdisk.c: Likewise.
44109 * font/manager.c: Likewise.
44110 * fs/affs.c: Likewise.
44111 * fs/ext2.c: Likewise.
44112 * fs/fat.c: Likewise.
44113 * fs/fshelp.c: Likewise.
44114 * fs/hfs.c: Likewise.
44115 * fs/hfsplus.c: Likewise.
44116 * fs/iso9660.c: Likewise.
44117 * fs/jfs.c: Likewise.
44118 * fs/minix.c: Likewise.
44119 * fs/sfs.c: Likewise.
44120 * fs/ufs.c: Likewise.
44121 * fs/xfs.c: Likewise.
44122 * hello/hello.c: Likewise.
44123 * include/grub/acorn_filecore.h: Likewise.
44124 * include/grub/arg.h: Likewise.
44125 * include/grub/bitmap.h: Likewise.
44126 * include/grub/boot.h: Likewise.
44127 * include/grub/cache.h: Likewise.
44128 * include/grub/device.h: Likewise.
44129 * include/grub/disk.h: Likewise.
44130 * include/grub/dl.h: Likewise.
44131 * include/grub/elfload.h: Likewise.
44132 * include/grub/env.h: Likewise.
44133 * include/grub/err.h: Likewise.
44134 * include/grub/file.h: Likewise.
44135 * include/grub/font.h: Likewise.
44136 * include/grub/fs.h: Likewise.
44137 * include/grub/fshelp.h: Likewise.
44138 * include/grub/gzio.h: Likewise.
44139 * include/grub/hfs.h: Likewise.
44140 * include/grub/kernel.h: Likewise.
44141 * include/grub/loader.h: Likewise.
44142 * include/grub/lvm.h: Likewise.
44143 * include/grub/misc.h: Likewise.
44144 * include/grub/mm.h: Likewise.
44145 * include/grub/net.h: Likewise.
44146 * include/grub/normal.h: Likewise.
44147 * include/grub/parser.h: Likewise.
44148 * include/grub/partition.h: Likewise.
44149 * include/grub/pc_partition.h: Likewise.
44150 * include/grub/raid.h: Likewise.
44151 * include/grub/rescue.h: Likewise.
44152 * include/grub/script.h: Likewise.
44153 * include/grub/setjmp.h: Likewise.
44154 * include/grub/symbol.h: Likewise.
44155 * include/grub/term.h: Likewise.
44156 * include/grub/terminfo.h: Likewise.
44157 * include/grub/tparm.h: Likewise.
44158 * include/grub/types.h: Likewise.
44159 * include/grub/video.h: Likewise.
44160 * include/grub/efi/api.h: Likewise.
44161 * include/grub/efi/chainloader.h: Likewise.
44162 * include/grub/efi/console.h: Likewise.
44163 * include/grub/efi/console_control.h: Likewise.
44164 * include/grub/efi/disk.h: Likewise.
44165 * include/grub/efi/efi.h: Likewise.
44166 * include/grub/efi/pe32.h: Likewise.
44167 * include/grub/efi/time.h: Likewise.
44168 * include/grub/i386/linux.h: Likewise.
44169 * include/grub/i386/setjmp.h: Likewise.
44170 * include/grub/i386/types.h: Likewise.
44171 * include/grub/i386/efi/kernel.h: Likewise.
44172 * include/grub/i386/efi/loader.h: Likewise.
44173 * include/grub/i386/efi/time.h: Likewise.
44174 * include/grub/i386/pc/biosdisk.h: Likewise.
44175 * include/grub/i386/pc/boot.h: Likewise.
44176 * include/grub/i386/pc/chainloader.h: Likewise.
44177 * include/grub/i386/pc/console.h: Likewise.
44178 * include/grub/i386/pc/init.h: Likewise.
44179 * include/grub/i386/pc/kernel.h: Likewise.
44180 * include/grub/i386/pc/loader.h: Likewise.
44181 * include/grub/i386/pc/memory.h: Likewise.
44182 * include/grub/i386/pc/multiboot.h: Likewise.
44183 * include/grub/i386/pc/serial.h: Likewise.
44184 * include/grub/i386/pc/time.h: Likewise.
44185 * include/grub/i386/pc/vbe.h: Likewise.
44186 * include/grub/i386/pc/vbeblit.h: Likewise.
44187 * include/grub/i386/pc/vbefill.h: Likewise.
44188 * include/grub/i386/pc/vbeutil.h: Likewise.
44189 * include/grub/i386/pc/vga.h: Likewise.
44190 * include/grub/ieee1275/ieee1275.h: Likewise.
44191 * include/grub/ieee1275/ofdisk.h: Likewise.
44192 * include/grub/powerpc/libgcc.h: Likewise.
44193 * include/grub/powerpc/setjmp.h: Likewise.
44194 * include/grub/powerpc/types.h: Likewise.
44195 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
44196 * include/grub/powerpc/ieee1275/console.h: Likewise.
44197 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
44198 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
44199 * include/grub/powerpc/ieee1275/loader.h: Likewise.
44200 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
44201 * include/grub/powerpc/ieee1275/time.h: Likewise.
44202 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
44203 * include/grub/sparc64/libgcc.h: Likewise.
44204 * include/grub/sparc64/setjmp.h: Likewise.
44205 * include/grub/sparc64/types.h: Likewise.
44206 * include/grub/sparc64/ieee1275/console.h: Likewise.
44207 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44208 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44209 * include/grub/sparc64/ieee1275/time.h: Likewise.
44210 * include/grub/util/biosdisk.h: Likewise.
44211 * include/grub/util/getroot.h: Likewise.
44212 * include/grub/util/lvm.h: Likewise.
44213 * include/grub/util/misc.h: Likewise.
44214 * include/grub/util/raid.h: Likewise.
44215 * include/grub/util/resolve.h: Likewise.
44216 * io/gzio.c: Likewise.
44217 * kern/device.c: Likewise.
44218 * kern/disk.c: Likewise.
44219 * kern/dl.c: Likewise.
44220 * kern/elf.c: Likewise.
44221 * kern/env.c: Likewise.
44222 * kern/err.c: Likewise.
44223 * kern/file.c: Likewise.
44224 * kern/fs.c: Likewise.
44225 * kern/loader.c: Likewise.
44226 * kern/main.c: Likewise.
44227 * kern/misc.c: Likewise.
44228 * kern/mm.c: Likewise.
44229 * kern/parser.c: Likewise.
44230 * kern/partition.c: Likewise.
44231 * kern/rescue.c: Likewise.
44232 * kern/term.c: Likewise.
44233 * kern/efi/efi.c: Likewise.
44234 * kern/efi/init.c: Likewise.
44235 * kern/efi/mm.c: Likewise.
44236 * kern/i386/dl.c: Likewise.
44237 * kern/i386/efi/init.c: Likewise.
44238 * kern/i386/efi/startup.S: Likewise.
44239 * kern/i386/pc/init.c: Likewise.
44240 * kern/i386/pc/lzo1x.S: Likewise.
44241 * kern/i386/pc/startup.S: Likewise.
44242 * kern/ieee1275/ieee1275.c: Likewise.
44243 * kern/powerpc/cache.S: Likewise.
44244 * kern/powerpc/dl.c: Likewise.
44245 * kern/powerpc/ieee1275/cmain.c: Likewise.
44246 * kern/powerpc/ieee1275/crt0.S: Likewise.
44247 * kern/powerpc/ieee1275/init.c: Likewise.
44248 * kern/powerpc/ieee1275/openfw.c: Likewise.
44249 * kern/sparc64/cache.S: Likewise.
44250 * kern/sparc64/dl.c: Likewise.
44251 * kern/sparc64/ieee1275/init.c: Likewise.
44252 * kern/sparc64/ieee1275/openfw.c: Likewise.
44253 * loader/efi/chainloader.c: Likewise.
44254 * loader/efi/chainloader_normal.c: Likewise.
44255 * loader/i386/efi/linux.c: Likewise.
44256 * loader/i386/efi/linux_normal.c: Likewise.
44257 * loader/i386/pc/chainloader.c: Likewise.
44258 * loader/i386/pc/chainloader_normal.c: Likewise.
44259 * loader/i386/pc/linux.c: Likewise.
44260 * loader/i386/pc/linux_normal.c: Likewise.
44261 * loader/i386/pc/multiboot.c: Likewise.
44262 * loader/i386/pc/multiboot_normal.c: Likewise.
44263 * loader/powerpc/ieee1275/linux.c: Likewise.
44264 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
44265 * normal/arg.c: Likewise.
44266 * normal/cmdline.c: Likewise.
44267 * normal/command.c: Likewise.
44268 * normal/completion.c: Likewise.
44269 * normal/execute.c: Likewise.
44270 * normal/function.c: Likewise.
44271 * normal/lexer.c: Likewise.
44272 * normal/main.c: Likewise.
44273 * normal/menu.c: Likewise.
44274 * normal/menu_entry.c: Likewise.
44275 * normal/misc.c: Likewise.
44276 * normal/parser.y: Likewise.
44277 * normal/script.c: Likewise.
44278 * normal/i386/setjmp.S: Likewise.
44279 * normal/powerpc/setjmp.S: Likewise.
44280 * normal/sparc64/setjmp.S: Likewise.
44281 * partmap/acorn.c: Likewise.
44282 * partmap/amiga.c: Likewise.
44283 * partmap/apple.c: Likewise.
44284 * partmap/gpt.c: Likewise.
44285 * partmap/pc.c: Likewise.
44286 * partmap/sun.c: Likewise.
44287 * term/gfxterm.c: Likewise.
44288 * term/terminfo.c: Likewise.
44289 * term/efi/console.c: Likewise.
44290 * term/i386/pc/console.c: Likewise.
44291 * term/i386/pc/serial.c: Likewise.
44292 * term/i386/pc/vesafb.c: Likewise.
44293 * term/i386/pc/vga.c: Likewise.
44294 * term/ieee1275/ofconsole.c: Likewise.
44295 * util/biosdisk.c: Likewise.
44296 * util/console.c: Likewise.
44297 * util/genmoddep.c: Likewise.
44298 * util/getroot.c: Likewise.
44299 * util/grub-emu.c: Likewise.
44300 * util/grub-mkdevicemap.c: Likewise.
44301 * util/grub-probe.c: Likewise.
44302 * util/lvm.c: Likewise.
44303 * util/misc.c: Likewise.
44304 * util/raid.c: Likewise.
44305 * util/resolve.c: Likewise.
44306 * util/update-grub.in: Likewise.
44307 * util/update-grub_lib.in: Likewise.
44308 * util/grub.d/00_header.in: Likewise.
44309 * util/grub.d/10_hurd.in: Likewise.
44310 * util/grub.d/10_linux.in: Likewise.
44311 * util/i386/efi/grub-install.in: Likewise.
44312 * util/i386/efi/grub-mkimage.c: Likewise.
44313 * util/i386/pc/grub-install.in: Likewise.
44314 * util/i386/pc/grub-mkimage.c: Likewise.
44315 * util/i386/pc/grub-mkrescue.in: Likewise.
44316 * util/i386/pc/grub-setup.c: Likewise.
44317 * util/i386/pc/misc.c: Likewise.
44318 * util/powerpc/ieee1275/grub-install.in: Likewise.
44319 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
44320 * util/powerpc/ieee1275/misc.c: Likewise.
44321 * video/bitmap.c: Likewise.
44322 * video/video.c: Likewise.
44323 * video/i386/pc/vbe.c: Likewise.
44324 * video/i386/pc/vbeblit.c: Likewise.
44325 * video/i386/pc/vbefill.c: Likewise.
44326 * video/i386/pc/vbeutil.c: Likewise.
44327 * video/readers/tga.c: Likewise.
44328
3572d015 443292007-07-02 Robert Millan <rmh@aybabtu.com>
44330
44331 * conf/i386-efi.rmk: Replace obsolete reference to
44332 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
44333 with util/getroot.c.
44334 * conf/powerpc-ieee1275.rmk: Likewise.
44335 * conf/sparc64-ieee1275.rmk: Likewise.
44336
44337 * util/grub-emu.c (main): Fix unchecked pointer handling.
44338
2c2a681b 443392007-07-02 Robert Millan <rmh@aybabtu.com>
44340
44341 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
44342 invocation to fail, in order to support partition-less media.
44343
44344 * util/i386/pc/grub-install.in: Likewise.
44345
44346 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
44347 which fs or partmap modules are needed (akin to its sister scripts).
44348
44349 Also use grub-probe to get rid of unportable /proc/mounts check.
44350
44351 Print the same informational message that the other scripts do, before
fe6b695a 44352 exiting.
2c2a681b 44353
6193defe 443542007-06-23 Robert Millan <rmh@aybabtu.com>
44355
fe6b695a 44356 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 44357 a font file can be found and, if so, echo the GRUB path to it.
44358
44359 * util/update-grub.in: Handle multiple terminals depending on user
44360 input, platform availability and font file presence. Propagate
44361 variables of our findings to /etc/grub.d/ children.
44362
44363 * util/grub.d/00_header.in: Handle multiple terminals, based on
44364 environment setup by update-grub.
44365
eface1dc 443662007-06-23 Robert Millan <rmh@aybabtu.com>
44367
ba50d28f 44368 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 44369
bf697e28 443702007-06-21 Robert Millan <rmh@aybabtu.com>
44371
44372 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
44373 indicate end of data section in kernel image.
44374 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
44375 GRUB_KERNEL_MACHINE_DATA_END.
44376
44377 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
44378 space for it.
44379 * kern/i386/efi/startup.S: Likewise.
44380
44381 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
44382 during image generation. Implement --prefix option to override this
44383 patch.
44384 * util/i386/efi/grub-mkimage.c: Likewise.
44385
44386 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
44387 code to make path relative to its root into a separate function.
44388
44389 * util/i386/pc/grub-install.in: Use newly provided
44390 make_system_path_relative_to_its_root() to convert ${grubdir}, then
44391 pass the result to grub-install --prefix.
44392
baa574b4 443932007-06-13 Robert Millan <rmh@aybabtu.com>
44394
44395 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
44396 DEFAULT_DEVICE_MAP.
44397 * util/grub-emu.c: Use above definitions from misc.h instead of
44398 defining them.
44399 * util/grub-mkdevicemap.c: Likewise.
44400 * util/i386/pc/grub-setup.c: Likewise.
44401 * util/grub-probe.c: Likewise.
44402 (probe): Abort with grub_util_error() when either
44403 grub_guess_root_device or grub_util_get_grub_dev fails.
44404
0215dcbf 444052007-06-12 Robert Millan <rmh@aybabtu.com>
44406
44407 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
44408 "pager" assignment.
44409 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
44410 "pcdata".
44411 * util/grub-probe.c (probe): Likewise for "drive_name".
44412
8af2ab7b 444132007-06-11 Robert Millan <rmh@aybabtu.com>
44414
44415 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
44416 not just the cdrom one.
44417
59d31694 444182007-06-11 Robert Millan <rmh@aybabtu.com>
44419
44420 * util/i386/pc/grub-mkrescue.in: Add "set -e".
44421 Add --pkglibdir=DIR option to override pkglibdir.
44422 Mention --image-type=TYPE in help output.
44423 Fix --grub-mkimage (it was a no-op).
fe6b695a 44424 Abort gracefully when no parameter is given.
59d31694 44425
7ee367e4 444262007-06-11 Robert Millan <rmh@aybabtu.com>
44427
44428 * util/i386/pc/grub-mkrescue.in: New file.
44429 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
44430 * Makefile.in: Handle bin_SCRIPTS.
44431
29b0ed46 444322007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
44433
44434 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
44435 list of video modes.
44436
c0f90770 444372007-06-06 Robert Millan <rmh@aybabtu.com>
44438
44439 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
44440 file doesn't exist, or if it is in a filesystem grub can't read.
44441
44442 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
44443 not abort if GRUB_DRIVE could not be defined. Rearrange generated
44444 header comment to fit in 80 columns when the variables are resolved.
44445
44446 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
44447 could be identified by update-grub. Remove redundant check for
fe6b695a 44448 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 44449 handles that).
44450
fb36dc26 444512007-06-04 Robert Millan <rmh@aybabtu.com>
44452
44453 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
44454
44455 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
44456
44457 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
44458
0c68c93e 444592007-06-04 Robert Millan <rmh@aybabtu.com>
44460
44461 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
44462
44463 * include/grub/partition.h: Declare grub_apple_partition_map_init and
44464 grub_apple_partition_map_fini.
44465
44466 * util/biosdisk.c
44467 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
44468 to access >2 TiB disks).
44469
44470 Print disk->total_sectors with %llu instead of %lu, since this
44471 variable is always 64-bit (prevents wrong disk size from being displayed
44472 on either >2 TiB disk or big-endian CPU).
44473
44474 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
44475 into a generic case that supports all (sane) partition maps.
44476
44477 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
44478 breaks big-endian.
44479
44480 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
44481 and grub_apple_partition_map_fini() after that.
44482
0f23eb74 444832007-06-01 Robert Millan <rmh@aybabtu.com>
44484
44485 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
44486
44487 * util/grub.d/00_header.in: Only enable gfxterm when
44488 convert_system_path_to_grub_path() succeeds.
44489
42c71976 444902007-05-20 Robert Millan <rmh@aybabtu.com>
44491
44492 * util/update-grub_lib.in: New file.
44493 * DISTLIST: Add update-grub_lib.in.
44494 * conf/common.rmk: Generate update-grub_lib and install it in
44495 $(lib_DATA).
44496 * Makefile.in: Add install routine for $(lib_DATA).
44497
44498 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
44499 function provided by update-grub_lib to support arbitrary paths of
44500 unifont.pff.
44501 * util/update-grub.in: Use convert_system_path_to_grub_path() to
44502 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
44503
5beb2291 445042007-05-19 Robert Millan <rmh@aybabtu.com>
44505
44506 * commands/i386/cpuid.c: New module.
44507 * DISTLIST: Add it.
44508 * conf/i386-efi.rmk: Enable cpuid.mod.
44509 * conf/i386-pc.rmk: Likewise.
44510
7262eca1 445112007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44512
44513 * kern/disk.c (grub_disk_read): Check return value of
44514 grub_realloc().
44515
260ba823 445162007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44517
44518 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
44519 arrays.
44520 * disk/raid.c (grub_raid_open): Likewise.
44521
1ecb6cf2 445222007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44523
44524 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
44525 stack instead of on the heap.
44526
44527 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
44528 before doing a read on it.
44529
44530 * configure.ac: Only use -fno-stack-protector for the target
44531 environment.
f19dbdb7 44532
21c8cbb1 445332007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44534
44535 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
44536 __attribute_ ((unused)) to mode_type argument.
44537
44538 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 44539
21c8cbb1 44540 * kern/misc.c (memcmp): Fix prototype.
44541
44542 * include/grub/partition.h [GRUB_UTIL]
44543 (grub_gpt_partition_map_init): Add prototype.
44544 (grub_gpt_partition_map_fini): Likewise.
44545
44546 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
44547 at the right place.
44548
44549 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
44550 (grub_fat_read_data): Likewise.
44551 (grub_fat_find_dir): Likewise.
44552
44553 * font/manager.c (find_glyph): Make table a const.
44554 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 44555
849d55d3 445562007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
44557
44558 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
44559 code, first search for device in /dev/mapper, then in /dev.
44560 (grub_util_get_grub_dev): New function.
44561 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
44562 prototype.
44563 * util/grub-probe.c (probe): Remove check for RAID, call
44564 grub_util_get_grub_dev() instead of
44565 grub_util_biosdisk_get_grub_dev().
44566 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
44567 grub_util_biosdisk_get_grub_dev().
44568 * util/i386/pc/grub-setup.c (main): Likewise.
44569
8fff7c2f 445702007-05-16 Robert Millan <rmh@aybabtu.com>
44571
44572 * DISTLIST: Update for the latest changes.
44573 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
44574 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
44575 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
44576 grub/util/biosdisk.h.
44577 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
44578 grub/util/biosdisk.h.
44579
48e12b52 445802007-05-16 Robert Millan <rmh@aybabtu.com>
44581
44582 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
44583
46b9d128 445842007-05-16 Robert Millan <rmh@aybabtu.com>
44585
44586 * util/i386/efi/grub-install.in: New.
44587 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
44588 newly added grub-install.
44589 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
44590 include.
44591 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
44592 grub/util/biosdisk.h.
44593 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
44594 grub/util/biosdisk.h.
44595
2d1a40a9 445962007-05-16 Robert Millan <rmh@aybabtu.com>
44597
44598 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
44599 * include/grub/util/biosdisk.h: ... here.
44600 * util/i386/pc/biosdisk.c: Moved to ...
44601 * util/biosdisk.c: ... here.
44602 * util/i386/pc/getroot.c: Moved to ...
44603 * util/getroot.c: ... here.
44604 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
44605 * util/grub-mkdevicemap.c: ... here.
44606 * util/i386/pc/grub-probe.c: Moved to ...
44607 * util/grub-probe.c: ... here.
44608
9e26e3bc 446092007-05-15 Robert Millan <rmh@aybabtu.com>
44610
44611 * util/update-grub.in: Remove duplicated line in grub.cfg header
44612 message.
44613
57f96397 446142007-05-13 Robert Millan <rmh@aybabtu.com>
44615
44616 * util/update-grub.in: Fix a few assumptions about the devices holding
44617 /, /boot and /boot/grub being the same.
44618 * util/grub.d/00_header.in: Likewise.
44619 * util/grub.d/10_hurd.in: Likewise.
44620 * util/grub.d/10_linux.in: Likewise.
44621
44622 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
44623 patterns. Use that to define the `.old' suffix as older than `'.
44624
44625 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
44626
44627 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
44628 the grub.cfg header message.
44629
2e610d62 446302007-05-11 Robert Millan <rmh@aybabtu.com>
44631
44632 * util/update-grub.in: Create device.map if it doesn't already exist,
44633 before attempting to run grub-probe.
44634 Check for grub-probe and grub-mkdevicemap with the same code
44635 grub-install is using.
44636 Remove test mode.
44637
3f6a10ef 446382007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
44639
44640 * Makefile.in: Add the datarootdir autoconf variable.
44641
02e7b75e 446422007-05-09 Robert Millan <rmh@aybabtu.com>
44643
44644 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 44645 fail gracefully if dev->disk->partition == NULL.
02e7b75e 44646
75f396cc 446472007-05-07 Robert Millan <rmh@aybabtu.com>
44648
44649 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
44650 determine partition map module.
44651 * util/i386/pc/grub-install.in: Use this feature to decide which
44652 partition module to load, instead of hardcoding pc and gpt.
44653
da65cb36 446542007-05-07 Robert Millan <rmh@aybabtu.com>
44655
44656 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
44657 source directory differs from build directory.
44658
b57d6a91 446592007-05-05 Robert Millan <rmh@aybabtu.com>
44660
44661 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
44662 initialisation.
44663
509d00f1 446642007-05-05 Robert Millan <rmh@aybabtu.com>
44665
44666 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
44667
c48f23ef 446682007-05-05 Robert Millan <rmh@aybabtu.com>
44669
44670 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
44671 command-line arguments via ${GRUB_CMDLINE_LINUX}.
44672
20b97658 446732007-05-05 Robert Millan <rmh@aybabtu.com>
44674
44675 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
44676 (grub_probe_SOURCES): Likewise.
44677 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
44678 GPT and initialize dos_part and bsd_part accordingly.
44679 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
44680 install_bsd_part.
44681 (main): Activate gpt module for use during partition identification,
44682 and deactivate it afterwards.
44683 * util/i386/pc/grub-install.in: Add gpt module to core.img.
44684 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
44685 partition identification, and deactivate it afterwards.
44686
99123174 446872007-05-05 Robert Millan <rmh@aybabtu.com>
44688
44689 * term/i386/pc/console.c (grub_console_fini): Call
44690 grub_term_set_current() before grub_term_unregister().
44691
ebd97f6e 446922007-05-04 Robert Millan <rmh@aybabtu.com>
44693
44694 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
44695 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
44696 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
44697 and update-grub_DATA.
44698 * conf/common.rmk: Build and install update-grub components.
44699 * conf/common.mk: Regenerate.
44700 * util/update-grub.in: New. Core of update-grub.
44701 * util/grub.d/00_header.in: New. Generates grub.cfg header.
44702 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
44703 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
44704 * util/grub.d/README: New. Document grub.d directory layout.
44705
b06a264d 447062007-05-01 Robert Millan <rmh@aybabtu.com>
44707
44708 * util/grub-emu.c: Move initialization functions
44709 grub_util_biosdisk_init() and grub_init_all() before
44710 grub_util_biosdisk_get_grub_dev(), which relies on them.
44711
41f0050e 447122007-04-19 Robert Millan <rmh@aybabtu.com>
44713
44714 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
44715 it is used later.
44716
04582bb3 447172007-04-18 Jerone Young <jerone@gmail.com>
44718
f19dbdb7 44719 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 44720 stanza.
44721
08db4632 447222007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 44723
08db4632 44724 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
44725 continue on and look for device node with real device name.
44726
801b76be 447272007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 44728
fe6b695a 44729 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 44730 ability.
44731 * Makefile.in: Add autoconf package transformation code.
44732 * util/i386/pc/grub-install.in: Likewise.
44733 * util/powerpc/ieee1275/grub-install.in: Likewise.
44734
6795c4e1 447352007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
44736
44737 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
44738 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
44739 (EXT2_REVISION): Likewise.
44740 (EXT2_INODE_SIZE): Likewise.
44741 (struct grub_ext2_block_group): Added a missing member
44742 "used_dirs".
44743 (grub_ext2_read_inode): Divide by the inode size in a superblock
44744 instead of 128 to obtain INODES_PER_BLOCK.
44745 Use the macro EXT2_INODE_SIZE instead of directly using
44746 SBLOCK->INODE_SIZE.
44747
d70af616 447482007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
44749
44750 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
44751 superblock instead of the structure size to compute an
44752 offset. This fixes the problem that GRUB could not read a
44753 filesystem when inode size is different from 128-byte.
44754
3b801603 447552007-03-05 Marco Gerards <marco@gnu.org>
44756
44757 * normal/main.c (read_config_file): When "menu" is not set, create
44758 an initial context.
44759
4785bfe4 447602007-02-21 Hollis Blanchard <hollis@penguinppc.org>
44761
44762 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
44763 (HEAP_LIMIT): New macro.
44764 (grub_claim_heap): Claim memory up to `heaplimit'.
44765
a0cbb023 447662007-02-21 Hollis Blanchard <hollis@penguinppc.org>
44767
44768 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
44769 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
44770 (_start): Likewise.
44771 (grub_arch_modules_addr): Return address after `_end'.
44772 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
44773 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
44774 (add_segments): Calculate `_end' from phdr size and location.
44775 (ALIGN_UP): Moved to ...
44776 * include/grub/misc.h: here.
44777 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
44778 New macro.
44779 (GRUB_IEEE1275_MODULE_BASE): Removed.
44780
fd7d8eba 447812007-02-20 Hollis Blanchard <hollis@penguinppc.org>
44782
44783 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
44784 loop boundary.
44785
9b09e6fc 447862007-02-20 Hollis Blanchard <hollis@penguinppc.org>
44787
44788 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
44789 All users updated.
44790 (grub_elf64_load_hook_t): Likewise.
44791 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
44792 debug output.
44793
3ce27299 447942007-02-20 Hollis Blanchard <hollis@penguinppc.org>
44795
44796 * kern/mm.c: Update copyright.
44797 (grub_mm_debug): Correct syntax error.
44798 (grub_mm_dump_free): New function.
44799 (grub_debug_free): Call `grub_free'.
44800 * include/grub/mm.h: Update copyright.
44801 (grub_mm_dump_free): Add declaration.
44802
077d5fee 448032007-02-12 Hollis Blanchard <hollis@penguinppc.org>
44804
44805 * include/grub/ieee1275/ieee1275.h: Update copyright.
44806 * kern/powerpc/ieee1275/init.c: Likewise.
44807 * kern/powerpc/ieee1275/openfw.c: Likewise.
44808
44809 * loader/powerpc/ieee1275/linux.c: Likewise.
44810 * include/grub/elfload.h: Likewise.
44811 * kern/elf.c: Likewise.
44812 (grub_elf32_load): Pass `base' and `size' parameters. Update all
44813 callers.
44814 (grub_elf64_load): Likewise.
44815 (grub_elf32_load_segment): Move to a nested function.
44816 (grub_elf64_load_segment): Likewise.
44817
dc946850 448182007-02-12 Hollis Blanchard <hollis@penguinppc.org>
44819
44820 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
44821 prototype.
44822 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
44823 (grub_heap_len): Likewise.
44824 (HEAP_SIZE): New macro.
44825 (grub_claim_heap): New function.
44826 (grub_machine_init): Don't claim heap directly. Call
44827 `grub_claim_heap'.
44828 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
44829 (grub_available_iterate): New function.
44830
baa2a121 448312007-02-03 Thomas Schwinge <tschwinge@gnu.org>
44832
44833 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
44834 * configure.ac: Use it for testing the HOST and TARGET compilers.
44835
4fe9862e 448362006-12-13 Thomas Schwinge <tschwinge@gnu.org>
44837
44838 * Makefile.in (enable_grub_emu): New variable.
44839 * configure.ac (--enable-grub-emu): New option.
44840 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
44841 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
44842 * conf/i386-pc.rmk: Likewise.
44843 * conf/powerpc-ieee1275.rmk: Likewise.
44844 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
44845
a8aa5762 448462006-12-12 Marco Gerards <marco@gnu.org>
44847
44848 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
44849
44850 * kern/env.c (grub_env_unset): Don't free the member `value' when
44851 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
44852 pointer.
44853
44854 * normal/main.c (current_menu): Removed.
44855 (free_menu): Unset the `menu' environment variable.
44856 (grub_normal_menu_addentry): Make use of the environment variable
44857 `menu', instead of using the global `current_menu'. Allocate
44858 memory for the sourcecode of this entry.
44859 (read_config_file): New argument `nested', changed all callers.
44860 Only in the case of a new context, initialize a new menu. Set the
44861 `menu' environment variable.
44862 (grub_normal_execute): Don't set and unset the environment
44863 variable `menu' here anymore. Only free the menu when leaving the
44864 context.
44865
44866 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
44867 leak.
44868
957b3a3e 448692006-12-11 Marco Gerards <marco@gnu.org>
44870
44871 * normal/menu_entry.c (run): Fix off by one bug so the last line
44872 is executed. Move the loader check to outside the loop.
44873
ef875714 448742006-12-08 Hollis Blanchard <hollis@penguinppc.org>
44875
44876 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
44877
4e739985 448782006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
44879
44880 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
44881 the number of sectors. Reported by Andrey Shuvikov
44882 <mr_hyro@yahoo.com>.
f19dbdb7 44883
790707f2 448842006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
44885
44886 * kern/disk.c (grub_disk_read): When there is a read error, always
44887 try to read only the necessary data.
f19dbdb7 44888
790707f2 44889 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
44890 disk/raid.c.
44891 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
44892 prototype.
44893 [GRUB_UTIL] (grub_raid_fini): Likewise.
44894 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 44895 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 44896 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
44897 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
44898 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
44899 and grub_raid_fini().
f19dbdb7 44900
03e58196 449012006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
44902
44903 * include/grub/types.h (__unused): Rename to UNUSED.
44904 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
44905 (grub_elf64_size): Likewise.
f19dbdb7 44906
ae4f23bf 449072006-11-03 Hollis Blanchard <hollis@penguinppc.org>
44908
44909 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
44910 grub_error_push and grub_error_pop in the error-handling path.
44911 (grub_elf32_load_segment): Only call grub_file_read with non-zero
44912 length.
44913
2166cc83 449142006-11-03 Hollis Blanchard <hollis@penguinppc.org>
44915
44916 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
44917 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44919 (kernel_elf_SOURCES): Likewise.
44920 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
44921 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
44922 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44923 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44924 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
44925 (elf_mod_SOURCES): New variable.
44926 (elf_mod_CFLAGS): Likewise.
44927 (elf_mod_LDFLAGS): Likewise.
44928 * include/grub/types.h (__unused): New macro.
44929 * include/grub/elfload.h: New file.
44930 * kern/elf.c: Likewise.
44931 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
44932 (ELF32_LOADMASK): New macro.
44933 (ELF64_LOADMASK): Likewise.
44934 (vmlinux): Removed.
44935 (grub_linux_load32): New function.
44936 (grub_linux_load64): Likewise.
44937 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
44938 Use grub_elf_t instead of grub_file_t.
44939
a09d5aa5 449402006-11-02 Hollis Blanchard <hollis@penguinppc.org>
44941
44942 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
44943 `catch_result' to struct set_color_args.
44944
d976fc51 449452006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44946
44947 * normal/menu.c: Include grub/script.h.
44948 * normal/menu_entry.c: Likewise.
44949 * include/grub/normal.h: Do not include grub/script.h.
44950
67507549 449512006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44952
44953 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
44954
69203a99 449552006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44956
44957 * kern/disk.c (grub_disk_open): Print debug messages when opening a
44958 disk.
44959 (grub_disk_close): Print debug messages when closing a disk.
44960 (grub_disk_read): Print debug messages when disk read fails.
44961 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
44962 filesystem type.
44963 * kern/partition.c: Include misc.h.
44964 (grub_partition_iterate): Print debug messages when detecting
44965 partition type.
44966
e2b8278c 449672006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44968
44969 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
44970 is negative.
44971 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
44972
97b2f2ff 449732006-10-26 Hollis Blanchard <hollis@penguinppc.org>
44974
44975 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44976 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
44977
6555d655 449782006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
44979
44980 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
44981 instead of sizeof(lv). Patch by Michael Guntsche.
44982
4d42b77f 449832006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
44984
44985 * disk/lvm.c: Rename VGS to VG_LIST.
44986 (grub_lvm_iterate): Change VGS->LV to VG-LV.
44987 (grub_lvm_open): Likewise.
44988 Thanks to Michael Guntsche for finding this bug.
44989
5d74d927 449902006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44991
44992 * configure.ac (AC_INIT): Bumped to 1.95.
44993
a1bb27e4 449942006-10-14 Robert Millan <rmh@aybabtu.com>
44995
44996 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
44997 with "/dev/.static/dev/md".
44998
e0994b8b 449992006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45000
45001 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
45002 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
45003 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
45004 DRIVE_NAME are always freed.
45005
45006 * util/i386/pc/biosdisk.c (make_device_name): Add one into
45007 DOS_PART, as a DOS partition is counted from one instead of zero
45008 now. Reported by Robert Millan.
45009
ddd5cee9 450102006-10-14 Robert Millan <rmh@aybabtu.com>
45011
45012 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
45013 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
45014 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
45015 string returned by grub_guess_root_device.
45016 * util/i386/pc/grub-setup.c: Likewise.
45017 * util/i386/pc/grub-probefs.c: Likewise.
45018
45019 * util/i386/pc/grub-probefs.c: Rename to ...
45020 * util/i386/pc/grub-probe.c: ... this.
45021 * DISTLIST: Remove grub-probefs, add grub-probe.
45022 * conf/i386-efi.rmk: Likewise.
45023 * conf/i386-pc.rmk: Likewise.
45024 * util/i386/pc/grub-install.in: Likewise.
45025
45026 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
45027 choose which information we want to print.
45028
2b002173 450292006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45030
45031 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
45032 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
45033 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
45034 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
45035 video/readers/tga.c and video/i386/pc/vbeutil.c.
45036
450372006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
45038
45039 Added support for RAID and LVM.
f19dbdb7 45040
2b002173 45041 * disk/lvm.c: New file.
45042 * disk/raid.c: Likewise.
45043 * include/grub/lvm.h: Likewise.
f19dbdb7 45044 * include/grub/raid.h: Likewise.
2b002173 45045 * include/grub/util/lvm.h: Likewise.
45046 * include/grub/util/raid.h: Likewise.
45047 * util/lvm.c: Likewise.
45048 * util/raid.c: Likewise.
45049
45050 * include/grub/disk.h (grub_disk_dev_id): Add
45051 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
45052 (grub_disk_get_size): New prototype.
45053 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
45054 returns a partition.
45055 (grub_disk_get_size): New function.
f19dbdb7 45056
2b002173 45057 * kern/i386/pc/init.c (make_install_device): Copy the prefix
45058 verbatim if grub_install_dos_part is -2.
45059
45060 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
45061 and LVM devices.
45062
45063 * util/i386/pc/grub-setup.c (setup): New argument
45064 MUST_EMBED. Force embedding of GRUB when the argument is
45065 true. Close FILE before returning.
45066 (main): Add support for RAID and LVM.
f19dbdb7 45067
2b002173 45068 * conf/common.rmk: Add RAID and LVM modules.
45069 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
45070 util/lvm.c.
45071 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
45072
45073 * kern/misc.c (grub_strstr): New function.
45074 * include/grub/misc.h (grub_strstr): New prototype.
45075
050548d0 450762006-10-10 Tristan Gingold <tristan.gingold@bull.net>
45077
45078 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
45079
da849d2d 450802006-10-05 Tristan Gingold <tristan.gingold@bull.net>
45081
45082 * kern/misc.c (grub_strtoull): Guess the base only if not
45083 specified.
45084
97b2f2ff 450852006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 45086
45087 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
45088 PowerMac support.
45089
97b2f2ff 450902006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 45091
45092 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
45093
45094 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
45095 Remove `flags' argument. All callers changed.
45096 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
45097 (IEEE1275_IHANDLE_INVALID): New variable.
45098 (IEEE1275_CELL_INVALID): New variable.
45099 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
45100 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
45101 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
45102 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
45103 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
45104 codes from Open Firmware. All callers updated.
45105 (grub_ieee1275_next_property): Directly return Open Firmware return
45106 code.
45107 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45108 Standardize error checking from `grub_ieee1275_get_property'.
45109 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
45110 `devalias' to `aliases'. Correct comments. Consolidate error paths.
45111
97b2f2ff 451122006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 45113
45114 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
45115 `instance_to_package_args' to `instance_to_path_args'.
45116
45117 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
45118 `grub_ieee1275_chosen'.
45119
45120 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
45121 `grub_ieee1275_interpret'.
45122
97b2f2ff 451232006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 45124
45125 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
45126
97b2f2ff 451272006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 45128
45129 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
45130 (__cmpdi): Likewise.
45131
45132 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
45133 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
45134 `grub_ssize_t'.
45135
02bb8acc 45136 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 45137
45138 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
45139 to type `grub_ssize_t'.
45140 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
45141
7f9a8531 451422006-09-22 Marco Gerards <marco@gnu.org>
45143
45144 * normal/script.c (grub_script_create_cmdmenu): Skip leading
45145 newlines.
45146
b5ef1102 451472006-09-22 Marco Gerards <marco@gnu.org>
45148
45149 * commands/echo.c: New file.
45150
45151 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
45152
45153 * conf/common.rmk (echo_mod_SOURCES): New variable.
45154 (echo_mod_CFLAGS): Likewise.
45155 (echo_mod_LDFLAGS): Likewise.
45156
2cff3677 451572006-09-22 Marco Gerards <marco@gnu.org>
45158
45159 * normal/main.c (get_line): Malloc memory instead of using
45160 preallocated memory. Removed the arguments `cmdline' and
45161 `max_len'. Updated all callers.
45162
6ba4688b 451632006-09-22 Marco Gerards <marco@gnu.org>
45164
45165 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
45166 (normal_mod_DEPENDENCIES): Likewise.
45167
45168 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
45169 (normal_mod_DEPENDENCIES): Likewise.
45170
45171 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
45172
e02ac02c 451732006-09-22 Johan Rydberg <jrydberg@gnu.org>
45174
45175 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
45176 programs.
45177 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
45178 (normal_mod_DEPENDENCIES): Likewise.
45179 * conf/i386-pc.mk: Regenerate.
45180 * conf/i386-efi.mk: Likewise
45181 * conf/common.mk: Likewise.
45182 * conf/powerpc-ieee1275.mk: Likewise.
45183 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 45184
8d252e44 451852006-09-22 Robert Millan <rmh@aybabtu.com>
45186
45187 Sync with i386 version.
45188 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
45189 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
45190
209bf7ac 451912006-09-21 Robert Millan <rmh@aybabtu.com>
45192
45193 Import from GRUB Legacy (lib/device.c):
45194 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
45195 (init_device_map) [__linux__]: Add support for I2O devices.
45196
6b146090 451972006-09-14 Marco Gerards <marco@gnu.org>
45198
45199 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
45200 `-melf_i386'.
45201
e38600a8 452022006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 45203
45204 * util/i386/pc/grub-install.in: Skip menu.lst when removing
45205 /boot/grub/*.lst.
78fa1790 45206
2952da5d 45207 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 45208
2952da5d 45209 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
45210 before adding it to device.map.
45211
01b82a64 452122006-08-15 Johan Rydberg <jrydberg@gnu.org>
45213
fe6b695a 45214 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 45215 compiles a file; using the -MD option.
45216 * conf/common.mk: Regenerate.
45217 * conf/i386-pc.mk: Likewise.
45218 * conf/i386-efi.mk: Likewise.
45219 * conf/powerpc-ieee1275.mk: Likewise.
45220 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 45221
1064790d 452222006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
45223
45224 Move the prototypes of grub_setjmp and grub_longjmp to
45225 cpu/setjmp.h, so that each architecture may specify different
45226 attributes.
f19dbdb7 45227
1064790d 45228 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
45229 (grub_longjmp): Likewise.
45230 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
45231 (grub_longjmp): Likewise.
45232 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
45233 (grub_longjmp): Likewise.
45234
45235 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
45236 [!GRUB_UTIL] (grub_longjmp): Removed.
45237
29dda3ed 452382006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
45239
45240 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
45241 "color!" method does not return any value.
45242
ad2a06ed 452432006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45244
45245 * include/grub/bitmap.h: New file.
45246
45247 * include/grub/i386/pc/vbeutil.h: Likewise.
45248
45249 * video/bitmap.c: Likewise.
45250
45251 * video/readers/tga.c: Likewise.
45252
45253 * video/i386/pc/vbeutil.c: Likewise.
45254
45255 * commands/videotest.c: Code cleanup and updated to reflect to new
45256 video API.
45257
45258 * term/gfxterm.c: Likewise.
45259
45260 * video/video.c: Likewise.
45261
45262 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
45263 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
45264 (bitmap_mod_SOURCES): New entry.
45265 (bitmap_mod_CFLAGS): Likewise.
45266 (bitmap_mod_LDFLAGS): Likewise.
45267 (tga_mod_SOURCES): Likewise.
45268 (tga_mod_CFLAGS): Likewise.
45269 (tga_mod_LDFLAGS): Likewise.
45270
45271 * include/grub/video.h (grub_video_blit_operators): New enum type.
45272 (grub_video_render_target): Changed as forward declaration and moved
45273 actual definition to be video driver specific.
45274 (grub_video_adapter.blit_bitmap): Added blitting operator.
45275 (grub_video_adapter.blit_render_target): Likewise.
45276 (grub_video_blit_bitmap): Likewise.
45277 (grub_video_blit_render_target): Likewise.
45278
45279 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
45280 driver specific render target definition.
45281 (grub_video_vbe_map_rgba): Added driver internal helper.
45282 (grub_video_vbe_unmap_color): Updated to use
45283 grub_video_i386_vbeblit_info.
45284 (grub_video_vbe_get_video_ptr): Likewise.
45285
45286 * include/grub/i386/pc/vbeblit.h
45287 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
45288 grub_video_i386_vbeblit_info.
45289 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
45290 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
45291 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
45292 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
45293 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
45294 (grub_video_i386_vbeblit_index_index): Likewise.
45295 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
45296 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
45297 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
45298 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
45299 operator.
45300 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
45301 operator.
45302
45303 * video/i386/pc/vbeblit.c: Updated to reflect changes on
45304 include/grub/i386/pc/vbeblit.h.
45305
45306 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
45307 Updated to use grub_video_i386_vbeblit_info.
45308 (grub_video_i386_vbefill_R8G8B8): Likewise.
45309 (grub_video_i386_vbefill_index): Likewise.
45310 (grub_video_i386_vbefill): Added generic filler.
45311
45312 * video/i386/pc/vbefill.c: Updated to reflect changes on
45313 include/grub/i386/pc/vbefill.h.
45314
45315 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
45316 grub_video_i386_vbeblit_info.
45317 (grub_video_vbe_unmap_color): Likewise.
45318 (grub_video_vbe_blit_glyph): Likewise.
45319 (grub_video_vbe_scroll): Likewise.
45320 (grub_video_vbe_draw_pixel): Removed function.
45321 (grub_video_vbe_get_pixel): Likewise.
45322 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
45323 updated code to use it.
45324 (common_blitter): Added common blitter for render target and bitmap.
45325 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
45326 (grub_video_vbe_blit_render_target): Likewise.
45327
bc8c036d 453282006-07-30 Johan Rydberg <jrydberg@gnu.org>
45329
45330 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
45331 is in text mode if there is no console control protocol instance
45332 available.
45333
684a8eff 453342006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45335
45336 * include/grub/video.h: Code cleanup.
45337
45338 * include/grub/i386/pc/vbe.h: Likewise.
45339
45340 * video/i386/pc/vbe.c: Likewise.
45341
45342 * video/i386/pc/vbeblit.c: Likewise.
45343
45344 * video/i386/pc/vbefill.c: Likewise.
45345
45346 * video/video.c: Likewise. Also added more comments.
45347
5915059b 453482006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45349
45350 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
45351 (struct grub_biosdisk_dap): Likewise.
45352
45353 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
45354 linkage settings for all functions.
45355
90ce5d56 453562006-07-12 Marco Gerards <marco@gnu.org>
45357
45358 * configure.ac (--enable-mm-debug): Fix typo.
45359
45360 * genkernsyms.sh.in: Use proper quoting for `CC'.
45361
43e7f879 453622006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
45363
45364 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
45365 (normal_mod_ASFLAGS): Remove "-m32".
45366
4889bdec 453672006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
45368
45369 * util/misc.c: Include config.h.
45370 [!HAVE_MEMALIGN]: Do not include malloc.h.
45371 (grub_memalign): Use posix_memalign, if present. Then, use
45372 memalign, if present. Otherwise, emit an error.
45373
45374 * util/grub-emu.c: Do not include malloc.h.
45375
45376 * include/grub/util/misc.h: Include unistd.h. This is required for
45377 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
45378 D. Eades III <hde@foobar-qux.org>.
45379
45380 * configure.ac (AC_GNU_SOURCE): Added.
45381 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
45382 type.
45383
fd39d4da 453842006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
45385
45386 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
45387 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
45388
b786f3b5 453892006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
45390
45391 * include/grub/types.h (grub_host_addr_t): Rename to
45392 grub_target_addr_t.
45393 (grub_host_off_t): Rename to grub_target_off_t.
45394 (grub_host_size_t): Rename to grub_target_size_t.
45395 (grub_host_ssize_t): Rename to grub_target_ssize_t.
45396 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
45397
45398 * include/grub/kernel.h (struct grub_module_header): Change type
45399 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
45400 (grub_module_info): Likewise.
f19dbdb7 45401
051988bb 454022006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45403
45404 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
45405 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
45406 Velazquez <jesus.velazquez@gmail.com>.
45407
deae281b 454082006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45409
45410 Count partitions from 1 instead of 0 in the string representation
45411 of partitions. Still use 0-based internally.
f19dbdb7 45412
deae281b 45413 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
45414 (sun_partition_map_iterate): Use grub_partition_t instead of
45415 struct grub_partition *. Cast DESC->START_CYLINDER to
45416 grub_uint64_t after converting the endian.
45417 (sun_partition_map_probe): Subtract 1 for PARTNUM.
45418 (sun_partition_map_get_name): Add 1 to P->INDEX.
45419
45420 * partmap/pc.c (grub_partition_parse): Subtract 1 for
45421 PCDATA->DOS_PART.
45422 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
45423
45424 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
45425 zero instead of one.
45426 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
45427 (gpt_partition_map_get_name): Add 1 into P->INDEX.
45428
45429 * partmap/apple.c (apple_partition_map_iterate): Change the type
45430 of POS to unsigned.
45431 (apple_partition_map_probe): Subtract 1 for PARTNUM.
45432 (apple_partition_map_get_name): Add 1 into P->INDEX.
45433
45434 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
45435 of POS to unsigned.
45436 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
45437 calculate the offset of a partition.
45438 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
45439 (amiga_partition_map_get_name): Add 1 into P->INDEX.
45440
45441 * partmap/acorn.c (acorn_partition_map_find): Change the type of
45442 SECTOR to grub_disk_addr_t.
45443 (acorn_partition_map_iterate): Likewise.
45444 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
45445 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
45446 top.
45447 (acorn_partition_map_get_name): Add 1 into P->INDEX.
45448
45449 * kern/i386/pc/init.c (make_install_device): Add 1 into
45450 GRUB_INSTALL_DOS_PART.
45451
45452 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
45453 conditional.
45454
524a1e6a 454552006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45456
45457 Clean up the code to support 64-bit addressing in disks and
45458 files. This change is not enough for filesystems yet.
f19dbdb7 45459
524a1e6a 45460 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
45461 type of "start" to grub_uint64_t.
45462 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
45463 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
45464 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
45465 convert addresses.
45466
45467 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
45468 to grub_disk_addr_t.
45469
45470 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
45471 string.
45472
45473 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45474
45475 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
45476 to char *.
45477
45478 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
45479
45480 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
45481
45482 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
45483
45484 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
45485 to grub_off_t, to detect an error from grub_file_seek.
45486 (grub_multiboot_load_elf32): Likewise.
45487
45488 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
45489 maximum unsigned long value when an overflow is detected.
45490 (grub_strtoull): New function.
45491 (grub_divmod64): Likewise.
45492 (grub_lltoa): use grub_divmod64.
45493
45494 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
45495 grub_disk_addr_t.
45496 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
45497 the pointer to next character. Use grub_strtoull instead of
45498 grub_strtoul.
45499 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
45500 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
45501 respectively.
45502
fe6b695a 45503 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 45504 return value is signed.
45505 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
45506 test if OFFSET is less than zero, as OFFSET is unsigned now.
45507
45508 * kern/disk.c (struct grub_disk_cache): Change the type of
45509 "sector" to grub_disk_addr_t.
45510 (grub_disk_cache_get_index): Change the type of SECTOR to
45511 grub_disk_addr_t. Calculate the hash with SECTOR casted to
45512 unsigned after shifting.
45513 (grub_disk_cache_invalidate): Change the type of SECTOR to
45514 grub_disk_addr_t.
45515 (grub_disk_cache_unlock): Likewise.
45516 (grub_disk_cache_store): Likewise.
45517 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
45518 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
45519 grub_disk_addr_t and grub_uint64_t, respectively.
45520 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
45521 body, as the value of OFFSET is tweaked by
45522 grub_disk_check_range. Change the types of START_SECTOR, LEN and
45523 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
45524 respectively.
45525 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
45526 body, as the value of OFFSET is tweaked by
45527 grub_disk_check_range. Change the types of LEN and N to
45528 grub_size_t.
45529
45530 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
45531 and "saved_offset" to grub_off_t.
45532 (test_header): Cast BUF to char *.
45533 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
45534 to char *.
45535 (grub_gzio_read): Change the types of OFFSET and SIZE to
45536 grub_off_t and grub_size_t, respectively.
45537
45538 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
45539 Removed.
45540 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
45541 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
45542 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
45543 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
45544 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
45545
45546 * include/grub/types.h (grub_off_t): Unconditionally set to
45547 grub_uint64_t.
45548 (grub_disk_addr_t): Changed to grub_uint64_t.
45549
45550 * include/grub/partition.h (struct grub_partition): Change the
45551 types of "start", "len" and "offset" to grub_disk_addr_t,
45552 grub_uint64_t and grub_disk_addr_t, respectively.
45553 (grub_partition_get_start): Return grub_disk_addr_t.
45554 (grub_partition_get_len): Return grub_uint64_t.
45555
45556 * include/grub/misc.h (grub_strtoull): New prototype.
45557 (grub_divmod64): Likewise.
45558
45559 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
45560 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
45561 grub_off_t, respectively.
45562 All callers and references changed.
45563
45564 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
45565 grub_size_t in "read".
45566 All callers and references changed.
45567
45568 * include/grub/file.h (struct grub_file): Change the types of
45569 "offset" and "size" to grub_off_t and grub_off_t,
45570 respectively. Change the type of SECTOR to grub_disk_addr_t in
45571 "read_hook".
45572 (grub_file_read): Change the type of LEN to grub_size_t.
45573 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
45574 grub_off_t.
45575 (grub_file_size): Return grub_off_t.
45576 (grub_file_tell): Likewise.
45577 All callers and references changed.
45578
45579 * include/grub/disk.h (struct grub_disk_dev): Change the types of
45580 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
45581 "write".
45582 (struct grub_disk): Change the type of "total_sectors" to
45583 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 45584 "read_hook".
524a1e6a 45585 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
45586 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
45587 (grub_disk_write): Likewise.
45588 All callers and references changed.
45589
45590 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
45591 char * for grub_strncmp to silence gcc.
45592 (grub_iso9660_mount): Likewise.
45593 (grub_iso9660_mount): Likewise.
45594 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
45595 return statement.
45596 (grub_iso9660_iterate_dir): Likewise.
45597 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
45598
45599 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
45600 LEN to grub_disk_addr_t and grub_size_t, respectively.
45601
45602 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
45603
45604 * fs/jfs.c (grub_jfs_read_file): Likewise.
45605
45606 * fs/minix.c (grub_jfs_read_file): Likewise.
45607
45608 * fs/sfs.c (grub_jfs_read_file): Likewise.
45609
45610 * fs/ufs.c (grub_jfs_read_file): Likewise.
45611
45612 * fs/xfs.c (grub_jfs_read_file): Likewise.
45613
45614 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
45615 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
45616 respectively.
45617
45618 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
45619 BLKNR to -1 instead of returning GRUB_ERRNO.
45620 (grub_ext2_read_file): Change the types of SECTOR and
45621 LEN to grub_disk_addr_t and grub_size_t, respectively.
45622
45623 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
45624 LEN to grub_disk_addr_t and grub_size_t, respectively.
45625
45626 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
45627 grub_file_read.
45628
45629 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
45630 string. Do not cast SECTOR explicitly.
45631
45632 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
45633 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
45634 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
45635 grub_disk_addr_t and grub_size_t, respectively. If the sector is
45636 over 2TB and LBA mode is not supported, raise an error.
45637 (get_safe_sectors): New function.
45638 (grub_biosdisk_read): Use get_safe_sectors.
45639 (grub_biosdisk_write): Likewise.
45640
45641 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
45642 (grub_efidisk_write): Likewise.
45643
45644 * disk/loopback.c (delete_loopback): Cosmetic changes.
45645 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
45646 correctly.
45647 (grub_loopback_open): Likewise.
45648 (grub_loopback_read): Likewise. Also, change the type of POS to
45649 grub_off_t, and fix the usage of grub_memset.
45650
45651 * commands/i386/pc/play.c: Include grub/machine/time.h.
45652
45653 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
45654 print FILE->SIZE.
45655
45656 * commands/configfile.c: Include grub/env.h.
45657
45658 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
45659 GRUB_ERRNO directly instead. Change the type of POS to
45660 grub_off_t. Follow the coding standard.
45661
45662 * commands/blocklist.c: Include grub/partition.h.
45663 (grub_cmd_blocklist): Return an error if the underlying device is
45664 not a disk. Take the starting sector of a partition into account,
45665 if a partition is used.
45666
45667 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
45668 a length field.
45669 (lba_mode): Support 64-bit addresses.
45670 (chs_mode): Likewise.
45671 (copy_buffer): Adapted to the new offsets of a length field and a
45672 segment field.
45673 (blocklist_default_start): Allocate 64-bit space.
45674
45675 * boot/i386/pc/boot.S (force_lba): Removed.
45676 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 45677 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 45678 space.
45679 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
45680 is useless.
45681 (lba_mode): Refactored to support a 64-bit address. More size
45682 optimization.
45683 (setup_sectors): Likewise.
45684
53af98ad 456852006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45686
45687 * DISTLIST: Added include/grub/i386/linux.h. Removed
45688 include/grub/i386/pc/linux.h
45689
45690 * configure.ac (AC_INIT): Bumped to 1.94.
45691
45692 * config.guess: Updated from gnulib.
45693 * config.sub: Likewise.
45694 * install-sh: Likewise.
45695 * mkinstalldirs: Likewise.
45696
b4c1940a 456972006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
45698
45699 * conf/common.rmk (grub_modules_init.lst): Depended on
45700 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
45701 MODSRCFILES.
45702
45703 * genmk.rb (PModule::rule): Reverted the previous change.
45704
cfca1cfd 457052006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
45706
45707 * conf/common.rmk (grub_modules_init.lst): Depends on
45708 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
45709 that the target does not exist before producing.
45710 (grub_modules_init.h): Remove the target before generating.
45711 (grub_emu_init.c): Likewise.
45712
45713 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
45714
aa6d7826 457152006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
45716
45717 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
45718 for the target-specific tests. Make sure that we also have the
45719 up-to-date target variables for those tests.
45720
26c607b9 457212006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
45722
45723 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
45724 (PModule::rule): Likewise.
45725
0162321a 457262006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
45727
45728 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
45729 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
45730 target-specific flags should be prefixed.
45731 (PModule::rule): Likewise.
45732
6c826348 457332006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
45734
45735 * configure.ac (CMP): Check if cmp is available explicitly.
45736
b977bf01 457372006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
45738
45739 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
45740 (target_cpu): New variable.
45741 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 45742
b977bf01 45743 * util/i386/pc/grub-install.in (host_cpu): Removed.
45744 (target_cpu): New variable.
45745 (pkglibdir): Use target_cpu instead of host_cpu.
45746
45747 * util/genmoddep.c: Removed.
f19dbdb7 45748
b977bf01 45749 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
45750 instead of GRUB_HOST_SIZEOF_VOID_P.
45751 * kern/dl.c: Likewise.
45752
45753 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
45754 ...
45755 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
45756 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
45757 (GRUB_TARGET_SIZEOF_LONG): ... this.
45758 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
45759 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
45760 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
45761 to ...
45762 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
45763 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
45764 (GRUB_TARGET_SIZEOF_LONG): ... this.
45765 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
45766 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
45767 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
45768 to ...
45769 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
45770 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
45771 (GRUB_TARGET_SIZEOF_LONG): ... this.
45772 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
45773 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
45774
45775 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
45776 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
45777 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
45778 instead of GRUB_HOST_SIZEOF_LONG.
45779 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
45780 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
45781 GRUB_CPU_WORDS_BIGENDIAN.
45782 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
45783 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
45784 grub_host_ssize_t.
45785
45786 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
45787 (genmoddep_SOURCES): Likewise.
45788 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
45789 (genmoddep_SOURCES): Likewise.
45790 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
45791 (genmoddep_SOURCES): Likewise.
45792 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
45793 Likewise.
45794 (genmoddep_SOURCES): Likewise.
45795
45796 * genmoddep.awk: New file.
45797
45798 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
45799 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
45800 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
45801 (PModule::rule): Likewise.
45802 (Program::rule): Likewise.
45803 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
45804 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
45805 respectively.
45806
45807 * configure.ac: Rewritten intensively to use host and target
45808 instead of build and host, respectively.
45809
45810 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
45811 (host_cpu): Removed.
45812 (target_cpu): New variable.
45813 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
45814 (BUILD_CC): Removed.
45815 (BUILD_CFLAGS): Likewise.
45816 (BUILD_CPPFLAGS): Likewise.
45817 (TARGET_CC): New variable.
45818 (TARGET_CFLAGS): Likewise.
45819 (TARGET_CPPFLAGS): Likewise.
45820 (TARGET_LDFLAGS): Likewise.
45821 (AWK): Likewise.
45822 (include): Use target_cpu instead of host_cpu.
45823 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 45824
b977bf01 45825 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
45826
f09771a1 458272006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
45828
45829 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
45830 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
45831 field 'false' to 'exec_on_false'.
45832 (grub_script_create_cmdif): Renamed argument names to reflect above
45833 changes.
45834
45835 * normal/execute.c (grub_script_execute_cmdif): Likewise.
45836
45837 * normal/script.c (grub_script_create_cmdif): Likewise.
45838
118f4fb3 458392006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
45840
45841 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
45842 top.
45843 (grub_hfsplus_btree_recptr): Likewise.
45844 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
45845 FILEBLOCK both to pass a block number and store next block
45846 number.
45847 (grub_hfsplus_read_block): Rewritten heavily to support an extent
45848 overflow file correctly. Specify errors appropriately, because
45849 fshelp expects that GRUB_ERRNO is set when fails. Reuse
45850 grub_hfsplus_btree_recptr to get the pointer to a found key.
45851 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
45852 is found.
45853
45854 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
45855 linux.mod.
45856 (_linux_mod_SOURCES): New variable.
45857 (_linux_mod_CFLAGS): Likewise.
45858 (_linux_mod_LDFLAGS): Likewise.
45859 (linux_mod_SOURCES): Likewise.
45860 (linux_mod_CFLAGS): Likewise.
45861 (linux_mod_LDFLAGS): Likewise.
45862
45863 * DISTLIST: Added loader/i386/efi/linux.c,
45864 loader/i386/efi/linux_normal.c and
45865 include/grub/i386/efi/loader.h.
45866
45867 * loader/i386/efi/linux.c: New file.
45868 * loader/i386/efi/linux_normal.c: Likewise.
45869 * include/grub/i386/efi/loader.h: Likewise.
45870
89a7d726 458712006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
45872
45873 * commands/blocklist.c: New file.
45874
45875 * DISTLIST: Added commands/blocklist.c.
45876
45877 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 45878 color for the background, and a darker color for the foreground.
89a7d726 45879 (grub_console_checkkey): Return READ_KEY.
45880 (grub_console_cls): Set the background to
45881 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
45882
45883 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
45884
45885 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
45886 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
45887
45888 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
45889 prototype.
45890
45891 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
45892 BG. The spec is wrong again.
45893
45894 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
45895 prototype.
45896 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
45897
45898 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45899 commands/blocklist.c.
45900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 45901
89a7d726 45902 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
45903 (blocklist_mod_SOURCES): New variable.
45904 (blocklist_mod_CFLAGS): Likewise.
45905 (blocklist_mod_LDFLAGS): Likewise.
45906
75c8f258 459072006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
45908
45909 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
45910 duplication.
45911 (lba_mode): Use %eax more intensively to reduce the code size.
45912
da2eb181 459132006-05-20 Marco Gerards <marco@gnu.org>
45914
45915 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
45916
45917 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
45918 for `menuentry'.
45919 (script): Accept leading newlines.
45920 (newlines): New rule to describe 0 or more newlines.
45921 (commands): Accept `command' with trailing newline. Fixed the
45922 order in which arguments were passed to `grub_script_add_cmd'.
45923 Accept commands separated by newlines.
45924 (function): Changed to accept newlines.
45925 (menuentry) Rewritten.
45926
45927 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
45928 front of the list, instead of to the end.
45929
577b4050 459302006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
45931
45932 * util/i386/pc/grub-install.in (bindir): New variable.
45933 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
45934 Shaver <lbgwjl@gmail.com>.
45935
0d6e1189 459362006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
45937
45938 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
45939 grub/machine/linux.h
45940 * loader/i386/pc/linux.c: Likewise.
45941
45942 * include/grub/i386/pc/linux.h: Moved to ...
45943 * include/grub/i386/linux.h: ... here.
45944
45945 * include/grub/i386/linux.h (struct linux_kernel_params): New
45946 struct.
f19dbdb7 45947
31b86e9f 459482006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
45949
45950 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
45951 checking.
45952 (grub_video_vbe_blit_glyph): Likewise.
45953 (grub_video_vbe_blit_bitmap): Likewise.
45954 (grub_video_vbe_blit_render_target): Likewise.
45955
83b984de 459562006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
45957
45958 * configure.ac (--with-platform): Properly quote the square
45959 brackets.
45960
5f0413bd 459612006-05-08 Marco Gerards <marco@gnu.org>
45962
45963 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
45964 this...
45965 (kernel_elf_HEADERS): ...to this. Updated all users.
45966 (grubof_symlist.c): Renamed from this...
45967 (kernel_elf_symlist.c): ...to this. Updated all users.
45968 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
45969 (grubof_SOURCES): Renamed from this...
45970 (kernel_elf_SOURCES): ...to this.
45971 (grubof_HEADERS): Renamed from this...
45972 (kernel_elf_HEADERS): ...to this.
45973 (grubof_CFLAGS): Renamed from this...
45974 (kernel_elf_CFLAGS): ...to this.
45975 (grubof_ASFLAGS): Renamed from this...
45976 (kernel_elf_ASFLAGS): ...to this.
45977 (grubof_LDFLAGS): Renamed from this...
45978 (kernel_elf_LDFLAGS): ...to this.
45979
45980 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
45981 this...
45982 (kernel_elf_HEADERS): ...to this. Updated all users.
45983 (grubof_symlist.c): Renamed from this...
45984 (kernel_elf_symlist.c): ...to this. Updated all users.
45985 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
45986 (grubof_SOURCES): Renamed from this...
45987 (kernel_elf_SOURCES): ...to this.
45988 (grubof_HEADERS): Renamed from this...
45989 (kernel_elf_HEADERS): ...to this.
45990 (grubof_CFLAGS): Renamed from this...
45991 (kernel_elf_CFLAGS): ...to this.
45992 (grubof_ASFLAGS): Renamed from this...
45993 (kernel_elf_ASFLAGS): ...to this.
45994 (grubof_LDFLAGS): Renamed from this...
45995 (kernel_elf_LDFLAGS): ...to this.
45996
45997 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
45998 `kernel.elf' instead of `grubof'.
45999
05568c2e 460002006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
46001
46002 Add --with-platform to configure. Use pkglibdir instead of
46003 pkgdatadir. This is reported by Roger Leigh.
46004
46005 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
46006 (host_vendor): Likewise.
46007 (host_os): Likewise.
46008 (pkgdatadir): Likewise.
46009 (platform): New variable.
46010 (pkglibdir): Likewise.
46011 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 46012
05568c2e 46013 * util/i386/pc/grub-install.in (datadir): Removed.
46014 (host_vendor): Likewise.
46015 (host_os): Likewise.
46016 (pkgdatadir): Likewise.
46017 (platform): New variable.
46018 (pkglibdir): Likewise.
46019 Use PKGLIBDIR instead of PKGDATADIR.
46020
46021 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
46022 instead of GRUB_DATADIR.
46023 (main): Likewise.
46024 * util/i386/pc/grub-mkimage.c (usage): Likewise.
46025 (main): Likewise.
46026 * util/i386/efi/grub-mkimage.c (usage): Likewise.
46027 (main): Likewise.
46028
46029 * configure.ac (--with-platform): New option.
46030 Use PLATFORM instead of HOST_VENDOR to specify a platform.
46031
46032 * Makefile.in: Include a makefile based on PLATFORM instead of
46033 HOST_VENDOR.
46034 (pkgdatadir): Not appended by the machine type.
46035 (pkglibdir): Appended by the machine type.
46036 (host_vendor): Removed.
46037 (platform): New variable.
46038 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
46039 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
46040 (uninstall): Likewise.
46041
4e93851c 460422006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
46043
46044 Use the environment context in the menu. Remove the commands
46045 "default" and "timeout", and use variables instead.
f19dbdb7 46046
4e93851c 46047 * normal/menu.c: Include grub/env.h.
46048 (print_entry): Cast TITLE to silence gcc.
46049 (get_timeout): New function.
46050 (set_timeout): Likewise.
46051 (get_entry_number): Likewise.
46052 (run_menu): Use a default entry, a fallback entry and a timeout
46053 in the environment variables "default", "fallback" and
46054 "timeout". Also, tweak the default entry if it is not within the
46055 current menu entries.
46056 (grub_menu_run): Use a fallback entry in the environment variable
46057 "fallback".
46058
46059 * normal/main.c (read_config_file): Do not initialize
46060 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
46061 NEWMENU->TIMEOUT.
46062 (grub_normal_execute): Use a data slot to store the menu.
46063
46064 * include/grub/normal.h (struct grub_menu): Removed default_entry,
46065 fallback_entry and timeout.
46066 (struct grub_menu_list): Removed.
46067 (grub_menu_list_t): Likewise.
46068 (struct grub_context): Likewise.
46069 (grub_context_t): Likewise.
46070 (grub_context_get): Likewise.
46071 (grub_context_get_current_menu): Likewise.
46072 (grub_context_push_menu): Likewise.
46073 (grub_context_pop_menu): Likewise.
46074 (grub_default_init): Likewise.
46075 (grub_default_fini): Likewise.
46076 (grub_timeout_init): Likewise.
46077 (grub_timeout_fini): Likewise.
46078
46079 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
46080 and timeout.mod.
46081 (normal_mod_SOURCES): Removed normal/context.c.
46082
46083 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
46084 commands/default.c, commands/timeout.c and normal/context.c.
46085 (normal_mod_SOURCES): Removed normal/context.c.
46086
46087 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
46088 commands/timeout.c and normal/context.c.
46089 (normal_mod_SOURCES): Removed normal/context.c.
46090
46091 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
46092 commands/default.c, commands/timeout.c and normal/context.c.
46093 (normal_mod_SOURCES): Removed normal/context.c.
46094
46095 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
46096 timeout.mod.
46097 (default_mod_SOURCES): Removed.
46098 (default_mod_CFLAGS): Likewise.
46099 (default_mod_LDFLAGS): Likewise.
46100 (timeout_mod_SOURCES): Removed.
46101 (timeout_mod_CFLAGS): Likewise.
46102 (timeout_mod_LDFLAGS): Likewise.
46103
46104 * DISTLIST: Removed commands/default.c, commands/timeout.c and
46105 normal/context.c.
46106
46107 * commands/default.c: Removed.
46108 * commands/timeout.c: Likewise.
46109 * normal/context.c: Likewise.
46110
1eb9cc1d 461112006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
46112
46113 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
46114
385bd9c1 461152006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
46116
46117 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
46118 "next" to "prev" for readability.
46119 (struct grub_env_sorted_var): New struct.
46120 (grub_env_context): Renamed to ...
46121 (initial_context): ... this.
46122 (grub_env_var_context): Renamed to ...
46123 (current_context): ... this.
46124 (grub_env_find): Look only at CURRENT_CONTEXT.
46125 (grub_env_context_open): Rewritten to copy exported variables from
46126 previous context.
46127 (grub_env_context_close): Rewritten according to the new
46128 scheme. Also, add an assertion to prevent the initial context from
46129 removed.
46130 (grub_env_insert): Removed the code for the sorted list.
46131 (grub_env_remove): Likewise.
46132 (grub_env_export): Simply mark the variable with
46133 GRUB_ENV_VAR_GLOBAL.
46134 (grub_env_set): A cosmetic change for naming consistency.
46135 (grub_env_get): Likewise.
46136 (grub_env_unset): Likewise.
46137 (grub_env_iterate): Rewritten to sort variables within this
46138 function.
46139 (grub_register_variable_hook): Fixed for naming consistency. Call
46140 grub_env_find again, only if NAME is not found at the first time.
46141 (mangle_data_slot_name): New function.
46142 (grub_env_set_data_slot): Likewise.
46143 (grub_env_get_data_slot): Likewise.
46144 (grub_env_unset_data_slot): Likewise.
46145
46146 * include/grub/env.h (grub_env_var_type): New enum.
46147 (GRUB_ENV_VAR_LOCAL): New constant.
46148 (GRUB_ENV_VAR_GLOBAL): Likewise.
46149 (GRUB_ENV_VAR_DATA): Likewise.
46150 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
46151 "type".
46152 (grub_env_set): Replace VAR with NAME for consistency.
46153 (grub_register_variable_hook): Likewise.
46154 (grub_env_export): Specify the name of the argument.
46155 (grub_env_set_data_slot): New prototype.
46156 (grub_env_get_data_slot): Likewise.
46157 (grub_env_unset_data_slot): Likewise.
46158
7f362539 461592006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46160
46161 Extend the loader so that GRUB can accept a loader which comes
46162 back to GRUB when a loaded image exits. Also, this change adds
46163 support for a chainloader on EFI.
f19dbdb7 46164
7f362539 46165 * term/efi/console.c: Include grub/misc.h.
46166 (grub_console_checkkey): Display a scan code on the top for
46167 debugging. This will be removed once the EFI port gets stable.
46168 Correct the scan code mapping.
46169
46170 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
46171 allocate memory from larger regions, in order to reduce the number
46172 of allocated regions. Otherwise, the MacOSX loader panics.
46173 (filter_memory_map): Avoid less than 1MB for compatibility with
46174 other loaders.
46175 (add_memory_regions): Allocate from the tail of a region, if
46176 possible, to avoid allocating a region near to 1MB, for the MacOSX
46177 loader.
46178
46179 * kern/efi/init.c (grub_efi_set_prefix): Specify
46180 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
46181
46182 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
46183 argument IMAGE_HANDLE and specify it to get a loaded image.
46184 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
46185 grub_efi_get_loaded_image.
fe6b695a 46186 (grub_efi_get_filename): Divide the length by the size of
7f362539 46187 grub_efi_char16_t.
46188 (grub_efi_get_device_path): New function.
46189 (grub_efi_print_device_path): Print End Device Path nodes. Divide
46190 the length by the size of grub_efi_char16_t for a file path device
46191 path node.
46192
46193 * kern/loader.c (grub_loader_noreturn): New variable.
46194 (grub_loader_set): Accept a new argument NORETURN. Set
46195 GRUB_LOADER_NORETURN to NORETURN.
46196 All callers changed.
46197 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
46198 grub_machine_fini.
46199
46200 * include/grub/efi/efi.h (grub_efi_get_device_path): New
46201 prototype.
46202 (grub_efi_get_loaded_image): Take an argument to specify an image
46203 handle.
46204
46205 * include/grub/loader.h (grub_loader_set): Added one more argument
46206 NORETURN.
46207
46208 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
46209 instead of grub_efi_open_protocol.
46210 (grub_efidisk_get_device_name): Likewise.
46211 (grub_efidisk_close): Print a newline.
46212 (grub_efidisk_get_device_handle): Fixed to use
46213 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
46214 GRUB_EFI_DEVICE_PATH_TYPE.
46215
46216 * disk/efi/efidisk.c (device_path_guid): Moved to ...
46217 * kern/efi/efi.c (device_path_guid): ... here.
46218
46219 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
46220 chain.mod.
46221 (kernel_mod_HEADERS): Added efi/disk.h.
46222 (_chain_mod_SOURCES): New variable.
46223 (_chain_mod_CFLAGS): Likewise.
46224 (_chain_mod_LDFLAGS): Likewise.
46225 (chain_mod_SOURCES): Likewise.
46226 (chain_mod_CFLAGS): Likewise.
46227 (chain_mod_LDFLAGS): Likewise.
46228
46229 * DISTLIST: Added include/grub/efi/chainloader.h,
46230 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
46231
46232 * include/grub/efi/chainloader.h: New file.
46233 * loader/efi/chainloader.c: Likewise.
46234 * loader/efi/chainloader_normal.c: Likewise.
46235
c0111d6e 462362006-04-30 Marco Gerards <marco@gnu.org>
46237
46238 * commands/configfile.c (grub_cmd_source): New function.
46239 (GRUB_MOD_INIT): Register the commands `source' and `.'.
46240 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
46241
df5341da 462422006-04-30 Marco Gerards <marco@gnu.org>
46243
46244 * normal/execute.c (grub_script_execute_cmd): Change the return
46245 type to `grub_err_t'. Correctly return the error.
46246 (grub_script_execute_cmdline): In case a command line is not a
46247 command or a function, try to interpret it as an assignment.
46248
f85934bd 462492006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46250
46251 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
46252 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
46253 skip a node whose name is obviously invalid as UTF-16,
46254 i.e. contains a NUL character. Stop the iteration when the last
46255 directory entry is found. Instead of using the return value of
46256 grub_hfsplus_btree_iterate_node, store the value in RET and use
46257 it, because the iterator can be stopped by the last directory
46258 entry.
46259
8f8a2cf8 462602006-04-30 Marco Gerards <marco@gnu.org>
46261
46262 * include/grub/env.h (grub_env_export): New prototype. Reported
46263 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
46264
a27e84ce 462652006-04-30 Marco Gerards <marco@gnu.org>
46266
46267 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
46268 size of the extents in a catalog file record.
46269
eaef0553 462702006-04-29 Marco Gerards <marco@gnu.org>
46271
46272 * commands/configfile.c (grub_cmd_configfile): Execute the
46273 configfile within its own context.
46274
46275 * include/grub/env.h (grub_env_context_open): New prototype.
46276 (grub_env_context_close): Likewise.
46277
46278 * kern/env.c (grub_env): Removed.
46279 (grub_env_sorted): Likewise.
46280 (grub_env_context): New variable.
46281 (grub_env_var_context): Likewise.
46282 (grub_env_find): Search both the active context and the global
46283 context.
46284 (grub_env_context_open): New function.
46285 (grub_env_context_close): Likewise.
46286 (grub_env_insert): Likewise.
46287 (grub_env_remove): Likewise.
46288 (grub_env_export): Likewise.
46289 (grub_env_set): Changed to use helper functions to avoid code
46290 duplication.
46291 (grub_env_iterate): Rewritten so both the current context and the
46292 global context are being used.
46293
46294 * normal/command.c (export_command): New function.
46295 (grub_command_init): Register the `export' function.
46296
7b455f4d 462972006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
46298
46299 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
46300 explicitly to suppress gcc's warnings.
46301 * fs/fat.c (grub_fat_find_dir): Likewise.
46302 (grub_fat_label): Likewise.
46303 * fs/xfs.c (grub_xfs_read_inode): Likewise.
46304 (grub_xfs_mount): Likewise.
46305 (grub_xfs_label): Likewise.
46306 * fs/affs.c (grub_affs_mount): Likewise.
46307 (grub_affs_label): Likewise.
46308 (grub_affs_iterate_dir): Likewise.
46309 * fs/sfs.c (grub_sfs_mount): Likewise.
46310 (grub_sfs_iterate_dir): Likewise.
46311 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
46312 * fs/hfs.c (grub_hfs_mount): Likewise.
46313 (grub_hfs_cmp_catkeys): Likewise.
46314 (grub_hfs_find_dir): Likewise.
46315 (grub_hfs_dir): Likewise.
46316 (grub_hfs_label): Likewise.
46317 * fs/jfs.c (grub_jfs_mount): Likewise.
46318 (grub_jfs_opendir): Likewise.
46319 (grub_jfs_getent): Likewise.
46320 (grub_jfs_lookup_symlink): Likewise.
46321 (grub_jfs_label): Likewise.
46322 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
46323 (grub_hfsplus_iterate_dir): Likewise.
46324 (grub_hfsplus_btree_iterate_node): Made static.
46325
46326 * util/grub-emu.c (prefix): New variable.
46327 (grub_machine_set_prefix): New function.
46328 (main): Do not set the environment variable "prefix" here. Only
46329 set PREFIX, which is used later by grub_machine_set_prefix.
46330
46331 * include/grub/video.h: Do not include grub/symbol.h.
46332 (grub_video_register): Not exported. This symbol is not defined in
46333 the kernel.
46334 (grub_video_unregister): Likewise.
46335 (grub_video_iterate): Likewise.
46336 (grub_video_setup): Likewise.
46337 (grub_video_restore): Likewise.
46338 (grub_video_get_info): Likewise.
46339 (grub_video_get_blit_format): Likewise.
46340 (grub_video_set_palette): Likewise.
46341 (grub_video_get_palette): Likewise.
46342 (grub_video_set_viewport): Likewise.
46343 (grub_video_get_viewport): Likewise.
46344 (grub_video_map_color): Likewise.
46345 (grub_video_map_rgb): Likewise.
46346 (grub_video_map_rgba): Likewise.
46347 (grub_video_fill_rect): Likewise.
46348 (grub_video_blit_glyph): Likewise.
46349 (grub_video_blit_bitmap): Likewise.
46350 (grub_video_blit_render_target): Likewise.
46351 (grub_video_scroll): Likewise.
46352 (grub_video_swap_buffers): Likewise.
46353 (grub_video_create_render_target): Likewise.
46354 (grub_video_delete_render_target): Likewise.
46355 (grub_video_set_active_render_target): Likewise.
46356
46357 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
46358 Undefined.
46359 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
46360
46361 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
46362 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46363 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46364 instead of $(srcdir)/genkernsyms.sh.
46365
46366 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
46367 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46368 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46369 instead of $(srcdir)/genkernsyms.sh.
46370
46371 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
46372 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46373 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46374 instead of $(srcdir)/genkernsyms.sh.
46375
46376 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
46377 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46378 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46379 instead of $(srcdir)/genkernsyms.sh.
46380
46381 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
46382 genkernsyms.sh.
46383
46384 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
46385 genkernsyms.sh.
46386 (gensymlist.sh): New target.
46387 (genkernsyms.sh): Likewise.
46388
46389 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
46390 genkernsyms.sh.in and gensymlist.sh.in.
46391
46392 * genkernsyms.sh: Removed.
46393 * gensymlist.sh: Likewise.
f19dbdb7 46394
7b455f4d 46395 * genkernsyms.sh.in: New file.
46396 * gensymlist.sh.in: Likewise.
46397
1885bb27 463982006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46399
46400 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
46401 clobber "prefix", since we may have already set it manually.
46402
71538dff 464032006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46404
46405 * kern/misc.c (abort): New alias for grub_abort.
46406
2965c7cc 464072006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
46408
46409 A new machine-specific function "grub_machine_set_prefix" is
46410 defined. This is called after loading modules, so that a prefix
46411 initialization can use modules. Also, this change adds an
46412 intensive debugging feature for the memory manager via the
46413 configure option "--enable-mm-debug".
f19dbdb7 46414
2965c7cc 46415 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
46416 PART.LEN.
46417
46418 * kern/sparc64/ieee1275/init.c (abort): Removed.
46419 (grub_stop): Likewise.
46420 (grub_exit): New function.
46421 (grub_set_prefix): Renamed to ...
46422 (grub_machine_set_prefix): ... this.
46423 (grub_machine_init): Do not call grub_set_prefix.
46424
46425 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
46426 (grub_machine_set_prefix): ... this.
46427 (grub_machine_init): Do not call grub_set_prefix.
46428
46429 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
46430 (grub_machine_init): Do not set the prefix here.
46431
46432 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
46433
46434 * kern/efi/init.c: Include grub/mm.h.
46435 (grub_efi_set_prefix): New function.
46436
46437 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
46438 (grub_efi_get_filename): New function.
46439 (grub_print_device_path): Renamed to ...
46440 (grub_efi_print_device_path): ... this.
46441
46442 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
46443 [MM_DEBUG] (grub_realloc): Likewise.
46444 [MM_DEBUG] (grub_free): Likewise.
46445 [MM_DEBUG] (grub_memalign): Likewise.
46446 [MM_DEBUG] (grub_mm_debug): New variable.
46447 [MM_DEBUG] (grub_debug_malloc): New function.
46448 [MM_DEBUG] (grub_debug_free): New function.
46449 [MM_DEBUG] (grub_debug_realloc): New function.
46450 [MM_DEBUG] (grub_debug_memalign): New function.
46451
46452 * kern/misc.c (grub_abort): Print a newline to distinguish
46453 the message.
46454
46455 * kern/main.c (grub_main): Call grub_machine_set_prefix and
46456 grub_set_root_dev after loading modules. This is necessary when
46457 setting a prefix depends on modules.
46458
46459 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
46460 (grub_efi_print_device_path): ... this.
46461 (grub_efi_get_filename): New prototype.
46462 (grub_efi_set_prefix): Likewise.
46463
46464 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
46465 and grub/disk.h.
46466 (grub_efidisk_get_device_handle): New prototype.
46467 (grub_efidisk_get_device_name): Likewise.
46468
46469 * include/grub/mm.h: Include config.h.
46470 (MM_DEBUG): Removed.
46471 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
46472 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
46473 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
46474 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
46475 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
46476 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
46477 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
46478 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
46479 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
46480
46481 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
46482
46483 * disk/efi/efidisk.c: Include grub/partition.h.
46484 (iterate_child_devices): New function.
46485 (add_device): First, compare only last device path nodes, so that
46486 devices are sorted by the types.
46487 (grub_efidisk_get_device_handle): New function.
46488 (grub_efidisk_get_device_name): Likewise.
46489
46490 * configure.ac (--enable-mm-debug): New option to enable the
46491 memory manager debugging feature. This makes the binary much
46492 bigger, so is disabled by default.
46493
9cacaa17 464942006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
46495
46496 Use grub_abort instead of grub_stop, and grub_exit must be
46497 define in each architecture now. Also, this change adds support
46498 for EFI disks.
f19dbdb7 46499
9cacaa17 46500 * util/i386/pc/grub-probefs.c: Include grub/term.h.
46501 (grub_getkey): New function.
46502 (grub_term_get_current): Likewise.
46503
46504 * util/i386/pc/grub-setup.c: Include grub/term.h.
46505 (grub_getkey): New function.
46506 (grub_term_get_current): Likewise.
46507
46508 * util/misc.c (grub_stop): Renamed to ...
46509 (grub_exit): ... this.
46510
46511 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
46512 (grub_exit): ... this.
46513 (grub_machine_init): Use grub_abort instead of abort.
46514 (grub_stop): Removed.
46515
46516 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
46517 abort.
46518
46519 * kern/i386/pc/startup.S (grub_exit): New function.
46520 (cold_reboot): New label.
46521
46522 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
46523 (grub_efi_init): Call grub_efidisk_init.
46524 (grub_efi_fini): Call grub_efidisk_fini.
46525
46526 * kern/efi/efi.c: Include grub/mm.h.
46527 (grub_efi_console_control_guid): Renamed to ...
46528 (console_control_guid): ... this.
46529 (grub_efi_loaded_image_guid): Renamed to ...
46530 (loaded_image_guid): ... this.
46531 (grub_efi_locate_handle): New function.
46532 (grub_efi_open_protocol): Likewise.
46533 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
46534 GRUB_EFI_CONSOLE_CONTROL_GUID.
46535 (grub_efi_exit): Removed.
46536 (grub_stop): Likewise.
46537 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
46538 (grub_exit): New function.
46539 (grub_print_device_path): Likewise.
46540
46541 * kern/rescue.c (grub_rescue_cmd_exit): New function.
46542 (grub_enter_rescue_mode): Register "exit".
46543
46544 * kern/misc.c (grub_real_dprintf): A cosmetic change.
46545 (grub_abort): New function.
46546
46547 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
46548
46549 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
46550
46551 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
46552
46553 * include/grub/efi/efi.h (grub_efi_exit): Removed.
46554 (grub_print_device_path): New prototype.
46555 (grub_efi_locate_handle): Likewise.
46556 (grub_efi_open_protocol): Likewise.
46557
46558 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
46559 * disk/efi/efidisk.c: Likewise.
46560
46561 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
46562
46563 * include/grub/efi/console_control.h
46564 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
46565
46566 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
46567 last 8 bytes as an array.
46568 (GRUB_EFI_DISK_IO_GUID): New macro.
46569 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
46570 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
46571 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
46572 grub_uint8_t.
46573 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
46574 (struct grub_efi_device_path): Rename the member "sub_type" to
46575 "subtype".
46576 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
46577 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
46578 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
46579 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
46580 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
46581 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
46582 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
46583 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
46584 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
46585 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
46586 (struct grub_efi_pci_device_path): New structure.
46587 (grub_efi_pci_device_path_t): New type.
46588 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
46589 (struct grub_efi_pccard_device_path): New structure.
46590 (grub_efi_pccard_device_path_t): New type.
46591 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
46592 (struct grub_efi_memory_mapped_device_path): New structure.
46593 (grub_efi_memory_mapped_device_path_t): New type.
46594 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
46595 (struct grub_efi_vendor_device_path): New structure.
46596 (grub_efi_vendor_device_path_t): New type.
46597 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
46598 (struct grub_efi_controller_device_path): New structure.
46599 (grub_efi_controller_device_path_t): New type.
46600 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
46601 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
46602 (struct grub_efi_acpi_device_path): New structure.
46603 (grub_efi_acpi_device_path_t): New type.
46604 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
46605 (struct grub_efi_expanded_acpi_device_path): New structure.
46606 (grub_efi_expanded_acpi_device_path_t): New type.
46607 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
46608 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
46609 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
46610 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
46611 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
46612 (struct grub_efi_atapi_device_path): New structure.
46613 (grub_efi_atapi_device_path_t): New type.
46614 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
46615 (struct grub_efi_fibre_channel_device_path): New structure.
46616 (grub_efi_fibre_channel_device_path_t): New type.
46617 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
46618 (struct grub_efi_1394_device_path): New structure.
46619 (grub_efi_1394_device_path_t): New type.
46620 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
46621 (struct grub_efi_usb_device_path): New structure.
46622 (grub_efi_usb_device_path_t): New type.
46623 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
46624 (struct grub_efi_usb_class_device_path): New structure.
46625 (grub_efi_usb_class_device_path_t): New type.
46626 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
46627 (struct grub_efi_i2o_device_path): New structure.
46628 (grub_efi_i2o_device_path_t): New type.
46629 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
46630 (struct grub_efi_mac_address_device_path): New structure.
46631 (grub_efi_mac_address_device_path_t): New type.
46632 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
46633 (struct grub_efi_ipv4_device_path): New structure.
46634 (grub_efi_ipv4_device_path_t): New type.
46635 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
46636 (struct grub_efi_ipv6_device_path): New structure.
46637 (grub_efi_ipv6_device_path_t): New type.
46638 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
46639 (struct grub_efi_infiniband_device_path): New structure.
46640 (grub_efi_infiniband_device_path_t): New type.
46641 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
46642 (struct grub_efi_uart_device_path): New structure.
46643 (grub_efi_uart_device_path_t): New type.
46644 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
46645 (struct grub_efi_vendor_messaging_device_path): New structure.
46646 (grub_efi_vendor_messaging_device_path_t): New type.
46647 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
46648 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
46649 (struct grub_efi_hard_drive_device_path): New structure.
46650 (grub_efi_hard_drive_device_path_t): New type.
46651 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
46652 (struct grub_efi_cdrom_device_path): New structure.
46653 (grub_efi_cdrom_device_path_t): New type.
46654 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
46655 (struct grub_efi_vendor_media_device_path): New structure.
46656 (grub_efi_vendor_media_device_path_t): New type.
46657 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
46658 (struct grub_efi_file_path_device_path): New structure.
46659 (grub_efi_file_path_device_path_t): New type.
46660 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
46661 (struct grub_efi_protocol_device_path): New structure.
46662 (grub_efi_protocol_device_path_t): New type.
46663 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
46664 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
46665 (struct grub_efi_bios_device_path): New structure.
46666 (grub_efi_bios_device_path_t): New type.
46667 (struct grub_efi_disk_io): New structure.
46668 (grub_efi_disk_io_t): New type.
46669 (struct grub_efi_block_io_media): New structure.
46670 (grub_efi_block_io_media_t): New type.
46671 (struct grub_efi_block_io): New structure.
46672 (grub_efi_block_io_t): New type.
46673
46674 * include/grub/misc.h (grub_stop): Removed.
46675 (grub_exit): New prototype.
46676 (grub_abort): Likewise.
46677
46678 * include/grub/disk.h (enum grub_disk_dev_id): Added
46679 GRUB_DISK_DEVICE_EFIDISK_ID.
46680
46681 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
46682 disk/efi/efidisk.c.
46683 (kernel_syms.lst): Remove the target if an error occurs.
46684
49986a9f 466852006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
46686
46687 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
46688 as it was simply too buggy.
46689
970d3b8a 466902006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
46691
46692 * kern/misc.c (grub_lltoa): New function.
46693 (grub_vsprintf): Added support for the long long suffix,
46694 i.e. "ll".
46695
ff04ec24 466962006-04-20 Hollis Blanchard <hollis@penguinppc.org>
46697
46698 * Makefile.in (LDFLAGS): Add variable.
46699 (LD): Remove variable.
46700 * configure.ac: Add -m32 to LDFLAGS.
46701 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
46702 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
46703 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
46704 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
46705 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
46706 variables.
46707 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
46708 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
46709 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
46710
37e5e1a4 467112006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
46712
46713 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
46714 length for unknown glyph.
46715
c352d8dd 467162006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
46717
2eab1c0d 46718 Add support for pre-loaded modules into the EFI port.
f19dbdb7 46719
2eab1c0d 46720 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
46721 completely. Accept one more argument DIR. The caller has changed.
46722
46723 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
46724
46725 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
46726 (grub_efi_loaded_image_guid): New variable.
46727 (grub_efi_get_loaded_image): New function.
46728 (grub_arch_modules_addr): Likewise.
46729
46730 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
46731 prototype.
46732
46733 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
46734 (struct grub_efi_loaded_image): New structure.
46735 (grub_efi_loaded_image_t): New type.
46736
467372006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46738
c352d8dd 46739 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
46740 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
46741 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
46742
6d01d6b4 467432006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
46744
46745 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
46746
976a4ea0 467472006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
46748
46749 * DISTLIST: Added include/grub/efi/console.h,
46750 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
46751 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
46752
46753 * include/grub/efi/console.h: New file.
46754 * include/grub/efi/time.h: Likewise.
46755 * include/grub/i386/efi/kernel.h: Likewise.
46756 * kern/efi/init.c: Likewise.
46757 * kern/efi/mm.c: Likewise.
46758 * term/efi/console.c: Likewise.
f19dbdb7 46759
976a4ea0 46760 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
46761 (grub_stop): Removed.
46762 (grub_get_rtc): Likewise.
46763 (grub_machine_init): Simply call grub_efi_init.
46764 (grub_machine_fini): Call grub_efi_fini.
46765
46766 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
46767 (grub_efi_output_string): Removed.
46768 (grub_efi_stall): New function.
46769 (grub_stop): Likewise.
46770 (grub_get_rtc): Likewise.
46771
46772 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
46773 (grub_efi_stall): New prototype.
46774 (grub_efi_allocate_pages): Likewise.
46775 (grub_efi_free_pages): Likewise.
46776 (grub_efi_get_memory_map): Likewise.
46777 (grub_efi_mm_init): Likewise.
46778 (grub_efi_mm_fini): Likewise.
46779 (grub_efi_init): Likewise.
46780 (grub_efi_fini): Likewise.
46781
46782 * include/grub/i386/efi/time.h: Do not include
46783 grub/symbol.h. Include grub/efi/time.h.
46784 (GRUB_TICKS_PER_SECOND): Removed.
46785 (grub_get_rtc): Likewise.
46786
46787 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
46788 Added padding. The EFI spec is buggy.
46789 (GRUB_EFI_BLACK): New macro.
46790 (GRUB_EFI_BLUE): Likewise.
46791 (GRUB_EFI_GREEN): Likewise.
46792 (GRUB_EFI_CYAN): Likewise.
46793 (GRUB_EFI_RED): Likewise.
46794 (GRUB_EFI_MAGENTA): Likewise.
46795 (GRUB_EFI_BROWN): Likewise.
46796 (GRUB_EFI_LIGHTGRAY): Likewise.
46797 (GRUB_EFI_BRIGHT): Likewise.
46798 (GRUB_EFI_DARKGRAY): Likewise.
46799 (GRUB_EFI_LIGHTBLUE): Likewise.
46800 (GRUB_EFI_LIGHTGREEN): Likewise.
46801 (GRUB_EFI_LIGHTCYAN): Likewise.
46802 (GRUB_EFI_LIGHTRED): Likewise.
46803 (GRUB_EFI_LIGHTMAGENTA): Likewise.
46804 (GRUB_EFI_YELLOW): Likewise.
46805 (GRUB_EFI_WHITE): Likewise.
46806 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
46807 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
46808 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
46809 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
46810 (GRUB_EFI_BACKGROUND_RED): Likewise.
46811 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
46812 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
46813 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
46814 (GRUB_EFI_TEXT_ATTR): Likewise.
46815
46816 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
46817 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
46818 (kernel_mod_HEADERS): Added efi/time.h.
46819
83709125 468202006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
46821
46822 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
46823 include/grub/efi/api.h, include/grub/efi/console_control.h,
46824 include/grub/efi/efi.h, include/grub/efi/pe32.h,
46825 include/grub/i386/efi/time.h, kern/efi/efi.c,
46826 kern/i386/efi/init.c, kern/i386/efi/startup.S,
46827 and util/i386/efi/grub-mkimage.c.
46828
46829 * Makefile.in (RMKFILES): Added i386-efi.rmk.
46830
46831 * genmk.rb (PModule#rule): Do not export symbols if
46832 #{prefix}_EXPORTS is set to "no".
46833
46834 * conf/i386-efi.mk: New file.
46835 * conf/i386-efi.rmk: Likewise.
46836 * include/grub/efi/api.h: Likewise.
46837 * include/grub/efi/console_control.h: Likewise.
46838 * include/grub/efi/efi.h: Likewise.
46839 * include/grub/efi/pe32.h: Likewise.
46840 * include/grub/i386/efi/time.h: Likewise.
46841 * kern/efi/efi.c: Likewise.
46842 * kern/i386/efi/init.c: Likewise.
46843 * kern/i386/efi/startup.S: Likewise.
46844 * util/i386/efi/grub-mkimage.c: Likewise.
46845
468462006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 46847
46848 * include/grub/script.h: Include <grub/parser.h> and
46849 "grub_script.tab.h".
46850 (struct grub_lexer_param): New struct.
46851 (struct grub_parser_param): Likewise.
46852 (grub_script_create_arglist): Pass the state in an argument.
46853 (grub_script_add_arglist): Likewise.
46854 (grub_script_create_cmdline): Likewise.
46855 (grub_script_create_cmdblock): Likewise.
46856 (grub_script_create_cmdif): Likewise.
46857 (grub_script_create_cmdmenu): Likewise.
46858 (grub_script_add_cmd): Likewise.
46859 (grub_script_arg_add): Likewise.
46860 (grub_script_lexer_ref): Likewise.
46861 (grub_script_lexer_deref): Likewise.
46862 (grub_script_lexer_record_start): Likewise.
46863 (grub_script_lexer_record_stop): Likewise.
46864 (grub_script_mem_record): Likewise.
46865 (grub_script_mem_record_stop): Likewise.
46866 (grub_script_malloc): Likewise.
46867 (grub_script_yylex): Likewise.
46868 (grub_script_yyparse): Likewise.
46869 (grub_script_yyerror): Likewise.
46870 (grub_script_yylex): Likewise.
46871 (grub_script_lexer_init): Return the state.
46872
46873 * normal/lexer.c (grub_script_lexer_state): Removed variable.
46874 (grub_script_lexer_done): Likewise.
46875 (grub_script_lexer_getline): Likewise.
46876 (grub_script_lexer_refs): Likewise.
46877 (script): Likewise.
46878 (newscript): Likewise.
46879 (record): Likewise.
46880 (recording): Likewise.
46881 (recordpos): Likewise.
46882 (recordlen): Likewise.
46883 (grub_script_lexer_init): Return the state instead of setting
46884 global variables.
46885 (grub_script_lexer_ref): Use the newly added argument for state
46886 instead of globals.
46887 (grub_script_lexer_deref): Likewise.
46888 (grub_script_lexer_record_start): Likewise.
46889 (grub_script_lexer_record_stop): Likewise.
46890 (recordchar): Likewise.
46891 (nextchar): Likewise.
46892 (grub_script_yylex2): Likewise.
46893 (grub_script_yylex): Likewise.
46894 (grub_script_yyerror): Likewise.
46895
46896 * normal/parser.y (func_mem): Removed variable.
46897 (menu_entry): Likewise.
46898 (err): Likewise.
46899 (%lex-param): New parser option.
46900 (%parse-param): Likewise.
46901 (script): Always return the AST.
46902 (argument): Pass the state around.
46903 (arguments): Likewise.
46904 (grubcmd): Likewise.
46905 (commands): Likewise.
46906 (function): Likewise.
46907 (menuentry): Likewise.
46908 (if_statement): Likewise.
46909 (if): Likewise.
46910
46911 * normal/script.c (grub_script_memused): Removed variable.
46912 (grub_script_parsed): Likewise.
46913 (grub_script_malloc): Added a state argument. Use that instead of
46914 global variables.
46915 (grub_script_mem_record): Likewise.
46916 (grub_script_mem_record_stop): Likewise.
46917 (grub_script_arg_add): Likewise.
46918 (grub_script_add_arglist): Likewise.
46919 (grub_script_create_cmdline): Likewise.
46920 (grub_script_create_cmdif): Likewise.
46921 (grub_script_create_cmdmenu): Likewise.
46922 (grub_script_add_cmd): Likewise.
46923 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 46924
e2a8c904 469252006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 46926
46927 * normal/command.c (grub_command_init): Remove the title command.
46928
46929 * normal/lexer.c (grub_script_yylex): Renamed from this...
46930 (grub_script_yylex2): ... to this.
46931 (grub_script_yylex): New function. Temporary
46932 introduced to filter some tokens.
46933 (grub_script_yyerror): Print a newline.
46934
46935 * normal/main.c (read_config_file): Output information about the
46936 lines that contain errors. Wait for a key after all lines have
46937 been processed. Don't return an empty menu.
46938
46939 * normal/parser.y (func_mem): Don't initialize.
46940 (menu_entry): Likewise.
46941 (err): New variable.
46942 (script): Don't return anything when an error was encountered.
46943 (ws, returns): Removed rules.
46944 (argument): Disabled concatenated variable support.
46945 (arguments): Remove explicit separators.
46946 (grubcmd): Likewise.
46947 (function): Likewise.
46948 (menuentry): Likewise.
46949 (if): Likewise.
46950 (commands): Likewise. Add error handling.
46951
46952 * normal/script.c (grub_script_create_cmdline): If
46953 `grub_script_parsed' is 0, assume the parser encountered an error.
46954
c9a86192 469552006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
46956
46957 * configure.ac: Add support for EFI. Fix the typo
46958 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
46959
70f3b243 469602006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
46961
46962 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
46963 foreign multibyte characters should be shown correctly.
46964
65f201ad 469652006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
46966
46967 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
46968 calculation.
46969 (read_config_file): Made it to close file before returning.
46970
b4b93674 469712006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
46972
46973 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
46974 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
46975 video/i386/pc/vbefill.c.
46976
46977 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
46978 video/i386/pc/vbefill.c.
46979
46980 * include/grub/video.h (grub_video_blit_format): New enum.
46981 (grub_video_mode_info): Added new member blit_format.
46982 (grub_video_get_blit_format): New function prototype.
46983
46984 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
46985 function prototype.
46986 (grub_video_vbe_map_rgb): Likewise.
46987 (grub_video_vbe_unmap_color): Likewise.
46988
46989 * include/grub/i386/pc/vbeblit.h: New file.
46990
46991 * include/grub/i386/pc/vbefill.h: New file.
46992
46993 * video/video.c (grub_video_get_blit_format): New function.
46994 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
46995 (grub_video_vbe_map_rgb): Likewise.
46996 (grub_video_vbe_unmap_color): Likewise.
46997
46998 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
46999 optimized fills.
47000 (grub_video_vbe_blit_render_target): Changed to use more optimized
47001 blits.
47002 (grub_video_vbe_setup): Added detection for optimized settings.
47003 (grub_video_vbe_create_render_target): Likewise.
47004
47005 * video/i386/pc/vbeblit.c: New file.
47006
47007 * video/i386/pc/vbefill.c: New file.
47008
c2379b9c 470092006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
47010
47011 * font/manager.c (grub_font_get_glyph): Removed font fixup from
47012 here...
47013
47014 * util/unifont2pff.rb: ... and moved it to here. Improved argument
47015 parsing to support both hex and dec ranges. If filename was missing
47016 show usage information.
47017
bd0d7896 470182006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
47019
47020 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
47021 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
47022
47023 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
47024 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
47025 (video_mod_SOURCES): Added.
47026 (video_mod_CFLAGS): Likewise.
47027 (video_mod_LDFLAGS): Likewise.
47028 (gfxterm_mod_SOURCES): Likewise.
47029 (gfxterm_mod_CFLAGS): Likewise.
47030 (gfxterm_mod_LDFLAGS): Likewise.
47031 (videotest_mod_SOURCES): Likewise.
47032 (videotest_mod_CFLAGS): Likewise.
47033 (videotest_mod_LDFLAGS): Likewise.
47034 (vesafb_mod_SOURCES): Removed.
47035 (vesafb_mod_CFLAGS): Likewise.
47036 (vesafb_mod_LDFLAGS): Likewise.
47037 (vga_mod_SOURCES): Likewise.
47038 (vga_mod_CFLAGS): Likewise.
47039 (vga_mod_LDFLAGS): Likewise.
47040
47041 * commands/videotest.c: New file.
47042
47043 * font/manager.c (fill_with_default_glyph): Modified to use
47044 grub_font_glyph.
47045 (grub_font_get_glyph): Likewise.
47046 (fontmanager): Renamed from this...
47047 (font_manager): ... to this.
47048
47049 * include/grub/font.h (grub_font_glyph): Added new structure.
47050 (grub_font_get_glyph): Modified to use grub_font_glyph.
47051
47052 * include/grub/misc.h (grub_abs): Added as inline function.
47053
47054 * include/grub/video.h: New file.
47055
47056 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
47057 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
47058 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
47059 (grub_vbe_get_controller_info): Renamed from this...
47060 (grub_vbe_bios_get_controller_info): ... to this.
47061 (grub_vbe_get_mode_info): Renamed from this...
47062 (grub_vbe_bios_get_mode_info): ... to this.
47063 (grub_vbe_set_mode): Renamed from this...
47064 (grub_vbe_bios_set_mode): ... to this.
47065 (grub_vbe_get_mode): Renamed from this...
47066 (grub_vbe_bios_get_mode): ... to this.
47067 (grub_vbe_set_memory_window): Renamed from this...
47068 (grub_vbe_bios_set_memory_window): ... to this.
47069 (grub_vbe_get_memory_window): Renamed from this...
47070 (grub_vbe_bios_get_memory_window): ... to this.
47071 (grub_vbe_set_scanline_length): Renamed from this...
47072 (grub_vbe_set_scanline_length): ... to this.
47073 (grub_vbe_get_scanline_length): Renamed from this...
47074 (grub_vbe_bios_get_scanline_length): ... to this.
47075 (grub_vbe_set_display_start): Renamed from this...
47076 (grub_vbe_bios_set_display_start): ... to this.
47077 (grub_vbe_get_display_start): Renamed from this...
47078 (grub_vbe_bios_get_display_start): ... to this.
47079 (grub_vbe_set_palette_data): Renamed from this...
47080 (grub_vbe_bios_set_palette_data): ... to this.
47081 (grub_vbe_set_pixel_rgb): Removed.
47082 (grub_vbe_set_pixel_index): Likewise.
47083
47084 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
47085 from this...
47086 (grub_vbe_bios_get_controller_info): ... to this.
47087 (grub_vbe_get_mode_info): Renamed from this...
47088 (grub_vbe_bios_get_mode_info): ... to this.
47089 (grub_vbe_set_mode): Renamed from this...
47090 (grub_vbe_bios_set_mode): ... to this.
47091 (grub_vbe_get_mode): Renamed from this...
47092 (grub_vbe_bios_get_mode): ... to this.
47093 (grub_vbe_set_memory_window): Renamed from this...
47094 (grub_vbe_bios_set_memory_window): ... to this.
47095 (grub_vbe_get_memory_window): Renamed from this...
47096 (grub_vbe_bios_get_memory_window): ... to this.
47097 (grub_vbe_set_scanline_length): Renamed from this...
47098 (grub_vbe_set_scanline_length): ... to this.
47099 (grub_vbe_get_scanline_length): Renamed from this...
47100 (grub_vbe_bios_get_scanline_length): ... to this.
47101 (grub_vbe_set_display_start): Renamed from this...
47102 (grub_vbe_bios_set_display_start): ... to this.
47103 (grub_vbe_get_display_start): Renamed from this...
47104 (grub_vbe_bios_get_display_start): ... to this.
47105 (grub_vbe_set_palette_data): Renamed from this...
47106 (grub_vbe_bios_set_palette_data): ... to this.
47107 (grub_vbe_bios_get_controller_info): Fixed problem with registers
47108 getting corrupted after calling it. Added more pushes and pops.
47109 (grub_vbe_bios_set_mode): Likewise.
47110 (grub_vbe_bios_get_mode): Likewise.
47111 (grub_vbe_bios_get_memory_window): Likewise.
47112 (grub_vbe_bios_set_scanline_length): Likewise.
47113 (grub_vbe_bios_get_scanline_length): Likewise.
47114 (grub_vbe_bios_get_display_start): Likewise.
47115 (grub_vbe_bios_set_palette_data): Likewise.
47116
47117 * normal/cmdline.c (cl_set_pos): Refresh the screen.
47118 (cl_insert): Likewise.
47119 (cl_delete): Likewise.
47120
47121 * term/gfxterm.c: New file.
47122
47123 * term/i386/pc/vesafb.c: Removed file.
47124
47125 * video/video.c: New file.
47126
47127 * video/i386/pc/vbe.c (real2pm): Added new function.
47128 (grub_video_vbe_draw_pixel): Likewise.
47129 (grub_video_vbe_get_video_ptr): Likewise.
47130 (grub_video_vbe_get_pixel): Likewise
47131 (grub_video_vbe_init): Likewise.
47132 (grub_video_vbe_fini): Likewise.
47133 (grub_video_vbe_setup): Likewise.
47134 (grub_video_vbe_get_info): Likewise.
47135 (grub_video_vbe_set_palette): Likewise.
47136 (grub_video_vbe_get_palette): Likewise.
47137 (grub_video_vbe_set_viewport): Likewise.
47138 (grub_video_vbe_get_viewport): Likewise.
47139 (grub_video_vbe_map_color): Likewise.
47140 (grub_video_vbe_map_rgb): Likewise.
47141 (grub_video_vbe_map_rgba): Likewise.
47142 (grub_video_vbe_unmap_color): Likewise.
47143 (grub_video_vbe_fill_rect): Likewise.
47144 (grub_video_vbe_blit_glyph): Likewise.
47145 (grub_video_vbe_blit_bitmap): Likewise.
47146 (grub_video_vbe_blit_render_target): Likewise.
47147 (grub_video_vbe_scroll): Likewise.
47148 (grub_video_vbe_swap_buffers): Likewise.
47149 (grub_video_vbe_create_render_target): Likewise.
47150 (grub_video_vbe_delete_render_target): Likewise.
47151 (grub_video_vbe_set_active_render_target): Likewise.
47152 (grub_vbe_set_pixel_rgb): Remove function.
47153 (grub_vbe_set_pixel_index): Likewise.
47154 (index_color_mode): Remove static variable.
47155 (active_mode): Likewise.
47156 (framebuffer): Likewise.
47157 (bytes_per_scan_line): Likewise.
47158 (grub_video_vbe_adapter): Added new static variable.
47159 (framebuffer): Likewise.
47160 (render_target): Likewise.
47161 (initial_mode): Likewise.
47162 (mode_in_use): Likewise.
47163 (mode_list): Likewise.
47164
5f97350b 471652006-03-10 Marco Gerards <marco@gnu.org>
47166
47167 * configure.ac (AC_INIT): Bumped to 1.93.
47168
47169 * DISTLIST: Added `include/grub/hfs.h'.
47170
a3c5c6f8 471712006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
47172
47173 * boot/i386/pc/boot.S (general_error): Before looping, try INT
47174 18H, which might help the BIOS falling back to next boot media.
47175
6de53d26 471762006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
47177
47178 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
47179 Poe Chen <poe.poechen@gmail.com>.
47180
77c4a393 471812006-01-17 Marco Gerards <marco@gnu.org>
47182
47183 * include/grub/normal.h: Include <grub/script.h>.
47184 (grub_command_list): Removed struct.
47185 (grub_command_list_t): Removed type.
47186 (grub_menu_entry): Remove members `num' and `command_list'. Add
47187 members `commands' and `sourcecode'.
47188 * include/grub/script.h: Add inclusion guards.
47189 (grub_script_cmd_menuentry): New struct.
47190 (grub_script_execute_menuentry): New prototype.
47191 (grub_script_lexer_record_start): Likewise.
47192 (grub_script_lexer_record_stop): Likewise.
47193 * normal/execute.c (grub_script_execute_menuentry): New function.
47194 * normal/lexer.c (record, recording, recordpos, recordlen): New
47195 variables.
47196 (grub_script_lexer_record_start): New function.
47197 (grub_script_lexer_record_stop): Likewise.
47198 (recordchar): Likewise.
47199 (nextchar): Likewise.
47200 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
47201 2048 as the buffer size. Add the tokens `menuentry' and `@'.
47202 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
47203 (current_menu): New variable.
47204 (free_menu): Mainly rewritten.
47205 (grub_normal_menu_addentry): New function.
47206 (read_config_file): Rewritten.
47207 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 47208 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 47209 the menu entry.
47210 (run): Mainly rewritten.
47211 * normal/parser.y (menu_entry): New variable.
47212 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
47213 (menuentry): New rule.
47214 (command): Add `menuentry'.
47215 (if_statement): Allow additional returns before `fi'.
47216 * normal/script.c (grub_script_create_cmdmenu): New function.
47217
144f1f98 472182006-01-03 Marco Gerards <marco@gnu.org>
47219
47220 * INSTALL: GNU Bison is required.
47221 * configure.ac: Rewritten the test to detect Bison.
47222 * Makefile.in (YACC): New variable. Reported by Xun Sun
47223 <xun.sun.cn@gmail.com>.
47224
af4b2d89 472252006-01-03 Marco Gerards <marco@gnu.org>
47226
47227 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
47228 the HFS+ filesystem to filesystem blocks.
47229 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
47230 GCC warning is silenced.
47231
15643b71 472322006-01-03 Marco Gerards <marco@gnu.org>
47233
47234 * partmap/apple.c (apple_partition_map_iterate): Convert the data
47235 read from disk from big endian to host byte order.
47236
00905879 472372006-01-03 Hollis Blanchard <hollis@penguinppc.org>
47238
47239 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
47240 documentation.
47241 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
47242 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
47243 embedded HFS+ filesystem.
47244 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
47245 (grub_hfs_sblock): Move from here...
47246 * include/grub/hfs.h: To here... New file.
47247 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
47248 documentation.
47249 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
47250 New macros.
47251 (grub_hfsplus_volheader): Change type of member `magic' to
47252 `grub_uint16_t'.
47253 (grub_hfsplus_data): Add new member `embedded_offset'.
47254 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
47255 returned block.
47256 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
47257 Calculate the offset.
47258
8899bc3e 472592005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47260
47261 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
47262 Removed.
47263 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
47264
ae8c0277 472652005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47266
47267 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
47268 ENV->NAME is NULL after allocating ENV->VALUE.
47269
07084456 472702005-12-25 Marco Gerards <marco@gnu.org>
47271
47272 * kern/env.c (grub_env_set): Rewritten the error handling code.
47273
4750f5f1 472742005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47275
47276 * geninit.sh: Made more robust, and more portable.
47277
50214199 472782005-12-25 Marco Gerards <marco@gnu.org>
47279
47280 Add support for Apple HFS+ filesystems.
f19dbdb7 47281
50214199 47282 * fs/hfsplus.c: New file.
47283
47284 * DISTLIST: Added `fs/hfsplus.c'.
47285
47286 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
47287 (hfsplus_mod_SOURCES): New variable.
47288 (hfsplus_mod_CFLAGS): Likewise.
47289 (hfsplus_mod_LDFLAGS): Likewise.
47290 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
47291 (grub_setup_SOURCES): Likewise.
47292 (grub_mkdevicemap_SOURCES): Likewise.
47293 (grub_emu_SOURCES): Likewise.
47294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47295
47296 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
47297
47298 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
47299
befaed6c 473002005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47301
47302 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
47303 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
47304 include/grub/parser.h, include/grub/script.h, kern/parser.c,
47305 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
47306 normal/lexer.c, normal/parser.y, normal/script.c, and
47307 partmap/gpt.c.
47308 Removed kern/sparc64/cache.c.
47309
47310 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
47311 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
47312 grub_emu_init.c.
47313
47314 * configure.ac (AC_INIT): Bumped to 1.92.
47315
6a124103 473162005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
47317
47318 * kern/err.c (grub_error_push): Added new function to support error
47319 stacks.
47320 (grub_error_pop): Likewise.
47321 (grub_error_stack_items): New local variable to support error stacks.
47322 (grub_error_stack_pos): Likewise.
47323 (grub_error_stack_assert): Likewise.
47324 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
47325 stack depth.
47326 (grub_print_error): Added support to print errors from error stack.
47327
47328 * include/grub/err.h (grub_error_push): Added function prototype.
47329 (grub_error_pop): Likewise.
47330
be973c1b 473312005-12-09 Hollis Blanchard <hollis@penguinppc.org>
47332
47333 * configure.ac: Accept `powerpc64' as host_cpu.
47334 (amd64): Rename to `biarch32'.
47335
47336 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
47337 non-cacheline-aligned addresses.
47338
47339 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
47340 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
47341 if `size' is non-zero.
47342
b04216ab 473432005-12-03 Marco Gerards <mgerards@xs4all.nl>
47344
47345 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
47346 and `cd' to make sure the filename is not prefixed with a
47347 directory name.
47348 (pkgdata_MODULES): Add `gpt.mod'.
47349 (gpt_mod_SOURCES): New variable.
47350 (gpt_mod_CFLAGS): Likewise.
47351 (gpt_mod_LDFLAGS): Likewise.
47352
47353 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
47354
47355 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
47356 New macro.
47357
47358 * partmap/gpt.c: New file.
47359
47360 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
47361 GPT partition map is detected.
47362
41730ed9 473632005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
47364
47365 * commands/i386/pc/play.c: New file.
47366 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
47367 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
47368 macros.
f19dbdb7 47369
95dc3643 473702005-11-27 Marco Gerards <mgerards@xs4all.nl>
47371
47372 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
47373 ((unused))' to silence gcc warning.
47374
1569ec51 473752005-11-26 Hollis Blanchard <hollis@penguinppc.org>
47376
47377 * configure.ac: Correct `AC_PROG_YACC' test.
47378
9abde152 473792005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47380
47381 * util/powerpc/ieee1275/grub-install.in: Run the mount point
47382 check before installing files.
47383
44b83271 473842005-11-22 Mike Small <smallm@panix.com>
47385
47386 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
47387 number regex so multidigit numbers are recognized correctly.
47388
473892005-11-22 Mike Small <smallm@panix.com>
47390
47391 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
47392 debugging message before attempting to claim memory.
47393 (grub_rescue_cmd_initrd): Add a claim debugging message and try
47394 multiple addresses in case of failure.
47395
9c12956b 473962005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47397
47398 * term/tparm.c (get_space): Remove empty `if' statement.
47399
47400 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
47401
47402 * kern/parser.c (check_varstate): Rename `state' to 's'.
47403
aeaf81d9 474042005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47405
47406 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
47407 variable definitions to the beginning of each function. Sort stack
47408 variables by size.
47409 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
47410 `buf' argument to `char *'.
47411
79bbb63f 474122005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47413
47414 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
47415 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 47416 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 47417 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47418 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47419 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47420 configfile.mod, search.mod, gzio.mod and test.mod.
47421 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47422 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47423 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47424 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47425 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47426 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47427 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47428 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47429 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47430 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47431 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47432 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47433 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47434 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47435 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47436 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47437 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47438 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47439 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47440 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47441 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47442 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47443 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
47444
47445 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
47446 `grep --include'.
47447 (pkgdata_MODULES): Add test.mod.
47448
233b1628 474492005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47450
47451 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
47452 appending to variables with "+=".
47453 (PModule): Use full pathname to generate *.lst filenames.
47454
47455 * Makefile.in: Fixed list rules moved from genmk.rb.
47456 (.DELETE_ON_ERROR): New special target.
47457 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
47458
47459 * conf/i386-pc.rmk: Include conf/common.mk.
47460 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 47461 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 47462 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47463 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47464 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47465 configfile.mod, search.mod, gzio.mod and test.mod.
47466 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47467 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47468 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47469 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47470 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47471 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47472 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47473 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47474 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47475 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47476 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47477 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47478 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47479 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47480 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47481 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47482 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47483 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47484 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47485 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47486 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47487 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47488 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
47489 here...
47490 * conf/common.rmk: ... to here. New file.
47491
47492 * conf/common.mk: New file.
47493
16f820c8 474942005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
47495
47496 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
47497 (grub_script.tab.c): ... here.
47498
47499 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
47500 (grub_script.tab.c): ... here.
47501
47502 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
47503 (grub_script.tab.c): ... here.
47504
47505 * normal/command.c (grub_command_find): Fixed a memory leak of
47506 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
47507
63ba1554 475082005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47509
47510 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
47511 "@" which marks the start of a comment on ARM.
47512 (VARIABLE): Likewise.
47513
7f67dc13 475142005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47515
79bbb63f 47516 Add support for Linux/ADFS partition tables.
7f67dc13 47517
47518 * partmap/acorn.c: New file.
47519
47520 * include/grub/acorn_filecore.h: Likewise.
47521
47522 * DISTLIST: Added `partmap/acorn.c' and
47523 `include/grub/acorn_filecore.h'.
f19dbdb7 47524
7f67dc13 47525 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47526 `partmap/acorn.c'.
47527 (pkgdata_MODULES): Add `acorn.mod'.
47528 (acorn_mod_SOURCES): New variable.
47529 (acorn_mod_CFLAGS): Likewise.
47530
47531 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47532 `partmap/acorn.c'.
47533 (pkgdata_MODULES): Add `acorn.mod'.
47534 (acorn_mod_SOURCES): New variable.
47535 (acorn_mod_CFLAGS): Likewise.
47536
47537 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
47538 (pkgdata_MODULES): Add `acorn.mod'.
47539 (acorn_mod_SOURCES): New variable.
47540 (acorn_mod_CFLAGS): Likewise.
47541 (acorn_mod_LDFLAGS): Likewise.
47542
47543 * include/types.h (grub_disk_addr_t): New typedef.
47544
6d099807 475452005-11-13 Marco Gerards <mgerards@xs4all.nl>
47546
47547 * geninit.sh: New file.
47548
47549 * geninitheader.sh: Likewise.
47550
47551 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
47552 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
47553 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
47554 * commands/configfile.c (grub_configfile_init)
47555 (grub_configfile_fini): Likewise.
47556 * commands/default.c (grub_default_init, grub_default_fini):
47557 Likewise.
47558 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
47559 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
47560 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
47561 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
47562 Likewise.
47563 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
47564 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
47565 Likewise.
47566 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 47567 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 47568 Likewise.
47569 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
47570 Likewise.
fe6b695a 47571 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 47572 Likewise.
47573 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
47574 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
47575 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
47576 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
47577 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
47578 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
47579 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
47580 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
47581 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
47582 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
47583 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
47584 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
47585 * partmap/amiga.c (grub_amiga_partition_map_init)
47586 (grub_amiga_partition_map_fini): Likewise.
47587 * partmap/apple.c (grub_apple_partition_map_init)
47588 (grub_apple_partition_map_fini): Likewise.
47589 * partmap/pc.c (grub_pc_partition_map_init)
47590 (grub_pc_partition_map_fini): Likewise.
47591 * partmap/sun.c (grub_sun_partition_map_init,
47592 grub_sun_partition_map_fini): Likewise.
47593 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
47594 Likewise.
47595
47596 * util/grub-emu.c: Include <grub_modules_init.h>.
47597 (main): Don't initialize and de-initialize any modules directly,
47598 use `grub_init_all' and `grub_fini_all' instead.
47599
47600 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
47601 `grub_vesafb_mod_init'.
47602 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
47603 all users.
47604 * term/i386/pc/vga.c (grub_vga_init): Renamed to
47605 `grub_vga_mod_init'. Updated all users.
47606 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 47607
6d099807 47608 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
47609 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
47610 rules.
47611
47612 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
47613 Generate a function to initialize the module in utilities.
47614 Updated all callers.
47615 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
47616 initialize the module in utilities. Updated all callers.
47617
9046bcf0 476182005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47619
47620 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
47621 escape sequence and a literal ^L to clear the screen.
47622
47623 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
47624 when returning from Open Firmware.
47625
d13ea639 476262005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47627
47628 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
47629 (grub_ofconsole_height): Likewise.
47630 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
47631 manually insert a '\n'.
47632 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
47633 `grub_ofconsole_height'. Return early if these are already set.
47634
a8fcf206 476352005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
47636
47637 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47638 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
47639 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
47640 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
47641 and `normal/script.c'.
47642 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47643 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47644 (test_mod_SOURCES): New variable.
47645 (test_mod_CFLAGS): Likewise.
47646 (test_mod_LDFLAGS): Likewise.
47647 (pkgdata_MODULES): Add `test.mod'.
47648 (grub_script.tab.c): New rule.
47649 (grub_script.tab.h): Likewise.
47650
b6b32745 476512005-11-07 Marco Gerards <mgerards@xs4all.nl>
47652
47653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47654 `commands/test.c', `normal/execute.c', `normal/lexer.c',
47655 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47656 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47657 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47658 (test_mod_SOURCES): New variable.
47659 (test_mod_CFLAGS): Likewise.
47660 (pkgdata_MODULES): Add `test.mod'.
47661 (grub_script.tab.c): New rule.
47662 (grub_script.tab.h): Likewise.
47663
daac212a 476642005-11-06 Marco Gerards <mgerards@xs4all.nl>
47665
47666 Add initial scripting support.
47667
47668 * commands/test.c: New file.
47669 * include/grub/script.h: Likewise.
47670 * normal/execute.c: Likewise.
47671 * normal/function.c: Likewise.
47672 * normal/lexer.c: Likewise.
47673 * normal/parser.y: Likewise.
47674 * normal/script.c: Likewise.
47675
47676 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 47677
daac212a 47678 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
47679 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
47680 `normal/function.c' and `normal/script.c'.
47681 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47682 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 47683 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
47684 variables.
daac212a 47685 (pkgdata_MODULES): Add `test.mod'.
47686 (grub_script.tab.c): New rule.
47687 (grub_script.tab.h): Likewise.
47688
47689 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
47690
47691 * include/grub/normal.h (grub_test_init): New prototype.
47692 (grub_test_fini): Likewise.
f19dbdb7 47693
daac212a 47694 * normal/command.c: Include <grub/script.h>.
47695 (grub_command_execute): Rewritten.
f19dbdb7 47696
daac212a 47697 * util/grub-emu.c (main): Call `grub_test_init' and
47698 `grub_test_fini'.
47699
77500b2b 477002005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47701
47702 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
47703 to 0.
47704 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
47705 there are no pending characters.
47706
e45deb9e 477072005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47708
47709 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
47710 `grub_strndup' to drop device arguments. Replace unnecessary
47711 `grub_strndup' with `grub_strdup'.
47712
4ce32619 477132005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47714
47715 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
47716 `debug' environment variable has been set.
47717
477182005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 47719
4ce32619 47720 * Makefile.in (install-local): Use $(DATA).
47721 (uninstall): Likewise.
47722 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
47723 (sbin_UTILITIES): ... to here.
47724 (sbin_SCRIPTS): New variable.
47725 (grub_install_SOURCES): New variable.
47726 * util/powerpc/ieee1275/grub-install.in: New file.
47727 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
47728 variable.
47729 (add_segments): Call `grub_util_get_path'.
47730
25fe6f03 477312005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
47732
47733 From Timothy Baldwin:
47734 * commands/ls.c (grub_ls_list_files): Close FILE with
47735 grub_file_close.
47736 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
47737
04ccf3ec 477382005-10-24 Marco Gerards <mgerards@xs4all.nl>
47739
47740 * include/grub/parser.h: New file.
47741
47742 * kern/parser.c: Likewise.
47743
47744 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
47745 (grub_setup_SOURCES): Likewise.
47746 (grub_probefs_SOURCES): Likewise.
47747 (grub_emu_SOURCES): Likewise.
47748 (kernel_img_HEADERS): Add `parser.h'.
47749
47750 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
47751 (grub_emu_SOURCES): Add `kern/parser.c'.
47752 (grubof_SOURCES): Likewise.
47753
47754 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
47755 (grubof_SOURCES): Add `kern/parser.c'.
47756
47757 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
47758
47759 * kern/misc.c (grub_split_cmdline): Removed function.
47760
47761 * kern/rescue.c: Include <grub/parser.h>.
47762 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
47763 of `grub_split_cmdline'.
47764
47765 * normal/command.c: Include <grub/parser.h>.
47766 (grub_command_execute): Use `grub_parser_split_cmdline' instead
47767 of `grub_split_cmdline'.
47768
47769 * normal/completion.c: Include <grub/parser.h>.
47770 (cmdline_state): New variable.
47771 (iterate_dir): End the filename with a quote depending on the
47772 command line state.
47773 (get_state): new function.
47774 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
47775 split the arguments and determine the current argument. When the
47776 argument string is not quoted, escape all spaces.
47777
6d8f4b0e 477782005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
47779
47780 * normal/sparc64/setjmp.S: New file.
47781
15cf03ed 477822005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
47783
47784 * include/grub/sparc64/libgcc.h: New file.
47785 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
47786 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
47787 normal/sparc64/setjmp.c.
47788
03e8661a 477892005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
47790
47791 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
47792 * kern/sparc64/cache.S: New file.
47793 * kern/sparc64/cache.c: Removed.
47794 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
47795 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
47796 -mtune=ultrasparc.
47797 (COMMON_LDFLAGS): Add -melf64_sparc.
47798 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
47799 (grubof_SOURCES): Use cache.S instead of cache.c.
47800 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
47801 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
47802 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
47803 commented though.
47804 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
47805 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
47806 (linux_mod_CFLAGS): Commented out.
47807 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
47808 out because module isn't built.
47809 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
47810 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
47811 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
47812 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
47813 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
47814 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
47815 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
47816 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
47817 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
47818 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
47819 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47820 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47821 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
47822 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
47823
34eeec8a 478242005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
47825
47826 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
47827 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
47828 longer, because HFS should not be used on PC.
47829
708367a3 478302005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47831
47832 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
47833 consistently within the loop.
47834
6fa1251a 478352005-10-15 Marco Gerards <mgerards@xs4all.nl>
47836
47837 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
47838 directory can not be read.
47839
4801580b 478402005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47841
47842 * configure.ac (AC_INIT): Increase the version number to 1.91.
47843
47844 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
47845 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
47846 term/i386/pc/serial.c.
47847
219ad426 478482005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47849
47850 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
47851 file size must be permitted.
47852
47853 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
47854 between %ah and %al.
47855
688e5699 478562005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47857
47858 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
47859 grub_uint64_t.
47860 Call the hook with a NUL-terminated filename.
47861 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
47862 grub_cpu_to_be32.
47863
47864 * kern/term.c (cursor_state): New variable.
47865 (grub_term_set_current): Reset the cursor state on a new
47866 terminal.
47867 (grub_setcursor): Rewritten to use CURSOR_STATE.
47868 (grub_getcursor): New function.
47869
47870 * include/grub/term.h (grub_getcursor): New prototype.
47871
47872 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
47873 integers on ARM. Reported by Timothy Baldwin
47874 <T.E.Baldwin99@members.leeds.ac.uk>.
47875
bb34586c 478762005-10-11 Marco Gerards <mgerards@xs4all.nl>
47877
47878 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
47879 allocated.
47880 (grub_sfs_dir): Likewise.
47881
9a909877 478822005-10-09 Marco Gerards <mgerards@xs4all.nl>
47883
47884 Add support for the SFS filesystem.
47885
47886 * fs/sfs.c: New file.
47887
47888 * DISTLIST: Added `fs/sfs.c'.
47889
47890 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
47891 (grub_probefs_SOURCES): Likewise.
47892 (grub_emu_SOURCES): Likewise.
47893 (pkgdata_MODULES): Add `sfs.mod'.
47894 (sfs_mod_SOURCES): New variable.
47895 (sfs_mod_CFLAGS): Likewise.
47896 (sfs_mod_LDFLAGS): Likewise.
47897
47898 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
47899 (pkgdata_MODULES): Add `sfs.mod'.
47900 (sfs_mod_SOURCES): New variable.
47901 (sfs_mod_CFLAGS): Likewise.
47902
47903 * util/grub-emu.c (main): Call `grub_sfs_init' and
47904 `grub_sfs_fini'.
47905
47906 * include/grub/fs.h (grub_sfs_init): New prototype.
47907 (grub_sfs_fini): Likewise.
47908
57bdbde3 479092005-10-07 Marco Gerards <mgerards@xs4all.nl>
47910
47911 Add support for the AFFS filesystem.
47912
47913 * fs/affs.c: New file.
47914
47915 * DISTLIST: Added `fs/affs.c'.
47916
47917 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
47918 (grub_probefs_SOURCES): Likewise.
47919 (grub_emu_SOURCES): Likewise.
47920 (pkgdata_MODULES): Add `affs.mod'.
47921 (affs_mod_SOURCES): New variable.
47922 (affs_mod_CFLAGS): Likewise.
47923 (affs_mod_LDFLAGS): Likewise.
47924
47925 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
47926 (pkgdata_MODULES): Add `affs.mod'.
47927 (affs_mod_SOURCES): New variable.
47928 (affs_mod_CFLAGS): Likewise.
47929
47930 * util/grub-emu.c (main): Call `grub_affs_init' and
47931 `grub_affs_fini'.
47932
47933 * include/grub/fs.h (grub_affs_init): New prototype.
47934 (grub_affs_fini): Likewise.
47935
047b67e0 479362005-10-01 Marco Gerards <mgerards@xs4all.nl>
47937
47938 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
47939
59b8208a 479402005-10-01 Marco Gerards <mgerards@xs4all.nl>
47941
47942 * configure.ac: Accept `x86_64' as host_cpu. In that case add
47943 `-m32' to CFLAGS.
47944
47945 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
47946 linking.
f19dbdb7 47947
59b8208a 47948 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
47949 (COMMON_LDFLAGS): New variable.
47950 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
47951 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
47952 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
47953 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
47954 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
47955 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
47956 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
47957 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
47958 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
47959 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
47960 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
47961 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
47962 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
47963 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
47964 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
47965 variables.
47966 (normal_mod_ASFLAGS): Add `-m32'.
47967
47968 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
47969 (grub_host_size_t, grub_host_ssize_t): New types.
47970 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 47971 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 47972 `GRUB_HOST_SIZEOF_VOID_P'.
47973
47974 * include/grub/kernel.h (struct grub_module_header): Type of
47975 member offset changed to `grub_host_off_t'. Type of member size
47976 changed to `grub_host_size_t'.
47977 (struct grub_module_info): Type of member offset changed to
47978 `grub_host_off_t'. Type of member size changed to
47979 `grub_host_size_t'.
47980
b4093103 479812005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
47982
47983 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 47984
b4093103 47985 * kern/i386/pc/startup.S (multiboot_header): New label.
47986 (multiboot_entry): Likewise.
47987 (multiboot_trampoline): Likewise.
47988
47989 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
47990 Increased to 0x4A0.
47991
47992 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
47993 put parentheses after a question mark.
47994 [!GRUB_UTIL] (my_mod): New variable.
47995
47996 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
47997
b2499b29 479982005-09-28 Marco Gerards <mgerards@xs4all.nl>
47999
48000 Adds support for the XFS filesystem. Btrees are not supported
48001 yet.
48002
48003 * fs/xfs.c: New file.
48004
48005 * DISTLIST: Added `fs/xfs.c'.
48006
48007 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
48008 (grub_probefs_SOURCES): Likewise.
48009 (grub_emu_SOURCES): Likewise.
48010 (pkgdata_MODULES): Add `xfs.mod'.
48011 (xfs_mod_SOURCES): New variable.
48012 (xfs_mod_CFLAGS): Likewise.
48013
48014 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
48015 (pkgdata_MODULES): Add `xfs.mod'.
48016 (xfs_mod_SOURCES): New variable.
48017 (xfs_mod_CFLAGS): Likewise.
48018
48019 * util/grub-emu.c (main): Call `grub_xfs_init' and
48020 `grub_xfs_fini'.
48021
48022 * include/grub/fs.h (grub_xfs_init): New prototype.
48023 (grub_xfs_fini): Likewise.
48024
f19dbdb7 48025
83d37a62 480262005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
48027
48028 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
48029 color modes, allow greater than 16 colors to be configured as
48030 a default palette.
48031
47d2d65e 480322005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
48033
48034 * normal/completion.c (complete_arguments): Add the qualifier
48035 const into OPTIONS.
48036
48037 From Omniflux <omniflux+lists@omniflux.com>:
48038 * include/grub/terminfo.h: New file.
48039 * include/grub/tparm.h: Likewise.
48040 * include/grub/i386/pc/serial.h: Likewise.
48041 * term/terminfo.c: Likewise.
48042 * term/tparm.c: Likewise.
48043 * term/i386/pc/serial.c: Likewise.
48044 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
48045 serial.mod.
48046 (terminfo_mod_SOURCES): New variable.
48047 (terminfo_mod_CFLAGS): Likewise.
48048 (serial_mod_SOURCES): Likewise.
48049 (serial_mod_CFLAGS): Likewise.
48050
48b671ff 480512005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
48052
48053 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
48054 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
48055 and kern/powerpc/ieee1275/cmain.c, respectively.
48056
48057 * boot/powerpc/ieee1275/crt0.S: Moved to ...
48058 * kern/powerpc/ieee1275/crt0.S: ... here.
48059
48060 * boot/powerpc/ieee1275/cmain.c: Moved to ...
48061 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 48062
48b671ff 48063 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
48064 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
48065 instead of boot/powerpc/ieee1275/crt0.S and
48066 boot/powerpc/ieee1275/cmain.c, respectively.
48067
48068 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
48069 sectors. It was not used anyway.
48070
09fc77a7 480712005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48072
48073 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
48074 `unused parameter' warning.
48075
003789c7 480762005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48077
48078 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
48079 function.
48080 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
48081 getcharwidth.
48082
67f44c86 480832005-08-28 Marco Gerards <metgerards@student.han.nl>
48084
48085 * include/grub/normal.h (enum grub_completion_type): Added
48086 `GRUB_COMPLETION_TYPE_ARGUMENT'.
48087
48088 * normal/cmdline.c (print_completion): Handle
48089 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
48090 * normal/menu_entry.c (store_completion): Likewise.
48091
48092 * normal/completion.c (complete_arguments): New function.
48093 (grub_normal_do_completion): Call `complete_arguments' when the
48094 current words start with a dash.
48095
0b5abe02 480962005-08-27 Marco Gerards <metgerards@student.han.nl>
48097
48098 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
48099 `gzio.mod' instead of `io.mod').
48100
d9864ee1 481012005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
48102
48103 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
48104 (DISTDIRS): Added io and video.
48105 Rewrite the search routine to make an output consistently.
48106
48107 * DISTLIST: Added conf/sparc64-ieee1275.mk,
48108 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
48109 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
48110 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
48111 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
48112 util/powerpc/ieee1275/misc.c.
f19dbdb7 48113
d9864ee1 48114 * include/grub/gzio.h: New file.
48115 * io/gzio.c: Likewise.
f19dbdb7 48116
d9864ee1 48117 * kern/file.c (grub_file_close): Call grub_device_close only if
48118 FILE->DEVICE is not NULL.
48119
48120 * include/grub/mm.h [!NULL] (NULL): New macro.
48121
48122 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
48123
48124 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
48125 (pkgdata_MODULES): Added gzio.mod.
48126 (gzio_mod_SOURCES): New variable.
48127 (gzio_mod_CFLAGS): Likewise.
48128
48129 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
48130 (pkgdata_MODULES): Added gzio.mod.
48131 (gzio_mod_SOURCES): New variable.
48132 (gzio_mod_CFLAGS): Likewise.
48133
48134 * commands/cat.c: Include grub/gzio.h.
48135 (grub_cmd_cat): Use grub_gzfile_open instead of
48136 grub_file_open.
f19dbdb7 48137
d9864ee1 48138 * commands/cmp.c: Include grub/gzio.h.
48139 (grub_cmd_cmp): Use grub_gzfile_open instead of
48140 grub_file_open.
48141
48142 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
48143 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
48144 grub_file_open.
48145 (grub_rescue_cmd_module): Likewise.
48146
fa46f4b5 481472005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48148
48149 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
48150 kern/sparc64/ieee1275/init.c because it contains _start.
48151 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
48152
e9211b5d 481532005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48154
48155 * configure.ac: Add support for sparc64 host with ieee1275
48156 firmware.
48157 * configure: Generated from configure.ac.
48158 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
48159 instead of int.
48160 (grub_ofdisk_read): Likewise.
48161 (grub_ofdisk_open): Use %p to print pointer values, and cast the
48162 pointers as (void *) to remove a warning.
48163 (grub_ofdisk_close): Likewise.
48164 (grub_ofdisk_read): Likewise.
48165 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
48166 returns, so make it return void to remove a warning.
48167 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
48168 Corresponding prototype change.
48169 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
48170 values, and cast the pointers as (void *) to remove a warning.
48171 (grub_mm_dump): Likewise.
48172 * conf/sparc64-ieee1275.mk: New file.
48173 * conf/sparc64-ieee1275.rmk: Likewise.
48174 * include/grub/sparc64/setjmp.h: Likewise.
48175 * include/grub/sparc64/types.h: Likewise.
48176 * include/grub/sparc64/ieee1275/console.h: Likewise.
48177 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48178 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48179 * include/grub/sparc64/ieee1275/time.h: Likewise.
48180 * kern/sparc64/cache.c: Likewise.
48181 * kern/sparc64/dl.c: Likewise.
48182 * kern/sparc64/ieee1275/init.c: Likewise.
48183 * kern/sparc64/ieee1275/openfw.c: Likewise.
48184
385c6a92 481852005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48186
48187 * util/console.c (grub_ncurses_putchar): If C is greater than
48188 0x7f, set C to a question mark.
48189 (grub_ncurses_getcharwidth): New function.
48190 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
48191 getcharwidth.
48192
48193 * normal/menu.c (print_entry): Made aware of Unicode. First,
48194 convert TITLE to UCS-4, and predict the cursor position by
48195 grub_getcharwidth.
48196
48197 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
48198 const to SRC.
48199 * kern/misc.c (grub_utf16_to_utf8): Likewise.
48200
16ccb8b1 482012005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48202
48203 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
48204 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48205 grub_strcat.
48206
48207 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
48208 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48209 grub_strcpy and grub_strlen. Take it into account that a space
48210 character is inserted as a delimiter.
48211
6a85ce79 482122005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48213
48214 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 48215 invalid magic in the error.
6a85ce79 48216
48217 * commands/search.c: New file.
f19dbdb7 48218
6a85ce79 48219 * util/grub-emu.c (main): Call grub_search_init and
48220 grub_search_fini.
48221
48222 * kern/rescue.c (grub_rescue_print_disks): Removed.
48223 (grub_rescue_print_devices): New function.
48224 (grub_rescue_cmd_ls): Use grub_device_iterate with
48225 grub_rescue_print_devices instead of grub_disk_dev_iterate with
48226 grub_rescue_print_disks.
48227
48228 * kern/partition.c (grub_partition_iterate): Return the result of
48229 PARTMAP->ITERATE instead of GRUB_ERRNO.
48230
48231 * kern/device.c: Include grub/partition.h.
48232 (grub_device_iterate): New function.
48233
48234 * include/grub/partition.h (grub_partition_iterate): Return int
48235 instead of grub_err_t.
48236
48237 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
48238 prototype.
48239 [GRUB_UTIL] (grub_search_fini): Likewise.
48240
48241 * include/grub/device.h (grub_device_iterate): New prototype.
48242
48243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48244 commands/search.c.
48245 (pkgdata_MODULES): Added search.mod.
48246 (search_mod_SOURCES): New variable.
48247 (search_mod_CFLAGS): Likewise.
48248
48249 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
48250 (pkgdata_MODULES): Added search.mod.
48251 (search_mod_SOURCES): New variable.
48252 (search_mod_CFLAGS): Likewise.
48253
48254 * commands/ls.c (grub_ls_list_disks): Renamed to ...
48255 (grub_ls_list_devices): ... this, and use grub_device_iterate.
48256 All callers changed.
48257
48258 * DISTLIST: Added commands/search.c.
48259
ef095434 482602005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48261
48262 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
48263 conversion.
48264 (grub_getcharwidth): New function.
48265
48266 * kern/misc.c (grub_utf8_to_ucs4): New function.
48267
48268 * include/grub/term.h (struct grub_term): Added a new member
48269 "getcharwidth".
48270 (grub_getcharwidth): New prototype.
48271
48272 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
48273
48274 * term/i386/pc/console.c (map_char): New function. Segregated from
48275 grub_console_putchar.
48276 (grub_console_putchar): Use map_char.
48277 (grub_console_getcharwidth): New function.
48278 (grub_console_term): Specified grub_console_getcharwidth as
48279 getcharwidth.
48280
48281 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
48282 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
48283
48284 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
48285 GRUB_ERRNO.
48286 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
48287 on grub_strtoul completely.
48288 (write_char): Declare local variables in the beginning of the
48289 function.
48290 (grub_vesafb_getcharwidth): New function.
48291 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
48292 getcharwidth.
48293
1f0a95e4 482942005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
48295
48296 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
48297 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
48298 commands/i386/pc/vbetest.c.
48299
48300 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
48301 call grub_vbe_get_controller_info again, because the returned
48302 information is volatile.
48303 (grub_vbe_set_video_mode): Mostly rewritten.
48304 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
48305 grub_vbe_status_t correctly.
48306 (grub_vbe_get_video_mode_info): Likewise.
48307 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
48308 several if statements.
48309
48310 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
48311 * commands/i386/pc/vbeinfo.c: ... this.
48312
48313 * commands/i386/pc/vbe_test.c: Renamed to ...
48314 * commands/i386/pc/vbetest.c: ... this.
48315
48316 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
48317 ...
48318 (grub_cmd_vbeinfo): ... this. Save video modes before
48319 iterating. Skip a video mode, if it is not available, not enough
48320 information is given or it is monochrome. Show the memory
48321 model. Leave the interpretation of MODEVAR to grub_strtoul
48322 completely.
48323 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
48324 (GRUB_MOD_FINI): Likewise.
48325
48326 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
48327 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
48328 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
48329 duplicated grub_env_get. Leave the interpretation of MODEVAR to
48330 grub_strtoul completely.
48331 (real2pm): Removed.
48332 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
48333 (GRUB_MOD_FINI): Likewise.
48334
48335 * normal/misc.c: Include grub/mm.h.
48336
48337 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
48338 vbe_list_modes with vbetest.mod and vbeinfo.mod.
48339 (vbe_list_modes_mod_SOURCES): Removed.
48340 (vbe_list_modes_mod_CFLAGS): Likewise.
48341 (vbe_test_mod_SOURCES): Likewise.
48342 (vbe_test_mod_CFLAGS): Likewise.
48343 (vbeinfo_mod_SOURCES): New variable.
48344 (vbeinfo_mod_CFLAGS): Likewise.
48345 (vbetest_mod_SOURCES): Likewise.
48346 (vbetest_mod_CFLAGS): Likewise.
48347
992ffbbe 483482005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
48349
48350 * normal/misc.c: New file.
48351
48352 * DISTLIST: Added normal/misc.c.
f19dbdb7 48353
992ffbbe 48354 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
48355 DISK to HOOK. Call HOOK with DISK.
48356 * partmap/apple.c (apple_partition_map_iterate): Likewise.
48357 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48358 * partmap/sun.c (sun_partition_map_iterate): Likewise.
48359
48360 * normal/menu_entry.c (struct screen): Added a new member
48361 "completion_shown".
48362 (completion_buffer): New global variable.
48363 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
48364 (store_completion): New function.
48365 (complete): Likewise.
48366 (clear_completions): Likewise.
48367 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
48368 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
48369 a tab, call complete.
48370
48371 * normal/completion.c (disk_dev): Removed.
48372 (print_simple_completion): Likewise.
48373 (print_partition_completion): Likewise.
48374 (print_func): New global variable.
48375 (add_completion): Do not take the arguments WHAT or PRINT any
48376 longer. Added a new argument TYPE. Instead of printing directly,
48377 call PRINT_FUNC if not NULL.
48378 All callers changed.
48379 (complete_device): Use a local variable DEV instead of
48380 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
48381 (grub_normal_do_completion): Take a new argument HOOK. Do not
48382 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
48383 empty string, return NULL instead.
48384 All callers changed.
48385
48386 * normal/cmdline.c (print_completion): New function.
48387
48388 * kern/partition.c (grub_partition_iterate): Add an argument DISK
48389 to HOOK.
48390 All callers changed.
48391
48392 * kern/disk.c (grub_print_partinfo): Removed.
48393
48394 * include/grub/partition.h (struct grub_partition_map): Add a new
48395 argument DISK into HOOK of ITERATE.
48396 (grub_partition_iterate): Add a new argument DISK to HOOK.
48397
48398 * include/grub/normal.h (enum grub_completion_type): New enum.
48399 (grub_completion_type_t): New type.
48400 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
48401 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
48402 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
48403 (GRUB_COMPLETION_TYPE_FILE): Likewise.
48404 (grub_normal_do_completion): Added a new argument HOOK.
48405 (grub_normal_print_device_info): New prototype.
48406
48407 * include/grub/disk.h (grub_print_partinfo): Removed.
48408
48409 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
48410 (normal_mod_SOURCES): Likewise.
48411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48412 (normal_mod_SOURCES): Likewise.
48413
48414 * commands/ls.c (grub_ls_list_disks): Use
48415 grub_normal_print_device_info instead of grub_print_partinfo. Free
48416 PNAME.
48417 (grub_ls_list_files): Use grub_normal_print_device_info instead of
48418 duplicating the code.
48419
0bd41162 484202005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48421
48422 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 48423 follow GCS more precisely.
48424 * commands/i386/pc/vbe_test.c: Likewise.
48425 * include/grub/i386/pc/vbe.h: Likewise.
48426 * term/i386/pc/vesafb.c: Likewise.
48427 * video/i386/pc/vbe.c: Likewise.
0bd41162 48428
6323696a 484292005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48430
48431 * DISTLIST: Added term/i386/pc/vesafb.c
48432 DISTLIST: Added video/i386/pc/vbe.c
48433 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
48434 DISTLIST: Added commands/i386/pc/vbe_test.c.
48435 * commands/i386/pc/vbe_list_modes.c: New file.
48436 * commands/i386/pc/vbe_test.c: Likewise.
48437 * term/i386/pc/vesafb.c: Likewise.
48438 * video/i386/pc/vbe.c: Likewise.
48439 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
48440 (grub_vbe_probe) Added prototype.
48441 (grub_vbe_set_video_mode) Likewise.
48442 (grub_vbe_get_video_mode) Likewise.
48443 (grub_vbe_get_video_mode_info) Likewise.
48444 (grub_vbe_set_pixel_rgb) Likewise.
48445 (grub_vbe_set_pixel_index) Likewise.
48446 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
48447 (pkgdata_MODULES): Added vesafb.mod.
48448 (pkgdata_MODULES): Added vbe_list_modes.mod.
48449 (pkgdata_MODULES): Added vbe_test.mod.
48450 (vbe_mod_SOURCES): Added.
48451 (vbe_mod_CFLAGS): Likewise.
48452 (vesafb_mod_SOURCES): Likewise.
48453 (vesafb_mod_CFLAGS): Likewise.
48454 (vbe_list_modes_mod_SOURCES): Likewise.
48455 (vbe_list_modes_mod_CFLAGS): Likewise.
48456 (vbe_test_mod_SOURCES): Likewise.
48457 (vbe_test_mod_CFLAGS): Likewise.
48458
0a74e62f 484592005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
48460
0a74e62f 48461 * normal/command.c (grub_command_execute): If INTERACTIVE is
48462 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
48463 CMDLINE. Disable the pager if INTERACTIVE is true.
48464 All callers are changed.
48465
48466 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
48467 before reading a config file.
48468 * normal/main.c (read_config_file): Even if a command is not
48469 found, register it if it is within an entry.
48470
48471 * util/grub-emu.c: Include sys/types.h and unistd.h.
48472 (options): Added --hold.
48473 (struct arguments): Added a new member "hold".
48474 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
48475 missing.
48476 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
48477 cleared by a debugger, if it is not zero.
48478
48479 * include/grub/normal.h (grub_command_execute): Add an argument
48480 INTERACTIVE.
48481
e51f85ae 484822005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
48483
48484 * DISTLIST: Added include/grub/i386/pc/vbe.h.
48485
e9c6f39b 484862005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
48487
48488 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
48489 program with another one, because the old one didn't detect a bug
48490 in gcc-3.4. Always use regparm 2, because the new test is still
48491 not enough for gcc-4.0. Someone must investigate a simple test
48492 case which detects a bug in gcc-4.0.
48493
8de3495c 484942005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
48495
48496 * DISTLIST: Added normal/completion.c.
48497
48498 * normal/completion.c: New file.
f19dbdb7 48499
8de3495c 48500 * term/i386/pc/console.c (grub_console_getwh): New function.
48501 (grub_console_term): Assign grub_console_getwh to getwh.
48502
48503 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
48504 function is defined in normal/completion.c as
48505 grub_normal_do_completion.
48506 (grub_cmdline_get): Use grub_normal_do_completion instead of
48507 grub_tab_complete.
48508
48509 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
48510 returns non-zero, otherwise return 0.
48511 (grub_partition_iterate): First, probe the partition map. Then,
48512 call ITERATE only for this partition map.
48513
48514 * kern/misc.c (grub_strncmp): Rewritten.
48515
48516 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
48517 returns non-zero. Otherwise return 0.
48518
48519 * include/grub/partition.h (grub_partition_map_iterate): Return
48520 int instead of void.
48521
48522 * include/grub/normal.h (grub_normal_do_completion): New prototype.
48523
48524 * include/grub/misc.h (grub_strncmp): Change the type of N to
48525 grub_size_t.
48526
48527 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
48528 of void.
48529
48530 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 48531 unsigned explicitly before comparing it with I.
8de3495c 48532
48533 * kern/main.c (grub_env_write_root): Add the attribute unused into
48534 VAR.
48535
48536 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48537 normal/completion.c.
48538 (normal_mod_SOURCES): Likewise.
48539 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48540 (normal_mod_SOURCES): Likewise.
48541
48542 * normal/command.c (grub_iterate_commands): If ITERATE returns
48543 non-zero, return one immediately.
48544
e85e144b 485452005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
48546
48547 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
48548 * kern/i386/pc/startup.S: Updated Global Descriptor table's
48549 descriptions.
48550 (grub_vbe_get_controller_info): New function.
48551 (grub_vbe_get_mode_info): Likewise.
48552 (grub_vbe_set_mode): Likewise.
48553 (grub_vbe_get_mode): Likewise.
48554 (grub_vbe_set_memory_window): Likewise.
48555 (grub_vbe_get_memory_window): Likewise.
48556 (grub_vbe_set_scanline_length): Likewise.
48557 (grub_vbe_get_scanline_length): Likewise.
48558 (grub_vbe_set_display_start): Likewise.
48559 (grub_vbe_get_display_start): Likewise.
48560 (grub_vbe_set_palette_data): Likewise.
48561 * include/grub/i386/pc/vbe.h: New file.
48562
c46153d2 485632005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48564
48565 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48566 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
48567 * DISTLIST: Likewise.
48568 * kern/ieee1275/of.c: Moved to ...
48569 * kern/ieee1275/ieee1275.c: ... here.
48570
0cb90c45 485712005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48572
48573 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
48574 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
48575 Pass 0 as `end' parameter to grub_strtoul().
48576
a19fb360 485772005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48578
48579 * include/grub/powerpc/ieee1275/console.h: Do not include
48580 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
48581 ifdef.
48582 (grub_console_cur_color): Remove i386-specific prototype.
48583 (grub_console_real_putchar): Likewise.
48584 (grub_console_checkkey): Likewise.
48585 (grub_console_getkey): Likewise.
48586 (grub_console_getxy): Likewise.
48587 (grub_console_gotoxy): Likewise.
48588 (grub_console_cls): Likewise.
48589 (grub_console_setcursor): Likewise.
48590 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
48591 Include <grub/machine/console.h>.
48592 * term/ieee1275/ofconsole.c: Likewise.
48593
4ac9bd04 485942005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
48595
48596 * Makefile.in (LIBLZO): New variable.
48597
48598 * configure.ac: Check for LZO version 2.
48599
48600 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
48601 lzo/lzo1x.h instead of lzo1x.h.
48602
48603 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
48604 of -llzo.
48605
48606 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
48607 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
48608
48609 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
48610 copying the data from PARTITION to P.
48611
f4917dfd 486122005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48613
48614 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
48615 negative, unload the module.
48616
48617 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
48618 map is "pc_partition_map" but not "pc".
48619 (usage): Fix the description. The options are --boot-image and
48620 --core-image but not --boot-file or --core-file.
48621 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
48622 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
48623 DEFAULT_DIRECTORY.
48624
48625 * util/i386/pc/grub-install.in: Do not specify --boot-file or
48626 --core-file. Specify INSTALL_DEVICE as an argument.
48627
48628 * util/console.c: Include config.h.
48629 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
48630 [HAVE_NCURSES_H]: Include ncurses.h.
48631 [HAVE_CURSES_H]: Include curses.h.
48632 [!A_NORMAL] (A_NORMAL): Defined as zero.
48633 [!A_STANDOUT] (A_STANDOUT): Likewise.
48634
48635 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
48636 -lncurses.
48637 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
48638
48639 * configure.ac: Check for curses libraries and headers.
48640
48641 * Makefile.in (LIBCURSES): New variable.
48642
48643 * genmk.rb (Script::rule): Set the executable bits.
48644
48645 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
48646 name of the PC partition map is "pc_partition_map" but not "pc".
48647
0e143073 486482005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48649
48650 * util/i386/pc/grub-install.in (grub_probefs): New variable.
48651 (modules): Likewise.
48652 (usage): Added descriptions for --modules and --grub-probefs.
48653 Handle --modules and --grub-probefs. Save the arguments in MODULES
48654 and GRUB_PROBEFS, respectively.
48655 Auto-detect a filesystem module against GRUBDIR. If the result is
48656 empty and modules are not specified explicitly, abort the
48657 installation. Add the result to MODULES.
48658
48659 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
48660 disk/powerpc/ieee1275/ofdisk.c,
48661 include/grub/powerpc/ieee1275/init.h and
48662 term/powerpc/ieee1275/ofconsole.c.
48663 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
48664 term/ieee1275/ofconsole.c.
48665
48666 * include/grub/powerpc/ieee1275/console.h: Resurrected.
48667
48668 * COPYING: Upgraded to the latest version. Only the address of the
48669 FSF office has changed.
f19dbdb7 48670
efd6e6d5 486712005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48672
48673 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48674 kern/ieee1275.c with kern/ieee1275/of.c.
48675
48676 * kern/ieee1275.c: Moved to ...
48677 * kern/ieee1275/of.c: ... here.
48678
8ceafda2 486792005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
48680
48681 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 48682 readability.
8ceafda2 48683
48684 * config.guess: Updated to the latest version from gnulib.
48685 * config.sub: Likewise.
48686 * install.sh: Likewise.
48687 * mkinstalldirs: Likewise.
48688
48689 * include/grub/console.h: Removed. This file is arch-specific. Do
48690 not put this in include/grub.
48691
48692 * include/grub/i386/pc/console.h: Resurrected.
48693
48694 * util/console.c: Include grub/machine/console.h instead of
48695 grub/console.h.
48696 * util/grub-emu.c: Likewise.
48697
267f6cd9 486982005-08-04 Marco Gerards <metgerards@student.han.nl>
48699
48700 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
48701 hardcoded value.
f19dbdb7 48702
267f6cd9 48703 From Vincent Pelletier <subdino2004@yahoo.fr>
48704 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
48705 Redefined to use grub_getwh.
48706 (grub_term): New member named getwh.
48707 (grub_getwh): New prototype.
48708 * kern/term.c (grub_getwh): New function.
48709 * term/i386/pc/console.c (grub_console_getwh): New function.
48710 (grub_console_term): New member `getwh'.
48711 * term/i386/pc/vga.c (grub_vga_getwh): New function.
48712 (grub_vga_term): New member `getwh'.
0b5abe02 48713 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 48714 grub_ssize_t.
48715 (grub_ofconsole_getw): New function.
48716 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
48717 (grub_ofconsole_term): New field named getwh and new initial
48718 value.
48719
3be7266d 487202005-08-03 Hollis Blanchard <hollis@penguinppc.org>
48721
48722 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
48723 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
48724 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
48725 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
48726 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
48727 of <grub/machine/ieee1275.h>.
48728 * commands/ieee1275/reboot.c: Likewise.
48729 * boot/powerpc/ieee1275/ieee1275.c: Move ...
48730 * kern/ieee1275.c: ... to here. All users updated. Change all
48731 parameter structs to use new type `grub_ieee1275_cell_t'.
48732 * term/powerpc/ieee1275/ofconsole.c: Move ...
48733 * term/ieee1275/ofconsole.c: ... to here. All users updated.
48734 * disk/powerpc/ieee1275/ofdisk.c: Move ...
48735 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
48736 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
48737 to return int.
48738 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
48739 Remove unused prototypes. All users updated.
48740 * include/grub/powerpc/ieee1275/console.h: Removed.
48741 * include/grub/powerpc/ieee1275/ieee1275.h: Define
48742 `grub_ieee1275_cell_t'.
48743 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
48744 Cast comparisons with -1 to the correct type.
48745 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
48746 type to match `grub_ieee1275_entry_fn'.
48747
8b5f3938 487482005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
48749
48750 * DISTLIST: Added util/i386/pc/grub-probefs.c.
48751
48752 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
48753 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
48754 partmap/sun.c.
48755 (grub_probefs_SOURCES): New variable.
48756
48757 * util/i386/pc/grub-probefs.c: New file.
48758
48759 * util/i386/pc/grub-setup.c (main): Call
48760 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
48761 grub_hfs_init and grub_jfs_init to initialize the system. Call
48762 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
48763 grub_pc_partition_map_fini to finish the system.
48764
ea409713 487652005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
48766
48767 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
48768 function.
48769 (grub_multiboot_load_elf32): Likewise.
48770 (grub_multiboot_is_elf64): Likewise.
48771 (grub_multiboot_load_elf64): Likewise.
48772 (grub_multiboot_load_elf): Likewise.
48773 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
48774 an ELF32 or ELF64 file.
48775 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
48776
48777 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
48778 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
48779 NULL before calling FS->LABEL.
48780 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
48781 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
48782 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
48783 before calling FS->LABEL.
48784
141a288b 487852005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
48786
48787 * util/i386/pc/grub-install.in (datadir): New variable.
48788 (libdir): Removed.
48789 (pkgdatadir): New variable.
48790 (pkglibdir): Removed.
48791
0d5f8a54 487922005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
48793
48794 * DISTLIST: Added util/i386/pc/grub-install.in.
48795
48796 * util/i386/pc/grub-install.in: New file.
48797
48798 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
48799 (grub_install_SOURCES): Likewise.
48800
48801 * genmk.rb: Added support for scripts.
48802 (Script): New class.
48803 (scripts): New variable.
48804
48805 * Makefile.in (install-local): Install sbin_SCRIPTS by
48806 INSTALL_SCRIPT.
48807 (uninstall): Remove sbin_SCRIPTS.
48808
48809 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
48810 device, try to get a GRUB device by
48811 grub_util_biosdisk_get_grub_dev.
48812 Free DEST_DEV.
48813
48814 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
48815 description for --device-map.
48816
5f968e1e 488172005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
48818
48819 Change the semantics of variable hooks. They now return strings
48820 instead of error values.
f19dbdb7 48821
5f968e1e 48822 * util/i386/pc/grub-setup.c: Include grub/env.h.
48823 (setup): Use grub_device_set_root instead of grub_env_set.
48824
48825 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
48826 grub_env_get instead of grub_device_set_root and
48827 grub_device_get_root, respectively.
48828
48829 * kern/main.c (grub_env_write_root): New function.
48830 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
48831 grub_env_set instead of grub_device_set_root.
48832
48833 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
48834 many variables.
48835 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
48836 rather than calling ENV->WRITE_HOOK afterwards.
48837 (grub_env_get): Return the result of ENV->READ_HOOK rather than
48838 passing a pointer of a pointer.
48839 (grub_register_variable_hook): Change the types of "read_hook" and
48840 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
48841 respectively.
48842 Allocate the default empty string on the heap, because this string
48843 may be freed later.
48844
48845 * kern/device.c: Include grub/env.h.
48846 (grub_device_set_root): Removed.
48847 (grub_device_get_root): Likewise.
48848 (grub_device_open): Use grub_env_get instead of
48849 grub_device_get_root.
48850
48851 * include/grub/env.h (grub_env_read_hook_t): New type.
48852 (grub_env_write_hook_t): Likewise.
48853 (grub_env_var): Change the types of "read_hook" and "write_hook"
48854 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
48855 (grub_register_variable_hook): Likewise.
48856
48857 * include/grub/device.h (grub_device_set_root): Removed.
48858 (grub_device_set_root): Likewise.
48859
48860 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
48861 make sure that DIRNAME terminates with '/', so that
48862 grub_fat_find_dir will fail if PATH is not a directory.
48863
48864 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
48865 from DIRNAME.
48866 Use the qualifier auto for print_files and print_files_long.
48867 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
48868 as a regular file.
48869 Put a newline only if there is no error.
48870 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
48871 used.
48872
896f0afd 488732005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
48874
48875 * kern/partition.c (grub_partition_probe): Initialize PART to
48876 NULL. Otherwise, when no partition map is registered, this returns
48877 a garbage.
48878
b28b81b2 488792005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
48880
48881 * partmap/apple.c (apple_partition_map_iterate): Check if POS
48882 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
48883 valid.
48884
5f3607e0 488852005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
48886
48887 * commands/ls.c (grub_ls_list_disks): Print the filesystem
48888 information on each device, if it does not have partitions. Print
48889 "Device" instead of "Disk", because this function is not specific
48890 to disk devices.
48891
48892 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
48893 static to ensure that it is put on the memory rather than a
48894 register.
48895
502c87e8 488962005-07-17 Yoshinori Okuji <okuji@enbug.org>
48897
48898 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
48899 (grub_cat_init): Likewise.
48900 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
48901 (options): Likewise.
48902 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
48903 (grub_configfile_init): Likewise.
48904 * font/manager.c (GRUB_MOD_INIT): Likewise.
48905 * commands/help.c (GRUB_MOD_INIT): Likewise.
48906 (grub_help_init): Likewise.
48907 * normal/command.c (grub_command_init): Likewise.
48908 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
48909 * disk/loopback.c (grub_loop_init): Likewise.
48910 (GRUB_MOD_INIT): Likewise.
48911 * commands/ls.c (grub_ls_init): Likewise.
48912 (GRUB_MOD_INIT): Likewise.
48913 (options): Likewise.
48914 * commands/boot.c (grub_boot_init): Likewise.
48915 (GRUB_MOD_INIT): Likewise.
48916 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
48917 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
48918 (GRUB_MOD_INIT): Likewise.
48919 * commands/cmp.c (grub_cmp_init): Likewise.
48920 (GRUB_MOD_INIT): Likewise.
48921
48922 * normal/arg.c: Use <> instead of "" to include header files.
48923 (SHORT_ARG_HELP): New macro.
48924 (SHORT_ARG_USAGE): Likewise.
48925 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
48926 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
48927 descriptions.
48928 (find_short): Check if C is 'h' or 'u' explicitly.
48929 (grub_arg_show_help): Use space characters instead of tabs. Treat
48930 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
48931 are shown with --help and --usage only if they are not used for
48932 the command itself.
48933 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
48934 'h' and 'u'.
48935
48936 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
48937 const into "longarg". Change the type of "shortarg" to int.
48938
f806d18e 489392005-07-17 Yoshinori Okuji <okuji@enbug.org>
48940
48941 * boot/i386/pc/boot.S (boot_drive_check): New label.
48942
48943 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
48944 macro.
48945
48946 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
48947 which do not pass a boot drive correctly. Copied from GRUB Legacy.
48948
e293232b 489492005-07-17 Yoshinori Okuji <okuji@enbug.org>
48950
48951 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
48952 When turning off Gate A20, skip the check and return immediately,
48953 because this is not fatal usually.
48954
ebedfd00 489552005-07-17 Yoshinori Okuji <okuji@enbug.org>
48956
48957 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
48958 be 0x7C00 instead of 0x8000.
48959
48960 * boot/i386/pc/pxeboot.S: Rewritten.
48961
48962 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
48963 EXT_C.
48964 (gate_a20_check_state): Read a byte from 0x108000. Invert the
48965 result.
48966
654fc59f 489672005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
48968
48969 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
48970 robustness. This routine now supports a BIOS call and System
48971 Control Port A to modify the gate A20.
48972
48973 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48974 Increased to 0x440.
48975
09f9923f 489762005-07-12 Hollis Blanchard <hollis@penguinppc.org>
48977
48978 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
48979 device path and resulting ihandle.
48980 (grub_ofdisk_close): dprintf the ihandle being closed.
48981 (grub_ofdisk_read): dprintf function parameters.
48982 * kern/mm.c (grub_mm_init_region): Likewise.
48983 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
48984 (grub_linux_boot): dprintf the Linux entry point, initrd address and
48985 size, and boot arguments.
48986 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
48987 before loading into memory.
48988 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
48989 before loading into memory.
48990
7ef504d8 489912005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
48992
48993 * kern/mm.c: Added much documentation.
48994 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
48995 8, set to 5 instead of 8.
48996
e0f050c2 489972005-07-10 Yoshinori Okuji <okuji@enbug.org>
48998
48999 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
49000
49001 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
49002 (grub_mkdevicemap_SOURCES): New variable.
49003
49004 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
49005 lib/device.c of GRUB Legacy.
49006
7224189a 490072005-07-10 Yoshinori Okuji <okuji@enbug.org>
49008
49009 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
49010 instead of PATH is NULL.
49011
68c864eb 490122005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
49013
49014 * commands/cmp.c (BUFFER_SIZE): New macro.
49015 (grub_cmd_cmp): Close the right file at the right time. Compare
49016 only data just read. Don't report files of different size as
49017 identical. Dynamically allocate buffers. Move variable
49018 declarations at the beginning of function.
49019
e6f3e614 490202005-07-09 Yoshinori Okuji <okuji@enbug.org>
49021
49022 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
49023 reverse.
49024
f8f1559a 490252004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
49026
49027 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
49028 when backspace is pressed at beginning of line.
49029
39c9d41d 490302005-07-03 Yoshinori Okuji <okuji@enbug.org>
49031
49032 * DISTLIST: Added genfslist.sh.
49033
49034 * normal/main.c (fs_module_list): New variable.
49035 (autoload_fs_module): New function.
49036 (read_fs_list): Likewise.
49037 (grub_normal_execute): Call read_fs_list.
49038
49039 * kern/fs.c (grub_fs_autoload_hook): New variable.
49040 (grub_fs_probe): Added support for auto-loading.
49041
49042 * include/grub/normal.h (struct grub_fs_module_list): New struct.
49043 (grub_fs_module_list_t): New type.
49044
49045 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
49046 (grub_fs_autoload_hook): New prototype.
49047
49048 * genfslist.sh: New file.
f19dbdb7 49049
39c9d41d 49050 * genmk.rb: Added a rule to generate a filesystem list.
49051
121c1d83 490522005-06-30 Marco Gerards <metgerards@student.han.nl>
49053
49054 * configure.ac: Fix the test for cross-compiling.
49055
49056 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
49057 define GRUB_UTIL anymore.
49058
49059 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
49060 so this function works on other systems than just big endian.
49061 (load_modules): Likewise.
49062 (add_segments): Likewise.
49063
e75d76e1 490642005-06-23 Hollis Blanchard <hollis@penguinppc.org>
49065
49066 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
49067 contains `l' modifier, get a long from va_arg().
49068
50b5a0a7 490692005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
49070
49071 * kern/mm.c (grub_free): If the next free block which is being
49072 merged is the first free block, set the first block to the block
49073 being freed.
49074 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
49075
89371b20 490762005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49077
49078 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
49079 `grub_ieee1275_chosen'.
49080
168d6e58 490812005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49082
49083 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
49084 (grub_ieee1275_chosen): New variable.
49085 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
49086 `chosen'.
49087 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
49088 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49089 Rename first argument to `phandle' for consistency.
49090 (grub_ieee1275_get_property_length): Likewise.
49091 (grub_ieee1275_next_property): Likewise. Change type of first argument
49092 to grub_ieee1275_phandle_t.
49093 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
49094 Move export next to declaration.
49095 (grub_ieee1275_chosen): New variable.
49096 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
49097 Correct cosmetic typo.
49098 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
49099 `grub_ieee1275_chosen'.
49100 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
49101 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
49102 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
49103 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
49104 `grub_ieee1275_chosen'.
49105
ca5baa3f 491062005-05-10 Hollis Blanchard <hollis@penguinppc.org>
49107
49108 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
49109 /chosen/bootargs.
49110 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
49111 /chosen/bootargs as "variable=value" pairs.
49112
708b345f 491132005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
49114
49115 * include/grub/misc.h (grub_dprintf): New macro.
49116 (grub_real_dprintf): New prototype.
49117 (grub_strword): Likewise.
49118 (grub_iswordseparator): Likewise.
49119 * kern/misc.c (grub_real_dprintf): New function.
49120 (grub_strword): Likewise.
49121 (grub_iswordseparator): Likewise.
49122
f4c5e67c 491232005-04-30 Hollis Blanchard <hollis@penguinppc.org>
49124
49125 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
49126 (roundup): Remove macro.
49127 (grub_ieee1275_flags): Make static.
49128 (grub_ieee1275_realmode): Remove.
49129 (grub_ieee1275_test_flag): New function.
49130 (grub_ieee1275_set_flag): Likewise.
49131 (find_options): Rename to `grub_ieee1275_find_options'; update
49132 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
49133 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
49134 (cmain): New prototype.
49135 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
49136 `grub_ieee1275_flags' directly.
49137 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
49138 machine/biosdisk.h.
49139 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
49140 Don't include grub/machine/init.h.
49141 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
49142 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49143 Remove prototype.
49144 (grub_ieee1275_realmode): Likewise.
49145 (grub_ieee1275_flag): New enum.
49146 (grub_ieee1275_test_flag): New prototype.
49147 (grub_ieee1275_set_flag): New prototype.
49148 * include/grub/powerpc/ieee1275/init.h: Remove file.
49149 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
49150 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
49151 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
49152 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
49153 comment.
49154 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
49155 `grub_ieee1275_test_flag'.
49156 (grub_ieee1275_encode_devname): Likewise.
49157
ed16607e 491582005-04-21 Hollis Blanchard <hollis@penguinppc.org>
49159
49160 * include/grub/powerpc/ieee1275/ieee1275.h
49161 (grub_ieee1275_encode_devname): New prototype.
49162 (grub_ieee1275_get_filename): Likewise.
49163 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
49164 function.
49165 (grub_set_prefix): Likewise.
49166 (grub_machine_init): Call grub_set_prefix.
49167 * kern/powerpc/ieee1275/openfw.c: Fix typos.
49168 (grub_parse_type): New enum.
49169 (grub_ieee1275_get_devargs): New function.
49170 (grub_ieee1275_get_devname): Likewise.
49171 (grub_ieee1275_parse_args): Likewise.
49172 (grub_ieee1275_get_filename): Likewise.
49173 (grub_ieee1275_encode_devname): Likewise.
49174
be369920 491752005-03-30 Marco Gerards <metgerards@student.han.nl>
49176
49177 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
49178 `grub_loader_unset'.
49179
a5ce3a4a 491802005-03-26 Hollis Blanchard <hollis@penguinppc.org>
49181
49182 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
49183 instead of grub_ieee1275_interpret.
49184 (grub_halt_init): New function.
49185 (grub_halt_fini): Likewise.
49186 (GRUB_MOD_INIT): Correct message grammar.
49187 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
49188 instead of grub_ieee1275_interpret.
49189 (grub_reboot_init): New function.
49190 (grub_reboot_fini): Likewise.
49191 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
49192 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
49193 util/i386/pc/misc.c with commands/ieee1275/halt.c,
49194 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
49195 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
49196 function.
49197 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
49198 Add prototype.
49199 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
49200 prototype.
49201 (grub_halt): Likewise.
49202 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
49203 (cmain): Remove __attribute__((unused)).
49204 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
49205 (grub_heap_len): Likewise.
49206 (grub_machine_fini): New function.
49207 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
49208 (grub_halt): Likewise.
49209 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
49210 function.
49211 * util/powerpc/ieee1275/misc.c: New file.
49212
0058f771 492132005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
49214
49215 * DISTLIST: New file.
49216 * gendistlist.sh: Likewise.
f19dbdb7 49217
0058f771 49218 * Makefile.in (COMMON_DISTFILES): Removed.
49219 (BOOT_DISTFILES): Likewise.
49220 (CONF_DISTFILES): Likewise.
49221 (DISK_DISTFILES): Likewise.
49222 (FS_DISTFILES): Likewise.
49223 (INCLUDE_DISTFILES): Likewise.
49224 (KERN_DISTFILES): Likewise.
49225 (LOADER_DISTFILES): Likewise.
49226 (TERM_DISTFILES): Likewise.
49227 (UTIL_DISTFILES): Likewise.
49228 (DISTFILES): Likewise.
49229 (uninstall): Uninstall files in $(pkgdata_DATA).
49230 (DISTLIST): New target.
49231 (distdir): Use the contents of the file DISTLIST to get a list of
49232 distributed files.
49233
46b3b8a5 492342005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
49235
49236 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
49237 descriptor. This is ported from GRUB Legacy.
49238
49239 * gencmdlist.sh: Added an extra semicolon to make it work with
49240 old sed versions. Reported by Robert Bihlmeyer
49241 <robbe@orcus.priv.at>.
49242
5822ff87 492432005-03-08 Yoshinori Okuji <okuji@enbug.org>
49244
49245 Automatic loading of commands is supported.
f19dbdb7 49246
5822ff87 49247 * normal/main.c (read_command_list): New function.
49248 (grub_normal_execute): Call read_command_list.
49249
49250 * normal/command.c (grub_register_command): Return zero or CMD.
49251 Allocate CMD->NAME from the heap.
49252 Initialize CMD->MODULE_NAME to zero.
49253 Find the same name as well. If the same command is found and it is
49254 a dummy command, overwrite members. If it is not a dummy command,
49255 return zero.
49256 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
49257 (grub_command_find): If a dummy command is found, load a module
49258 and retry to find a command only once.
49259
49260 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
49261 make sure that each command is loaded.
49262
49263 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
49264 macro.
49265 (struct grub_command): Remove const from the member `name'.
49266 Add a new member `module_name'.
49267 (grub_register_command): Return grub_command_t.
49268
49269 * commands/help.c (grub_cmd_help): Call grub_command_find to make
49270 sure that each command is loaded.
49271
49272 * genmk.rb (PModule::rule): Specify a module name without the
49273 suffix ".mod" to gencmdlist.sh.
49274
7b1f4b57 492752005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49276
49277 * gencmdlist.sh: New file.
f19dbdb7 49278
7b1f4b57 49279 * genmk.rb (PModule::rule): Generate a rule for a command list.
49280 Clean command.lst.
49281 Generate command.lst from $(COMMANDFILES).
49282
49283 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
49284 (DATA): Added $(pkgdata_DATA).
49285 (install-local): Install files in $(pkgdata_DATA).
49286
062aaf39 492872005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49288
49289 * term/i386/pc/vga.c (debug_command): Removed.
49290 (GRUB_MOD_INIT): Do not register the command "debug".
49291
49292 From Hollis Blanchard:
49293 * commands/configfile.c: New file.
49294 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49295 commands/configfile.c.
49296 (pkgdata_MODULES): Added configfile.mod.
49297 (configfile_mod_SOURCES): New variable.
49298 (configfile_mod_CFLAGS): Likewise.
49299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49300 commands/configfile.c.
49301 (pkgdata_MODULES): Added configfile.mod.
49302 (configfile_mod_SOURCES): New variable.
49303 (configfile_mod_CFLAGS): Likewise.
49304 * util/grub-emu.c (main): Call grub_configfile_init and
49305 grub_configfile_fini.
49306 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
49307 prototype.
49308 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 49309
cee01aa6 493102005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49311
49312 * normal/arg.c (grub_arg_show_help): Do not show the bug report
49313 address.
49314
49315 * commands/help.c (grub_cmd_help): Do not print newlines after
49316 the last command in print_command_help.
49317
93f3a1d8 493182005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49319
49320 * commands/default.h: New file.
49321 * commands/timeout.h: Likewise.
49322 * normal/context.c: Likewise.
f19dbdb7 49323
93f3a1d8 49324 * util/misc.c: Do not include sys/times.h.
49325 Include sys/time.h and grub/machine/time.h.
49326 (grub_get_rtc): Rewritten with gettimeofday.
49327
49328 * util/grub-emu.c (main): Call grub_default_init and
49329 grub_timeout_init before grub_normal_init, and call
49330 grub_timeout_fini and grub_default_fini after grub_main.
49331
49332 * util/console.c (grub_ncurses_checkkey): Return the read
49333 character or -1.
49334
49335 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
49336 timeouts.
49337
49338 * normal/main.c (read_config_file): Push MENU. If this fails,
49339 print an error and wait for a user input.
49340 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
49341 If a menu is empty or an error occurs, pop MENU.
49342 (grub_normal_execute): Pop and free MENU after grub_menu_run
49343 returns.
49344
49345 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
49346
49347 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
49348 include time.h.
49349 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49350 without GRUB_UTIL.
49351 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
49352 time.h.
49353 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49354 without GRUB_UTIL.
49355
49356 * include/grub/normal.h (struct grub_menu_list): New struct.
49357 (grub_menu_list_t): New type.
49358 (struct grub_context): New struct.
49359 (grub_context_t): New type.
49360 (grub_register_command): Got rid of EXPORT_FUNC.
49361 (grub_unregister_command): Likewise.
49362 (grub_context_get): New prototype.
49363 (grub_context_get_current_menu): Likewise.
49364 (grub_context_push_menu): Likewise.
49365 (grub_context_pop_menu): Likewise.
49366 [GRUB_UTIL] (grub_default_init): Likewise.
49367 [GRUB_UTIL] (grub_default_fini): Likewise.
49368 [GRUB_UTIL] (grub_timeout_init): Likewise.
49369 [GRUB_UTIL] (grub_timeout_fini): Likewise.
49370
49371 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
49372 commands/timeout.c and normal/context.c.
49373 (pkgdata_MODULES): Added default.mod and timeout.mod.
49374 (normal_mod_SOURCES): Added normal/context.c.
49375 (default_mod_SOURCES): New variable.
49376 (default_mod_CFLAGS): Likewise.
49377 (timeout_mod_SOURCES): Likewise.
49378 (timeout_mod_CFLAGS): Likewise.
49379 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
49380 conf/i386-pc.rmk.
49381 (pkgdata_MODULES): Added default.mod and timeout.mod.
49382 (normal_mod_SOURCES): Added normal/context.c.
49383 (default_mod_SOURCES): New variable.
49384 (default_mod_CFLAGS): Likewise.
49385 (timeout_mod_SOURCES): Likewise.
49386 (timeout_mod_CFLAGS): Likewise.
49387
49388 * Makefile.in (all-local): Added $(MKFILES).
49389
4ed2e1dd 493902005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
49391
49392 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
49393 (grub_emu_SOURCES): Likewise.
49394 (pkgdata_MODULES): Add `sun.mod'.
49395 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49397 `partmap/sun.c'.
49398 (pkgdata_MODULES): Add `sun.mod'.
49399 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49400 * include/grub/partition.h (grub_sun_partition_map_init): New
49401 prototype.
49402 (grub_sun_partition_map_fini): Likewise.
49403 * partmap/sun.c: New file.
49404 * util/grub-emu.c (main): Initialize and de-initialize the sun
49405 partitionmap support.
49406
4d4e372e 494072005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
49408
49409 This implements an Emacs-like menu entry editor.
f19dbdb7 49410
4d4e372e 49411 * normal/menu_entry.c: New file.
f19dbdb7 49412
4d4e372e 49413 * util/console.c (grub_ncurses_putchar): Translate some Unicode
49414 characters to ASCII.
49415 (saved_char): New variable.
49416 (grub_ncurses_checkkey): Rewritten completely.
49417 (grub_ncurses_getkey): Likewise.
49418 (grub_ncurses_init): Call raw instead of cbreak.
49419
49420 * normal/menu.c (print_entry): Do not put a space.
49421 (init_page): Renamed to ...
49422 (grub_menu_init_page): ... this. All callers changed.
49423 (edit_menu_entry): Removed.
49424 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
49425
49426 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
49427
49428 * kern/misc.c (grub_vprintf): Call grub_refresh.
49429
49430 * normal/menu.c (DISP_LEFT): Renamed to ...
49431 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
49432 * normal/menu.c (DISP_UP): Renamed to ...
49433 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
49434 * normal/menu.c (DISP_RIGHT): Renamed to ...
49435 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
49436 * normal/menu.c (DISP_DOWN): Renamed to ...
49437 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
49438 * normal/menu.c (DISP_HLINE): Renamed to ...
49439 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
49440 * normal/menu.c (DISP_VLINE): Renamed to ...
49441 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
49442 * normal/menu.c (DISP_UL): Renamed to ...
49443 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
49444 * normal/menu.c (DISP_UR): Renamed to ...
49445 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
49446 * normal/menu.c (DISP_LL): Renamed to ...
49447 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
49448 * normal/menu.c (DISP_LR): Renamed to ...
49449 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
49450 * normal/menu.c (TERM_WIDTH): Renamed to ...
49451 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
49452 * normal/menu.c (TERM_HEIGHT): Renamed to ...
49453 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
49454 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
49455 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
49456 * normal/menu.c (TERM_MARGIN): Renamed to ...
49457 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
49458 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
49459 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
49460 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
49461 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
49462 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
49463 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
49464 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
49465 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
49466 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
49467 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
49468 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
49469 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
49470 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
49471 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
49472 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
49473 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
49474 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
49475 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
49476 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
49477 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
49478 All callers changed.
49479
49480 * include/grub/normal.h: New prototype.
49481
49482 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49483 normal/menu_entry.c.
49484 (normal_mod_SOURCES): Likewise.
49485 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49486 (normal_mod_SOURCES): Likewise.
49487
e6b92c8a 494882005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
49489
49490 * include/grub/normal.h (grub_halt_init): New prototype.
49491 (grub_halt_fini): Likewise.
49492 (grub_reboot_init): Likewise.
49493 (grub_reboot_fini): Likewise.
49494
49495 * util/grub-emu.c: Include signal.h.
49496 (main_env): New global variable.
49497 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
49498 catch C-c.
49499 (grub_machine_fini): New function.
49500 (main): Call grub_halt_init and grub_reboot_init before
49501 grub_main, and grub_reboot_fini and grub_halt_fini after it.
49502 Call setjmp with MAIN_ENV to go back afterwards.
49503 Call grub_machine_fini right before return.
49504
49505 * include/grub/util/misc.h: Include setjmp.h.
49506 (main_env): New prototype.
49507
49508 * include/grub/kernel.h (grub_machine_fini): New prototype.
49509 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
49510 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
49511
49512 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
49513 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
49514 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 49515
e6b92c8a 49516 * util/i386/pc/misc.c: New file.
f19dbdb7 49517
e6b92c8a 49518 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49519 util/i386/pc/misc.c, commands/i386/pc/halt.c and
49520 commands/i386/pc/reboot.c.
49521
c642636f 495222005-02-14 Guillem Jover <guillem@hadrons.org>
49523
49524 * include/grub/dl.h (grub_dl_check_header): New prototype.
49525 (grub_arch_dl_check_header): Change return type to grub_err_t,
49526 remove size parameter and export function. Update all callers.
49527 * kern/dl.c (grub_dl_check_header): New function.
49528 (grub_dl_load_core): Use `grub_dl_check_header' instead of
49529 `grub_arch_dl_check_header'. Check ELF type. Check if sections
49530 are inside the core.
49531 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
49532 independent ELF header checks.
49533 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
49534 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
49535 `grub_dl_check_header' instead of explicit checks. Check for the
49536 ELF type.
49537 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
49538 `grub_dl_check_header' instead of explicit checks. Remove arch
49539 specific ELF header checks.
49540
e6b92c8a 49541 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
49542 argument SIZE.
49543
5eabe94b 495442005-02-13 Hollis Blanchard <hollis@penguinppc.org>
49545
49546 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
49547 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
49548
1b14a681 495492005-02-12 Hollis Blanchard <hollis@penguinppc.org>
49550
49551 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 49552 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 49553 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 49554 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 49555 * partmap/amiga.c (amiga_partition_map_iterate): Return
49556 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
49557 * partmap/apple.c (apple_partition_map_iterate): Likewise.
49558
aca108aa 495592005-02-01 Guillem Jover <guillem@hadrons.org>
49560
49561 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
49562 help info.
49563
c9f9c556 495642005-01-31 Marco Gerards <metgerards@student.han.nl>
49565
49566 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
49567 Removed prototype.
49568 (grub_rescue_cmd_linux): New prototype.
49569 (grub_rescue_cmd_initrd): Likewise.
49570 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
49571 `bi_rec'.
49572 (grub_linux_release_mem): Release the memory for the initrd.
49573 (grub_load_linux): Renamed from this...
49574 (grub_rescue_cmd_linux): ...To this. Changed all callers.
49575 Changed `entry' not to be static. Loop over memory regions to
49576 find another one when the default fails.
49577 (grub_rescue_cmd_initrd): New function.
49578 (grub_linux_init): Remove function.
49579 (grub_linux_fini): Likewise.
49580 (GRUB_MOD_INIT): Register `initrd'.
49581 (GRUB_MOD_FINI): Unregister `initrd'.
49582 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
49583 Function removed.
49584 (grub_linux_normal_fini): Likewise.
49585 (GRUB_MOD_INIT): Register `initrd'.
49586 (GRUB_MOD_FINI): Unregister `initrd'.
49587
990cf3aa 495882005-01-31 Marco Gerards <metgerards@student.han.nl>
49589
49590 * commands/help.c: New file.
49591 * normal/arg.c (show_help): Renamed to...
49592 (grub_arg_show_help): ... this.
49593 * commands/i386/pc/halt.c: New file.
49594 * commands/i386/pc/reboot.c: Likewise.
49595 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
49596 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
49597 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
49598 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
49599 variables.
49600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49601 `commands/help.c'.
49602 (pkgdata_MODULES): Add `help.mod'.
49603 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
49604 * grub/i386/pc/init.h (grub_reboot): New prototype.
49605 (grub_halt): Likewise.
49606 * include/grub/normal.h (grub_arg_show_help): New prototype.
49607 (grub_help_init): Likewise.
49608 (grub_help_fini): Likewise.
49609 * util/grub-emu.c (main): Initialize and deinitialize the help
49610 command.
49611
49612 * normal/cmdline.c (grub_cmdline_get): Doc fix.
49613
49614 * normal/command.c (grub_command_init): Fixed the description of
49615 the `set' and `unset' commands.
49616
496172005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 49618
49619 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
49620 function.
49621 * commands/ieee1275/halt.c: New file.
49622 * commands/ieee1275/reboot.c: Likewise.
49623 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
49624 `__attribute__ ((unused))'. Some GCS related fixed.
49625 (grub_suspend_init) [GRUB_UTIL]: Function removed.
49626 (grub_suspend_fini): Likewise.
49627 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
49628 and `halt.mod'.
49629 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
49630 (halt_mod_CFLAGS): New variables.
49631 * include/grub/powerpc/ieee1275/ieee1275.h
49632 (grub_ieee1275_interpret): New prototype.
49633
1ab09cc7 496342005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
49635
49636 * include/grub/misc.h (memmove): New prototype.
49637 (memcpy): Likewise.
49638
8b8cbdb2 496392005-01-22 Hollis Blanchard <hollis@penguinppc.org>
49640
49641 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
49642 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
49643
e3741a27 496442005-01-22 Marco Gerards <metgerards@student.han.nl>
49645
49646 * kern/misc.c (grub_strndup): Function rewritten.
49647
776bd780 496482005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
49649
49650 * normal/menu.c (TERM_WIDTH): Macro redefined.
49651 (TERM_TOP_BORDER_Y): Likewise.
49652 (draw_border): Replaced while-loop by a for-loop. Make the number
49653 of lines consistent with the number of lines displayed in
49654 print_entries. Added a margin below the rectangle.
49655 (print_entry): Make the entry fit in the rectangle.
49656 (print_entries): Display the scroll arrows next to the right
49657 border.
49658
78026bce 496592005-01-21 Marco Gerards <metgerards@student.han.nl>
49660
49661 * fs/minix.c (grub_minix_find_file): Reserve more space for
49662 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
49663 `grub_strncpy' to copy `path' into it.
49664
67bbaf0f 496652005-01-21 Marco Gerards <metgerards@student.han.nl>
49666
49667 Add the loopback device, a device via which files can be accessed
49668 as devices.
f19dbdb7 49669
67bbaf0f 49670 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
49671 (pkgdata_MODULES): Add loopback.mod.
49672 (loopback_mod_SOURCES): New variable.
49673 (loopback_mod_CFLAGS): Likewise.
49674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49675 `disk/loopback.c'.
49676 (pkgdata_MODULES): Add loopback.mod.
49677 (loopback_mod_SOURCES): New variable.
49678 (loopback_mod_CFLAGS): Likewise.
49679 * disk/loopback.c: new file.
49680 * include/grub/normal.h (grub_loop_init): New prototype.
49681 (grub_loop_fini): New prototype.
49682 * util/grub-emu.c (main): Initialize and de-initialize loopback
49683 support.
49684 * include/grub/disk.h (grub_disk_dev_id): Add
49685 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
49686
6f1c18bd 496872005-01-20 Hollis Blanchard <hollis@penguinppc.org>
49688
49689 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
49690 function.
49691 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
49692 (suspend_mod_SOURCES): New variable.
49693 (suspend_mod_CFLAGS): Likewise.
49694 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
49695 New prototype.
49696 * commands/ieee1275/suspend.c: New file.
49697
b38551da 496982005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49699
49700 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 49701 ((unused))' to `__attribute__ ((used))'.
b38551da 49702 (GRUB_MOD_FINI): Likewise.
49703 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
49704 * genmk.rb (PModule): Assign space to common symbols when linking
49705 modules.
49706
777aff39 497072005-01-20 Marco Gerards <metgerards@student.han.nl>
49708
49709 * include/grub/mm.h (grub_mm_init_region): Change the type of the
49710 `unsigned' arguments to `grub_size_t'.
49711 (grub_malloc): Likewise.
49712 (grub_realloc): Likewise.
49713 (grub_memalign): Likewise.
49714 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
49715 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
49716 * util/misc.c (grub_malloc): Likewise.
49717 (grub_realloc): Likewise.
49718 * kern/mm.c (get_header_from_pointer): Change the casts to
49719 `unsigned' into a cast to `grub_size_t'.
49720
49721 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
49722 point to `currnode' when `currnode' is changed.
49723
49724 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
49725 Schottelius <nico-linux@schottelius.org>.
49726
d0ff18e1 497272005-01-09 Hollis Blanchard <hollis@penguinppc.org>
49728
49729 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
49730 (note_path): Remove variable.
49731 (GRUB_IEEE1275_NOTE_NAME): New macro.
49732 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
49733 (grub_ieee1275_note_hdr): New structure.
49734 (grub_ieee1275_note_desc): Likewise.
49735 (grub_ieee1275_note): Likewise.
49736 (load_note): Remove `dir' argument. All callers updated. Remove
49737 `note_img' and `path'. Do not load a file from `note_path'.
49738 Initialize a struct grub_ieee1275_note and write that to `out'.
49739 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
49740
4ca7004c 497412005-01-05 Marco Gerards <metgerards@student.han.nl>
49742
49743 * util/misc.c (grub_util_read_image): Revert last change. It
49744 called `grub_util_read_at', which seeks from the beginning of the
49745 file.
49746
0b412211 497472005-01-04 Hollis Blanchard <hollis@penguinppc.org>
49748
49749 * TODO: Add note about endianness in grub-mkimage.
49750 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
49751 section.
49752 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
49753 (grub_mkimage_SOURCES): New target.
49754 * include/grub/kernel.h (grub_start_addr): Remove variable.
49755 (grub_end_addr): Likewise.
49756 (grub_total_module_size): Likewise.
49757 (grub_kernel_image_size): Likewise.
49758 (GRUB_MODULE_MAGIC): New constant.
49759 (grub_module_info): New structure.
49760 (grub_arch_modules_addr): New prototype.
49761 (grub_get_end_addr): Remove prototype.
49762 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
49763 * include/grub/powerpc/ieee1275/kernel.h: New file.
49764 * include/grub/util/misc.h (grub_util_get_fp_size): New
49765 prototype.
49766 (grub_util_read_at): Likewise.
49767 (grub_util_write_image_at): Likewise.
49768 * kern/main.c (grub_get_end_addr): Remove function.
49769 (grub_load_modules): Call grub_arch_modules_addr instead of using
49770 grub_end_addr. Look for a grub_module_info struct in memory. Use
49771 the grub_module_info fields instead of calling grub_get_end_addr
49772 as loop conditions. Move grub_add_unused_region code here.
49773 (grub_add_unused_region): Remove function.
49774 * kern/i386/pc/init.c: Include grub/cache.h.
49775 (grub_machine_init): Remove call to grub_get_end_addr. Remove
49776 one call to add_mem_region.
49777 (grub_arch_modules_addr): New function.
49778 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
49779 (grub_total_module_size): Likewise.
49780 Include grub/machine/kernel.h.
49781 (grub_arch_modules_addr): New function.
49782 * util/grub-emu.c (grub_end_addr): Remove variable.
49783 (grub_total_module_size): Likewise.
49784 (grub_arch_modules_addr): New function.
49785 * util/misc.c: Include unistd.h.
49786 (grub_util_get_fp_size): New function.
49787 (grub_util_read_at): Likewise.
49788 (grub_util_write_image_at): Likewise.
49789 (grub_util_read_image): Call grub_util_read_at.
49790 (grub_util_write_image): Call grub_util_write_image_at.
49791 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
49792 additional memory in kernel_img for a struct grub_module_info.
49793 Fill in that grub_module_info.
49794 * util/powerpc/ieee1275/grub-mkimage.c: New file.
49795
458786f8 497962005-01-03 Hollis Blanchard <hollis@penguinppc.org>
49797
49798 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
49799 New function.
49800 * include/grub/powerpc/ieee1275/ieee1275.h
49801 (grub_ieee1275_milliseconds): New prototype.
49802 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
49803 Change to 1000.
49804 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
49805 grub_ieee1275_milliseconds.
49806
ac507d1b 498072005-01-03 Hollis Blanchard <hollis@penguinppc.org>
49808
49809 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
49810 variable.
49811 (find_options): New function.
49812 (cmain): Call find_options.
49813 * include/grub/powerpc/ieee1275/ieee1275.h
49814 (grub_ieee1275_realmode): New extern variable.
49815 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
49816 grub_map if grub_ieee1275_realmode is false.
49817
6b8fd1c4 498182004-12-29 Marco Gerards <metgerards@student.han.nl>
49819
49820 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
49821 lines are inserted and make it work like readline. Reported by
49822 Vincent Pelletier <subdino2004@yahoo.fr>.
49823
8514a1e0 498242004-12-28 Marco Gerards <metgerards@student.han.nl>
49825
49826 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
49827
49828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
49829 `kern/powerpc/cache.S'.
49830
924b6140 498312004-12-27 Marco Gerards <metgerards@student.han.nl>
49832
49833 * genmk.rb: Handle the `Program' class in the main loop. Written
49834 by Johan Rydberg <jrydberg@gnu.org>.
49835 (Program): New class.
49836 (programs): New variable.
49837 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
49838 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
49839 instead of "grub/kernel.h". Include <grub/machine/init.h>.
49840 (help_arch): Function removed.
49841 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
49842 `powerpc/libgcc.h' and `loader.h'.
49843 (pkgdata_PROGRAMS): New variable.
49844 (sbin_UTILITIES): Variable removed.
49845 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
49846 (grubof_SOURCES): Variable re-defined so it only includes the
49847 core functionality.
49848 (grubof_CFLAGS): Remove `-DGRUBOF'.
49849 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
49850 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
49851 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
49852 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
49853 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
49854 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
49855 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
49856 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
49857 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
49858 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
49859 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
49860 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
49861 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
49862 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
49863 (pc_mod_CFLAGS): New variables.
49864 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
49865 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
49866 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
49867 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
49868 Moved from here...
49869 * include/grub/i386/pc/init.h (grub_os_area_addr)
49870 (rub_os_area_size): ... to here.
49871 * include/grub/powerpc/ieee1275/ieee1275.h
49872 (grub_ieee1275_entry_fn): Export symbol.
49873 * include/grub/powerpc/ieee1275/init.h: New file.
49874 * include/grub/powerpc/libgcc.h: Likewise.
49875 * include/grub/cache.h: Likewise.
49876 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
49877 <hollis@penguinppc.org>.
49878 * kern/dl.c: Include <grub/cache.h>.
49879 (grub_dl_flush_cache): New function.
49880 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
49881 for this module.
49882 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
49883 (grub_console_init): Removed prototypes.
49884 (grub_machine_init): Don't initialize the modules anymore.
49885 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
49886 static.
49887 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
49888 Macro undef removed.
49889 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
49890 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
49891 relocation `R_PPC_REL32'. Return an error when the relocation is
49892 unknown.
49893 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
49894 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
49895 * util/misc.c (grub_arch_sync_caches): Likewise.
49896
e4b47e0c 498972004-12-19 Marco Gerards <metgerards@student.han.nl>
49898
49899 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
49900 `symlist.c', add `grubof_symlist.c'.
49901 (symlist.c): Variable removed.
49902 (grubof_HEADERS): Variable added.
49903 (grubof_symlist.c): New target.
49904 (kernel_syms.lst): Use `grubof_HEADERS' instead of
49905 `kernel_img_HEADERS'.
49906 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
49907 * kern/powerpc/dl.c: New file.
49908 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
49909 Function removed.
49910 (grub_arch_dl_relocate_symbols): Likewise.
49911 (grub_register_exported_symbols): Likewise.
49912
4ceb3636 499132004-12-13 Marco Gerards <metgerards@student.han.nl>
49914
49915 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
49916 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
49917 to fail instead. Reported by Vincent Pelletier
49918 <subdino2004@yahoo.fr>.
49919
49920 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
49921 it is not allocated. Reported by Vincent Pelletier
49922 <subdino2004@yahoo.fr>.
49923
49924 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
49925 output so the output looks better.
f19dbdb7 49926
3f1578fe 499272004-12-04 Marco Gerards <metgerards@student.han.nl>
49928
49929 Modulize the partition map support and add support for the amiga
49930 partition map.
f19dbdb7 49931
3f1578fe 49932 * commands/ls.c: Include <grub/partition.h> instead of
49933 <grub/machine/partition.h>.
49934 * kern/disk.c: Likewise.
49935 * kern/rescue.c: Likewise.
49936 * loader/i386/pc/chainloader.c: Likewise.
49937 * normal/cmdline.c: Likewise.
49938 * kern/powerpc/ieee1275/init.c: Likewise.
49939 (grub_machine_init): Call `grub_pc_partition_map_init',
49940 `grub_amiga_partition_map_init' and
49941 `grub_apple_partition_map_init'.
49942 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
49943 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
49944 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
49945 `partition.h' and `pc_partition.h'.
49946 (grub_setup_SOURCES): Remove
49947 `disk/i386/pc/partition.c'. Add `kern/partition.c',
49948 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
49949 (grub_emu_SOURCES): Likewise.
49950 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
49951 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
49952 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
49953 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
49954 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
49955 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
49956 (grubof_SOURCES): Likewise.
49957 * disk/i386/pc/partition.c: File removed.
49958 * disk/powerpc/ieee1275/partition.c: Likewise.
49959 * include/grub/powerpc/ieee1275/partition.h: Likewise.
49960 * include/grub/i386/pc/partition.h: Likewise.
49961 * kern/partition.c: New file.
49962 * partmap/amiga.c: Likewise.
49963 * partmap/apple.c: Likewise.
49964 * partmap/pc.c: Likewise.
49965 * include/grub/partition.h: Likewise..
49966 * include/grub/pc_partition.h: Likewise.
49967 * util/grub-emu.c: Include <grub/partition.h> instead of
49968 <grub/machine/partition.h>.
49969 (main): Call `grub_pc_partition_map_init',
49970 `grub_amiga_partition_map_init' and
49971 `grub_apple_partition_map_init' and deinitialize afterwards.
49972 * util/i386/pc/biosdisk.c: Include `#include
49973 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
49974 `<grub/machine/partition.h>'.
49975 * util/i386/pc/grub-setup.c: Likewise.
49976 * util/i386/pc/biosdisk.c: Likewise.
49977 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
49978 partition information in case of a PC partition.
49979 * util/i386/pc/grub-setup.c: Include `#include
49980 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
49981 `<grub/machine/partition.h>'.
49982 (setup): Only access the PC specific partition information in case
49983 of a PC partition.
49984
0ef4ced9 499852004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 49986
0ef4ced9 49987 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
49988 (grub_longjmp): Likewise.
49989 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
49990 20.
49991 * normal/powerpc/setjmp.S: New file.
49992 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
49993 `normal/powerpc/setjmp.S'.
49994 (grubof_CFLAGS): Add `-DGRUBOF'.
49995 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
49996 [GRUB_UTIL && !GRUBOF].
f19dbdb7 49997
19950e29 499982004-11-16 Marco Gerards <metgerards@student.han.nl>
49999
50000 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
50001 property named `name'. Correctly handle the error returned by
50002 `grub_ieee1275_finddevice' if a device can not be opened.
50003
a2fea427 500042004-11-02 Hollis Blanchard <hollis@penguinppc.org>
50005
50006 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
50007 `actual' for negativity.
50008 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50009 kern/fshelp.c.
50010
41ea0ea3 500112004-11-01 Marco Gerards <metgerards@student.han.nl>
50012
50013 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
50014 (PAGE_OFFSET): New macro.
50015 (CRTC_ADDR_PORT): Likewise.
50016 (CRTC_DATA_PORT): Likewise.
50017 (START_ADDR_HIGH_REGISTER): Likewise.
50018 (START_ADDR_LOW_REGISTER): Likewise.
50019 (GRAPHICS_ADDR_PORT): Likewise.
50020 (GRAPHICS_DATA_PORT): Likewise.
50021 (READ_MAP_REGISTER): Likewise.
50022 (INPUT_STATUS1_REGISTER): Likewise.
50023 (INPUT_STATUS1_VERTR_BIT): Likewise.
50024 (page): New variable.
50025 (wait_vretrace): New function.
50026 (set_read_map): Likewise.
50027 (set_start_address): Likewise.
50028 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
50029 the right page.
50030 (check_vga_mem): Take the page into account.
50031 (write_char): Likewise.
50032 (write_cursor): Likewise.
50033 (scroll_up): Likewise. Copy the page to the page that is not
50034 shown and switch between both pages.
50035 (grub_vga_putchar): Fix off by one error.
50036 (grub_vga_cls): Wait for the vertical retrace. Take the page into
50037 account.
50038
ad0bd20b 500392004-11-01 Marco Gerards <metgerards@student.han.nl>
50040
50041 Add support for iso9660 (including rockridge).
f19dbdb7 50042
ad0bd20b 50043 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50044 (iso9660_mod_SOURCES): New variable.
50045 (iso9660_mod_CFLAGS): Likewise.
50046 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50047 * include/grub/fs.h (grub_iso9660_init): New prototype.
50048 * util/grub-emu.c (main): Call `grub_iso9660_init'.
50049 * fs/iso9660.c: New file.
50050
50051 * include/grub/misc.h (grub_strncat): New prototype.
50052 * kern/misc.c (grub_strncat): New function.
f19dbdb7 50053
ad0bd20b 50054 * fs/hfs.c (grub_hfs_mount): Translate the error
50055 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
50056 * fs/jfs.c (grub_jfs_mount): Likewise.
50057 * fs/ufs.c (grub_ufs_mount): Likewise.
50058
a5477a59 500592004-10-28 Hollis Blanchard <hollis@penguinppc.org>
50060
50061 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
50062 which initialized BAT registers.
50063 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
50064 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50065 Move from here...
50066 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
50067 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50068 ... to here.
50069 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
50070 (grub_mapclaim): Likewise.
50071 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
50072 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
50073 hand.
50074
9304c1f8 500752004-10-19 Hollis Blanchard <hollis@penguinppc.org>
50076
50077 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
50078 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
50079 -ffreestanding and -msoft-float.
50080
86f4ae25 500812004-10-15 Hollis Blanchard <hollis@penguinppc.org>
50082
50083 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
50084 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
50085 set in grub_ieee1275_flags.
50086
38912228 500872004-10-14 Hollis Blanchard <hollis@penguinppc.org>
50088
50089 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
50090 prototype.
50091 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
50092 grub_console_init first.
50093 Change the memory range used for grub_ieee1275_claim and
50094 grub_mm_init_region.
50095 Print an error message if the claim fails.
50096 Include <grub/misc.h>.
50097
d1923dc8 500982004-10-13 Hollis Blanchard <hollis@penguinppc.org>
50099
50100 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
50101 Call grub_children_iterate for device nodes of type `scsi',
50102 `ide', or `ata'.
50103 (grub_ofdisk_open): Remove manual device alias resolution.
50104 Fix memory leak when device cannot be opened.
f19dbdb7 50105 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 50106 (grub_children_iterate): New prototype.
50107 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
50108 New function.
50109 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50110 Return -1 if args.size was -1.
50111
4512e4f3 501122004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50113
50114 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
50115 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
50116 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
50117 Open Firmware's memory for it; claim memory from _start to _end.
50118 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
50119 (_end): New extern.
50120 (_start): Zero BSS from __bss_start to _end.
50121 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
50122 New extern.
50123 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
50124
4d61feb0 501252004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50126
ad0bd20b 50127 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
50128 -1 if args.base was -1.
4d61feb0 50129
026fa2f9 501302004-10-08 Hollis Blanchard <hollis@penguinppc.org>
50131
50132 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
50133 escape sequence instead of a literal ^L. Also call
50134 grub_ofconsole_gotoxy.
50135
9f2220ef 501362004-10-03 Hollis Blanchard <hollis@penguinppc.org>
50137
50138 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
50139 void * arguments to grub_addr_t. All callers updated. Also make
50140 the `result' argument optional.
50141 (grub_ieee1275_release): change void * arguments to grub_addr_t.
50142 All callers updated.
50143
8a572cd7 501442004-09-22 Hollis Blanchard <hollis@penguinppc.org>
50145
50146 * commands/ls.c (grub_ls_list_files): Use the string following the
50147 initial ')', if present, as the filesystem path.
50148 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
50149
50150 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
50151
18aa81f2 501522004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
50153
50154 Make the source code of the menu interface more readable.
f19dbdb7 50155
18aa81f2 50156 * normal/menu.c: Include grub/mm.h.
50157 (TERM_WIDTH): New macro.
50158 (TERM_HEIGHT): Likewise.
50159 (TERM_INFO_HEIGHT): Likewise.
50160 (TERM_MARGIN): Likewise.
50161 (TERM_SCROLL_WIDTH): Likewise.
50162 (TERM_TOP_BORDER_Y): Likewise.
50163 (TERM_LEFT_BORDER_X): Likewise.
50164 (TERM_BORDER_WIDTH): Likewise.
50165 (TERM_MESSAGE_HEIGHT): Likewise.
50166 (TERM_BORDER_HEIGHT): Likewise.
50167 (TERM_NUM_ENTRIES): Likewise.
50168 (TERM_FIRST_ENTRY_Y): Likewise.
50169 (TERM_ENTRY_WIDTH): Likewise.
50170 (TERM_CURSOR_X): Likewise.
50171 (draw_border): Use macros instead of magic numbers.
50172 (print_entry): Likewise.
50173 (print_entries): Likewise.
50174 (run_menu): Likewise. Also, handle the key 'e'.
50175 (run_menu_entry): Ignore empty command lines.
50176 (print_message): Added a new argument EDIT. If EDIT is true,
50177 print a different message.
50178 (init_page): Likewise.
50179 (edit_menu_entry): New function. Not implemented yet.
50180
b47efe30 501812004-09-17 Marco Gerards <metgerards@student.han.nl>
50182
50183 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
50184 can be loaded from normal mode.
f19dbdb7 50185
b47efe30 50186 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
50187 `multiboot.mod'.
50188 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
50189 (multiboot_mod_CFLAGS): New variables.
50190 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 50191 * loader/i386/pc/multiboot_normal.c: Likewise.
50192
b47efe30 50193 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
50194 attribute `unused'.
f19dbdb7 50195
b47efe30 50196 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
50197 `fdiro' to read the mode information from instead of `diro'.
50198
50199 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
50200 looking up a symlink.
50201
50202 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
50203 macro.
50204 * normal/command.c (grub_command_execute): Don't parse the
50205 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
50206 flags of the command.
50207
50208 * normal/menu.c (grub_menu_run): Fix typo.
50209
da75ac71 502102004-09-14 Hollis Blanchard <hollis@penguinppc.org>
50211
50212 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
50213
50214 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
50215 `y + 1' instead of `y - 1'.
50216
50217 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 50218
062b24c2 502192004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
50220
50221 From Hollis Blanchard <hollis@penguinppc.org>:
50222 * kern/misc.c (memmove): New alias for grub_memmove.
50223 (memcmp): New alias for grub_memcmp.
50224 (memset): New alias for grub_memset.
f19dbdb7 50225 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 50226 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 50227 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 50228 (grub_ieee1275_get_property): Likewise.
f19dbdb7 50229
8ddad845 502302004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
50231
50232 Added normal mode command `chainloader' as module chain.mod, which
50233 depends on normal.mod and _chain.mod.
f19dbdb7 50234
8ddad845 50235 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
50236 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
50237 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
50238 Deleted prototype.
50239 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
50240 but arguments parsing moved to ...
50241 (grub_chainloader_cmd): ... here. New function.
50242 * include/grub/i386/pc/chainloader.h: New file.
50243 * loader/i386/pc/chainloader_normal.c: Likewise.
50244
2c1f4ce3 502452004-09-11 Marco Gerards <metgerards@student.han.nl>
50246
50247 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
50248 (grub_mkimage_LDFLAGS): Likewise.
50249 (grub_emu_SOURCES): Likewise.
50250 (kernel_img_HEADERS): Added fshelp.h.
50251 * fs/ext2.c: Include <grub/fshelp.h>.
50252 (FILETYPE_REG): New macro.
50253 (FILETYPE_INO_REG): Likewise.
50254 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
50255 Changed all users.
50256 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
50257 all users.
50258 (grub_fshelp_node): New struct.
50259 (grub_ext2_data): Added member `diropen'. Changed member `inode'
50260 to a pointer.
50261 (grub_ext2_get_file_block): Removed function.
50262 (grub_ext2_read_block): New function.
50263 (grub_ext2_read_file): Replaced parameter `data' by `node'.
50264 This function was written.
50265 (grub_ext2_mount): Read the root inode. Create a diropen struct.
50266 (grub_ext2_find_file): Removed function.
50267 (grub_ext2_read_symlink): New function.
50268 (grub_ext2_iterate_dir): Likewise.
50269 (grub_ext2_open): Rewritten.
50270 (grub_ext2_dir): Rewritten.
50271 * include/grub/fshelp.h: New file.
50272 * fs/fshelp.c: Likewise.
50273
3c52136a 502742004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
50275
50276 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
50277 (print_message): Add a missing newline.
50278 (run_menu): Added timeout support.
50279 (run_menu_entry): New local function.
50280 (grub_menu_run): Added support for booting.
50281
50282 * kern/loader.c (grub_loader_is_loaded): New function.
50283
50284 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
50285 (grub_get_rtc): Exported.
50286
50287 * include/grub/i386/pc/time.h: Include grub/symbol.h.
50288 (grub_get_rtc): Exported.
50289
50290 * include/grub/normal.h (struct grub_command_list): Remove
50291 constant from the member `command'.
50292
50293 * include/grub/loader.h (grub_loader_is_loaded): Declared.
50294
50295 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
50296
50297 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
50298
aa033560 502992004-08-28 Marco Gerards <metgerards@student.han.nl>
50300
50301 Add support for the JFS filesystem.
50302
50303 * fs/jfs.c: New file.
50304 * include/grub/fs.h (grub_jfs_init): New prototype.
50305 (grub_jfs_fini): New prototype.
50306 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
50307 (grub_emu_SOURCES): Likewise.
50308 (pkgdata_MODULES): Add jfs.mod.
50309 (jfs_mod_SOURCES): New variable.
50310 (jfs_mod_CFLAGS): Likewise.
50311 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
50312 (grubof_SOURCES): Likewise.
50313 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
50314
50315 * fs/fat.c (grub_fat_find_dir): Convert the filename little
50316 endian to the host endian.
50317 (grub_fat_utf16_to_utf8): Move function from there...
50318 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 50319 the endianness of the source string anymore.
aa033560 50320 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
50321
94bc45af 503222004-08-24 Marco Gerards <metgerards@student.han.nl>
50323
50324 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
50325 (grub_boot_fini) [GRUB_UTIL]: Likewise.
50326 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
50327 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 50328
94bc45af 50329 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
50330 (grub_hfs_iterate_dir): Make the function static. Add prototypes
50331 for `node_found' and `it_dir'.
50332 (grub_hfs_dir): Add prototype for `dir_hook'.
50333
50334 * fs/minix.c (grub_minix_get_file_block): Add prototype for
50335 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
50336 and `indir32' to silence a gcc warning.
50337
50338 * include/grub/fs.h (grub_hfs_init): New prototype.
50339 (grub_hfs_fini): Likewise.
f19dbdb7 50340
50341
97543f08 503422004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
50343
50344 Each disk device has its own id now. This is useful to make use
50345 of multiple disk devices.
f19dbdb7 50346
97543f08 50347 * include/grub/disk.h (grub_disk_dev_id): New enum.
50348 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
50349 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
50350
50351 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
50352 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50353
50354 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
50355 GRUB_DISK_DEVICE_OFDISK_ID as an id.
50356
50357 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
50358 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50359
50360 * include/grub/disk.h (struct grub_disk_dev): Added a new member
50361 "id" which is used by the cache manager.
50362
50363 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
50364 of just "GRUB".
50365
64372eb4 503662004-08-18 Marco Gerards <metgerards@student.han.nl>
50367
50368 * fs/hfs.c: New file.
50369 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
50370 (grub_emu_SOURCES): Likewise.
50371 (pkgdata_MODULES): Add hfs.mod.
50372 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
50373 (grubof_SOURCES): Likewise.
50374 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
50375
50376 * include/grub/misc.h (grub_strncasecmp): Add prototype.
50377 * kern/misc.c (grub_strncasecmp): Add function.
50378
cc61b58f 503792004-08-14 Marco Gerards <metgerards@student.han.nl>
50380
50381 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
50382 with parentheses.
50383
50384 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
50385 (grub_ext2_dir): In case the directory entry type is unknown, read
50386 it from the inode.
50387
0ef123f6 503882004-08-02 Peter Bruin <pjbruin@dds.nl>
50389
50390 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
50391 grub_load_linux instead of grub_rescue_cmd_linux as second
50392 argument of grub_rescue_register_command.
50393
50394 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
50395
a447c5df 503962004-07-27 Marco Gerards <metgerards@student.han.nl>
50397
50398 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
50399 function.
50400 * commands/boot.c: Remove the check for `GRUB_UTIL'.
50401 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50402 `loader/powerpc/ieee1275/linux.c',
50403 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
50404 * include/grub/powerpc/ieee1275/ieee1275.h
50405 (grub_ieee1275_release): New prototype.
50406 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
50407 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
50408 normal, boot, linux and linux_normal.
50409 * loader/powerpc/ieee1275/linux.c: New file.
50410 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
50411
5a9e3546 504122004-07-12 Marco Gerards <metgerards@student.han.nl>
50413
50414 * normal/arg.c (grub_arg_parse): Correct error handling after
50415 reallocating the argumentlist (check if `argl' is not null instead
50416 of checking if `args' is not null).
50417 * kern/mm.c (grub_realloc): Return the same pointer when using the
50418 same region, instead of returning the header address.
50419
e15199cb 504202004-07-11 Marco Gerards <metgerards@student.han.nl>
50421
50422 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
50423 one block instead of two when looking for the initial partition.
50424 (grub_partition_probe): Initialize the local variable `p' with 0.
50425 Use base 10 for the grub_strtoul call.
50426 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
50427 need for one local variable.
50428 (grub_strtoul): Don't add the new value to `num', instead of that
50429 just assign it.
50430
020616c2 504312004-07-11 Marco Gerards <metgerards@student.han.nl>
50432
50433 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
50434 (pxeboot_img_SOURCES): New variable.
50435 (pxeboot_img_ASFLAGS): Likewise.
50436 (pxeboot_img_LDFLAGS): Likewise.
50437 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
50438 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
50439 <lode_leroy@hotmail.com>.
50440
6c51eb64 504412004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50442
50443 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
50444 there was no input.
50445
cfb12aff 504462004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50447
50448 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
50449 the history buffer logic.
50450
6eabba74 504512004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50452
50453 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
50454 (FILETYPE_INO_SYMLINK): New macros.
50455 (grub_ext2_find_file): Check if the node is a directory using the
50456 inode stat information instead of using the filetype in the
50457 dirent. Exclude the first character of an absolute symlink.
50458 (grub_ext2_dir): Mask out the filetype part of the mode member of
50459 the inode.
50460
66e19ef8 504612004-05-24 Marco Gerards <metgerards@student.han.nl>
50462
50463 Add support for UFS version 1 and 2. Add support for the minix
50464 filesystem version 1 and 2, both the variants with 14 and 30 long
50465 filenames.
f19dbdb7 50466
66e19ef8 50467 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
50468 fs/minix.c.
50469 (grub_emu_SOURCES): Likewise.
50470 (pkgdata_MODULES): Add ufs.mod and minix.mod.
50471 (ufs_mod_SOURCES): New variable.
50472 (ufs_mod_CFLAGS): Likewise.
50473 (minix_mod_SOURCES): Likewise.
50474 (minix_mod_CFLAGS): Likewise.
50475 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
50476 fs/minix.c.
50477 (grubof_SOURCES): Likewise.
50478 * fs/ufs.c: New file.
50479 * fs/minix.c: New file.
50480 * include/grub/fs.h (grub_ufs_init): New prototype.
50481 (grub_ufs_fini): Likewise.
50482 (grub_minix_init): Likewise.
50483 (grub_minix_fini): Likewise.
50484 * util/grub-emu.c (main): Initialize and deinitialize UFS and
50485 minix fs.
50486
cc2e748a 504872004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
50488
50489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
50490 commands/ls.c, commands/terminal.c, commands/boot.c,
50491 commands/cmp.c and commands/cat.c.
50492 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
50493
50494 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
50495 "env.h"
50496
4b13b216 504972004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50498
50499 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
50500 and grub_, respectively. Because the conversion is trivial and
50501 mechanical, I omit the details here. Please refer to the CVS
50502 if you need more information.
50503
6a142551 505042004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50505
50506 * include/pupa: Renamed to ...
50507 * include/grub: ... this.
50508 * util/i386/pc/pupa-mkimage.c: Renamed to ...
50509 * util/i386/pc/grub-mkimage.c: ... this.
50510 * util/i386/pc/pupa-setup.c: Renamed to ...
50511 * util/i386/pc/grub-setup.c: ... this.
50512 * util/pupa-emu.c: Renamed to ...
50513 * util/grub-emu.c: ... this.
50514
e56cdf21 505152004-03-29 Marco Gerards <metgerards@student.han.nl>
50516
50517 Add support for the newworld apple macintosh (PPC). This has been
50518 tested on the powerbook 2000 only. It only adds support for
50519 generic ieee1275 functions, console and disk support. This should
50520 be easy to port to other architectures with support for Open
50521 Firmware.
f19dbdb7 50522
e56cdf21 50523 * configure.ac: Accept the powerpc as host_cpu. In the case of
50524 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
50525 specific tests are only executed while building for the i386.
50526 Inverse test for crosscompile.
50527 * genmk.rb (Utility): Allow assembler files.
50528 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
50529 * conf/powerpc-ieee1275.rmk: New file.
50530 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
50531 * disk/powerpc/ieee1275/partition.c: Likewise.
50532 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
50533 * include/pupa/powerpc/ieee1275/console.h: Likewise.
50534 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
50535 * include/pupa/powerpc/ieee1275/time.h: Likewise.
50536 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
50537 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
50538 * include/pupa/powerpc/ieee1275/loader.h
50539 * include/pupa/powerpc/setjmp.h: Likewise.
50540 * include/pupa/powerpc/types.h: Likewise.
50541 * kern/powerpc/ieee1275/init.c: Likewise.
50542 * kern/powerpc/ieee1275/openfw.c: Likewise.
50543 * term/powerpc/ieee1275/ofconsole.c: Likewise.
50544
50545 These files were written by Johan Rydberg
50546 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 50547
e56cdf21 50548 * boot/powerpc/ieee1275/cmain.c: New file.
50549 * boot/powerpc/ieee1275/crt0.S: Likewise.
50550 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
50551 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
50552
8c8cc205 505532004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
50554
50555 * Makefile.in: Update copyright.
50556 * genmodsrc.sh: Likewise.
50557 * gensymlist.sh: Likewise.
50558 * term/i386/pc/vga.c: Indent correctly.
50559
50560 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
50561 bugreporting address.
50562 * util/i386/pc/pupa-setup.c (usage): Likewise,
50563 (main): Call pupa_ext2_init and pupa_ext2_fini.
50564
f19dbdb7 50565 * fs/fat.c (log2): Renamed to ...
8c8cc205 50566 (fat_log2): ... this.
50567 All callers changed.
50568 * kern/misc.c (memcpy): Alias to pupa_memmove.
50569 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
50570 lvalue cast.
50571 * util/console.c (pupa_ncurses_fini): Return 0.
50572
50573 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
50574 Move fail label here.
50575 [__GNU__]: Don't warn when using stat.
50576 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
50577 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
50578 long int. Use strtol instead of strtoul.
f19dbdb7 50579
db1771cf 505802004-03-14 Marco Gerards <metgerards@student.han.nl>
50581
50582 * commands/boot.c: New file.
50583 * commands/cat.c: Likewise.
50584 * commands/cmp.c: Likewise.
50585 * commands/ls.c: Likewise.
50586 * commands/terminal.c: Likewise.
50587 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
50588 (pupa_register_command): Changed interface to match the new
50589 argument parser.
50590 (pupa_command_execute): Changed (almost rewritten) so it uses
50591 pupa_split_command. Added support for setting variables using the
50592 syntax `foo=bar'.
50593 (rescue_command): Changed to work with the new argument parser.
50594 (terminal_command): Moved from here to commands/terminal.c.
50595 (set_command): New function.
50596 (unset_command): New function.
50597 (insmod_command): New function.
50598 (rmmod_command): New function.
50599 (lsmod_command): New function.
50600 (pupa_command_init): Don't initialize the command terminal
50601 anymore. Initialize the commands set, unset, insmod, rmmod and
50602 lsmod.
50603 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
50604 (kernel_img_HEADERS): Add arg.h and env.h.
50605 (pupa_mkimage_LDFLAGS): Add kern/env.c.
50606 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
50607 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
50608 normal/arg.c.
50609 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
50610 terminal.mod.
50611 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
50612 (boot_mod_SOURCES): New variable.
50613 (terminal_mod_SOURCES): Likewise.
50614 (ls_mod_SOURCES): Likewise.
50615 (cmp_mod_SOURCES): Likewise.
50616 (cat_mod_SOURCES): Likewise.
50617
50618 * normal/arg.c: New file.
50619 * kern/env.c: Likewise.
50620 * include/pupa/arg.h: Likewise.
50621 * include/pupa/env.h: Likewise.
50622 * font/manager.c (font_command): Changed to match argument parsing
50623 interface changes.
50624 (PUPA_MOD_INIT): Likewise.
50625 * hello/hello.c (pupa_cmd_hello): Likewise.
50626 (PUPA_MOD_INIT): Likewise.
50627 * include/pupa/disk.h: Include <pupa/device.h>.
50628 (pupa_print_partinfo): New prototype.
50629 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
50630 (pupa_dl_get_prefix): Likewise.
50631 * include/pupa/misc.h: Include <pupa/err.h>.
50632 (pupa_isgraph): New prototype.
50633 (pupa_isdigit): Likewise.
50634 (pupa_split_cmdline): Likewise.
50635 * include/pupa/normal.h: Include <pupa/arg.h>.
50636 (pupa_command): Changed the prototype of the member `func' to
50637 match the argument parsing interface. Added member `options'.
50638 (pupa_register_command): Updated to match function.
50639 (pupa_arg_parse): New prototype.
50640 (pupa_hello_init) [PUPA_UTIL]: New prototype.
50641 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
50642 (pupa_ls_init) [PUPA_UTIL]: Likewise.
50643 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
50644 (pupa_cat_init) [PUPA_UTIL]: Likewise.
50645 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
50646 (pupa_boot_init) [PUPA_UTIL]: Likewise.
50647 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
50648 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
50649 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
50650 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
50651 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
50652 * kern/disk.c: Include <pupa/file.h>.
50653 (pupa_print_partinfo): New function.
50654 * kern/dl.c: Include <pupa/env.h>.
50655 (pupa_dl_dir): Variable removed.
50656 (pupa_dl_load): Use the environment variable `prefix' instead of
50657 the variable pupa_dl_dir.
50658 (pupa_dl_set_prefix): Function removed.
50659 (pupa_dl_get_prefix): Likewise.
50660 * kern/i386/pc/init.c: Include <pupa/env.h>.
50661 (pupa_machine_init): Use the environment variable `prefix' instead of
50662 using pupa_dl_set_prefix to set the prefix.
50663 * kern/main.c: Include <pupa/env.h>.
50664 (pupa_set_root_dev): Use the environment variable `prefix' instead of
50665 using pupa_dl_get_prefix to get the prefix.
50666 * kern/misc.c: Include <pupa/env.h>.
50667 (pupa_isdigit): New function.
50668 (pupa_isgraph): Likewise.
50669 (pupa_ftoa): Likewise.
50670 (pupa_vsprintf): Added support for printing values of the type
50671 `double'. Make it possible to format variable output when using
50672 formatting like `%1.2%f'.
50673 (pupa_split_cmdline): New function.
50674 * kern/rescue.c: Include <pupa/env.h>.
50675 (next_word): Removed function.
50676 (pupa_rescue_cmd_prefix): Likewise.
50677 (pupa_rescue_cmd_set): New function.
50678 (pupa_rescue_cmd_unset): New function.
50679 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
50680 split the command line instead of splitting it here. Added
50681 support for setting variables using the syntax `foo=bar'. Don't
50682 initialize the prefix command anymore. Initialized the set and
50683 unset commands.
50684 * normal/cmdline.c: Include <pupa/env.h>.
50685 (pupa_tab_complete): Added prototypes for print_simple_completion,
50686 print_partition_completion, add_completion, iterate_commands,
50687 iterate_dev, iterate_part and iterate_dir. Moved code to print
50688 partition information from here to kern/disk.c.
fe6b695a 50689 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 50690 * normal/main.c: Include <pupa/env.h>.
50691 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
50692 instead of using pupa_dl_get_prefix to get the prefix.
50693 * term/i386/pc/vga.c: Include <pupa/arg.h>.
50694 (check_vga_mem): Cast pointers to `void *' to silence a gcc
50695 warning.
50696 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
50697 (pupa_vga_setcolor): Declare unused variables with `__attribute__
50698 ((unused))' to silence a gcc warning.
50699 (pupa_vga_setcolor): Likewise.
50700 (debug_command): Changed to match argument parsing
50701 interface changes.
50702 * util/pupa-emu.c: Include <pupa/env.h>.
50703 (options): Added 0's for unused fields to silence a gcc warning.
50704 (argp): Likewise.
50705 (main): Use the environment variable `prefix' instead of using
50706 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
50707 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
50708 and terminal.
50709
50710 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
50711 * util/misc.c: Include <malloc.h>.
50712 (pupa_malloc): Rewritten so errors are correctly reported.
50713 (pupa_realloc): Likewise.
50714 (pupa_memalign): Likewise.
50715 (pupa_mm_init_region): Declare unused variables with
50716 `__attribute__ ((unused))' to silence a gcc warning.
50717 * normal/i386/setjmp.S: Remove tab at the end of the file to
50718 silence a gcc warning.
50719 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
50720 variables with `__attribute__ ((unused))' to silence a gcc
50721 warning.
50722 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
50723 local variable i unsigned to silence a gcc warning.
50724
50725 * kern/term.c: Include <pupa/misc.h>.
50726 (pupa_more_lines): New variable.
50727 (pupa_more): Likewise.
50728 (pupa_putcode): When the pager is active pause at the end of every
50729 screen.
50730 (pupa_set_more): New function.
50731 * include/pupa/term.h (pupa_set_more): New prototype.
50732
50733
3b1139cb 507342004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
50735
50736 Now this project is GRUB 2 rather than PUPA. The location of
50737 the CVS repository was moved to GRUB's.
f19dbdb7 50738
3b1139cb 50739 * configure.ac: Use bug-grub as the reporting address.
50740 Use GRUB instead of PUPA.
50741 Change the version number to 1.90.
50742
8367695c 507432004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
50744
50745 * genkernsyms.sh: Updated copyright information.
50746 * genmk.rb: Likewise.
50747 * genmodsrc.sh: Likewise.
50748 * gensymlist.sh: Likewise.
50749 * boot/i386/pc/boot.S: Likewise.
50750 * boot/i386/pc/diskboot.S: Likewise.
50751 * disk/i386/pc/biosdisk.c: Likewise.
50752 * disk/i386/pc/partition.c: Likewise.
50753 * font/manager.c: Likewise.
50754 * fs/ext2.c: Likewise.
50755 * fs/fat.c: Likewise.
50756 * include/pupa/boot.h: Likewise.
50757 * include/pupa/device.h: Likewise.
50758 * include/pupa/disk.h: Likewise.
50759 * include/pupa/dl.h: Likewise.
50760 * include/pupa/elf.h: Likewise.
50761 * include/pupa/err.h: Likewise.
50762 * include/pupa/file.h: Likewise.
50763 * include/pupa/font.h: Likewise.
50764 * include/pupa/fs.h: Likewise.
50765 * include/pupa/kernel.h: Likewise.
50766 * include/pupa/loader.h: Likewise.
50767 * include/pupa/misc.h: Likewise.
50768 * include/pupa/mm.h: Likewise.
50769 * include/pupa/net.h: Likewise.
50770 * include/pupa/normal.h: Likewise.
50771 * include/pupa/rescue.h: Likewise.
50772 * include/pupa/setjmp.h: Likewise.
50773 * include/pupa/symbol.h: Likewise.
50774 * include/pupa/term.h: Likewise.
50775 * include/pupa/types.h: Likewise.
50776 * include/pupa/i386/setjmp.h: Likewise.
50777 * include/pupa/i386/types.h: Likewise.
50778 * include/pupa/i386/pc/biosdisk.h: Likewise.
50779 * include/pupa/i386/pc/boot.h: Likewise.
50780 * include/pupa/i386/pc/console.h: Likewise.
50781 * include/pupa/i386/pc/init.h: Likewise.
50782 * include/pupa/i386/pc/kernel.h: Likewise.
50783 * include/pupa/i386/pc/linux.h: Likewise.
50784 * include/pupa/i386/pc/loader.h: Likewise.
50785 * include/pupa/i386/pc/memory.h: Likewise.
50786 * include/pupa/i386/pc/multiboot.h: Likewise.
50787 * include/pupa/i386/pc/partition.h: Likewise.
50788 * include/pupa/i386/pc/time.h: Likewise.
50789 * include/pupa/i386/pc/vga.h: Likewise.
50790 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
50791 * include/pupa/util/getroot.h: Likewise.
50792 * include/pupa/util/misc.h: Likewise.
50793 * include/pupa/util/resolve.h: Likewise.
50794 * kern/device.c: Likewise.
50795 * kern/disk.c: Likewise.
50796 * kern/dl.c: Likewise.
50797 * kern/err.c: Likewise.
50798 * kern/file.c: Likewise.
50799 * kern/fs.c: Likewise.
50800 * kern/loader.c: Likewise.
50801 * kern/main.c: Likewise.
50802 * kern/misc.c: Likewise.
50803 * kern/mm.c: Likewise.
50804 * kern/rescue.c: Likewise.
50805 * kern/term.c: Likewise.
50806 * kern/i386/dl.c: Likewise.
50807 * kern/i386/pc/init.c: Likewise.
50808 * kern/i386/pc/lzo1x.S: Likewise.
50809 * kern/i386/pc/startup.S: Likewise.
50810 * loader/i386/pc/chainloader.c: Likewise.
50811 * loader/i386/pc/linux.c: Likewise.
50812 * loader/i386/pc/multiboot.c: Likewise.
50813 * normal/cmdline.c: Likewise.
50814 * normal/command.c: Likewise.
50815 * normal/main.c: Likewise.
50816 * normal/menu.c: Likewise.
50817 * normal/i386/setjmp.S: Likewise.
50818 * term/i386/pc/console.c: Likewise.
50819 * term/i386/pc/vga.c: Likewise.
50820 * util/console.c: Likewise.
50821 * util/genmoddep.c: Likewise.
50822 * util/misc.c: Likewise.
50823 * util/pupa-emu.c: Likewise.
50824 * util/resolve.c: Likewise.
50825 * util/unifont2pff.rb: Likewise.
50826 * util/i386/pc/biosdisk.c: Likewise.
50827 * util/i386/pc/getroot.c: Likewise.
50828 * util/i386/pc/pupa-mkimage.c: Likewise.
50829 * util/i386/pc/pupa-setup.c: Likewise.
50830
e6eced71 508312004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
50832
50833 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
50834 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
50835 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
50836 reading and reset it after reading.
50837 (pupa_ext2_close): Return PUPA_ERR_NONE.
50838
50839 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
50840 Correct value.
50841 (struct linux_kernel_header): Add kernel_version and
50842 initrd_addr_max.
50843 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
50844 pupa_file_read succeeds.
50845 (pupa_rescue_cmd_initrd): Implement.
50846
5aded270 508472003-12-03 Marco Gerards <metgerards@student.han.nl>
50848
50849 * fs/ext2.c (pupa_ext2_label): New function.
50850 (pupa_ext2_fs): Added label.
50851 * fs/fat.c (pupa_fat_label): New function.
50852 (pupa_fat_fs): Added label.
50853 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
50854
50855 * kern/misc.c (pupa_strndup): New function.
50856 * include/pupa/misc.h (pupa_strndup): New prototype.
50857
50858 * include/pupa/normal.h: Include <pupa/err.h>.
50859 (pupa_set_history): New prototype.
50860 (pupa_iterate_commands): New prototype.
50861 * normal/cmdline.c: Include <pupa/machine/partition.h>,
50862 <pupa/disk.h>, <pupa/file.h>.
50863 (hist_size): New variable.
50864 (hist_lines): Likewise.
50865 (hist_end): Likewise.
50866 (hist_used): Likewise.
50867 (pupa_set_history): New function.
50868 (pupa_history_get): Likewise.
50869 (pupa_history_add): Likewise.
50870 (pupa_history_replace): Likewise.
50871 (pupa_tab_complete): Likewise.
50872 (pupa_cmdline_run): Added tab completion and history buffer. Tab
50873 completion shows partitionnames while completing partitions, this
50874 feature was suggested by Jeff Bailey.
50875 * normal/command.c (pupa_iterate_commands): New function.
50876 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
50877 (pupa_normal_init): Initialize history buffer.
50878 (PUPA_MOD_INIT): Likewise.
50879 (pupa_normal_fini): Free the history buffer.
50880 (PUPA_MOD_FINI): Likewise.
50881
50882 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
50883 key.
50884
50885 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
50886 * configure.ac [i386]: Check for regparam bug.
50887 (NESTED_FUNC_ATTR) [! i386]: Defined.
50888
1f7315a3 508892003-11-17 Marco Gerards <metgerards@student.han.nl>
50890
50891 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
50892 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
50893 (pupa_emu_SOURCES): New variable.
50894 (pupa_emu_LDFLAGS): Likewise.
50895 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
50896 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
50897 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
50898 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
50899 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
50900 (pupa_jmp_buf): New typedef.
50901 (pupa_setjmp) [PUPA_UTIL]: New macro.
50902 (pupa_longjmp) [PUPA_UTIL]: Likewise.
50903 * include/pupa/term.h (struct pupa_term): New member `refresh'.
50904 (pupa_refresh): New prototype.
50905 * include/pupa/util/getroot.h: New file.
50906 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
50907 it.
50908 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
50909 (pupa_rescue_cmd_cat): Likewise.
50910 (pupa_rescue_cmd_ls): Likewise.
50911 (pupa_rescue_cmd_testload): Likewise.
50912 (pupa_rescue_cmd_lsmod): Likewise.
50913 * normal/cmdline.c (pupa_cmdline_get): Likewise.
50914 * normal/menu.c (run_menu): Likewise.
50915 * kern/term.c (pupa_cls): Likewise.
50916 (pupa_refresh): New function.
50917 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
50918 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
50919 * util/console.c: New file.
f19dbdb7 50920
1f7315a3 50921 * util/i386/pc/getroot.c: New file.
50922 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
50923 (pupa_putchar): New function.
50924 (pupa_refresh): Likewise.
50925 (xgetcwd): Function moved to ...
50926 (strip_extra_slashes): Likewise.
50927 (get_prefix): Likewise.
f19dbdb7 50928 * util/i386/pc/getroot.c: ... here.
1f7315a3 50929 (find_root_device): Function moved and renamed to...
50930 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
50931 Changed all callers.
50932 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
50933 and renamed to...
50934 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
50935 Changed all callers.
50936 * util/misc.c (pupa_memalign): New function.
50937 (pupa_mm_init_region): Likewise.
50938 (pupa_register_exported_symbols): Likewise.
50939 (pupa_putchar): Function removed.
50940 * util/pupa-emu.c: New file.
50941
9a5c1ade 509422003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
50943
50944 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
50945 (_multiboot_mod_SOURCES): New variable.
50946 (_multiboot_mod_CFLAGS): Likewise.
50947 * loader/i386/pc/multiboot.c: New file.
50948 * include/pupa/i386/pc/multiboot.h: Likewise.
50949 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
50950 (pupa_multiboot_real_boot): New function.
50951 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
50952 (pupa_multiboot_real_boot): New prototype.
50953 (pupa_rescue_cmd_multiboot): Likewise
50954 (pupa_rescue_cmd_module): Likewise.
50955
50956 * kern/loader.c (pupa_loader_set): Continue when
50957 pupa_loader_unload_func() fails.
50958 (pupa_loader_unset): New function.
50959 * include/pupa/loader.h (pupa_loader_unset): New prototype.
50960
50961 * kern/misc.c (pupa_stpcpy): New function.
50962 * include/pupa/misc.h (pupa_stpcpy): New prototype.
50963
8e72a9c0 509642003-11-12 Marco Gerards <metgerards@student.han.nl>
50965
50966 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
50967 for available extensions.
50968
50969 * include/pupa/i386/pc/time.h: New file.
50970 * kern/disk.c: Include <pupa/machine/time.h>.
50971 (PUPA_CACHE_TIMEOUT): New macro.
50972 (pupa_last_time): New variable.
50973 (pupa_disk_open): Flush the cache when there was a timeout.
50974 (pupa_disk_close): Reset the timer.
50975 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
50976 pupa_currticks.
50977 * util/misc.c: Include <sys/times.h>
50978 (pupa_get_rtc): New function.
50979
c4adbd32 509802003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
50981
50982 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
50983 as blocks.
50984 (pupa_ext2_get_file_block): Use blocks member.
50985
50986 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
50987 first block. Return -1 instead of pupa_errno on error.
50988
bfd30f06 509892003-10-27 Marco Gerards <metgerards@student.han.nl>
50990
50991 * README: In the pupa-mkimage example use _chain instead of chain
50992 and ext2 instead of fat.
50993 * TODO: Replace ext2fs with jfs as an example. Add an item for
50994 adding journal playback for ext2fs.
50995 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
50996 (pkgdata_MODULES): Added ext2.mod.
50997 (ext2_mod_SOURCES): New variable.
50998 (ext2_mod_CFLAGS): Likewise.
50999 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
51000 * include/pupa/misc.h (pupa_strncpy): New prototype.
51001 (pupa_strcat): Likewise.
51002 (pupa_strncmp): Likewise.
51003 * kern/misc.c (pupa_strcat): Enable function.
51004 (pupa_strncpy): New function.
51005 (pupa_strncmp): Likewise.
51006 * fs/ext2.c: New file.
f19dbdb7 51007
bfd30f06 51008 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
51009 when the read failed before retrying.
51010 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
51011 (_FILE_OFFSET_BITS): Likewise.
51012 * configure.ac: Added AC_SYS_LARGEFILE.
51013
98d15063 510142003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51015
51016 * genmk.rb (PModule#rule): Make sure to get only symbol names
51017 from the output of nm.
59cad637 51018 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 51019
18d9c7cd 510202003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51021
51022 I forgot to check in these changes for a long time. This adds
51023 incomplete support for VGA console, and this is still very
51024 buggy. Also, a lot of consideration is required for I18N,
51025 UNICODE, and VGA font issues. Therefore, assume that this is
51026 such that "better than nothing".
f19dbdb7 51027
18d9c7cd 51028 * font/manager.c: New file.
51029 * include/pupa/font.h: Likewise.
51030 * include/pupa/i386/pc/vga.h: Likewise.
51031 * term/i386/pc/vga.c: Likewise.
51032 * util/unifont2pff.rb: Likewise.
51033
51034 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
51035 (pkgdata_MODULES): Added vga.mod and font.mod.
51036 (vga_mod_SOURCES): New variables.
51037 (vga_mod_CFLAGS): Likewise.
51038 (font_mod_SOURCES): Likewise.
51039 (font_mod_CFLAGS): Likewise.
51040
51041 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
51042
51043 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 51044 (struct pupa_term): Added init and fini.
18d9c7cd 51045 Changed the argument of putchar to pupa_uint32_t.
51046
51047 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
51048 (pupa_console_real_putchar): New prototype.
51049 (pupa_console_putchar): Removed.
51050 (pupa_console_checkkey): Exported.
51051 (pupa_console_getkey): Likewise.
51052
51053 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
51054 characters.
51055
51056 * kern/term.c (pupa_term_set_current): Rewritten.
51057 (pupa_putchar): Likewise.
51058 (pupa_putcode): New function.
51059
51060 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
51061 (pupa_console_real_putchar): ... this.
51062 (pupa_vga_set_mode): New function.
51063 (pupa_vga_get_font): Likewise.
51064
51065 * normal/command.c: Include pupa/term.h.
51066 (terminal_command): New function.
51067 (pupa_command_init): Register the command "terminal".
51068
51069 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
51070 (DISP_UP): Likewise.
51071 (DISP_RIGHT): Likewise.
51072 (DISP_DOWN): Likewise.
51073 (DISP_HLINE): Likewise.
51074 (DISP_VLINE): Likewise.
51075 (DISP_UL): Likewise.
51076 (DISP_UR): Likewise.
51077 (DISP_LL): Likewise.
51078 (DISP_LR): Likewise.
51079
51080 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 51081
977329f5 510822003-02-08 NIIBE Yutaka <gniibe@m17n.org>
51083
51084 * util/resolve.c (pupa_util_resolve_dependencies): BUG
51085 FIX. Reverse the path_list.
51086
51087 * include/pupa/normal.h: Export pupa_register_command and
51088 pupa_unregister_command.
51089
51090 * hello/hello.c (pupa_cmd_hello): New module.
51091 * conf/i386-pc.rmk: Added hello.mod.
51092
1f5ab428 510932003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
51094
51095 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 51096
1f5ab428 51097 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
51098 (compress_kernel): New variable.
51099 (generate_image): Heavily modified to support compressing a
51100 large part of the core image.
51101
51102 * util/misc.c (pupa_util_read_image): Fix a file descriptor
51103 leak.
51104 (pupa_util_load_image): New function.
51105
51106 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
51107 (pupa_compressed_size): New variable.
51108 (codestart): Enable Gate A20 here.
51109 Decompress the compressed part of the core image.
51110 Rearrange the code to put functions and variables which are
51111 required for initialization in the non-compressed part.
51112 Include lzo1x.S.
51113
51114 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
51115 here.
51116
51117 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
51118
f19dbdb7 51119 * include/pupa/i386/pc/kernel.h
1f5ab428 51120 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
51121 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
51122 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51123 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51124 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
51125
51126 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
51127
51128 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
51129 (Utility#rule): Likewise.
51130
51131 * configure.ac: Check if LZO is available.
51132
ce5bf700 511332003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
51134
51135 * include/pupa/normal.h: New file.
51136 * include/pupa/setjmp.h: Likewise.
51137 * include/pupa/i386/setjmp.h: Likewise.
51138 * normal/cmdline.c: Likewise.
51139 * normal/command.c: Likewise.
51140 * normal/main.c: Likewise.
51141 * normal/menu.c: Likewise.
51142 * normal/i386/setjmp.S: Likewise.
f19dbdb7 51143
ce5bf700 51144 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
51145 (pupa_rescue_cmd_initrd): Likewise.
51146
51147 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
51148 Likewise.
51149
51150 * kern/i386/pc/startup.S (translation_table): New variable.
51151 (translate_keycode): New function.
51152 (pupa_console_getkey): Call translate_keycode.
51153
51154 * kern/rescue.c (attempt_normal_mode): New function.
51155 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
51156 it failed, print a message.
51157
51158 * kern/mm.c (pupa_real_malloc): Print more information when a
51159 free magic is broken.
51160 (pupa_free): If the first free header is not free actually, set
51161 it to P.
51162
51163 * kern/main.c (pupa_load_normal_mode): Just load the module
51164 "normal".
51165 (pupa_main): Don't print the message
51166 "Entering into rescue mode..." here.
51167
51168 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
51169 Declared.
51170 (pupa_rescue_cmd_initrd): Likewise.
51171 (pupa_rescue_cmd_initrd): Likewise.
51172
51173 * include/pupa/symbol.h (FUNCTION): Specify the type.
51174 (VARIABLE): Likewise.
51175
51176 * include/pupa/err.h (pupa_err_t): Added
51177 PUPA_ERR_UNKNOWN_COMMAND.
51178
51179 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
51180 (pupa_dl_get_prefix): Likewise.
51181
51182 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
51183 Added _chain.mod and _linux.mod instead of chain.mod and
51184 linux.mod.
51185 (chain_mod_SOURCES): Renamed to ...
51186 (_chain_mod_SOURCES): ... this.
51187 (chain_mod_CFLAGS): Renamed to ...
51188 (_chain_mod_CFLAGS): ... this.
51189 (linux_mod_SOURCES): Renamed to ...
51190 (_linux_mod_SOURCES): ... this.
51191 (linux_mod_CFLAGS): Renamed to ...
51192 (_linux_mod_CFLAGS): ... this.
51193 (normal_mod_SOURCES): New variable.
51194 (normal_mod_CFLAGS): Likewise.
51195 (normal_mod_ASFLAGS): Likewise.
51196
511972003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
51198
51199 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
51200 possible.
51201
fe6b695a 51202 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 51203 recursively.
51204 (pupa_dl_unref): Unrefer depending modules recursively.
51205 Don't call pupa_dl_unload implicitly, because PUPA can crash if
51206 a module is unloaded before one depending on that module is
51207 unloaded.
51208 (pupa_dl_unload): Unload depending modules explicitly,
51209 if possible.
51210
c04da074 512112003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
51212
51213 * include/pupa/i386/pc/linux.h: New file.
51214 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 51215
c04da074 51216 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
51217 Removed.
51218 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
51219 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
51220 of PUPA_CHAINLOADER_BOOT_SECTOR.
51221
51222 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
51223 (pupa_linux_prot_size): New variable.
51224 (pupa_linux_tmp_addr): Likewise.
51225 (pupa_linux_real_addr): Likewise.
51226 (pupa_linux_boot_zimage): New function.
51227 (pupa_linux_boot_bzimage): Likewise.
51228
51229 * kern/i386/pc/init.c (struct mem_region): New structure.
51230 (MAX_REGIONS): New macro.
51231 (mem_regions): New variable.
51232 (num_regions): Likewise.
51233 (pupa_os_area_addr): Likewise.
51234 (pupa_os_area_size): Likewise.
51235 (pupa_lower_mem): Likewise.
51236 (pupa_upper_mem): Likewise.
51237 (add_mem_region): New function.
51238 (compact_mem_regions): Likewise.
51239 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
51240 the size of the conventional memory and that of so-called upper
51241 memory (before the first memory hole).
51242 Instead of adding each found region to free memory, use
51243 add_mem_region and add them after removing overlaps.
51244 Also, add only 1/4 of the upper memory to free memory. The rest
51245 is used for loading OS images. Maybe this is ad hoc, but this
51246 makes it much easier to relocate OS images when booting.
51247
51248 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
51249 (pupa_enter_rescue_mode): Don't register initrd and module.
51250
51251 * kern/mm.c: Include pupa/dl.h.
51252
51253 * kern/main.c: Include pupa/file.h and pupa/device.h.
51254
51255 * kern/loader.c (pupa_loader_load_module_func): Removed.
51256 (pupa_loader_load_module): Likewise.
51257
51258 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
51259 ``.o''.
51260
51261 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
51262 (pupa_linux_tmp_addr): Likewise.
51263 (pupa_linux_real_addr): Likewise.
51264 (pupa_linux_boot_zimage): Likewise.
51265 (pupa_linux_boot_bzimage): Likewise.
51266
51267 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
51268 (pupa_upper_mem): Likewise.
51269 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
51270 module is too dangerous.
51271
51272 * include/pupa/loader.h (pupa_os_area_addr): Declared.
51273 (pupa_os_area_size): Likewise.
51274 (pupa_loader_set): Remove the first argument. Loader doesn't
51275 manage modules or initrd any longer.
51276 (pupa_loader_load_module): Removed.
51277
51278 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
51279 (linux_mod_SOURCES): New variable.
51280 (linux_mod_CFLAGS): Likewise.
51281
a13f9237 512822003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
51283
51284 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
51285 the length of a blocklist correctly.
51286
51287 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
51288 Use ioctl only if the OS file is a block device.
51289 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
51290 not very useful for normal files.
51291
51292 * kern/main.c (pupa_set_root_dev): New function.
51293 (pupa_load_normal_mode): Likewise.
51294 (pupa_main): Call those above.
51295
51296 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
51297 pupa_uint16_t.
51298
51299 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
51300
a5ffe966 513012003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
51302
51303 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
51304 (setup): Configure the installed partition information and the
51305 dl prefix.
51306
51307 * loader/i386/pc/chainloader.c (my_mod): New variable.
51308 (pupa_chainloader_unload): New function.
51309 (pupa_rescue_cmd_chainloader): Refer itself.
51310 (PUPA_MOD_INIT): Save its own module in MY_MOD.
51311
51312 * kern/i386/pc/startup.S (install_partition): Removed.
51313 (version_string): Likewise.
51314 (config_file): Likewise.
51315 (pupa_install_dos_part): New variable.
51316 (pupa_install_bsd_part): Likewise.
51317 (pupa_prefix): Likewise.
51318 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
51319
51320 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
51321 and pupa/misc.h.
51322 (make_install_device): New function.
51323 (pupa_machine_init): Set the dl prefix.
51324
51325 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
51326 (buf): Renamed to ...
51327 (linebuf): ... this.
51328 (pupa_rescue_cmd_prefix): New function.
51329 (pupa_rescue_cmd_insmod): Likewise.
51330 (pupa_rescue_cmd_rmmod): Likewise.
51331 (pupa_rescue_cmd_lsmod): Likewise.
51332 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
51333 rmmod and lsmod.
51334
51335 * kern/mm.c (pupa_memalign): If failed even after invalidating
51336 disk caches, unload unneeded modules and retry.
51337
51338 * kern/misc.c (pupa_memmove): New function.
51339 (pupa_memcpy): Removed.
51340 (pupa_strcpy): New function.
51341 (pupa_itoa): Made static.
51342
51343 * kern/dl.c (pupa_dl_iterate): New function.
51344 (pupa_dl_ref): Likewise.
51345 (pupa_dl_unref): Likewise.
51346 (pupa_dl_unload): Return if succeeded or not.
51347 (pupa_dl_unload_unneeded): New function.
51348 (pupa_dl_unload_all): Likewise.
51349 (pupa_dl_init): Renamed to ...
51350 (pupa_dl_set_prefix): ... this.
51351 (pupa_dl_get_prefix): New function.
51352
51353 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
51354 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
51355 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51356 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51357 (pupa_install_dos_part): Declared.
51358 (pupa_install_bsd_part): Likewise.
51359 (pupa_prefix): Likewise.
51360 (pupa_boot_drive): Likewise.
51361
51362 * include/pupa/types.h: Fix a typo.
51363
51364 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
51365 pupa_memmove.
51366 (pupa_memmove): Declared.
51367 (pupa_strcpy): Likewise.
51368
51369 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
51370 pupa_mod_init takes one argument, its own module.
51371 (pupa_dl_unload_unneeded): Declared.
51372 (pupa_dl_unload_all): Likewise.
51373 (pupa_dl_ref): Likewise.
51374 (pupa_dl_unref): Likewise.
51375 (pupa_dl_iterate): Likewise.
51376 (pupa_dl_init): Renamed to ...
51377 (pupa_dl_set_prefix): ... this.
51378 (pupa_dl_get_prefix): Declared.
51379
51380 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 51381 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 51382 unloaded.
51383 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
51384 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
51385
51386 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
51387 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
51388
012d7999 513892003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51390
51391 * util/i386/pc/pupa-setup.c (setup): Define the internal
51392 function find_first_partition_start at the top level, because GCC
51393 3.0.x cannot compile internal functions in deeper scopes
51394 correctly.
51395 (find_root_device): Use lstat instead of stat.
51396 Don't follow symbolic links.
51397 Fix the path-constructing code.
51398
51399 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
51400 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
51401 by a BLKGETSIZE ioctl first, because block devices don't fill
51402 the member st_mode of the structure stat on Linux.
51403 [__linux__] (linux_find_partition): Use a temporary buffer
51404 REAL_DEV for the working space. Copy it to DEV before returning.
51405 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
51406 buffer cache consistent.
51407 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
51408 strncmp. The previous value was merely wrong.
51409 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
51410
51411 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
51412 FAT size is 12. The previous value was merely wrong.
51413
51414 * kern/main.c (pupa_main): Don't split the starting message from
51415 newlines.
51416
51417 * kern/term.c (pupa_putchar): Put CR after LF instead of before
51418 LF, because BIOS goes crazy about character attributes in this
51419 case.
51420
1cc73a62 514212003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51422
51423 * include/i386/pc/util/biosdisk.h: New file.
51424 * util/i386/pc/biosdisk.c: Likewise.
51425 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 51426
1cc73a62 51427 * Makefile.in (INCLUDE_DISTFILES): Added
51428 include/pupa/i386/pc/util/biosdisk.h.
51429 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
51430 directory util/i386/pc.
51431 (install-local): Added a rule for sbin_UTILITIES.
51432 (uninstall): Likewise.
51433
51434 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
51435
51436 * util/misc.c (xrealloc): New function.
51437 (pupa_malloc): Likewise.
51438 (pupa_free): Likewise.
51439 (pupa_realloc): Likewise.
51440 (pupa_stop): Likewise.
51441 (pupa_putchar): Likewise.
51442
51443 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
51444
51445 * include/pupa/util/misc.h (xrealloc): Declared.
51446
51447 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
51448 macro.
51449 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
51450 (PUPA_BOOT_MACHINE_BPB_END): ... this.
51451
51452 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
51453 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51454
51455 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
51456 way should be implemented.
51457 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51458
51459 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
51460 the size of NAME for safety.
51461 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
51462 0x88.
51463
51464 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
51465 (pupa_setup_SOURCES): Likewise.
51466
51467 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
51468
08b70fe8 514692002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51470
51471 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
51472 bunch of pushl's from pusha, because this destroys the return
51473 value.
51474
62ddcc8f 514752002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51476
51477 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
51478 This means that any missing prototypes could be fatal. Also, you
51479 must take care when writing assembly code. See the comments at
51480 the beginning of startup.S, for more details.
f19dbdb7 51481
62ddcc8f 51482 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
51483 compilation mechanism.
51484 (pupa_chainloader_real_boot): Likewise.
51485 (pupa_biosdisk_rw_int13_extensions): Likewise.
51486 (pupa_biosdisk_rw_standard): Likewise.
51487 (pupa_biosdisk_check_int13_extensions): Likewise.
51488 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
51489 (pupa_biosdisk_get_diskinfo_standard): Likewise.
51490 (pupa_get_memsize): Likewise.
51491 (pupa_get_mmap_entry): Likewise.
51492 (pupa_console_putchar): Likewise.
51493 (pupa_console_setcursor): Likewise.
51494 (pupa_getrtsecs): Use pushl instead of push.
51495
51496 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
51497 memory instead of the stack for a mmap entry, because some
51498 BIOSes may ignore the maximum size and overflow.
51499
51500 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
51501
51502 * genmk.rb (PModule#rule): Compile automatically generated
51503 sources with module-specific CFLAGS as well as other sources.
51504
9962ed99 515052002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51506
51507 * configure.ac: Check ld.
51508 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
51509 respectively, before checking endianness and sizes.
51510
51511 * Makefile.in (LD): New variable.
f19dbdb7 51512
abdfc3c5 515132002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51514
51515 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
51516
6a161fa9 515172002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51518
51519 * Changelog: New file.
51520