]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* include/grub/misc.h (grub_strcat): Removed. All users changed to
[grub2.git] / ChangeLog
CommitLineData
e54b8f53
VS
12013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * include/grub/misc.h (grub_strcat): Removed. All users changed to
4 more appropriate functions.
5
fa9b3dca
VS
62013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
9 realloc.
10
9a021c55
VS
112013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
12
13 * util/grub-mkrescue.in: Do not use UUID search on EFI.
14
80e8b13a
VS
152013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16
17 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
18 on core size.
19
b61599ac
VS
202013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
21
22 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
23
a602dc54
VS
242013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
27 (initialize_tables): reset tl and td to NULL after freeing.
28
93c12075
VS
292013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
32
1ca4b75e
VS
332013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
34
35 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
36 of supported tags.
37
329550c4
VS
382013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
41
00bfa988
VS
422013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * grub-core/loader/multiboot.c: Add support for multiboot kernels
45 quirks.
46
81afc5cc
VS
472013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
50 a page in protected space.
51
cb3c4a47
VS
522013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
55 allocate space for zero-sized modules.
56
954f7bf5
VS
572013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
58
59 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
60
526d3d25
FL
612013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
62
63 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
64
74124c34
VS
652013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
66
67 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
68 safeguards. Fixes a crash with i386/pc/console.c.
69
5177391e
VS
702013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
71
72 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
73 and grub_hostfs_init.
74
64db14b0
VS
752013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
78 windows method on other platforms without good stat as well.
79
effe2036
VS
802013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
81
82 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
83
82591fa6 842013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 85
82591fa6
VS
86 Make / in btrfs refer to real root, not the default volume.
87 Modify mkrelpath to work even if device is mounted with subvolid option.
88
892013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
90
91 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
92 extra_dist.
93 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
94 extra_dist.
95
30fd7198
VS
962013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
99 fails.
100
8d179dae
BC
1012013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
102
103 * docs/autoiso.cfg: New file.
104
3bc9c8cf
VS
1052013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
106
107 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
108 COND_GRUB_PE2ELF conditions.
109
8b46b0ea
VS
1102013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
111
112 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
113 "vnd", "rd" and "fd" disks.
114
442b86de
VS
1152013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
116
117 Move grub_disk_write out of kernel into disk.mod.
118
04dea7e6
VS
1192013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
120
121 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
122 handling.
123
1242013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
125
126 * grub-core/kern/misc.c (grub_abort): Make static
127
04dea7e6 1282013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
129
130 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
131 transform invalid unicode codepoints.
132
04dea7e6 1332013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
134
135 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
136 \0 checking.
137
03dcac7f
VS
1382013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
139
140 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
141
c81acb7f
VS
1422013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
143
144 Consolidate cpuid code.
145
c1bee646
VS
1462013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
147
148 Move cpuid code to cpuid.h and TSC code to tsc.c.
149
f37bf9c7
GS
1502013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
151
152 * util/grub.d/00_header.in: Don't use LANG if it's not set.
153
4021132b
GS
1542013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
155
156 * util/grub-mkconfig.in: Replace $0 with $self.
157 * util/grub-reboot.in: Likewise.
158 * util/grub-set-default.in: Likewise.
159
3ace8d75
BC
1602013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
161
162 * docs/osdetect.cfg: New file.
163
1e6ad6a6
BC
1642013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
165
166 * tests/util/grub-shell.in: Add new --debug option.
167
188929eb
BC
1682013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
169
170 * tests/test_unset.in: New test.
171
7994a09a
BC
1722013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
173
174 * tests/test_sha512sum.in: New test.
175
2a8a7585
VS
1762013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
177
178 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
179 * include/grub/misc.h: Remove strncat.
180 * grub-core/lib/posix_wrap/string.h: Likewise.
181
cf8d6bbd
VS
1822013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
183
184 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
185 Try to handle more than 0xFFFF packets.
186 Reported by: Bernhard Übelacker <bernhardu>.
187 He also spotted few overflows in first version of this patch.
188
6d1fc99a
VS
1892013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
190
191 * tests/date_unit_test.c: New test.
192
10bafa1c
VS
1932013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
194
195 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
196 of first three years after start of validity of unixtime.
197
b1c6d037
VS
1982013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
199
200 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
201 division as the one making more sense.
202 (update_screen): Likewise.
203 (complete): Likewise.
204
5f4028d4
VS
2052013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
206
207 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
208
a2856736
VS
2092013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
210
211 Make char and string width grub_size_t rather than grub_ssize_t.
212
0a7e52b2
VS
2132013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
214
215 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
216 unsigned.
217 (grub_history_replace): Likewise.
218
42829573
VS
2192013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
220
221 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
222 appropriate.
223
3523b8d8
VS
2242013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
225
226 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
227 appropriate.
228
d43c6489
VS
2292013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
230
231 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
232 Use unsigned divisions rather than signed variants.
233
f690f8b0
VS
2342013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
235
236 * grub-core/video/readers/png.c (grub_png_convert_image): Use
237 unsigned arithmetics.
238 Add missing break.
239
74ff2c05
VS
2402013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
243
fb56391e
VS
2442013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
247 rather than signed one.
248 (recovery): Likewise.
249
40f29060
VS
2502013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
251
252 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
253
c64577a5
VS
2542013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
255
256 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
257 than signed.
258
c16535a8
JM
2592013-10-25 Jon McCune <jonmccune@google.com>
260
261 * docs/grub.texi: Cleanup security documentation around signatures.
262
6673d8e7
VS
2632013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
264
265 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
266
a105d375
VS
2672013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
268
269 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
270 than int.
271
af81ed88
VS
2722013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
273
274 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
275 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
276 functions when compiling for kernel.
277
ea899a57
VS
2782013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
279
280 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
281 unsigned long long when using %llu.
282
c6dc6fa1
VS
2832013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
284
285 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
286 terminal after updating progress.
287
ad2dc003
VS
2882013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
289
290 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
291 argument. We don't disable Gate A20 in this code.
292
b46684ae
VS
2932013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
294
295 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
296 Conceptually based on change in branch "vbe-on-coreboot".
297
f70d5c07
RM
2982013-10-24 Robert Millan <rmh@gnu.org>
299
300 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
301 numeric constants with their symbolic equivalent.
302 Taken from branch "vbe-on-coreboot".
303
bca274b4
VS
3042013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
305
306 * docs/grub.texi: Fix ordering and use pxref rather than xref.
307
238f0489
VS
3082013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
309
310 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
311 divmod64 for offset division.
312
863c590b
PFS
3132013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
314
315 Rename .bzrignore to .gitignore. Add "*.o" rule.
316
317 * .bzrignore: Renamed to...
318 * .gitignore: ...this.
319
84a0e969
PFS
3202013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
321
322 Add new progress module that displays the load progress of files.
323
324 * grub-core/lib/progress.c: New file.
325 * grub-core/Makefile.core.def (progress): New module.
326 * grub-core/kern/file.c (grub_file_open): File name added.
327 * (grub_file_read): Progress hook added.
328 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
329 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
330 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
331 * include/grub/file.h (struct grub_file): Add progress module members.
332 * include/grub/term.h (struct grub_term_output): Likewise.
333 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
334 Terminal velocity added.
335 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
336 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
337 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
338 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
339 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
340 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
341 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
342 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
343 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
344 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
345 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
346 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
347
0d711431
VS
3482013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
349
350 Verify signatures of signatures unless --skip-sig is specified.
351
f8401f76
VS
3522013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
353
354 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
355 \0 checking.
356
357 Saves 70 bytes on compressed image.
358
ac1feb61
VS
3592013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
360
361 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
362 check.
363
364 Saves 10 bytes on compressed image.
365
00f72e89
VS
3662013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
367
368 * grub-core/kern/misc.c (grub_isprint): Move to ...
369 * include/grub/misc.h (grub_isprint): ... here. Make inline.
370
371 Saves 20 bytes on compressed image due to remving exporting.
372
067e6ae7
VS
3732013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
374
375 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
376
377 Saves 5 bytes on compressed image.
378
64a6c791
VS
3792013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
380
381 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
382 function get_utf8.
383
384 Saves 379 bytes on compressed image.
385
979d9f52
VS
3862013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
389
1437da54
VS
3902013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
391
392 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
393
394 Saves 40 bytes on compressed image.
395
d9ee2269
VS
3962013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
397
398 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
399 mask rather than 64-bit type.
400
401 Saves 20 bytes on compressed image.
402
63efa602
VS
4032013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
404
405 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
406 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
407
47601ffe
VS
408 Saves 273 bytes on compressed image.
409
2cc679ad
VS
4102013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
413 variable length arrays.
414
415 Saves 50 bytes on compressed image.
416
2e4659b8
VS
4172013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
418
419 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
420
2a40badf
VS
4212013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
422
423 * grub-core/fs/ufs.c: Remove variable length arrays.
424
1ba6b9b9
VS
4252013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
428
f3e39341
VS
4292013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * grub-core/fs/zfs.c: Remove variable length arrays.
432 Reduces zfs.mod by 160 bytes (208 compressed).
433
71523935
VS
4342013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
437
28153eb8
VS
4382013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
439
440 * grub-core/net/arp.c: Remove variable length arrays.
441 * grub-core/net/bootp.c: Likewise.
442 * grub-core/net/dns.c: Likewise.
443 * grub-core/net/icmp6.c: Likewise.
444 * grub-core/net/net.c: Likewise.
445
88ce4cd7
VS
4462013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
447
448 * grub-core/fs/ntfs.c: Remove variable length arrays.
449 Increases ntfs.mod by 64 bytes (but decreases by 3 when
450 compressed).
451
66123940
VS
4522013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
453
454 * grub-core/fs/hfs.c: Remove variable length arrays.
455 Reduces hfs.mod by 8 bytes (52 compressed).
456
0927e5bd
VS
4572013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
458
459 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 460 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
461 compressed).
462
9c12ac97
VS
4632013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
464
465 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 466 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
467 compressed).
468
97ec2d71
VS
4692013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
470
471 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 472 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
473 compressed).
474
156e4ea0
VS
4752013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
476
477 * grub-core/fs/xfs.c: Remove variable length arrays.
478 Reduces xfs.mod by 40 bytes (43 compressed).
479
3b502c29
VS
4802013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
481
482 * grub-core/fs/fshelp.c: Remove variable length arrays.
483 Reduces fshelp.mod by 116 bytes (23 compressed).
484
c7037f1d
VS
4852013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
486
487 * grub-core/normal/completion.c: Remove variable length arrays.
488 * grub-core/normal/menu_entry.c: Likewise.
489
490 Reduces normal.mod by 496 bytes.
491
a07e6ad0
VS
4922013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
493
494 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
495 by 356 bytes (158 compressed).
496
2359bf88
VS
4972013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
498
499 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
500 by 364 bytes (169 compressed).
501
d28e1163
VS
5022013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
503
504 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
505 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
506 * include/grub/types.h (grub_unaligned_uint64_t): New type.
507
e89c2d48
VS
5082013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
509
510 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
511 bitmasks to small structures of size chosen to fit in registers.
512
7abdac8e
VS
5132013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
514
515 * conf/Makefile.common: Use -freg-struct-return on i386. This
516 decreases code size and improves performance.
517
518864c0
VS
5182013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
519
520 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
521
bbd2b539
VS
5222013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
523
524 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
525 "(null)" string.
526 Simplify expressions to save around 256 bytes in kernel.img.
527 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
528
99519c15
VS
5292013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
530
531 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
532 Use GRUB_UTIL_FD_O_* rather than O_*.
533
20285765
VS
5342013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
535
536 Add haiku-specific functions.
537
887c0bb6
VS
5382013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
541
cd78a56f
VS
5422013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
543
544 Move stat () and device mode checking into OS-dependent files as
545 long as performance doesn't suffer.
546
a4012f07
VS
5472013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
548
549 Split make_system_path_relative_to_its_root into separate file
550 relpath.c from getroot.c as it's common between unix and haiku
551 but otherwise haiku doesn't use any functions from unix getroot.c.
552
31de274d
VS
5532013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
554
555 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
556 New function.
557 (grub_util_is_special_file): Likewise.
558
40346de6
VS
5592013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
562 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
563
d3923ab9
VS
5642013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
565
566 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
567 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
568
663f6eb1
VS
5692013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
570
571 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
572 (load_image): Likewise.
573
44d1c20a
VS
5742013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
575
576 * util/grub-render-label.c: Move backend part to ...
577 * util/render-label.c: ... here.
578
d0a116ee
VS
5792013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
580
581 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
582 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
583
b47fcae6
VS
5842013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
585
586 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
587
0f7c00c1
VS
5882013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
589
590 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
591 CD-ROM in case when it's declared as having subpartitions.
592
29013cba
VS
5932013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
594
595 Don't add -lm on haiku.
596
597 * configure.ac: Define BUILD_LIBM to -lm on most platforms
598 and empty on haiku.
599 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
600 -lm.
601
e8559d24
VS
6022013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
603
604 * configure.ac: Use -melf_*_haiku as target on haiku.
605
8104063c
VS
6062013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
607
608 * Makefile.util.def: Add util/setup.c to extra_dist.
609
fc3182c7
VS
6102013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
611
612 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
613 unknown types through.
614
f90a3cc0
VS
6152013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
618 (grub_util_check_char_device): Likewise.
619 * include/grub/emu/getroot.h: Likewise.
620
1e3e7419
VS
6212013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
622
623 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
624 memset rather than inline static function.
625
92c88fc8
VS
6262013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
629 not doing embedded decompressor.
630
3cd910a2
VS
6312013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
634 shadowing.
635 * grub-core/kern/disk.c: Likewise.
636 * grub-core/kern/misc.c: Likewise.
637 * include/grub/parser.h: Likewise.
638 * include/grub/script_sh.h: Likewise.
639 * include/grub/zfs/zfs.h: Likewise.
640
7b3aca00
VS
6412013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
642
643 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
644
97dfe7e4
VS
6452013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
646
647 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
648 defined before trying to use it.
649
bf919aa9
VS
6502013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
651
652 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
653 warning.
654
f4ccf29d
VS
6552013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
656
657 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
658 Use __unused__ rather than __used__ on gcc < 3.2.
659
0d3a6f85
VS
6602013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
661
662 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
663 gcc < 4.0.
664 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
665
757e3eb7
VS
6662013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
669
fb320faf
VS
6702013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
673 * include/grub/emu/misc.h: Likewise.
674
ea73acd2
VS
6752013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
676
677 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
678 cur_color.
679
71237a6f
VT
6802013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
681
682 * grub-core/tests/checksums.h: Regenerated due to progress bar
683 get_minimal_size changes.
684
3d46c22f
BC
6852013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
686
687 Added `tr' command support.
688
689 * grub-core/commands/tr.c: New file.
690 * grub-core/Makefile.core.def: Build rules for new module.
691
692 * tests/grub_cmd_tr.in: New test.
693 * Makefile.util.def: Build rules for new test.
694
47e0a61f
VT
6952013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
696
697 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
698
946fd073
VT
6992013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
700
701 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
702 * docs/gurb.texi: Likewise.
703
9c13c576
VT
7042013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
705
706 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
707 Pixmap highlighted section with east and west slices was displayed
708 incorrectly due to negative width of the central slice.
709
ad543f12
VT
7102013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
711
712 * docs/grub.texi: Graphical options information update.
713 Removed outdated. Updated current. Inserted missed.
714
6176a0cd
VS
7152013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
716
717 * docs/grub.texi: Mention few new platform-specific commands.
718
9688cae2
VS
7192013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
720
721 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
722 currently used so this doesn't really have any effect.
723 Reported by: Douglas Ray <dougray>
724
f7b69a3f
VS
7252013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
726
727 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
728 compilation but prevents gcc from displaying messages in non-Latin
729 alphabets.
730 * conf/Makefile.common: Likewise.
731
ceca6ddf
HY
7322013-10-16 Hiroyuki YAMAMORI
733
734 Handle Japanese special keys.
735 Reported by: Hiroyuki YAMAMORI.
736 Codes supplied by: Hiroyuki YAMAMORI.
737
ac48d334
VT
7382013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
739
740 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
741
b2b71bff
VT
7422013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
743
744 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
745 * docs/grub.texi: Likewise.
746
669fc449
VS
7472013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
748
749 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
750 value in case of incomplete read.
751 (grub_util_fd_write): Likewise.
752
59381678
VS
7532013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
754
755 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
756
bacfefbb
VS
7572013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
758
759 * util/grub-editenv.c (create_envblk_file): More from here ...
760 * util/editenv.c (grub_util_create_envblk_file): ... to here.
761
f7c49570
VS
7622013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
763
764 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
765 canonicalize file name before doing the rest.
766
7b83ca44
VS
7672013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
768
769 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
770 mingw32.
771
df1e64c9
VS
7722013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
773
774 Define grub_util_is_directory/regular/special_file and
775 use OS-dependent versions rather than to rely on stat().
776
ec16e026
VS
7772013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
778
779 * util/grub-mkimage.c: Move backend part to ...
780 * util/mkimage.c: ... here.
781
4b4eeb3c
VS
7822013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
783
784 Allow compilation with mingw64 albeit with warnings due to lack of
785 %llx/%llu.
786
787 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
788 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
789 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
790 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
791 on mingw64.
792 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
793
f4e0adc0
VS
7942013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
795
796 Remove leftover references to some of the system headers.
797
e0127364
VS
7982013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
799
800 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
801 read.
802
20d53541
VS
8032013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
804
805 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
806 of strerror.
807
5a869940
VS
8082013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
809
810 Split out blocklist retrieving from setup.c to
811 grub-core/osdep/blocklist.c and add windows implementation since
812 generic version doesn't work on NTFS on Windows due to aggressive
813 unflushable cache.
814
c06c7520
VS
8152013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
816
817 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
818 files.
819
8f53bb3f
VS
8202013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
821
822 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
823 Cut tailing newline. Remove arbitrary limitation. Always use
824 grub_util_tchar_to_utf8.
825
148f1007
VS
8262013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
827
828 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
829 * tests/printf_unit_test.c (printf_test): Add %% tests.
830 Reported by: Paulo Flabiano Smorigo.
831
af3b06be
VS
8322013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
833
834 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
835 implement fsync.
836
27f9d02e
VS
8372013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
838
839 * configure.ac: Check for nvlist_lookup_string in nvpair since we
840 use nvlist_lookup_string and don't use nvlist_print.
841
f6a81f0a
VS
8422013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
843
844 Add wrappers around rename, unlink, mkdir, opendir, readdir and
845 closedir to handle filename charset translation.
846
d7750b32
VS
8472013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
848
849 * include/grub/emu/hostdisk.h: Move file operations to
850 * include/grub/emu/hostfile.h: ... here.
851
2859196e
VS
8522013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
853
854 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
855 unicode path.
856
c018c968
VS
8572013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
860
7e45abce
VS
8612013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
862
863 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
864 and remove export.h.
865
23934da2
VS
8662013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
867
868 * grub-core/kern/emu/error.c: Removed.
869 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
870 explicitly as it's already in libgnu.a.
871
c11ebcc8
VS
8722013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
873
874 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
875 config-util.h include.
876
70671037
VS
8772013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
878
879 Split emunet into platform-dependent and GRUB-binding parts. Keep
880 platform-dependent part in kernel for easy access to OS functions.
881
25ac643a
VS
8822013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
883
884 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
885 open/read/write.
886
69ca5876
VS
8872013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
888
889 * grub-core/osdep/windows/emuconsole.c: New file.
890
d9d68ef0
AB
8912013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
892
893 * conf/Makefile.extra-dist: Add osdep/*/init.c
894
58e211cc
VS
8952013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
896
897 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
898
588744d0
VS
8992013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
900
901 * util/grub-probe.c (probe): Separate different drives in hint-str
902 by spaces and not newlines.
903 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
904
44016e52
AB
9052013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
906
907 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
908 Handle CD-ROMs.
909
6de9ee86
VS
9102013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
911
912 Pass-through unknown E820 types. It required reorganisation of mmap
913 module.
914
f8f3f155
AB
9152013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
916
917 * Makefile.util.def: Add osdep/init.c to grub-mount files.
918
b73249d2
VS
9192013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
920
921 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
922 fseeko.
923
dac86b18 9242013-10-14 qwertial <qwertial>
925
926 * grub-core/gdb_grub.in: Fix overflow and wrong field.
927
17614b84
JM
9282013-10-14 Jon McCune <jonmccune@google.com>
929
930 * docs/grub.texi: Document new signatures possibility.
931
6de292cb
VS
9322013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
933
934 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
935
84379b61
VS
9362013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
939 missing prototype.
940 (grub_util_tchar_to_utf8): Likewise.
941
21d85db1
VS
9422013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
943
944 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
945 * grub-core/kern/emu/main.c: Add missing include.
946 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
947 Don't call grub_util_init_nls.
948 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
949 Likewise.
950
66a1b3ee
VS
9512013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
952
953 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
954 stat.
955
e19bec17
VS
9562013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
957
958 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
959
ee8c1b29
VS
9602013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
961
962 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
963
bb338aaf
VS
9642013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
965
966 Add a wrapper for fopen. On unix-like systems just pass-through. On
967 windows use unicode version.
968
ae5540d3
VS
9692013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
970
971 Move set_program_name and init_nls to host_init. On windows
972 fix in this fuction console and argument charset as well.
973
4cd3c4fe
AB
9742013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
975
976 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
977 GRUB_ENABLE_CRYPTODISK.
978
979 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
980 GRUB_ENABLE_CRYPTODISK.
981 * util/grub-mkconfig_lib.in: Likewise.
982
78170f3e
CCZ
9832013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
984
985 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
986
3414b6c0
MC
9872013-10-12 Melki Christian <Christian.melki@saabgroup.com>
988
989 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
990 error when enabling debug.
991
6d0740e8
IB
9922013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
993
994 * configure.ac: Use -melf_*_obsd on openbsd.
995
ff2d4dc4
VS
9962013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
997
998 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
999
eac6ae82
VS
10002013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 * include/grub/misc.h: Use gnu_printf rather than printf as format
1003 template since our functions are independent of libc.
1004
ba9baabe
VS
10052013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 * util/grub-setup.c (setup): Move copying of partition table as
1008 futher up as possible to avoid possible overwrite by floppy routines.
1009
10102013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
1011
1012 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
1013
145e2369
VT
10142013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1015
1016 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
1017 * docs/grub.texi: Likewise.
1018
3530bc9d
VS
10192013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1020
1021 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
1022 it's mostly unused. Move vestiges to the callers.
1023
fb9f59c3
VS
10242013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1025
1026 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
1027 version of salt and hash. Use grub_snprintf rather than snprintf.
1028
9be1c255
VS
10292013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * docs/grub.texi: Fix problem with braces.
1032
ed8c0887
VS
10332013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 * conf/Makefile.extra-dist: Fix extra-dist list.
1036 * grub-core/Makefile.core.def: Likewise.
1037
f72ab14e
VS
10382013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * docs/grub.texi: Document disk names used on Windows and AROS.
1041
2fe53a22
VS
10422013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
1045 with AROS devs.
1046 * grub-core/osdep/aros/hostdisk.c: Likewise.
1047
71c1d67a
VS
10482013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 Avoid including hostfile.h when not necessarry as it pulls
1051 in OS-specific headers which may redefine generic names
1052 like "far".
1053
ad297ec7
VT
10542013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1055
1056 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
1057 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
1058 scrollbar_bottom_pad
1059 * docs/grub.texi: Likewise.
1060
6e9e5dc9
VT
10612013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1062
1063 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
1064
761c718b
VS
10652013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1066
1067 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
1068
37149a2f
VS
10692013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
1072 Removed.
1073 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
1074 Made static.
1075
3837a151
VS
10762013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1077
1078 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
1079 leftover.
1080
caca1c70
VS
10812013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1082
1083 Move OS-specific driver configuration to grub_util_fd_open. This
1084 moves OS-dependent parts from kern/emu/hostdisk.c to
1085 grub-core/osdep/*/hostdisk.c.
1086
f7676b70
VS
10872013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1088
1089 * util/grub-mkimage.c (generate_image): Use size_t instead of
1090 grub_size_t.
1091 * util/grub-mkimagexx.c (locate_sections): Likewise.
1092 (load_image): Likewise.
1093
22f98db2
VS
10942013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
1097 size_t.
1098 (grub_util_write_image): Likewise.
1099
b102ce69
VS
11002013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
1103 get random when no RNG is available.
1104 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
1105
acbbe5cb
VS
11062013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 * include/grub/util/lvm.h: Removed.
1109
2112fb3f
VS
11102013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
1113 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
1114
79f78fbf
VS
11152013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 * grub-core/osdep/windows/sleep.c: Add missing config.h.
1118
c2e6f705
VS
11192013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
1122
aabe433a
VS
11232013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * grub-core/net/drivers/emu/emunet.c: Move to ..
1126 * grub-core/osdep/linux/emunet.c: ..here.
1127
9a2c903f
VS
11282013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * util/ieee1275/ofpath.c: Move to ...
1131 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
1132 * grub-core/osdep/basic/ofpath.c: ..here.
1133
4a445f58
VS
11342013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 Move password-querying (util-version) routines to grub-core/osdep.
1137
c1ca4244
VS
11382013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 Move sleep routines to grub-core/osdep.
1141
672fa55e
VS
11422013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 Move OS-dependent files to grub-core/osdep and document it.
1145
a5b0365a
VS
11462013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
1149 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
1150
29072e99
VS
11512013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
1154
f8772ea7
VS
11552013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 * util/misc.c: Remove leftover inclusion of malloc.h.
1158
a1a315e7
VS
11592013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 * include/grub/setjmp.h: Remove leftover GRUBOF.
1162
cef86fef
VS
11632013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1164
1165 * util/raid.c: Fold into ...
1166 * util/getroot_linux.c: ... here. Make all functions static.
1167
c4cf25ee
VS
11682013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1169
1170 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
1171 macros to GRUB ones.
1172
53a5f5c2
VT
11732013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1174
1175 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
1176 occasional bug. If there are too many boot entries or too low
1177 scrollbar height then we need to use another formula to calculate
1178 the position and size of the scrollbar thumb.
1179
de300af2
VS
11802013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1181
c4cf25ee 1182 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 1183
c5827364
VT
11842013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1185
1186 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
1187 * docs/grub.texi: Likewise.
1188
dd2ed8b0
VT
11892013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1190
1191 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
1192 viewport.
1193
7286c384
VT
11942013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1195
ffdfc1f3
VT
1196 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
1197 minimal width calculations.
7286c384 1198
ea547e14
VS
11992013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1200
1201 * docs/grub.texi: Update note on colors on emu console.
1202
b726be76
VS
12032013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1204
1205 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
1206 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
1207 it's FS and not GRUB limitation.
1208
a5f6ade6
VS
12092013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1210
1211 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
1212
3b0f3aa2
VS
12132013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
1216
1db38304
ST
12172013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1218
1219 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
1220 kernels by version order.
1221
fb295fc0
VS
12222013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
1225
47345010
VS
12262013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 Add AROS hostdisk and getroot routines.
1229
bf25f879
VS
12302013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 Make cryptodisk and diskfilter probe data retrievable programmatically
1233 and not just printable.
1234
24ca4512
VS
12352013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 Split random retrieving code into separate files.
1238
c7c177f0
VS
12392013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1240
1241 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
1242 R_ARM_V4BX.
1243
d71b45ae
VS
12442013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1245
1246 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
1247 condition.
1248 * grub-core/tests/fake_input.c: Likewise.
1249 * grub-core/tests/cmdline_cat_test.c: Likewise.
1250
e44b9a83
VS
12512013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 * grub-core/video/capture.c: Do not do finalization when .fini
1254 is called as there is explicit capture_end.
1255
4fa60739
VS
12562013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1257
1258 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
1259 changing windows to avoid crash.
1260
17c8bc37
VS
12612013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
1264
9d4d7977
VS
12652013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 * po/exclude.pot: Add several strings to exclude.
1268
0caa407c
VS
12692013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
1272
9ae393da
VS
12732013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * autogen.sh: Add ./util/grub-gen-widthspec.c and
1276 ./util/grub-gen-asciih.c to exclude list.
1277
498d5033
VS
12782013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1279
1280 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
1281 and don't mark error strings for translation.
1282
7d93298f
VS
12832013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1284
1285 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
1286 properly in case of missing block size.
1287
b2cae20c
VS
12882013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 * grub-core/lib/arm/setjmp.S: Add missing license section.
1291
3896d6b4
VS
12922013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 * po/swiss.sed: Add replacement for key names and for term computer.
1295
ebc1da55
VT
12962013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
1297
1298 * grub-core/gfxmenu/theme_loader.c: New global options for the
1299 theme background image handling. desktop-image-scale-method,
1300 desktop-image-h-align, desktop-image-v-align.
1301 * grub-core/gfxmenu/view.c: Likewise.
1302 * include/gfxmenu_view.h: Likewise.
1303 * include/bitmap_scale.h: Proportional scale functions introduced.
1304 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
1305 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
1306 cases of unexpected input variables for scale functions.
1307 * docs/grub.texi: Updated documentation for new options.
1308
c5739143
VS
13092013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
1312
be74aeb3
VT
13132013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1314
1315 * grub-core/tests/checksums.h: Corrected due to changes in
1316 bilinear interpolation function.
1317
d999ac72
VT
13182013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1319
1320 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
1321 to eliminate artefacts in bilinear interpolation.
1322
2b131610
VS
13232013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 * grub-core/video/readers/tga.c: Support paletted tga.
1326
de6e5ff8
VS
13272013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1328
1329 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
1330 incorrect cbcr setting when in color mode.
1331
fa31ee9c
VS
13322013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1333
1334 * grub-core/video/readers/png.c: Support paletted images and clean up
1335 greyscale support.
1336
e84f8188
VS
13372013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
1340 usage of wrong table which resulted in mishandling of 4-byte
1341 sequences.
1342
13432013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
1344
1345 * grub-core/term/terminfo.c: Add Home and End key sequences.
1346
d72bff09
VS
13472013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 * grub-core/video/readers/png.c (grub_png_decode_image_header):
1350 Fix formula for computing total number of bytes.
1351
29648c5d
VS
13522013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1353
1354 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
1355 image processing, fix big-endian and support grayscale.
1356
4a876492
VS
13572013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1358
1359 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
1360 Correctly will with maximum transparency when using index color.
1361
3ccf16df
VS
13622013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1363
1364 * grub-core/video/readers/png.c: Support grayscale
1365
13662013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
1367
1368 * grub-core/video/readers/jpeg.c: Support grayscale.
1369
3ccf16df 13702013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
1371
1372 * grub-core/commands/loadenv.c: Support skipping signature check
1373 and variable names filtering.
1374
30b7f58f
VS
13752013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
1378 * grub-core/kern/emu/hostfs.c: Likewise.
1379 * util/getroot_unix.c: Likewise.
1380
bab7b1eb
VS
13812013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
1384 Migrate all explicit defines to this new one.
1385
43b1c99d
VS
13862013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
1389 grub_util_fd_strerror when using grub_util_fd_*.
1390 (grub_util_fd_open_device): Likewise.
1391 (grub_util_biosdisk_read): Likewise.
1392 (grub_util_biosdisk_write): Likewise.
1393 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
1394 (grub_util_fd_strerror): Likewise.
1395 (grub_util_fd_sync): Likewise.
1396 (grub_util_fd_close): Likewise.
1397 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
1398 (grub_util_fd_close): Likewise.
1399 (grub_util_fd_strerror): Likewise.
1400 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
1401 function proto rather than macro.
1402 (grub_util_fd_sync): Likewise.
1403 (grub_util_fd_open): Likewise.
1404 (grub_util_fd_strerror): New proto.
1405
e8fd80bc
VS
14062013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1407
1408 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
1409 platforms on which it doesn't work.
1410
bf645fda
VS
14112013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
1414 stat immediately to where it's used.
1415
5177ba14
VS
14162013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1417
1418 * util/getroot.c (grub_util_check_block_device): Move to ...
1419 * util/getroot_unix.c (grub_util_check_block_device): ... here.
1420 * util/getroot.c (grub_util_check_char_device): Move to ...
1421 * util/getroot_unix.c (grub_util_check_char_device): ... here.
1422
9db826e1
VS
14232013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
1426 disk closing logic.
1427
49120085
AB
14282013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1429
1430 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
1431
b3328b68
AB
14322013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1433
1434 * docs/grub.texi (File name syntax): Document ZFS filenames
1435 (/volume@snapshot/...).
1436
3fff48ab
VS
14372013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1438
1439 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
1440 Always return full path. Fixes a problem with mkrelpath.
1441
39cfdaa9
PFS
14422013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1443
1444 * util/grub-install.in: Add GPT PReP support.
1445 * util/grub-probe.c (probe): Support GPT partition type.
1446 (main): Support -t gpt_parttype.
1447
7c680e1f 14482013-09-23 Aleš Nesrsta <starous@volny.cz>
1449
1450 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
1451
890bdabe
MM
14522013-09-23 Massimo Maggi <me@massimo-maggi.eu>
1453
1454 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
1455
9c262ff9
TH
14562013-09-23 Tim Hardeck <thardeck>
1457
1458 * util/grub.d/10_hurd.in: Filter out character for the class.
1459 * util/grub.d/10_kfreebsd.in: Likewise.
1460 * util/grub.d/10_linux.in: Likewise.
1461 * util/grub.d/20_linux_xen.in: Likewise.
1462
d755342a
MC
14632013-09-23 Melki Christian <Christian.melki@saabgroup.com>
1464
1465 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
1466 "changed".
1467
68b77707
JT
14682013-09-23 Josh Triplett <josh@joshtriplett.org>
1469
1470 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
1471 boot partition.
1472
efa68bfa
VS
14732013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
1476 doesn't use posix_wrap. Keep literal -fno-builtin however.
1477
d9104204
VS
14782013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1479
1480 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
1481
c248781a 14822013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
14832013-09-23 neil
1484
5830df88 1485 * configure.ac: Do not enable -Wmissing-noreturn as its
1486 usefulness is limited and creates problems on some OS notably with
1487 code generated by bison.
1488
14892013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
14902013-09-23 neil
1491
1492 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 1493 supported by all gcc and when it is, it's already enabled by -Wall.
1494
621bed69
VS
14952013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1496
1497 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
1498 desactivated use of EDID at all.
1499
71764dc8 15002013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15012013-09-23 neil
1502
1503 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
1504 video if no text is available.
1505
affce7d4 15062013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
15072013-09-23 neil
1508
1509 * configure.ac: Substitute TARGET_RANLIB.
1510
15112013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15122013-09-23 neil
affce7d4
VS
1513
1514 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
1515
1516 Based on patches from AROS.
1517
0e8daad0 15182013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 15192013-09-23 neil
0e8daad0
VS
1520
1521 * grub-core/Makefile.am: Override STRIP and RANLIB.
1522 * configure.ac: compute TARGET_RANLIB.
1523 * INSTALL: Document TARGET_RANLIB
1524
1525 Based on patches from AROS.
1526
3f7d9c82
VS
15272013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
1530 that floppies are unpartitioned.
1531
bca8873a
VS
15322013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
1535 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
1536
15372013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1538
1539 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
1540 less nice but more portable.
1541 * grub-core/lib/posix_wrap/wchar.h: Likewise.
1542
a47a78be
VS
15432013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1544
1545 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
1546 for cheat_fd.
1547 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
1548 functions.
1549 (grub_cryptodisk_cheat_insert): Likewise.
1550 (grub_cryptodisk_close): Likewise.
1551
e85a5d5c
VS
15522013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1553
1554 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
1555 Use windows path for DEFAULT_DIRECTORY.
1556
dad9fa6b
VS
15572013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1558
1559 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
1560 difference was likely just gcc version, not anything mingw-related.
1561
7e518ca8
VS
15622013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1563
1564 Use Winapi on both cygwin and mingw32 to share more code between both.
1565
d68d0157
AB
15662013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1567
1568 * util/grub-install.in: Add --grub-editenv option.
1569 * util/grub-install_header (grub_compress_file): Explicitly check for
1570 plain file to avoid cp error.
1571
775b284d
AB
15722013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1573
1574 * docs/grub.texi (Device syntax): Document new LVM UUID based device
1575 names; fix LVM driver name (lvm, not lv).
1576 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
1577 names.
1578
3ff4063d
VS
15792013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
1582 files rather than one file with loads of #if's.
1583 * util/getroot.c: Likewise.
1584
287faafe
VS
15852013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1586
1587 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
1588
d1983764
VS
15892013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1590
1591 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
1592 GNU/Hurd to the list of checked PRNG.
1593
15ce95c4
VS
15942013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 * configure.ac: On FreeBSD use -melf_*_fbsd format.
1597
207862dd 15982013-09-21 Ales Nesrsta <starous@volny.cz>
1599
7c680e1f 1600 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 1601
63653cfd
VS
16022013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
1605 * grub-core/disk/lvm.c: Add LVM UUIDs.
1606 * util/getroot.c: Use LVM UUIDs whenever possible.
1607
f5d3e7ef
AB
16082013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
1609
1610 * docs/grub.texi (Networking commands): Add documentation for
1611 network related commands.
1612
53c6b7d6
VS
16132013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * util/getroot.c (grub_util_open_dm): Check major rather than the name
1616 to determine if device is handled by devmapper.
1617 (convert_system_partition_to_system_disk): Likewise.
1618 (get_dm_uuid): Don't check explicitly if device is mapped, it's
1619 already done in grub_util_open_dm.
1620
e70d6736
LL
16212013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
1622
1623 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
1624 Clean up stack manipulation (sync_caches_armv*)
1625
90379808
VS
16262013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1627
1628 * util/lvm.c: Remove since unused. Remove remaining references.
1629
386701a8
VS
16302013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 Handle the case of partitioned LVM properly.
1633
1634 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1635 Stop on meeting LVM, mpath or DMRAID.
1636 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
1637 (read_device_map): Likewise.
1638 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
1639 device is full disk rather than erroring out on LVM and similar cases.
1640
53070787
VS
16412013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1642
1643 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
1644
1bc783bd
VS
16452013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1646
1647 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
1648 4K before the end.
1649 Reported by: Leif Lindholm
1650
436ad5c3
PW
16512013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
16522013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
1655 codes.
1656
607319c9
CW
16572013-09-18 Colin Watson <cjwatson@ubuntu.com>
1658
1659 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
1660 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
1661
d404d154
DR
16622013-09-18 Douglas Ray <dougray@cpan.org>
1663
1664 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
1665 as secure.
1666
28851ef6
AN
16672013-09-18 Aleš Nesrsta <starous@volny.cz>
1668
1669 * docs/grub.texi: Fix broken link.
1670
897c3bc6
MC
16712013-09-18 Melki Christian <Christian.melki@saabgroup.com>
1672
1673 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
1674 to break endless loop.
1675
f1630459
VS
16762013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1677
1678 * util/grub-fstest.c: Fix several printf formats.
1679 * util/grub-mkimage.c: Likewise.
1680 * util/grub-mkimagexx.c: Likewise.
1681 * util/grub-script-check.c: Likewise.
1682
64463dfd
VS
16832013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
1686 error.
1687
48972495
VS
16882013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
1691
5dd5e64b
VS
16922013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
1695 removed in current versions cygwin_conv_*.
1696
1c1f31e5
VS
16972013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 * configure.ac: Disable efiemu runtime on cygwin.
1700
c546a259
VS
17012013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
1704 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
1705
81690478
VS
17062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
1709 error message.
1710
6b87c10a
VS
17112013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1712
1713 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
1714 windows variant.
1715 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
1716 data.
1717
8f0baaac
VS
17182013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
1721 when on x86 and not cygwin.
1722 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
1723 -Wl,-melf_x86_64.
1724
b224c266
VS
17252013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 * configure.ac: Set CPP to build one when checkoing for freetype for
1728 build.
1729
506b336b
VS
17302013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
1733 [!GRUB_BUILD]: Remove has_argument.
1734
8c8c87b7
VS
17352013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
1738 Replace with a dummy.
1739
7dc5ca13
VS
17402013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * configure.ac: Don't change host_os from mingw to cygwin.
1743
c3302aa5
VS
17442013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1745
1746 * configure.ac: Change target_os from windows to cygwin.
1747
7b780018
VS
17482013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 Handle grub-pe2elf and grub-mkfont for cases when build != host.
1751
1752 * Makefile.am (build-grub-mkfont): Don't include gnulib.
1753 (build-grub-gen-asciih): Likewise.
1754 (build-grub-gen-widthspec): Likewise.
1755 * Makefile.util.def (grub-pe2elf): Remove.
1756 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
1757 * configure.ac: Separate tests for build.
1758 Move ./build-grub-pe2elf to grub-core.
1759 Fix typo.
1760 * grub-core/Makefile.am (build-grub-pe2elf): New target.
1761 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
1762 defined.
1763 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
1764 constants.
1765 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
1766 * util/grub-pe2elf.c: Simplify not to rely on getopt.
1767 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
1768
984cfd8a
VS
17692013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1770
1771 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
1772 mingw32 as well based on grub_util_get_disk_size.
1773 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
1774 grub_util_get_fd_size.
1775 (sync): Removed.
1776 (fsync): Moved to ...
1777 * grub-core/kern/emu/misc.c (fsync): ... here.
1778
f82d79c9
VS
17792013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1780
1781 * include/grub/mm.h (grub_extend_alloc): Remove.
1782 * grub-core/loader/i386/pc/plan9.c: Use own version of
1783 grub_extend_alloc with appropriate types.
1784
fd7dd66d
VS
17852013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
1788
43ffba7c
VS
17892013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1790
1791 * util/getroot.c: Include sys/wait.h only when we need waitpid.
1792
3c7eac44
VS
17932013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1794
1795 Fix dependencies on cygwin.
1796
1797 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
1798 dependencies when used and defined.
1799 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
1800
bdb5ba47
VS
18012013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
1804 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
1805
ed7fbf43
VS
18062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
1809 implementation available to cause compile-time rather than runtime
1810 error.
1811
fc46e9fc
VS
18122013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 * util/grub-fstest.c: Don't check for symlinks on windows.
1815
7f68269a
VS
18162013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * INSTALL: Mention unavailability of man pages when cross-compiling.
1819
8ed358e0
VS
18202013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
1823 and gcry_log_bug.
1824 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
1825
fc97214f
VS
18262013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1827
1828 * INSTALL: Document cross-compilation.
1829 * acinclude.m4: Determine whether nm support -P and --defined-only.
1830 * configure.ac: Add TARGET_ to all variables pertaining to target
1831 that don't have it yet.
1832 * gentpl.py: Likewise.
1833 * grub-core/Makefile.am: Likewise.
1834 * grub-core/genmod.sh.in: Likewise.
1835 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
1836 as well.
1837
ca1fb563
IB
18382013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
1839
1840 * configure.ac: Remove -Wempty-body. It's not essential and needs
1841 recent gcc.
1842
0031b229
IB
18432013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
1844
1845 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
1846 * util/getroot.c: Likewise.
1847
54ea2f44
VS
18482013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1849
1850 * grub-core/disk/ahci.c: Add needed explicit cast.
1851 * grub-core/lib/backtrace.c: Likewise.
1852 * grub-core/net/ip.c: Likewise.
1853 * grub-core/net/tcp.c: Likewise.
1854 * grub-core/net/udp.c: Likewise.
1855
3c601f8c
VS
18562013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1857
1858 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
1859
1d679dda
VS
18602013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1861
1862 * util/import_gcry.py: Add final newline in visibility.h.
1863
00c28dd9
VS
18642013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1865
1866 * conf/Makefile.common: Fix typo.
1867
32af299a
VS
18682013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1869
1870 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
1871
e733cf52
VS
18722013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1873
1874 * Makefile.am (widthspec.h): Fix typo.
1875 * util/grub-gen-widthspec.c: Likewise.
1876
c6b066f2
VS
18772013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1878
1879 Move ascii.h and widthspec.h generation to a separate build-time-only
1880 tool.
1881
ad1fe3f9 18822013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
1883
1884 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
1885 Always fill bootdisk info and improve check for NetBSD disklabel.
1886
92a52dd4
VS
18872013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1888
1889 * conf/Makefile.extra-dist: Add util/bin2h.c.
1890 Reported by: floppym.
1891
b2e9d276
VS
18922013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
1895
7b966834
VS
18962013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 * configure.ac: Disable unifont and starfield if no freetype was found.
1899
d5c1eef1
VS
19002013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
1903 on NetBSD and OpenBSD.
1904
66345b50 19052013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
1906
1907 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
1908
66345b50 19092013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
1910
1911 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
1912 reduced. Inheritant options are processed during the theme loading.
1913
66345b50 19142013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
1915
1916 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
1917
369508b3
AS
19182013-08-14 Avik Sil <aviksil@in.ibm.com>
1919
1920 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
1921
19222013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
1923
1924 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
1925 using qemu.
1926
6f27a3f6
PFS
19272013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1928
1929 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
1930 remove-potcdate.sed.
1931
c6ed362a
AB
19322013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1933
1934 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
1935 unused attribute from pull argument.
1936
5e7d9464
AB
19372013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1938
1939 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
1940 memory leak.
1941
dea55e2a
AB
19422013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1943
1944 * util/getroot.c (pull_lvm_by_command): add --separator option
1945 to vgs call to disable padding of output to 10 characters.
1946
f0b94ded
VS
19472013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1948
1949 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
1950 here ...
1951 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
1952 here.
1953
b828fb5d
VS
19542013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
1957 length.
1958
7c9d0c39
VS
19592013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 Fix handling of build-time grub-bin2h and grub-mkfont when doing
1962 full Canadian cross. Tested with build=x86_64, host=arm,
1963 target=ppc-ieee1275.
1964
816719c8
VS
19652013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1966
1967 * configure.ac: Error if no $BUILD_CC could be found.
1968 Reported by: DevHC.
1969
2af2353b
VS
19702013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
1973 i386-multiboot.
1974
797abd0a
VS
19752013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
1978 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
1979
36e87d25
CW
19802013-08-13 Colin Watson <cjwatson@ubuntu.com>
1981
1982 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
1983 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
1984 falling back to the partition device, otherwise a later call to this
1985 function may fail spuriously.
1986 Reported by Axel Beckert. Fixes Debian bug #708614.
1987
273349fe
GS
19882013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
1989
1990 * autogen.sh: Replace find -not by the POSIX-compliant find !.
1991
418f86c6
GS
19922013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
1993
1994 Prevent shadowing of stdlib's devname(3) on BSD.
1995
1996 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
1997 and devlast to diskname and disklast, respectively.
1998
c137aea0
CW
19992013-08-11 Colin Watson <cjwatson@ubuntu.com>
2000
2001 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
2002
272dc8df 20032013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
2004
2005 * docs/grub.texi: Introduce terminal window position options:
2006 terminal-left: terminal window's left position
2007 terminal-top: terminal window's top position
2008 terminal-width: terminal window's width
2009 terminal-height: terminal window's height
2010 terminal-border: terminal window's border width
2011 * grub-core/gfxmenu/theme-loader.c: Likewise.
2012 * include/grub/gfxmenu_view.h: Likewise.
2013 * po/exlude.pot: Likewise.
2014 * grub-core/gfxmenu/view.c: Likewise.
2015 Also updated minimal window size.
2016 Also terminal_sanity_check function has been introduced.
272dc8df
VT
2017 * grub-core/tests/checksums.h: Update (terminal window height
2018 is adjusted now for low resolution screen)
b4743461 2019
748a4533
VS
20202013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
2023 position).
2024
fca5f944
VS
20252013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * po/exclude.pot: Add few recent exceptions.
2028
4f47d809
VS
20292013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * tests/grub_func_test.in: Add unicode.pf2.
2032
a62ae90c
VS
20332013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
2036 standard rather than noral color, in line with other terminals.
2037
4ed41392
VS
20382013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2039
2040 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
2041 analysis.
2042
3719fbc5
VS
20432013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 * grub-core/loader/arm/linux.c: Change printf to dprintf.
2046
459b1d91
VS
20472013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
2050 inappropriate printf.
2051
f4e1ab9d
AB
20522013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
2053
2054 * .bzrignore: Remove grub-core/lib/dtc-grub,
2055 grub-core/Makefile.libfdt.def
2056 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
2057
fa471bfa
VS
20582013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2059
2060 * include/grub/video.h (grub_video_register): Keep double-linked as
2061 well as single-linked invariants.
2062 Reported by: qwertial.
2063
d65be02b
VS
20642013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 * grub-core/commands/nativedisk.c (get_uuid): Handle
2067 GRUB_DISK_DEVICE_UBOOTDISK_ID.
2068
ba8bc620
VT
20692013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
2070
2071 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
2072 maximum of NW, N, NE heights instead of N's height and maximum of
2073 NW, W, SW widths instead of W's width. (So the box will be always
2074 correctly drawn)
2075
4f0ad029
GS
20762013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
2077
2078 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
2079 Fix misuse of variable count.
2080
43d53b72
LL
20812013-07-18 Leif Lindholm <leif.lindholm@arm.com>
20822013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
20832013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 2084
43d53b72
LL
2085 New ports to arm-uboot and arm-efi.
2086 Mostly by Leif Lindholm with some additions from
2087 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 2088
88f8d146
VS
20892013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2090
2091 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
2092 and not before.
2093 Reported by: Leon Drugi.
2094
3f42504c
VS
20952013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
2098 Reported by: Paulo Flabiano Smorigo.
2099
d110499b
VT
21002013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2101
2102 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
2103
a8674ad3
VT
21042013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2105
2106 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
2107
286fe4b3
VS
21082013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
2111
1bd57aa3
VS
21122013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
2115
7a87d69f
AB
21162013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
2117
2118 * grub-core/net/bootp.c: Export net_* variables.
2119 * grub-core/net/net.c: Likewise.
2120
b2182299
VS
21212013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2122
2123 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
2124
795b3dc0
VS
21252013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
2128
68714c43
VS
21292013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
2132
af211bab
VS
21332013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2134
2135 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
2136
0036f02d
MM
21372013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2138
2139 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
2140 <= 0.
2141
6d0ddff3
MM
21422013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2143
2144 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
2145 functions.
2146
038016f4
MM
21472013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2148
2149 * grub-core/fs/zfs/zfs_lz4.c: New file.
2150 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
2151
776bdce2
MM
21522013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2153
2154 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
2155
c71dbd40
MM
21562013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2157
2158 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
2159 (check_pool_label): Likewise.
2160 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
2161
21622013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
2163
2164 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
2165
8e67b50f
AB
21662013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2167
2168 * docs/grub.texi (Commands): Document postition parameters
2169 for menuentry command.
2170
f5ae3717
AB
21712013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2172
2173 * util/grub-mknetdir.in: Remove stray line from help output.
2174
9c28da2a
VS
21752013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2176
2177 Remove early sm712 init as there is no reason for it (the "watchdog"
2178 effect was due to wrong GPIO map).
2179
139072b8
VS
21802013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2181
2182 * grub-core/commands/pcidump.c: Remove static variables.
2183
c6a61bda
VS
21842013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2185
2186 * grub-core/commands/sleep.c: Refresh screen before sleeping.
2187
51369614
VS
21882013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 * configure.ac: Move delimiter after the infos.
2191
efa8640a
VS
21922013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
2195
6f80a7b2
VS
21962013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
2199 not filling whole 8x16 space.
2200
a2371e19
VS
22012013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2202
2203 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
2204
64fce2d8
VS
22052013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 * configure.ac: Indicate which liblzma is used if any.
2208
eb272d84
PW
22092013-06-21 Paul Wise <pabs3@bonedaddy.net>
22102013-06-21 Craig Sanders <savannah@taz.net.au>
2211
2212 * util/grub-reboot.in: Document submenu usage.
2213
a9e5abee
CW
22142013-06-25 Colin Watson <cjwatson@ubuntu.com>
2215
2216 * .bzrignore: Update with a number of new test-related files.
2217
e639c204
CW
22182013-06-25 Colin Watson <cjwatson@ubuntu.com>
2219
2220 * util/grub-script-check.c: Fail on scripts containing no
2221 commands, to guard against corrupted grub-mkconfig setups that
2222 produce no useful output.
2223 * tests/grub_script_no_commands.in: New test.
2224 * Makefile.util.def (grub_script_no_commands): Add.
2225 Reported by Hans Putter. Fixes Debian bug #713886.
2226
a4c89b17
AB
22272013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2228
2229 * grub-core/disk/diskfilter.c: Forgot to remove comment
2230 from previous commit.
2231
5b06b53c
AB
22322013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2233
2234 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
2235 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
2236
702da5c9
AB
22372013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2238
2239 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
2240
aa62a5b7
AB
22412013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2242
2243 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
2244 rescan diskfilter devices until nothing new is found.
2245
4aa237c8
VS
22462013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 Fix casts when compiling coreboot-specific code for 64-bit EFI.
2249
93d8479b
VS
22502013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 Don't try to detect cbfs on *-emu.
2253
837222cc
VS
22542013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2255
2256 * grub-core/term/gfxterm.c: USe right background color when scrolling.
2257
99c971af
VS
22582013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 Add support for processed coreboot payload chainloading.
2261
e6930a45
VS
22622013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2263
2264 Enable coreboot information commands even when not loaded as
2265 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
2266
5027af38
VS
22672013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 Support for cbfs. Also factor out the part which is common
2270 for all archives to a separate module. This splits tar from cpio
2271 as they are very different but keeps cpio, cpio_be, odc and newc
2272 together since they're very similar.
2273
a5b55c4b
DM
22742013-06-15 David Michael <fedora.dm0@gmail.com>
2275
2276 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
2277 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
2278
0301a8b3
VS
22792013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2280
2281 * tests/grub_script_eval.in: Really add the eval test.
2282
3d84cb17
VS
22832013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 Move flavour-specific parts out of common cpio.c file and
2286 rename remaining to cpio_common.c
2287
593e430c
AB
22882013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2289
2290 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
2291 off new function grub_script_execute_new_scope. Change callers to use
2292 either of them as appropriate.
2293 * grub-core/commands/eval.c: New command eval.
2294 * docs/grub.texi (Commands): Document it.
2295
63c29849
AB
22962013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2297
2298 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
2299 to fetch values when listing.
2300
cc284112
AB
23012013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2302
2303 Fix make dist on non-pc.
2304
23052013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
2306
2307 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
2308 without a device name.
2309
69544d1e
VS
23102013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 Remove enable_executable_check as it's not needed anymore.
2313 Reported by: dougray.
2314
96dbe648
VS
23152013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2316
2317 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
2318 ambigouos RAID before discovering RAIDs on top of it.
2319 Reported by: bodom.
2320
ccfc0bdb
VS
23212013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2322
2323 Fix typo (failback vs fallback).
2324
f2587088
AB
23252013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
2326
2327 * util/grub.d/30_os-prober.in: Add support for probing EFI
2328 System Partition (as of os-prober 1.58).
2329
cec5cf0c
VS
23302013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2331
2332 * configure.ac: Add yet another path to unifont. For parabola.
2333
e40b4596
JT
23342013-05-30 Josh Triplett <josh@joshtriplett.org>
2335
2336 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
2337 handling to copy the killed characters to the kill buffer as
2338 UCS4 stored as grub_uint32_t rather than as 8-bit characters
2339 stored as char. Eliminates UCS4 truncation and corruption
2340 observed when killing characters with Ctrl-u and yanking them
2341 back with Ctrl-y.
2342
fc4c4fdd
VS
23432013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 Detach optional parts of gfxterm and integrate in with coreboot init.
2346
6570b205
VS
23472013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2348
2349 Move blit and fill dispatcher to appropriate files to decrease export
2350 and relocation overhead.
2351
b8323067
VS
23522013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 * grub-core/font/font.c, include/grub/font.h: Inline simple font
2355 functions.
2356
3cc1878f
VS
23572013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 * grub-core/Makefile.am: Fix compilation problem with some
2360 automake versions.
2361
4b80e43c
VS
23622013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2363
2364 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
2365
57e0c20c
VS
23662013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
2369 automake versions.
2370
4fd42c53
VS
23712013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
2374 SSDT.
2375
1e908b34
RS
23762013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
2377
2378 * grub-core/partmap/dfly.c: New partition map.
2379
1359e474
VS
23802013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2381
2382 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
2383 checking.
2384 Reported by: Francesco Lavra.
2385
17806392
AB
23862013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
2387
2388 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
2389 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
2390 false conditions.
2391 * conf/Makefile.common: define dist_grubconf_DATA
2392
cdce14fa
VS
23932013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2394
2395 Progressively skip menu elements on small terminals rather
2396 than crashing.
2397
c8d6cc3c
VS
23982013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2399
2400 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
2401 to avoid losing last column.
2402
a73b31ce
VS
24032013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2404
2405 * po/exclude.pot: Add missing string "%C".
2406
1202c764
VS
24072013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
2410 after the test.
2411
50268344
VS
24122013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2413
2414 * util/grub-install.in: Gettextize "Not found" message.
2415
62b15edf
VS
24162013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2417
2418 Fix distfiles list.
2419 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2420
24212013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
2422
2423 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
2424 present.
2425 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
2426
709ad61b
VS
24272013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2428
2429 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
2430
d128901a
VS
24312013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
2434 attribute since structure is not necessarily aligned.
2435
34b22f5c
AB
24362013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
2437
2438 * docs/grub.texi (Device syntax): Clarify description of network
2439 drives.
2440
0f7e980b
VS
24412013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2442
2443 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
2444 for vasprintf presence.
2445
30b03dc2
VS
24462013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 * util/grub-install.in: Handle efibootmgr presence check.
2449 Reported by: Leif Lindholm.
2450
0dc11c08
VS
24512013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
2454 new strings to translate.
2455
f8024c3f
VS
24562013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
2459 yet another string (pun intended) to translate.
2460
b4c1da62
VS
24612013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * po/POTFILES-shell.in: Autogenerate it.
2464
0ef7478b
VS
24652013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
2468
8200fa15
VS
24692013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2470
2471 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
2472 misnomer.
2473
091945b2
AB
24742013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
2475
2476 * docs/grub.texi (Network): Add description of net_default_interface,
2477 net_default_ip and net_default_mac. Rewrite variables description
2478 to emphasize that they are per-interface.
2479
0e7b2e32
VS
24802013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 New test: cmdline and cat.
2483
16f7c8f6
VS
24842013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2485
2486 * grub-core/commands/cat.c: Show UTF-8 characters.
2487
3e912fda
VS
24882013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 * conf/Makefile.common: Poison float and double on non-emu.
2491
ee0220bc
VS
24922013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2493
2494 * configure.ac: Don't disable extended registers on emu.
2495
89e0240c
VS
24962013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 * configure.ac: Don't use extended registers on x86_64.
2499 Reported by: Peter Jones.
2500
e56d9637
VS
25012013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 * grub-core/term/efi/console.c: Fix compile error.
2504
8098f655
VS
25052013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 Compressed HFS+ support.
2508
16940e07
VS
25092013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2510
2511 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
2512 pixel".
2513
c5dbc13d
VS
25142013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2515
2516 Menu color test.
2517
011f8ae8
VS
25182013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 * grub-core/tests/setjmp_test.c: New test.
2521
2aa072d7
VS
25222013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 New variables 'net_default_*' to determine MAC/IP of default interface.
2525
43fe02cb
VS
25262013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 * tests/gettext_strings_test.in: A test to check for strings not
2529 marked for translation.
2530
bed06142
VS
25312013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 * autogen.sh: Exclude unused libgcrypt files from translation.
2534
fb2666b5
VS
25352013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2536
2537 Simplify few strings.
2538
d22840ec
VS
25392013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 Mark few forgotten strings for translation.
2542
e34092fd
VS
25432013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2544
2545 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
2546 rather than printf.
2547
47cf82b4
VS
25482013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2549
2550 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
2551 rather than printf.
2552 * grub-core/video/readers/tga.c: Likewise.
2553
1eed0e6e
VS
25542013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * tests/priority_queue_unit_test.cc: New test.
2557
c5b7697b
VS
25582013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
2561 than printf.
2562
5945c2f8
AB
25632013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
2564
2565 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
2566 variable for one time boot menu entry.
2567
fa292343
B
25682013-05-05 Bean <bean123ch@gmail.com>
2569
2570 * grub-core/commands/testspeed.c: New command testspeed.
2571
310d4214
VS
25722013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2573
2574 Factor-out human-size printing.
2575
85002bf3
VS
25762013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2577
2578 Agglomerate more mallocs to speed-up gfxterm.
2579
22b06e96
VS
25802013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2581
2582 Speed-up gfxterm by slightly agglomerating mallocs.
2583
b7c036bc
VS
25842013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2585
2586 More video checks.
2587
92323d1f
VS
25882013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2589
2590 Speed-up gfxterm by saving intermediate results in index+alpha
2591 format.
2592
0fb356a3
VS
25932013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2594
2595 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
2596 test.
2597
44dea3f9
VS
25982013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2599
2600 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
2601 line of timeout as it may contain the rest of long line.
2602
14af86e4
VS
26032013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 * grub-core/normal/main.c: Fix freed memory dereference.
2606
03f7c8c3
VS
26072013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 Fix several memory leaks.
2610
c686014c
VS
26112013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
2614
0788a695
VS
26152013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2616
2617 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
2618
daf01d61
VS
26192013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 Fix test -a and -o precedence.
2622 Reported by: adrian15.
2623
82ae74d7
VS
26242013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
2627
8cec7bd4
AB
26282013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
2629
2630 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
2631 and add it as source to functional_test module.
2632
aa73d688
VS
26332013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
2636
c104b6f9
VS
26372013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2638
2639 New series of tests for gfxterm and gfxmenu.
2640
7391c4d5
VS
26412013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2642
2643 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
2644 the theme path relative to $prefix/themes.
2645
cff50118
VS
26462013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2647
2648 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
2649 Fix order bug.
2650 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
2651
7c332bdc
VS
26522013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
2655 descriptor.
2656
a4f9a5ff
VS
26572013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
2660 grub_gfxmenu_timeout_notifications.
2661 (grub_gfxmenu_view_destroy): Likewise.
2662
b5a2114d
VS
26632013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2664
2665 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
2666
a8905e8a
VS
26672013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 Several fixes to ieee1275 and big-endian video.
2670
813c1622
VS
26712013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2672
2673 Add missing exports on mips.
2674
3f3e7326
VS
26752013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
2678 if no unifont is found.
2679 Restore original keyboard.
2680
095accd1
VS
26812013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
2684 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
2685
50361660
VS
26862013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 First automated video test (running videotest and comparing results)
2689
cd0f6eec
VS
26902013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2691
2692 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
2693 instead of 2 to have full RGB/CMY test pattern.
2694
3f9634e5
VS
26952013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2696
2697 Add few more tests.
2698
583e5b64
VS
26992013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2700
2701 * include/grub/arc/arc.h: Account for missing "other" peripheral on
2702 ARCS. All users updated.
2703
aa7bcb99
VS
27042013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
2707
95ef1a54
VS
27082013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 * grub-core/partmap/amiga.c: Fix size of checksummed block.
2711
46546fc5
VS
27122013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
2715 Reported by: qwertial.
2716
3476e0ef
VT
27172013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
2718
2719 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
2720 with syntax "XXX deg"/"XXX °".
2721
96f33fed
VS
27222013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 Make PCI init in i386-qemu port more robust.
2725
27262013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
2727
2728 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
2729 cached view is reused.
2730 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
2731 open boot menus.
2732
c53b4e67
VS
27332013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 Unify more code in grub-install_header.
2736
f7457fb2
VS
27372013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 Add few new tests.
2740
e2f27a8c
VS
27412013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 Enforce disabling of firmware disk drivers when native drivers kick in.
2744
ef9d8cd5
VS
27452013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * grub-core/commands/nativedisk.c: Customize the list of modules on
2748 platform. Don't try to search for disks already using native drivers.
2749
f7bf6c31
VS
27502013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
2753 platforms.
2754
bdc4add8
VS
27552013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
2758 handling of variables containing backslash.
2759
e9e46c9a
VS
27602013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2761
2762 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
2763 dereference.
2764 Reported by: qwertial.
2765
0e90dee8
VS
27662013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2767
2768 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
2769
e0aacf24
VS
27702013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2771
2772 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
2773 dereference.
2774 Reported by: qwertial.
2775
3c0003c3
VS
27762013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * docs/grub.texi: Add a comment about usefullness of nativedisk.
2779
adb7d667
VS
27802013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2781
2782 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
2783
7cd0df84
VS
27842013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 New command `nativedisk'.
2787
02adbb93
VS
27882013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
2791 * grub-core/loader/i386/bsd.c: Likewise.
2792
9fb0fd4f
VS
27932013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
2796
bd69257a
VS
27972013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2798
2799 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
2800 grub_get_unaligned16 rather than shifts.
2801
178c2764
VS
28022013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 * grub-core/kern/file.c: Use const char * rather than casting to
2805 non-const.
2806
eadfad24
VS
28072013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2808
2809 * grub-core/commands/probe.c: Add missing grub_device_close.
2810
9f73ebd4
VS
28112013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * INSTALL: Document linguas.sh.
2814
965fa829
VS
28152013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 Remove POTFILES.in and regenerate it in autogen.sh.
2818
d417ddc4
VS
28192013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 Move --directory/--override-directorry to grub-install_header and unify.
2822
f97ec546
VS
28232013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 * grub-core/term/morse.c: Macroify dih and dah.
2826
b2d7470c
PFS
28272013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2828
2829 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
2830
141e2a78
VS
28312013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2832
2833 * grub-core/term/ns8250.c: Systematically probe ports by writing
2834 to SR before using them.
2835
1dd70ebd
PFS
28362013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2837
2838 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
2839 disks.
2840 (check_sas): Get sas_adress info.
2841
c796a107
VS
28422013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
2845 ports.
2846
43168646
LD
28472013-04-27 Leon Drugi <eyak>
2848
2849 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
2850 BSS clearing.
2851
e7b8fd08
VS
28522013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2853
2854 Core compression test.
2855
17f9fd29
VS
28562013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2857
2858 Implement grub_machine_get_bootlocation for ARC.
2859
dc2a6c8b
VS
28602013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 Improve AHCI detection and command issuing.
2863
f25a2ba6
VS
28642013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2865
2866 Fix pseries test.
2867
a6393224
VS
28682013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 Make 'make check' work on emu.
2871
db99fbe8
VS
28722013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 Replace libcurses with our own vt100 handling for the ease of testing
2875 and decreasing prerequisites.
2876
b24ca7cd
VS
28772013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
2880
63314aa4
VS
28812013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
2884 compile when not needed.
2885
c1b00fff
VS
28862013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2887
2888 * tests/pseries_test.in: New test.
2889
f93e89ef
VS
28902013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2891
2892 Add test to check that different boot mediums work.
2893
c4b456d3
VS
28942013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2895
2896 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
2897 ofw limited ISO support.
2898
5fe67f39
VS
28992013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2900
2901 * configure.ac: Fix loongson conditional.
2902
7f63a64f
VS
29032013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 Enable mipsel-arc.
2906
b04b5990
VS
29072013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 Add serial on ARC platform.
2910
88d2f302
VS
29112013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
2914 commit.
2915
86eb23bc
VS
29162013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2917
2918 * tests/partmap_test.in: Add missing double semicolon.
2919
eec3bb75
VS
29202013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2921
2922 * util/grub-mkrescue.in: Fix loongson filename.
2923
e0810df3
VS
29242013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * util/grub-mkrescue.in: Move all files that don't have a location
2927 set in stone under /boot/grub. Use ISO hard links rather than copies
2928 to save some space.
2929
65a6b30b
VS
29302013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2931
2932 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
2933 bogus SLOF values.
2934
6aff0107
VS
29352013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 Make check work on mips-arc.
2938
5e013e56
VS
29392013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2940
2941 * util/grub-mkrescue.in: Alias sashARCS as sash.
2942
d1989e2e
VS
29432013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
2946 it's serial.
2947
1a25e72c
VS
29482013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2949
2950 * util/grub-install.in: Fix target fo qemu_mips.
2951 Fix extension on EFI.
2952
a59a9826
VS
29532013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2954
2955 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
2956 in front of chosen entry to mark it even if highlighting is lost.
2957
1a40f80c
VS
29582013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2959
2960 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
2961 gfxpayload=keep if cbfb is active.
2962
e343549c
VS
29632013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2964
2965 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
2966
45fbd9a2
VS
29672013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2968
2969 Add missing video ids to coreboot and ieee1275 video.
2970
ab1440bd
VS
29712013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2972
2973 * util/grub-mkrescue.in: Add mips-arc support.
2974
cdeb8324
VS
29752013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2976
2977 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
2978
8528c879
VS
29792013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 Move mips-arc link address. Previous link address was chosen
2982 in belief that RAM on SGI platforms grows down while in fact it
2983 grows up from an unusual base.
2984
17fca573
VS
29852013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2986
2987 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
2988 Fix a type which prevented CD-ROM and floppy boot.
2989
d178788e
VS
29902013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 Support coreboot framebuffer.
2993
2994 * grub-core/video/i386/coreboot/cbfb.c: New file.
2995
fe4c3e7e
VS
29962013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
2999 detecting too small regions.
3000
ec2dd179
VS
30012013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
3004
872dac83
VS
30052013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
3008 Remove dprintf.
3009 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3010
90ec4b7f
VS
30112013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3012
3013 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
3014 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3015 * grub-core/loader/powerpc/ieee1275/linux.c
3016 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3017
f32555dd
VS
30182013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3021 Look for /boot-rom as well as /rom/boot-rom.
3022
38649799
VS
30232013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
3026 handling when creating text_layer failed.
3027 * grub-core/video/video.c (grub_video_create_render_target):
3028 Set result to 0 on error.
3029 (grub_video_delete_render_target): Do not dereference NULL.
3030
aeace7f7
VS
30312013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
3034 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
3035 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
3036 (grub_linux_load64): Mask out 2 high bits.
3037
4eafa175
AB
30382013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
3039
3040 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
3041 more place.
3042
daaa64bd
VS
30432013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 Add support for pseries and other bootinfo machines to grub-mkrescue.
3046
3047 Tested by: Paulo Flabiano Smorigo.
3048
d0d2daa6
VS
30492013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * util/grub-mkrescue.in: Add GPT for EFI boot.
3052
b193e100
VS
30532013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
3056 It improves performance in qemu.
3057
a0f8f3ac
VS
30582013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3059
3060 * build-aux/snippet: Add missing gnulib files.
3061
284df0e2
AB
30622013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3063
3064 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
3065
740201f3
AB
30662013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3067
3068 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
3069
a7e03923
PJ
30702013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
30712013-04-15 Peter Jones <pjones@redhat.com>
3072
3073 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
3074 sectors.
3075 Based on patch by Peter Jones.
3076
25fc51a8
VS
30772013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 Fix DMRAID partition handling.
3080
88017d47
VS
30812013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3082
3083 * tests/grub_cmd_date.in: Skip on sparc64.
3084
fa7d914e
VS
30852013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3086
3087 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
3088 firmware error messages.
3089
cbe57a48
VS
30902013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
3093 source and destination differ.
3094
21aecce0
VS
30952013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
3098 detection.
3099
25092d29
VS
31002013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
3103 match config-util.h to avoid warnings and increase compatibility.
3104
79451522 31052013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 31062013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
3107
3108 Add option to compress files on install/image creation.
3109
78b7d77b
VS
31102013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * docs/grub-dev.texi: Rearrange menu to match the section order.
3113 Reported by: Bryan Hundven.
3114
cc2fa5ec
VS
31152013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
3118
b49fe879
VS
31192013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 Move GRUB out of system area when using xorriso 1.2.9 or later.
3122
5351da81
VS
31232013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * tests/grub_cmd_date.in: Add missing exit 1.
3126
c9d586ea
VS
31272013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * tests/partmap_test.in: Skip on sparc64.
3130
3f729741
VS
31312013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 Support grub-shell on sparc64.
3134
8ca86b3a
VS
31352013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 Support mkrescue on sparc64.
3138
aa1af9bb
VS
31392013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 Allow IEEE1275 ports on path even if it wasn't detected automatically.
3142 Needed on OpenBIOS due to incomplete device tree.
3143
ac4fea79
VS
31442013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
3147 would be otherwise excluded.
3148
31492013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
3150
3151 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3152 Inline name defines used only once.
3153
fe22b071
VS
31542013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 Fix memory leaks in ofnet.
3157 Reported by: Francesco Lavra.
3158
9d21381b
VS
31592013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3160
3161 * docs/man/grub-glue-efi.h2m: Add missing file.
3162
07aec23c
VS
31632013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3164
3165 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
3166
67ab8353
VS
31672013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 Better support Apple Intel Macs on CD.
3170
ba44ca6d
VS
31712013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 Replace stpcpy with grub_stpcpy in tools.
3174
bbdd6305
VS
31752013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 Handle Japanese special keys.
3178 Reported by: Hiroyuki YAMAMORI.
3179 Codes supplied by: Hiroyuki YAMAMORI.
3180
8573d302
VS
31812013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 * util/grub-mkimage.c: Document memdisk implying --prefix.
3184
d70dbab7
VS
31852013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3186
3187 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
3188 much we can do about it anyway.
3189
51a4c3e3
AN
31902013-04-12 Aleš Nesrsta <starous@volny.cz>
3191
3192 Fix handling of split transfers.
3193
92c8f58d
VS
31942013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3195
3196 * grub-core/net/http.c: Fix bad free.
3197
b7d17a49
VS
31982013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3199
3200 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
3201 than buffer size.
3202
a3d566d4
VS
32032013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 Disable partmap check on i386-ieee1275 due to openfirmware issues.
3206
a936af56
VS
32072013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * tests/util/grub-shell.in: Fix it on powerpc.
3210
51212234
VS
32112013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 Turn off QEMU ACPI-way since new releases don't have shutdown port
3214 anymore.
3215
a21eec9e
VS
32162013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * docs/grub.texi: Update coreboot status info.
3219
e3734b84
VS
32202013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * tests/grub_cmd_date.in: New test for datetime.
3223
f9d40055
VS
32242013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * tests/partmap_test.in: Fix missing qemudisk setting.
3227
dbc56d8f
VS
32282013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 Support i386-ieee1275 grub-mkrescue and make check on it.
3231
a79b8a15
VS
32322013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
3235 feature for it.
3236
48f39bb4
VS
32372013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
3240 GRUB_CMDLINE_XEN_DEFAULT.
3241 Reported by: Marc Warne (GigaTux) <gigatux>
3242
053cfcdd
VS
32432013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3244
3245 Import new gnulib.
3246
93cd84df
VS
32472013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 Use ACPI shutdown intests as traditional port was removed.
3250
f4b1fa4f
AB
32512013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
3252
3253 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
3254 distinction.
3255
49818a59
VS
32562013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
3259 Fix few warining messages and leaks while on it.
3260
9277a306
AB
32612013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
3262
3263 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
3264 links under grub-core/lib/libgcrypt-grub/mpi.
3265
d5e2a158
VS
32662013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 Fix ia64-efi image generation on big-endian machines. Deduplicate
3269 some code while on it.
3270 Reported by: Leif Lindholm.
3271
18866643
AB
32722013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3273
3274 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
3275 as extra_dist.
3276
ca53deb8
AB
32772013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3278
3279 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
3280
d4c4b8e1
BH
32812013-04-08 Bryan Hundven <bryanhundven@gmail.com>
3282
3283 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
3284 texinfo-5.1.
3285
47043f95
VS
32862013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3287
3288 * grub-core/normal/term.c: Few more fixes for menu entry editor
3289 rendering.
3290 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3291
a3216068
VS
32922013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * grub-core/normal/term.c: Few more fixes for menu entry editor
3295 rendering.
3296 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3297
21026747
AB
32982013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3299
3300 * conf/Makefile.extra-dist (EXTRA_DIST): Add
3301 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
3302
59624ca8
AB
33032013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3304
3305 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
3306 instead of hardcoding grub.mo.
3307
1f44478c
FN
33082013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
3309
3310 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
3311
eeada7b1
VS
33122013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
3315 grub-core/disk/geli.c.
3316
132867de
VS
33172013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * util/grub-mkfont.c: Prefer enum to #define.
3320
de73de17
VS
33212013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3322
3323 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
3324
1865baa7
VS
33252013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3326
3327 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
3328
ce7d92a9
VS
33292013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3330
3331 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
3332
52eab656
VS
33332013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
3336
98b23b95
VS
33372013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3338
3339 * include/grub/bsdlabel.h: Use enums.
3340
0467a5dd
VS
33412013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 Move GRUB_CHAR_BIT to types.h.
3344
16cc9f03
AB
33452013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3346
3347 * docs/grub.texi: Document more user commands.
3348
3152aecb
AB
33492013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3350
3351 * docs/grub.texi: Document menuentry --id option.
3352
c506fc30
FL
33532013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
3354
3355 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
3356
aa428238
VS
33572013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 Unify file copying setup across different install scripts. Add
3360 options for performing partial install.
3361
efe0cdda
PJ
33622013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
33632013-04-04 Peter Jones <pjones@redhat.com>
3364
3365 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
3366
f75835bd
VS
33672013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3368
3369 Use TSC as a possible time source on i386-ieee1275.
3370
2cd5ce6c
VS
33712013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3372
3373 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
3374 Init err.
3375
c9625630
VS
33762013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 * util/grub-setup.c (setup): Handle some corner cases.
3379
be008941
VS
33802013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3381
3382 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
3383
1a78d573
VS
33842013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3385
3386 * grub-core/commands/verify.c: Save verified file to avoid it being
3387 tampered with after verification was done.
3388
db8ff59f
VS
33892013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
3392 reported width by one to compensate for curesor algorithm problem.
3393
91bf46b1
VS
33942013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3395
3396 Fix screen corruption in menu entry editor and simplify the code
3397 flow while on it.
3398
a7b1d693
AB
33992013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
3400
3401 * util/grub-mount.c (fuse_init): Return error if fuse_main
3402 failed.
3403
31df9ad8
FL
34042013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
3405
3406 * include/grub/elf.h: Add missing ARM relocation codes and fix
3407 existing ones.
3408
07f392eb
VT
34092013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3410
3411 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
3412
9efd73ec 34132013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
34142013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
3417 into account when calculating radius.
3418
34192013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
3420
3421 * grub-core/gfxmenu/view.c: Fix off-by-one error.
3422
4985ddaa
VT
34232013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3424
3425 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
3426
8c3635ff
RS
34272013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3428
3429 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
3430 missing closing bracket.
3431
74a35e69
RS
34322013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3433
3434 * INSTALL: Mention xorriso requirement.
3435
40f1c000
AB
34362013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
3437
3438 * grub-core/commands/verify.c: Fix hash algorithms values for
3439 the first three hashes - they start with 1, not with 0.
3440
e75fdee4
VS
34412013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
3444 Try terminating EFI services several times due to quirks in some
3445 implementations.
3446
33028f4c
CW
34472013-03-26 Colin Watson <cjwatson@ubuntu.com>
3448
3449 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
3450 skipping Event, Device, Processor, PowerRes, ThermalZone, and
3451 BankField extended opcodes.
3452 (get_sleep_type): Add minimal scope handling (just enough to
3453 handle setting the scope to the root path).
3454 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
3455 * include/grub/acpi.h: Add enumeration values for Event, Device,
3456 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
3457
33871a10
VT
34582013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
3459
3460 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
3461 memory leak.
3462
8990963a
VS
34632013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/disk/ahci.c: Give more time for AHCI request.
3466
daae8f9e
VS
34672013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
3470 command.
3471
6a7fb94b
VS
34722013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 Replace the region at 0 from coreboot tables to available in BSD
3475 memory map.
3476
ff99babd
VS
34772013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
3480 non-BIOS platforms.
3481
30d6b1b2
VS
34822013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
3485 platforms.
3486
6ccd0b31
VS
34872013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
3490 handling of multi-device filesystems.
3491
23c9cc04
VS
34922013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
3495 platforms.
3496
ce50dbd7
VS
34972013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 Add new 'proc' filesystem framework and put luks_script into it.
3500
d975e8d5
VS
35012013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3502
3503 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
3504 and qemu.
3505
e73ba5e8
VS
35062013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
3509
92750e4c
VS
35102013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 Add ability to generate newc additions on runtime.
3513
0ec45a68
VS
35142013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
3517 description.
3518
320abd43
VS
35192013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 * po/POTFILES.in: Regenerate.
3522
d7a6506e
VS
35232013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * grub-core/commands/verify.c (hashes): Add several hashes
3526 from the spec.
3527
8fe05def
VS
35282013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 Slight improve in USB-related boot-time checkpoints.
3531
524e2766
VS
35322013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * grub-core/commands/boottime.c: Fix copyright header.
3535
cc19857a
VS
35362013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3537
3538 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
3539 coreboot tables content. Support for cbmemc.
3540
ef8810e9
VS
35412013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3542
3543 Fix a conflict between ports structures with 2 controllers of
3544 same kind.
3545
e9dabdfa
VS
35462013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3547
3548 * include/grub/boottime.h: Add missing file.
3549
f6df57d2
VS
35502013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 Initialize USB ports in parallel to speed-up boot.
3553
d745dda7
VS
35542013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3555
3556 Fix USB devices not being detected when requested
3557 due to delayed attach.
3558
e5a2dd7b
VS
35592013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3560
e744219b
VS
3561 Implement boot time analysis framework.
3562
35632013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3564
3565 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
3566 descriptor to just receive it as argument rather than endpoint
3567 address.
3568
5dd6f587
VS
35692013-03-19 Aleš Nesrsta <starous@volny.cz>
3570
3571 Better estimate the maximum USB transfer size.
3572
2f1071d5
VS
35732013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3574
3575 Resend a packet if we got the wrong buffer in status.
3576
46ecfc49
VS
35772013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
3580 multiplication rather than division.
3581
ea811130
VS
35822013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3583
3584 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
3585 than divisions.
3586
d2789cf0
VS
35872013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
3590 operations to have intended shifts and not divisions.
3591
a9c94590
VS
35922013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
3595 intended shifts rather than division.
3596
84cfe81b
VS
35972013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
3600 computation for some years before epoch. Avode confusing division
3601 while on it.
3602
21344ef6
VS
36032013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 * grub-core/video/i386/pc/vbe.c
3606 (grub_video_vbe_print_adapter_specific_info): Replace division by
3607 shifts.
3608
3f2b4d1a
VS
36092013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 Adjust types in gdb module to have intended unsigned shifts rather than
3612 signed divisions.
3613
3dac5878
VS
36142013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3615
3616 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
3617 maximum size is 4G - 1 on hfs
3618
5341c0fb
VS
36192013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
3622
fc3ff2a2
VS
36232013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
3626 function.
3627
81455e8e
AB
36282013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
3629
3630 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
3631 causing gcc error with gcc 4.7.1.
3632
efd4f117
NZ
36332013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
3634
3635 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
3636 dereference null pointer. While the code is technically correct, gcc
3637 may eliminate a null check if pointer is already dereferenced.
3638
e11645f4
NZ
36392013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
3640
3641 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
3642 OOM check.
3643 * grub-core/normal/term.c (read_terminal_list): Likewise.
3644
77468368
VS
36452013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 Lift up core size limits on some platforms. Fix potential memory
3648 corruption with big core on small memory systems. Document remaining
3649 limits.
3650
f6b58fe5
VS
36512013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
3654 gotoxy to 0,0.
3655
19ce697d
VS
36562013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 Remove all trampoline support. Add -Wtrampolines when
3659 present. Remove symbols used for trampolines to make
3660 link fail if trampolines are present.
3661
73b5d90f
VS
36622013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3663
3664 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
3665 append out of its parent.
3666
cb758e96
VS
36672013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3668
3669 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
3670 parent.
3671
3188131f
VS
36722013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3673
3674 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
3675 all vars to a macro. All users updated.
3676
e42b2514
VS
36772013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3678
3679 * grub-core/disk/ieee1275/nand.c: Fix compilation on
3680 i386-ieee1275.
3681
83e1a1a1
VS
36822013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
3685
1d5a880f
VS
36862013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
3689
6e4146c4
VS
36902013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 Move to more hookless approach in IEEE1275 devices handling.
3693
99fcda8a
VS
36942013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * grub-core/kern/term.c (grub_term_normal_color),
3697 (grub_term_highlight_color): Add back lost defaults.
3698
73bf57e2
VS
36992013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 Make elfload not use hooks. Opt for flags and iterators instead.
3702
7f8c105f
VS
37032013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
3706 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
3707
396d4091
VS
37082013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * grub-core/script/execute.c (gettext_append): Remove nested functions.
3711
37122013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
3715 hook pass-through parameter. All users updated and unnested.
3716
74a27421
VS
37172013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
3720 out of its parent.
3721
b46d4213
VS
37222013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3723
3724 * grub-core/fs/hfs.c: Remove nested functions.
3725
e114c3cc
VS
37262013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3727
3728 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
3729 the context through.
3730 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
3731
f9b7d780
VS
37322013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * util/grub-editenv.c (list_variables): Move print_var out of its
3735 parent.
3736
ca9c2608
VS
37372013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
3740 function.
3741
5d983f5f
VS
37422013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * grub-core/gentrigtables.c: Make tables const.
3745
3056d3e7
VS
37462013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 Remove nested functions from videoinfo iterators.
3749
e2303774
VS
37502013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
3753 for 64-bit platforms.
3754
f42e3a2f
VS
37552013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
3758 a FOR_CHILDREN macro.
3759
be174e5e
VS
37602013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
3763 platform from firmware path.
3764
0789b672
VS
37652013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 Enable linux16 on non-BIOS systems for i.a. memtest.
3768
3769 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
3770 correctly.
3771 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
3772
005a9c32
VS
37732013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
3776 Fix end of table condition.
3777
ff2b3cd9
VS
37782013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
3781 out of its parent.
3782
4fc40ff8
VS
37832013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 * grub-core/fs/jfs.c: Remove nested functions.
3786
be42d97a
VS
37872013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * grub-core/fs/minix.c: Remove nested functions.
3790
99373ce4
VS
37912013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * grub-core/fs/iso9660.c: Remove nested functions.
3794
5aec2afe
VS
37952013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
3798 of parent function.
3799
6c69e691
VS
38002013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * util/grub-fstest.c: Remove nested functions.
3803
43c91882
VS
38042013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 * grub-core/loader/machoXX.c: Remove nested functions.
3807
4eb8b756
CW
38082013-02-27 Colin Watson <cjwatson@ubuntu.com>
3809
3810 Remove nested functions from disk and file read hooks.
3811
3812 * include/grub/disk.h (grub_disk_read_hook_t): New type.
3813 (struct grub_disk): Add read_hook_data member.
3814 * include/grub/file.h (struct grub_file): Likewise.
3815 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
3816 argument.
3817
3818 Update all callers.
3819
df6da5a5
AB
38202012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
3821
3822 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
3823 Fix off by one error in enumerating extended partitions.
3824
21aecde5
AB
38252013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
3826
3827 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
3828 memory leak if device name is not found.
3829
f1a19118
AB
38302013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
3831
3832 * grub-core/normal/menu_entry.c (update_screen): remove
3833 unused variable `off' which caused scroll down arrow to be always shown.
3834
958bfd20
AB
38352013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
3836
3837 * grub-core/normal/menu_entry.c (insert_string): fix off by one
3838 access to unallocated memory.
3839
b7b78edb
AB
38402013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
3841
3842 * Makefile.util.def: Add partmap/msdos.c to common library.
3843 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
3844 * grub-core/disk/ldm.c: Check for existence of
3845 GRUB_PC_PARTITION_TYPE_LDM.
3846
28d468d6
VS
38472013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3848
3849 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
3850 sizes and display sector size.
3851
d55ffb02
VS
38522013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 Implement new command cmosdump.
3855
b5ea6ce0
VS
38562013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3857
3858 Support Openfirmware disks with non-512B sectors.
3859
3860 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
3861 size of the disk.
3862 * (grub_ofdisk_get_block_size): New function.
3863 * (grub_ofdisk_prepare): Use the correct block size.
3864 * (grub_ofdisk_read): Likewise.
3865 * (grub_ofdisk_write): Likewise.
3866 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
3867 New proto.
3868
cc0e476f
VS
38692013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
3872
c5dbdc33
VS
38732013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
3876 on first error.
3877
3f078c0f
VS
38782013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3879
3880 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
3881 freeing it.
3882
66a93674
VS
38832013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3884
3885 Implement USBDebug (full USB stack variant).
3886
c9f0c134
VS
38872013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
3890 unless they have unexpected values.
3891
cfe1288b
VS
38922013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3893
3894 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
3895 grub_print_error.
3896
e42b9969
VS
38972013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3898
3899 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
3900 zero-out of port structure.
3901
cf94fd62
VS
39022013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
3903
3904 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
3905 of extended attributes.
3906
f81ef4b5
AB
39072013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
3908
3909 * util/grub-install.in: change misleading comment about
3910 device.map creation
3911
af18fdb4
VS
39122013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
3915 when menu highlight color isn't set.
3916
08bcec50
M
39172013-01-27 C. Masloch <pushbx@38.de>
3918
3919 Improve FreeDOS direct loading support compatibility.
3920
3921 * include/grub/i386/relocator.h (grub_relocator16_state):
3922 New member ebp.
3923 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
3924 variable.
3925 (grub_relocator16_boot): Handle %ebp.
3926 * grub-core/lib/i386/relocator16.S: Likewise.
3927 * grub-core/loader/i386/pc/freedos.c:
3928 Load BPB to pass kernel which partition to load from.
3929 Check that kernel file is not too large.
3930 Set register dl to BIOS unit number as well.
3931
7782b8a6
CW
39322013-01-22 Colin Watson <cjwatson@ubuntu.com>
3933
3934 * util/grub-reboot.in (usage): Document the need for
3935 GRUB_DEFAULT=saved.
3936 * util/grub-set-default.in (usage): Likewise.
3937 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
3938
e661c180
VS
39392013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
3942 than defining WORDS_BIGENDIAN manually.
3943
1c22ca9a
VS
39442013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3945
3946 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
3947 invariants.
3948
d44892fe
CW
39492013-01-21 Colin Watson <cjwatson@ubuntu.com>
3950
3951 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
3952 nested.
3953 (blit_comb: add_device_width): Likewise.
3954
5fdbaed1
CW
39552013-01-21 Colin Watson <cjwatson@ubuntu.com>
3956
3957 Remove nested functions from USB iterators.
3958
3959 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
3960 (grub_usb_controller_iterate_hook_t): Likewise.
3961 (grub_usb_iterate): Add hook_data argument.
3962 (grub_usb_controller_iterate): Likewise.
3963 (struct grub_usb_controller_dev.iterate): Likewise.
3964
3965 Update all implementations and callers.
3966
4250985a
VS
39672013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
3970 margin when not needed.
3971
7d8848f3
VS
39722013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3973
bc136973 3974 Make color variables global instead of it being per-terminal.
7d8848f3
VS
3975
39762013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3977
bc136973
VS
3978 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
3979 asterisk.
7d8848f3 3980
ed12a003
CW
39812013-01-21 Colin Watson <cjwatson@ubuntu.com>
3982
3983 Fix powerpc and sparc64 build failures caused by un-nesting memory
3984 map iterators.
3985
6a0db449
CW
39862013-01-21 Colin Watson <cjwatson@ubuntu.com>
3987
3988 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
3989 parameter declarations.
3990
ccd86b21
VS
39912013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3992
3993 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
3994
822b726b
VS
39952013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 Improve spkmomdem reliability by adding a separator between bytes.
3998
115c2cc1
CW
39992013-01-21 Colin Watson <cjwatson@ubuntu.com>
4000
4001 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
4002 an Acer registration utility with several sightings in the wild.
4003 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
4004
fc524edf
CW
40052013-01-21 Colin Watson <cjwatson@ubuntu.com>
4006
4007 Remove nested functions from filesystem directory iterators.
4008
4009 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
4010 (struct grub_fs.dir): Add hook_data argument.
4011
4012 Update all implementations and callers.
4013
53d3e4e3
CW
40142013-01-21 Colin Watson <cjwatson@ubuntu.com>
4015
4016 * docs/grub.texi (Multi-boot manual config): Fix typo for
4017 "recommended".
4018
c821711f
LL
40192013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4020
4021 * util/grub-mkimage.c (main): Postpone freeing arguments.output
4022 until after its use in generate_image.
4023
6a0debbd
CW
40242013-01-20 Colin Watson <cjwatson@ubuntu.com>
4025
4026 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
4027 initrd size to addr_min, since the initrd will be allocated after
4028 this address.
4029
f41e08db
AB
40302013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4031
4032 * conf/Makefile.common: Fix autogen rules to pass definition
4033 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
4034
77529e0f
LL
40352013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4036
4037 * include/grub/elf.h: Update ARM definitions based on binutils.
4038
b879aa7b
VS
40392013-01-20 Aleš Nesrsta <starous@volny.cz>
4040
4041 Split long USB transfers into short ones.
4042
8eb8284d
AB
40432013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4044
4045 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
4046 is interrupted by ESC.
4047
08dad2dc
VS
40482013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 * util/grub-script-check.c (main): Uniform the error message.
4051
6c724b85
CW
40522013-01-20 Colin Watson <cjwatson@ubuntu.com>
4053
4054 Remove nested functions from ELF iterators.
4055
25239370
CW
40562013-01-20 Colin Watson <cjwatson@ubuntu.com>
4057
4058 Remove nested functions from device iterators.
4059
4060 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
4061 (grub_arc_iterate_devs): Add hook_data argument.
4062 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
4063 (struct grub_ata_dev.iterate): Add hook_data argument.
4064 * include/grub/device.h (grub_device_iterate_hook_t): New type.
4065 (grub_device_iterate): Add hook_data argument.
4066 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
4067 (struct grub_disk_dev.iterate): Add hook_data argument.
4068 (grub_disk_dev_iterate): Likewise.
4069 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
4070 Likewise.
4071 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
4072 Likewise.
4073 * include/grub/partition.h (grub_partition_iterate_hook_t): New
4074 type.
4075 (struct grub_partition_map.iterate): Add hook_data argument.
4076 (grub_partition_iterate): Likewise.
4077 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
4078 (struct grub_scsi_dev.iterate): Add hook_data argument.
4079
4080 Update all callers.
4081
6c0314d6
CW
40822013-01-20 Colin Watson <cjwatson@ubuntu.com>
4083
4084 Fix typos for "developer" and "development".
4085
600dc5f1
VS
40862013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4087
4088 Add license header to spkmodem-recv.c.
4089
17334a6b
VS
40902013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4091
4092 Rewrite spkmodem to use PIT for timing. Double the speed.
4093
7d462559
VS
40942013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4095
4096 Add new command pcidump.
4097
b78d6c32
VS
40982013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4099
4100 New terminal outputs using serial: morse and spkmodem.
4101
34f71cb8
VS
41022013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 Improve bidi handling in entry editor.
4105
4542e71b
VS
41062013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
4109 argument to prevent name collision.
4110
09fd6d82
CW
41112013-01-15 Colin Watson <cjwatson@ubuntu.com>
4112
4113 Remove nested functions from script reading and parsing.
4114
4115 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
4116 getline_data argument, passed to getline.
4117 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
4118 getline_data argument, passed to grub_parser_split_cmdline.
4119 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
4120 lexerstate->getline_data to lexerstate->getline.
4121 (grub_script_lexer_init): Add getline_data argument, saved in
4122 lexerstate->getline_data.
4123 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
4124 argument, passed to grub_script_parse.
4125 * grub-core/script/script.c (grub_script_parse): Add getline_data
4126 argument, passed to grub_script_lexer_init.
4127 * include/grub/parser.h (grub_parser_split_cmdline): Update
4128 prototype. Update all callers to pass appropriate getline data.
4129 (struct grub_parser.parse_line): Likewise.
4130 (grub_rescue_parse_line): Likewise.
4131 * include/grub/reader.h (grub_reader_getline_t): Add void *
4132 argument.
4133 * include/grub/script_sh.h (struct grub_lexer_param): Add
4134 getline_data member.
4135 (grub_script_parse): Update prototype. Update all callers to pass
4136 appropriate getline data.
4137 (grub_script_lexer_init): Likewise.
4138 (grub_normal_parse_line): Likewise.
4139
4140 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
4141 data argument.
4142 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
4143 static instead of nested. Rename to ...
4144 (grub_parser_execute_getline): ... this.
4145 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
4146 data argument.
4147 * grub-core/normal/main.c (read_config_file: getline): Make static
4148 instead of nested. Rename to ...
4149 (read_config_file_getline): ... this.
4150 (grub_normal_read_line): Add unused data argument.
4151 * grub-core/script/execute.c (grub_script_execute_sourcecode:
4152 getline): Make static instead of nested. Rename to ...
4153 (grub_script_execute_sourcecode_getline): ... this.
4154 * util/grub-script-check.c (main: get_config_line): Make static
4155 instead of nested.
4156
d0d4b8a0
CW
41572013-01-15 Colin Watson <cjwatson@ubuntu.com>
4158
4159 Remove nested functions from memory map iterators.
4160
4161 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
4162 argument, passed to hook.
4163 * grub-core/kern/i386/coreboot/mmap.c
4164 (grub_linuxbios_table_iterate): Likewise.
4165 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
4166 instead of nested.
4167 (grub_machine_mmap_iterate): Add hook_data argument.
4168 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
4169 Add hook_data argument, passed to hook.
4170 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
4171 Likewise.
4172 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
4173 Likewise.
4174 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
4175 Likewise.
4176 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
4177 Likewise.
4178 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
4179 Likewise.
4180 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
4181 Likewise.
4182 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
4183 (grub_machine_mmap_iterate): Likewise.
4184 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
4185 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
4186 prototype.
4187 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
4188 Remove NESTED_FUNC_ATTR from here and from all users.
4189 (grub_mmap_iterate): Update prototype.
4190 (grub_efi_mmap_iterate): Update prototype. Update all callers to
4191 pass appropriate hook data.
4192 (grub_machine_mmap_iterate): Likewise.
4193
4194 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
4195 static instead of nested.
4196 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
4197 Rename to ...
4198 (lsmmap_hook): ... this.
4199 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
4200 Likewise.
4201 (grub_efiemu_mmap_fill: fill_hook): Likewise.
4202 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
4203 heap_init): Likewise.
4204 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
4205 Rename to ...
4206 (mmap_iterate_hook): ... this.
4207 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
4208 Likewise.
4209 * grub-core/lib/ieee1275/relocator.c
4210 (grub_relocator_firmware_get_max_events: count): Likewise.
4211 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
4212 to ...
4213 (grub_relocator_firmware_fill_events_iter): ... this.
4214 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
4215 hook): Likewise. Rename to ...
4216 (grub_relocator_alloc_chunk_align_iter): ... this.
4217 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
4218 Rename to ...
4219 (generate_e820_mmap_iter): ... this.
4220 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
4221 Rename to ...
4222 (count_hook): ... this.
4223 (grub_linux_boot: hook): Likewise. Rename to ...
4224 (grub_linux_boot_mmap_find): ... this.
4225 (grub_linux_boot: hook_fill): Likewise. Rename to ...
4226 (grub_linux_boot_mmap_fill): ... this.
4227 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
4228 hook): Likewise. Rename to ...
4229 (grub_fill_multiboot_mmap_iter): ... this.
4230 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
4231 hook): Likewise. Rename to ...
4232 (count_hook): ... this.
4233 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
4234 hook): Likewise. Rename to ...
4235 (grub_fill_multiboot_mmap_iter): ... this.
4236 * grub-core/loader/powerpc/ieee1275/linux.c
4237 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
4238 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
4239 Likewise. Rename to ...
4240 (alloc_phys_choose): ... this.
4241 (determine_phys_base: get_physbase): Likewise.
4242 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
4243 find_hook): Likewise.
4244 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
4245 (malloc_hook: count_hook): Likewise.
4246 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
4247 Likewise. Rename to ...
4248 (lower_hook): ... this.
4249 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4250 (upper_hook): ... this.
4251 (grub_mmap_get_post64: hook): Likewise. Rename to ...
4252 (post64_hook): ... this.
4253 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
4254 Likewise. Rename to ...
4255 (lower_hook): ... this.
4256 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4257 (upper_hook): ... this.
4258 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
4259 (grub_mmap_iterate: fill_hook): Likewise.
4260 (fill_mask): Pass addr and mask within a single struct.
4261 (grub_cmd_badram: hook): Make static instead of nested. Rename
4262 to ...
4263 (badram_iter): ... this.
4264 (grub_cmd_cutmem: hook): Likewise. Rename to ...
4265 (cutmem_iter): ... this.
4266
22099030
VS
42672013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4268
4269 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
4270 delimit path in strings using quotes.
4271 * util/getroot.c (grub_guess_root_devices): Likewise.
4272 (grub_make_system_path_relative_to_its_root): Likewise.
4273 * util/grub-probe.c (probe): Likewise.
4274 * util/ieee1275/ofpath.c (find_obppath): Likewise.
4275 (xrealpath): Likewise.
4276
4a9950ec
VS
42772013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4278
4279 Fix compilation with older compilers.
4280
4281 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
4282 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
4283 declarations.
4284 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
4285 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
4286 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
4287 identifier with b.
4288 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
4289 * include/grub/crypto.h: Add type defines.
4290 * util/import_gcrypth.sed: Remove duplicate type defines.
4291
adcc6020
VS
42922013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4293
4294 New command list_trusted.
4295
4296 * grub-core/commands/verify.c (grub_cmd_list): New function.
4297
a4528937
CW
42982013-01-13 Colin Watson <cjwatson@ubuntu.com>
4299
4300 * util/grub-mkimage.c (generate_image): Fix "size of public key"
4301 info message.
4302
ca3a7446
CW
43032013-01-13 Colin Watson <cjwatson@ubuntu.com>
4304
4305 Remove nested functions from PCI iterators.
4306
4307 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
4308 passed to hook. Update all callers to pass appropriate hook data.
4309 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
4310 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
4311 Remove NESTED_FUNC_ATTR from here and from all users.
4312 (grub_pci_iterate): Update prototype.
4313 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
4314 instead of nested. Rename to ...
4315 (grub_cs5536_find_iter): ... this.
4316 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
4317 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
4318 Likewise.
4319 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
4320 Likewise.
4321 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
4322 Likewise.
4323 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
4324 Likewise.
4325 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
4326 * grub-core/video/radeon_fuloong2e.c
4327 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
4328 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
4329 find_card): Likewise.
4330 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
4331 Likewise.
4332
f8e98fee
VS
43332013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * grub-core/commands/verify.c: Mark messages for translating.
4336
055b36b6
VS
43372013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
4340 fatal.
4341
f7ff879b
VS
43422013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4343
4344 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
4345 fatal.
4346
43472013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
4348
4349 * autogen.sh: Do not try to delete nonexistant files.
4350 * util/import_gcrypth.sed: Add some missing header removals.
4351
01323d49
CW
43522013-01-12 Colin Watson <cjwatson@ubuntu.com>
4353
4354 Clean up dangling references to grub-setup.
4355 Fixes Ubuntu bug #1082045.
4356
4357 * docs/grub.texi (Images): Refer generally to grub-install rather
4358 than directly to grub-setup.
4359 (Installing GRUB using grub-install): Remove direct reference to
4360 grub-setup.
4361 (Device map) Likewise.
4362 (Invoking grub-install): Likewise.
4363 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
4364 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
4365 * util/grub-install.in (usage): Likewise.
4366
4367 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
4368 Apply to grub-bios-setup and grub-sparc64-setup rather than to
4369 grub-setup.
4370 * configure.ac: Remove grub_setup output variable.
4371
4372 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
4373 to grub-bios-setup.
4374 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
4375 grub-setup to grub-sparc64-setup.
4376
5e3b8dcb
VS
43772013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 Import gcrypt public-key cryptography and implement signature checking.
4380
535714bd
VS
43812013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * grub-core/fs/ntfs.c: Ue more appropriate types.
4384 * grub-core/fs/ntfscomp.c: Likewise.
4385 * include/grub/ntfs.h: Likewise.
4386
3e4f3566
VS
43872013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 Support Apple FAT binaries on non-Apple platforms.
4390
4391 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
4392 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
4393 Likewise.
4394 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
4395 Apple FAT binaries.
4396
4dedb13f
VS
43972013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4398
4399 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
4400 sector devices.
4401
f8861eaf
CW
44022013-01-07 Colin Watson <cjwatson@ubuntu.com>
4403
4404 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
4405 explicitly zeroing elements.
4406 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
4407 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
4408 of elements in a structure already allocated using grub_zalloc.
4409 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
4410
86065b0a
CW
44112013-01-07 Colin Watson <cjwatson@ubuntu.com>
4412
4413 * docs/grub.texi (grub_cpu): New subsection.
4414 (grub_platform): Likewise.
4415
c6f1e92f
VS
44162013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
4419
f797ec85
VS
44202013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
4423 divisions.
4424
033d0b4b
VS
44252013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4426
4427 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
4428 * grub-core/fs/ntfscomp.c: Likewise.
4429 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
4430 (grub_ntfs_comp): Likewise.
4431
21d1b9a0
VS
44322013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
4435 Rename to ...
4436 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
4437 of groups_per_block. All users updated.
4438
10ca8645
VS
44392013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4440
4441 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
4442 grub_error properly.
4443 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
4444 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
4445
a4c3ed4c
VS
44462013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
4449 always in /boot/zfs.
4450 Reported by: Yuta Satoh.
4451
0b716507
YS
44522013-01-03 Yuta Satoh <nigoro>
4453
4454 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
4455 ${grub_probe}
4456
00c05e22
VS
44572013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4458
4459 * configure.ac: Extend -Wno-trampolines to host.
4460
dadddb76
VS
44612013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
4464 entry->len = 0.
4465
54ce53ca
CW
44662013-01-03 Colin Watson <cjwatson@ubuntu.com>
4467
4468 * docs/grub.texi (Invoking grub-mkrelpath): New section.
4469 (Invoking grub-script-check): Likewise.
4470
8912efca
CW
44712013-01-03 Colin Watson <cjwatson@ubuntu.com>
4472
4473 * docs/grub.texi (Invoking grub-mount): New section.
4474 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
4475
c3fc8394
CW
44762013-01-02 Colin Watson <cjwatson@ubuntu.com>
4477
4478 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
4479 test failures, so that a failing unit test correctly causes 'make
4480 check' to fail.
4481
45d26abb
CW
44822013-01-02 Colin Watson <cjwatson@ubuntu.com>
4483
4484 Fix failing printf test.
4485
4486 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
4487 '$' in the correct order when collecting type information.
4488
971dd2c6
CW
44892013-01-02 Colin Watson <cjwatson@ubuntu.com>
4490
4491 * docs/grub.texi (configfile): Explain environment variable
4492 handling.
4493 (source): New section.
4494 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
4495
5c67ea6c
CW
44962012-12-31 Colin Watson <cjwatson@ubuntu.com>
4497
4498 Remove several trivially-unnecessary uses of nested functions.
4499
4500 * grub-core/commands/i386/pc/sendkey.c
4501 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
4502 instead of nested.
4503 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
4504 Rename to ...
4505 (legacy_file_getline): ... this.
4506 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
4507 Likewise.
4508 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
4509 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
4510 to ...
4511 (probe_dummy_iter): ... this.
4512 * grub-core/kern/i386/coreboot/mmap.c
4513 (grub_linuxbios_table_iterate: check_signature): Likewise.
4514 * grub-core/kern/parser.c (grub_parser_split_cmdline:
4515 check_varstate): Likewise. Mark inline.
4516 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
4517 an additional parameter.
4518 (find_long: fnd_long): Likewise. Pass two additional parameters.
4519 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
4520 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
4521 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
4522 Likewise. Rename to ...
4523 (grub_cmos_find_port_iter): ... this.
4524 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
4525 Rename to ...
4526 (find_rtc_iter): ... this.
4527
4528 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
4529 function directly into the function body, since it is only called
4530 once.
4531
33a68ac6
CW
45322012-12-30 Colin Watson <cjwatson@ubuntu.com>
4533
4534 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
4535 __attribute__ ((unused)).
4536 * grub-core/video/bochs.c (find_card): Likewise.
4537 * grub-core/video/cirrus.c (find_card): Likewise.
4538 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
4539 * grub-core/video/sis315pro.c (find_card): Likewise.
4540 * grub-core/video/sm712.c (find_card): Likewise.
4541
608b647a
CW
45422012-12-28 Colin Watson <cjwatson@ubuntu.com>
4543
4544 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
4545 Fixes Savannah bug #37821.
4546
fd49ceb3
CW
45472012-12-28 Colin Watson <cjwatson@ubuntu.com>
4548
4549 Apply program name transformations at build-time rather than at
4550 run-time. Fixes Debian bug #696465.
4551
4552 * acinclude.m4 (grub_TRANSFORM): New macro.
4553 * configure.ac: Create output variables with transformed names for
4554 most programs.
4555 * util/bash-completion.d/grub-completion.bash.in: Use
4556 pre-transformed variables for program names.
4557 * util/grub-install.in: Likewise.
4558 * util/grub-kbdcomp.in: Likewise.
4559 * util/grub-mkconfig.in: Likewise.
4560 * util/grub-mkconfig_lib.in: Likewise.
4561 * util/grub-mknetdir.in: Likewise.
4562 * util/grub-mkrescue.in: Likewise.
4563 * util/grub-mkstandalone.in: Likewise.
4564 * util/grub-reboot.in: Likewise.
4565 * util/grub-set-default.in: Likewise.
4566 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4567 * tests/util/grub-shell-tester.in: Remove unused assignment.
4568 * tests/util/grub-shell.in: Likewise.
4569 * util/grub.d/00_header.in: Likewise.
4570
7024b3c0
CW
45712012-12-28 Colin Watson <cjwatson@ubuntu.com>
4572
4573 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
4574
4575 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
4576 HAVE_RAW_DECL_GETS.
4577 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
4578
e3501b13
VS
45792012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
4580
4581 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
4582 Reported by: Eriks Latosheks <foresterlv>.
4583
b40c88a9
VS
45842012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 * docs/grub.texi (Network): Update instructions on generating netboot
4587 image.
4588
ce96d01c
VS
45892012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4590
4591 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
4592 around device name if necessarry.
4593
0f596201
PFS
45942012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4595
4596 * util/grub-install.in: Follow the symbolic link parameter added
4597 to the file command.
4598
600d5bdb
AB
45992012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
4600
4601 * util/grub-install.in: Remove stale TODO.
4602
64ebd2f4
PFS
46032012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4604
4605 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
4606 dynamic allocation for the bootpath buffer.
4607
74b2fe3e
DTB
46082012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
4609
4610 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
4611 window too small.
4612
969b804f
VS
46132012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
4616 argument rather than font name. All users updated.
4617 (grub_gfxterm_set_window): Likewise.
4618
b9f5ebd6
VT
46192012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4620
4621 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
4622 from working.
4623
258f43b7
VS
46242012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4625
4626 * util/getroot.c (convert_system_partition_to_system_disk): Support
4627 nbd disks.
4628
cc1ce5f9
VS
46292012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4630
4631 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
4632 infinite loop on corrupted FS.
4633
e77a16ca
VS
46342012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
4635
4636 Fix big-endian mtime.
4637
4638 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
4639 together sec and usec.
4640 (grub_ufs_dir): Use correct byteswapping for UFS time.
4641
d9c48c7b
VS
46422012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
4643
4644 Support big-endian UFS1.
4645
4646 * Makefile.util.def (libgrubmods): Add ufs_be.c
4647 * grub-core/Makefile.core.def (ufs1_be): New module.
4648 * grub-core/fs/ufs_be.c: New file.
4649 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
4650 the file.
4651
2f9f40ba
LL
46522012-11-28 Leif Lindholm <leif.lindholm@arm.com>
4653
4654 * include/grub/types.h: Fix functionality unaffecting typo in
4655 GRUB_TARGET_WORDSIZE conditional macro.
4656
48ff0889
PFS
46572012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4658
4659 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
4660
03711240
GS
46612012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
4662
4663 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
4664 that /netbsd appears first (when it exists).
4665
a31b11bd
CJ
46662012-10-12 Christoph Junghans <ottxor@gentoo.org>
4667
4668 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
4669 Fixes Savannah bug #37558.
4670
e8a5d5d4
CW
46712012-10-12 Colin Watson <cjwatson@ubuntu.com>
4672
4673 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
4674 description of extract_entries_configfile.
4675
46762012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
4677
4678 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
4679 preferred_address.
4680 (grub_cmd_linux): Likewise.
4681 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
4682 preferred_lifetime. Update all users.
4683
288c757d
CW
46842012-09-26 Colin Watson <cjwatson@ubuntu.com>
4685
4686 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
4687 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
4688
0d35da3f
CW
46892012-09-26 Colin Watson <cjwatson@ubuntu.com>
4690
4691 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
4692 errors from grub-probe to /dev/null, not stdout.
4693
b78c3127
VS
46942012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
4697 sector 1.
4698
473959f0
CW
46992012-09-24 Colin Watson <cjwatson@ubuntu.com>
4700
4701 * util/grub-install.in: Make the error message if $source_dir
4702 doesn't exist more useful.
4703
794c8c33
CW
47042012-09-22 Colin Watson <cjwatson@ubuntu.com>
4705
4706 Fix grub-emu build on FreeBSD.
4707
4708 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
4709 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
4710 headers on Linux.
4711 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
4712 implementation is currently Linux-specific.
4713 * util/getroot.c (exec_pipe): Define only on Linux or when either
4714 libzfs or libnvpair is unavailable.
4715 (find_root_devices_from_poolname): Remove unused path variable.
4716
86d08fdb
CW
47172012-09-19 Colin Watson <cjwatson@ubuntu.com>
4718
4719 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
4720 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
4721 should fit before end == 63.
4722
735abf54
CW
47232012-09-19 Colin Watson <cjwatson@ubuntu.com>
4724
4725 * util/grub-setup.c (write_rootdev): Remove unused core_img
4726 parameter. Update all callers.
4727 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
4728 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
4729 GRUB_SETUP_BIOS.
4730
140acd3c
VS
47312012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4732
4733 * util/grub-mkconfig_lib.in (grub_tab): New variable.
4734 (grub_add_tab): New function.
4735 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
4736 * util/grub.d/10_illumos.in: Likewise.
4737 * util/grub.d/10_kfreebsd.in: Likewise.
4738 * util/grub.d/10_linux.in: Likewise.
4739 * util/grub.d/10_netbsd.in: Likewise.
4740 * util/grub.d/10_windows.in: Likewise.
4741 * util/grub.d/10_xnu.in: Likewise.
4742 * util/grub.d/20_linux_xen.in: Likewise.
4743 * util/grub.d/30_os-prober.in: Likewise.
4744
7ddffdad
VS
47452012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4748 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
4749 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
4750 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
4751 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
4752 ieee1275-nocursor.
4753 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
4754 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
4755
4e092454
VS
47562012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4757
4758 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
4759 le-conversion.
4760 Reported by: BURETTE, Bernard.
4761
735abf54 47622012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
4763
4764 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
4765 from comment.
4766
dfd39dbd
CW
47672012-09-14 Colin Watson <cjwatson@ubuntu.com>
4768
4769 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
4770 IEEE1275 machines. Fixes powerpc-emu compilation.
4771 * include/grub/terminfo.h: Likewise.
4772
3bfa763c
VS
47732012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
4776 a const pointer.
4777 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
4778 const pointer.
4779 (efiemu_set_variable): Make vendor_guid a const pointer.
4780
250e475b
VS
47812012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 Don't require grub-mkconfig_lib to generate manpages for programs.
4784
4785 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
4786 dependencies, don't add grub-mkconfig_lib.
4787 (program): Pass empty adddeps.
4788 (script): Pass grub-mkconfig_lib as adddeps.
4789
592fd0e4
VS
47902012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4791
4792 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
4793 * util/getroot.c (grub_find_device): Likewise.
4794 (get_mdadm_uuid): Likewise.
4795 (grub_util_is_imsm): Likewise.
4796 (grub_util_pull_device): Likewise.
4797 * util/grub-probe.c (probe): Likewise.
4798
801a3027
BG
47992012-09-10 Benoit Gschwind <gschwind>
4800
4801 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
4802 (devs): Add devpath_8.
4803
c5052c81
PJ
48042012-09-08 Peter Jones <pjones@redhat.com>
4805
4806 * grub-core/Makefile.core.def (efifwsetup): New module.
4807 * grub-core/commands/efi/efifwsetup.c: New file.
4808 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
4809 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
4810 New define.
4811 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
4812
8e832f71
JS
48132012-09-05 Jiri Slaby <jslaby@suse.cz>
4814
4815 * configure.ac: Add SuSe path.
4816
f0f55752
CW
48172012-09-05 Colin Watson <cjwatson@ubuntu.com>
4818
4819 * NEWS: Fix typo.
4820
ecadc4c2
CW
48212012-09-05 Colin Watson <cjwatson@ubuntu.com>
4822
4823 * util/import_gcry.py: Sort cipher_files, to make build system
4824 generation more deterministic.
4825
64498f25
VS
48262012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4827
4828 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
4829 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
4830 (grub_set_datetime): Likewise.
4831
9cc836a2
VS
48322012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
4835 warnings.
4836
bcfcea01
VS
48372012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
4840
a4099485
VS
48412012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
4844
265c162a
CW
48452012-09-04 Colin Watson <cjwatson@ubuntu.com>
4846
4847 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
4848 required for checkouts from bzr, but it may be useful for users or
4849 distributors wishing to update translations against a tarball
4850 distribution, and it can be helpful for the tarball to be a superset
4851 of what's in bzr.
4852
3d171e95
CW
48532012-09-04 Colin Watson <cjwatson@ubuntu.com>
4854
4855 * Makefile.am (EXTRA_DIST): Add
4856 grub-core/tests/boot/linux.init-mips.S,
4857 grub-core/tests/boot/linux.init-ppc.S, and
4858 grub-core/tests/boot/linux-ppc.cfg.
4859
f2c2503e
CW
48602012-09-04 Colin Watson <cjwatson@ubuntu.com>
4861
4862 * grub-core/mmap/mips/loongson: Remove empty directory.
4863
48642012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
4865
4866 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
4867 gone.
4868
ab2163d5
CW
48692012-09-04 Colin Watson <cjwatson@ubuntu.com>
4870
4871 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
4872 grub-sparc64-setup.
4873
ce938140
GS
48742012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
4875
4876 * configure.ac: Strengthen the test for working -nostdinc -isystem.
4877
529f58a5
GS
48782012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
4879
4880 * po/POTFILES.in: Regenerated.
4881
16cf79e9
GS
48822012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
4883
4884 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
4885 (NetBSD): New subsection.
4886
39b27f1e 48872012-07-22 Ales Nesrsta <starous@volny.cz>
4888
4889 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
4890 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
4891
a885261b
VS
48922012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4893
4894 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
4895 * util/grub.d/10_hurd.in: Add missing quoting.
4896 * util/grub.d/10_illumos.in: Likewise.
4897 * util/grub.d/10_kfreebsd.in: Likewise.
4898 * util/grub.d/10_linux.in: Likewise.
4899 * util/grub.d/20_linux_xen.in: Likewise.
4900
7bd29c01
VS
49012012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 New command `lsefi'.
4904
4905 * grub-core/Makefile.core.def (lsefi): New module.
4906 * grub-core/commands/efi/lsefi.c: New file.
4907 * include/grub/efi/api.h: Add more GUIDs.
4908
ac625d8f
VS
49092012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4910
4911 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
4912 (grub_bsd_elf32_hook): Likewise.
4913 (grub_bsd_elf64_size_hook): Likewise.
4914 (grub_bsd_elf64_hook): Likewise.
4915 (grub_bsd_load_elf): Likewise.
4916
e73bb801
VS
49172012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4918
4919 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
4920 if hash function is unavailable.
4921 (dec_stream_header): Likewise.
4922
e81db8b5
VS
49232012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
4926 filter state.
4927
d187a1c3
VS
49282012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4929
4930 Fix coreboot compilation.
4931
4932 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
4933 (grub_vga_text_init_real): ... this.
4934 (grub_vga_text_fini): Rename to ...
4935 (grub_vga_text_fini_real): ... this.
4936
91a05f64
VS
49372012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4938
4939 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
4940
6af96df7
VS
49412012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4942
4943 * grub-core/lib/legacy_parse.c: Support clear and testload.
4944
4d569e12
VS
49452012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4946
4947 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
4948
073b57bb
VS
49492012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 * grub-core/fs/ext2.c: Experimental support for 64-bit.
4952
a706f4cc
VS
49532012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4954
4955 * grub-core/net/tftp.c (ack): Fix endianness problem.
4956 (tftp_receive): Likewise.
4957 Reported by: Michael Davidsaver.
4958
e7850aa9
VS
49592012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4960
4961 * gentpl.py: Make mans depend on grub-mkconfig_lib.
4962
49632012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4964
4965 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
4966 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
4967 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
4968
35692881
VS
49692012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
4972 efi_mmap_size.
4973 Reported by: Stuart Hayes.
4974
c35fc5bd
VS
49752012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
4978
4979 * grub-core/Makefile.core.def (mda_text): New module.
4980 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
4981 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
4982 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
4983 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
4984 here.
4985 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
4986 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
4987 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
4988 here.
4989 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
4990 to ..
4991 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
4992 ... here
4993 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
4994 here.
4995 * grub-core/term/i386/vga_common.c: Removed.
4996 * include/grub/i386/vga_common.h: Likewise.
4997 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
4998 (grub_vga_cr_bw_read): Likewise.
4999 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
5000 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
5001 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
5002 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
5003 grub_vga_cr_read/grub_vga_cr_write.
5004 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
5005
5f91f701
VS
50062012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 * configure.ac: Bump version to 2.00.
5009 * grub-core/normal/main.c (features): Add feature_200_final.
5010
0c4f85f6
VS
50112012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
50122012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
5013
5014 * NEWS: Fix unclarity and language mistakes.
5015
f923ad22
VS
50162012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5017
5018 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
5019 additional size to 3 pages.
5020 Reported by: Stuart Hayes.
5021
d22029ba
VS
50222012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 * NEWS: Add 2.00 entry.
5025
58eee08f
VS
50262012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
5029 put explicit "/" for empty path.
5030 (wildcard_expand): Improve dprintf.
5031
c59bdff7
VS
50322012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5033
5034 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
5035 it's equal to currnode. This can happen with "" symlink.
5036
5e6a440a
YB
50372012-06-27 Yves Blusseau <blusseau@zetam.org>
5038
5039 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
5040 echo shell command by printf command.
5041
73a68bcb
VS
50422012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
5045 the value returned by firmware is the maximal position, not diumension.
5046 (grub_terminfo_output_state): Use a more sane fallback.
5047
392a603b
VS
50482012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
5051
42d0867f
VS
50522012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
5055 frequency to 150 MHz.
5056
489509f4
VS
50572012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 Apple fixes.
5060
5061 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
5062 __APPLE_
5063 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
5064 definition.
5065 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
5066
9f3fc883
VS
50672012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 Handle slash in HFS label.
5070
5071 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
5072 (grub_hfs_dir): Tanslate slash.
5073 (grub_hfs_label): Don't translate slash.
5074
54853fd7
VS
50752012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5076
5077 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
5078 network protocol listing since it introduces problematic dependency on
5079 net module.
5080
4dc02ddf
VS
50812012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
5084
c50c867d
VS
50852012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 Init video early on yeeloong to avoid being rebooted by watchdog.
5088
5089 * grub-core/Makefile.am (gensm712): New target.
5090 (sm712_start.S): Likewise.
5091 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
5092 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
5093 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
5094 description.
5095 * include/grub/vga.h: Move registry definitions to...
5096 * include/grub/vgaregs.h: ... here.
5097
5f92c8a1
VS
50982012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5099
5100 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
5101 signedness.
5102
e9e6f111
VS
51032012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5104
5105 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
5106 platforms with firmware disk drivers in the core.
5107
754ad9eb
VS
51082012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
5111 informative verbose message.
5112 (read_lv): Handle 64-bit segment size.
5113
315654c2
VS
51142012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5115
5116 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
5117
fb022c79
VS
51182012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5119
5120 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
5121 character but still remove trainling spaces.
5122 (grub_fat_label): Ignore archive flag.
5123
8645f72c
VS
51242012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5125
5126 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
5127 cast between linux_kernel_header and linux_kernel_params.
5128
36498496
VS
51292012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
5132 type for size.
5133 (grub_raid6_recover_func_t): Likewise.
5134 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
5135 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
5136
0b5ea6b8
VS
51372012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5138
5139 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
5140
650cfcfe
GS
51412012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
5142
5143 Fix overflow.
5144
5145 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
5146 [__NetBSD__]: Add explicit cast before bitshift.
5147
8a4d6a44
VS
51482012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 * configure.ac: Bump to 2.00~rc1.
5151
2fb97ed3
VS
51522012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5153
5154 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
5155 half of $a0.
5156
1fa097dc
VS
51572012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
51582012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
5159
5160 * docs/grub.texi: Fix search syntax.
5161 (Multi-boot manual config): Put msdos rather than GPT example.
5162 Grammar corrections.
5163
c890ba78
VS
51642012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
5167
0f92dca7
VS
51682012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
5171
3988c4a0
VS
51722012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
5175 message on double free. Put the value of magic in case of mismatch.
5176
9e86d4c5
VS
51772012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5178
5179 Speed-up video on yeeloong.
5180
5181 * grub-core/video/sm712.c (framebuffer): Remove render_target and
5182 add cached_ptr.
5183 (grub_video_sm712_video_fini): Unmap cached_ptr.
5184 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
5185 (grub_video_sm712_set_active_render_target): Removed.
5186 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5187 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
5188 sync caches.
5189
ed24c312
VS
51902012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5191
5192 Avoid flushing the same line multiple times on loongson.
5193
5194 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
5195 Step in 32 bytes and not 1 byte.
5196 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
5197 Likewise.
5198
d1718e7d
VS
51992012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
5202 subvolumes.
5203
982f1909
VS
52042012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5205
5206 Implement flow control for http.
5207
5208 * grub-core/net/http.c (parse_line): Handle response 206.
5209 (http_receive): Stall if too many packets are in the queue.
5210 (http_establish): Fix range header.
5211 (http_seek): Fix double free.
5212 (http_close): Likewise.
5213 (http_packets_pulled): New function.
5214 (grub_http_protocol): Set http_seek
5215 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
5216 (ack_real): Set window depending on i_stall.
5217 (grub_net_send_tcp_packet): Likewise.
5218 (grub_net_tcp_stall): New function.
5219 (grub_net_tcp_unstall): Likewise.
5220 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
5221 (grub_net_tcp_unstall): Likewise.
5222
bd407d6e
VS
52232012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5224
5225 * grub-core/net/tftp.c: Decrease stall to 50 packets.
5226
c7564b8e
VS
52272012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5228
5229 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
5230
a3706162
VS
52312012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5232
5233 * tests/util/grub-shell.in: Fix a typo.
5234
b27069e0
VS
52352012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5236
5237 Implement flow control for tftp.
5238
5239 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
5240 packets but stop only if stop condition is satisfied.
5241 (grub_net_fs_read_real): Call packets_pulled after real read. Use
5242 `stall' instead of `eof' as stop condition.
5243 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
5244 (http_err): Likewise.
5245 * grub-core/net/tftp.c (ack): Replace the first argument with data
5246 instead of socket.
5247 (tftp_receive): Stall if too many packets are in wait queue.
5248 (tftp_packets_pulled): New function.
5249 (grub_tftp_protocol): Set packets_pulled.
5250 * include/grub/net.h (grub_net_packets): New field count.
5251 (grub_net_put_packet): Increment count.
5252 (grub_net_remove_packet): Likewise.
5253 (grub_net_app_protocol): New field `packets_pulled'.
5254 (grub_net): New field `stall'.
5255
6b9cfac6
VS
52562012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5257
5258 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
5259 sync part to handle them.
5260
f35abd81
VS
52612012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5262
5263 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
5264 * grub-core/net/drivers/ieee1275/ofnet.c
5265 (grub_ieee1275_net_config_real): Likewise.
5266
0e7ec820
VS
52672012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5268
5269 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
5270 the direct route for server/gateway.
5271
9d611a31
VS
52722012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5273
5274 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
5275 IP address to server name since we may not hame the DNS.
5276
418f45ab
VS
52772012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5278
5279 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
5280 freeing random buffer on failure.
5281 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
5282
44a0efc1
VS
52832012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5284
5285 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
5286
531e2241
VS
52872012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5288
5289 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
5290 reserved bytes.
5291 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
5292 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
5293 Handle malloc error correctly.
5294
cde393c9
VS
52952012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5296
5297 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
5298 blocks.
5299
538478d0
VS
53002012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5301
5302 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
5303 increment.
5304
9b55efe0
VS
53052012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5306
5307 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
5308 none is explicitly specified.
5309
9eb832c3
VS
53102012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5311
5312 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
5313 while reallocating.
5314
d6b7c7c9
VS
53152012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5316
5317 Respect netmask from bootp/dhcp.
5318
5319 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
5320 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
5321 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
5322 into ...
5323 (grub_net_add_ipv4_local): ... this.
5324 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
5325 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
5326 (grub_net_add_ipv4_local): New proto.
5327
67caf9eb
VS
53282012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5329
5330 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
5331 determining EFI memory map size.
5332
43657558
VS
53332012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5334
5335 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
5336
eb6d0dd3
VS
53372012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5338
5339 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
5340 when looking for partition separator.
5341
31230544
VS
53422012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5343
5344 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
5345 Escape commas.
5346
918a2517
VS
53472012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5348
5349 Restructure FAT driver to avoid hook in label reading as it hits a
5350 GCC bug.
5351
5352 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
5353 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
5354 (grub_fat_iterate_dir): Split into ...
5355 (grub_fat_iterate_init): ... this, ...
5356 (grub_fat_iterate_fini): ... this, ...
5357 (grub_fat_iterate_dir_next): ... and this. All users updated.
5358
9f1d654e
VS
53592012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5360
5361 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
5362 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
5363 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5364 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
5365 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
5366 New fields last_key and last_key_time.
5367 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
5368 extended key-esc into extended key-extended key.
5369
52f0f643
VS
53702012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5371
5372 Avoid unnecessary memcpy of whole video buffer.
5373
5374 * grub-core/video/fb/video_fb.c (dirty): New struct.
5375 (framebuffer): Add members current_dirty and previous_dirty.
5376 (dirty): New function.
5377 (grub_video_fb_fill_rect): Update dirty.
5378 (common_blitter): Likewise.
5379 (grub_video_fb_scroll): Likewise.
5380 (doublebuf_blit_update_screen): Copy only dirty part.
5381 (doublebuf_pageflipping_update_screen): Likewise.
5382 (grub_video_fb_doublebuf_blit_init): Init dirty.
5383 (doublebuf_pageflipping_init): Likewise.
5384 (grub_video_fb_setup): Likewise.
5385
e169a180
VS
53862012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
5389 poll rate.
5390
48556879
VS
53912012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5392
5393 Fix wildcard regexp dot and other special characters handling.
5394 Reported by: Robert Mabee.
5395
5396 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
5397 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
5398 (split_path): Trigger expansion on '?'.
5399 (unescape): New function.
5400 (wildcard_expand): Unescape parts copied without globbing.
5401 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
5402 (grub_script_arglist_to_argv): Don't unescape expansions.
5403
0494408e
VS
54042012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5405
5406 * include/grub/net.h (grub_net_card): New member txbufsize.
5407 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
5408 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5409 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
5410 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
5411 txbufsize.
5412 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
5413 compatible property to check for macs. Set
5414 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5415 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
5416 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
5417 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
5418 (send_card_buffer): Use txbuf.
5419 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
5420 nested function out of the parent while on it.
5421
cc35fe8f
VS
54222012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
5425 presence check.
5426 (grub_ieee1275_net_config_real): Fix config pointer.
5427
970a0a09
VS
54282012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5429
5430 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
5431 filename parsing to non-block devices.
5432
3e19bf87
VS
54332012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5434
5435 * grub-core/kern/device.c (grub_device_open): Remove dead code.
5436
c62d1a0c
VS
54372012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5438
5439 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
5440 All users updated.
5441
ef76bec3
VS
54422012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
5445 UUID search command even if hints probing failed.
5446
54472012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
5448
5449 * po/POTFILES.in: Regenerated.
5450
70aaf305
VS
54512012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
5452
5453 Speed-up video on fuloong.
5454
5455 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
5456 New function.
5457 (grub_pci_device_unmap_range): Handle non-cached address.
5458 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
5459 add direct_ptr.
5460 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
5461 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
5462 (grub_video_sis315pro_set_active_render_target): Removed.
5463 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
5464 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5465 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
5466 sync caches.
5467 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
5468 New proto.
5469
10400f0b
VS
54702012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5471
5472 * docs/grub.texi (Multi-boot manual config): New section.
5473
ba67e2c6
VS
54742012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 Avoid slow read-back from VRAM.
5477
5478 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
5479 Move from here ...
5480 * grub-core/video/fb/video_fb.c
5481 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
5482 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
5483 (front_target): Remove front_target. Add pages.
5484 (grub_video_fb_init): Skip setting front_pages.
5485 (grub_video_fb_fini): Likewise.
5486 (doublebuf_blit_update_screen): Use pages.
5487 (grub_video_fb_doublebuf_blit_init): Likewise.
5488 (doublebuf_pageflipping_init): Allocate offscreen buffer.
5489 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
5490 (grub_video_fb_setup): Prefer doublebuffing.
5491
377c98cb
VS
54922012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
5495 gzio.
5496
eac49cff
VS
54972012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5498
5499 Add loongson tests.
5500
5501 * tests/util/grub-shell.in: Handle loongson.
5502 * tests/partmap_test.in: Add loongson to the list of platform using ATA
5503 drivers.
5504 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
5505 Reboot instead of shutdown if REBOOT is defined.
5506
0321415e
VS
55072012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
5510 sized ports since unlike on real hardware qemu supports only 32-bit
5511 regs.
5512
3f2bdd8f
VS
55132012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 * Makefile.util.def (grub-mkrescue): Enable on loongson.
5516 * util/grub-mkrescue.in: Handle loongson.
5517
29a049c9
VS
55182012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
5521 Set is_part appropriately.
5522 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
5523 names. Canonicalize partition without full disk.
5524
4abde346
VS
55252012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5526
5527 Revert usb-quiesce since it's wrong.
5528
5529 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
5530 (grub_ofdisk_init): Don't do quiesce.
5531
61f1d93b
VS
55322012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5533
5534 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
5535 PowerMac workaround to Xserves as well.
5536 Information supplied by: Benjamin Herrenschmidt.
5537
a09eb541
VS
55382012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5539
5540 Don't assume that beginning address is also the entry point on ppc.
5541
5542 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
5543 (grub_linux_boot): Use linux_entry.
5544 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
5545 (grub_linux_load64): Likewise.
5546
505b3c9b
VS
55472012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5548
5549 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
5550
cbe0b4ef
VS
55512012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
5554 needlessly lose the console.
5555
3006e981
VS
55562012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5557
5558 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
5559 space.
5560
4e5a96b0
VS
55612012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5562
7da036bb
VS
5563 Remove non-functional EFI grub_get_rtc. Put a better fatal message
5564 than current grub_get_rtc() not implemented when booted with
5565 coreboot without TSC.
5566
5567 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
5568 Add machine/time.h to kernel headers on loongson.
5569 * grub-core/Makefile.core.def (kernel): Remove
5570 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
5571 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
5572 (grub_get_rtc): Likewise.
5573 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
5574 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
5575 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
5576 * grub-core/kern/i386/tsc.c (grub_tsc_init)
5577 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
5578 rather than installing known non-working time source.
5579 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
5580 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
5581 * include/grub/time.h: Don't include machine/time.h.
5582 * include/grub/efi/time.h: Removed.
5583 * include/grub/i386/efi/time.h: Likewise.
5584 * include/grub/i386/ieee1275/time.h: Likewise.
5585 * include/grub/powerpc/ieee1275/time.h: Likewise.
5586 * include/grub/sparc64/ieee1275/time.h: Likewise.
5587 * include/grub/x86_64/efi/time.h: Likewise.
5588
55892012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5590
5591 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
5592
5593 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
5594 value.
5595 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
5596 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
5597 with dotless variants when any combining above is present.
5598
5561c22d
VS
55992012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
5602 text and not binary.
5603
96f7e60e
VS
56042012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 Stop polling as soon as we have the packet we were waiting for.
5607
5608 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
5609 All users updated.
5610 * grub-core/net/arp.c (have_pending): New var.
5611 (pending_req): Likewise.
5612 (grub_net_arp_send_request): Fill pending_req and use have_pending as
5613 stop indicator.
5614 (grub_net_arp_receive): Set have_pending.
5615 * grub-core/net/dns.c (recv_data): New field stop.
5616 (recv_hook): Set stop.
5617 (grub_net_dns_lookup): Init stop and use as stop condition.
5618 * grub-core/net/http.c (http_establish): Use headers_recv as stop
5619 condition.
5620 * grub-core/net/net.c (grub_net_poll_cards): New argument
5621 stop_condition. Stop when it goes true.
5622 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
5623 indicator.
5624 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
5625
3e747239
VS
56262012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5627
5628 Keep TX and RX buffers on EFI rather than always allocate new ones.
5629
5630 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
5631 card. All users updated.
5632 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
5633 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
5634 (get_card_packet): Likewise.
5635 (grub_efinet_findcards): Init new fields.
5636
f695e99a
VS
56372012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5638
5639 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
5640 compilation error on sparc64.
5641
9e5e66d1
VS
56422012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5643
5644 Use ITC on IA64 rather than broken routine based on daytime.
5645
5646 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
5647 ia64.
5648 (grub_get_rtc) [__ia64__]: Likewise.
5649 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
5650 (get_itc): New function.
5651 (grub_rtc_get_time_ms): Likewise.
5652 (grub_machine_init): Calibrate ITC.
5653 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
5654 Keep only on non-ia64. Don't export since it's broken and used only
5655 if TSC is unavailable.
5656
a1767404
VS
56572012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5658
5659 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
5660 even if it's used.
5661 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
5662 Skip if parent is unused.
5663
34b2bced
VS
56642012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5665
5666 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
5667
5e619f40
VS
56682012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 Fix wildcard escaping.
5671
5672 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
5673 * grub-core/script/execute.c (wildcard_escape): .. to here.
5674 Don't escape dot.
5675 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
5676 * grub-core/script/execute.c (wildcard_unescape): .. to here.
5677 Don't escape dot.
5678 * grub-core/script/execute.c (gettext_append): Always escape.
5679 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
5680 * grub-core/script/yylex.l: Don't cut away the escaping.
5681 * tests/grub_script_echo1.in: Add tests with wildcard.
5682
c8ca5855
VS
56832012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5684
5685 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
5686 (ftdi_hw_configure): Likewise.
5687 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
5688 define.
5689 (real_config): Handle 1.5 stop bits.
5690 (pl2303_hw_configure): Likewise.
5691
7183452c
VS
56922012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5693
5694 * Makefile.am: Add ppc linux bootcheck.
5695 * grub-core/tests/boot/linux-ppc.cfg: New file.
5696 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
5697
f57c84cd
VS
56982012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5699
5700 * tests/grub_script_expansion.in: Skip network protocols.
5701
ecfc6207
VS
57022012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
5705
8d03d284
VS
57062012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5707
5708 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
5709 --rom-directory.
5710 Add -graft-points.
5711
61c42af0
VS
57122012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5713
5714 ESCC serial driver for conducting sautomated tests in qemu.
5715 Not tested on real hardware.
5716
5717 * include/grub/serial.h (grub_serial_port): New field escc_desc.
5718 * grub-core/term/ieee1275/escc.c: New file.
5719 * grub-core/Makefile.core.def (escc): New module.
5720
08fd1291
VS
57212012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
5724 invalid on error.
5725 (serial_hw_fetch): Don't read invalid handle.
5726 (serial_hw_put): Don't write into invalid handle.
5727
08dafeea
VS
57282012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 Add a 1.5 stop bits value.
5731
5732 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
5733 * include/grub/serial.h (grub_serial_stop_bits_t): Add
5734 GRUB_SERIAL_STOP_BITS_1_5.
5735
9068fdcf
VS
57362012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5737
5738 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
5739 value rather than let it uninited.
5740
f4d5820f
VS
57412012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5742
5743 * grub-core/commands/wildcard.c (+check_file): New function.
5744 (wildcard_expand): Don't expand to non-existing files, expand with
5745 suffix and not attempt to expand if not needed.
5746
3d2de9a7
VS
57472012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
5750 out of partitions containing other partitions.
5751
c5c81ff9
VS
57522012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
5755 on some qemu versions with GRUB.
5756
5757 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
5758 define.
5759 (grub_openbsd_bootarg_pcibios): New struct.
5760 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
5761 Add PCIINFO.
5762
08a14e0b
VS
57632012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5764
5765 * tests/util/grub-shell.in: Trim firmware output on EFI.
5766
cede3ca3
VS
57672012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5768
5769 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
5770 and coreboot since it's already in kernel.
5771
558d3a60
VS
57722012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5773
5774 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
5775 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5776 to here. New return value start. All users updated.
5777 Recursively scan linear mappings.
5778 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
5779 proto.
5780 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
5781 Use grub_util_get_dm_node_linear_info.
5782 * util/getroot.c (convert_system_partition_to_system_disk): Use
5783 grub_util_info rather than grub_dprintf.
5784 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
5785
60fde14d
VS
57862012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5787
5788 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
5789
5790 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
5791 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
5792
24bd8838
VS
57932012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5794
5795 * include/grub/types.h (grub_set_unaligned64): New function.
5796 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
5797 (setup): Likewise.
5798
7bc06a49
VS
57992012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5800
5801 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
5802 (grub_ofdisk_fini): Quiesce USB devices.
5803
49cea015
VS
58042012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5805
5806 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
5807 caches.
5808
8dcbe03b
VS
58092012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5810
5811 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
5812
5b258735
VS
58132012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5814
5815 * grub-core/disk/pata.c (grub_pata_pio_read)
5816 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
5817 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
5818
37ba07eb
VS
58192012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5820
5821 Extend automated tests to qemu-mips.
5822
5823 * Makefile.am: reorganise tests and enable qemu-mips.
5824 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
5825 * grub-core/tests/boot/linux.init-mips.S: New file.
5826 * tests/partmap_test.in: Handle ata0 disks.
5827 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
5828 non-pc i386.
5829
070038f8
VS
58302012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5831
5832 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
5833 ia64.
5834 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
5835 quotes while on it.
5836
004be2cd
VS
58372012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5838
5839 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
5840 (grub_halt): Likewise.
5841 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
5842
b1622487
VS
58432012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5844
5845 * grub-core/term/serial.c (grub_serial_register)
5846 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
5847 the behaviour in line with x86 platforms.
5848
b7b4ab33
VS
58492012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5850
5851 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
5852 (grub_ata_strncpy): Likewise.
5853 (grub_ata_identify): Add missing byteswaps.
5854
5e3535ae
VS
58552012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5856
5857 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
5858 byte-swap.
5859 (screen_read_char): Likewise.
5860 (grub_vga_text_cls): Likewise.
5861
c21b17e6
VS
58622012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5863
5864 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
5865 filenames.
5866 (make_file_path): Likewise.
5867
bf293dec
VS
58682012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5869
5870 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
5871 machines.
5872 Tested by: Paulo Flabiano Smorigo.
5873 Crucial information about API supplied by: Coleen <Last name unknown>.
5874 Reviewed by: Coleen <Last name unknown>.
5875
81f6ef0e
VS
58762012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5877
5878 * util/grub-mkimage.c: Disable -Wcast-align.
5879
7284143a
VS
58802012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5881
5882 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
5883 as they are fatal.
5884
b99f3e00
VS
58852012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5886
5887 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
5888
944f752d
VS
58892012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5890
5891 * util/grub-probe.c (escape_of_path): Fix double free.
5892
6cce6f38
VS
58932012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5894
5895 * grub-core/commands/videoinfo.c (hook): Show pitch.
5896
1e1eb50e
VS
58972012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 * util/grub.d/20_linux_xen.in: Skip xen-syms.
5900
1c715b5a
VS
59012012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
5904 (probe): Add ieee1275 to OFW devices.
5905
007ae52d
VS
59062012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
5909
4557a36d
VS
59102012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
5911
5912 Handle IBM OFW path.
5913
5914 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
5915 available.
5916 (of_path_of_scsi): Handle vdevice.
5917
efbeefe9
VS
59182012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
5919
5920 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
5921 Allocate in multiples of 16 to avoid adding a few bytes free region the
5922 windows bugs upon.
5923
15a940bb
VS
59242012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
5927 Allocate in multiples of 16 to avoid adding a few bytes free region the
5928 windows bugs upon.
5929 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
5930
6e5efd60
VS
59312012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5932
5933 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
5934 resolutions.
5935 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
5936 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
5937
0d3d137e
IS
59382012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
5939
5940 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
5941
45dbe300
VS
59422012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5943
5944 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
5945 resulted in \\ at the end of the line.
5946
6d8db947
VS
59472012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5948
5949 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
5950 (grub_parser_cmdline_state): Likewise.
5951 (grub_parser_split_cmdline): Likewise.
5952
de89d338
VS
59532012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5954
5955 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
5956 /dev/root and /dev/dm-*.
5957
00d41dee
VS
59582012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5959
5960 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
5961 fix partially stale display.
5962
f95d1f11
VS
59632012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5964
5965 * grub-core/normal/menu_entry.c (backward_char): Use right line for
5966 substraction.
5967
6297e197
VS
59682012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
5971 Fix MBR remapping workaround.
5972 (grub_util_biosdisk_read) [__linux__]: Likewise.
5973
8a7ecad3
VS
59742012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * util/grub-install.in: Check for ieee1275 and not ieee1276.
5977
2b34f944
VS
59782012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5979
5980 * configure.ac: Bump to beta6.
5981
684aef11
CW
59822012-05-31 Christer Weinigel <christer@weinigel.se>
5983
5984 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
5985
05b0bb91
VS
59862012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
5989 (grub_cmd_linux): Likewise.
5990
bda36bfa
CW
59912012-05-31 Christer Weinigel <christer@weinigel.se>
5992
5993 Fix EHCI low-speed.
5994
5995 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
5996 (GRUB_EHCI_MULT_TWO): Likewise.
5997 (GRUB_EHCI_MULT_THREE): Likewise.
5998 (GRUB_EHCI_CMASK_MASK): New enum value.
5999 (GRUB_EHCI_SMASK_MASK): Likewise.
6000 (GRUB_EHCI_CMASK_OFF): Likewise.
6001 (GRUB_EHCI_SMASK_OFF): Likewise.
6002 (grub_ehci_pci_iter): Enable periodic schedule.
6003 (grub_ehci_parse_notrun): Likewise.
6004 (grub_ehci_restore_hw): Likewise.
6005 (grub_ehci_setup_qh): Set flags for low speed transfers.
6006 (grub_ehci_find_qh): Use periodic list for low speed.
6007 (grub_ehci_setup_transfer): Check periodic queue as well.
6008 (grub_ehci_check_transfer): Likewise.
6009 (grub_ehci_cancel_transfer): Cancel periodic transfer.
6010
e12bcb1c
PFS
60112012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6012
6013 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
6014 parameter is used.
6015
bcc75fb3
PJ
60162012-05-31 Peter Jones <pjones@redhat.com>
6017
6018 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
6019 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
6020 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
6021
f19cb95e
VS
60222012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6023
6024 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
6025 uninited variable. Allocate at least setup_sects.
6026
a4e5ca80
VS
60272012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6028
6029 Fix handling of EFI with big memory maps.
6030
6031 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
6032 (real_mode_mem): Likewise.
6033 (real_mode_target): Likewise.
6034 (real_mode_pages): Likewise.
6035 (prot_mode_pages): Likewise.
6036 (linux_params): New var.
6037 (linux_cmdline): Likewise.
6038 (free_pages): Don't set real mode variables.
6039 (allocate_pages): Don't allocate real mode memory.
6040 (grub_e820_add_region): Remove the limit.
6041 (grub_linux_boot): Allocate and copy real mode memory.
6042 (grub_linux_unload): Free linux_cmdline.
6043 (grub_cmd_linux): Use temporary storage for parameters.
6044 (grub_cmd_initrd): Likewise.
6045 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
6046 (linux_kernel_params): Make it 1K big.
6047
ddb73558
VS
60482012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 * Makefile.util.def: Remove -Wno-format.
6051 * grub-core/Makefile.core.def: Likewise.
6052
1c4afb60
VS
60532012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6054
6055 * tests/cmp_unit_test.c: Add missing failure message.
6056 * tests/example_unit_test.c: Likewise.
6057 * tests/printf_unit_test.c: Likewise.
6058
941e3a6d
VS
60592012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6060
6061 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
6062 relaxation of protective MBR requirements.
6063
b105df76
VS
60642012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6065
6066 * configure.ac: Add condition for COND_HOST_XNU.
6067 * Makefile.util.def (10_xnu): New script.
6068 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
6069
84e1569e
VS
60702012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
6073 objconv bug.
6074
130c0f77
VS
60752012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6076
6077 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
6078 Binary on other platforms stays identical.
6079
6fd0b143
VS
60802012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6081
6082 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
6083 Apple.
6084
0af1751d
VS
60852012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6086
6087 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
6088
176d5f7d
VS
60892012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
6092 rather than defining size_t ourselves to avoid conflict.
6093
7de5e20a
VS
60942012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6095
6096 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
6097 initialisation to avoid __bzero reference.
6098
f7143efe
VS
60992012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6100
6101 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
6102 version.
6103 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
6104 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
6105 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
6106 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
6107 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
6108
e6ad0555
VS
61092012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
6112 * grub-core/kern/misc.c: Likewise.
6113 * grub-core/loader/i386/xnu.c: Likewise.
6114 * include/grub/i386/tsc.h: Likewise.
6115 * include/grub/symbol.h: Likewise.
6116
4a5a3c4a
VS
61172012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
6120 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
6121 on older compiler.
6122
037f6d90
VS
61232012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6124
6125 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
6126 Implement Apple flavour.
6127 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
6128
f7194551
VS
61292012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
6132 (memmove) [__APPLE__]: Likewise.
6133 (memcpy) [__APPLE__]: Likewise.
6134 (memset) [__APPLE__]: Likewise.
6135 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
6136 (memmove) [__APPLE__]: Likewise.
6137 (memcpy) [__APPLE__]: Likewise.
6138 (memset) [__APPLE__]: Likewise.
6139
85a730ca
VS
61402012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6141
6142 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
6143 dependency discard.
6144
40e80b94
VS
61452012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6146
6147 * grub-core/normal/main.c (read_config_file): Provide config_file and
6148 config_directory.
6149 * util/grub.d/41_custom.in: Use config_directoy when available.
6150
9da59c32
VS
61512012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6152
6153 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
6154 (grub_bfs_dir): Likewise.
6155
2787ae53
PJ
61562012-05-27 Peter Jones <pjones@redhat.com>
6157
6158 The old code gives arguments to a printf function which can't work
6159 correctly, and the compiler complains.
6160
6161 * grub-core/tests/example_functional_test.c (example_test): Add
6162 missing text.
6163 * grub-core/tests/lib/test.c (add_failure): Rewrite.
6164 * include/grub/test.h (grub_test_assert_helper): New declaration.
6165 (grub_test_assert): Use grub_test_assert_helper.
6166
526ef13d
VS
61672012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6168
6169 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
6170 (exfctest): ... this to avoid overlong filenames.
6171 All users updated.
6172
20dd511c
VS
61732012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6174
6175 Handle "." and ".." on squashfs.
6176
6177 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
6178 Make inode numbers into stack.
6179 (grub_squash_read_symlink): Use stack.
6180 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
6181 (make_root_node): Fill stack.
6182 (grub_squash_open): Use stack.
6183
1d80c62a
VS
61842012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
6187 freeing.
6188
d336f652
VS
61892012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6190
6191 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
6192 stderr on test calls.
6193
8b43f587
VS
61942012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6195
6196 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
6197
80a3dc3f
VS
61982012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6199
6200 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
6201
47e297d4
VS
62022012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6203
6204 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
6205 "..".
6206
df042ccb
VS
62072012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
6210 (grub_hfsplus_iterate_dir): Add "." and "..".
6211
fc977f48
VS
62122012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6213
6214 * grub-core/fs/cpio.c (canonicalize): Handle "..".
6215 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
6216
f3250e5f
VS
62172012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6218
6219 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
6220 (find_path): Handle "." and "..".
6221
fd8ed4c5
VS
62222012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6223
6224 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
6225 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
6226 (grub_affs_iterate_dir): Handle hardlinks.
6227
4ce776d2
MG
62282012-05-26 Matthew Garrett <mjg@redhat.com>
6229
6230 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
6231 (grub_efi_console_fini): Likewise.
6232 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
6233 (grub_video_gop_fill_mode_info): Rename to ...
6234 (grub_video_gop_fill_real_mode_info): ... this.
6235 (grub_video_gop_fill_mode_info): New function.
6236 (grub_video_gop_setup): Setup double framebuffer.
6237 (grub_video_gop_get_info_and_fini): Use original framebuffer.
6238 Free offscreen.
6239 (grub_video_gop_swap_buffers): Copy framebuffer.
6240 (grub_video_gop_fini): Free offscreen buffer.
6241 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
6242 New enum.
6243 (grub_efi_gop_blt_pixel): New struct.
6244
683031ba
VS
62452012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6246
6247 * gentpl.py: Remove error disabling for objconv.
6248
c2deb798
VS
62492012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6250
6251 * configure.ac: Remove -Wunitialized as it's not available on older
6252 compilers.
6253
62542012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
6255
6256 Fix extent overflow comparator.
6257
6258 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
6259 (grub_hfsplus_read_block): Set type.
6260 (grub_hfsplus_cmp_extkey): Compare type.
6261
d6b1fd36
VS
62622012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
6263
6264 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
6265
0a9aa0f6
VS
62662012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6267
6268 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
6269 than 0.
6270
8360e159
VS
62712012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
6274 (dejavu_bold_14.pf2): New target.
6275
501b9e4b
VS
62762012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 * configure.ac: Fix djvu font detection.
6279
7026b0e2
VS
62802012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
6283 ext* instead of ext2.
6284
c2a51ade
VS
62852012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6286
6287 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
6288 name with \0.
6289
8f803a5d
JU
62902012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
6291
6292 * docs/grub-dev.texi: Remove dot from .png.
6293
13c6353f
VS
62942012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6295
6296 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
6297 protective entry in any slot.
6298 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
6299 if protective entry is found in any slot.
6300
6301 Protective entry in non-first slot make no sense but is a widespread
6302 brain damage.
6303
4cf6be1b
VS
63042012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6305
6306 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
6307
937d1c44
VS
63082012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
6311 with old reiserfs.
6312 (grub_reiserfs_open): Don't free root.
6313
021d90ec
VS
63142012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6315
6316 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
6317 after freeing for safety.
6318
967b2b64
VS
63192012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6320
6321 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
6322 Reported by: Jordan Uggla.
6323
34274d02
JU
63242012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
6325
967b2b64
VS
6326 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
6327 actual implementation. Specifically, clarify that the grub menu will
6328 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
6329 passed.
34274d02 6330
dcaaae9d
BH
63312012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
6332
6333 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
6334 of r0.
6335
7086ad52
VS
63362012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6337
6338 Remove unjustified hard dependency of normal.mod on gfxterm.
6339
6340 * include/grub/term.h (grub_term_output): New member fullscreen.
6341 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
6342 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
6343 (grub_gfxterm): Set .fullscreen.
6344 * grub-core/normal/menu.c (menu_init): Use fullscreen.
6345 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
6346
37ed2c9b
VS
63472012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6348
6349 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
6350 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 6351 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 6352
a4469c88
VS
63532012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
6356
4e461486
VS
63572012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6360 a bad FS.
6361
aa78f5c4
VS
63622012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6363
6364 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
6365 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
6366
197626b5
VS
63672012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6368
6369 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
6370 (grub_jfs_mount): Fill caseins.
6371 (grub_jfs_find_file): Respect caseins.
6372
8ad3f28c
VS
63732012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
6376 through UTF-16.
6377
0c6c324e
VS
63782012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6379
6380 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
6381 New argument origpath. All users updated.
6382
c6666ba6
VS
63832012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6384
6385 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
6386 (read_attr): Ensure that we read start of possibly compressed block.
6387
e28e5fe5
VS
63882012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
6391 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
6392 All users updated.
6393
5fc23ab2
VS
63942012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6395
6396 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
6397 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
6398 (dejavu.pf2): Replace with ...
6399 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
6400 this.
6401
79dbc21c
VS
64022012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6403
6404 * util/grub.d/20_linux_xen.in: Add missing line.
6405
d2fcfb0c
VS
64062012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
6409 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
6410 (grub_utf16_to_utf8): Likewise.
6411
5560e9d6
VS
64122012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
6415 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
6416 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6417 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
6418 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6419 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
6420
64212012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
6422
6423 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6424 a bad FS.
6425
5560e9d6 64262012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
6427
6428 * grub-core/fs/udf.c (read_string): Bail out on size=0.
6429 (grub_udf_read_symlink): Handle read_string failure.
6430
5eae3175
VS
64312012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6432
6433 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
6434 comment.
6435
c1ad82db
VS
64362012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6437
6438 Fix handling of UDF symlinks.
6439
6440 * grub-core/fs/udf.c (read_string): New argument outbuf.
6441 All users updated.
6442 (grub_ufs_read_symlink): Rename to ...
6443 (grub_udf_read_symlink): ... this. All users updated.
6444 Handle symlinks with more than one component.
6445
33eca6e0
VS
64462012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
6449 symlinks. Replace leading colon with a slash.
6450
57f4a70b
VS
64512012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
6454 filename.
6455
38c8ee20
VS
64562012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6457
6458 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
6459 match in inner node.
6460
2e57f28f
VS
64612012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
6464 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
6465 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
6466 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
6467 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
6468 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
6469 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
6470 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
6471 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
6472
fe8c2f11
VS
64732012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 Use grub-probe and not cmp to check that disk is empty.
6476
6477 * util/grub-install.in: Use grub-probe for zero-check.
6478 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
6479 (probe): Handle PRINT_ZERO_CHECK.
6480 (argp_parser): Handle -t zero_check.
6481
64822012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
6483
6484 Flush block cache on adding disk to device map.
6485
6486 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
6487 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
6488 adding.
6489 (read_device_map): Likewise.
6490 (open_device): Flush on opening.
6491
690434e8
VS
64922012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6493
6494 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
6495 (handle_symlink): Fix off-by-one error.
6496 Canonicalize the target.
6497 (grub_cpio_dir): Canonicalize the name.
6498 Fix memory leak.
6499 Set directory.
6500 (grub_cpio_open): Canonicalize the name.
6501
742d2be6
VS
65022012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6503
6504 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
6505 handling.
6506
3244fe96
VS
65072012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
6510 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
6511
8aeb1837
VS
65122012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6513
6514 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
6515 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 6516 All users updated.
8aeb1837 6517
9133fd05
VS
65182012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6519
6520 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
6521 counterpart.
6522
6d521c5b
VS
65232012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6524
6525 Fix UFS1 big file support.
6526
6527 * grub-core/fs/ufs.c (INODE): Removed.
6528 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
6529 64-bit.
6530 (INODE_MODE): Simplify.
6531 (grub_ufs_inode): Use uint64_t for size and not int64_t.
6532 (grub_ufs_lookup_symlink): Don't use INODE.
6533
21b82e17
VS
65342012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6535
6536 Fix minixfs with non-power-of-two blocks since it's supported by minix.
6537
6538 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
6539 (grub_minix_data): Replace log_block_size with block_size.
6540 (grub_minix_read_file): Use block_size but avoid 64-bit division.
6541 (grub_minix_mount): Fill block_size.
6542
65432012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
6544
6545 * configure.ac: Bump to beta5.
6546
f417ed04
VS
65472012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 Fix wrapped HFS+ handling.
6550
6551 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
6552 blocks_start. All users updated.
6553 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
6554 wrapping offset.
6555 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
6556
607d282b
VS
65572012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 Fix long symlinks on reiserfs.
6560
6561 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
6562 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
6563 (grub_reiserfs_iterate_dir): Save size for non-directories.
6564 (grub_reiserfs_open): Don't reread stat block as we already know the
6565 size.
6566 (grub_reiserfs_read): Split into...
6567 (grub_reiserfs_read_real): ... and ...
6568 (grub_reiserfs_read): ...this.
6569
ae16024d
VS
65702012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6571
6572 Fix non-indexed JFS.
6573
6574 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
6575 (grub_jfs_data): New field namecomponentlen.
6576 (grub_jfs_mount): Fill namecomponentlen.
6577 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
6578
eea1e26e
VS
65792012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
6582 * tests/grub_script_echo1.in: Add tests.
6583
df760f77
VS
65842012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6585
6586 * util/grub-install.in: Ignore empty devicetree directory.
6587
5efb817d
B
65882012-05-08 Bean <bean123ch@gmail.com>
6589
6590 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
6591 All users updated.
6592 (free_rsm): Free header as well.
6593 (free_old_fragments): Fix memory leak.
6594 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
6595 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
6596 (destroy_pq): Likewise.
6597 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
6598
668ea6d2
VS
65992012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
6602 resulting hash as a precaution.
6603
1739b1fe
VS
66042012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
6607 '_' in variable names.
6608 * grub-core/net/net.c (grub_net_network_level_interface_register):
6609 Likewise.
6610
6ae485aa
VS
66112012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6612
6613 Fix AFFS with non-512B blocks.
6614
6615 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
6616 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
6617 (grub_affs_data): Replace blocksize with log_blocksize.
6618 (grub_affs_read_block): Fix non-512B blocks.
6619 (grub_affs_read_symlink): Likewise.
6620 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
6621 (grub_affs_read): Fix non-512B blocks.
6622 (grub_affs_label): Likewise.
6623 (grub_affs_mtime): Likewise.
6624 (grub_affs_mount): Fix block detection routine.
6625
d20fab84
VS
66262012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 Add filesystem mtime to AFFS.
6629
6630 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
6631 (aftime2ctime): New function.
6632 (grub_affs_dir): Use aftime2ctime.
6633 (grub_affs_label): Fix return value.
6634 (grub_affs_mtime): New function.
6635 (grub_affs_fs): Add mtime.
6636
e87b10f5
VS
66372012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
6640 UTF-8.
6641
7dceec9b
VS
66422012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6643
6644 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
6645 UTF-8.
6646
2f48221f
VS
66472012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
6650
dacd85cf
VS
66512012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
6654 flags.
6655 (FLAGS_CASE_SENSITIVE): New enum value.
6656 (cache_entry): New struct.
6657 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
6658 cache_size and cache.
6659 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
6660 Add log_blocksize and fshelp_flags.
6661 (grub_sfs_read_extent): Handle non-512 blocks.
6662 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
6663 (grub_sfs_read_file): Handle non-512 blocks.
6664 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
6665 fshelp_flags.
6666 (grub_sfs_read_symlink): Handle non-512 blocks.
6667 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
6668 (grub_sfs_dir): Free cache.
6669 (grub_sfs_close): Likewise.
6670
24e9a854
VS
66712012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6672
6673 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
6674 filesystems.
6675
62ace64d
VS
66762012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6677
6678 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
6679
83b2e89c
VS
66802012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
6683
75ccaea3
VS
66842012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
6687 (grub_sfs_read_extent): Likewise.
6688 (grub_sfs_read_block): Likewise.
6689 (grub_sfs_mount): Likewise.
6690 (grub_sfs_iterate_dir): Likewise.
6691 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
6692 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
6693
1b8463f2
VS
66942012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6695
6696 Fix errors on compressed NTFS with 512B clusters.
6697
6698 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
6699 types.
6700 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
6701 not 0.
6702 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
6703 Relax check for inline extents.
6704 (ntfscomp): Return correct -1 on error and not 0.
6705
4f8e368f
VS
67062012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 * util/grub-install.in: Fix handling of prefix containing spaces.
6709
6f5d5ee8
VS
67102012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
6713 (grub_squash_read_data): Fix offset byte-swapping.
6714
ce41ab7a
VS
67152012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
6718 per common usage and preffered in several parts of code.
6719 (grub_memcmp): Likewise.
6720 (grub_strncmp): Likewise.
6721 * include/grub/misc.h (grub_strcasecmp): Likewise.
6722 (grub_strncasecmp): Likewise.
6723 * Makefile.util.def (cmp_test): New test.
6724 (grub_script_strcmp): Likewise.
6725 * tests/cmp_unit_test.c: New file.
6726 * tests/grub_script_strcmp.in: Likewise.
6727 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
6728
49717bf4
VS
67292012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 * include/grub/pci.h: Move enums into no-asm part.
6732
0a308f64
VS
67332012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
6736
1796965f
ST
67372012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
6738
6739 * util/getroot.c (find_hurd_root_device): Try to make error message
6740 and comments to translators clearer.
6741
4e9b2819
VS
67422012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6743
6744 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
6745
076aeb50
VS
67462012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
6749 btrfs.
6750
19424d94
VS
67512012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * docs/grub.cfg: Update.
6754
ebb73076
VS
67552012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6756
6757 * docs/grub.texi (PXE): Remove not present variables.
6758
9a1b669c
VS
67592012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6760
6761 * grub-core/net/net.c (defserver_set_env): New function.
6762 (defserver_get_env): Likewise.
6763 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
6764
d38bf7d3
VS
67652012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6766
6767 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
6768 entries.
6769
67702012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
6771
6772 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
6773 * grub-core/kern/emu/hostdisk.c: Likewise.
6774
e5e4ca48
ST
67752012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6776
6777 Handle hurd userspace partitions.
6778
6779 * util/getroot.c (find_hurd_root_device): New function.
6780 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
6781
56bb5dd5
VS
67822012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
6785 names.
6786 Reported by: Bastian Blank.
6787
9e8bc27a
VS
67882012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6789
6790 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
6791 crossing page boundary.
6792
aa01499d
VS
67932012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 Fix B-tree search in BFS, especially in presence of non-ASCII
6796 characters.
6797
6798 * grub-core/fs/bfs.c (bfs_strcmp): New function.
6799 (find_in_b_tree): Use standard bsearch + btree algorithm.
6800
57006035
VS
68012012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
6804 and so on.
6805
9d34bb85
MG
68062012-05-03 Matthew Garrett <mjg@redhat.com>
68072012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6808
6809 Suspend broadcom cards in order to stop their DMA.
6810
6811 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
6812 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
6813 (pci): Don't build on x86 EFI.
6814 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
6815 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
6816 New function.
6817 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
6818 stop_broadcom if running on EFI.
6819 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
6820 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
6821 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
6822 (grub_pci_find_capability): New proto.
6823
01aab997
VS
68242012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 * docs/grub.texi: Remove dot from the extension as it apparently
6827 doesn't work with some makeinfo versions.
6828
fbd8dca6
VS
68292012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
6832 with GRUB expectance.
6833
dab797f4
VS
68342012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
6837
1516bfb4
VS
68382012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
6841 zero after directory block since last entry may be not 0-terminated if
6842 it ends on block boundary. Use continue instead of if spanning whole
6843 loop.
6844
a3a0eace
VS
68452012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 Support 4K sectors UDF inline files.
6848
6849 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
6850 (grub_udf_extended_file_entry): Likewise.
6851 (grub_fshelp_node): Name the anonymous union. Put block at the end.
6852 All users updated.
6853 (get_fshelp_size): New function.
6854 (grub_udf_read_icb): Read whole block.
6855 (grub_udf_iterate_dir): Likewise.
6856 (grub_udf_dir): Likewise.
6857 (grub_udf_open): Likewise.
6858
c82f16c1
VS
68592012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
6862
59fd2aac
VS
68632012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6864
6865 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
6866 inline symlinks in addition to workaround.
6867
3b4afb4d
VS
68682012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6869
6870 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
6871
f45c794a
VS
68722012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
6875
f25cecbd
VS
68762012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
6879
bb9a34e8
VS
68802012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 Fix reiserfs big seek times.
6883
6884 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
6885 exact. All users updated.
6886 (grub_reiserfs_read): Use nearest btree search for seeking.
6887 Fix return value on error.
6888
dc478aea
VS
68892012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6890
6891 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
6892 entries.
6893 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
6894 * docs/grub.texi: Update menuentry description.
6895
8db10f47
VS
68962012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6897
6898 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
6899 crash when embedding onto filesystem.
6900
bcb288ed
VS
69012012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6902
6903 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
6904 name.
6905
a626fdd7
VS
69062012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6907
6908 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
6909
b2f68477
VS
69102012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6911
6912 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
6913 commit.
6914
ba15b2af
B
69152012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
69162012-05-01 Bean <bean123ch@gmail.com>
6917
6918 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
6919
a188012e
VS
69202012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6921
6922 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
6923 Special behaviour for len = 0 to read whole file isn't used anywhere and
6924 can cause buffer ovewrflows in several places.
6925
f0a53ed2
VS
69262012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
6929
5ed554f0
VS
69302012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 Handle RAIDZ on non-512B sectors.
6933
6934 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
6935 max_children_ashift.
6936 (fill_vdev_info_real): Fill max_children_ashift.
6937 (read_device): Use max_children_ashift.
6938
ddc58357
VS
69392012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
6942
e3282399
VS
69432012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
6946 disk names.
6947 * docs/grub.texi: Update device.map parts.
6948
ee618bd4
VS
69492012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 Don't scan into non-diskfilter devices having diskfilter names.
6952
6953 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
6954 (scan_disk): New argument accept_diskfilter. Fix recursion depth
6955 handling.
6956 (scan_disk_hook): New function.
6957
bdf88864
B
69582012-04-29 Bean <bean123ch@gmail.com>
6959
6960 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
6961 allocation.
6962
32745f51
MK
69632012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
6964
6965 * configure.ac: Detect starfield theme font path
6966 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
6967
bc95c8c0
VS
69682012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
6971 geometry on serial consoles.
6972
147fbcab
VS
69732012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6974
6975 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
6976 because of network consoles.
6977
0f42c889
VS
69782012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6979
6980 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
6981 handling.
6982
4a3594c9
VS
69832012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
6986 falls on Q syndrom.
6987
5cb53879
VS
69882012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6989
6990 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
6991 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
6992
b282dfe5
VS
69932012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6994
6995 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
6996 Allocate at lest 8192 for temporary buffer as required for lzo.
6997
daa59f47
VS
69982012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6999
7000 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
7001 to cluster_bits, since it's already added in.
7002 (grub_fat_read_data): Likewise.
7003
986748ce
VS
70042012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7005
7006 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
7007 as long as cluster size is multiple of 512 bytes.
7008
a20f6ad0
VS
70092012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7010
7011 * util/grub-mkrescue.in: Fix locale directory.
7012
385f9abb
VS
70132012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7014
7015 * grub-core/kern/emu/hostdisk.c (map): Make static.
7016
1c557d30
B
70172012-04-23 Bean <bean123ch@gmail.com>
7018
7019 * util/grub-fstest.c (fstest): Add missing break.
7020
524b5d3a
ST
70212012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7022
7023 Fix hurd build.
7024
7025 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
7026 not define nr variable.
fe4824e9 7027 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
7028 find_root_devices_from_poolname, find_root_devices_from_libzfs,
7029 grub_find_device): Do not define.
524b5d3a 7030
9a06490c
VS
70312012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7032
7033 Fix kfreebsd compile and behaviour.
7034
7035 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
7036 format-security.
7037 * util/getroot.c: Fix wait.h include.
7038 (grub_guess_root_devices): Error if grub_find_device fails.
7039 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
7040 (grub_util_get_dev_abstraction): Likewise.
7041 (grub_util_pull_device): Likewise.
7042 (grub_util_get_grub_dev): Likewise.
7043 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
7044
48143d96
VS
70452012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7046
7047 Fix and unify wholedisk detection.
7048
7049 * util/getroot.c (convert_system_partition_to_system_disk): New argument
7050 is_part. All users updated.
7051 (device_is_wholedisk): Removed.
7052 (grub_util_biosdisk_get_grub_dev): Use is_part.
7053
ebbd24f3
VS
70542012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7055
7056 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
7057 mode.
7058
56f7aa1e
VS
70592012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7060
7061 * configure.ac: Bump to beta4.
7062
9c815e01
VS
70632012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7064
7065 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
7066 --fs-uuid --set UUID syntax.
7067
59e2651a
VS
70682012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7069
7070 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
7071 disunification.
7072
54e03cfc
VS
70732012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
7076
81092a75
MK
70772012-04-18 Mads Kiilerich <mads@kiilerich.com>
7078
7079 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
7080
f8315e14
MG
70812012-04-18 Mike Gilbert <floppym@gentoo.org>
7082
7083 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
7084
1501ac21
B
70852012-04-18 Bean <bean123ch@gmail.com>
7086
7087 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
7088 place.
7089
cb7f944e
VS
70902012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7091
7092 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
7093 users updated.
7094 (grub_util_biosdisk_read): Handle Linux partitions not exactly
7095 corresponding to GRUB partitions.
7096 (grub_util_biosdisk_write): Likewise.
7097
b72d44a1
VS
70982012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7099
7100 Scan mdraid before LVM.
7101
7102 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
7103 (grub_diskfilter_register_front): ... this.
7104 (grub_diskfilter_register_back): New function.
7105 All users of grub_diskfilter_register updated.
7106
33d918b8
VS
71072012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7108
7109 * util/grub-install.in: Fix an automatic target detection bug.
7110
c6ca973d
VS
71112012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 * util/grub-install.in: New option --efi-directory.
7114
b41be562
VS
71152012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
7118 boot services if we have no other choice.
7119
71202012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7121
7122 * util/grub-mknetdir.in: Rename --override-directory to --directory and
7123 document it.
7124 * tests/util/grub-shell.in: Update to --directory.
7125
e0595a73
VS
71262012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7127
7128 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
7129
4ed80652
VS
71302012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7131
7132 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
7133 (grub_minix_read_file): Likewise.
7134 (grub_minix_read_inode): Likewise.
7135 (grub_minix_find_file): Likewise.
7136 (grub_minix_dir): Likewise.
7137
56008077
VS
71382012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 * util/grub-setup.c (setup): Fix partition handling and blocklist
7141 check.
7142
ee520775
VS
71432012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7144
7145 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
7146 redundant buggy overlap check.
7147
16fc9293
VS
71482012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
7151 and grub-mknetdir.
7152
9bab65c4
VS
71532012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
7156 kh.loadflags on pre-2.00 kernels.
7157
3c491b47
VS
71582012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7159
7160 Terminate UNDI and PXE before launching the payload to avoid problems
7161 with DMA.
7162
7163 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
7164 (grub_loader_flags): ... this. All users updated.
7165 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
7166 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
7167 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
7168 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
7169 function.
7170 (grub_pxe_restore): Likewise.
7171 (fini_hnd): New var.
7172 (GRUB_MOD_INIT): Register shutdown hook.
7173 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
7174 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
7175 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
7176 (grub_loader_set): Rename second argument to flags.
7177
851ffada
VS
71782012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7179
7180 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
7181 written bytes.
7182 (grub_get_num_of_utf8_bytes): New function.
7183 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
7184 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
7185 executing it.
7186 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
7187 (grub_ucs4_to_utf8): Change return type.
7188
491c57a8
VS
71892012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7190
7191 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
7192 warning.
851ffada
VS
7193 * grub-core/fs/bfs.c (hop_level): Likewise.
7194 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 7195
756773df
VS
71962012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7197
7198 * grub-core/lib/adler32.c: Recode due to license unclearness.
7199
fd556a96
VS
72002012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7201
7202 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
7203 (test_header): Likewise.
7204
9f9d3f69
VS
72052012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7206
7207 Fix --help formatting.
7208
7209 * util/grub-mkconfig_lib.in (print_option_help): New function.
7210 (grub_fmt): Likewise.
7211 * util/grub-install.in: Use print_option_help and grub_fmt.
7212 * util/grub-kbdcomp.in: Likewise.
7213 * util/grub-mkconfig.in: Likewise.
7214 * util/grub-mknetdir.in: Likewise.
7215 * util/grub-mkrescue.in: Likewise.
7216 * util/grub-mkstandalone.in: Likewise.
7217 * util/grub-reboot.in: Likewise.
7218 * util/grub-set-default.in: Likewise.
7219 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7220
561ec77e
VS
72212012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7222
7223 * linguas.sh: Remove autogenerated *.po.
7224
7ec2b021
VS
72252012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7226
7227 * po/README: Move language fetcing to ...
7228 * linguas.sh: ... here.
7229 * po/README: Point to linguas.sh.
7230
a88f3270
VS
72312012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7232
7233 * po/README: Exclude ko.po due to disclaimer problems.
7234
d61357ce
VS
72352012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
7238 len = 0.
7239 (grub_gettext_translate_real): Handle 0th string.
7240 (grub_gettext_translate): Ensure that "" isn't translated.
7241
505e41dc
VS
72422012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7243
7244 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
7245 TRANSLATORS comment.
7246 (grub_diskfilter_print_partmap): Propagate changing of error into
7247 warning.
7248
e44092db
VS
72492012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
7252 to uint64_t to prevent overflow.
7253 (grub_diskfilter_lv): Increase start_extent and extent_count
7254 to uint64_t to prevent overflow.
7255
9b83956a
VS
72562012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7257
7258 * configure.ac: Increase version.
7259
da0d5b3f
VS
72602012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7261
7262 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
7263
7264 * po/Rules-translit: New file.
7265 * po/arabic.sed: Likewise.
7266 * po/cyrillic.sed: Likewise.
7267 * po/greek.sed: Likewise.
7268 * po/hebrew.sed: Likewise.
7269 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
7270 * po/Makefile.in.in: Add extra_dist4.
7271
ac66b453
VS
72722012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7273
7274 Handle big-endian minixfs (fixes minixfs tests on bigendian).
7275
7276 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
7277 modify names. Introduce MODE_BIGENDIAN.
7278 * grub-core/fs/minix_be.c: New file.
7279 * grub-core/fs/minix2_be.c: Likewise
7280 * grub-core/fs/minix3_be.c: Likewise.
7281 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
7282 minix3_be.
7283 * grub-core/Makefile.core.def (minix_be): New module.
7284 (minix2_be): Likewise.
7285 (minix3_be): Likewise.
7286
72872012-04-01 Felix <email@hamburg.de>
7288
7289 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
7290 (devs): Add MBP 2011.
7291
0a2d5a82
VS
72922012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7293
7294 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
7295
d1625889
VS
72962012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7297
7298 * grub-core/normal/cmdline.c (print_completion): New field
7299 prompt_len.
7300 (grub_cmdline_get): Handle width properly.
7301
6d36a236
VS
73022012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 * grub-core/commands/lsacpi.c (options): Add missing terminator.
7305
9576977e
VS
73062012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7307
7308 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 7309 after 29th of February.
9576977e 7310
d73ff15d
VS
73112012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7312
7313 Fix exfat endianness handling.
7314
7315 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
7316 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
7317 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
7318 Byte-swap utf16 when necessary.
7319 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
7320
bbb39a45
AB
73212012-03-31 Anton Blanchard <anton@samba.org>
73222012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 Fix btrfs endianness handling.
7325
7326 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
7327 (lower_bound): Make root uint64_t. Use root in le.
7328 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
7329 (find_path): Fix template key init.
7330 (grub_btrfs_dir): Fix mtime byteswap.
7331 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
7332
354e0af7
VS
73332012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7334
7335 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
7336 recursion_depth. Break infinite resursions. All users updated.
7337
4e75f21c
VS
73382012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7339
7340 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
7341 after free.
7342 Reported by: Peter Jones.
7343
25581802
AB
73442012-03-31 Anton Blanchard <anton@samba.org>
7345
7346 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
7347 8 bit values.
7348
08fbf92e
VS
73492012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7350
7351 * util/grub-install.in: Fix nvram call for PreP.
7352
5d1182a6
VS
73532012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7354
7355 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
7356 the error when some elements are missing into a warning.
7357
3f8cdd90
VS
73582012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7359
7360 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
7361
51006716
CW
73622012-03-28 Colin Watson <cjwatson@ubuntu.com>
7363
7364 * docs/grub.texi (Invoking grub-probe): New section.
7365 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
7366
e1bd676b
VS
73672012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7368
7369 Fix tab and wide character handling in editor and menu.
7370
7371 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
7372 agglomerate control characters with combining marks.
7373 (bidi_line_wrap): Allow break on tab.
7374 (grub_unicode_get_comb_start): New function.
7375 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
7376 and tab correctly.
7377 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
7378 with a space.
7379 * grub-core/normal/term.c (print_ucs4_terminal): New argument
7380 fixed_tab_size. All users updated.
7381 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
7382 (grub_term_getcharwidth): Handle \t.
7383 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
7384 and copy.
7385
22e6a774
VS
73862012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7387
7388 Handle big-endian mdraid.
7389
7390 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
7391 * grub-core/Makefile.core.def (mdraid09_be): New module.
7392 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
7393 rather than grub_le_to_cpu* and grub_cpu_to_le*.
7394 * grub-core/disk/mdraid_linux_be.c: New file.
7395
3c0eae66
VS
73962012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
7399
b6cf74c9
VS
74002012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
7403 missing quotes which caused confusion among translators.
7404
83c93b9c
VS
74052012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7406
7407 * util/grub-mkconfig_lib.in: Fix typo.
7408
ac6fd218
VS
74092012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7410
7411 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
7412 spaces.
7413 * tests/grub_script_leading_whitespace.in: New file.
7414 * Makefile.util.def (grub_script_leading_whitespace): New test.
7415
ba287dd8
VS
74162012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7417
7418 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
7419 to work.
7420
d2d58d0a
VS
74212012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7422
7423 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
7424 starts with control character.
7425
0382d9bb
VS
74262012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
7429 overflow.
7430 (grub_gdb_outbuf): Likewise.
7431
d83ff9f9
VS
74322012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7433
7434 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
7435 zero terminator. Fixes a crash.
7436
2282da4a
VS
74372012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
7440 beyond 4 GiB.
7441 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
7442 images independently of preffered adderss field.
7443
0ae4f0bd
VS
74442012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
7447 * grub-core/commands/regexp.c: Likewise.
7448 * grub-core/loader/i386/linux.c: Likewise.
7449 * grub-core/partmap/msdos.c: Likewise.
7450 * grub-core/script/execute.c: Likewise.
7451 * grub-core/term/gfxterm.c: Likewise.
7452
546fbe9b
VS
74532012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 Add variable parsing in $"..." and fix several mismatches with bash.
7456
7457 * Makefile.util.def (grub_script_gettext): New test.
7458 * grub-core/script/execute.c (parse_string): New function.
7459 (gettext_append): Likewise.
7460 (grub_script_arglist_to_argv): Use gettext_append.
7461 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
7462 * tests/grub_script_gettext.in: New file.
7463
9fdb2d7b
VS
74642012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7465
7466 Fix handling of leading spaces in scripts.
7467
7468 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
7469 spaces.
7470 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
7471 other than skipping \r. All users updated.
7472 * tests/grub_script_echo1.in: Add space-related tests.
7473 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
7474
1a1ac4f6
VS
74752012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7476
7477 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
7478
b63d89b6
VS
74792012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 * configure.ac: Bump up the version to beta2.
7482
17f38c0f
VS
74832012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7484
7485 Fix gettext reload bugs (e.g. inability to disable gettext
7486 once enabled).
7487
7488 * grub-core/gettext/gettext.c: Encapsulate all static variables in
7489 main_context and secondary_context. All functions updated.
7490 (grub_gettext_translate): Rename to ...
7491 (grub_gettext_translate_real): ... this. Return NULL on failed
7492 translate.
7493 (grub_gettext_translate): Handle secondary context.
7494 (grub_gettext_delete_list): Close file and zero-out the context.
7495 (grub_mofile_open): Don't call grub_gettext_delete_list.
7496 Don't close file.
7497 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
7498 if locale="" to avoid pointless error message.
7499 (grub_gettext_env_write_lang): Update lang even if load fails.
7500 Handle secondary context.
7501 (grub_gettext_reread_prefix): New function.
7502 (read_main): Likewise.
7503 (read_secondary): Likewise.
7504 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
7505 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
7506 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
7507 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
7508
8e56f870
VS
75092012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7510
7511 * configure.ac: Decrease warning level to avoid spurious warnings and
7512 to be able to compile with GCC 4.2.
7513 * Makefile.util.def: Remove -Wno-error=logical-op.
7514
82f6d455
WB
75152012-03-10 William Bittner <william.bittner@gmail.com>
7516
7517 * util/import_unicode.py: Add missing brackets around string for
7518 python 3 support.
7519
1ecd61a4
VS
75202012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7521
7522 Fix efi chainloader on network root.
7523
7524 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
7525 network devices.
7526 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
7527 New function.
7528
14361ee8
VS
75292012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7530
7531 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
7532 unused show_text member.
7533 * docs/grub.texi: Document "text" property.
7534
922aabf3
VS
75352012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
7538 in dprintf.
7539
ec316771
VS
75402012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 Fix IMSM handling on Fedora.
7543
7544 * util/getroot.c (grub_util_is_imsm): New function.
7545 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
7546
0f021838
VS
75472012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7548
7549 * Makefile.am: Strip gold section.
7550 * conf/Makefile.common: Likewise.
7551 * gentpl.py: Likewise.
7552 * grub-core/Makefile.core.def: Likewise.
7553 * grub-core/genmod.sh.in: Likewise.
7554
1039c8eb
VS
75552012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7556
7557 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
7558 * util/grub.d/20_linux_xen.in: Likewise.
7559 Based on Debian patch.
7560
6dd412cd
VS
75612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7562
7563 * util/grub.d/10_linux.in: Fix syntax error resulting in
7564 Richard Laager's patch.
7565 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
7566
3fd8bae5
VS
75672012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7568
7569 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
7570 dependencies.
7571
7eea1671
RL
75722012-03-10 Richard Laager <rlaager@wiktel.com>
7573
7574 * util/grub.d/10_linux.in: Fix ZFS root passing.
7575
e8e0566b
VS
75762012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7577
7578 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
7579 * grub-core/commands/xnu_uuid.c: Likewise.
7580 * grub-core/loader/efi/appleloader.c: Likewise.
7581 * grub-core/script/execute.c: Likewise.
7582 * grub-core/script/main.c: Likewise.
7583 * util/grub-mkfont.c: Likewise.
7584
1acc5b1f
VS
75852012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 * util/grub-mkfont.c (options): Use more appropriate "select" that
7588 "set" for face index.
7589
35d70620
VS
75902012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7591
7592 * util/grub-editenv.c (options): Gettextize command summaries.
7593
c9eb96b5
VS
75942012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
7597 "out of memory" error messagge.
7598
1f493136
VS
75992012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7600
7601 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
7602 of diskfilter for diskfilter on diskfilter support.
7603
6d790129
VS
76042012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
7607
005f46c9
VS
76082012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7609
7610 * util/grub-install.in: Check for themes/starfield/theme.txt and not
7611 themes/starfield.
7612
c8f778a0
VS
76132012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7614
7615 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
7616
de1e64eb
VS
76172012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7618
7619 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
7620
c6d54211
VS
76212012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7622
7623 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
7624 of error message.
7625
dd390777
VS
76262012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
7627
7628 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
7629
5fd1c522
VS
76302012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
7633 message.
c6d54211 7634 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 7635
fae01f6c
VS
76362012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7637
7638 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
7639 Gettextize.
7640 * util/grub-mount.c (options): Likewise.
7641
292fdaff
VS
76422012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7643
7644 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
7645 gettextize.
7646 * grub-core/commands/search_wrap.c (options): Likewise.
7647
ecdbae77
VS
76482012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7649
7650 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
7651
52bfedfa
VS
76522012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7653
7654 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
7655 size calculation.
7656 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
7657 none is known.
7658
55b20e58
VS
76592012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
7662 "temporary" since it's used in identifier and is limited in space.
7663
fda9d101
VS
76642012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7665
7666 * po/POTFILES.in: Regenerate. Include *.h since they contain
7667 translatable strings as well.
7668
6a0295e2
VS
76692012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
7672 byte-swap on big-endian.
7673 Reported by: Lennart Sorensen
7674
807fb77c
VS
76752012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7676
7677 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
7678 (allocate_pages): Improve dprintf.
7679 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
7680 code32_start. Fill code32_start and kernel_alignment in params.
7681 (grub_cmd_initrd): Use prot_init_space.
7682
61ac50ba
VS
76832012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7684
7685 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
7686
abdd26dd
VS
76872012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7688
7689 * util/grub-install.in: Add missing dot at the end of sentence.
7690
6e69da9c
VS
76912012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
7694 * grub-core/commands/videotest.c: Likewise.
7695 * grub-core/loader/i386/linux.c: Likewise.
7696
4a929343
VS
76972012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7698
7699 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
7700 sentence.
7701 Reported by: Milo Casagrande.
7702
bb51c6c6
VS
77032012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
7706 * grub-core/commands/gptsync.c: Likewise.
7707 * grub-core/commands/hashsum.c: Likewise.
7708 * grub-core/commands/i386/pc/sendkey.c: Likewise.
7709 * grub-core/commands/legacycfg.c: Likewise.
7710 * grub-core/io/gzio.c: Likewise.
7711 * grub-core/net/net.c: Likewise.
7712 * grub-core/term/gfxterm.c: Likewise.
7713 * grub-core/term/terminfo.c: Likewise.
7714 * grub-core/tests/test_blockarg.c: Likewise.
7715 * grub-core/video/video.c: Likewise.
7716 * util/grub-install.in: Likewise.
7717 * util/grub-mkfont.c: Likewise.
7718
b2b149cb
VS
77192012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
7722
c7c080ad
VS
77232012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7724
7725 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 7726 Reported by: David Prévot.
c7c080ad 7727
f2e243c0
VS
77282012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
7731 description.
7732
09963c76
VS
77332012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7734
7735 * util/grub-script-check.c (main): Fix a syntax error message which was
7736 unclear.
7737
a50514a8
VS
77382012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
7741
4650daec
VS
77422012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7743
7744 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
7745 messages.
7746
77472012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
7748
7749 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
7750 without argument.
7751 * util/grub-mount.c (options): Likewise.
7752
bbc5a342
VS
77532012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
7756
ef292a87
VS
77572012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7758
7759 * grub-core/net/http.c: Add TRANSLATORS comments.
7760 * grub-core/normal/cmdline.c: Likewise.
7761 * grub-core/normal/misc.c: Likewise.
7762 * grub-core/partmap/msdos.c: Likewise.
7763 * grub-core/parttool/msdospart.c: Likewise.
7764 * grub-core/script/execute.c: Likewise.
7765 * grub-core/script/main.c: Likewise.
7766 * grub-core/term/terminfo.c: Likewise.
7767 * grub-core/video/bitmap.c: Likewise.
7768 * util/grub-install.in: Likewise.
7769 * util/grub-mkimage.c: Likewise.
7770 * util/grub-mklayout.c: Likewise.
7771 * util/grub-setup.c: Likewise.
7772
0fc19bd0
VS
77732012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7774
7775 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
7776 with similar messages in grub-fstest.
7777
d95862ef
VS
77782012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7779
7780 * util/grub-install.in: Unify "option requires an argument" message
7781 with similar messages in other files.
7782 * util/grub-mkconfig.in: Likewise.
7783
b7308f90
VS
77842012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7785
7786 * util/grub-set-default.in: Replace printf with gettext_printf (the
7787 string in in question is already translated from grub-reboot)
7788
559dc587
VS
77892012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7790
7791 * configure.ac: Bump up the version to beta1.
7792
1a11761f
VS
77932012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7794
7795 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
7796 case when min_align = 0.
7797
24539abd
VS
77982012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7799
7800 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
7801 and fix a case when line_start overflows.
7802
32bd735b
VS
78032012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7804
7805 * util/grub-reboot.in (usage): Mention id posibility.
7806 * util/grub-set-default.in (usage): Likewise.
7807
1a2fd1e6
VS
78082012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7809
7810 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
7811 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
7812 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7813 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7814 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7815 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7816 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7817
90eeab76
VS
78182012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7819
7820 * grub-core/commands/menuentry.c (options): Remove
7821 GRUB_ARG_OPTION_REPEATABLE.
7822 Reported by: Andreas Vogel
7823
5ad1be82
AV
78242012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
7825
7826 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
7827
cb055286
HE
78282012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
7829
7830 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
7831 error.
7832
93b1cd79
VS
78332012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7834
7835 Use sort -V by the idea of Georgi Georgiev.
7836
7837 * util/grub-mkconfig_lib.in (version_sort): New function.
7838 (version_test_numeric): Use version_sort.
7839
0cdc126c
VS
78402012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7841
7842 Use submenus in grub-mkconfig.
7843
7844 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
7845 * util/grub-mkconfig_lib.in (grub_quote): New function.
7846 (gettext_printf): Use gettext and not gettext_quoted to fix several
7847 messages.
7848 * util/grub.d/10_hurd.in: Use submenus.
7849 * util/grub.d/10_kfreebsd.in: Likewise.
7850 * util/grub.d/10_linux.in: Likewise.
7851 * util/grub.d/10_netbsd.in: Likewise.
7852 * util/grub.d/20_linux_xen.in: Likewise.
7853 * util/grub.d/30_os-prober.in: Likewise.
7854 * util/grub.d/10_illumos.in: Add missing quoting.
7855 * util/grub.d/10_windows.in: Likewise.
7856
d9bef9bc
VS
78572012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 Fix menu title instability bug.
7860
7861 * grub-core/commands/menuentry.c (options): New option --id.
7862 (grub_normal_add_menu_entry): New argument id. All users updated.
7863 (grub_cmd_menuentry): Handle --id.
7864 (grub_menu_init): Accept unknown arguments.
7865 * grub-core/normal/main.c (features): Add feature_menuentry_id and
7866 feature_menuentry_options.
7867 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
7868 saved_entry.
7869 (get_entry_number): Match with id as well.
7870 * include/grub/menu.h (grub_menu_entry): New member id.
7871 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
7872 * util/grub.d/00_header.in: Define menuentry_id_option.
7873 * util/grub.d/10_hurd.in: Define id.
7874 * util/grub.d/10_illumos.in: Likewise.
7875 * util/grub.d/10_kfreebsd.in: Likewise.
7876 * util/grub.d/10_linux.in: Likewise.
7877 * util/grub.d/10_netbsd.in: Likewise.
7878 * util/grub.d/10_windows.in: Likewise.
7879 * util/grub.d/20_linux_xen.in: Likewise.
7880 * util/grub.d/30_os-prober.in: Likewise.
7881
78822012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
7883
7884 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
7885 "scope" with "body".
7886
7c8d0ce7
VS
78872012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7888
7889 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
7890 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
7891 prot_size and prot_file_size.
7892
49de079b
VS
78932012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7894
7895 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
7896 All users updated. If easily=1 require raid-5/-6 to be full.
7897 (is_node_readable): Likewise.
7898 (scan_devices): Scan incomplete but readable LVs at the end.
7899 (grub_diskfilter_memberlist): Pull missing devices.
7900 (insert_array): Skip scanning until device is complete or scan is
7901 done otherwise.
7902 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
7903 check.
7904 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
7905 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
7906
aff05d45
MG
79072012-03-03 Matthew Garrett <mjg@redhat.com>
79082012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 Avoid EFI boot services when loading Linux.
7911
7912 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
7913 avoid_efi_bootservices. All users updated.
7914 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
7915 argument avoid_efi_bootservices. All users updated.
7916 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
7917 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
7918 align, min_align, relocatable, prefered_address. All users updated.
7919 Allocate avoiding boot services if kernel is relocatable.
7920 (grub_cmd_linux): Check if kernel is relocatable.
7921 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
7922 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
7923 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
7924 avoid_efi_boot_services.
7925 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
7926 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
7927 (linux_kernel_params): Likewise.
7928
3935dde2
MG
79292012-03-03 Matthew Garrett <mjg@redhat.com>
79302012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7931
7932 Use EDID on EFI.
7933
7934 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
7935 datasize_out.
7936 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
7937 modes. Set gop_handle.
7938 (grub_video_gop_get_edid): New function.
7939 (grub_gop_get_preferred_mode): Likewise.
7940 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
7941 (grub_video_efi_gop_adapter): Set .get_edid.
7942 * include/grub/efi/edid.h: New file.
7943 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
7944
32107ec0
VS
79452012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7946
7947 * util/grub-install.in: Load efivars unconditionally.
7948
e70a2c50
VS
79492012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7950
7951 * po/Rules-piglatin: Change suffix from .po-update-en to
7952 .po-update-en-piglatin.
7953
8f9cace1
VS
79542012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7955
7956 Add a pig farm.
7957
7958 * po/piglatin.sed: New file.
7959 * po/en@piglatin.header: Likewise.
7960 * po/Rules-piglatin: Likewise.
7961 * po/README: Add en@piglatin to autogenerated languages.
7962
8f95d002
VS
79632012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7964
7965 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
7966 "Command for ...".
7967 * grub-core/commands/hdparm.c (options): Use "Display" rather than
7968 "Check" since we don't check anything.
7969 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
7970 is 64-bit one.
7971 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
7972 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
7973 (grub_md_sha512_real): Likewise.
7974
805a8dcc
VS
79752012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7976
7977 * grub-core/commands/gptsync.c: Fix typographic quoting.
7978 * grub-core/commands/ieee1275/suspend.c: Likewise.
7979 * grub-core/commands/parttool.c: Likewise.
7980 * grub-core/commands/search_wrap.c: Likewise.
7981 * grub-core/commands/videoinfo.c: Likewise.
7982 * grub-core/gfxmenu/gui_label.c: Likewise.
7983 * grub-core/hello/hello.c: Likewise.
7984 * grub-core/kern/emu/main.c: Likewise.
7985 * grub-core/net/net.c: Likewise.
7986 * grub-core/normal/menu.c: Likewise.
7987 * grub-core/normal/menu_text.c: Likewise.
7988 * grub-core/normal/misc.c: Likewise.
7989 * util/grub-editenv.c: Likewise.
7990 * util/grub-install.in: Likewise.
7991 * util/grub-kbdcomp.in: Likewise.
7992 * util/grub-mkconfig.in: Likewise.
7993 * util/grub-mknetdir.in: Likewise.
7994 * util/grub-mkrescue.in: Likewise.
7995 * util/grub-mkstandalone.in: Likewise.
7996 * util/grub-reboot.in: Likewise.
7997 * util/grub-set-default.in: Likewise.
7998 * util/grub-setup.c: Likewise.
7999 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8000
40211ab8
VS
80012012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8002
8003 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
8004 * grub-core/commands/keystatus.c: Likewise.
8005 * grub-core/commands/loadenv.c: Likewise.
8006 * grub-core/commands/probe.c: Likewise.
8007 * grub-core/commands/regexp.c: Likewise.
8008 * grub-core/commands/true.c: Likewise.
8009 * grub-core/commands/videoinfo.c: Likewise.
8010 * grub-core/disk/cryptodisk.c: Likewise.
8011 * grub-core/disk/ldm.c: Likewise.
8012 * grub-core/disk/loopback.c: Likewise.
8013 * grub-core/disk/luks.c: Likewise.
8014 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8015 * grub-core/kern/disk.c: Likewise.
8016 * grub-core/kern/emu/hostdisk.c: Likewise.
8017
0c7d99c7
VS
80182012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8019
8020 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
8021 * util/grub-install.in: Add missing quote in the comment.
8022
e7d2559b
VS
80232012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8024
8025 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
8026 * grub-core/commands/lsmmap.c: Likewise.
8027 * grub-core/commands/minicmd.c: Likewise.
8028 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8029 * grub-core/commands/regexp.c: Likewise.
8030 * grub-core/gdb/gdb.c: Likewise.
8031 * grub-core/term/gfxterm.c: Likewise.
8032 * util/grub-mkconfig.in: Likewise.
8033 * util/grub-mkfont.c: Likewise.
8034 * util/grub-mklayout.c: Likewise.
8035 * util/grub-mknetdir.in: Likewise.
8036 * util/grub-mkrescue.in: Likewise.
8037 * util/grub.d/30_os-prober.in: Likewise.
8038
49ce9e50
VS
80392012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
8042 with "Direct color" and "Packed" with "Packed pixel".
8043 (grub_cmd_videoinfo): Simplify legend.
8044
e4b791fa
VS
80452012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8046
8047 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8048 absolutely unclear error message.
8049
fd1265cb
VS
80502012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8051
8052 * util/grub-mkstandalone.in: Remove confusing leftover print.
8053
8822a8a0
VS
80542012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8055
8056 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
8057 comments.
8058 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
8059 (GRUB_MOD_INIT): Likewise.
8060 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
8061 VGA mode.
8062 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
8063 comments.
8064 * util/grub-install.in (usage): Likewise.
8065 Spell ID in whole letters.
8066 Add missing ending dot.
8067 Quote variables.
8068 * util/grub-reboot.in: Fix capitalisation.
8069 * util/grub-set-default.in: Likewise.
8070
937fd0cc
VS
80712012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8072
8073 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
8074 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
8075 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
8076 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
8077 Disable -Werror for -Wdeprecated-declarations.
8078 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
8079 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
8080 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
8081 (grub_util_get_grub_dev): Make luks handling dependent on
8082 HAVE_DEVICE_MAPPER and not __linux__.
8083 (get_win32_path): Fix format security.
8084 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
8085 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
8086 Don't try grub_find_zpool_from_dir.
8087 (grub_make_system_path_relative_to_its_root) [!__linux__]:
8088 #ifdef-out paresdir.
8089
1bab1ae3
VS
80902012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8091
8092 * util/grub-pe2elf.c (usage): Add missing noreturn.
8093 (write_section_data): Rename name to shname to avoid shadowing.
8094 (write_symbol_table): Rename name to symname to avoid shadowing.
8095 Fix write_reloc_section call.
8096
ef023e42
VS
80972012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8098
8099 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
8100 to ensure that it's after the last byte of .text.
8101
48afcb75
VS
81022012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8103
8104 * util/ieee1275/ofpath.c (my_isdigit): New function.
8105 (trailing_digits): Use my_isdigit.
8106 (strip_trailing_digits): Likewise.
8107
88d51eff
VS
81082012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
8111 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
8112
17edc2ba
VS
81132012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8114
8115 * grub-core/kern/i386/pc/startup.S: Define __start.
8116
ad5518d7
VS
81172012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8118
8119 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
8120 strip already transforms he format.
8121
9e95e1bf
VS
81222012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8123
8124 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
8125
9cc3ee5c
VS
81262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8127
8128 * util/grub-install.in: Add missing gettext init.
8129 * util/grub-kbdcomp.in: Likewise.
8130 * util/grub-mkconfig.in: Likewise.
8131 * util/grub-mknetdir.in: Likewise.
8132 * util/grub-mkrescue.in: Likewise.
8133 * util/grub-mkstandalone.in: Likewise.
8134 * util/grub-reboot.in: Likewise.
8135 * util/grub-set-default.in: Likewise.
8136 * util/grub.d/00_header.in: Likewise.
8137 * util/grub.d/10_hurd.in: Likewise.
8138 * util/grub.d/10_windows.in: Likewise.
8139 * util/grub.d/30_os-prober.in: Likewise.
8140 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8141
49e08a06
VS
81422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8143
8144 * po/Rules-swiss: Fix header comment.
8145
3809cb41
AV
81462012-02-29 Andreas Vogel <anvoit>
8147
8148 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
8149 resulted in leak of arguments.
8150
fa6ec573
VS
81512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8152
8153 * grub-core/boot/i386/pc/startup_raw.S: Use separate
8154 reed_solomon_size const definition instead of computing it since
8155 Apple assembler doesn't support the later.
8156
22899b9c
VS
81572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8158
8159 * gentpl.py (kernel): Rewrite Apple part.
8160
a132afc3
VS
81612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8162
8163 * include/grub/kernel.h (FOR_MODULES): Check module magic.
8164
9d742bd4
VS
81652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8166
8167 * util/grub-mkimagexx.c (locate_sections): Support non-standard
8168 ELF section gap.
8169 (load_image): Likewise.
8170
f04a9a21
VS
81712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8172
8173 * configure.ac: Fix a typo in previous commit.
8174
46cf439c
VS
81752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8176
8177 Don't add -Wl,-N on Apple platform.
8178
8179 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
8180 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
8181
c4c48c54
VS
81822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8183
8184 * grub-core/Makefile.core.def (lzma_decompress): Use
8185 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
8186
31a12124
VS
81872012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 * grub-core/genmod.sh.in: Rewrite the Apple part.
8190
4f3aa1af
VS
81912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8192
8193 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
8194 comparison.
8195
7bd8b0c7
VS
81962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8197
8198 * acinclude.m4 (grub_CHECK_PIC): New test.
8199 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
8200
97304d7c
VS
82012012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8202
8203 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
8204 to avoid the warning.
8205
fb883812
VS
82062012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
8209 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
8210 after. All users updated.
8211
a121c964
VS
82122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8213
8214 Use the common size routine in hostfs so we can read disks as well.
8215
8216 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
8217 (grub_util_get_fd_size): ... this. Return size in bytes.
8218 All users updated.
8219 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
8220 grub_util_get_fd_size.
8221
c66d6410
VS
82222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8223
8224 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
8225 Add blocksize retrieval.
8226
dfc8aeb0
VS
82272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8228
8229 * configure.ac: Restore CFLAGS after efiemu check.
8230
403e25a5
VS
82312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8232
8233 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
8234 Apple bug.
8235
382775d1
VS
82362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8237
8238 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
8239
6fd4e6e4
VS
82402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8241
8242 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
8243 (grub_cmd_halt): Likewise.
8244
bea359d6
VS
82452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8246
8247 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
8248 for local arithmetics.
8249 Break %sp init into 2 instructions.
8250 Add 0 byte at the end.
8251
32eb6ee1
VS
82522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8253
8254 * grub-core/disk/diskfilter.c (read_segment): Initialise err
8255 before loops.
8256
e8377389
VS
82572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8258
8259 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
8260 for context.
8261
8cb17de7
VS
82622012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8263
8264 * grub-core/disk/ldm.c (make_vg): Init part.name.
8265 (grub_ldm_detect): Silence spurious warning.
8266 (grub_util_is_ldm): Likewise.
8267
595717e6
VS
82682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8269
8270 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
8271 sane value to avoid a spurious warning.
8272
c4b7e588
VS
82732012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
8276 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
8277
59824957
VS
82782012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
8281 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
8282
70115b99
VS
82832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8284
8285 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
8286 hardcoding the relevant info.
8287
56733740
VS
82882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8289
8290 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
8291 missing const qualifiers.
8292 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
8293
43481481
VS
82942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8295
8296 * util/getroot.c [__APPLE__]: Add missing includes.
8297 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
8298
3cb38f01
VS
82992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8300
8301 * util/grub-mkimage.c (generate_image): Silence spurious warning.
8302
d9dbf11e
VS
83032012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8304
8305 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
8306 avoid conflicts.
8307
0c42a45d
VS
83082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8309
8310 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
8311
46c34eb0
VS
83122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8313
8314 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
8315 and grub_file_close call.
8316
99ce1597
VS
83172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8318
8319 Add LZSS Mach-O support (needed for new xnu kernelcache).
8320
8321 * grub-core/Makefile.core.def (xnu): Add file lzss.c
8322 * grub-core/loader/lzss.c: New file.
8323 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
8324 on Mach-O open failure.
8325 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
8326 Don't free cmdsXX in uncompressedXX is set.
8327 (grub_macho_file): Init new fields.
8328 New argument is_64bit. All users updated.
8329 Handle compressed. Error out if no suitable architecture is found.
8330 Don't close file.
8331 (grub_macho_open): New argument is_64bit. All users updated.
8332 * grub-core/loader/macho32.c: Add defines for new fields.
8333 * grub-core/loader/macho64.c: Likewise.
8334 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
8335 (grub_macho_parse): Handle compressed.
8336 Defer actual processing if compressed.
8337 (grub_macho_cmds_iterate): Decompress if compressed. New argument
8338 "filename". All users updated.
8339 (grub_macho_size): New argument "filename". All users updated.
8340 (grub_macho_get_entry_point): Likewise.
8341 (grub_macho_load): Handle compressed.
8342 * include/grub/macho.h (grub_macho_lzss_header): New struct.
8343 (GRUB_MACHO_LZSS_OFFSET): New define.
8344 (grub_decompress_lzss): New proto.
8345 * include/grub/machoload.h (grub_macho_file): New fields to handle
8346 compressed.
8347 (grub_macho_contains_macho64): Remove proto.
8348 (grub_macho_contains_macho32): Likewise.
8349 * util/grub.d/30_os-prober.in: Use kernel cache if available.
8350
ebd17d6f
VS
83512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8352
8353 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
8354
2702b4e4
VS
83552012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8356
8357 Fix make dist.
8358
8359 * Makefile.am (starfield_theme_files): New var.
8360 (starfield_DATA): Use starfield_theme_files.
8361 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
8362 Add bootcheck-related files.
8363 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
8364 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
8365 and font_char_metrics.txt.
8366 * grub-core/Makefile.core.def (kernel): Update extra_dist.
8367 (setjmp): Add lib/ia64/longjmp.S.
8368 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
8369 * po/POTFILES.in: Regenerate.
8370 * po/Rules-swiss: use DISTFILES.common.extra2 and not
8371 DISTFILES.common.extra1.
8372 * util/devicemap.c: Removed.
8373 * grub-core/lib/i386/relocator_backward.S: Likewise.
8374 * util/import_gcry.py: Remove unused files. Add extra_dist for
8375 ChangeLog.
8376
cf1adfdf
VS
83772012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8378
8379 * grub-core/gettext/gettext.c (grub_mofile_open): Call
8380 grub_gettext_delete_list before changing grub_gettext_max to avoid
8381 running out of array bounds.
8382
83832012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
8384
8385 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
8386 grub_vga_text_init/grub_vga_text_fini.
8387
cf1adfdf 83882012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
8389
8390 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
8391
541d92e9
VS
83922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8393
8394 * configure.ac: Bump to 2.00~beta0.
8395
7931dddf
VS
83962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8397
8398 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
8399 missing initialisation.
8400
f1b16fa3
VS
84012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8402
8403 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
8404
83ddae23
VS
84052012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8406
8407 Support v2 xnu boot arguments.
8408
8409 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
8410 New argument fsbfreq_out.
8411 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
8412 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
8413 be used.
8414 * grub-core/loader/machoXX.c (grub_macho_load): New argument
8415 darwin_version.
8416 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
8417 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
8418 (grub_xnu_boot_params): Rename to ...
8419 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
8420 (grub_xnu_boot_params_v2): New struct.
8421
dc693fe6
VS
84222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
8425 zeroing of CRC field before computing CRC.
8426
5a6e39c2
VS
84272012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8428
8429 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
8430 Change order of allocations to decrease fragmentation.
8431
6c21f5d7
VS
84322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
8435
cfe456dc
CW
84362012-02-27 Colin Watson <cjwatson@ubuntu.com>
8437
8438 Use write-combining MTRR to speed up video with buggy BIOSes.
8439
8440 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
8441 (cpuid): New define.
8442 (rdmsr): Likewise.
8443 (wrmsr): Likewise.
8444 (mtrr_base): Likewise.
8445 (mtrr_mask): Likewise.
8446 (grub_vbe_enable_mtrr_entry): New function.
8447 (grub_vbe_enable_mtrr): Likewise.
8448 (grub_vbe_disable_mtrr): Likewise.
8449 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
8450 control off to BIOS.
8451 (grub_video_vbe_init): Fill mtrr.
8452 (grub_video_vbe_fini): Disable mtrr.
8453 (grub_video_vbe_get_info_and_fini): Likewise.
8454 (grub_video_vbe_setup): Enable mtrr.
8455
e3c78337
CW
84562012-02-27 Colin Watson <cjwatson@ubuntu.com>
8457
8458 * include/grub/partition.h (grub_partition_map): Change prototype of
8459 embed to take a maximum value for nsectors.
8460 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
8461 * include/grub/fs.h (grub_fs): Likewise.
8462 * grub-core/partmap/msdos.c (embed_signatures): New array.
8463 (pc_partition_map_embed): Check for and avoid sectors matching any
8464 of the signatures in embed_signatures, up to max_nsectors.
8465 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
8466 returned sector map to max_nsectors.
8467 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
8468 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
8469 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
8470 * util/grub-setup.c (setup): Allow for the embedding area being
8471 split into multiple blocklists. Tell dest_partmap->embed the
8472 maximum number of sectors we care about.
8473
84742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8475
8476 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
8477 Specify blocklist_install and reserver_first_sector for all fs.
8478 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
8479 blocklists.
8480
984b973f
VS
84812012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8482
8483 * util/grub-install.in: Clarify strings.
8484 Fix source dir check.
8485
f122e0d6
RL
84862012-02-27 Richard Laager <rlaager@wiktel.com>
8487
8488 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
8489 "zfs" and "fuse.zfs" as synonyms.
8490
071114bb
VS
84912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8492
8493 * configure.ac: Put platform and target_cpu substitutions back since
8494 they are used for directories.
8495
817e6abc
RL
84962012-02-27 Richard Laager <rlaager@wiktel.com>
84972012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * util/grub.d/10_linux.in: Add ZFS-related arguments.
8500 * util/grub.d/20_linux_xen.in: Likewise.
8501
897b7419
RL
85022012-02-27 Richard Laager <rlaager@wiktel.com>
8503
8504 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
8505 with full paths.
8506
a414bd15
RL
85072012-02-27 Richard Laager <rlaager@wiktel.com>
8508
8509 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
8510 unescape.
8511
30ac48c4
VS
85122012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 Don't use insecure popen in getroot.
8515
8516 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
8517 (exec_pipe): ... here.
8518 (find_root_devices_from_poolname): Use exec_pipe.
8519
53f13848
VS
85202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8521
8522 Remove platform and target_cpu replacement.
8523
8524 * configure.ac: Remove platform and target_cpu substitutions.
8525 * tests/util/grub-shell.in: Use modinfo.
8526 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
8527 explicitly.
8528
90cb2803
VS
85292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8530
8531 Autodetect platform in grub-install but allow override.
8532
8533 * util/grub-install.in: Autodetect platform. Support --target and
8534 --directory. Read platform from modinfo.sh.
8535
b9136427
VS
85362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8537
8538 Support btrfs multi-volume probe.
8539
8540 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
8541 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
8542 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
8543 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
8544 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
8545 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
8546 grub_find_root_devices_from_btrfs if on btrfs.
8547
c36e5cd1
VS
85482012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8549
8550 Remove any awareness of *.c util files about target.
8551
8552 * Makefile.util.def (grub-setup): Split to ...
8553 (grub-bios-setup): ... and this.
8554 (grub-sparc64-setup): ... and this.
8555 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
8556 * docs/man/grub-setup.h2m: Split into ...
8557 * docs/man/grub-sparc64-setup.h2m: ... this.
8558 * docs/man/grub-bios-setup.h2m: ... and this.
8559 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
8560 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
8561 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
8562 (grub_target_addr_t): Remove.
8563 (grub_target_size_t): Remove.
8564 (grub_target_ssize_t): Remove.
8565 * util/grub-install.in: Use new grub-*-setup.
8566 * util/grub-mkimagexx.c (Elf_Word): New define.
8567 (Elf_Half): Likewise.
8568 (Elf_Section): Likewise.
8569 (ELF_ST_TYPE): Likewise.
8570 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
8571 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
8572
584b2f8a
VS
85732012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8574
8575 Replace grub_target_addr with more appropriate types.
8576
8577 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
8578 grub_target_addr with grub_addr.
8579 * grub-core/commands/iorw.c (grub_cmd_read): Replace
8580 grub_target_addr with grub_port.
8581 (grub_cmd_write): Likewise.
8582 * grub-core/commands/memrw.c (grub_cmd_read): Replace
8583 grub_target_addr with grub_addr.
8584 (grub_cmd_write): Likewise.
8585 * grub-core/video/efi_uga.c (find_line_len): Likewise.
8586
5a0dc6fb
VS
85872012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8588
8589 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
8590 const qualifier for vendor_guid.
8591
786aff6e
VS
85922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8593
8594 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
8595 const qualifier.
8596 (efiemu_memequal): Likewise.
8597 (find_variable): Likewise.
8598
49017b17
VS
85992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 Fix missing console prototype on qemu-mips.
8602
8603 * include/grub/mips/qemu_mips/console.h: New file.
8604
c5988629
MG
86052012-02-27 Matthew Garrett <mjg@redhat.com>
86062012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8607
8608 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
8609 * include/grub/efi/efi.h: Likewise.
8610 * include/grub/efi/api.h: Add guid for EFI-specified variables.
8611 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
8612 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
8613 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
8614 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
8615 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
8616
e33f8d69
MG
86172012-02-27 Matthew Garrett <mjg@redhat.com>
8618
8619 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
8620
fb312cd9
VS
86212012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8622
8623 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
8624 error.
8625
7134247c
VS
86262012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8627
8628 * configure.ac: Remove inappropriate use of program_transform_name
8629 on grubdir and bootdir but allow explicit specification of those
8630 variables.
8631
6a313124
VS
86322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8633
8634 * util/grub-mknetdir.in (grub_prefix): Removed.
8635 (subdir): Use @bootdirname@ and @grubdirname@.
8636
2311c5ca
VS
86372012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8638
8639 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
8640
7d5d60f7
VS
86412012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8642
8643 * po/POTFILES.in: Regenerated.
8644
8151bc82
VS
86452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8646
8647 Remove improper use of program_transform_name on pkglibrootdir.
8648
8649 * configure.ac (pkglibrootdir): Removed.
8650 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
8651 * util/grub-mkimage.c: Likewise.
8652
b4a6a533
VS
86532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8654
8655 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
8656 warning.
8657
668f304f
VS
86582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8659
8660 * util/grub-install.in: Use file identifier if no UUID is available
8661 or user explicitly prompted for it.
8662
665f2341
NP
86632012-02-27 Navdeep Parhar <nparhar@gmail.com>
8664
8665 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
8666 (freebsd_get_zfs): New function.
8667 (grub_freebsd_boot): Pass zfs UUID.
8668 (grub_cmd_freebsd): Set zfs UUID.
8669
8151bc82 86702012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
8671
8672 * conf/Makefile.common (platformdir): Base on pkglibdir and not
8673 pkglibrootdir.
8674
e4c498a1
MG
86752012-02-27 Mike Gilbert <floppym@gentoo.org>
8676
8677 Add configure flag to control libzfs integration.
8678
8679 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
8680
1e9a9a3f
VS
86812012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8682
8683 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
8684 device.
8685 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
8686 small devices.
8687
036985b8
VS
86882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8689
8690 Remove grub_{modname}_init and grub_{modname}_fini. They should never
8691 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
8692 be used on non-modules.
8693
8694 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
8695 Rename to grub_boot_init.
8696 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
8697 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
8698 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
8699 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
8700 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
8701 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
8702 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
8703 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
8704 includes.
8705 (grub_machine_init): Remove empty inits.
8706 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
8707 includes.
8708 (grub_machine_init): Remove empty inits.
8709 * grub-core/term/arc/console.c: Remove explicit proto.
8710 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
8711 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
8712 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8713 grub_at_keyboard_fini.
8714 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
8715 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
8716 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8717 grub_gfxterm_fini.
8718 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
8719 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
8720 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8721 grub_vgatext_fini.
8722 * grub-core/term/ieee1275/console.c: Remove explicit proto.
8723 * grub-core/term/serial.c (GRUB_MOD_INIT)
8724 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
8725 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8726 grub_serial_fini.
8727 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
8728 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
8729 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8730 grub_terminfo_fini.
8731 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
8732 (GRUB_MOD_FINI): Likewise.
8733 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
8734 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
8735 (GRUB_MOD_FINI) [LOONGSON]: Rename to
8736 grub_video_radeon_fuloong2e_fini.
8737 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
8738 [LOONGSON]: Rename to grub_video_sis315pro_init.
8739 (GRUB_MOD_FINI) [LOONGSON]: Rename to
8740 grub_video_sis315pro_fini.
8741 * grub-core/video/sm712.c (GRUB_MOD_INIT)
8742 [LOONGSON]: Rename to grub_video_sm712_init.
8743 (GRUB_MOD_FINI) [LOONGSON]: Rename to
8744 grub_video_sm712_fini.
8745 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
8746 (grub_at_keyboard_fini): Likewise.
8747 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
8748 Don't declare grub_{modname}_init.
8749 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
8750 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
8751 New proto.
8752 (grub_keylayouts_fini) [!EMU]: Likewise.
8753 * include/grub/serial.h (grub_serial_init) [!EMU]:
8754 New proto.
8755 (grub_serial_fini) [!EMU]: Likewise.
8756 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
8757 New proto.
8758 (grub_terminfo_fini) [!EMU]: Likewise.
8759 * include/grub/video.h (grub_font_init) [!EMU]:
8760 New proto.
8761 (grub_font_fini) [!EMU]: Likewise.
8762 (grub_gfxterm_init) [!EMU]: Likewise.
8763 (grub_gfxterm_fini) [!EMU]: Likewise.
8764 (grub_video_sm712_init) [!EMU]: Likewise.
8765 (grub_video_sm712_fini) [!EMU]: Likewise.
8766 (grub_video_sis315pro_init) [!EMU]: Likewise.
8767 (grub_video_sis315pro_fini) [!EMU]: Likewise.
8768 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
8769 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
8770
d5534665
VS
87712012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8772
8773 Make nand a prefix for nand devices.
8774
8775 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
8776
10133b5f
VS
87772012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8778
8779 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
8780 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
8781
8e307a62
VS
87822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8783
8784 * include/grub/env.h (grub_env_find): Remove prototype.
8785 * grub-core/kern/env.c (grub_env_find): Make static.
8786 (grub_env_set): Remove useless set.
8787
a4c65f34
VS
87882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 * grub-core/kern/i386/realmode.S: Remove useless align.
8791
d87893d5
VS
87922012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8793
8794 * include/grub/dl.h (grub_dl_load_file): Don't export.
8795
50159add
VS
87962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8797
8798 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
8799 grub_dprintf.
8800
b2582b84
VS
88012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8802
8803 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
8804 grub_errors.
8805 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
8806 not reloading whole superblock but only the part which is really needed.
8807 Remove useless grub_errors.
8808 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
8809 grub_errors.
8810
e2a83395
VS
88112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8812
8813 Don't export grub_get_rtc.
8814
8815 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
8816 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
8817
e7d2a906
VS
88182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8819
8820 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
8821
6cf1363b
VS
88222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8823
8824 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 8825 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 8826
eece3349
VS
88272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 Remove prio_list.
8830
8831 * include/grub/list.h (grub_prio_list): Removed.
8832 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
8833 GRUB_COMMAND_PRIO_MASK.
8834 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
8835 GRUB_COMMAND_FLAG_ACTIVE.
8836 (grub_prio_list_insert): Removed.
8837 (grub_prio_list_remove): Likewise.
8838 (GRUB_AS_PRIO_LIST): Likewise.
8839 (GRUB_AS_PRIO_LIST_P): Likewise.
8840 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
8841 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
8842 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
8843 * grub-core/kern/command.c (grub_register_command_prio): Inline
8844 the prio_list code.
8845 (grub_unregister_command): Likewise.
8846
94f064b4
VS
88472012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 Fix interrupt mixup from previous commit.
8850
8851 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
8852 (grub_realidt): New var.
8853 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
8854 Load idt.
8855 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
8856 New declaration.
8857 (grub_relocator16_boot): Set grub_relocator16_idt.
8858 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
8859 (LOCAL(realidt)): ... this.
8860 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
8861 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
8862 (grub_realidt): New variable.
8863
27317084
VS
88642012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
8867 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
8868 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
8869 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
8870 Gettextize.
8871 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
8872 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
8873 * po/POTFILES.in: Regenerate.
8874
47b40053
VS
88752012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
8878 errors.
8879
2b343101
VS
88802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8881
8882 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
8883 \0.
8884 (add_length): Likewise.
8885
ff27c3dd
LK
88862012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
88872012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
8888
8889 GDB serial and backtrace support.
8890
8891 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
8892 (prot_to_real): Likewise.
8893 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
8894 * grub-core/Makefile.core.def (backtrace): New module.
8895 (gdb): Likewise.
8896 * grub-core/gdb/cstub.c: New file.
8897 * grub-core/gdb/gdb.c: Likewise.
8898 * grub-core/gdb/i386/idt.c: Likewise.
8899 * grub-core/gdb/i386/machdep.S: Likewise.
8900 * grub-core/gdb/i386/signal.c: Likewise.
8901 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 8902 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
8903 * include/grub/backtrace.h: Likewise.
8904 * include/grub/gdb.h: Likewise.
8905 * include/grub/i386/gdb.h: Likewise.
8906
89072012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
8908
8909 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
8910 New function.
8911 (add_length): Likewise.
8912 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
8913 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
8914 proto.
8915 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
8916 __argp_get_display_len.
8917
ff27c3dd 89182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
8919
8920 $"..." support in scripts.
8921
8922 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
8923 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
8924 * grub-core/script/yylex.l: Likewise.
8925 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
8926 value.
8927
ff27c3dd 89282012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
8929
8930 * gentpl.py: Remove obsolete pkglib_DATA handling.
8931
ff27c3dd 89322012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
8933
8934 Don't transform PACKAGE_TARNAME following a discussion on autoconf
8935 mailing list.
8936
8937 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
8938 * util/grub-kbdcomp.in: Likewise.
8939 * util/grub-mkconfig.in: Likewise.
8940 * util/grub-mkconfig_lib.in: Likewise.
8941 * util/grub-mknetdir.in: Likewise.
8942 * util/grub-mkrescue.in: Likewise.
8943 * util/grub-mkstandalone.in: Likewise.
8944 * util/grub-reboot.in: Likewise.
8945 * util/grub-set-default.in: Likewise.
8946 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8947
ff27c3dd 89482012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
8949
8950 Remove GRUB_PREFIX.
8951
8952 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
8953 * util/grub.d/00_header.in: Compute prefix in the only place it's still
8954 used for backward compatibility.
8955
ff27c3dd 89562012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
8957
8958 Add new all_video module.
8959
8960 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
8961 * grub-core/Makefile.core.def (all_video): New module.
8962 * grub-core/genmoddep.awk: Generate dependency of all_video from
8963 video.lst.
8964 * grub-core/lib/fake_module.c: New file.
8965 * grub-core/normal/main.c (features): Add feature_all_video_module.
8966 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
8967 don't do explicit search again.
47454da5 8968 insmod all_video in load_video if available.
22c7ce85 8969
ff27c3dd 89702012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
8971
8972 Another round of string clarification and adding TRANSLATORS comments.
8973
ff27c3dd 89742012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
8975
8976 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
8977
ff27c3dd 89782012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
8979
8980 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
8981 to grub_ssize_t.
8982 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
8983 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
8984
ff27c3dd 89852012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
8986
8987 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
8988 trailing newline implicitly. All users updated.
8989
ff27c3dd 89902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
8991
8992 Implement serial on IEEE1275 and EFI.
8993
8994 * docs/grub.texi (Platform-specific limitations): Fix the columen video
8995 on emu. Mention arc and emu as the only platforms without serial
8996 support.
8997 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
8998 ieee1275 platforms.
8999 * grub-core/term/efi/serial.c: New file.
9000 * grub-core/term/ieee1275/serial.c: Likewise.
9001 * grub-core/term/serial.c (grub_serial_find): Disable direct port
9002 specification if no ns8250 driver is available.
9003 (grub_cmd_serial): Likewise.
9004 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
9005 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
9006 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
9007 (grub_efi_parity_type_t): New type.
9008 (grub_efi_stop_bits_t): Likewise.
9009 (grub_efi_serial_io_interface): New struct.
9010 * include/grub/serial.h (grub_serial_port): Make 'broken' field
9011 available for all interfaces.
9012 Add EFI and IEEE1275 fields.
9013 (grub_ofserial_init): New proto.
9014 (grub_efiserial_init): Likeiwse.
9015 * util/grub.d/00_header.in: Don't check for the presence of serial
9016 module.
9017
ff27c3dd 90182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
9019
9020 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
9021 name as if it was an alias.
9022
114076ef
VS
90232012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9024
9025 * grub-core/commands/lsacpi.c (options): Fix typo.
9026
6a656b0e
VS
90272012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9028
9029 Convert grub-emu to argp.
9030
9031 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
9032 emu.
9033 * util/argp_common.c: Rename to ...
9034 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
9035 Add missing includes.
9036 * grub-core/kern/emu/main.c: Convert to argp.
9037 * po/POTFILES.in: Regenerate.
9038 * util/grub-install.in (usage): Make first letter lowcase in messages
9039 for uniformity.
9040 * util/grub-setup.c (options): Likewise.
9041
1e3f8ae8
VS
90422012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
9045 Put back accidently commented-out code.
9046
ed167a80
VS
90472012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
9050 loop check using Brent algorithm.
9051 (grub_hfsplus_btree_search): Likewise.
9052
6753c0ec
VS
90532012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 * util/grub-install.in: Fix usage of wrong device for PreP install.
9056
4e27343f
VS
90572012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9058
9059 * conf/Makefile.common (CFLAGS_GNULIB): Add
9060 -Wno-unsafe-loop-optimizations.
9061 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
9062 on tools.
9063 * grub-core/commands/legacycfg.c: Add pragma to skip
9064 -Wunsafe-loop-optimizations.
9065 (check_password_md5_real): Fix loop counter type.
9066 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
9067 reading.
9068 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
9069 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
9070 loop condition.
9071 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
9072 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
9073 * grub-core/net/net.c (grub_net_route_address): Add safety loop
9074 condition.
9075 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
9076 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
9077 avoid possible infinite loops.
9078 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
9079 and -Wunsafe-loop-optimizations.
9080 * grub-core/script/yylex.l: Likewise.
9081 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
9082 (print_glyphs): Avoid infinite loops.
9083 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
9084
697f18b0
GS
90852012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
9086
9087 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
9088 to avoid infinite loop.
9089 (disp_acpi_rsdt_table): Likewise.
9090
274416e8
VS
90912012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9092
9093 * grub-core/font/font.c (grub_font_load): Add support for default
9094 path for fonts ($prefix/fonts).
9095 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
9096 for checking if string is a path.
9097 * grub-core/normal/main.c (features): Add feature_default_font_path.
9098 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
9099 * util/grub.d/00_header.in: Use default directory if possible.
9100 * util/grub-install.in: Install unicode.pf2.
9101
b3e08622
VS
91022012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9103
9104 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
9105 * po/Rules-swiss: New file.
9106 * po/swiss.sed: Likewise.
9107
fe42ce09
VS
91082012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9109
9110 * grub-core/fs/btrfs.c (find_device): Fix typos.
9111 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
9112 * util/grub-mkrelpath.c (argp_parser): Likewise.
9113 Reported by: Yuri Chornoivan.
9114
72f1d065
DO
91152012-02-23 Dalet Omega <daletomega@gmail.com>
9116
9117 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
9118 for usual informative messages.
9119
c5884973
DO
91202012-02-23 Dalet Omega <daletomega@gmail.com>
9121
9122 Starfield theme.
9123
9124 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
9125 * conf/Makefile.common: Define starfielddir.
9126 * configure.ac: Configure starfield.
9127 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
9128 * themes/starfield/README: Likewise.
9129 * themes/starfield/blob_w.png: Likewise.
9130 * themes/starfield/boot_menu_c.png: Likewise.
9131 * themes/starfield/boot_menu_e.png: Likewise.
9132 * themes/starfield/boot_menu_n.png: Likewise.
9133 * themes/starfield/boot_menu_ne.png: Likewise.
9134 * themes/starfield/boot_menu_nw.png: Likewise.
9135 * themes/starfield/boot_menu_s.png: Likewise.
9136 * themes/starfield/boot_menu_se.png: Likewise.
9137 * themes/starfield/boot_menu_sw.png: Likewise.
9138 * themes/starfield/boot_menu_w.png: Likewise.
9139 * themes/starfield/slider_c.png: Likewise.
9140 * themes/starfield/slider_n.png: Likewise.
9141 * themes/starfield/slider_s.png: Likewise.
9142 * themes/starfield/src/blob_nw.xcf: Likewise.
9143 * themes/starfield/src/bootmenu/: Likewise.
9144 * themes/starfield/src/bootmenu/center.xcf: Likewise.
9145 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
9146 * themes/starfield/src/bootmenu/side.xcf: Likewise.
9147 * themes/starfield/src/slider_c.xcf: Likewise.
9148 * themes/starfield/src/slider_n.xcf: Likewise.
9149 * themes/starfield/src/slider_s.xcf: Likewise.
9150 * themes/starfield/src/terminalbox/: Likewise.
9151 * themes/starfield/src/terminalbox/center.xcf: Likewise.
9152 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
9153 * themes/starfield/src/terminalbox/side.xcf: Likewise.
9154 * themes/starfield/starfield.png: Likewise.
9155 * themes/starfield/terminal_box_c.png: Likewise.
9156 * themes/starfield/terminal_box_e.png: Likewise.
9157 * themes/starfield/terminal_box_n.png: Likewise.
9158 * themes/starfield/terminal_box_ne.png: Likewise.
9159 * themes/starfield/terminal_box_nw.png: Likewise.
9160 * themes/starfield/terminal_box_s.png: Likewise.
9161 * themes/starfield/terminal_box_se.png: Likewise.
9162 * themes/starfield/terminal_box_sw.png: Likewise.
9163 * themes/starfield/terminal_box_w.png: Likewise.
9164 * themes/starfield/theme.txt: Likewise.
9165
17d73325
VS
91662012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9167
9168 * util/grub.d/00_header.in: Add missing export theme.
9169
dbebaf92
VS
91702012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9171
9172 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
9173 already included.
9174 Reported by: Eren D.
9175
3d68bffb
VS
91762012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9177
9178 * conf/Makefile.common (grubdatadir): Removed.
9179 (Makefile.am): Move eveything grubdata to pkgdata.
9180
4b59234d
VS
91812012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9182
9183 * grub-core/commands/acpihalt.c (get_sleep_type):
9184 Remove unused variable.
9185
463dcadc
VS
91862012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9187
9188 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
9189 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
9190 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
9191 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
9192 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
9193 i18n with gettext no-op.
9194 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
9195 GRUB_ACPI_OPCODE_STRING_CONST.
9196 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
9197 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
9198
e5b90c82
VS
91992012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 * po/POTFILES.in: Regenerate.
9202
2a704ca9
VS
92032012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9204
9205 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
9206 -Wno-error=missing-noreturn.
9207
84f9d341
VS
92082012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9209
9210 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
9211 condition to avoid possibly infinite loops.
9212 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
9213 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
9214
d46683f9
VS
92152012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
9218 condition to avoid possibly infinite loops.
9219
c44866b2
VS
92202012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9221
9222 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
9223 on show_error.
9224
96790539
VS
92252012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9226
9227 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
9228
1ba7e295
VS
92292012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
9232
21ffe8f1
VS
92332012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9234
9235 * util/bin2h.c (usage): Add missing attribute noreturn.
9236
0ccb6b3c
VS
92372012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9238
9239 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
9240 if the size isn't divisible by 512.
9241
b00d7fb6
VS
92422012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 Make list_push and list_remove functions rather than inline functions
9245 to decrease size and avoid aliasing violations.
9246
9247 * include/grub/list.h (grub_list_push): Move to ...
9248 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
9249 * include/grub/list.h (grub_list_remove): Move to ...
9250 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
9251
9d369087
VS
92522012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9253
9254 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
9255 and -Wunused-result.
9256
af0250d9
VS
92572012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9258
9259 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
9260 Reported by: Seth Goldberg
9261
aad32b14
VS
92622012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9263
9264 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
9265
ac96441c
ST
92662012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9267
9268 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
9269 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
9270 command line.
9271 * docs/grub.texi (Simple configuration): Document
9272 GRUB_CMDLINE_GNUMACH.
9273
92742012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
9275
9276 * conf/Makefile.common (platform_SCRIPTS): New variable.
9277 (platform_PROGRAMS): Likewise.
9278 * gentpl.py: Mark *,module and *.image for install.
9279 * grub-core/gdb_grub.in: Add a notice of expected environment.
9280 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
9281 (gmodule.pl): Likewise.
9282
ac96441c 92832012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
9284
9285 Replace grub_checkkey with grub_getkey_noblock.
9286
9287 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
9288 (grub_getkey_noblock): ... this. All users updated.
9289
ac96441c 92902012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
9291
9292 * grub-core/kern/emu/console.c: Move to ...
9293 * grub-core/term/emu/console.c: ...here.
9294 (grub_ncurses_getkey): Fix return value if no key is detected.
9295
e51b5666
VS
92962012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9297
9298 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
9299 (grub_unit_test_fini): Likewise.
9300 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
9301
93022012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9303
9304 * include/grub/test.h (GRUB_UNIT_TEST)
9305
d9a62292
VS
93062012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 * grub-core/script/execute.c (grub_script_break): Clarify logic.
9309 Better error handling.
9310 (grub_script_return): Likewise.
9311 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
9312
77c9182f
VS
93132012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
9316 rimplicit redifinition.
9317
edb13cf9
VS
93182012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9319
9320 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
9321 GRUB.
9322
a9e9dc7c
VS
93232012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9324
9325 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
9326 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
9327 prompt here.
9328
b4ba8e02
VS
93292012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9330
9331 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
9332 as GRUB_ERR_BUG. Don't malloc if no device is available.
9333
dded5540
VS
93342012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9335
9336 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
9337 Mark calling with invalid term as GRUB_ERR_BUG.
9338
0cf69874
VS
93392012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9340
9341 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
9342 packets rather than raising an error.
9343
59bfe502
VS
93442012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9345
9346 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
9347 in if.
9348
db5fc596
VS
93492012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9350
9351 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
9352 diagnostic to dprintf.
9353 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9354
e4b7f404
VS
93552012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
9358 device name.
9359
e7b02f9e
VS
93602012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9361
9362 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
9363 (grub_ntfs_iterate_dir): Likewise.
9364
0331e102
VS
93652012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9366
9367 Efiemu stylistic fixes and gettext.
9368
9369 * grub-core/efiemu/i386/loadcore32.c
9370 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
9371 * grub-core/efiemu/i386/loadcore64.c
9372 (grub_arch_efiemu_relocate_symbols64): Likewise.
9373 * grub-core/efiemu/i386/pc/cfgtables.c
9374 (grub_machine_efiemu_init_tables): Likewise.
9375 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
9376 (grub_efiemu_loadcore_initXX): Add a filename argument.
9377 All users updated.
9378 Improved error message.
9379 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
9380 Add a filename argument.
9381 All users updated.
9382 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
9383 Reclassify double relocation as GRUB_ERR_BUG.
9384
306fc074
VS
93852012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
9388 handling.
9389
794d8ef2
VS
93902012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9391
9392 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
9393 on partition.
9394
93952012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
9396
9397 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
9398
794d8ef2 93992012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
9400
9401 Improve string. Gettextize.
9402
78dde88e
VS
94032012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9404
9405 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
9406 utils.
9407 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
9408
4786a90f
VS
94092012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9410
9411 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
9412 [GRUB_UTIL]: New function.
9413 (insert_array) [GRUB_UTIL]: Store partmaps.
9414 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
9415 partmaps.
9416 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
9417 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
9418 (probe_abstraction): Print diskfilter and not raid.
9419 Reported by: Lennart Sorensen
9420
0b6225bd
VS
94212012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9422
9423 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
9424 * util/grub-mkimagexx.c (MASK3): New define.
9425 (add_value_to_slot_20b): Use MASK3.
9426 (add_value_to_slot_21): Likewise.
9427 (relocate_addresses): Fix format specification.
9428 (load_image): Explicitly init symtab_section.
9429
b055f8f6
VS
94302012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
9433 (grub_util_biosdisk_get_grub_dev): Fix format specification.
9434
b77c2fb7
VS
94352012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9436
9437 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
9438 on powerpc.
9439 Reported by: Lennart Sorensen
9440
e3ec28ab
VS
94412012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9442
9443 * gentpl.py: Add missing license header.
9444 * docs/grub.texi: Update copyright year.
9445
c8d9ead6
GS
94462012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
9447
9448 Source grub-mkconfig_lib from the build directory at build time.
9449 Suggested by: Vladimir Serbinenko.
9450
9451 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
9452 * util/grub-install.in: Define pkgdatadir if not already set, and source
9453 grub-mkconfig_lib from there.
9454 * util/grub-kbdcomp.in: Likewise.
9455 * util/grub-mkconfig.in: Likewise.
9456 * util/grub-mknetdir.in: Likewise.
9457 * util/grub-mkrescue.in: Likewise.
9458 * util/grub-mkstandalone.in: Likewise.
9459 * util/grub-reboot.in: Likewise.
9460 * util/grub-set-default.in: Likewise.
9461 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9462
ebcecdf1
VS
94632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9464
9465 Increase warning level.
9466
9467 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
9468 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
9469 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
9470 (TARGET_CFLAGS): Likewise.
9471 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
9472 * grub-core/Makefile.core.def (decompressor_xz): Add
9473 -Wno-unreachable-code.
9474 (normal): Add -Wno-redundant-decls.
9475 (xzio): Add -Wno-unreachable-code.
9476 (lzopio): Add -Wno-redundant-decls -Wno-error.
9477 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
9478 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
9479 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
9480 * grub-core/kern/dl.c: Add exception to -Wcast-align.
9481 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
9482 * grub-core/kern/i386/coreboot/init.c: Add exception to
9483 -Wsuggest-attribute=noreturn.
9484 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
9485 * grub-core/kern/ia64/dl_helper.c: Likewise.
9486 * grub-core/kern/mips/dl.c: Likewise.
9487 * grub-core/kern/sparc64/dl.c: Likewise.
9488 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
9489 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
9490 (memcmp): Likewise.
9491 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
9492 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
9493 * grub-core/loader/mips/linux.c: Likewise.
9494 * grub-core/loader/multiboot_elfxx.c: Likewise.
9495 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
9496 * grub-core/video/sm712.c: Add exception to -Wcast-align.
9497 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
9498 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
9499 fixme.
9500 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9501 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
9502 Fix prototype.
9503
37bb97fe
VS
95042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9505
9506 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
9507 address.
9508
29a3550b
VS
95092012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
9512 Avoid improper use of strings.
9513 (grub_cmd_legacy_initrdnounzip): Likewise.
9514
dfdffd0d
VS
95152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9516
9517 * include/grub/emu/misc.h (grub_util_warn): Add missing format
9518 attribute.
9519 (grub_util_info): Likewise.
9520 (grub_util_error): Likewise.
9521
102fae4a
VS
95222012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
9525 * util/grub-fstest.c (fstest): Likewise.
9526
7e94d044
VS
95272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9528
9529 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
9530 (grub_md_sha512_real): Likewise.
9531 (grub_util_get_geli_uuid): Likewise.
9532 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
9533 (grub_util_biosdisk_open): Fix format specification.
9534 Respect format security.
9535 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
9536 (xrealloc): Likewise.
9537 (xasprintf): Likewise.
9538
5ebd9769
VS
95392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9540
9541 * util/import_gcry.py: Include grub/crypto.h in init.c.
9542
495fc8c1
VS
95432012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9544
9545 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
9546 (generate_image): Make prefix a const char *.
9547 Fix format specifications. Respect format security.
9548 Avoid void * arithmetics.
9549 Avoid shadowing.
9550 (argp_parser): Remove unused variable. Respect format security.
9551 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
9552 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
9553 (count_funcs): Remove unused variable.
9554 (relocate_addresses): Fix format specification.
9555 Disable x86-64 with elf32. Remove unused variables.
9556 (add_fixup_entry): Avoid shadowing.
9557 (make_reloc_section): Fix format specification.
9558 Use assert.
9559 (locate_sections): Fix format specifications.
9560 (load_image): Avoid shadowing.
9561
043c2ea3
VS
95622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9563
9564 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
9565 Fix format specifications. Respect format security.
9566 Don't translate already translated grub_errmsg.
9567 (argp_parser): Remove unused variable
9568
3ec65a81
VS
95692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9570
9571 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
9572
a4d9fe4a
VS
95732012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9574
9575 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
9576 (main): Likewise. Use xmalloc. Respect format security.
9577
15b81d49
VS
95782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9579
9580 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
9581 a const char *.
9582 (argp_parser): Remove unused variable.
9583
31731fc0
VS
95842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9585
9586 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
9587 (add_pixel): Make static.
9588 (add_font): Likewise.
9589 (write_string_section): Make name and str a const char *.
9590 (write_be16_section): Make name a const char *.
9591 (print_glyphs): Make static.
9592 (write_font_ascii_bitmap): Likewise.
9593 (write_font_width_spec): Likewise.
9594 (write_font_pf2): Likewise.
9595 (argp_parser): Remove unused variable.
9596 Respect format security.
9597 (main): Avoid shadowing. Respect format security.
9598
0809527b
VS
95992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 * util/grub-editenv.c (argp_parser): Make static.
9602 (create_envblk_file): Use xmalloc.
9603 (open_envblk_file): Likewise.
9604 Resepect format security.
9605 (set_variables): Respect format security.
9606
45b0c8b7
VS
96072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 * util/getroot.c (grub_find_device): Respect format security.
9610 (get_mdadm_uuid): Remove unused variable.
9611 (grub_util_pull_device): Dont call gettext on already translated
9612 grub_errmsg.
9613 (find_system_device): Remove unused variable.
9614 (grub_util_get_grub_dev): Likewise.
9615 (grub_make_system_path_relative_to_its_root): Respect format security.
9616
1b024b4e
VS
96172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9618
9619 * util/grub-fstest.c (execute_command): Make first argument
9620 a const char *.
9621 (read_file): Avoid shadowing.
9622 Reuse underlying error message if device open fails.
9623 (cmd_cmp): Respect format security.
9624 (root): Make const char *.
9625 (fstest): Remove args argument and use global copy.
9626 Respect format security.
9627 (argp_parser): Make static.
9628 (main): Make default_root const char *.
9629
5d1d4e28
VS
96302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * util/grub-mount.c (root): Make const char *.
9633 (execute_command): Make first argument a const char *.
9634 (fuse_init): Respect format security.
9635 (argp_parser): Make static. Remove unused variable.
9636 (main): Make default_root a const char *.
9637 Respect format security.
9638
36eb7379
VS
96392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9640
9641 * util/grub-probe.c (probe): Don't call gettext on already translated
9642 grub_errmsg.
9643 Remove unused variables.
9644 (argp_parser): Remove unused variable.
9645
76fb2ea9
VS
96462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 * util/grub-script-check.c (argp_parser): Remove unused variable.
9649 (main): Rename read to curread to avoid shadowing.
9650
56c98584
VS
96512012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 * util/misc.c (grub_util_write_image_at): Fix format specification.
9654 (grub_util_write_image): Likewise.
9655 (grub_script_execute_argument_to_string): Removed (unused).
9656 (grub_script_execute_menuentry): Likewise.
9657 (grub_putchar): Likewise.
9658
164ebb48
VS
96592012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9660
9661 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
9662 (FUNCTION) [GRUB_UTIL]: Likewise.
9663 (VARIABLE) [GRUB_UTIL]: Likewise.
9664
44318d61
VS
96652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
9668 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
9669
31a26002
VS
96702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9671
9672 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
9673 buffer.
9674
96752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9676
9677 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
9678 (LzmaEnc_SaveState): Removed (unused).
9679 (LzmaEnc_RestoreState): Likewise.
9680 (LzmaEnc_InitPriceTables): Made static.
9681 (LzmaEnc_Construct): Likewise.
9682 (LzmaEnc_FreeLits): Likewise.
9683 (LzmaEnc_Destruct): Likewise.
9684 (LzmaEnc_Init): Likewise.
9685 (LzmaEnc_InitPrices): Likewise.
9686 (LzmaEnc_Finish): Likewise.
9687 (LzmaEnc_PrepareForLzma2): Removed (unused).
9688 (LzmaEnc_MemPrepare): Likewise.
9689 (LzmaEnc_GetNumAvailableBytes): Likewise.
9690 (LzmaEnc_GetCurBuf): Likewise.
9691 (LzmaEnc_CodeOneMemBlock): Likewise.
9692
6fa67967
VS
96932012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
9696 (grub_util_ldm_embed): Likewise.
9697
9a7428e6
VS
96982012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9699
9700 * util/grub-editenv.c (print_var): Rename name to varname to
9701 avoid shadowing.
9702 (main): Rename index to curindex to avoid shadowing.
31a26002 9703 Make filename a const char *.
9a7428e6 9704
4f96abd1
VS
97052012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
9708 to arg_getline to avoid shadowing.
9709
44d10dad
VS
97102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9711
9712 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
9713 disk_ to avoid shadowing.
9714
340ba63e
VS
97152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
9718 curindex to avoid shadowing.
9719 Make static.
9720 (MatchFinder_GetNumAvailableBytes): Make static.
9721
22965bce
VS
97222012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9723
9724 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
9725 avoid shadowing.
9726
7b5784d4
VS
97272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9728
9729 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
9730 argument from encrypt to do_encrypt to avoid shadowing.
9731
6f48ca01
VS
97322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9733
9734 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
9735 incorrect nesting of #if's.
9736
a4ea2dff
VS
97372012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
9740 checks which are always false on some platforms.
9741 (grub_cmd_lsacpi): Likewise.
9742 * grub-core/kern/misc.c (grub_strtoul): Likewise.
9743 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
9744 Likewise.
9745
def9fc1b
VS
97462012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9747
9748 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
9749 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
9750
a67b2a04
VS
97512012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9752
9753 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
9754 re_dfa_t to avoid breaking alignment invariants.
9755 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
9756 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
9757
44c6828d
VS
97582012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9759
9760 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
9761 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
9762
bebe0dd0
VS
97632012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9764
9765 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
9766 Fix declaration.
9767
a9cdb3cf
VS
97682012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9769
9770 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
9771 conserve alignment invariants.
9772 (grub_ehci_ehcc_read16): Likewise.
9773 (grub_ehci_oper_read32): Likewise.
9774 (grub_ehci_oper_write32): Likewise.
9775 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
9776 Conserve alignment invariants.
9777
ccc3b1b8
VS
97782012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9779
9780 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
9781 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
9782 declarations.
9783
987fbd95
VS
97842012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9785
9786 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
9787 Remove unused variable.
9788
0df363f3
VS
97892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9790
9791 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
9792 Remove set in if.
9793
b2c0c4a6
VS
97942012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9795
9796 * include/grub/net.h: Remove double declarations.
9797
690c531f
VS
97982012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9799
9800 Remove "payload" command in ia64 Linux loader since I couldn't
9801 find any evidence of it being used for anything.
9802 Replace "relocate" command with an environment variable
9803
9804 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
9805 fields.
9806 (ia64_boot_payload): Removed.
9807 (last_payload): Likewise.
9808 (RELOCATE_OFF): Likewise.
9809 (RELOCATE_ON): Likewise.
9810 (RELOCATE_FORCE): Likewise.
9811 (relocate): Likewise.
9812 (free_pages): Don't free payloads.
9813 (grub_load_elf64): Use common error messages.
9814 Use "linux_relocate" variable.
9815 Increase the space after boot_params.
9816 (grub_cmd_payload): Removed.
9817 (grub_cmd_relocate): Likewise.
9818 (grub_cmd_fpswa): Improve messages.
9819 (cmd_payload): Removed.
9820 (cmd_relocate): Likewise.
9821 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
9822 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
9823
01783768
VS
98242012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9825
9826 Convert UHCI to DMA framework.
9827
9828 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
9829 (grub_uhci_pci_iter): Fill new members
9830 (grub_alloc_td): Use P2V and V2P functions.
9831 (grub_free_queue): Likewise.
9832 (grub_alloc_qh): Likewise.
9833 (grub_uhci_setup_transfer): Likewise.
9834 (grub_uhci_check_transfer): Likewise.
9835
43206939
VS
98362012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9837
9838 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
9839 Remove assignment in if while on it.
9840
571e140e
VS
98412012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9842
9843 * util/grub-mkstandalone.in: Fix modules directory.
9844
a9d96eeb
VS
98452012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9846
9847 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
9848 on i386-pc target.
9849 (argp_parser): Accept "auto" as compression specification.
9850
e4e37e8d
VS
98512012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9852
9853 Fix `help' with unloaded modules.
9854
9855 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
9856 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
9857 (grub_dyncmd_dispatcher): Small stylistic fix.
9858 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
9859 explicit help is requested.
9860
e1ea3ade
VS
98612012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9862
9863 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
9864 Explicitly init restart while on it.
9865
27556881
VS
98662012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9867
9868 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
9869 uninited variable.
9870
d65f6b36
VS
98712012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9872
9873 * util/grub-mknetdir.in: Use . rather than source for POSIX
9874 compatibility.
9875
0a1e473c
VS
98762012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9877
9878 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
9879
ce6647c8
VS
98802012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9881
9882 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
9883 variable.
9884
66747894
VS
98852012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9886
9887 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
9888 without quotes.
9889
71645f6e
VS
98902012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9891
9892 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
9893
0e1c1f61
VS
98942012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9895
9896 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
9897 iteration of partitions.
9898
9c4b5c13
VS
98992012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9900
9901 Improve gettext support. Stylistic fixes and error handling fixes while
9902 on it.
9903
215c90cb
VS
99042012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9905
9906 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
9907 part. Instead setup the correct stack in RM.
9908 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
9909 for stack.
9910 * include/grub/i386/relocator_private.h: New file.
9911
b5c1f9bf
VS
99122012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
9915 argument.
9916 * util/grub-fstest.c (options): Add missing DEVICE part.
9917
b525fd83
VS
99182012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9919
9920 Clarify and unify messages.
9921
9922 * grub-core/commands/hashsum.c (options): Unify messages.
9923 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
9924 literal-only message as translatable.
9925 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
9926 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
9927 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
9928 commands.
9929 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
9930 key, not the key used to unlock. Clarify what it's used for.
9931 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
9932 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
9933 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
9934 * util/grub-editenv.c (options): Unify "verbose" message.
9935 * util/grub-fstest.c (read_file): Unify error message.
9936 (fstest): Add quotes around commands.
9937 (options): Unify "verbose" message.
9938 * util/grub-install.in: Add quotes around variable name.
9939 * util/grub-kbdcomp.in: Unify error message.
9940 * util/grub-mkfont.c (main): Likewise.
9941 * util/grub-mkrescue.in: Likewise.
9942 * util/grub-mklayout.c (options): Unify "verbose" message.
9943 * util/grub-mkstandalone.in: Unify help and verbose messages.
9944 * util/grub-mount.c (options): Unify "verbose" message.
9945 * util/grub-probe.c (options): Likewise.
9946 * util/grub-script-check.c (options): Likewise.
9947 * util/grub-setup.c (setup): Unify no-terminator message.
9948 (options): Use DEVICE and not DEV.
9949 Unify "verbose" message.
9950 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
9951
0ae70393
VS
99522012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9953
9954 Improve and unify messages.
9955
9956 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
9957 name. All users updated.
9958 Print filename in error.
9959 (read_device_map): Print filename in error.
9960 * util/getroot.c (grub_guess_root_devices): Print filename in error.
9961 (grub_util_get_os_disk): Likewise.
9962 (grub_util_biosdisk_get_grub_dev): Likewise.
9963 (grub_util_check_block_device): Likewise.
9964 (grub_util_check_char_device): Likewise.
9965 (grub_make_system_path_relative_to_its_root): Likewise.
9966 * util/grub-editenv.c (create_envblk_file): Likewise.
9967 (open_envblk_file): Likewise.
9968 (write_envblk): Likewise.
9969 * util/grub-fstest.c (cmd_cp): Likewise.
9970 (cmd_cat): Likewise.
9971 (cmd_cmp): Likewise.
9972 * util/grub-menulst2cfg.c (main): Likewise.
9973 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
9974 (write_font_width_spec): Likewise.
9975 (write_font_pf2): Likewise.
9976 * util/grub-mkimage.c (generate_image): New argument outname.
9977 All users updated.
9978 Remove unreacheable message.
9979 (options): Unify messages.
9980 (help_filter): Likewise.
9981 * util/grub-mklayout.c (usage): Removed (unused).
9982 (main): Print filename in error.
9983 * util/grub-mkrescue.in: Fix wrong quoting.
9984 * util/grub-setup.c (setup): Print filename in error.
9985 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
9986 (check_sas): Likewise.
9987 * util/misc.c (grub_util_get_fp_size): Removed.
9988 (grub_util_get_image_size): Print filename in error.
9989 (grub_util_read_at): Removed.
9990 (grub_util_read_image): Print filename in error.
9991 (grub_util_load_image): Likewise.
9992 (grub_util_write_image_at): New argument filename. All users updated.
9993 Print filename in error.
9994 (grub_util_write_image): New argument filename. All users updated.
9995 Print filename in error.
9996 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
9997 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
9998
0a96117d
VS
99992012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10000
10001 * grub-core/Makefile.core.def (pxechain): New module.
10002 * grub-core/loader/i386/pc/pxechainloader.c: New file.
10003 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
10004 function.
10005 (grub_pc_net_config_real): Use grub_pxe_get_cached.
10006 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
10007
aca002f7
VS
100082012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10009
10010 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
10011 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
10012 * include/grub/err.h (grub_error_saved): New struct.
10013 (grub_errmsg): Make array size explicit.
10014 * include/grub/misc.h (grub_error_save): New function.
10015 (grub_error_load): Likewise.
10016 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
10017 (grub_error_push): Update `errno' member name.
10018 (grub_error_pop): Likewise
10019 * grub-core/net/tftp.c (tftp_data): New member save_err.
10020 (tftp_receive): Save error.
10021 (tftp_open): Restore error.
10022
a51dab13
VS
100232012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10024
10025 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
10026 to real mode down to execute A20-related code in protected mode as
10027 intended.
10028
eb6e6649
GS
100292012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
10030
10031 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
10032 NULL when the argument `level' has an unexpected value.
10033
92cd0f6e
VS
100342012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10035
10036 Move platform-dependent files from $prefix to $prefix/$platform.
10037
10038 * config.h.in (GRUB_TARGET_CPU): New definition.
10039 (GRUB_PLATFORM): Likewise.
10040 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
10041 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
10042 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10043 * grub-core/kern/dl.c (grub_dl_load): Likewise.
10044 * grub-core/normal/autofs.c (read_fs_list): Likewise.
10045 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
10046 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
10047 * grub-core/normal/term.c (read_terminal_list): Likewise.
10048 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
10049 $prefix/locale.
10050 (grub_gettext_init_ext): Likewise.
10051 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
10052 grub_platform.
10053 * util/grub-install.in: Update directories.
10054 * util/grub-mknetdir.in: Likewise.
10055 * util/grub-mkrescue.in: Likewise.
10056
db606889
VS
100572012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
10060 grub_error framework. All users updated.
10061
c39992a4
VS
100622012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10063
10064 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
10065 lists (by always binsearching), improve caching (cache strings
10066 used for binsearch, not only results), improve
10067 maintainability (by using more structured binary search) and correct
10068 error handling.
10069
1e5ec32f
VS
100702012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10071
10072 * grub-core/script/execute.c (grub_script_return): Fix warning.
10073
ac576cde
VS
100742012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 * grub-core/script/execute.c (grub_script_return): Fix potential
10077 NULL-dereference.
10078 Reported by: Jim Meyering.
10079
498453f6
VS
100802012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10081
10082 * po/POTFILES.in: Regenerate.
10083 * util/grub-install.in: Gettextize the strings missed in first pass.
10084
8be63f2e
VS
100852012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 * Makefile.util.def (grub-mkdevicemap): Removed.
10088 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
10089 * include/grub/util/deviceiter.h: Removed.
10090 * util/deviceiter.c: Likewise.
10091 * util/getroot.c (grub_util_get_os_disk): New function.
10092 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
10093 replacement for EFI.
10094 * util/grub-mkdevicemap.c: Removed.
10095 * util/grub-probe.c (probe): Handle PRINT_DISK.
10096 (argp_parser): Handle -t disk.
10097
8e1e4e39
VS
100982012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10099
10100 * util/grub-mkfont.c: Migrate to argp.
10101 * util/grub-mklayout.c: Likewise.
10102 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10103 * util/grub-mkrelpath.c: Likewise.
10104 * util/grub-probe.c: Likewise.
10105 * util/grub-script-check.c: Likewise.
10106
4459819a
VS
101072012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * util/grub-reboot.in: Add missing datarootdir.
10110 Add missing newline.
10111 * util/grub-set-default.in: Add missing datarootdir.
10112 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
10113 * util/grub-mkrescue.in: Likewise.
10114
f65741c7
VS
101152012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10116
10117 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
10118
c1a33466
VS
101192012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10120
10121 * util/grub-kbdcomp.in: Add decent help and gettextize.
10122 * docs/man/grub-kbdcomp.h2m: New file.
10123
c76899a0
VS
101242012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10125
10126 Migrate grub-mkimage.c to argp.
10127
10128 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
10129 (grub-setup): Likewise.
10130 * util/grub-setup.c (print_version): Move to ...
10131 * util/argp_common.c (print_version): ... here.
10132 * util/grub-setup.c (argp_program_version_hook): Move to ...
10133 * util/argp_common.c (argp_program_version_hook): ... here.
10134 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
10135 safety.
10136 * util/grub-mkimage.c (main): Migrate to argp.
10137
57db0757
VS
101382012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 * util/grub-mkrescue.in: Use same message as
10141 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
10142 for better translations.
10143
18534ad9
VS
101442012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10145
10146 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
10147 options with generic grub-mkrescue.in with the goal of future
10148 merge.
10149
c84ba308
VS
101502012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10151
10152 * grub-core/kern/mm.c: Add missing include of i18n.h
10153 * grub-core/lib/relocator.c: Likewise.
10154
347998c2
VS
101552012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10156
10157 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
10158 error.
10159 (allocate_pages): Check return value.
10160 Replace fatal with error.
10161 (grub_linux_boot): Replace printf with dprintf.
10162 Check find_mmap_size return value.
10163 Replace fatal with error.
10164 Don't call grub_machine_fini.
10165 (grub_load_elf64): Replace printf with dprintf.
10166 (grub_cmd_linux): Likewise.
10167 (grub_cmd_initrd): Likewise.
10168 (grub_cmd_payload): Likewise.
10169
c779226e
VS
101702012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
10173 message.
10174 * grub-core/video/radeon_fuloong2e.c
10175 (grub_video_radeon_fuloong2e_setup): Likewise.
10176 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
10177 * grub-core/video/video.c (grub_video_set_mode): Don't override
10178 standard out of memory message.
10179
dc87d45a
GS
101802012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10181
10182 NetBSD disk wedge support.
10183
10184 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
10185 [__NetBSD__]: Handle NetBSD disk wedges.
10186 * util/getroot.c (convert_system_partition_to_system_disk)
10187 [__NetBSD__]: Likewise.
10188
055f856f
MW
101892012-02-03 Mark Wooding <mdw@distorted.org.uk>
10190
10191 * util/grub-mkconfig.in: Use umask rather than chmod to create
10192 grub.cfg.new to avoid insecure grub.cfg.
10193
4a9f8346
VS
101942012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 * grub-core/commands/ls.c: Gettextize.
10197 * grub-core/commands/setpci.c: Likewise.
10198 * grub-core/commands/videotest.c: Likewise.
10199 * grub-core/disk/geli.c: Likewise.
10200 * grub-core/kern/mm.c: Likewise.
10201 * grub-core/lib/relocator.c: Likewise.
10202 * grub-core/loader/efi/appleloader.c: Likewise.
10203 * grub-core/loader/i386/xnu.c: Likewise.
10204 * grub-core/loader/ia64/efi/linux.c: Likewise.
10205 * grub-core/loader/xnu.c: Likewise.
10206 * grub-core/net/dns.c: Likewise.
10207 * grub-core/net/net.c: Likewise.
10208 * grub-core/script/lexer.c: Likewise.
10209 * grub-core/script/parser.y: Likewise.
10210 * grub-core/script/yylex.l: Likewise.
10211 * util/getroot.c: Likewise.
10212 * util/grub-setup.c: Likewise.
10213
a646a366
VS
102142012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
10217 number.
10218
54e2be26
VS
102192012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
10222
f7c71e68
VS
102232012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10224
10225 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
10226 macro.
10227 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
10228 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
10229
a32d5c71
VS
102302012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10231
10232 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
10233 * util/grub-install.in: Gettextize.
10234 * util/grub-mkconfig.in: Likewise.
10235 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
10236 if not available.
10237 (grub_warn): Gettextize.
10238 * util/grub-mknetdir.in: Gettextize.
10239 * util/grub-mkrescue.in: Likewise.
10240 * util/grub-mkstandalone.in: Likewise.
10241 * util/grub-reboot.in: Likewise.
10242 * util/grub-set-default.in: Likewise.
10243 * util/grub.d/00_header.in: Likewise.
10244 * util/grub.d/10_hurd.in: Likewise.
10245 * util/grub.d/10_kfreebsd.in: Likewise.
10246 * util/grub.d/10_linux.in: Likewise.
10247 * util/grub.d/10_netbsd.in: Likewise.
10248 * util/grub.d/10_windows.in: Likewise.
10249 * util/grub.d/20_linux_xen.in: Likewise.
10250 * util/grub.d/30_os-prober.in: Likewise.
10251 * po/POTFILES-shell.in: Regenerate.
10252
69edd81a
RL
102532012-02-03 Richard Laager <rlaager@wiktel.com>
10254
10255 * util/grub-mkimage.c (main): Fix format-security warning.
10256 * util/grub-mkrelpath.c (main): Likewise.
10257 * util/grub-probe.c (main): Likewise.
10258
65f08dbf
RL
102592012-02-03 Richard Laager <rlaager@wiktel.com>
10260
10261 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
10262 failure.
10263 Put back lost PRINT_DRIVE.
10264
e9084abe
RL
102652012-02-03 Richard Laager <rlaager@wiktel.com>
10266
10267 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
10268 (grub_guess_root_devices): Replace strlen with sizeof.
10269 Avoid crash.
10270 (find_root_devices_from_poolname): Remove unused variable.
10271 Handle raidzN.
10272
cf5f7ee7
VS
102732012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10274
10275 Support install on multi-device filesystems.
10276
10277 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
10278 (grub_guess_root_devices): ...this. Return char **. All users updated.
10279 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
10280 Removed.
10281 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
10282 (find_root_devices_from_poolname): ... here.
10283 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
10284 Support zfs-fuse.
10285 (grub_guess_root_device): Rename to ...
10286 (grub_guess_root_devices): ... this. Return char **. All users updated.
10287 * util/grub-install.in: Handle multi-device filesystems.
10288 * util/grub-probe.c (probe). Make device_names a char **. Add delim
10289 argument. All users updated.
10290 Handle multi-device filesystems.
10291 Use 'delim' as separator.
10292 Remove device check to allow filesystems on file.
10293 (main): Support -0 argument. Handle multi-device.
10294 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
10295 Fix a cross-device check while on it.
10296 (arguments): Remove root_dev.
10297 (argp_parser): Remove -r.
10298 (main): Remove root_dev.
10299
2f53a9ed
VS
103002012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10301
10302 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
10303
17e1d934
VS
103042012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10305
10306 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
10307 symbol.
10308 Reported by: NODA, Kai <nodakai>.
10309
d3e3fab5
VS
103102012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10311
10312 Fix ehci on amd64.
10313
10314 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
10315 pointers.
10316 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
10317 (grub_ehci_setup_qh): Likewise.
10318 (grub_ehci_find_qh): Likewise.
10319 (grub_ehci_transaction): Likewise.
10320 (grub_ehci_setup_transfer): Likewise.
10321 (grub_ehci_check_transfer): Likewise.
10322 (grub_ehci_portstatus): Likewise.
10323 (grub_ehci_detect_dev): Likewise.
10324 (grub_ehci_transfer_controller_data): New field td_last_phys.
10325 (grub_ehci_setup_transfer): Fill td_last_phys.
10326 (grub_ehci_check_transfer): Use td_last_phys.
10327
3008675b
SG
103282012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
10329
10330 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
10331 if no submenu is present.
10332
fc9b5652
AN
103332012-02-01 Aleš Nesrsta <starous@volny.cz>
10334
10335 CBI support.
10336
10337 * include/grub/usb.h (grub_usbms_protocol_t): New values
10338 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
10339 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
10340 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
10341 (grub_usbms_dev): Add subclass, protocol and intrpt.
10342 Remove in_maxsz and out_maxsz.
10343 (grub_usbms_reset): Rename to ...
10344 (grub_usbms_bo_reset): .. this.
10345 (grub_usbms_cbi_cmd): New function.
10346 (grub_usbms_cbi_reset): Likewise.
10347 (grub_usbms_reset): Likewise.
10348 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
10349 (grub_usbms_transfer): Rename to ...
10350 (grub_usbms_transfer_bo): ... this.
10351 (grub_usbms_transfer_cbi): Likewise.
10352 (grub_usbms_transfer): Likewise.
10353
a2b81d53
AN
103542012-02-01 Aleš Nesrsta <starous@volny.cz>
103552012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10356
10357 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
10358 the support for the CS5536 modification thereos and few bugfixes.
10359
10360 * grub-core/Makefile.core.def (ehci): New module.
10361 * grub-core/bus/usb/ehci.c: New file.
10362 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
10363 port and hubaddr. All users updated.
10364 Save port and hubaddr into dev structure.
10365 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
10366 define.
10367 * include/grub/pci.h (grub_dma_phys2virt): New function.
10368 (grub_dma_virt2phys): Likewise.
10369 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
10370
b1d51f02
VS
103712012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10372
10373 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
10374 check as some mkfs implementations omit it.
10375
fc694106
VS
103762012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10377
10378 * docs/grub.texi (Unicode): Mention identifier and space limitations.
10379
6c0920e3
VS
103802012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10381
10382 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
10383 Add new member volname2.
10384 (grub_jfs_label): Use volname2 if available.
10385
d1a46f9a
VS
103862012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10387
10388 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
10389 over last_mounted as seen in image generated by mkfs.nilfs2.
10390 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
10391
dec8ed14
VS
103922012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10393
10394 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
10395 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
10396 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
10397
7397c69b
VS
103982012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10399
10400 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
10401 over the sector.
10402
b3fe42ad
VS
104032012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10404
10405 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
10406 subvolume name (by removing a bogus and useless check).
10407
10476bb0
VS
104082012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10409
10410 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
10411 sizeof while on it.
10412
9c08ad87
VS
104132012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10414
10415 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
10416 (grub_scsi_read_capacity10): ... this.
10417 (grub_scsi_read_capacity16): New function.
10418 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
10419 0xffffffff.
10420 Fix off-by-one error.
10421 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
10422 64-bit unsigned.
10423 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
10424 (grub_scsi_read_capacity10): ... this.
10425 (grub_scsi_read_capacity_data): Rename to ...
10426 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
10427 (grub_scsi_read_capacity16): New struct.
10428 (grub_scsi_read_capacity16_data): Likewise.
10429 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
10430 grub_scsi_cmd_read_capacity10.
10431 New command grub_scsi_cmd_read_capacity16.
10432
bc8d0f45
VS
104332012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10434
10435 SCSI >2TiB support.
10436
10437 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
10438 (grub_scsi_write16): Likewise.
10439 (grub_scsi_read): Use read16 when necessary.
10440 (grub_scsi_write): Likewise.
10441 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
10442 (grub_scsi_write16): Likewise.
10443 (grub_scsi_cmd_t): Add READ16 and WRITE16.
10444
cc774926
VS
104452012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10446
10447 SCSI write support (for usbms mainly).
10448
10449 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
10450 a const pointer.
10451 (grub_scsi_write): Implement.
10452 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
10453
67639fd7
VS
104542012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10455
10456 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
10457 variable.
10458
9079d3ed
VS
104592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10460
10461 * grub-core/lib/posix_wrap/string.h (memchr): New function.
10462
c6a6f204
VS
104632012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10464
10465 * po/POTFILES.in: Regenerate.
10466
ecbf8cd1
VS
104672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10468
10469 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
10470 with grub_printf to avoid unnecessary fatal failure.
10471
0b3b3b38
VS
104722012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
10475 (INT_MAX): Likewise.
10476 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
10477 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
10478 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
10479 (strcpy): Likewise.
10480 (strstr): Likewise.
10481 (strchr): Likewise.
10482 (strncpy): Likewise.
10483 (strcat): Likewise.
10484 (strncat): Likewise.
10485 (strcoll): Likewise.
10486 * include/grub/types.h (GRUB_SHRT_MAX): New define.
10487 (GRUB_INT_MAX): Likewise.
10488
db7337a3
VS
104892012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10490
10491 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
10492 unexpected error.
10493 (optimize_utf8): Likewise.
10494 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
10495
f37c87e1
VS
104962012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 * grub-core/boot/i386/pc/lnxboot.S: Use
10499 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
10500 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
10501 location.
10502 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
10503 definition.
10504 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
10505
63fe43f3
VS
105062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10507
10508 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
10509 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
10510 now to avoid double free.
10511 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
10512 hostdisk.
10513 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
10514 * util/grub-probe.c (escape_of_path): Always return a new copy.
10515 (print_full_name): Escape path.
10516 (probe): Don't call grub_util_devname_to_ofpath on NULL.
10517 Fix hints on abstractions.
10518
ebe2c961
VS
105192012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10520
10521 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
10522 Don't add "root" line if no compatibility hont is available.
10523 Suggested by: Seth Goldberg.
10524
2b5336a2
VS
105252012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10526
10527 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
10528 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
10529 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
10530 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
10531
74310bd8
VS
105322012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10533
10534 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
10535
c30582ba
VS
105362012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10537
10538 * util/grub-pe2elf.c (ehdr): Make static.
10539 (shdr): Likewise.
10540 (num_sections): Likewise.
10541 (offset): Likewise.
10542
5f47782c
VS
105432012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10544
10545 Eliminate ofpath limits and possible overflows.
10546
10547 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
10548 (OF_PATH_MAX): Removed.
10549 (MAX_DISK_CAT): New const.
10550 (find_obppath): Use allocated rather than preallocated buffer.
10551 Return result. Argument of_path removed. All users updated.
10552 Add missing fdstat.
10553 (xrealpath): New function.
10554 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
10555 Allocate rather than use preallocated buffer. All users updated.
10556 (__of_path_common): Use allocated rather than preallocatecd buffer.
10557 Return result. Argument of_path removed. All users updated.
10558 (vendor_is_ATA): Read only needed part form the file.
10559 (check_sas): Allocate depending on contents rather than fixed.
10560 (main) [STANDALONE]: Handle NULL result.
10561
f990cbf9
VS
105622012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10563
10564 * grub-core/normal/completion.c (iterate_dev): Close the disk.
10565
9c6e84b8
VS
105662012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10567
10568 Cryptodisk write support.
10569
10570 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
10571 (grub_cryptodisk_decrypt): Moved logic to ...
10572 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
10573 (grub_cryptodisk_write): Implement.
10574 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
10575 (grub_util_fd_write): ... this. Make global.
10576 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
10577
87cf9744
VS
105782012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10579
10580 * include/grub/list.h (grub_list_remove): Don't crash if element is
10581 removed twice.
10582
ca8c0baf
VS
105832012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10584
10585 Rename ofconsole to console.
10586
10587 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
10588 as sysnonym to console.
10589 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
10590 * grub-core/term/ieee1275/console.c: ... this. All users updated.
10591 Rename grub_ofconsole_ to grub_console_. All users updated
10592 (grub_console_term_output): Rename "ofconsole" to "console".
10593 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
10594 as "console".
10595
64c8b8f6
VS
105962012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10597
10598 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
10599 handling.
10600 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
10601 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
10602 GRUB_DISK_DEVICE_FILE_ID.
10603
f6c434d5
VS
106042012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10605
10606 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
10607 and improve performance.
10608
5858b42d
VS
106092012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10610
10611 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
10612 missing ieee1275/ prefix on whole disk.
10613
4ed3c26b
VS
106142012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10615
10616 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
10617 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
10618
df71143e
VS
106192012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10620
10621 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
10622
076e7c0f
VS
106232012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 Merge common RAID and LVM logic to an abstract diskfilter.
10626 Add LDM support using the same framework.
10627
10628 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
10629 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
10630 (libgrubmods): Remove grub-core/disk/raid.c and
10631 grub-core/partmap/gpt.c.
10632 * grub-core/Makefile.core.def (ldm): New module.
10633 (raid): Renamed to diskfilter. All users updated.
10634 * grub-core/disk/raid.c: Moved to ...
10635 * grub-core/disk/diskfilter.c: ... here.
10636 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
10637 (lv_num): New var.
10638 (find_array): Renamed to ...
10639 (find_lv): ... this. Support multi-LV. Skip nameless LVs
10640 (grub_is_array_readable): Renamed to ...
10641 (grub_is_lv_readable): ... this. Support multinode hierarchy.
10642 (insert_array): New argument id.
10643 (is_node_readable): New function.
10644 (scan_device): Rename to ...
10645 (scan_disk): .. this. Restrict to one disk.
10646 (scan_devices): New function.
10647 (grub_diskfilter_iterate): Support multi-LV.
10648 Skip invisible and nameless LVs.
10649 (grub_diskfilter_memberlist): Support multi-LV.
10650 (grub_diskfilter_read_node): New function.
10651 (grub_raid_read): Most of logic moved to ...
10652 (read_segment): ... here
10653 (read_lv): New function.
10654 (grub_diskfilter_get_vg_by_uuid): New function.
10655 (grub_diskfilter_make_raid): Likewise.
10656 * grub-core/disk/ldm.c: New file.
10657 * grub-core/disk/lvm.c (vg_list): Removed.
10658 (lv_count): Likewise.
10659 (scan_depth): Likewise.
10660 (is_lv_readable): Likewise.
10661 (grub_lvm_getvalue): Advance pointer past the number.
10662 (find_lv): Removed.
10663 (do_lvm_scan): Refactored into ...
10664 (grub_lvm_detect): ... this. Support raid.
10665 (grub_lvm_iterate): Removed.
10666 (grub_lvm_memberlist): Likewise.
10667 (grub_lvm_open): Likewise.
10668 (grub_lvm_close): Likewise.
10669 (read_lv): Likewise.
10670 (read_node): Likewise.
10671 (is_node_readable): Likewise.
10672 (is_lv_readable): Likewise.
10673 (grub_lvm_read): Likewise.
10674 (grub_lvm_write): Likewise.
10675 (grub_lvm_dev): Use diskfilter
10676 (GRUB_MOD_INIT): Likewise.
10677 (GRUB_MOD_FINI): Likewise.
10678 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
10679 new interface.
10680 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
10681 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10682 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
10683 grub_diskfilter_read_node.
10684 Fix a bug with xor.
10685 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
10686 grub_diskfilter_read_node.
10687 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
10688 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
10689 (grub_disk_dev_iterate): Move from here...
10690 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
10691 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
10692 Make global.
10693 (grub_hostdisk_find_partition_start): Likewise.
10694 (grub_hostdisk_os_dev_to_grub_drive): New function.
10695 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
10696 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
10697 * util/getroot.c (make_device_name): ... here.
10698 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
10699 Move to ...
10700 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
10701 * grub-core/kern/emu/hostdisk.c
10702 (convert_system_partition_to_system_disk): Move to ...
10703 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
10704 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
10705 * util/getroot.c (device_is_wholedisk): ... here.
10706 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
10707 * util/getroot.c (find_system_device): ... here.
10708 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
10709 Move to ...
10710 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
10711 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
10712 Move to ...
10713 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
10714 Handle LDM.
10715 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10716 Move to ...
10717 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
10718 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
10719 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
10720 DISKFILTER.
10721 * include/grub/raid.h: Renamed to ...
10722 * include/grub/diskfilter.h: ... this.
10723 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
10724 (GRUB_RAID_LAYOUT_*): Make into array.
10725 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
10726 (grub_diskfilter_vg): New struct.
10727 (grub_diskfilter_pv_id): Likewise.
10728 (grub_raid_member): Removed.
10729 (grub_raid_array): Likewise.
10730 (grub_diskfilter_pv): New struct.
10731 (grub_diskfilter_lv): Likewise.
10732 (grub_diskfilter_segment): Likewise.
10733 (grub_diskfilter_node): Likewise.
10734 (grub_diskfilter_get_vg_by_uuid): New proto.
10735 (grub_raid_register): Inline.
10736 (grub_diskfilter_unregister): Likewise.
10737 (grub_diskfilter_make_raid): New proto.
10738 (grub_diskfilter_vg_register): Likewise.
10739 (grub_diskfilter_read_node): Likewise.
10740 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
10741 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
10742 (grub_util_is_ldm): Likewise.
10743 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
10744 (grub_hostdisk_find_partition_start): Likewise.
10745 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
10746 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
10747 New definition.
10748 (grub_gpt_partition_map_iterate): New proto.
10749 * include/grub/lvm.h (grub_lvm_vg): Removed.
10750 (grub_lvm_pv): Likewise.
10751 (grub_lvm_lv): Likewise.
10752 (grub_lvm_segment): Likewise.
10753 (grub_lvm_node): Likewise.
10754 * util/getroot.c [...]
10755 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
10756 (probe_abstraction): Likewise.
10757 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
10758 (main): Remove dead logic.
10759
8a7f9b9c
VS
107602012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
10761
10762 Simplify root device discover and don't fail when trying to open
10763 incorrect devices.
10764
10765 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
10766 function.
10767 (get_diskname_from_path): Likewise.
10768 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
10769 of iterating.
10770
30545b85
VS
107712012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
10774
28ea58cf
VS
107752012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10776
10777 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
10778 pastthe end.
10779
692dabca
VS
107802012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10781
10782 * util/grub-install.in: Add missing \.
10783 Reported by: gentoofan
10784
f6e4ea70
VS
107852012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
10786
10787 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
10788 (direct_read): Use correct compressed size.
10789 (grub_squash_read_data): Likewise.
10790
107912012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
10792
10793 * docs/grub.texi (Platform limitations): New section.
10794 (Platform-specific operations): Likewise.
10795 * docs/grub-dev.texi (Porting): Likewise.
10796
76261110
VS
107972012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10798
10799 IEEE1275 disk write support.
10800
10801 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
10802 const void *.
10803 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
10804 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
10805 and seek loginc to ...
10806 (grub_ofdisk_prepare): ... here.
10807 (grub_ofdisk_write): Implement.
10808
fc36d603
VS
108092012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10810
10811 ARC disk write support.
10812
10813 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
10814 (reopen): New argument writable. All users updated.
10815 Handle required access mode.
10816 (grub_arcdisk_write): Implement.
10817 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
10818 (grub_arc_firmware_vector): Make buffer to write a const buffer.
10819
e06c2e7a
VS
108202012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10821
10822 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
10823 (read_sblock): Don't attempt to read superblocks outside the disk size.
10824
ff447958
VS
108252012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10826
10827 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
10828 first superblock to find the second one when possible.
10829
9e88df39
VS
108302012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10831
10832 * util/grub-install.in: Fix an ARC bug.
10833 Print a warning if no platform-specific setup is available.
10834
bb26e4ff
VS
108352012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 Use static allocation rather than scratch pointer in reed_solomon.
10838 It decreases its size significantly and avoids a variable in .text.
10839
10840 * grub-core/lib/reed_solomon.c (scratch): Removed.
10841 (chosenstat): New const or static array.
10842 (sigma): Likewise.
10843 (errpot): Likewise.
10844 (errpos): Likewise.
10845 (sy): Likewise.
10846 (mstat): Likewise.
10847 (errvals): Likewise.
10848 (eqstat): Likewise.
10849 (pol_evaluate): Replace x with log_x argument. All users updated.
10850 (syndroms): Removed.
10851 (gauss_solve): Use statically allocated arrays.
10852 (rs_recover): Likewise.
10853 Calculate syndroms directly.
10854 (decode_block): Use statically allocated arrays.
10855 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
10856 (main) [TEST]: Allow -DTEST -DSTANDALONE.
10857
2e13ede5
VS
108582012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10859
10860 Eliminate fixed limit on reed solomon decoder length.
10861
10862 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
10863 rather than hardcoding the address.
10864 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
10865 no_reed_solomon_length.
10866 Move gate_a20 to no-reed-solomon part.
10867 Don't force a particular size of no reed-solomon part.
10868 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
10869 Removed.
10870 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
10871 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
10872
f8a9ab12
VS
108732012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10874
10875 * grub-core/commands/wildcard.c (match_files): Handle filenames
10876 without explicit device.
10877 (wildcard_expand): Don't add explicit device if not already present.
10878 * tests/grub_script_echo1.in: Add a new expansion test.
10879
87edb894
VS
108802012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10881
10882 Replace single-linked with double-linked lists. It results in more
10883 compact and more efficient code.
10884
10885 * grub-core/kern/list.c (grub_list_push): Moved from here ...
10886 * include/grub/list.h (grub_list_push): ... to here. Set prev.
10887 (grub_list_remove): Moved from here ...
10888 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
10889 (grub_prio_list_insert): Set prev.
10890 * include/grub/list.h (grub_list): Add prev. All users updated.
10891
48b391e9
VS
108922012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10893
10894 Handle newer autotools. Add some missing quotes while on it.
10895
10896 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
10897 (pkglib_DATA): Move grub-mkconfig_lib from here ...
10898 (pkgdata_DATA): ... here.
10899 * Makefile.util.def (update-grub_lib): Removed.
10900 * conf/Makefile.common (pkglib_DATA): Removed.
10901 (pkglib_SCRIPTS): Likewise.
10902 (pkgdata_DATA): New variable.
10903 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
10904 needed.
10905 Add missing quotes.
10906 Remove unused variable while on it.
10907 * tests/util/grub-shell.in: Likewise.
10908 * util/grub-install.in: Likewise.
10909 * util/grub-mkconfig.in: Likewise.
10910 * util/grub-mknetdir.in: Likewise.
10911 * util/grub-mkrescue.in: Likewise.
10912 * util/grub-mkstandalone.in: Likewise.
10913 * util/grub.d/00_header.in: Likewise.
10914 * util/grub.d/10_hurd.in: Likewise.
10915 * util/grub.d/10_illumos.in: Likewise.
10916 * util/grub.d/10_kfreebsd.in: Likewise.
10917 * util/grub.d/10_linux.in: Likewise.
10918 * util/grub.d/10_netbsd.in: Likewise.
10919 * util/grub.d/10_windows.in: Likewise.
10920 * util/grub.d/20_linux_xen.in: Likewise.
10921 * util/grub.d/30_os-prober.in: Likewise.
10922 * util/update-grub_lib.in: Removed.
10923
109242012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
10925
10926 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
10927 a workaround for intel problem.
10928
66832792
PRP
109292012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
109302012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
109312012-01-23 pfsmorigo
10932
10933 * util/grub-install.in: Support dd'in into PreP partition.
10934 * util/grub-probe.c (probe): Support discovering partition type.
10935 (main): Support -t msdos_parttype.
10936
7816a17e
VS
109372012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
10938
10939 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
10940 infinite recursion using counter.
10941 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
10942 init to skip it if the magic check fails.
10943 (dec_stream_header): Init s->crc32.
10944
8f9d3a8c
ZB
109452012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
109462012-01-22 Zachary Bedell <pendorbound@gmail.com>
109472012-01-22 Richard Laager <rlaager@wiktel.com>
10948
10949 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
10950 All users updated.
10951 (find_bestub): Determine correct size.
10952 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
10953 (scan_disk): Align the size down.
10954 Call check pool before find_bestub to have ashift.
10955
b055dd32
VS
109562012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10957
10958 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
10959 dprintf in no-malloc zone.
10960
d779e9bd
ML
109612012-01-22 Mario Limonciello <mario_limonciello@dell.com>
10962
10963 * configure.ac: Add back in test for limits.h.
10964
b508af69
VS
109652012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10966
10967 Support 4K-sector NTFS.
10968
10969 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
10970 (grub_ntfs_data): Remove blocksize.
10971 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
10972 Remove data argument. All users updated.
10973
dad9c8b5
VS
109742012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10975
10976 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
10977 being in .text to avoid dprel references.
10978 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
10979 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
10980 (grub_arch_highmemsize): Likewise.
10981 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
10982 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
10983 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
10984
d43a777e
VS
109852012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10986
10987 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
10988
10989 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
10990 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
10991
34e4208f
VS
109922012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10993
10994 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
10995 GRUB_UTIL.
10996 (grub_set_datetime_cmos): Likewise.
10997
3ec0fc1c
VS
109982012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10999
11000 Make XZ compression parameters dependent on target and not host CPU.
11001
11002 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
11003 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
11004
22489834
VS
110052012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11006
11007 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
11008 set but not used variable.
11009
8502fbca
VS
110102012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11011
11012 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
11013 created when no uuid support is compiled into mkfs.reiser.
11014
76df2068
VS
110152012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
11018 (utf8_to_macroman): Do the opposite.
11019 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
11020
64e3f8f6
VS
110212012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11022
11023 * configure.ac: Refise build qemu_mips w/o unifont.
11024
9c271078
VS
110252012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11026
11027 Eliminate grub_min/grub_max prone to overflow usage.
11028
11029 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
11030 (poll_nonroot_hub): Likewise.
11031 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
11032 (grub_affs_label): Likewise.
11033 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
11034 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
11035 (grub_hfs_label): Likewise.
11036 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
11037 * grub-core/fs/zfs/zfs.c (MIN): Remove.
11038 (zap_leaf_array_equal): Use grub_size. Remove MIN.
11039 (zap_leaf_array_get): Likewise.
11040 (dnode_get_path): Likewise.
11041 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
11042 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
11043 * grub-core/script/execute.c (grub_script_break): Likewise.
11044 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
11045 grub_max.
11046 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
11047 * include/grub/misc.h (grub_min): Removed.
11048 (grub_max): Likewise.
11049
80662dbc
VS
110502012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11051
11052 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
11053 direct.inode = 0.
11054
e6da1467
VS
110552012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11056
11057 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
11058
b1ac4cb1
VS
110592012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11060
11061 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
11062
b4bf7c3b
VS
110632012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11064
11065 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
11066 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
11067
8ee1101a
VS
110682012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11069
11070 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
11071 rather than a hack for grub_strncasemap.
11072
110732012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11074
11075 Support multiple initrds
11076 Note: part of this was accidently committed in r3739.
11077
11078 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
11079 initrd.
11080 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11081 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11082 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11083 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11084 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11085
4d1e2bc9
VS
110862012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11087
11088 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
11089 disks with unknown size.
11090 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
11091
75b49ebe
VS
110922012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11093
11094 Remove defines pertaining to arbitrary limits not affecting GRUB
11095 anymore.
11096
11097 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
11098 (EXT2_MAX_SYMLINKCNT): Likewise.
11099 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
11100 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
11101 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
11102 (GRUB_PXE_MAX_BLKSIZE): Likewise.
11103 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
11104 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
11105 (DN_MAX_OBJECT_SHIFT): Likewise.
11106 (DN_MAX_OFFSET_SHIFT): Likewise.
11107 (DN_MAX_OBJECT): Likewise.
11108 (DNODES_PER_LEVEL_SHIFT): Likewise.
11109 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
11110 (SPA_MAXBLOCKSIZE): Likewise.
11111 (SPA_BLOCKSIZES): Likewise.
11112 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
11113 (MZAP_MAX_BLKSZ): Likewise.
11114
74a1dce7
VS
111152012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11116
11117 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
11118 handle NULL appropriately.
11119 Remove MIN.
11120
30c7d3ce
VS
111212012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11122
11123 Fix efiemu.
11124
11125 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
11126 cpu/types.h.
11127 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
11128 * configure.ac: Fix efiemu check.
11129
3c76ea0c
VS
111302012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11131
11132 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
11133 grub_probe.
11134 Reported by: adamwill
11135
7e532280
SG
111362012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
11137
11138 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
11139
30492374
VS
111402012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11141
11142 Fix handling of wide characters in gfxterm.
11143
11144 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
11145 (clear_char): Likewise.
11146 (paint_char): Skip code == NULL chars.
11147 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
11148
e70cb72f
VS
111492012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * grub-core/normal/charset.c: Move comment to right place.
11152
5c827cf9
VS
111532012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11154
11155 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
11156 (GRUB_AFFS_FLAG_FFS): Put back where it was.
11157 (grub_affs_mount): Revert the correct version checking.
11158
53603892
VS
111592012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11160
11161 * docs/grub.texi (Unicode): Mention several other unsupported features.
11162
ff094b9b
VS
111632011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11164
11165 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
11166 case statements as compile-time one.
11167 (direct_read): Prevent spurious warnings.
11168 (grub_squash_read_data): Likewise.
11169
c029da8a
VS
111702011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 Various squash4 fixes and LZO and XZ support.
11173
11174 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
11175 Add xzembed source files.
11176 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
11177 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
11178 (grub_squash_inode): New subtype long_dir.
11179 (SQUASH_TYPE_LONG_DIR): New inode type.
11180 (COMPRESSION): New enum.
11181 (XZBUFSIZ): New const.
11182 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
11183 (read_chunk): Use data->decompress.
11184 (zlib_decompress): New function.
11185 (lzo_decompress): Likewise.
11186 (xz_decompress): Likewise.
11187 (squash_mount): Set new data fields.
11188 (grub_squash_iterate_dir): Handle long dir.
11189 (squash_unmount): Free xzdec and xzbuf.
11190 (grub_squash_open): Check ino type.
11191 (direct_read): Stylistic fixes. Use data->decompress.
11192 (grub_squash_read_data): Likewise.
11193 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
11194 (get_byte): Likewise.
11195 (grub_zlib_disk_read): Removed.
11196 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
11197 (GRUB_POSIX_BOOL_DEFINED): New define.
11198 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
11199 * grub-core/lib/xzembed/xz.h: Addmissing includes.
11200 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
11201 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
11202
7a45a539
VS
112032011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11204
11205 Don't override more informative errors.
11206
11207 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
11208 * grub-core/font/font.c (open_section): Likewise.
11209 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
11210 filename. Don't override errors.
11211 (grub_cmd_openbsd_ramdisk): Don't override errors.
11212 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
11213 (grub_cmd_initrd): Likewise.
11214 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11215 (grub_cmd_initrd): Likewise.
11216 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
11217 (grub_cmd_linux): Likewise.
11218 (grub_cmd_initrd): Likewise.
11219 (grub_cmd_payload): Likewise.
11220 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11221 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
11222 (grub_cmd_module): Likewise.
11223 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11224 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11225 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
11226 (grub_cmd_xnu_mkext): Likewise.
11227 (grub_cmd_xnu_ramdisk): Likewise.
11228 (grub_xnu_check_os_bundle_required): Likewise.
11229 (grub_xnu_load_kext_from_dir): Likewise.
11230 (grub_cmd_xnu_kextdir): Likewise.
11231 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
11232
b2d004db
VS
112332011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11234
11235 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
11236 as 1024 in block size field. Found on one of my test images.
11237 Small optimisation while on it.
11238
ec000eac
VS
112392011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11240
11241 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
11242 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
11243 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
11244 performance fixes while on it.
11245 (grub_sfs_close): Fix memory leak while on it.
11246 (grub_sfs_label): Convert Latin1 to UTF-8.
11247
f50e1165
VS
112482011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11249
11250 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
11251 space to avoid overflows.
11252 (grub_hfs_label): Convert from macroman to UTF-8.
11253
2ae254de
VS
112542011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11255
11256 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
11257
0108f491
VS
112582011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11259
11260 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
11261
f45f5f89
VS
112622011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11263
11264 * unicode: Import Unicode 6.0 data.
11265
4d8c4765
VS
112662011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11267
63fa8ef9
VS
11268 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
11269 outside of range.
11270
112712011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11272
11273 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
11274
11275 * include/grub/charset.h (grub_getend): New function.
11276 * grub-core/script/function.c (grub_script_function_find): Use
11277 grub_getend.
11278 * grub-core/normal/completion.c (add_completion): Likewise.
11279
f3cb4a4e
VS
112802011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11281
11282 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
11283 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
11284 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
11285 (GRUB_UNICODE_TAG_END): Likewise.
11286 (GRUB_UNICODE_LAST_VALID): Likewise.
11287
5da8dbc5
VS
112882011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11289
11290 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
11291 len and make it smaller. All users updated.
11292 * util/import_unicode.py: Put length and not end character.
11293 Check length.
11294
8569f13d
VS
112952011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11296
11297 Make better Unicode-compliant and unify some UTF-8 code pathes.
11298
11299 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
11300 valid character.
11301 (grub_is_valid_utf8): Use grub_utf8_process.
11302 Check resulting code range.
11303 (grub_utf8_to_ucs4): Use grub_utf8_process.
11304 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
11305 valid character.
11306
cc4fddf5
VS
113072011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11308
11309 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
11310
bbc47747
VS
113112011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11312
11313 * docs/grub.texi (Filesystems): Mention AFS.
11314
f63d6bf4
VS
113152011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11316
11317 * docs/grub.texi (Filesystems): Clarify restrictions.
11318 (Regexp): Mention non-Unicode regexp behaviour.
11319 (Other): Mention non-Unicode matching behaviour.
11320
74bbf0db
VS
113212011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11322
f63d6bf4 11323 Make HFS implementation use MacRoman.
74bbf0db
VS
11324
11325 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
11326 (macroman): New const array.
11327 (macroman_to_utf8): New function.
11328 (utf8_to_macroman): Likewise.
11329 (grub_hfs_find_dir): Use utf8_to_macroman.
11330 (grub_hfs_dir): Use macroman_to_utf8.
11331 Set case_insensitive.
11332
4ea0316e
VS
113332011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
11336
d3c13cbd
VS
113372011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11338
11339 Integrate hints into autogeneration scripts.
11340
11341 * docs/grub.texi (Filesystems): Add a hostdisk example.
11342 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
11343 (grub-probe): Add ofpath.
11344 * gentpl.py: Remove group nosparc64.
11345 * grub-core/commands/search.c (cache_entry): New struct.
11346 (cache): New var.
11347 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
11348 * grub-core/commands/search_wrap.c (options): Add platform-specific
11349 hint options.
11350 (grub_cmd_search): Handle platform-specific hints.
11351 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
11352 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
11353 (grub_util_biosdisk_data): Likewise.
11354 (grub_util_biosdisk_open): Set device_map.
11355 (read_device_map): Handle "" as indication of no map.
11356 Set device_map.
11357 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
11358 (grub_util_biosdisk_get_compatibility_hint): New function.
11359 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
11360 * include/grub/emu/hostdisk.h
11361 (grub_util_biosdisk_get_compatibility_hint): New proto.
11362 * util/grub-install.in: Don't call grub-mkdevicemap.
11363 Add platform-specific hint to load.cfg.
11364 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
11365 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11366 hints. Set root preliminary to compatibility hint, not to OS name.
11367 * util/grub-probe.c (PRINT_*): Add hints.
11368 (print): Make static.
11369 (escape_of_path): New function.
11370 (guess_bios_drive): Likewise.
11371 (guess_efi_drive): Likewise.
11372 (guess_baremetal_drive): Likewise.
11373 (print_full_name): Likewise.
11374 (probe): Handle hints.
11375 (main): Likewise.
11376 * util/ieee1275/devicemap.c: Removed.
11377 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
11378 updated.
11379 (grub_util_devname_to_ofpath): Return NULL on failure.
11380
11381 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
11382 resource leak.
11383 * util/getroot.c (grub_util_pull_device): Fix memory leak.
11384
11385 * po/POTFILES.in: Regenerated.
11386
11387 Allow purely long options
11388
11389 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
11390 (SHORT_ARG_USAGE): Likewise.
11391 (grub_arg_show_help): Compare opt with help_options.
11392 (parse_option): Receive opt as argument. If makes big simplificatons.
11393 All users updated
11394
00ce2df3
VS
113952011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11396
11397 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
11398 Restructure to avoid warning.
11399
e77e325f
VS
114002011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11401
11402 * util/grub-install.in: Account for possible escaped comma in device
11403 name.
11404
165099ea
VS
114052011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11406
11407 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
11408 channel.
11409
ce4a999d
VS
114102011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11411
11412 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
11413 allocation and zero-setting.
11414 (grub_ieee1275_get_devname): Check that alias is complete.
11415
379586ad
VS
114162011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11417
11418 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
11419 unaligned segments.
11420
9197b0ad
VS
114212011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11422
11423 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
11424 prefix.
11425 (grub_ofdisk_open): Check and discard ieee1275 prefix.
11426 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11427 Add ieee1275 prefix.
11428
edddb7f9
VS
114292011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11430
11431 * docs/grub.texi (Filesystems): Update.
11432
a1a8b1b9
VS
114332011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 Support odc, newc and bigendian cpio formats.
11436
11437 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
11438 * grub-core/Makefile.core.def (newc): New module.
11439 (odc): Likewise.
11440 (cpio_be): Likewise.
11441 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
11442 (MAGIC): Likewise.
11443 (MAGIC2): Likewise.
11444 (head) [MODE_ODC]: Adapt for the format.
11445 (head) [MODE_NEWC]: Likewise.
11446 (head) [!MODE_*]: Write fields of interest as arrays.
11447 (MAGIC_USTAR): Removed.
11448 (read_number) [MODE_NEWC]: Change to hex.
11449 (read_number) [!MODE_*]: Parse binary arrays.
11450 (grub_cpio_find_file): Factor out the code for better structure and
11451 always use read_number.
11452 (grub_cpio_mount): Use MAGIC and MAGIC2.
11453 (grub_cpio_dir): Exit on first hook non-0 return.
11454 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
11455 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
11456 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
11457 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
11458 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
11459 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
11460 * grub-core/fs/newc.c: New file.
11461 * grub-core/fs/odc.c: Likewise.
11462 * grub-core/fs/cpio_be.c: Likewise.
11463
58eba9ee
VS
114642011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11465
11466 Fix handling of tar numbers occupying the whole field.
11467
11468 * grub-core/fs/cpio.c (read_number): New function.
11469 (grub_cpio_find_file): Use read_number instead of strtoull.
11470
a54a0e12
VS
114712011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11472
11473 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
11474 occupying the whole field size.
11475
a6120aca
LA
114762011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
11477
11478 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
11479
a93964ce
VS
114802011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
11483
3ea1ca46
SG
114842011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
11485
11486 * grub-core/Makefile.core.def (lzma_decompress): Add missing
11487 TARGET_IMG_LDFLAGS.
11488
b87f7ef2
VS
114892011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11490
11491 * util/getroot.c (ESCAPED_PATH_MAX): New define.
11492 (mountinfo_entry): Increase the field size to take escaping into
11493 account.
11494 (find_root_device_from_libzfs): Add one byte to size of strings for
11495 security.
11496
62092395
VS
114972011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11498
11499 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
11500 an assert.
11501 * util/grub-setup.c (setup): Likewise.
11502
1f0b1a77
VS
115032011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11504
11505 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
11506 _LzmaDecodeA.
11507
8eba9997
VS
115082011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11509
11510 * docs/grub.texi (Internationalisation): New section.
11511
dd0c91e9
VS
115122011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11513
11514 * docs/grub.texi (Loopback booting): New section.
11515
115162011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
11517
11518 * util/grub-mkstandalone.in: Fix minor typo errors.
11519
198e150a
VS
115202011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11521
11522 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
11523
11524 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
11525 net/icmp.c and net/icmp6.c.
11526 (http): New module.
11527 (priority_queue): Likewise.
11528 * grub-core/io/bufio.c: Rewritten.
11529 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
11530 TYPE_WITH_CONFIGFILE_OPTION.
11531 (legacy_commands): Add bootp and dhcp.
11532 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
11533 (grub_legacy_parse): Likewise.
11534 * grub-core/lib/priority_queue.c: New file.
11535 * grub-core/net/arp.c: Add missing license header.
11536 (arp_find_entry): Removed.
11537 (arp_find_entry): Likewise.
11538 (grub_net_arp_resolve): Rename to ...
11539 (grub_net_arp_send_request): ...this.
11540 (grub_net_arp_receive): New card argument.
11541 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
11542 Set router and DNS server.
11543 (grub_net_configure_by_dhcp_ack): Handle routing information.
11544 (grub_cmd_bootp): Set checksum.
11545 (grub_bootp_init): Remove net_dhcp.
11546 * grub-core/net/dns.c: New file.
11547 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
11548 completion.
11549 (get_card_packet): Handle allocation.
11550 (grub_efinet_findcards): Set mtu.
11551 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
11552 (get_card_packet): Handle allocation.
11553 (emucard): Set mtu.
11554 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
11555 (GRUB_MOD_INIT): Set mtu.
11556 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
11557 mtu.
11558 (get_card_packet): Handle allocation.
11559 (grub_ofnet_findcards): Set mtu.
11560 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
11561 assert.
11562 (grub_net_recv_ethernet_packet): Handle IPv6.
11563 * grub-core/net/http.c: New file.
11564 * grub-core/net/icmp.c: Likewise.
11565 * grub-core/net/icmp6.c: Likewise.
11566 * grub-core/net/ip.c (ip6addr): New type.
11567 (ip6hdr): Likewise.
11568 (reassemble): Likewise.
11569 (cmp): New function.
11570 (reassembles): New variable.
11571 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
11572 (id): New variable.
11573 (send_fragmented): New function.
11574 (grub_net_send_ip_packet): Rename to ...
11575 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
11576 Handle non-UDP.
11577 (grub_net_recv_ip_packets): Rename to ...
11578 (handle_dgram): ... this. Check checksum. Handle non-UDP.
11579 (free_rsm): New function.
11580 (free_old_fragments): Likewise.
11581 (grub_net_recv_ip4_packets): New function.
11582 (grub_net_send_ip6_packet): Likewise.
11583 (grub_net_send_ip_packet): Likewise.
11584 (grub_net_recv_ip6_packets): Likewise.
11585 (grub_net_recv_ip_packets): Likewise.
11586 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
11587 (LINK_LAYER_CACHE_SIZE): New const.
11588 (link_layer_find_entry): New function.
11589 (grub_net_link_layer_add_address): Likewise.
11590 (grub_net_link_layer_resolve_check): Likewise.
11591 (grub_net_link_layer_resolve): Likewise.
11592 (grub_net_ipv6_get_slaac): Likewise.
11593 (grub_net_ipv6_get_link_local): Likewise.
11594 (grub_cmd_ipv6_autoconf): Likewise.
11595 (parse_ip): Handle one number representation.
11596 (parse_ip6): New functoion.
11597 (match_net): Handle IPv6.
11598 (grub_net_resolve_address): Handle IPv6 and DNS.
11599 (grub_net_resolve_net_address): Handle IPv6.
11600 (route_cmp): New function.
11601 (grub_net_route_address): Find best route.
11602 (grub_net_addr_to_str): Handle IPv6.
11603 (grub_net_addr_cmp): New function.
11604 (grub_net_add_addr): Register local route.
11605 (print_net_address): Handle net address.
11606 (grub_net_poll_cards): Retransmit TCP.
11607 (grub_net_poll_cards_idle_real): Likewise.
11608 (have_ahead): New function.
11609 (grub_net_seek_real): Use underlying seek.
11610 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
11611 * grub-core/net/tcp.c: New file.
11612 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
11613 (cmp): New function.
11614 (ack): Likewise.
11615 (tftp_receive): Handle unordered input.
11616 (destroy_pq): New function.
11617 (tftp_close): Close pq.
11618 * grub-core/net/udp.c: Put missing license header.
11619 (grub_net_udp_socket): New function.
11620 (udp_socket_register): Likewise.
11621 (grub_net_udp_close): Likewise.
11622 (grub_net_recv_udp_packet): Check checksum.
11623 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
11624 * include/grub/misc.h (grub_memchr): New function.
11625 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
11626 (grub_net_card_driver): Return buf in recv.
11627 (grub_net_slaac_mac_list): New struct.
11628 (grub_network_level_protocol_id): Add ipv6.
11629 (grub_net_network_level_addr): Likewise.
11630 (grub_net_network_level_net_addr): Likewise.
11631 (grub_net_app_protocol): Add seek.
11632 (grub_net_socket): Removed.
11633 (grub_net_sockets): Likewise.
11634 (grub_net_socket_register): Likewise.
11635 (grub_net_socket_unregister): Likewise.
11636 (FOR_NET_SOCKETS): Likewise.
11637 (grub_net_add_addr): Add const.
11638 (GRUB_NET_BOOTP_*): New enum.
11639 (grub_net_addr_cmp): New proto.
11640 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
11641 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
11642 (grub_net_hwaddr_to_str): NEw proto.
11643 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
11644 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
11645 (grub_dns_init): New proto.
11646 (grub_dns_fini): Likewise.
11647 (grub_net_tcp_retransmit): Likewise.
11648 (grub_net_link_layer_add_address): Likewise.
11649 (grub_net_link_layer_resolve_check): Likewise.
11650 (grub_net_link_layer_resolve): Likewise.
11651 (grub_net_dns_lookup): Likewise.
11652 (grub_net_add_dns_server): Likewise.
11653 (grub_net_remove_dns_server): Likewise.
11654 (GRUB_NET_TRIES): New const.
11655 (GRUB_NET_INTERVAL): Likewise.
11656 * include/grub/net/arp.h: Mostly rewritten.
11657 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
11658 * include/grub/net/ip.h: Mostly rewritten.
11659 * include/grub/net/netbuff.h: Indent.
11660 * include/grub/net/tcp.h: New file.
11661 * include/grub/net/udp.h: Mostly rewritten.
11662 * include/grub/priority_queue.h: New file.
11663 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
11664 (grub_swap_bytes64_compile_time): Likewise.
11665 (grub_cpu_to_be16_compile_time): Likewise.
11666 (grub_cpu_to_be32_compile_time): Likewise.
11667 (grub_cpu_to_be64_compile_time): Likewise.
11668 (grub_be_to_cpu64_compile_time): Likewise.
11669
215c1800
VS
116702011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
11671
11672 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
11673 UINT_TO_PTR with cast.
11674
c17e546c
VS
116752011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11676
11677 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
11678 don't use them.
11679
ff6b18b6
VS
116802011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
11683 already there.
11684
70ffcc93
VS
116852011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11686
11687 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
11688 confusing ipxe.
11689
e5f4d260
VS
116902011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
11693 Add missing const attribute.
11694 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
11695 Likewise.
11696 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
11697 Likewise.
11698
8e54b4b7
VS
116992011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11700
11701 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
11702 misaligned access.
11703 (serpent_setkey): Likewise.
11704 (serpent_encrypt_internal): Likewise.
11705 (serpent_decrypt_internal): Likewise.
11706 (serpent_encrypt): Don't put an alignment-increasing cast.
11707 (serpent_decrypt): Likewise.
11708 (serpent_test): Likewise.
11709
813c0a2b
VS
117102011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
11713
f2b60fbd
VS
117142011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11715
11716 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
11717
11718 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
11719 grub_addr_t casts.
11720 (PTR_TO_UINT64): Likewise.
11721 (PTR_TO_UINT32): Likewise.
11722
5ef5c511
VS
117232011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11724
11725 * util/grub-mkimage.c (generate_image): Decrease the higher limit
11726 because of stack.
11727 * util/grub-setup.c (setup): Don't add redundancy past the higher load
11728 limit.
11729
c476e6df
VS
117302011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11731
11732 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
11733 text_width > available width a bit more gracefully.
11734
384ad7cc
VS
117352011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11736
11737 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
11738 current address calculation.
11739
96f8caf8
VS
117402011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11741
11742 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
11743 stack.
11744 (encode_block): Likewise.
11745
276b7a8b
VS
117462011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11747
11748 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
11749 certainety.
11750
e3fd394a
VS
117512011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11752
11753 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
11754 non-RS part to avoid RS messing with GDT.
11755 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11756 Increase to suit in realmode routines.
11757
117582011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11759
11760 * grub-core/kern/i386/realmode.S: Increase alignment.
11761 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
11762
ee9c2e7a
VS
117632011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11764
11765 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
11766 be deterministic.
11767 (syndroms): Compute 0 syndrom.
11768 (rs_recover): Use 0 syndrom.
11769
7a7f7cc9
VS
117702011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11771
11772 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
11773
a14b16d1
VS
117742011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11775
11776 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
11777 brackets.
11778
9f59e9fc
VS
117792011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11780
ca1b552c
VS
11781 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
11782 account.
11783 (get_top_pad): Likewise.
11784 (get_right_pad): Likewise.
11785 (get_bottom_pad): Likewise.
11786
117872011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11788
11789 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 11790
e739d698
VS
117912011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11792
11793 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
11794 attribute as the structure isn't guaranteed to be properly aligned.
11795 (grub_efi_pci_device_path): Likewise.
11796 (grub_efi_pccard_device_path): Likewise.
11797 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
11798 specify the size of `memory_type'.
11799 (grub_efi_vendor_device_path): Likewise.
11800 (grub_efi_controller_device_path): Likewise.
11801 (grub_efi_acpi_device_path): Likewise.
11802 (grub_efi_expanded_acpi_device_path): Likewise.
11803 (grub_efi_atapi_device_path): Likewise.
11804 (grub_efi_scsi_device_path): Likewise.
11805 (grub_efi_fibre_channel_device_path): Likewise.
11806 (grub_efi_1394_device_path): Likewise.
11807 (grub_efi_usb_device_path): Likewise.
11808 (grub_efi_usb_class_device_path): Likewise.
11809 (grub_efi_i2o_device_path): Likewise.
11810 (grub_efi_mac_address_device_path): Likewise.
11811 (grub_efi_ipv4_device_path): Likewise.
11812 (grub_efi_ipv6_device_path): Likewise.
11813 (grub_efi_infiniband_device_path): Likewise.
11814 (grub_efi_uart_device_path): Likewise.
11815 (grub_efi_vendor_messaging_device_path): Likewise.
11816 (grub_efi_hard_drive_device_path): Likewise.
11817 (grub_efi_cdrom_device_path): Likewise.
11818 (grub_efi_vendor_media_device_path): Likewise.
11819 (grub_efi_file_path_device_path): Likewise.
11820 (grub_efi_protocol_device_path): Likewise.
11821 (grub_efi_piwg_device_path): Likewise.
11822 (grub_efi_bios_device_path): Likewise.
11823
cb8f88ea
VS
118242011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11825
11826 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
11827 (grub_ucs4_to_utf8_alloc): Likewise.
11828 (grub_ucs4_to_utf8): Likewise.
11829 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
11830 (grub_ucs4_to_utf8_alloc): Likewise.
11831
309e5352
VS
118322011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11833
11834 AFFS never uses unicode.
11835
11836 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
11837 (grub_latin1_to_utf8): New inline function.
11838 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
11839
e7987e1b
VS
118402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11841
11842 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
11843 overflow.
11844
efc2616e
VS
118452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11846
11847 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
11848 (grub_squash_dirent_header): Likewise.
11849 (read_chunk): Don't double swap.
11850 (grub_squash_iterate_dir): Fix swap sizes.
11851
3c349f5a
VS
118522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11853
11854 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
11855
b453412d
VS
118562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11857
11858 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
11859 (grub_hfs_iterate_dir): Likewise.
11860
12e9d4d1
VS
118612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11862
11863 Fix video on platforms where unaligned access is forbidden.
11864 Make several optimisations while on it.
11865
11866 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
11867 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
11868 (grub_video_fbblit_replace_32bit_1bit): Likewise.
11869 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
11870 Disable.
11871 (grub_video_fbblit_replace_16bit_1bit):
11872 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
11873 (grub_video_fbblit_replace_8bit_1bit): Likewise.
11874 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
11875 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
11876 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
11877 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
11878 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
11879 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
11880 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
11881 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
11882 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
11883 (grub_video_fbblit_replace_index_RGB888): Likewise.
11884 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
11885 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
11886 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
11887 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
11888 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
11889 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
11890 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
11891 Disable.
11892 (grub_video_fbblit_blend_XXX565_1bit):
11893 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
11894 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
11895 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
11896 void *.
11897 * grub-core/video/fb/video_fb.c (common_blitter)
11898 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
11899 (grub_video_fb_create_render_target_from_pointer)
11900 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
11901 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
11902 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
11903 definition.
11904 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
11905
ace96609
VS
119062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11907
11908 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
11909 HH22 and HM10 relocations.
11910
fd261d73
VS
119112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11912
11913 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
11914
e59b7857
VS
119152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11916
11917 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
11918 allocation succeeded.
11919
9b4baaa4
VS
119202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11921
11922 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
11923 argument a u8 pointer. All users updated.
11924 Handle unaligned buffers.
11925
dc713193
VS
119262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11927
11928 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
11929 add_part to workaround compiler bug.
11930
30dd48c2
VS
119312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11932
11933 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
11934
0c6087a8
VS
119352011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
11938 Reserve alignment invariants.
11939 (grub_multiboot_load): Likewise.
11940 (retrieve_video_parameters): Likewise.
11941 (grub_multiboot_make_mbi): Likewise.
11942
c2e77777
VS
119432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11944
11945 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
11946 incorrect pointer.
11947
b70b6d11
VS
119482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11949
11950 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
11951 (grub_pata_pio_write): Likewise.
11952
02a2bf83
VS
119532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11954
11955 Add noreturn attributes and remove unreachable code.
11956
11957 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
11958 code.
11959 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
11960 code. Mark as noreturn.
11961 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
11962 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
11963 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
11964 unreachable code.
11965 * grub-core/kern/main.c (grub_main): Mark as noreturn.
11966 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
11967 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
11968 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
11969 * include/grub/kernel.h (grub_main): Mark as noreturn.
11970 * include/grub/reader.h (grub_rescue_run): Likewise.
11971
2019d09e
VS
119722011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11973
11974 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
11975 redundant declaration.
11976
d1c501ee
VS
119772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11978
11979 * include/grub/net.h (grub_net_network_level_interfaces): Remove
11980 redundant declaration.
11981 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
11982
61664420
VS
119832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11984
11985 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
11986 to ensure alignment.
11987 (grub_hdparm_print_identify): Make argument uint16 * to ensure
11988 alignment. Ensure tmp alignment.
11989 (grub_cmd_hdparm): Ensure buf alignment.
11990 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
11991 to ensure alignment.
11992 (grub_ata_dumpinfo): Ensure text alignment.
11993 (grub_atapi_identify): Preserve alignment invariant.
11994 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
11995
0d51ee20
VS
119962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11997
11998 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
11999 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
12000 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
12001 * include/grub/misc.h (grub_reboot)
12002 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
12003 (grub_halt) [__mips__]: Likewise.
12004
753ef8c1
VS
120052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12006
12007 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
12008 Remove redundant declaration.
12009 (grub_mmap_get_post64): Likewise.
12010 (grub_mmap_get_upper): Likewise.
12011 (grub_mmap_get_lower): Likewise.
12012
85c85365
VS
120132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
12016 uint32_t * to ensure alignment.
12017 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
12018
a23f2cc4
VS
120192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12020
93018f64
VS
12021 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
12022 uint16_t * to ensure alignment.
12023 (sun_pc_partition_map_iterate): Make `block' a union to ensure
12024 alignment.
12025
120262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12027
12028 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
12029 to ensure alignment.
12030 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
12031
58acccd6
VS
120322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12033
12034 * grub-core/fs/ntfs.c (u16at): Make into inline function.
12035 Handle unaligned pointers.
12036 (u32at): Likewise.
12037 (u64at): Likewise.
12038 (fixup): Use byte access instead of v16at.
12039 (find_attr): Fix imporper usage of v32at.
12040 (read_data): Likewise.
12041 (list_file): Handle byte-swapping and unaligned strings.
12042 (grub_ntfs_label): Likewise.
12043
9b05cad7
VS
120442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12045
12046 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
12047 as it's not necessarily aligned.
12048
b3950b84
VS
120492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12050
12051 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
12052 redundant declaration.
12053 (grub_serial_init): Likewise.
12054 (grub_terminfo_init): Likewise.
12055
fcd232b7
VS
120562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12057
12058 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
12059 function.
12060 (ZAP_HASH_IDX): Likewise.
12061 (ZAP_LEAF_HASH_SHIFT): Likewise.
12062 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
12063 (LEAF_HASH): Likewise.
12064 (ZAP_LEAF_NUMCHUNKS): Likewise.
12065 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
12066 alignment invariants. Return pointer. All users updated.
12067 (ZAP_LEAF_ENTRY): Make into inline function.
12068 (NBBY): Removed.
12069 (xor): LIkewise.
12070 (xor_out): Use grub_crypto_xor.
12071 (dnode_get_path): Use grub_get_unaligned.
12072 (nvlist_find_value): Likewise.
12073 (grub_zfs_nvlist_lookup_uint64): Likewise.
12074 (grub_zfs_nvlist_lookup_string): Likewise.
12075 (get_nvlist_size): Likewise.
12076 (grub_zfs_open): Likewise.
12077 (fill_fs_info): Likewise.
12078 (grub_zfs_dir): Likewise.
12079 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
12080 alignment invariants.
12081 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
12082 necessarily aligned.
12083
f138623a
VS
120842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12085
12086 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
12087
564840dc
VS
120882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12089
12090 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
12091 arithmetic to conserve alignment invariants.
12092
9b40df20
VS
120932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
12096 redundant declaration.
12097 (grub_efiemu_mm_obtain_request): Likewise.
12098 (grub_efiemu_prepare): Likewise.
12099
d1c930f9
VS
121002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12101
12102 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
12103 to match types.
12104
4c5f3056
VS
121052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12106
12107 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
12108 case of aunaligned recptr.
12109 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
12110 alignment.
12111 (grub_hfsplus_btree_search): Handle unaligned index.
12112
728cba91
VS
121132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12114
12115 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
12116 to get freetag and skip.
12117
eb561f31
VS
121182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12119
12120 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
12121 array.
12122 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
12123 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
12124
20993fbb
VS
121252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12126
12127 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
12128 name for checksum and fix allocation algorithm.
12129
1f313b94
VS
121302011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12131
12132 * include/grub/types.h (grub_properly_aligned_t): New type.
12133 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
12134 (grub_get_unaligned16): Add explicit casts.
12135 (grub_get_unaligned32): Likewise.
12136 (grub_get_unaligned64): Likewise.
12137 (grub_set_unaligned16): New function.
12138 (grub_set_unaligned32): Likewise.
12139
47ae27ec
VS
121402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12141
12142 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12143
78c2cd1c
VS
121442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
12147 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
12148 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
12149
53072f9b
VS
121502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12151
12152 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
12153 conditionals.
12154
055dc239
VS
121552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12156
12157 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
12158 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
12159
496bd074
VS
121602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12161
12162 Unify and improve RAID and crypto xor.
12163
12164 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
12165 changed to grub_crypto_xor
12166 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
12167 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
12168 Use bigger types when possible.
12169
ef6e4335
VS
121702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12171
12172 * grub-core/disk/raid.c (scan_devices): Fix condition.
12173
5d048bf2
VS
121742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12175
12176 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
12177 Make name a const ptr.
12178
ee533335
VS
121792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12180
12181 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
12182 first argument a const pointer.
12183 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12184 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
12185 proto.
12186 (grub_children_iterate): Likewise.
12187 (grub_machine_mmap_iterate): Remove redundant declaration.
12188
cc8f3668
VS
121892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12190
12191 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
12192 (grub_cmd_acpi) [!x86]: Disable EBDA.
12193
c5fc563a
VS
121942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12195
12196 Enable UTF8 in gnulib regexp.
12197
12198 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
12199 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
12200 (isupper): Use grub_isupper.
12201 (isascii): New inline function.
12202 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
12203 * grub-core/lib/posix_wrap/wctype.h: Likewise.
12204 * grub-core/normal/charset.c (grub_utf8_process): New function.
12205 (grub_utf8_to_utf16): Use grub_utf8_process.
12206 (grub_encode_utf8_character): New function.
12207 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
12208 * include/grub/charset.h (grub_utf8_process): New declaration.
12209 (grub_encode_utf8_character): Likewise.
12210 * include/grub/misc.h (grub_islower): New inline function.
12211 (grub_isupper): Likewise.
12212 (grub_strchrsub): Moved down to fix the definitions.
12213
0af2346f
VS
122142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12215
12216 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
12217 specification.
12218
74dbd244
VS
122192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12220
12221 * include/grub/loader.h (grub_loader_register_preboot_hook):
12222 Use struct preboot * and not void * for handle. All users updated.
12223 (grub_loader_unregister_preboot_hook): Likewise.
12224
1bc8f60d
VS
122252011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12226
12227 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
12228 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
12229 UTF-16-BE. All users updated.
12230 (grub_hfsplus_cmp_catkey): Fix unicode handling.
12231 (grub_hfsplus_iterate_dir): Likewise.
12232 (grub_hfsplus_label): Likewise.
12233
48d6e456
VS
122342011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12235
12236 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
12237
bf3a3857
VS
122382011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
12239
12240 Add missing const qualifiers.
12241
12242 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
12243 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
12244 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
12245 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
12246 (grub_lvm_check_flag): Likewise.
12247 * grub-core/efiemu/i386/coredetect.c
12248 (grub_efiemu_get_default_core_name): Likewise
12249 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
12250 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
12251 * grub-core/fs/ntfs.c (fixup): Likewise.
12252 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
12253 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
12254 (fzap_lookup): Likewise.
12255 (zap_lookup): Likewise.
12256 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
12257 * grub-core/lib/legacy_parse.c (check_option): Likewise.
12258 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
12259 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
12260 (grub_freebsd_add_meta_module): Likewise.
12261 (grub_cmd_freebsd_module): Likewise.
12262 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
12263 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
12264 (grub_xnu_writetree_get_size): Likewise.
12265 (grub_xnu_writetree_toheap_real): Likewise.
12266 (grub_xnu_find_key): Likewise.
12267 (grub_xnu_create_key): Likewise.
12268 (grub_xnu_create_value): Likewise.
12269 (grub_xnu_register_memory): Likewise.
12270 (grub_xnu_check_os_bundle_required): Likewise.
12271 (grub_xnu_scan_dir_for_kexts): Likewise.
12272 (grub_xnu_load_kext_from_dir): Likewise.
12273 * grub-core/normal/color.c (color_list): Likewise.
12274 * grub-core/normal/completion.c (current_word): Likewise.
12275 * grub-core/normal/menu_entry.c (insert_string): Likewise.
12276 * grub-core/term/serial.c (grub_serial_find): Likewise.
12277 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
12278 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
12279 Likewise.
12280 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
12281 (grub_freebsd_add_meta_module): Likewise.
12282 * include/grub/lib/arg.h (grub_arg_option): Likewise.
12283 * include/grub/net.h (grub_net_card_driver): Likewise.
12284 (grub_net_card): Likewise.
12285 (grub_net_app_protocol): Likewise.
12286 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
12287 * include/grub/serial.h (grub_serial_find): Likewise.
12288 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
12289 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
12290 (grub_xnu_create_value): Likewise.
12291 (grub_xnu_find_key): Likewise.
12292 (grub_xnu_scan_dir_for_kexts): Likewise.
12293 (grub_xnu_load_kext_from_dir): Likewise.
12294
12295 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
12296 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
12297 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
12298 Moved from here ...
12299 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
12300
112b4837
CW
123012011-11-28 Colin Watson <cjwatson@ubuntu.com>
12302
12303 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
12304
49e891ac
VS
123052011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
12306
12307 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
12308 (read_device): Fix size calculation.
12309
fd258e5c
RM
123102011-11-25 Robert Millan <rmh@gnu.org>
12311
12312 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
12313 (find_root_device_from_libzfs): Add zpool output parser to be used
12314 as fallback when libzfs isn't available.
12315
78845dc2
SG
123162011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
12317
12318 * po/Makefile.in.in: Add missing escape-continuation.
12319
adac5211
VS
123202011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
12321
12322 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
12323
10b64f1c
VS
123242011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12325
12326 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
12327
bb416954
VS
123282011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12329
12330 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
12331
bdfe9eeb
VS
123322011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12333
12334 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
12335
581ffa8a
VS
123362011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
12337
12338 * grub-core/lib/adler32.c: Add missing license specification.
12339 * grub-core/lib/crc64.c: Likewise.
12340 * grub-core/loader/i386/pc/plan9.c: Likewise.
12341 * grub-core/partmap/plan.c: Likewise.
12342
2536cf64
LK
123432011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
12344
12345 Add facility to debug GRUB with gdb under qemu.
12346
12347 * grub-core/gdb_grub.in: New file.
12348 * grub-core/gmodule.pl.in: Likewise.
12349 * grub-core/Makefile.core.def (gmodule.pl): New script.
12350 (gdb_grub): Likewise.
12351
bc108a4a
VS
123522011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12353
12354 * util/grub-mount.c (argp_parser): Accept relative pathes.
12355 * util/grub-fstest.c (argp_parser): Likewise.
12356
111c1778
VS
123572011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12358
12359 Plan9 support.
12360
12361 * Makefile.util.def (libgrubmods): Add
12362 grub-core/partmap/plan.c.
12363 * docs/grub.texi: Notice Plan9 support.
12364 * grub-core/Makefile.core.def (plan9): New module.
12365 (part_plan): Likewise.
12366 * grub-core/loader/i386/pc/plan9.c: New file.
12367 * grub-core/partmap/plan.c: Likewise.
12368 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
12369 define.
12370 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
12371 * include/grub/mm.h (grub_extend_alloc): New inline function.
12372
c30be3b6
VS
123732011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12374
12375 Make Reed-Solomon faster by using power of generator representation of
12376 GF(256)*.
12377
12378 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
12379 (gf_double_t): Likewise.
12380 (gf_invert): Removed.
12381 (gf_powx): New array.
12382 (gf_powx_inv): Likewise.
12383 (scratch): Move higher.
12384 (gf_reduce): Removed.
12385 (gf_mul): Use powx.
12386 (gf_invert): Likewise.
12387 (init_inverts): Replaced with ...
12388 (init_powx): ...this. All users updated.
12389 (pol_evaluate): Replace multiplications with additions.
12390 (rs_encode): Likewise.
12391 (gauss_eliminate): Call gf_invert.
12392 (grub_reed_solomon_add_redundancy): Call init_powx.
12393 (grub_reed_solomon_recover): Call init_powx unconditionally.
12394
fa5aeffc
VS
123952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12396
12397 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
12398
a346b81c
VS
123992011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12400
12401 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
12402 disk->partiton for safety.
12403
d89ee414
VS
124042011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12405
12406 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
12407 Fix a memory leak.
12408 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
12409
91ee7b6d
VS
124102011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12411
12412 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
12413
91e5a33d
VS
124142011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12415
12416 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
12417
9edd7be2
VS
124182011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12419
12420 Fix spaces handling in proc/self/mountinfo.
12421
12422 * util/getroot.c (unescape): New function.
12423 (grub_find_root_device_from_mountinfo): Use unescape.
12424
ba102053
VS
124252011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12426
12427 Support ZFS embedding.
12428
12429 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
12430 (grub_zfs_fs): Register grub_zfs_embed.
12431
aa94b870
VS
124322011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12433
12434 Fix MIPS compilation.
12435
12436 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
12437 * include/grub/offsets.h: Rename decompressor fields from
12438 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
12439 * util/grub-mkimage.c (image_targets): Use new names.
12440
5fbdac14
VS
124412011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12442
12443 Defer multiboot device parsing until we're in compressed part.
12444
12445 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
12446 bsd_part. setdevice has fallen into disuse.
12447 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
12448 (bsd_part): Likewise.
12449 (boot_dev): New variable.
12450 (multiboot_trampoline): Don't parse multiboot device.
12451 Pass multiboot device in %edx.
12452 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
12453 grub_boot_device.
12454 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
12455 Likewise.
12456 * grub-core/kern/i386/pc/startup.S: Save edx.
12457 (grub_boot_drive): Removed.
12458 (grub_install_dos_part): Likewise.
12459 (grub_install_bsd_part): Likewise.
12460 (grub_boot_device): New variable.
12461 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
12462 (grub_install_bsd_part): Likewise.
12463 (grub_boot_drive): Likewise.
12464 (grub_boot_device): New variable.
12465 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
12466 Removed.
12467 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12468 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
12469 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
12470 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
12471 * util/grub-install.in: Remove redundant condition.
12472
691cbb58
VS
124732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12474
12475 Fix bug introduced by previous commit.
12476
12477 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
12478
60240b8b
VS
124792011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12480
12481 Use decompressors framework on i386-pc. It increases core size
12482 by 46 bytes but improves compatibility and maintainability.
12483
12484 * grub-core/Makefile.core.def (lzma_decompress): New image.
12485 (kernel): Add i386_pc_ldflags.
12486 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
12487 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
12488 to real_to_prot, prot_to_real and device info.
12489 * include/grub/offsets.h: Renamed decompressor offsets.
12490 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
12491 (image_target_desc): Remove raw_size and rename decompressor fields.
12492 (compress_kernel): Handle lzma.
12493 (generate_image): Handle decompressors on i386-pc.
12494
e9d3421c
VS
124952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12496
12497 * configure.ac: Add -fno-asynchronous-unwind-tables.
12498
2b23074a
VS
124992011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12500
12501 Move assembly code to C by using intwrap. It increases core size
12502 by 88 bytes but improves compatibility and maintainability.
12503
12504 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
12505 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
12506 ... here. Translated to C.
12507 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
12508 * grub-core/term/i386/pc/console.c (grub_console_getkey):
12509 ... here. Translated to C.
12510 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
12511 * grub-core/term/i386/pc/console.c (grub_console_getxy):
12512 ... here. Translated to C.
12513 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
12514 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
12515 ... here. Translated to C.
12516 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
12517 * grub-core/term/i386/pc/console.c (grub_console_cls):
12518 ... here. Translated to C.
12519 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
12520 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
12521 ... here. Translated to C.
12522 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
12523 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
12524 Translated to C.
12525 * grub-core/term/i386/pc/console.c (int10_9): New function.
12526 (grub_console_putchar): Likewise.
12527 * include/grub/i386/pc/console.h: Removed the not anymore shared
12528 functions.
12529
678f4b67
VS
125302011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12531
12532 Move grub_chainloader_real_boot out of the kernel.
12533
12534 * grub-core/Makefile.am: Remove machine/loader.h.
12535 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12536 Removed.
12537 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
12538 variable.
12539 (grub_relocator16_keep_a20_enabled): Likewise.
12540 (grub_relocator16_boot): Fill new variables.
12541 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
12542 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
12543 relocator.
12544 (grub_chainloader_unload): Likewise.
12545 (grub_chainloader_cmd): Likewise.
12546 * include/grub/i386/pc/loader.h: Removed.
12547 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
12548 and esi. All initialisers updated.
12549
4626edf6
VS
125502011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
125512011-11-12 Colin Watson <cjwatson@ubuntu.com>
12552
12553 * Makefile.util.def (grub-mount): New util.
12554 * .bzrignore: Add grub-mount.
12555 * configure.ac: Check for fuse and enable grub-mount if available.
12556 * docs/man/grub-mount.h2m: New file.
12557 * util/grub-mount.c: Likewise.
12558
10f0117b
VS
125592011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12560
12561 * grub-core/commands/efi/fixvideo.c: Gettextize.
12562 * grub-core/commands/hashsum.c: Likewise.
12563 * grub-core/commands/i386/cmostest.c: Likewise.
12564 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12565 * grub-core/commands/i386/pc/lsapm.c: Likewise.
12566 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12567 * grub-core/commands/lsmmap.c: Likewise.
12568 * grub-core/commands/menuentry.c: Likewise.
12569 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
12570 * grub-core/commands/setpci.c: Likewise.
12571 * grub-core/loader/i386/bsd.c: Likewise.
12572 * grub-core/loader/i386/linux.c: Likewise.
12573 * util/getroot.c: Likewise.
12574 * util/grub-editenv.c: Likewise.
12575 * util/grub-fstest.c: Likewise.
12576 * util/grub-mkfont.c: Likewise.
12577 * util/grub-mkimage.c: Likewise.
12578 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12579 * util/grub-pe2elf.c: Likewise.
12580 * util/grub-probe.c: Likewise.
12581 * util/grub-setup.c: Likewise.
12582 * util/ieee1275/ofpath.c: Likewise.
12583 * util/misc.c: Likewise.
12584 * util/raid.c: Likewise.
12585
566f779b
RM
125862011-11-11 Robert Millan <rmh@gnu.org>
12587
12588 * util/getroot.c (grub_util_get_geom_abstraction): Remove
12589 __attribute__((unused)) from `os_dev', which *is* being used.
12590
b50787de
VS
125912011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12592
12593 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
12594 forgotten define.
12595 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
12596 GRUB_IA64_DL_GOT_ALIGN.
12597 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
12598 GRUB_IA64_DL_TRAMP_ALIGN.
12599
119d11c8
VS
126002011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12601
12602 Replace grub_fatal with normal errors in i386 linux loader.
12603
12604 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
12605 (allocate_pages): Check find_efi_mmap_size return value.
12606 (grub_e820_add_region): Return error.
12607 (grub_linux_boot): Check mmap return value.
12608
6e0632e2
VS
126092011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12610
12611 * grub-core/commands/acpihalt.c: Gettextized.
12612 * grub-core/commands/cacheinfo.c: Likewise.
12613 * grub-core/commands/cmp.c: Likewise.
12614 * grub-core/commands/efi/loadbios.c: Likewise.
12615 * grub-core/commands/gptsync.c: Likewise.
12616 * grub-core/commands/ieee1275/suspend.c: Likewise.
12617 * grub-core/commands/legacycfg.c: Likewise.
12618 * grub-core/commands/memrw.c: Likewise.
12619 * grub-core/commands/minicmd.c: Likewise.
12620 * grub-core/commands/parttool.c: Likewise.
12621 * grub-core/commands/time.c: Likewise.
12622 * grub-core/commands/videoinfo.c: Likewise.
12623 * grub-core/disk/geli.c: Likewise.
12624 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
12625 * grub-core/disk/luks.c: Likewise.
12626 * grub-core/disk/lvm.c: Likewise.
12627 * grub-core/font/font_cmd.c: Likewise.
12628 * grub-core/fs/zfs/zfscrypt.c: Likewise.
12629 * grub-core/fs/zfs/zfsinfo.c: Likewise.
12630 * grub-core/gfxmenu/view.c: Likewise.
12631 * grub-core/kern/emu/hostdisk.c: Likewise.
12632 * grub-core/kern/emu/main.c: Likewise.
12633 * grub-core/kern/emu/misc.c: Likewise.
12634 * grub-core/kern/emu/mm.c: Likewise.
12635 * grub-core/kern/mips/arc/init.c: Likewise.
12636 * grub-core/kern/mips/loongson/init.c: Likewise.
12637 * grub-core/kern/partition.c: Likewise.
12638 * grub-core/lib/i386/halt.c: Likewise.
12639 * grub-core/lib/mips/arc/reboot.c: Likewise.
12640 * grub-core/lib/mips/loongson/reboot.c: Likewise.
12641 * grub-core/loader/i386/pc/chainloader.c: Likewise.
12642 * grub-core/loader/i386/xnu.c: Likewise.
12643 * grub-core/loader/multiboot.c: Likewise.
12644 * grub-core/net/bootp.c: Likewise.
12645 * grub-core/net/net.c: Likewise.
12646 * grub-core/normal/term.c: Likewise.
12647 * grub-core/partmap/bsdlabel.c: Likewise.
12648 * grub-core/parttool/msdospart.c: Likewise.
12649 * grub-core/term/gfxterm.c: Likewise.
12650 * grub-core/term/terminfo.c: Likewise.
12651 * grub-core/video/i386/pc/vbe.c: Likewise.
12652 * util/grub-menulst2cfg.c: Likewise.
12653 * util/grub-mkdevicemap.c: Likewise.
12654 * util/grub-mklayout.c: Likewise.
12655 * util/grub-mkrelpath.c: Likewise.
12656 * util/grub-script-check.c: Likewise.
12657 * util/ieee1275/grub-ofpathname.c: Likewise.
12658 * util/resolve.c: Likewise.
12659
073aa7a9
VS
126602011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12661
12662 Support %1$d syntax.
12663
12664 * tests/printf_unit_test.c: New file.
12665 * Makefile.util.def (printf_test): New test.
12666 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
12667
c76b5417
VS
126682011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
12671 fix.
12672
df067ad1
VS
126732011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
12676 dprintf.
12677 * grub-core/font/font.c (grub_font_load): Likewise.
12678
5b289bc5
VS
126792011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12680
12681 * util/grub-macho2img.c: Add comment concerning gettext.
12682 * grub-core/lib/legacy_parse.c: Likewise.
12683
c1860f87
VS
126842011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12685
12686 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
12687 (grub_xvasprintf): Likewise.
12688
d35d0d37
VS
126892011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12690
12691 Add const keyword to grub_env_get and gettextize week days.
12692
12693 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
12694 (grub_read_hook_datetime): Return const char *.
12695 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
12696 updated.
12697 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12698 Mark for gettext.
12699 (grub_get_weekday_name): Return const char *. Call gettext.
12700 * grub-core/script/argv.c (grub_script_argv_append): Receive const
12701 char * and len as the argument. All users updated.
12702 (grub_script_argv_split_append): Receive const char *.
12703 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
12704 * include/grub/env.h (grub_env_get): Likewise.
12705 (grub_env_read_hook_t): Return const char *.
12706 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
12707 (grub_script_argv_split_append): Likewise.
12708
9aed8a71
VS
127092011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12710
12711 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
12712
067fdf00
VS
127132011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12714
12715 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
12716 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
12717
a8bd9d39
VS
127182011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12719
12720 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
12721 Fix prototype.
12722
f7ce5baf
VS
127232011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12724
12725 Fix mips compilation.
12726
12727 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
12728 normal decoder.
12729 (hashes): Use in embed decoder as well (for sizes).
12730 (dec_stream_header): Fix embed decompressor logic.
12731 (dec_stream_footer): Likewise.
12732
9bb182f3
VS
127332011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12734
12735 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
12736 an error and not a fatal on unrecognised relocation types.
12737
63a9e6f6
VS
127382011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12739
12740 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
12741 Issue error rather than printf on unknown arguments.
12742
4c458569
VS
127432011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12744
12745 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
12746 Make buf a const.
12747
e2d22baf
VS
127482011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12749
12750 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
12751 Fix module name.
12752
53dc8590
VS
127532011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12754
12755 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
12756 leftover debug printf.
12757
6c189294
VS
127582011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12759
12760 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
12761
f7688369
VS
127622011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12763
12764 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
12765 A stylistic fix.
12766
11a775a3
VS
127672011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12768
12769 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
12770
33f784e8
SL
127712011-11-10 Shea Levy <slevy@tieronedesign.com>
12772
12773 Allow all modules to perform serial IO
12774
12775 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
12776 * include/grub/serial.h (grub_serial_port_configure): New inline
12777 function.
12778 (grub_serial_port_fetch): Likewise.
12779 (grub_serial_port_put): Likewise.
12780 (grub_serial_port_fini): Likewise.
12781 (grub_serial_find): New proto.
12782
f6276525
VS
127832011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12784
12785 Put symlink at the end of the node and fix a potential
12786 memory corruption.
12787
12788 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
12789 Make symlink into an array.
12790 (set_rockridge): Set have_symlink and alloc_dirents.
12791 (grub_iso9660_read_symlink): Use new layout.
12792 (grub_iso9660_iterate_dir): Fix memory corruption.
12793 Use new layout.
12794 (grub_iso9660_dir): Set have_symlink.
12795 (grub_iso9660_open): Likewise.
12796
c3591189
VS
127972011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12798
12799 Remove local keyword.
12800
12801 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
12802 (version_test_gt): Likewise.
12803 (version_find_latest): Likewise.
12804 (gettext_printf): Likewise.
12805 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
12806
cb544caa
VS
128072011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12808
12809 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
12810
45bd824d
VS
128112011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12812
12813 Fix ZFS memory and resource leaks.
12814
12815 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
12816 All users updated.
12817 Free type on exit.
12818 (fill_vdev_info): New parameter inserted. All users updated.
12819 (check_pool_label): Likewise.
12820 (scan_disk): Likewise.
12821 (scan_devices): Close non-inserted disks.
12822 (fzap_iterate): Free l.
12823 (unmount_device): Free children descripto memory.
12824
ad9a2f44
VS
128252011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12826
12827 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
12828 argument (access out of bounds).
12829
6b68db81
VS
128302011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12831
12832 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
12833 >= 6 drives.
12834
28840fda
VS
128352011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12836
12837 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
12838 Fix declaration.
12839
8a5a3a5b
VS
128402011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12841
12842 Fix several memory leaks.
12843
12844 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
12845 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
12846 (grub_cpio_dir): Likewise.
12847 * grub-core/fs/fat.c (grub_fat_label): Likewise.
12848 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
12849 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
12850 (grub_romfs_label): Likewise.
12851 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
12852 (squash_unmount): New function.
12853 (grub_squash_dir): Fix memory leak.
12854 (grub_squash_open): Likewise.
12855 (grub_squash_read): Likewise.
12856 (grub_squash_mtime): Likewise.
12857 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
12858 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
12859 * util/grub-fstest.c (fstest): Likewise.
12860
57b01250
VS
128612011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12862
12863 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
12864 avoid accessing beyond the array.
12865
19e81ba7
VS
128662011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12867
12868 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
12869
52b656c0
VS
128702011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12871
12872 Several AFFS fixes.
12873
12874 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
12875 (GRUB_AFFS_FLAG_FFS): Removed.
12876 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
12877 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
12878 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
12879 (grub_fshelp_node): Make block 32-bit.
12880 Add block_cache and last_block_cache.
12881 (grub_affs_read_block): Fill and use block cache.
12882 (grub_affs_read_file): Removed.
12883 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
12884 boot block.
12885 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
12886 safety.
12887 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
12888 space.
12889 (grub_affs_close): Free block cache.
12890 (grub_affs_read): Use grub_fshelp_read_file directly.
12891
438a746a
VS
128922011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12893
12894 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
12895 with no error set.
12896
49a45021
VS
128972011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12898
12899 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
12900 used variable.
12901 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12902 Likewise.
12903
3ae17eb8
VS
129042011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12905
12906 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
12907
12908 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
12909 byteswap when needed.
12910
27610c38
VS
129112011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12912
12913 Fix FreeBSD compilation.
12914
12915 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
12916 to avoid circular dependency.
12917 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
12918 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
12919 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
12920
4a19b601
VS
129212011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12922
12923 Fix ZFS crypto error types.
12924
12925 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
12926 (grub_gcm_decrypt): Likewise.
12927 (grub_zfs_load_key_real): Fix error code type. Handle possible error
12928 from PBKDF2.
12929
958ee221
VS
129302011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12931
12932 Illumos support.
12933
12934 * Makefile.util.def (10_illumos): New script.
12935 * configure.ac: Set COND_HOST_ILLUMOS.
12936 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
12937 Support Illumos calls.
12938 (find_partition_start) [__sun__]: Likewise.
12939 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
12940 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
12941 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
12942 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
12943 device.
12944 * util/grub-probe.c (probe) [__sun__]: Do character check.
12945 * util/grub.d/10_illumos.in: New file.
12946
cac14fb6
VS
129472011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12948
12949 Support escaped commas in hostdisk.
12950
12951 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
12952 (find_grub_drive): Use unescape_cmp.
12953 (make_device_name): Escape commas.
12954
78e08dc3
VS
129552011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
12958
9f421dd1
VS
129592011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12960
12961 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
12962 variable.
12963
ed64e9e2
VS
129642011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 Support trampoline jumps on powerpc.
12967
12968 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
12969 __ia64__ path.
12970 (grub_dl_load_segments): Set mod->sz.
12971 (grub_dl_flush_cache): Flush whole space occupied by module, not just
12972 segments.
12973 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
12974 (jump): Likewise.
12975 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
12976 function.
12977 (trampoline): New struct.
12978 (trampoline_template): New const.
12979 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
12980 * include/grub/dl.h (grub_dl): Add sz element.
12981 [__powerpc__]: Follow __ia64__.
12982 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
12983 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
12984 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
12985 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
12986
3084ede4
VS
129872011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
12988
12989 ZFS crypto support.
12990
12991 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
12992 * grub-core/Makefile.core.def (zfscrypt): New module.
12993 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
12994 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
12995 it. All users updated.
12996 (grub_zfs_decrypt): New var.
12997 (grub_zfs_load_key): Likewise.
12998 (zio_checksum_functions): Add SHA256+MAC.
12999 (zio_checksum_verify): Handle incomplete comparison due to MAC.
13000 (zio_read): Handle encrypted blocks.
13001 (zap_verify): Remove incorrect check.
13002 (fzap_iterate): Handle non-standard fzap.
13003 (zap_iterate): Likewise.
13004 (zap_iterate_u64): New function.
13005 (dnode_get_fullpath): Load keys.
13006 * grub-core/fs/zfs/zfscrypt.c: New file.
13007 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
13008 (grub_crypto_ecb_encrypt): Make input const.
13009 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
13010 (grub_crypto_ecb_encrypt): Make input const.
13011 (GRUB_CIPHER_AES): New macro.
13012 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
13013 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
13014 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
13015 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
13016 prefix. All users updated.
13017 (grub_zfs_add_key): New proto.
13018 (grub_zfs_decrypt): Likewise.
13019 (grub_zfs_load_key): Likewise.
13020 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
13021 * util/grub-fstest.c (options): Add -K option.
13022 (argp_parser): Likewise.
13023
b632b404
VS
130242011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13025
13026 Support zle compression on ZFS.
13027
13028 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
13029 (decomp_table): Add zle.
13030 * include/grub/zfs/zio.h (zio_compress): Add zle.
13031
c7ba4f69
VS
130322011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13033
13034 Support BtrFS embedding.
13035
13036 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
13037 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
13038 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
13039 * util/grub-setup.c (setup): Use fs embedding if available.
13040 Add additional sanity check.
13041
455377d9
VS
130422011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13043
13044 * util/grub-install.in: Fix condition for config_opt.
13045
c2fd16ca
VS
130462011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13047
13048 Support third redundancy strip on raidz3.
13049
13050 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
13051 Return error on singularity. All users updated.
13052 (read_device): Don't stop on 3rd failure on raidz3.
13053
8622923b
VS
130542011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13055
13056 Support case-insensitive ZFS subvolumes.
13057
13058 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
13059 All users updated.
13060 (zap_hash): Likewise.
13061 (name_cmp): New function.
13062 (zap_leaf_array_equal): New parameter case_insensitive.
13063 All users updated.
13064 (zap_leaf_lookup): Likewise.
13065 (fzap_lookup): Likewise.
13066 (zap_lookup): Likewise.
13067 (dnode_get_path): New parameter case_insensitive. Retrieve case
13068 sensitiviness of a volume. All users updated.
13069 (dnode_get_fullpath): New parameter case_insensitive.
13070 All users updated.
13071 (grub_zfs_dir): Set info.case_insensitiveness.
13072
95f2e860
VS
130732011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13074
13075 Support second redundancy strip on raidz(2,3).
13076
13077 * grub-core/fs/zfs/zfs.c (powx): New array.
13078 (powx_inv): Likewise.
13079 (poly): New const.
13080 (xor_out): New function.
13081 (gf_mul): Likewise.
13082 (recovery): Likewise.
13083 (read_device): Use second redundancy strip.
13084
11ee4389
VS
130852011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13086
13087 Use a power of generator representation of GF(256) multiplication group
13088 to save space time and complexity.
13089
13090 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
13091 (raid6_table2): Likewise.
13092 (powx): New array.
13093 (powx_inv): Likewise.
13094 (poly): New const.
13095 (grub_raid_block_mul): Replace with ...
13096 (grub_raid_block_mulx): ...this.
13097 (grub_raid6_init_table): Rewritten.
13098 (grub_raid6_recover): Use power of generator representation.
13099
09e2763f
VS
131002011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13101
13102 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
13103 for the right device.
13104
8bec9a28
VS
131052011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13106
13107 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
13108 expected by grub-mkimage and it's more clear since there is no implicit
13109 padding.
13110
dbd3a32e
VS
131112011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13112
13113 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
13114 disk.
13115 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13116
182c872a
PMH
131172011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
13118
13119 * util/grub-mkrescue.in: Fix handling xorriso option.
13120
1e51cabd
VS
131212011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13122
13123 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
13124 NULL.
13125
9cc3581d 131262011-11-03 crocket <crockabiscuit@gmail.com>
13127
13128 * util/grub.d/10_linux.in: Add Slackware initrd naming.
13129
158dc1ea
VS
131302011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13131
13132 XZ CRC64 and SHA256 support.
13133
13134 * Makefile.util.def (libgrubmods): Add crc64.c.
13135 * grub-core/Makefile.core.def (crc64): New module.
13136 * grub-core/lib/crc64.c: New file.
13137 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
13138 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
13139 Fix the type.
13140 (MAX_HASH_SIZE): New define.
13141 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
13142 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
13143 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13144 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13145 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
13146 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
13147 Handle non-crc32 hashes.
13148 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
13149 (dec_stream_header): Handle non-crc32 hashes.
13150 (dec_stream_footer): Likewise.
13151 (dec_block_header): Likewise.
13152 (dec_main): Likewise.
13153 (xz_dec_init): Likewise.
13154 (xz_dec_reset): Likewise.
13155 (xz_dec_end): Likewise.
13156 * util/import_gcry.py: Add CRC64 line.
13157
9d9b3d2f
VS
131582011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13159
13160 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
13161 as well.
13162
7d0ac931
VS
131632011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13164
13165 Make reiserfs label retrieval similar to other *_label functions.
13166
13167 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
13168 (REISERFS_MAX_LABEL_LENGTH): Removed.
13169 (REISERFS_LABEL_OFFSET): Likewise.
13170 (grub_reiserfs_label): Rewritten.
13171
131722011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13173
13174 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
13175 field.
13176
cf5ba824
VS
131772011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13178
13179 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
13180
17744004
VS
131812011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13182
13183 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
13184 drive failure on both raidz and raidz2.
13185
aca5aefc
VS
131862011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13187
13188 Fix RAIDZ(2) for >= 5 devices.
13189
13190 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
13191 asize argument. All users updated.
13192
ce8ca56e
VS
131932011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13194
13195 Fix RAIDZ(2).
13196
13197 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
13198 (fill_vdev_info_real): Set ashift.
13199 (read_device): Rewrite RAIDZ part based on reverse engineering.
13200
7c01e783
VS
132012011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13202
13203 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
13204 don't report potentially unavialiable fields in debug output.
13205 (find_path): Fix double-free and memory leak.
13206
ce109e84
VS
132072011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13208
13209 Read label on UFS1.
13210
13211 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
13212 (grub_ufs_fs): Always set .label.
13213
87661123
VS
132142011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 Use shifts in UFS.
13217
13218 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
13219 (grub_ufs_data): New field log2_blksz.
13220 (grub_ufs_read_file): Use shifts.
13221 (grub_ufs_mount): Check block size and logarithm it.
13222
46bc1dc2
VS
132232011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13224
13225 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
13226 long symlinks.
13227
19ee2987
VS
132282011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13229
13230 Handle symlinks and long names on tar and cpio.
13231
13232 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
13233 (ATTR_FILE): Likewise.
13234 (ATTR_DIR): Likewise.
13235 (ATTR_LNK): Likewise.
13236 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
13237 (grub_cpio_find_file): Fill mode, handle linkname field as well as
13238 L and K entries.
13239 (grub_cpio_mount): Zero-fill data.
13240 (handle_symlink): New function.
46bc1dc2
VS
13241 (grub_cpio_dir): Handle symlinks.
13242 (grub_cpio_open): Likewise.
13243 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 13244
c83a08d8
VS
132452011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13246
13247 Fix iso9660 filename limitations and fix memory leaks.
13248
13249 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
13250 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
13251
45cdd3ea
VS
132522011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13253
13254 Fix JFS file name length limitations.
13255
13256 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
13257 (grub_jfs_diropen): Fix maximum filename length.
13258 (grub_jfs_getent): Fix filename length.
13259 (grub_jfs_lookup_symlink): Fix size checks.
13260
94ef05c2
VS
132612011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13262
13263 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
13264 string.
13265
785ab8c7
VS
132662011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13267
eb0b6b45
VS
13268 Leverage BFS implementation to read AFS.
13269
13270 * Makefile.util.def (libgrubmods): Add afs.c.
13271 * grub-core/Makefile.core.def (afs): New module
13272 * grub-core/fs/afs.c: New file.
13273 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
13274
132752011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13276
13277 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 13278
c4a1628f
VS
132792011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13280
13281 * grub-core/fs/bfs.c: Run indent.
13282
5825b379
VS
132832011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13284
13285 BFS implementation based on the specification.
13286
13287 * grub-core/fs/bfs.c: New file.
13288 * Makefile.util.def (libgrubmods): Add bfs.c.
13289 * grub-core/Makefile.core.def (bfs): New module.
13290
42b2a706
VS
132912011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13292
13293 * util/grub-fstest.c (cmd_cp): Clarify error message.
13294 (cmd_cmp): Likewise.
13295
61b99bfc
YB
132962011-10-30 Yves Blusseau <blusseau@zetam.org>
13297
13298 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
13299 and befs_be.
13300
faba3d16
VS
133012011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
13302
13303 Remove afs and befs because of copyright problem.
13304
13305 * grub-core/fs/afs.c: Removed.
13306 * grub-core/fs/afs_be.c: Removed.
13307 * grub-core/fs/befs.c: Removed.
13308 * grub-core/fs/befs_be.c: Removed.
13309 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
13310 * grub-core/Makefile.core.def (afs): Removed.
13311 (afs_be): Likewise.
13312 (befs): Likewise.
13313 (befs_be): Likewise.
13314
c39224b0
VS
133152011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13316
13317 Prefer rockridge over Joliet.
13318
13319 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
13320 to ...
13321 (set_rockridge): ... here.
13322 (grub_iso9660_mount): Check rockridge on the primary label when
13323 discovering. Ignore Joliet if Rockridge is present.
13324
e551115a
VS
133252011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13326
13327 Use shifts in nilfs2.
13328
13329 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
13330 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
13331 (grub_nilfs2_palloc_entries_per_group): Replace with ...
13332 (grub_nilfs2_log_palloc_entries_per_group): ... this.
13333 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
13334 (grub_nilfs2_entries_per_block): Replaced with ...
13335 (grub_nilfs2_log_entries_per_block_log): ... this.
13336 (grub_nilfs2_blocks_per_group): Replaced with ...
13337 (grub_nilfs2_blocks_per_group_log): ... this.
13338 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
13339 (grub_nilfs2_blocks_per_desc_block_log): ... this.
13340 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
13341 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
13342 (grub_nilfs2_palloc_entry_offset): Replaced ...
13343 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
13344 (grub_nilfs2_dat_translate): Use shifts.
13345 (grub_nilfs2_read_inode): Likewise.
13346 (GRUB_MOD_INIT): Ensure that logs are correct.
13347
564dd58c
VS
133482011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13349
13350 Use shifts in minix filesystem.
13351
13352 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
13353 (GRUB_MINIX_ZONE2SECT): Likewise.
13354 (grub_minix_data): Replace block_size with log_block_size.
13355 (grub_minix_read_file): Use shifts.
13356 (grub_minix_mount): Check block size and take a logarithm.
13357
ed9ba06d
VS
133582011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13359
13360 Use shifts in squash4.
13361
13362 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
13363 (squash_mount): Check block size and take logarithm.
13364 (direct_read): Use shifts.
13365
ad03fe76
VS
133662011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13367
13368 Correct befs block counting logic.
13369
13370 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
13371 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
13372 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
13373 (grub_afs_read_inode): Use block_shift.
13374 (RANGE_SHIFT): New definition.
13375 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
13376 unexpected conditions, use shifts and appropriate types.
13377 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
13378
6563f63d
VS
133792011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13380
13381 * grub-core/disk/raid.c (scan_devices): Check partition.
13382 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13383
5b1ae25f
VS
133842011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13385
13386 Support BFS (befs) UUID.
13387
13388 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
13389 (grub_afs_small_data_element_header): New struct.
13390 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
13391 (grub_afs_read_attribute) [MODE_BFS]: New function.
13392 (grub_afs_iterate_dir): Allocate for complete inode.
13393 (grub_afs_mount): Likewise.
13394 (grub_afs_uuid) [MODE_BFS]: New function.
13395 (grub_afs_fs) [MODE_BFS]: Add .uuid.
13396
f8d82408
VS
133972011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13398
13399 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
13400 (zfs_unmount): Fix memory leak.
13401
5773fb64
VS
134022011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13403
13404 Support NTFS reparse points.
13405
13406 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
13407 (symlink_descriptor): New struct.
13408 (grub_ntfs_read_symlink): New function.
13409 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
13410 (grub_ntfs_open): Likewise.
13411
91c3fdde
VS
134122011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13413
13414 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
13415
3be82e10
VS
134162011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13417
13418 fstest xnu_uuid subcommand.
13419
13420 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
13421 grub-core/commands/xnu_uuid.c.
13422 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
13423 (fstest): Handle xnu_uuid.
13424 (options): Document xnu_uuid.
13425 (argp_parser): Parse xnu_uuid.
13426
8e32442e
VS
134272011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13428
13429 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
13430 -l argument. Add newline at the end if printing.
13431 (GRUB_MOD_INIT): Document -l.
13432
52a05075
VS
134332011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13434
13435 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
13436
1869edb5
VS
134372011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13438
13439 ZFS multi-device and version 33 support.
13440
13441 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
13442 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
13443 (grub_zfs_data): Add multidev-ice-related fields.
13444 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
13445 (dva_get_offset): Make dva const.
13446 (zfs_fetch_nvlist): New function.
13447 (fill_vdev_info_real): Likewise.
13448 (fill_vdev_info): Likewise.
13449 (check_pool_label): Likewise.
13450 (scan_disk): Likewise.
13451 (scan_devices): Likewise.
13452 (read_device): Likewise.
13453 (read_dva): Likewise.
13454 (zio_read_gang): Use read_dva.
13455 (zio_read_data): Likewise.
13456 (zap_leaf_lookup): Add missing endian conversion.
13457 (zap_verify): Add missing endian conversion. All users updated.
13458 (fzap_lookup): Likewise.
13459 (fzap_iterate): Likewise.
13460 (dnode_get_path): Handle SA bonus.
13461 (nvlist_find_value): Make input const. All users updated.
13462 (unmount_device): New function.
13463 (zfs_unmount): Use unmount_device.
13464 (zfs_mount): Use scan_disk.
13465 (zfs_mtime): New function.
13466 (grub_zfs_open): Handle system attributes.
13467 (fill_fs_info): Likewise.
13468 (grub_zfs_dir): Likewise.
13469 (grub_zfs_fs): Add mtime.
13470 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
13471 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
13472 (SA_MTIME_OFFSET): Likewise.
13473 (SA_SYMLINK_OFFSET): Likewise.
13474 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
13475 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
13476 (fstest): Support zfsinfo.
13477 (argp_parser): Likewise.
13478
186b4028
VS
134792011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13480
13481 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
13482 error.
13483
134842011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
13485
13486 ZFS fixes.
13487
13488 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
13489 sharing the same block. Iterate over correct number of indices.
13490 (dnode_get_path): Handle symlinks correctly.
13491
c0584900
VS
134922011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13493
13494 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
13495
67e2bd71
VS
134962011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13497
13498 Read label on HFS+.
13499
13500 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
13501 (grub_hfsplus_btree_search): Fix types.
13502 (grub_hfsplus_label): Implement.
13503
e9cc6b7b
VS
135042011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13505
13506 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
13507
19832ddb
VS
135082011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
13511
66b40850
VS
135122011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13513
13514 Fix symlink handling on iso9660.
13515
13516 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
13517 All users updated.
13518 (grub_iso9660_susp_iterate): Accept zero-size iterate.
13519 (grub_iso9660_read_symlink): Moved most of code ...
13520 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
13521
db821363
VS
135222011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13523
13524 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
13525 Use union to avoid breaking strict-aliasing rules.
13526
e1211949
VS
135272011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13528
13529 Support multi-extent iso files.
13530
13531 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
13532 Add node.
13533 (grub_fshelp_node): Revamp. All users updated.
13534 (FLAG_*): New enum.
13535 (read_node): New function.
13536 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
13537 All users updated.
13538 (grub_iso9660_mount): Don't attempt to read sua when there is none.
13539 (get_node_size): New function.
13540 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
13541 entries.
13542 Fix memory leak on . and ..
13543 (grub_iso9660_read): Use read_node.
13544 (grub_iso9660_close): Free node.
13545
d4888031
VS
135462011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13547
13548 Fix tar 4G limit and handle paths containing dot.
13549
13550 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
13551 (canonicalize): New function.
13552 (grub_cpio_find_file): Use canonicalize. Store offs in
13553 grub_disk_addr_t.
13554 (grub_cpio_dir): Use grub_disk_addr_t.
13555 (grub_cpio_open): Likewise.
13556
9f12e664
VS
135572011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13558
13559 Fix handling of uncompressed blocks on squashfs and break 4G limit.
13560
13561 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
13562 unused flags.
13563 (grub_squash_inode): Add long_file and block_size.
13564 (grub_squash_cache_inode): New struct.
13565 (grub_squash_dirent): Make types into enum.
13566 (SQUASH_TYPE_LONG_REGULAR): New type.
13567 (grub_squash_frag_desc): Add field size.
13568 (SQUASH_BLOCK_FLAGS): New enum.
13569 (grub_squash_data): Use grub_squash_cache_inode.
13570 (grub_fshelp_node): Make ino_chunk 64-bit.
13571 (read_chunk): Minor argument change. All users updated.
13572 (squash_mount): Use correct le_to_cpu.
13573 (grub_squash_open): Handle LONG_REGULAR.
13574 (direct_read): New function.
13575 (grub_squash_read_data): Handle blocks correctly.
13576
9f326fba
VS
135772011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13578
13579 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
13580
f4d9b64b
VS
135812011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13582
13583 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
13584
5bbd28b8
VS
135852011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13586
13587 Fix 2G limit on ZFS.
13588
13589 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
13590 types.
13591 (uberblock_verify): Likewise.
13592 (dmu_read): Likewise.
13593 (grub_zfs_read): Likewise. Remove invalid cast.
13594
68c72069
VS
135952011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13596
13597 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
13598 (grub_jfs_blkno): Fix incorrect shift.
13599 (grub_jfs_read_file): Use more appropriate types.
13600
6e536dc8
VS
136012011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13602
13603 Support triple indirect on minix2 and minix3.
13604
13605 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
13606 Declare triple_indir_zone.
13607 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
13608 indirect.
13609
e0864e7a
VS
136102011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13611
13612 Minix FS fixes.
13613
13614 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
13615 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
13616 Rename ctime to mtime. All users updated.
13617 (grub_minix_get_file_block): Fix types and double indirect computations.
13618
89481cab
VS
136192011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13620
13621 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
13622 if no label is found.
13623 (grub_fat_iterate_dir): Fix file size type.
13624 (grub_fat_iterate_dir): Likewise.
13625
f646e143
VS
136262011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13627
13628 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
13629 save some space.
13630 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
13631 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13632
534d769e
VS
136332011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13634
13635 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
13636
e084ba18
VS
136372011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13638
13639 * util/import_gcry.py: Accept space between # and include.
13640
3471ecdf
VS
136412011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13642
13643 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
13644
124df5f6
VS
136452011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13646
13647 Fine grainely disable warnings on lexer. Remove Wno-error on it.
13648
13649 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
13650 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
13651 yylex_strncpy.
13652 * grub-core/script/yylex.l: Add fine-grained #pragma.
13653
4defb8d5
VS
136542011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13655
13656 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
13657 New inline function.
13658 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
13659 Likewise.
13660 (memset) [GRUB_UTIL]: Likewise.
13661 (memcmp) [GRUB_UTIL]: Likewise.
13662
4e94ae65
VS
136632011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13664
13665 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
13666 inline function rather than a define.
13667
18c575e5
VS
136682011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13669
13670 * util/grub-setup.c: Add missing include.
13671
f8bc22a8
VS
136722011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13673
13674 * util/ieee1275/grub-ofpathname.c: Add missing include.
13675
3ce69fc9
VS
136762011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13677
13678 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
13679 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
13680 Likewise.
13681
d1e293bb
VS
136822011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13683
13684 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
13685 grub_memcmp usage.
13686
7a5c54a4
VS
136872011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13688
13689 * util/grub-install.in: Add datarootdir as per automake manual
13690 suggestion.
13691 * util/grub-mknetdir.in: Likewise.
13692
136932011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
13694
13695 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
13696 suggestion.
13697 * util/grub.d/10_kfreebsd.in: Likewise.
13698 * util/grub.d/10_linux.in: Likewise.
13699 * util/grub.d/10_netbsd.in: Likewise.
13700 * util/grub.d/10_windows.in: Likewise.
13701 * util/grub.d/20_linux_xen.in: Likewise.
13702
766f7d08
VS
137032011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
13704
13705 Remove redundant grub_kernel_image_size.
13706
13707 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
13708 _edata and _start.
13709 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
13710 the small code. It moves it only by few bytes but simplifies the code.
13711 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
13712 _start.
13713 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
13714 (grub_kernel_image_size): Removed.
13715 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
13716 (grub_kernel_image_size): Removed.
13717 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
13718 compiled with Apple toolchain.
13719 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
13720 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
13721 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
13722 (grub_total_module_size): Likewise.
13723 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
13724 Removed.
13725 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
13726 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
13727 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
13728 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
13729 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
13730 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
13731 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
13732 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
13733 Removed.
13734 (grub_total_module_size): Removed.
13735 * util/grub-mkimage.c (image_target_desc): Remove image_size.
13736 (image_targets): Likewise.
13737 Set .compressed_size to no field on sparc.
13738 (generate_image): Remove kernel_image_size handling.
13739
fcf1d672
SJ
137402011-10-19 Szymon Janc <szymon@janc.net.pl>
13741
13742 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
13743 NULL pointer dereference.
13744
de9c615e
VS
137452011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13746
13747 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
13748 done with a dedicated section.
13749
13750 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
13751 Ensure the correct position of boot_path.
13752 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
13753 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
13754 other fields.
13755 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
13756 * include/grub/boot.h: Removed. All references removed.
13757 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
13758 Removed.
13759 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
13760
e55599dc
VS
137612011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13762
13763 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
13764 name.
13765
36dd20ad
VS
137662011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13767
13768 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
13769
f8f72eb8
VS
137702011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13771
13772 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13773 Don't add the bogus brackets.
13774
a374751b
VS
137752011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13776
13777 ExFAT support.
13778
13779 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
13780 * grub-core/Makefile.core.def (exfat): New module.
13781 * grub-core/fs/exfat.c: New file.
13782 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
13783 (GRUB_FAT_ATTR_*): Make into an enum.
13784 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
13785 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
13786 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
13787 (GRUB_FAT_MAXFILE): Removed.
13788 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
13789 (grub_current_fat_bpb_t): New type.
13790 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
13791 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
13792 (grub_fat_dir_node_t): New type.
13793 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
13794 (fat_log2) [MODE_EXFAT]: Removed.
13795 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
13796 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
13797 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
13798 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
13799 (grub_fat_label) [MODE_EXFAT]: New function.
13800 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
13801 reserved_first_sector to 0.
13802
544c2487
VS
138032011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13804
13805 Move grub_reboot out of the kernel.
13806
13807 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
13808 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
13809 * grub-core/lib/efi/reboot.c: ... here.
13810 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
13811 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
13812 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
13813 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
13814 * grub-core/lib/i386/reboot_trampoline.S: ... here.
13815 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
13816 * grub-core/lib/ieee1275/reboot.c: ... here.
13817 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
13818 * grub-core/lib/mips/arc/reboot.c: ... here.
13819 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
13820 * grub-core/lib/mips/loongson/reboot.c: ...here.
13821 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
13822 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
13823 * include/grub/emu/misc.h (grub_reboot): New function declaration.
13824 * include/grub/i386/reboot.h: New file.
13825 * include/grub/mips/loongson/ec.h: Fix includes.
13826 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
13827 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
13828 * grub-core/lib/i386/reboot.c: New file.
13829
a97501d2
VS
138302011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
13831
13832 Make grub_prefix into module to fix the arbitrary limit and save
13833 some space.
13834
13835 * grub-core/kern/emu/main.c (grub_prefix): Removed.
13836 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
13837 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
13838 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
13839 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
13840 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
13841 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
13842 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
13843 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
13844 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
13845 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
13846 * include/grub/ia64/efi/kernel.h: Removed.
13847 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
13848 (grub_prefix): Removed.
13849 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
13850 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
13851 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
13852 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
13853 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
13854 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
13855 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
13856 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
13857 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
13858 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
13859 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
13860 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
13861 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
13862 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
13863 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
13864 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
13865 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
13866 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
13867 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
13868 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
13869 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
13870 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
13871 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
13872 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
13873 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
13874 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
13875 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
13876 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
13877 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
13878 from module.
13879 * util/grub-mkimage.c (image_target_desc): Removed prefix and
13880 prefix_end.
13881 (image_targets): Likewise.
13882 (generate_image): Put prefix as a module.
13883
39705fad
VS
138842011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13885
13886 Replace grub_module_iterate with FOR_MODULES.
13887
13888 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
13889 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
13890 (grub_efi_modules_addr): ...this.
13891 * grub-core/kern/efi/init.c (grub_modbase): New variable.
13892 (grub_efi_init): Set grub_modbase.
13893 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
13894 (grub_modbase): New variable.
13895 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
13896 (grub_modbase): New variable.
13897 (grub_machine_init): Set grub_modbase.
13898 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
13899 (grub_modbase): New variable.
13900 (grub_machine_init): Set grub_modbase.
13901 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
13902 (grub_modbase): New variable.
13903 (grub_machine_init): Set grub_modbase.
13904 * grub-core/kern/main.c (grub_module_iterate): Remove.
13905 (grub_modules_get_end): Use grub_modbase.
13906 (grub_load_modules): Use FOR_MODULES.
13907 (grub_load_config): Likewise.
13908 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
13909 (grub_modbase): New variable.
13910 (grub_machine_init): Set grub_modbase.
13911 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
13912 (grub_modbase): New variable.
13913 (grub_machine_init): Set grub_modbase.
13914 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
13915 Removed.
13916 (grub_modbase): New variable.
13917 (grub_machine_init): Set grub_modbase.
13918 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
13919 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
13920 (grub_module_iterate): Likewise.
13921 (grub_modbase): New variable declaration.
13922 (FOR_MODULES): New macro.
13923
2afb7f6c
VS
139242011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13925
13926 * configure.ac: Check for __ctzdi2 and __ctzsi2.
13927 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
13928
366e34fa
VS
139292011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13930
13931 Fix few obvious type discrepancies.
13932
13933 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
13934 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
13935 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
13936 variable.
13937 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
13938 and connected types.
13939 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
13940 offset.
13941 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
13942 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
13943 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
13944 and connected types.
13945
177b960e
VS
139462011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13947
13948 Fix python 3.x incompatibilities.
13949
13950 * gentpl.py: Put brackets around print strings.
13951 * util/import_gcry.py: Open explicitly as utf-8.
13952 Use in instead of has_key.
13953
3b619ae1
VS
139542011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13955
13956 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
13957 (GRUB_XFS_INO_AGBITS): Make into inline function.
13958 (GRUB_XFS_INO_INOINAG): Likewise.
13959 (GRUB_XFS_INO_AG): Likewise.
13960 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
13961 (GRUB_XFS_EXTENT_OFFSET): Likewise.
13962 (GRUB_XFS_EXTENT_BLOCK): Likewise.
13963 (GRUB_XFS_EXTENT_SIZE): Likewise.
13964 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
13965 (GRUB_XFS_NEXT_DIRENT): Likewise.
13966 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
13967 (grub_xfs_read_file): Fix offset type.
13968
8bcebcb8
RM
139692011-10-15 Robert Millan <rmh@gnu.org>
13970
13971 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
13972
0017e5ef
RM
139732011-10-15 Robert Millan <rmh@gnu.org>
13974
13975 Fix build problem on FreeBSD and GNU/kFreeBSD.
13976
13977 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
13978
d8919552
VS
139792011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13980
13981 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
13982
13983 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
13984 types.
13985 (grub_hfsplus_btree_recoffset): Likewise.
13986 (grub_hfsplus_btree_recptr): Likewise.
13987 (grub_hfsplus_find_block): Likewise.
13988 (grub_hfsplus_btree_search): Likewise.
13989 (grub_hfsplus_read_block): Likewise.
13990 (grub_hfsplus_read_file): Likewise.
13991 (grub_hfsplus_mount): Likewise.
13992 (grub_hfsplus_btree_iterate_node): Likewise.
13993 (grub_hfsplus_btree_search): Likewise.
13994 (grub_hfsplus_iterate_dir): Likewise.
13995 (grub_hfsplus_read): A small code simplification.
13996
c81296b6
VS
139972011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13998
13999 * grub-core/kern/emu/hostdisk.c
14000 (convert_system_partition_to_system_disk): Don't assume that children
14001 of mapper nodes are mapper nodes.
14002
0eb8ffb1
VS
140032011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14004
14005 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
14006 * include/grub/misc.h (grub_isxdigit): New function.
14007 * grub-core/video/colors.c (my_isxdigit): Removed. All users
14008 switched to grub_isxdigit.
14009 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
14010 number starting with a letter.
14011
a98f4a08
RM
140122011-10-09 Robert Millan <rmh@gnu.org>
14013
14014 LVM support for FreeBSD and GNU/kFreeBSD.
14015
14016 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
14017 GNU/kFreeBSD.
14018 (LVM_DEV_MAPPER_STRING): Move from here ...
14019 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
14020 * util/getroot.c: Include `<grub/util/lvm.h>'.
14021 (grub_util_get_dev_abstraction): Enable
14022 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
14023 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
14024 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
14025 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
14026 support it.
14027 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
14028 GNU/kFreeBSD.
14029 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
14030 when LVM abstraction is required for ${GRUB_DEVICE}.
14031
050e8e90
SJ
140322011-10-06 Szymon Janc <szymon@janc.net.pl>
14033
14034 Add support for LZO compression in GRUB:
14035 - import of minilzo library,
14036 - LZO decompression for btrfs,
14037 - lzop files decompression.
14038
14039 * grub-core/io/lzopio.c: New file.
14040 * grub-core/lib/adler32.c: Likewise.
14041 * grub-core/lib/minilzo/lzoconf.h: Likewise.
14042 * grub-core/lib/minilzo/lzodefs.h: Likewise.
14043 * grub-core/lib/minilzo/minilzo.c: Likewise.
14044 * grub-core/lib/minilzo/minilzo.h: Likewise.
14045 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
14046 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
14047 grub-core/lib/minilzo/minilzo.c to common.
14048 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
14049 cflags in cppflags.
14050 * grub-core/Makefile.core.def (btrfs): Likewise.
14051 * grub-core/Makefile.core.def (lzopio): New module.
14052 (adler32): Likewise.
14053 * grub-core/fs/btrfs.c: Include minilzo.h.
14054 (GRUB_BTRFS_COMPRESSION_LZO): New define.
14055 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
14056 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
14057 (grub_btrfs_lzo_decompress): New function.
14058 (grub_btrfs_extent_read): Add support for LZO compression type.
14059 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
14060 (GRUB_USHRT_MAX): Likewise.
14061 (GRUB_UINT_MAX): Likewise.
14062 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
14063 (UINT_MAX): Likewise.
14064 (CHAR_BIT): Likewise.
14065 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
14066 grub-core/lib/posix_wrap/limits.h
14067 (UCHAR_MAX): Likewise.
14068 * include/grub/file.h (grub_file_filter_id): New compression filter
14069 GRUB_FILE_FILTER_LZOPIO.
14070 * include/grub/file.h (grub_file_filter_id): Set
14071 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
14072 * include/grub/types.h (grub_get_unaligned16): New function.
14073 (grub_get_unaligned32): Likewise.
14074 (grub_get_unaligned64): Likewise.
14075 * util/import_gcry.py (cryptolist): Add adler32.
14076
0eb8ffb1
VS
140772011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
14078
14079 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
14080 in perspective decreases the complexity of build system and fixes
14081 compilation right now.
14082
ce79cc99 140832011-10-01 Ales Nesrsta <starous@volny.cz>
14084
14085 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
14086 (fixed problem related to using UHCI with coreboot).
14087
8667a314
BC
140882011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
14089
14090 * gentpl.py: Use Autogen macros so that the output template file
14091 (Makefile.tpl) size is reduced.
14092
fc5efcc0
MK
140932011-09-29 Mads Kiilerich <mads@kiilerich.com>
14094
14095 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
14096 extra_dist.
14097
d1ab689d
ML
140982011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14099
14100 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
14101 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
14102
c05de032
ML
141032011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14104
14105 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
14106 _fullpath.
14107
cca7ccd8
ML
141082011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14109
14110 Remove extra declaration of sleep for mingw32.
14111
14112 * util/misc.c (sleep) [__MINGW32__]: Removed.
14113 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
14114
e0b0dc83
GS
141152011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
14116
14117 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
14118 type and packname.
14119 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
14120 Resurrected.
14121 (NETBSD_BTINFO_BOOTWEDGE): New definition.
14122 (grub_netbsd_btinfo_bootwedge): New struct.
14123 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14124 New function.
14125 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
14126
91a1a164
TH
141272011-09-28 Thomas Haller <thomas.haller@fen-net.de>
14128
14129 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
14130 loader.
14131
2ded951e
AB
141322011-09-28 Andreas Born <futur.andy@googlemail.com>
14133
14134 Fix incorrect identifiers in bash-completion.
14135
14136 * util/bash-completion.d/grub-completion.bash.in
14137 (_grub_mkpasswd-pbkdf2): Rename to ...
14138 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
14139 (_grub_script-check): Rename to ...
14140 (_grub_script_check): ... this. All users updated.
14141
69915030
VS
141422011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
14143
14144 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14145 Return 0 if disk isn't biosdisk.
14146
20fd15f9
GS
141472011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14148
14149 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
14150 on NetBSD.
14151 * Makefile.util.def (grub-fstest): Likewise.
14152
1a7d7db9
GS
141532011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14154
14155 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
14156 Get sector size from disk label.
14157
2221ab6c
CW
141582011-09-05 Colin Watson <cjwatson@ubuntu.com>
14159
14160 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
14161 */README* as well as README*.
14162 Reported by: Axel Beckert.
14163
ca51c4a0
VS
141642011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14165
14166 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
14167 case of less than 256 MiB of RAM.
14168
ab80f326
VS
141692011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14170
14171 * grub-core/commands/wildcard.c (make_regex): Handle @.
14172
4155e697
VS
141732011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 * util/grub-install.in: Move cryptodisk logic to appropriate place.
14176
ab178c08
SJ
141772011-08-21 Szymon Janc <szymon@janc.net.pl>
14178
14179 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
14180 AC_LANG_CONFTEST macros.
14181
7dc3c686
SJ
141822011-08-20 Szymon Janc <szymon@janc.net.pl>
14183
14184 Add grub-fstest option to uncompress data for commands.
14185
14186 * util/grub-fstest.c (uncompress): New var.
14187 (options): New option -u.
14188
fe8d4a7b
SJ
141892011-08-20 Szymon Janc <szymon@janc.net.pl>
14190
14191 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
14192 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
14193
a5219af1
SJ
141942011-08-20 Szymon Janc <szymon@janc.net.pl>
14195
14196 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
14197 file type was not recognized correctly (not gzip or corrupted).
14198
f87abff5
VS
141992011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14200
14201 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
14202 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
14203
d94497ea
VS
142042011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14205
14206 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
14207 loongson.
14208 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14209 video_radeon_fuloong2e.
14210 * grub-core/video/radeon_fuloong2e.c: New file.
14211 * include/grub/video.h (grub_video_id_t): Add new ID
14212 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
14213
0d1fd011
VS
142142011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14215
14216 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
14217 define.
14218 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
14219 that PRID matches the detected subplatform and reset the subplatform
14220 if it doesn't.
14221
84beb0ee
VS
142222011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14223
14224 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
14225
1227c133
VS
142262011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14227
14228 Fix PCI iterating on functions >= 4.
14229
14230 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
14231 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
14232 Removed.
14233 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
14234 (grub_pci_read): Fix bitmask.
14235 (grub_pci_read_word): Likewise.
14236 (grub_pci_read_byte): Likewise.
14237 (grub_pci_write): Likewise.
14238 (grub_pci_write_word): Likewise.
14239 (grub_pci_write_byte): Likewise.
14240
9594c689
VS
142412011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14242
14243 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
14244 can still be specified in TARGET_CFLAGS)
14245
14a2562c
VS
142462011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14247
14248 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
14249
14250 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
14251 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
14252 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
14253 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
14254 (FULOONG): Rename to ...
14255 (FULOONG2F): ... this. All users updated.
14256 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
14257 (machtype_fuloong2f_str): ... this.
14258 (machtype_fuloong2e_str): New string.
14259 Check for machtype_fuloong2e_str.
14260 * grub-core/loader/mips/linux.c (loongson_machtypes)
14261 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
14262 * grub-core/term/serial.c (loongson_defserial)
14263 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
14264 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
14265 loongson_defserial.
14266 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
14267 Rename to ...
14268 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
14269 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
14270 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
14271 to IMAGE_FULOONG2F_FLASH. All users updated.
14272 (image_targets): Rename images.
14273 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
14274
b526cbb6
SJ
142752011-08-19 Szymon Janc <szymon@janc.net.pl>
14276
14277 Make enable of disk cache statistics code configurable.
14278
14279 * configure.ac: --enable-cache-stats added.
14280 * config.h.in (DISK_CACHE_STATS): New define.
14281 * grub-core/Makefile.core.def (cacheinfo): New command.
14282 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
14283 * grub-core/commands/cacheinfo.c: New file.
14284 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
14285 moved to cacheinfo.c.
14286 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
14287 debug code.
14288 * include/grub/disk.h: Likewise.
14289
fb739ccd
SJ
142902011-08-19 Szymon Janc <szymon@janc.net.pl>
14291
14292 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
14293 * grub-core/Makefile.am: Likewise.
14294
2bba8cfd
VS
142952011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14296
14297 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
14298 non-zero pull.
14299
43526629
VS
143002011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14301
14302 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
14303 All users updated.
14304 (grub_jfs_lookup_symlink): Use correct starting inode.
14305
5c144cc8
VS
143062011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14307
14308 * util/grub-setup.c (main): Add missing gcry initialisation.
14309
b1257f65
VS
143102011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14311
14312 Don't accept text modes on EFI when booting Linux.
14313
14314 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
14315 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
14316
828bc390
ML
143172011-08-15 Mario Limonciello <mario_limonciello@dell.com>
143182011-08-15 Colin Watson <cjwatson@ubuntu.com>
14319
14320 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
14321 use of "/path/.." as in grub-install for EFI as well as handling
14322 symlinks correctly.
14323 Fixes Debian bug #637768.
14324
5f60ccac
CW
143252011-08-15 Colin Watson <cjwatson@ubuntu.com>
14326
14327 * util/grub-probe.c: Remove duplicate #include.
14328
6dc212f9
RM
143292011-08-10 Robert Millan <rmh@gnu.org>
14330
14331 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
14332
14333 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
14334 function.
14335 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
14336 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
14337
66816d85
RM
143382011-08-03 Robert Millan <rmh@gnu.org>
14339
14340 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
14341 la_array as packed.
14342 Reported by: Zachary Bedell
14343
20168fca
CW
143442011-07-26 Colin Watson <cjwatson@ubuntu.com>
14345
14346 * configure.ac: The Loongson port requires grub-mkfont due to its
14347 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
14348 be built.
14349
303b6246
CW
143502011-07-26 Colin Watson <cjwatson@ubuntu.com>
14351
14352 * util/grub-install.in: Don't source grub-mkconfig_lib until after
14353 processing arguments (otherwise help2man fails when GRUB has not yet
14354 been installed).
14355
6795300e
VS
143562011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14357
41aa28ea
VS
14358 New script grub-mkstandalone.
14359
14360 * Makefile.util.def (grub-mkstandalone): New script.
14361 * docs/man/grub-mkstandalone.h2m: New file.
14362 * util/grub-mkstandalone.in: Likewise.
14363
143642011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14365
14366 Support ATA disks with 4K sectors.
6795300e
VS
14367
14368 * include/grub/ata.h (grub_ata): New member log_sector_size.
14369 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
14370 (grub_ata_identify): Read sector size.
14371 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
14372
92227597
VS
143732011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14374
14375 * util/grub-install.in: Don't use uhci outside of x86.
14376
c77069f5
VS
143772011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 * util/grub-mkrescue.in: Add missing quotes.
14380
143812011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
14382
14383 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
14384 dereference.
14385
583168a2
VS
143862011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14387
14388 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
14389
6be1c01f
VS
143902011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14391
14392 * include/grub/video.h: add missing EXPORT_FUND on
14393 grub_video_edid_checksum and grub_video_edid_preferred_mode.
14394
a1167439
VS
143952011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14396
14397 * include/grub/mips/kernel.h: Fix define conflict.
14398
bf66054f
VS
143992011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14400
14401 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
14402 all four ways.
14403
8fc4fa45
CW
144042011-07-21 Colin Watson <cjwatson@ubuntu.com>
14405
14406 Preferred resolution detection for VBE.
14407
14408 * grub-core/video/video.c (grub_video_edid_checksum): New function.
14409 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
14410 the Flat Panel extension, in line with the X.org VESA driver.
14411 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
14412 New function.
14413 (grub_vbe_bios_get_ddc_capabilities): Likewise.
14414 (grub_vbe_bios_read_edid): Likewise.
14415 (grub_vbe_get_preferred_mode): Likewise.
14416 (grub_video_vbe_setup): When the mode is "auto", try to get the
14417 preferred mode from VBE, and use the largest mode that is no larger
14418 than the preferred mode (some BIOSes expose a preferred mode that is
14419 not in their mode list!). If this fails, fall back to 640x480 as a
14420 safe conservative choice.
14421 (grub_video_vbe_get_edid): New function.
14422 (grub_video_vbe_adapter): Add get_edid.
14423 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
14424 (struct grub_video_adapter): Add get_edid.
14425 (grub_video_edid_checksum): Add prototype.
14426 (grub_video_edid_preferred_mode): Likewise.
14427 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
14428 structure.
14429
14430 * grub-core/commands/videoinfo.c (print_edid): New function.
14431 (grub_cmd_videoinfo): Print EDID if available.
14432
14433 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
14434 is more appropriate on a wider range of platforms than 640x480.
14435 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
14436 documentation.
14437
ca5572a9
VS
144382011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14439
14440 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
14441
e4bcf625
VS
144422011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14443
14444 * po/POTFILES.in: Regenerate.
14445
c4edd548
VS
144462011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14447
14448 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
14449 incorrect memory usage.
14450
16a2bab0
VS
144512011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14452
14453 * util/grub-install.in: Source grub-mkconfig_lib.
14454
2e418de6
VS
144552011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14456
14457 Remove getroot.c from core on emu platform.
14458
14459 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
14460 kern/emu/raid.c.
14461 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
14462 useless.
14463 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
14464 * util/getroot.c (get_win32_path): ... here.
14465 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
14466 * util/getroot.c (fini_libzfs): ... here.
14467 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
14468 * util/getroot.c (grub_get_libzfs_handle): ... here.
14469 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
14470 Moved from here...
14471 * util/getroot.c (grub_find_zpool_from_dir): ... here.
14472 * grub-core/kern/emu/misc.c
14473 (grub_make_system_path_relative_to_its_root): Moved from here...
14474 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
14475 * grub-core/kern/emu/getroot.c: Moved from here ...
14476 * util/getroot.c: ... here. All users updated.
14477 * grub-core/kern/emu/raid.c: Moved from here ...
14478 * util/raid.c: ... here. All users updated.
14479
def9832a
VS
144802011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 * po/POTFILES.in: Regenerate.
14483
cd8fe79a
VS
144842011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14485
14486 Fix compilation on GNU/Linux.
14487
14488 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
14489 Disable geli.
14490 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
14491 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
14492 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
14493
a251b719
VS
144942011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
144952011-07-07 Michael Gorven <michael@gorven.za.net>
144962011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
14497
14498 LUKS and GELI support.
14499
14500 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
14501 grub-core/disk/luks.c, grub-core/disk/geli.c,
14502 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
14503 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
14504 grub-core/lib/arg.c.
14505 (libgrubmods.a): Remove gcrypts cflags and cppflags.
14506 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
14507 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
14508 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
14509 (grub-bin2h): Add libgcry.a.
14510 (grub-mkimage): Likewise.
14511 (grub-mkrelpath): Likewise.
14512 (grub-script-check): Likewise.
14513 (grub-editenv): Likewise.
14514 (grub-mkpasswd-pbkdf2): Likewise.
14515 (grub-pe2elf): Likewise.
14516 (grub-fstest): Likewise.
14517 (grub-mkfont): Likewise.
14518 (grub-mkdevicemap): Likewise.
14519 (grub-probe): Likewise.
14520 (grub-ofpath): Likewise.
14521 (grub-mklayout): Likewise.
14522 (example_unit_test): Likewise.
14523 (grub-menulst2cfg): Likewise.
14524 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
14525 * grub-core/Makefile.core.def (cryptodisk): New module.
14526 (luks): Likewise.
14527 (geli): Likewise.
14528 * grub-core/disk/AFSplitter.c: New file.
14529 * grub-core/disk/cryptodisk.c: Likewise.
14530 * grub-core/disk/geli.c: Likewise.
14531 * grub-core/disk/luks.c: Likewise.
14532 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
14533 grub_util_is_lvm.
14534 (grub_util_get_dm_abstraction): New function.
14535 (grub_util_follow_gpart_up): Likewise.
14536 (grub_util_get_geom_abstraction): Likewise.
14537 (grub_util_get_dev_abstraction): Use new functions.
14538 (grub_util_pull_device): Pull GELI and LUKS.
14539 (grub_util_get_grub_dev): Handle LUKS and GELI.
14540 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
14541 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
14542 (follow_geom_up): Removed.
14543 (grub_util_fd_seek): New function.
14544 (open_device): Use grub_util_fd_seek.
14545 (nread): Rename to ..
14546 (grub_util_fd_read): ... this. All users updated.
14547 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
14548 (grub_crypto_cbc_decrypt): Likewise.
14549 (grub_crypto_hmac_write): Likewise.
14550 (grub_crypto_hmac_buffer): Likewise.
14551 (grub_password_get): Extend to util.
14552 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
14553 New member modname.
14554 (gcry_md_spec) [GRUB_UTIL]: Likewise.
14555 * include/grub/cryptodisk.h: New file.
14556 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
14557 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
14558 LUKS and GELI.
14559 (grub_util_follow_gpart_up): New proto.
14560 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
14561 (grub_util_fd_read): Likewise.
14562 (grub_cryptodisk_cheat_mount): Likewise.
14563 (grub_util_cryptodisk_print_uuid): Likewise.
14564 (grub_util_get_fd_sectors): Likewise.
14565 * util/grub-fstest.c (mount_crypt): New var.
14566 (fstest): Mount crypto if requested.
14567 (options): New option -C.
14568 (argp_parser): Parse -C.
14569 (main): Init and fini gcry.
14570 * util/grub-install.in: Support cryptodisk install.
14571 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
14572 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
14573 cryptodisk.
14574 (prepare_grub_to_access_device): Likewise.
14575 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
14576 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
14577 (probe_cryptodisk_uuid): New function.
14578 (probe_abstraction): Likewise.
14579 (probe): Use new functions.
14580 * util/import_gcry.py: Create Makefile.utilgcry.def.
14581 Add modname member.
14582
9bfdcbbc
VS
145832011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14584
14585 Lazy device scanning.
14586
14587 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
14588 (grub-setup): Remove util/raid.c.
14589 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
14590 * grub-core/disk/lvm.c (scan_depth): New variable.
14591 (grub_lvm_iterate): Rescan if necessary.
14592 (find_lv): New function based on grub_lvm_open.
14593 (grub_lvm_open): Use find_lv. Rescan on error.
14594 (is_node_readable): New function.
14595 (is_lv_readable): Likewise.
14596 (grub_lvm_scan_device): Skip already found disks.
14597 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
14598 Stop if searched device is found and readable.
14599 * grub-core/disk/raid.c (inscnt): New variable.
14600 (scan_depth): Likewise.
14601 (scan_devices): New function based on grub_raid_register. Abort if
14602 looked for device is found.
14603 (grub_raid_iterate): Rescan if needed.
14604 (find_array): NEw function based on -grub_raid_open.
14605 (grub_raid_open): Use find_array and rescan.
14606 (insert_array): Set became_readable_at.
14607 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
14608 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
14609 New function.
14610 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
14611 (grub_util_pull_device): New function.
14612 (grub_util_get_grub_dev): Call grub_util_pull_device.
14613 * util/raid.c: Moved to ..
14614 * grub-core/kern/emu/raid.c: ... here.
14615 (grub_util_raid_getmembers): New parameter "bootable".
14616 All users updated. Support 1.x.
14617 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
14618 All users updated.
14619 * include/grub/disk.h (grub_disk_pull_t): New enum.
14620 (grub_disk_dev): Change iterate prototype.
14621 All users updated.
14622 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
14623 New proto.
14624 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
14625 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
14626 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
14627 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
14628 All users updated.
14629 * include/grub/util/raid.h: Removed.
14630
1c358e59
VS
146312011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
14632
14633 * po/POTFILES.in: Regenerate.
14634
abee94ed
VS
146352011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
14636
14637 Unify sparc init with other ieee1275.
14638
14639 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
14640 instead of kern/sparc64/ieee1275/init.c.
14641 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
14642 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
14643 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
14644 grub/machine/kernel.h.
14645 (grub_ieee1275_original_stack) [__sparc__]: New variable.
14646 (grub_claim_heap) [__sparc__]: Use sparc version.
14647 (grub_machine_init): Moved args parsing to
14648 (grub_parse_cmdline): ...this.
14649 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
14650 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
14651 New definition.
14652 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
14653
14654 Move BOOTP to separate file.
14655
14656 * grub-core/Makefile.core.def (net): Add net/bootp.c.
14657 * grub-core/net/net.c: Move all BOOTP functions to
14658 * grub-core/net/bootp.c: ... here.
14659
14660 Use frame interface on PXE.
14661
14662 * grub-core/Makefile.core.def (pxecmd): Removed.
14663 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
14664 * grub-core/commands/i386/pc/pxecmd.c: Removed.
14665 * grub-core/i386/pc/pxe.c: Moved from here ...
14666 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
14667 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
14668 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
14669
14670 EFI network support.
14671
14672 * grub-core/Makefile.core.def (efinet): New module.
14673 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
14674 here...
14675 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
14676 All users updated.
14677 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
14678 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
14679 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
14680 * grub-core/net/drivers/efi/efinet.c: New file.
14681 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
14682 (grub_efi_net_config): New extern var.
14683
14684 Various cleanups and bugfixes.
14685
14686 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
14687 error.
14688 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
14689 disk declared as partition.
14690 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
14691 leak on failure.
14692 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
14693 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
14694 (grub_debug_zalloc): Likewise.
14695 (grub_debug_realloc): Likewise.
14696 (grub_debug_memalign): Likewise.
14697 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
14698 Check that target is IPv4.
14699 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
14700 local-mac-address as fallback.
14701 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
14702 memory leak.
14703 * grub-core/net/ip.c (ipchksum): Rename to ...
14704 (grub_net_ip_chksum): ... this. All users updated.
14705 (grub_net_recv_ip_packets): Special handling for DHCP.
14706 * util/grub-mkimage.c (generate_image): Zero-out aout header.
14707
14708 Unify prefix handling
14709
14710 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
14711 (grub_machine_get_bootlocation): ... this.
14712 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
14713 (grub_machine_get_bootlocation): ... this.
14714 (grub_prefix): New variable.
14715 (prefix): Removed.
14716 (root_dev): New variable.
14717 (dir): Likewise.
14718 (main): Use new variables.
14719 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
14720 Revamped into ...
14721 (grub_machine_get_bootlocation): ... this.
14722 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
14723 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
14724 (grub_machine_get_bootlocation): ... this.
14725 (grub_machine_set_prefix): Removed.
14726 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
14727 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
14728 Revamped into ...
14729 (grub_machine_get_bootlocation): ... this.
14730 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
14731 (grub_set_prefix_and_root): ... this. All users updated.
14732 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
14733 Revamped into ...
14734 (grub_machine_get_bootlocation): ... this.
14735 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
14736 (grub_machine_get_bootlocation): New proto.
14737 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
14738
14739 Less intrusive and more reliable seek on network implementation.
14740
14741 * grub-core/kern/file.c (grub_file_net_seek): Removed.
14742 (grub_file_seek): Don't call grub_file_net_seek.
14743 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
14744 (grub_net_fs_read_real): .. this.
14745 (grub_net_seek_real): Use net->offset.
14746 (grub_net_fs_read): Seek if necessary.
14747
14748 Unify IEEE1275 netwotk config with the other platforms.
14749
14750 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
14751 New variable.
14752 (grub_machine_get_bootlocation): Support network.
14753 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
14754 Support type and device parsing.
14755 (grub_ieee1275_get_device_type): New function.
14756 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
14757 into ...
14758 (grub_ieee1275_net_config_real): ... this.
14759 (grub_ofnet_probecards): Removed.
14760 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
14761 * include/grub/ieee1275/ofnet.h: Removed.
14762 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
14763 extern var.
14764 (grub_ieee1275_get_device_type): New function.
14765
14766 Unify network device closing across platforms and make more robust.
14767
14768 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
14769 grub_grubnet_fini.
14770 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
14771 already.
14772 * grub-core/net/net.c (grub_net_network_level_interface_register):
14773 Update num_ifaces.
14774 (grub_net_card_unregister): Close all interfaces.
14775 (receive_packets): Don't poll if no iterfaces are registered.
14776 Open if necessary.
14777 (grub_net_fini_hw): New function.
14778 (grub_net_restore_hw): Likewise.
14779 (fini_hnd): New variable.
14780 (GRUB_MOD_INIT): Register preboot hook.
14781 (GRUB_MOD_FINI): Run and unregister preboot hook.
14782
14783 Poll network cards when idle.
14784
14785 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
14786 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
14787 * grub-core/net/net.c (receive_packets): Save last poll time.
14788 (grub_net_poll_cards_idle_real): New function.
14789 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
14790 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
14791 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
14792
14793 Rename ofnet interfaces.
14794
14795 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
14796 (grub_ofnet_findcards): Use ofnet_%s names.
14797
14798 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
14799
14800 Cleanup socket opening.
14801
14802 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
14803 (grub_net_fs_close): Likewise.
14804 (grub_net_fs_read_real): Use eof member.
14805 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
14806 (+grub_net_udp_close): New inline function.
14807
14808 * include/grub/net/tftp.h: Moved to the top of ...
14809 * grub-core/net/tftp.c: ... here.
14810 * include/grub/net/ip.h: Moved mostly to the top of ...
14811 * grub-core/net/ip.c: ... here.
14812 * include/grub/net/ethernet.h: Moved mostly to the top of ...
14813 * grub-core/net/ethernet.c: ... here.
14814
14815 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
14816
14817 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
14818 FS name.
14819
14820 * include/grub/net/ip.h (ipv4_ini): Removed.
14821 (ipv4_fini): Likewise.
14822
14823 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
14824 (grub_net_send_ip_packets): Likewise.
14825
cf1337aa
VS
148262011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14827
14828 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
14829 grub_read_cmos prototype.
14830
93c06ff9
VS
148312011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14832
14833 VGA text support in qemu-mips
14834
14835 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
14836 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
14837 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
14838 text.
14839 * grub-core/kern/i386/qemu/init.c: Renamed to ...
14840 * grub-core/kern/vga_init.c: ... this.
14841 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
14842 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
14843 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
14844 Adjust.
14845 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
14846 GRUB_MACHINE_PCI_IO_BASE.
14847
748ccabe
VS
148482011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14849
14850 MIPS qemu flash support.
14851
14852 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
14853 magic.
14854 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
14855 (grub_machine_init): Probe memory if its size isn't known.
14856 * util/grub-mkimage.c (image_targets): Add flash targets.
14857 (generate_image): Handle flash targets.
14858
d7345994
VS
148592011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14860
14861 MIPS qemu at_keyboard support.
14862
14863 * gentpl.py (videoinkernel): Add qemu-mips.
14864 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
14865 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
14866 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
14867 modules.
14868 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
14869 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
14870 * grub-core/term/serial.c (grub_serial_register)
14871 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
14872
a07a81b3
VS
148732011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14874
14875 CMOS support on sparc.
14876
14877 * gentpl.py (cmos): Add powerpc and sparc.
14878 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
14879 powerpc and sparc.
14880 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
14881 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
14882 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
14883 grub_set_datetime_cmos.
14884 * grub-core/lib/ieee1275/cmos.c: New file.
14885 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
14886 (find_rtc): Set no_ieee1275_rtc on error.
14887 (grub_get_datetime): Call grub_get_datetime_cmos on error.
14888 (grub_set_datetime): Call grub_set_datetime_cmos on error.
14889 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
14890 fail. Move value to argument. All users updated
14891 (grub_cmos_write): Likewise.
14892 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
14893 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
14894 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
14895 grub_get_datetime_cmos and grub_set_datetime_cmos.
14896
77546584
GS
148972011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
14898
14899 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
14900 sourcing grub-mkconfig_lib.
14901 * util/update-grub_lib.in: Likewise.
14902 * util/grub.d/00_header.in: Likewise.
14903 * util/grub.d/10_hurd.in: Likewise.
14904 * util/grub.d/10_kfreebsd.in: Likewise.
14905 * util/grub.d/10_linux.in: Likewise.
14906 * util/grub.d/10_netbsd.in: Likewise.
14907 * util/grub.d/10_windows.in: Likewise.
14908 * util/grub.d/20_linux_xen.in: Likewise.
14909 * util/grub.d/30_os-prober.in: Likewise.
14910
54894791
CW
149112011-06-28 Colin Watson <cjwatson@ubuntu.com>
14912
14913 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
14914 default_bg_color rather than black.
14915 (grub_gfxterm_fullscreen): Likewise.
14916 (grub_gfxterm_background_color_cmd): Save new background color in
14917 default_bg_color.
14918
8d5d8444
VS
149192011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14920
14921 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
14922
5afeb5bd
VS
149232011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14924
14925 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
14926 mismerge.
14927
ba7df45e
VS
149282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 Chainloading on coreboot support.
14931
14932 * grub-core/Makefile.core.def (chain): Add coreboot.
14933 * grub-core/loader/i386/coreboot/chainloader.c: New file.
14934
d0b526b2
VS
149352011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14936
14937 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
14938 if it happens.
14939
5ff1d945
VS
149402011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14941
14942 Implement time command.
14943
14944 * grub-core/Makefile.core.def (time): New module.
14945 * grub-core/commands/time.c: New file.
14946 * grub-core/script/parser.y: Remove "time" keyword.
14947 * grub-core/script/yylex.l: Likewise.
14948
5ebaad7e
VS
149492011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14950
14951 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
14952
bdea3798
VS
149532011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14954
14955 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
14956 when handling leftovers.
14957
b28c5655
VS
149582011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14959
14960 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
14961 so that help2man doesn't fail.
14962
b6f945dc
VS
149632011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14964
14965 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
14966 type in pointers on sparc64.
14967 (get_card_packet): Likewise.
14968
f9b75e8a
CW
149692011-06-27 Colin Watson <cjwatson@ubuntu.com>
14970
14971 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
14972 with `*'.
14973 (grub_cmd_videoinfo): Fetch current video mode.
14974
1e3d9b86
VS
149752011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14976
14977 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
14978 because of underlying system restrictions.
14979
efff4b1c
VS
149802011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14981
14982 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
14983 necessary.
14984
9fc9ce37
VS
149852011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14986
14987 Coreboot video support.
14988
14989 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
14990 (vbe): Likewise.
14991 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
14992 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
14993 here ...
14994 * grub-core/kern/i386/int.S: ... here.
14995 * grub-core/video/i386/pc/vbe.c: Updated includes.
14996 * grub-core/video/i386/pc/vga.c: Likewise.
14997 * include/grub/i386/coreboot/memory.h
14998 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
14999 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
15000 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
15001 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
15002 Disable interrupts.
15003 * include/grub/i386/pc/vga.h: Removed. All users updated.
15004
41bec7fe
VS
150052011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15006
15007 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
15008 definitions for dprintf.
15009 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
15010
ca80309d
VS
150112011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15012
15013 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
15014 prototype.
15015 (get_card_packet): Likewise.
15016
9e322ce8
YB
150172011-06-26 Yves Blusseau <blusseau@zetam.org>
15018
15019 Display the path of the file when file is not found
15020
15021 * grub-core/fs/fat.c: Display the filename when file is not found.
15022 * grub-core/fs/fshelp.c: Likewise.
15023 * grub-core/fs/hfs.c: Likewise.
15024 * grub-core/fs/jfs.c: Likewise.
15025 * grub-core/fs/minix.c: Likewise.
15026 * grub-core/fs/ufs.c: Likewise.
15027 * grub-core/fs/btrfs.c: Likewise.
15028 * grub-core/commands/i386/pc/play.c: Likewise.
15029
cbf597af
SJ
150302011-06-26 Szymon Janc <szymon@janc.net.pl>
15031
15032 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
15033 pointer checks before calling grub_free().
15034 * grub-core/commands/wildcard.c (match_devices): Likewise.
15035 * grub-core/commands/wildcard.c (match_files): Likewise.
15036 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
15037 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
15038 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
15039 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
15040 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
15041 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
15042 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
15043 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15044 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
15045
6295b32f
P
150462011-06-25 Patrick <p55@mailinator.com>
15047
15048 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
15049
77c0840b
VS
150502011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
15053 (grub_pxe_send): Likewise.
15054 (GRUB_MOD_INIT): Fix types.
15055
40ea05de
SJ
150562011-06-24 Szymon Janc <szymon@janc.net.pl>
15057
15058 * grub-core/io/xzio.c: Fix code style issues
15059
90162423
MRA
150602011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
150612011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
15062
15063 Network infrastructure.
15064 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
15065
15066 * include/grub/net/arp.h: New file.
90162423
MRA
15067 * include/grub/net/device.h: Likewise.
15068 * include/grub/net/ethernet.h: Likewise.
15069 * include/grub/net/ip.h: Likewise.
15070 * include/grub/net/netbuff.h: Likewise.
15071 * include/grub/net/tftp.h: Likewise.
15072 * include/grub/net/udp.h: Likewise.
15073 * include/grub/ieee1275/ofnet.h: Likewise.
15074 * include/grub/emu/export.h: Likewise.
15075 * include/grub/net.h: Likewise.
15076 * grub-core/net/arp.c: Likewise.
15077 * grub-core/net/ethernet.c: Likewise.
15078 * grub-core/net/ip.c: Likewise.
15079 * grub-core/net/udp.c: Likewise.
15080 * grub-core/net/tftp.c: Likewise.
15081 * grub-core/net/netbuff.c: Likewise.
15082 * grub-core/net/net.c: Likewise.
15083 * grub-core/net/drivers/emu/emunet.c: Likewise.
15084 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
15085 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
15086 export.h.
15087 * grub-core/Makefile.core.def (net): New module.
15088 (tftp): Likewise.
15089 (ofnet): Likewise.
15090 (emunet): Likewise.
15091 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
15092 network protocols.
15093 * grub-core/kern/device.c (grub_net_open) : New variable.
15094 (grub_device_open): Handle network device.
15095 (grub_device_close): Likewise.
15096 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
15097 (grub_grubnet_fini): Likewise.
15098 (grub_file_seek): Seek in network device.
15099 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
15100 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
15101 network root.
15102 (grub_machine_fini): Call grub_grubnet_fini.
15103 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
15104 network.
15105 (grub_ieee1275_get_aliasdevname): New function.
15106 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15107 Add unofficial Solaris network info.
15108 (grub_multiboot_make_mbi): Likewise.
15109 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
15110 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
15111 * include/grub/device.h (grub_fs): Removed.
15112 * include/grub/err.h (grub_err_t): Add network-related values.
15113 * include/grub/i386/pc/pxe.h: Removed bootp parts.
15114 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
15115 (grub_ieee1275_get_aliasdevname): New proto.
15116 * include/grub/net.h: Rewritten.
423a1849 15117
031f22a0
VS
151182011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15119
15120 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
15121 names.
15122
4388ca72
VS
151232011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15124
15125 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
15126 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
15127 it truncates the output.
15128 Reported by: Ximin Luo.
15129
98e2f506
VS
151302011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15131
15132 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
15133
2a5e94d8
VS
151342011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15135
15136 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
15137 partmap before abstraction.
15138
535c1910
AK
151392011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
15140
15141 * util/grub-mkconfig_lib.in: Add missing quotes.
15142
bc09e1a2
VS
151432011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15144
15145 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
15146 old method if mountinfo would return /dev/root and /dev/root doesn't
15147 exist.
15148
290766fb
VS
151492011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15150
15151 ZFS zlib support
15152
15153 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
15154 (decomp_table): Add zlib entries.
15155 (zio_read): USe 8 bits for compression function rather than 3.
15156 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
15157
151582011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15159
15160 * grub-core/disk/ahci.c: Add missing license statements.
15161 * grub-core/fs/romfs.c: Likewise.
15162 * grub-core/lib/ia64/setjmp.S: Likewise.
15163 * grub-core/loader/i386/pc/freedos.c: Likewise.
15164 * grub-core/loader/ia64/efi/linux.c: Likewise.
15165 * grub-core/video/colors.c: Likewise.
15166 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
15167
5ab3f48a
VS
151682011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15169
15170 AHCI support.
15171
15172 * grub-core/Makefile.core.def (ata_pthru): Removed.
15173 (ahci): New module.
15174 (pata): Likewise.
15175 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
15176 on unload.
15177 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
15178 readwrite.
15179 (grub_hdparm_do_check_powermode_cmd): Likewise.
15180 (grub_hdparm_do_smart_cmd): Likewise.
15181 (grub_hdparm_set_val_cmd): Likewise.
15182 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
15183 * grub-core/disk/ahci.c: New file.
15184 * grub-core/disk/ata.c: Factor out the low-level part into ...
15185 * grub-core/disk/pata.c: ... here.
15186 * grub-core/disk/ata_pthru.c: Contents moved to ...
15187 * grub-core/disk/pata.c: ... here.
15188 * grub-core/disk/scsi.c (grub_scsi_names): New array.
15189 (grub_scsi_iterate): Use grub_scsi_names.
15190 (grub_scsi_open): Likewise.
15191 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
15192 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
15193 (grub_ata_regs_t): New struct.
15194 (grub_disk_ata_pass_through_parms): Likewise.
15195 (grub_ata_device): Renamed to ...
15196 (grub_ata): ... this.
15197 (grub_ata_dev): New struct.
15198 Removed all low-level inline functions.
15199 * include/grub/scsi.h: Add PATA and AHCI subsystems.
15200 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
15201 iterate hooks and open. All users updated.
15202 * util/grub-install.in: Handle AHCI disk module.
15203
c31dc5f5
SJ
152042011-06-23 Szymon Janc <szymon@janc.net.pl>
15205
15206 Add support for DRI and RSTn markers in JPEG files.
15207
15208 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
15209 (JPEG_MARKER_RST0): Likewise.
15210 (JPEG_MARKER_RST1): Likewise.
15211 (JPEG_MARKER_RST2): Likewise.
15212 (JPEG_MARKER_RST3): Likewise.
15213 (JPEG_MARKER_RST4): Likewise.
15214 (JPEG_MARKER_RST5): Likewise.
15215 (JPEG_MARKER_RST6): Likewise.
15216 (JPEG_MARKER_RST7): Likewise.
15217 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
15218 (grub_jpeg_decode_dri): New function.
15219 (grub_jpeg_decode_sos): Move image data related part into
15220 grub_jpeg_decode_data function.
15221 (grub_jpeg_decode_data): New function.
15222 (grub_jpeg_reset): New function.
15223 (grub_jpeg_decode_jpeg): Handle new markers.
15224
fe12fd5b
VS
152252011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15226
15227 * util/ieee1275/ofpath.c (check_sas): Close fd.
15228 (main): Free of_path.
15229 Reported by: David Volgyes <dvolgyes>.
15230
03147f46
VS
152312011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15232
15233 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
15234 Reported by: David Volgyes <dvolgyes>.
15235
cad3237f
VS
152362011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15237
15238 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
15239 file after stat.
15240 Reported by: David Volgyes <dvolgyes>.
15241
13548d26
VS
152422011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
15245
15246 Reported by: David Volgyes <dvolgyes>.
15247
e061a1b5
VS
152482011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15249
15250 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
15251 Prevent memory leak.
15252
1abe47dc
VS
152532011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15254
15255 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
15256 (main): Close file.
e061a1b5 15257 Reported by: David Volgyes <dvolgyes>.
1abe47dc 15258
fbc62666
VS
152592011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15260
15261 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
15262 to continue if allocation is failed.
15263
15264 Reported by: David Volgyes <dvolgyes>.
15265
e98c83e9
DV
152662011-06-23 David Volgyes <dvolgyes>
15267
15268 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
15269 dereference.
15270
a199a8cd
VS
152712011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15272
15273 Fix spurious warning.
15274
15275 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
15276 (acorn_partition_map_find): Use .bin member.
15277
e2d1dba0
VS
152782011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15279
15280 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
15281 /dev/root as a valid device.
15282
8a5d6919
JM
152832011-06-23 Jim Meyering <meyering@redhat.com>
15284
e2d1dba0
VS
15285 Avoid NULL deref in grub_device_open.
15286
8a5d6919
JM
15287 * grub-core/kern/device.c (grub_device_open): Don't dereference
15288 a NULL pointer upon failed grub_env_get.
15289
f7db6f4a
VS
152902011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15291
15292 Support non-512B sectors and agglomerate reads.
15293
15294 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
15295 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
15296 (disk_io_guid): Removed.
15297 (make_devices): Locate solely by BlockIO.
15298 (grub_efidisk_open): Fill log_sector_size and total_sectors.
15299 (grub_efidisk_read): Use read_blocks.
15300 (grub_efidisk_write): Use write_blocks.
15301 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
15302 log_sector_size.
15303 (get_safe_sectors): Handle non-512B sectors.
15304 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
15305 sectors.
15306 (grub_biosdisk_write): Handle non-512B sectors.
15307 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
15308 (grub_scsi_read): Remove special non-512B block handling (now handled
15309 one level up).
15310 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
15311 and do sanity checks.
15312 (grub_disk_adjust_range): Handle non-512B sectors.
15313 (transform_sector): New function.
15314 (grub_disk_read_small): Likewise.
15315 (grub_disk_read): Rewritten.
15316 (grub_disk_write): Handle non-512B sectors.
15317 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
15318 log_sector_size.
15319 (open_device): Use log_sector_size.
15320 (grub_util_biosdisk_read): Likewise.
15321 (grub_util_biosdisk_write): Likewise.
15322 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
15323 non-512B sectors.
15324 (pc_partition_map_embed): Likewise.
15325 * include/grub/disk.h (grub_disk): New field log_sector_size.
15326 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
15327 (GRUB_DISK_CACHE_BITS): Increased to 6.
15328 * util/grub-fstest.c (fstest): New command testload.
15329 (argp_parser): Likewise.
15330
881ac815
RM
153312011-06-16 Robert Millan <rmh@gnu.org>
15332
15333 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
15334 `ata' driver on kernel of FreeBSD 9.
15335
15336 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
15337 (get_ataraid_disk_name): New functions.
15338 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
15339 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
15340 get_ataraid_disk_name() and get_ada_disk_name().
15341
1e9aef7d
CW
153422011-06-13 Colin Watson <cjwatson@ubuntu.com>
15343
15344 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
15345 input format.
15346
351c7c8a
CW
153472011-05-29 Colin Watson <cjwatson@ubuntu.com>
15348
15349 * docs/grub.texi (Obtaining and Building GRUB): Substitute
15350 `ftp.gnu.org' for `alpha.gnu.org'.
15351
6b4e6430
CW
153522011-05-27 Colin Watson <cjwatson@ubuntu.com>
15353
15354 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
15355 partitions under /dev/disk/by-id/.
15356
c64db050
CW
153572011-05-27 Colin Watson <cjwatson@ubuntu.com>
15358
15359 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
15360 after ten consecutive open failures. Scanning all the way up to
15361 10000 is excessive and can cause serious performance problems in
15362 some configurations.
15363 Fixes Ubuntu bug #787461.
15364
245f4aba
VS
153652011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15366
15367 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
15368 opening new one.
15369
f767c929
VS
153702011-05-21 Colin Watson <cjwatson@ubuntu.com>
153712011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15372
15373 Don't stat devices unless we have to.
15374
15375 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
15376 dir == /dev/mapper.
15377 (grub_guess_root_device): Use already known os_dev if possible.
15378 * grub-core/kern/emu/hostdisk.c
15379 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
15380 if device is known to be a dm one.
15381
f35fa3a6
CW
153822011-05-20 Colin Watson <cjwatson@ubuntu.com>
15383
15384 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
15385 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
15386 Reported by: Pawel Tecza.
15387
9a79fcf2
VS
153882011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
15389
15390 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
15391 (lsefisystab): Likewise.
15392 (lssal): Likewise.
15393 (lsefimmap): Likewise.
15394 (hdparm): Enable on qemu-mips.
15395 (setjmp): Add ia64 nodist.
15396 (serial): Simplify tags.
15397
63e3eea9
CW
153982011-05-18 Colin Watson <cjwatson@ubuntu.com>
15399
15400 * Makefile.util.def (grub-ofpathname): Install manual page.
15401
09728256
CW
154022011-05-18 Colin Watson <cjwatson@ubuntu.com>
15403
15404 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
15405
8b63a142
CW
154062011-05-18 Colin Watson <cjwatson@ubuntu.com>
15407
15408 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
15409
e775d8ed
VS
154102011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15411
15412 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
15413 into dprintf.
15414
bf947d36
VS
154152011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15416
15417 Use full 64-bit division.
15418
15419 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
15420 (grub_divmod64): ... this.
15421 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
15422 version.
15423
b84f26c5
CW
154242011-05-18 Colin Watson <cjwatson@ubuntu.com>
15425
15426 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
15427 `source'.
15428
5626056f
CW
154292011-05-18 Colin Watson <cjwatson@ubuntu.com>
15430
15431 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
15432 to avoid accidents when debugging with 'sh -x'.
15433 * grub-core/gensyminfo.sh.in: Likewise.
15434 * tests/example_scripted_test.in: Likewise.
15435 * tests/grub_cmd_regexp.in: Likewise.
15436 * tests/grub_script_blanklines.in: Likewise.
15437 * tests/grub_script_dollar.in: Likewise.
15438 * tests/grub_script_expansion.in: Likewise.
15439 * tests/grub_script_final_semicolon.in: Likewise.
15440 * tests/partmap_test.in: Likewise.
15441 * tests/util/grub-shell-tester.in: Likewise.
15442 * tests/util/grub-shell.in: Likewise.
15443
e2965f4a
CW
154442011-05-18 Colin Watson <cjwatson@ubuntu.com>
15445
15446 Move gfxmenu color handling to video, so that gfxterm can use it
15447 too.
15448
15449 * grub-core/gfxmenu/named_colors.c: Move to ...
15450 * grub-core/video/colors.c: ... here. Rename
15451 grub_gui_get_named_color to grub_video_get_named_color.
15452 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
15453 * grub-core/video/colors.c (my_isxdigit): ... here.
15454 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
15455 Move to ...
15456 * grub-core/video/colors.c (parse_hex_color_component): ... here.
15457 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
15458 to ...
15459 * grub-core/video/colors.c (grub_video_parse_color): ... here.
15460
15461 * include/grub/gui.h (grub_gui_color_t): Move to ...
15462 * include/grub/video.h (grub_video_rgba_color_t): ... here.
15463 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
15464 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
15465 * include/grub/gui.h (grub_gui_map_color): Move to ...
15466 * include/grub/video.h (grub_video_map_rgba_color): ... here.
15467 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
15468 to ...
15469 * include/grub/video.h (grub_video_get_named_color): ... here.
15470 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
15471 * include/grub/video.h (grub_video_parse_color): ... here.
15472
15473 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
15474 video/colors.c.
15475 (gfxmenu): Remove gfxmenu/named_colors.c.
15476 (video) [videomodules]: Add video/colors.c.
15477
15478 Add a background_color command.
15479
15480 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
15481 function.
15482 (GRUB_MOD_INIT): Register background_color command.
15483 (GRUB_MOD_FINI): Unregister background_color command.
15484 (redraw_screen_rect): Allow blend/replace of text layer to be
15485 controlled independently from whether there is a background bitmap.
15486 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
15487 changing bitmap.
15488
1e4b4390
VS
154892011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15490
26618ff0
VS
15491 Patch BPB in ntldr and chainloader --bpb.
15492
1e4b4390
VS
15493 * grub-core/fs/fat.c: Include grub/fat.h.
15494 (grub_fat_bpb): Moved to ...
15495 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
15496 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
15497 grub/ntfs.h.
15498 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
15499 Moved from here...
15500 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
15501 here.
15502 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
15503 New function.
15504 (grub_chainloader_cmd): Patch BPB if --bpb is given.
15505 (GRUB_MOD_INIT): Show --bpb.
15506 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
15507 * grub-core/normal/main.c (features): New variable.
15508 (GRUB_MOD_INIT): Set feature_* variables.
15509 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
15510 proto.
15511 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
15512
cf02731e
VS
155132011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15514
15515 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
15516 for cleanness.
15517
e3a1073f
VS
155182011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15519
15520 FreeDOS direct loading support.
15521
15522 * docs/grub.texi (Supported OS): Add FreeDOS.
15523 * grub-core/Makefile.core.def (freedos): New module.
15524 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
15525 variable.
15526 (grub_relocator16_boot): Handle %ebx.
15527 * grub-core/lib/i386/relocator16.S: Likewise.
15528 * grub-core/loader/i386/pc/freedos.c: New file.
15529
05caa461
VS
155302011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15531
15532 Long Linux command line support.
15533
15534 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15535 (maximal_cmdline_size): New variable.
15536 (allocate_pages): Use maximal_cmdline_size.
15537 (grub_cmd_linux): Set and use maximal_cmdline_size.
15538 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15539 (allocate_pages): Use maximal_cmdline_size.
15540 (grub_cmd_linux): Set and use maximal_cmdline_size.
15541 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
15542 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
15543 and cmdline_size.
15544
a2491e23
VS
155452011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
155462011-05-18 Colin Watson <cjwatson@ubuntu.com>
15547
15548 Improve devmapper support
15549
15550 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
15551 (grub_util_is_lvm): New function.
15552 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
15553 than lvm if not dmraid.
15554 Handle mapped md nodes.
15555 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
15556 (grub_util_device_is_mapped): ... this. Make always available. All users
15557 updated.
15558 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
15559 (convert_system_partition_to_system_disk): Handle lvm, mpath and
15560 dmraid nodes.
15561 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
15562
6ad6223e
VS
155632011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15564
15565 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
15566
15567 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
15568 * grub-core/modinfo.sh.in: New file.
15569 * grub-core/Makefile.core.def (modinfo.sh): New script.
15570 * util/grub-mknetdir.in: Use modinfo.sh.
15571 * util/grub-mkrescue.in: Likewise.
15572
543a8f6e
VS
155732011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15574
15575 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15576 Fix potential usage of Elf32 instead of Elf64 when compiling on
15577 32-bit architecture. Add endianness macros while on it.
15578
4959e111
VS
155792011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15580
15581 Use mipsel- rather than mips- in directories involving mipsel ports to
15582 allow both endiannesses coexist.
15583
15584 * configure.ac: proparate target_cpu=mipsel rather than resetting to
15585 mips. All conditions adjusted.
15586 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
15587 variable.
15588 * util/grub-install.in: Adjust conditions to take renaming into account.
15589 * util/grub-mkimage.c (image_targets): Likewise. New target
15590 mips-qemu_mips-elf for bigendian mips.
15591
35341bbc
VS
155922011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15593
15594 Avoid unnecessary copying on MIPS.
15595
15596 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
15597 early if src == dest.
15598 * util/grub-mkimage.c (generate_image): Arange for src == dest if
15599 compression is none.
15600
b772baed
VS
156012011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15602
15603 Reduce memory footprint on SGI by putting modules before the kernel
15604 as opposed to after.
15605
15606 * grub-core/Makefile.core.def (kernel): Increase linking address.
15607 (none_decompress): Likewise.
15608 (xz_decompress): Likewise.
15609 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
15610 address.
15611 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
15612 layout change.
15613 (grub_arch_modules_addr): New function.
15614 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
15615 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
15616 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
15617 here.
15618 * grub-core/kern/mips/startup.S (total_size): Rename to ...
15619 (grub_total_modules_size): ... this. Make global.
15620 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
15621 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
15622 New definition.
15623 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
15624 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
15625 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
15626 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
15627 * util/grub-mkimage.c (image_target_desc): New flag
15628 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
15629 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
15630 (generate_image): Handle images with modules before kernel.
15631
566a1917
VS
156322011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15633
15634 Prevent potential loss of memory map by overwrite on qemu-mips.
15635
15636 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
15637 Save ram size in $s4.
15638 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
15639 All users changed to grub_arch_memsize.
15640 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
15641 Loongson.
15642 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
15643 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
15644 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
15645 external variable.
15646
5d420cd9
CW
156472011-05-17 Colin Watson <cjwatson@ubuntu.com>
15648
15649 * .bzrignore: Remove grub-dumpbios.
15650
d064b830
CW
156512011-05-17 Colin Watson <cjwatson@ubuntu.com>
15652
15653 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
15654 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
15655 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
15656 existing options which append).
15657 * docs/grub.texi (Simple configuration): Document new options.
15658 Reported by: Ian Jackson. Fixes Debian bug #617538.
15659
3ca2b466
CW
156602011-05-17 Colin Watson <cjwatson@ubuntu.com>
15661
15662 * util/grub-fstest.c (cmd_cat): New function.
15663 (fstest): Handle CMD_CAT.
15664 (options): Add cat.
15665 (argp_parser): Handle cat.
15666
24c9143a
CW
156672011-05-17 Colin Watson <cjwatson@ubuntu.com>
15668
15669 * Makefile.util.def (grub-bin2h): Don't install.
15670 * docs/man/grub-bin2h.h2m: Remove.
15671
90f7ac19
VS
156722011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15673
15674 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
15675 place.
15676
8d4a5178
VS
156772011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15678
15679 Reenable qemu-mips port.
15680
15681 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
15682 Fix small arc bug while on it.
15683 * gentpl.py: Handle qemu_mips.
15684 * grub-core/Makefile.am: Likewise.
15685 * grub-core/Makefile.core.def: Likewise.
15686 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
15687 inappropriate includes.
15688 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
15689 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
15690 * grub-core/kern/main.c (grub_modules_get_end)
15691 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
15692 * grub-core/kern/mips/qemu-mips: Moved to ..
15693 * grub-core/kern/mips/qemu_mips: ... this.
15694 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
15695 (grub_machine_init): Call terminfo_init and serial_init.
15696 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
15697 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
15698 New variable.
15699 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
15700 parameter passing.
15701 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
15702 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
15703 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
15704 * include/grub/mips/qemu_mips/cmos.h: New file.
15705 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
15706 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
15707 Removed.
15708 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
15709 Use correct mips-style address.
15710 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
15711 (GRUB_TICKS_PER_SECOND): Removed.
15712 (grub_get_rtc): Likewise.
15713 (grub_cpu_idle): Likewise.
15714 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
15715 New definition.
15716 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
15717 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
15718 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
15719 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
15720 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
15721 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
15722 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
15723 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
15724
400b9371
VS
157252011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15726
15727 SGI ARCS port.
15728
15729 * Makefile.util.def (libgrubmods.a): Add dvh.c.
15730 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
15731 platforms.
15732 * configure.ac: New target mips-arc.
15733 * gentpl.py: Likewise.
15734 * grub-core/Makefile.am: Likewise.
15735 * grub-core/Makefile.core.def: Likewise.
15736 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
15737 (none_decompress): Likewise.
15738 (lsdev): New module.
15739 (datetime): Use lib/arc/datetime.c on ARC.
15740 (part_dvh): New module.
15741 * grub-core/commands/arc/lsdev.c: New file.
15742 * grub-core/disk/arc/arcdisk.c: Likewise.
15743 * grub-core/kern/mips/arc/init.c: Likewise.
15744 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
15745 aligned addresses.
15746 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
15747 support.
15748 (grub_arch_dl_relocate_symbols): Likewise.
15749 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
15750 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
15751 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
15752 platforms.
15753 * grub-core/lib/arc/datetime.c: New file.
15754 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
15755 pci.h on non-loongson.
15756 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
15757 (grub_linux_boot): Set unused registers to 0.
15758 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
15759 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
15760 * grub-core/mmap/mips/uppermem.c: ...here.
15761 * grub-core/partmap/dvh.c: New file.
15762 * grub-core/term/arc/console.c: Likewise.
15763 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
15764 (grub_terminfo_set_current): Add terminal "arc".
15765 (grub_terminfo_readkey): Support ARC sequences.
15766 * include/grub/arc/arc.h: New file.
15767 * include/grub/arc/console.h: Likewise.
15768 * include/grub/disk.h (grub_disk_dev_id): Add
15769 GRUB_DISK_DEVICE_ARCDISK_ID.
15770 * include/grub/mips/arc/kernel.h: New file.
15771 * include/grub/mips/arc/memory.h: Likewise.
15772 * include/grub/mips/arc/time.h: Likewise.
15773 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
15774 * include/grub/mips/kernel.h (grub_halt): ... here.
15775 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
15776 here...
15777 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
15778 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
15779 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
15780 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
15781 proto.
15782 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
15783 from here ...
15784 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
15785 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
15786 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
15787 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
15788 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
15789 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
15790 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
15791 (grub_phys_addr_t): Moved from here ...
15792 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
15793 (grub_vtop): Moved from here ...
15794 * include/grub/mips/memory.h (grub_vtop): ... here.
15795 (grub_map_memory): Moved from here ...
15796 * include/grub/mips/memory.h (grub_map_memory): ... here.
15797 (grub_unmap_memory): Moved from here ...
15798 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
15799 (grub_machine_mmap_iterate): Moved from here ...
15800 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
15801 (grub_mmap_get_lower): Moved from here ...
15802 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
15803 (grub_mmap_get_upper): Moved from here ...
15804 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
15805 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
15806 here ...
15807 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
15808 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
15809 here ...
15810 * include/grub/mips/time.h (grub_get_rtc): ... here.
15811 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
15812 here ...
15813 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
15814 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
15815 here ...
15816 * include/grub/mips/time.h (grub_cpu_idle): ... here.
15817 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
15818 definition.
15819 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
15820 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
15821 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
15822 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
15823 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
15824 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
15825 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
15826 (GRUB_MACHINE_LINK_ADDR): Likewise.
15827 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
15828 to 6.
15829 * util/grub-install.in: Run dvhtool on ARC.
15830 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 15831 (generate_image): Handle ECOFF output for mips-arc.
400b9371 15832
c8ecc840
VS
158332011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15834
15835 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
15836 blocks.
15837
153a4b55
VS
158382011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15839
15840 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
15841 after enabling port.
15842
ff44d107
VS
158432011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15844
15845 Skip incorrect USB devices.
15846
15847 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
15848 configcnt == 0.
15849 * include/grub/usb.h (grub_usb_err_t): New enum value
15850 GRUB_USB_ERR_BADDEVICE.
15851
638dbe4f
VS
158522011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15853
15854 Fuloong video init support.
15855
15856 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
15857 well.
15858 (grub_vga_read_arx): New function.
15859 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
15860 definition.
15861 (framebuffer): New members io, mmioptr and mmiobase.
15862 (read_sis_cmd): New function.
15863 (write_sis_cmd): Likewise.
15864 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
15865 rather than 640x400.
15866 * grub-core/video/sis315_init.c: New file.
15867
c3fc520c
VS
158682011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15869
15870 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
15871 non-loongson.
15872 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
15873 to grub_dl_register_symbol.
15874
67b1e5c9
VS
158752011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15876
15877 Fix compilation errors.
15878
15879 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
15880 potentially unused.
15881 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
15882 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
15883 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
15884 to loongson machines.
15885
b756f75f
VS
158862011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15887
15888 Several FS mtime support.
15889
15890 * grub-core/fs/affs.c (grub_affs_time): New struct.
15891 (grub_affs_file): New field mtime.
15892 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
15893 type. Removed 'size'. New field 'di'. All users updated.
15894 (grub_affs_mount): Simplify checsum checking.
15895 (grub_affs_iterate_dir): New helper grub_affs_create_node.
15896 (grub_affs_dir): Handle mtime.
15897 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
15898 (grub_cpio_dir): Likewise.
15899 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
15900 (grub_hfs_filerec): New field mtime.
15901 (grub_hfs_dir): Handle mtime.
15902 (grub_hfs_mtime): New function.
15903 (grub_hfs_fs): Register grub_hfs_mtime.
15904 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
15905 (grub_iso9660_dir): New field mtime.
15906 (grub_fshelp_node): New field dirent.
15907 (iso9660_to_unixtime): New function.
15908 (iso9660_to_unixtime2): Likewise.
15909 (grub_iso9660_read_symlink): Use node->dirent.
15910 (grub_iso9660_iterate_dir): Likewise.
15911 (grub_iso9660_dir): Set mtime.
15912 (grub_iso9660_mtime): New function.
15913 (grub_iso9660_fs): Register grub_iso9660_mtime.
15914 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
15915 (grub_jfs_inode): New fields atime, ctime and mtime.
15916 (grub_jfs_dir): Set mtime.
15917 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15918 * grub-core/fs/ntfs.c (list_file): Set mtime.
15919 (grub_ntfs_dir): Likewise.
15920 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
15921 (grub_reiserfs_iterate_dir): Set mtime.
15922 (grub_reiserfs_dir): Likewise.
15923 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
15924 (grub_fshelp_node): Likewise.
15925 (grub_sfs_iterate_dir): Set mtime.
15926 (grub_sfs_dir): Likewise.
15927 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
15928 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
15929 (grub_xfs_inode): New fields atime, mtime, ctime.
15930 (grub_xfs_dir): Set mtime.
15931 * include/grub/datetime.h (grub_datetime2unixtime): New function.
15932 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
15933 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
15934
15935 Support UDF symlinks.
15936
15937 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
15938 (grub_ufs_read_symlink): New function. All users updated.
15939
15940 Check amiga partmap checksum.
15941
15942 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
15943 (grub_amiga_partition): Likewise.
15944 (amiga_partition_map_checksum): New function.
15945 (amiga_partition_map_iterate): Check checksum.
15946
5470225d
VS
159472011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15948
15949 ROMFS support.
15950
15951 * Makefile.util.def (libgrubmods.a): Add romfs.
15952 * grub-core/Makefile.core.def (romfs): New module.
15953 * grub-core/fs/romfs.c: New file.
15954
d4680a35
VS
159552011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15956
15957 Squashfs v4 support.
15958
15959 * Makefile.util.def (libgrubmods.a): Add squash4.
15960 * grub-core/Makefile.core.def (squash4): New module.
15961 * grub-core/fs/squash4.c: New file.
15962 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
15963 disk_input_start, disk_input.
15964 (get_byte): Handle disk_input.
15965 (grub_zlib_disk_read): New function.
15966 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
15967
bcb18e74
FZ
159682011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
159692011-05-15 Feiran Zheng <famcool@gmail.com>
15970
15971 * Makefile.util.def (libgrubmods.a): Add minix3.
15972 * grub-core/Makefile.core.def (minix3): New module.
15973 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
15974 (GRUB_MINIX_BSIZE): Removed.
15975 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
15976 (grub_minix_ino_t): New type.
15977 (grub_minix_le_to_cpu_ino): New macro.
15978 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
15979 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
15980 (grub_minix_data): New field block_size.
15981 (grub_minix_read_file): Handle 64-bit correctly.
15982 * grub-core/fs/minix3.c: New file.
15983
32297d5f
TG
159842011-05-15 Tristan Gingold <gingold@free.fr>
159852011-05-15 Robert Millan <rmh.grub@aybabtu.com>
159862011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15987
15988 IA64 support.
15989
15990 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
15991 * configure.ac: Add ia64-efi target.
15992 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
15993 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
15994 * gentpl.py: Add ia64_efi platform.
15995 Rename x86_efi to efi and Add ia64-efi. All users updated.
15996 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
15997 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
15998 Remove kern/generic/rtc_get_time_ms.c on EFI.
15999 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
16000 kern/ia64/dl_helper.c on ia64-efi.
16001 Add kern/emu/cache.c on emu.
16002 (linux): Use on loader/ia64/efi/linux.c on ia64.
16003 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
16004 whether symbol is a function.
16005 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
16006 (grub_symbol): New field 'isfunc'.
16007 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
16008 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
16009 (grub_dl_load_segments): Place all sections into the same region.
16010 [__ia64__]: Create trampolines and got.
16011 [GRUB_MACHINE_EMU]: Call mprotect.
16012 (grub_dl_resolve_symbols): Resolve symbol type as well.
16013 [__ia64__]: Create function descriptors.
16014 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
16015 (grub_rtc_get_time_ms): ... this. Expressions simplified.
16016 (grub_get_rtc): New function.
16017 * grub-core/kern/emu/cache.c [__ia64__]: New file.
16018 * grub-core/kern/emu/cache.S: Renamed to ...
16019 * grub-core/kern/emu/cache_s.S: ... this.
16020 [__ia64__]: Add a nop.
16021 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
16022 [__ia64__]: New function.
16023 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
16024 * grub-core/kern/ia64/dl.c: New file.
16025 * grub-core/kern/ia64/dl_helper.c: Likewise.
16026 * grub-core/kern/ia64/efi/init.c: New file.
16027 * grub-core/kern/ia64/efi/startup.S: Likewise.
16028 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
16029 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
16030 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
16031 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
16032 * grub-core/loader/ia64/efi/linux.c: New file.
16033 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
16034 (GRUB_MOD_DEP): Likewise.
16035 (grub_dl) [__ia64__]: New fields got and tramp.
16036 (grub_dl): New field 'base'.
16037 (grub_dl_register_symbol): New argument isfunc. All users updated.
16038 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
16039 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
16040 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
16041 (grub_ia64_dl_get_tramp_got_size): New proto.
16042 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
16043 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
16044 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
16045 * include/grub/efi/api.h: Skip call wrappers on ia64.
16046 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
16047 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
16048 * include/grub/elf.h (ELF_ST_INFO): New definition.
16049 * include/grub/ia64/efi/kernel.h: New file.
16050 * include/grub/ia64/efi/memory.h: Likewise.
16051 * include/grub/ia64/efi/time.h: Likewise.
16052 * include/grub/ia64/kernel.h: Likewise.
16053 * include/grub/ia64/setjmp.h: Likewise (from glibc).
16054 * include/grub/ia64/time.h: New file.
16055 * include/grub/ia64/types.h: Likewise.
16056 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
16057 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
16058 New protos.
16059 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
16060 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16061 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
16062 * util/grub-mkimage.c (image_target_desc): New field pe_target.
16063 All users updated.
16064 (EFI64_HEADER_SIZE): New definition. All users updated.
16065 (image_targets): Add ia64-efi.
16066 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
16067 jumpers_addr. All users updated.
16068 Create function descriptors.
16069 (count_funcs): New function.
16070 (unaligned_uint32): New struct.
16071 (MASK20): New definition.
16072 (MASK19): Likewise.
16073 (MASKF21): Likewise.
16074 (add_value_to_slot_20b): New function.
16075 (add_value_to_slot_21_real): Likewise.
16076 (add_value_to_slot_21): Likewise.
16077 (ia64_kernel_trampoline): New struct.
16078 (nopm): New variable.
16079 (jump): Likewise.
16080 (make_trampoline): New function.
16081 (relocate_addresses): Handle ia64.
16082 (make_reloc_section): Likewise.
16083 (load_image): Likewise.
16084
983b414d
VS
160852011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16086
16087 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
16088 warning. Move variables before code while on it.
16089
5d063cdc
VS
160902011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16091
16092 Fuloong support.
16093
16094 * configure.ac: Rename yeeloong platform to loongson. All users updated.
16095 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
16096 * grub-core/boot/mips/loongson/fuloong.S: New file.
16097 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
16098 Explicitly init CS5536.
16099 [FULOONG]: Don't use serial until CS5536 is available.
16100 Set GPIO based on dumps.
16101 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
16102 [FULOONG]: Handle GPIO and memory controller differences.
16103 Parse machine type in $a2.
16104 * grub-core/boot/mips/startup_raw.S: Determine and save the
16105 architecture.
16106 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
16107 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
16108 init on architecture type.
16109 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16110 SIS315E. Don't init at_keyboard on fuloong.
16111 (grub_halt): Support Fuloong.
16112 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
16113 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
16114 (loongson_machtypes): New array.
16115 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
16116 type.
16117 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
16118 config. All users updated. Handle CS5536 serial.
16119 * grub-core/term/serial.c (grub_serial_register): Conditionalise
16120 default port on machine type. Register serial as inactive.
16121 * grub-core/video/sis315pro.c: New file.
16122 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
16123 definition.
16124 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
16125 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
16126 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
16127 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
16128 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
16129 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
16130 to ...
16131 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
16132 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
16133 definition.
16134 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
16135 (grub_arch_machine): New extern var.
16136 * include/grub/mips/loongson/serial.h
16137 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
16138 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
16139 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
16140 (GRUB_MACHINE_SERIAL_PORT0): ... this.
16141 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
16142 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
16143 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
16144 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
16145 * include/grub/term.h (grub_term_register_input_inactive): New inline
16146 function.
16147 (grub_term_register_output_inactive): Likewise.
16148 * include/grub/video.h (grub_video_driver_id): New value
16149 GRUB_VIDEO_DRIVER_SIS315PRO.
16150 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
16151 New field "names". All users updated.
16152 New field value IMAGE_FULOONG_FLASH.
16153 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
16154
6ada82d1
JU
161552011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
16156
16157 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
16158 and add some clarification.
16159
90c571a4
VS
161602011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16161
16162 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
16163 platforms if kernel is compressed.
16164
de04eecf
VS
161652011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16166
16167 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
16168 unused modules since currently referrence counter isn't reliable and
16169 there isn't much memory to recover there anyway.
16170
57688121
VS
161712011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16172
16173 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
16174 rather than resetting it to allow modules to reference themselves
16175 in init.
16176
3d2c7e35
VS
161772011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16178
16179 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
16180 counter on dependencies since grub_dl_unref already handles this.
16181
b25db218
VS
161822011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16183
16184 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
16185 on error if not already done.
16186
25a45338
VS
161872011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16188
16189 Fix few potential memory misusage.
16190
16191 * grub-core/font/font.c (load_font_index): Don't free char_index to
16192 avoid double free.
b25db218
VS
16193 (grub_font_load): Zero-fill font at alloc for safety.
16194 Close file on error.
16195 (free_font): Free bmp_idx.
25a45338 16196
0cac83df
VS
161972011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16198
16199 * docs/grub.texi (Installation): Fix several outdated claims.
16200
2217a143
VS
162012011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16202
16203 Handle module_license on windows.
16204
16205 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
16206 sections shifted.
16207 (insert_string): Make argument const char * instead of char *.
16208 (write_section_data): Handle long section names.
16209 Handle module_license.
16210
d4de6b01
VS
162112011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16212
16213 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
16214 handle class-free menuentries.
16215 (grub_normal_add_menu_entry): Add a check to be sure.
16216
4c2a3b43
VS
162172011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16218
16219 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
16220 PgUp and PgDown.
16221
85c6210f
VS
162222011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16223
16224 * configure.ac: Bump version to 1.99.
16225
36084912
VS
162262011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16227
16228 Give ATA device a bit more time on first try in order to allow disks
16229 to spin up.
16230
16231 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
16232 if dev->present is 1. Reset dev->present on failure.
16233 (grub_ata_device_initialize): Set dev->present to 1.
16234 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
16235 (grub_ata_device): New member 'present'.
16236
bda0e219
VS
162372011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16238
16239 * util/grub-mkimage.c (generate_image): Update hash.
16240
19e1c41b
VS
162412011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16242
16243 Flush caches on DMA memory.
16244
16245 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
16246 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
16247 (grub_dma_free): Likewise.
16248 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
16249
91bbcc0c
VS
162502011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16251
16252 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
16253 to avoid asm treating ld and sd as macros.
16254
60ddfad3
VS
162552011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16256
16257 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
16258 decompressor.
16259
a298aa04
VS
162602011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16261
16262 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
16263 grub_decompress_core since later would fail if grub_decompress_core
16264 is too far.
16265
9b44feca
VS
162662011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16267
16268 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
16269 R_MIPS_JALR since it's used by newer compiler.
16270
56dbe7b4
VS
162712011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
16272
16273 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
16274
52856af2
VS
162752011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16276
16277 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
16278 file_path to 0 for surety.
16279 (grub_chainloader_boot): Set exit_data to NULL.
16280 Unset the loader once done.
16281 (grub_cmd_chainloader): Fix confusing error message if file is empty.
16282
9c9bfc6d
VS
162832011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16284
16285 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
16286 unknown key into a dprintf.
16287
dd94a3df
VS
162882011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16289
16290 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
16291 on first non-existant partition.
16292
fa68d99c
VS
162932011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16294
16295 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
16296 openning fails.
16297 Reported by: Mark Korenberg.
16298
157effb7
VS
162992011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16300
16301 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
16302 overflow.
16303
ea75312f
VS
163042011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16305
16306 * util/grub-mkimage.c (main): Explicitely flush and sync the output
16307 before closing to ensure that it will be readable by grub-setup.
16308
072b5d31
VS
163092011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16310
16311 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
16312 (devpath_1): Use MAKE_PIWG_PATH.
16313 (devpath_2): Likewise.
16314 (devpath_3): Likewise.
16315 (devpath_4): Likewise.
16316 (devpath_5): Likewise.
16317 (devpath_6): Likewise.
16318
16319 The appleldr.mod was checked that to be binary identical to previous
16320 version.
16321
7fae0051
Z
163222011-05-05 Zach <mikezackles>
16323
16324 Support 2010 Macbooks.
16325
16326 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
16327 (devs): Add devpath_6.
16328
7c515bee
VS
163292011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16330
16331 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
16332 /dev/random. /dev/urandom is good enough for our purposes (salting).
16333
ed660bd8
VS
163342011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16335
16336 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
16337
ee5614b7
VS
163382011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16339
16340 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
16341 hexadecimal.
16342
664889a6
VS
163432011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16344
16345 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
16346 and not 0 on failure.
16347
bd405bbc
CW
163482011-05-03 Colin Watson <cjwatson@ubuntu.com>
16349
16350 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
16351 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
16352 disk; otherwise grub_fs_probe will not fall back to the next
16353 filesystem.
16354 (grub_pxefs_open): Likewise, for consistency.
16355 Reported and tested by: Ezekiel Grave.
16356
4ebff753
CW
163572011-05-03 Colin Watson <cjwatson@ubuntu.com>
16358
16359 * tests/partmap_test.in: Don't hardcode path to parted.
16360 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
16361
8f942553
CW
163622011-05-01 Colin Watson <cjwatson@ubuntu.com>
16363
16364 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
16365 of `ls' to find out which devices are available.
16366
3c62402d
VS
163672011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16368
16369 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
16370 than source address for efi mmap buffer.
16371
723f63f2
VS
163722011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16373
16374 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
16375 wrong action on non-detecting the magic.
16376
68797f92
VS
163772011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16378
16379 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
16380 already supplied by another part of the module (fixes compilation on
16381 FreeBSD).
16382
6be8715d
VS
163832011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16384
16385 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
16386 match the one used by mdadm.
16387
e91dba5b
CW
163882011-04-21 Colin Watson <cjwatson@ubuntu.com>
16389
16390 * po/README: Add instructions for creating po/LINGUAS.
16391
c85140b3
CW
163922011-04-21 Colin Watson <cjwatson@ubuntu.com>
16393
16394 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
16395 #551428.
16396
16397 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
16398 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
16399 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
16400 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
16401 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
16402 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
16403 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
16404 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
16405 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
16406 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
16407 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
16408 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
16409 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
16410 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
16411 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
16412 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
16413 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
16414 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
16415 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
16416 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
16417 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
16418 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
16419
92051871
CW
164202011-04-21 Colin Watson <cjwatson@ubuntu.com>
16421
16422 * grub-core/kern/emu/getroot.c
16423 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
16424 test that was incorrectly reintroduced in r3214.
16425 Reported by: Ian Dall. Fixes Savannah bug #33133.
16426
b13f79a4
CW
164272011-04-21 Colin Watson <cjwatson@ubuntu.com>
16428
16429 Fix stack pointer handling in 16-bit relocator.
16430
16431 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
16432 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
16433 Fixes Ubuntu bug #683904.
16434
9b710a88
VS
164352011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16436
16437 * configure.ac: Bump version to 1.99~rc2.
16438
d97e7b59
VS
164392011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16440
16441 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
16442 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
16443 * grub-core/lib/x86_64/setjmp.S: Likewise.
16444 * grub-core/lib/mips/setjmp.S: Likewise.
16445 * grub-core/lib/powerpc/setjmp.S: Likewise.
16446 * grub-core/lib/sparc64/setjmp.S: Likewise.
16447
0624551c
VS
164482011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16449
16450 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
16451 * grub-core/lib/efi/datetime.c: Likewise.
16452
e8f28d4c
VS
164532011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16454
16455 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
16456 New function.
16457 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
16458 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
16459 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
16460
bba79a15
VS
164612011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16462
16463 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
16464 bitmap.
16465 (grub_gfxterm_term_init): Likewise.
16466
abc474ef
VS
164672011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16468
16469 Take into account the decorations the computing menu entry width.
16470
16471 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
16472 (grub_gfxmenu_create_box): Register get_border_width.
16473 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
16474 if available.
16475 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
16476 get_border_width.
16477
e74b3947
EP
164782011-04-18 Endres Puschner <code@e7p.de>
16479
16480 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
16481 Don't skip first class.
16482
34faa595
VS
164832011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16484
16485 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
16486 chunks.
16487 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
16488
93a777e3
VS
164892011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16490
16491 Complete 64-bit division support.
16492
16493 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
16494 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
16495 * include/grub/misc.h (grub_divmod64): Rename to ...
16496 (grub_divmod64_full): ... this.
16497 (grub_divmod64): New inline function.
16498
a5102d94
VS
164992011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16500
16501 * util/grub-mkimage.c (generate_image): Add forgotten comma.
16502
f3fb7b36
VS
165032011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16504
16505 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
16506 performing the necessary test.
16507
9ac718b0
VS
165082011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16509
16510 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
16511 (kfreebsd.elf): Likewise.
16512 (pc-chainloader.elf): Likewise.
16513 (ntldr.elf): Likewise.
16514
50d2cc5a
VS
165152011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16516
16517 Identify RAID by its UUID rather than (guessed) name.
16518
16519 * grub-core/disk/raid.c (ascii2hex): New function.
16520 (grub_raid_open): Accept mduuid/%s specification.
16521 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
16522 (get_mdadm_uuid): ... this.
16523 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
16524
e03f7bea
VS
165252011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
16526
16527 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
16528 to negative size.
16529
e74c3112
CW
165302011-04-13 Colin Watson <cjwatson@ubuntu.com>
16531
16532 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
16533 btrfs subvolume.
16534 * util/grub.d/20_linux_xen.in: Likewise.
16535
78fa584f
CW
165362011-04-13 Colin Watson <cjwatson@ubuntu.com>
16537
16538 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
16539 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
16540
16541 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16542 Build a list of relevant visible mounts using the mnt_id and
16543 parent_mnt_id fields, and then scan that list at the end.
16544
9d5f8162
CW
165452011-04-12 Colin Watson <cjwatson@ubuntu.com>
16546
16547 * docs/grub.texi (normal): New section.
16548 (normal_exit): New section.
16549 (Embedded configuration): Add reference to normal.
16550 (GRUB only offers a rescue shell): Likewise.
16551 * docs/grub-dev.texi (Error Handling): Fix typo.
16552
09a9d66f
CW
165532011-04-12 Colin Watson <cjwatson@ubuntu.com>
16554
16555 * NEWS: Drop obsolete entry about probe-only btrfs support.
16556
0c676933
CW
165572011-04-12 Colin Watson <cjwatson@ubuntu.com>
16558
16559 * util/import_gcry.py: Fix typo.
16560
ec9f5e0d
VS
165612011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16562
16563 * NEWS: Add btrfs support.
16564
fe6b2cba
VS
165652011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
165662011-04-11 Colin Watson <cjwatson@ubuntu.com>
16567
16568 BtrFS support. Written by me (Vladimir) with important bugfixes and
16569 even more important testing by Colin.
16570
16571 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
16572 * grub-core/Makefile.core.def (btrfs): Add crc.c.
16573 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
16574 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
16575 mem_input_off and mem_input. All users updated to accept in-RAM input.
16576 (gzio_seek): New function.
16577 (test_zlib_header): Likewise.
16578 (grub_gzio_read): Likewise.
16579 (grub_zlib_decompress): Likewise.
16580 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
16581 Accept partial and non-virtual mounts.
16582 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
16583 avoid receiving /dev/dm-X as device.
16584 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
16585 Handle bind and partial mounts.
16586 * grub-core/lib/crc.c: New file.
16587 * include/grub/deflate.h: Likewise.
16588 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
16589 proto.
16590 * include/grub/lib/crc.h: New file.
16591
e745cf0c
VS
165922011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16593
16594 Implement automatic module license checking according to new GNU
16595 guidelines.
16596
16597 * grub-core/kern/dl.c (grub_dl_check_license): New function.
16598 (grub_dl_load_core): Use grub_dl_check_license.
16599 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
16600 (GRUB_MOD_LICENSE): Likewise.
16601 (GRUB_MOD_DUAL_LICENSE): Likewise.
16602 All modules updated.
16603
2a9bc016
CW
166042011-04-11 Colin Watson <cjwatson@ubuntu.com>
16605
16606 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
16607 reserved_first_sector to 1. btrfs reserves plenty of space for boot
16608 loaders.
16609 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
16610
8a3bc88e
VS
166112011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16612
16613 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
16614
af869a4a
VS
166152011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16616
16617 * util/grub-fstest.c (read_file): Report GRUB error if file opening
16618 failed.
16619
9ee8d94f
VS
166202011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16621
16622 * grub-core/kern/file.c (grub_file_open): Don't take into account the
16623 parenthesis in the middle of the filename.
16624
b01abe3e
VS
166252011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16626
16627 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
16628 rather than trying to put initrd way too high.
16629 Reported by: Ryan Lortie <desrt@desrt.ca>
16630
335bda1e
VS
166312011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16632
16633 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
16634 improperly removed string.
16635
5ca1a64d
VS
166362011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16637
16638 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
16639 is_disk.
16640 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
16641 (open_device) Likewise.
16642 (grub_util_biosdisk_close): Likewise.
d8ce9995 16643 Reported by: Mark Korenberg.
5ca1a64d 16644
cbac5b1e
AK
166452011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
16646
16647 * util/grub-mkconfig_lib.in: Add missing quotes.
16648
088cdb65
CW
166492011-04-10 Colin Watson <cjwatson@ubuntu.com>
16650
16651 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
16652 is NULL.
16653
8b8a81fa
VS
166542011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16655
16656 Dynamically count the number of lines for the lower banner.
16657
16658 * grub-core/normal/menu_entry.c (per_term_screen): New member
16659 num_entries.
16660 (print_down): Use num_entries.
16661 (update_screen): Likewise.
16662 (grub_menu_entry_run): Set num_entries.
16663 * grub-core/normal/menu_text.c (menu_viewer_data): New member
16664 num_entries.
16665 (grub_print_message_indented): Move real part to ...
16666 (grub_print_message_indented_real): ... here. Additional argument
16667 dry_run.
16668 (draw_border): Additional argument num_entries.
16669 (print_message): Additional argument dry_run.
16670 (print_entries): Receive menu viewer data.
16671 (grub_menu_init_page): New argment num_entries.
16672 (menu_text_set_chosen_entry): Use num_entries.
16673 (grub_menu_try_text): Likewise.
16674 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
16675 All users updated.
16676 (grub_ucs4_count_lines): New function.
16677 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
16678 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
16679 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
16680 (grub_term_border_height): Likewise.
16681 (grub_term_num_entries): Likewise.
16682
277f955b
VS
166832011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16684
16685 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
16686 Remove now unused string.
16687
536ce85a
CW
166882011-04-09 Colin Watson <cjwatson@ubuntu.com>
16689
16690 * docs/grub-dev.texi (Finding your way around): Update for 1.99
16691 build system.
16692 (Getting started): GRUB is developed in Bazaar now, not Subversion.
16693
16694 (Comment): Fix typo.
16695 (Getting started): General copy-editing.
16696 (Typical Development Experience): Likewise.
16697 (Error Handling): Likewise.
16698 (Video API): Likewise.
16699
2cf09e32
CW
167002011-04-09 Colin Watson <cjwatson@ubuntu.com>
16701
16702 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
16703 throughout.
16704
1ec652f4
VS
167052011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16706
16707 * util/grub-mkimage.c (main): Handle special naming of yeeloong
16708 directory.
16709
2c583728
CW
167102011-04-08 Colin Watson <cjwatson@ubuntu.com>
16711
16712 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
16713 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
16714 "development".
16715
d7a565e9
VS
167162011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16717
16718 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
16719 grub_strcpy since the lines aren't necessarily 0-terminated.
16720
7c2e4909
VS
167212011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16722
16723 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
16724 root on legacy.
16725
34c09785
VS
167262011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16727
16728 * grub-core/commands/probe.c (options): Argument to set isn't optional.
16729 (GRUB_MOD_INIT): DEVICE isn't optional.
16730
6a6f8058
VS
167312011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16732
16733 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
16734 word on new line if it's too long anyway. Fixes a hang.
16735
2e335e90
VS
167362011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16737
16738 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
16739 const.
16740 * util/grub-setup.c (main): Reuse md device name if available.
16741 * util/raid.c (grub_util_raid_getmembers): Receive device name and
16742 not GRUB name as argument.
16743 Based on patch by: Florian Wagner <fwagner>.
16744
10a7a867
VS
167452011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16748 Place mbi on low memory for better compatibility.
16749
7a3d6cd9
VS
167502011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16751
16752 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
16753
18dd6b47
VS
167542011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
167552011-04-08 Colin Watson <cjwatson@ubuntu.com>
16756
16757 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 16758 * conf/Makefile.common: Likewise.
18dd6b47 16759
3c0e3f14
VS
167602011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16761
f7148863
VS
16762 * grub-core/normal/menu.c: Add missing include.
16763
167642011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16765
16766 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 16767
6d1fa41f
MZ
167682011-04-08 Martin Zuther <mzuther@mzuther.de>
16769
16770 * util/grub-mkconfig.in: Ignore emacsen backup.
16771
478182a8
VS
167722011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16773
16774 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
16775 on open.
16776 (grub_util_biosdisk_close): Likewise.
16777
72a89a54
VS
167782011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16779
16780 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
16781 const attribute and use grub_isdigit.
16782
b5ebecfa
A
167832011-04-06 Andrey <dev_null@ukr.net>
16784
16785 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
16786 gcc warning.
16787
7755f66e
VS
167882011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16789
16790 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
16791 useful grub_dprintf's.
16792
461121ff
VS
167932011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16794
16795 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
16796
2a961775
VS
167972011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16798
16799 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
16800
adf594cc
VS
168012011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16802
16803 Output errors if theme loading failed.
16804
16805 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
16806 grub_gfxterm_fullscreen on error paths to ...
16807 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
16808 theme loading error.
16809
665900a3
VS
168102011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16811
16812 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
16813 space for older compilers.
16814 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16815
a562b479
VS
168162011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16817
16818 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
16819 and report them as not RAID members since they are useless for GRUB.
16820 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16821
850e9373
VS
168222011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16823
16824 Increase LVM implementation robustness in order not to crash on
16825 configurations like pvmove. Previously code assumed that in some places
16826 only lvs or only pvs are used whereas it seems that they are used
16827 interchangeably.
16828
16829 * grub-core/disk/lvm.c (read_node): New function.
16830 (read_lv): Use read_node.
16831 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
16832 Match volumes only at the end when all lvs are found. Take both
16833 pvs (first) and lvs (second) into account.
16834 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
16835 mirror_* into node_*. All users updated.
16836 (grub_lvm_stripe): Merge this ...
16837 (grub_lvm_mirror): ... and this ...
16838 (grub_lvm_node): ... into this. All users updated.
16839
6f332153
VS
168402011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16841
16842 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
16843 of function to allow further scanning for LVMs.
16844
829ea451
VS
168452011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
16848 on failed seek as it breaks open fd reusage.
16849
09ceb9a5
VS
168502011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16851
16852 * util/grub-install.in: Add a recommendation to use --recheck before
16853 reporting bugs.
16854
67e11623
VS
168552011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
16858 are obtained.
16859
caee5efd
VS
168602011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16861
16862 GRUB developper manual based on existing Internals section and
16863 contributions by the various authors with active copyright assignment.
16864
16865 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
16866 * docs/font_char_metrics.png: New file.
16867 * docs/font_char_metrics.txt: Likewise.
16868 * docs/grub-dev.texi: Likewise.
16869 * docs/grub.texi (Internals): Move from here ...
16870 * docs/grub-dev.texi: ... here.
16871
2cccc747
CW
168722011-04-01 Colin Watson <cjwatson@ubuntu.com>
16873
16874 Store the loopback device as data on loopback grub_disk structures,
16875 rather than the file it points to. This fixes use of freed memory
16876 if an existing loopback device is replaced.
16877
16878 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
16879 disk->data, not dev->file.
16880 (grub_loopback_read): Adjust file assignment to match.
16881 Fixes Ubuntu bug #742967.
16882
186ae367
CW
168832011-04-01 Colin Watson <cjwatson@ubuntu.com>
16884
16885 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
16886 when replacing an existing device.
16887
cfed2ad0
VS
168882011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
16889
16890 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
16891 memory corruptions.
16892
16893 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
16894 unsigned.
16895 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
16896 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
16897 (grub_jfs_read_inode): Likewise.
16898 (grub_jfs_opendir): Likewise. Remove now useless casts.
16899 (grub_jfs_getent): Likewise.
16900 Make ino a grub_uint32_t rather than int.
16901 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
16902 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
16903 division and module with bit operations.
16904 (grub_jfs_find_file): Make ino a grub_uint32_t.
16905 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
16906
05d2ed32
CW
169072011-04-01 Colin Watson <cjwatson@ubuntu.com>
16908
16909 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
16910 warning. (This was in fact always initialised before use, but GCC
16911 wasn't smart enough to prove that.)
16912 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
16913
91dc6073
VS
169142011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
16915
16916 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
16917 stack alignment.
16918 (efi_wrap_1): Likewise.
16919 (efi_wrap_2): Likewise.
16920 (efi_wrap_3): Likewise.
16921 (efi_wrap_4): Likewise.
16922 (efi_wrap_5): Likewise.
16923 (efi_wrap_6): Likewise.
16924 (efi_wrap_10): Likewise.
16925 Based on information by: Red Hat/Peter Jones.
16926
a8afc1d1
CW
169272011-03-31 Colin Watson <cjwatson@ubuntu.com>
16928
16929 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
16930 set-but-not-used variable.
16931
a826cc7d
CW
169322011-03-31 Colin Watson <cjwatson@ubuntu.com>
16933
16934 * docs/grub.texi (Simple configuration): Be more explicit about
16935 GRUB_DEFAULT, and add an example.
16936 Reported by: Leslie Rhorer.
16937
875b67ba
CW
169382011-03-30 Colin Watson <cjwatson@ubuntu.com>
16939
16940 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
16941 shell".
16942
fd7cd914
AS
169432011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
16944
16945 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
16946 * util/grub.d/20_linux_xen.in: Likewise.
16947
090b1b6a
VS
169482011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16949
16950 * util/grub.d/10_linux.in: Try alternative config filenames where
16951 we parse config file.
16952 * util/grub.d/20_linux_xen.in: Likewise.
16953
baad885c
AS
169542011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
16955
16956 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
16957 * util/grub.d/20_linux_xen.in: Likewise.
16958
241e41f5
VS
169592011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16960
16961 * grub-core/disk/raid.c (insert_array): Add few potentially
16962 useful grub_util_info.
16963 (grub_raid_register): Likewise.
16964
56445fb2
VS
169652011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16966
16967 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
16968 Preserve partition number in mdadm code path.
16969
c871b1c6
VS
169702011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16971
16972 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
16973 few potentially useful grub_util_info.
16974
5e631b4f
CW
169752011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16976
16977 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
16978
2d5d0333
CW
169792011-03-30 Colin Watson <cjwatson@ubuntu.com>
16980
16981 * docs/grub.texi (default): Use @example rather than nested
16982 itemized lists to avoid breaking gendocs.
16983
3d7ed04e
CW
169842011-03-30 Colin Watson <cjwatson@ubuntu.com>
16985
16986 * docs/grub.texi (Future): Update.
16987
abf04200 169882011-03-30 Colin Watson <cjwatson@ubuntu.com>
16989
16990 * docs/grub.texi (Environment): New chapter.
16991 (Changes from GRUB Legacy): Link to "Environment block" section for
16992 details of limitations.
16993 (Simple configuration): Likewise. Link to documentation of gfxmode
16994 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
16995 respectively.
16996 (Shell-like scripting): Note that normal variables are stored in the
16997 environment.
16998 (gettext): Link to documentation of lang and locale_dir.
16999 (list_env): New section.
17000 (load_env): New section.
17001 (save_env): New section.
17002
17003 (Reporting bugs): Fix typo.
17004
e1ad0edd
VS
170052011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17006
17007 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
17008 the example.
17009
5d803174
VS
170102011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17011
17012 * grub-core/term/at_keyboard.c (set_scancodes)
17013 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
17014
2a2da1d0
CW
170152011-03-30 Colin Watson <cjwatson@ubuntu.com>
17016
17017 * docs/grub.texi (Menu-specific commands): Remove some semantics
17018 that were true in GRUB Legacy but not in GRUB 2.
17019 (submenu): New section.
17020 (false): New section.
17021 (read): New section.
17022 (true): New section.
17023
a7527639
CW
170242011-03-30 Colin Watson <cjwatson@ubuntu.com>
17025
17026 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
17027
170282011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
17029
17030 * docs/grub.texi (Simple configuration): Explain some of the
17031 current limitations of grub-mkconfig.
8a748df2 17032 Reported by: Leslie Rhorer.
e30af029 17033
fc858482
VS
170342011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17035
17036 Old macs search for boot.efi rather than for bootia32.efi.
17037
17038 * util/grub-install.in: Copy bootia32.efi to boot.efi.
17039 * util/grub-mkrescue.in: Likewise.
17040 Suggested by: Peter Jones.
17041
e1eb511d
VS
170422011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
17045
70e75364
VS
170462011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17047
17048 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
17049 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
17050 (grub_lvm_mirror): New struct.
17051 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
17052 (grub_lvm_iterate): Iterate only visible volumes.
17053 (grub_lvm_read): Factor out to ..
17054 (read_lv): ... this. Support mirrors.
17055 (grub_lvm_read): New wrapper function.
17056 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
17057 stripped or mirrored.
17058
fc18f6a3
VS
170592011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17060
17061 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
17062
5c650f4c
CW
170632011-03-29 Colin Watson <cjwatson@ubuntu.com>
17064
17065 * docs/grub.texi (loopback): New section.
17066
61d7156b
CW
170672011-03-29 Colin Watson <cjwatson@ubuntu.com>
17068
17069 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
17070 removed -p option.
17071
994b8264
CW
170722011-03-29 Colin Watson <cjwatson@ubuntu.com>
17073
17074 * docs/grub.texi (BIOS installation): New section, partly based on
17075 previous text in other sections.
17076 (Installing GRUB using grub-install): Replace BIOS discussion with a
17077 cross-reference.
17078 (Images): Likewise.
17079
9e4d19e0
VS
170802011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17081
17082 * grub-core/kern/emu/hostdisk.c (find_partition_start)
17083 [HAVE_DIOCGDINFO]: Add safety checks.
17084
a307c0b2
VS
170852011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17086
17087 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
17088 per default compiled in kernel and prior to 8.0 isn't shipped at all.
17089
b4db4f39
CW
170902011-03-29 Colin Watson <cjwatson@ubuntu.com>
17091
17092 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
17093 real_sb->size is zero (e.g. RAID-0), get the disk size from
17094 real_sb->data_size instead.
17095 Fixes Ubuntu bug #743136.
17096
35e5f84c
VS
170972011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17098
17099 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
17100 printf clauses for printing size and start.
17101
d2e29d81
VS
171022011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17103
17104 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
17105 Reported and tested by: Timothy Nikkel.
17106
ed5587af
VS
171072011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17108
17109 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
17110 (dirty_region_add_real): ... this.
17111 (dirty_region_add): Don't discard margin refresh when performing
17112 scheduled repaint.
17113
a1dc717c
VS
171142011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17115
17116 * grub-core/lib/relocator.c (allocate_regstart)
17117 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
17118 terminals are capabple of malloc-free operation.
17119 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17120 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17121
9f3677d3
VS
171222011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
17123
17124 * util/grub-setup.c: Copy the partition table zone if floppy support
17125 is disabled, even if no partition table is found.
17126
17127 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
17128 during POST if an invalid partition table is contained in the PBR
17129 of the active partition when GRUB is installed to a partition.
17130
24148725
CW
171312011-03-28 Colin Watson <cjwatson@debian.org>
17132
17133 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
17134 comment.
17135
f329eda7
CW
171362011-03-28 Colin Watson <cjwatson@debian.org>
17137
17138 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
17139 to be specific about what kind of RAID device we're scanning for.
17140
c482ad98
SG
171412011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
17142
17143 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
17144 return freed string.
17145
5ee04984
VS
171462011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17147
17148 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
17149
f4727da9
VS
171502011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17151
17152 Use libgeom on FreeBSD to detect partitions.
17153
17154 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
17155 (grub-mkrelpath): Likewise.
17156 (grub-script-check): Likewise.
17157 (grub-editenv): Likewise.
17158 (grub-mkpasswd-pbkdf2): Likewise.
17159 (grub-fstest): Likewise.
17160 (grub-mkfont): Likewise.
17161 (grub-mkdevicemap): Likewise.
17162 (grub-probe): Likewise.
17163 (grub-setup): Likewise.
17164 (grub-ofpathname): Likewise.
17165 (grub-mklayout): Likewise.
17166 (example_unit_test): Likewise.
17167 (grub-menulst2cfg): Likewise.
17168 * grub-core/Makefile.core.def (grub-emu): Likewise.
17169 (grub-emu-lite): Likewise.
17170 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
17171 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
17172 define HAVE_DIOCGDINFO.
17173 (follow_geom_up) [FreeBSD]: New function.
17174 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
17175 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
17176 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
17177 unconditionally of HAVE_DIOCGDINFO.
17178
82fe6c75
VS
171792011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17180
17181 Fix FreeBSD compilation problem.
17182
17183 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
17184 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
17185
4c6c9431
CW
171862011-03-24 Colin Watson <cjwatson@ubuntu.com>
17187
17188 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
17189 Switch back to page zero before loading a kernel, since some kernel
17190 drivers expect that.
17191 Thanks to: Felix Kuehling.
17192
c7064d94
VS
171932011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17194
17195 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
17196 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
17197 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
17198
3f71cded
VS
171992011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17200
17201 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
17202 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
17203
ef6de21a
VS
172042011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17205
17206 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
17207 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
17208 malloc is disabled.
17209
8bc66a2c
VS
172102011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17211
17212 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
17213 for modules headers when counting the needed allocation size.
17214
5657722c
VS
172152011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17216
17217 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
17218 if no ASCII character is found to prevent crash.
17219
41a85f55
AK
172202011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
17221
17222 * grub-core/video/bitmap.c (match_extension): Ignore case.
17223
59e1e5f1
VS
172242011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17225
17226 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
17227
bd4d051a
VS
172282011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17229
17230 * grub-core/script/parser.y: Declare "time" as valid argument.
17231
bae7fcc1
PJ
172322011-03-23 Peter Jones <pjones@redhat.com>
17233
17234 Fix incorrect assert failure reporting.
17235
17236 * grub-core/tests/example_functional_test.c (example_test): Add
17237 a failure comment.
17238 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
17239 (failure_start): ...this. Check that malloc succeeded.
17240 Don't call xvasprintf. Return failure struct.
17241 (failure_append_vtext): New function.
17242 (failure_append_text): Likewise.
17243 (add_failure): Likewise.
17244 (grub_test_assert_helper): Likewise.
17245 * include/grub/test.h (grub_test_assert_helper): New declaration.
17246 (grub_test_assert): Macro rewritten.
17247
537dc9be
VS
172482011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17249
17250 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
17251
fa3e01bf
VS
172522011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17253
17254 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
17255
b1d28404
VS
172562011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17257
17258 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
17259 into GRUB-style one.
17260
2e3e2e09
VS
172612011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17262
17263 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
17264 error and not grub_errno.
17265 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
17266
ed57e557
VS
172672011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17268
17269 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
17270 GRUB_USB_SPEED_NONE in case of failure and not the error code.
17271
d1611f01
VS
172722011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17273
17274 * grub-core/efiemu/i386/pc/cfgtables.c
17275 (grub_machine_efiemu_init_tables): Make declaration a prototype.
17276 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
17277 (grub_xnu_unlock): Likewise.
17278 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
17279
7d4e39d6
VS
172802011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17281
17282 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
17283 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
17284 * grub-core/commands/hashsum.c (aliases): Likewise.
17285 * grub-core/commands/setpci.c (pci_registers): Likewise.
17286 * grub-core/disk/usbms.c (attach_hook): Likewise.
17287 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
17288 (zio_checksum_table): Likewise.
17289 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
17290 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
17291 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
17292 * grub-core/lib/relocator.c (leftovers): Likewise.
17293 (extra_blocks): Likewise.
17294 * grub-core/loader/i386/bsd.c (relocator): Likewise.
17295 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
17296 (modules_last): Likewise.
17297 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
17298 (devices): Likewise.
17299 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
17300 (modules_last): Likewise.
17301 * grub-core/normal/auth.c (users): Likewise.
17302 * grub-core/normal/context.c (initial_menu): Likewise.
17303 (current_menu): Likewise.
17304 * grub-core/normal/crypto.c (crypto_specs): Likewise.
17305 * grub-core/term/serial.c (grub_serial_ports): Likewise.
17306 (grub_serial_terminfo_input_template): Likewise.
17307 (grub_serial_terminfo_output_template): Likewise.
17308 (grub_serial_terminfo_input): Likewise.
17309 (grub_serial_terminfo_output): Likewise.
17310 (registered): Likewise.
17311 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
17312
40fc4659
VS
173132011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17314
17315 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
17316 grub_video_mode_type_t.
17317 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
17318 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
17319 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
17320
2da48d28
VS
173212011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17322
17323 * util/grub-install.in: Correct the x86-64 name as x86_64.
17324
9b43bf39
CW
173252011-03-11 Colin Watson <cjwatson@ubuntu.com>
17326
17327 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
17328 initial chunk read from the kernel always includes GRUB's multiboot
17329 header, which is now outside the first sector.
17330
be1a7ce0
CW
173312011-03-09 Colin Watson <cjwatson@ubuntu.com>
17332
17333 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
17334 cached mmap_size, so that this works correctly when called multiple
17335 times.
17336 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
17337
83a3c48d
CW
173382011-03-09 Colin Watson <cjwatson@ubuntu.com>
17339
17340 * docs/grub.texi (Simple configuration): Tidy up formatting.
17341
57d75699
SJ
173422011-03-07 Szymon Janc <szymon@janc.net.pl>
17343
17344 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
17345 Set-but-not-used variable removed.
17346
028501a0
VS
173472011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17348
17349 Workaround yet another IEEE1275 bug.
17350
17351 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
17352 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
17353 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
17354 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
17355 is set.
17356 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17357 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
17358
d998657d
VS
173592011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17360
17361 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
17362 error.
17363
fee7cdd4
CW
173642011-02-11 Colin Watson <cjwatson@ubuntu.com>
17365
17366 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
17367 empty, since in that case we can only generate either nothing or a
17368 syntactically invalid configuration file.
17369 Reported by: Michal Suchanek. Fixes Debian bug #612898.
17370
97286eb5
CW
173712011-02-09 Colin Watson <cjwatson@ubuntu.com>
17372
17373 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
17374 (Making a GRUB bootable CD-ROM): Likewise.
17375 (Invoking grub-mkrescue): New section.
17376 Reported by: Yann Dirson. Fixes Debian bug #612585.
17377
22b28eb3
CW
173782011-02-09 Colin Watson <cjwatson@ubuntu.com>
17379
17380 * util/grub-install.in: Remove unnecessary brackets from tr
17381 arguments.
17382 * util/grub.d/10_hurd.in: Likewise.
17383 * util/grub.d/10_kfreebsd.in: Likewise.
17384 * util/grub.d/10_linux.in: Likewise.
17385 * util/grub.d/20_linux_xen.in: Likewise.
17386 Reported by: Jamie Heilman. Fixes Debian bug #612564.
17387
7e735e43
CW
173882011-02-08 Colin Watson <cjwatson@ubuntu.com>
17389
17390 * include/grub/file.h (not_easly_seekable): Rename to ...
17391 (not_easily_seekable): ... this. Update all users.
17392
800f1881
CW
173932011-01-28 Colin Watson <cjwatson@ubuntu.com>
17394
17395 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
17396 grub-mkrescue.
17397
3281d3d6
VS
173982011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
17399
17400 * util/grub-mkimage.c (generate_image): Refuse to create the images
17401 bigger than the actual flash (512K) in Loongson machines. 512K is also
17402 the biggest chip supported by them.
17403
3533413c
VS
174042011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17405
17406 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
17407
73ae4f4f
VS
174082011-01-22 Anthony DeRobertis <anthony@derobert.net>
17409
17410 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
17411 super_offset field.
17412
37f4f608
VS
174132011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17414
17415 * util/grub-install.in: Ignore install device on platforms
17416 where it doesn't make sense. Always use UUIDs except on pc, efi and
17417 sparc64.
17418 Reported by: Daniel Kahn Gillmor.
17419
03a4ccb5
VS
174202011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17421
17422 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
17423
ffc8f4d8
VS
174242011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17425
17426 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
17427 (iterate_real): Don't rely on partition being non-NULL.
17428
80f23be7
VS
174292011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17430
17431 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
17432 supported platforms. Put a compile time assert for this rather than
17433 generate a warning with 32-bit shift.
17434
5d4f4dd5
VS
174352011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17436
17437 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
17438 logical expression more readable.
17439
e489601a
VS
174402011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17441
17442 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
17443 even if some elements have a name.
17444 Reported by: Alexander GQ Gerasiov.
17445
96e0a6ea
CW
174462011-01-22 Colin Watson <cjwatson@ubuntu.com>
17447
17448 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
17449 path unreadable if `grub-probe -t abstraction' fails, for example if
17450 memberlist fails on an LVM volume group.
17451 Reported by: Darius Jahandarie.
17452
81431e2b
CW
174532011-01-22 Colin Watson <cjwatson@ubuntu.com>
17454
17455 * docs/grub.texi (Simple configuration): Document
17456 GRUB_PRELOAD_MODULES.
17457
5e79d66a
CW
174582011-01-17 Colin Watson <cjwatson@ubuntu.com>
17459
17460 * .bzrignore: Remove nonexistent grub-pbkdf2.
17461
646ada34
VS
174622011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
17463
17464 * configure.ac: Bump version to 1.99~rc1.
17465
04360337
VS
174662011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17467
17468 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
17469 for safety.
17470
46c9db88
VS
174712011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17472
17473 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
17474 module.
17475
174762011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
17477
17478 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
17479
4fbf1852
VS
174802011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17481
17482 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
17483 diskdevid.
17484
f1632d4d
VS
174852011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17486
17487 Fix compilation on cygwin.
17488
17489 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
17490 -R .drectve on cygwin.
17491 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
17492 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
17493 (COND_CYGWIN): New condition.
17494 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
17495 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
17496 not @TARGET_OBJ2ELF@.
17497 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
17498 type to determine whether aux is to be used.
17499
0b5e127b
VS
175002011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17501
17502 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
17503 realpath'ed device string.
17504 Handle floppy (somewhat).
17505 Issue error in unknown case rather than garbage.
17506 Reported by: Axel Beckert.
17507
173b71e9
VS
175082011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17509
17510 * util/grub.d/00_header.in (load_video): Handle the case when no video
17511 drivers available.
17512 Thanks to: Axel Beckert.
17513
f8f479db
VS
175142011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17515
17516 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
17517 variable. Fixes problem on big endian platforms.
17518
8fc0a245
VS
175192011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17520
17521 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
17522 It doesn't work well there.
17523
b8494fbe
VS
175242011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17525
17526 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
17527 warning.
17528 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
17529 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
17530 counter.
17531
b44a558c
VS
175322011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17533
17534 Use alias->path rather than buggy "canon".
17535
17536 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
17537 (ofdisk_hash_add): New argument curcan. All users updated.
17538
51fa856c
CW
175392011-01-11 Colin Watson <cjwatson@ubuntu.com>
17540
17541 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
17542
9da068a5
VS
175432011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17544
17545 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
17546 loadmask before doing any calculations. Use correct type for offset.
17547 (grub_linux_load64): Likewise.
17548
86205c94
CW
175492011-01-11 Colin Watson <cjwatson@ubuntu.com>
17550
17551 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
17552 with NULL.
17553 (console_grub_equivalences_unshift): Likewise.
17554 Reported by: Daniel Dehennin.
17555
4531a206
VS
175562011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17557
17558 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
17559 (set_env_limn_ro): Likewise.
17560 (GRUB_MOD_INIT): Likewise.
17561 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
17562 ARRAY_SIZE while on it.
17563 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
17564 * grub-core/normal/context.c (grub_env_export): Move from here ...
17565 * grub-core/kern/env.c (grub_env_export): ... here.
17566 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
17567 prefix.
17568 * grub-core/kern/main.c (grub_main): Export root and prefix.
17569 * include/grub/env.h (grub_env_export): Export.
17570 Reported by: Seth Goldberg.
17571
45146057
VS
175722011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17573
17574 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17575 Take into account space used by ELF sections and multiboot palette.
17576 Reported by: Grégoire Sutre.
17577
f093110b
VS
175782011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17579
17580 * BUGS: New file.
17581
3395fe52
VS
175822011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17583
17584 Pass more appropriate video id to Linux.
17585
17586 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
17587 grub_video_get_driver_id and variable gfxpayloadforcelfb to
17588 fill have_vga.
17589 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
17590 shift params->lfb_size.
17591 * include/grub/i386/linux.h: Make an enume out of have_vga values.
17592
c2fa6cbb
VS
175932011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17594
17595 * util/grub-menulst2cfg.c: Add missing include of misc.h.
17596
b3ff6ff0
VS
175972011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17598
17599 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
17600 separator and pass bootpath/devid even if only one of them is available.
17601 Reported by: Seth Goldberg.
17602
ae67942e
VS
176032011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17604
17605 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
17606 implementations bug on them.
17607
17608 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
17609 memory.
17610 (filter_memory_map): Likewise.
17611
d570097a
VS
176122011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17613
17614 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
17615 Reported by: nebuchadnezzar.
17616
a508e776
VS
176172011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17618
17619 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
17620 Reported by: nebuchadnezzar.
17621
dcb883b1
VS
176222011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17623
17624 Submenu default support.
17625
17626 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
17627 auto_boot. All users updated.
17628 Declared static.
17629 Handle chosen and default with submenus.
17630 (grub_menu_execute_with_fallback): Declared static.
17631 Don't notify failure if autobooted. Upper level does it.
17632 (menuentry_eq): New function.
17633 (get_entry_number): Use menuentry_eq.
17634 (show_menu): New parameter "autobooted". All users updated.
17635 (grub_show_menu): Likewise.
17636 * include/grub/normal.h (grub_show_menu): Likewise.
17637 * include/grub/menu.h (grub_menu_execute_entry): Removed.
17638 (grub_menu_execute_with_fallback): Likewise.
17639
6fef99b4
VS
176402011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17641
17642 * util/grub-mklayout.c (usage): Update help text.
17643
47a77af5
VS
176442011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17645
17646 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
17647
ce6bb3ee
VS
176482011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17649
17650 * util/grub-menulst2cfg.c (main): Trim the line.
17651
db87be2a
VS
176522011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17653
17654 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
17655 (grub_machine_init): Don't check amount of low memory as reportedly
17656 INT 12h can be broken and if low memory is too low we wouldn't have
17657 gotten into grub_machine_init anyway.
17658
c49849cc
VS
176592011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17660
17661 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
17662 (grub_machine_mmap_iterate): Take low memory into account
17663
b1969b30
VS
176642011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17665
17666 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
17667 badfs.
17668 Reported by: TiCPU.
17669
cf0eaf13
VS
176702011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17671
17672 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
17673 members errors.
17674
1f060f39
GS
176752011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
17676
17677 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
17678 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
17679
a21e5672
GS
176802011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
17681
17682 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
17683 openbsd and netbsd types being in part_bsd module.
17684
c88172fa
VS
176852011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17686
17687 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
17688 (_FILE_OFFSET_BITS): Likewise.
17689 Reported by: Seth Goldberg.
17690
53798c4b
GS
176912011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
17692
17693 * configure.ac: Check for libdevmapper header.
17694
e7121b69
VS
176952011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17696
17697 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
17698 avoid aliasing.
17699 (fzap_lookup): Likewise.
17700 (dnode_get): Likewise.
17701 (make_mdn): Likewise.
17702 (zfs_mount): Likewise.
17703 (fzap_iterate): Use temporary pointer to avoid aliasing.
17704 (grub_zfs_read): Likewise.
17705 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
17706 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
17707 pointers to avoid aliasing.
17708 (grub_cmd_xnu_kernel64): Likewise.
17709 (grub_xnu_load_driver): Likewise.
17710
fc836af9
VS
177112011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17712
17713 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
17714 aliasing warning.
17715 (grub_cmd_terminal_output): Likewise.
17716 Reported and tested by: Grégoire Sutre.
17717
f9f37648
VS
177182011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17719
17720 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
17721 warning.
17722 Reported and tested by: Grégoire Sutre.
17723
ec1dfd63
VS
177242011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17725
17726 * configure.ac: Do CPU substitution even if it's specified explicitly.
17727 Reported and tested by: Alain Greppin.
17728
9462775a
VS
177292011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17730
17731 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
17732 Reported and tested by: Alain Greppin.
17733
0fd48e35
VS
177342011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17735
17736 Satisfy some bison versions need for inttypes.h.
17737
17738 * grub-core/lib/posix_wrap/inttypes.h: New file.
17739 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
17740 (int16_t): Likewise.
17741 (int32_t): Likewise.
17742 (int64_t): Likewise.
17743 Reported and tested by: Alain Greppin.
17744
43f1bc83
VS
177452011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17746
17747 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
17748 Silence spurious warning.
17749 Reported and tested by: Alain Greppin.
17750
64d1f041
SJ
177512011-01-07 Szymon Janc <szymon@janc.net.pl>
17752
17753 * docs/grub.texi (Support automatic decompression): Update with xz
17754 decompression support.
17755
25953e10
SJ
177562011-01-07 Szymon Janc <szymon@janc.net.pl>
17757
17758 Improve loaders' kernel command line handling.
17759
17760 * grub-core/lib/cmdline.c: New file.
17761 * include/grub/lib/cmdline.h: Likewise.
17762 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
17763 grub_create_loader_cmdline to create kernel command line.
17764 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
17765 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
17766 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
17767 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
17768 (linux): Add lib/cmdline.c on common.
17769
e72d259f
VS
177702011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17771
17772 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
17773 inopos might be unaligned.
17774
c0cf26da
VS
177752011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17776
17777 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
17778 endian transformations.
17779 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17780 Based on report by: Doug Nazar.
17781
0ca09e6c
DN
177822011-01-07 Doug Nazar <nazard.michi@gmail.com>
17783
17784 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
17785 array->members[i].start_sector.
17786 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
17787
014b6806
VS
177882011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17789
17790 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
17791 Reported and tested by: Grégoire Sutre.
17792
415502c2
CW
177932011-01-06 Colin Watson <cjwatson@ubuntu.com>
17794
17795 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
17796 avoid causing test failures by clearing the screen.
17797
71b6a2b7
CW
177982011-01-06 Colin Watson <cjwatson@ubuntu.com>
17799
17800 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
17801 Fix prefix check to handle the case where dir ends with a slash
17802 (most significantly, "/" itself).
17803 Reported by: Michael Vogt.
17804
b3f8d28a
VS
178052011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17806
17807 Run terminfo_cls on initing terminfo output to clear the screen and
17808 move the cursor to (0,0).
17809
17810 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
17811 Call grub_terminfo_output_init.
17812 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
17813 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
17814 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
17815
4c3e4f37
VS
178162011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17817
17818 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
17819 only when needed.
17820
488f71f1
VS
178212011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17822
17823 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
17824 CTRL.
17825
18a38098
VS
178262011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17827
17828 The E820 type 5 is BADRAM, not EXEC_CODE.
17829
17830 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
17831 (GRUB_E820_BADRAM): New define.
17832 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
17833 into reserved. Propagate BADRAM.
17834 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
17835 (GRUB_E820_BADRAM): New define.
17836
9eae2084
VS
178372011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17838
17839 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
17840 Ignore the memory post-4G.
17841 (grub_relocator_firmware_alloc_region): Additional debug statement.
17842
ebc71d28
VS
178432011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17844
17845 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
17846 names.
17847 Reported by: David Pravec.
17848
446fa400
VS
178492011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17850
17851 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
17852 BIOSes.
17853
a0159f37
VS
178542011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17855
17856 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
17857 Prevent overflow.
17858 (grub_reed_solomon_recover): Likewise.
17859
e5146ca1
VS
178602011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17861
17862 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
17863
178642011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
17865
17866 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
17867 variable.
17868
5b1bdf12
CW
178692011-01-04 Colin Watson <cjwatson@ubuntu.com>
17870
17871 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
17872 descriptions of extract_legacy_entries_source and
17873 extract_legacy_entries_configfile.
17874 Reported by: Seung Soo, Ha.
17875
99d925aa
CW
178762011-01-03 Colin Watson <cjwatson@ubuntu.com>
17877
17878 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
17879 on devices that do not implement function 0.
17880
4af0504b
DV
178812011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
17882
17883 * grub-core/fs/hfsplus.c: Make parent unsigned.
17884 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
17885 overflows.
17886 (grub_hfsplus_cmp_extkey): Likewise
17887
469ee10a
VS
178882011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
17889
17890 * util/grub-install.in: Correctly use bootloader_id and not
17891 GRUB_DISTRIBUTOR on efibootmgr line.
17892
323a8e9c
VS
178932011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
17894
17895 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
17896
1b394975
IC
178972010-12-31 Ian Campbell <ijc@hellion.org.uk>
17898
17899 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
17900 Xen and reorder menu item wording to make it clearer that this entry
17901 will launch Xen. Print separate messages when loading Xen and
17902 Linux.
17903
275bff5f
VS
179042010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
17905
17906 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
17907 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
17908 loop in case of incorrect amiga partmap.
17909
307806cb
VS
179102010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
17911
17912 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
17913 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
17914 Reported by:EHeM.
17915
b12b923e
VS
179162010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
17917
17918 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
17919 spurious warning.
17920 Reported by: crocket
17921
14b48a19
VS
179222010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17923
17924 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
17925 Preload EFIemu.
17926 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
17927
693db2df
VS
179282010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17929
17930 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
17931 is loaded
17932 (grub_cmd_xnu_kextdir): Likewise.
17933 (grub_cmd_xnu_splash): Likewise.
17934
c7638645
VS
179352010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17936
17937 Avoid using Reed-Solomon with 0 redundancy.
17938
17939 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
17940 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
17941 or 0 redundancy.
17942 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
17943 (grub_reed_solomon_recover): Likewise.
17944
25dd4780
VS
179452010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17946
17947 Don't use disk subsystem in freebsd_boot.
17948
17949 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
17950 (freebsd_biosdev): Likewise.
17951 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
17952 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
17953
0b2db943
VS
179542010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
17955
17956 Handling of files of unknown size is currently limited. They can't be
17957 used e.g. for initrd or modules. Moreover gzip handling of not
17958 easily seekable files is buggy. Disable unknown file size for now. May
17959 be inefficient but works.
17960
17961 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
17962 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
17963
5c408d0f
MP
179642010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
17965
17966 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
17967 floppy probe.
17968
190a011a
JD
179692010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
17970
17971 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
17972
022d01b8
SL
179732010-12-25 Shea Levy <shlevy>
17974
17975 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
17976
c4855fdc
VS
179772010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17978
17979 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
17980 Windows Server 2008.
17981 Reported by: Devin Giddings.
17982
0354b867
VS
179832010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17984
17985 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
17986 writing an error message because of async power management.
17987 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
17988 (grub_reboot): Likewise.
17989
ab66c69f
JU
179902010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
17991
17992 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
17993 keep unit tests from failing when they shouldn't.
17994
1426ef35
CW
179952010-12-21 Colin Watson <cjwatson@ubuntu.com>
17996
17997 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
17998 previous patch increased the size of the RS code by 20 bytes (at
17999 least with gcc-4.4), so increase this by 20 bytes to match.
18000 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
18001
20641b6b
CW
180022010-12-21 Colin Watson <cjwatson@ubuntu.com>
18003
18004 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
18005 scratch area. Make sure to initialise chosen in standalone mode as
18006 well as non-standalone.
18007 Reported by: Robert Hooker and Andy Whitcroft.
18008 Tested by: Andy Whitcroft.
18009
d060ad60
CW
180102010-12-21 Colin Watson <cjwatson@ubuntu.com>
18011
18012 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
18013 constructing a new unescaped string and passing it to grub_xputs in
18014 one go, rather than passing characters to grub_printf one at a time.
18015
b889cfad
CW
180162010-12-21 Colin Watson <cjwatson@ubuntu.com>
18017
18018 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
18019 initialising utf16.
18020
4e01b6c8
CW
180212010-12-21 Colin Watson <cjwatson@ubuntu.com>
18022
18023 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
18024 comment. Add an extra layer of quotation, requiring the output of
18025 this function to be used in a printf format string.
18026 (gettext_printf): New function.
18027 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
18028 Extract translatable strings from here-documents and use a temporary
18029 variable instead, so that xgettext can find them.
18030 * util/grub.d/10_kfreebsd.in: Likewise.
18031 * util/grub.d/10_linux.in: Likewise.
18032 * util/grub.d/20_linux_xen.in: Likewise.
18033
18034 * po/grub.d.sed: New file.
18035 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
18036 arguments. Set c-format flags on all strings extracted from
18037 util/grub.d/ (xgettext refuses to include these itself for strings
18038 it extracted from a shell file, but these really are c-format).
18039
5318fe98
VS
180402010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18041
18042 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
18043 Avoid next pointing to nowhere.
18044
6c85b743
VS
180452010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18046
18047 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
18048 rather than assuming than rootblock is exactly in the middle.
18049 (grub_affs_label): Likewise.
18050
a2a08a35
VS
180512010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18052
18053 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
18054 reserved_first_sector to 0.
18055 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
18056 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
18057 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
18058
7059d1ec
VS
180592010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18060
18061 Fix handling of UTF-16 UDF labels.
18062
18063 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
18064 (read_string): .. here.
18065 (grub_udf_label): Use read_string.
18066
30aff4cb
BC
180672010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
18068
18069 * grub-core/normal/menu_entry.c (run): Execute commands from menu
18070 editor under argument scope.
18071 Reported by: Jordan Uggla
18072
5cf86f4b
VS
180732010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18074
18075 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
18076
32570200
CW
180772010-12-18 Colin Watson <cjwatson@ubuntu.com>
18078
18079 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
18080 line, and other keys scroll an entire page (previous handling was
18081 for \r and \n to scroll a page and other keys to scroll two lines).
18082
e1dffcf2
VS
180832010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18084
18085 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18086 Set ptrdest to correct get_physical_target_address rather than
18087 incorrect get_virtual_current_address.
18088
b04298cf 180892010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
18090
18091 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
18092 correct cat to grub_uint8_t * rather than grub_uint32_t *.
18093
5367ecd3
CW
180942010-12-10 Colin Watson <cjwatson@ubuntu.com>
18095
18096 * .bzrignore: Ignore grub-core/rs_decoder.S.
18097
1fb430f8
CW
180982010-12-10 Colin Watson <cjwatson@ubuntu.com>
18099
18100 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
18101 .mo/.mo.gz opening sequence to ...
18102 (grub_mofile_open_lang): ... here.
18103 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
18104 * util/grub.d/00_header.in (grub_lang): Include country part of
18105 locale.
18106 Reported by: Mario Limonciello.
18107
a94a6671
RM
181082010-12-09 Robert Millan <rmh@gnu.org>
18109
18110 * NEWS: Document addition of ZFS support.
18111
24b7938b
CW
181122010-12-04 Colin Watson <cjwatson@ubuntu.com>
18113
18114 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
18115 rather than `/ 2', as the latter requires -Wa,--divide which would
18116 require bumping our minimum binutils version.
18117
bddc3ef6
BC
181182010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
18119
18120 * util/grub-script-check.c (main): Print script line number on
18121 error.
18122
bf78d5b2
RM
181232010-12-01 Robert Millan <rmh@gnu.org>
18124
18125 * grub-core/fs/zfs/zfs.c: New file.
18126 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
18127 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
18128 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
18129 * grub-core/fs/zfs/zfsinfo.c: Likewise.
18130
18131 * include/grub/zfs/dmu.h: Likewise.
18132 * include/grub/zfs/dmu_objset.h: Likewise.
18133 * include/grub/zfs/dnode.h: Likewise.
18134 * include/grub/zfs/dsl_dataset.h: Likewise.
18135 * include/grub/zfs/dsl_dir.h: Likewise.
18136 * include/grub/zfs/sa_impl.h: Likewise.
18137 * include/grub/zfs/spa.h: Likewise.
18138 * include/grub/zfs/uberblock_impl.h: Likewise.
18139 * include/grub/zfs/vdev_impl.h: Likewise.
18140 * include/grub/zfs/zap_impl.h: Likewise.
18141 * include/grub/zfs/zap_leaf.h: Likewise.
18142 * include/grub/zfs/zfs.h: Likewise.
18143 * include/grub/zfs/zfs_acl.h: Likewise.
18144 * include/grub/zfs/zfs_znode.h: Likewise.
18145 * include/grub/zfs/zil.h: Likewise.
18146 * include/grub/zfs/zio.h: Likewise.
18147 * include/grub/zfs/zio_checksum.h: Likewise.
18148
18149 * Makefile.util.def: Build ZFS into libgrubmods.
18150 * grub-core/Makefile.core.def: Build zfs.mod.
18151
3f0f3831
SJ
181522010-11-30 Szymon Janc <szymon@janc.net.pl>
18153
18154 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
18155 variable.
18156 * grub-core/commands/wildcard.c (match_files): Likewise.
18157
3a4253b2
RM
181582010-11-30 Robert Millan <rmh@gnu.org>
18159
18160 * grub-core/loader/i386/bsd.c
18161 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
18162 whether kernel is loaded using grub_loader_is_loaded(), rather
18163 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
18164 certain error conditions.
18165
8c317b27
RM
181662010-11-30 Robert Millan <rmh@gnu.org>
18167
c5c9cd3e
RM
18168 * grub-core/commands/echo.c: Include `<grub/term.h>'.
18169 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 18170
49d3ab46
VS
181712010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18172
18173 Avoid using tricks for initialising endian variables.
18174
18175 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
18176 Make const.
18177 (GRUB_MOD_INIT): Don't byte-swap.
18178 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18179 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
18180 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
18181 (grub_swap_bytes32_compile_time): Likewise.
18182 (grub_cpu_to_le32_compile_time): Likewise.
18183 (grub_cpu_to_le16_compile_time): Likewise.
18184
f420a804
VS
181852010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18186
18187 * util/grub-setup.c (setup): Stop recommending --force. People who
18188 understand the dangers of blocklists are able to find this option
18189 anyway and the ones who don't shouldn't use it anyway.
18190
4e7db17b
RM
181912010-11-26 Robert Millan <rmh@gnu.org>
18192
18193 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
18194 Update all users.
18195
9be57a0d
CW
181962010-11-26 Colin Watson <cjwatson@ubuntu.com>
18197
18198 Fix LVM-on-RAID probing.
18199
18200 * util/grub-probe.c (probe): Remember which disk was detected as
18201 RAID (perhaps an LVM physical volume). Use that disk's raidname
18202 rather than that of the top-level disk.
18203
2c7859b3 182042010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 18205
d7647bb6
BC
18206 Fix cmdline argument quotes for setparams command of menuentry
18207 definitions.
7e623b0d
BC
18208
18209 * grub-core/commands/menuentry.c (setparams_prefix): Use single
18210 quotes for arguments.
f866fe80 18211 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 18212 grub_strchrsub function instead.
f866fe80 18213
7955bea0 18214 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 18215
74f72a64
CW
182162010-11-24 Colin Watson <cjwatson@ubuntu.com>
18217
18218 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
18219 effort by skipping "." and ".." entries up-front.
18220 Suggested by: Michael Lazarev.
18221
5a407278
CW
182222010-11-24 Colin Watson <cjwatson@ubuntu.com>
18223
18224 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
18225 ldflags to ldadd, to fix link line ordering.
18226 (none_decompress): Likewise.
18227
3030d8ec
CW
182282010-11-24 Colin Watson <cjwatson@ubuntu.com>
18229
18230 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
18231 platforms.
18232 (grub-emu-lite): Remove kern/emu/cache.S.
18233
b7fbac12
CW
182342010-11-23 Colin Watson <cjwatson@ubuntu.com>
18235
18236 * util/deviceiter.c (compare_devices): If the by-id link for a
18237 device couldn't be resolved, fall back to sorting by the by-id link
18238 rather than segfaulting.
18239 Reported and tested by: Daniel Mierswa.
18240
5225f328
CW
182412010-11-23 Colin Watson <cjwatson@ubuntu.com>
18242
18243 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
18244 ldflags, to fix link line ordering.
18245
038b3ce8
CW
182462010-11-23 Colin Watson <cjwatson@ubuntu.com>
18247
18248 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
18249 linkers are picky about this.
18250
bf16e98e
CW
182512010-11-23 Colin Watson <cjwatson@ubuntu.com>
18252
18253 * grub-core/Makefile.am (command.lst): Adjust sed expression
18254 ordering so that extended and priority commands aren't treated as
18255 ordinary commands.
18256
7242bab6
CW
182572010-11-23 Colin Watson <cjwatson@ubuntu.com>
18258
18259 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18260 Remove byte-swapping function calls, which are not valid in
18261 structure initialisers.
18262 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
18263 non-const.
18264 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
18265 grub_gpt_partition_type_bios_boot.
18266
14e8b279
CW
182672010-11-22 Colin Watson <cjwatson@ubuntu.com>
18268
18269 Fix test program build on GNU/kFreeBSD.
18270
18271 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
18272 $(LIBNVPAIR)' library dependencies.
18273
e6f63338 182742010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
18275
18276 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
18277
cf8ffc38
CW
182782010-11-22 Colin Watson <cjwatson@ubuntu.com>
18279
18280 * util/grub-install.in: Remove excessive quoting that broke
18281 installations to RAID devices.
18282
7f8b0fd7
VS
182832010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18284
18285 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
18286 bootloader version instead of 0.
18287
dfd240b1
VS
182882010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18289
18290 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
18291 warning.
18292
7b61e609
VS
182932010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18294
18295 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
18296 retrieve the metadat sector if size isn't known.
18297 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18298
9dfe92d0
RM
182992010-11-18 Robert Millan <rmh@gnu.org>
18300
18301 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
18302 with grub_memcmp().
18303
41cc919e
VS
183042010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
18305
18306 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
18307 arrow.
18308 Reported by: Jordan Uggla.
18309
1afcc914
VS
183102010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18311
18312 Make better UTF compliant.
18313
18314 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
18315 sequences as incorrect.
18316 (grub_is_valid_utf8): Likewise.
18317 (grub_utf8_to_ucs4): Likewise.
18318 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
18319 (grub_ucs4_to_utf8_alloc): Likewise.
18320 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
18321
f1808884
VS
183222010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18323
18324 Make legacy_source behave like source.
18325
18326 * grub-core/commands/legacycfg.c (legacy_file): Don't call
18327 grub_show_menu.
18328 (grub_cmd_legacy_source): Call grub_show_menu if needed.
18329
24ec575b
CW
183302010-11-16 Colin Watson <cjwatson@debian.org>
18331
18332 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
18333 (-Wunused implies -Wunused-parameter, but not vice versa).
18334
72b7c7aa
CW
183352010-11-16 Colin Watson <cjwatson@ubuntu.com>
18336
18337 * configure.ac: Make error messages less confusing by testing for
18338 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
18339 accepted, but produces a diagnostic if something else is wrong).
18340
e98937aa
VS
183412010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18342
18343 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
18344 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
18345 (now unused).
18346 (grub_keyboard_controller_init)
18347 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
18348 read the initial state since controller isn't inited yet.
18349
f6bbabc3
VS
183502010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18351
18352 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
18353 allocate_regbeg may need to create new chunk header.
18354
22e7dbb2
VS
183552010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18356
18357 Fix quoting in legacy parser.
18358
18359 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
18360 single quotes.
18361 (grub_legacy_parse): Likewise.
18362 Reported by: Jordan Uggla.
18363 Tested by: Jordan Uggla.
18364
03f80960
VS
183652010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18366
18367 Don't add -lgcc on i386 and x86_64.
18368
18369 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
18370 * conf/Makefile.common (LDADD_KERNEL): Likewise.
18371 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
18372
779dc15b
VS
183732010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18374
18375 * configure.ac: Add -Wno-trampolines when supported.
18376
d20a3b37
MV
183772010-11-14 Modestas Vainius <modax@debian.org>
18378
18379 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
18380 fakeraid.
18381
e5360933
GC
183822010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18383
18384 Add generic logical block size support for UDF.
18385
18386 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
18387 (GRUB_UDF_BLKSZ): Removed.
18388 (struct grub_udf_data): New field "lbshift" to hold the logical block
18389 size of the file system in log2 format. All users updated.
18390 (sblocklist): Change type to unsigned.
18391 (grub_udf_mount): Change type of "sblklist" to unsigned.
18392 Move AVDP search before VRS recognition, because the latter requires
18393 knowledge of the logical block size, which is detected during the
18394 former.
18395 Detect and validate logical block size during AVDP search, adding
18396 support for block sizes 512, 1024 and 4096.
18397 Make VRS recognition independent of block size.
18398
cb0229c5
GC
183992010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18400
18401 Properly handle deleted files on UDF.
18402
18403 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
18404 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
18405 set.
18406
406858a8
GC
184072010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18408
18409 Support reading files larger than 2 GiB.
18410
18411 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
18412 "offset" to grub_off_t.
18413 (grub_udf_read_file): Likewise for parameter "pos".
18414
130da6a7
VS
184152010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18416
18417 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
18418 unavailable.
18419 (Simple configuration): Refer to Changes from GRUB Legacy about
18420 save_env availability.
18421
65e93f6b
VS
184222010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18423
18424 * util/grub-install.in: Ignore empty partition table detection
18425 instead of trying to include part_ module.
18426
1fd08bf1
VS
184272010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18428
18429 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
18430 LVM on RAID support.
18431
de1a024f
VS
184322010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18433
18434 Properly define WORDS_BIGENDIAN in wrapped environments.
18435
18436 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
18437 definition.
18438 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
18439
18440 Reported by: Manoel Rebelo Abranches.
18441 Tested by: Manoel Rebelo Abranches.
18442
bc5dd0b9
VS
184432010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18444
18445 * util/grub-mkconfig.in: Fix quoting.
18446
58c184be
VS
184472010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18448
18449 Support big ext2 files.
18450
18451 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
18452 (grub_ext2_read_block): Support triple indirect blocks.
18453 (grub_ext2_read_file): Use 64-bit types and read size_high.
18454 (grub_ext2_open): Read size_high.
18455 Reported by: Ximin Luo.
18456 Tested by: Manoel Rebelo Abranches.
18457
5f0c02b3
VS
184582010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18459
18460 * util/grub-install.in: Handle filenames containing spaces.
18461 Reported by: Jordan Uggla.
18462 Tested by: Jordan Uggla.
18463
4417aae6
VS
184642010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18465
18466 * util/grub-mkconfig.in (grub_script_check): New variable.
18467 Use grub_script_check instead of grub-script-check.
18468 Reported by: Barry Jackson.
18469
7625a68e
VS
184702010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18471
18472 * docs/grub.texi (menu): Correct the order.
18473 Reported by: D. Hugh Redelmeier.
18474
10001ac5
VS
184752010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
18476
18477 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
18478 jump.
18479
9c4cf53b
MRA
184802010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
18481
10001ac5
VS
18482 * include/grub/elfload.h (grub_elf32_size): New parameter.
18483 All users updated.
9c4cf53b
MRA
18484 Return maximum segments alignment.
18485 (grub_elf64_size): Likewise.
18486 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
18487 Return maximum segments alignment.
18488 (grub_elf64_size): Likewise.
18489 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
18490 (grub_linux_claimmap_iterate): New function. Uses the
18491 "available" property in the "memory" node for memory allocation
18492 for kernel in the PowerPC loader.
9c4cf53b
MRA
18493 (grub_linux_load32): Correctly find linux entry point offset.
18494 (grub_linux_load64): Likewise.
18495
d2bf06bf
RM
184962010-11-07 Robert Millan <rmh@gnu.org>
18497
18498 On mips-yeeloong, build with -march=loongson2f when this flag is
18499 available (GCC >= 4.4).
18500 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
18501 `-march=mips3'.
18502 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
18503 or otherwise add -march=mips3.
18504
898c99a2
BC
185052010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
18506
87220a68
BC
18507 Suppress shell expansion on echo '*' and echo "*" like cases.
18508 Reported by: Jordan Uggla.
898c99a2
BC
18509
18510 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
18511 string arguments before shell expansion.
18512 * tests/grub_cmd_echo.in: New testcases.
18513
4f9b406a
RM
185142010-11-07 Robert Millan <rmh@gnu.org>
18515
18516 * conf/mips-qemu-mips.rmk: Remove stale file from previous
18517 transition.
18518
80c6d25e
VS
185192010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
18520
18521 * grub-core/kern/emu/hostdisk.c
18522 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
18523
4a1a0153
VS
185242010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18525
18526 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
18527 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
18528 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
18529
34706ddc
VS
185302010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18531
18532 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
18533
6972dea9
VS
185342010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18535
18536 * util/grub-install.in: Replace useless recomendation to pass
18537 --modules with a recomendation to report a bug.
18538
9c693bd6
VS
185392010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18540
18541 Properly register serial terminfo.
18542 Reported by: Jordan Uggla
18543
18544 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
18545 const.
18546 (grub_serial_terminfo_output_template): Likewise.
18547 (grub_cmd_serial): Register "serial" with terminfo.
18548 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
18549 grub_serial_terminfo_output.
18550
6c9e4c0c
RM
185512010-11-05 Robert Millan <rmh@gnu.org>
18552
18553 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
18554 needed).
18555
b9b3839f
RM
185562010-11-05 Robert Millan <rmh@gnu.org>
18557
18558 On Yeeloong, pass machine type information to Linux.
18559
18560 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
18561 (LOONGSON_MACHTYPE): New macro, set to
18562 "machtype=lemote-yeeloong-2f-8.9inches".
18563 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
18564 additional argument to Linux.
18565
1a3aaff4
RM
185662010-11-04 Robert Millan <rmh@gnu.org>
18567
18568 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
18569 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
18570 (its SATA disks are detected as slaveless IDE master drives on
18571 kFreeBSD).
18572 Reported by Carsten Aulbert.
18573
a75f4f62
CW
185742010-11-02 Colin Watson <cjwatson@ubuntu.com>
18575
18576 * util/bin2h.c (main): Fix spelling error in generated output.
18577
33b4b0c6
GS
185782010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
18579
18580 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
18581
2b36fbf4
VS
185822010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18583
18584 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
18585 vga= option is supplied.
18586
74aaf558
VS
185872010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18588
18589 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
18590 * util/grub.d/10_kfreebsd.in: Likewise.
18591 * util/grub.d/10_linux.in: Likewise.
18592 * util/grub.d/20_linux_xen.in: Likewise.
18593
6428dec3
VS
185942010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18595
18596 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
18597 argument as an argument to no-argument option.
18598
f8729d98
VS
185992010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18600
18601 * util/grub.d/10_linux.in: Add missing load_video with explicit
18602 GRUB_GFXPAYLOAD_LINUX.
18603
89d68fa6
VS
186042010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18605
18606 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
18607
3a1197cd
VS
186082010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18609
18610 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
18611 elements with invlid index.
18612 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18613 * grub-core/disk/raid.c (insert_array): Automatically reallocate
18614 members.
18615 * include/grub/raid.h (grub_raid_member): New struct.
18616 (grub_raid_array): Transform devices and start_sector into usage of
18617 grub_raid_member. All users updated
18618 (allocated_devs): New member.
18619
71574288
VS
186202010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18621
18622 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
18623 is modified
18624
8d40ec65
BC
186252010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
18626
18627 NetBSD build fix for getline function conflict from gnulib.
18628
18629 * Makefile.util.def (libgrubkern.a): New library for grub kernel
18630 components that depend on gnulib headers.
18631 (libgrubmods.a): Renamed from earlier libgrub.a.
18632 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
18633
95b9257e
VS
186342010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18635
18636 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
18637 install rather than creating a broken install.
18638
26c53dc6
VS
186392010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18640
18641 * util/grub-setup.c (argp): Remove misleading example of installing to
18642 a partition.
18643
4171b3c5
VS
186442010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18645
18646 * util/grub-setup.c (setup): Clarify the error message.
18647
18568d18
VS
186482010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18649
18650 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
18651
4f6a2e21
VS
186522010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
18653
18654 * grub-core/kern/emu/misc.c
18655 (grub_make_system_path_relative_to_its_root)
18656 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
18657
186582010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
18659
18660 * grub-core/kern/emu/misc.c
18661 (grub_make_system_path_relative_to_its_root): Revert r2882.
18662
e138c458
VS
186632010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
18664
18665 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
18666 useless field head. All users updated.
18667 (free_subchunk): Correct handling of IN_REGION subchunk.
18668
0cbcdf0e
CW
186692010-10-22 Colin Watson <cjwatson@ubuntu.com>
18670
18671 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
18672 (Supported kernels): Likewise.
18673
b65ea155
GS
186742010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
18675
18676 Make mktemp invocations portable.
18677
18678 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
18679 exit if mktemp fails.
18680 * tests/grub_script_blockarg.in: Likewise.
18681 * tests/partmap_test.in: Likewise.
18682 * tests/util/grub-shell-tester.in: Likewise.
18683 * tests/util/grub-shell.in: Likewise.
18684 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
18685 * Makefile.am: Likewise, and chain shell commands with `&&'
18686 instead of ';'.
18687 * util/grub-mkrescue.in: Use the same explicit template as above, and
18688 exit if mktemp fails.
18689
05f43cdd
BC
186902010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
18691
18692 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
18693 Linux kernel, reported by Dennis Schridde.
18694
800e6a9b
SJ
186952010-10-17 Szymon Janc <szymon@janc.net.pl>
18696
18697 * grub-core/normal/auth.c (grub_auth_check_authentication):
18698 Set-but-not-used variable removed.
18699
d82df574
VS
187002010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18701
18702 * docs/grub.texi (GNU/Linux): Document APM unavailability with
18703 32-bit linux protocol.
18704
7bced458
VS
187052010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18706
18707 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
18708 cursor shape for sanity.
18709
5b027690
VS
187102010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18711
18712 * docs/grub.texi (Installation): Document buggy BIOS install.
18713
ba5f65cf
VS
187142010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18715
18716 * docs/grub.texi (Installation): Indent.
18717
fdf2ec9c
VS
187182010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18719
18720 * util/grub-setup.c (setup): New parameter allow_floppy.
18721 (arguments): New member allow_floppy.
18722 (argp_parser): Handle --allow-floppy.
18723 (main): Pass allow_floppy.
18724 * util/grub-install.in: New option --allow-floppy passed though to
18725 grub-setup.
18726
861dfd4c
VS
187272010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18728
18729 * util/grub-install.in: Handle partitionless disks.
18730
f77a8c24
VS
187312010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18732
18733 * util/grub-setup.c (setup): Don't clean blocklists before readability
18734 verfification.
18735
27d9ee32
VS
187362010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18737
18738 * docs/grub.texi (Installation): Document embedding zone. Remove
18739 obsolete grub-install example.
18740
6bdda8f8
SJ
187412010-10-16 Szymon Janc <szymon@janc.net.pl>
18742
18743 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
18744 Set-but-not-used variable ifdef'ed.
18745 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
18746 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
18747 variable removed.
18748 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
18749 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
18750 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
18751 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
18752 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
18753 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
18754 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
18755 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
18756 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
18757 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
18758 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
18759 Likewise.
18760
e19b016b
VS
187612010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18762
18763 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
18764 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
18765 enum value.
18766
6c8d3002
VS
187672010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18768
18769 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
18770 synonym to _S5_. Needed for some DSDTs.
18771
c32b51c9
VS
187722010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18773
18774 Userspace ACPI parser debugging.
18775
18776 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
18777 headers and add relevant defines. Don't include standard headers.
18778 (main) [GRUB_DSDT_TEST]: New function.
18779 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
18780 Don't declare functions.
18781
fbfbeb39
VS
187822010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18783
18784 Remove dead grub_efi_mm_fini.
18785
18786 * grub-core/kern/efi/mm.c (allocated_page): Removed.
18787 (ALLOCATED_PAGES_SIZE): Likewise.
18788 (MAX_ALLOCATED_PAGES): Likewise.
18789 (allocated_pages): Likewise.
18790 (grub_efi_allocate_pages): Don't record allocated pages.
18791 (grub_efi_free_pages): Likewise.
18792 (grub_efi_mm_init): Likewise.
18793 (grub_efi_mm_fini): Removed.
18794
65f7ed7c
VS
187952010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18796
18797 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
18798 (grub_efi_mm_init): Take into account the memory map size increase.
18799
24977b44
VS
188002010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18801
18802 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
18803 (serial_hw_put): Wait based on real time rather than port reads. Don't
18804 roken ports.
18805 * include/grub/serial.h (grub_serial_port): New field broken.
18806
1eb01cd2
RM
188072010-10-16 Robert Millan <rmh@gnu.org>
18808
18809 * grub-core/kern/emu/misc.c
18810 (grub_make_system_path_relative_to_its_root): Fix premature return
18811 when processing non-root ZFS filesystems.
5f8b440b 18812 Reported by Sergio Talens-Oliag.
1eb01cd2 18813
2d5fed60
RM
188142010-10-15 Robert Millan <rmh@gnu.org>
18815
18816 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
18817 guarantee compressed ones are processed first.
18818
d0f4c1ea
VS
188192010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
18820
18821 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
18822 grub_efiemu_autocore.
18823
d87c681f
VS
188242010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
18825
18826 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
18827 rather than 0x1b.
18828 (grub_console_getkey): Use correct jae opcode rather than ja.
18829
219b3564
RM
188302010-10-12 Robert Millan <rmh@gnu.org>
18831
18832 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
18833 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
18834 variable. All references updated.
18835
18836 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
18837
20c6bb7e
VS
188382010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
18839
18840 Correctly distinguish mdraid flavours.
18841
18842 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
18843 (insert_array): New argument raid.
18844 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
18845 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
18846 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
18847
74baff84
VS
188482010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
18849
18850 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
18851 handling of special keys.
18852
3ef068df 188532010-10-02 Aleš Nesrsta <starous@volny.cz>
18854
c7980ad9
VS
18855 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
18856 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 18857
a9455194 188582010-10-02 Aleš Nesrsta <starous@volny.cz>
18859
c7980ad9
VS
18860 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
18861 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
18862 users updated.
a9455194 18863 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 18864 Use right endpoint when querying descriptor.
a9455194 18865
441cfe65
VS
188662010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 Clear out 0x80 color bit on EFI.
18869 Tested by: decoder
18870 Reported by: decoder and meta tech.
18871
18872 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
18873 (grub_console_setcolorstate): Clear out 0x80 bit.
18874 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
18875 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
18876 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
18877
bf26bcc4
VS
188782010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
18879
18880 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
18881 Set to "auto".
18882
6e3c515d
VS
188832010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18884
18885 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
18886 mo_file after freeing.
18887
e6d983ba
VS
188882010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18889
18890 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
18891
74ccb5b5
VS
188922010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18893
18894 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
18895 flags.
18896
17821956
VS
188972010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18898
18899 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
18900 usage.
18901
ee74fa48
VS
189022010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18903
18904 Put terminfo into core on ieee1275 and yeeloong (needed for console).
18905
18906 * gentpl.py: New groups terminfoinkernel and terminfomodule.
18907 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
18908 and terminfo.h when needed.
18909 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
18910 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
18911 (terminfo): Enable only on terminfokernel.
18912 (extcmd): Likewise.
18913 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
18914 * include/grub/lib/arg.h: Likewise.
18915 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
18916 incorrect usage of ->.
18917
aa438e68
VS
189182010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18919
18920 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
18921 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
18922
57994012
VS
189232010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18924
18925 Fix coreboot compilation.
18926
18927 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18928 Take VBE info into account even if only text is supported.
18929 (fill_vbe_info): Take into account the case when only VGA text
18930 is supported.
18931 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
18932 on coreboot, multiboot and qemu.
18933
2a406611
VS
189342010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18935
18936 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
18937 debug messages.
18938 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
18939
d33613fc
VS
189402010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18941
18942 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
18943 parameters.
18944
44a1b432
VS
189452010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18946
18947 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
18948 if they were BSD-style.
18949
edde54e6
VS
189502010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18951
18952 * grub-core/boot/i386/pc/lnxboot.S: Replace
18953 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
18954 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
18955
b65830fa
VS
189562010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18957
18958 Write embedding zone using Reed-Solomon.
18959
18960 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
18961 * grub-core/Makefile.am (rs_decoder.S): New target.
18962 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
18963 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
18964 (multiboot): Move to RS part.
18965 (post_reed_solomon): New label.
18966 (grub_boot_drive): Move to non-RS part since it's modified in memory
18967 on boot.
18968 Include rs_decoder.S.
18969 * grub-core/lib/reed_solomon.c: New file.
18970 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
18971 New definition.
18972 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
18973 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
18974 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
18975 * include/grub/partition.h (grub_partition_map): Change prototype of
18976 embed to allow returning additional sectors.
18977 * include/grub/reed_solomon.h: New file.
18978 * util/grub-setup.c (setup): Handle Reed-Solomon.
18979
0b4b227f
CW
189802010-09-28 Colin Watson <cjwatson@ubuntu.com>
18981
18982 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
18983 i386 and x86-64 definedness tests.
18984
f772623b
YB
189852010-09-27 Yves Blusseau <blusseau@zetam.org>
18986
18987 Fix generation of kernel_syms.lst
18988
18989 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
18990 ASM_PREFIX
18991
8e57a6ca
RM
189922010-09-26 Robert Millan <rmh@gnu.org>
18993
18994 Support degraded ZFS arrays in "grub-probe -t device" resolution.
18995
18996 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
18997 the pool is an array of devices, iterate through it and return the
18998 first device that passes a stat() test (instead of blindly returning
18999 the first one).
19000
f9130836
RM
190012010-09-26 Robert Millan <rmh@gnu.org>
19002
19003 Build fixes for GNU/kFreeBSD.
19004
19005 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
19006 to programs that require ZFS conversion.
19007 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
19008 kernels that don't have FLOPPY_MAJOR.
19009
96510faf
BC
190102010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19011
19012 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
19013
449333eb
BC
190142010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19015
19016 Fix grub-emu build.
19017
19018 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
19019 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
19020 mdraid09 and mdraid1x.
19021
e1fd1939
CW
190222010-09-24 Colin Watson <cjwatson@ubuntu.com>
19023
19024 Re-enable grub-extras.
19025
19026 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
19027 avoid confusing Automake. Run autogen only twice, once for the top
19028 level and once for grub-core. Add Makefile.util.def and
19029 Makefile.core.def from extra modules to the appropriate autogen
19030 invocations. If Makefile.common exists in an extra module, include
19031 it in both Makefile.util.am and grub-core/Makefile.core.am;
19032 similarly, include any Makefile.util.common file in Makefile.util.am
19033 and any Makefile.core.common file in grub-core/Makefile.core.am.
19034 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
19035 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
19036 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
19037 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
19038
19039 * gentpl.py (gvar_add): Turn GVARS into a set.
19040 (global_variable_initializers): Sort global variables on output.
19041 (vars_init): New function.
19042 (first_time): Likewise.
19043 (library): Ensure that non-global variable initialisations are
19044 emitted before the first time we emit code for a library block.
19045 Append to variables rather than setting them. Only emit
19046 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
19047 each conditional path.
19048 (program): installdir() emits an Autogen macro, so must be passed to
19049 var_add rather than gvar_add.
19050 (data): Likewise.
19051 (script): Likewise.
19052 (rules): New function, centralising handling for different target
19053 types. Set up Guile association lists for first_time and vars_init,
19054 and send most output to a diversion so that variable initialisations
19055 can be emitted first.
19056 (module_rules): Use new rules function.
19057 (kernel_rules): Likewise.
19058 (image_rules): Likewise.
19059 (library_rules): Likewise.
19060 (program_rules): Likewise.
19061 (script_rules): Likewise.
19062 (data_rules): Likewise.
19063
19064 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
19065
19066 * .bzrignore: Add contrib and grub-core/contrib. Remove
19067 grub-core/Makefile.gcry.am.
19068
1d12cf29
YB
190692010-09-24 Yves Blusseau <blusseau@zetam.org>
19070
19071 * grub-core/lib/LzFind.c: Add missing include.
19072 * grub-core/lib/LzmaEnc.c: Likewise.
19073 * grub-core/script/lexer.c: Likewise.
19074 * grub-core/script/yylex.l: Likewise.
19075 * util/grub-macho2img.c: Likewise.
19076 * util/grub-menulst2cfg.c: Likewise.
19077 * util/grub-mklayout.c: Likewise.
19078 * util/grub-mkpasswd-pbkdf2.c
19079 * util/grub-mkrelpath.c: Likewise.
19080 * util/resolve.c: Likewise.
19081
dd363028
BC
190822010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
19083
19084 * Makefile.util.def (example_unit_test): Add
19085 grub-core/gnulib/libgnu.a.
19086
f5a109e2
GS
190872010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
19088
19089 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
19090
6d0fa83c
VS
190912010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
19092
19093 Support xz compression on yeeloong.
19094
19095 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
19096 * configure.ac: Check for LZMA.
19097 * grub-core/Makefile.core.def (xz_decompress): New target.
19098 (none_decompress): Likewise.
19099 * grub-core/boot/decompressor/minilib.c: New file.
19100 * grub-core/boot/decompressor/none.c: Likewise.
19101 * grub-core/boot/decompressor/xz.c: Likewise.
19102 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
19103 * grub-core/kern/mips/cache_flush.S: Likewise.
19104 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
19105 * grub-core/kern/mips/startup.S: Move first stage to ...
19106 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
19107 nomacro.
19108 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
19109 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
19110 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
19111 Allocate statically.
19112 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
19113 Allocate statically or use scratch. Don't check CRC32.
19114 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
19115 Allocate statically. Don't check CRC32.
19116 * include/grub/decompressor.h: New file.
19117 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
19118 Removed.
19119 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
19120 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
19121 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
19122 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
19123 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
19124 * util/grub-mkimage.c (grub_compression_t): New type.
19125 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
19126 (image_target_desc): New field default_compression.
19127 (image_targets): Adjust yeeloong targets.
19128 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
19129 (compress_kernel): New parameter comp.
19130 (generate_image): Likewise. Handle new compression case.
19131 (options): New option --compression
19132 (help): Likewise.
19133 (main): Handle new option.
19134
1b655af6
GS
191352010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
19136
19137 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
19138
8f03f0b5
CW
191392010-09-22 Colin Watson <cjwatson@ubuntu.com>
19140
19141 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19142 typo in __i386__ conditional.
19143
7835dfd3
VS
191442010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19145
19146 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
19147 include.
19148
e255597e
VS
191492010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19150
6d0fa83c 19151 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
19152
19153 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
19154 new tags as supported.
19155 (acpiv2_size): New function.
19156 (grub_multiboot_get_mbi_size): Take new tags into account.
19157 (grub_multiboot_make_mbi): Add new tags.
19158 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 19159
6cc14051 191602010-09-21 Aleš Nesrsta <starous@volny.cz>
19161
19162 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
19163 Added missing configuration of USB device.
19164
df7769d8
CW
191652010-09-21 Colin Watson <cjwatson@ubuntu.com>
19166
19167 * grub-core/normal/menu_entry.c (run): Make sure we always return
19168 a value.
19169
b031012d
CW
191702010-09-21 Colin Watson <cjwatson@ubuntu.com>
19171
19172 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
19173 NumberOfPages is UINT64 according to the UEFI specification, not
19174 UINTN. Fix printf format.
19175
174de8f3
CW
191762010-09-21 Colin Watson <cjwatson@ubuntu.com>
19177
19178 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
19179 `err' to grub_usb_err_t.
19180 Reported and tested by: KESHAV P.R.
19181
d7dbe923
CW
191822010-09-21 Colin Watson <cjwatson@ubuntu.com>
19183
19184 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
19185 tpart non-const, so that we can assign to it. (Since this is a
19186 typedef, the constness refers to the pointer rather than what it
19187 points to.)
19188
8d5e2af3
CW
191892010-09-21 Colin Watson <cjwatson@ubuntu.com>
19190
19191 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
19192 $(top_srcdir)/grub-core/gnulib as well as
19193 $(top_builddir)/grub-core/gnulib.
19194 Reported by: KESHAV P.R.
19195
5c527783
CW
191962010-09-21 Colin Watson <cjwatson@ubuntu.com>
19197
19198 * util/grub-install.in: Fix the bootloader ID option to be
19199 consistently --bootloader-id, not --bootloader_id.
19200 Reported by: KESHAV P.R.
19201
d309a16e
CW
192022010-09-21 Colin Watson <cjwatson@ubuntu.com>
19203
19204 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
19205 check hash checksum." consistently translatable.
19206
b830cd16
YB
192072010-09-21 Yves Blusseau <blusseau@zetam.org>
19208
19209 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
19210 $(top_builddir).
19211
c4fe27a8
CW
192122010-09-21 Colin Watson <cjwatson@ubuntu.com>
19213
19214 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
19215 (GRUB_MOD_INIT): Register sha1sum command.
19216 (GRUB_MOD_FINI): Unregister sha1sum command.
19217
a4c1d277
YB
192182010-09-21 Yves Blusseau <blusseau@zetam.org>
19219
19220 Keep boot and grub directory names in sync with utils scripts
19221
19222 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
19223 * config.h.in: Add previous macros.
19224 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
19225 * util/grub-install.in: Use $bootdir and $grubdir variables.
19226
4eff79d2
CW
192272010-09-21 Colin Watson <cjwatson@ubuntu.com>
19228
19229 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
19230 convert partition names to disk names if the new `convert' parameter
19231 is set.
19232 (grub_util_biosdisk_get_grub_dev): If opening the disk device
19233 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
19234 disk in its own right. This can happen with Xen disk images.
19235
934d7e44
YB
192362010-09-21 Yves Blusseau <blusseau@zetam.org>
19237
19238 * util/grub-editenv.c: Update strings to avoid warnings when generating
19239 grub.pot file.
19240 * util/grub-setup.c: Likewise.
934d7e44 19241
df3367cc
VS
192422010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19243
19244 * configure.ac: Change version to 1.99~beta0.
19245
77a94e98
VS
192462010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19247
19248 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
19249 Add BADRAM.
19250 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
19251 Likewise.
19252 * include/multiboot.h: Resynced with specification.
19253 * include/multiboot2.h: Likewise.
19254
269004c1
CW
192552010-09-21 Colin Watson <cjwatson@ubuntu.com>
19256
19257 Fix po directory handling.
19258
19259 * configure.ac: Create po/Makefile.in rather than po/Makefile.
19260 * grub-core/gnulib/Makefile.am: Import gettext module.
19261 * m4/gnulib-cache.m4: Likewise.
19262 * m4/gnulib-comp.m4: Likewise.
19263 * m4/gettext.m4: New file, from gnulib.
19264 * m4/glibc2.m4: Likewise.
19265 * m4/iconv.m4: Likewise.
19266 * m4/intdiv0.m4: Likewise.
19267 * m4/intl.m4: Likewise.
19268 * m4/intldir.m4: Likewise.
19269 * m4/intlmacosx.m4: Likewise.
19270 * m4/intmax.m4: Likewise.
19271 * m4/inttypes-pri.m4: Likewise.
19272 * m4/lcmessage.m4: Likewise.
19273 * m4/lib-ld.m4: Likewise.
19274 * m4/lib-link.m4: Likewise.
19275 * m4/lib-prefix.m4: Likewise.
19276 * m4/lock.m4: Likewise.
19277 * m4/nls.m4: Likewise.
19278 * m4/po.m4: Likewise.
19279 * m4/printf-posix.m4: Likewise.
19280 * m4/progtest.m4: Likewise.
19281 * m4/threadlib.m4: Likewise.
19282 * m4/uintmax_t.m4: Likewise.
19283 * m4/visibility.m4: Likewise.
19284 * po/Makefile.am: Remove.
19285 * po/Makefile.in.in: New file, from gettext.
19286 ($(DOMAIN).pot-update): Support POTFILES-shell.
19287 * po/Makevars: New file.
19288 * po/POTFILES-shell: Rename to ...
19289 * po/POTFILES-shell.in: ... this. Update.
19290 * po/POTFILES: Rename to ...
19291 * po/POTFILES.in: ... this. Update.
19292 * po/Rules-quot: New file, from gettext.
19293 * po/boldquot.sed: Likewise.
19294 * po/en@boldquot.header: Likewise.
19295 * po/en@quot.header: Likewise.
19296 * po/insert-header.sin: Likewise.
19297 * po/quot.sed: Likewise.
19298 * po/remove-potcdate.sin: Likewise.
19299
3e0fa5d0
VS
193002010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19301
19302 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
19303
ade9bd66
VS
193042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19305
19306 * util/grub.d/20_linux_xen.in: Use submenus.
19307
fc55cc4c
VS
193082010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19309
19310 Support submenus.
19311
19312 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
19313 parameter submenu. All users updated.
19314 * grub-core/normal/main.c (free_menu): Rename to ...
19315 (grub_normal_free_menu): ... this. Made global.
19316 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
19317 if requested.
19318 * grub-core/normal/menu_entry.c (screen): New field submenu.
19319 (make_screen): Set submenu.
19320 (run): Open new context if requested.
19321 * include/grub/menu.h (grub_menu_entry): New field submenu.
19322 * include/grub/normal.h (grub_normal_free_menu): New proto.
19323
600cedf7
VS
193242010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19325
19326 Menu entries extractor.
19327
19328 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
19329 variants.
19330 (GRUB_MOD_INIT): Register new variants.
19331 (GRUB_MOD_FINI): Unregister new variants.
19332 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
19333 into grub_cmd_legacy_source.
19334 (grub_cmd_legacy_source): Implement extractor variants.
19335 (GRUB_MOD_INIT): Register new variants.
19336 (GRUB_MOD_FINI): Unregister new variants.
19337 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
19338 as an extractor.
19339 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
19340 search as an extractor.
19341 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
19342 test as an extractor.
19343 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
19344 as an extractor.
19345 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
19346 (grub_env_new_context): New function.
19347 (grub_env_context_open): Likewise.
19348 (grub_env_extractor_open): Likewise.
19349 (grub_env_extractor_close): Likewise.
19350 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
19351 grub_extractor_level.
19352 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
19353 * include/grub/env.h (grub_env_extractor_open): New proto.
19354 (grub_env_extractor_close): Likewise.
19355 * include/grub/normal.h (grub_extractor_level): New external variable.
19356
7bda3a87
VS
193572010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19358
19359 Make cutmem accept a region specification.
19360 Suggested by: Samuel Thibault
19361
19362 * grub-core/mmap/mmap.c (parsemem): New function.
19363 (grub_cmd_cutmem): Handle new arguments.
19364
2ea57f88
VS
193652010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19366
19367 New command cutmem.
19368
19369 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
19370 (GRUB_MOD_INIT): Register new command.
19371 (GRUB_MOD_FINI): Unregister new command.
19372
74342e31
VS
193732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19374
19375 Support some annoying BSD and Minix subpartitions.
19376
19377 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
19378 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
19379 Properly handle concatenation.
19380 * grub-core/kern/device.c (grub_device_iterate): Likewise.
19381 * grub-core/normal/completion.c (iterate_partition): Likewise.
19382 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
19383 contain partition. All users updated.
19384 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
19385 struct.
19386 (grub_openbsdlabel_partition_map): Likewise.
19387 (bsdlabel_partition_map_iterate): Rename to ..
19388 (iterate_real): ... this. New arguments sector, freebsd and pmap.
19389 (bsdlabel_partition_map_iterate): New function.
19390 (netopenbsdlabel_partition_map_iterate): Likewise.
19391 (netbsdlabel_partition_map_iterate): Likewise.
19392 (openbsdlabel_partition_map_iterate): Likewise.
19393 (GRUB_MOD_INIT): Register new partmaps.
19394 (GRUB_MOD_FINI): Unregister new partmaps.
19395 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
19396 (grub_partition_msdos_iterate): ... this. All users updated.
19397 Don't support embedding other than in a minix partition.
19398 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
19399 proto.
19400 * include/grub/partition.h (grub_partition): New field msdostype.
19401 * util/grub-install.in: Handle openbsd and netbsd types being in
19402 part_bsd module.
19403
1e8d555b
VS
194042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19405
19406 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
19407
19408 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
19409 * grub-core/Makefile.core.def (mdraid): Renamed to ...
19410 (mdraid09): ... this.
19411 (mdraid1x): New module.
19412 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
19413 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
19414
899d8af4
VS
194152010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19416
19417 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
19418 vsprintf.
19419
40901acd
CW
194202010-09-20 Colin Watson <cjwatson@ubuntu.com>
19421
19422 * grub-core/commands/efi/lsefimmap.c: Correct header.
19423 * NEWS: Update.
19424
dfe3b247
CW
194252010-09-20 Colin Watson <cjwatson@ubuntu.com>
19426
19427 * util/grub-editenv.c (argp_parser): Don't pass translated strings
19428 as printf format strings; the translations might contain '%' which
19429 could cause a crash.
19430 (main): Likewise.
19431 * util/grub-fstest.c (argp_parser): Likewise.
19432 * util/grub-setup.c (argp_parser): Likewise.
19433 (main): Likewise.
19434
3286a4b4
VS
194352010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19436
19437 Use argp in grub-fstest.
19438
19439 * util/grub-fstest.c: Don't include getopt.h.
19440 Include argp.h.
19441 (root): New variable.
19442 (args_count): Likewise.
19443 (nparm): Likewise.
19444 (num_disks): Likewise.
19445 (images): Likewise.
19446 (cmd): Likewise.
19447 (debug_str): Likewise.
19448 (args): Likewise.
19449 (options): Transformed to argp.
19450 (usage): Removed.
19451 (main): Split argument parsing into ...
19452 (argp_parser): ... this. Changed to argp format.
19453 (argp): New variable.
19454 (main): Use argp_parse.
19455
3dccbe4b
TG
194562010-09-20 Tristan Gingold <gingold@free.fr>
194572010-09-20 Robert Millan <rmh.grub@aybabtu.com>
194582010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19459
19460 * grub-core/commands/efi/lsefimmap.c: New file.
19461 * grub-core/Makefile.core.def (lsefimmap): New module.
19462 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
19463
38c259a7
VS
194642010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19465
19466 Pause the execution (10s max) if any errors are displayed so the user
19467 has a chance to see them.
19468
19469 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
19470 (grub_print_error): Increment grub_err_printed_errors.
19471 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
19472 execution if any errors were displayed.
19473 (show_menu): Remove old code for pause.
19474 * grub-core/normal/menu_entry.c (run): Likewise.
19475 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
19476 users updated.
19477 (grub_normal_get_char_counter): Likewise.
19478 * include/grub/err.h (grub_err_printed_errors): New external variable.
19479 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
19480
f218b09c
VS
194812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19482
19483 Support multiboot VBE info.
19484
19485 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19486 Take VBE info into account.
19487 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
19488 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19489 Call fill_vbe_info when appropriate.
19490 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
19491 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
19492 as supported.
19493 (grub_multiboot_get_mbi_size): Take new tags into account.
19494 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
19495 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19496 Call fill_vbe_tag when appropriate.
19497 (grub_multiboot_make_mbi): Properly align tags.
19498 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
19499 function.
19500 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
19501 proto.
19502 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
19503
a9cc5438
VS
195042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19505
19506 Suport manual terminal geometry specification.
19507
19508 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
19509 Save state in grub_ofconsole_terminfo_output.
19510 (grub_ofconsole_term): Use grub_terminfo_getwh.
19511 (grub_ofconsole_getwh): Removed.
19512 * grub-core/term/serial.c (grub_serial_getwh): Removed.
19513 (grub_serial_term): Use grub_terminfo_getwh.
19514 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
19515 (options): New struct.
19516 (OPTION_*): New enum.
19517 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
19518 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
19519 width and height.
19520 (grub_terminfo_getwh): New proto.
19521 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
19522
1a8fed20
VS
195232010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19524
19525 Handle legacy "terminal" command.
19526
19527 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
19528 and FLAG_TERMINAL.
19529 (legacy_commands): Add terminal and title.
19530 (grub_legacy_parse): Handle terminal. Simplify title handling.
19531
41e9c57d
VS
195322010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19533
19534 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
19535 parameters overflow.
19536
61c874c5
CW
195372010-09-20 Colin Watson <cjwatson@ubuntu.com>
19538
19539 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
19540 widthspec.h.
19541
19542 * docs/grub.texi (Shell-like scripting): Document `!'.
19543 (Network): Simplify using new i386-pc-pxe format. Mention
19544 grub-mknetdir.
19545
19546 * NEWS: Update.
19547
943682b4
CW
195482010-09-20 Colin Watson <cjwatson@ubuntu.com>
19549
19550 * Makefile.am (SUBDIRS): Restore "."; it's important to force
19551 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
19552 when needed.
19553
6d3d698d
CW
195542010-09-20 Colin Watson <cjwatson@ubuntu.com>
19555
19556 * grub-core/commands/efi/lsefisystab.c: Correct header.
19557 * grub-core/commands/efi/lssal.c: Likewise.
19558 * grub-core/commands/testload.c: Likewise.
19559
c982589f
CW
195602010-09-20 Colin Watson <cjwatson@ubuntu.com>
19561
19562 * util/grub-mkrescue.in: Add explicit root argument to --set to
19563 prevent the UUID being interpreted as an argument to --set (matches
19564 previous change to prepare_grub_to_access_device).
19565
a63c31b6
CW
195662010-09-20 Colin Watson <cjwatson@ubuntu.com>
19567
19568 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
19569 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
19570 the verbosity of later #ifs.
19571 (find_partition_start): Define this function on FreeBSD too.
19572 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
19573 function.
19574 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
19575 on FreeBSD.
19576
6439b8ee
YB
195772010-09-20 Yves Blusseau <blusseau@zetam.org>
19578
19579 * util/grub-editenv.c: Use argp instead of getopt.
19580
c5930ec8
YB
195812010-09-20 Yves Blusseau <blusseau@zetam.org>
19582
19583 * util/grub-setup.c: Use argp instead of getopt.
19584
15c69261
YB
195852010-09-20 Yves Blusseau <blusseau@zetam.org>
19586
19587 Use gnulib-tool to create gnulib source files.
19588
19589 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
19590 grub-core/gnulib directories
19591 * .bzignore: Add **/.deps and autogenerated gnulib files
19592 * configure.ac: Assign auxiliary directory to build-aux, add invocation
19593 of gnulib macros, add grub-core/gnulib/Makefile
19594 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
19595 include m4 directory to aclocal.
19596 * Makefile.util.def: Remove direct compilation of gnulib source files
19597 and use the new grub-core/gnulib/libgnu.a.
19598 * build-aux/config.rpath: move config.rpath from top directory to
19599 build-aux
19600 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
19601 in gnulib headers
19602 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
19603 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
19604 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
19605 header.
19606 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
19607 string.
19608
e511c9f5
YB
196092010-09-20 Yves Blusseau <blusseau@zetam.org>
19610
19611 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
19612 grub-core/genmod.sh and grub-core/gensyminfo.sh
19613
c2dede05
BC
196142010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
19615
19616 Add a test for echo command options.
19617
19618 * tests/grub_cmd_echo.in: New test.
19619 * Makefile.util.def: Rules for new test.
19620
c55f5018
SJ
196212010-09-20 Szymon Janc <szymon@janc.net.pl>
19622
19623 Remove crc.mod and move crc command to hashsum.mod.
19624 Remove lib/crc.c - users updated to use gcrypt implementation.
19625
19626 * grub-core/commands/crc.c: Removed.
19627 * grub-core/Makefile.core.def (crc): Module removed.
19628 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
19629 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
19630 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
19631 * grub-core/lib/crc.c: Removed.
19632 * include/grub/lib/crc.h: Removed.
19633 * Makefile.util.def (crc): Remove lib/crc.c
19634 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
19635 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
19636 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
19637 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
19638 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
19639 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
19640
e0337366
VS
196412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19642
19643 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
19644
742f9232
VS
196452010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19646
19647 Split config.h for util and core.
19648
19649 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
19650 (ADDR32): Likewise.
19651 (DATA32): Likewise.
19652 (BSS_START_SYMBOL): Likewise.
19653 (END_SYMBOL): Likewise.
19654 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
19655 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
19656 * config.h.in: New file.
19657 * configure.ac: Use config-util.h as config define file.
19658 Rename MACHINE into GRUB_MACHINE. All users updated.
19659 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
19660 updated.
19661 (NESTED_FUNC_ATTR): Likewise.
19662 Substitue new variables.
19663 (COND_HAVE_ASM_USCORE): New conditional.
19664 * grub-core/Makefile.am (ASM_PREFIX): New variable.
19665 (kernel_syms.lst): Use ASM_PREFIX.
19666 * grub-core/kern/emu/console.c: Include config-util.h.
19667 * grub-core/kern/emu/misc.c: Likewise.
19668 * grub-core/kern/emu/mm.c: Likewise.
19669 * include/grub/emu/misc.h: Likewise.
19670 * include/grub/libgcc.h: Likewise.
19671
39feb0e8
VS
196722010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19673
19674 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
19675 constants usage.
19676 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
19677 Fix GRUB_TERM_KEY_* constants usage.
19678 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
19679
9af6dac3
VS
196802010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19681
19682 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
19683 print pointer.
19684 * grub-core/bus/usb/uhci.c: Remove empty define.
19685 (grub_uhci_check_transfer): Add missing cast.
19686 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
19687 print pointer.
19688 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
19689 PRIuGRUB_SIZE.
19690 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
19691
d6d94820
VS
196922010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19693
19694 * grub-core/Makefile.core.def (legacycfg): Add
19695 lib/i386/pc/vesa_modes_table.c on emu.
19696
3572f2b6
BC
196972010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
19698
19699 Reduce number of temporary files generated by build system.
19700
19701 * grub-core/gencmdlist.sh: Removed.
19702 * grub-core/genfslist.sh: Removed.
19703 * grub-core/genhandlerlist.sh: Removed.
19704 * grub-core/genmodsrc.sh: Removed.
19705 * grub-core/genpartmaplist.sh: Removed.
19706 * grub-core/genparttoollist.sh: Removed.
19707 * grub-core/gentermiinallist.sh: Removed.
19708 * grub-core/genvideolist.sh: Removed.
19709
19710 * grub-core/genmod.sh.in: New file.
19711 * grub-core/gensyminfo.sh.in: New file.
19712
19713 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
19714 * conf/Makefile.extra-dist: Update with new files.
19715 * gentpl.py: Remove rules related to unnecessary temporary files.
19716 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
19717 and und-* files.
19718 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
19719 genmod.sh scripts.
19720 * grub-core/bus/usb/uhci.c: Remove empty #define.
19721 * grub-core/genmoddep.awk: Updated with new syminfo format.
19722 * util/bash-completion.d/Makefile.am: Add config.log to
19723 CLEANFILES.
19724
c836b030
YB
197252010-09-19 Yves Blusseau <blusseau@zetam.org>
19726
19727 * Makefile.util.def: Add forgotten $(LIBINTL) library.
19728
2f4e8053
BC
197292010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
19730
19731 * util/grub-mkconfig.in: Check the config script for syntax errors
19732 before saving.
19733
75831c34
CW
197342010-09-19 Colin Watson <cjwatson@ubuntu.com>
197352010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19736
19737 * Makefile.util.def (grub-install): Use util/grub-install.in on all
19738 platforms.
19739 * util/grub-install.in: Add EFI and IEEE1275 support.
19740 * util/i386/efi/grub-install.in: Removed.
19741 * util/ieee1275/grub-install.in: Likewise.
19742
eaf41b25
VS
197432010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19744
19745 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
19746 (grub_cmd_cmosclean): Likewise.
19747 (GRUB_MOD_INIT): Register command cmosclean.
19748 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
19749 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
19750
1a9130dd
CPE
197512010-09-18 Carles Pina i Estany <carles@pina.cat>
197522010-09-18 Aleš Nesrsta <starous@volny.cz>
197532010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19754
19755 Add keyboard layouts support.
19756
19757 * Makefile.util.def (grub-mklayout): New file.
19758 (grub-kbdcomp): New script.
19759 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
19760 Add keyboard_layouts.h.
19761 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
19762 commands/boot.c on yeeloong.
19763 (keylayouts): New module.
19764 * grub-core/bus/usb/ohci.c
19765 * grub-core/bus/usb/uhci.c
19766 * grub-core/bus/usb/usbhub.c (rescan): New variable.
19767 (grub_usb_add_hub): Poll interrupt pipe for device handling.
19768 (attach_root_port): Likewise.
19769 (poll_nonroot_hub): Likewise.
19770 (grub_usb_poll_devices): Likewise.
19771 (detach_device): Close transfer.
19772 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
19773 function.
19774 (grub_usb_bulk_setup_readwrite): Likewise.
19775 (grub_usb_bulk_finish_readwrite): Likewise.
19776 * grub-core/commands/keylayouts.c: New file.
19777 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
19778 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
19779 aliases.
19780 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
19781 support scancode 2.
19782 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
19783 * include/grub/keyboard_layouts.h: New file.
19784 * util/grub-mklayout.c: New file.
19785 * util/grub-kbdcomp.in: Likewise.
19786
a1d84a5e
VS
197872010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19788
19789 Unify memory types.
19790
19791 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
19792 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
19793 types.
19794 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
19795 (grub_upper_mem): Likewise.
19796 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
19797 * include/grub/memory.h (grub_memory_type_t): New enum.
19798 All users updated.
19799
9696382e
VS
198002010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19801
19802 * grub-core/Makefile.core.def (lsapm): New module.
19803 * grub-core/commands/i386/pc/lsapm.c: New file.
19804 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
19805 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
19806 Likewise.
19807 * include/grub/i386/pc/apm.h: New file.
19808 * include/multiboot.h (multiboot_apm_info): New struct.
19809
198102010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19811
19812 GRUB-legacy configuration file support.
19813
19814 * Makefile.util.def (grub-menulst2cfg): New util.
19815 * docs/man/grub-menulst2cfg.h2m: New file.
19816 * grub-core/Makefile.core.def (legacycfg): New module.
19817 * grub-core/commands/legacycfg.c: New file.
19818 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
19819 (grub_normal_add_menu_entry): ... this.
19820 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
19821 (grub_normal_set_password): ...this.
19822 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
19823 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
19824 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
19825 * grub-core/lib/legacy_parse.c: New file.
19826 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
19827 * include/grub/i386/pc/vesa_modes_table.h: New file.
19828 * include/grub/legacy_parse.h: Likewise.
19829 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
19830 * util/grub-menulst2cfg.c: New file.
19831
bf8d1338
CW
198322010-09-17 Colin Watson <cjwatson@ubuntu.com>
19833
19834 * grub-core/kern/emu/hostdisk.c
19835 (convert_system_partition_to_system_disk): Initialise node.
19836
9c0bad2e
CW
198372010-09-17 Colin Watson <cjwatson@ubuntu.com>
19838
19839 * grub-core/kern/emu/hostdisk.c
19840 (convert_system_partition_to_system_disk): Fix devmapper memory pool
19841 leak.
19842 Reported and based on patch by: Modestas Vainius.
19843
a939d135
CW
198442010-09-17 Colin Watson <cjwatson@ubuntu.com>
19845
19846 Fix DM-RAID probing with recent versions of device-mapper udev
19847 rules.
19848
19849 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
19850 canonicalise device paths under /dev/mapper/.
19851 (convert_system_partition_to_system_disk): Compare the
19852 uncanonicalised path to /dev/mapper/ rather than the canonicalised
19853 path, since device nodes under /dev/mapper/ are often symlinks.
19854
0f7ee3c9
YB
198552010-09-17 Yves Blusseau <blusseau@zetam.org>
19856
19857 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
19858
10854d0d
YB
198592010-09-16 Yves Blusseau <blusseau@zetam.org>
19860
19861 * configure.ac: Avoid some annoying error messages if freetype-config
19862 program is not found.
19863
108538d8
CW
198642010-09-16 Colin Watson <cjwatson@ubuntu.com>
19865
19866 Support RAID on virtio devices, and others.
19867
19868 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
19869 Rename to ...
19870 [__MINGW32__] (grub_find_device): ... this.
19871 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
19872 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
19873 reasonable default if dir is NULL.
19874 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
19875 ...
19876 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
19877 (grub_guess_root_device): Update callers.
19878 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
19879
19880 * util/raid.c (grub_util_getdiskname): Remove.
19881 (grub_util_raid_getmembers): Use grub_find_device rather than
19882 grub_util_getdiskname.
19883
e5bfc130
CW
198842010-09-16 Colin Watson <cjwatson@ubuntu.com>
19885
19886 * docs/grub.texi (serial): Remove obsolete comment about GRUB
19887 needing to be compiled with serial support.
19888 (ls): Indicate that multiple files are accepted.
19889 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
19890 indicate that multiple files are accepted.
19891
be458ae2
CW
198922010-09-16 Colin Watson <cjwatson@ubuntu.com>
19893
19894 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
19895 libgrub_a_init.c, and util/bash-completion.d/grub.
19896
cb731b5e
VS
198972010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19898
19899 * util/grub-setup.c (setup): Fix incorrect container semantics.
19900
35139e8a
VS
199012010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19902
19903 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
19904 misusage.
19905 Reported by: J. Nick Terry
19906
e50fca4a
VS
199072010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19908
19909 Move embedding routines to partmap sources files.
19910
19911 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
19912 [GRUB_UTIL]: New variable.
19913 (gpt_partition_map_iterate): Set part.parent.
19914 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
19915 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
19916 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
19917 New function.
19918 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
19919 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
19920 (grub_partition_map) [GRUB_UTIL]: New field embed.
19921 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
19922 (setup): Use ->embed.
19923
f00478b7
VS
199242010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19925
19926 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
19927 function.
19928 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
19929 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
19930
2b94e3ff
YB
199312010-09-15 Yves Blusseau <blusseau@zetam.org>
19932
19933 Add function to get completions from usage.
19934
19935 * util/bash-completion.d/grub-completion.bash.in: Add function to get
19936 completions from usage. Use LC_ALL=C to get options properly.
19937
2e04a006
VS
199382010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19939
19940 * grub-core/gnulib/basename-lgpl.c: Imported.
19941 * grub-core/gnulib/basename.c: Likewise.
19942 * grub-core/gnulib/dirname-lgpl.c: Likewise.
19943 * grub-core/gnulib/dirname.c: Likewise.
19944 * grub-core/gnulib/dirname.h: Likewise.
19945 * grub-core/gnulib/stripslash.c: Likewise.
19946
5dcdf93a
VS
199472010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19948
19949 * grub-core/gnulib/error.c: Resynced.
19950 * grub-core/gnulib/getopt.c: Likewise.
19951 * grub-core/gnulib/getopt_int.h: Likewise.
19952 * grub-core/gnulib/regex.h: Likewise.
19953 * grub-core/gnulib/regex_internal.c: Likewise.
19954 * grub-core/gnulib/regex_internal.h: Likewise.
19955
014f47b7
SJ
199562010-09-15 Szymon Janc <szymon@janc.net.pl>
19957
19958 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
19959 CRC calculations and validity checks.
19960 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
19961 calculations.
19962
dd521a4a
SJ
199632010-09-15 Szymon Janc <szymon@janc.net.pl>
19964
19965 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
19966
79c4eeb9
VS
199672010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19968
19969 Fix incorrect echo options handling.
19970 Reported by: Yves Blusseau.
19971
19972 * include/grub/command.h (grub_command_flags_t): New flags
19973 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
19974 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
19975 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
19976
ed80f7d5
VS
199772010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19978
19979 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
19980 users updated.
19981 (GRUB_COMMAND_FLAG_MENU): Likewise.
19982 (GRUB_COMMAND_FLAG_BOTH): Likewise.
19983 (GRUB_COMMAND_FLAG_TITLE): Removed.
19984 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
19985 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
19986 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
19987 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
19988 (grub_command_flags_t): New enum. All users updated.
19989
5fe7620a
SG
199902010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
19991
19992 Fix solaris compilation.
19993
19994 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
19995 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
19996 (grub-emu-list): Likewise.
19997
545b752f
VS
199982010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19999
20000 Remove deprecated root command.
20001
20002 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
20003 updated.
20004
6c1a338c
VS
200052010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20006
20007 * util/i386/pc/grub-setup.c: Merge this ...
20008 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
20009 * util/grub-setup.c: ... into this.
20010 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
20011 New struct.
20012
200132010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20014
20015 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
20016 possible.
20017
d2ea4551
VS
200182010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20019
20020 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
20021 allocate p.
20022
3c3b5040
VS
200232010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20024
20025 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
20026 explicit root argument to set to prevent UUID to be interpreted as
20027 argument to set.
20028
b71c3fae
VS
200292010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20030
20031 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
20032
275433e6
VS
200332010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20034
20035 Don't export grub_gate_a20.
20036
20037 * grub-core/kern/i386/pc/init.c: Remove leftovers.
20038 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
20039 to ...
20040 (grub_gate_a20): ... this. All users updated.
20041 * include/grub/i386/pc/init.h: Removed. All users updated.
20042
a5dbb1f1
VS
200432010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20044
20045 Create euro.pf2 which supports most European languages.
20046
20047 * Makefile.am (grubdata_DATA): Add euro.pf2.
20048 (euro.pf2): New target.
20049 (CLEANFILES): Add euro.pf2.
20050
62a747cb
VS
200512010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20052
20053 * configure.ac: Disable emu-usb by default to prevent inadvertent
20054 device takeover.
20055
608e43b1
VS
200562010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20057
20058 Disable usbserial on grub-emu since our libusb code isn't good enough
20059 yet.
20060
20061 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
20062 (usbserial_pl2303): Likewise.
20063 (usbserial_ftdi): Likewise.
20064
94564f81
VS
200652010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20066
20067 * include/grub/disk.h (grub_disk): Remove has_partitions.
20068 All users updated.
20069 * disk/loopback.c (grub_loopback): Remove has_partitions.
20070 All users updated.
20071 (options): Remove partitions. All users updated.
20072 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
20073 * util/i386/pc/grub-setup.c (setup): copy partition table only when
20074 actual partition table is found.
20075
3352800b
VS
200762010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20077
20078 Remove readability checks (too many false negatives).
20079
20080 * util/grub-install.in: Remove readability checks.
20081 * util/grub-mkconfig.in: Likewise.
20082 * util/grub.d/10_hurd.in: Likewise.
20083 * util/grub.d/10_kfreebsd.in: Likewise.
20084 * util/grub.d/10_linux.in: Likewise.
20085 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
20086 way.
20087
2419f17a
VS
200882010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20089
20090 Enable acpi shutdown on all ACPI platforms.
20091
20092 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
20093 on coreboo, multiboot and EFI.
20094 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
20095 (grub_acpi_halt): Likewise.
20096 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
20097 (grub_cmd_halt): Don't call grub_acpi_halt directly.
20098 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
20099 * grub-core/lib/i386/halt.c (grub_halt)
20100 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
20101
0575c7c3
VS
201022010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20103
20104 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
20105 context.
20106
54ac3cd1
VS
201072010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20108
20109 * grub-core/video/efi_gop.c: Fix over-80-chars line.
20110 * grub-core/video/efi_uga.c: Likewise.
20111
b2a30ac5
VS
201122010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20113
20114 Filter devaliases and never open same device twice.
20115
20116 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
20117 (last_ihandle): Likewise.
20118 (ofdisk_hash_ent): New member shortest.
20119 (ofdisk_hash_add): Add canonical path too.
20120 (scan): New function.
20121 (grub_ofdisk_iterate): Iterate over hashed entries.
20122 (compute_dev_path): Don't add :0.
20123 (grub_ofdisk_open): Don't really open the disk.
20124 (grub_ofdisk_close): Avoid closing unrelated disk.
20125 (grub_ofdisk_read): Implement reopen logic.
20126 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
20127 New function.
20128 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
20129 New proto.
20130
fb53b340
VS
201312010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20132
20133 Fix sparc64.
20134
20135 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
20136 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
20137 right address. Add sparc64_ieee1275_ldflags.
20138 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
20139 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
20140 to grub_host_to_target_addr
20141 (load_image): Likewise.
20142
f452b040
VS
201432010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20144
20145 * grub-core/normal/completion.c (complete_file): Handle device
20146 containing slash.
20147 Fix based on patch by Doug Nazar.
20148
9b5b2541
VS
201492010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20150
20151 grub-mknetdir script.
20152
20153 * Makefile.util.def (grub-mknetdir): New module.
20154 * tests/util/grub-shell.in: Support boot=net
20155 * util/grub-mknetdir.in: New file.
20156
9d2be652
VS
201572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20158
20159 videoinfo on non-vbe.
20160
20161 * grub-core/Makefile.core.def (vbeinfo): Removed.
20162 (vbetest): Removed.
20163 (videoinfo): New module.
20164 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
20165 * grub-core/commands/i386/pc/vbetest.c: Removed.
20166 * grub-core/commands/videoinfo.c: New file.
20167 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
20168 specification.
20169 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
20170 as vbetest.
20171 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
20172 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
20173 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
20174 mode_number. New parameter mode. All users updated.
20175 (grub_video_gop_iterate): New function.
20176 (grub_video_efi_gop): New member iterate.
20177 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
20178 (grub_vbe_set_video_mode): Remove setting useless fields.
20179 (vbe2videoinfo): New function.
20180 (grub_video_vbe_iterate): Likewise.
20181 (grub_video_vbe_setup): Use vbe2videoinfo.
20182 (grub_video_vbe_print_adapter_specific_info): New function.
20183 (grub_video_vbe_adapter): New fields iterate and
20184 print_adapter_specific_info.
20185 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
20186 All users updated.
20187 (grub_video_mode_info): New field mode_number.
20188 (grub_video_adapter): New fields iterate and
20189 print_adapter_specific_info.
20190
179503f5
TG
201912010-09-13 Tristan Gingold <gingold@free.fr>
201922010-09-13 Robert Millan <rmh.grub@aybabtu.com>
201932010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20194
20195 * grub-core/commands/efi/lsefisystab.c: New file.
20196 * grub-core/commands/efi/lssal.c: Likewise.
20197 * grub-core/Makefile.core.def (lsacpi): New module.
20198 (lsefisystab): Likewise.
20199 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
20200 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
20201 (grub_efi_sal_system_table): New struct.
20202 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
20203 (grub_efi_sal_system_table_memory_descriptor): Likewise.
20204 (grub_efi_sal_system_table_platform_features): Likewise.
20205 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
20206 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
20207 (grub_efi_sal_system_table_ap_wakeup): Likewise.
20208 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
20209
cf9827de
VS
202102010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20211
20212 Support explicit user claim that a device is BIOS-visible.
20213
20214 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
20215 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
20216 * grub-core/kern/emu/hostdisk.c
20217 (convert_system_partition_to_system_disk): Support mdX.
20218 (find_system_device): New parameter add. All users updated.
20219 (grub_util_biosdisk_is_present): New function.
20220 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
20221 proto.
20222
53f0eb1f
VS
202232010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20224
20225 Search hints support.
20226
20227 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
20228 All users updated.
20229
b23ffd70
YB
202302010-09-13 Yves Blusseau <blusseau@zetam.org>
20231
20232 Bash completion script for util commands
20233
20234 * Makefile.am: Add util/bash-completion.d directory
20235 * configure.ac: Likewise.
20236 * util/bash-completion.d/Makefile.am: New file.
20237 * util/bash-completion.d/grub-completion.bash.in: Likewise.
20238
d547dc28
VS
202392010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20240
20241 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
20242 (print_backlog): set backlog_ucs4 and backlog_glyphs.
20243 Reported by: Yves Blusseau.
20244
2fc8ccb9
VS
202452010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20246
20247 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
20248 partition size and offset.
20249
d8a84076
VS
202502010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20251
20252 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
20253
84fb3b3d
VS
202542010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20255
20256 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
20257
768ec2e2
VS
202582010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20259
20260 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
20261 (grub_xvasprintf): Likewise.
20262
4870900f
VS
202632010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20264
20265 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
20266
faca6bec
VS
202672010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20268
20269 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
20270 args ending with NULL.
20271
202722010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
20273
20274 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
20275 pointer.
20276
3c70f225
SJ
202772010-09-11 Szymon Janc <szymon@janc.net.pl>
20278
20279 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
20280
4df7996d
VS
202812010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20282
20283 Shutdown using ACPI.
20284
20285 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
20286 * grub-core/commands/acpihalt.c: New file.
20287 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
20288 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
20289 (grub_acpi_halt): New proto.
20290 (GRUB_ACPI_SLP_EN): New const.
20291 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
20292 (GRUB_ACPI_OPCODE_*): New enum.
20293 (GRUB_ACPI_EXTOPCODE_*): Likewise.
20294
126b4c32
TG
202952010-09-11 Tristan Gingold <gingold@free.fr>
202962010-09-11 Robert Millan <rmh.grub@aybabtu.com>
202972010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20298
20299 * commands/lsacpi.c: New file.
20300 * grub-core/Makefile.core.def (lsacpi): New module.
20301 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
20302 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
20303 (grub_acpi_madt_entry_header): New struct.
20304 (grub_acpi_madt): Likewise.
20305 (grub_acpi_madt_entry_interrupt_override): Likewise.
20306 (grub_acpi_madt_entry_sapic): Likewise.
20307 (grub_acpi_madt_entry_lsapic): Likewise.
20308 (grub_acpi_madt_entry_platform_int_source): Likewise.
20309 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
20310 (PRIuGRUB_UINT32_T): Likewise.
20311 (PRIxGRUB_UINT64_T): Likewise.
20312
1aa4fe88
VS
203132010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20314
20315 Implement loading palette on ieee1275_fb.
20316
20317 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
20318 (have_setcolors): Likewise.
20319 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
20320 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
20321 (grub_video_ieee1275_set_palette): Implement.
20322
25761e13
VS
203232010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
203242010-09-11 Colin Watson <cjwatson@ubuntu.com>
20325
20326 * util/grub-install.in (grub_partition): New variable.
20327 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
20328 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
20329 Fixes a bug reported by Yves Blusseau.
20330
050abaea
VS
203312010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20332
20333 Fix emu on mipsel.
20334
20335 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
20336 =grub_cpu_flush_cache on all mips and not only yeeloong.
20337 * configure.ac (COND_mips): New conditional.
20338 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
20339 platforms.
20340 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
20341 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
20342 [GRUB_LINKER_HAVE_INIT]: New function.
20343 (grub_emu_post_init): Likewise.
20344 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
20345 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
20346 * include/grub/cache.h (_mips): Include mips/cache.h.
20347 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
20348 LVM and RAID prototypes.
20349 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
20350 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
20351 function.
20352
5ed7d816
CW
203532010-09-10 Colin Watson <cjwatson@ubuntu.com>
20354
20355 * util/grub-install.in: Don't try to verify core.img until after
20356 running grub-mkimage to create it.
20357
90367e04
RM
203582010-09-10 Robert Millan <rmh@gnu.org>
20359
20360 * util/grub.d/10_hurd.in: Add misc readability checks.
20361 * util/grub.d/10_kfreebsd.in: Likewise.
20362 * util/grub.d/10_linux.in: Likewise.
20363
c452fa66
CW
203642010-09-10 Colin Watson <cjwatson@ubuntu.com>
20365
20366 * util/grub-install.in: ${imgext} won't be defined here until the
20367 install branch is merged. For the meantime, only verify core.img on
20368 i386-pc and sparc64-ieee1275 platforms.
20369
c38fe9f4
RM
203702010-09-10 Robert Millan <rmh@gnu.org>
20371
20372 Solaris support in grub_find_zpool_from_dir(). Thanks
20373 Seth Goldberg for referring to getextmntent() facility.
20374
20375 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
20376 `sys/mkdev.h'.
20377 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
20378 `<sys/mnttab.h>'.
20379 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
20380 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
20381 method for finding zpool name.
20382
905f7773
CW
203832010-09-10 Colin Watson <cjwatson@ubuntu.com>
20384
20385 grub-fstest needs the host and hostfs modules while other utilities
20386 actively require those modules to be absent, so grub-fstest needs
20387 its own initialisation and finalisation code.
20388
20389 * Makefile.am (grub_fstest.pp): New target.
20390 (grub_fstest_init.lst): Likewise.
20391 (grub_fstest_init.c): Likewise.
20392 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
20393
fb90b546
RM
203942010-09-10 Robert Millan <rmh@gnu.org>
20395
20396 * configure.ac: Check for `struct statfs.f_fstypename' and
20397 `struct statfs.f_mntfromname'.
20398
20399 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
20400 kFreeBSD-specific code.
20401
66d4bea5
RM
204022010-09-10 Robert Millan <rmh@gnu.org>
20403
20404 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
20405 on ZFS. Now non-main filesystems are supported as / too.
20406
b6a690ee
CW
204072010-09-09 Colin Watson <cjwatson@ubuntu.com>
20408
20409 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
20410 and grub-core/disk/host.c to ...
20411 (grub-fstest): ... here. Having the host disk implementation
20412 present confuses grub-probe and other utility programs.
20413
20414 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
20415 when writing to a file, not when writing to stdout.
20416
8901b00c 204172010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
20418
20419 * tests/partmap_test.in: New test for partitions.
20420 * Makefile.util.def: Rules for new test.
20421
7bf45fdd
RM
204222010-09-09 Robert Millan <rmh@gnu.org>
20423
20424 * util/grub-probe.c (probe): Fix a pair of unhandled error
20425 conditions.
20426
4dfbc574
RM
204272010-09-09 Robert Millan <rmh@gnu.org>
20428
20429 Basic Btrfs support (detection and UUID).
20430
20431 * grub-core/fs/btrfs.c: New file.
20432 * Makefile.util.def (library): Register btrfs.c.
20433 * grub-core/Makefile.core.def: Likewise.
20434
6b8e78ae
RM
204352010-09-08 Robert Millan <rmh@gnu.org>
20436
20437 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
20438 with (optional) parameters to specify device and relative path.
20439 * util/grub-install.in: Use is_path_readable_by_grub() to
20440 verify readability of a few critical files.
20441 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
20442 verify readability of grub.cfg.new.
20443
27f21a8b
VS
204442010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20445
20446 Split minix.mod into minix.mod and minix2.mod.
20447
20448 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
20449 * grub-core/Makefile.core.def (minix2): New module.
20450 * grub-core/fs/minix.c: Use definitions instead of runtime version
20451 checking.
20452 * grub-core/fs/minix2.c: New file.
20453
c0e53ea5
YB
204542010-09-08 Yves Blusseau <blusseau@zetam.org>
20455
20456 Add new --boot-directory option to replace --root-directory
20457
20458 * util/grub-install.in: Add new --boot-directory option
20459 * util/grub-reboot.in: Likewise.
20460 * util/grub-set-default.in: Likewise.
20461
b9fe6ea2
YB
204622010-09-08 Yves Blusseau <blusseau@zetam.org>
20463
20464 * util/grub-mkconfig.in: Use new variable.
20465
d87aedff
YB
204662010-09-08 Yves Blusseau <blusseau@zetam.org>
20467
20468 * configure.ac: Define some useful variables.
20469
e55e8495
VS
204702010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20471
20472 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20473 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
20474 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
20475 Use terminfo and don't use cursor-on/cursor-off unless it's known
20476 to work.
20477 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
20478 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
20479
6fa6d675
CW
204802010-09-08 Colin Watson <cjwatson@ubuntu.com>
20481
20482 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
20483 starts with "(,", fill the drive containing the loaded image in
20484 between those two characters, but expect that a full partition
20485 specification including partition map names will follow.
20486
92f2aef0
RM
204872010-09-08 Robert Millan <rmh@gnu.org>
20488
20489 * configure.ac: Remove `--enable-grub-fstest' option.
20490 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
20491
20492 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
20493 `grub-fstest' instead of `grub-probe' for readability verification.
20494 * util/grub-probe.c (probe): Remove readability verification kludge.
20495
99fd620d
RM
204962010-09-08 Robert Millan <rmh@gnu.org>
20497
20498 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
20499 initializing `GRUB_FS'.
20500
058e30ac 205012010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
20502
20503 Not command (!) support to GRUB script.
20504
20505 * tests/grub_script_not.in: New test.
20506 * Makefile.util.def: Rules for new test.
20507
20508 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
20509 ! command as a special case.
20510 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
20511
b61d05ed 205122010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20513
058e30ac 20514 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
20515 grub_free.
b61d05ed 20516
4d69c786 205172010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20518
20519 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
20520
aa3119c4 205212010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20522
20523 * docs/grub.texi (Shell-like scripting): Documentation for break,
20524 continue, shift and return commands.
20525
db0f7e3d
VS
205262010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
20527
20528 Rename CD-ROM to cd on BIOS.
20529
20530 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
20531 "cd".
20532 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
20533
88b87c93
VS
205342010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20535
20536 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
20537 * util/grub-probe.c (main): Likewise.
20538 * util/i386/pc/grub-setup.c (main): Likewise.
20539 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
20540 Reported and debugged by: alexxy
20541
294f324d
VS
205422010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20543
20544 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
20545 diagnostic info.
20546
d7ee3441
JS
205472010-09-05 Jo Shields <directhex@apebox.org>
20548
20549 * util/grub.d/30_os-prober.in: Add missing classes.
20550
d7e06c1f
VS
205512010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20552
20553 * docs/grub.texi (Theme file format): Document new position format.
20554
fc157e53
VS
205552010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20556
20557 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
20558 a table. Use @code instead of @verbatim.
20559
506e9a1c
CB
205602010-09-05 Colin D Bennett <colin@gibibit.com>
20561
20562 Gfxmenu documentation.
20563
20564 * docs/grub.texi (Theme file format): New chapter.
20565
f0aff67c
SJ
205662010-09-05 Szymon Janc <szymon@janc.net.pl>
20567
20568 * grub-core/Makefile.core.def (xzio): New module.
20569 * grub-core/io/xzio.c: New file.
20570 * grub-core/lib/xzembed/xz.h: New file (from xembed).
20571 * grub-core/lib/xzembed/xz_config.h: Likewise.
20572 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
20573 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
20574 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
20575 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
20576 * grub-core/lib/xzembed/xz_private.h: Likewise.
20577 * grub-core/lib/xzembed/xz_stream.h: Likewise.
20578 * include/grub/file.h (grub_file_filter_id): New compression filter
20579 GRUB_FILE_FILTER_XZIO.
20580
82a85062
VS
205812010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20582
20583 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
20584 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
20585 size.
20586
3579415d
VS
205872010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20588
20589 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
20590 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
20591
5124ae6d
VS
205922010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20593
20594 Uncompressed checksum support.
20595
20596 * grub-core/commands/hashsum.c (options): Add option --uncompress.
20597 (check_list): New parameter uncompress.
20598 (grub_cmd_hashsum): Handle --uncompress.
20599
9aadb3d1
VS
206002010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20601
20602 Reintroduce testload.
20603
20604 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
20605 from here ...
20606 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
20607 (GRUB_MOD_INIT): New function.
20608 (GRUB_MOD_FINI): Likewise.
20609 * grub-core/Makefile.core.def (testload): New module.
20610
a17792c3
SJ
206112010-09-05 Szymon Janc <szymon@janc.net.pl>
20612
20613 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
20614 (uint8_t): New type.
20615 (uint16_t): Likewise.
20616 (uint32_t): Likewise.
20617 (uint64_t): Likewise.
20618
b81e40a3
SJ
206192010-09-05 Szymon Janc <szymon@janc.net.pl>
20620
20621 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
20622
fc2ef117
VS
206232010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20624
20625 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
20626 Made static.
20627 (grub_gzfile_open): Removed. All users updated.
20628 (GRUB_MOD_INIT): New function.
20629 (GRUB_MOD_FINI): Likewise.
20630 * grub-core/kern/file.c (grub_file_filters_all): New variable.
20631 (grub_file_filters_enabled): Likewise.
20632 (grub_file_open): Handle filters.
20633 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
20634 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
20635 * include/grub/file.h (grub_file_filter_id_t): New type.
20636 (grub_file_filter_t): Likewise.
20637 (grub_file_filters_all): New extern variable.
20638 (grub_file_filters_enabled): Likewise.
20639 (grub_file_filter_register): New inline function.
20640 (grub_file_filter_unregister): Likewise.
20641 (grub_file_filter_disable): Likewise.
20642 (grub_file_filter_disable_compression): Likewise.
20643 * include/grub/gzio.h: Removed.
20644
35ee15e0
BC
206452010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20646
20647 Filename expansion support for wildcards in GRUB script.
20648
20649 * tests/grub_script_expansion.in: New test.
20650 * Makefile.util.def: Rule for new test.
20651
20652 * grub-core/commands/wildcard.c: New file, implements filename
20653 expansion support for GRUB script.
20654 * grub-core/Makefile.core.def: Rule update for regexp.mod.
20655 * grub-core/script/argv.c: Cosmetic changes.
20656 * grub-core/script/execute.c (grub_script_arglist_to_argv):
20657 Refactored to perform wildcard expansion on arguments.
20658 * include/grub/script_sh.h (grub_script_wildcard_translator): New
20659 struct.
20660
20661 * tests/util/grub-shell.in: Fix quoting for read input.
20662
5f0c4aca
BC
206632010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20664
20665 Support for updating environment variables with matched substrings
20666 of regexp.
20667
20668 * tests/grub_cmd_regexp.in: New test.
20669 * Makefile.util.def: Rule for new test.
20670
20671 * grub-core/commands/regexp.c: New option -s to update environment
20672 variables with regexp matches.
20673
3759a35f
SJ
206742010-09-04 Szymon Janc <szymon@janc.net.pl>
20675
20676 * include/grub/file.h (grub_file): New member not_easly_seekable.
20677 (grub_file_seekable): New inline function.
20678 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
20679 easily seekable.
20680 (grub_gzio_open): Set not_easly_seekable.
20681 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
20682 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
20683
ed8c6dec
BC
206842010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20685
20686 Support for options to appear multiple times on cmdline.
20687
20688 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
20689 * grub-core/commands/extcmd.c: Support for repeatable option.
20690 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
20691 repeatable option support.
20692
20693 Refactor menuentry into a regular command.
20694
20695 * grub-core/commands/menuentry.c: New file, menuentry command
20696 implementation.
20697 * grub-core/Makefile.core.def: Rule update for normal.mod.
20698 * grub-core/normal/main.c: Moved menuentry creation to
20699 grub-core/commands/menuentry.c.
20700 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
20701 (grub_menu_execute_entry_real): Removed.
20702 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
20703 function.
20704 (grub_script_execute_menuentry): Removed.
20705 * grub-core/script/parser.y (menuentry): Removed.
20706 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
20707 * grub-core/script/yylex.l (menuentry): Removed.
20708 * include/grub/menu.h (grub_menu_init): New prototype.
20709 (grub_menu_fini): New prototype.
20710 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
20711 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
20712 (grub_script_execute_sourcecode): New prototype.
20713
dacd0cf0
BC
207142010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20715
20716 "return" command for GRUB script functions.
20717
20718 * tests/grub_script_return.in: New test.
20719 * Makefile.util.def: Rules for new test.
20720
20721 * grub-core/script/execute.c (grub_script_return): New function.
20722 * grub-core/script/main.c: Register/unregister return commaond.
20723 * include/grub/script_sh.h (grub_script_return): New prototype.
20724
52e72f9d
BC
207252010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20726
20727 "setparams" command to update positional parameters.
20728
20729 * tests/grub_script_setparams.in: New test.
20730 * Makefile.util.def: Rules for new test.
20731
20732 * grub-core/script/argv.c (grub_script_argv_make): New function.
20733 * grub-core/script/execute.c (replace_scope): New function.
20734 (grub_script_setparams): New function.
20735 * grub-core/script/lexer.c: Remove unused variables.
20736 * grub-core/script/main.c: Register/unregister setparams command.
20737 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
20738 (grub_script_setparams): New prototype.
20739
25b60c91
BC
207402010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20741
20742 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
20743 grub_free order.
20744
37e7bf68
BC
207452010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20746
20747 Support for passing block of commands as an argument to extcmds.
20748
20749 * Makefile.util.def: Rules for new test.
20750 * tests/grub_script_blockarg.in: New test.
20751 * grub-core/tests/test_blockarg.c: New file, block argument
20752 command used in the test.
20753
20754 * include/grub/extcmd.h (grub_extcmd_context): New struct.
20755 (grub_register_extcmd_prio): New function prototype.
20756 (grub_extcmd_dispatcher): New function prototype.
20757 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
20758 type.
20759 * include/grub/script_sh.h (struct grub_script): New members
20760 `children', `next_siblings' and `refcnt' for block arguments and
20761 reference counting.
20762 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
20763 (grub_script_arg): New member `script' for block argument.
20764 (grub_script_argv): New member `script' for block argument.
20765 (grub_parser_param): New member `scripts' for block argument.
20766 (grub_script_mem_free): New extern function prototype.
20767 (grub_script_ref): New function prototype.
20768 (grub_script_unref): New function prototype.
20769
20770 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
20771 extcmd form to support block arguments.
20772 * grub-core/script/argv.c: Block arguments support.
20773 * grub-core/script/execute.c: Likewise.
20774 * grub-core/script/lexer.c: Likewise.
20775 * grub-core/script/main.c: Likewise.
20776 * grub-core/script/script.c: Likewise.
20777 * grub-core/script/parser.y: Likewise. New `block' and `block0'
20778 non-terminals.
20779
20780 * grub-core/commands/acpi.c: Update extcmd implementations with
20781 grub_extcmd_context_t.
20782 * grub-core/commands/cat.c: Likewise.
20783 * grub-core/commands/echo.c: Likewise.
20784 * grub-core/commands/extcmd.c: Likewise.
20785 * grub-core/commands/hashsum.c: Likewise.
20786 * grub-core/commands/hdparm.c: Likewise.
20787 * grub-core/commands/help.c: Likewise.
20788 * grub-core/commands/hexdump.c: Likewise.
20789 * grub-core/commands/i386/cpuid.c: Likewise.
20790 * grub-core/commands/i386/pc/drivemap.c: Likewise.
20791 * grub-core/commands/i386/pc/halt.c: Likewise.
20792 * grub-core/commands/i386/pc/sendkey.c: Likewise.
20793 * grub-core/commands/iorw.c: Likewise.
20794 * grub-core/commands/keystatus.c: Likewise.
20795 * grub-core/commands/loadenv.c: Likewise.
20796 * grub-core/commands/ls.c: Likewise.
20797 * grub-core/commands/lspci.c: Likewise.
20798 * grub-core/commands/memrw.c: Likewise.
20799 * grub-core/commands/probe.c: Likewise.
20800 * grub-core/commands/search_wrap.c: Likewise.
20801 * grub-core/commands/setpci.c: Likewise.
20802 * grub-core/commands/sleep.c: Likewise.
20803 * grub-core/disk/loopback.c: Likewise.
20804 * grub-core/hello/hello.c: Likewise.
20805 * grub-core/loader/i386/bsd.c: Likewise.
20806 * grub-core/loader/xnu.c: Likewise.
20807 * grub-core/term/gfxterm.c: Likewise.
20808 * grub-core/term/serial.c: Likewise.
20809 * grub-core/tests/lib/functional_test.c: Likewise.
20810
888d1500
BC
208112010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20812
20813 Multi-line quoted strings support.
20814
20815 * grub-core/script/lexer.c (append_newline): Removed.
20816 (grub_script_lexer_yywrap): Refactored.
20817 (grub_script_lexer_init): Refactored.
20818 * grub-core/script/yylex.l (yywrap): New function.
20819 (grub_lexer_resplit): New function.
20820 (grub_lexer_unput): New function.
20821 * include/grub/script_sh.h (grub_lexer_param): New members, unput
20822 and resplit.
20823 * tests/grub_script_echo1.in: Added few more testcases.
20824
dda060dd
VS
208252010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
20826
20827 * grub-core/kern/misc.c: Don't add abort alias in utils.
20828 Reported by: echoline.
20829
6556eba9
BC
208302010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
20831
20832 Add missing files into "make dist" tarball for other platforms.
20833
20834 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
20835 * conf/Makefile.common (dist_noinst_DATA): New variable.
20836 * conf/Makefile.extra-dist: Added missing make dist files.
20837 * grub-core/Makefile.core.def: Likewise.
20838
c8e7bf5f
VS
208392010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
20840
20841 Compress grub_prefix.
20842
20843 * grub-core/boot/i386/pc/lnxboot.S: Use
20844 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
20845 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
20846 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
20847 GRUB_MACHINE_PREFIX_END. All users updated.
20848 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
20849 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
20850 + 0x40.
20851 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
20852 * util/grub-mkimage.c (image_target_desc): Change data_end to
20853 prefix_end. All users updated.
20854
a7c00cdb
VS
208552010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
20856
20857 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
20858 value.
20859 (grub_openbsd_boot): Likewise.
20860 (grub_netbsd_boot): Likewise.
20861 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
20862 (grub_xnu_boot): Likewise.
20863
9f915872
VS
208642010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20865
20866 * configure.ac: Clean LIBS variable after tests.
20867
efa1bee7
CW
208682010-09-02 Colin Watson <cjwatson@ubuntu.com>
20869
20870 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
20871
61d720e5
VS
208722010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20873
20874 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
20875 echo if libdevmapper will be used.
20876
ef8e0ec8
IT
208772010-09-02 Ian Turner <Ian.Turner@deshaw.com>
20878
20879 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
20880 constant for the same file.
20881
03e261d8
VS
208822010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20883
20884 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
20885
c2a4eba6
CW
208862010-09-02 Colin Watson <cjwatson@ubuntu.com>
20887
20888 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
20889 grub-core/*.pp.
20890
9056cbf3
CW
208912010-09-02 Colin Watson <cjwatson@ubuntu.com>
20892
20893 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
20894 required by the boot protocol.
20895
20896 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
20897 ebp and edi members.
20898 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
20899 state.ebp and state.edi.
20900 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
20901 %ebp and %edi according to grub_relocator32_ebp and
20902 grub_relocator32_edi respectively.
20903 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
20904 and state.edi.
20905
529cc99a
VS
209062010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20907
20908 Add i386-pc-pxe image target.
20909
20910 * util/grub-mkimage.c (image_target_desc): New enum value
20911 IMAGE_I386_PC_PXE.
20912 (image_targets): New target i386-pc-pxe.
20913 (generate_image): Handle i386-pc-pxe image.
20914
9a093920
VS
209152010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20916
20917 Fix grub_pxe_scan.
20918
20919 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
20920 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
20921 All users updated.
20922 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
20923 (grub_pxe_pxenv): Correct type.
20924
f9cefc4e
CW
209252010-09-01 Colin Watson <cjwatson@ubuntu.com>
20926
20927 * NEWS: Document most of the important changes since 1.98.
20928
4066f57f
CW
209292010-09-01 Colin Watson <cjwatson@ubuntu.com>
20930
20931 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
20932 generated manual page) a little.
20933
da2891f9
CW
209342010-09-01 Colin Watson <cjwatson@ubuntu.com>
20935
20936 * docs/grub.texi: Add myself as an author.
20937
ad717fae
VS
209382010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
20939
20940 * Makefile.util.def (libgrub.a): Add missing sunpc.
20941 Reported by: Seth Goldberg.
20942
eefe8abd
VS
209432010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20944
20945 Interrupt wrapping and code simplifications.
20946
9494ef9a
VS
20947 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
20948 x86_noieee1275 which are functionaly equivalent in this case.
20949 (grub-install): Make source on each platform explicit. Enable on
20950 all noemu.
20951 * gentpl.py (x86_efi_pc): Removed group.
20952 (x86_noefi): Likewise.
20953 (i386_noefi): Likewise.
20954 (x86_noieee1275): Likewise.
20955 (i386_noieee1275): Likewise.
20956 (i386_noefi_noieee1275): Likewise.
20957 (i386_pc_qemu_coreboot): Likewise.
20958 (i386_coreboot_multiboot): Likewise.
20959 (i386_pc_coreboot_multiboot_qemu): Likewise.
20960 (x86_noefi_mips): Likewise.
20961 (noieee1275): Likewise.
20962 (ieee1275_mips): Likewise.
20963 (noemu_noieee1275): Likewise.
20964 (cmos): New group.
20965 (usb): Likewise.
20966 (videoinkernel): Likewise.
20967 (videomodules): Likewise.
eefe8abd 20968 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
20969 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
20970 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
20971 include/grub/loader.h, include/grub/msdos_partition.h,
20972 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
20973 include/grub/machine/console.h, include/grub/machine/vga.h,
20974 include/grub/machine/vbe.h, include/grub/machine/init.h,
20975 include/grub/machine/kernel.h, include/grub/cpu/time.h,
20976 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 20977 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
20978 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
20979 * grub-core/Makefile.core.def (kernel): Explicit the source for
20980 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
20981 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
20982 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
20983 Use videoinkernel tag.
20984 (usb): Enable on all usb.
20985 (usbserial_common): Likewise.
20986 (usbserial_pl2303): Likewise.
20987 (usbserial_ftdi): Likewise.
20988 (uhci): Enable on all x86.
20989 (ohci): Enable on all pci.
20990 (cmostest): Enable on all CMOS.
20991 (acpi): Include commands/acpi.c on all platforms.
20992 (halt): Add relevant lib/*/halt.c.
20993 (hdparm): Enable on all pci.
20994 (lspci): Likewise.
20995 (usbtest): Enable on all usb.
20996 (ata): Enable on all pci.
20997 (ata_pthru): Likewise.
20998 (usbms): Enable on all usb.
20999 (usb_keyboard): Likewise.
21000 (font): Use tag videomodules.
21001 (bufio): Likewise.
21002 (datetime): Use tag cmos. Enable on all noemu.
21003 (mmap): Use tags common and x86.
21004 (gfxterm): Use tag videomodules.
21005 (bitmap): Likewise.
21006 (bitmap_scale): Likewise.
21007 (video_fb): Likewise.
21008 (video): Likewise.
21009 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
21010 adjust padding accordingly. All users updated.
21011 (grub_ohci_transaction): Fix bad format specification.
21012 (GRUB_MOD_INIT): Add asserts for struct size.
21013 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
21014 (grub_alloc_td): Likewise.
21015 (grub_free_queue): Likewise.
21016 (grub_uhci_transfer): Likewise.
21017 (grub_uhci_transaction): Fix bad format specification.
21018 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21019 (grub_usb_bulk_readwrite): Likewise.
21020 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
21021 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
21022 Made static.
21023 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
21024 Made static.
21025 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
21026 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
21027 Transformed into C.
21028 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
21029 Moved from here ...
21030 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
21031 ... here. Transformed into C. Made static.
21032 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
21033 Moved from here ...
21034 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
21035 ... here. Transformed into C. Made static.
21036 * grub-core/kern/i386/pc/startup.S
21037 (grub_biosdisk_check_int13_extensions): Moved from here ...
21038 * grub-core/disk/i386/pc/biosdisk.c
21039 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
21040 Made static.
21041 * grub-core/kern/i386/pc/startup.S
21042 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
21043 * grub-core/disk/i386/pc/biosdisk.c
21044 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
21045 Transformed into C. Made static.
21046 * grub-core/kern/i386/pc/startup.S
21047 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
21048 * grub-core/disk/i386/pc/biosdisk.c
21049 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
21050 Transformed into C. Made static.
21051 * grub-core/kern/i386/pc/startup.S
21052 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
21053 * grub-core/disk/i386/pc/biosdisk.c
21054 (grub_biosdisk_get_diskinfo_standard): ... here.
21055 Transformed into C. Made static.
21056 * grub-core/kern/i386/pc/startup.S
21057 (grub_biosdisk_get_num_floppies): Moved from here ...
21058 * grub-core/disk/i386/pc/biosdisk.c
21059 (grub_biosdisk_get_num_floppies): ... here.
21060 Transformed into C. Made static.
21061 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
21062 New function.
21063 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
21064 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
21065 Transformed into C. Made static.
21066 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
21067 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
21068 Transformed into C. Made static.
21069 * grub-core/kern/i386/ieee1275/init.c: Removed.
21070 * grub-core/kern/i386/misc.S: Likewise.
21071 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
21072 Splitted from here ...
21073 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
21074 Transformed into C. Made static. All users updated.
21075 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
21076 Transformed into C. Made static. All users updated.
21077 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
21078 Moved from here...
21079 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
21080 Transformed into C. Made static. All users updated.
21081 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
21082 Moved from here...
21083 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
21084 Transformed into C. Made static. All users updated.
21085 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
21086 Removed (replaced by C version).
21087 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
21088 Moved from here...
21089 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
21090 Transformed into C. Made static.
21091 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
21092 Moved from here...
21093 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
21094 ... here. Transformed into C.
21095 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
21096 Moved from here...
21097 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
21098 ... here. Transformed into C.
21099 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
21100 Moved from here...
21101 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
21102 ... here. Transformed into C. Made static.
21103 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
21104 Moved from here...
21105 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
21106 ... here. Transformed into C.
21ed554b
VS
21107 * grub-core/kern/i386/pc/startup.S
21108 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
21109 * grub-core/video/i386/pc/vbe.c
21110 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
21111 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
21112 Moved from here...
21113 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
21114 ... here. Transformed into C.
21115 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
21116 Moved from here...
21117 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
21118 ... here. Transformed into C.
21119 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
21120 Moved from here...
21121 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
21122 ... here. Transformed into C.
21123 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
21124 Moved from here...
21125 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
21126 ... here. Transformed into C.
21127 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
21128 Moved from here...
21129 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
21130 ... here. Transformed into C. Made static.
21131 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
21132 Moved from here...
21133 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
21134 ... here. Transformed into C. Made static.
21135 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
21136 Moved from here...
21137 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
21138 ... here. Transformed into C. Made static.
21139 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
21140 pxe_rm_entry as third argument.
21141 (grub_bios_interrupt): New function.
21142 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
21143 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
21144 of calling grub_stop.
21145 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
21146 * grub-core/lib/efi/halt.c (grub_halt): ...here.
21147 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
21148 * grub-core/lib/emu/halt.c (grub_halt): ... here.
21149 * grub-core/lib/i386/halt.c: Moved from here ...
21150 * grub-core/lib/i386/halt.c: ... here.
21151 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
21152 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
21153 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
21154 grub_stop_floppy.
21155 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
21156 * include/grub/i386/coreboot/init.h: Removed.
21157 * include/grub/i386/multiboot/init.h: Likewise.
21158 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
21159 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
21160 * include/grub/i386/pc/int.h: New file.
21161 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
21162 (grub_pxe_scan): Removed.
21163 (grub_pxe_call): Update prototype.
21164 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
21165 prototypes.
21166 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
21167 * include/grub/i386/qemu/init.h: Removed.
21168 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
21169 noreturn.
21170 (grub_halt): Likewise.
21171 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
21172 (grub_reboot): Likewise.
21173 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
21174 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
21175 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
21176
215dd471
RM
211772010-08-30 Robert Millan <rmh@gnu.org>
21178
21179 * NEWS: Document addition of ZFS support in `grub-install' and
21180 `grub-mkconfig'.
21181
ebd65b82
BC
211822010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
21183
21184 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
21185 dprintf output.
21186
11721d19
VS
211872010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21188
21189 Remove leftover embedding of font objects.
21190
21191 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21192 * util/grub-install.in (font): Removed.
21193 * util/grub-mkimage.c (generate_image): Remove font support. All users
21194 updated.
21195
37837d4e
VS
211962010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21197
21198 Remove leftover embedding of font objects.
21199
21200 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21201 * util/grub-install.in (font): Removed.
21202 * util/grub-mkimage.c (generate_image): Remove font support. All users
21203 updated.
21204
b4c1aae0
VS
212052010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21206
21207 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 21208 Reported by: Ian Turner
b4c1aae0 21209
8920a08d
VS
212102010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21211
21212 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
21213 timeout to avoid indefinite boot stalling.
21214
f21db033
VS
212152010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21216
21217 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
21218 (grub_env_write_color_highlight): Likewise.
21219
9a9de209
VS
212202010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21221
21222 * grub-core/normal/term.c (print_more): Return to normal and not
21223 to standard state after printing "---MORE---".
21224
3dca01d7
VS
212252010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21226
21227 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
21228 Mask out the bit 0x80 since it has other meaning that specifiing color.
21229
0b986c40
VS
212302010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21231
21232 New relocator. Allows for more kernel support and more straightforward
21233 loader writing.
21234
21235 * Makefile.am (BOOTTARGET): New variable.
21236 (QEMU32): Likewise.
21237 (linux.init.x86_64): New target.
21238 (linux.init.i386): Likewise.
21239 (multiboot.elf): Likewise.
21240 (kfreebsd.elf): Likewise.
21241 (kfreebsd.aout): Likewise.
21242 (pc-chainloader.elf): Likewise.
21243 (pc-chainloader.bin): Likewise.
21244 (ntldr.elf): Likewise.
21245 (ntldr.bin): Likewise.
21246 (multiboot2.elf): Likewise.
21247 (kfreebsd.init.x86_64): Likewise.
21248 (kfreebsd.init.i386): Likewise.
21249 (knetbsd.init.i386): Likewise.
21250 (kopenbsd.init.i386): Likewise.
21251 (knetbsd.init.x86_64): Likewise.
21252 (kopenbsd.init.x86_64): Likewise.
21253 (linux-initramfs.i386): Likewise.
21254 (linux-initramfs.x86_64): Likewise.
21255 (kfreebsd-mfsroot.i386.img): Likewise.
21256 (knetbsd.image.i386): Likewise.
21257 (kopenbsd.image.i386): Likewise.
21258 (kopenbsd.image.x86_64): Likewise.
21259 (knetbsd.miniroot-image.i386.img): Likewise.
21260 (kfreebsd-mfsroot.x86_64.img): Likewise.
21261 (knetbsd.image.x86_64): Likewise.
21262 (knetbsd.miniroot-image.x86_64.img): Likewise.
21263 (kfreebsd-mfsroot.i386.gz): Likewise.
21264 (bootcheck-kfreebsd-i386): Likewise.
21265 (kfreebsd-mfsroot.x86_64.gz): Likewise.
21266 (bootcheck-kfreebsd-x86_64): Likewise.
21267 (knetbsd.miniroot-image.i386.gz): Likewise.
21268 (bootcheck-knetbsd-i386): Likewise.
21269 (bootcheck-kopenbsd-i386): Likewise.
21270 (bootcheck-kopenbsd-x86_64): Likewise.
21271 (knetbsd.miniroot-image.x86_64.gz): Likewise.
21272 (bootcheck-knetbsd-x86_64): Likewise.
21273 (bootcheck-linux-i386): Likewise.
21274 (bootcheck-linux-x86_64): Likewise.
21275 (bootcheck-linux16-i386): Likewise.
21276 (bootcheck-linux16-x86_64): Likewise.
21277 (bootcheck-multiboot): Likewise.
21278 (bootcheck-multiboot2): Likewise.
21279 (bootcheck-kfreebsd-aout): Likewise.
21280 (bootcheck-pc-chainloader): Likewise.
21281 (bootcheck-ntldr): Likewise.
21282 (CLEANFILES): Add new targets.
21283 (BOOTCHECKS): New variable.
21284 (.PHONY): Add bootchecks.
21285 (SUCCESSFUL_BOOT_STRING): New variable.
21286 (BOOTCHECK_TIMEOUT): Likewise.
21287 (bootcheck): New target
21288 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
21289 * configure.ac: Correct efiemu excuse.
21290 * docs/grub.texi (Supported kernels): New chapter.
21291 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
21292 include/grub/mm_private.h. Simplify inclusion of
21293 include/grub/boot.h, include/grub/loader.h
21294 and include/grub/msdos_partition.h
21295 (KERNEL_HEADER_FILES) [i386_coreboot]:
21296 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
21297 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
21298 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
21299 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
21300 include/grub/machine/loader.h.
21301 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
21302 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
21303 extra_dist.
21304 (pci.mod): Enable on i386-multiboot.
21305 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
21306 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
21307 i386-qemu.
21308 (relocator.mod): Rewritten.
21309 (aout.mod): Enable on all x86.
21310 (bsd.mod): Likewise.
21311 (ntldr.mod): New module.
21312 (linux.mod): Use loader/i386/linux.c on all x86.
21313 (xnu.mod): Enable on all x86.
21314 (vga_text.mod): disable on EFI and QEMU.
21315 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
21316 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
21317 * grub-core/efiemu/loadcore.c: Likewise.
21318 * grub-core/efiemu/main.c: Likewise.
21319 (grub_efiemu_exit_boot_services): Removed.
21320 (grub_efiemu_finish_boot_services): Likewise.
21321 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
21322 function.
21323 * grub-core/efiemu/i386/nocfgtables.c: New file.
21324 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
21325 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
21326 (grub_efi_finish_boot_services): Moved from here ...
21327 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
21328 Fille finish memory map and related data.
21329 (finish_mmap_buf): New variable.
21330 (grub_efi_uintn_t finish_mmap_size): Likewise.
21331 (grub_efi_uintn_t finish_key): Likewise.
21332 (grub_efi_uintn_t finish_desc_size): Likewise.
21333 (grub_efi_uint32_t finish_desc_version): Likewise.
21334 (grub_efi_is_finished): Likewise.
21335 (grub_efi_get_memory_map): Use saved memory map if EFI is already
21336 finished.
21337 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
21338 (grub_elf64_phdr_iterate): Likewise.
21339 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
21340 (grub_os_area_size): Likewise.
21341 (grub_machine_init): Don't reserve os area.
21342 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
21343 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
21344 * grub-core/kern/i386/loader.S: Removed.
21345 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
21346 (grub_os_area_size): Likewise.
21347 (grub_machine_init): Don't reserve os area.
21348 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
21349 Don't call grub_dl_unload_all.
21350 Don't include loader.S.
21351 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
21352 Declare the memory after _end as available.
21353 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 21354 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 21355 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
21356 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
21357 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
21358 * include/grub/mm_private.h (grub_mm_header): ... here.
21359 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
21360 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
21361 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
21362 (grub_mm_region): ..here. Removed addr. Added pre_size.
21363 All users updated.
21364 * grub-core/kern/mm.c (base): Renamed to ...
21365 (grub_mm_base): ... this. Made global.
21366 (grub_real_malloc): Alloc from end of region.
21367 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
21368 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
21369 * grub-core/kern/powerpc/cache_flush.S: ... here.
21370 * grub-core/lib/efi/relocator.c: New file.
21371 * grub-core/lib/i386/relocator.c: Rewritten.
21372 * grub-core/lib/i386/relocator16.S: New file.
21373 * grub-core/lib/i386/relocator32.S: Likewise.
21374 * grub-core/lib/i386/relocator64.S: Likewise.
21375 * grub-core/lib/i386/relocator_asm.S: Rewritten.
21376 * grub-core/lib/i386/relocator_common.S: New file.
21377 * grub-core/lib/ieee1275/relocator.c: Likewise.
21378 * grub-core/lib/mips/relocator.c: Rewritten.
21379 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
21380 stylistic adjustments.
21381 * grub-core/lib/powerpc/relocator.c: New file.
21382 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
21383 * grub-core/lib/relocator.c: Rewritten.
21384 * grub-core/lib/x86_64/relocator_asm.S: New file.
21385 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
21386 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
21387 (bsd_tag): New struct.
21388 (tags): New variable.
21389 (tags_last): Likewise.
21390 (netbsd_module): New struct.
21391 (netbsd_mods): New variable.
21392 (netbsd_mods_last): Likewise.
21393 (openbsd_opts): New parameter "serial".
21394 (OPENBSD_SERIAL_ARG): New definition.
21395 (netbsd_opts): New parameter "serial".
21396 (NETBSD_SERIAL_ARG): New definition.
21397 (grub_freebsd_add_meta): Reorganised into ...
21398 (grub_bsd_add_meta): ...this. All users updated.
21399 (grub_freebsd_add_mmap): Reorganised into ...
21400 (generate_e820_mmap): ...this...
21401 (grub_bsd_add_mmap): ...and this. All users updated.
21402 (grub_freebsd_list_modules): Use tags.
21403 (grub_netbsd_add_meta_module): New function.
21404 (grub_netbsd_list_modules): Likewise.
21405 (grub_freebsd_boot): Use relocator and finish EFI.
21406 (grub_openbsd_boot): Likewise.
21407 (grub_netbsd_setup_video): New function.
21408 (grub_netbsd_add_modules): Likewise.
21409 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
21410 and finish EFI.
21411 (grub_bsd_unload): Unload tags.
21412 (grub_bsd_load_aout): Use relocator.
21413 (grub_bsd_elf32_size_hook): New function.
21414 (grub_bsd_elf32_hook): Use relocator.
21415 (grub_bsd_elf64_size_hook): New function.
21416 (grub_bsd_elf64_hook): Use relocator.
21417 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
21418 (grub_bsd_load): Zero-out openbsd_ramdisk.
21419 (grub_bsd_load): Use relocator.
21420 (grub_cmd_openbsd): Support serial.
21421 (grub_cmd_netbsd): Support modules.
21422 (grub_cmd_freebsd_module): Use relocator.
21423 (grub_netbsd_module_load): New function.
21424 (grub_cmd_netbsd_module): Likewise.
21425 (grub_cmd_openbsd_ramdisk): Likewise.
21426 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
21427 kopenbsd_ramdisk.
21428 (GRUB_MOD_FINI): Unregister new commands.
21429 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
21430 (grub_freebsd_load_elfmodule_obj): Use relocator.
21431 (grub_freebsd_load_elfmodule): Likewise.
21432 (grub_freebsd_load_elf_meta): Likewise.
21433 (grub_netbsd_load_elf_meta): New function.
21434 (grub_openbsd_find_ramdisk): Likewise.
21435 * grub-core/loader/i386/bsd_helper.S: Removed.
21436 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
21437 * grub-core/loader/i386/bsd_trampoline.S: Removed.
21438 * grub-core/loader/i386/efi/linux.c: Likewise.
21439 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
21440 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
21441 (DEFAULT_VIDEO_MODE): Likewise.
21442 (real_mode_target): New variable.
21443 (prot_mode_target): Likewise.
21444 (initrd_mem_target): Likewise.
21445 (relocator): Likewise.
21446 (efi_mmap_buf): Likewise.
21447 (efi_mmap_size): Likewise.
21448 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
21449 (free_pages): Use relocator.
21450 (allocate_pages): Account for efi_mmap and use relocator. Return error.
21451 (grub_linux_setup_video): Return error.
21452 (grub_linux_trampoline_start): Removed.
21453 (grub_linux_trampoline_end): Likewise.
21454 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
21455 andd video parameters depending on firmware.
21456 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
21457 [GRUB_MACHINE_EFI]: Pass EFI parameters.
21458 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
21459 (grub_cmd_initrd): Use relocator.
21460 * grub-core/loader/i386/linux_trampoline.S: Removed.
21461 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
21462 (elf_sec_entsize): Likewise.
21463 (elf_sec_shstrndx): Likewise.
21464 (elf_sections): Likewise.
21465 (grub_multiboot_load): Use relocator.
21466 (grub_multiboot_get_mbi_size): Account for sections.
21467 (grub_multiboot_make_mbi): Use relocator and support sections.
21468 (grub_multiboot_add_elfsyms): New function.
21469 (grub_multiboot_free_mbi): Free sections.
21470 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
21471 (grub_linux_real_target): Likewise.
21472 (grub_linux_real_chunk): Likewise.
21473 (grub_linux16_prot_size): Likewise.
21474 (grub_linux16_boot): Use relocator.
21475 (grub_linux_unload): Unload relocator.
21476 (grub_cmd_linux): Use relocator.
21477 (grub_cmd_initrd): Likewise.
21478 * grub-core/loader/i386/pc/ntldr.c: New file.
21479 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
21480 Don't try to guess CPU frequency.
21481 (grub_xnu_set_video): Stretch bitmap.
21482 (grub_xnu_boot): Use relocator.
21483 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
21484 (grub_linux_unload): Free relocator.
21485 (grub_linux_load32): Use relocator.
21486 (grub_linux_load64): Likewise.
21487 (grub_cmd_initrd): Likewise.
21488 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
21489 (grub_multiboot_unload): Unload relocator.
21490 (grub_cmd_multiboot): Use relocator.
21491 (grub_cmd_module): Likewise.
21492 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
21493 Use relocator and support sections.
21494 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
21495 (elf_sec_entsize): Likewise.
21496 (elf_sec_shstrndx): Likewise.
21497 (elf_sections): Likewise.
21498 (grub_multiboot_load): Use relocator.
21499 (grub_multiboot_get_mbi_size): Account for sections.
21500 (grub_multiboot_make_mbi): Use relocator and support sections.
21501 (grub_multiboot_add_elfsyms): New function.
21502 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
21503 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
21504 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
21505 Prototype changed. All users updated.
21506 (grub_xnu_align_heap): Simplified.
21507 (grub_xnu_writetree_toheap): Likewise.
21508 (grub_xnu_unload): Unload relocator.
21509 (grub_cmd_xnu_kernel): Use relocator.
21510 (grub_cmd_xnu_kernel64): Likewise.
21511 (grub_xnu_register_memory): Simplified.
21512 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
21513 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
21514 EFI is finished.
21515 (grub_console_checkkey): Likewise.
21516 (grub_console_getkey): Likewise.
21517 (grub_console_getwh): Likewise.
21518 (grub_console_getxy): Likewise.
21519 (grub_console_gotoxy): Likewise.
21520 (grub_console_cls): Likewise.
21521 (grub_console_setcolorstate): Likewise.
21522 (grub_console_setcursor): Likewise.
21523 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
21524 * grub-core/tests/boot/kbsd.init-i386.S: New file.
21525 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
21526 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
21527 * grub-core/tests/boot/kernel-8086.S: Likewise.
21528 * grub-core/tests/boot/kernel-i386.S: Likewise.
21529 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
21530 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
21531 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
21532 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
21533 * grub-core/tests/boot/knetbsd.cfg: Likewise.
21534 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
21535 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
21536 * grub-core/tests/boot/linux.cfg: Likewise.
21537 * grub-core/tests/boot/linux.init-i386.S: Likewise.
21538 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
21539 * grub-core/tests/boot/linux16.cfg: Likewise.
21540 * grub-core/tests/boot/multiboot.cfg: Likewise.
21541 * grub-core/tests/boot/multiboot2.cfg: Likewise.
21542 * grub-core/tests/boot/ntldr.cfg: Likewise.
21543 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
21544 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
21545 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
21546 New definition.
21547 * include/grub/dl.h (grub_dl_unload_all): Removed.
21548 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
21549 (grub_efi_finish_boot_services): Change prototype.
21550 (grub_efi_is_finished): New variable.
21551 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
21552 Changed prototype.
21553 (grub_efiemu_finish_boot_services): Removed.
21554 (grub_machine_efiemu_init_tables): New prototype.
21555 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
21556 (grub_elf64_phdr_iterate): Likewise.
21557 * include/grub/i386/bsd.h: Include relocator.h.
21558 (freebsd_tag_header): New struct.
21559 (grub_openbsd_bios_mmap): Removed.
21560 (grub_unix_real_boot): Removed.
21561 (grub_freebsd_load_elfmodule32): Changed prototype.
21562 (grub_freebsd_load_elfmodule_obj64): Likewise.
21563 (grub_freebsd_load_elf_meta32): Likewise.
21564 (grub_freebsd_load_elf_meta64): Likewise.
21565 (grub_freebsd_add_meta): Removed.
21566 (grub_netbsd_load_elf_meta32): New prototype.
21567 (grub_netbsd_load_elf_meta64): Likewise.
21568 (grub_bsd_add_meta): Likewise.
21569 (grub_openbsd_ramdisk_descriptor): New struct.
21570 (grub_openbsd_find_ramdisk32): New prototype.
21571 (grub_openbsd_find_ramdisk64): Likewise.
21572 * include/grub/i386/coreboot/loader.h: Removed.
21573 * include/grub/i386/efi/loader.h: Likewise.
21574 * include/grub/i386/ieee1275/loader.h: Likewise.
21575 * include/grub/i386/linux.h (linux_kernel_header): Change void *
21576 to grub_uint32_t.
21577 * include/grub/i386/loader.h: Removed.
21578 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
21579 value.
21580 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
21581 (grub_phys_addr_t): New type.
21582 (grub_vtop): New inline function.
21583 (grub_map_memory): Likewise.
21584 (grub_unmap_memory): Likewise.
21585 * include/grub/i386/multiboot/loader.h: Removed.
21586 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
21587 (NETBSD_BTINFO_CONSOLE): New definition.
21588 (NETBSD_BTINFO_SYMTAB): Likewise.
21589 (NETBSD_BTINFO_MODULES): Likewise.
21590 (NETBSD_BTINFO_FRAMEBUF): Likewise.
21591 (grub_netbsd_bootinfo): New struct.
21592 (grub_netbsd_btinfo_common): Use explicit bitsize.
21593 (grub_netbsd_btinfo_mmap_entry): Removed.
21594 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
21595 (grub_netbsd_btinfo_bootdisk): New struct.
21596 (grub_netbsd_btinfo_symtab): Likewise.
21597 (grub_netbsd_btinfo_serial): Likewise.
21598 (grub_netbsd_btinfo_modules): Likewise.
21599 (grub_netbsd_btinfo_framebuf): Likewise.
21600 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
21601 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
21602 Likewise.
21603 (grub_openbsd_bootargs): Use explicit bitsize.
21604 (grub_openbsd_bootarg_console): New struct.
21605 (GRUB_OPENBSD_COM_MAJOR): New definition.
21606 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
21607 * include/grub/i386/pc/efiemu.h: Removed.
21608 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
21609 * include/grub/i386/qemu/loader.h: Removed.
21610 * include/grub/i386/relocator.h: Rewritten.
21611 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
21612 * include/grub/mips/memory.h: New file.
21613 * include/grub/mips/multiboot.h: Rewritten.
21614 * include/grub/mips/relocator.h: Rewritten.
21615 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
21616 (grub_vtop): New function.
21617 (grub_map_memory): Likewise.
21618 (grub_unmap_memory): Likewise.
21619 * include/grub/misc.h (ALIGN_DOWN): New definition.
21620 * include/grub/mm.h (grub_mm_check_real): New proto.
21621 (GRUB_MM_CHECK): New definition.
21622 * include/grub/mm_private.h: New file.
21623 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
21624 (grub_multiboot_get_mbi_size): Removed.
21625 (grub_multiboot_make_mbi): Change prottype.
21626 (grub_multiboot_set_accepts_video): New proto.
21627 (grub_multiboot_add_elfsyms): Likewise.
21628 (grub_multiboot_payload_eip): New variable.
21629 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
21630 New prototype.
21631 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
21632 New definition.
21633 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
21634 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
21635 * include/grub/powerpc/ieee1275/loader.h: Removed.
21636 * include/grub/powerpc/memory.h: New file.
21637 * include/grub/powerpc/relocator.h: Likewise.
21638 * include/grub/relocator.h: Likewise.
21639 * include/grub/relocator_private.h: Likewise.
21640 * include/grub/sparc64/ieee1275/loader.h: Removed.
21641 * include/grub/x86_64/memory.h: New file.
21642 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
21643 (grub_xnu_heap_malloc): Likewise.
21644 (grub_xnu_heap_real_start): Removed.
21645 (grub_xnu_heap_start): Likewise.
21646 (grub_xnu_relocator): New variable.
21647 (grub_xnu_heap_target_start): Likewise.
21648 * tests/util/grub-shell.in: Support non-pc.
21649 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 21650
5303b85d
VS
216512010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21652
21653 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
21654 on malloc error.
21655 (grub_bidi_logical_to_visual): Check that malloc succeded.
21656 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
21657 puts.
21658 (grub_xputs_normal): Likewise.
21659
d768d159
VS
216602010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21661
21662 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
21663 extra_dist.
21664
216652010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21666
21667 * grub-core/efiemu/runtime/efiemu.sh: Removed.
21668
5bf84df4
VS
216692010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21670
21671 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
21672
3626810e
VS
216732010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21674
21675 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
21676 dprintf.
21677
a7363f53
BC
216782010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
21679
21680 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
21681
902f75f6
VS
216822010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21683
21684 * grub-core/normal/term.c (print_more): Fix a memory leak.
21685 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
21686 (grub_xputs_normal): Likewise.
21687
3c707967
VS
216882010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21689
21690 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
21691 the begining of the string
21692
2053cc07
VS
216932010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21694
21695 * grub-core/script/script.c (grub_script_parse): Free parsed on
21696 failure.
21697
46422ebf
VS
216982010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21699
21700 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
21701 on failure.
21702
9e0fa3f6
VS
217032010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21704
21705 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
21706 return.
21707
3393cf16
VS
217082010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21709
21710 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
21711 (scroll_up): Fix a memory leak.
21712
b17540cb
VS
217132010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21714
21715 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
21716 errors.
21717
67140446
VS
217182010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
21719
21720 Handle USB pendrives exposed as floppies.
21721
21722 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
21723 floppy.
21724 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
21725 Check for partitions on all devices.
21726
e35e46fc
VS
217272010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21728
21729 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
21730 (readkey): Likewise.
21731
d24c6190
BC
217322010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
21733
21734 Multiple variable names support to "export" command.
21735
21736 * normal/context.c (grub_cmd_export): "export" command supports
21737 multiple variable names.
21738
04ddcc6a
ST
217392010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
21740
21741 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
21742 --target=drive output to Mach device name.
21743
0c8b61d8
BC
217442010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
21745
21746 New Automake based build system for GRUB.
21747
21748 * ABOUT-NLS: New file.
21749 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
21750 in Makefile.util.def file.
21751 * Makefile.util.def: New file. Autogen build definitions file for
21752 GRUB host utils.
21753 * conf/Makefile.common: New file. Common variables for GRUB host
21754 utils and target modules.
21755 * conf/Makefile.extra-dist: New file. Extra files for make dist.
21756 * docs/Makefile.am: New file. Automake file for docs.
21757 * gentpl.py: New file. Python script to generate Autogen
21758 template.
21759 * grub-core/Makefile.am: New file. GRUB target modules' rules
21760 that doesn't fit in Makefile.core.def file.
21761 * grub-core/Makefile.core.def: New file. Autogen build
21762 definitions file for GRUB target modules.
21763 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
21764 specific setjmp.S file.
21765 * po/Makefile.am: New file.
21766
21767 * .bzrignore: New ignores.
21768 * INSTALL: New requirements, without Ruby.
21769 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
21770 * autogen.sh: Updated to invoke autogen as necessary.
21771 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
21772 and defines for Automake conditionals.
21773 * geninit.sh: Refactoring.
21774
21775 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
21776 necessary.
21777 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
21778 New prototype.
21779
21780 * include/grub/test.h: Fix functional test modules' naming.
21781 * grub-core/tests/example_functional_test.c: Fix test module name.
21782
21783 * util/misc.c: Hosted versions' of grub functions for libgrub.a
21784 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
21785 * util/grub-editenv.c: Likewise.
21786 * util/grub-fstest.c: Likewise.
21787 * util/grub-mkdevicemap.c: Likewise.
21788 * util/grub-mkfont.c: Likewise.
21789 * util/grub-mkimage.c: Likewise.
21790 * util/grub-mkpasswd-pbkdf2.c: Likewise.
21791 * util/grub-probe.c: Likewise.
21792 * util/grub-script-check.c: Likewise.
21793 * util/i386/pc/grub-setup.c: Likewise.
21794 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21795
21796 * tests/util/grub-shell.in: Fix override directory path.
21797 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
21798 * util/import_gcry.py: Create Makefile.gcry.def file instead.
21799
21800 * util/lvm.c: Update #includes.
21801 * util/raid.c: Likewise.
21802 * util/resolve.c: Likewise.
21803 * grub-core/bus/emu/pci.c: Likewise.
21804 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
21805 * grub-core/lib/posix_wrap/string.h: Likewise.
21806 * grub-core/kern/emu/main.c: Likewise.
21807
21808 * grub-core/gensymlist.sh: New file. Script for generating kernel
21809 symbols file.
21810 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
21811
21812 * grub-core/gentrigtables.c: Fix unused variable warnings.
21813
21814 * Makefile.in: Removed.
21815 * conf/any-emu.rmk: Removed.
21816 * conf/common.rmk: Removed.
21817 * conf/i386-coreboot.rmk: Removed.
21818 * conf/i386-efi.rmk: Removed.
21819 * conf/i386-ieee1275.rmk: Removed.
21820 * conf/i386-multiboot.rmk: Removed.
21821 * conf/i386-pc.rmk: Removed.
21822 * conf/i386-qemu.rmk: Removed.
21823 * conf/i386.rmk: Removed.
21824 * conf/mips-yeeloong.rmk: Removed.
21825 * conf/mips.rmk: Removed.
21826 * conf/powerpc-ieee1275.rmk: Removed.
21827 * conf/sparc64-ieee1275.rmk: Removed.
21828 * conf/tests.rmk: Removed.
21829 * conf/x86-efi.rmk: Removed.
21830 * conf/x86_64-efi.rmk: Removed.
21831 * gendistlist.sh: Removed.
21832 * geninitheader.sh: Removed.
21833 * genkernsyms.sh.in: Removed.
21834 * genmk.rb: Removed.
21835 * gensymlist.sh.in: Removed.
21836 * mkinstalldirs: Removed.
21837 * boot: Moved ...
21838 * grub-core/boot: ... to here.
21839 * bus: Moved ...
21840 * grub-core/bus: ... to here.
21841 * commands: Moved ...
21842 * grub-core/commands: ... to here.
21843 * disk: Moved ...
21844 * grub-core/disk: ... to here.
21845 * efiemu: Moved ...
21846 * grub-core/efiemu: ... to here.
21847 * font: Moved ...
21848 * grub-core/font: ... to here.
21849 * fs: Moved ...
21850 * grub-core/fs: ... to here.
21851 * gencmdlist.sh: Moved ...
21852 * grub-core/gencmdlist.sh: ... to here.
21853 * genemuinit.sh: Moved ...
21854 * grub-core/genemuinit.sh: ... to here.
21855 * genemuinitheader.sh: Moved ...
21856 * grub-core/genemuinitheader.sh: ... to here.
21857 * genfslist.sh: Moved ...
21858 * grub-core/genfslist.sh: ... to here.
21859 * genhandlerlist.sh: Moved ...
21860 * grub-core/genhandlerlist.sh: ... to here.
21861 * genmoddep.awk: Moved ...
21862 * grub-core/genmoddep.awk: ... to here.
21863 * genmodsrc.sh: Moved ...
21864 * grub-core/genmodsrc.sh: ... to here.
21865 * genpartmaplist.sh: Moved ...
21866 * grub-core/genpartmaplist.sh: ... to here.
21867 * genparttoollist.sh: Moved ...
21868 * grub-core/genparttoollist.sh: ... to here.
21869 * genterminallist.sh: Moved ...
21870 * grub-core/genterminallist.sh: ... to here.
21871 * gentrigtables.c: Moved ...
21872 * grub-core/gentrigtables.c: ... to here.
21873 * genvideolist.sh: Moved ...
21874 * grub-core/genvideolist.sh: ... to here.
21875 * gettext: Moved ...
21876 * grub-core/gettext: ... to here.
21877 * gfxmenu: Moved ...
21878 * grub-core/gfxmenu: ... to here.
21879 * gnulib: Moved ...
21880 * grub-core/gnulib: ... to here.
21881 * hello: Moved ...
21882 * grub-core/hello: ... to here.
21883 * hook: Moved ...
21884 * grub-core/hook: ... to here.
21885 * io: Moved ...
21886 * grub-core/io: ... to here.
21887 * kern: Moved ...
21888 * grub-core/kern: ... to here.
21889 * lib: Moved ...
21890 * grub-core/lib: ... to here.
21891 * loader: Moved ...
21892 * grub-core/loader: ... to here.
21893 * mmap: Moved ...
21894 * grub-core/mmap: ... to here.
21895 * normal: Moved ...
21896 * grub-core/normal: ... to here.
21897 * partmap: Moved ...
21898 * grub-core/partmap: ... to here.
21899 * parttool: Moved ...
21900 * grub-core/parttool: ... to here.
21901 * script: Moved ...
21902 * grub-core/script: ... to here.
21903 * term: Moved ...
21904 * grub-core/term: ... to here
21905 * tests/example_functional_test.c: Moved ...
21906 * grub-core/tests/example_functional_test.c: ... to here.
21907 * tests/lib/functional_test.c: Moved ...
21908 * grub-core/tests/lib/functional_test.c: ... to here.
21909 * tests/lib/test.c: Moved ...
21910 * grub-core/tests/lib/test.c: ... to here.
21911 * video: Moved ...
21912 * grub-core/video: ... to here.
21913
645586e6
BC
219142010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
21915
21916 Replace --enable-grub-emu-modules with grub-emu-lite.
21917
21918 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
21919 cache.S.
21920
21921 * include/grub/emu/misc.h (grub_emu_init): New prototype.
21922 * kern/emu/full.c: New file. For grub-emu specific initialization.
21923 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
21924 * kern/emu/main.c: Call initialization function grub_emu_init.
21925
21926 * Makefile.in: Include grub-emu-lite in install.
21927 * commands/parttool.c: Use grub_no_autoload to differentiate
21928 between grub-emu and grub-emu-lite.
21929 * include/grub/misc.h: New variable grub_no_autoload.
21930
21931 * conf/any-emu.rmk: New rules for grub-emu-lite.
21932 * configure.ac: Remove --enable-grub-emu-modules.
21933 * genmk.rb: Cleanup unnecessary rules.
21934 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
21935
21936 * normal/main.c: Don't load list files on grub-emu-lite.
21937 * util/misc.c (grub_arch_sync_caches): Removed.
21938
f86a4030
CW
219392010-08-23 Colin Watson <cjwatson@ubuntu.com>
21940
21941 * kern/mips/startup.S (grub_prefix): Update comment to refer to
21942 grub-mkimage rather than grub-mkelfimage.
21943 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
21944
06776944
VS
219452010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21946
21947 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
21948 a key after CapsLock or NumLock. It's just a qemu bug.
21949
df262419
VS
219502010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
21951
21952 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
21953 needed by libusb wrapper.
21954
b40ea81b
ST
219552010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21956
21957 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
21958
dee50575
VS
219592010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
21960
21961 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
21962 --nounzip is passed.
21963
fb1d7b79
VS
219642010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
21965
21966 USB hotunplugging and USB serial support.
21967
21968 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
21969 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
21970 (grub_uhci_transfer): Respect timeout and set *actual.
21971 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
21972 non-standard length.
21973 (grub_usb_device_attach): Autoload modules.
21974 (GRUB_MOD_INIT): Set grub_term_poll_usb.
21975 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
21976 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
21977 users updated.
21978 (grub_usb_add_hub): Fill nports and children.
21979 (attach_root_port): Receive hub instead of controller.
21980 All users updated. Fill hub->devices.
21981 (grub_usb_root_hub): Allocate hub->devices.
21982 (detach_device): New function.
21983 (poll_nonroot_hub): Fill children and detach devices.
21984 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
21985 actual arguments. All users updated.
21986 (grub_usb_bulk_read_extended): New function.
21987 * bus/usb/serial/common.c: New file.
21988 * bus/usb/serial/ftdi.c: Likewise.
21989 * bus/usb/serial/pl2303.c: Likewise.
21990 * commands/terminal.c (handle_command): Support wildcard.
21991 * commands/usbtest.c: Output "Unknown" instead of empty string.
21992 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
21993 (usbserial_common_mod_SOURCES): New variable.
21994 (usbserial_common_mod_CFLAGS): Likewise.
21995 (usbserial_common_mod_LDFLAGS): Likewise.
21996 (pkglib_MODULES): Add usbserial_pl2303.mod.
21997 (usbserial_pl2303_mod_SOURCES): New variable.
21998 (usbserial_pl2303_mod_CFLAGS): Likewise.
21999 (usbserial_pl2303_mod_LDFLAGS): Likewise.
22000 (pkglib_MODULES): Add usbserial_ftdi.mod.
22001 (usbserial_ftdi_mod_SOURCES): New variable.
22002 (usbserial_ftdi_mod_CFLAGS): Likewise.
22003 (usbserial_ftdi_mod_LDFLAGS): Likewise.
22004 (pkglib_MODULES): Add serial.mod.
22005 (serial_mod_SOURCES): New variable.
22006 (serial_mod_CFLAGS): Likewise.
22007 (serial_mod_LDFLAGS): Likewise.
22008 * conf/i386-pc.rmk: Likewise.
22009 * conf/mips-yeeloong.rmk: Likewise.
22010 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
22011 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22012 * disk/usbms.c (first_available_slot): New variable.
22013 (grub_usbms_attach): Don't reuse free slots due to potential cache
22014 problems.
22015 * include/grub/serial.h: Moved to ..
22016 * include/grub/ns8250.h: ...this.
22017 * include/grub/serial.h: New file.
22018 * include/grub/term.h (grub_term_poll_usb): New variable.
22019 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
22020 readkey. All users updated.
22021 (grub_terminfo_output_state): Pass term to put.
22022 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
22023 (grub_usb_controller_dev): Add timeout and actual arguments to
22024 transfer. All users updated.
22025 (grub_usb_interface): New field detach_data.
22026 (grub_usb_device): New fields children and nports.
22027 (grub_usb_ep_type_t): New type.
22028 (grub_usb_get_ep_type): New function.
22029 (grub_usb_bulk_read_extended): Likewise.
22030 * include/grub/usbdesc.h (grub_usb_desc): New type.
22031 * include/grub/usbserial.h: New file.
22032 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
22033 * kern/term.c (grub_term_poll_usb): New variable.
22034 (grub_getkey): Call grub_term_poll_usb if set.
22035 (grub_checkkey): Likewise.
22036 (grub_getkeystatus): Likewise.
22037 * term/serial.c: Moved controller-specific parts to ...
22038 * term/ns8250.c: ... here.
22039 * term/serial.c: Mostly rewritten.
22040 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
22041 according to spec.
22042
21a313de
RM
220432010-08-20 Robert Millan <rmh@gnu.org>
22044
22045 Make kFreeBSD code more generic to support ext2fs as root, ufs as
22046 a separate module and maybe other interesting combinations.
22047
22048 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
22049 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
22050 (kfreebsd_entry): Add generic filesystem module load routine.
22051 Map GRUB `ext2' to kFreeBSD `ext2fs'.
22052
63c734a6
CW
220532010-08-20 Colin Watson <cjwatson@ubuntu.com>
22054
22055 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
22056 "numcenter" (I misunderstood the purpose of this entry).
22057 * docs/grub.texi (sendkey): Likewise.
22058
c4d16542
CW
220592010-08-20 Colin Watson <cjwatson@ubuntu.com>
22060
22061 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
22062 status flag options; simply omitting the option is equivalent and
22063 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
22064 (keysym_table): Rename "num5numlock" to "numlock".
22065 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
22066 can uniformly say that only the last of multiple `sendkey'
22067 invocations has any effect.
22068 * docs/grub.texi (sendkey): New section.
22069
93541d66
CW
220702010-08-19 Colin Watson <cjwatson@ubuntu.com>
22071
22072 * commands/i386/pc/sendkey.c (options): Fix three typos.
22073
b4ece5e1
VS
220742010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
22075
22076 Implement sendkey support.
22077
22078 * commands/i386/pc/sendkey.c: New file.
22079 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
22080 (sendkey_mod_SOURCES): New variable.
22081 (sendkey_mod_CFLAGS): Likewise.
22082 (sendkey_mod_LDFLAGS): Likewise.
22083
51f1f5af
CW
220842010-08-18 Colin Watson <cjwatson@ubuntu.com>
22085
22086 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
22087 fix warnings from Autoconf.
22088
9da94e05
CW
220892010-08-18 Colin Watson <cjwatson@ubuntu.com>
22090
22091 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
22092 to avoid false positives with some assemblers that output things
22093 like "someprefix_func" as part of their output.
22094
729a0f2e
RM
220952010-08-15 Robert Millan <rmh@gnu.org>
22096
22097 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
22098 errors.
22099 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
22100 grub_get_libzfs_handle() errors.
22101
f3710e08
RM
221022010-08-14 Robert Millan <rmh@gnu.org>
22103
22104 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
22105 filesystem is not ZFS.
22106
7a3c13de
BC
221072010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22108
22109 Fix for misspelled color names defaulting to black/black (bug
22110 reported by Doug Nazar)
22111
22112 * include/grub/normal.h (grub_parse_color_name_pair): Add return
22113 status to prototype.
22114 * normal/color.c (grub_parse_color_name_pair): Return failure
22115 status.
22116 (grub_env_write_color_normal): Ignore bad color names.
22117 (grub_env_write_color_highlight): Likewise.
22118 * normal/main.c (GRUB_MOD_INIT): Set default color names.
22119
ab8ba50d
BC
221202010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22121
22122 "shift" command support to GRUB script.
22123
22124 * include/grub/script_sh.h (grub_script_shift): New prototype.
22125 * script/execute.c (grub_script_shift): New function.
22126 * script/main.c (grub_script_init): Register shift command.
22127 (grub_script_fini): Unregister shift command.
22128 * util/grub-script-check.c (grub_script_cmd_shift): New function.
22129
22130 * tests/grub_script_shift.in: New testcase.
22131 * conf/tests.rmk: Rules for new testcase.
22132
4d61999e
BC
221332010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22134
22135 "continue" command support to GRUB script.
22136
22137 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
22138 (grub_script_break): Continue support.
22139 * script/main.c (grub_script_init): Register continue command.
22140 (grub_script_fini): Unregister continue command.
22141
22142 * tests/grub_script_continue.in: New testcase.
22143 * conf/tests.rmk: Rules for new testcase.
22144
4df51e00
BC
221452010-08-12 BVK Chaitanya <bvk@dbook>
22146
22147 "break" command support to GRUB script.
22148
22149 * conf/common.rmk: Rule updates to grub-script-check.
22150 * include/grub/misc.h (grub_min): New function.
22151 * include/grub/script_sh.h (grub_script_init): New prototype.
22152 (grub_script_fini): New prototype.
22153 (grub_script_break): New prototype.
22154 * script/main.c (grub_script_init): New function.
22155 (grub_script_fini): New function.
22156 * script/execute.c (grub_script_break): New function.
22157 * normal/main.c: Calls to grub_script_{init,fini}.
22158 * util/grub-script-check.c (grub_script_break): New function.
22159
22160 * tests/grub_script_break.in: New testcase.
22161 * conf/tests.rmk: Rules for new test case.
22162
f12c8420
BC
221632010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22164
22165 Function parameters support to GRUB script.
22166
22167 * script/yylex.l (VARIABLE): Regular expression update.
22168 * script/function.c (grub_script_function_call): Moved ...
22169 * script/execute.c (grub_script_function_call): ... to here.
22170 (grub_script_execute_arglist_to_argv): Removed.
22171 (grub_script_arglist_to_argv): New function.
22172 * script/argv.c: New file.
22173 (grub_script_argv_free): New function.
22174 (grub_script_argv_next): Likewise.
22175 (grub_script_argv_append): Likewise.
22176 (grub_script_argv_split_append): Likewise.
22177 * include/grub/script_sh.h (grub_script_argv): New struct.
22178 (grub_script_argv_free): New function.
22179 (grub_script_argv_next): Likewise.
22180 (grub_script_argv_append): Likewise.
22181 (grub_script_argv_split_append): Likewise.
22182
22183 * conf/common.rmk (normal.mod): New source script/argv.c.
22184
22185 * tests/grub_script_echo1.in: More tests.
22186 * tests/grub_script_vars1.in: Likewise.
22187 * tests/grub_script_functions.in: New test case.
22188 * conf/tests.rmk: Rules for new testcase.
22189
8022b748
BC
221902010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22191
22192 Remove grub_script_cmdblock struct.
22193
22194 * include/grub/script_sh.h: Remove grub_script_cmdblock.
22195 * script/parser.y: Likewise.
22196 * script/execute.c: Rename cmdblock suffix to cmdlist.
22197 * script/script.c: Likewise.
22198 * util/grub-script-check.c: Likewise.
22199
79a6ba61
YB
222002010-08-11 Yves Blusseau <blusseau@zetam.org>
22201
22202 * .bzrignore: add grub-macho2img
22203
d04b9414
VS
222042010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22205
22206 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
22207
f947ab49
VS
222082010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22209
22210 Remove the dump of sm712 initialisation sequence.
22211
22212 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
22213 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
22214 (GRUB_VGA_IO_MISC_WRITE): Likewise.
22215 (GRUB_VGA_CR_*): Added many registers.
22216 (GRUB_VGA_SR_*): Likewise.
22217 (GRUB_VGA_GR_*): Likewise.
22218 (grub_vga_write_arx): New function.
22219 (grub_video_hw_config): New struct.
22220 (grub_vga_set_geometry): New function.
22221 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
22222 GRUB_PCI_CLASS_SUBCLASS_VGA.
22223 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
22224 * video/sm712.c (grub_sm712_write_reg): New function
22225 (grub_sm712_read_reg): Likewise.
22226 (grub_sm712_sr_write): Likewise.
22227 (grub_sm712_gr_write): Likewise.
22228 (grub_sm712_cr_write): Likewise.
22229 (grub_sm712_write_arx): Likewise.
22230 (grub_sm712_cr_shadow_write): Likewise.
22231 (grub_sm712_write_dda_lookup): Likewise.
22232 (grub_video_sm712_setup): Initialise the video rather then
22233 blindly replay the dump.
22234 (main) [TEST]: Add a routine to be able to compile as standalone for
22235 tests.
22236 * video/sm712_init.c (sm712_init): Removed.
22237 (sm712_sr_seq1): New array.
22238 (sm712_sr_seq2): Likewise.
22239
f0206638
VS
222402010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22241
22242 * include/grub/vga.h: Add missing grub/pci.h include.
22243
2764da3b
YB
222442010-08-10 Yves Blusseau <blusseau@zetam.org>
22245
22246 * util/grub-macho2img.c (main): fix typo
22247
cf0c775e
VS
222482010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22249
22250 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
22251 (grub_vga_gr_read): Likewise.
22252 (grub_vga_cr_write): Likewise.
22253 (grub_vga_cr_read): Likewise.
22254 (grub_vga_sr_write): Likewise.
22255 (grub_vga_sr_read): Likewise.
22256 (grub_vga_palette_read): Likewise.
22257 (grub_vga_palette_write): Likewise.
22258 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
22259 (grub_sm712_sr_read): New function.
22260 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
22261 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
22262
07f360e9
RM
222632010-08-09 Robert Millan <rmh@gnu.org>
22264
22265 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
22266 out unused variables on non-ZFS build.
22267
346c2072
RM
222682010-08-08 Robert Millan <rmh@gnu.org>
22269
22270 Fix path generation for sub-filesystems in ZFS.
22271
22272 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
22273 missing slash.
22274
71175420
RM
222752010-08-08 Robert Millan <rmh@gnu.org>
22276
22277 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
22278
0d8286f3
RM
222792010-08-08 Robert Millan <rmh@gnu.org>
22280
22281 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
22282 exist, issue a proper error message (rely on `ls' for translated
22283 strings).
22284
55dd2924
RM
222852010-08-08 Robert Millan <rmh@gnu.org>
22286
22287 Fix grub-probe invocation.
22288
22289 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
22290
d3dd9e80
RM
222912010-08-04 Robert Millan <rmh@gnu.org>
22292
22293 * configure.ac: Remove checks for getfsstat() and getmntany().
22294 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
22295 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
22296 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
22297 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
22298 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
22299 function.
22300 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
22301 via find_mount_point_from_dir() and getfsstat() / getmntany().
22302
0de22aa9
RM
223032010-08-04 Robert Millan <rmh@gnu.org>
22304
22305 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22306 (grub_find_zpool_from_mount_point): Merge into ...
22307 (grub_find_zpool_from_dir): ... this.
22308 * kern/emu/misc.c: Likewise.
22309
22310 * kern/emu/misc.c
22311 (grub_make_system_path_relative_to_its_root): Replace
22312 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
22313 with grub_find_zpool_from_dir().
22314 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
22315
62858144
RM
223162010-08-04 Robert Millan <rmh@gnu.org>
22317
22318 Support OpenSolaris in ZFS device resolution.
22319
22320 * configure.ac: Check for getmntany().
22321 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
22322 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
22323 support.
22324
9dd6fd50
RM
223252010-08-03 Robert Millan <rmh@gnu.org>
22326
22327 Fix grub-emu build.
22328
22329 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
22330 * include/grub/emu/misc.h: ... here.
22331
22332 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
22333 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
22334
22335 * util/misc.c: Remove `<grub/util/libzfs.h>'.
22336 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
22337 (grub_get_libzfs_handle): Move to ...
22338 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
22339 (grub_get_libzfs_handle): ... here.
22340
c9f7ff97
BC
223412010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
22342
22343 * script/execute.c (grub_script_execute_cmdline): Check for NULL
22344 as command name case.
22345
a870a783
CW
223462010-08-02 Colin Watson <cjwatson@ubuntu.com>
22347
22348 * disk/raid.c (insert_array): Select unique numbers for named arrays
22349 as well, for use as keys in the disk cache.
22350
c7db243b
RM
223512010-08-01 Robert Millan <rmh@gnu.org>
22352
22353 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
22354 kFreeBSD device name, except on ZFS where the filesystem label is
22355 used.
22356 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
22357 `/boot/zfs/zpool.cache'.
22358 Set mountfrom kernel variable using ${kfreebsd_device}.
22359
f7abdefb
RM
223602010-08-01 Robert Millan <rmh@gnu.org>
22361
22362 Make it even harder to use uninitialized `libzfs_handle' (and
22363 make the interface a bit simpler).
22364
22365 * include/grub/util/misc.h (grub_util_init_libzfs)
22366 (libzfs_handle): Remove.
22367 (grub_get_libzfs_handle): New prototype.
22368
22369 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
22370 attribute.
22371 (grub_util_init_libzfs): Remove.
22372 (grub_get_libzfs_handle): New function.
22373
22374 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
22375 grub_get_libzfs_handle() to obtain a libzfs handle instead of
22376 accessing `libzfs_handle' directly.
22377
c882acc0
RM
223782010-08-01 Robert Millan <rmh@gnu.org>
22379
22380 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22381 (grub_find_zpool_from_mount_point): New function prototypes.
22382
22383 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22384 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22385
22386 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22387 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22388 `static' attribute.
22389
22390 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22391 finding zpool from mount point into ...
22392 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22393
22394 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22395 requested path is part of a ZFS pool, use
22396 grub_find_zpool_from_mount_point() to detect its filesystem name,
22397 and generate a path with `/fsname@path' syntax.
22398
8bfe31d8
CW
223992010-08-01 Colin Watson <cjwatson@ubuntu.com>
22400
22401 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
22402 (void) rather than () so that this is a proper prototype.
22403
553df63d
VS
224042010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22405
22406 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
22407
8687cf07
VS
224082010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22409
22410 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
22411 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
22412
ea9be8ea
CW
224132010-08-01 Colin Watson <cjwatson@ubuntu.com>
22414
22415 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
22416
6eea041a
CW
224172010-08-01 Colin Watson <cjwatson@ubuntu.com>
22418
22419 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
22420
2cfb45df
CW
224212010-08-01 Colin Watson <cjwatson@ubuntu.com>
22422
22423 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
22424 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
22425 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
22426 disable gfxpayload.
22427 (Shell-like scripting): Add real content.
22428 (Serial terminal): Suggest `terminal_input serial; terminal_output
22429 serial' rather than putting the two commands on separate lines,
22430 since console input will be inoperative after the first command.
22431 (menuentry): Document --class, --users, and --hotkey options.
22432 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
22433 Vladimir Serbinenko).
22434
7decd202
VS
224352010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
224362010-08-01 Colin Watson <cjwatson@ubuntu.com>
22437
22438 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
22439
c882acc0
RM
224402010-08-01 Robert Millan <rmh@gnu.org>
22441
22442 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22443 (grub_find_zpool_from_mount_point): New function prototypes.
22444
22445 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22446 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22447
22448 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22449 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22450 `static' attribute.
22451
22452 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22453 finding zpool from mount point into ...
22454 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22455
22456 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22457 requested path is part of a ZFS pool, use
22458 grub_find_zpool_from_mount_point() to detect its filesystem name,
22459 and generate a path with `/fsname@path' syntax.
22460
deb0caa3
RM
224612010-08-01 Robert Millan <rmh@gnu.org>
22462
22463 Prevent accidental use of uninitialized libzfs_handle.
22464
22465 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
22466 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
22467 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
22468
ce04ef47
CW
224692010-08-01 Colin Watson <cjwatson@ubuntu.com>
22470
22471 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
22472 util/grub.d/10_linux.in). Fixes Debian bug #591093.
22473
ebf53056
RM
224742010-08-01 Robert Millan <rmh@gnu.org>
22475
22476 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 22477
3710bb6b
RM
224782010-07-31 Robert Millan <rmh@gnu.org>
22479
22480 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
22481
8072efeb
RM
224822010-07-31 Robert Millan <rmh@gnu.org>
22483
22484 * kern/emu/misc.c: Add missing license header.
22485
3169f4c7
RM
224862010-07-31 Robert Millan <rmh@gnu.org>
22487
22488 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
22489
22490 * include/grub/util/libnvpair.h: Include `<config.h>'.
22491 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
22492 declaring libnvpair prototypes ourselves.
22493 * include/grub/util/libzfs.h: Include `<config.h>'.
22494 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
22495 declaring libzfs prototypes ourselves.
22496
22497 (libzfs_handle): Moved to ...
22498 * include/grub/util/misc.h (libzfs_handle): ... here.
22499 Include `<grub/util/libzfs.h>'.
22500
c9a00aee
RM
225012010-07-30 Robert Millan <rmh@gnu.org>
22502
22503 * include/grub/emu/misc.h: Add missing license header.
22504
a184f9c8
RM
225052010-07-30 Robert Millan <rmh@gnu.org>
22506
22507 Enable `grub-probe -t device' resolution on ZFS.
22508
22509 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
22510 * include/grub/util/libnvpair.h: New file.
22511 * include/grub/util/libzfs.h: New file.
22512
22513 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
22514 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
22515 `<grub/util/libnvpair.h>'.
22516 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
22517
22518 (find_mount_point_from_dir): New static function.
22519 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
22520 function.
22521 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
22522 find_root_device_from_libzfs() before ressorting to find_root_device().
22523
22524 * include/grub/util/misc.h (grub_util_init_libzfs): New function
22525 prototype.
22526 * util/misc.c: Include `<grub/util/libzfs.h>'.
22527 (grub_util_init_libzfs): New function.
22528 [HAVE_LIBZFS] (libzfs_handle): New global variable.
22529 [HAVE_LIBZFS] (fini_libzfs): New static function.
22530 (grub_util_init_libzfs): New function.
22531 * util/grub-probe.c (main): Call grub_util_init_libzfs().
22532
f7790cdd
RM
225332010-07-30 Robert Millan <rmh@gnu.org>
22534
22535 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
22536 (xmalloc, xrealloc, xstrdup, xasprintf): Add
22537 `warn_unused_result' attribute.
22538 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
22539 (grub_xasprintf, grub_xvasprintf): Likewise.
22540 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
22541
0806b63c
RM
225422010-07-29 Robert Millan <rmh@gnu.org>
22543
22544 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
22545 (probe): Handle `PRINT_FS_LABEL'.
22546 (main): Handle `-t fs_label'.
22547
9f841f5c
RM
225482010-07-29 Robert Millan <rmh@gnu.org>
22549
22550 * configure.ac: Remove grub-mkisofs checks.
22551
46371121
VS
225522010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
22553
22554 * util/ieee1275/grub-install.in: Don't use empty grub_device.
22555 Reported by: Lennart Sorensen.
22556
225572010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22558
22559 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
22560 prior to terminal_input/terminal_output separation. It's been over 1.5
22561 years and those versions weren't widely deployed.
22562
a9600892
CW
225632010-07-22 Colin Watson <cjwatson@ubuntu.com>
22564
22565 * disk/raid.c (insert_array): Don't count named arrays when looking
22566 for unused array numbers.
697e053c 22567 Reported and tested by: Michael Guntsche.
a9600892 22568
c03507df
CW
225692010-07-20 Colin Watson <cjwatson@ubuntu.com>
22570
22571 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
22572 implementation of this so that grub-emu links again, with a note
22573 that this should support hotplugging in the future.
22574
b26f1c11
CW
225752010-07-20 Colin Watson <cjwatson@ubuntu.com>
22576
22577 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
22578
efc9d7f1
CW
225792010-07-20 Colin Watson <cjwatson@ubuntu.com>
22580
22581 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
22582 handle on failure.
22583 (grub_loopback_close): Remove empty function.
22584 (grub_loopback_dev): Remove close method.
22585
dd8ff5c9
CW
225862010-07-20 Colin Watson <cjwatson@ubuntu.com>
22587
22588 Disable EFI cursor when the EFI console becomes inactive.
22589
22590 * term/efi/console.c (grub_efi_console_init): New function.
22591 (grub_efi_console_fini): New function.
22592 (grub_console_term_output): Register init and fini methods.
22593
5e3bec67
VS
225942010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22595
22596 * tests/util/grub-shell-tester.in: Remove bashism and declare as
22597 sh script.
22598
afaec079
VS
225992010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22600
22601 * disk/loopback.c (grub_loopback): Replace filename with file.
22602 (delete_loopback): Handle new semantics.
22603 (grub_cmd_loopback): Likewise.
22604 (grub_loopback_iterate): Likewise.
22605 (grub_loopback_close): Likewise.
22606
a6a11f3c
VS
226072010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22608
22609 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
22610 with -p "".
22611 Reported by: Tito Keitel.
22612
64a638b0
VS
226132010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22614
22615 * docs/grub.texi (Naming convention): Document new naming convention.
22616
ab8ba957
VS
226172010-07-20 Vadim Solomin <vadic052@gmail.com>
226182010-07-20 Colin Watson <cjwatson@ubuntu.com>
22619
22620 Generate device.map in something closer to the old ordering.
22621
22622 * util/deviceiter.c (struct device): New declaration.
22623 (compare_file_names): Rename to ...
22624 (compare_devices): ... this. Sort by kernel name in preference to
22625 the stable by-id name, but keep the latter as a fallback comparison.
22626 Update header comment.
22627 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
22628 of `struct device' rather than of plain file names.
22629
a29d6a4b
TF
226302010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
22631
22632 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
22633 on i386.
22634
39d824e8
VS
226352010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22636
22637 * commands/acpi.c (setup_common_tables): Use sizeof instead of
22638 hardcoding size.
22639 (setv1table): Likewise.
22640
f058276b
FZ
226412010-07-20 Colin Watson <cjwatson@ubuntu.com>
22642
22643 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
22644 removing the homehost if present.
22645 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
22646 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
22647 removing the homehost if present.
22648 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
22649 if possible.
22650 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
22651
22652 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
22653 parameter. Set its pointer target to 0.
22654 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
22655 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
22656 `data_offset' value from the superblock for 1.x metadata.
22657 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
22658 data on the device.
22659 (insert_array): Record the start sector of data on the device.
22660 (grub_raid_register): Pass start_sector parameters to
22661 grub_raid_list->detect and insert_array.
22662 * include/grub/raid.h (struct grub_raid_array): Add start_sector
22663 member.
22664 (struct grub_raid): Add start_sector parameter to `detect'.
22665
22666 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
22667 __attribute__ ((packed)), leaving a comment.
22668 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
22669 (grub_mdraid_detect_09): ... here and ...
22670 (grub_mdraid_detect_1x): ... here.
22671
226722010-07-20 Peter Henn <peter.henn@web.de>
22673
22674 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
22675 chunk size and disk size, which are already given as sector counts
22676 as distinct from the 0.90 units. Fetch the correct device number
22677 from the role table instead of using the table index.
22678
226792010-07-20 Felix Zielcke <fzielcke@z-51.de>
22680
22681 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
22682 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
22683 (WriteMostly1): New macro.
22684 Set array->name to NULL for metadata format 0.90. Add support for
22685 metadata 1.x. Fix some comments.
22686 * disk/raid.c (): Add support for name based RAID arrays. Fix a
22687 few comments.
22688 * util/getroot.c (grub_util_get_grub_dev): Add support for
22689 /dev/md/name style devices.
22690
4b761da9
CW
226912010-07-20 Colin Watson <cjwatson@ubuntu.com>
22692
22693 * .bzrignore: Ignore 20_linux_xen.
22694
5771289a
CW
226952010-07-17 Colin Watson <cjwatson@ubuntu.com>
22696
22697 * util/import_unicode.py: Remove unnecessary imports.
22698
5dab68df
AN
226992010-07-17 Aleš Nesrsta <starous@volny.cz>
22700
22701 Hotplugging and USB hub support.
22702
22703 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
22704 (grub_ohci): Likewise.
22705 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
22706 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
22707 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
22708 (GRUB_OHCI_CTRL_EDS): Likewise.
22709 (GRUB_OHCI_BULK_EDS): Likewise.
22710 (GRUB_OHCI_TDS): Likewise.
22711 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
22712 (grub_ohci_ed_phys2virt): New function.
22713 (grub_ohci_virt_to_phys): Likewise.
22714 (grub_ohci_td_phys2virt): Likewise.
22715 (grub_ohci_td_virt2phys): Likewise.
22716 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
22717 attachment.
22718 (grub_ohci_find_ed): New function.
22719 (grub_ohci_alloc_td): Likewise.
22720 (grub_ohci_free_td): Likewise.
22721 (grub_ohci_free_tds): Likewise.
22722 (grub_ohci_transfer): Use previously allocated memory.
22723 (grub_ohci_portstatus): Reset status changed bit.
22724 (grub_ohci_detect_dev): Supply status changed.
22725 (grub_ohci_fini_hw): Free memory.
22726 (grub_ohci_restore_hw): Reallocate memory.
22727 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
22728 Reset status change.
22729 (grub_uhci_detect_dev): Supply status_change.
22730 * bus/usb/usb.c (attach_hooks): New var.
22731 (grub_usb_device_attach): New function.
22732 (grub_usb_register_attach_hook_class): Likewise.
22733 (grub_usb_unregister_attach_hook_class): Likewise.
22734 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
22735 (grub_usb_add_hub): Reset connection changed bit.
22736 (attach_root_port): New function.
22737 (grub_usb_root_hub): Likewise.
22738 (poll_nonroot_hub): Likewise.
22739 (grub_usb_poll_devices): Likewise.
22740 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
22741 * disk/usbms.c (grub_usbms_open): Use device hooks.
22742 (grub_usbms_iterate) :Poll devices.
22743 (grub_usbms_finddevs): Split into ...
22744 (grub_usbms_attach): ... this ...
22745 (grub_usbms_attach): ... and this.
22746 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
22747 in detect_dev.
22748 (grub_usb_interface): New fields attached and detach_hook.
22749 (grub_usb_attach_hook_class): New type.
22750 (grub_usb_attach_desc): New struct.
22751 (grub_usb_register_attach_hook_class): New function.
22752 (grub_usb_unregister_attach_hook_class): Likewise.
22753 (grub_usb_poll_devices): Likewise.
22754 (grub_usb_device_attach): Likewise.
22755 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
22756 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
22757
3222efaf
VS
227582010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
22759
22760 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
22761 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
22762 delta determination style. Works with most NetBSD partitions too.
22763
139b714a
VS
227642010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
22765
22766 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
22767 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
22768
986aad56
VS
227692010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
22770
22771 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
22772
99be513c
AB
227732010-07-14 Anton Blanchard <anton@samba.org>
22774
22775 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
22776 ET_DYN files.
22777
18075f62
GS
227782010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22779
22780 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
22781
8d9a5b15
GS
227822010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22783
22784 * kern/partition.c (grub_partition_check_containment): New function to
22785 check that a partition is physically contained in a parent. Since
22786 offsets are relative (and non-negative), this reduces to checking that
22787 the partition ends before its parent.
22788 (grub_partition_map_probe): Discard out-of-range sub-partitions.
22789 (grub_partition_iterate): Likewise.
22790 * include/grub/partition.h (grub_partition_map): Slightly more detailed
22791 comments.
22792 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
22793 partitions that start before their parent, and add debug printfs.
22794
19563c25
CW
227952010-07-13 Colin Watson <cjwatson@ubuntu.com>
22796
22797 * Makefile.in (.SUFFIX): Spell correctly, as ...
22798 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
22799 bare module name without `.mod', e.g. `test') tried to invoke a
22800 Modula-2 compiler.
22801
1a1f1e67
CW
228022010-07-13 Colin Watson <cjwatson@ubuntu.com>
22803
22804 * README: Point to the Info manual.
22805
811b0dca
JS
228062010-07-13 Jiro SEKIBA <jir@unicus.jp>
22807
22808 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
22809 2nd superblock position from partition size.
22810
e4f4eafc
CW
228112010-07-10 Colin Watson <cjwatson@ubuntu.com>
22812
22813 * Makefile.in (MAINTAINER_CLEANFILES): Remove
22814 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
22815 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
22816 outputs.
22817
4274c30f
VS
228182010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22819
22820 Restructure SCSI .id handling.
22821 Reported and tested by: Aleš Nesrsta.
22822
22823 * disk/ata.c (grub_atapi_close): Removed. All users updated.
22824 (grub_atapi_dev): Changed .name to "ata". New field .id.
22825 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
22826 (grub_usbms_dev): New field .id.
22827 * disk/scsi.c (grub_scsi_iterate): Generate name.
22828 (grub_scsi_open): Parse name.
22829 * include/grub/scsi.h (grub_make_scsi_id): New function.
22830 (grub_scsi_dev): Change iterate and open to number instead of naming
22831 busses. All users updated.
22832 (grub_scsi): Remove name. Add .bus.
22833
5bc24388
VS
228342010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22835
22836 * commands/help.c (grub_cmd_help): Fix a typo.
22837
249975ba
VS
228382010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22839
22840 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
22841 Reported and tested by: Colin Watson.
22842
3eaac1a1
VS
228432010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22844
22845 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
22846 in this context.
22847
becce1b1
VS
228482010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
22849
22850 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
22851
f7bf0918
CW
228522010-07-07 Colin Watson <cjwatson@ubuntu.com>
22853
22854 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
22855 indentation.
22856
0b0f9620
CW
228572010-07-06 Colin Watson <cjwatson@ubuntu.com>
22858
22859 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
22860 and disk/raid6_recover.c.
22861 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22862 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22863
1e545469
CW
228642010-07-06 Colin Watson <cjwatson@ubuntu.com>
22865
22866 * term/gfxterm.c (repaint_schedulded): Rename to ...
22867 (repaint_scheduled): ... this. Update all callers.
22868 (repaint_was_schedulded): Rename to ...
22869 (repaint_was_scheduled): ... this. Update all callers.
22870
5357687a
CW
228712010-07-06 Colin Watson <cjwatson@ubuntu.com>
22872
22873 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
22874 which we expect to be handled by upper layers.
22875
29d7e783
BC
228762010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
22877
22878 * bus/usb/usbhub.c: #include time.h header.
22879
37582066
CW
228802010-07-06 Colin Watson <cjwatson@ubuntu.com>
22881
22882 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
22883 entry_name also for entries without stat blocks (e.g. ".."); fixes
22884 corruption of the first entry in a directory.
22885
c8c06953
CW
228862010-07-06 Colin Watson <cjwatson@ubuntu.com>
22887
22888 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
22889 after setting gfxterm as the active terminal. GRUB_BACKGROUND
22890 doesn't work otherwise.
22891
e75056f1
CW
228922010-07-05 Colin Watson <cjwatson@ubuntu.com>
22893
22894 * docs/grub.texi (Features): Update list of supported file systems.
22895 (GNU/Linux): Update for GRUB 2.
22896 (Serial terminal): Remove mention of --disable-serial, which was a
22897 GRUB Legacy configure option. Update instructions to use
22898 `terminal_input' and `terminal_output' rather than `terminal'.
22899 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
22900 configuration' and `Installing GRUB using grub-install'.
22901 (Menu entry editor): Update for GRUB 2.
22902 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
22903 Document new -a, -u, and -v options.
22904 (initrd): New section.
22905 (initrd16): New section.
22906 (linux): New section.
22907 (linux16): New section.
22908 (search): The `var' argument to `--set' is optional.
22909 (GRUB only offers a rescue shell): Go into a little more detail on
22910 drive ordering.
22911
5cf69151
CW
229122010-07-05 Colin Watson <cjwatson@ubuntu.com>
22913
22914 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
22915
e3f90044
CW
229162010-07-05 Colin Watson <cjwatson@ubuntu.com>
22917
22918 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
22919 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
22920
38d8f4f3
CW
229212010-07-05 Colin Watson <cjwatson@ubuntu.com>
22922
22923 * util/i386/pc/grub-setup.c (setup): Rename prefix to
22924 install_prefix, in line with install_dos_part and install_bsd_part.
22925 Add new prefix variable, which is copied to install_prefix after
22926 comparing core.img in memory with the one read from disk in the
22927 no-embedding case, and use that rather than overwriting
22928 install_prefix immediately when installing to a partition.
22929 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
22930 Bicakci.
22931
57ebd41e
GS
229322010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
22933
22934 * configure.ac: Avoid == in test command, it's not portable.
22935 * util/grub.d/30_os-prober.in: Likewise.
22936
cb7f64b2
CW
229372010-07-04 Colin Watson <cjwatson@ubuntu.com>
22938
22939 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
22940
6b654bb0
GS
229412010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
22942
22943 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
22944 multiple (top-level) partmaps.
22945
72a2026d
VS
229462010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22947
22948 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 22949 Reported by: Tino Keitel.
72a2026d 22950
df3eb88f
VS
229512010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22952
22953 Bidi and diacritics support.
22954
22955 * Makefile.in (widthspec.bin): New target.
22956 (widthspec.h): Likewise.
22957 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
22958 * autogen.sh: Generate unidata.c.
22959 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
22960 * commands/ls.c (grub_ls_list_devices): Likewise.
22961 (grub_ls_list_files): Likewise.
22962 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
22963 (grub_mini_cmd_lsmod): Likewise.
22964 * commands/read.c: Likewise.
22965 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
22966 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
22967 * lib/arg.c (grub_arg_show_help): Likewise.
22968 * lib/crypto.c (grub_password_get): Likewise.
22969 * normal/auth.c (grub_username_get): Likewise.
22970 * normal/misc.c (grub_normal_print_device_info): Likewise.
22971 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
22972 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
22973 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
22974 (normal/charset.c_DEPENDENCIES): New variable.
22975 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
22976 (pkglib_MODULES): Remove charset.mod.
22977 (charset_mod_SOURCES): Removed.
22978 (charset_mod_CFLAGS): Likewise.
22979 (charset_mod_LDFLAGS): Likewise.
22980 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
22981 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
22982 and term/tparm.c.
22983 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22984 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22985 (kernel_img_HEADERS): Add terminfo.h.
22986 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
22987 Fill ->font. Reverse ascii bitmaps.
22988 (grub_font_get_xheight): New function.
22989 * font/font.c (grub_font_get_string_width): Moved from here ...
22990 * gfxmenu/font.c (grub_font_get_string_width): ... here.
22991 * font/font.c (grub_font_draw_string): Moved from here ...
22992 * gfxmenu/font.c (grub_font_draw_string): ... here.
22993 * font/font.c (grub_font_dup_glyph): New function.
22994 (grub_font_blit_glyph): Likewise.
22995 (grub_font_blit_glyph_mirror): Likewise.
22996 (blit_comb): Likewise.
22997 (grub_font_construct_dry_run): Likewise.
22998 (grub_font_get_constructed_device_width): Likewise.
22999 (grub_font_construct_glyph): Likewise.
23000 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
23001 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
23002 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
23003 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
23004 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
23005 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
23006 (grub_font_get_xheight): New proto.
23007 (grub_font_get_constructed_device_width): Likewise.
23008 (grub_font_construct_glyph): Likewise.
23009 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
23010 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
23011 * include/grub/font.h (grub_font_draw_string): Moved from here ...
23012 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
23013 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
23014 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
23015 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
23016 (grub_console_getcharwidth): Likewise.
23017 * include/grub/misc.h (grub_xputs): New proto.
23018 (grub_puts): Inlined.
23019 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
23020 (grub_normal_get_line_counter): Removed.
23021 (grub_install_newline_hook): Likewise.
23022 (grub_normal_get_char_counter): New proto.
23023 (grub_normal_reset_more): Likewise.
23024 (grub_xputs_normal): Likewise.
23025 * include/grub/powerpc/ieee1275/console.h: Removed.
23026 * include/grub/sparc64/ieee1275/console.h: Likewise.
23027 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
23028 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
23029 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
23030 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
23031 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
23032 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
23033 (grub_term_input): Pass reference to self. All users updated.
23034 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
23035 Pass reference to self. New fields normal_color, highlight_color and
23036 data. All users updated.
23037 (grub_putchar): Removed.
23038 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
23039 (grub_unicode_estimate_width): New function.
23040 (grub_term_getcharwidth): Add defaults.
23041 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
23042 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
23043 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
23044 (grub_cls): Remove EXPORT_FUNC.
23045 (grub_setcolorstate): Inline.
23046 (grub_newline_hook): Removed.
23047 * include/grub/terminfo.h: Rewritten. All users updated.
23048 * include/grub/unicode.h: New file.
23049 * include/grub/video.h (grub_video_signed_rect): New type.
23050 * kern/emu/console.c (grub_console_highlight_color): Removed.
23051 (grub_console_normal_color): Likewise.
23052 (grub_console_standard_color): Made static.
23053 (grub_ncurses_putchar): Remove mapping.
23054 (grub_ncurses_getcharwidth): Removed.
23055 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23056 (grub_ncurses_setcolor): Removed.
23057 (grub_ncurses_getcolor): Likewise.
23058 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
23059 (grub_console_putchar): ... this.
23060 (grub_console_putchar): Handle argument difference.
23061 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
23062 console_init_early and console_init_lately.
23063 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
23064 * kern/misc.c (grub_puts): Removed.
23065 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
23066 (grub_vsnprintf_real): Remove str = NULL support.
23067 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
23068 * normal/charset.c (grub_utf8_to_ucs4): ... here.
23069 * kern/term.c (grub_putcode): Renamed to ...
23070 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
23071 (grub_putchar): Removed.
23072 (grub_xputs_dumb): New function.
23073 (grub_xputs): New variable.
23074 * lib/charset.c: Move from here ...
23075 * normal/charset.c: ... to here.
23076 (grub_ucs4_to_utf8): New function.
23077 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
23078 (join_types): New variable.
23079 (unpack_join): New function.
23080 (bidi_types): New variable.
23081 (unpack_bidi): New function.
23082 (get_bidi_type): Likewise.
23083 (get_join_type): Likewise.
23084 (is_mirrored): Likewise.
23085 (grub_unicode_get_comb_type): Likewise.
23086 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
23087 (is_type_after): Likewise.
23088 (grub_unicode_aglomerate_comb): Likewise.
23089 (bidi_line_wrap): Likewise.
23090 (grub_bidi_line_logical_to_visual): Likewise.
23091 (grub_bidi_logical_to_visual): Likewise.
23092 (grub_unicode_mirror_code): Likewise.
23093 (grub_unicode_shape_code): Likewise.
23094 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
23095 Don't use grub_putchar.
23096 * normal/main.c (grub_normal_init_page): Use grub_putcode.
23097 (grub_normal_reader_init): Likewise.
23098 (grub_xputs_saved): New variable.
23099 (GRUB_MOD_INIT): Set grub_xputs.
23100 (GRUB_MOD_FINI): Restore grub_xputs.
23101 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
23102 (menu_init): Avoid printing gfxmenu error.
23103 (show_menu): Use grub_normal_get_char_counter.
23104 * normal/menu_entry.c (update_screen): Fix out-of-array.
23105 (complete): Avoid NULL dereferencing.
23106 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
23107 * normal/menu_text.c (print_spaces): Removed.
23108 (grub_print_ucs4): Likewise.
23109 (grub_print_message_indented): Use grub_print_ucs4.
23110 (print_message): Use grub_putcode.
23111 (print_entry): Hanlde diacritics.
23112 * normal/term.c (term_state): New type.
23113 (grub_more_lines): Removed.
23114 (term_states): New variable.
23115 (grub_normal_line_counter): Renamed to ..
23116 (grub_normal_char_counter): ...this. All users updated.
23117 (grub_normal_get_line_counter): Renamed to ...
23118 (grub_normal_get_char_counter): ... this.
23119 (grub_normal_reset_more): New function.
23120 (process_newline): Removed.
23121 (print_more): New function.
23122 (grub_install_newline_hook): Removed.
23123 (map_code): New function.
23124 (grub_puts_terminal): Use grub_print_ucs4.
23125 (putglyph): New function.
23126 (putcode_real): Likewise.
23127 (grub_putcode): Use putcode_real.
23128 (get_maxwidth): New function.
23129 (get_startwidth): Likewise.
23130 (print_ucs4_terminal): Likewise.
23131 (find_term_state): Likewise.
23132 (put_glyphs_terminal): Likewise.
23133 (print_backlog): Likewise.
23134 (print_ucs4_real): Likewise.
23135 (grub_print_ucs4): Likewise.
23136 (grub_xputs_normal): Likewise.
23137 * term/efi/console.c (grub_console_putchar): Output diacritics.
23138 (grub_console_getcharwidth): Removed.
23139 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23140 * term/gfxterm.c (clear_char): Free chars.
23141 (scroll_up): Avoid leaking memory.
23142 (grub_gfxterm_putchar): Support diacritics.
23143 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23144 * term/i386/pc/console.c (grub_console_term_output): Declare as
23145 GRUB_TERM_CODE_TYPE_VGA.
23146 * term/i386/pc/vga.c (grub_vga_term): Declare as
23147 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
23148 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
23149 GRUB_TERM_CODE_TYPE_VGA.
23150 * term/i386/vga_common.c (map_char): Removed.
23151 (grub_console_putchar): Likewise.
23152 (grub_console_getcharwidth): Likewise.
23153 * term/ieee1275/ofconsole.c: Simplify using terminfo.
23154 (colors): Reordered to match terminfo.
23155 (grub_ofconsole_normal_color): Removed.
23156 (grub_ofconsole_writeesc): Likewise.
23157 (grub_ofconsole_highlight_color): Likewise.
23158 (grub_ofconsole_getcharwidth): Likewise.
23159 (grub_ofconsole_setcolorstate): Likewise.
23160 (grub_ofconsole_setcolor): Likewise.
23161 (grub_ofconsole_getcolor): Likewise.
23162 (grub_ofconsole_readkey): Renamed to ...
23163 (readkey): ... this. Remove escape sequence handling. Return -1 on no
23164 key.
23165 (grub_ofconsole_checkkey): Removed.
23166 (grub_ofconsole_getkey): Likewise.
23167 (grub_ofconsole_getxy): Likewise.
23168 (grub_ofconsole_gotoxy): Likewise.
23169 (grub_ofconsole_cls): Likewise.
23170 (grub_ofconsole_refresh): Likewise.
23171 (grub_ofconsole_terminfo_input): New struct.
23172 (grub_ofconsole_terminfo_output): Likewise.
23173 (grub_ofconsole_term_input): Use terminfo.
23174 (grub_ofconsole_term_output): Likewise.
23175 (grub_console_init): Split into ...
23176 (grub_console_init_early): ...this and ...
23177 (grub_console_init_lately): ...this. Use terminfo.
23178 (grub_ofconsole_putchar): Renamed to ...
23179 (put): ... this. Remove mapping.
23180 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23181 * term/serial.c: Simplify using terminfo.
23182 (xpos): Removed.
23183 (ypos): Likewise.
23184 (keep_track): Likewise.
23185 (registered): Likewise.
23186 (input_buf): Likewise.
23187 (npending): Likewise.
23188 (serial_translate_key_sequence): Likewise.
23189 (fill_input_buf): Likewise.
23190 (grub_serial_checkkey): Likewise.
23191 (grub_serial_getkey): Likewise.
23192 (grub_serial_getxy): Likewise.
23193 (grub_serial_gotoxy): Likewise.
23194 (grub_serial_putchar): Likewise.
23195 (grub_serial_cls): Likewise.
23196 (grub_serial_setcolorstate): Likewise.
23197 (grub_serial_setcursor): Likewise.
23198 (serial_hw_init): Use serial_hw_fetch.
23199 (grub_serial_terminfo_input): New variable.
23200 (grub_serial_terminfo_output): Likewise.
23201 (grub_serial_term_input): Use terminfo.
23202 (grub_serial_term_output): Likewise.
23203 * term/terminfo.c (putstr): Use put.
23204 (grub_terminfo_all_free): New function
23205 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
23206 (grub_terminfo_output_register): New function.
23207 (grub_terminfo_output_unregister): Likewise.
23208 (grub_terminfo_getxy): Likewise.
23209 (grub_terminfo_readkey): Likewise.
23210 (grub_terminfo_checkkey): Likewise.
23211 (grub_terminfo_getkey): Likewise.
23212 (grub_terminfo_input_init): Likewise.
23213 (print_terminfo): Likewise.
23214 (grub_cmd_terminfo): Handle encoding.
23215 (grub_terminfo_gotoxy): Track position.
23216 (grub_terminfo_cls): Likewise.
23217 (grub_terminfo_putchar): Likewise.
23218 (grub_terminfo_setcolorstate): Handle colors
23219 (grub_terminfo_cursor_on): This ...
23220 (grub_terminfo_cursor_off): ... and this merged into ...
23221 (grub_terminfo_setcursor): ... this.
23222 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
23223 * unicode/ArabicShaping.txt: New file (imported from Unicode).
23224 * unicode/BidiMirroring.txt: Likewise.
23225 * unicode/UnicodeData.txt: Likewise.
23226 * unicode/COPYING: Likewise.
23227 * util/grub-editenv.c (grub_putchar): Removed.
23228 (grub_xputs_real): New function.
23229 (grub_xputs): New variable.
23230 * util/grub-fstest.c (grub_putchar): Removed.
23231 (grub_xputs_real): New function.
23232 (grub_xputs): New variable.
23233 * util/grub-mkdevicemap.c (grub_putchar): Removed.
23234 (grub_xputs_real): New function.
23235 (grub_xputs): New variable.
23236 * util/grub-probe.c (grub_putchar): Removed.
23237 (grub_xputs_real): New function.
23238 (grub_xputs): New variable.
23239 * util/grub-script-check.c (grub_putchar): Removed.
23240 (grub_xputs_real): New function.
23241 (grub_xputs): New variable.
23242 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
23243 (grub_xputs_real): New function.
23244 (grub_xputs): New variable.
23245 * util/import_unicode.py: New file.
23246 * util/grub-mkfont.c (ft_errmsgs): New array.
23247 (grub_glyph_info): Make bitmap a pointer.
23248 (file_formats): New type WIDTH_SPEC.
23249 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
23250 (options): Add width-spec.
23251 (help): Likewise.
23252 (add_char): Renamed to ...
23253 (add_glyph): ... this.
23254 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
23255 (glyph_replace): New type.
23256 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
23257 (add_char): New function.
23258 (add_subst): Likewise.
23259 (process_cursive): Likewise.
23260 (add_font): Handle GSUB.
23261 (write_font_width_spec): New function.
23262 (main): Sort glyphs.
23263 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
23264 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
23265 * kern/term.c (grub_cls): Moved from here...
23266 * normal/term.c (grub_cls): ... here.
23267
50f0bcda
CW
232682010-07-02 Colin Watson <cjwatson@ubuntu.com>
23269
23270 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
23271 suitable for using within the format argument of printf when
23272 converting grub_size_t.
23273 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
23274 "x" to convert grub_size_t arguments.
23275
40372103
VS
232762010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23277
23278 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
23279 too long captions.
23280 (list_get_minimal_size): Take selection box into account.
23281
942a10c7
VS
232822010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23283
23284 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
23285 NULL font.
23286
2bdb2892
CW
232872010-07-02 Colin Watson <cjwatson@ubuntu.com>
23288
23289 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
23290 devices when iterating over /dev/disk/by-id; they will be handled
23291 later if appropriate, which they aren't always (e.g. LVM).
23292
e03ed6c1
CW
232932010-07-02 Colin Watson <cjwatson@ubuntu.com>
23294
23295 * include/grub/misc.h (grub_reboot): Declare as noreturn.
23296 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
23297 fails.
23298 (grub_halt): Likewise.
23299 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
23300 reset-all fails.
23301 (grub_halt): Don't return, even if all of shut-down, power-off, and
23302 poweroff fail.
23303
47695765
CW
233042010-07-02 Colin Watson <cjwatson@ubuntu.com>
23305
23306 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
23307 arguments, not three.
23308
507736c8
CW
233092010-07-02 Colin Watson <cjwatson@ubuntu.com>
23310
23311 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
23312 * util/grub.d/10_linux.in: Use it to check for LVM, so that
23313 LVM-on-RAID is handled correctly.
23314
e3c8cd37
CW
233152010-07-02 Colin Watson <cjwatson@ubuntu.com>
23316
23317 * docs/grub.texi (Changes from GRUB Legacy): New section.
23318 (Future): Fix typo.
23319
8d4a2fec
CW
233202010-07-02 Colin Watson <cjwatson@ubuntu.com>
23321
23322 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
23323 grub.d/README accidentally ends up executable for one reason or
23324 another. Ignore it.
23325
1c4827be
VS
233262010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23327
23328 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
23329 (gpt_partition_map_iterate): Support non-512B sectors.
23330
d9a0c941
VS
233312010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23332
23333 * kern/efi/init.c (grub_efi_init): Disable watchdog.
23334 Tested by: Seth Goldberg.
23335
48f27e87
VS
233362010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23337
23338 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
23339 Properly align mbi.
23340 Reported by: Seth Goldberg.
23341
b0c4f956
VS
233422010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23343
23344 * util/grub-mkrescue.in: Avoid module duplication.
23345
105a2e8c
SF
233462010-07-01 Sean Finney <seanius@seanius.net>
23347
23348 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
23349
5944958c
SF
233502010-07-01 Sean Finney <seanius@seanius.net>
23351
23352 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
23353
233542010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23355
23356 * disk/lvm.c (grub_lvm_checkvalue): New function.
23357 (grub_lvm_check_flag): Likewise.
23358
b79889ba
RM
233592010-07-01 Robert Millan <rmh@gnu.org>
23360
23361 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
23362 Support 'p' as partition separator on kernel of FreeBSD (used
23363 with GPT labels).
23364 (grub_util_biosdisk_get_grub_dev): Likewise.
23365
ec1d04f1
VS
233662010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23367
23368 Yeeloong firmware port.
23369
23370 * boot/mips/yeeloong/fwstart.S: New file.
23371 * bus/cs5536.c (gpiodump): New const.
23372 (set_io_space): New function.
23373 (set_iod): Likewise.
23374 (set_p2d): Likewise.
23375 (grub_cs5536_init_geode): Likewise.
23376 * commands/mips/yeeloong/lsspd.c: New file.
23377 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
23378 (serial_mod_SOURCES): New variable.
23379 (serial_mod_CFLAGS): Likewise.
23380 (serial_mod_LDFLAGS): Likewise.
23381 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
23382 term/terminfo.c and term/tparm.c.
23383 (pkglib_IMAGES): Add fwstart.img.
23384 (fwstart_img_SOURCES): New variable.
23385 (fwstart_img_CFLAGS): Likewise.
23386 (fwstart_img_ASFLAGS): Likewise.
23387 (fwstart_img_LDFLAGS): Likewise.
23388 (fwstart_img_FORMAT): Likewise.
23389 (pkglib_MODULES): Add lsspd.mod.
23390 (lsspd_mod_SOURCES): New variable.
23391 (lsspd_mod_CFLAGS): Likewise.
23392 (lsspd_mod_LDFLAGS): Likewise.
23393 (pkglib_MODULES): Add halt.mod.
23394 (halt_mod_SOURCES): New variable.
23395 (halt_mod_CFLAGS): Likewise.
23396 (halt_mod_LDFLAGS): Likewise.
23397 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
23398 (serial_mod_SOURCES): Removed.
23399 (serial_mod_CFLAGS): Likewise.
23400 (serial_mod_LDFLAGS): Likewise.
23401 * disk/ata.c (check_device): New function.
23402 (grub_ata_device_initialize): Use check_device.
23403 (grub_ata_iterate): Recheck devices.
23404 (grub_ata_open): Likewise.
23405 (grub_atapi_iterate): Likewise.
23406 (grub_atapi_open): Likewise.
23407 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
23408 (GRUB_ATA_CH1_PORT1): Likewise.
23409 (GRUB_ATA_CH0_PORT2): Likewise.
23410 (GRUB_ATA_CH1_PORT2): Likewise.
23411 * include/grub/mips/loongson.h: New file.
23412 * include/grub/mips/yeeloong/ec.h: Likewise.
23413 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
23414 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
23415 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
23416 * include/grub/misc.h (grub_halt): Declare as noreturn.
23417 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
23418 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
23419 (UART_ENABLE_FIFO_TRIGGER1): New definition.
23420 (UART_ENABLE_DTRRTS): Likewise.
23421 (UART_ENABLE_MODEM): Removed.
23422 (UART_ENABLE_OUT2): New const.
23423 * include/grub/term.h (grub_term_register_input_active): New function.
23424 (grub_term_register_output_active): Likewise.
23425 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
23426 argument.
23427 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
23428 (init_pci): New function.
23429 (grub_machine_init): Execute platform init when firmware. Init serial.
23430 (grub_halt): Implement.
23431 (grub_exit): Likewise.
23432 (grub_reboot): Likewise.
23433 * term/serial.c (serial_hw_init): Update macros.
23434 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
23435 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
23436 (image_targets): New target mipsel-yeeloong-flash.
23437 (generate_image): Support IMAGE_YEELOONG_FLASH.
23438 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
23439 (grub_video_sm712_setup): Init card.
23440 (grub_video_sm712_set_palette): Removed.
23441 * video/sm712_init.c: New file.
23442
ff4a70d2
CW
234432010-06-30 Colin Watson <cjwatson@ubuntu.com>
23444
23445 * Makefile.in (install-local): Temporarily prepend $(builddir) to
23446 PATH when running help2man and then run it on the unadorned
23447 executable names, rather than passing $(builddir)/* paths to
23448 help2man. This avoids the build directory ending up in generated
23449 manual pages.
23450
1246efeb
CW
234512010-06-29 Colin Watson <cjwatson@ubuntu.com>
23452
23453 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
23454 to avoid accidents when debugging with 'sh -x'.
23455 * util/grub-mkrescue.in: Likewise.
23456 * util/grub.d/00_header.in: Likewise.
23457 * util/grub.d/10_hurd.in: Likewise.
23458 * util/grub.d/10_kfreebsd.in: Likewise.
23459 * util/grub.d/10_linux.in: Likewise.
23460 * util/grub.d/10_netbsd.in: Likewise.
23461 * util/grub.d/10_windows.in: Likewise.
23462 * util/grub.d/20_linux_xen.in: Likewise.
23463 * util/grub.d/30_os-prober.in: Likewise.
23464 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23465
1ba9b889
CW
234662010-06-29 Colin Watson <cjwatson@ubuntu.com>
23467
23468 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
23469 last character in the buffer.
23470 Reported by: Vladimir Serbinenko.
23471
dccaf99d
RM
234722010-06-29 Robert Millan <rmh@gnu.org>
23473
23474 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
23475 (Command-line and menu entry commands): Document `badram' command.
23476
d500ed12
RM
234772010-06-28 Robert Millan <rmh@gnu.org>
23478
23479 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
23480 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
23481 command using ${GRUB_BADRAM} as parameter.
23482
20bc84a6
CW
234832010-06-28 Colin Watson <cjwatson@ubuntu.com>
23484
23485 * docs/grub.texi (Device map): New section.
23486 (Themes): New section (stub).
23487 * Makefile.in (docs/grub.info): The info documentation now builds
23488 without errors. Make sure it stays that way.
23489
4045dee1
VS
234902010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23491
23492 Use normal parser for menu entries.
23493 Reported by: Thomas Frauendorfer
23494
23495 * include/grub/parser.h (grub_parser_execute): Don't export.
23496 * normal/menu.c (grub_menu_execute_entry_real): New function.
23497 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
23498
bca58c7b
CW
234992010-06-28 Colin Watson <cjwatson@ubuntu.com>
23500
23501 * docs/grub.texi (Embedded configuration): New section (replacing
23502 old "Preset Menu" stub).
23503 (Images): New section.
23504 (configfile): Note that any menu entries defined in `file' are shown
23505 immediately.
23506
dec53e63
JT
235072010-06-28 Josh Triplett <josh@joshtriplett.org>
23508
23509 * mmap/i386/pc/mmap_helper.S: Set CF on return.
23510
c06e40f7
CW
235112010-06-28 Colin Watson <cjwatson@ubuntu.com>
23512
23513 * util/grub-install.in: Add --debug-image= option.
23514
cb88052b
CW
235152010-06-28 Colin Watson <cjwatson@ubuntu.com>
23516
23517 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
23518 possible on Linux.
23519
23520 * util/deviceiter.c (check_device): Rename to ...
23521 (check_device_readable_unique): ... this. Update all callers.
23522 Maintain and check a list of which devices (by canonicalized name)
23523 have already been seen.
23524 (clear_seen_devices): New function.
23525 (compare_file_names) [__linux__]: New function.
23526 (grub_util_iterate_devices): Clear the list of seen devices on exit
23527 and (just in case) on entry.
23528 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
23529 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
23530 seen-devices list, superseded by general code in check_device.
23531
bbe34652
CW
235322010-06-28 Colin Watson <cjwatson@ubuntu.com>
23533
23534 * commands/cat.c (options): New variable.
23535 (grub_cmd_cat): Parse options. If the --dos option is given, print
23536 DOS-style "\r\n" line endings as simple newlines (Debian bug
23537 #586358).
23538 (GRUB_MOD_INIT): Use extcmd.
23539 (GRUB_MOD_FINI): Likewise.
23540 * docs/grub.texi (cat): Document --dos.
23541
412e09f3
VS
235422010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23543
23544 XEN with Linux grub-mkconfig support.
23545
23546 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
23547 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
23548 GRUB_CMDLINE_XEN_DEFAULT.
23549 * util/grub.d/20_linux_xen.in: New file.
23550
53f3ef38 235512010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
23552
23553 Initialise VGA video on qemu ourselves.
23554
23555 * boot/i386/qemu/boot.S: Don't call 0xc000.
23556 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
23557 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
23558 (kernel_img_HEADERS): Add pci.h.
23559 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
23560 * configure.ac: Force unifont on qemu and yeeloong.
23561 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
23562 (grub_vga_palette_write): Use correct register.
23563 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
23564 Call grub_qemu_init_cirrus.
23565 * kern/i386/qemu/init.c: New file.
23566 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
23567
23568 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
23569
c75be4fb
PR
235702010-06-26 Pavel Roskin <proski@gnu.org>
23571
23572 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
23573 13.
23574
d8034603
CW
235752010-06-26 Colin Watson <cjwatson@ubuntu.com>
23576
23577 * docs/grub.texi (Simple configuration): Explain that
23578 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
23579 set to `true' to disable their respective recovery entries, not
23580 merely set.
23581
3fa06487
CW
235822010-06-26 Colin Watson <cjwatson@ubuntu.com>
23583
23584 Make the `source' command slightly faster.
23585
23586 * normal/main.c (grub_normal_execute): Don't re-read list files when
23587 nested.
23588
e9b29642
CW
235892010-06-23 Colin Watson <cjwatson@ubuntu.com>
23590
23591 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
23592 field position and mask size to red fields from mode_info, not
23593 green.
23594 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
23595 Remove redundant tag->common.framebuffer_type assignment.
23596 Reported by: Seth Goldberg.
23597
e726542f
CW
235982010-06-23 Colin Watson <cjwatson@ubuntu.com>
23599
23600 Sync up other versions of the Linux loader with Robert Millan's
23601 change of 2010-01-09, "Make loader output a bit more user-friendly".
23602
23603 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
23604 grub_dprintf().
23605 (grub_cmd_linux): Likewise.
23606 (grub_cmd_initrd): Likewise.
23607 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
23608 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
23609
d6e98a17
CW
236102010-06-21 Colin Watson <cjwatson@ubuntu.com>
23611
23612 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
23613 larger than MEMORY_MAP_SIZE.
23614
14d3f08e
BC
236152010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
23616
23617 Fix parallel build.
23618
23619 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
23620 dependency.
23621 * script/parser.y: #include grub_script.tab.h header.
23622
4f9613a3
VS
236232010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23624
23625 Support >3GiB and <16MiB RAM in i386-qemu.
23626
23627 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
23628 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
23629 (grub_lower_mem): Removed.
23630 (grub_upper_mem): Likewise.
23631 (mem_size): Made static.
23632 (above_4g): New variable.
23633 (grub_machine_mmap_init): Detect small mem_size and above_4g.
23634 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
23635 support.
23636
05e51879
VS
236372010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23638
23639 Cirrus 5446 and Bochs video cards support.
23640
23641 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
23642 video_bochs.mod
23643 (video_cirrus_mod_SOURCES): New variable.
23644 (video_cirrus_mod_CFLAGS): Likewise.
23645 (video_cirrus_mod_LDFLAGS): Likewise.
23646 (video_bochs_mod_SOURCES): Likewise.
23647 (video_bochs_mod_CFLAGS): Likewise.
23648 (video_bochs_mod_LDFLAGS): Likewise.
23649 * include/grub/vga.h: New file.
23650 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
23651 (grub_video_fb_set_page_t): New type.
23652 (grub_video_fb_setup): New prototype.
23653 (grub_video_fb_swap_buffers): Likewise.
23654 (grub_video_fb_get_info_and_fini): Likewise.
23655 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
23656 (CRTC_DATA_PORT): Likewise.
23657 (CRTC_CURSOR): Likewise.
23658 (CRTC_CURSOR_ADDR_HIGH): Likewise.
23659 (CRTC_CURSOR_ADDR_LOW): Likewise.
23660 (CRTC_CURSOR_DISABLE): Likewise.
23661 (update_cursor): Use grub_vga_cr_write.
23662 (grub_vga_text_setcursor): Likewise.
23663 * video/bochs.c: New file.
23664 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
23665 (palette): Likewise.
23666 (palette_size): Likewise.
23667 (framebuffer): New variable.
23668 (grub_video_fb_init): Use 'framebuffer'.
23669 (grub_video_fb_fini): Likewise.
23670 (grub_video_fb_get_info): Likewise.
23671 (grub_video_fb_get_palette): Likewise.
23672 (grub_video_fb_set_palette): Likewise.
23673 (grub_video_fb_set_viewport): Likewise.
23674 (grub_video_fb_get_viewport): Likewise.
23675 (grub_video_fb_map_color): Likewise.
23676 (grub_video_fb_map_rgb): Likewise.
23677 (grub_video_fb_map_rgba): Likewise.
23678 (grub_video_fb_unmap_color): Likewise.
23679 (grub_video_fb_unmap_color_int): Likewise.
23680 (grub_video_fb_fill_rect): Likewise.
23681 (grub_video_fb_blit_bitmap): Likewise.
23682 (grub_video_fb_blit_render_target): Likewise.
23683 (grub_video_fb_scroll): Likewise.
23684 (grub_video_fb_create_render_target): Likewise.
23685 (grub_video_fb_doublebuf_blit_init): Likewise.
23686 (grub_video_fb_set_active_render_target): Handle doublebuffering.
23687 (doublebuf_pageflipping_update_screen): New function.
23688 (doublebuf_pageflipping_init): Likewise.
23689 (grub_video_fb_setup): Likewise.
23690 (grub_video_fb_swap_buffers): Likewise.
23691 (grub_video_fb_get_info_and_fini): Likewise.
23692 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
23693 All users updated.
23694 (doublebuf_pageflipping_commit): Restructured into ...
23695 (doublebuf_pageflipping_set_page): ... this.
23696 (doublebuf_pageflipping_update_screen): Removed.
23697 (doublebuf_pageflipping_init): Likewise.
23698 (double_buffering_init): Likewise.
23699 (grub_video_vbe_setup): Use grub_video_fb_setup.
23700 (grub_video_vbe_swap_buffers): Removed.
23701 (grub_video_vbe_set_active_render_target): Likewise.
23702 (grub_video_vbe_get_active_render_target): Likewise.
23703 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
23704 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
23705 grub_video_fb_set_active_render_target and
23706 grub_video_fb_get_active_render_target.
23707 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
23708 (SEQUENCER_DATA_PORT): Likewise.
23709 (MAP_MASK_REGISTER): Likewise.
23710 (CRTC_ADDR_PORT): Likewise.
23711 (CRTC_DATA_PORT): Likewise.
23712 (START_ADDR_HIGH_REGISTER): Likewise.
23713 (START_ADDR_LOW_REGISTER): Likewise.
23714 (GRAPHICS_ADDR_PORT): Likewise.
23715 (GRAPHICS_DATA_PORT): Likewise.
23716 (READ_MAP_REGISTER): Likewise.
23717 (INPUT_STATUS1_REGISTER): Likewise.
23718 (INPUT_STATUS1_VERTR_BIT): Likewise.
23719 (get_map_mask): Use grub_vga_sr_read.
23720 (set_map_mask): Use grub_vga_sr_write.
23721 (set_read_map): Use grub_vga_gr_write.
23722 (set_start_address): Use grub_vga_cr_write.
23723 * video/sm712.c (framebuffer): Remove leftover fields.
23724
4321c64a
CW
237252010-06-20 Colin Watson <cjwatson@ubuntu.com>
23726
23727 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
23728 setting GRUB_VIDEO_BACKEND. Make it available as a user override
23729 instead. Replace the gfxterm backend check with a check that
23730 ${GRUB_PREFIX}/video.lst is non-empty.
23731 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
23732 again.
23733 (load_video): New generated function. Call it before loading
23734 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
23735 * util/grub.d/10_linux.in (linux_entry): Call load_video.
23736 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
23737 * docs/grub.texi (Simple configuration): Document
23738 GRUB_VIDEO_BACKEND.
23739
237402010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23741
23742 Use video functions in linux and xnu loaders.
23743
23744 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
23745 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
23746 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
23747 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
23748 loader/i386/pc/linux.c.
23749 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
23750 (find_line_len): Removed.
23751 (find_framebuf): Likewise.
23752 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
23753 * loader/i386/efi/xnu.c: Removed.
23754 * loader/i386/pc/xnu.c: Moved from here...
23755 * loader/i386/xnu.c: ...here.
23756
23757 Enable priorities in video drivers.
23758
23759 * include/grub/video.h (grub_video_adapter_prio_t): New type.
23760 (grub_video_adapter): New field prio.
23761 (grub_video_register): Respect prio when inserting.
23762 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
23763 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
23764 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
23765 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
23766 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
23767 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
23768 * video/sm712.c (grub_video_sm712_adapter): Likewise.
23769
23770 Fix SDL driver ID.
23771
23772 * include/grub/video.h (grub_video_driver_id_t): New value
23773 GRUB_VIDEO_DRIVER_SDL.
23774 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
23775
7d24e434
CW
237762010-06-17 Colin Watson <cjwatson@ubuntu.com>
23777
23778 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
23779 argument to printf.
23780 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
23781
c88a83f6
CW
237822010-06-17 Colin Watson <cjwatson@ubuntu.com>
23783
23784 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
23785 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
23786
094dfb69
CW
237872010-06-17 Colin Watson <cjwatson@ubuntu.com>
23788
23789 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
23790 directly, and recommend grub-install instead.
23791 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
23792
2164da6b
CW
237932010-06-17 Colin Watson <cjwatson@ubuntu.com>
23794
23795 Fix i386-pc prefix handling with nested partitions (Debian bug
23796 #585068). Note that the case where the core image is booted using
23797 multiboot and relocated from its original location still requires
23798 more work.
23799
23800 * kern/i386/pc/init.c (make_install_device): If the prefix starts
23801 with "(,", fill the boot drive in between those two characters, but
23802 expect that a full partition specification including partition map
23803 names will follow.
23804 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
23805 specified, write a prefix without the drive name but including a
23806 full partition specification.
23807
044e2e60
CW
238082010-06-16 Colin Watson <cjwatson@ubuntu.com>
23809
23810 * util/grub-mkconfig.in: Ignore non-option arguments, for
23811 compatibility with older versions (before 2010-06-12) which did the
23812 same. In particular, this makes it easier to ship an update-grub
23813 wrapper which is compatible with that used with GRUB Legacy (Debian
23814 bug #586056).
23815
5591324f
GS
238162010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23817
23818 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
23819 for manual page generation.
23820
662e24d5
GS
238212010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23822
23823 * po/POTFILES: Remove leftover commands/handler.c.
23824
8d70754e
CW
238252010-06-14 Colin Watson <cjwatson@ubuntu.com>
23826
23827 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
23828 left this script non-functional.
23829
41160e2e
CW
238302010-06-14 Colin Watson <cjwatson@ubuntu.com>
23831
23832 * docs/man/grub-emu.h2m: New file.
23833
b5309cc1
CW
238342010-06-13 Colin Watson <cjwatson@ubuntu.com>
23835
23836 * docs/grub.texi (Commands): Document reduced command set in rescue
23837 mode.
23838 (cpuid): New section.
23839
fcb2d090
GS
238402010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
23841
23842 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
23843 new partition naming style.
23844 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
23845
96e5c556
BC
238462010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
23847
23848 Add "-o grub.iso" like cmdline options support.
23849
23850 * util/grub-install.in: Improve cmdline option parsing.
23851 * util/grub-mkconfig.in: Likewise.
23852 * util/grub-mkrescue.in: Likewise.
23853 * util/grub-reboot.in: Likewise.
23854 * util/grub-set-default.in: Likewise.
23855 * util/i386/efi/grub-install.in: Likewise.
23856 * util/ieee1275/grub-install.in: Likewise.
23857 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23858
c16be99b
CW
238592010-06-12 Colin Watson <cjwatson@ubuntu.com>
23860
23861 * .bzrignore: Ignore 41_custom.
23862
ce08a9fb
TS
238632010-06-12 Thomas Schmitt <scdbackup@gmx.net>
23864
23865 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
23866
7beac90c
CW
238672010-06-12 Colin Watson <cjwatson@ubuntu.com>
23868
23869 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
23870 prototype declarations.
23871
23872 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
23873 generating fs, partmap, and video lists.
23874 * include/grub/fs.h (grub_fs_register): Omit prototype if
23875 GRUB_LST_GENERATOR is defined.
23876 * include/grub/partition.h (grub_partition_map_register): Likewise.
23877 * include/grub/video.h (grub_video_register): Likewise.
23878
1c8f0f8d
JM
238792010-06-12 Javier Martín <lordhabbit@gmail.com>
23880
23881 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
23882
a6085973
TS
238832010-06-12 Thomas Schmitt <scdbackup@gmx.net>
23884
23885 * util/grub-mkrescue.in: Support --xorriso argument.
23886
25c56d29
VS
238872010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23888
23889 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
23890 Suggested by: Thomas Schmitt.
23891
e03e4b24
VS
238922010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23893
23894 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
23895 Suggested by: Thomas Schmitt.
23896
57711df6
VS
238972010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23898
23899 custom.cfg support.
23900
23901 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
23902 * util/grub.d/41_custom.in: New file.
23903
ee62c427
CW
239042010-06-12 Colin Watson <cjwatson@ubuntu.com>
23905
23906 * util/grub-mkrescue.in (make_image): Remove sh module, which has
23907 been merged back into normal.
23908
283af07a
CW
239092010-06-11 Colin Watson <cjwatson@ubuntu.com>
23910
23911 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
23912 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
23913
56a0d956
CW
239142010-06-11 Colin Watson <cjwatson@ubuntu.com>
23915
23916 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
23917 when generating manual pages.
23918 * docs/man/grub-bin2h.h2m: New file.
23919 * docs/man/grub-editenv.h2m: New file.
23920 * docs/man/grub-fstest.h2m: New file.
23921 * docs/man/grub-install.h2m: New file.
23922 * docs/man/grub-macho2img.h2m: New file.
23923 * docs/man/grub-mkconfig.h2m: New file.
23924 * docs/man/grub-mkdevicemap.h2m: New file.
23925 * docs/man/grub-mkfont.h2m: New file.
23926 * docs/man/grub-mkimage.h2m: New file.
23927 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
23928 * docs/man/grub-mkrelpath.h2m: New file.
23929 * docs/man/grub-mkrescue.h2m: New file.
23930 * docs/man/grub-ofpathname.h2m: New file.
23931 * docs/man/grub-pe2elf.h2m: New file.
23932 * docs/man/grub-probe.h2m: New file.
23933 * docs/man/grub-reboot.h2m: New file.
23934 * docs/man/grub-script-check.h2m: New file.
23935 * docs/man/grub-set-default.h2m: New file.
23936 * docs/man/grub-setup.h2m: New file.
23937
3a37e322
VS
239382010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
23939
23940 Use FOR_* macros instead of *_iterate whenever possible.
23941
23942 * commands/handler.c: Removed.
23943 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
23944 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
23945 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23946 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
23947 (grub_probe_SOURCES): Remove kern/parser.c.
23948 (util/grub-script-check.c_DEPENDENCIES): Removed.
23949 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
23950 and grub_script_check_init.c.
23951 (grub_script_check_init.lst): Removed.
23952 (grub_script_check_init.h): Likewise.
23953 (grub_script_check_init.c): Likewise.
23954 (pkglib_MODULES): Remove handler.mod and sh.mod.
23955 (handler_mod_SOURCES): Removed.
23956 (handler_mod_CFLAGS): Likewise.
23957 (handler_mod_LDFLAGS): Likewise.
23958 (normal_mod_SOURCES): Remove normal/handler.c.
23959 Add script/main.c, script/script.c, script/execute.c,
23960 script/function.c, script/lexer.c, grub_script.tab.c
23961 and grub_script.yy.c.
23962 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23963 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23964 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
23965 (grub_setup_SOURCES): Remove kern/parser.c.
23966 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23967 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
23968 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
23969 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23970 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23971 (grub_setup_SOURCES): Remove kern/parser.c.
23972 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23973 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
23974 * include/grub/command.h (grub_command_iterate): Removed.
23975 (FOR_COMMANDS): New macro.
23976 * include/grub/dl.h (grub_dl): New member next.
23977 (grub_dl_iterate): Removed.
23978 (grub_dl_head): New variable declaration.
23979 (FOR_DL_MODULES): New macro.
23980 * include/grub/fs.h: Include list.h.
23981 (grub_fs): Make next first element.
23982 (grub_fs_list): New variable declaration.
23983 (grub_fs_register): Make inline.
23984 (grub_fs_unregister): Likewise.
23985 (grub_fs_iterate): Removed.
23986 (FOR_FILESYSTEMS): New macro.
23987 * include/grub/handler.h: Removed.
23988 * include/grub/list.h (grub_list_hook_t): Removed.
23989 (grub_list_test_t): Likewise.
23990 (grub_list_pop): Likewise.
23991 (grub_list_iterate): Likewise.
23992 (grub_list_insert): Likewise.
23993 (FOR_LIST_ELEMENTS): New macro.
23994 * include/grub/parser.h (grub_parser_class): Removed.
23995 (grub_parser_register): Likewise.
23996 (grub_parser_unregister): Likewise.
23997 (grub_parser_get_current): Likewise.
23998 (grub_parser_set_current): Likewise.
23999 (grub_register_rescue_parser): Likewise.
24000 (grub_rescue_parse_line): New function.
24001 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
24002 * include/grub/script_sh.h (grub_script_function_list): New variable
24003 declaration.
24004 (FOR_SCRIPT_FUNCTIONS): New macro.
24005 (grub_script_function_iterate): Removed.
24006 (grub_normal_parse_line): New prototype.
24007 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
24008 (FOR_DISABLED_TERM_INPUTS): Likewise.
24009 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24010 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24011 * include/grub/video.h (grub_video_adapter): Move 'next' to first
24012 element.
24013 (grub_video_register): Inline.
24014 (grub_video_unregister): Likewise.
24015 (grub_video_adapter_list): New variable declaration.
24016 (grub_video_iterate): Removed.
24017 (FOR_VIDEO_ADAPTERS): New macro.
24018 * kern/dl.c (grub_dl_list): Removed. All users updated.
24019 (grub_dl_iterate): Removed.
24020 * kern/fs.c (grub_fs_list): Make global.
24021 (grub_fs_register): Removed.
24022 (grub_fs_unregister): Likewise.
24023 (grub_fs_iterate): Likewise.
24024 * kern/handler.c: Removed.
24025 * kern/list.c (grub_list_pop): Removed.
24026 (grub_list_iterate): Likewise.
24027 (grub_list_insert): Likewise.
24028 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
24029 (grub_prio_list_insert): Don't use grub_list_insert.
24030 * kern/main.c (grub_register_rescue_parser): Don't call
24031 grub_register_rescue_parser.
24032 * kern/parser.c (grub_parser_class): Removed.
24033 (grub_parser_execute): Use grub_rescue_parse_line.
24034 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
24035 (grub_rescue_parser): Removed.
24036 (grub_register_rescue_parser): Likewise.
24037 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
24038 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
24039 (grub_auth_check_authentication): Likewise.
24040 * normal/completion.c (iterate_command): Removed.
24041 (grub_normal_do_completion): Use FOR_COMMANDS.
24042 * normal/handler.c: Removed.
24043 * normal/main.c (read_config_file): Remove parser changing.
24044 (grub_normal_execute): Don't call read_handler_list.
24045 (grub_normal_read_line_real): Statically allocate prompt.
24046 (grub_cmdline_run): Use grub_normal_parse_line.
24047 (GRUB_MOD_FINI): Don't call free_handler_list.
24048 * normal/menu_entry.c (run): Likewise.
24049 * script/function.c (grub_script_function_list): Make global.
24050 (grub_script_function_iterate): Removed.
24051 * script/main.c (grub_normal_parse_line): Make global.
24052 (grub_sh_parser): Removed.
24053 (GRUB_MOD_INIT): Likewise.
24054 (GRUB_MOD_FINI): Likewise.
24055 * tests/lib/functional_test.c (grub_functional_test): Use
24056 FOR_LIST_ELEMENTS.
24057 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
24058 (grub_test_run): Use FOR_LIST_ELEMENTS.
24059 * tests/lib/unit_test.c (main): Likewise.
24060 * util/deviceiter.c (grub_util_iterate_devices): Don't use
24061 grub_list_pop.
24062 * util/grub-fstest.c (grub_term_input_class): Removed.
24063 (grub_term_output_class): Likewise.
24064 * util/grub-probe.c: Likewise.
24065 * util/i386/pc/grub-setup.c: Likewise.
24066 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24067 * util/grub-script-check.c (main): Don't call grub_init_all and
24068 grub_fini_all.
24069 * video/video.c (grub_video_adapter_list): Make global.
24070 (grub_video_register): Removed.
24071 (grub_video_unregister): Likewise.
24072 (grub_video_iterate): Likewise.
24073
6289c3a7
VS
240742010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
24075
24076 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
24077 reported by Henrique Ferreiro.
24078
91460247
RM
240792010-06-09 Robert Millan <rmh@gnu.org>
24080
24081 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
24082 ones, when both are available.
24083
0ea7c4f9
GS
240842010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24085
24086 Make --version uniform and avoid hard-coded program name.
24087
24088 * util/grub-mkimage.c (main): Use `program_name' instead of
24089 hard-coded string.
24090 * util/i386/pc/grub-setup.c (main): Likewise.
24091 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
24092 * util/grub-install.in: Save the basename of $0 in $self, and use the
24093 latter in informational messages. Use the same format for --version
24094 as the binary programs.
24095 * util/grub-mkconfig.in: Likewise.
24096 * util/grub-mkrescue.in: Likewise.
24097 * util/grub-reboot.in: Likewise.
24098 * util/grub-set-default.in: Likewise.
24099 * util/i386/efi/grub-install.in: Likewise.
24100 * util/ieee1275/grub-install.in: Likewise.
24101 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24102
e8a6f3b6
GS
241032010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24104
24105 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
24106 embedding area. Use <= instead of == when checking for non-emptiness.
24107
f4d095d7
GS
241082010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24109
24110 * configure.ac: Add `.' to the directories searched for unifont.
24111
50e532ca
CW
241122010-06-08 Colin Watson <cjwatson@ubuntu.com>
24113
24114 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
24115 grub_script.yy.h.
24116
d39f3dec
CW
241172010-06-08 Colin Watson <cjwatson@ubuntu.com>
24118
24119 * docs/grub.texi (History): Expand to cover GRUB 2.
24120 (Serial terminal): Refer to `terminal_input' and `terminal_output'
24121 commands, not `terminal'.
24122 (serial): Likewise.
24123 (terminal_input): New section.
24124 (terminal_output): New section.
24125 (uppermem): New section (stub).
24126 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
24127
6ef0ddb4
CW
241282010-06-08 Colin Watson <cjwatson@ubuntu.com>
24129
24130 * docs/grub.texi (Security): Menu entries are unrestricted by
24131 default, not restricted to superusers as I had previously thought.
24132 Reword to account for this.
24133
e0f4c438
CW
241342010-06-07 Colin Watson <cjwatson@ubuntu.com>
24135
24136 * kern/emu/misc.c (device_mapper_null_log): New function.
24137 (grub_device_mapper_supported): New function.
24138 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
24139 prototype.
24140 * kern/emu/hostdisk.c (find_partition_start): Check whether
24141 device-mapper is supported before trying to use it.
24142 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
24143
da908200
CW
241442010-06-07 Colin Watson <cjwatson@ubuntu.com>
24145
24146 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
24147 (File name syntax): Likewise.
24148 (help): --all is no longer supported in GRUB 2. Be more precise
24149 about pattern matching.
24150
fb55c3ac
CW
241512010-06-07 Colin Watson <cjwatson@ubuntu.com>
24152
24153 * normal/completion.c (grub_normal_do_completion): When completing
24154 arguments to "set" and the current word contains an equals sign,
24155 skip to after the equals sign before starting completion.
24156
258c2573
CW
241572010-06-07 Colin Watson <cjwatson@ubuntu.com>
24158
24159 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
24160
ee75515e
CW
241612010-06-07 Colin Watson <cjwatson@ubuntu.com>
24162
24163 * docs/grub.texi (Network): New section.
24164 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
24165 `(nd)' as in GRUB Legacy.
24166 (pxe_unload): New section.
24167
a6a700aa
CW
241682010-06-07 Colin Watson <cjwatson@ubuntu.com>
24169
24170 * docs/grub.texi (Troubleshooting): `echo' is not usually available
24171 in the rescue shell, so recommend using `set' instead. Thanks,
24172 Jordan Uggla.
24173
4003dd38
CW
241742010-06-07 Colin Watson <cjwatson@ubuntu.com>
24175
24176 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
24177 (password): New section.
24178 (password_pbkdf2): New section.
24179 (search): New section.
24180 (Security): New section.
24181 (Troubleshooting): New section, currently very incomplete.
24182 (Invoking grub-mkpasswd-pbkdf2): New section.
24183 (Internals): New section, currently very incomplete.
24184
e1cbcc40
CW
241852010-06-07 Colin Watson <cjwatson@ubuntu.com>
24186
24187 * util/grub.d/00_header.in: Add some more quoting (of
24188 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
24189 work again.
24190 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
24191
db8fa1ad
CW
241922010-06-07 Colin Watson <cjwatson@ubuntu.com>
24193
24194 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
24195 to `count', fixing variable shadowing that broke the -c option.
24196
241972010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
24198
24199 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
24200 in case they contain spaces.
24201
f28a9212
CW
242022010-06-04 Colin Watson <cjwatson@ubuntu.com>
24203
24204 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
24205 "part_" to partmap module names, in line with grub-install.
24206 Reported by: Jindřich Makovička (Debian bug #584426).
24207
9cdfe32f
CW
242082010-06-04 Colin Watson <cjwatson@ubuntu.com>
24209
24210 * util/grub-mkimage.c: Make target-related error messages slightly
24211 more helpful; -O talks about "format". Explicitly point to the use
24212 of -O if no target is specified.
24213 Reported by: Didier Raboud (Debian bug #584415).
24214
795b593a
CW
242152010-06-03 Colin Watson <cjwatson@ubuntu.com>
24216
24217 * INSTALL: Document several build requirements for optional features
24218 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
24219
9d9b5833
GS
242202010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
24221
24222 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
24223 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
24224 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
24225
0819fec8
CW
242262010-06-02 Colin Watson <cjwatson@ubuntu.com>
24227
24228 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
24229 Thanks to Jordan Uggla for spotting this.
24230
49396b4f
VS
242312010-06-02 Aleš Nesrsta <starous@volny.cz>
24232
24233 Finally make USB usable.
24234
24235 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
24236 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
24237 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
24238 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
24239 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
24240 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
24241 (GRUB_OHCI_FSMPS): Likewise.
24242 (GRUB_OHCI_PERIODIC_START): Likewise.
24243 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
24244 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
24245 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
24246 (GRUB_OHCI_SET_PORT_RESET): Likewise.
24247 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
24248 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
24249 (grub_ohci_transaction): Likewise.
24250 (grub_ohci_transfer): Improve condition detection algorithms.
24251 Handle toggle property. Program the transactions correctly.
24252 Improve error handling. Various important fixups.
24253 (grub_ohci_portstatus): Put register writes in right order.
24254 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
24255 (grub_uhci_transfer): Don't show "failed" message on success.
24256 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
24257 array.
24258 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
24259 determine its size.
24260 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
24261 before initialization is completed. Use IN direction for empty
24262 transfers. Use last_trans and compute toggle.
24263 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
24264 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
24265 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
24266 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
24267 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
24268 (grub_usb_device): Increase toggle to 256.
24269 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
24270 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
24271 GRUB_USBMS_SUBCLASS_SFF8070.
24272 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
24273 (grub_scsi_inquiry): New member page and alloc_length.
24274 (grub_scsi_request_sense): New structure.
24275 (grub_scsi_request_sense_data): Likewise.
24276 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
24277 control.
24278 * disk/scsi.c (grub_scsi_request_sense): New function.
24279 (grub_scsi_test_unit_ready): Likewise.
24280 (grub_scsi_inquiry): Fill new fields.
24281 (grub_scsi_read_capacity): Likewise.
24282 (grub_scsi_read10): Add request sense at the end.
24283 (grub_scsi_read12): Likewise.
24284 (grub_scsi_write10): Likewise.
24285 (grub_scsi_write12): Likewise.
24286 (grub_scsi_open): Add Test Unit Ready.
24287 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
24288 Support additional subclasses. Con't clear halt yet. Activate the
24289 proper config. Calculate LUNs correctly.
24290 (grub_usbms_transfer): Various important fixups.
24291
242922010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24293
24294 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
24295 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
24296 (grub_ohci_fini_hw): New function.
24297 (grub_ohci_restore_hw): Likewise.
24298 (GRUB_MOD_INIT(ohci)): Register preboot hook.
24299 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
24300 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
24301
243022010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24303
24304 Dedicated DMA allocations.
24305
24306 * bus/pci.c (grub_memalign_dma32): New function
24307 (grub_dma_free): Likewise.
24308 (grub_dma_get_virt): Likewise.
24309 (grub_dma_get_phys): Likewise.
24310 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
24311 (grub_ohci_pci_iter): Use dma32_alloc.
24312 (grub_ohci_transfer): Likewise.
24313 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24314 (grub_usb_bulk_readwrite): Likewise.
24315 * include/grub/pci.h: Add declarations.
24316
243172010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24318
24319 CS5536 support.
24320
24321 * bus/cs5536.c: New file.
24322 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
24323 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
24324 (cs5536_mod_SOURCES): New variable.
24325 (cs5536_mod_CFLAGS): Likewise.
24326 (cs5536_mod_LDFLAGS): Likewise.
24327 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
24328 machine/pci.h.
24329 (kernel_img_SOURCES): Add bus/cs5536.c.
24330 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
24331 usb_keyboard.mod.
24332 (usb_mod_SOURCES): New variable.
24333 (usb_mod_CFLAGS): New variable.
24334 (usb_mod_LDFLAGS): New variable.
24335 (usbtest_mod_SOURCES): New variable.
24336 (usbtest_mod_CFLAGS): New variable.
24337 (usbtest_mod_LDFLAGS): New variable.
24338 (ohci_mod_SOURCES): New variable.
24339 (ohci_mod_CFLAGS): New variable.
24340 (ohci_mod_LDFLAGS): New variable.
24341 (usbms_mod_SOURCES): New variable.
24342 (usbms_mod_CFLAGS): New variable.
24343 (usbms_mod_LDFLAGS): New variable.
24344 (usb_keyboard_mod_SOURCES): New variable.
24345 (usb_keyboard_mod_CFLAGS): New variable.
24346 (usb_keyboard_mod_LDFLAGS): New variable.
24347 * include/grub/smbus.h: New file.
24348 * include/grub/cs5536.h: New file.
24349
0b35b2a9
CW
243502010-06-02 Colin Watson <cjwatson@ubuntu.com>
24351
24352 * util/grub.d/00_header.in: Add safety check to make sure that
24353 ${locale_dir} exists before trying to probe it.
24354
ca0afd5b
CW
243552010-06-02 Colin Watson <cjwatson@ubuntu.com>
24356
24357 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
24358 per the GNU Coding Standards; this is now too obscure to be worth
24359 documenting.
24360 (QNX): Likewise.
24361 (chainloader): Remove cross-reference to `SCO UnixWare'.
24362
1c41aa78
CW
243632010-06-02 Colin Watson <cjwatson@ubuntu.com>
24364
24365 * docs/grub.texi (Chain-loading): New section.
24366 (DOS/Windows): New section, borrowed from GRUB Legacy with details
24367 adjusted for GRUB 2.
24368 (SCO UnixWare): Likewise.
24369 (QNX): Likewise.
24370 (chainloader): Add reference to `Block list syntax'.
24371 (drivemap): New section.
24372 (parttool): New section.
24373
bb8ea0f5
CW
243742010-06-02 Colin Watson <cjwatson@ubuntu.com>
24375
24376 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
24377 the grub shell'.
24378 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
24379 (Installing GRUB using grub-install): Remove reference to the grub
24380 shell; mention `grub-mkimage' and `grub-setup' instead.
24381 (Invoking grub-install): Likewise.
24382 (Interface): Add reference to `Menu entry editor'.
24383 (serial): Remove `--device' option.
24384
288dd6ed
CW
243852010-06-02 Colin Watson <cjwatson@ubuntu.com>
24386
24387 * docs/grub.texi (Configuration): New section, documenting
24388 configuration file generation using grub-mkconfig. I've left a slot
24389 for documenting the full shell scripting format but have not yet
24390 started on writing that up.
24391 (Invoking grub-mkconfig): New section.
24392
34c9f0e9
CW
243932010-06-02 Colin Watson <cjwatson@ubuntu.com>
24394
24395 * docs/grub.texi (direntry): Remove grub-terminfo reference.
24396 (GNU GRUB manual): Likewise.
24397 (General commands): Update description of `terminfo' for GRUB 2.
24398
9121567e
CW
243992010-06-02 Colin Watson <cjwatson@ubuntu.com>
24400
24401 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
24402 (GRUB_MOD_INIT): Fix capitalisation.
24403 * docs/grub.texi (Command-line and menu entry commands): Document
24404 gettext and gptsync commands.
24405
ab631611
CW
244062010-06-02 Colin Watson <cjwatson@ubuntu.com>
24407
24408 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
24409 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
24410
bde4a9ac
CW
244112010-06-01 Colin Watson <cjwatson@ubuntu.com>
24412
24413 Add btrfs probing support, currently only in the single-device case.
24414
24415 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
24416 function.
24417 (grub_guess_root_device): Call find_root_device_from_mountinfo
24418 before looking in /dev.
24419
b1d17e10
VS
244202010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24421
24422 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
24423 GRUB_DISK_SIZE_UNKNOWN.
24424 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
24425
dfbfe004
JS
244262010-05-31 Jiro SEKIBA <jir@unicus.jp>
24427
24428 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
24429 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
24430 corrupted or not synced properly.
24431
c2ffc8e9
VS
244322010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24433
24434 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
24435 Reported by: Seth Goldberg.
24436
56293166
VS
244372010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24438
24439 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
24440 addition of dest.
24441 Reported by: Seth Goldberg.
24442
7620e7de
VS
244432010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24444
24445 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
24446 Reported by: Seth Goldberg.
24447
c837af3f
VS
244482010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24449
24450 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
24451 64-bit address as signed on MIPS.
24452
c7c75cf4
CW
244532010-05-28 Colin Watson <cjwatson@ubuntu.com>
24454
24455 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
24456 to the empty string.
24457
fa4b8490
BC
244582010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
24459
24460 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
24461
24462 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
24463 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
24464 * kern/misc.c (__enable_execute_stack): Disable on
24465 GRUB_MACHINE_EMU.
24466
a33075b9
CW
244672010-05-28 Colin Watson <cjwatson@ubuntu.com>
24468
24469 Make grub-probe work with symbolic links under /dev/mapper as well
24470 as with real block devices. The Linux world seems to be (at best)
24471 in transition here, and GRUB shouldn't get caught in the middle.
24472
24473 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
24474 /dev/mapper.
24475
d8708134
CW
244762010-05-27 Colin Watson <cjwatson@ubuntu.com>
24477
24478 * util/grub-script-check.c (main): Ensure defined behaviour on empty
24479 input files (in which case exit zero).
24480
db2102a0
CW
244812010-05-27 Colin Watson <cjwatson@ubuntu.com>
24482
24483 * kern/emu/misc.c (canonicalize_file_name): realpath can still
24484 return NULL for various reasons even if it has a maximum-length
24485 buffer: for example, there might be a symlink loop, or the path
24486 might exceed PATH_MAX. If this happens, return NULL.
24487
5fdba519
RM
244882010-05-27 Robert Millan <rmh@gnu.org>
24489
24490 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
24491 partmap module to handle cross-partmap setups.
24492 Reported by Orestes Mas. Gràcies!
24493
d1d368e4
CW
244942010-05-27 Colin Watson <cjwatson@ubuntu.com>
24495
24496 * util/grub-mkrescue.in: Initialise override_dir rather than
24497 assuming that it's unset or empty in the environment.
24498
95ac3c73
GS
244992010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
24500
24501 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
24502 variable index into p_index to suppress a warning with -Wshadow.
24503
7d8c0213
BC
245042010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
24505
24506 * INSTALL: Added flex >= 2.5.35 requirement.
24507
db4d5813
VS
245082010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24509
24510 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
24511
f24f4300
VS
245122010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24513
24514 cmostest support.
24515
24516 * commands/i386/cmostest.c: New file.
24517 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
24518 (cmostest_mod_SOURCES): New variable.
24519 (cmostest_mod_CFLAGS): Likewise.
24520 (cmostest_mod_LDFLAGS): Likewise.
24521 * conf/i386-pc.rmk: Likewise.
24522 * docs/grub.texi (Vendor power-on keys): New section.
24523 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
24524 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
24525 and GRUB_BUTTON_CMOS_ADDRESS.
24526 * util/grub.d/00_header.in: Handle powering-on by separate button.
24527
ad603f61
VS
245282010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24529
24530 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
24531 Removed drawing_scrollbar argument. All users updated
24532 Fixes #29792.
24533 Reported by Jo Shields
24534
3ecb080a
VS
245352010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24536
24537 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
24538 buffer since gfxterm handles double repaint.
24539
5f2316c1
VS
245402010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24541
24542 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
24543 * term/gfxterm.c (real_scroll): Likewise.
24544
9a25f885
VS
245452010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24546
24547 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
24548 before calling BIOS.
24549
39fbb79a
VS
245502010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24551
24552 * include/grub/i18n.h: Always enable grub_gettext.
24553
228cfa97
VS
245542010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24555
24556 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
24557 partition naming style.
24558
21717c8f
CW
245592010-05-21 Colin Watson <cjwatson@ubuntu.com>
24560
24561 * util/grub-mkconfig.in: Fix handling of -o so that it works when
24562 not the first option.
24563
c0f48e65
CW
245642010-05-20 Colin Watson <cjwatson@ubuntu.com>
24565
24566 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
24567
96779aec
CW
245682010-05-20 Colin Watson <cjwatson@ubuntu.com>
24569
24570 * util/misc.c: Move inclusion of <limits.h> to ...
24571 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
24572
fa9d256e
GS
245732010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
24574
24575 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
24576 Fix merge error in NetBSD code.
24577 (find_partition_start) [__NetBSD__]: Likewise.
24578
123b7a85
BC
245792010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
24580
24581 Fix grub-mkrescue usage unit testing.
24582
24583 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
24584
74276c0d
CF
245852010-05-18 Christian Franke <franke@computer.org>
24586
24587 * util/grub.d/10_windows.in: Use path names instead of
24588 drive letters to prevent warning from Cygwin 1.7.
24589 Add drivemap command to menuentry if needed.
24590
c4f7b523
ST
245912010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
24592
24593 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
24594 gnumach and gnumach.gz.
24595
95b97950
VS
245962010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24597
24598 * include/grub/i18n.h (gettext): Inline instead of using #define.
24599 (grub_gettext): Likewise.
24600 (_): Likewise.
24601
01b8d2d7
VS
246022010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24603
24604 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
24605 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
24606 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
24607 (main): Add a slash after pkglibdirroot.
24608
654e1d1e
VS
246092010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24610
24611 * util/grub-install.in: Add missing "in" keyword.
24612
26966aeb
VS
246132010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24614
24615 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
24616 Reported by: Seth Goldberg.
24617
75006747
VS
246182010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24619
24620 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
24621
74cbf5bd
CW
246222010-05-18 Colin Watson <cjwatson@ubuntu.com>
24623
24624 * configure.ac: Check for Linux device-mapper support.
24625
24626 * util/hostdisk.c (device_is_mapped): New function.
24627 (find_partition_start): New function, partly broken out from
24628 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
24629 device-mapper support added.
24630 (linux_find_partition): Use find_partition_start.
24631 (convert_system_partition_to_system_disk): Add `st' argument.
24632 Support Linux /dev/mapper/* devices if device-mapper support is
24633 available; only DM-RAID devices are understood at present.
24634 (find_system_device): Add `st' argument. Pass it to
24635 convert_system_partition_to_system_disk.
24636 (grub_util_biosdisk_get_grub_dev): Pass stat result to
24637 find_system_device and convert_system_partition_to_system_disk. Use
24638 find_partition_start.
24639
24640 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
24641 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
24642 * util/deviceiter.c [__linux__]: Define MINOR.
24643 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
24644 * util/mkdevicemap.c (grub_putchar): New function.
24645 (grub_getkey): New function.
24646 (grub_refresh): New function.
24647 (main): Set debug=all if -v -v is used.
24648
355b51e9
CW
246492010-05-18 Colin Watson <cjwatson@ubuntu.com>
24650
24651 Fix build with non-GNU libcs.
24652
24653 * util/misc.c (canonicalize_file_name): Move to ...
24654 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
24655 grub_make_system_path_relative_to_its_root.
24656
7fb5c25f
CW
246572010-05-18 Colin Watson <cjwatson@ubuntu.com>
24658
24659 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
24660 we handle finding grub-mkimage. Default to finding grub-mkimage in
24661 ${bindir} with program_transform_name applied, and provide a
24662 --grub-mkimage option to override this.
24663
1d3293d6
VS
246642010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24665
24666 Remove grub-mkisofs.
24667
24668 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
24669 (grub_mkisofs_SOURCES): Removed.
24670 (grub_mkisofs_CFLAGS): Removed.
24671 * util/mkisofs/defaults.h: Removed.
24672 * util/mkisofs/eltorito.c: Likewise.
24673 * util/mkisofs/exclude.h: Likewise.
24674 * util/mkisofs/hash.c: Likewise.
24675 * util/mkisofs/include/: Likewise.
24676 * util/mkisofs/include/fctldefs.h: Likewise.
24677 * util/mkisofs/include/mconfig.h: Likewise.
24678 * util/mkisofs/include/prototyp.h: Likewise.
24679 * util/mkisofs/include/statdefs.h: Likewise.
24680 * util/mkisofs/iso9660.h: Likewise.
24681 * util/mkisofs/joliet.c: Likewise.
24682 * util/mkisofs/match.c: Likewise.
24683 * util/mkisofs/match.h: Likewise.
24684 * util/mkisofs/mkisofs.c: Likewise.
24685 * util/mkisofs/mkisofs.h: Likewise.
24686 * util/mkisofs/msdos_partition.h: Likewise.
24687 * util/mkisofs/multi.c: Likewise.
24688 * util/mkisofs/name.c: Likewise.
24689 * util/mkisofs/rock.c: Likewise.
24690 * util/mkisofs/tree.c: Likewise.
24691 * util/mkisofs/write.c: Likewise.
24692
5dde9afe
VS
246932010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24694
24695 Unify grub-mkimage accross platforms.
24696
24697 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
24698 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
24699 (grub_mkelfimage_SOURCES): Removed.
24700 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
24701 (util/grub-mkimage.c_DEPENDENCIES): .. this.
24702 (bin_UTILITIES): Add grub-mkimage.
24703 (grub_mkimage_SOURCES): New variable.
24704 (kernel_img_HEADERS): Remove machine/kernel.h.
24705 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
24706 (pkglib_PROGRAMS): Add kernel.img.
24707 (kernel_img_HEADERS): Add machine/kernel.h.
24708 (kernel_img_FORMAT): Removed.
24709 (bin_UTILITIES): Remove grub-mkimage.
24710 (grub_mkimage_SOURCES): Removed.
24711 (grub_mkimage_CFLAGS): Likewise.
24712 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24713 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
24714 (pkglib_PROGRAMS): Add kernel.img.
24715 (bin_UTILITIES): Remove grub-mkimage.
24716 (grub_mkimage_SOURCES): Removed.
24717 (grub_mkimage_CFLAGS): Likewise.
24718 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24719 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
24720 (pkglib_PROGRAMS): Add kernel.img.
24721 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
24722 (pkglib_PROGRAMS): Add kernel.img.
24723 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
24724 (grub_mkimage_SOURCES): Removed.
24725 (grub_mkimage_CFLAGS): Likewise.
24726 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24727 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
24728 (pkglib_PROGRAMS): Add kernel.img.
24729 (bin_UTILITIES): Remove grub-mkimage.
24730 (grub_mkimage_SOURCES): Removed.
24731 (grub_mkimage_CFLAGS): Likewise.
24732 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24733 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
24734 (grub_mkimage_SOURCES): Removed.
24735 (grub_mkimage_CFLAGS): Likewise.
24736 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24737 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
24738 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
24739 (grub_pe32_optional_header): ... this.
24740 (grub_pe64_optional_header): ... and this. All users updated.
24741 (GRUB_PE32_PE32_MAGIC): Split into ..
24742 (GRUB_PE32_PE32_MAGIC): .. this.
24743 (GRUB_PE32_PE64_MAGIC): .. and this.
24744 (GRUB_PE32_SIGNATURE_SIZE): New definition.
24745 * include/grub/elf.h (PT_GNU_STACK): New definition.
24746 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
24747 * include/grub/i386/efi/kernel.h: Likewise.
24748 * include/grub/i386/kernel.h: Likewise.
24749 * include/grub/i386/pc/kernel.h: Likewise.
24750 * include/grub/i386/qemu/boot.h: Likewise.
24751 * include/grub/mips/kernel.h: Likewise.
24752 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24753 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
24754 * include/grub/powerpc/kernel.h: Likewise.
24755 * include/grub/sparc64/ieee1275/boot.h: Likewise.
24756 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24757 * include/grub/sparc64/kernel.h: Likewise.
24758 * include/grub/x86_64/efi/kernel.h: Likewise.
24759 * include/grub/x86_64/kernel.h: Likewise.
24760 * include/grub/offsets.h: New file.
24761 * include/grub/kernel.h (grub_module_info): Split into ...
24762 (grub_module_info32): ... this.
24763 (grub_module_info64): ... and this.
24764 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
24765 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
24766 (grub_boot_blocklist): Moved from here ...
24767 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
24768 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
24769 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
24770 * include/grub/types.h (grub_target_to_host16): Removed.
24771 (grub_target_to_host32): Likewise.
24772 (grub_target_to_host64): Likewise.
24773 (grub_host_to_target16): Likewise.
24774 (grub_host_to_target32): Likewise.
24775 (grub_host_to_target64): Likewise.
24776 (grub_host_to_target_addr): Likewise.
24777
24778 Support grub-mkrescue for efi, coreboot and qemu.
24779
24780 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
24781 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
24782 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
24783 * util/grub-mkrawimage.c: Moved from here ...
24784 * util/grub-mkimage.c: ... here. All users updated.
24785 (ALIGN_ADDR): Use image_target.
24786 (TARGET_NO_FIELD): New const.
24787 (image_target_desc): New type.
24788 (image_targets): New array.
24789 (grub_target_to_host64): Use image_target.
24790 (grub_target_to_host32): Likewise.
24791 (grub_target_to_host16): Likewise.
24792 (grub_host_to_target64): Likewise.
24793 (grub_host_to_target32): Likewise.
24794 (grub_host_to_target16): Likewise.
24795 (grub_host_to_target_addr): Likewise.
24796 (generate_image): Handle multiimage.
24797 (main): Require -O parameter. All users updated.
24798 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
24799 util/efi/grub-mkimage.c
24800 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
24801 New option --rom-directory.
24802 Use xorriso.
24803 * util/i386/efi/grub-mkimage.c: Removed.
24804 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
24805 (grub_target_to_host32): Likewise.
24806 (grub_target_to_host64): Likewise.
24807 (grub_host_to_target16): Likewise.
24808 (grub_host_to_target32): Likewise.
24809 (grub_host_to_target64): Likewise.
24810 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
24811 (grub_target_to_host32): Likewise.
24812 (grub_target_to_host64): Likewise.
24813 (grub_host_to_target16): Likewise.
24814 (grub_host_to_target32): Likewise.
24815 (grub_host_to_target64): Likewise.
24816
f4fc97d0
BC
248172010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
24818
24819 Source tree is reorganized for emu build.
24820
24821 * include/grub/util/console.h: Move from here...
24822 * include/grub/emu/console.h: ...to here.
24823 * include/grub/util/getroot.h: Move from here...
24824 * include/grub/emu/getroot.h: ...to here.
24825 * include/grub/util/hostdisk.h: Move from here...
24826 * include/grub/emu/hostdisk.h: ...to here.
24827 * util/console.c: Move from here...
24828 * kern/emu/console.c: ...to here.
24829 * util/getroot.c: Move from here...
24830 * kern/emu/getroot.c: ...to here.
24831 * util/grub-emu.c: Move from here...
24832 * kern/emu/main.c: ...to here.
24833 * util/hostdisk.c: Move from here...
24834 * kern/emu/hostdisk.c: ...to here.
24835 * util/hostfs.c: Move from here...
24836 * kern/emu/hostfs.c: ...to here.
24837 * util/mm.c: Move from here...
24838 * kern/emu/mm.c: ...to here.
24839 * util/pci.c: Move from here...
24840 * bus/emu/pci.c: ...to here.
24841 * util/sdl.c: Move from here...
24842 * video/emu/sdl.c: ...to here.
24843 * util/time.c: Move from here...
24844 * kern/emu/time.c: ...to here.
24845 * util/usb.c: Move from here...
24846 * bus/usb/emu/usb.c: ...to here.
24847
24848 * include/grub/emu/misc.h: New header for grub-emu functions.
24849 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
24850
24851 * conf/any-emu.rmk: Rule updates for above renames.
24852 * conf/common.rmk: Likewise.
24853 * conf/i386-pc.rmk: Likewise.
24854 * conf/i386-qemu.rmk: Likewise.
24855 * conf/mips.rmk: Likewise.
24856 * conf/sparc64-ieee1275.rmk: Likewise.
24857 * conf/x86-efi.rmk: Likewise.
24858
24859 * disk/lvm.h: #include updates for above renames.
24860 * util/grub-mkrelpath.c: Likewise.
24861 * util/grub-probe.c: Likewise.
24862 * util/i386/pc/grub-setup.c: Likewise.
24863 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24864 * kern/emu/console.c: Likewise.
24865 * kern/emu/getroot.c: Likewise.
24866 * kern/emu/hostdisk.c: Likewise.
24867 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
24868
24869 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
24870 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
24871 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
24872 * util/misc.c: Remove grub-emu functions.
24873
cced9145
VS
248742010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
24875
24876 Fix gfxmenu crash.
24877 Reported by: Thorsten Grützmacher.
24878
24879 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
24880 timeout hook.
24881 (circprog_set_property): Register and unregister timeout hook.
24882 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
24883 (label_destroy): Free template. and unregister hook.
24884 (label_set_state): New function.
24885 (label_set_property): Handle templates and hooks.
24886 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
24887 timeout hook.
24888 (progress_bar_set_property): Register and unregister timeout hook.
24889 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
24890 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
24891 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
24892 (update_timeout_visit): Removed.
24893 (update_timeouts): New function.
24894 (redraw_timeouts): Likewise.
24895 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
24896 (grub_gfxmenu_clear_timeout): Likewise.
24897 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
24898 (grub_gfxmenu_timeout_notify): Likewise.
24899 (grub_gfxmenu_timeout_notifications): New external variable.
24900 (grub_gfxmenu_timeout_register): New function.
24901 (grub_gfxmenu_timeout_unregister): Likewise.
24902
c6e5caab
VS
249032010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24904
24905 Transform (broken) vga terminal into (working) vga video driver.
24906
24907 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
24908 video/i386/pc/vga.c.
24909 * include/grub/video.h (grub_video_driver_id):
24910 Add GRUB_VIDEO_DRIVER_VGA.
24911 * term/i386/pc/vga.c: Renamed to ...
24912 * video/i386/pc/vga.c: ...this
24913 (DEBUG_VGA): Removed.
24914 (CHAR_WIDTH): Likewise.
24915 (CHAR_HEIGHT): Likewise.
24916 (TEXT_WIDTH): Likewise.
24917 (TEXT_HEIGHT): Likewise.
24918 (DEFAULT_FG_COLOR): Likewise.
24919 (DEFAULT_BG_COLOR): Likewise.
24920 (colored_char): Likewise.
24921 (xpos): Likewise.
24922 (ypos): Likewise.
24923 (cursor_state): Likewise.
24924 (fg_color): Likewise.
24925 (bg_color): Likewise.
24926 (text_buf): Likewise.
24927 (page): Likewise.
24928 (font): Likewise.
24929 (framebuffer): New variable.
24930 (set_read_map): Disabled.
24931 (setup): New variable.
24932 (is_target): Likewise.
24933 (grub_vga_mod_init): Likewise.
24934 (grub_vga_mod_fini): Likewise.
24935 (check_vga_mem): Likewise.
24936 (write_char): Likewise.
24937 (write_cursor): Likewise.
24938 (scroll_up): Likewise.
24939 (grub_vga_putchar): Likewise.
24940 (grub_vga_getcharwidth): Likewise.
24941 (grub_vga_getwh): Likewise.
24942 (grub_vga_getxy): Likewise.
24943 (grub_vga_gotoxy): Likewise.
24944 (grub_vga_cls): Likewise.
24945 (grub_vga_setcolorstate): Likewise.
24946 (grub_vga_setcursor): Likewise.
24947 (grub_video_vga_init): New function.
24948 (grub_video_vga_setup): Likewise.
24949 (grub_video_vga_fini): Likewise.
24950 (update_target): Likewise.
24951 (grub_video_vga_blit_bitmap): Likewise.
24952 (grub_video_vga_blit_render_target): Likewise.
24953 (grub_video_vga_set_active_render_target): Likewise.
24954 (grub_video_vga_get_active_render_target): Likewise.
24955 (grub_video_vga_swap_buffers): Likewise.
24956 (grub_video_vga_set_palette): Likewise.
24957 (grub_video_vga_get_info_and_fini): Likewise.
24958 (grub_vga_term): Removed.
24959 (grub_video_vga_adapter): New variable.
24960 (GRUB_MOD_INIT): Register a video driver instead of terminal.
24961 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
24962
2bf61a98
VS
249632010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24964
24965 * video/readers/jpeg.c: Indented.
24966
09ddcd11
VS
249672010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24968
24969 Various jpeg cleanups.
24970
24971 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
24972 (grub_jpeg_decode_quan_table): Use sizeof.
24973 (grub_jpeg_decode_du): Use ARRAY_SIZE.
24974
e5507505
PH
249752010-05-05 Peter Hurley <No e-mail available> (tiny change)
24976
24977 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
24978 tables. Ignore non-last ac bit.
24979 (grub_jpeg_decode_quan_table): Likewise.
24980
7e720a9b
VS
249812010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24982
24983 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
24984 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
24985 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24986 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
24987 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
24988 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
24989
a7fc080b
VS
249902010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24991
24992 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
24993 error.
24994
2bf6012d
VS
249952010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24996
24997 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
24998
265d68cd
VS
249992010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25000
25001 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
25002 condition.
25003
250042010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
25005
25006 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
25007 part.
25008
265d68cd 250092010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
25010
25011 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
25012 pointers.
25013
265d68cd 250142010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
25015
25016 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
25017
d1b61374
CF
250182010-05-01 Christian Franke <franke@computer.org>
25019
25020 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
25021 Remove broken Cygwin path conversion.
25022 * util/misc.c: [__CYGWIN__] Add include and define.
25023 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
25024 for Cygwin 1.7.
25025 (make_system_path_relative_to_its_root): Simplify loop, replace early
25026 return by break.
25027 [__CYGWIN__] Add conversion to win32 path.
25028 Include "/" case in trailing slash removal.
25029
3558c6e9
VS
250302010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25031
25032 * kern/main.c (grub_load_config): Fix copy-pasted comment.
25033 Reported by: Seth Goldberg
25034
f5f3ff93
VS
250352010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25036
25037 * commands/help.c (grub_cmd_help): Fix a typo.
25038 Reported by: Seth Goldberg
25039
d8b5cd40
VS
250402010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25041
25042 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
25043 name and add N_.
25044 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
25045 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
25046 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
25047 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
25048 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
25049 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
25050 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25051 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25052 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25053 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25054 * normal/context.c (GRUB_MOD_INIT): Likewise.
25055 * normal/main.c (GRUB_MOD_INIT): Likewise.
25056 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25057 * term/serial.c (GRUB_MOD_INIT): Likewise.
25058 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25059
88c14915
VS
250602010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25061
25062 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
25063 extra == 0.
25064
165134bc
VS
250652010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25066
25067 * commands/iorw.c: New file.
25068 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
25069 (iorw_mod_SOURCES): New variable.
25070 (iorw_mod_CFLAGS): Likewise.
25071 (iorw_mod_LDFLAGS): Likewise.
25072
c5ac9b32
VS
250732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25074
25075 Hotkey support
25076
25077 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
25078 * normal/main.c (hotkey_aliases): New variable.
25079 (grub_normal_add_menu_entry): Parse "--hotkey".
25080 * normal/menu_text.c (run_menu): Handle hotkeys.
25081
ce60689c
VS
250822010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25083
25084 * kern/i386/coreboot/init.c (grub_machine_init): Call
25085 grub_machine_mmap_init on qemu.
25086
0359d006
VS
250872010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25088
25089 * boot/i386/qemu/boot.S: Add a missing .code16.
25090
7819a456
VS
250912010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25092
25093 Use LBIO on coreboot.
25094
25095 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
25096 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
25097 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
25098 New declaration.
25099 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
25100 grub_machine_mmap_init on coreboot.
25101 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
25102 GRUB_LINUXBIOS_MEMBER_LINK.
25103 (grub_machine_mmap_iterate): Fix declaration.
25104 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
25105
7210dca9
VS
251062010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25107
25108 Split coreboot and multiboot ports.
25109
25110 * conf/i386-multiboot.rmk: New file.
25111 * configure.ac: Add multiboot port.
25112 * include/grub/i386/multiboot/boot.h: New file.
25113 * include/grub/i386/multiboot/console.h: Likewise.
25114 * include/grub/i386/multiboot/init.h: Likewise.
25115 * include/grub/i386/multiboot/kernel.h: Likewise.
25116 * include/grub/i386/multiboot/loader.h: Likewise.
25117 * include/grub/i386/multiboot/memory.h: Likewise.
25118 * include/grub/i386/multiboot/serial.h: Likewise.
25119 * include/grub/i386/multiboot/time.h: Likewise.
25120 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
25121 * loader/multiboot.c: Likewise.
25122 * loader/multiboot_mbi2.c: Likewise.
25123 * util/grub-mkrescue.in: Generate multiboot rescue.
25124
6f8aaf68
VS
251252010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25126
3080f7a7
VS
25127 * kern/parser.c (grub_parser_execute): Cope with read-only config.
25128
251292010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25130
25131 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
25132
25133 * commands/terminal.c (abstract_terminal): New struct.
25134 (handle_command): New function. Based on grub_cmd_terminal_input.
25135 (grub_cmd_terminal_input): Use handle_command.
25136 (grub_cmd_terminal_output): Use handle_command.
25137
a8ebb841
BC
251382010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
25139
25140 Fix comment handling.
25141
25142 * tests/grub_script_comments.in: New testcase.
25143 * conf/tests.rmk: Rules for new testcase.
25144 * script/yylex.l: Updated flex rules.
25145
bb06ba08
ST
251462010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
25147
25148 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
25149 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
25150 if argc is 1.
bb06ba08 25151
cc9d2425
VS
251522010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25153
25154 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
25155 autogen issues.
25156
460d8402
CF
251572010-04-26 Christian Franke <franke@computer.org>
25158
25159 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
25160 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
25161 (grub_get_prefix): Remove function.
25162 * util/grub-emu.c (main): Replace grub_get_prefix () call by
25163 make_system_path_relative_to_its_root ().
25164 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
25165
553c01f9
CF
251662010-04-24 Christian Franke <franke@computer.org>
25167
25168 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
25169 (kernel_img_LDFLAGS): Remove -static-libgcc.
25170
2aec1692
CF
251712010-04-24 Christian Franke <franke@computer.org>
25172
25173 * configure.ac: Do not CHECK_BSS_START_SYMBOL
25174 and CHECK_END_SYMBOL if grub-emu is built.
25175 Unset TARGET_OBJ2ELF if grub-emu is built
25176 without module support.
25177
f67dc308
JS
251782010-04-24 Jiro SEKIBA <jir@unicus.jp>
25179
25180 Nilfs2 support.
25181
25182 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
25183 (grub_fstest_SOURCES): Likewise.
25184 (pkglib_MODULES): Add nilfs2.mod.
25185 (nilfs2_mod_SOURCES): New variable.
25186 (nilfs2_mod_CFLAGS): Likewise.
25187 (nilfs2_mod_LDFLAGS): Likewise.
25188 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25189 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25190 * fs/nilfs2.c: New file.
25191
4ba8d354
VS
251922010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
25193
25194 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
25195 is not supported.
25196
0d2c20c6
GS
251972010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
25198
25199 Add grub-mkconfig support for NetBSD.
25200
25201 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
25202 * util/grub-mkconfig.in: export new NetBSD specific variables.
25203 * po/POTFILES-shell: added 10_netbsd.in.
25204 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
25205
bc4a2d83
BC
252062010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
25207
25208 Fix emu build with grub-emu-pci and grub-emu-modules.
25209
25210 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
25211 functions.
25212 * include/grub/libpciaccess.h: New file.
25213 * conf/any-emu.rmk: Update kernel headers for emu build.
25214
f48c87aa
VS
252152010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25216
25217 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
25218
18959385
VS
252192010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25220
25221 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
25222
0037de3f
VS
252232010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25224
25225 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
25226 Retrieve chosen/bootpath if bootpath isn't hardcoded.
25227 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
25228 util/ieee1275/ofpath.c.
25229 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
25230 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
25231 * include/grub/sparc64/ieee1275/boot.h
25232 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
25233 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
25234 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
25235 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
25236 const char *.
25237 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
25238 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
25239 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
25240 install.
25241
38e55e90
GS
252422010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
25243
25244 * util/grub-mkconfig.in: Corrected two == equality tests.
25245 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
25246 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
25247 expect a number appended to it.
25248 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
25249 expects a number appended to it.
25250
a9e6ff28
VS
252512010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25252
25253 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
25254
0b830b8f
VS
252552010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25256
25257 * util/hostdisk.c (make_device_name): Change to new partition naming.
25258
0973daeb
VS
252592010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
25260
25261 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
25262
460d8402 252632010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
25264
25265 * Makefile.in: Add missing localedir setting.
25266
0b456309
CW
252672010-04-14 Colin Watson <cjwatson@ubuntu.com>
25268
25269 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
25270 mistake in r2156. Noticed by Anthony Fok.
25271
25272 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
25273 @localedir@.
25274 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
25275
08f46d62
BC
252762010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
25277
25278 Fix a spurious, uninitialized variable warning.
25279
25280 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
25281 Initialize variable, shdr.
25282 (grub_freebsd_load_elfmodule): Likewise.
25283 (grub_freebsd_load_elf_meta): Likewise.
25284
8c4a72d4
BC
252852010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
25286
25287 Fix for escaped dollar in double quoted strings.
25288
25289 * script/yylex.l: Updated flex rules.
25290 * conf/tests.rmk: Rule for new testcase.
25291 * tests/grub_script_dollar.in: New testcase.
25292
ce44826e
CPE
252932010-04-13 Carles Pina i Estany <carles@pina.cat>
252942010-04-13 Colin Watson <cjwatson@ubuntu.com>
25295
25296 Enclose all translated strings in grub.cfg in single quotes, and
25297 escape them appropriately (Ubuntu bug #552921).
25298
25299 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
25300 * util/grub.d/10_hurd.in: Use it.
25301 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
25302 * util/grub.d/10_linux.in (linux_entry): Likewise.
25303
4b0cd8f8
VS
253042010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25305
25306 Fix cygwin compilation.
25307
25308 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
25309 * include/grub/misc.h (__register_frame_info)
25310 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
25311 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25312 * kern/misc.c (__register_frame_info)
25313 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
25314 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25315
01fcf061
VS
253162010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25317
25318 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
25319
5d04b11e
VS
253202010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25321
25322 Unify libgcc processing.
25323
25324 * Makefile.in (kernel_img_LDFLAGS): New variable.
25325 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
25326 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
25327 overwriting.
25328 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
25329 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
25330 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
25331 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
25332 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
25333 overwriting. Remove -lgcc and -static-libgcc
25334 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
25335 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25336 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25337 (kernel_img_LDFLAGS): Append instead of overwriting.
25338 Remove -lgcc and -static-libgcc
25339 * conf/sparc64-ieee1275.rmk: Likewise.
25340 * include/grub/powerpc/libgcc.h: Move to ...
25341 * include/grub/libgcc.h: .. this.
25342 * include/grub/libgcc.h: Don't export most of the function on x86.
25343 (__bswapsi2): New export.
25344 (__bswapdi2): Likewise.
25345 * include/grub/mips/libgcc.h: Removed.
25346 * include/grub/sparc64/libgcc.h: Likewise.
25347
b7f3ac29
VS
253482010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25349
25350 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
25351 disk_info_msg (conflicts with gettexting into languages with cases).
25352
2c7031b1
GS
253532010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
25354
25355 Add grub-probe support for NetBSD.
25356
25357 * util/getroot.c (find_root_device): Convert block device to
25358 character device on NetBSD.
25359 * util/probe.c (probe): Require character device on NetBSD.
25360 * util/hostdisk.c: NetBSD specific headers.
25361 (configure_device_driver): new function to tune device driver
25362 parameters (currently only for NetBSD floppy driver).
25363 (grub_util_biosdisk_open): NetBSD specific code (get disk size
25364 via disklabel ioctl).
25365 (open_device): call configure_device_driver on NetBSD.
25366 (convert_system_partition_to_system_disk): NetBSD specific code.
25367 (device_is_wholedisk): Likewise.
25368 (grub_util_biosdisk_get_grub_dev): Likewise.
25369 (make_device_name): Fixed a typo in bsd_part_str.
25370 * configure.ac: check for opendisk() and getrawpartition() on
25371 NetBSD and set LIBUTIL.
25372 * Makefile.in: add LIBUTIL to LIBS.
25373
f516290c
BC
253742010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25375
25376 Documentation fix.
25377
25378 * util/grub-script-check.c: Better help message.
25379
d8dcc0df
BC
253802010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25381
25382 Fix FreeBSD build.
25383
25384 * configure.ac: Flex version check.
25385 * conf/common.rmk: Add -Wno-error to sh.mod.
25386 * script/yylex.l: Remove all #pragma.
25387
6734334a
VS
253882010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25389
25390 * include/grub/util/misc.h (canonicalise_file_name): Add missing
25391 prototype.
25392 Reported by: Seth Goldberg.
25393
daea6abd
VS
253942010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25395
25396 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
25397 Rename "module" to "module2".
25398 Reported by: Seth Goldberg.
25399
f2fd9d2b
VS
254002010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25401
25402 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
25403 EXPORT_FUNC.
25404 Reported by: Seth Goldberg.
25405
be124579
VS
254062010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25407
25408 * lib/posix_wrap/locale.h: Add missing file.
25409 Reported by: Seth Goldberg.
25410
ef5da797
VS
254112010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25412
25413 grub-emu module load support.
25414
25415 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
25416 NO_DYNAMIC_MODULES switched to this.
25417 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
25418 (CFLAGS): Likewise.
25419 * conf/any-emu.rmk: Generate symlist.
25420 (kernel_img_HEADERS): Add util/datetime.h.
25421 (kernel_img_HEADERS) [sdl]: Add sdl.h.
25422 (kernel_img_HEADERS) [libusb]: Add libusb.h.
25423 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
25424 kern/$(target_cpu)/cache.S.
25425 * configure.ac (grub-emu-modules): New option.
25426 * genmk.rb: Handle multiple source lists.
25427 * include/grub/sdl.h: New file.
25428 * include/grub/libusb.h: Likewise.
25429 * util/grub-emu.c (main): Hanle (host) root.
25430 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
25431 GRUB_ERR_UNKNOWN_DEVICE.
25432 * util/misc.c: Move mm functions to ...
25433 * util/mm.c: ... here. All users updated.
25434
47822096
VS
254352010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25436
25437 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
25438 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
25439 missing files.
25440 (maintainer-clean): Remove libgcrypt-grub.
25441
5d7e7445
VS
254422010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25443
25444 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
25445
25f4e252
EC
254462010-04-09 EFI Coder <eficoder@hotmail.com>
25447
25448 * normal/menu_text.c (print_message): Clean up the message and show
25449 the Fn information when on EFI
25450 * term/efi/console.c (grub_console_checkkey): Add F4 support.
25451
027de555
VS
254522010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25453
25454 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
25455 All users updated.
25456 * normal/crypto.c (read_crypto_list): Likewise.
25457 * normal/dyncmd.c (read_command_list): Likewise.
25458 * normal/term.c (read_terminal_list): Likewise.
25459 * normal/main.c (read_lists): Use explicit prefix.
25460 (read_lists_hook): Use read_lists.
25461 (grub_normal_execute): Likewise.
25462
47779711
VS
254632010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25464
25465 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
25466 Reported by: Thomas Schmitt.
25467 Add -no-emul-boot to grub-mkisofs parameters.
25468
1118c32e
VS
254692010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25470
25471 * font/font.c: Indented.
25472
7d652447
BC
254732010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25474
25475 Elif support to GRUB script (by Deepak Vankadaru).
25476
25477 * tests/grub_script_if.in: New testcase.
25478 * conf/tests.rmk: Rule for new testcase.
25479 * script/parser.y: Grammar rules for elif.
25480
34bb22df
BC
254812010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25482
25483 While and until loops support to GRUB script.
25484
25485 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
25486 (grub_script_create_cmdwhile): New function prototype.
25487 (grub_script_execute_cmdwhile): New function prototype.
25488 * script/execute.c (grub_script_execute_cmdwhile): New function.
25489 * script/parser.y (command): New commands.
25490 (whilecmd): New grammar rule.
25491 (untilcmd): New grammar rule.
25492 * script/script.c (grub_script_create_cmdwhile): New function.
25493 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
25494 function.
25495
25496 * tests/grub_script_while1.in: New testcase.
25497 * conf/tests.rmk: Rule for new testcase.
25498
e215d8e0
VS
254992010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25500
25501 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
25502 as *.jpg.
25503
d7c43ba1
MV
255042010-04-09 Mario Vazquez <mariovazq@gmail.com>
25505
25506 GRUB_BACKGROUND support.
25507
25508 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
25509 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
25510
d64795c0
VS
255112010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25512
25513 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 25514 Idea by: Mario Vazquez
d64795c0
VS
25515
25516 * util/grub.d/00_header.in: Load pf2 and image modules.
25517
f267f83a
VS
255182010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25519
25520 grub-mkconfig multiple terminal support.
25521
25522 * util/grub-mkconfig.in: Handle multiple terminals correctly.
25523 * util/grub.d/00_header.in: Likewise.
25524
b7841ceb
VS
255252010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25526
25527 * Makefile.in: Specify files explicitly instead of using $< and $@ since
25528 we use cd $(srcdir).
25529
df60998c
CW
255302010-04-08 Colin Watson <cjwatson@ubuntu.com>
25531
25532 * util/grub.d/10_linux.in: Only use the first word of
25533 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
25534 spaces in GRUB_DISTRIBUTOR.
25535 * util/grub.d/10_kfreebsd.in: Likewise.
25536 * util/grub.d/10_hurd.in: Likewise.
25537
fa09c82e
BC
255382010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
25539
14e18ae3 25540 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
25541
25542 * tests/util/grub-shell.in: Remove -serial stdio option.
25543
daf892b3
BC
255442010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25545
25546 POSIX header file wrappers.
25547
25548 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
25549 equivalents.
25550 * lib/posix_wrap/ctype.h: Likewise.
25551 * lib/posix_wrap/errno.h: Likewise.
25552 * lib/posix_wrap/langinfo.h: Likewise.
25553 * lib/posix_wrap/limits.h: Likewise.
25554 * lib/posix_wrap/localcharset.h: Likewise.
25555 * lib/posix_wrap/stdint.h: Likewise.
25556 * lib/posix_wrap/stdio.h: Likewise.
25557 * lib/posix_wrap/stdlib.h: Likewise.
25558 * lib/posix_wrap/string.h: Likewise.
25559 * lib/posix_wrap/sys/types.h: Likewise.
25560 * lib/posix_wrap/unistd.h: Likewise.
25561 * lib/posix_wrap/wchar.h: Likewise.
25562 * lib/posix_wrap/wctype.h: Likewise.
25563 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
25564 (grub_script.yy.h): Likewise.
25565 * script/yylex.l: Remove POSIX emulation #defines.
25566 * Makefile.in (POSIX_CFLAGS): New variable.
25567 (GNULIB_UTIL_CFLAGS): Likewise.
25568
25569 Regexp support.
25570
25571 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
25572 (regexp_mod_SOURCES): New variable.
25573 (regexp_mod_CFLAGS): Likewise.
25574 (regexp_mod_LDFLAGS): Likewise.
25575 * commands/regexp.c: New file.
25576 * gnulib/regcomp.c: New file. Imported from gnulib.
25577 * gnulib/regex.c: Likewise.
25578 * gnulib/regex_internal.c: Likewise.
25579 * gnulib/regex_internal.h: Likewise.
25580 * gnulib/regexec.c: Likewise.
25581 * gnulib/regex.h: Likewise.
25582
974ac4f7
VS
255832010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25584
25585 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
25586 unsupported video mode types.
25587
2622c3ff
VS
255882010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25589
25590 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
25591
064cb524
VS
255922010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25593
25594 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
25595 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
25596
a8c3b552
VS
255972010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25598
25599 Remove unused grub_vga_get_font.
25600
25601 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
25602 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
25603
187bbe3d
GS
256042010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25605
25606 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
25607 * include/grub/misc.h: Likewise.
25608
b9396631
GS
256092010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25610
25611 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
25612 for which failure is fatal.
25613
50479feb
GS
256142010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25615
25616 * util/grub-install.in: Use mkdir -p to create grub directory.
25617 * util/i386/efi/grub-install.in: Likewise.
25618 * util/ieee1275/grub-install.in: Likewise.
25619
b1654fdf
GS
256202010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25621
25622 * Makefile.in (LEX): new variable.
25623
bd5a6415
GS
256242010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25625
25626 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
25627 `=' and added double quotes on operands of this equality test.
25628
3db3a82b
VS
256292010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
25630
25631 * Makefile.in (uninstall): Remove a leftover debug echo.
25632 Reported by: Grégoire Sutre
25633
38023412
VS
256342010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
25635
25636 MIPS multiboot2 support.
25637
25638 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
25639 (multiboot2_mod_SOURCES): New variable.
25640 (multiboot2_mod_CFLAGS): Likewise.
25641 (multiboot2_mod_LDFLAGS): Likewise.
25642 (multiboot2_mod_ASFLAGS): Likewise.
25643 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
25644 definition.
25645 (MULTIBOOT_ENTRY_REGISTER): Likewise.
25646 (MULTIBOOT_MBI_REGISTER): Likewise.
25647 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
25648 (MULTIBOOT_ELF32_MACHINE): Likewise.
25649 (MULTIBOOT_ELF64_MACHINE): Likewise.
25650 * include/grub/mips/multiboot.h: New file.
25651 * include/grub/video.h (grub_video_driver_id): New type
25652 GRUB_VIDEO_DRIVER_SM712.
25653 (grub_video_get_info_and_fini): Export.
25654 (grub_video_get_palette): Likewise.
25655 (grub_video_get_driver_id): Likewise.
25656 * include/multiboot2.h: Resynced with spec.
25657 * loader/i386/multiboot.c: Moved from here ...
25658 * loader/multiboot.c: ... here. All users updated.
25659 (grub_multiboot_boot): Use platform-specific macros.
25660 * loader/i386/multiboot_elfxx.c: Moved from here ...
25661 * loader/multiboot_elfxx.c: ... here. All users updated.
25662 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
25663 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
25664 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
25665
47674667
VS
256662010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
25667
25668 Import gnulib argp module.
25669
25670 * gnulib/argp-ba.c: New file.
25671 * gnulib/argp-eexst.c: Likewise.
25672 * gnulib/argp-fmtstream.c: Likewise.
25673 * gnulib/argp-fmtstream.h: Likewise.
25674 * gnulib/argp-fs-xinl.c: Likewise.
25675 * gnulib/argp-help.c: Likewise.
25676 * gnulib/argp-namefrob.h: Likewise.
25677 * gnulib/argp-parse.c: Likewise.
25678 * gnulib/argp-pin.c: Likewise.
25679 * gnulib/argp-pv.c: Likewise.
25680 * gnulib/argp-pvh.c: Likewise.
25681 * gnulib/argp-version-etc.c: Likewise.
25682 * gnulib/argp-version-etc.h: Likewise.
25683 * gnulib/argp-xinl.c: Likewise.
25684 * gnulib/argp.h: Likewise.
25685
495442ed
VS
256862010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
25687
25688 * kern/device.c (grub_device_iterate): Clear errors after failed
25689 opening device.
25690
f9fd65df
VS
256912010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
25692
25693 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
25694 returned by firmware.
25695
af09641e
VS
256962010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
25697
25698 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
25699 compilation on coreboot and qemu
25700
016883a5
VS
257012010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
25702
25703 * include/multiboot2.h: Resync with spec.
25704
f97e1f7d
VS
257052010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
25706
25707 Multiboot2 tag support
25708
25709 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
25710 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
25711 Remove loader/multiboot_loader.c.
25712 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
25713 (grub_multiboot2_real_boot): Likewise.
25714 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
25715 (grub_get_multiboot_mmap_count): New proto.
25716 (grub_fill_multiboot_mmap): Likewise.
25717 (grub_multiboot_set_video_mode): Likewise.
25718 (grub_multiboot_set_console): Likewise.
25719 (grub_multiboot_load): Likewise.
25720 (grub_multiboot_load_elf): Likewise.
25721 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
25722 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
25723 * include/multiboot.h: Resynced with specification.
25724 * include/multiboot2.h: Resynced with specification.
25725 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
25726 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
25727 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
25728 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
25729 users updated.
25730 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
25731 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
25732 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
25733 Removed.
25734 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
25735 Moved from here...
25736 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
25737 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
25738 Moved from here...
25739 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
25740 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
25741 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
25742 All users updated.
25743 * loader/i386/multiboot_mbi2.c: New file.
25744
3506b90b
VS
257452010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
25746
25747 Resync with gnulib.
25748
25749 * Makefile.in (GNULIB_CFLAGS): New variable.
25750 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
25751 (grub_script_check_CFLAGS): New variable.
25752 * gnulib/alloca.h: Resync with gnulib.
25753 * gnulib/error.c: Likewise.
25754 * gnulib/error.h: Likewise.
25755 * gnulib/fnmatch.c: Likewise.
25756 * gnulib/fnmatch_loop.c: Likewise.
25757 * gnulib/getdelim.c: Likewise.
25758 * gnulib/getline.c: Likewise.
25759 * gnulib/getopt.c: Likewise.
25760 * gnulib/getopt1.c: Likewise.
25761 * gnulib/getopt_int.h: Likewise.
25762 * gnulib/gettext.h: Likewise.
25763 * gnulib/progname.c: Likewise.
25764 * gnulib/progname.h: Likewise.
25765
394a3120
GS
257662010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
25767
25768 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
25769 which is the case with --disabled-nls.
25770
25771 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
25772 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
25773 * util/misc.c: Likewise.
25774 * util/mkisofs/mkisofs.c: Likewise.
25775 * util/mkisofs/mkisofs.h: Likewise.
25776
969d1c78
VS
257772010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
25778
25779 Simplify Apple CC support.
25780
25781 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
25782 Add 0 byte at the end not to have a symbol with empty target.
25783 * mmap/i386/pc/mmap_helper.S: Likewise.
25784 * genmk.rb: Ignore errors 2030 and 2050.
25785 * kern/i386/pc/startup.S: Use LOCAL when possible.
25786
8d2977bb
BC
257872010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
25788
25789 Testcase and the fix for final semicolon on cmdline.
25790
25791 * tests/grub_script_final_semicolon.in: New testcase.
25792 * conf/tests.rmk: Rules for the new testcase.
25793 * script/parser.y: Grammar fix.
25794
a7bd6915
BC
257952010-03-26 BVK Chaitanya <bvk@localhost>
25796
25797 Blank lines testcase for GRUB script.
25798
25799 * tests/grub_script_blanklines.in: New testcase.
25800 * conf/tests.rmk: Rules for the new testcase.
25801
e4ff6628
VS
258022010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
25803
25804 Don't use __FILE__.
25805
25806 * genmk.rb: Add -DGRUB_FILE to all C targets.
25807 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
25808 * include/grub/list.h: Likewise.
25809 * include/grub/misc.h: Likewise.
25810 * include/grub/mm.h: Likewise.
25811 * include/grub/test.h: Likewise.
25812 * kern/mm.c: Likewise.
25813 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25814
6a5cf6b6
VS
258152010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
25816
25817 Sunpc partitions support.
25818
25819 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
25820 (grub_fstest_SOURCES): Likewise.
25821 (pkglib_MODULES): Add part_sunpc.mod.
25822 (part_sunpc_mod_SOURCES): New variable.
25823 (part_sunpc_mod_CFLAGS): Likewise.
25824 (part_sunpc_mod_LDFLAGS): Likewise.
25825 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
25826 * partmap/sunpc.c: New file.
25827
746d9045
BC
258282010-03-26 BVK Chaitanya <bvk@localhost>
25829
25830 For loop support to GRUB script.
25831
25832 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
25833 (grub_script_create_cmdfor): New function prototype.
25834 (grub_script_execute_cmdfor): New function prototype.
25835 * script/execute.c (grub_script_execute_cmdfor): New function.
25836 * script/parser.y (command): New for command.
25837 (forcmd): New grammar rule.
25838 * script/script.c (grub_script_create_cmdfor): New function.
25839 * util/grub-script-check.c (grub_script_execute_cmdfor): New
25840 function.
25841 * tests/grub_script_for1.in: New testcase.
25842 * conf/tests.rmk: Rules for new testcase.
25843
18486b18
VS
258442010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
25845
25846 Nested partitions
25847
25848 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
25849 'partition' is NULL, grub_partition_get_start already does that.
25850 * commands/loadenv.c (check_blocklists): Likewise.
25851 (write_blocklists): Likewise.
25852 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
25853 (grub_fstest_SOURCES): Likewise.
25854 (pkglib_MODULES): Add part_bsd.mod.
25855 (part_bsd_mod_SOURCES): New variable.
25856 (part_bsd_mod_CFLAGS): Likewise.
25857 (part_bsd_mod_LDFLAGS): Likewise.
25858 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
25859 (grub_emu_SOURCES): Likewise.
25860 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25861 * include/grub/bsdlabel.h: New file.
25862 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
25863 'get_name'.
25864 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
25865 (grub_partition_map_list): New variable.
25866 (grub_partition_map_register): Inline.
25867 (grub_partition_map_unregister): Likewise.
25868 (FOR_PARTITION_MAPS): New macro.
25869 (grub_partition_map_iterate): Removed.
25870 (grub_partition_get_start): Handle nested partitions.
25871 * include/grub/msdos_partition.h: Remove bsd-related entries.
25872 (grub_pc_partition): Remove.
25873 * kern/disk.c (grub_disk_close): Free partition data.
25874 (grub_disk_adjust_range): Handle nested partitions.
25875 * kern/partition.c (grub_partition_map_probe): New function.
25876 (grub_partition_probe): Parse name to number, handle subpartitions.
25877 (get_partmap): New function.
25878 (grub_partition_iterate): Handle subpartitions.
25879 (grub_partition_get_name): Likewise.
25880 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
25881 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
25882 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
25883 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
25884 Set 'number'.
25885 (acorn_partition_map_probe): Remove.
25886 (acorn_partition_map_get_name): Likewise.
25887 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
25888 Set 'number'.
25889 Set 'index' to 0 since there can be only one partition entry per sector.
25890 (amiga_partition_map_probe): Remove.
25891 (amiga_partition_map_get_name): Likewise.
25892 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
25893 Set 'number'.
25894 Set 'offset' and 'index' to real positions of partitions.
25895 (apple_partition_map_probe): Remove.
25896 (apple_partition_map_get_name): Likewise.
25897 * partmap/bsdlabel.c: New file.
25898 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
25899 Set 'number'.
25900 Allocate 'data' so it can be correctly freed.
25901 Set 'index' to offset inside sector.
25902 (gpt_partition_map_probe): Remove.
25903 (gpt_partition_map_get_name): Likewise.
25904 * partmap/msdos.c (grub_partition_parse): Remove.
25905 (pc_partition_map_iterate): Don't force raw access.
25906 Set 'number'.
25907 Make 'ext_offset' a local variable.
25908 (pc_partition_map_probe): Remove.
25909 (pc_partition_map_get_name): Remove.
25910 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
25911 Set 'number'.
25912 (sun_partition_map_probe): Remove.
25913 (sun_partition_map_get_name): Likewise.
25914 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
25915 (grub_pcpart_type): Likewise.
25916 * util/hostdisk.c (open_device): Handle new numbering scheme.
25917 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
25918 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
25919 * util/grub-probe.c (probe_partmap): Handle nested paritions.
25920 * util/grub-install.in: Insert all subpartition modules.
25921 * util/ieee1275/grub-install.in: Likewise.
25922
a3940f88
AG
259232010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
25924
25925 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
25926 grammar.
25927
21b99926 259282010-03-24 Colin Watson <cjwatson@ubuntu.com>
25929
25930 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
25931
bed1d352
CW
259322010-03-21 Colin Watson <cjwatson@ubuntu.com>
25933
25934 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
25935 match where 'make install' puts them.
25936 * util/i386/efi/grub-install.in: Likewise.
25937
c9f58427
CW
259382010-03-19 Colin Watson <cjwatson@ubuntu.com>
25939
25940 * .bzrignore: Add gentrigtables, grub-script-check,
25941 grub_script_check_init.c, grub_script_check_init.h, and
25942 trigtables.c.
25943
f84afb27
VS
259442010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
25945
25946 * kern/parser.c: Indented.
25947
ed0e3d30
VS
259482010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
25949
25950 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
25951
0ea81d98
VS
259522010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
25953
25954 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
25955 alpha_mask_size == 0 case.
25956
0cdc2a09
BC
259572010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
25958
25959 GRUB shell lexer and parser improvements.
25960
25961 * conf/any-emu.rmk: Build rule updates.
25962 * conf/common.rmk: Likewise.
25963 * conf/i386-coreboot.rmk: Likewise.
25964 * conf/i386-efi.rmk: Likewise.
25965 * conf/i386-ieee1275.rmk: Likewise.
25966 * conf/i386-pc.rmk: Likewise.
25967 * conf/powerpc-ieee1275.rmk: Likewise.
25968 * conf/x86_64-efi.rmk: Likewise.
25969
25970 * configure.ac: Configure check for flex.
25971
25972 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
25973 types.
25974 (grub_lexer_param): Struct member updates.
25975 (grub_parser_param): Likewise.
25976 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
25977 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
25978 (grub_script_lexer_init): Prototype update.
25979 (grub_script_lexer_record_start): Likewise.
25980 (grub_script_lexer_record_stop): Likewise.
25981 (grub_script_lexer_yywrap): New function prototype.
25982 (grub_script_lexer_fini): Likewise.
25983 (grub_script_execute_argument_to_string): Removed by...
25984 (grub_script_execute_argument_to_argv): ...better version.
25985
25986 * script/execute.c (ROUND_UPTO): New macro.
25987 (grub_script_execute_cmdline): Out of memory fixes.
25988 (grub_script_execute_menuentry): Likewise.
25989 (grub_script_execute_argument_to_string): Removed. Update all
25990 users by...
25991 (grub_script_execute_argument_to_argv): ...better version.
25992 * script/function.c (grub_script_function_create): Use
25993 grub_script_execute_argument_to_argv instead of
25994 grub_script_execute_argument_to_string.
25995
25996 * script/lexer.c (check_varstate): Removed.
25997 (check_textstate): Removed.
25998 (grub_script_lexer_record_start): Likewise.
25999 (grub_script_lexer_record_stop): Likewise.
26000 (recordchar): Replaced with...
26001 (grub_script_lexer_record): ...new function.
26002 (nextchar): Removed.
26003 (grub_script_lexer_init): Rewritten.
26004 (grub_script_yylex): Rewritten.
26005 (append_newline): New function.
26006 (grub_script_lexer_yywrap): New function.
26007 (grub_script_lexer_fini): New function.
26008 (grub_script_yyerror): Sets error flag.
26009
26010 * script/yylex.l: New file.
26011 (grub_lexer_yyfree): Wrapper for flex yyffre.
26012 (grub_lexer_yyalloc): Likewise.
26013 (grub_lexer_yyrealloc): Likewise.
26014 * script/parser.y: Refactored.
26015
26016 * script/script.c (grub_script_arg_add): Out of memory fixes.
26017 (grub_script_add_arglist): Likewise.
26018 (grub_script_create_cmdline): Likewise.
26019 (grub_script_create_cmdmenu): Likewise.
26020 (grub_script_add_cmd): Likewise.
26021 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
26022 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
26023 unnecessary code.
26024
26025 * tests/grub_script_echo1.in: New testcase.
26026 * tests/grub_script_vars1.in: New testcase.
26027 * tests/grub_script_echo_keywords.in: New testcase.
26028
1d63a066
VS
260292010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26030
26031 Remove some redundancy in build system.
26032
26033 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
26034 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
26035 (TARGET_LDFLAGS): Add -nostdlib.
26036 (TARGET_IMG_LDFLAGS): Likewise.
26037 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
26038 anything since mmap isn't available.
26039 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
26040 Add util/time.c.
26041 (pkglib_MODULES): Remove reboot.mod.
26042 (reboot_mod_SOURCES): Removed.
26043 (reboot_mod_CFLAGS): Likewise.
26044 (reboot_mod_LDFLAGS): Likewise.
26045 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
26046 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
26047 (DEFSYMFILES): Add kernel_syms.lst.
26048 (kernel_img_HEADERS): Add common headers.
26049 (symlist.c): New target.
26050 (kernel_syms.lst): Likewise.
26051 (pkglib_MODULES): Add memdisk.mod.
26052 (memdisk_mod_SOURCES): New variable.
26053 (memdisk_mod_CFLAGS): Likewise.
26054 (memdisk_mod_LDFLAGS): Likewise.
26055 (pkglib_MODULES): Add reboot.mod.
26056 (reboot_mod_SOURCES): New variable.
26057 (reboot_mod_CFLAGS): Likewise.
26058 (reboot_mod_LDFLAGS): Likewise.
26059 (pkglib_MODULES): Add date.mod.
26060 (date_mod_SOURCES): New variable.
26061 (date_mod_CFLAGS): Likewise.
26062 (date_mod_LDFLAGS): Likewise.
26063 (pkglib_MODULES): Add datehook.mod.
26064 (datehook_mod_SOURCES): New variable.
26065 (datehook_mod_CFLAGS): Likewise.
26066 (datehook_mod_LDFLAGS): Likewise.
26067 (pkglib_MODULES): Add lsmmap.mod.
26068 (lsmmap_mod_SOURCES): New variable.
26069 (lsmmap_mod_CFLAGS): Likewise.
26070 (lsmmap_mod_LDFLAGS): Likewise.
26071 (pkglib_MODULES): Add boot.mod.
26072 (boot_mod_SOURCES): New variable.
26073 (boot_mod_CFLAGS): Likewise.
26074 (boot_mod_LDFLAGS): Likewise.
26075 * conf/i386-coreboot.rmk: Removed redundant parts.
26076 * conf/i386-ieee1275.rmk: Likewise.
26077 * conf/i386-pc.rmk: Likewise.
26078 * conf/mips-yeeloong.rmk: Likewise.
26079 * conf/mips.rmk: Likewise.
26080 * conf/powerpc-ieee1275.rmk: Likewise.
26081 * conf/sparc64-ieee1275.rmk: Likewise.
26082 * conf/x86_64-efi.rmk: Likewise.
26083 * conf/i386-coreboot.rmk: Moved qemu parts ..
26084 * conf/i386-qemu.rmk: ... here
26085 * conf/i386-efi.rmk: Moved common parts to...
26086 * conf/x86-efi.rmk: ... here.
26087 * conf/i386.rmk: Added modules common to all x86 variants.
26088 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
26089 * disk/memdisk.c: Remove grub/machine/kernel.h.
26090 * gensymlist.sh.in: Include symbol.h.
26091 * hook/datehook.c: Correct module name.
26092 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
26093 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
26094 * include/grub/i386/efi/serial.h: New file.
26095 * include/grub/x86_64/efi/serial.h: Likewise.
26096 * util/time.c: Likewise.
26097 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
26098
463ac55f
CK
260992010-03-14 Colin King <colin.king@ubuntu.com>
261002010-03-14 Colin Watson <cjwatson@ubuntu.com>
26101
26102 Shrink the pre-partition-table part of boot.img by eight bytes.
26103
26104 * boot/i386/pc/boot.S (ERR): New macro.
26105 (chs_mode): Use ERR.
26106 (geometry_error): Likewise.
26107 (hd_probe_error): Remove. This is only used once, so we wrwite
26108 it inline instead.
26109 (read_error): Instead of printing read_error_string, just set up
26110 %si and fall through to ...
26111 (error_message): ... this new function, also used by ERR.
26112
08e46ede
CW
261132010-03-14 Colin Watson <cjwatson@ubuntu.com>
26114
26115 Speed up consecutive hostdisk operations on the same device.
26116
26117 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
26118 (grub_util_biosdisk_open): Initialise disk->data.
26119 (struct linux_partition_cache): New structure.
26120 (linux_find_partition): Cache partition start positions; these are
26121 expensive to compute on every read and write.
26122 (open_device): Cache open file descriptor in disk->data, so that we
26123 don't have to reopen it and flush the buffer cache for consecutive
26124 operations on the same device.
26125 (grub_util_biosdisk_close): New function.
26126 (grub_util_biosdisk_dev): Set `close' member.
26127
26128 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
26129 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
26130 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26131 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26132 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
26133
4a6d2d06
VS
261342010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26135
26136 Compile parts of grub-emu as modules.
26137
26138 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
26139 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
26140 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
26141 (all-local): Add $(GRUB_EMU).
26142 (install-local): Install $(GRUB_EMU).
26143 (uninstall): Uninstall $(GRUB_EMU).
26144 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
26145 * kern/dl.c: Likewise.
26146 * commands/sleep.c: Not include machine/time.h.
26147 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
26148 (COMMON_CFLAGS): Likewise.
26149 (sbin_UTILITIES): Remove grub-emu.
26150 (grub_emu_SOURCES): Removed.
26151 (kernel_img_RELOCATABLE): New variable.
26152 (pkglib_PROGRAMS): Add kernel.img.
26153 (kernel_img_SOURCES): New variable
26154 (kernel_img_CFLAGS): Likewise.
26155 (kernel_img_LDFLAGS): Likewise.
26156 (TARGET_NO_STRIP): Likewise.
26157 (TARGET_NO_DYNAMIC_MODULES): Likewise.
26158 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
26159 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
26160 (grub-emu): New target.
26161 (GRUB_EMU): New variable.
26162 * configure.ac: Whitelist -emu as possible x86_64 architecture.
26163 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
26164 * loader/xnu.c: Likewise.
26165 * include/grub/pci.h: Likewise.
26166 * genemuinit.sh: New file.
26167 * genemuinitheader.sh: Likewise.
26168 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
26169 Support TARGET_NO_DYNAMIC_MODULES.
26170 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
26171 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
26172 * disk/loopback.c: Likewise.
26173 * font/font_cmd.c: Likewise.
26174 * partmap/acorn.c: Likewise.
26175 * partmap/amiga.c: Likewise.
26176 * partmap/apple.c: Likewise.
26177 * partmap/gpt.c: Likewise.
26178 * partmap/msdos.c: Likewise.
26179 * partmap/sun.c: Likewise.
26180 * parttool/msdospart.c: Likewise.
26181 * term/gfxterm.c: Likewise.
26182 * video/bitmap.c: Likewise.
26183 * video/readers/jpeg.c: Likewise.
26184 * video/readers/png.c: Likewise.
26185 * video/readers/tga.c: Likewise.
26186 * video/video.c: Likewise.
26187 * util/grub-emu.c (read_command_list): Removed.
26188 (main): Don't call util_init_nls.
26189 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
26190 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
26191
91fdd2ed
VS
261922010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26193
26194 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
26195 date.mod, datehook.mod.
26196 (datetime_mod_SOURCES): New variable.
26197 (datetime_mod_CFLAGS): Likewise.
26198 (datetime_mod_LDFLAGS): Likewise.
26199 (date_mod_SOURCES): Likewise.
26200 (date_mod_CFLAGS): Likewise.
26201 (date_mod_LDFLAGS): Likewise.
26202 (datehook_mod_SOURCES): Likewise.
26203 (datehook_mod_CFLAGS): Likewise.
26204 (datehook_mod_LDFLAGS): Likewise.
26205 * conf/sparc64-ieee1275.rmk: Likewise.
26206 * lib/ieee1275/datetime.c: New file.
26207
873ccae6
VS
262082010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26209
26210 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
26211 (ieee1275_fb_mod_SOURCES): New variable.
26212 (ieee1275_fb_mod_CFLAGS): Likewise.
26213 (ieee1275_fb_mod_LDFLAGS): Likewise.
26214 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
26215 New proto.
26216 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
26217 (HEAP_MAX_ADDR): Likewise.
26218 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
26219 type.
26220 Correct stop condition.
26221 (grub_ieee1275_devices_iterate): New function.
26222 * video/ieee1275.c: New file.
26223
601c97c0
VS
262242010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26225
26226 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
26227
26228 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
26229 as scratch.
26230 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
26231 SCRATCH_PAD_DISKBOOT as scratch.
26232 (bootit): Pass Openfirmware pointer in %o4.
26233 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
26234 of 0x200000.
26235 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
26236 with util/grub-mkrawimage.c.
26237 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
26238 * include/grub/aout.h (AOUT_MID_SUN): New definition.
26239 (grub_aout_get_type) [GRUB_UTIL]: Removed.
26240 (grub_aout_load) [GRUB_UTIL]: Likewise.
26241 * include/grub/kernel.h (grub_modules_get_end): New proto.
26242 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
26243 (SCRATCH_PAD_BOOT): New definition.
26244 (SCRATCH_PAD_DISKBOOT): Likewise.
26245 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
26246 * include/grub/sparc64/ieee1275/ieee1275.h
26247 (grub_ieee1275_original_stack): New variable
26248 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26249 New definition
26250 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
26251 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
26252 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
26253 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
26254 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
26255 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
26256 (grub_platform_image_format_t): New type.
26257 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
26258 * kern/main.c (grub_modules_get_end)
26259 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
26260 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
26261 (codestart): Switch stacks.
26262 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
26263 variable.
26264 (grub_heap_init): Use grub_modules_get_end.
26265 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
26266 stack.
26267 * util/grub-mkrawimage.c (generate_image): Support sparc64.
26268 (main): Likewise.
26269 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
26270
d68b491e
TG
262712010-03-14 Thorsten Glaser <tg@mirbsd.org>
26272
26273 * util/grub-mkrescue.in: Base ISO UUID on UTC.
26274
4e02ed50
MK
262752010-03-08 Matt Kraai <kraai@ftbfs.org>
26276
26277 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
26278 bug #559005).
26279
1f15fc1e
VS
262802010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
26281
26282 * genmoddep.awk: Output all missing symbols and not only first.
26283
fce5d8ff
VS
262842010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26285
26286 * NEWS: Put the date of 1.98 release.
26287
d1e8a02f
VS
262882010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26289
26290 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
26291 ft2build.h.
26292
696fd607
VS
262932010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26294
26295 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
26296 completition in the middle of string.
26297
33e2e6f3
VS
262982010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26299
26300 * util/grub-mkrescue.in: Use mktemp with explicit template.
26301
b1f6d291
VS
263022010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26303
26304 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
26305
2ac227c7
VS
263062010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26307
26308 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
26309 right pointer.
26310
8f9a632b
VS
263112010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26312
26313 Fix FreeBSD compilation.
26314
26315 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
26316 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
26317
60b03859
VS
263182010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26319
26320 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
26321
48a5a769
VS
263222010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26323
26324 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
26325
3ab4bd77
VS
263262010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26327
26328 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
26329
d116e0d8
RM
263302010-03-04 Robert Millan <rmh.grub@aybabtu.com>
26331
26332 Support relative image path in theme file.
26333
26334 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
26335 (image_set_property): Handle theme_dir and relative path.
26336
c7ef54aa
VS
263372010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26338
26339 * configure.ac: Alias amd64 to x86_64.
26340
fcee14ed
VS
263412010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26342
26343 * NEWS: mention multiboot on EFI.
26344
d0780363
VS
263452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26346
26347 * kern/main.c (grub_load_modules): Handle errors from init functions of
26348 embeded modules.
26349
41168ea4
VS
263502010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26351
26352 * normal/autofs.c (autoload_fs_module): Handle errors.
26353
b54d93ac
VS
263542010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26355
26356 Disable linux.mod on qemu-mips since it's not functional and leads
26357 to compilation failure.
26358
26359 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
26360 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
26361 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
26362 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
26363 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
26364 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
26365 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
26366 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
26367 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
26368 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
26369 Reported by: BVK Chaitanya
26370
fc8345da
JU
263712010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
26372
26373 * INSTALL: Add gettext as a dependency and add qemu to a new section
26374 "Prerequisites for make-check".
26375
4760f979
CF
263762010-03-04 Christian Franke <franke@computer.org>
26377
26378 * util/grub-pe2elf.c: Add missing include "progname.h".
26379
f209b5b2
VS
263802010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26381
26382 * normal/crypto.c (read_crypto_list): Fix a typo.
26383 Reported by: Seth Goldberg.
26384
b4b7be98
VS
263852010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26386
26387 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 26388 Reported by: Seth Goldberg.
b4b7be98 26389
c0ee0385
VS
263902010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26391
26392 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
26393 ascii.bitmaps.
26394
a8efbf64
VS
263952010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26396
26397 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 26398 Reported by: Seth Goldberg.
a8efbf64 26399
08dcd913
VS
264002010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26401
26402 * util/i386/efi/grub-install.in: Copy gettext files.
26403
c4d0b332
VS
264042010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26405
26406 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
26407
c6f2fe52
VS
264082010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26409
26410 Wait for user entry basing on presence of output rather than on errors.
26411
26412 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
26413 (grub_install_newline_hook): Likewise.
26414 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
26415 * normal/menu.c (show_menu): Check line_counter to determine presence
26416 of output.
26417 * normal/term.c (grub_normal_line_counter): New variable.
26418 (grub_normal_get_line_counter): New function.
26419 (grub_install_newline_hook): Likewise.
26420
5382b1e4
VS
264212010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26422
26423 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
26424
5519963b
VS
264252010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26426
26427 * configure.ac: Update version to 1.98.
26428
72b28631
VS
264292010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
26430
26431 * util/grub.d/10_linux.in (linux_entry): Don't default to
26432 gfxpayload=keep if Linux doesn't support video handover.
26433
c140a180
VS
264342010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
26435
26436 Don't compile video modules on yeeloong since video subsystem is part
26437 of kernel.
26438
26439 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
26440 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
26441 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
26442 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
26443 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
26444 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
26445 * include/grub/bitmap_scale.h: Likewise.
26446 * include/grub/bufio.h: Likewise.
26447 * include/grub/font.h: Likewise.
26448 * include/grub/gfxterm.h: Likewise.
26449 * include/grub/video.h: Likewise.
26450 * include/grub/vbe.h: Don't include video_fb.h.
26451 * video/i386/pc/vbe.c: Include video_fb.h.
26452 * commands/i386/pc/vbetest.c: Include video.h.
26453
a0ca21c2
CW
264542010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
26455
26456 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
26457 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
26458 default entry if GRUB_SAVEDEFAULT=true. This allows using
26459 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
26460 saving a new default on every boot.
26461
4a8a763c
VS
264622010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26463
26464 * normal/crypto.c (read_crypto_list): Fix a memory leak.
26465 * normal/term.c (read_terminal_list): Likewise.
26466 * normal/main.c (grub_normal_init_page): Likewise.
26467 (grub_normal_read_line_real): Likewise.
26468
607ffde2
VS
264692010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26470
26471 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
26472 memory leak.
26473 Reported by: Seth Goldberg.
26474
2b8fa975
CW
264752010-02-24 Joey Korkames <joey+lists@kidfixit.com>
26476
26477 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
26478 duplicate declaration of `start'.
26479
618307dd
VS
264802010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26481
26482 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
26483 filename.
26484 Reported by: Georgy Buranov
26485
7dd05b96 264862010-02-20 Carles Pina i Estany <carles@pina.cat>
26487
26488 * util/grub-mkrawimage.c (usage): Change string formatting to
26489 improve gettext.
26490
d1484a42
MRA
264912010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
26492
26493 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
26494 backspace keys.
26495
42b1d186
VS
264962010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26497
26498 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
26499 Reported by: Michael Suchanek.
26500
265012010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
26502
26503 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
26504 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
26505
d9f31a41
VS
265062010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
26507
26508 Remove any reference to non-free fonts.
26509
26510 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
26511 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
26512 uses non-free components.
26513 * font/font.c (grub_font_get_name): Remove example name.
26514 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
26515 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
26516 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
26517 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
26518
2793c71e
GB
265192010-02-16 Georgy Buranov <gburanov@gmail.com>
26520
26521 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
26522
402e3779
VS
265232010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26524
26525 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
26526 Double divisor.
26527 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
26528 features.
26529 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
26530
0dd1e0dd
VS
265312010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26532
26533 * gensymlist.sh.in: Use TARGET_CC instead of CC.
26534
6fa7cfce
ST
265352010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26536
26537 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
26538 * docs/grub.texi (Command-line and menu entry commands): Document play
26539 command.
26540
37c8483b
ST
265412010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26542
26543 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
26544 parse arguments as inline tempo and notes. Move code for playing notes
26545 to...
26546 (play): ... new function.
26547
14da0fb7
ST
265482010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26549
26550 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
26551 grub_uint16_t instead of short.
26552 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
26553 disk from little endian to cpu endianness.
26554
04459e70
ST
265552010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
26556
26557 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
26558 GRUB_TICKS_PER_SECOND instead of 120.
26559
a0876943
VS
265602010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26561
26562 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
26563 escape sequence after \e.
26564
e29f95dc
VS
265652010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26566
26567 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
26568 non-ASCII characters.
26569
d27859b2
VS
265702010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26571
26572 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
26573 set root in single quotes to prevent \, from being unescaped.
26574
bc028f2f
VS
265752010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26576
26577 Prevent unknown commands from stopping menuentry execution.
26578
26579 * script/execute.c (grub_script_execute_cmdline): Print error after
26580 unknown command.
26581
095f5f82
VS
265822010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26583
26584 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
26585 Reported by: Pavel Pisa.
26586
8c717950
VS
265872010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26588
26589 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
26590
904935c3
VS
265912010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26592
26593 Merge grub_ieee1275_map_physical into grub_map and rename to
26594 grub_ieee1275_map
26595
26596 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
26597 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
26598 Remove.
26599 * kern/ieee1275/openfw.c (grub_map): Rename to ...
26600 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
26601 necessary.
26602 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
26603
5b59a4e3
VS
266042010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26605
26606 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
26607 opening and not after.
26608
69e137e8
VS
266092010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26610
26611 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
26612 constants.
26613
2c0fcc36
VS
266142010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26615
26616 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
26617 (alloc_phys): Use ALIGN_UP instead of align_addr.
26618
8c6052ce
VS
266192010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26620
26621 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
26622
17cec782
VS
266232010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26624
26625 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
26626
e0128bbd
VS
266272010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26628
26629 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
26630 verbose dprintf.
26631
ca62070b
VS
266322010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26633
26634 Fix over-4GiB seek on sparc64.
26635
26636 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
26637 Replace pos_i and pos_lo with pos. All users updated.
26638 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
26639 New constant.
26640 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
26641 Likewise.
26642 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
26643 and pos_lo.
26644
bdca2607
VS
266452010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26646
26647 * util/grub-mkrawimage.c (main): Call set_program_name.
26648
da278c4d
VS
266492010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26650
26651 Properly align 64-bit targets.
26652
26653 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
26654 (generate_image): Use ALIGN_ADDR.
26655
b274d734
VS
266562010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26657
26658 Properly create cross-endian images.
26659
26660 * include/grub/types.h (grub_host_to_target_addr): New macro
26661 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
26662
82da2062
VS
266632010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26664
26665 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
26666
7cae4377
VS
266672010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26668
26669 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
26670
26671 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
26672 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
26673 (grub_linux_boot): Divide by 64K when on VESA.
26674
65a533e7
VS
266752010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26676
26677 Support GRUB_GFXPAYLOAD_LINUX.
26678
26679 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
26680 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
26681
dd01d397
VS
266822010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26683
26684 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
26685 to show messages instead of discarding them.
26686 Process errors after executing command and not before. Keep old method
26687 too as precaution.
26688
660960d6
VS
266892010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
26690
26691 * configure.ac: Check for ft2build.h.
26692
62509f04
VS
266932010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26694
26695 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
26696
473df63d
VS
266972010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26698
26699 * genkernsyms.sh.in: Use TARGET_CC.
26700
c98d2a13
CW
267012010-02-07 Colin Watson <cjwatson@ubuntu.com>
26702
26703 * NEWS: Update.
26704
6e14234c
VS
267052010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26706
26707 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
26708 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
26709 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 26710
b255e9cf
YB
267112010-02-07 Yves Blusseau <blusseau@zetam.org>
26712
6e14234c 26713 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 26714
98e6959d
VS
267152010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26716
26717 Fix warnings in grub-emu when compiling with maximum warning options.
26718
26719 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
26720 (grub_arch_modules_addr): Return 0 and not NULL.
26721 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 26722 (xstrdup): Use newstr instead of dup.
f88d801b
VS
26723 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
26724 of disk to dsk to avoid shadowing.
74e4934e
VS
26725 (find_free_slot): Fix prototype.
26726 * util/getroot.c (grub_util_is_dmraid): Make static.
26727 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
26728 Add missing prototype.
26729 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 26730
74e31b5c
VS
267312010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26732
26733 * loader/i386/linux.c (grub_linux_setup_video): Handle error
26734 appropriately.
26735
6b2ad14b
VS
267362010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26737
26738 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
26739 code out.
26740
8f891adc
VS
267412010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26742
26743 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
26744 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
26745 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
26746 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
26747 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
26748 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
26749
74b45184
VS
267502010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26751
26752 * include/grub/err.h (grub_err_printf): Don't export.
26753
a4bced77
VS
267542010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26755
26756 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
26757
007d0695
VS
267582010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26759
26760 * include/grub/i18n.h (grub_gettext_dummy): Removed.
26761 * kern/misc.c (grub_gettext_dummy): Make static.
26762
b6c0d9c2
VS
267632010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26764
26765 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
26766 by non-valid ones.
26767 * kern/term.c (grub_putchar): Likewise.
26768
f51a90d0
VS
267692010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26770
26771 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
26772 buggy hook call and memory leak.
26773
6846cec5
VS
267742010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26775
26776 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
26777
468d69fe
VS
267782010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26779
26780 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
26781
51906b8c
VS
267822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26783
26784 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
26785 modevar.
26786 Return grub_errno on allocation error.
26787
09706ce5
VS
267882010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26789
26790 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
26791
911df80c
YB
267922010-02-06 Yves Blusseau <blusseau@zetam.org>
26793
26794 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
26795 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
26796
3746a6bc
VS
267972010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26798
26799 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
26800 non-pxe disk.
26801 (grub_pxefs_open): Likewise.
26802
09706ce5
VS
268032010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26804
26805 * util/grub.d/10_hurd.in: Add --class information to menuentries.
26806 * util/grub.d/10_kfreebsd.in: Likewise.
26807 * util/grub.d/10_linux.in: Likewise.
26808
7cc192d9
VS
268092010-02-06 Colin D Bennett <colin@gibibit.com>
26810
26811 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
26812 (gfxmenu_mod_SOURCES): New variable.
26813 (gfxmenu_mod_CFLAGS): Likewise.
26814 (gfxmenu_mod_LDFLAGS): Likewise.
26815 * include/grub/term.h (grub_term_set_current_output): Declare
26816 argument as const.
26817 * docs/gfxmenu-theme-example.txt: New file.
26818 * gfxmenu/gfxmenu.c: Likewise.
26819 * gfxmenu/gui_box.c: Likewise.
26820 * gfxmenu/gui_canvas.c: Likewise.
26821 * gfxmenu/gui_circular_progress.c: Likewise.
26822 * gfxmenu/gui_image.c: Likewise.
26823 * gfxmenu/gui_label.c: Likewise.
26824 * gfxmenu/gui_list.c: Likewise.
26825 * gfxmenu/gui_progress_bar.c: Likewise.
26826 * gfxmenu/gui_string_util.c: Likewise.
26827 * gfxmenu/gui_util.c: Likewise.
26828 * gfxmenu/icon_manager.c: Likewise.
26829 * gfxmenu/model.c: Likewise.
26830 * gfxmenu/named_colors.c: Likewise.
26831 * gfxmenu/theme_loader.c: Likewise.
26832 * gfxmenu/view.c: Likewise.
26833 * gfxmenu/widget-box.c: Likewise.
26834 * include/grub/gfxmenu_model.h: Likewise.
26835 * include/grub/gfxmenu_view.h: Likewise.
26836 * include/grub/gfxwidgets.h: Likewise.
26837 * include/grub/gui.h: Likewise.
26838 * include/grub/gui_string_util.h: Likewise.
26839 * include/grub/icon_manager.h: Likewise.
26840
268412010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26842
26843 Agglomerate scrolling in gfxterm.
26844
26845 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
26846 (grub_virtual_screen_setup): Initialise 'total_screen'.
26847 (write_char): Split to ...
26848 (paint_char): ... this ...
26849 (write_char): ... and this.
26850 (paint_char): Handle delayed scrolling.
26851 (draw_cursor): Likewise.
26852 (scroll_up): Split to ...
26853 (real_scroll): ... this ...
26854 (scroll_up): ... and this.
26855 (real_scroll): Handle multi-line scroll and draw below-the-bottom
26856 characters.
26857 (grub_gfxterm_refresh): Call real_scroll.
26858
268592010-02-06 Colin D Bennett <colin@gibibit.com>
26860
26861 * include/grub/misc.h (grub_iscntrl): New inline function.
26862 (grub_isalnum): Likewise.
26863 (grub_strtol): Likewise.
26864
268652010-02-06 Colin D Bennett <colin@gibibit.com>
26866
26867 * normal/menu_text.c (get_entry_number): Move from here ...
26868 * normal/menu.c (get_entry_number): ... moved here.
26869 * include/grub/menu.h (grub_menu_get_default_entry_index):
26870 New prototype.
26871 * normal/menu.c (grub_menu_get_default_entry_index): New function.
26872 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
26873 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
26874 (grub_menu_viewer_should_return): Likewise.
26875 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
26876 * normal/menu_text.c (run_menu): Enable menu switching.
26877 * normal/menu_viewer.c (should_return): New variable.
26878 (menu_viewer_changed): Likewise.
26879 (grub_menu_viewer_show_menu): Handle menu viewer changes.
26880 (grub_menu_viewer_should_return): New function.
26881 (menuviewer_write_hook): Likewise.
26882 (grub_menu_viewer_init): Likewise.
26883
268842010-02-06 Colin D Bennet <colin@gibibit.com>
268852010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26886
26887 Support for gfxterm in a window.
26888
26889 * include/grub/gfxterm.h: New file.
26890 * include/grub/video.h (struct grub_video_rect): New declaration.
26891 (grub_video_rect_t): Likewise.
26892 * term/gfxterm.c (struct grub_gfxterm_window): New type.
26893 (refcount): New variable.
26894 (render_target): Likewise.
26895 (window): Likewise.
26896 (repaint_callback): Likewise.
26897 (grub_virtual_screen_setup): Use 'render_target'.
26898 (init_window): New function.
26899 (grub_gfxterm_init_window): Likewise.
26900 (grub_gfxterm_init): Check reference counter.
26901 Use init_window.
26902 (destroy_window): New function.
26903 (grub_gfxterm_destroy_window): Likewise.
26904 (grub_gfxterm_fini): Check reference counter.
26905 Use destroy_window.
26906 (redraw_screen_rect): Restore viewport.
26907 Use 'render_target' and 'window'.
26908 Call 'repaint_callback'.
26909 (write_char): Use 'render_target'.
26910 (draw_cursor): Likewise.
26911 (scroll_up): Restore viewport.
26912 Use 'render_target' and 'window'.
26913 Call 'repaint_callback'.
26914 (grub_gfxterm_cls): Likewise.
26915 (grub_gfxterm_refresh): Use 'window'.
26916 (grub_gfxterm_set_repaint_callback): New function.
26917 (grub_gfxterm_background_image_cmd): Use 'window'.
26918 (grub_gfxterm_get_term): New function.
26919 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
26920
269212010-02-06 Colin D Bennett <colin@gibibit.com>
26922
26923 Bitmap scaling support.
26924
26925 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
26926 (bitmap_scale_mod_SOURCES): New variable.
26927 (bitmap_scale_mod_CFLAGS): Likewise.
26928 (bitmap_scale_mod_LDFLAGS): Likewise.
26929 * include/grub/bitmap_scale.h: New file.
26930 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
26931 (background_image_cmd_options): New variable.
26932 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
26933 (cmd): Rename and change type to ...
26934 (background_image_cmd_handle): ... this. All users updated.
26935 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
26936 * video/bitmap_scale.c: New file.
26937
269382010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26939
26940 SDL support.
26941
26942 * Makefile.in (LIBSDL): New variable.
26943 (enable_grub_emu_sdl): Likewise.
26944 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
26945 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
26946 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
26947 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
26948 * util/sdl.c: New file.
26949
269502010-02-06 Colin D Bennett <colin@gibibit.com>
269512010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26952
26953 Double buffering support.
26954
26955 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
26956 * include/grub/video.h: Update comment.
26957 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
26958 New type.
26959 (grub_video_fb_doublebuf_blit_init): New prototype.
26960 * term/gfxterm.c (scroll_up): Support double buffering.
26961 (grub_gfxterm_refresh): Likewise.
26962 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
26963 (grub_video_fb_doublebuf_blit_init): Likewise.
26964 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
26965 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
26966 'displayed_page', 'render_page' and 'update_screen'.
26967 (grub_video_vbe_fini): Free offscreen buffer.
26968 (doublebuf_pageflipping_commit): New function.
26969 (doublebuf_pageflipping_update_screen): Likewise.
26970 (doublebuf_pageflipping_init): Likewise.
26971 (double_buffering_init): Likewise.
26972 (grub_video_vbe_setup): Enable doublebuffering.
26973 (grub_video_vbe_swap_buffers): Implement.
26974 (grub_video_vbe_set_active_render_target): Handle double buffering.
26975 (grub_video_vbe_get_active_render_target): Likewise.
26976 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
26977 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
26978 (grub_video_vbe_enable_double_buffering): Likewise.
26979 (grub_video_vbe_swap_buffers): Use update_screen.
26980 (grub_video_set_mode): Use double buffering.
26981
269822010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26983
26984 * maintainance/gentrigtables.py: Remove.
26985 * lib/trig.c: Likewise.
26986
26987 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
26988
26989 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
26990 `trigtables.c'.
26991 (trigtables.c): New rule.
26992 (gentrigtables): Likewise.
26993 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
26994
269952010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26996
26997 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
26998 integer constants.
26999
270002010-02-06 Colin D Bennet <colin@gibibit.com>
27001
27002 Trigonometry support.
27003
27004 * include/grub/trig.h: New file.
27005 * lib/trig.c: Likewise.
27006 * maintainance/gentrigtables.py: Likewise.
27007 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
27008 (trig_mod_SOURCES): New variable.
27009 (trig_mod_CFLAGS): Likewise.
27010 (trig_mod_LDFLAGS): Likewise.
27011
5562834e
VS
270122010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27013
27014 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
27015 disk devices.
27016
4f8528fc
VS
270172010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27018
27019 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
27020 error.
27021
2b4068e9
VS
270222010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27023
27024 * util/hostdisk.c (open_device): Don't use partition device when reading
27025 before the partition.
27026 (grub_util_biosdisk_read): Don't read from partition and before the
27027 partition in single operation.
27028 (grub_util_biosdisk_write): Don't write to partition and before the
27029 partition in single operation.
27030
399f6e4d
TL
270312010-02-03 Torsten Landschoff <torsten@debian.org>
27032
27033 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27034 last sectors.
27035
996649b0
VS
270362010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27037
27038 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
27039 CDROM reads.
27040 (grub_biosdisk_write): Refuse to write to CDROM.
27041
3b205d4d
VS
270422010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27043
27044 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
27045
61e89d9d
VS
270462010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27047
27048 * font/font.c (find_glyph): Check that bmp_idx is available before
27049 using it.
27050 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
27051 with (font == NULL).
27052
bf7fcba2
CS
270532010-01-28 Christian Schmitt <chris@ilovelinux.de>
27054
27055 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
27056
f45d2663
BC
270572010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
27058
27059 * include/grub/script_sh.h (sourcecode): Add const qualifier.
27060 * util/grub-script-check.c (getline): Fix empty lines case.
27061
ec1444e6
RM
270622010-01-28 Robert Millan <rmh.grub@aybabtu.com>
27063
27064 * Makefile.in (check): Exit with fail status when one of the tests
27065 fails.
27066 * tests/example_functional_test.c (example_test): Fix reversed assert.
27067 * tests/example_unit_test.c (example_test): Likewise.
27068
2e1cb9bb
CW
270692010-01-28 Colin Watson <cjwatson@ubuntu.com>
27070
27071 * util/grub.d/10_linux.in: This script does not use any of the
27072 contents of gettext.sh, only the external command `gettext', so stop
27073 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
27074 the same prefix as GRUB.)
27075 * util/grub.d/10_kfreebsd.in: Likewise.
27076
63533ab0
VS
270772010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27078
27079 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
27080 of the line.
27081
989e1f93
VS
270822010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27083
27084 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27085 last sectors.
27086
e709ebe2
VS
270872010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27088
27089 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
27090 having a 4KiB and not 32KiB buffer size.
27091
27dea7ed
RM
270922010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27093
27094 * util/hostfs.c: Include `<errno.h>'.
27095 (grub_hostfs_read): Handle errors from fseeko() and fread().
27096
67667b9c
RM
270972010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27098
27099 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
27100 loop when using read hooks on files whose size isn't sector-aligned.
27101
c294d9d8
RM
271022010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27103
27104 Remove unused parameter.
27105
27106 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
27107 (grub_iso9660_open): Remove initialization of `data->length'.
27108
af75a9f1
RM
271092010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27110
27111 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
27112 memleak conditions.
27113
254e2ce5 271142010-01-27 Carles Pina i Estany <carles@pina.cat>
27115
27116 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
27117 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
27118
b510928c 271192010-01-26 Carles Pina i Estany <carles@pina.cat>
27120
27121 * util/bin2h.c (usage): Fix warning (space after backslash).
27122
aa2f9dd2 271232010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 27124
27125 * font/font.c: Include `grub/fontformat.h.
27126 Remove font file format constants.
27127 (grub_font_load): Use the new macros.
27128 * include/grub/fontformat.h: New file.
27129 * util/grub-mkfont.c: Include `grub/fontformat.c'.
27130 (write_font_pf2): Use the new macros.
27131
94e7e712
RM
271322010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27133
27134 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
27135 does.
27136
3973a59a
RM
271372010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27138
27139 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
27140
27141 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
27142 (_start): Macroify `0x7F'.
27143
27144 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
27145 (make_install_device): Use "(pxe)" as fallback prefix when booting
27146 via PXE.
27147
42e0cba3
GS
271482010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
27149
27150 * configure.ac: Reset LIBS after check for libgcc symbols.
27151
847effd8
CW
271522010-01-25 Colin Watson <cjwatson@ubuntu.com>
27153
27154 * util/hostdisk.c (open_device): Add trailing newline to debug
27155 message.
27156
ea4a7e35
GS
271572010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
27158
27159 * configure.ac: Check for `limits.h'.
27160 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
27161
67951a53
RM
271622010-01-24 Robert Millan <rmh.grub@aybabtu.com>
27163
27164 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
27165 capitalize error strings.
27166
c273d4ce
ST
271672010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27168
27169 * util/grub.d/10_hurd.in: Add a recovery mode.
27170
69be5b74
VS
271712010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
27172
27173 * configure.ac: Check for libgcc symbols with -nostdlib.
27174
fc9e5810
BC
271752010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
27176
27177 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
27178
4b358c0a
VS
271792010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27180
27181 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
27182 stack since heap may be unavailable at that point.
27183 (grub_ofconsole_gotoxy): Likewise.
27184
454fcd1c
VS
271852010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27186
27187 * configure.ac: Check for _restgpr_14_x.
27188 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
27189 and _savegpr_* prototypes.
27190
566863ca
RM
271912010-01-22 Robert Millan <rmh.grub@aybabtu.com>
27192
27193 Use generic grub_reboot() for i386-efi.
27194
27195 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
27196 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
27197 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
27198
bf86e59a
VS
271992010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27200
27201 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
27202 presence of "prefix" variable as it breaks when normal.mod is
27203 embedded.
27204
d645e0f8
VS
272052010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27206
27207 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
27208 stack since heap is unavailable at that point.
27209
f9ab2e25
VS
272102010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27211
27212 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
27213 (grub_freebsd_bootinfo): Rewritten.
27214 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
27215
01fc7054
VS
272162010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27217
27218 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
27219
caab4fd6
RM
272202010-01-21 Robert Millan <rmh.grub@aybabtu.com>
27221
27222 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
27223 domain now.
27224
67eb1427
FZ
272252010-01-20 Felix Zielcke <fzielcke@z-51.de>
27226
27227 * util/misc.c (make_system_path_relative_to_its_root): Change the work
27228 around for handling "/" to the correct fix. Fix a memory leak. Use
27229 xstrdup instead of strdup.
27230
a9ed4ff3
VS
272312010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27232
27233 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
27234
272352010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
27236
27237 Optimise glyph lookup by Basic Multilingual Plane lookup array.
27238
27239 * font/font.c (struct grub_font): New member 'bmp_idx'.
27240 (font_init): Initialise 'bmp_idx'.
27241 (load_font_index): Fill 'bmp_idx'.
27242 (find_glyph): Make inline. Use bmp_idx for BMP characters.
27243
48209f4f
VS
272442010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27245
27246 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
27247 unnecessary calls.
27248
9f0a4bb7
VS
272492010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27250
27251 Move context handling out of the kernel.
27252
27253 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
27254 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
27255 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
27256 * conf/i386-efi.rmk: Likewise.
27257 * conf/i386-ieee1275.rmk: Likewise.
27258 * conf/i386-pc.rmk: Likewise.
27259 * conf/powerpc-ieee1275.rmk: Likewise.
27260 * conf/sparc64-ieee1275.rmk: Likewise.
27261 * conf/x86_64-efi.rmk: Likewise.
27262 * include/grub/env.h: Include grub/menu.h.
27263 (grub_env_var_type): Removed.
27264 (grub_env_var): Replaced field 'type' with 'global'.
27265 (grub_env_find): New prototype.
27266 (grub_env_context_open): Remove EXPORT_FUNC.
27267 (grub_env_context_close): Likewise.
27268 (grub_env_export): Likewise.
27269 (grub_env_set_data_slot): Removed.
27270 (grub_env_get_data_slot): Likewise.
27271 (grub_env_unset_data_slot): Likewise.
27272 (grub_env_unset_menu): New prototype.
27273 (grub_env_set_menu): Likewise.
27274 (grub_env_get_menu): Likewise.
27275 * include/grub/env_private.h: New file.
27276 * include/grub/normal.h (grub_context_init): New prototype.
27277 (grub_context_fini): Likewise.
27278 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
27279 * normal/context.c (grub_cmd_export): ... to here.
27280 * kern/env.c: Include env_private.h.
27281 (HASHSZ): Moved to include/grub/env_private.h.
27282 (grub_env_context): Likewise.
27283 (grub_env_sorted_var): Likewise.
27284 (current_context): Renamed from this ...
27285 (grub_current_context): ...to this. 'static' removed. All users updated.
27286 (grub_env_find): Removed 'static'.
27287 (grub_env_context_open): Moved to normal/context.c.
27288 (grub_env_context_close): Likewise.
27289 (grub_env_export): Likewise.
27290 (mangle_data_slot_name): Removed.
27291 (grub_env_set_data_slot): Likewise.
27292 (grub_env_get_data_slot): Likewise.
27293 (grub_env_unset_data_slot): Likewise.
27294 * kern/main.c (grub_set_root_dev): Don't export root.
27295 It will be done later.
27296 (grub_main): Don't export prefix.
27297 It will be done later.
27298 * normal/context.c: New file.
27299 * normal/main.c (free_menu): Use grub_env_unset_menu.
27300 (grub_normal_add_menu_entry): Use grub_env_get_menu.
27301 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
27302 (GRUB_MOD_INIT(normal)): Call grub_context_init.
27303 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
27304
8dd35b8c
VS
273052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27306
27307 setpci support.
27308
27309 * commands/setpci.c: New file.
27310 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
27311 (setpci_mod_SOURCES): New variable.
27312 (setpci_mod_CFLAGS): Likewise.
27313 (setpci_mod_LDFLAGS): Likewise.
27314
449193d5
VS
273152010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27316
27317 Byte-addressable PCI configuration space.
27318
27319 * bus/pci.c (grub_pci_make_address): Use byte address instead of
27320 dword address.
27321 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
27322 GRUB_PCI_REG_CACHELINE.
27323 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
27324 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
27325 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
27326 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
27327 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
27328 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
27329 grub_pci_make_address.
27330 (lock_rom_area): Likewise.
27331 * commands/lspci.c (grub_lspci_iter): Use macroses
27332 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
27333 of grub_pci_make_address.
27334 * disk/ata.c (grub_ata_pciinit): Likewise.
27335 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
27336 (GRUB_PCI_REG_VENDOR): Likewise.
27337 (GRUB_PCI_REG_DEVICE): Likewise.
27338 (GRUB_PCI_REG_COMMAND): Likewise.
27339 (GRUB_PCI_REG_STATUS): Likewise.
27340 (GRUB_PCI_REG_REVISION): Likewise.
27341 (GRUB_PCI_REG_CLASS): Likewise.
27342 (GRUB_PCI_REG_CACHELINE): Likewise.
27343 (GRUB_PCI_REG_LAT_TIMER): Likewise.
27344 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
27345 (GRUB_PCI_REG_BIST): Likewise.
27346 (GRUB_PCI_REG_ADDRESSES): Likewise.
27347 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27348 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27349 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27350 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27351 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27352 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27353 (GRUB_PCI_REG_CIS_POINTER): Likewise.
27354 (GRUB_PCI_REG_SUBVENDOR): Likewise.
27355 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
27356 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
27357 (GRUB_PCI_REG_CAP_POINTER): Likewise.
27358 (GRUB_PCI_REG_IRQ_LINE): Likewise.
27359 (GRUB_PCI_REG_IRQ_PIN): Likewise.
27360 (GRUB_PCI_REG_MIN_GNT): Likewise.
27361 (GRUB_PCI_REG_MAX_LAT): Likewise.
27362 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
27363 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
27364 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 27365 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
27366 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
27367 space.
27368
96d73208
RM
273692010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27370
27371 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
27372 can be reliably determined to be supported.
27373
d4484482
RM
273742010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27375
27376 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
27377 that VESA is supported.
27378 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
27379 supported.
27380
00308ecf
VS
273812010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27382
27383 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
27384
f66924a4
RM
273852010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27386
27387 * util/misc.c (make_system_path_relative_to_its_root): Work around
27388 special-casing of "/", as previous incarnation of this routine did.
27389
cbca0ada
VS
273902010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27391
27392 Fix any-emu compilation.
27393
27394 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
27395 * grub_bin2h_SOURCES: New variable.
27396
34a66d99
RM
273972010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27398
27399 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
27400
94fabf58
RM
274012010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27402
27403 * util/grub.d/00_header.in: Fix handling of locale_dir.
27404
02cf98ca
VS
274052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27406
27407 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
27408 as possible unifont location (Gentoo).
27409 Reported by: Alexander Brüning
27410
327dbcd7
VS
274112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27412
27413 Don't try to generate lists for kernel.img.
27414
27415 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
27416 (pkglib_MODULES): Remove kernel.img.
27417 (kernel_img_EXPORTS): Removed.
27418 (kernel_img_RELOCATABLE): New variable.
27419 * conf/x86_64-efi.rmk: Likewise.
27420 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
27421
ca467290
VS
274222010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27423
27424 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
27425 grub_xasprintf or grub_snprintf.
27426 (grub_vsprintf): Likewise.
27427 (grub_snprintf): New proto.
27428 (grub_vsnprintf): Likewise.
27429 (grub_xasprintf): Likewise.
27430 (grub_xvasprintf): Likewise.
27431 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
27432 (grub_sprintf): Removed.
27433 (grub_vsnprintf): New function.
27434 (grub_snprintf): Likewise.
27435 (grub_xvasprintf): Likewise.
27436 (grub_xasprintf): Likewise.
27437 (grub_vsprintf): Renamed to ...
27438 (grub_vsnprintf_real): ...this. New argument max_len.
27439
aca655fd
BC
274402010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
27441
27442 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
27443 fix grub-script-check warning.
27444
7ee92c32
VS
274452010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27446
27447 * include/grub/font.h (grub_font_load): Fix prototype.
27448
f80927ca
VS
274492010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27450
27451 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
27452
119c50ea
VS
274532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27454
27455 * include/grub/x86_64/at_keyboard.h: New file.
27456
47d5f3c1
VS
274572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27458
27459 * loader/mips/linux.c: Include missing grub/i18n.h.
27460
55ff5266
RM
274612009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27462
27463 * normal/menu.c (notify_execution_failure): Clarify error message.
27464
c893cc87
RM
274652009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27466
27467 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
27468 return value (and revert all return statements). Update users.
27469
917dd370
CW
274702010-01-20 Dan Merillat <debian@dan.merillat.org>
27471
27472 * kern/device.c (grub_device_iterate): Allocate new part_ent
27473 structure based on sizeof (*p) rather than sizeof (p->next), to
27474 account for structure padding.
27475
27476 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
27477 disk is NULL, which might happen for LVM physical volumes with no
27478 LVM signature.
27479
d4a4ee57
RM
274802009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27481
27482 * loader/mips/linux.c (grub_cmd_initrd)
27483 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
27484
274852009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27486
27487 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
27488 (grub_video_video_init, grub_video_bitmap_init)
27489 (grub_font_manager_init, grub_term_gfxterm_init)
27490 (grub_at_keyboard_init): New extern declarations.
27491 (grub_machine_init): Initialize gfxterm and at_keyboard.
27492
27493 * kern/main.c (grub_main): Revert grub_printf delay kludge.
27494
27495 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
27496 `gfxterm.mod' into core image.
27497
27498 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27499 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27500 (kernel_img_FORMAT): Copy to ...
27501
27502 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27503 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27504 (kernel_img_FORMAT): ... here, and ...
27505
27506 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27507 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27508 (kernel_img_FORMAT): ... here.
27509
27510 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
27511 and input (at_keyboard) terminals in kernel.
27512 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
27513
27514 (pkglib_MODULES): Remove `pci.mod'.
27515 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
27516 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
27517 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27518 (at_keyboard_mod_LDFLAGS): Remove variables.
27519
275202010-01-11 Felix Zielcke <fzielcke@z-51.de>
27521
27522 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
27523
275242009-12-10 Robert Millan <rmh.grub@aybabtu.com>
27525
27526 * include/grub/mips/libgcc.h: Only export symbols for functions
27527 that libgcc provides.
27528
275292009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
27530
27531 MIPS support.
27532
27533 * bus/bonito.c: New file.
27534 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
27535 GRUB_PCI_NUM_DEVICES.
27536 * term/i386/pc/serial.c: Move to ...
27537 * term/serial.c: ... here. All users updated.
27538 * util/i386/pc/grub-mkimage.c: Move to ...
27539 * util/grub-mkrawimage.c: ... here. All users updated.
27540 * term/i386/pc/at_keyboard.c: Move to ...
27541 * term/at_keyboard.c: ... here. All users updated.
27542 * conf/mips-qemu-mips.rmk: New file.
27543 * conf/mips-yeeloong.rmk: Likewise.
27544 * conf/mips.rmk: Likewise.
27545 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
27546 mipsel-qemu-mips.
27547 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
27548 to port addresses.
27549 (grub_ata_pciinit): Support CS5536.
27550 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
27551 * font/font_cmd.c (loadfont_command): Open file before passing it to
27552 grub_font_load.
27553 (pseudo_file_read): New function.
27554 (pseudo_file_close): Likewise.
27555 (pseudo_fs): New structure.
27556 (load_font_module): New function.
27557 (GRUB_MOD_INIT(font_manager)): Load embedded font.
27558 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
27559 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
27560 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
27561 * include/grub/i386/at_keyboard.h: Split into ...
27562 * include/grub/at_keyboard.h: ... this ...
27563 * include/grub/i386/at_keyboard.h: ... and this.
27564 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
27565 New prototype.
27566 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
27567 updated.
27568 (grub_elf64_size): Likewise.
27569 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
27570 filename.
27571 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
27572 * include/grub/i386/coreboot/serial.h: Rewritten.
27573 * include/grub/i386/ieee1275/serial.h: Include
27574 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
27575 * include/grub/i386/pc/serial.h: Moved from here ...
27576 * include/grub/serial.h: ... to here. All users updated.
27577 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
27578 (GRUB_PCI_NUM_BUS): Likewise.
27579 (GRUB_PCI_NUM_DEVICES): Likewise.
27580 (grub_pci_device_map_range): Add missing volatile keyword.
27581 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
27582 * include/grub/mips/at_keyboard.h: New file.
27583 * include/grub/mips/cache.h: Likewise.
27584 * include/grub/mips/io.h: Likewise.
27585 * include/grub/mips/kernel.h: Likewise.
27586 * include/grub/mips/libgcc.h: Likewise.
27587 * include/grub/mips/pci.h: Likewise.
27588 * include/grub/mips/qemu-mips/boot.h: Likewise.
27589 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27590 * include/grub/mips/qemu-mips/loader.h: Likewise.
27591 * include/grub/mips/qemu-mips/memory.h: Likewise.
27592 * include/grub/mips/qemu-mips/serial.h: Likewise.
27593 * include/grub/mips/qemu-mips/time.h: Likewise.
27594 * include/grub/mips/relocator.h: Likewise.
27595 * include/grub/mips/time.h: Likewise.
27596 * include/grub/mips/types.h: Likewise.
27597 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
27598 * include/grub/mips/yeeloong/boot.h: Likewise.
27599 * include/grub/mips/yeeloong/kernel.h: Likewise.
27600 * include/grub/mips/yeeloong/loader.h: Likewise.
27601 * include/grub/mips/yeeloong/memory.h: Likewise.
27602 * include/grub/mips/yeeloong/pci.h: Likewise.
27603 * include/grub/mips/yeeloong/serial.h: Likewise.
27604 * include/grub/mips/yeeloong/time.h: Likewise.
27605 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
27606 * kern/elf.c (grub_elf32_size): New parameter. All users
27607 updated.
27608 (grub_elf64_size): Likewise.
27609 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
27610 Load modules before saying "Welcome to GRUB!".
27611 Call grub_refresh after saying "Welcome to GRUB!".
27612 * kern/mips/cache.S: New file.
27613 * kern/mips/cache_flush.S: Likewise.
27614 * kern/mips/dl.c: Likewise.
27615 * kern/mips/init.c: Likewise.
27616 * kern/mips/qemu-mips/init.c: Likewise.
27617 * kern/mips/startup.S: Likewise.
27618 * kern/mips/yeeloong/init.c: Likewise.
27619 * kern/term.c (grub_putcode): Handle NULL terminal.
27620 (grub_getcharwidth): Likewise.
27621 (grub_getkey): Likewise.
27622 (grub_checkkey): Likewise.
27623 (grub_getkeystatus): Likewise.
27624 (grub_getxy): Likewise.
27625 (grub_getwh): Likewise.
27626 (grub_gotoxy): Likewise.
27627 (grub_cls): Likewise.
27628 (grub_setcolorstate): Likewise.
27629 (grub_setcolor): Likewise.
27630 (grub_getcolor): Likewise.
27631 (grub_refresh): Likewise.
27632 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
27633 (write_jump): Add hatch nop.
27634 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
27635 * lib/mips/setjmp.S: New file.
27636 * loader/mips/linux.c: Likewise.
27637 * term/i386/pc/at_keyboard.c: Move from here ...
27638 * term/at_keyboard.c: ... to here.
27639 * term/i386/pc/serial.c: Moved from here ...
27640 * term/serial.c: ... to here. All users updated.
27641 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
27642 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
27643 (serial_translate_key_sequence): Avoid deadlock.
27644 (grub_serial_getkey): Handle backspace.
27645 (grub_serial_putchar): Fix newline handling.
27646 * util/i386/pc/grub-mkimage.c: Move from here ...
27647 * util/grub-mkrawimage.c: ... to here. All users updated.
27648 (generate_image): New parameters 'font_path' and 'format'.
27649 Support embedding font.
27650 Use grub_host_to_target* instead of grub_cpu_to_le*.
27651 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
27652 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
27653 (options): New option "--font".
27654 (usage): Likewise.
27655 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
27656 (main): Handle "--font".
27657 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
27658 (grub_virtual_screen_setup): Set bg_color_display.
27659 (redraw_screen_rect): Use bg_color_display instead of incorrect
27660 bg_color.
27661 (grub_gfxterm_cls): Likewise.
27662 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
27663 Support embedding config file.
27664 (add_segments): Likewise.
27665 (options): New option "--config".
27666 (main): Handle "--config".
27667 * video/sm712.c: New file.
27668
25c2b5b3
RM
276692010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27670
27671 Fix parallel builds.
27672
27673 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
27674 font.c depend on ascii.h).
27675
276762010-01-12 Carles Pina i Estany <carles@pina.cat>
27677
27678 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
27679
276802010-01-11 Carles Pina i Estany <carles@pina.cat>
27681
27682 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
27683 By default: disabled.
27684 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
27685 parameter.
27686
276872010-01-10 Carles Pina i Estany <carles@pina.cat>
27688
27689 * font/font.c: Update copyright years.
27690 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
27691
276922010-01-10 Carles Pina i Estany <carles@pina.cat>
27693
27694 * font/font.c: Include `ascii.h'.
27695 (ASCII_BITMAP_SIZE): New macro.
27696 (ascii_font_glyph): Define.
27697 (ascii_glyph_lookup): New function.
27698 (grub_font_get_string_width): Change comment. If glyph not found, use
27699 ascii_glyph_lookup.
27700 (grub_font_get_glyph_with_fallback): If glyph not available returns
27701 ascii_glyph_lookup.
27702 * util/grub-mkfont.c (file_formats): New enum.
27703 (options): Add `ascii-bitmaps' new option.
27704 (usage): Add `asii-bitmaps' new option.
27705 (write_font_ascii_bitmap): New function.
27706 (write_font): Rename to ...
27707 (write_font_p2): ... this. Remove print_glyphs call.
27708 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
27709 used. Call print_glyphs.
27710 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
27711
277122010-01-14 Robert Millan <rmh.grub@aybabtu.com>
27713
27714 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
27715 (grub_bin2h_SOURCES): New variable.
27716 * util/bin2h.c: New file.
27717
915fc1b8
VS
277182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27719
27720 * include/multiboot.h: Resynced with spec.
27721 * include/multiboot2.h: Likewise.
27722 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
27723 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
27724
9444b678
RM
277252010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27726
27727 * include/grub/term.h (grub_term_register_input,
27728 grub_term_register_output): Check return of terminal init()
27729 routines, and abort if errors are raised.
27730
27731 * commands/terminal.c: Update copyright year.
27732
cba98e8d
RM
277332010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27734
27735 * commands/terminal.c (grub_cmd_terminal_input)
27736 (grub_cmd_terminal_output): Check return of terminal init()
27737 routines, and abort if errors are raised.
27738
6f7db5d6
VS
277392010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
27740
27741 * include/grub/i386/bsd.h: Fix include pathes.
27742
262bff8d
VS
277432010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
27744
27745 Add missing *BSD copyright headers.
27746
27747 * include/grub/aout.h: Add BSD licence.
27748 * include/grub/i386/bsd.h: Parts under different licences moved to ...
27749 * include/grub/i386/freebsd_linker.h: ... here,
27750 * include/grub/i386/freebsd_reboot.h: ... here,
27751 * include/grub/i386/netbsd_bootinfo.h: ... here,
27752 * include/grub/i386/netbsd_reboot.h: ... here,
27753 * include/grub/i386/openbsd_bootarg.h: ... here,
27754 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
27755 licence to each file.
27756
b2cab848
RM
277572010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27758
27759 * acinclude.m4: Remove `nop' assembly instruction; it's not
27760 implemented by all architectures.
27761
2cb6be4b
RM
277622010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27763
27764 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
27765 ELILO. This is no longer necessary.
27766
a2eaee15
BC
277672010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
27768
27769 Added new tool, grub-scrit-check to verify grub.cfg syntax.
27770
27771 * util/grub-script-check.c: grub-script-check tool.
27772 * conf/common.rmk: Make rules for grub-script-check.
27773
88d17012
RM
277742010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27775
27776 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
27777 spotting it back in 2008. Shame on me for forgetting he did.
27778
27779 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
27780
8040619d
RM
277812010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27782
27783 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
27784 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
27785 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
27786 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
27787 (GRUB_VIDEO_TYPE_EFI): Rename to ...
27788 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
27789
a0c2a0f6
RM
277902010-01-17 Robert Millan <rmh.grub@aybabtu.com>
27791
27792 * include/grub/test.h: Add license header.
27793 * tests/example_functional_test.c: Likewise.
27794 * tests/example_unit_test.c: Likewise.
27795 * tests/lib/functional_test.c: Likewise.
27796 * tests/lib/test.c: Likewise.
27797 * tests/lib/unit_test.c: Likewise.
27798
b0b13907
VS
277992010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
27800
27801 Use flag-based instead of hook-based video mode selection and "auto"
27802 keyword.
27803
27804 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
27805 (grub_video_set_mode): Changed prototype. All users updated.
27806 (grub_video_check_mode_flag): New inline function.
27807 * video/video.c (parse_modespec): New function.
27808 (grub_video_set_mode): Parse flags and keywords.
27809
ea379330 278102010-01-17 Carles Pina i Estany <carles@pina.cat>
27811
27812 * util/misc.c (grub_util_info): Fix the order of the parameters in a
27813 fprintf call.
27814
e15c215e
FZ
278152010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
27816
27817 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
27818
409ae1c9 278192010-01-16 Carles Pina i Estany <carles@pina.cat>
27820
27821 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
27822 string.
27823 * util/grub-emu.c (usage): Likewise.
27824 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
27825 * util/i386/efi/grub-mkimage.c (usage): Likewise.
27826 * util/i386/pc/grub-mkimage.c (usage): Likewise.
27827 * util/i386/pc/grub-setup.c (usage): Likewise.
27828
70a14d3d 278292010-01-16 Carles Pina i Estany <carles@pina.cat>
27830
27831 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
27832 the message.
27833 (grub_util_info): Likewise.
27834 (grub_util_error): Likewise.
27835 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
27836 and/or new lines in `grub_util_warna', `grub_util_info',
27837 `grub_util_error' calls.
27838 * util/getroot.c: Likewise.
27839 * util/grub-editenv.c: Likewise.
27840 * util/grub-emu.c: Likewise.
27841 * util/grub-fstest.c: Likewise.
27842 * util/grub-mkdevicemap.c: Likewise.
27843 * util/grub-mkfont.c: Likewise.
27844 * util/grub-mkpasswd-pbkdf2.c: Likewise.
27845 * util/grub-mkrelpath.c: Likewise.
27846 * util/grub-pe2elf.c: Likewise.
27847 * util/grub-probe.c: Likewise.
27848 * util/hostdisk.c: Likewise.
27849 * util/i386/efi/grub-mkimage.c: Likewise.
27850 * util/i386/pc/grub-mkimage.c: Likewise.
27851 * util/i386/pc/grub-setup.c: Likewise.
27852 * util/ieee1275/ofpath.c: Likewise.
27853 * util/mkisofs/eltorito.c: Likewise.
27854 * util/mkisofs/rock.c: Likewise.
27855 * util/mkisofs/write.c: Likewise.
27856 * util/raid.c: Likewise.
27857 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
27858 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27859
a0b766fc
VS
278602010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
27861
27862 Enable multiboot on non-pc.
27863
27864 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
27865 multiboot.mod and multiboot2.mod to ...
27866 * conf/i386.rmk (pkglib_MODULES): ... here.
27867 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
27868 Moved to ...
27869 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
27870 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
27871 Moved to ...
27872 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
27873 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
27874 Moved to ...
27875 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
27876 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
27877 Moved to ...
27878 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
27879 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
27880 relocator.mod.
27881 (ata_mod_SOURCES): Removed.
27882 (ata_mod_CFLAGS): Likewise.
27883 (ata_mod_LDFLAGS): Likewise.
27884 (relocator_mod_SOURCES): Removed.
27885 (relocator_mod_CFLAGS): Likewise.
27886 (relocator_mod_ASFLAGS): Likewise.
27887 (relocator_mod_LDFLAGS): Likewise.
27888 Include i386.mk.
27889 * include/grub/x86_64/multiboot.h: New file.
27890 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
27891 Terminate EFI.
27892
884ade56
VS
278932010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
27894
27895 Video multiboot support.
27896
27897 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
27898 New prototype.
27899 * include/multiboot.h: Resynced with multiboot specification.
27900 * include/multiboot2.h: Likewise.
27901 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
27902 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
27903 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
27904 (HAS_VGA_TEXT): Likewise.
27905 (accepts_video): New variable.
27906 (grub_multiboot_set_accepts_video): New function.
27907 (grub_multiboot_get_mbi_size): Account for video structures.
27908 (set_video_mode): New function.
27909 (retrieve_video_parameters): Likewise.
27910 (grub_multiboot_make_mbi): Fill video fields.
27911
0d90e8a6
VS
279122010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
27913
27914 Video driver ids.
27915
27916 * include/grub/video.h (grub_video_driver_id): New type.
27917 (grub_video_adapter): New member 'id'. All users updated.
27918 (grub_video_get_driver_id): New proto.
27919 * video/video.c (grub_video_get_driver_id): New function.
27920
5c71db1b 279212010-01-14 Carles Pina i Estany <carles@pina.cat>
27922
27923 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
27924 `var=val'.
27925
cca15b52 279262010-01-14 Carles Pina i Estany <carles@pina.cat>
27927
27928 * normal/cmdline.c (print_completion): Gettextizze.
27929
c586fbb2 279302001-01-14 Carles Pina i Estany <carles@pina.cat>
27931
27932 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
27933
ba2f6848 279342010-01-14 Carles Pina i Estany <carles@pina.cat>
27935
27936 * gettext/gettext.c (grub_gettext_translate): Push and pop
27937 grub_errno.
27938 (grub_gettext_delete_list): Change comment style.
27939 * kern/err.c (grub_error): Gettextizze.
27940 (grub_fatal): Gettextizze.
27941
0a46429a
RM
279422010-01-14 Robert Millan <rmh.grub@aybabtu.com>
27943
27944 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
27945 (grub_linux16_real_boot): ... this.
27946 * kern/i386/loader.S: Likewise.
27947 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
27948 (grub_linux16_boot): New function. Switches to text mode and calls
27949 grub_linux16_real_boot().
27950
27951 * loader/i386/bsd.c: Include `<grub/video.h>'.
27952 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
27953 text mode before calling grub_unix_real_boot().
27954
27955 * loader/i386/multiboot.c: Include `<grub/video.h>'.
27956 (grub_multiboot_boot): Switch to text mode before calling
27957 grub_relocator32_boot().
27958
27959 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
27960 (grub_chainloader_boot): Switch to text mode before calling
27961 grub_chainloader_real_boot().
27962
d6f93a66
RM
279632010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
279642010-01-05 Colin Watson <cjwatson@ubuntu.com>
27965
27966 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
27967 non-empty value.
27968
279692010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
279702010-01-05 Colin Watson <cjwatson@ubuntu.com>
27971
27972 * util/grub.d/00_header.in: Define a "savedefault" function for use
27973 in menu entries.
27974 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
27975
279762010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
279772010-01-05 Colin Watson <cjwatson@ubuntu.com>
27978
27979 * util/grub-mkconfig_lib.in (save_default_entry): Only set
27980 saved_entry if boot_once is unset.
27981 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
27982 previous saved entry (i.e. grub-reboot).
27983
279842009-12-08 Colin Watson <cjwatson@ubuntu.com>
27985
27986 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
27987
279882009-12-08 Colin Watson <cjwatson@ubuntu.com>
27989
27990 * util/grub.d/00_header.in: Use `set var=val' rather than plain
27991 `var=val'.
27992 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
27993
279942009-12-08 Colin Watson <cjwatson@ubuntu.com>
27995
27996 * util/grub-reboot.in: Fix --version output.
27997 * util/grub-set-default.in: Likewise.
27998
279992009-12-08 Colin Watson <cjwatson@ubuntu.com>
28000
28001 * util/grub.d/00_header.in: Silently ignore zero-sized environment
28002 blocks.
28003
280042009-12-08 Colin Watson <cjwatson@ubuntu.com>
28005
28006 * util/grub.d/00_header.in: Quote the value assigned to `default',
28007 in case it contains spaces.
28008
280092009-12-08 Colin Watson <cjwatson@ubuntu.com>
28010
28011 * util/grub.d/30_os-prober.in: Fix merge error that moved a
28012 `save_default_entry' call from the macosx case to the linux case.
28013
280142009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
280152009-10-25 Colin Watson <cjwatson@ubuntu.com>
28016
28017 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
28018 in `chosen' environment variable.
28019 * normal/menu_text.c (get_entry_number): Check if the variable
28020 matches the title of a menu entry.
28021 (run_menu): Pass menu to get_entry_number.
28022
28023 * util/grub-reboot.in: New file.
28024 * util/grub-set-default.in: New file.
28025 * conf/common.rmk (grub-reboot): New utility.
28026 (grub-set-default): New utility.
28027
28028 * util/grub-mkconfig_lib.in (save_default_entry): New function.
28029 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
28030 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
28031 move it to `saved_entry' for the next boot. Load environment on
28032 initialisation.
28033 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
28034 * util/grub.d/10_hurd.in: Likewise.
28035 * util/grub.d/10_linux.in (linux_entry): Likewise.
28036 * util/grub.d/10_windows.in: Likewise.
28037 * util/grub.d/30_os-prober.in: Likewise.
28038
28039 * util/grub-install.in: Create environment block.
28040 * util/i386/efi/grub-install.in: Likewise.
28041 * util/ieee1275/grub-install.in: Likewise.
28042 * util/sparc64/ieee1275/grub-install.in: Likewise.
28043
0934d184
BC
280442010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
28045
28046 Unit testing framework for GRUB.
28047
28048 * Makefile.in: Test framework build rules for 'make check'.
28049 * conf/tests.rmk: Build rules for individual tests and framework.
28050
28051 * include/grub/test.h: Header file for whitebox tests.
28052 * tests/lib/functional_test.c: Framework support for whitebox
28053 functional tests.
28054 * tests/lib/test.c: Common whitebox testing code for unit and
28055 functional tests.
28056 * tests/lib/unit_test.c: Framework support for whitebox unit
28057 tests.
28058
28059 * tests/util/grub-shell-tester.in: Support utility for grub-script
28060 tests.
28061 * tests/util/grub-shell.in: Utility to execute grub-script
28062 commands in a Qemu instance.
28063
28064 * tests/example_functional_test.c: Example whitebox functional
28065 test.
28066 * tests/example_grub_script_test.in: Example grub-script test.
28067 * tests/example_scripted_test.in: Example scripted test.
28068 * tests/example_unit_test.c: Example whitebox unit test.
28069
9c4ffeeb
VS
280702010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
28071
28072 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
28073 Add loader/i386/multiboot_mbi.c.
28074 (multiboot2_mod_SOURCES): Likewise.
28075 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
28076 (multiboot2_mod_SOURCES): Likewise.
28077 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
28078 (grub_multiboot_make_mbi): Likewise.
28079 (grub_multiboot_free_mbi): Likewise.
28080 (grub_multiboot_init_mbi): Likewise.
28081 (grub_multiboot_add_module): Likewise.
28082 (grub_multiboot_set_bootdev): Likewise.
28083 * loader/i386/multiboot.c (mbi): Removed.
28084 (mbi_dest): Likewise.
28085 (alloc_mbi): New variable.
28086 (grub_multiboot_payload_size): Removed. All users updated.
28087 (grub_multiboot_pure_size): New variable.
28088 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
28089 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
28090 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
28091 (grub_fill_multiboot_mmap): Likewise.
28092 (grub_multiboot_get_bootdev): Likewise.
28093 (grub_multiboot): Use multiboot_mbi functions.
28094 * loader/i386/multiboot_mbi.c: New file.
28095
17383dfe
VS
280962010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28097
28098 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
28099 it would result in module crash.
28100
c1f28820
VS
281012010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28102
28103 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
28104 (grub_ofconsole_getwh): Split to ...
28105 (grub_ofconsole_getwh): ... this.
28106 (grub_ofconsole_dimensions): ...and this.
28107 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
28108
58655a16
RM
281092010-01-13 Robert Millan <rmh.grub@aybabtu.com>
28110
28111 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
28112
10891398
VS
281132010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28114
28115 * loader/i386/pc/multiboot2.c: Removed stalled file.
28116
0b8a223c
VS
281172010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28118
28119 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
28120 Reported by: Grégoire Sutre
28121
92ab12b0
RM
281222010-01-11 Robert Millan <rmh.grub@aybabtu.com>
28123
28124 * util/misc.c (canonicalize_file_name): New function.
28125 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
28126 instead of realpath().
28127
a788afb6
CW
281282010-01-11 Colin Watson <cjwatson@ubuntu.com>
28129
28130 * util/grub-install.in (usage): Clarify meaning of --root-directory,
28131 and make it clearer that it's optional. Based on confusion
28132 witnessed on IRC.
28133
ffa8e3d2
VS
281342010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28135
28136 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
28137 in premature implicit newline.
28138
e9060a9d
VS
281392010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28140
28141 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
28142 which resulted in garbled command line at the end of screen.
28143
f0d0c0b7
RM
281442010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28145
28146 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
28147 initialization with similar approach as with other Linux loaders.
28148
0e60bae7
RM
281492010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28150
28151 Fix i386-ieee1275 build.
28152
28153 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
28154 and grub_term_height() for video_{width,height} initialization.
28155
281562010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
28157
28158 Fix grub-emu build.
28159
28160 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
28161
cdb3f378
RM
281622010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
281632010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28164
28165 Support for multiple terminals.
28166
28167 * Makefile.in (pkglib_DATA): terminal.lst.
28168 (terminal.lst): New target.
28169 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
28170 (GRUB_MOD_INIT(handler)): Likewise.
28171 (GRUB_MOD_FINI(handler)): Likewise.
28172 * commands/help.c (grub_cmd_help): Handle multiple terminals.
28173 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
28174 * commands/sleep.c (do_print): Use grub_term_restore_pos.
28175 (grub_cmd_sleep): Use grub_term_save_pos.
28176 * commands/terminal.c: New file.
28177 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
28178 commands/terminal.c and lib/charset.c.
28179 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
28180 (pkglib_MODULES): Add terminal.mod.
28181 (terminal_mod_SOURCES): New variable.
28182 (terminal_mod_CFLAGS): Likewise.
28183 (terminal_mod_LDFLAGS): Likewise.
28184 * genhandlerlist.sh: Don't handle terminals.
28185 * genmk.rb: Generate terminal-*.lst.
28186 * genterminallist.sh: New file.
28187 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
28188 (grub_is_valid_utf8): Likewise.
28189 (grub_utf8_to_ucs4_alloc): Likewise.
28190 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
28191 (grub_menu_register_viewer): Changed argument.
28192 (grub_menu_try_text): New proto.
28193 (grub_gfxmenu_try_hook): New declaration.
28194 * include/grub/normal.h (grub_normal_exit_level): New declaration.
28195 (grub_menu_init_page): Additional argument term.
28196 (grub_normal_init_page): Likewise.
28197 (grub_cmdline_get): Arguments simplified.
28198 (grub_utf8_to_ucs4_alloc): Removed.
28199 (grub_print_ucs4): Additional argument term.
28200 (grub_getstringwidth): Likewise.
28201 (grub_print_message_indented): Likewise.
28202 (grub_menu_text_register_instances): New proto.
28203 (grub_show_menu): Likewise.
28204 (read_terminal_list): Likewise.
28205 (grub_set_more): Likewise.
28206 * include/grub/parser.h: Include handler.h.
28207 * include/grub/reader.h: Rewritten.
28208 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
28209 (GRUB_TERM_WIDTH): Changed to function.
28210 (GRUB_TERM_HEIGHT): Likewise.
28211 (GRUB_TERM_BORDER_WIDTH): Likewise.
28212 (GRUB_TERM_BORDER_HEIGHT): Likewise.
28213 (GRUB_TERM_NUM_ENTRIES): Likewise.
28214 (GRUB_TERM_ENTRY_WIDTH): Likewise.
28215 (GRUB_TERM_CURSOR_X): Likewise.
28216 (grub_term_input_class): Likewise.
28217 (grub_term_output_class): Likewise.
28218 (grub_term_outputs_disabled): New declaration.
28219 (grub_term_inputs_disabled): Likewise.
28220 (grub_term_outputs): Likewise.
28221 (grub_term_inputs): Likewise.
28222 (grub_term_register_input): Rewritten.
28223 (grub_term_register_output): Likewise.
28224 (grub_term_unregister_input): Likewise.
28225 (grub_term_unregister_output): Likewise.
28226 (FOR_ACTIVE_TERM_INPUTS): New macro.
28227 (FOR_DISABLED_TERM_INPUTS): Likewise.
28228 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
28229 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
28230 * include/grub/terminfo.h: Add oterm argument to all protypes.
28231 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
28232 Use grub_rescue_run.
28233 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
28234 All users updated.
28235 * kern/reader.c: Removed. All users updated.
28236 * kern/rescue_reader.c (grub_rescue_init): Removed.
28237 (grub_rescue_reader): Likewise.
28238 (grub_register_rescue_reader): Likewise.
28239 (grub_rescue_run): New function based on kern/reader.c.
28240 * kern/term.c: Adapted for multiterm.
28241 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
28242 (grub_is_valid_utf8): Likewise.
28243 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
28244 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
28245 right terminal.
28246 * loader/i386/linux.c (grub_linux_boot): Likewise.
28247 * normal/auth.c (grub_username_get): New function.
28248 (grub_auth_check_authentication): Use grub_username_get.
28249 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
28250 * normal/color.c: Adapt for multiterm.
28251 * normal/main.c (read_config_file): Don't use grub_reader_loop.
28252 (grub_normal_init_page): Additional argument term.
28253 (read_lists): Call read_terminal_lists.
28254 (grub_enter_normal_mode): Call grub_cmdline_run.
28255 Handle grub_normal_exit_level.
28256 (grub_cmd_normal): Make reentrant.
28257 (grub_cmd_normal_exit): New function.
28258 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
28259 * normal/menu.c: Adapt for multiterm.
28260 * normal/menu_entry.c: Likewise.
28261 * normal/menu_text.c: Likewise.
28262 * normal/menu_viewer.c: Removed. All users updated.
28263 * normal/term.c: New file.
28264 * util/console.c: Change order of includes to workaround a bug in
28265 ncurses headers.
28266 * term/terminfo.c: New argument oterm on all exported functions.
28267 All users updated.
28268 * util/grub-editenv.c (grub_term_input_class): Removed.
28269 (grub_term_output_class): Likewise.
28270
1a064917
RM
282712010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28272
28273 Make loader output a bit more user-friendly.
28274
28275 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
28276 is being loaded. Likewise for the Hurd.
28277
28278 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
28279 that kernel of FreeBSD ${version} is being loaded.
28280
28281 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
28282 grub_dprintf().
28283 (grub_cmd_initrd): Likewise.
28284 * util/grub.d/10_linux.in (linux_entry): Print message indicating
28285 that Linux ${version} is being loaded. Likewise for initrd.
28286
5ce0a83a 282872010-01-09 Carles Pina i Estany <carles@pina.cat>
28288
28289 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
28290
809bbfeb 282912010-01-08 Carles Pina i Estany <carles@pina.cat>
28292
28293 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
28294 (GRUB_MOD_INIT): Gettextizze.
28295 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
28296 (GRUB_MOD_INIT): Gettextizze.
28297 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
28298 (grub_cmd_linux): Capitalise Linux.
28299 (GRUB_MOD_INIT): Gettextizze.
28300 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
28301 (grub_cmd_linux): Capitalise Linux.
28302 (GRUB_MOD_INIT): Gettextizze.
28303 * loader/i386/linux.c: Include `<grub/i18n.h>'.
28304 (grub_cmd_linux): Capitalise Linux.
28305 (GRUB_MOD_INIT): Gettextizze.
28306 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
28307 (GRUB_MOD_INIT): Gettextizze.
28308 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
28309 (grub_cmd_linux): Capitalise Linux.
28310 (GRUB_MOD_INIT): Gettextizze.
28311 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
28312 (grub_cpu_xnu_init): Gettextizze.
28313 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
28314 (GRUB_MOD_INIT): Gettextizze.
28315 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
28316 (GRUB_MOD_INIT): Gettextizze.
28317 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
28318 (grub_linux_load64): Capitalise Linux.
28319 (GRUB_MOD_INIT): Gettextizze.
28320 * loader/xnu.c: Include `<grub/i18n.h>'.
28321 (GRUB_MOD_INIT): Gettextizze.
28322 * po/POTFILES: Add `loader/efi/appleloader.c',
28323 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
28324 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
28325 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
28326 `loader/i386/xnu.c', `loader/multiboot_loader.c',
28327 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
28328 and `loader/xnu.c'.
28329
b394b2ca
RM
283302010-01-08 Robert Millan <rmh.grub@aybabtu.com>
28331
28332 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
28333
283342010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
28335
28336 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
28337 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
28338 * util/mkisofs/mkisofs.c (main): Readjust --version output.
28339
bc8b32b3
RM
283402010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28341
28342 Reset Multiboot 2 support. New loader implements the draft in
28343 /branches/multiboot2 and shares as much code as possible with the
28344 production Multiboot 1 implementation.
28345
28346 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
28347 * loader/multiboot2.c: Likewise.
28348 * loader/i386/multiboot_helper.S: Likewise.
28349 * include/multiboot2.h: Replace with latest version from the draft
28350 in /branches/multiboot2.
28351
28352 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
28353 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
28354 and `loader/multiboot2.c'.
28355 (pkglib_MODULES): Add `multiboot2.mod'.
28356 (multiboot2_mod_SOURCES): New variable.
28357 (multiboot2_mod_LDFLAGS): Likewise.
28358 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
28359
28360 * conf/i386-pc.rmk: Likewise.
28361
28362 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
28363 (multiboot_mod_SOURCES): Remove variable.
28364 (multiboot_mod_LDFLAGS): Likewise.
28365 (multiboot_mod_CFLAGS): Likewise.
28366
28367 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
28368 `<multiboot2.h>' instead of `<multiboot.h>'.
28369 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
28370 (MULTIBOOT_HEADER_MAGIC): New macros.
28371
28372 * loader/multiboot_loader.c (module_version_status): Remove variable.
28373 (find_multi_boot2_header): Remove function.
28374 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
28375 logic. Always check for the Multiboot version we're compiling for.
28376 (grub_cmd_module_loader): Likewise.
28377 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
28378 command instead of `multiboot'.
28379
5d2c52b8
RM
283802010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28381
28382 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
28383 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
28384 all users.
28385
53108d92
RM
283862010-01-07 Robert Millan <rmh.grub@aybabtu.com>
283872010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28388
28389 Fix breakage introduced with previous commit.
28390
28391 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
28392 commands.
28393 * normal/handler.c (read_handler_list): Revert part of previous commit
28394 affecting this file.
28395 * normal/main.c (read_lists): Move read_handler_list() call back to ...
28396 (grub_normal_execute): ... here.
28397
e2e936b2
RM
283982010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28399
28400 Merge prefix-redefinition-fix branch.
28401
28402 * normal/autofs.c (read_fs_list): Make function capable of being
28403 run multiple times, gracefuly replacing the previous data
28404 structures.
28405 * normal/dyncmd.c (read_command_list): Likewise.
28406 * normal/handler.c (read_handler_list): Likewise.
28407 * normal/main.c (read_lists): New function. Calls all the
28408 list reading functions.
28409 (grub_normal_execute): Use read_lists() instead of calling all
28410 list reading functions explicitly. Register read_lists() as a
28411 variable hook attached to ${prefix}.
28412
607a3701
VS
284132010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28414
28415 Merge crypto branch.
28416
28417 * Makefile.in (pkglib_DATA): Add crypto.lst.
28418 (crypto.lst): New target.
28419 * commands/hashsum.c: New file.
28420 * commands/password.c (check_password): Use grub_crypto_memcmp.
28421 * commands/password_pbkdf2.c: New file.
28422 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
28423 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
28424 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
28425 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
28426 -I$(srcdir)/lib/libgcrypt_wrap.
28427 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
28428 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
28429 password_pbkdf2.mod.
28430 (crypto_mod_SOURCES): New variable.
28431 (crypto_mod_CFLAGS): Likewise.
28432 (crypto_mod_LDFLAGS): Likewise.
28433 (hashsum_mod_SOURCES): New variable.
28434 (hashsum_mod_CFLAGS): Likewise.
28435 (hashsum_mod_LDFLAGS): Likewise.
28436 (pbkdf2_mod_SOURCES): New variable.
28437 (pbkdf2_mod_CFLAGS): Likewise.
28438 (pbkdf2_mod_LDFLAGS): Likewise.
28439 (password_pbkdf2_mod_SOURCES): New variable.
28440 (password_pbkdf2_mod_CFLAGS): Likewise.
28441 (password_pbkdf2_mod_LDFLAGS): Likewise.
28442 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
28443 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
28444 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
28445 Include conf/gcry.rmk.
28446 * include/grub/auth.h: Rewritten.
28447 * include/grub/crypto.h: New file.
28448 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
28449 * include/grub/normal.h (read_crypto_list): New prototype.
28450 * lib/crypto.c: New file.
28451 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28452 * lib/pbkdf2.c: Likewise.
28453 * normal/auth.c (grub_auth_strcmp): Removed.
28454 (grub_iswordseparator): Likewise.
28455 (grub_auth_strword): Likewise.
28456 (is_authenticated): Use grub_strword.
28457 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
28458 and grub_strword. Pass entered password to authentication callback.
28459 * normal/crypto.c: New file.
28460 * normal/main.c: Call read_crypto_list.
28461 * util/grub-mkpasswd-pbkdf2.c: New file.
28462 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
28463
42841caa
VS
284642010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
28465
28466 Fix descent and ascent calculation.
28467
28468 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
28469 (options): New option "asce".
28470 (usage): Likewise.
28471 (add_char): Ignore invalid glyphs for descent calculation.
28472 Calculate ascent from actual content.
28473 (print_glyphs): Use 'asce'.
28474 (write_font): Likewise. Allow ascent override.
28475 (main): Handle "asce" option.
28476
e7730de7 284772010-01-06 Carles Pina i Estany <carles@pina.cat>
28478
28479 * kern/err.c: Include `<grub/i18n.h>'.
28480 (grub_print_error): Add full stop. Gettextizze.
28481 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
28482 (grub_bsd_load_elf): Capitalise ELF.
28483 (grub_cmd_freebsd_loadenv): Add `s' in error string.
28484 (grub_cmd_freebsd_module): Likewise.
28485 (grub_cmd_freebsd_module_elf): Likewise.
28486 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
28487
40e3a41f 284882010-01-06 Carles Pina i Estany <carles@pina.cat>
28489
28490 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
28491 * commands/search_file.c (HELP_MESSAGE): New macro.
28492 * commands/search_label.c (HELP_MESSAGE): Likewise.
28493 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
28494 * po/POTFILES: Add `commands/search_file.c',
28495 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
28496 `commands/search.c'.
28497
83507e68
RM
284982010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28499
28500 * config.rpath: Update from Gnulib.
28501
465c787b
YB
285022010-01-05 Yves Blusseau <blusseau@zetam.org>
28503
28504 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
28505
6581dd3a
YB
285062010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
28507
28508 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
28509
3bff18c5
CW
285102010-01-05 Colin Watson <cjwatson@ubuntu.com>
28511
28512 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
28513 arguments to fread so that we get a return value in bytes, rather
28514 than something that will normally be rounded down to 0.
28515 Adjust error handling to avoid producing garbage when size_t is not
28516 the same size as long long.
28517
a1368118
CW
285182010-01-05 Colin Watson <cjwatson@ubuntu.com>
28519
28520 * util/mkisofs/write.c (padblock_write): Check return value of
28521 fread.
28522
7c302978
RM
285232010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28524
28525 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
28526 floppy images now.
28527
28528 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
28529
e33ace06
RM
285302010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28531
28532 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
28533 instead of manual alignment.
28534 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
28535 verbose). Avoid attempts to read past end of the device
28536 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
28537 but GRUB_DISK_CACHE_SIZE may exceed that).
28538
4b856776
RM
285392010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28540
28541 * commands/crc.c (grub_cmd_crc): Abort on read errors.
28542 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
28543 it to upper layer.
28544
52c2d97f
VS
285452010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28546
28547 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
28548 New constant.
28549 (grub_efi_piwg_device_path): New structure
28550 (grub_efi_piwg_device_path_t): New type.
28551 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
28552 (devpath_1): Transform to a structure. All users updated.
28553 (devpath_2): Likewise.
28554 (devpath_3): Likewise.
28555 (devpath_4): Likewise.
28556 (devpath_5): Likewise.
28557
98ff6a54
VS
285582010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28559
28560 * loader/efi/appleloader.c: Restored. Update all users.
28561
3a73dcb6
RM
285622010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28563
28564 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
28565
28566 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
28567 (struct boot_blocklist): Move from here ...
28568 * include/grub/i386/pc/boot.h [ASM_FILE]
28569 (struct grub_boot_blocklist): ... to here. Update all users.
28570 (setup): Only initialize `start' member of `first_block'
28571 structure. Add assert() calls to verify the other members.
28572
28573 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
28574 (generate_image): Fix broken blocklist length initialization.
28575 Add assert() call to verify blocklist `segment' field.
28576
ab0eeb0c
RM
285772010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28578
28579 * loader/efi/appleloader.c: Remove. Update all users.
28580
58bc8bd5
RM
285812010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28582
28583 * boot/i386/pc/boot.S: Update copyright year.
28584 * boot/i386/pc/cdboot.S: Likewise.
28585 * boot/i386/pc/diskboot.S: Likewise.
28586 * boot/i386/pc/lnxboot.S: Likewise.
28587 * boot/i386/pc/pxeboot.S: Likewise.
28588 * bus/pci.c: Likewise.
28589 * commands/cmp.c: Likewise.
28590 * commands/help.c: Likewise.
28591 * commands/hexdump.c: Likewise.
28592 * commands/i386/pc/halt.c: Likewise.
28593 * commands/i386/pc/play.c: Likewise.
28594 * commands/i386/pc/vbeinfo.c: Likewise.
28595 * commands/ls.c: Likewise.
28596 * commands/test.c: Likewise.
28597 * disk/dmraid_nvidia.c: Likewise.
28598 * disk/i386/pc/biosdisk.c: Likewise.
28599 * disk/ieee1275/nand.c: Likewise.
28600 * disk/ieee1275/ofdisk.c: Likewise.
28601 * disk/lvm.c: Likewise.
28602 * disk/raid.c: Likewise.
28603 * disk/raid6_recover.c: Likewise.
28604 * disk/scsi.c: Likewise.
28605 * fs/affs.c: Likewise.
28606 * fs/cpio.c: Likewise.
28607 * fs/ext2.c: Likewise.
28608 * fs/hfs.c: Likewise.
28609 * fs/iso9660.c: Likewise.
28610 * fs/ntfs.c: Likewise.
28611 * fs/sfs.c: Likewise.
28612 * fs/udf.c: Likewise.
28613 * fs/ufs.c: Likewise.
28614 * fs/xfs.c: Likewise.
28615 * gencmdlist.sh: Likewise.
28616 * genmk.rb: Likewise.
28617 * include/grub/disk.h: Likewise.
28618 * include/grub/efi/api.h: Likewise.
28619 * include/grub/efi/efi.h: Likewise.
28620 * include/grub/efi/pe32.h: Likewise.
28621 * include/grub/elf.h: Likewise.
28622 * include/grub/fs.h: Likewise.
28623 * include/grub/i386/at_keyboard.h: Likewise.
28624 * include/grub/i386/pc/memory.h: Likewise.
28625 * include/grub/i386/pc/vbe.h: Likewise.
28626 * include/grub/i386/pci.h: Likewise.
28627 * include/grub/i386/tsc.h: Likewise.
28628 * include/grub/ieee1275/ieee1275.h: Likewise.
28629 * include/grub/ntfs.h: Likewise.
28630 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
28631 * include/grub/sparc64/libgcc.h: Likewise.
28632 * include/grub/symbol.h: Likewise.
28633 * include/grub/types.h: Likewise.
28634 * include/multiboot2.h: Likewise.
28635 * io/gzio.c: Likewise.
28636 * kern/device.c: Likewise.
28637 * kern/disk.c: Likewise.
28638 * kern/efi/efi.c: Likewise.
28639 * kern/efi/mm.c: Likewise.
28640 * kern/elf.c: Likewise.
28641 * kern/file.c: Likewise.
28642 * kern/i386/dl.c: Likewise.
28643 * kern/i386/pc/init.c: Likewise.
28644 * kern/i386/pc/startup.S: Likewise.
28645 * kern/ieee1275/ieee1275.c: Likewise.
28646 * kern/ieee1275/init.c: Likewise.
28647 * kern/main.c: Likewise.
28648 * kern/mm.c: Likewise.
28649 * kern/powerpc/dl.c: Likewise.
28650 * kern/sparc64/dl.c: Likewise.
28651 * kern/x86_64/dl.c: Likewise.
28652 * lib/hexdump.c: Likewise.
28653 * loader/efi/appleloader.c: Likewise.
28654 * loader/i386/ieee1275/linux.c: Likewise.
28655 * loader/i386/pc/chainloader.c: Likewise.
28656 * loader/i386/pc/linux.c: Likewise.
28657 * loader/i386/pc/multiboot2.c: Likewise.
28658 * loader/ieee1275/multiboot2.c: Likewise.
28659 * loader/multiboot2.c: Likewise.
28660 * loader/multiboot_loader.c: Likewise.
28661 * loader/powerpc/ieee1275/linux.c: Likewise.
28662 * normal/completion.c: Likewise.
28663 * normal/menu_entry.c: Likewise.
28664 * partmap/apple.c: Likewise.
28665 * util/grub.d/10_hurd.in: Likewise.
28666 * util/hostfs.c: Likewise.
28667 * video/readers/png.c: Likewise.
28668
e2d70b5c
CW
286692010-01-03 Colin Watson <cjwatson@ubuntu.com>
28670
28671 * include/grub/misc.h (GNUC_PREREQ): New macro.
28672 (ATTRIBUTE_ERROR): New macro.
28673 * include/grub/list.h (grub_bad_type_cast_real): Use
28674 ATTRIBUTE_ERROR.
28675
a173283f 286762010-01-03 Carles Pina i Estany <carles@pina.cat>
28677
28678 * normal/menu_text.c (print_message): Change messages.
28679
7fa7ff74 286802010-01-03 Carles Pina i Estany <carles@pina.cat>
28681
28682 * normal/menu_entry.c (store_completion): Gettextizze.
28683
136d24f6 286842010-01-03 Carles Pina i Estany <carles@pina.cat>
28685
28686 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
28687
f936862e 286882010-01-03 Carles Pina i Estany <carles@pina.cat>
28689
28690 * po/POTFILES: Sort correctly.
28691
29c44ad1 286922010-01-03 Carles Pina i Estany <carles@pina.cat>
28693
28694 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
28695 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
28696 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
28697 full stop.
28698 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
28699 summary. Gettextizze the strings.
28700 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
28701 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
28702 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
28703 full stop.
28704 (GRUB_MOD_INIT): Remove command name from summary.
28705 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
28706 summary.
28707 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
28708 * term/i386/pc/serial.c (options): Add full stops.
28709 (GRUB_MOD_INIT): Remove command name from the summary.
28710
77a79592 287112010-01-03 Carles Pina i Estany <carles@pina.cat>
28712
28713 * commands/acpi.c: Gettextizze help strings and/or options. Include
28714 `grub/i18n.h' if needed.
28715 * commands/blocklist.c: Likewise.
28716 * commands/boot.c: Likewise.
28717 * commands/cat.c: Likewise.
28718 * commands/cmp.c: Likewise.
28719 * commands/configfile.c: Likewise.
28720 * commands/crc.c: Likewise.
28721 * commands/date.c: Likewise.
28722 * commands/echo.c: Likewise.
28723 * commands/efi/fixvideo.c: Likewise.
28724 * commands/efi/loadbios.c: Likewise.
28725 * commands/gptsync.c: Likewise.
28726 * commands/halt.c: Likewise.
28727 * commands/handler.c: Likewise.
28728 * commands/hdparm.c: Likewise.
28729 * commands/hexdump.c: Likewise.
28730 * commands/i386/cpuid.c: Likewise.
28731 * commands/i386/pc/drivemap.c: Likewise.
28732 * commands/i386/pc/halt.c: Likewise.
28733 * commands/i386/pc/pxecmd.c: Likewise.
28734 * commands/i386/pc/vbeinfo.c: Likewise.
28735 * commands/i386/pc/vbetest.c: Likewise.
28736 * commands/ieee1275/suspend.c: Likewise.
28737 * commands/keystatus.c: Likewise.
28738 * commands/loadenv.c: Likewise.
28739 * commands/ls.c: Likewise.
28740 * commands/lsmmap.c: Likewise.
28741 * commands/lspci.c: Likewise.
28742 * commands/memrw.c: Likewise.
28743 * commands/minicmd.c: Likewise.
28744 * commands/parttool.c: Likewise.
28745 * commands/password.c: Likewise.
28746 * commands/probe.c: Likewise.
28747 * commands/read.c: Likewise.
28748 * commands/reboot.c: Likewise.
28749 * commands/search.c: Likewise.
28750 * commands/sleep.c: Likewise.
28751 * commands/test.c: Likewise.
28752 * commands/true.c: Likewise.
28753 * commands/usbtest.c: Likewise.
28754 * commands/videotest.c: Likewise.
28755 * commands/xnu_uuid.c: Likewise.
28756 * disk/loopback.c: Likewise.
28757 * hello/hello.c: Likewise.
28758 * loader/i386/bsd.c: Likewise.
28759 * term/i386/pc/serial.c: Likewise.
28760 * po/POTFILES: Add new files.
28761
da8d5c53
CW
287622010-01-02 Colin Watson <cjwatson@ubuntu.com>
28763
28764 * term/i386/pc/at_keyboard.c
28765 (keyboard_controller_wait_untill_ready): Rename to ...
28766 (keyboard_controller_wait_until_ready): ... this. Update all users.
28767
33937904 287682010-01-01 Carles Pina i Estany <carles@pina.cat>
28769
28770 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
28771 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
28772 string using string width.
28773 * normal/menu_text.c (grub_print_message_indented): Use
28774 grub_print_spaces and not print_spaces.
28775 (print_timeout): Likewise.
28776 (print_spaces): Move to...
28777 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
28778
3fd3b8d8
RM
287792010-01-01 Robert Millan <rmh.grub@aybabtu.com>
28780
28781 Import from Gnulib.
28782
28783 * gnulib/getdelim.c: New file.
28784 * gnulib/getline.c: Likewise.
28785
33433555
VS
287862009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
28787
28788 * include/grub/list.h (grub_assert_fail): Removed.
28789 (grub_bad_type_cast_real): New function.
28790 (grub_bad_type_cast): New macro.
28791 (GRUB_AS_LIST): Use grub_bad_type_cast.
28792 (GRUB_AS_LIST_P): Likewise.
e44721e8 28793 (GRUB_AS_NAMED_LIST): Likewise.
33433555 28794 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 28795 (GRUB_AS_PRIO_LIST): Likewise.
33433555 28796 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 28797 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 28798
f5a51306
VS
287992009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
28800
28801 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
28802 Fix syntax error.
28803
90d1e879
RM
288042009-12-29 Robert Millan <rmh.grub@aybabtu.com>
28805
28806 * configure.ac: Check for TARGET_CFLAGS initialization before we
28807 initialize it ourselves (sigh).
28808 Move a few modifications to TARGET_CFLAGS to be unconditional
28809 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
28810 eh_frame)
28811
28812 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
28813 * term/i386/pc/at_keyboard.c
28814 (keyboard_controller_wait_untill_ready): Likewise.
28815 (keyboard_controller_led): Rename `led_status' paramter to avoid
28816 name conflict.
28817
465b5a81 288182009-12-28 Carles Pina i Estany <carles@pina.cat>
28819
28820 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
28821 quotes.
28822
c181849b
VS
288232009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
28824
28825 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
28826
9c8739a4
VS
288272009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
28828
28829 * normal/menu_text.c (grub_print_message_indented): Prevent
28830 past-the-end-of-array dereference.
28831
3e74249c
VS
288322009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
28833
28834 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
28835 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
28836
64fd18ed 288372009-12-27 Carles Pina i Estany <carles@pina.cat>
28838
28839 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
28840 * normal/main.c (grub_normal_read_line): Remove a space from the
28841 default prompt.
28842
714af9b9 288432009-12-27 Carles Pina i Estany <carles@pina.cat>
28844
28845 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
28846 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28847 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
28848 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
28849 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28850 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28851 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28852
82f3e412 288532009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 28854
28855 * video/readers/jpeg.c (cmd): Declare.
28856 (grub_cmd_jpegtest): Use `grub_command_t' type.
28857 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
28858 Assign to `cmd'.
28859 (GRUB_MOD_FINI): Use `cmd' to unregister.
28860 * video/readers/png.c (cmd): Declare.
28861 (grub_cmd_pngtest): Use `grub_command_t' type.
28862 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
28863 Assign to `cmd'.
28864 (GRUB_MOD_FINI): Use `cmd' to unregister.
28865 * video/readers/tga.c (cmd): Declare.
28866 (grub_cmd_tgatest): Use `grub_command_t' type.
28867 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
28868 Assign to `cmd'.
28869 (GRUB_MOD_FINI): Use `cmd' to unregister.
28870
82f3e412 288712009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 28872
28873 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
28874 stops.
28875 * kern/corecmd.c (grub_register_core_commands): Likewise.
28876 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
28877 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
28878 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
28879 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28880 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
28881 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
28882 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
28883 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
28884 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28885 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28886 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28887 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28888 * normal/handler.c (insert_handler): Likewise.
28889 * normal/main.c (GRUB_MOD_INIT): Likewise.
28890 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28891
fdcdbb66 288922009-12-26 Carles Pina i Estany <carles@pina.cat>
28893
28894 * commands/help.c (grub_cmd_help): Print the command name before the
28895 summary.
28896 (GRUB_MOD_INIT): Remove command name from the summary.
28897 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 28898 string as summary.
fdcdbb66 28899 * lib/arg.c (find_long): Print the command name before the summary.
28900 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
28901 summary.
28902 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
28903 * commands/cat.c (GRUB_MOD_INIT): Likewise.
28904 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
28905 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
28906 * commands/crc.c (GRUB_MOD_INIT): Likewise.
28907 * commands/date.c (GRUB_MOD_INIT): Likewise.
28908 * commands/echo.c (GRUB_MOD_INIT): Likewise.
28909 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
28910 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
28911 * commands/handler.c (GRUB_MOD_INIT): Likewise.
28912 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
28913 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
28914 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
28915 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
28916 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
28917 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
28918 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
28919 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
28920 * commands/ls.c (GRUB_MOD_INIT): Likewise.
28921 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
28922 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
28923 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
28924 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
28925 * commands/password.c (GRUB_MOD_INIT): Likewise.
28926 * commands/probe.c (GRUB_MOD_INIT): Likewise.
28927 * commands/read.c (GRUB_MOD_INIT): Likewise.
28928 * commands/search.c (GRUB_MOD_INIT): Likewise.
28929 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
28930 * commands/test.c (GRUB_MOD_INIT): Likewise.
28931 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
28932 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28933 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28934 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
28935 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28936 * lib/arg.c (GRUB_MOD_INIT): Likewise.
28937 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
28938 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
28939 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28940 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28941 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28942 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
28943 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
28944 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
28945
9c288be2
VS
289462009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28947
28948 Use search command for preliminar UUID search.
28949
28950 * commands/search.c: Split into ...
28951 * commands/search_wrap.c: ...this
28952 * commands/search.c: ...and this.
28953 * commands/search_file.c: New file.
28954 * commands/search_label.c: New file.
28955 * commands/search_uuid.c: New file.
28956 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
28957 Add commands/search_wrap.c, commands/search_file.c,
28958 commands/search_label.c and commands/search_uuid.c.
28959 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
28960 (search_mod_SOURCES): Set to commands/search_wrap.c.
28961 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
28962 search_label.mod.
28963 (search_fs_file_mod_SOURCES): New variable.
28964 (search_fs_file_mod_CFLAGS): Likewise.
28965 (search_fs_file_mod_LDFLAGS): Likewise.
28966 (search_label_mod_SOURCES): Likewise.
28967 (search_label_mod_CFLAGS): Likewise.
28968 (search_label_mod_LDFLAGS): Likewise.
28969 (search_fs_uuid_mod_SOURCES): New variable.
28970 (search_fs_uuid_mod_CFLAGS): Likewise.
28971 (search_fs_uuid_mod_LDFLAGS): Likewise.
28972 (fs_file_mod_SOURCES): Removed.
28973 (fs_file_mod_CFLAGS): Likewise.
28974 (fs_file_mod_LDFLAGS): Likewise.
28975 (fs_uuid_mod_SOURCES): Removed.
28976 (fs_uuid_mod_CFLAGS): Likewise.
28977 (fs_uuid_mod_LDFLAGS): Likewise.
28978 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
28979 Set to util/grub-install.in.
28980 * disk/fs_file.c: Removed.
28981 * disk/fs_uuid.c: Likewise.
28982 * include/grub/search.h: New file.
28983 * util/grub-install.in: Handle sparc64.
28984 Create and use load.cfg.
28985 * util/sparc64/ieee1275/grub-install.in: Removed.
28986
db943399
VS
289872009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28988
28989 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
28990 Ignore return status if CF is cleared.
28991 (grub_biosdisk_get_diskinfo_standard): Likewise.
28992
3fdae612
RM
289932009-12-25 Robert Millan <rmh.grub@aybabtu.com>
28994
28995 * term/i386/pc/at_keyboard.c
28996 (keyboard_controller_wait_untill_ready): New function.
28997 (grub_keyboard_controller_write, grub_keyboard_controller_read)
28998 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
28999 for keyboard polling, rather than duplicate the same loop. This
29000 saves a few bytes in code size.
29001
7ebaa2b4
VS
290022009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29003
29004 Support for (pxe[:server[:gateway]]) syntax and
29005 use environment variable for PXE.
29006
29007 * commands/i386/pc/pxecmd.c (options): Removed.
29008 (print_ip): Removed.
29009 (grub_cmd_pxe): Removed
29010 (grub_cmd_pxe_unload): New function.
29011 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
29012 (grub_pxe_your_ip): Made static.
29013 (grub_pxe_default_server_ip): Likewise.
29014 (grub_pxe_default_gateway_ip): Likewise.
29015 (grub_pxe_blksize): Likewise.
29016 (parse_ip): New function.
29017 (grub_pxe_open): Support server and gateway specification.
29018 (grub_pxe_close): Free disk->data.
29019 (grub_pxefs_open): Use disk->data.
29020 (grub_pxefs_read): Likewise.
29021 (grub_env_write_readonly): New function.
29022 (set_mac_env): Likewise.
29023 (set_env_limn_ro): Likewise.
29024 (parse_dhcp_vendor): Likewise.
29025 (grub_pxe_detect): Set the environment variables.
29026 (set_ip_env): New function.
29027 (write_ip_env): Likewise.
29028 (grub_env_write_pxe_default_server): Likewise.
29029 (grub_env_write_pxe_default_gateway): Likewise.
29030 (grub_env_write_pxe_blocksize): Likewise.
29031 (GRUB_MOD_INIT(pxe)): Set environment variables.
29032 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
29033 (grub_pxe_mac_addr_t): ... this. All users updated.
29034 (grub_pxe_your_ip): Removed.
29035 (grub_pxe_server_ip): Likewise.
29036 (grub_pxe_gateway_ip): Likewise.
29037 (grub_pxe_blksize): Likewise.
29038
ec5f98ab 290392009-12-25 Carles Pina i Estany <carles@pina.cat>
29040
29041 * commands/help.c: Include `<grub/i18n.h>'.
29042 (grub_cmd_help): Gettextizze.
29043 (GRUB_MOD_INIT): Likewise.
29044 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
29045 (GRUB_MOD_INIT): Gettextizze.
29046 * commands/search.c: Include `<grub/i18n.h>'.
29047 (options): Gettextizze.
29048 (GRUB_MOD_INIT): Gettextizze.
29049 * lib/arg.c: Include `<grub/i18n.h>'.
29050 (help_options): Gettextizze.
29051 (find_long): Likewise.
29052 (grub_arg_show_help): Likewise.
29053 * normal/dyncmd.c: Include `<grub/i18n.h>'.
29054 (read_command_list): Gettextizze.
29055 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 29056 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 29057
22815526
RM
290582009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29059
29060 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
29061 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
29062 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
29063 (led_status): New variable.
29064 (keyboard_controller_led): New function.
29065 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
29066 update led status for caps lock, num lock and scroll lock.
29067
0ad46fd7
FZ
290682009-12-25 Felix Zielcke <fzielcke@z-51.de>
29069
29070 * util/hostdisk.c (open_device): Fix a comment.
29071
d0e158c2
RM
290722009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29073
29074 * util/grub-install.in (host_os): New variable.
29075 * util/i386/efi/grub-install.in (host_os): Likewise.
29076
401c0ad6
RM
290772009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29078
29079 * util/mkisofs/write.c (padblock_write): Abort when given an
29080 excedingly large embed image, instead of silently truncating it.
29081
d14d3370
RM
290822009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29083
29084 * include/multiboot.h: Indentation fixes.
29085
eeed10b4
RM
290862009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29087
29088 * include/multiboot.h (struct multiboot_aout_symbol_table)
29089 (struct multiboot_elf_section_header_table): New structure
29090 declarations (stolen from GRUB Legacy).
29091 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
29092 table information.
29093
29094 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
29095 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
29096 type aliases.
29097
681c70ab
RM
290982009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29099
29100 * include/multiboot.h: Make comments src2texi-friendly.
29101
e4d47d8d
RM
291022009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29103
29104 For consistency with [multiboot]/docs/boot.S.
29105
29106 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
29107 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
29108 (MULTIBOOT_MAGIC2): Rename from this ...
29109 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
29110
a0b70bda
RM
291112009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29112
29113 * include/multiboot.h: Remove `<grub/types.h>'.
29114 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
29115 types. Update all users.
29116
61ba42be 291172009-12-25 Carles Pina i Estany <carles@pina.cat>
29118
29119 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
29120 `couldn't' and `can not' by `cannot'.
29121 * commands/i386/pc/drivemap.c: Likewise.
29122 * disk/ata.c: Likewise.
29123 * disk/ieee1275/nand.c: Likewise.
29124 * fs/affs.c: Likewise.
29125 * fs/fat.c: Likewise.
29126 * fs/hfs.c: Likewise.
29127 * fs/hfsplus.c: Likewise.
29128 * fs/iso9660.c: Likewise.
29129 * fs/jfs.c: Likewise.
29130 * fs/minix.c: Likewise.
29131 * fs/reiserfs.c: Likewise.
29132 * fs/sfs.c: Likewise.
29133 * fs/udf.c: Likewise.
29134 * fs/ufs.c: Likewise.
29135 * fs/xfs.c: Likewise.
29136 * loader/powerpc/ieee1275/linux.c: Likewise.
29137 * loader/sparc64/ieee1275/linux.c: Likewise.
29138 * util/grub-probe.c: Likewise.
29139 * util/misc.c: Likewise.
29140
7fd0baee 291412009-12-24 Carles Pina i Estany <carles@pina.cat>
29142
29143 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
29144 grub_errno calls.
29145 * commands/acpi.c: Likewise.
29146 * commands/blocklist.c: Likewise.
29147 * commands/efi/loadbios.c: Likewise.
29148 * commands/i386/pc/drivemap.c: Likewise.
29149 * commands/loadenv.c: Likewise.
29150 * commands/memrw.c: Likewise.
29151 * commands/password.c: Likewise.
29152 * commands/videotest.c: Likewise.
29153 * disk/ata.c: Likewise.
29154 * disk/ata_pthru.c: Likewise.
29155 * disk/dmraid_nvidia.c: Likewise.
29156 * disk/ieee1275/nand.c: Likewise.
29157 * disk/ieee1275/ofdisk.c: Likewise.
29158 * disk/loopback.c: Likewise.
29159 * disk/lvm.c: Likewise.
29160 * disk/mdraid_linux.c: Likewise.
29161 * disk/raid.c: Likewise.
29162 * disk/raid6_recover.c: Likewise.
29163 * disk/scsi.c: Likewise.
29164 * efiemu/main.c: Likewise.
29165 * efiemu/mm.c: Likewise.
29166 * efiemu/pnvram.c: Likewise.
29167 * efiemu/symbols.c: Likewise.
29168 * font/font.c: Likewise.
29169 * fs/cpio.c: Likewise.
29170 * fs/hfsplus.c: Likewise.
29171 * fs/iso9660.c: Likewise.
29172 * fs/jfs.c: Likewise.
29173 * fs/minix.c: Likewise.
29174 * fs/ntfs.c: Likewise.
29175 * fs/ntfscomp.c: Likewise.
29176 * fs/reiserfs.c: Likewise.
29177 * fs/ufs.c: Likewise.
29178 * fs/xfs.c: Likewise.
29179 * gettext/gettext.c: Likewise.
29180 * include/grub/auth.h: Likewise.
29181 * kern/elf.c: Likewise.
29182 * kern/file.c: Likewise.
29183 * kern/ieee1275/init.c: Likewise.
29184 * kern/ieee1275/mmap.c: Likewise.
29185 * kern/ieee1275/openfw.c: Likewise.
29186 * kern/powerpc/dl.c: Likewise.
29187 * kern/sparc64/dl.c: Likewise.
29188 * lib/arg.c: Likewise.
29189 * loader/i386/bsd.c: Likewise.
29190 * loader/i386/bsdXX.c: Likewise.
29191 * loader/i386/efi/linux.c: Likewise.
29192 * loader/i386/efi/xnu.c: Likewise.
29193 * loader/i386/ieee1275/linux.c: Likewise.
29194 * loader/i386/linux.c: Likewise.
29195 * loader/i386/multiboot.c: Likewise.
29196 * loader/i386/pc/linux.c: Likewise.
29197 * loader/i386/pc/multiboot2.c: Likewise.
29198 * loader/i386/xnu.c: Likewise.
29199 * loader/ieee1275/multiboot2.c: Likewise.
29200 * loader/macho.c: Likewise.
29201 * loader/machoXX.c: Likewise.
29202 * loader/multiboot2.c: Likewise.
29203 * loader/multiboot_loader.c: Likewise.
29204 * loader/powerpc/ieee1275/linux.c: Likewise.
29205 * loader/sparc64/ieee1275/linux.c: Likewise.
29206 * loader/xnu.c: Likewise.
29207 * loader/xnu_resume.c: Likewise.
29208 * mmap/i386/pc/mmap.c: Likewise.
29209 * normal/menu_viewer.c: Likewise.
29210 * partmap/acorn.c: Likewise.
29211 * partmap/amiga.c: Likewise.
29212 * partmap/apple.c: Likewise.
29213 * script/lexer.c: Likewise.
29214 * term/gfxterm.c: Likewise.
29215 * term/i386/pc/serial.c: Likewise.
29216 * term/i386/pc/vga.c: Likewise.
29217 * term/ieee1275/ofconsole.c: Likewise.
29218 * term/terminfo.c: Likewise.
29219 * video/bitmap.c: Likewise.
29220 * video/efi_gop.c: Likewise.
29221 * video/efi_uga.c: Likewise.
29222 * video/fb/video_fb.c: Likewise.
29223 * video/i386/pc/vbe.c: Likewise.
29224 * video/readers/tga.c: Likewise.
29225 * video/video.c: Likewise.
29226
0ad46fd7 292272009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
29228
29229 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
29230 * commands/lspci.c: Likewise.
29231 * commands/probe.c: Likewise.
29232 * commands/xnu_uuid.c: Likewise.
29233 * conf/i386-coreboot.rmk: Likewise.
29234 * conf/i386-efi.rmk: Likewise.
29235 * conf/i386-ieee1275.rmk: Likewise.
29236 * conf/i386-pc.rmk: Likewise.
29237 * conf/powerpc-ieee1275.rmk: Likewise.
29238 * conf/sparc64-ieee1275.rmk: Likewise.
29239 * conf/x86_64-efi.rmk: Likewise.
29240 * fs/i386/pc/pxe.c: Likewise.
29241 * gettext/gettext.c: Likewise.
29242 * include/grub/efi/graphics_output.h: Likewise.
29243 * include/grub/i386/pc/memory.h: Likewise.
29244 * kern/env.c: Likewise.
29245 * kern/i386/qemu/startup.S: Likewise.
29246 * lib/i386/pc/biosnum.c: Likewise.
29247 * lib/i386/relocator.c: Likewise.
29248 * lib/i386/relocator_asm.S: Likewise.
29249 * lib/relocator.c: Likewise.
29250 * loader/i386/bsd.c: Likewise.
29251 * loader/i386/multiboot.c: Likewise.
29252 * loader/i386/pc/chainloader.c: Likewise.
29253 * loader/i386/xnu.c: Likewise.
29254 * loader/xnu.c: Likewise.
29255 * normal/main.c: Likewise.
29256 * normal/menu_text.c: Likewise.
29257 * util/getroot.c: Likewise.
29258 * util/grub-mkconfig_lib.in: Likewise.
29259 * util/grub.d/00_header.in: Likewise.
29260 * util/i386/pc/grub-mkimage.c: Likewise.
29261 * util/mkisofs/eltorito.c: Likewise.
29262 * util/mkisofs/exclude.h: Likewise.
29263 * util/mkisofs/hash.c: Likewise.
29264 * util/mkisofs/iso9660.h: Likewise.
29265 * util/mkisofs/joliet.c: Likewise.
29266 * util/mkisofs/mkisofs.c: Likewise.
29267 * util/mkisofs/mkisofs.h: Likewise.
29268 * util/mkisofs/multi.c: Likewise.
29269 * util/mkisofs/name.c: Likewise.
29270 * util/mkisofs/rock.c: Likewise.
29271 * util/mkisofs/tree.c: Likewise.
29272 * util/mkisofs/write.c: Likewise.
29273 * video/efi_gop.c: Likewise.
29274
009ec743
VS
292752009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
29276
29277 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
29278 size counting.
29279
0ad46fd7 292802009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
29281
29282 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
29283 * genmk.rb (class SCRIPT): Modify the target file instead of source.
29284
d3d30ea0
VS
292852009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29286
29287 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
29288 (GRUB_MOD_INIT(memrw)): Update help line.
29289
a34f5c70
VS
292902009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29291
29292 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
29293 Use grub_extcmd_t. All users updated.
29294 (options): New variable.
29295 (grub_cmd_read): Restructure for readability. Support "-v" option.
29296 (grub_cmd_write): Restructure for readability.
29297
0ad46fd7 292982009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
29299
29300 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
29301
0ad46fd7 293022009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
29303
29304 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
29305 with the actual contents of the correspondending make variable.
29306 * util/grub-mkrescue.in (pkglib_DATA): New variable.
29307 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
29308 specifying `*.lst' and `efiemu??.o'
29309
0ad46fd7 293102009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
29311
29312 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
29313 after function name.
29314 Noticed by Rene Engelhard <rene@debian.org>.
29315
dc77a799
VS
293162009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29317
29318 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
29319 (options): New variable.
29320 (iospace): Likewise.
29321 (grub_lspci_iter): List IO spaces if "-i" was given.
29322 (grub_cmd_lspci): Parse options.
29323 (GRUB_MOD_INIT(lspci)): Use extcmd.
29324 (GRUB_MOD_FINI(lspci)): Likewise.
29325
0ad46fd7 293262009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
29327
29328 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
29329 `function' keyword.
29330 Patch by Tony Mancill <tmancill@debian.org>.
29331
b5d5993b
VS
293322009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29333
29334 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
29335 (grub_uhci_portstatus): Likewise.
29336 (grub_uhci_portstatus): Add necessary delay.
11d18281 29337 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 29338
941903f2 293392009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 29340
941903f2 29341 * commands/acpi.c (options): Fix capitalizations and/or full stops.
29342 (GRUB_MOD_INIT): Likewise.
29343 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 29344 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
29345 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 29346 * commands/efi/loadbios.c (enable_rom_area): Likewise.
29347 (enable_rom_area): Likewise.
29348 (GRUB_MOD_INIT): Likewise.
29349 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29350 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
29351 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29352 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
29353 * commands/hexdump.c (options): Likewise.
29354 * commands/i386/cpuid.c (options): Likewise.
29355 (GRUB_MOD_INIT): Likewise.
29356 * commands/i386/pc/drivemap.c (options): Likewise.
29357 (GRUB_MOD_INIT): Likewise.
29358 * commands/i386/pc/halt (options): Likewise.
29359 (GRUB_MOD_INIT): Likewise.
29360 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29361 * commands/i386/pc/pxecmd.c (options): Likewise.
29362 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
29363 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
29364 * commands/keystatus.c (options): Likewise.
29365 (GRUB_MOD_INIT): Likewise.
29366 * commands/loadenv.c (options): Likewise.
29367 * commands/ls.c (options): Likewise.
29368 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29369 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29370 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29371 * commands/parttool.c (helpmsg): Likewise.
29372 * commands/probe.c (options): Likewise.
29373 * commands/read.c (GRUB_MOD_INIT): Likewise.
29374 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
29375 * commands/search.c (options): Likewise.
29376 * commands/sleep.c (options): Likewise.
29377 * commands/test.c (GRUB_MOD_INIT): Likewise.
29378 * commands/true.c (GRUB_MOD_INIT): Likewise.
29379 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
29380 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
29381 * lib/arg.c (help_options): Likewise.
e9bbb4e7 29382 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
29383 `$(XGETTEXT)'.
98a50553 29384 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 29385
0ad46fd7 293862009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 29387
ef3c2c3a 29388 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
29389 instead of specifying them explicit.
29390
7922f68b
RM
293912009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29392
29393 * NEWS: Add grub-probe support for GNU/Hurd.
29394
537ce47f
RM
293952009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29396
29397 * NEWS: gettext was added after 1.97.
29398
9b214e3a
RM
293992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29400
29401 * util/mkisofs/msdos_partition.h: New file (based on
29402 include/grub/msdos_partition.h).
29403 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
29404 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
29405 (ld_options, main): Recognize --protective-msdos-label.
29406 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
29407 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
29408 (padblock_write): If `use_protective_msdos_label' is set, patch a
29409 protective DOS-style label in the output image.
29410
29411 * util/grub-mkrescue.in: Use --protective-msdos-label.
29412
e9309813
RM
294132009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29414
29415 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
29416 boot.
29417
0ae56929
RM
294182009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29419
29420 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
29421 variables.
29422 (ld_options, main): Recognize `--embedded-boot'.
29423 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
29424 declarations.
29425 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
29426 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
29427 (padblock_write): Likewise. Rewrite to support embedded boot image.
29428
29429 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
29430 for BIOS-based disk boot instead of only ElTorito.
29431
b15937b1
RM
294322009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29433
29434 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
29435 build (not needed for bootstrap).
29436
52cc3ce0
RM
294372009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29438
29439 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
29440 from i386-pc build (not needed for bootstrap).
29441 Rewrite a pair of strings.
29442
36f5ff04
RM
294432009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29444
29445 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
29446
973c6c85 294472009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
29448
29449 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
29450
05d21547
AB
294512009-12-21 Andreas Born <futur.andy@googlemail.com>
29452
29453 * kern/env.c (grub_env_context_open): Mark exported variable for
29454 reexport.
29455
0175d51f
AB
294562009-12-21 Andreas Born <futur.andy@googlemail.com>
29457
29458 * kern/env.c (grub_env_export): Create nonexistent variables before
29459 exporting.
29460
7f39d92f 294612009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 29462
7f39d92f 29463 * include/grub/auth.h: Include `<grub/i18n.h>'.
29464 (GRUB_GET_PASSWORD): Gettextizze string.
29465 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
29466 menu_text.c.
29467 (grub_utf8_to_ucs4_alloc): Fix indentation.
29468 (grub_print_ucs4): Likewise.
29469 (grub_getstringwidth): Likewise.
29470 (print_message_indented): New declaration.
29471 * normal/auth.c: Include `<grub/i18n.h>'.
29472 (grub_auth_check_authentication): Gettexttize string.
29473 * normal/cmdline.c: Include `<grub/i18n.h>'.
29474 (grub_cmdline_get): Gettextizze.
29475 * normal/color.c: Include `<grub/i18n.h>'.
29476 (grub_parse_color_name_pair): Gettexttize strings.
29477 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
29478 string (use `print_message_indented').
29479 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
29480 `include/grub/normal.h'.
29481 (print_message_indented): Renamed to ...
29482 (grub_print_message_indented): ... this. Remove `static' qualifer (now
29483 used in normal/main.c).
29484 (print_message): Use `grub_print_message_indented' instead of
29485 `print_message_indented'.
29486 (print_timeout): Likewise.
29487 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
29488 (grub_normal_print_device_info): Gettexttize strings.
29489 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
29490
3041d898
VS
294912009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29492
29493 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
29494 of arguments. Return number of tokens and not arguments. All users
29495 updated.
29496
de15bf8e
VS
294972009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29498
29499 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
29500 non-MSDOS paritions.
29501
e0a6ca52
VS
295022009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
29503
29504 * include/grub/types.h (UNUSED): Removed since it conflicts with
29505 NetBSD headers. All users changed to direct __attribute__ ((unused)).
29506 Reported by Grégoire Sutre.
29507
b99518d1 295082009-12-19 Carles Pina i Estany <carles@pina.cat>
29509
29510 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
29511 (grub_print_ucs4_alloc): Likewise.
29512 (grub_getstringwidth): Likewise.
29513 * normal/main.c (grub_normal_init_page): Gettextize version string.
29514 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
29515 (getstringwidth): Renamed to ...
29516 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
29517 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
29518 (grub_print_ucs4): Remove `static' qualifer (now used in
29519 normal/main.c).
29520 * po/POTFILES: Add normal/main.c.
29521
bfd5e52b 295222009-12-19 Carles Pina i Estany <carles@pina.cat>
29523
29524 * normal/menu_text.c (STANDARD_MARGIN): New macro.
29525 (print_message_indented): Add `margin_left' and `margin_right'
29526 parameters.
29527 (print_message): Update `print_message_indented' calls. Adds '\n' to the
29528 strings.
29529 (print_timeout): Use `print_message_indented' to print the message.
29530 Deletes `second_stage' parameter.
29531 (run_menu): Update `print_timeout' calls.
29532
5a1ad2b9
VS
295332009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29534
29535 Fix console palette on OpenFirmware.
29536
29537 * term/ieee1275/ofconsole.c (MAX): Removed.
29538 (colors): Redone based on VGA palette.
29539 (grub_ofconsole_setcolor): Discard brightness bit since only 8
29540 colors are supported.
29541 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
29542
b045f00a
VS
295432009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29544
29545 Fix potential EfiEmu double prepare.
29546
29547 * efiemu/main.c (prepared): New variable
29548 (grub_efiemu_unload): Set prepare to '0'.
29549 (grub_efiemu_prepare): Return if already prepared. Set prepared.
29550
29551 set_virtual_address_map support.
29552
29553 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
29554 prototype.
29555 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
29556 prototype.
29557 (grub_efiemu_crc32): Likewise.
29558 (grub_efiemu_crc64): Likewise.
29559 (grub_efiemu_set_virtual_address_map): Likewise.
29560 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
29561 New definition.
29562 (grub_autoefi_set_virtual_address_map): Likewise.
29563 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
29564 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
29565 Restructure flow to accomodate it.
29566 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
29567 (grub_efiemu_crc): Recompute CRC32.
29568 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
29569 (efiemu_ptv_relocated): ... this. Made global. All users updated.
29570 * efiemu/symbols.c (relocated_handle): New variable.
29571 (grub_efiemu_free_syms): Free relocated_handle.
29572 (grub_efiemu_alloc_syms): Allocate relocated_handle.
29573 (grub_efiemu_write_sym_markers): New function.
29574 (grub_efiemu_set_virtual_address_map): Likewise.
29575
29576 Newer XNU parameters.
29577
29578 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
29579 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
29580 (grub_xnu_fill_devicetree): New prototype.
29581 (grub_xnu_heap_real_start): New variable.
29582 * loader/xnu.c (get_name_ptr): New function.
29583 (grub_xnu_load_driver): Fill namelen and name.
29584
29585 64-bit xnu support.
29586
29587 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
29588 and 'loader/macho64.c'.
29589 * conf/i386-pc.rmk: Likewise.
29590 * conf/x86_64-efi.rmk: Likewise.
29591 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
29592 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
29593 * include/grub/macho.h (grub_macho_segment64): New structure.
29594 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
29595 (grub_macho_size32): ... to this.
29596 (grub_macho32_get_entry_point): Renamed from ...
29597 (grub_macho_get_entry_point32): ... to this.
29598 (grub_macho_contains_macho64): New prototype.
29599 (grub_macho_size64): Likewise.
29600 (grub_macho_get_entry_point64): Likewise.
29601 (grub_macho32_load): Renamed from ...
29602 (grub_macho_load32): ... to this.
29603 (grub_macho32_filesize): Renamed from ...
29604 (grub_macho_filesize32): ... to this.
29605 (grub_macho32_readfile): Renamed from ...
29606 (grub_macho_readfile32): ... to this.
29607 (grub_macho_filesize64): New prototype.
29608 (grub_macho_readfile64): Likewise.
29609 (grub_macho_parse32): Likewise.
29610 (grub_macho_parse64): Likewise.
29611 * loader/macho.c: Split into ...
29612 * loader/machoXX.c: ... and this. Replace 32 with XX.
29613 * loader/macho32.c: New file.
29614 * loader/macho64.c: Likewise.
29615 * loader/xnu.c (grub_xnu_is_64bit): New variable.
29616 (grub_cmd_xnu_kernel): Make 32-bit only.
29617 (grub_cmd_xnu_kernel64): New function.
29618 (grub_xnu_load_driver): Support Mach-O 64.
29619 (grub_cmd_xnu_mkext): Likewise.
29620 * util/grub.d/30_os-prober.in (osx_entry): New function.
29621 Generate entries for 64-bit boot too.
29622
29623 Eliminate ad-hoc tree format in XNU and EfiEmu.
29624
29625 * efiemu/main.c (grub_efiemu_prepare): Update comment.
29626 * efiemu/pnvram.c: Rewritten to use environment variables.
29627 All users updated.
29628
29629 Inline utf16_to_utf8.
29630
29631 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
29632 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
29633 All users updated.
29634 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
29635
29636 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
29637 * commands/usbtest.c (grub_usb_get_string): ... move here.
29638 (usb_print_str): Fix error handling.
29639 * include/grub/usb.h (grub_usb_get_string): Remove.
29640
29641 UTF-8 to UTF-16 transformation.
29642
29643 * conf/common.rmk (pkglib_MODULES): Add charset.mod
29644 (charset_mod_SOURCES): New variable.
29645 (charset_mod_CFLAGS): Likewise.
29646 (charset_mod_LDFLAGS): Likewise.
29647 * include/grub/utf.h: New file.
29648 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
29649
29650 Support for device properties.
29651
29652 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
29653 (grub_xnu_devprop_device_header): Likewise.
29654 (grub_xnu_devprop_device_descriptor): Likewise.
29655 (grub_xnu_devprop_add_device): New prototype.
29656 (grub_xnu_devprop_remove_device): Likewise.
29657 (grub_xnu_devprop_remove_property): Likewise.
29658 (grub_xnu_devprop_add_property_utf8): Likewise.
29659 (grub_xnu_devprop_add_property_utf16): Likewise.
29660 (grub_cpu_xnu_init): Likewise.
29661 (grub_cpu_xnu_fini): Likewise.
29662 (grub_cpu_xnu_unload): Likewise.
29663 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
29664 (property_descriptor): Likewise.
29665 (devices): New variable.
29666 (grub_xnu_devprop_remove_property): New function.
29667 (grub_xnu_devprop_add_device): Likewise.
29668 (grub_xnu_devprop_remove_device): Likewise.
29669 (grub_xnu_devprop_add_property): Likewise.
29670 (grub_xnu_devprop_add_property_utf8): Likewise.
29671 (grub_xnu_devprop_add_property_utf16): Likewise.
29672 (hextoval): Likewise.
29673 (grub_cpu_xnu_fill_devprop): Likewise.
29674 (grub_cmd_devprop_load): Likewise.
29675 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
29676 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
29677 (cmd_devprop_load): New variable.
29678 (grub_cpu_xnu_init): New function.
29679 (grub_cpu_xnu_fini): Likewise.
29680 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
29681 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
29682 (grub_cmd_xnu_devtree): Likewise.
29683 (hextoval): New function.
29684 (unescape): Likewise.
29685 (grub_xnu_fill_devicetree): Likewise.
29686
29687 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
29688 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
29689
0945f181
VS
296902009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29691
29692 Workaround for broken ATI VBE.
29693
29694 * video/i386/pc/vbe.c (last_set_mode): New variable.
29695 (grub_vbe_set_video_mode): Set 'last_set_mode'.
29696 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
29697 (grub_video_vbe_setup): Don't check for reserved flag.
29698
0ad46fd7 296992009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
29700
29701 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
29702 the `find' command.
29703
c179ebe4
VS
297042009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
29705
29706 UUID support for HFS.
29707
29708 * fs/hfs.c (grub_hfs_uuid): New function.
29709 (grub_hfs_fs): New value .uuid.
29710 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
29711
0ad46fd7 297122009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
29713
29714 Fix a segfault with parsing unknown long options.
29715
29716 * util/grub-mkrelpath.c (options): Zero terminate it.
29717
c4a3e41a
CPE
297182009-12-13 Carles Pina i Estany <carles@pina.cat>
29719
29720 * include/grub/misc.h (grub_puts): New declaration.
29721 (grub_puts_): Likewise.
a22008a6 29722 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
29723 (grub_puts_): Likewise.
29724
2e8a7602
RM
297252009-12-13 Robert Millan <rmh.grub@aybabtu.com>
29726
29727 * util/grub-probe.c (probe): Improve error message.
29728
b50b77b9
RM
297292009-12-13 Robert Millan <rmh.grub@aybabtu.com>
29730
29731 * loader/i386/multiboot_elfxx.c
29732 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
29733 initialization.
29734
297352009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
29736
29737 Relocator framework
29738
29739 * loader/i386/xnu_helper.S: Removed. All users updated.
29740 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
29741 (relocator_mod_SOURCES): New variable.
29742 (relocator_mod_CFLAGS): Likewise.
29743 (relocator_mod_LDFLAGS): Likewise.
29744 (relocator_mod_ASFLAGS): Likewise.
29745 * conf/x86_64.rmk: Likewise.
29746 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
29747 (grub_multiboot_payload_entry_offset): Likewise.
29748 (grub_multiboot_forward_relocator): Likewise.
29749 (grub_multiboot_forward_relocator_end): Likewise.
29750 (grub_multiboot_backward_relocator): Likewise.
29751 (grub_multiboot_backward_relocator_end): Likewise.
29752 (grub_multiboot_payload_eip): New variable.
29753 (grub_multiboot_payload_orig): Likewise.
29754 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
29755 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
29756 * include/grub/i386/memory.h
29757 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
29758 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
29759 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
29760 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
29761 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
29762 * include/grub/i386/relocator.h: New file.
29763 * include/grub/x86_64/relocator.h: Likewise.
29764 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
29765 (XNU_RELOCATOR): New macro.
29766 (grub_xnu_launcher_start): Remove.
29767 (grub_xnu_launcher_end): Likewise.
29768 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
29769 (grub_xnu_heap_real_start): Remove.
29770 (grub_xnu_heap_start): Change to void *. All users updated.
29771 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
29772 * lib/i386/relocator.c: New file.
29773 * lib/i386/relocator_asm.S: Likewise.
29774 * lib/i386/relocator_backward.S: Likewise.
29775 * lib/mips/relocator.c: Likewise.
29776 * lib/mips/relocator_asm.S: Likewise.
29777 * lib/relocator.c: Likewise.
29778 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
29779 (entry): Removed.
29780 (playground): Likewise.
29781 (grub_multiboot_payload_orig): New variable.
29782 (grub_multiboot_payload_dest): Likewise.
29783 (grub_multiboot_payload_size): Likewise.
29784 (grub_multiboot_payload_eip): Likewise.
29785 (grub_multiboot_payload_esp): Likewise.
29786 (grub_multiboot_boot): Use grub_relocator32_boot.
29787 (grub_multiboot_unload): Free relocators.
29788 (grub_multiboot): Setup stack. Use relocators.
29789 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
29790 (grub_multiboot_load_elfXX): Use relocators.
29791 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
29792 (grub_multiboot_payload_size): Likewise.
29793 (grub_multiboot_payload_dest): Likewise.
29794 (grub_multiboot_payload_entry_offset): Likewise.
29795 (grub_multiboot_forward_relocator): Likewise.
29796 (grub_multiboot_backward_relocator): Likewise.
29797 (grub_multiboot_real_boot): Likewise.
29798 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
29799 (grub_xnu_entry_point): Likewise.
29800 (grub_xnu_arg1): Likewise.
29801 (grub_xnu_stack): Likewise.
29802 (grub_xnu_launch): Removed.
29803 (grub_xnu_boot_resume): New function.
29804 (grub_xnu_boot): Use relocators.
29805 * loader/i386/xnu_helper.S: Removed.
29806 * loader/xnu.c (grub_xnu_heap_start): New variable.
29807 (grub_xnu_heap_size): Likewise.
29808 (grub_xnu_heap_malloc): Use relocators.
29809 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
29810
29eb90c6
VS
298112009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
29812
29813 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
29814 anything.
29815
31027430
CPE
298162009-12-13 Carles Pina i Estany <carles@pina.cat>
29817
29818 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
29819 GRUB_ERR_NONE before calling grub_env_set.
29820
dc0c71d9
RM
298212009-12-12 Robert Millan <rmh@aybabtu.com>
29822
29823 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
29824 * genmk.rb (video): New variable.
29825 (CLEANFILES, VIDEOFILES): Add #{video}.
29826 (#{video}): New target rule.
29827 * genvideolist.sh: New file.
29828 * Makefile.in (pkglib_DATA): Add video.lst.
29829 (video.lst): New target rule.
29830 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
29831 `video.lst'.
29832 * util/grub.d/30_os-prober.in: Replace `vbe' with
29833 ${GRUB_VIDEO_BACKEND}.
29834
2a4bfcf0
RM
298352009-12-11 Robert Millan <rmh.grub@aybabtu.com>
29836
29837 * THANKS: Add David Miller.
29838
2a3aa4d5
RM
298392009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
29840
29841 libpciaccess support.
29842
29843 * Makefile.in (LIBPCIACCESS): New variable.
29844 (enable_grub_emu_pci): Likewise.
29845 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
29846 util/pci.c and commands/lspci.c.
29847 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
29848 * configure.ac (grub-emu-pci): New option.
29849 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
29850 (grub_pci_device_unmap_range): Likewise.
29851 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
29852 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
29853 (grub_pci_address_t) [!GRUB_UTIL]: New type.
29854 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
29855 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
29856 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
29857 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
29858 * include/grub/pciutils.h: New file.
29859 * util/pci.c: Likewise.
29860
0ad46fd7 298612009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
29862
29863 * util/misc.c: Don't include <errno.h> twice.
29864
0ad46fd7 298652009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
29866
29867 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
29868 name in an error message.
29869 (grub_biosdisk_rw): Likewise.
29870
2e59983c
VS
298712009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29872
29873 Eliminate NTFS 4Gib barrier.
29874
29875 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
29876 (read_run_data): Likewise.
29877 (grub_ntfs_read_run_list): Likewise.
29878 (grub_ntfs_read_block): Likewise.
29879 (grub_ntfs_iterate_dir): Likewise.
29880 (read_mft): Likewise.
29881 (read_data): Likewise.
29882 Use COM_LOG_LEN.
29883 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
29884 to avoid 64-bit division
29885 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
29886 (grub_ntfs_rlst): Use grub_disk_addr_t.
29887
71ee178a
VS
298882009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29889
29890 Eliminate grub-fstest 4Gib barrier.
29891
29892 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
29893 (read_file): Fix error reporting.
29894
2520d4b8
VS
298952009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29896
29897 Eliminate hexdump 4Gib barrier.
29898
29899 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
29900 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
29901
e1f27065
VS
299022009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29903
29904 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
29905 Fixes amarsh bug.
29906
1a0f7f45
RM
299072009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
29908
29909 Remove miscellaneous files in distclean target.
29910
29911 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
29912
c631d9fb
CW
299132009-12-09 Colin Watson <cjwatson@ubuntu.com>
29914
29915 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
29916 if they're already set. This resolves the conflict between my
29917 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
29918 fixing the --grub-probe option again.
29919 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
29920 change on 2009-10-06, so that we now once again source
29921 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
29922
7c7b6106
RM
299232009-12-08 Robert Millan <rmh.grub@aybabtu.com>
29924
29925 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
29926 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
29927 `util/devicemap.c'.
29928
e3069ec1
CPE
299292009-12-08 Carles Pina i Estany <carles@pina.cat>
29930
29931 * include/grub/misc.h (grub_printf_): New declaration.
29932 * kern/misc.c (grub_printf_): New definition.
29933 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
29934 instead of `grub_printf' and `_'.
29935 * normal/menu_entry.c (store_completion): Likewise.
29936 (run): Likewise.
29937 (grub_menu_entry_run): Likewise.
29938 * normal/menu_text.c (grub_wait_after_message): Likewise.
29939 (notify_booting): Likewise.
29940 (notify_fallback): Likewise.
29941 (notify_execution_failure): Likewise.
29942
d6ceebf1
CW
299432009-12-07 Colin Watson <cjwatson@ubuntu.com>
29944
29945 * configure.ac: Check for vasprintf.
29946 * util/misc.c (asprintf): Move allocation from here ...
29947 (vasprintf): ... to here. New function.
29948 (xasprintf): New function.
29949 * include/grub/util/misc.h (vasprintf, xasprintf): Add
29950 prototypes.
29951 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
29952 * util/grub-mkfont.c (write_font): Likewise.
29953 * util/grub-probe.c (probe): Likewise.
29954 * util/hostdisk.c (make_device_name): Likewise.
29955
de6daa8b
DM
299562009-12-06 David S. Miller <davem@sunset.davemloft.net>
29957
29958 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
29959 anything even prefixed with 'cdrom' as a cdrom.
29960
0ad46fd7 299612009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
29962
29963 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
29964 mount points.
29965
98d3dc02
CPE
299662009-12-05 Carles Pina i Estany <carles@pina.cat>
29967
29968 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
29969 grub_gettext_msg_list.
29970 (grub_gettext_gettranslation_from_position): Return const char *
29971 and not char *.
a2c1332b 29972 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
29973 returns from the list if existing there.
29974 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
29975 (grub_gettext_delete_list): Delete the list.
29976 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
29977 lang environment variable is changed.
29978 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
29979
b283f108
VS
299802009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
29981
29982 Rename kernel.mod to kernel.img.
29983
29984 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
29985 (kernel_mod_EXPORTS): Rename to ...
29986 (kernel_img_EXPORTS): ... this.
29987 (kernel_mod_SOURCES): Rename to ...
29988 (kernel_img_SOURCES): ... this.
29989 (kernel_mod_HEADERS): Rename to ...
29990 (kernel_img_HEADERS): ... this. All users updated.
29991 (kernel_mod_CFLAGS): Rename to ...
29992 (kernel_img_CFLAGS): ... this.
29993 (kernel_mod_ASFLAGS): Rename to ...
29994 (kernel_img_ASFLAGS): ... this.
29995 (kernel_mod_LDFLAGS): Rename to ...
29996 (kernel_img_LDFLAGS): ... this.
29997 * conf/x86_64-efi.rmk: Likewise.
29998 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
29999 (read_kernel_image): ... this. All users updated.
30000 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
30001
69055f8a
CPE
300022009-12-05 Carles Pina i Estany <carles@pina.cat>
30003
30004 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
30005 (print_spaces): New function.
30006 (grub_print_ucs4): New function.
30007 (getstringwidth): New function.
30008 (print_message_indented): New function.
30009 (print_message): Gettexttize strings using print_message_indented.
30010 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
30011 width.
30012 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 30013 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
30014 Gettextize.
30015 * normal/menu_entry.c (store_completion): Cleanup the gettextized
30016 string.
30017 (run): Likewise.
30018 (grub_menu_entry_run): Likewise.
30019 * PO/POTFILES: Add normal/menu_entry.c.
30020
f616f51c
VS
300212009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30022
30023 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
30024
57bbe3be
CPE
300252009-12-05 Carles Pina i Estany <carles@pina.cat>
30026
30027 * util/grub-install.in: Install gettext .mo files.
30028 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
30029
013d67a1
CPE
300302009-12-05 Carles Pina i Estany <carles@pina.cat>
30031
30032 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
30033 grub_dprintf.
30034
fb954db0
RM
300352009-12-05 Robert Millan <rmh.grub@aybabtu.com>
30036
30037 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
30038 non-firmware-dependant one in realmode.S takes precedence.
30039
6b8474f8
RM
300402009-12-04 Robert Millan <rmh.grub@aybabtu.com>
30041
30042 * commands/halt.c: Replace misc arch-specific headers with
30043 `<grub/misc.h>'.
30044 * commands/reboot.c: Likewise.
30045 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
30046 `<grub/misc.h>'.
30047 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
30048 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
30049 (kernel_img_SOURCES): ... to here.
30050
30051 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
30052 * include/grub/i386/pc/init.h: Likewise.
30053 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
30054 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30055
30056 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
30057
30058 * include/grub/i386/halt.h: Remove.
30059 * include/grub/i386/reboot.h: Likewise.
30060
30061 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
30062
4b2e6ca2
DM
300632009-12-03 David S. Miller <davem@sunset.davemloft.net>
30064
30065 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
30066 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
30067 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
30068 "progname.h"
30069 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30070 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30071 (usage): Add missing comma in printf.
30072
5239348f
RM
300732009-12-02 Robert Millan <rmh.grub@aybabtu.com>
30074
30075 Use the same reboot approach on i386 coreboot and qemu as we do on
30076 BIOS.
30077
30078 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
30079 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
30080 * kern/i386/reboot.c: Remove.
30081 * include/grub/i386/reboot.h (grub_reboot): Export function.
30082 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
30083 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
30084 0xf000:0xfff0 instead of 0xffff:0x0000.
30085 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
30086 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
30087
ef34cbd4
RM
300882009-11-30 Robert Millan <rmh.grub@aybabtu.com>
30089
30090 Fix $srcdir != $objdir build.
30091
30092 * Makefile.in (po/%.po): Rewrite as ...
30093 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
30094
dc9837ea
ST
300952009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
30096
30097 Fix GNU/Hurd grub-install crash.
30098 * util/grub-probe.c (probe): Try to access `path' only when it is not
30099 NULL.
30100
2f857f98
VS
301012009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30102
30103 Correct module naming.
30104
30105 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30106 (GRUB_MOD_INIT(efi_uga)): ... to this
30107 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30108 (GRUB_MOD_FINI(efi_uga)): ... to this
30109 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30110 (GRUB_MOD_INIT(efi_gop)): ... to this
30111 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30112 (GRUB_MOD_FINI(efi_gop)): ... to this
30113
c5448046
RM
301142009-11-28 Robert Millan <rmh.grub@aybabtu.com>
30115
30116 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
30117 translatable.
30118 (usage): Translate `arg' strings using gettext().
30119 Thanks to Jordi Mallach for the suggestion.
30120
c85184ad
VS
301212009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30122
30123 GOP support. Based on patch from Bean
30124 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30125
30126 * video/efi_gop.c: New file.
30127 * include/grub/efi/graphics_output.h: Likewise.
30128 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
30129 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30130 variables.
30131 * conf/x86_64-efi.rmk: Likewise.
30132
8a4c48d8
VS
301332009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30134
30135 Rename efi_fb to efi_uga.
30136
30137 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30138 'efi_uga.mod'.
30139 (efi_fb_mod_SOURCES): Rename this ...
30140 (efi_uga_mod_SOURCES): ... to this.
30141 (efi_fb_mod_CFLAGS): Rename this ...
30142 (efi_uga_mod_CFLAGS): ... to this.
30143 (efi_fb_mod_LDFLAGS): Rename this ...
30144 (efi_uga_mod_LDFLAGS): ... to this.
30145 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30146 'efi_uga.mod'.
30147 (efi_fb_mod_SOURCES): Rename this ...
30148 (efi_uga_mod_SOURCES): ... to this.
30149 (efi_fb_mod_CFLAGS): Rename this ...
30150 (efi_uga_mod_CFLAGS): ... to this.
30151 (efi_fb_mod_LDFLAGS): Rename this ...
30152 (efi_uga_mod_LDFLAGS): ... to this.
30153 * video/efi_fb.c: Move this ...
30154 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
30155
fb6c1a7b
RM
301562009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30157
30158 * po/README: New file. Explain our PO file workflow.
30159
3bc7896c
RM
301602009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30161
30162 * po/ChangeLog: Remove. Move relevant entries back to ...
30163 * ChangeLog: ... here.
30164 * po/ca.po: Remove (now handled by TLP).
30165 * po/id.po: Likewise.
30166 * po/zh_CN.po: Likewise.
30167 * Makefile.in (LINGUAS): Initialize in a way that supports
30168 empty set.
30169
9ed4841d
RM
301702009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30171
30172 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
30173 reliing on po/LINGUAS.
30174 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
30175 (po/%.po): ... this.
30176
0ad46fd7 301772009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
30178
30179 * util/i386/efi/grub-mkimage.c: Include "progname.h".
30180 (main): Use `program_name' instead of nonexistent `progname'.
30181
e30dd392
FZ
301822009-11-26 Felix Zielcke <fzielcke@z-51.de>
30183
30184 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30185 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
30186
7656de4f
RM
301872009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30188
30189 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
30190 commit.
30191 * conf/i386-efi.rmk: Likewise.
30192 * conf/i386-ieee1275.rmk: Likewise.
30193 * conf/powerpc-ieee1275.rmk: Likewise.
30194 * conf/sparc64-ieee1275.rmk: Likewise.
30195 * conf/x86_64-efi.rmk: Likewise.
30196
db77c4d4
FZ
301972009-11-26 Felix Zielcke <fzielcke@z-51.de>
30198
30199 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
30200
a755bb04
FZ
302012009-11-26 Felix Zielcke <fzielcke@z-51.de>
30202
30203 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
30204
8a4c07fd
RM
302052009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30206
30207 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
30208 (grub_mkdevicemap_SOURCES): New variable.
30209 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
30210 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
30211 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
30212 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
30213 (grub_mkdevicemap_SOURCES): Remove.
30214 * conf/i386-efi.rmk: Likewise.
30215 * conf/i386-ieee1275.rmk: Likewise.
30216 * conf/i386-pc.rmk: Likewise.
30217 * conf/powerpc-ieee1275.rmk: Likewise.
30218 * conf/sparc64-ieee1275.rmk: Likewise.
30219 * conf/x86_64-efi.rmk: Likewise.
30220 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
30221 (usage): Fix strings to use `program_name'.
30222 (main): Initialize gettext.
30223 * util/grub-editenv.c: Likewise.
30224 * util/grub-emu.c: Likewise.
30225 * util/grub-fstest.c: Likewise.
30226 * util/grub-mkdevicemap.c: Likewise.
30227 * util/grub-mkfont.c: Likewise.
30228 * util/grub-mkrelpath.c: Likewise.
30229 * util/grub-pe2elf.c: Likewise.
30230 * util/grub-probe.c: Likewise.
30231 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30232 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30233 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30234
30235 * util/misc.c: Include `"progname.h"'.
30236 (progname): Remove variable.
30237 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
30238
6f61ed55
FZ
302392009-11-25 Felix Zielcke <fzielcke@z-51.de>
30240
30241 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
30242 printf and print a newline after the menuentry header line.
30243 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
30244
f022876b
FZ
302452009-11-25 Felix Zielcke <fzielcke@z-51.de>
30246
30247 autoconf >= 2.60 support $(localedir).
30248
30249 * INSTALL: Note that autoconf 2.60 is required.
30250 * configure.ac (AC_PREREQ): Bump to 2.60.
30251 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
30252 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
30253
6717926e
YB
302542009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
30255
30256 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
30257 aclocal is run.
30258
08806a54
RM
302592009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30260
30261 * normal/main.c (grub_normal_read_line): Fix off-by-one
30262 buffer overflow.
30263
13b33fba
RM
302642009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30265
30266 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
30267 "parser.grub" in grub_command_execute() call.
30268
4a8572e9
CPE
302692009-11-24 Carles Pina i Estany <carles@pina.cat>
30270
30271 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
30272 * conf/i386-efi.rmk: Likewise.
30273 * conf/i386-ieee1275.rmk: Likewise.
30274 * conf/i386-pc.rmk: Likewise.
30275 * conf/powerpc-ieee1275.rmk: Likewise.
30276 * conf/sparc64-ieee1275.rmk: Likewise.
30277 * conf/x86_64-efi.rmk: Likewise.
30278 * gettext/gettex.c: Include <grub/i18n.h>.
30279 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
30280 here ...
30281 * include/grub/i18n.h: ... to here
30282 * include/grub/i18n.h: ... to here.
30283 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 30284 (grub_gettext_dummy): Move above user.
4a8572e9 30285
bee48093
FZ
302862009-11-24 Felix Zielcke <fzielcke@z-51.de>
30287
30288 * util/Makefile.in (install-local): Convert a `for' into a normal
30289 shell expansion.
30290
a031e91c
RM
302912009-11-24 Robert Millan <rmh.grub@aybabtu.com>
30292
30293 * autogen.sh: Add automake call.
30294 * config.guess: Remove.
30295 * config.sub: Likewise.
30296 * install-sh: Likewise.
30297
26bec39d
FZ
302982009-11-24 Felix Zielcke <fzielcke@z-51.de>
30299
30300 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
30301
8e2532fd
FZ
303022009-11-24 Felix Zielcke <fzielcke@z-51.de>
30303
30304 * util/Makefile.in (install-local): Convert a make `$(foreach)'
30305 function to a normal shell `for'.
30306
fefa1b7d
FZ
303072009-11-24 Felix Zielcke <fzielcke@z-51.de>
30308
30309 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30310
4501250b
FZ
303112009-11-24 Felix Zielcke <fzielcke@z-51.de>
30312
30313 * util/grub-mkrelpath.c: New file.
30314 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
30315 (grub_mkrelpath_SOURCES): New variable.
30316 * include/grub/util/misc.h: New function prototype.
30317 * util/misc.c (make_system_path_relative_to_its_root): New function.
30318
30319 * util/grub-mkconfig_lib.in (bindir): New variable.
30320 (grub_mkrelpath): Likewise.
30321 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
30322
30323 * util/probe.c (probe): Make the file path relative to its root.
30324 Change a info message to use the GRUB path. Enable again the
30325 check if we can read the file with GRUB facilities.
30326
30327 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
30328 to its root.
30329
11d9778b
FZ
303302009-11-24 Felix Zielcke <fzielcke@z-51.de>
30331
30332 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
30333 platform.
30334
4465287d
FZ
303352009-11-24 Felix Zielcke <fzielcke@z-51.de>
30336
30337 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
30338 strncmp().
30339
62b47f22
FZ
303402009-11-24 Felix Zielcke <fzielcke@z-51.de>
30341
30342 * util/getroot.c (grub_util_is_dmraid): New function.
30343 (grub_util_get_dev_abstraction): Treat dmraid and multipath
30344 devices as normal ones, not as LVM.
30345
1eafb9b9 303462009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
30347
30348 * conf/common.rmk: Add grub-gettext_lib target and updates
30349 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
30350 LDFLAGS.
30351 * gettext/gettext.c: New file. (Reads mo files).
30352 * include/grub/file.h (grub_file_pread): New prototype.
30353 * include/grub/i18n.h (_): New prototype.
30354 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
30355 prototypes.
30356 * kern/misc.c (grub_gettext_dummy): New function.
30357 * normal/menu_text.c: Include <grub/i18n.h>.
30358 * normal/menu_text.c (print_timeout): Gettexttize string.
30359 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
30360 * po/POTFILES: Add `normal/menu_text.c'.
30361 * po/ca.po: Add new translations.
c3ea6bd4
CPE
30362 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
30363 gettext module and defines locale_dir and lang in grub.cfg.
30364 * NEWS: Add gettext support.
30365
0fdb2568
RM
303662009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30367
30368 * util/hostdisk.c: Include `<grub/i18n.h>'.
30369 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
30370 (make_device_name): Rewrite using asprintf.
30371 (convert_system_partition_to_system_disk): Replace 0 with NULL.
30372 (find_system_device): If a device is not found, generate one just
30373 by reusing the OS path name.
30374 (read_device_map): Make it permissible for device.map not to exist.
30375
f515aa62
RM
303762009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30377
30378 * script/sh/execute.c: Move from here ...
30379 * script/execute.c: ... to here. Update all users.
30380 * script/sh/function.c: Move from here ...
30381 * script/function.c: ... to here. Update all users.
30382 * script/sh/lexer.c: Move from here ...
30383 * script/lexer.c: ... to here. Update all users.
30384 * script/sh/main.c: Move from here ...
30385 * script/main.c: ... to here. Update all users.
30386 * script/sh/parser.y: Move from here ...
30387 * script/parser.y: ... to here. Update all users.
30388 * script/sh/script.c: Move from here ...
30389 * script/script.c: ... to here. Update all users.
30390
f84b481b
RM
303912009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30392
30393 * configure.ac: Detect all `emu' platforms. Define
30394 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
30395 --enable-grub-emu logic. Disable include/grub/machine
30396 symlink on `emu' platforms.
30397
30398 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
30399 * gensymlist.sh.in: Likewise.
30400
30401 * include/grub/i386/coreboot/machine.h: Remove file.
30402 * include/grub/i386/efi/machine.h: Likewise.
30403 * include/grub/i386/ieee1275/machine.h: Likewise.
30404 * include/grub/i386/pc/machine.h: Likewise.
30405 * include/grub/i386/qemu/machine.h: Likewise.
30406 * include/grub/powerpc/ieee1275/machine.h: Likewise.
30407 * include/grub/sparc64/ieee1275/machine.h: Likewise.
30408 * include/grub/x86_64/efi/machine.h: Likewise.
30409
30410 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
30411 * commands/halt.c: Likewise.
30412 * commands/reboot.c: Likewise.
30413 * include/grub/autoefi.h: Likewise.
30414 * include/grub/i386/at_keyboard.h: Likewise.
30415 * include/grub/i386/kernel.h: Likewise.
30416 * include/grub/i386/loader.h: Likewise.
30417 * include/grub/i386/pc/memory.h: Likewise.
30418 * kern/dl.c: Likewise.
30419 * kern/i386/coreboot/init.c: Likewise.
30420 * loader/i386/bsd.c: Likewise.
30421 * loader/i386/linux.c: Likewise.
30422 * loader/multiboot_loader.c: Likewise.
30423 * term/i386/pc/serial.c: Likewise.
30424 * term/usb_keyboard.c: Likewise.
30425
30426 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
30427 `<grub/machine/machine.h>'
30428 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
30429 * util/misc.c: Remove `<grub/machine/machine.h>' and
30430 `<grub/machine/time.h>'.
30431
30432 * Makefile.in (enable_grub_emu): Remove variable.
30433 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
30434
30435 * conf/any-emu.rmk: New file.
30436 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
30437 (grub_emu_init.c): Move from here ...
30438 * conf/any-emu.rmk: ... to here.
30439
30440 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
30441 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
30442 * conf/any-emu.rmk: ... to here.
30443
4efeab03
RM
304442009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30445
30446 * include/grub/parser.h (grub_parser_register): Document need
30447 of `name' parameter.
30448 * normal/main.c (grub_normal_read_line): Simplify prompt string.
30449 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
30450 "sh" to "grub".
30451
ea1dd8bf
RM
304522009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30453
30454 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
30455 `$(XGETTEXT)'.
30456 * include/grub/i18n.h (N_): New macro.
30457 * util/mkisofs/mkisofs.h: Likewise.
30458 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
30459 around N_().
30460 (usage): Use gettext() to translate help strings when printing them.
30461
0c140626
RM
304622009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30463
30464 Based on patch from Bean
30465 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30466
30467 * video/efi_fb.c: New file.
30468 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
30469 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30470 variables.
30471 * conf/x86_64-efi.rmk: Likewise.
30472
87d58298
RM
304732009-11-22 Robert Millan <rmh.grub@aybabtu.com>
30474
30475 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
30476 * util/i386/pc/grub-setup.c: Likewise.
30477
994cc3a3
ST
304782009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
30479
30480 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
30481 <hurd/fs.h>
30482 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
30483 file_get_storage_info to implement grub_guess_root_device.
30484
26a61d6a
FZ
304852009-11-21 Felix Zielcke <fzielcke@z-51.de>
30486
30487 * Makefile.in (target): Use make's builtin $(shell) function
30488 instead of calling directly $(SHELL) to create the locale directories,
30489 inside the $(foreach) function.
30490
74ff1dd5
FZ
304912009-11-21 Felix Zielcke <fzielcke@z-51.de>
30492
30493 * util/grub-mkrescue.in: Print an error and usage if output option
30494 has not been given.
30495
0b787d0e
FZ
304962009-11-21 Felix Zielcke <fzielcke@z-51.de>
30497
30498 Patch from Loïc Minier <loic.minier@ubuntu.com>.
30499 * util/grub.d/30_os-prober.in: Cope with Linux entries where
30500 root and /boot are on different devices.
30501
1164b270
RM
305022009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30503
30504 Fix build for srcdir != objdir.
30505
30506 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
30507 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
30508 $(srcdir).
30509 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
30510 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
30511 reference for input.
30512
13774a2f
RM
305132009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30514
30515 * util/grub-mkrescue.in: Use source directory direcly (without copiing
30516 or hardlinking it). Remove -J option, Joliet is not compatible with
30517 multiple source directories.
30518
efda854e
RM
305192009-11-21 Carles Pina i Estany <carles@pina.cat>
305202009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30521
30522 * util/grub-mkrescue.in: Recognize `--override-directory' option.
30523 (process_input_dir): New function. Process an arbitrary input
30524 directory.
30525 Misc adjustments to support both "override mode" and system-wide mode.
30526
6c09890c
FZ
305272009-11-20 Felix Zielcke <fzielcke@z-51.de>
30528
30529 * configure.ac (UNIFONT_BDF): Rename to ...
30530 (FONT_SOURCE): ... this. Update all users.
30531
a797824f
FZ
305322009-11-20 Felix Zielcke <fzielcke@z-51.de>
30533
30534 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
30535 to the list of unifont files to look for.
30536
cd4f42b0
RM
305372009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30538
30539 Patch from Joe Auricchio <jauricchio@gmail.com>
30540 * commands/minicmd.c (grub_mini_cmd_clear): New function.
30541 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
30542 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
30543
393c783d
FZ
305442009-11-19 Felix Zielcke <fzielcke@z-51.de>
30545
30546 * Makefile.in (install-local): Add a missing backslash.
30547
b2f1e327
FZ
305482009-11-19 Felix Zielcke <fzielcke@z-51.de>
30549
30550 * include/grub/x86_64/io.h: New file.
30551
f577f7a0
RM
305522009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30553
30554 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
30555 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
30556 Include `"progname.h"'.
30557 (main): Initialize gettext.
30558 * util/i386/pc/grub-setup.c: Gettexttize.
30559 * util/i386/pc/grub-mkimage.c: Likewise.
30560
30561 * Makefile.in (po/*.po): Redefine as ...
30562 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
30563
3bc7896c
RM
30564 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
30565
c37943b6
RM
305662009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30567
30568 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
30569 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
30570 (program_name): Remove.
30571 (main): Initialize gettext support.
6323f705
RM
30572 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
30573 Include `<libintl.h>'.
30574 (_): New macro.
c37943b6
RM
30575
30576 * util/mkisofs/eltorito.c: Gettexttize.
30577 * util/mkisofs/joliet.c: Likewise.
30578 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
30579 * util/mkisofs/multi.c: Likewise.
30580 * util/mkisofs/rock.c: Likewise.
30581 * util/mkisofs/tree.c: Likewise.
30582 * util/mkisofs/write.c: Likewise.
30583
3bc7896c
RM
30584 * po/POTFILES: Update with new files.
30585
5ce77c6e
RM
305862009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30587
30588 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
30589 * util/mkisofs/iso9660.h: Likewise.
30590 * util/mkisofs/joliet.c: Likewise.
30591 * util/mkisofs/mkisofs.c: Likewise.
30592 * util/mkisofs/mkisofs.h: Likewise.
30593 * util/mkisofs/rock.c: Likewise.
30594 * util/mkisofs/tree.c: Likewise.
30595 * util/mkisofs/write.c: Likewise.
30596
30597 * util/mkisofs/eltorito.c (rcsid): Remove.
30598 * util/mkisofs/hash.c: Likewise.
30599 * util/mkisofs/joliet.c: Likewise.
30600 * util/mkisofs/name.c: Likewise.
30601 * util/mkisofs/rock.c: Likewise.
30602 * util/mkisofs/tree.c: Likewise.
30603 * util/mkisofs/write.c: Likewise.
30604
1dabbc77
RM
306052009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30606
30607 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
30608 instead of static allocation.
30609 * util/mkisofs/match.h: Likewise.
30610
633877cb
RM
306112009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30612
3bc7896c
RM
30613 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
30614 and `util/grub.d/10_linux.in'.
633877cb
RM
30615 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
30616 translatable Shell files.
30617
af1c0c85
RM
306182009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30619
30620 * Makefile.in ($(srcdir)/aclocal.m4): New target.
30621
769ae37b
RM
306222009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30623
30624 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 30625 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
30626 * util/grub.d/10_kfreebsd.in (bindir): New variable.
30627 Add gettext initialization.
30628 (kfreebsd_entry): Make menuentry output translatable.
30629
306302009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30631
30632 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
30633 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
30634 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
30635 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
30636 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 30637 * po/LINGUAS: New file.
769ae37b
RM
30638
306392009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30640
30641 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
30642 other things).
30643 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
30644 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
30645 bindtextdomain() calls for gettext initialization.
30646
306472009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30648
30649 * gnulib/progname.c: New file (imported from Gnulib).
30650 * gnulib/progname.h: Likewise.
30651 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30652 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
30653 (usage): Replace `progname' with `program_name'.
30654 (main): Use set_program_name() for program name initialization.
30655
306562009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30657
30658 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
30659 from here ...
30660 * Makefile.in (CPPFLAGS): ... to here.
30661
306622009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30663
30664 * aclocal.m4: Move from here ...
30665 * acinclude.m4: ... to here.
30666 * autogen.sh: Add call to `aclocal'.
30667 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
30668
306692009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30670
30671 * Makefile.in (CLEANFILES): Add `po/*.mo'.
30672 (LINGUAS): New variable.
30673 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
30674 (install-local): Install MO files.
30675 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
30676 * include/grub/i18n.h: New file.
3bc7896c
RM
30677 * po/POTFILES: New file.
30678 * po/ca.po: New file.
769ae37b
RM
30679 * util/grub.d/10_linux.in (bindir): New variable.
30680 Add gettext initialization.
30681 (linux_entry): Make menuentry output translatable.
30682 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
30683 (usage): Make --help output translatable.
30684 (main): Initialize gettext.
30685
02c0a6ad
RM
306862009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30687
30688 * import_gcry.py: New file (written by Vladimir with minor
30689 adjustments).
30690 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
30691 ciphers.
30692 * INSTALL: Document that Python is required for bootstrap.
30693
306942009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30695
30696 Import ciphers from libgcrypt 1.4.4.
30697
30698 * lib/libgcrypt/cipher/ChangeLog
30699 * lib/libgcrypt/cipher/ac.c
30700 * lib/libgcrypt/cipher/arcfour.c
30701 * lib/libgcrypt/cipher/bithelp.h
30702 * lib/libgcrypt/cipher/blowfish.c
30703 * lib/libgcrypt/cipher/camellia-glue.c
30704 * lib/libgcrypt/cipher/camellia.c
30705 * lib/libgcrypt/cipher/camellia.h
30706 * lib/libgcrypt/cipher/cast5.c
30707 * lib/libgcrypt/cipher/cipher.c
30708 * lib/libgcrypt/cipher/crc.c
30709 * lib/libgcrypt/cipher/des.c
30710 * lib/libgcrypt/cipher/dsa.c
30711 * lib/libgcrypt/cipher/ecc.c
30712 * lib/libgcrypt/cipher/elgamal.c
30713 * lib/libgcrypt/cipher/hash-common.c
30714 * lib/libgcrypt/cipher/hash-common.h
30715 * lib/libgcrypt/cipher/hmac-tests.c
30716 * lib/libgcrypt/cipher/md.c
30717 * lib/libgcrypt/cipher/md4.c
30718 * lib/libgcrypt/cipher/md5.c
30719 * lib/libgcrypt/cipher/primegen.c
30720 * lib/libgcrypt/cipher/pubkey.c
30721 * lib/libgcrypt/cipher/rfc2268.c
30722 * lib/libgcrypt/cipher/rijndael-tables.h
30723 * lib/libgcrypt/cipher/rijndael.c
30724 * lib/libgcrypt/cipher/rmd.h
30725 * lib/libgcrypt/cipher/rmd160.c
30726 * lib/libgcrypt/cipher/rsa.c
30727 * lib/libgcrypt/cipher/seed.c
30728 * lib/libgcrypt/cipher/serpent.c
30729 * lib/libgcrypt/cipher/sha1.c
30730 * lib/libgcrypt/cipher/sha256.c
30731 * lib/libgcrypt/cipher/sha512.c
30732 * lib/libgcrypt/cipher/tiger.c
30733 * lib/libgcrypt/cipher/twofish.c
30734 * lib/libgcrypt/cipher/whirlpool.c
30735
af2f93ac
RM
307362009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30737
30738 Fix build for systems without error().
30739
30740 * gnulib/error.c: New file (imported from Gnulib).
30741 * gnulib/error.h: Likewise.
30742 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
30743 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
30744 (this variable is now used by error()).
30745
73fb3dd5
FZ
307462009-11-16 Felix Zielcke <fzielcke@z-51.de>
30747
814f5e96
FZ
30748 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
30749 instead of relying that char is signed.
73fb3dd5 30750
a691ca33
VS
307512009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
30752
30753 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
30754 blocksize different from specified.
30755 (grub_pxefs_read): Likewise.
30756
2af8f0f4
FZ
307572009-11-16 Felix Zielcke <fzielcke@z-51.de>
30758
30759 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
30760
30761 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
30762 (grub_ata_readwrite): Likewise. Update 2 format strings.
30763 (grub_atapi_read): Likewise.
30764
30765 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
30766 * conf/i386.rmk (pkglib_MODULES): ... to here ...
30767 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
30768 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
30769 (ata_mod_LDFLAGS): Move from here ...
30770 * conf/i386.rmk: ... to here ...
30771 * conf/x86_64-efi.rmk: ... and here.
30772 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
30773 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
30774
83bdecaf
RM
307752009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30776
30777 Relicense multiboot.h, with RMS' blessing.
30778
30779 * include/multiboot.h: Change to X11 license.
30780
fd6fd3d7
RM
307812009-11-15 Robert Millan <rmh.grub@aybabtu.com>
30782
30783 Support --version in grub-mkisofs.
30784
30785 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
30786 (OPTION_VERSION): New macro.
30787 (ld_options): Recognize --version.
30788 (usage): Move `program_name' from here ...
30789 (program_name): ... to here. Add `static' qualifier.
30790 (main): Recognize `OPTION_VERSION'.
30791
16a88c49
FZ
307922009-11-15 Felix Zielcke <fzielcke@z-51.de>
30793
30794 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
30795 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
30796
a4158476
RM
307972009-11-14 Robert Millan <rmh.grub@aybabtu.com>
30798
30799 Fix help2man generation for mkisofs.
30800
30801 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
30802 (usage): Send output to stdout (rather than stderr).
30803
fc2208b0
RM
308042009-11-14 Robert Millan <rmh.grub@aybabtu.com>
30805
30806 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
30807 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
30808 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
30809 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
30810 (bin_SCRIPTS): Add `grub-mkfloppy'.
30811 (grub_mkfloppy_SOURCES): New variable.
30812
30813 * util/grub-mkrescue.in: New file.
30814 * util/i386/pc/grub-mkfloppy.in: New file.
30815
30816 * util/i386/coreboot/grub-mkrescue.in: Remove.
30817 * util/i386/pc/grub-mkrescue.in: Remove.
30818
8d0edf4a
RM
308192009-11-13 Robert Millan <rmh.grub@aybabtu.com>
30820
30821 * include/grub/multiboot.h (struct grub_multiboot_header): Move
30822 from here ...
30823 * include/multiboot.h (struct multiboot_header): ... to here. Update
30824 all users.
30825 * include/grub/multiboot.h (struct grub_multiboot_info): Move
30826 from here ...
30827 * include/multiboot.h (struct multiboot_info): ... to here. Update
30828 all users.
30829 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
30830 from here ...
30831 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
30832 Update all users.
30833 * include/grub/multiboot.h (struct grub_mod_list): Move
30834 from here ...
30835 * include/multiboot.h (struct multiboot_mod_list): ... to here.
30836 Update all users.
30837
a73f5969
RM
308382009-11-13 Robert Millan <rmh.grub@aybabtu.com>
30839
30840 * include/multiboot2.h (multiboot_word): Rename from this ...
30841 (multiboot2_word): ... to this. Update all users.
30842 (multiboot_header): Rename from this ...
30843 (multiboot2_header): ... to this. Update all users.
30844 (multiboot_tag_header): Rename from this ...
30845 (multiboot2_tag_header): ... to this. Update all users.
30846 (multiboot_tag_start): Rename from this ...
30847 (multiboot2_tag_start): ... to this. Update all users.
30848 (multiboot_tag_name): Rename from this ...
30849 (multiboot2_tag_name): ... to this. Update all users.
30850 (multiboot_tag_module): Rename from this ...
30851 (multiboot2_tag_module): ... to this. Update all users.
30852 (multiboot_tag_memory): Rename from this ...
30853 (multiboot2_tag_memory): ... to this. Update all users.
30854 (multiboot_tag_unused): Rename from this ...
30855 (multiboot2_tag_unused): ... to this. Update all users.
30856 (multiboot_tag_end): Rename from this ...
30857 (multiboot2_tag_end): ... to this. Update all users.
30858
1c8927f0
RM
308592009-11-13 Robert Millan <rmh.grub@aybabtu.com>
30860
30861 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
30862 this platform we should support Multiboot1 first.
30863
30864 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
30865 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
30866 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
30867
6e1e0d89
RM
308682009-11-12 Robert Millan <rmh.grub@aybabtu.com>
30869
30870 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
30871 of write calls (converting them to fwrite() if they aren't already).
30872 (get_torito_desc): Likewise.
30873 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
30874
7f2b34d8
RM
308752009-11-12 Robert Millan <rmh.grub@aybabtu.com>
30876
30877 * util/i386/pc/grub-install.in: Move from here ...
30878 * util/grub-install.in: ... to here. Update all users.
30879
c0ef3311
CW
308802009-11-11 Colin Watson <cjwatson@ubuntu.com>
30881
30882 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
30883
e1f240ff
RM
308842009-11-11 Robert Millan <rmh.grub@aybabtu.com>
30885
30886 Support for El Torito without floppy emulation.
30887
30888 * util/mkisofs/eltorito.c: Include `<errno.h>'.
30889 (init_boot_catalog): Improve error handling.
30890 (get_torito_desc): Don't use floppy emulation unless requested by
30891 user. Patch boot information table when requested via
30892 `-boot-info-table'.
30893 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
30894 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
30895 (use_boot_info_table): New variables.
30896 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
30897 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
30898 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
30899 `--eltorito-emul-floppy'.
30900 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
30901 and `OPTION_ELTORITO_EMUL_FLOPPY'.
30902 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
30903 (use_boot_info_table, get_731): New prototypes.
30904 * util/mkisofs/write.c (get_731): New function.
30905
af7d4de5
FZ
309062009-11-11 Felix Zielcke <fzielcke@z-51.de>
30907
30908 Fix the generation of the man page.
30909
30910 * util/pc/i386/grub-install.in: Source
30911 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
30912
2c55dbc0
RM
309132009-11-11 Robert Millan <rmh.grub@aybabtu.com>
30914
30915 Large file support for grub-mkisofs.
30916
30917 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
30918 * util/mkisofs/mkisofs.c (next_extent, last_extent)
30919 (session_start): Upgrade type to `uint64_t'. Update all users.
30920 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
30921 (struct directory_entry): Upgrade type of `starting_block' and
30922 `size' to `uint64_t'. Update all users.
30923 (struct deferred): Remove unused structure.
30924 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
30925 Update all users.
30926 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
30927 file is larger than `UINT32_MAX'.
30928 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
30929 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
30930 return value.
30931 (struct deferred_write): Upgrade type of `extent' and `size' to
30932 `uint64_t'. Update all users.
30933 (last_extent_written): Upgrade type to `uint64_t'. Update all
30934 users.
30935 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
30936 Update all users. Upgrade type of `remain' to `int64_t' and
30937 `use' to `size_t'. Use error() to handle fread() errors.
30938 (write_files): Rely on write_one_file() rather than calling
30939 xfwrite() directly.
30940
6a9cead5
FZ
309412009-11-09 Felix Zielcke <fzielcke@z-51.de>
30942
30943 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
30944
4825d790
RM
309452009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30946
30947 * util/mkisofs/fnmatch.c: Remove.
30948 * util/mkisofs/getopt1.c: Likewise.
30949 * util/mkisofs/getopt.c: Likewise.
30950 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
30951 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
30952 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
30953 `gnulib/getopt1.c' and `gnulib/getopt.c'.
30954 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
30955
30956 * configure.ac: Detect `mingw32msvc' host_os.
30957 Check for lstat(), getuid() and getgid().
30958
30959 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
30960 instances of `u_char' with `uint8_t'.
30961
30962 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
30963 [!HAVE_GETUID] (getuid): New function (stub).
30964 [!HAVE_GETGID] (getgid): Likewise.
30965 [!HAVE_LSTAT] (lstat): Likewise.
30966 [!S_IROTH] (S_IROTH): New macro (dummy).
30967 [!S_IRGRP] (S_IRGRP): Likewise.
30968
84b860d8
RM
309692009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30970
30971 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
30972 conditional expression).
30973
66e9b712
RM
309742009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30975
30976 Import from Gnulib.
30977
30978 * gnulib/fnmatch.c: New file.
30979 * gnulib/fnmatch.h: Likewise.
30980 * gnulib/fnmatch_loop.c: Likewise.
30981 * gnulib/getopt.c: Likewise.
30982 * gnulib/getopt.h: Likewise.
30983 * gnulib/getopt1.c: Likewise.
30984 * gnulib/getopt_int.h: Likewise.
30985 * gnulib/gettext.h: Likewise.
30986
34f4a5b0
RM
309872009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30988
30989 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
30990 * normal/handler.c (read_handler_list): Likewise.
30991
ac451143
RM
309922009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30993
30994 Misc cleanup.
30995
30996 * kern/command.c (grub_register_command_prio): Use
30997 grub_zalloc() instead of explicitly zeroing data.
30998 * kern/list.c: Include `<grub/mm.h>'.
30999 (grub_named_list_find): Replace `0' with `NULL'.
31000 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
31001 (fs_module_list): Change type to `grub_named_list_t'. Update all
31002 users.
31003 * normal/dyncmd.c (read_command_list): Add space between function
31004 call and parenthesis.
31005 * normal/handler.c (read_handler_list): Likewise.
31006
4089b167
RM
310072009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31008
31009 * normal/auth.c (punishment_delay): Moved from here ...
31010 (grub_auth_strcmp): ... to here (inside function).
31011
325f5037
RM
310122009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31013
31014 * include/grub/list.h (struct grub_named_list): Remove `const'
31015 qualifier from `name'.
31016 (struct grub_prio_list): Likewise.
31017
7aea29a3
RM
310182009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31019
31020 * normal/auth.c: Include `<grub/time.h>'.
31021 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
31022
3fd6f044
RM
310232009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31024
31025 * normal/auth.c (punishment_delay): New variable.
31026 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
31027 (grub_auth_check_authentication): Punish failed login attempts with
31028 an incremental (2^N) delay.
31029
a4cd68e4
RM
310302009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31031
31032 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
31033 path with $(srcdir).
31034
7ad12f43
VS
310352009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31036
31037 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
31038
c1129f03
RM
310392009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31040
31041 * util/i386/coreboot/grub-mkrescue.in: New file.
31042 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
31043 variables.
31044
31045 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
31046 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
31047 * configure.ac: Add header and function checks to satisfy grub-mkisofs
31048 requirements.
31049 * util/mkisofs/defaults.h: New file.
31050 * util/mkisofs/eltorito.c: Likewise.
31051 * util/mkisofs/exclude.h: Likewise.
31052 * util/mkisofs/fnmatch.c: Likewise.
31053 * util/mkisofs/getopt.c: Likewise.
31054 * util/mkisofs/getopt1.c: Likewise.
31055 * util/mkisofs/hash.c: Likewise.
31056 * util/mkisofs/include/fctldefs.h: Likewise.
31057 * util/mkisofs/include/mconfig.h: Likewise.
31058 * util/mkisofs/include/prototyp.h: Likewise.
31059 * util/mkisofs/include/statdefs.h: Likewise.
31060 * util/mkisofs/iso9660.h: Likewise.
31061 * util/mkisofs/joliet.c: Likewise.
31062 * util/mkisofs/match.c: Likewise.
31063 * util/mkisofs/match.h: Likewise.
31064 * util/mkisofs/mkisofs.c: Likewise.
31065 * util/mkisofs/mkisofs.h: Likewise.
31066 * util/mkisofs/multi.c: Likewise.
31067 * util/mkisofs/name.c: Likewise.
31068 * util/mkisofs/rock.c: Likewise.
31069 * util/mkisofs/tree.c: Likewise.
31070 * util/mkisofs/write.c: Likewise.
31071
ec8bb77d
VS
310722009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31073
31074 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
31075 being insecure.
31076
3716b12c
RM
310772009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31078
31079 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
31080 `grub-mkimage' (and use $0 when possible).
31081
b97b7b91
RM
310822009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31083
31084 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
31085 error message for excessively large memory map.
31086
04114812
RM
310872009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31088
31089 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
31090 executable bit.
31091
e4eb2373
RM
310922009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31093
31094 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
31095 message for coreboot users.
31096
c926e1d5 310972009-11-07 Robert Millan <rmh.grub@aybabtu.com>
31098
31099 Fix build with GNU gold.
31100
31101 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
31102 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
31103 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
31104 link addresses.
31105 * aclocal.m4: Likewise.
31106
86e5b1db 311072009-11-04 Felix Zielcke <fzielcke@z-51.de>
31108
31109 * configure.ac (AC_PREREQ): Bump to 2.59d.
31110 * INSTALL: Make it more clear when Autoconf and Ruby are
31111 needed and when to run `./autogen.sh'.
31112
246cd78f 311132009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31114
31115 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
31116 OSes.
31117
4f9dfb37 311182009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31119
31120 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
31121
b82bd5e1 311222009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31123
31124 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
31125 giving it to GNU Mach.
31126
ff1a9bca 311272009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31128
31129 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
31130 GNU partition number to get internal GRUB partition number.
31131
61697d9c 311322009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31133
31134 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
31135 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
31136
a50569e1 311372009-11-01 Robert Millan <rmh.grub@aybabtu.com>
31138
31139 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
31140 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
31141 case.
31142
5b153867 311432009-11-01 Felix Zielcke <fzielcke@z-51.de>
31144
31145 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
31146
d9e2cd70 311472009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31148
31149 Fix build problem.
31150
31151 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
31152 `-isystem=$(srcdir)/include'.
31153
805111a4 311542009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31155
31156 * util/i386/pc/grub-install.in: Remove hint that device.map should be
31157 checked (grub-install doesn't currently rely on it).
31158
fa6e945f 311592009-10-29 Robert Millan <rmh.grub@aybabtu.com>
31160
31161 Revert SVN r2660.
31162
31163 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
31164 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31165 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
31166 * conf/i386-ieee1275.rmk: Likewise.
31167 * conf/i386-pc.rmk: Likewise.
31168 * conf/powerpc-ieee1275.rmk: Likewise.
31169 * conf/sparc64-ieee1275.rmk: Likewise.
31170 * conf/x86_64-efi.rmk: Likewise.
31171
cee15086 311722009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31173
31174 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
31175
95b9239e 311762009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31177
31178 * include/grub/misc.h: Stop checking for APPLE_CC.
31179
2ed19dfd 311802009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31181
31182 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
31183 doesn't cause an infinite call loop.
31184
fdcdde19 311852009-10-28 Felix Zielcke <fzielcke@z-51.de>
31186
31187 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
31188 strings.
31189
cefabfe1 311902009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31191
31192 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
31193 variable.
31194 * Makefile.in: Likewise.
31195
ed96ab6d 311962009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31197
31198 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
31199
0579b753 312002009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31201
31202 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
31203
478df409 312042009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31205
31206 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
31207
083d1679 312082009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31209
31210 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
31211 from here ...
31212 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
31213
5947ae32 312142009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31215
31216 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
31217 in $(MAKEINFO) invocation. This makes it clear in output that
31218 errors are being ignored.
31219
94180ff6 312202009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31221
31222 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
31223 from here ...
31224 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31225 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
31226 * conf/i386-ieee1275.rmk: Likewise.
31227 * conf/i386-pc.rmk: Likewise.
31228 * conf/powerpc-ieee1275.rmk: Likewise.
31229 * conf/sparc64-ieee1275.rmk: Likewise.
31230 * conf/x86_64-efi.rmk: Likewise.
31231
9031b03a 312322009-10-26 Colin Watson <cjwatson@ubuntu.com>
31233
31234 * util/grub-editenv.c (main): If only a command is given, use
31235 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
31236 (usage): FILENAME is now optional and has a default.
31237
e4f6809b 312382009-10-26 Colin Watson <cjwatson@ubuntu.com>
31239
31240 Improve grub-mkconfig performance when there are several menu
31241 entries on a single filesystem.
31242
31243 * util/grub.d/10_linux.in (linux_entry): Cache the output of
31244 prepare_grub_to_access_device.
31245 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
31246 * util/grub.d/30_os-prober.in: Likewise.
31247
67937d4d 312482009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31249
31250 * util/grub.d/10_freebsd.in: Remove.
31251 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
31252 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
31253
ee3756cc 312542009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31255
5c35048e 31256 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 31257
4dea1c6f 312582009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31259
31260 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
31261 grub_util_error() call.
31262
042484d7 312632009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31264
31265 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
31266 `reserved_first_sector' member.
31267 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
31268 `reserved_first_sector' to 1.
31269 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
31270 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
31271 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
31272 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
31273 filesystems which begin at first sector.
31274 (options): New option --skip-fs-probe.
31275 (main): Handle --skip-fs-probe and pass it to setup().
31276
d64448a7 312772009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31278
31279 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
31280 (memset): Fix function prototype.
31281
508d42ec 312822009-10-25 Robert Millan <rmh.grub@aybabtu.com>
312832009-10-25 Vasily Averin <vvs@parallels.com>
31284
31285 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
31286 `dirent.direntlen == 0'.
31287
b240e30c 312882009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31289
31290 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
31291 `cpio'.
31292 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
31293
346e7fbe 312942009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31295
31296 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
31297 `__trampoline_setup' and `__ucmpdi2'.
31298 * include/grub/powerpc/libgcc.h: Only export symbols for functions
31299 that libgcc provides.
31300
cdb308b0 313012009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31302
31303 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
31304 * include/grub/sparc64/libgcc.h (memset): Likewise.
31305 * include/grub/misc.h (memset, memcmp): New function prototypes.
31306
fb26abc2 313072009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31308
31309 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
31310 `cpio'.
31311 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
31312
f6693890 313132009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31314
31315 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
31316 * docs/grub.cfg: Compensate for recent change in multiboot
31317 loader (since 2009-08-14 it won't pass filename to payload).
31318 * util/grub.d/10_hurd.in: Likewise.
31319
0933cdc0 313202009-10-21 Felix Zielcke <fzielcke@z-51.de>
31321
31322 * config.guess: Update to latest version from config git
31323 repository.
31324 * config.sub: Likewise.
31325
3b2fe8c2 313262009-10-20 Robert Millan <rmh.grub@aybabtu.com>
31327
31328 Fix build on sparc64.
31329
31330 * configure.ac: Perform checks for libgcc symbols before
31331 adding `-nostdlib' to LDFLAGS.
31332
46695a62 313332009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31334
31335 Let user specify OpenBSD root device.
31336
31337 * loader/i386/bsd.c (openbsd_root): New variable.
31338 (openbsd_opts): New option 'root'.
31339 (OPENBSD_ROOT_ARG): New macro.
31340 (grub_openbsd_boot): Use 'openbsd_root'.
31341 (grub_cmd_openbsd): Fill 'openbsd_root'.
31342
d2b6b7fc 313432009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31344
31345 * NEWS: Misc adjustments.
31346
421bd7ac 313472009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31348
31349 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
31350
f1d29d87 313512009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31352
31353 * configure.ac: Bump version to 1.97.
31354
6f3cd880 313552009-10-16 Colin Watson <cjwatson@ubuntu.com>
31356
31357 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
31358 -mno-3dnow on x86 architectures. Some toolchains enable these
31359 features by default, but they rely on registers that aren't enabled
31360 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
31361
035f7122 313622009-10-15 Robert Millan <rmh.grub@aybabtu.com>
31363
31364 Make entry text a bit more readable.
31365
31366 * util/grub.d/10_linux.in: Add `with' before `Linux'.
31367
44998e58 313682009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31369
31370 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
31371
cd2851b3 313722009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31373
31374 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
31375 operations.
31376
c6f3b249 313772009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31378
31379 * configure.ac: Add missing dollar.
31380
6b5886ba 313812009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31382
31383 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
31384
31385 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
31386 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
31387 exports.
31388 * include/grub/sparc64/libgcc.h: Likewise. Use
31389 preprocessor conditionals.
31390
e9d66f6d 313912009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31392
31393 * conf/common.rmk (grub-dumpbios): Remove rule.
31394 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
31395 * util/grub-dumpbios.in: Remove file.
31396
9155bc17 313972009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31398
31399 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
31400 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
31401
31402 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
31403 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
31404 users.
31405
31406 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
31407 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
31408 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
31409 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
31410 users.
31411
bf7f7a18 314122009-10-12 Robert Millan <rmh.grub@aybabtu.com>
31413
31414 * term/tparm.c: Switch to GPLv3.
31415
86564c26 314162009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31417
31418 * include/grub/i386/cpuid.h: Add header protection.
31419
5c936493 314202009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31421
31422 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
31423
31424 * include/grub/i386/cpuid.h: New file.
31425 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
31426 (has_longmode): Rename to ...
31427 (grub_cpuid_has_longmode): ... this. Update all users. Remove
31428 `static' attribute.
31429 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
31430 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
31431 on a CPU that doesn't implement AMD64 instruction set.
31432
186e7cf2 314332009-10-06 Colin Watson <cjwatson@ubuntu.com>
31434
31435 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
31436 that version.texi is rebuilt on version number changes.
31437
83b65c4a 314382009-10-06 Colin Watson <cjwatson@ubuntu.com>
31439
31440 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
31441 Fixes bug #27602.
31442
d244281c 314432009-10-06 Colin Watson <cjwatson@ubuntu.com>
31444
31445 * util/i386/pc/grub-install.in: Source
31446 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
31447 that the --grub-probe option will work.
31448 * util/sparc64/ieee1275/grub-install.in: Likewise.
31449
da25306d 314502009-10-05 Robert Millan <rmh.grub@aybabtu.com>
31451
31452 * configure.ac: Bump version to 1.97~beta4.
31453
e8ee83c0 314542009-10-03 Robert Millan <rmh.grub@aybabtu.com>
31455
31456 Resync grub-mkdevicemap in x86_64-efi.
31457
31458 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
31459 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
31460 `util/devicemap.c'.
31461
50dcabcf 314622009-10-01 Colin Watson <cjwatson@ubuntu.com>
31463
31464 * util/grub-editenv.c (create_envblk_file): Write new block with a
31465 .new suffix and then rename it into place, to ensure atomic
31466 creation.
31467
0e51c3a7 314682009-09-28 Robert Millan <rmh.grub@aybabtu.com>
31469
31470 Do not automatically install headers.
31471
31472 * Makefile.in (include_DATA): Remove. Update all users.
31473
31299a95 314742009-09-26 Robert Millan <rmh.grub@aybabtu.com>
31475
31476 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
31477 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
31478
31479 * util/osdetect.lua: Remove.
31480 * script/lua/lauxlib.c: Likewise.
31481 * script/lua/ldebug.c: Likewise.
31482 * script/lua/grub_main.c: Likewise.
31483 * script/lua/lauxlib.h: Likewise.
31484 * script/lua/ldebug.h: Likewise.
31485 * script/lua/ltablib.c: Likewise.
31486 * script/lua/liolib.c: Likewise.
31487 * script/lua/lstrlib.c: Likewise.
31488 * script/lua/lualib.h: Likewise.
31489 * script/lua/ldo.c: Likewise.
31490 * script/lua/ldump.c: Likewise.
31491 * script/lua/ldo.h: Likewise.
31492 * script/lua/loslib.c: Likewise.
31493 * script/lua/lundump.c: Likewise.
31494 * script/lua/grub_lib.c: Likewise.
31495 * script/lua/ldblib.c: Likewise.
31496 * script/lua/lundump.h: Likewise.
31497 * script/lua/lmem.c: Likewise.
31498 * script/lua/grub_lib.h: Likewise.
31499 * script/lua/lmathlib.c: Likewise.
31500 * script/lua/lstate.c: Likewise.
31501 * script/lua/ltm.c: Likewise.
31502 * script/lua/lvm.c: Likewise.
31503 * script/lua/lmem.h: Likewise.
31504 * script/lua/lstate.h: Likewise.
31505 * script/lua/ltm.h: Likewise.
31506 * script/lua/ltable.c: Likewise.
31507 * script/lua/lvm.h: Likewise.
31508 * script/lua/llex.c: Likewise.
31509 * script/lua/lgc.c: Likewise.
31510 * script/lua/grub_lua.h: Likewise.
31511 * script/lua/loadlib.c: Likewise.
31512 * script/lua/lfunc.c: Likewise.
31513 * script/lua/lopcodes.c: Likewise.
31514 * script/lua/lparser.c: Likewise.
31515 * script/lua/ltable.h: Likewise.
31516 * script/lua/llex.h: Likewise.
31517 * script/lua/lgc.h: Likewise.
31518 * script/lua/lfunc.h: Likewise.
31519 * script/lua/lbaselib.c: Likewise.
31520 * script/lua/lopcodes.h: Likewise.
31521 * script/lua/lparser.h: Likewise.
31522 * script/lua/lzio.c: Likewise.
31523 * script/lua/linit.c: Likewise.
31524 * script/lua/lobject.c: Likewise.
31525 * script/lua/llimits.h: Likewise.
31526 * script/lua/lstring.c: Likewise.
31527 * script/lua/lzio.h: Likewise.
31528 * script/lua/lapi.c: Likewise.
31529 * script/lua/lcode.c: Likewise.
31530 * script/lua/lua.h: Likewise.
31531 * script/lua/lobject.h: Likewise.
31532 * script/lua/lstring.h: Likewise.
31533 * script/lua/lapi.h: Likewise.
31534 * script/lua/lcode.h: Likewise.
31535 * script/lua/luaconf.h: Likewise.
31536
cb8a2c38 315372009-09-26 Colin Watson <cjwatson@ubuntu.com>
31538
31539 * docs/grub.texi (Command-line and menu entry commands): Document
31540 date and echo commands.
31541
6b9b6276 315422009-09-24 Pavel Roskin <proski@gnu.org>
31543
31544 * include/grub/kernel.h (struct grub_module_header): Remove
31545 `grub_module_header_types'. Make `type' unsigned. Make `size'
31546 32-bit on all platforms.
31547 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
31548 8-bit field. Use grub_host_to_target32() for `size'.
31549 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
31550 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
31551 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
31552
4e5a02a7 315532009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31554
31555 Fix "lost keypress" bug in at_keyboard.
31556
31557 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
31558 Checks for readyness of input buffer (without flushing it).
31559 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
31560 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
31561
c6dcedf6 315622009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31563
31564 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
31565 size check within GRUB_MACHINE_PCBIOS section.
31566
74c958b1 315672009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31568
31569 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
31570 return value.
31571 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
31572 KEYBOARD_ISREADY check.
31573 (grub_at_keyboard_checkkey): Rename to ...
31574 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
31575 Remove gratuitous cast.
31576
ff420223 315772009-09-23 Colin Watson <cjwatson@ubuntu.com>
31578
31579 * configure.ac: Call AC_PROG_MKDIR_P.
31580 * Makefile.in (docs/stamp-vti): Create docs directory. Create
31581 version.texi in $(builddir) rather than $(srcdir).
31582 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
31583 to makeinfo's @include search path.
31584
d96875df 315852009-09-23 Felix Zielcke <fzielcke@z-51.de>
31586
31587 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
31588
9b3f8365 315892009-09-23 Felix Zielcke <fzielcke@z-51.de>
31590
31591 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
31592 for `*.dpkg-new'.
31593
c44c90db 315942009-09-21 Colin Watson <cjwatson@ubuntu.com>
31595
31596 Build info documentation. Some code borrowed from Automake.
31597
31598 * configure.ac: Check for makeinfo.
31599 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
31600 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
31601 docs/version.texi.
31602 (MOSTLYCLEANFILES): Add vti.tmp.
31603 (docs/version.texi, docs/stamp-vti): Update automatically.
31604 (docs/grub.info): Build info documentation. Use --force and ignore
31605 errors for now.
31606 (all-local): Add $(INFOS).
31607 (install-local): Install info files.
31608 (uninstall): Uninstall info files.
31609 * docs/version.texi: Remove from revision control. This file is
31610 automatically generated on build now.
31611 * gendistlist.sh: Add `*.info'.
31612
e0b37bb5 316132009-09-21 Felix Zielcke <fzielcke@z-51.de>
31614
31615 * kern/term.c: Fix indentation.
31616
5a78865b 316172009-09-21 Felix Zielcke <fzielcke@z-51.de>
31618
31619 * util/hostdisk.c: Fix a comment.
31620
dace7e8a 316212009-09-20 Robert Millan <rmh.grub@aybabtu.com>
31622
31623 Fix regression introduced in r2539.
31624
31625 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
31626 to 0xA1.
31627
a83d079b 316282009-09-19 Colin Watson <cjwatson@ubuntu.com>
31629
31630 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 31631 os-prober. Under normal operation, it does not print anything to
31632 stderr; if it does, we need to debug it, and throwing away stderr
31633 makes that excessively difficult.
a83d079b 31634
be94a509 316352009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
31636
31637 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
31638
63f745e8 316392009-09-16 Robert Millan <rmh.grub@aybabtu.com>
31640
31641 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
31642 AC_LANG_PROGRAM from autoconf.
31643 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
31644 prototypes (fixes warning).
31645
31646 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
31647 `--disable-werror' was used.
31648
bbb2a70f 316492009-09-16 Robert Millan <rmh.grub@aybabtu.com>
31650
31651 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
31652 uninitialized `lastaddr'.
31653
77c24f1d 316542009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
31655
0f0b8c87 31656 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 31657
07197f23 316582009-09-14 Colin Watson <cjwatson@ubuntu.com>
31659
31660 * commands/test.c (get_fileinfo): Return immediately if
31661 grub_fs_probe fails.
31662
dabf1798 316632009-09-14 José Martínez <xosemp@gmail.com>
31664
31665 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
31666
d52109a7 316672009-09-14 Colin Watson <cjwatson@ubuntu.com>
31668
31669 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
31670 output.
31671
56532179 316722009-09-13 Robert Millan <rmh.grub@aybabtu.com>
31673
31674 * configure.ac: Remove --enable-grub-pe2elf. Only build
31675 grub-pe2elf when needed by the build system itself.
31676 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
31677
8ef070f5 316782009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31679
31680 * configure.ac: Bump version to 1.97~beta3.
31681 * docs/version.texi: Likewise.
31682
61229557 316832009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31684
31685 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
31686 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
31687 from here ...
31688 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
31689 (grub_linux_setup_video): ... to here (with some adjustments).
31690
5c9f8d84 316912009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31692
31693 Fix memory corruption issue (spotted by Colin Watson).
31694
31695 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
31696 causing returned size to be stored in an incorrect memory location.
31697 Fix use of uninitialized value when storing the returned size.
31698
e8f5d6e9 316992009-09-12 Yves Blusseau <blusseau@zetam.org>
31700
31701 Change clean rules to properly remove files
31702
31703 * genmk.rb: add new clean rules
31704 * Makefile.in (clean): add the new targets
31705 (mostlyclean): likewise
31706
cda2a409 317072009-09-11 Colin Watson <cjwatson@ubuntu.com>
31708
31709 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
31710 to grub_uint64_t.
31711 * fs/ntfs.c (init_file): Understand 64-bit sizes for
31712 non-resident files.
31713
86695375 317142009-09-11 Colin Watson <cjwatson@ubuntu.com>
31715
31716 * configure.ac: Don't look for help2man when cross-compiling. Fixes
31717 part of bug #27349.
31718
8aa1541a 317192009-09-10 Felix Zielcke <fzielcke@z-51.de>
31720
31721 * util/grub-mkconfig.in: Make the created config mode 400 and
31722 print a warning if it fails.
31723
48d9bb0a 317242009-09-10 Robert Millan <rmh.grub@aybabtu.com>
31725
31726 * util/grub.d/40_custom.in: Ask user to type custom entries below
31727 comment, rather than below 'exec tail' line.
31728
3b0521be 317292009-09-10 Colin Watson <cjwatson@ubuntu.com>
31730
31731 * util/grub.d/40_custom.in: Make sure that the explanatory text is
31732 visible in grub.cfg.
31733
50051d55 317342009-09-10 Colin Watson <cjwatson@ubuntu.com>
31735
31736 * util/grub.d/40_custom.in: Make it a little clearer how to use this
31737 file.
31738
c0d34387 317392009-09-10 Felix Zielcke <fzielcke@z-51.de>
31740
31741 * docs/grub.cfg: Add an example menu entry for memtest86+.
31742
80a608f3 317432009-09-09 Felix Zielcke <fzielcke@z-51.de>
31744
a2094832 31745 * config.guess: Update to latest version from config git.
80a608f3 31746 * config.sub: Likewise.
31747
99423078 317482009-09-08 Colin Watson <cjwatson@ubuntu.com>
31749
31750 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
31751 unknown-command case. Fixes bug #27320.
31752
44454e4c 317532009-09-08 Felix Zielcke <fzielcke@z-51.de>
31754
31755 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
31756 `help' if the command exists.
31757
e30d87ad 317582009-09-06 Robert Millan <rmh.grub@aybabtu.com>
31759
31760 * INSTALL: Require GCC 4.1.3 or later.
31761
9a86f1ec 317622009-09-06 Yves Blusseau <blusseau@zetam.org>
31763
31764 * Makefile.in (RMKFILES): add i386-qemu.rmk
31765 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
31766 $(srcdir)/stamp-h.in
31767
7f26d466 317682009-09-05 Robert Millan <rmh.grub@aybabtu.com>
31769
31770 * util/grub-probe.c (probe): Comment out buggy codepath, which
31771 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
31772 should be re-enabled after 1.97.
31773
3a613259 317742009-09-05 Felix Zielcke <fzielcke@z-51.de>
31775
31776 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
31777 find searches for.
31778
197f76c7 317792009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
31780
31781 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
31782 unnecessary calls to grub_error.
31783
70ba68ce 317842009-09-04 Colin Watson <cjwatson@ubuntu.com>
31785
31786 * NEWS: Mention `keystatus' and Unicode fonts.
31787
4ff0d7a4 317882009-09-04 Robert Millan <rmh.grub@aybabtu.com>
31789
31790 * configure.ac: Bump version to 1.97~beta2.
31791 * docs/version.texi: Likewise.
31792
77c55a87 317932009-09-03 Colin Watson <cjwatson@ubuntu.com>
31794
31795 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
31796 containing unwind information in some cases where it previously did
31797 not. Use -fno-dwarf2-cfi-asm if available to restore the old
31798 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
31799 discussion.
31800
f79572cd 318012009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
31802
31803 Embedding loadenv module into grub-emu
31804
31805 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
31806 commands/loadenv.c
31807 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
31808 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
31809 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
31810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
31811 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
31812 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
31813
93a81088 318142009-09-03 Magnus Granberg <zorry@ume.nu>
31815
31816 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
31817 include -fPIE in the default specs.
31818 * configure.ac: Check if pie_possible is yes and add -fno-PIE
31819 to TARGET_CFLAGS.
31820
160034b2 318212009-09-03 Felix Zielcke <fzielcke@z-51.de>
31822
31823 * INSTALL: Note that GNU Bison 2.3 or later is required.
31824
087c07c4 318252009-09-03 Colin Watson <cjwatson@ubuntu.com>
31826
31827 * kern/i386/pc/startup.S: Fix typo.
31828
cbf978c0 318292009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
31830
31831 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
31832 according to GCS.
31833
318342009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 31835
31836 * docs/grub.texi (Naming convention): Describe one-based partition
31837 numbering.
31838 (Device syntax): Likewise.
31839 (File name syntax): Likewise.
31840 (Block list syntax): Likewise.
31841 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
31842 menu.lst.
31843 (File name syntax): Likewise.
31844 (Command-line and menu entry commands): Document acpi, blocklist,
31845 crc, export, insmod, keystatus, ls, set, and unset commands.
31846
f3e8cdfd 318472009-09-02 Colin Watson <cjwatson@ubuntu.com>
31848
31849 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
31850 to avoid implying that only one of --shift, --ctrl, or --alt may be
31851 used.
31852
c0bc232b 318532009-09-02 Colin Watson <cjwatson@ubuntu.com>
31854
31855 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
31856 rather than comparing against S_IFREG, which will almost never work.
31857
aa0f752d 318582009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
31859
31860 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
31861 (write_blocklists): Likewise.
31862
ecb3166a 318632009-09-01 Colin Watson <cjwatson@ubuntu.com>
31864
31865 * script/lua/grub_lua.h (fputs): Supply a format string as the first
31866 argument to grub_printf.
31867
c403a125 318682009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 31869
31870 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 31871 non GNU test.
31aba781 31872
b5e7312c 318732009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
31874
31875 * kern/file.c (grub_file_read): Spelling fix
31876
fe00f472 318772009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
31878
31879 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
31880 loading of headers in some cases.
31881
cc55302e 318822009-08-30 Robert Millan <rmh.grub@aybabtu.com>
31883
31884 * configure.ac: Bump version to 1.97~beta1.
31885 * docs/version.texi: Likewise.
31886
5c90cdd2 318872009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 31888
31889 * include/grub/i386/xnu.h: Add license header.
31890 include grub/err.h explicitly.
31891
c90edae4 318922009-08-29 Robert Millan <rmh.grub@aybabtu.com>
31893
31894 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
31895 to `ufs' in the vfs.root.mountfrom kernel parameter.
31896
d8888b5c 318972009-08-29 Robert Millan <rmh.grub@aybabtu.com>
31898
31899 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
31900
31901 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
31902 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
31903
31904 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
31905 `ARRAY_SIZE' macro.
31906
6f07b921 319072009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31908
31909 * kern/file.c (grub_file_read): Check offset.
31910 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
31911 * fs/jfs.c (grub_jfs_read_file): Likewise.
31912 * fs/ntfs.c (grub_ntfs_read): Likewise.
31913 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
31914 * fs/minix.c (grub_minix_read_file): Correct offset check.
31915 * fs/ufs.c (grub_ufs_read_file): Likewise.
31916
b4f34077 319172009-08-28 Colin Watson <cjwatson@ubuntu.com>
31918
31919 * term/i386/pc/console.c (bios_data_area): Cast
31920 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
31921
e7c69859 319222009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31923
31924 1-bit optimised blitters.
31925
31926 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
31927 prototype.
31928 (grub_video_fbblit_replace_24bit_1bit): Likewise.
31929 (grub_video_fbblit_replace_16bit_1bit): Likewise.
31930 (grub_video_fbblit_replace_8bit_1bit): Likewise.
31931 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
31932 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
31933 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
31934 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
31935 function.
31936 (grub_video_fbblit_replace_24bit_1bit): Likewise.
31937 (grub_video_fbblit_replace_16bit_1bit): Likewise.
31938 (grub_video_fbblit_replace_8bit_1bit): Likewise.
31939 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
31940 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
31941 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
31942 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
31943 when possible.
31944 * video/video.c (grub_video_get_blit_format): Return
31945 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
31946
a57da43f 319472009-08-28 Colin Watson <cjwatson@ubuntu.com>
31948
31949 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
31950 the first argument to grub_printf.
31951
4cbe67e5 319522009-08-28 Colin Watson <cjwatson@ubuntu.com>
319532009-08-28 Robert Millan <rmh.grub@aybabtu.com>
31954
31955 Add `getkeystatus' terminal method. Add a new `keystatus' command
31956 to query it.
31957
31958 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
31959 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
31960 modifier key bitmasks.
31961 (struct grub_term_input): Add `getkeystatus' member.
31962 (grub_getkeystatus): Add prototype.
31963 * kern/term.c (grub_getkeystatus): New function.
31964
31965 * include/grub/i386/pc/memory.h
31966 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
31967 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
31968 Data Area layout.
31969 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
31970 (grub_console_term_input): Set `getkeystatus' member.
31971 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
31972 constants.
31973 (grub_usb_keyboard_getreport): Likewise.
31974 (grub_usb_keyboard_checkkey): Likewise.
31975 (grub_usb_keyboard_getkeystatus): New function.
31976 (grub_usb_keyboard_term): Set `getkeystatus' member.
31977
31978 * commands/keystatus.c: New file.
31979 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
31980 (keystatus_mod_SOURCES): New variable.
31981 (keystatus_mod_CFLAGS): Likewise.
31982 (keystatus_mod_LDFLAGS): Likewise.
31983 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
31984 commands/keystatus.c.
31985 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31986 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31987 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31989 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31990 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 31991
6e2a9085 319922009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31993
31994 Split befs.mod and afs.mod into *_be.mod and *.mod
31995
31996 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
31997 (grub_fstest_SOURCES): Likewise.
31998 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
31999 (afs_be_mod_SOURCES): New variable.
32000 (afs_be_mod_CFLAGS): Likewise.
32001 (afs_be_mod_LDFLAGS): Likewise.
32002 (befs_be_mod_SOURCES): Likewise.
32003 (befs_be_mod_CFLAGS): Likewise.
32004 (befs_be_mod_LDFLAGS): Likewise.
32005 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.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_setup_SOURCES): Likewise.
32009 (grub_emu_SOURCES): Likewise.
32010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32011 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32012 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32013 * fs/afs_be.c: New file.
32014 * fs/befs_be.c: New file.
32015 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
32016 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
32017 (U16): Replaced with ...
32018 (grub_afs_to_cpu16): ...this. All users updated.
32019 (U32): Replaced with ...
32020 (grub_afs_to_cpu32): ...this. All users updated.
32021 (U64): Replaced with ...
32022 (grub_afs_to_cpu64): ...this. All users updated.
32023 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
32024 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 32025 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 32026 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32027 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32028 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32029 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32030 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32031 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32032 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32033 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32034
32a71655 320352009-08-26 Bean <bean123ch@gmail.com>
32036
32037 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
32038 64-bit number.
32039 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
32040 (grub_xfs_inode_block): Change return type to grub_uint64_t.
32041 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
32042
552bf6c5 320432009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32044
32045 NetBSD memory map support.
32046
32047 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
32048 (grub_netbsd_btinfo_mmap_header): New structure.
32049 (grub_netbsd_btinfo_mmap_entry): Likewise.
32050 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
32051
1ae2078c 320522009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32053
32054 Enable bsd.mod on coreboot.
32055
32056 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
32057 (bsd_mod_SOURCES): New variable.
32058 (bsd_mod_CFLAGS): Likewise.
32059 (bsd_mod_LDFLAGS): Likewise.
32060 (bsd_mod_ASFLAGS): Likewise.
32061 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
32062 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
32063
beefc598 320642009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32065
32066 Cleanup NetBSD root support.
32067
32068 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
32069 grub_bsd_get_device.
32070 Fix typo.
32071
3b76e68b 320722009-08-25 Felix Zielcke <fzielcke@z-51.de>
32073
32074 * util/grub.d/00_header.in: Move check for the video backend of
32075 gfxterm from here ...
32076 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
32077 a suitable video backend.
32078
aea664ea 320792009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32080
32081 Fix breakage in grub-setup.
32082
32083 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
32084 "msdos_partition_map".
32085
ff747d50 320862009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32087
32088 Fix breakage in normal/auth.c.
32089
32090 * normal/auth.c (grub_iswordseparator): New function.
32091
e7e1f93f 320922009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32093
32094 Authentication support.
32095
32096 * commands/password.c: New file.
32097 * conf/common.rmk (pkglib_MODULES): Add password.mod.
32098 (password_mod_SOURCES): New variable.
32099 (password_mod_CFLAGS): Likewise.
32100 (password_mod_LDFLAGS): Likewise.
32101 (normal_mod_SOURCES): Add normal/auth.c.
32102 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
32103 normal/auth.c.
32104 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32105 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32106 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32108 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32109 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32110 * include/grub/auth.h: New file.
32111 * include/grub/err.h (grub_err_t): New enum value
32112 GRUB_ERR_ACCESS_DENIED.
32113 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
32114 'users'.
32115 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
32116 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
32117 users updated.
32118 * normal/auth.c: New file.
32119 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
32120 (grub_cmdline_run): Don't allow to go to command line without
32121 authentication.
32122 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
32123 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
32124 menuentry without superuser rights.
32125 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
32126 user isn't a superuser.
32127
70f1161d 321282009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32129
32130 Save space by inlining misc.c functions.
32131
32132 * kern/misc.c (grub_iswordseparator): Made static.
32133 * kern/misc.c (grub_strcat): Moved from here ...
32134 * include/grub/misc.h (grub_strcat): ... here. Inlined.
32135 * kern/misc.c (grub_strncat): Moved from here ...
32136 * include/grub/misc.h (grub_strncat): ... here. Inlined.
32137 * kern/misc.c (grub_strcasecmp): Moved from here ...
32138 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
32139 * kern/misc.c (grub_strncasecmp): Moved from here ...
32140 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
32141 * kern/misc.c (grub_isalpha): Moved from here ...
32142 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
32143 * kern/misc.c (grub_isdigit): Moved from here ...
32144 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
32145 * kern/misc.c (grub_isgraph): Moved from here ...
32146 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
32147 * kern/misc.c (grub_tolower): Moved from here ...
32148 * include/grub/misc.h (grub_tolower): ... here. Inlined.
32149
48e40bff 321502009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32151
32152 * script/sh/function.c (grub_script_function_find): Cut error message
32153 not to flood terminal.
32154 * script/sh/lexer.c (grub_script_yylex): Remove command line length
32155 limit.
32156 * script/sh/script.c (grub_script_arg_add): Duplicate string.
32157
c385bfc3 321582009-08-24 Colin Watson <cjwatson@ubuntu.com>
32159
32160 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
32161 `report' grub_uint8_t *.
32162 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
32163 Use a 50-millisecond timeout rather than just repeating
32164 grub_usb_keyboard_getreport 50 times.
32165 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
32166
2d21e3e8 321672009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32168
32169 Rename *_partition_map to part_*
32170
32171 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
32172 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
32173 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
32174 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
32175 All users updated.
32176 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
32177 All users updated.
32178 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
32179 * util/grub-probe.c (probe_partmap): Don't transform partition name
32180 to get module name.
32181
dd103c4e 321822009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32183
32184 Fix OpenBSD and NetBSD support.
32185
32186 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
32187 memory address conflict.
32188 (OPENBSD_MMAP_ACPI): New definition.
32189 (OPENBSD_MMAP_NVS): Likewise.
32190 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
32191 and OPENBSD_MMAP_NVS.
32192 Add memory map terminator
32193 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 32194 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 32195
16c84d74 321962009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32197
32198 Let user specify NetBSD root device.
32199
32200 * loader/i386/bsd.c (netbsd_root): New variable.
32201 (netbsd_opts): New option 'root'.
32202 (NETBSD_ROOT_ARG): New macro.
32203 (grub_netbsd_boot): Use 'netbsd_root'.
32204 (grub_bsd_unload): Free 'netbsd_root'.
32205 (grub_cmd_netbsd): Fill 'netbsd_root'.
32206
adb29902 322072009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32208
32209 Support for 64-bit NetBSD.
32210
32211 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
32212 point when booting non-FreeBSD.
32213
f5ae9f74 322142009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32215
32216 Support --no-smp and --no-acpi for NetBSD.
32217
32218 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
32219 (NETBSD_AB_NOACPI): Likewise.
32220 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
32221 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
32222
de74f136 322232009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32224
32225 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
32226 errors.
32227 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
32228 errors. Call grub_error when needed.
32229
e9a925da 322302009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32231
32232 * commands/search.c (search_fs): Try searching without autoload first.
32233 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
32234 filesystem module explicitly for faster booting.
32235
5174302b 322362009-08-23 Colin Watson <cjwatson@ubuntu.com>
32237
32238 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
32239
c8c80635 322402009-08-23 Colin Watson <cjwatson@ubuntu.com>
32241
32242 * util/grub.d/30_os-prober.in: Disable os-prober if
32243 `GRUB_DISABLE_OS_PROBER' was set to true.
32244
71acf5e5 322452009-08-23 Robert Millan <rmh.grub@aybabtu.com>
32246
32247 * partmap/pc.c: Rename to ...
32248 * partmap/msdos.c: ... this. Update all users.
32249 (grub_pc_partition_map): Rename to ...
32250 (grub_msdos_partition_map): ... this. Update all users.
32251
32252 * parttool/pcpart.c: Rename to ...
32253 * parttool/msdospart.c: ... this. Update all users.
32254
32255 * include/grub/pc_partition.h: Rename to ...
32256 * include/grub/msdos_partition.h: ... this. Update all users.
32257 (grub_pc_partition_bsd_entry): Rename to ...
32258 (grub_msdos_partition_bsd_entry): ... this. Update all users.
32259 (grub_pc_partition_disk_label): Rename to ...
32260 (grub_msdos_partition_disk_label): ... this. Update all users.
32261 (grub_pc_partition_entry): Rename to ...
32262 (grub_msdos_partition_entry): ... this. Update all users.
32263 (grub_pc_partition_mbr): Rename to ...
32264 (grub_msdos_partition_mbr): ... this. Update all users.
32265 (grub_pc_partition): Rename to ...
32266 (grub_msdos_partition): ... this. Update all users.
32267 (grub_pc_partition_is_empty): Rename to ...
32268 (grub_msdos_partition_is_empty): ... this. Update all users.
32269 (grub_pc_partition_is_extended): Rename to ...
32270 (grub_msdos_partition_is_extended): ... this. Update all users.
32271 (grub_pc_partition_is_bsd): Rename to ...
32272 (grub_msdos_partition_is_bsd): ... this. Update all users.
32273
32274 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
32275 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
32276 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
32277 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
32278 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
32279 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
32280 (gpt_mod_LDFLAGS): Rename to ...
32281 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
32282 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
32283 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
32284 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
32285 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
32286 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
32287 (part_gpt_mod_LDFLAGS): ... this.
32288 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
32289 `pcpart.mod' to `msdospart.mod'.
32290 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
32291 to ...
32292 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
32293 (msdospart_mod_LDFLAGS): ... this.
32294
c11fded5 322952009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32296
32297 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
32298 (openbsd_opts): Likewise.
32299 (netbsd_opts): Likewise.
32300 (freebsd_flags): Added 0 terminator.
32301 (openbsd_flags): Likewise.
32302 (netbsd_flags): Likewise.
32303 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
32304 (grub_cmd_freebsd): Transformed into extended command.
32305 (grub_cmd_openbsd): Likewise.
32306 (grub_cmd_netbsd): Likewise.
32307 (cmd_freebsd): Changed type to grub_extcmd_t.
32308 (cmd_openbsd): Likewise.
32309 (cmd_netbsd): Likewise.
32310 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
32311 grub_cmd_openbsd as extended commands.
32312 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
32313 cmd_netbsd and cmd_openbsd
32314
11d1c769 323152009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
32316
32317 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
32318
7a9094e5 323192009-08-21 Pavel Roskin <proski@gnu.org>
32320
5496c37e 32321 * Makefile.in (install-local): When checking if a file is in the
32322 build directory, use "test -e" to detect symlinks.
32323
7a9094e5 32324 * Makefile.in (install-local): Remove all files in
32325 $(DESTDIR)$(pkglibdir) before installing new files there.
32326
e53cea11 323272009-08-18 Felix Zielcke <fzielcke@z-51.de>
32328
32329 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
32330 grub-mkelfimage.
32331
9aced544 323322009-08-18 Felix Zielcke <fzielcke@z-51.de>
32333
32334 * util/grub-mkconfig.in: Don't use gfxterm by default if not
32335 explicitly specified by the user.
32336
b7da6bab 323372009-08-18 Pavel Roskin <proski@gnu.org>
32338
32339 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
32340 grub_uint8_t pointer for data.
32341 * include/grub/fbutil.h (struct grub_video_fbblit_info):
32342 Likewise.
32343 * video/fb/fbutil.c: Remove unnecessary casts.
32344
19f1b335 323452009-08-17 Michal Suchanek <hramrach@centrum.cz>
32346
32347 VBE cleanup.
32348
32349 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
32350 (grub_vbe_set_video_mode): Save active mode info
32351 only after setting the mode.
32352 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
32353 second argument.
32354
2f467aa9 323552009-08-17 Michal Suchanek <hramrach@centrum.cz>
32356
32357 Rename variables for clarity.
32358
32359 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
32360 (active_vbe_mode_info): ... this. All users updated.
32361 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
32362 All users updated.
32363 (initial_mode): Rename to ...
32364 (initial_vbe_mode): ... this. All users updated.
32365 (mode_in_use): Rename to ..
32366 (vbe_mode_in_use): ... this. All users updated.
32367 (mode_list): Rename to ..
32368 (vbe_mode_list): ... this. All users updated.
32369 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
32370 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
32371 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
32372 'mode_list_size' to 'vbe_mode_list_size'.
32373 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
32374 'best_mode_info' to 'best_vbe_mode_info' and
32375 'best_mode' to 'best_vbe_mode'
32376
6025fcd7 323772009-08-17 Michal Suchanek <hramrach@centrum.cz>
32378
32379 Remove duplicate grub_video_fb_get_video_ptr.
32380
32381 * include/grub/fbutil.h (get_data_ptr): Rename to ...
32382 (grub_video_fb_get_video_ptr): ... this.
32383 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
32384 * video/fb/fbutil.c: Add comment about addressing.
32385 (get_data_ptr): Rename to ...
32386 (grub_video_fb_get_video_ptr): ... this. All users updated.
32387 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
32388
cc8c6faf 323892009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32390
32391 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
32392 grub_dprintf() that was just added.
32393
08aa61f0 323942009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32395
32396 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
32397 (DEFAULT_VIDEO_MODE): Remove macros.
32398 (grub_linux_boot): Remove assumption that Linux has FB support,
32399 and use "text" as default video mode.
32400
7cef4f75 324012009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
32402
32403 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
32404 grub_dprintf.
32405 * fs/fat.c (grub_fat_read_data): Likewise.
32406
e1f39873 324072009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32408
32409 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
32410 payload.
32411 (grub_module): Likewise.
32412
c166d79e 324132009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32414
32415 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
32416 mbi->cmdline but free playground.
32417
c60cee8e 324182009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32419
32420 Handle group offset on UFS1.
32421
32422 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
32423 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
32424
c0d8b5d4 324252009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32426
32427 Split ufs.mod into ufs1.mod and ufs2.mod.
32428
32429 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
32430 (grub_fstest_SOURCES): Likewise.
32431 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
32432 (ufs_mod_SOURCES): Remove.
32433 (ufs_mod_CFLAGS): Likewise.
32434 (ufs_mod_LDFLAGS): Likewise.
32435 (ufs1_mod_SOURCES): New variable.
32436 (ufs1_mod_CFLAGS): Likewise.
32437 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 32438 (ufs2_mod_SOURCES): New variable.
32439 (ufs2_mod_CFLAGS): Likewise.
32440 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 32441 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
32442 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32443 Likewise.
32444 (grub_emu_SOURCES): Likewise.
32445 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32446 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32447 (grub_setup_SOURCES): Likewise.
32448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32449 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
32450 (grub_setup_SOURCES): Likewise.
32451 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32452 Likewise.
32453 * fs/ufs2.c: New file.
32454 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
32455
d3539132 324562009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32457
32458 Framebuffer split.
32459
32460 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
32461 subsystem at the end.
32462 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
32463 (video_fb_mod_SOURCES): New variable.
32464 (video_fb_mod_CFLAGS): Likewise.
32465 (video_fb_mod_LDFLAGS): Likewise.
32466 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
32467 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
32468 * video/i386/pc/vbeblit.c: Moved from here ...
32469 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
32470 * video/i386/pc/vbefill.c: Moved from here ...
32471 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
32472 * video/i386/pc/vbeutil.c: Moved from here ...
32473 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
32474 * include/grub/i386/pc/vbeblit.h: Moved from here ...
32475 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
32476 * include/grub/i386/pc/vbefill.h: Moved from here ...
32477 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
32478 * include/grub/i386/pc/vbeutil.h: Moved from here ...
32479 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
32480 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
32481 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
32482 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
32483 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
32484 (grub_video_adapter): Added 'get_info_and_fini'.
32485 (grub_video_get_info_and_fini): New prototype.
32486 (grub_video_set_mode): make modestring const char *.
32487 * loader/i386/linux.c (grub_linux_setup_video): Use
32488 grub_video_get_info_and_fini.
32489 (grub_linux_boot): Move modesetting just before booting.
32490 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
32491 grub_video_get_info_and_fini.
32492 * video/i386/pc/vbe.c: Moved framebuffer part ...
32493 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
32494 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
32495 grub_video_fbstd_colors and grub_video_fb_set_palette.
32496 (grub_video_vbe_init): Clear 'framebuffer' variable and use
32497 grub_video_fb_init.
32498 (grub_video_vbe_fini): Use grub_video_fb_fini.
32499 (grub_video_vbe_setup): Use framebuffer.render_target instead of
32500 render_target and use grub_video_fb_set_active_render_target and
32501 grub_video_fb_set_palette.
32502 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
32503 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
32504 (grub_video_vbe_adapter): Use framebuffer.
32505 * video/video.c (grub_video_get_info_and_fini): New function.
32506 (grub_video_set_mode): Make modestring const char *.
32507 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
32508 values are already initialised.
32509
d404ee56 325102009-08-14 Pavel Roskin <proski@gnu.org>
32511
32512 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
32513 ABS and APPLE_CC.
32514 * boot/i386/pc/diskboot.S: Likewise.
32515 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
32516 sectors allow compilation on MacOSX.
32517 * conf/i386-pc.rmk: Enable unconditional compilation of
32518 lnxboot.img.
32519
9a10df16 325202009-08-13 Colin Watson <cjwatson@ubuntu.com>
32521
32522 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
32523 * util/grub.d/00_header.in: Enter interruptible sleep if
32524 GRUB_HIDDEN_TIMEOUT is set.
32525
be3c9ca7 325262009-08-13 Yves Blusseau <blusseau@zetam.org>
32527
32528 * include/grub/symbol.h: Add the LOCAL macro.
32529 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
32530 starting with "L_".
32531
1f9e557e 325322009-08-13 Pavel Roskin <proski@gnu.org>
32533
9ca62843 32534 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
32535 any modern compilers we support.
32536
1f9e557e 32537 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
32538 Use local labels starting with "L_" so that Apple assembler
32539 knows they are local.
32540
81623db6 325412009-08-10 Robert Millan <rmh.grub@aybabtu.com>
32542
32543 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
32544 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
32545 (bsd_kernel_types): ... this enum.
32546
32547 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
32548 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
32549 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
32550
32551 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
32552 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
32553 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
32554 messages.
32555
f5d35e7a 325562009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32557
32558 * util/grub-dumpdevtree: Moved from here ...
32559 * util/i386/efi/grub-dumpdevtree: ... to here.
32560 (hexify): New function. Converts a string to its hex version.
32561 Generate hex versions of "efi" and "device-properties" by calling
32562 hexify() on the ASCII strings rather than by hardcoding numbers.
32563
d1e1d527 325642009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32565
32566 * fs/jfs.c: Update copyright year.
32567
1ebbe064 325682009-08-08 Felix Zielcke <fzielcke@z-51.de>
32569
32570 * util/grub.d/00_header.in: Fix a comment.
32571 * util/grub.d/10_linux.in: Likewise.
32572 * util/grub.d/10_windows.in: Likewise.
32573 * util/grub.d/10_hurd.in: Likewise.
32574
a78c8d24 325752009-08-08 Felix Zielcke <fzielcke@z-51.de>
32576
32577 * util/grub-mkconfig.in: Allow the user to specify the used font
32578 with GRUB_FONT.
32579
29a6b9e8 325802009-08-08 Pavel Roskin <proski@gnu.org>
32581
b5f16cc4 32582 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
32583 available, xfs.mod needs it now.
32584
2f5cb827 32585 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
32586 the "g" modifier in sed when the intention is to strip something
32587 once. This fixes comparison of kernels with multiple dashes.
32588
29a6b9e8 32589 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
32590 on it. Add missing space before closing bracket. Fix
32591 misleading formatting.
32592
892a3d98 325932009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32594
32595 * docs/grub.texi: Major overhaul. Remove all sections that are
32596 specific to GRUB Legacy, or mostly composed of Legacy-specific
32597 information.
32598
ed94253f 325992009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32600
32601 * docs/version.texi: New file. Provides version information for
32602 grub.texi.
32603
126d6628 326042009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32605
32606 * docs/grub.texi: Update CVS information to SVN.
32607 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
32608
998b5aa9 326092009-08-07 Felix Zielcke <fzielcke@z-51.de>
32610
32611 * util/grub-mkconfig.in: Remove a wrong `fi'.
32612
818e094a 326132009-08-07 Felix Zielcke <fzielcke@z-51.de>
32614
32615 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
32616 (grub_jfs_uuid): New function.
32617 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
32618
b969c52f 326192009-08-07 Felix Zielcke <fzielcke@z-51.de>
32620
32621 * util/grub-mkconfig_lib.in (font_path): Move the functionality
32622 of it to ...
32623 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
32624 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
32625
7a4894cc 326262009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32627
32628 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
32629 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
32630 Update all users.
32631
32632 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
32633 not just "vmlinu[zx]".
32634 Moved from here ...
32635 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
32636 all users.
32637
32638 * util/grub.d/10_linux.in (find_latest): Moved from here ...
32639 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
32640 all users.
32641
4e2171f8 326422009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32643
32644 * util/grub.d/10_freebsd.in: Use an absolute device path for
32645 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
32646
6dcfcb32 326472009-08-06 Felix Zielcke <fzielcke@z-51.de>
32648
32649 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
32650 handling of multiple abstraction modules.
32651
f56a8756 326522009-08-04 Robert Millan <rmh.grub@aybabtu.com>
32653
32654 Fix a bug resulting in black screen when loading Linux using a
32655 packed video mode.
32656
32657 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
32658 function.
32659
32660 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
32661 (grub_vbe_bios_getset_dac_palette_width): New function.
32662 (grub_vbe_bios_get_dac_palette_width)
32663 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
32664 grub_vbe_bios_getset_dac_palette_width()).
32665
32666 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
32667 check for return status.
32668 (grub_vbe_get_video_mode_info): When getting information for a packed
32669 mode (<= 8 bpp), obtain DAC palette width using
32670 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
32671 {red,green,blue}_mark_size.
32672
222671b2 326732009-08-04 Felix Zielcke <fzielcke@z-51.de>
32674
ecb1a6d9 32675 * commands/search.c (options): Fix help output to match actual code.
222671b2 32676
f84114f5 326772009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
32678
32679 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
32680 of homegrown code.
32681
bd288a20 326822009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 32683
32684 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
32685 on XFS or ReiserFS.
32686
8aab5e25 326872009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
32688
32689 Support Apple partition map with sector size different from 512 bytes.
32690
32691 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
32692 (apple_partition_map_iterate): Respect 'aheader.blocksize'
32693 and 'apart.partmap_size'.
32694
6ad6258a 326952009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
326962009-08-01 Robert Millan <rmh.grub@aybabtu.com>
32697
32698 Fix cpuid command.
32699
32700 * commands/i386/cpuid.c (options): New variable.
32701 (grub_cmd_cpuid): Return real error.
32702 (GRUB_MOD_INIT(cpuid)): Declare options.
32703
67459bc6 327042009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
32705
32706 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
32707 valid.
32708
fbc6ab54 327092009-07-31 Bean <bean123ch@gmail.com>
32710
32711 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
32712 log2_inode.
32713 (grub_fshelp_node): Move inode field to the end.
32714 (grub_xfs_data): Remove inode field.
32715 (grub_xfs_inode_block): Calculate inode size using sblock.
32716 (grub_xfs_inode_offset): Likewise.
32717 (grub_xfs_read_inode): Calculate inode size using sblock.
32718 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
32719 (grub_xfs_iterate_dir): Calculate inode size using sblock.
32720 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
32721 to match inode size.
32722 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
32723 not accessible when data is null.
32724 (grub_xfs_open): Likewise.
32725
f45d6cfc 327262009-07-31 Bean <bean123ch@gmail.com>
32727
32728 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
32729 Don't change pv->disk if it's already set.
32730
32731 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
32732 (grub_raid_register): ... here.
32733 (grub_raid_rescan): Removed.
32734
32735 * include/grub/raid.h (grub_raid_rescan): Removed.
32736
32737 * util/grub-fstest.c: Remove include file <grub/raid.h>.
32738 (fstest): Replace grub_raid_rescan with module fini function followed
32739 by init function.
32740
32741 * util/grub-probe.c: Add include file <grub/raid.h>.
32742 (probe_raid_level): New function.
32743 (probe): Detect abstraction by walking the disk device, support two
32744 level of abstraction (LVM on RAID) when detecting partition map.
32745
24443b5a 327462009-07-31 Pavel Roskin <proski@gnu.org>
32747
32748 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
32749 to grub_zalloc(), it was erroneous.
32750 Reported by Bean <bean123ch@gmail.com>
32751
a275d9e7 327522009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
32753
32754 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 32755 embedding zone, not only the first one.
a275d9e7 32756
56c5a47f 327572009-07-29 Joe Auricchio <jauricchio@gmail.com>
32758
32759 * term/gfxterm.c (clear_char): New function.
32760 (grub_virtual_screen_setup): Use clear_char.
32761 (scroll_up): Likewise.
32762 (grub_virtual_screen_cls): Likewise.
32763
67bb323a 327642009-07-29 Felix Zielcke <fzielcke@z-51.de>
32765
32766 * util/deviceiter.c (get_acceleraid_disk_name): New static
32767 function.
32768 (grub_util_iterate_devices): Handle Accelraid devices.
32769 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
32770
388a7c75 327712009-07-28 Robert Millan <rmh.grub@aybabtu.com>
32772
32773 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
32774 separator for the suggested gfxpayload string (';' collides with the
32775 parser and needs escaping).
32776
3bb7abcf 327772009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
32778
32779 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
32780 Clear direction flag before jumping to OS.
32781 (grub_multiboot2_real_boot): Likewise.
32782
2ddd36d7 327832009-07-28 Felix Zielcke <fzielcke@z-51.de>
32784
32785 * util/i386/pc/grub-install: Fix parsing of --disk-module
32786 option.
32787
c521b62b 327882009-07-28 Felix Zielcke <fzielcke@z-51.de>
32789
32790 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
32791 when embedding.
32792
880e0a0c 327932009-07-26 Felix Zielcke <fzielcke@z-51.de>
32794
32795 * util/grub-mkconfig.in (package_version): New variable.
32796 Use it do display the version.
32797
2366e356 327982009-07-25 Felix Zielcke <fzielcke@z-51.de>
32799
32800 * kern/file.c (grub_file_open): Revert to previous check with
32801 grub_errno.
32802
7ad8c80e 328032009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
32804
32805 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
32806 from help line. It's out of sync with code.
32807
72b9658b 328082009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
32809
32810 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
32811 entries on failed boot.
32812
77435277 328132009-07-25 Felix Zielcke <fzielcke@z-51.de>
32814
32815 * kern/file.c (grub_file_open): Fix an error check.
32816
fcaa8b21 328172009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
32818
35d16c74 32819 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
32820 partition map couldn't be identified.
fcaa8b21 32821
48904cd1 328222009-07-23 Pavel Roskin <proski@gnu.org>
32823
ef3c317f 32824 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
32825 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
32826 case of little endian words becomes just an optimization.
32827 Respect const modifier.
ad8ea1f4 32828 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 32829
48904cd1 32830 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
32831 to avoid loss of upper bits if align is unsigned and shorter
32832 than addr.
32833
260c9a89 328342009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
32835
32836 UUID support for UFS
32837
32838 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
32839 (grub_ufs_uuid): New function.
32840 (grub_ufs_fs): add .uuid
32841
f76ce889 328422009-07-21 Pavel Roskin <proski@gnu.org>
32843
32844 * kern/dl.c (grub_dl_check_header): Make static.
32845
6a6cbcaf 328462009-07-21 Felix Zielcke <fzielcke@z-51.de>
32847
32848 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
32849 add drivemap for Vista. It breaks Windows 7.
32850
cffcddb2 328512009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
32852
32853 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
32854 128 bytes
32855
1ef44b80 328562009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32857
32858 Add BFS support
32859
32860 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
32861 (grub_fstest_SOURCES): Likewise.
32862 (pkglib_MODULES): Add befs.mod.
32863 (befs_mod_SOURCES): New variable.
32864 (befs_mod_CFLAGS): Likewise.
32865 (befs_mod_LDFLAGS): Likewise.
32866 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32867 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32868 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32869 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32870 (grub_setup_SOURCES): Likewise.
32871 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32872 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32873 (grub_setup_SOURCES): Likewise.
32874 * fs/befs.c: New file.
32875 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
32876 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
32877 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
32878 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
32879 (B_KEY_INDEX_ALIGN): New declaration.
32880 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
32881 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
32882 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
32883 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
32884 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
32885 (grub_afs_mount) [MODE_BFS]: Likewise.
32886 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
32887 (grub_afs_fs): Use GRUB_AFS_FSNAME
32888 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
32889 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
32890 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
32891 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
32892
4f253044 328932009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
32894
32895 * util/getroot.c (find_root_device): Add support for MacOSX.
32896 * util/hostdisk.c: Likewise.
32897
57a55913 328982009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32899
32900 * font/font.c (find_glyph): Check whether a font is present to avoid
32901 segmentation fault.
75421ca9 32902
329032009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 32904
32905 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
32906
e98cd0c2 329072009-07-20 Pavel Roskin <proski@gnu.org>
32908
32909 * configure.ac: Trim excessively wordy excuses.
32910
1d2d169a 329112009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32912
32913 Add symlink, mtime and label support to AtheFS.
32914
32915 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
32916 (grub_afs_iterate_dir): Handle symlinks.
32917 (grub_afs_open): Use grub_afs_read_symlink.
32918 (grub_afs_dir): Likewise.
32919 Pass mtime.
32920 (grub_afs_label): New function.
32921 (grub_afs_fs): Add grub_afs_label.
32922 (grub_afs_read_symlink): New function.
32923
186f3189 329242009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32925
32926 Fix AtheFS support.
32927
32928 * fs/afs.c: Fix comments style.
32929 (grub_afs_blockrun): Declare as packed.
32930 (grub_afs_datastream): Likewise.
32931 (grub_afs_bnode): Likewise.
32932 (grub_afs_btree): Likewise.
32933 (grub_afs_sblock): Likewise.
32934 Declare `name' as char.
32935 (grub_afs_inode): Declare as packed.
32936 Change void *vnode to grub_uint32_t unused.
32937 (grub_afs_iterate_dir): Check that key_size is positive.
32938 (grub_afs_mount): Don't read superblock twice.
75421ca9 32939 (grub_afs_dir): Don't free node in case of error,
186f3189 32940 grub_fshelp_find_file already handles this.
32941 (grub_afs_open): Likewise.
32942
5680109e 329432009-07-19 Pavel Roskin <proski@gnu.org>
32944
32945 * Makefile.in: Remove LIBLZO and enable_lzo.
32946 * conf/i386-pc.rmk: Remove lzo support.
32947 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
32948 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
32949 support.
32950 * kern/i386/pc/lzo1x.S: Remove.
32951 * kern/i386/pc/startup.S: Remove lzo support.
32952 * util/i386/pc/grub-mkimage.c: Likewise.
32953
ac70fa32 329542009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
32955
32956 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
32957 * fs/xfs.c (grub_xfs_dir): Likewise.
32958 * fs/afs.c (grub_afs_dir): Likewise.
32959 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
32960 (grub_iso9660_open): Likewise.
32961 * fs/jfs.c (grub_jfs_open): Likewise.
32962 * fs/ext2.c (grub_ext2_dir): Likewise.
32963 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
32964 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 32965
eab58da2 329662009-07-16 Pavel Roskin <proski@gnu.org>
32967
d2838156 32968 * configure.ac: Never add "-c" to CFLAGS.
32969
55c70904 32970 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
32971
43e6200c 32972 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
32973 grub_cv_cc_efiemu should be used.
32974
ce7a733d 32975 * configure.ac: Typo fixes.
32976
eab58da2 32977 * kern/mm.c (grub_zalloc): New function.
32978 (grub_debug_zalloc): Likewise.
32979 * include/grub/mm.h: Declare grub_zalloc() and
32980 grub_debug_zalloc().
32981 * util/misc.c (grub_zalloc): New function.
32982 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
32983 instead of grub_malloc(), remove unneeded initializations.
32984 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
32985 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
32986 * commands/parttool.c (grub_cmd_parttool): Likewise.
32987 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
32988 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
32989 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
32990 * disk/usbms.c (grub_usbms_finddevs): Likewise.
32991 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
32992 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
32993 (grub_cmd_efiemu_pnvram): Likewise.
32994 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
32995 * fs/iso9660.c (grub_iso9660_mount): Likewise.
32996 (grub_iso9660_iterate_dir): Likewise.
32997 * fs/jfs.c (grub_jfs_opendir): Likewise.
32998 * fs/ntfs.c (list_file): Likewise.
32999 (grub_ntfs_mount): Likewise.
33000 * kern/disk.c (grub_disk_open): Likewise.
33001 * kern/dl.c (grub_dl_load_core): Likewise.
33002 * kern/elf.c (grub_elf_file): Likewise.
33003 * kern/env.c (grub_env_context_open): Likewise.
33004 (grub_env_set): Likewise.
33005 (grub_env_set_data_slot): Likewise.
33006 * kern/file.c (grub_file_open): Likewise.
33007 * kern/fs.c (grub_fs_blocklist_open): Likewise.
33008 * loader/i386/multiboot.c (grub_module): Likewise.
33009 * loader/xnu.c (grub_xnu_create_key): Likewise.
33010 (grub_xnu_create_value): Likewise.
33011 * normal/main.c (grub_normal_add_menu_entry): Likewise.
33012 (read_config_file): Likewise.
33013 * normal/menu_entry.c (make_screen): Likewise.
33014 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33015 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
33016 * script/sh/script.c (grub_script_parse): Likewise.
33017 * video/bitmap.c (grub_video_bitmap_create): Likewise.
33018 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
33019 * video/readers/png.c (grub_png_output_byte): Likewise.
33020 (grub_video_reader_png): Likewise.
33021
830afef7 330222009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 33023
33024 Enable all targets that can be built by default
33025
830afef7 33026 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 33027 grub-mkfont and grub-fstest if they can be built
33028
ee293aee 330292009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33030
33031 Fix hang and segmentation fault in grub-emu-usb
33032
33033 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
33034 * util/usb.c (grub_libusb_devices): likewise
33035 (grub_libusb_init): rename to ...
33036 (GRUB_MOD_INIT (libusb)):...this
33037 (grub_libusb_fini): rename to ..
33038 (GRUB_MOD_FINI (libusb)):...this
33039 * disk/usbms.c (grub_usbms_transfer): fix retry logic
33040 * include/grub/disk.h (grub_raid_init): removed, it's useless
33041 (grub_raid_fini): likewise
33042 (grub_lvm_init): likewise
33043 (grub_lvm_fini): likewise
33044 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
33045 by grub_init_all
33046
94414221 330472009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33048
33049 Fix libusb
33050
33051 * Makefile.in (LIBUSB): new macro
33052 * genmk.rb (Utility/print_tail): new method
33053 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
33054 (top level): call util.print_tail at the end.
33055
59ade63d 330562009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33057
33058 Make FreeBSD accept zpool.cache
33059
33060 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
33061 type is /boot/zfs/zpool.cache
33062
a58da8c7 330632009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33064
33065 Fix 64-bit efiemu
33066
33067 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
33068 correct wrong typedef
33069 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
33070
20591577 330712009-07-15 Pavel Roskin <proski@gnu.org>
33072
560ca572 33073 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
33074 * kern/disk.c (struct grub_disk_cache): Likewise.
33075
e8e8e4fd 33076 * commands/probe.c (options): Typo fix.
33077
fde24e10 33078 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
33079 Increase to 0x5a to accommodate FAT32. Adjust other offsets
33080 accordingly.
33081 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
33082
379c54c1 33083 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
33084 the end of "Error" to make the message more readable.
33085
7bd8f5bf 33086 * boot/i386/pc/boot.S (kernel_segment): Remove.
33087 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
33088 for destination.
33089
40b132c5 33090 * boot/i386/pc/boot.S (boot_version): Remove.
33091 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
33092 Remove.
33093
20591577 33094 * include/grub/i386/pc/boot.h: Sort all offsets.
33095 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
33096 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
33097 * boot/i386/pc/boot.S: Assert location of every offset listed in
33098 include/grub/i386/pc/boot.h.
33099
2df32b2c 331002009-07-13 Pavel Roskin <proski@gnu.org>
33101
44b5d879 33102 * include/grub/i386/coreboot/machine.h: Rename
33103 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
33104 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
33105 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
33106
17dc3751 33107 * kern/dl.c: Force native word size to suppress warnings when
33108 compiling grub-emu.
33109
2df32b2c 33110 * kern/device.c (grub_device_iterate): Change struct part_ent to
33111 hold the name, not a pointer to it. Use one grub_malloc() per
33112 partition, not two. Free partition_name if grub_malloc() fails.
33113 Set ents to NULL only before grub_partition_iterate() is called.
33114
75c59f59 331152009-07-11 Bean <bean123ch@gmail.com>
33116
33117 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
33118 childname.
33119
0ae1bf88 331202009-07-10 Bean <bean123ch@gmail.com>
331212009-07-10 Robert Millan <rmh.grub@aybabtu.com>
33122
33123 * kern/ieee1275/openfw.c (grub_children_iterate)
33124 (grub_devalias_iterate): Fix size evaluation for property or path
33125 strings, which was broken since r2132.
33126
8279cade 331272009-07-07 Pavel Roskin <proski@gnu.org>
33128
7d8a52d3 33129 * commands/search.c (search_file): Merge into ...
33130 (search_fs): ... this. Accept search type as argument.
33131 (grub_cmd_search): Pass search type to search_fs().
33132
25f9a05a 33133 * include/grub/util/console.h: New file.
33134 * util/console.c: Use it instead of grub/machine/console.h.
33135 * util/grub-emu.c: Likewise.
33136
8279cade 33137 * lib/arg.c (find_long_option): Remove.
33138 (find_long): Add `len' argument, make `s' const char *.
33139 (grub_arg_parse): Parse long options in place, not in a
33140 temporary buffer.
33141
4a11b60f 331422009-07-06 Pavel Roskin <proski@gnu.org>
33143
99f68041 33144 * commands/search.c (search_fs): Fix potential NULL pointer
33145 dereference.
33146
4a11b60f 33147 * commands/search.c (search_fs): Replace QUID macro with quid_fn
33148 function pointer.
33149
e110f4de 331502009-07-06 Daniel Mierswa <impulze@impulze.org>
33151
33152 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
33153 comparison.
33154
46eeb6a2 331552009-07-05 Pavel Roskin <proski@gnu.org>
33156
bab74958 33157 * include/grub/i386/linux.h (struct linux_kernel_params):
33158 Restore padding3, it's still needed.
33159
46eeb6a2 33160 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
33161 FreeBSD.
33162 * util/osdetect.lua: Likewise.
33163
b4a1dc79 331642009-07-05 Bean <bean123ch@gmail.com>
33165
33166 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
33167
33168 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
33169 (grub_lua_getenv): Likewise.
33170 (grub_lua_setenv): Likewise.
33171 (save_errno): New function.
33172 (push_result): Likewise.
33173 (grub_lua_enum_device): Likewise.
33174 (grub_lua_enum_file): Likewise.
33175 (grub_lua_file_open): Likewise.
33176 (grub_lua_file_close): Likewise.
33177 (grub_lua_file_seek): Likewise.
33178 (grub_lua_file_read): Likewise.
33179 (grub_lua_file_getline): Likewise.
33180 (grub_lua_file_getsize): Likewise.
33181 (grub_lua_file_getpos): Likewise.
33182 (grub_lua_file_eof): Likewise.
33183 (grub_lua_file_exist): Likewise.
33184 (grub_lua_add_menu): Likewise.
33185
33186 * script/lua/grub_lua.h (isupper): New inline function.
33187 (islower): Likewise.
33188 (ispunct): Likewise.
33189 (isxdigit): Likewise.
33190 (strcspn): Change to normal function.
33191 (strpbkr): New function declaration.
33192 (memchr): Likewise.
33193
33194 * script/lua/grub_main.c (scan_str): New function.
33195 (strcspn): Likewise.
33196 (strpbrk): Likewise.
33197 (memchr): Likewise.
33198
33199 * script/lua/linit.c (lualibs): Enable the string library.
33200
33201 * util/osdetect.lua: New file.
33202
2da92295 332032009-07-04 Robert Millan <rmh.grub@aybabtu.com>
33204
33205 * include/grub/i386/linux.h (struct linux_kernel_params): Add
33206 `capabilities' member.
33207
b2582ec9 332082009-07-02 Pavel Roskin <proski@gnu.org>
33209
33210 * genparttoollist.sh: Add missing newline at the end.
33211
32622956 332122009-07-01 Pavel Roskin <proski@gnu.org>
33213
87a7339e 33214 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
33215
d23af54e 33216 * util/hostdisk.c (open_device): Remove `const' from
33217 `sysctl_size', as sysctlbyname() can change it (in this case it
33218 doesn't actually happen).
33219
c94b18a9 33220 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
33221 using signed long int constants.
33222
c6cd3ef0 33223 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
33224 constant to avoid a warning on FreeBSD.
33225
0df63420 33226 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
33227 where it's needed.
33228
999577f1 33229 * Makefile.in: Install include/grub/machine symlink.
33230
6f41557f 33231 * Makefile.in: When installing symlinks, use "cp -fR", which
33232 works on FreeBSD and MacOSX.
33233 From Yves Blusseau <cl7m42e02@sneakemail.com>
33234
c8d22988 33235 * kern/dl.c (grub_dl_resolve_symbol): Make static.
33236 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
33237
1b96e952 33238 * util/misc.c: Move grub_reboot() and grub_halt() ...
33239 * util/grub-emu.c: ... here. Make main_env static.
33240 * include/grub/util/misc.h: Remove main_env.
33241
2ef0084d 33242 * kern/mm.c: Use correct format to print size_t.
33243
32622956 33244 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
33245 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
33246 * kern/powerpc/dl.c: Likewise.
33247 * kern/sparc64/dl.c: Likewise.
33248 * kern/x86_64/dl.c: Likewise.
33249
3f7f0cd0 332502009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33251
33252 Fix grub-emu build on sparc64-ieee1275.
33253
75421ca9 33254 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 33255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
33256
211d06b5 332572009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33258
33259 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
33260 (grub_reboot, grub_halt): New functions.
33261
33262 * util/i386/pc/misc.c: Delete. Update all users.
33263 * util/sparc64/ieee1275/misc.c: Likewise.
33264 * util/powerpc/ieee1275/misc.c: Likewise.
33265
aaf53e3c 332662009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33267
33268 * conf/i386.rmk (setjmp_mod_SOURCES)
33269 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
33270 * conf/common.rmk (setjmp_mod_SOURCES)
33271 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
33272 to use $(target_cpu).
33273 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
33274 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
33275 * conf/powerpc-ieee1275.rmk: Likewise.
33276 * conf/sparc64-ieee1275.rmk: Likewise.
33277
33278 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
33279 $(target_cpu) for kern/$(target_cpu)/dl.c.
33280 * conf/i386-efi.rmk: Likewise.
33281 * conf/i386-ieee1275.rmk: Likewise.
33282 * conf/x86_64-efi.rmk: Likewise.
33283 * conf/i386-coreboot.rmk: Likewise.
33284 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
33285 $(target_cpu) for kern/$(target_cpu)/dl.c and for
33286 kern/$(target_cpu)/cache.S.
33287 * conf/sparc64-ieee1275.rmk: Likewise.
33288
a337130b 332892009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33290
33291 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
33292 type to `grub_uint8_t', and adjust `padding9' accordingly.
33293
c6fe4d53 332942009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33295
b09db61d 33296 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
33297
c6fe4d53 33298 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
33299 assembly in final jump, using register constraints.
33300
b09db61d 33301 (grub_linux_boot): For text mode, initialize `have_vga' using
33302 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
33303
33304 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
33305 right before the final jump.
33306
33307 Set `video_mode' to 0x3.
33308
33309 Document initialization of `video_page', `video_mode' and
33310 `video_ega_bx'.
33311
28333ad0 333122009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33313
33314 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
33315 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 33316 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 33317
02164e1b 333182009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33319
33320 Fix build on Debian / sparc.
33321
33322 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
33323
18b6c557 333242009-06-28 Pavel Roskin <proski@gnu.org>
33325
85f2aab6 33326 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
33327 fix a warning.
33328
18b6c557 33329 * util/grub.d/10_linux.in: Match SUSE style initrd names.
33330
ad760f81 333312009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33332
33333 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
33334 `err'.
33335
87a4623b 333362009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33337
33338 Revert r2338.
33339
33340 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
33341 file can't be opened. grub_file_open() is already supposed to set
75421ca9 33342 grub_errno / grub_errmsg appropriately.
87a4623b 33343 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33344
8231fb77 333452009-06-27 Pavel Roskin <proski@gnu.org>
333462009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33347
33348 * include/grub/dl.h: Include grub/elf.h.
33349 (struct grub_dl): Add symtab field.
33350 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
33351 GRUB_MODULES_MACHINE_READONLY.
33352 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
33353 of the header for read-only modules.
33354 (grub_dl_unload): Free mod->symtab for read-only modules.
33355 * kern/i386/dl.c: Use mod->symtab.
33356 * kern/powerpc/dl.c: Likewise.
33357 * kern/sparc64/dl.c: Likewise.
33358 * kern/x86_64/dl.c: Likewise.
33359
33360 * conf/i386-qemu.rmk: New file.
33361 * kern/i386/qemu/startup.S: Likewise.
33362 * kern/i386/qemu/mmap.c: Likewise.
33363 * boot/i386/qemu/boot.S: Likewise.
33364 * include/grub/i386/qemu/time.h: Likewise.
33365 * include/grub/i386/qemu/serial.h: Likewise.
33366 * include/grub/i386/qemu/kernel.h: Likewise.
33367 * include/grub/i386/qemu/console.h: Likewise.
33368 * include/grub/i386/qemu/boot.h: Likewise.
33369 * include/grub/i386/qemu/init.h: Likewise.
33370 * include/grub/i386/qemu/machine.h: Likewise.
33371 * include/grub/i386/qemu/loader.h: Likewise.
33372 * include/grub/i386/qemu/memory.h: Likewise.
33373
33374 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
33375 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
33376 [qemu] (pkglib_IMAGES): Add `boot.img'.
33377 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
33378 [qemu] (boot_img_FORMAT): New variables.
33379 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
33380 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
33381 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
33382 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
33383 [qemu] (kernel_img_FORMAT): New variables.
33384
33385 * configure.ac: Recognise `i386-qemu'.
33386
33387 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
33388 (for no compression).
33389 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
33390 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
33391 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
33392 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
33393 ifdefs).
33394
97fe384e 333952009-06-27 Pavel Roskin <proski@gnu.org>
33396
33397 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
33398 read.
33399 * efiemu/prepare32.c: Likewise.
33400 * efiemu/prepare64.c: Likewise.
33401
c402ab17 334022009-06-26 Pavel Roskin <proski@gnu.org>
33403
33404 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
33405 * include/grub/elf.h: Define symbols without "32" or "64" based
33406 on GRUB_TARGET_WORDSIZE.
33407 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
33408 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
33409 ELF definitions.
33410 * efiemu/loadcore64.c: Likewise.
33411 * loader/i386/bsd32.c: Likewise.
33412 * loader/i386/bsd64.c: Likewise.
33413 * kern/dl.c: Remove own ELF definitions.
33414 * util/i386/efi/grub-mkimage.c: Likewise.
33415
9bbdfd4d 334162009-06-23 Robert Millan <rmh.grub@aybabtu.com>
33417
33418 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
33419 segment 0x0 unconditionally, because the reference generated by
33420 GAS is an absolute address.
33421
a42ce6e9 334222009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33423
33424 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
33425 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
33426
c952cf92 334272009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33428
33429 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
33430 indexes. Check for -f explicitly.
cc3752ad 33431 (search_file): Improve error message.
33432 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 33433
132a0a59 334342009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33435
33436 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
33437 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
33438
387a140c 334392009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33440
33441 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
33442 * conf/i386-ieee1275.rmk: Likewise.
33443 * conf/i386-coreboot.rmk: Likewise.
33444
33445 * kern/i386/pc/startup.S (grub_stop): Remove function.
33446 * kern/i386/ieee1275/startup.S: Likewise.
33447 * kern/i386/coreboot/startup.S: Likewise.
33448 * kern/i386/misc.S (grub_stop): New function.
33449
41da9665 334502009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33451
33452 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
33453 * kern/i386/realmode.S (real_to_prot): ... to here.
33454
bf337234 334552009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33456
33457 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
33458 with `kernel.img'.
33459 (kernel_elf_SOURCES): Rename to ...
33460 (kernel_img_SOURCES): ... this.
33461 (kernel_elf_HEADERS): Rename to ...
33462 (kernel_img_HEADERS): ... this. Update all users.
33463 (kernel_elf_ASFLAGS): Rename to ...
33464 (kernel_img_ASFLAGS): ... this.
33465 (kernel_elf_CFLAGS): Rename to ...
33466 (kernel_img_CFLAGS): ... this.
33467 (kernel_elf_LDFLAGS): Rename to ...
33468 (kernel_img_LDFLAGS): ... this.
33469 * conf/i386-coreboot.rmk: Likewise.
33470 * conf/powerpc-ieee1275.rmk: Likewise.
33471
33472 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
33473 with "kernel.img".
33474
f52196ff 334752009-06-21 Pavel Roskin <proski@gnu.org>
33476
c3cee413 33477 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
33478 to match nested functions.
33479 * loader/sparc64/ieee1275/linux.c: Likewise.
33480
f52196ff 33481 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
33482
58750afc 334832009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33484
33485 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
33486 all i386 platforms.
33487
15355c7d 334882009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33489
33490 Fix asm file handling on ELF, and remove workarounds.
33491
33492 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 33493 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 33494 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
33495 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
33496
3f3ec72b 334972009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
33498
33499 Load BSD ELF modules
33500
33501 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
33502 and loader/i386/bsd64.c
33503 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
33504 (FREEBSD_MODTYPE_ELF_MODULE): New definition
33505 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
33506 (grub_freebsd_load_elfmodule32): New declaration
33507 (grub_freebsd_load_elfmoduleobj64): Likewise
33508 (grub_freebsd_load_elf_meta32): Likewise
33509 (grub_freebsd_load_elf_meta64): Likewise
33510 (grub_freebsd_add_meta): Likewise
33511 (grub_freebsd_add_meta_module): Likewise
33512 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
33513 (grub_freebsd_add_meta_module): Likewise and move module-specific
33514 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
33515 (grub_cmd_freebsd): Add elf-kernel specific parts
33516 based on grub_freebsd_add_meta_module
33517 (grub_cmd_freebsd_module): Add type parsing moved from
33518 grub_freebsd_add_meta_module
33519 (grub_cmd_freebsd_module_elf): New function
33520 (cmd_freebsd_module_elf): New variable
33521 (GRUB_MOD_INIT): Register freebsd_module_elf
33522 * loader/i386/bsd32.c: New file
33523 * loader/i386/bsd64.c: Likewise
33524 * loader/i386/bsdXX.c: Likewise
33525 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
33526 (grub_elf64_load): Likewise
33527 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
33528 All users updated
33529 (grub_elf64_load_hook_t): Likewise
33530
0db15301 335312009-06-21 Colin Watson <cjwatson@ubuntu.com>
33532
33533 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
33534 variable.
33535 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
33536 don't write a menu entry for recovery mode.
33537
546796c1 335382009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33539
33540 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
33541 after it's no longer needed.
33542
cd7310d5 335432009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33544
33545 * include/grub/i386/loader.h (grub_linux_prot_size)
33546 (grub_linux_tmp_addr, grub_linux_real_addr)
33547 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
33548 GRUB_MACHINE_PCBIOS.
33549 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
33550 common grub_util_info() call to ...
33551 (generate_image): ... here.
33552 Fix use of uninitialized memory, comparison of signed with
33553 unsigned integers and memory leak.
33554 Remove bogus module address message.
33555
ab32d3b5 335562009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
33557
33558 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
33559 grub_raid_register
33560 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
33561
024ef597 335622009-06-19 Pavel Roskin <proski@gnu.org>
33563
33564 * configure.ac: Remove stray AC_MSG_CHECKING.
33565
3ac72b51 335662009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
33567
33568 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 33569
e14cd814 335702009-06-18 Pavel Roskin <proski@gnu.org>
33571
33572 * conf/common.rmk: Add fs_file.mod.
33573 * disk/fs_file.c: New file.
33574 * include/grub/disk.h (enum grub_disk_dev_id): Add
33575 GRUB_DISK_DEVICE_FILE_ID.
33576
26586d98 335772009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33578
33579 Fix build with Apple's toolchain. Part 2
33580
33581 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
33582 a fake start
33583
26de2bcd 335842009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33585
33586 Fix build with Apple's toolchain. Part 1
33587
33588 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
33589 for long calls
33590 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 33591 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 33592 Apple's toolchain
33593
09b3490b 335942009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33595
33596 Fix warnings
33597
33598 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
33599 (decomp_block): initialize ch
33600 use grub_memcpy instead of memcpy
33601
c22a006a 336022009-06-17 Pavel Roskin <proski@gnu.org>
33603
d3638678 33604 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
33605 version, use declarations needed to use vga_text as the startup
33606 console.
33607
c22a006a 33608 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
33609 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
33610 the kernel.
33611 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
33612 and grub_at_keyboard_fini(), it's done on module load and
33613 unload.
33614
05b129e0 336152009-06-17 Felix Zielcke <fzielcke@z-51.de>
33616
33617 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
33618 file can't be found.
33619 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33620
cf24ed9e 336212009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
33622
33623 Fix newline handling
33624
33625 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 33626 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 33627 (grub_script_yylex): don't segfault on unterminated script
33628 newline terminates command and variable
33629
74aa8e4b 336302009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
33631
33632 avoid double grub_adjust_range call. Bug reported by David Simner
33633
33634 * kern/disk.c (grub_disk_write): change to raw disk access before
33635 calling disk_read
33636
1bd265f3 336372009-06-17 Colin Watson <cjwatson@ubuntu.com>
33638
33639 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
33640 spaces, for the benefit of help2man.
33641 * util/i386/efi/grub-mkimage.c (usage): Likewise.
33642
a2d08c06 336432009-06-16 Pavel Roskin <proski@gnu.org>
33644
33645 * kern/i386/halt.c: Include grub/machine/init.h.
33646 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
33647
b97bcb19 336482009-06-16 Felix Zielcke <fzielcke@z-51.de>
33649
33650 * util/grub.d/30_os-prober.in: Use ${root} in the generated
33651 drivemap menuentry.
33652
0644f96c 336532009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
33654
33655 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
33656 `echo' command.
33657
3ef17a2e 336582009-06-16 Pavel Roskin <proski@gnu.org>
33659
33660 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
33661 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
33662 save %dx, we only need %dl and we never change it.
33663 * boot/i386/pc/cdboot.S: Don't set the root drive.
33664 * boot/i386/pc/pxeboot.S: Likewise.
33665 * include/grub/i386/pc/boot.h: Remove
33666 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
33667 GRUB_BOOT_MACHINE_DRIVE_CHECK.
33668 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
33669 * kern/i386/pc/init.c (make_install_device): Remove references
33670 to grub_root_drive.
33671 * kern/i386/pc/startup.S: Likewise.
33672 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
33673
693fe637 336742009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
33675
33676 xnu_uuid command
33677
33678 * commands/xnu_uuid.c: new file
33679 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
33680 (xnu_uuid_mod_SOURCES): new variable
33681 (xnu_uuid_mod_CFLAGS): likewise
33682 (xnu_uuid_mod_LDFLAGS): likewise
33683 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
33684 * conf/i386-ieee1275.rmk: likewise
33685 * conf/i386-pc.rmk: likewise
33686 * conf/powerpc-ieee1275.rmk: likewise
33687 * conf/sparc64-ieee1275.rmk: likewise
33688 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
33689
c9da87d0 336902009-06-16 Pavel Roskin <proski@gnu.org>
33691
33692 * configure.ac: Avoid '==' in test command, it's not portable.
33693
9c6f4596 336942009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
33695
33696 Probe command
33697
33698 * commands/probe.c: new file
33699 * conf/common.rmk (pkglib_MODULES): add probe.mod
33700 (probe_mod_SOURCES): new variable
33701 (probe_mod_CFLAGS): likewise
33702 (probe_mod_LDFLAGS): likewise
33703 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
33704 * conf/i386-ieee1275.rmk: likewise
33705 * conf/i386-pc.rmk: likewise
33706 * conf/powerpc-ieee1275.rmk: likewise
33707 * conf/sparc64-ieee1275.rmk: likewise
33708
70b7f9fd 337092009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
33710
33711 Fix handling of string like \"hello\" and "a
33712 b"
33713
33714 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
33715 (grub_script_yylex): fix parsing of quoting, escaping and newline
33716
71c79a6b 337172009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
33718
dd74360c 33719 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 33720 handling
dd74360c 33721
0644f96c 337222009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 33723
33724 * util/grub-mkconfig.in: Fix parsing of --output option.
33725
e40893c3 337262009-06-12 Pavel Roskin <proski@gnu.org>
33727
33728 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
33729 genmk.rb don't need to be generated or installed.
33730
3a1acfe2 337312009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
33732
33733 * commands/i386/pc/drivemap_int13h.S: add more comments
33734
3a4575d4 337352009-06-11 Pavel Roskin <proski@gnu.org>
33736
0658e928 33737 * Makefile.in (uninstall): Uninstall manuals.
33738
ca0388f0 33739 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
33740 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
33741 and update-grub_lib in two places.
33742 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
33743
e3b27c39 33744 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
33745 a compiler warning.
33746
3a4575d4 33747 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
33748 `entry_lo' to fix variable shadowing.
33749
af1f4f55 337502009-06-11 Christian Franke <franke@computer.org>
33751
33752 * kern/misc.c (__enable_execute_stack): Add missing return type
33753 to prevent gcc warning.
33754
5225e649 337552009-06-11 Felix Zielcke <fzielcke@z-51.de>
33756
33757 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
33758
7d83bd47 337592009-06-11 Pavel Roskin <proski@gnu.org>
33760
c1cb63ba 33761 * Makefile.in: Don't rely on any scripts being executable.
33762 Always use $(SHELL) to run shell scripts.
33763
7d83bd47 33764 * configure.ac: Always define ___main if using -nostdlib. This
33765 fixes tests on Cygwin.
33766
948f48e7 337672009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
33768
33769 UDF fix
33770
7d83bd47 33771 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 33772 is in bytes and not in blocks
7d83bd47 33773
8ada9bc1 337742009-06-11 Pavel Roskin <proski@gnu.org>
33775
33776 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
33777 warning.
33778
25ad2323 337792009-06-11 Felix Zielcke <fzielcke@z-51.de>
33780
33781 * util/grub.d/30_os-prober.in: Fix a comment. Source
33782 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
33783 to set the root device. Place drivemap command in the generated
33784 chain entry.
33785
e65acb0c 337862009-06-11 Pavel Roskin <proski@gnu.org>
33787
33788 * configure.ac: Remove host_m32. Issues with 64-bit utilities
33789 have long been resolved.
33790
f285fe2d 337912009-06-11 Colin Watson <cjwatson@ubuntu.com>
33792
bd47b0b5 33793 * util/grub.d/10_linux.in: Capitalise "Linux".
33794
f285fe2d 33795 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
33796
a0c62e4e 337972009-06-11 Pavel Roskin <proski@gnu.org>
33798
b6783cb2 33799 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
33800 fix a gcc warning and ensure that the function won't ever exit.
33801
dde032e8 33802 * kern/i386/ieee1275/init.c: Add missing prototype for
33803 grub_stop_floppy().
33804
22cd079d 33805 * loader/ieee1275/multiboot2.c [__i386__]: Include
33806 grub/cpu/multiboot.h.
33807
a0c62e4e 33808 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
33809 casts to short - they are not portable and cause warnings. Fix
33810 use of uninitialized values in input_buf. Use ARRAY_SIZE.
33811
63963d17 338122009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
33813
33814 Drivemap fixes
33815
33816 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
33817 new function
33818 (grub_get_root_biosnumber_saved): new variable
33819 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
33820 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 33821 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 33822 %dx after the call if necessary
33823 * conf/common.rmk (pkglib_MODULES): remove boot.mod
33824 (boot_mod_SOURCES): remove
33825 (boot_mod_CFLAGS): remove
33826 (boot_mod_LDFLAGS): remove
33827 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
33828 (boot_mod_SOURCES): new variable
33829 (boot_mod_CFLAGS): likewise
33830 (boot_mod_LDFLAGS): likewise
33831 * conf/i386-efi.rmk: likewise
33832 * conf/i386-ieee1275.rmk: likewise
33833 * conf/i386-pc.rmk: likewise
33834 * conf/powerpc-ieee1275.rmk: likewise
33835 * conf/sparc64-ieee1275.rmk: likewise
33836 * conf/x86_64-efi.rmk: likewise
33837 * include/grub/i386/pc/biosnum.h: new file
33838 * lib/i386/pc/biosnum.c: likewise
33839 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
33840 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
33841 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 33842
33abf7ae 338432009-06-10 Pavel Roskin <proski@gnu.org>
33844
5ac35b35 33845 * io/gzio.c (test_header): Don't reuse one buffer for all data.
33846 Use separate variables. Read only the file size at the end, but
33847 not the checksum that we don't use.
33848
5c5215d5 33849 * kern/file.c (grub_file_read): Use void pointer for the buffer.
33850 Adjust all callers.
33851
27d5fef7 33852 * kern/ieee1275/openfw.c: Remove libc includes.
33853 * kern/ieee1275/cmain.c: Likewise.
33854 * include/grub/ieee1275/ieee1275.h: Likewise.
33855
33abf7ae 33856 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
33857 compiler warnings.
33858
19d50c2b 338592009-06-10 Felix Zielcke <fzielcke@z-51.de>
33860
33861 * Makefile.in: Remove all trailing whitespace.
33862 * conf/i386-pc.rmk: Likewise.
33863 * conf/powerpc-ieee1275.rmk: Likewise.
33864 * conf/sparc64-ieee1275.rmk: Likewise.
33865 * docs/grub.texi: Likewise.
33866 * docs/texinfo.tex: Likewise.
33867 * disk/fs_uuid.c: Likewise.
33868 * disk/lvm.c: Likewise.
33869 * disk/scsi.c: Likewise.
33870 * disk/ata.c: Likewise.
33871 * disk/ieee1275/ofdisk.c: Likewise.
33872 * disk/i386/pc/biosdisk.c: Likewise.
33873 * disk/host.c: Likewise.
33874 * disk/raid.c: Likewise.
33875 * disk/efi/efidisk.c: Likewise.
33876 * disk/usbms.c: Likewise.
33877 * disk/memdisk.c: Likewise.
33878 * disk/loopback.c: Likewise.
33879 * kern/powerpc/dl.c: Likewise.
33880 * kern/device.c: Likewise.
33881 * kern/dl.c: Likewise.
33882 * kern/sparc64/dl.c: Likewise.
33883 * kern/ieee1275/ieee1275.c: Likewise.
33884 * kern/term.c: Likewise.
33885 * kern/fs.c: Likewise.
33886 * kern/i386/dl.c: Likewise.
33887 * kern/i386/pc/startup.S: Likewise.
33888 * kern/i386/pc/init.c: Likewise.
33889 * kern/i386/pc/mmap.c: Likewise.
33890 * kern/i386/pc/lzo1x.S: Likewise.
33891 * kern/i386/ieee1275/init.c: Likewise.
33892 * kern/i386/realmode.S: Likewise.
33893 * kern/i386/tsc.c: Likewise.
33894 * kern/partition.c: Likewise.
33895 * kern/corecmd.c: Likewise.
33896 * kern/file.c: Likewise.
33897 * kern/efi/efi.c: Likewise.
33898 * kern/efi/init.c: Likewise.
33899 * kern/efi/mm.c: Likewise.
33900 * kern/main.c: Likewise.
33901 * kern/err.c: Likewise.
33902 * kern/env.c: Likewise.
33903 * kern/disk.c: Likewise.
33904 * kern/generic/millisleep.c: Likewise.
33905 * kern/generic/rtc_get_time_ms.c: Likewise.
33906 * kern/misc.c: Likewise.
33907 * kern/parser.c: Likewise.
33908 * genmk.rb: Likewise.
33909 * configure.ac: Likewise.
33910 * boot/i386/pc/diskboot.S: Likewise.
33911 * boot/i386/pc/pxeboot.S: Likewise.
33912 * boot/i386/pc/boot.S: Likewise.
33913 * boot/i386/pc/lnxboot.S: Likewise.
33914 * boot/i386/pc/cdboot.S: Likewise.
33915 * parttool/pcpart.c: Likewise.
33916 * video/readers/tga.c: Likewise.
33917 * video/video.c: Likewise.
33918 * video/bitmap.c: Likewise.
33919 * lib/envblk.c: Likewise.
33920 * lib/i386/setjmp.S: Likewise.
33921 * fs/xfs.c: Likewise.
33922 * fs/afs.c: Likewise.
33923 * fs/fat.c: Likewise.
33924 * fs/ntfs.c: Likewise.
33925 * fs/udf.c: Likewise.
33926 * fs/affs.c: Likewise.
33927 * fs/iso9660.c: Likewise.
33928 * fs/hfs.c: Likewise.
33929 * fs/fshelp.c: Likewise.
33930 * fs/ext2.c: Likewise.
33931 * fs/jfs.c: Likewise.
33932 * fs/reiserfs.c: Likewise.
33933 * fs/hfsplus.c: Likewise.
33934 * fs/minix.c: Likewise.
33935 * fs/cpio.c: Likewise.
33936 * fs/sfs.c: Likewise.
33937 * fs/ufs.c: Likewise.
33938 * efiemu/prepare.c: Likewise.
33939 * efiemu/loadcore_common.c: Likewise.
33940 * efiemu/runtime/efiemu.sh: Likewise.
33941 * efiemu/runtime/efiemu.S: Likewise.
33942 * efiemu/runtime/efiemu.c: Likewise.
33943 * efiemu/pnvram.c: Likewise.
33944 * efiemu/main.c: Likewise.
33945 * efiemu/i386/pc/cfgtables.c: Likewise.
33946 * efiemu/i386/loadcore64.c: Likewise.
33947 * efiemu/i386/loadcore32.c: Likewise.
33948 * efiemu/loadcore.c: Likewise.
33949 * efiemu/symbols.c: Likewise.
33950 * efiemu/mm.c: Likewise.
33951 * include/grub/autoefi.h: Likewise.
33952 * include/grub/datetime.h: Likewise.
33953 * include/grub/term.h: Likewise.
33954 * include/grub/hfs.h: Likewise.
33955 * include/grub/lvm.h: Likewise.
33956 * include/grub/i386/tsc.h: Likewise.
33957 * include/grub/i386/linux.h: Likewise.
33958 * include/grub/i386/xnu.h: Likewise.
33959 * include/grub/i386/efiemu.h: Likewise.
33960 * include/grub/i386/pc/biosdisk.h: Likewise.
33961 * include/grub/i386/pc/memory.h: Likewise.
33962 * include/grub/i386/pc/vbe.h: Likewise.
33963 * include/grub/parttool.h: Likewise.
33964 * include/grub/video.h: Likewise.
33965 * include/grub/memory.h: Likewise.
33966 * include/grub/fs.h: Likewise.
33967 * include/grub/partition.h: Likewise.
33968 * include/grub/xnu.h: Likewise.
33969 * include/grub/efi/api.h: Likewise.
33970 * include/grub/efi/pe32.h: Likewise.
33971 * include/grub/efi/memory.h: Likewise.
33972 * include/grub/multiboot.h: Likewise.
33973 * include/grub/usbdesc.h: Likewise.
33974 * include/grub/multiboot2.h: Likewise.
33975 * include/grub/acpi.h: Likewise.
33976 * include/grub/efiemu/efiemu.h: Likewise.
33977 * include/grub/disk.h: Likewise.
33978 * include/grub/ieee1275/ieee1275.h: Likewise.
33979 * include/grub/net.h: Likewise.
33980 * include/grub/machoload.h: Likewise.
33981 * include/grub/macho.h: Likewise.
33982 * include/multiboot.h: Likewise.
33983 * genmoddep.awk: Likewise.
33984 * normal/main.c: Likewise.
33985 * normal/menu_entry.c: Likewise.
33986 * normal/menu_viewer.c: Likewise.
33987 * normal/completion.c: Likewise.
33988 * normal/cmdline.c: Likewise.
33989 * normal/misc.c: Likewise.
33990 * normal/datetime.c: Likewise.
33991 * bus/usb/usbtrans.c: Likewise.
33992 * bus/usb/ohci.c: Likewise.
33993 * bus/usb/uhci.c: Likewise.
33994 * bus/usb/usb.c: Likewise.
33995 * mmap/efi/mmap.c: Likewise.
33996 * mmap/i386/pc/mmap_helper.S: Likewise.
33997 * mmap/i386/pc/mmap.c: Likewise.
33998 * mmap/i386/mmap.c: Likewise.
33999 * mmap/i386/uppermem.c: Likewise.
34000 * mmap/mmap.c: Likewise.
34001 * commands/acpi.c: Likewise.
34002 * commands/echo.c: Likewise.
34003 * commands/blocklist.c: Likewise.
34004 * commands/loadenv.c: Likewise.
34005 * commands/usbtest.c: Likewise.
34006 * commands/boot.c: Likewise.
34007 * commands/parttool.c: Likewise.
34008 * commands/search.c: Likewise.
34009 * commands/cat.c: Likewise.
34010 * commands/i386/pc/play.c: Likewise.
34011 * commands/i386/pc/drivemap.c: Likewise.
34012 * commands/i386/pc/vbeinfo.c: Likewise.
34013 * commands/i386/pc/acpi.c: Likewise.
34014 * commands/i386/pc/vbetest.c: Likewise.
34015 * commands/ls.c: Likewise.
34016 * commands/cmp.c: Likewise.
34017 * commands/test.c: Likewise.
34018 * commands/efi/acpi.c: Likewise.
34019 * commands/gptsync.c: Likewise.
34020 * commands/help.c: Likewise.
34021 * partmap/amiga.c: Likewise.
34022 * partmap/apple.c: Likewise.
34023 * partmap/acorn.c: Likewise.
34024 * partmap/pc.c: Likewise.
34025 * partmap/sun.c: Likewise.
34026 * partmap/gpt.c: Likewise.
34027 * script/sh/lexer.c: Likewise.
34028 * script/sh/function.c: Likewise.
34029 * font/font.c: Likewise.
34030 * font/font_cmd.c: Likewise.
34031 * loader/powerpc/ieee1275/linux.c: Likewise.
34032 * loader/efi/chainloader.c: Likewise.
34033 * loader/multiboot_loader.c: Likewise.
34034 * loader/macho.c: Likewise.
34035 * loader/i386/multiboot.c: Likewise.
34036 * loader/i386/linux.c: Likewise.
34037 * loader/i386/pc/linux.c: Likewise.
34038 * loader/i386/pc/multiboot2.c: Likewise.
34039 * loader/i386/pc/chainloader.c: Likewise.
34040 * loader/i386/pc/xnu.c: Likewise.
34041 * loader/i386/bsd_trampoline.S: Likewise.
34042 * loader/i386/efi/linux.c: Likewise.
34043 * loader/i386/multiboot_elfxx.c: Likewise.
34044 * loader/i386/bsd_helper.S: Likewise.
34045 * loader/i386/bsd.c: Likewise.
34046 * loader/i386/linux_trampoline.S: Likewise.
34047 * loader/i386/xnu_helper.S: Likewise.
34048 * loader/i386/xnu.c: Likewise.
34049 * loader/i386/bsd_pagetable.c: Likewise.
34050 * loader/i386/multiboot_helper.S: Likewise.
34051 * loader/xnu.c: Likewise.
34052 * loader/xnu_resume.c: Likewise.
34053 * io/gzio.c: Likewise.
34054 * term/efi/console.c: Likewise.
34055 * term/terminfo.c: Likewise.
34056 * term/ieee1275/ofconsole.c: Likewise.
34057 * term/i386/pc/serial.c: Likewise.
34058 * term/i386/pc/vesafb.c: Likewise.
34059 * term/i386/pc/vga.c: Likewise.
34060 * term/usb_keyboard.c: Likewise.
34061 * term/gfxterm.c: Likewise.
34062 * aclocal.m4: Likewise.
34063 * util/lvm.c: Likewise.
34064 * util/grub.d/30_os-prober.in: Likewise.
34065 * util/grub.d/10_hurd.in: Likewise.
34066 * util/console.c: Likewise.
34067 * util/grub-macho2img.c: Likewise.
34068 * util/grub-probe.c: Likewise.
34069 * util/hostfs.c: Likewise.
34070 * util/i386/pc/grub-mkimage.c: Likewise.
34071 * util/i386/pc/grub-setup.c: Likewise.
34072 * util/i386/efi/grub-mkimage.c: Likewise.
34073 * util/grub-mkconfig.in: Likewise.
34074 * util/raid.c: Likewise.
34075 * util/resolve.c: Likewise.
34076 * util/grub-mkdevicemap.c: Likewise.
34077 * util/grub-emu.c: Likewise.
34078 * util/getroot.c: Likewise.
34079 * util/hostdisk.c: Likewise.
34080 * util/usb.c: Likewise.
34081 * util/grub-editenv.c: Likewise.
34082 * util/misc.c: Likewise.
34083
d2d49665 340842009-06-10 Felix Zielcke <fzielcke@z-51.de>
34085
34086 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
34087 `genparttoollist.sh'.
34088 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
34089 Add `*.sh' to the list find searches for and change `mdate.sh'
34090 to `mdate-sh'.
34091
fe052e37 340922009-06-10 Pavel Roskin <proski@gnu.org>
34093
2763ac18 34094 * include/grub/multiboot2.h: Provide compatibility defines for
34095 multiboot2.h.
34096 * include/multiboot2.h: Include stdint.h only if needed, using
34097 angle brackets.
34098 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
34099 grub/multiboot2.h.
34100 * loader/ieee1275/multiboot2.c: Likewise.
34101 * loader/multiboot2.c: Likewise.
34102 * loader/multiboot_loader.c: Likewise.
34103
437e6adc 34104 * configure.ac: Use -nostdlib when probing for the target. It
34105 should not be required to have libc for the target.
34106
06a6836c 34107 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
34108 they fail without libc headers for the target.
34109 * include/grub/powerpc/libgcc.h: Use weak attribute for all
34110 exports.
34111 * include/grub/sparc64/libgcc.h: Likewise. Don't use
34112 preprocessor conditionals.
34113
fe052e37 34114 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
34115 build system doesn't need to be aware of the tar.c internals.
34116
afd22553 341172009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 34118
afd22553 34119 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 34120
6b787c4f 341212009-06-09 Robert Millan <rmh.grub@aybabtu.com>
34122
34123 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
34124 disk limit to 26 for IDE, Virtio, Xen and SCSI.
34125
341262009-06-09 Felix Zielcke <fzielcke@z-51.de>
34127
34128 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 34129 aren't available if ata.mod gets used.
6b787c4f 34130
473d1e45 341312009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 34132
473d1e45 34133 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 34134 initialising controller.
473d1e45 34135 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 34136
255a27d4 341372009-06-08 Felix Zielcke <fzielcke@z-51.de>
34138
34139 * util/i386/pc/grub-install.in: Add a parameter --disk-module
34140 to choose between ata and biosdisk module on i386-pc.
34141
473d1e45 341422009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 34143
d55842d8 34144 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
34145 Subclass and Programming Interface fields in terms of the 3 byte
34146 Class Code register.
34147 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34148
fa5db0b1 34149 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
34150 interface is OHCI. Add grub_dprintf for symmetry with
34151 bus/usb/uhci.c.
34152 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
34153 interface is UHCI. Add interf variable for programming
34154 interface. Print interface with class/subclass.
34155
c0947beb 34156 * bus/usb/ohci.c: Set interf with correct field.
34157
69da8877 34158 * bus/usb/uhci.c: Remove unneeded doubled lines.
34159 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
34160 Remove whitespace inside comment.
34161
9e172e30 341622009-06-08 Robert Millan <rmh.grub@aybabtu.com>
34163
34164 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
34165 as fallback an equivalent option without depth.
34166
de65ee2b 341672009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34168
34169 Not fail if unable to retrieve C/H/S on LBA disks
34170
473d1e45 34171 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 34172 if unable to retrieve C/H/S on LBA disks
34173
b57ea2c9 341742009-06-08 Pavel Roskin <proski@gnu.org>
34175
34176 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
34177 about aliasing.
34178
af361263 341792009-06-08 Felix Zielcke <fzielcke@z-51.de>
34180
34181 * Makefile.in (uninstall): Remove all $lib_DATA files.
34182
4c9ec6b3 341832009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34184
34185 Bugfix: install on partitionless device
34186
34187 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
34188 is a whole disk
34189
e76fc924 341902009-06-08 Felix Zielcke <fzielcke@z-51.de>
34191
34192 * Makefile.in (uninstall): Remove all $include_DATA files.
34193
ba5a0d05 341942009-06-08 Felix Zielcke <fzielcke@z-51.de>
34195
34196 * commands/true.c: New file. Implement the true and false commands.
34197 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
34198 (true_mod_SOURCES): New variable.
34199 (true_mod_CFLAGS): Likewise.
34200 (true_mod_LDFLAGS): Likewise.
34201
c8048e32 342022009-06-05 Colin D Bennett <colin@gibibit.com>
34203
34204 Optimized font character lookup using binary search instead of linear
34205 search. Fonts now are required to have the character index ordered by
34206 code point.
34207
34208 * font/font.c (load_font_index): Verify that fonts have ordered
34209 character indices.
34210 (find_glyph): Use binary search instead of linear search to find a
34211 character in a font.
34212
408305be 342132009-06-05 Michael Scherer <misc@mandriva.org>
34214
34215 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
34216 uses case sensitive btree.
34217 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
34218 only for case insensitive filesystems.
34219
8ee1e0d9 342202009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
34221
34222 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
34223 * conf/common.rmk (search_mod_CFLAGS): likewise
34224
a9966eb1 342252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34226
473d1e45 34227 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 34228 compensate a compiler bug
34229
9e7100fb 342302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34231
473d1e45 34232 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 34233 instead of '\b'
473d1e45 34234
ede21d71 342352009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34236
34237 Definitions for creating asm symbols with Apple's CC
34238
34239 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
34240 [APPLE_CC] (VARIABLE): likewise
34241
9dbf7653 342422009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34243
34244 Disable lnxboot.img when compiled
34245 with Apple's CC
34246
34247 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
34248 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
34249 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
34250 [! APPLE_CC] (CODE_LENG): skip
34251 [! APPLE_CC] (setup_sects): likewise
34252 [! APPLE_CC]: skip filling
473d1e45 34253
e93cdc3d 342542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34255
34256 Address in trampolines based on 32-bit registers when compiled
34257 with Apple's CC
34258
473d1e45 34259 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 34260 for addresses
34261 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
34262
6c688477 342632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34264
34265 Avoid aliases when compiling with Apple's CC for PCBIOS machine
34266
34267 * kern/misc.c [APPLE_CC] (memcpy): new function
34268 [APPLE_CC] (memmove): likewise
34269 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 34270 (memcpy): define alias conditionally on !APPLE_CC
6c688477 34271 (memset): likewise
34272 (abort): likewise
34273 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
34274 APPLE_CC are defined
34275 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
34276 (grub_assert_fail): make prototype conditional
34277
e37ffc5c 342782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34279
34280 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
34281
473d1e45 34282 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
34283 grub-macho2img
e37ffc5c 34284 (CLEANFILES): add grub-macho2img
34285 (grub_macho2img_SOURCES): new variable
34286 * kern/i386/pc/startup.S (bss_start): new variable
34287 (bss_end): likewise
34288 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
34289 * util/grub-macho2img.c: new file
34290
cf00df31 342912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34292
34293 Use objconv when compiling with Apple's CC
34294
34295 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
34296 (efiemu64.o): likewise
34297 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
34298 when compiling with Apple's CC
34299 (efiemu64_s.o): likewise
34300 * configure.ac: check for objconv when compiling with Apple's CC
34301 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 34302
d119a20c 343032009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34304
34305 Define segment as well as section when compiling with
34306 Apple's CC
34307
34308 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
34309 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
34310 (efiemu_convert_pointer): likewise
34311 (efiemu_set_virtual_address_map): likewise
34312 (efiemu_convert_pointer): likewise
34313 (efiemu_getcrc32): likewise
34314 (init_crc32_table): likewise
34315 (reflect): likewise
34316 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
34317 (GRUB_MOD_DEP): likewise
473d1e45 34318
c8600122 343192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34320
34321 Allow a compilation without -mcmodel=large
34322
34323 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
34324 when compiled without -mcmodel=large
473d1e45 34325 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 34326 without -mcmodel=large
473d1e45 34327 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 34328 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 34329
e8df1d4e 343302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34331
34332 Remove nested functions in efiemu core
34333
34334 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 34335
cc6c3ac1 343362009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34337
34338 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
34339
34340 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
34341 temporary storage
473d1e45 34342 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
34343 using Apple's CC
cc6c3ac1 34344 (grub_cpu_is_tsc_supported): likewise
34345 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 34346
3e325901 343472009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34348
34349 Absolute addressing through constant with Apple's cc
34350
34351 * kern/i386/pc/startup.S: Define necessary constants
34352 and address through it when using ABS with Apple's CC
34353 * boot/i386/pc/diskboot.S: likewise
34354 * boot/i386/pc/boot.S: likewise
34355 * boot/i386/pc/lnxboot.S: likewise
34356 * boot/i386/pc/cdboot.S: likewise
34357 * mmap/i386/pc/mmap_helper.S: likewise
34358 * commands/i386/pc/drivemap_int13h.S: likewise
34359
2b167a72 343602009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34361
34362 Check if compiler is apple cc
34363
34364 * Makefile.in (ASFLAGS): new variable
34365 (TARGET_ASFLAGS): likewise
34366 (TARGET_MODULE_FORMAT): likewise
34367 (TARGET_APPLE_CC): likewise
34368 (OBJCONV): likewise
34369 (TARGET_IMG_CFLAGS): likewise
34370 (TARGET_CPPFLAGS): add includedir
34371 * configure.ac: call grub_apple_cc and grub_apple_target_cc
34372 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
34373 Check for linker script only if compiler isn't Apple's CC
34374 (TARGET_MODULE_FORMAT): set
34375 (TARGET_APPLE_CC): likewise
34376 (TARGET_ASFLAGS): likewise
34377 (ASFLAGS): likewise
34378 Check for objcopy only if compiler isn't Apple's CC
34379 Check for BSS symbol only if compiler isn't Apple's CC
34380 * genmk.rb: adapt nm options if we use Apple's utils
34381 * aclocal.m4 (grub_apple_cc): new test
34382 (grub_apple_target_cc): likewise
473d1e45 34383
fb14123e 343842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34385
34386 Simplify sed expressions and improve awk
34387
34388 * Makefile.in (install-local): simplify sed expression
34389 * gencmdlist.sh: likewise
34390 * genmoddep.awk: avoid adding module as a dependency of itself
34391
5b889789 343922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34393
34394 Add missing start symbols
34395
34396 * boot/i386/pc/boot.S: add start
fb14123e 34397 * boot/i386/pc/pxeboot.S: likewise
473d1e45 34398
fd2bf2e3 343992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34400
34401 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 34402
34403 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 34404 (relocate_addresses): consider both r_addend and value at offset
34405 (make_mods_section): zerofill modinfo and header
34406 (convert_elf): write prefix here
473d1e45 34407
5389763d 344082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34409
34410 Use .asciz instead of .string
34411
34412 * i386/pc/diskboot.S: use .asciz instead of .string
34413 * i386/pc/boot.S: likewise
34414 * include/grub/dl.h (GRUB_MOD_DEP): likewise
34415 (GRUB_MOD_NAME): likewise
473d1e45 34416
3eb5ed4e 344172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34418
34419 gfxpayload support
34420
34421 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
34422 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
34423 (grub_video_setup): remove
34424 (grub_video_set_mode): new prototype
34425 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
34426 (vid_mode): remove
34427 (linux_vesafb_res): compile only on PCBIOS
34428 (grub_linux_boot): support gfxpayload
34429 * loader/i386/pc/xnu.c (video_hook): new function
34430 (grub_xnu_set_video): support gfxpayload
34431 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
34432 (DEFAULT_VIDEO_HEIGHT): likewise
34433 (DEFAULT_VIDEO_FLAGS): likewise
34434 (DEFAULT_VIDEO_MODE): new definition
34435 (video_hook): new function
34436 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 34437 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 34438 loading xnu
34439 * video/video.c (grub_video_setup): removed
473d1e45 34440 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 34441 grub_video_setup
34442
4b0e1143 344432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34444
34445 Avoid calling biosdisk in drivemap
34446
34447 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
34448 (revparse_biosdisk): likewise
34449 (list_mappings): derive name from id directly
34450 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 34451
fda6cb98 344522009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34453
34454 Script fixes
34455
34456 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
34457 (grub_lexer_param): add tokenonhold
34458 (grub_script_create_cmdline): remove cmdline. All callers updated
34459 (grub_script_function_create): make functionname
34460 grub_script_arg. All callers updated
34461 (grub_script_execute_argument_to_string): new prototype
34462 * kern/parser.c (state_transitions): reorder
34463 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 34464 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 34465 make global
34466 (grub_script_execute_cmdline): use new format
34467 * script/sh/function.c (grub_script_function_create): make functionname
34468 grub_script_arg. All callers updated
473d1e45 34469 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 34470 (grub_script_yylex): remove
34471 (grub_script_yylex2): renamed to ...
34472 (grub_script_yylex): ...renamed
34473 parse the expressions like a${b}c
34474 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
34475 (GRUB_PARSER_TOKEN_VAR): remove
34476 (GRUB_PARSER_TOKEN_NAME): likewise
34477 ("if"): declare as typeless
34478 ("while"): likewise
34479 ("function"): likewise
34480 ("else"): likewise
34481 ("then"): likewise
34482 ("fi"): likewise
34483 (text): remove
34484 (argument): likewise
34485 (script): accept empty scripts and make exit on error
34486 (arguments): use GRUB_PARSER_TOKEN_ARG
34487 (function): likewise
34488 (command): move error handling to script
34489 (menuentry): move grub_script_lexer_ref before
473d1e45 34490 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 34491 argument. All callers updated
34492
f4448a07 344932009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34494
34495 Prevent GRUB from probing floppies during boot.
34496
34497 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
34498 * commands/search.c (options): Add --no-floppy.
34499 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
34500 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
34501 --no-floppy when searching for UUIDs.
34502
2bf5885a 345032009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34504
34505 Simplify the code duplication in commands/search.c.
34506
34507 * commands/search.c (search_label, search_fs_uuid): Merge into ...
34508 (search_fs): ... this. Update all users.
34509
f6fd460a 345102009-06-03 Felix Zielcke <fzielcke@z-51.de>
34511
34512 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
34513
cbb3c83e 345142009-05-28 Pavel Roskin <proski@gnu.org>
34515
57788cfd 34516 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
34517 Remove the original symlink explicitly.
34518
cbb3c83e 34519 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
34520 just one slash. That's how grub_fshelp_find_file() does it.
34521
cd0d5e30 345222009-05-26 Pavel Roskin <proski@gnu.org>
34523
f0f8bbe2 34524 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
34525 to `str'.
34526
cd0d5e30 34527 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
34528 possibly unused.
34529
8c2cab51 345302009-05-25 Christian Franke <franke@computer.org>
34531
34532 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
34533 register.
34534 (grub_atapi_identify): Add wait after drive select.
34535 (grub_ata_identify): Do more strict status register check before
34536 calling grub_atapi_identify (). Suppress error message if status
34537 register is 0x00 after command failure. Add status register
34538 check after PIO read to avoid bogus identify due to stuck DRQ.
34539 Thanks to Pavel Roskin for testing.
34540 (grub_device_initialize): Remove unsafe status register check.
34541 Thanks to 'phcoder' for problem report and patch.
34542 Prevent sign extension in debug message.
34543
230c0ad6 345442009-05-23 Colin D Bennett <colin@gibibit.com>
34545
34546 Cleaned up `include/grub/normal.h'. Grouped prototypes by
34547 definition file, and functions defined in `normal/menu.c' have had
34548 their prototypes moved to `include/grub/menu.h' for consistency.
34549
34550 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
34551 from normal.h.
34552 (grub_menu_get_entry): Likewise.
34553 (grub_menu_get_timeout): Likewise.
34554 (grub_menu_set_timeout): Likewise.
34555 (grub_menu_execute_entry): Likewise.
34556 (grub_menu_execute_with_fallback): Likewise.
34557 (grub_menu_entry_run): Likewise.
34558
34559 * include/grub/normal.h: Re-ordered and grouped function
34560 prototypes by file that the function is defined in.
34561 (grub_menu_execute_callback): Removed; moved to menu.h.
34562 (grub_menu_get_entry): Likewise.
34563 (grub_menu_get_timeout): Likewise.
34564 (grub_menu_set_timeout): Likewise.
34565 (grub_menu_execute_entry): Likewise.
34566 (grub_menu_execute_with_fallback): Likewise.
34567 (grub_menu_entry_run): Likewise.
34568 (grub_menu_addentry): Renamed from this ...
34569 (grub_normal_add_menu_entry): ... to this.
34570
34571 * normal/main.c (grub_menu_addentry): Renamed from this ...
34572 (grub_normal_add_menu_entry): ... to this.
34573
34574 * script/sh/execute.c (grub_script_execute_menuentry): Update
34575 reference to renamed grub_menu_addentry function.
34576
861f03a5 345772009-05-23 Felix Zielcke <fzielcke@z-51.de>
34578
34579 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
34580
96b1619a 345812009-05-22 Pavel Roskin <proski@gnu.org>
34582
bf6a5fb2 34583 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
34584 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
34585 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
34586 compiling for the i386 targets, but not for the utilities.
34587
96b1619a 34588 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
34589 to grub_uint8_t.
34590 (grub_root_drive): Likewise.
34591 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
34592 remove alignment.
34593 (grub_root_drive): Change size to byte.
34594 (grub_start_addr): Remove.
34595 (grub_end_addr): Likewise.
34596 (grub_apm_bios_info): Likewise.
34597
b729776b 345982009-05-21 Felix Zielcke <fzielcke@z-51.de>
34599
34600 * normal/i386: Remove.
34601 * normal/powerpc: Likewise.
34602 * normal/sparc64: Likewise.
34603 * normal/x86_64: Likewise.
34604
0a15ce80 346052009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
34606
34607 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 34608 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 34609 * loader/i386/xnu_helper.S: Likewise
d6da58e6 34610
33db9015 346112009-05-18 Colin D Bennett <colin@gibibit.com>
34612
d6da58e6 34613 Display error messages when parsing a Lua statement fails.
34614 Previously, executing a syntactically invalid statement like
34615 ")foo" or "bar;" would silently fail.
33db9015 34616
34617 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 34618 (grub_lua_parse_line): Improved reporting of Lua parser and
34619 execution errors.
33db9015 34620
46422c89 346212009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
34622
34623 Remove -Werror which causes build to fail on some systems
34624
34625 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
34626 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
34627 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 34628
22f53a96 346292009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
34630
34631 trampoline for linux on 64-bit platform
34632
18f547ad 34633 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
34634 loader/i386/efi/linux_trampoline.S
34635 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 34636 declaration
d6da58e6 34637 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
34638 here
22f53a96 34639 * loader/i386/linux_trampoline.S: moved here
d6da58e6 34640 * loader/i386/efi/linux.c (allocate_pages): reserve space for
34641 trampoline
22f53a96 34642 (jumpvector): removed
34643 (grub_linux_trampoline_start): new declaration
34644 (grub_linux_trampoline_end): likewise
34645 (grub_linux_boot): use trampoline when on 64-bit platform
34646 * loader/i386/linux.c: likewise
34647
cb5a0f40 346482009-05-16 Pavel Roskin <proski@gnu.org>
34649
34650 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
34651 const to avoid a warning.
34652 (grub_lua_setenv): Likewise.
34653 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
34654 lmsg to fix a warning.
34655
334f2c28 346562009-05-16 Felix Zielcke <fzielcke@z-51.de>
34657
34658 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 34659 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34660 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
34661 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34662 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
34663 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34664 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
34665 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 34666
59e5d3ec 346672009-05-16 Felix Zielcke <fzielcke@z-51.de>
34668
34669 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
34670
9d87a1ba 346712009-05-16 Bean <bean123ch@gmail.com>
34672
34673 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
34674 (lua_mod_SOURCES): New variable.
34675 (lua_mod_CFLAGS): Likewise.
34676 (lua_mod_LDFLAGS): Likewise.
34677
34678 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
34679 (setjmp_mod_SOURCES): New variable.
34680 (setjmp_mod_CFLAGS): Likewise.
34681 (setjmp_LDFLAGS): Likewise.
34682
34683 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
34684 (setjmp_mod_SOURCES): New variable.
34685 (setjmp_mod_CFLAGS): Likewise.
34686 (setjmp_LDFLAGS): Likewise.
34687
34688 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
34689 (setjmp_mod_SOURCES): New variable.
34690 (setjmp_mod_CFLAGS): Likewise.
34691 (setjmp_LDFLAGS): Likewise.
34692
34693 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
34694 (setjmp_mod_SOURCES): New variable.
34695 (setjmp_mod_CFLAGS): Likewise.
34696 (setjmp_LDFLAGS): Likewise.
34697
34698 * normal/i386/setjmp.S: Moved from here ...
34699 * lib/i386/setjmp.S: ... Moved here
34700 * normal/x86_64/setjmp.S: Moved from here ...
34701 * lib/x86_64/setjmp.S: ... Moved here
34702 * normal/powerpc/setjmp.S: Moved from here ...
34703 * lib/powerpc/setjmp.S: ... Moved here
34704 * normal/sparc64/setjmp.S: Moved from here ...
34705 * lib/sparc64/setjmp.S: ... Moved here
34706
34707 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
34708 returns_twice in mingw.
34709
34710 * script/lua/grub_lib.c: New file.
34711 * script/lua/grub_lib.h: Likewise.
34712 * script/lua/grub_lua.h: Likewise.
34713 * script/lua/grub_main.c: Likewise.
34714 * script/lua/lapi.c: Likewise.
34715 * script/lua/lapi.h: Likewise.
34716 * script/lua/lauxlib.c: Likewise.
34717 * script/lua/lauxlib.h: Likewise.
34718 * script/lua/lbaselib.c: Likewise.
34719 * script/lua/lcode.c: Likewise.
34720 * script/lua/lcode.h: Likewise.
34721 * script/lua/ldblib.c: Likewise.
34722 * script/lua/ldebug.c: Likewise.
34723 * script/lua/ldebug.h: Likewise.
34724 * script/lua/ldo.c: Likewise.
34725 * script/lua/ldo.h: Likewise.
34726 * script/lua/ldump.c: Likewise.
34727 * script/lua/lfunc.c: Likewise.
34728 * script/lua/lfunc.h: Likewise.
34729 * script/lua/lgc.c: Likewise.
34730 * script/lua/lgc.h: Likewise.
34731 * script/lua/linit.c: Likewise.
34732 * script/lua/liolib.c: Likewise.
34733 * script/lua/llex.c: Likewise.
34734 * script/lua/llex.h: Likewise.
34735 * script/lua/llimits.h: Likewise.
34736 * script/lua/lmathlib.c: Likewise.
34737 * script/lua/lmem.c: Likewise.
34738 * script/lua/lmem.h: Likewise.
34739 * script/lua/loadlib.c: Likewise.
34740 * script/lua/lobject.c: Likewise.
34741 * script/lua/lobject.h: Likewise.
34742 * script/lua/lopcodes.c: Likewise.
34743 * script/lua/lopcodes.h: Likewise.
34744 * script/lua/loslib.c: Likewise.
34745 * script/lua/lparser.c: Likewise.
34746 * script/lua/lparser.h: Likewise.
34747 * script/lua/lstate.c: Likewise.
34748 * script/lua/lstate.h: Likewise.
34749 * script/lua/lstring.c: Likewise.
34750 * script/lua/lstring.h: Likewise.
34751 * script/lua/lstrlib.c: Likewise.
34752 * script/lua/ltable.c: Likewise.
34753 * script/lua/ltable.h: Likewise.
34754 * script/lua/ltablib.c: Likewise.
34755 * script/lua/ltm.c: Likewise.
34756 * script/lua/ltm.h: Likewise.
34757 * script/lua/lua.h: Likewise.
34758 * script/lua/luaconf.h: Likewise.
34759 * script/lua/lualib.h: Likewise.
34760 * script/lua/lundump.c: Likewise.
34761 * script/lua/lundump.h: Likewise.
34762 * script/lua/lvm.c: Likewise.
34763 * script/lua/lvm.h: Likewise.
34764 * script/lua/lzio.c: Likewise.
34765 * script/lua/lzio.h: Likewise.
34766
5e898c9d 347672009-05-16 Bean <bean123ch@gmail.com>
34768
34769 * include/grub/kernel.h (grub_module_header_types): Add type
34770 OBJ_TYPE_CONFIG.
34771
34772 * kern/main.c (grub_load_config): New function.
34773 (grub_main): Call grub_load_config to read boot config.
34774
34775 * grub-mkimage (generate_image): New parameter config_path.
34776 (options): New option --config.
34777 (main): Parse --config option, and pass it to generate_image.
34778
cf353a47 347792009-05-14 Christian Franke <franke@computer.org>
34780
34781 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
34782 This fixes build on Cygwin.
34783
3834887f 347842009-05-14 Pavel Roskin <proski@gnu.org>
34785
34786 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
34787 jump. This saves two bytes, so the typical case of 2 swapped
34788 drives would fit 32 bytes.
34789
8090fc01 347902009-05-13 Pavel Roskin <proski@gnu.org>
34791
ac963883 34792 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
34793 grub_uint32_t to avoid a warning.
34794
8090fc01 34795 * loader/i386/linux.c (allocate_pages): When assigning
34796 real_mode_mem, cast through grub_size_t to fix a warning. The
34797 code already makes sure that the value would fit a pointer.
34798 (grub_linux_setup_video): Cast render_target->data to
34799 grub_size_t to fix a warning.
34800
18f547ad 348012009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 34802
34803 * commands/i386/pc/drivemap.c: New file - implement drivemap
34804 command.
34805 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
34806 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
34807
6f6a8b28 348082009-05-13 Pavel Roskin <proski@gnu.org>
34809
34810 * util/i386/pc/grub-setup.c (setup): Remove unused variable
34811 embedding_area_exists.
34812
15fbf4c4 348132009-05-13 Robert Millan <rmh.grub@aybabtu.com>
34814
34815 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
34816 it easier to understand / work with.
59978c8a 34817 Improve warning messages for cases where there's no embedding area,
34818 or when it is too small (or core.img too large).
15fbf4c4 34819
238e871f 348202009-05-13 Pavel Roskin <proski@gnu.org>
34821
0ab3a9a4 34822 * loader/i386/pc/multiboot2.c: Add necessary includes for
34823 grub_multiboot2_real_boot().
34824
a2c8c5f8 34825 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
34826 PX record is always little-endian. We only need the lower 2
34827 bytes of the mode.
34828
faec96af 34829 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
34830 facilitate code reuse.
34831 (grub_cpio_mount): Use "struct head", not a char buffer. This
34832 fixes a warning reported by gcc 4.4.
34833
238e871f 34834 * kernel/disk.c (grub_disk_read): Use void pointer for the
34835 buffer.
34836 (grub_disk_write): Use const void pointer for the buffer.
34837 Adjust all callers. Remove unnecessary casts.
34838
901d2f0c 348392009-05-10 Robert Millan <rmh.grub@aybabtu.com>
34840
34841 * util/i386/pc/grub-install.in: Update copyright year.
34842
18f547ad 348432009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 34844
34845 gptsync
34846
34847 * commands/gptsync.c: new file
34848 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
34849 (gptsync_mod_SOURCES): new variable
34850 (gptsync_mod_CFLAGS): likewise
34851 (gptsync_mod_LDFLAGS): likewise
18f547ad 34852 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 34853 new definition
34854 (GRUB_PC_PARTITION_TYPE_HFS): likewise
34855 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
34856 * conf/i386-ieee1275.rmk: likewise
34857 * conf/i386-pc.rmk: likewise
34858 * conf/powerpc-ieee1275.rmk: likewise
34859
b4ba690a 348602009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
34861
34862 Fixed grub-emu
34863
34864 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
34865 (grub_dl_ref): likewise
34866
317e1a44 348672009-05-08 Robert Millan <rmh.grub@aybabtu.com>
34868
34869 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
34870 split in two functions (one for msdos and one for gpt).
34871
041b8094 348722009-05-08 Pavel Roskin <proski@gnu.org>
34873
752473c2 34874 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
34875 not modified.
34876
041b8094 34877 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
34878 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
34879 Initialize them with -1. Add sanity check for bad1. Eliminate
34880 nerr variable.
34881
172800ce 348822009-05-08 David S. Miller <davem@davemloft.net>
34883
34884 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
34885
29aa5e81 348862009-05-06 Robert Millan <rmh.grub@aybabtu.com>
34887
34888 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 34889 existence.
29aa5e81 34890
96613b62 348912009-05-05 Felix Zielcke <fzielcke@z-51.de>
34892
34893 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 34894 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 34895
eef73c8a 348962009-05-05 David S. Miller <davem@davemloft.net>
34897
34898 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
34899
119494b5 349002009-05-05 Pavel Roskin <proski@gnu.org>
34901
34902 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
34903 of grub_dl_ref() and grub_dl_unref().
34904 * commands/parttool.c: Remove preprocessor conditionals around
34905 grub_dl_ref() and grub_dl_unref().
34906 * fs/affs.c: Likewise.
34907 * fs/afs.c: Likewise.
34908 * fs/cpio.c: Likewise.
34909 * fs/ext2.c: Likewise.
34910 * fs/fat.c: Likewise.
34911 * fs/hfs.c: Likewise.
34912 * fs/hfsplus.c: Likewise.
34913 * fs/iso9660.c: Likewise.
34914 * fs/jfs.c: Likewise.
34915 * fs/minix.c: Likewise.
34916 * fs/ntfs.c: Likewise.
34917 * fs/reiserfs.c: Likewise.
34918 * fs/sfs.c: Likewise.
34919 * fs/udf.c: Likewise.
34920 * fs/ufs.c: Likewise.
34921 * fs/xfs.c: Likewise.
34922 * include/grub/dl.h: Likewise.
34923 * loader/xnu.c: Likewise.
34924
de5fd76e 349252009-05-04 Pavel Roskin <proski@gnu.org>
34926
34927 * commands/acpi.c: Remove unused variable my_mod.
34928 * partmap/amiga.c: Likewise.
34929 * partmap/apple.c: Likewise.
34930 * partmap/gpt.c: Likewise.
34931 * partmap/pc.c: Likewise.
34932 * partmap/sun.c: Likewise.
34933 * term/gfxterm.c: Likewise.
34934 * term/i386/pc/vesafb.c: Likewise.
34935 * term/i386/pc/vga.c: Likewise.
34936
983598ad 349372009-05-04 David S. Miller <davem@davemloft.net>
34938
34939 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
34940 pointer args to grub_ieee1275_get_property().
34941
8aadec43 34942 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
34943
9554b15e 34944 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
34945 devices, and do not traverse down under controller nodes.
34946
67e23c90 34947 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
34948 (grub_ofdisk_open): Use it to un-escape "," characters.
34949 * kern/disk.c (find_part_sep): New.
34950 (grub_disk_open): Use it to find the first non-escaped ','
34951 character in the disk name.
34952 * util/ieee1275/devicemap.c (escape_of_path): New.
34953 (grub_util_emit_devicemap_entry): Use it.
34954 * util/sparc64/ieee1275/grub-install.in: Update script to
34955 strip partition specifiers properly by not triggering on
34956 '\' escaped ',' characters.
34957
74bfdd2f 349582009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34959
34960 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
34961 to 0x300.
34962 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
34963 resolutions.
34964 (linux_vesafb_modes): Add a lot of additional modes to the list (based
34965 on documentation from Wikipedia).
34966
4241d2b1 349672009-05-04 Pavel Roskin <proski@gnu.org>
34968
34969 * disk/ata.c: Spelling fixes.
34970 * disk/raid.c: Likewise.
34971 * disk/usbms.c: Likewise.
34972 * disk/dmraid_nvidia.c: Likewise.
34973 * kern/ieee1275/openfw.c: Likewise.
34974 * kern/ieee1275/init.c: Likewise.
34975 * kern/ieee1275/cmain.c: Likewise.
34976 * boot/i386/pc/cdboot.S: Likewise.
34977 * video/readers/png.c: Likewise.
34978 * video/i386/pc/vbe.c: Likewise.
34979 * fs/udf.c: Likewise.
34980 * fs/hfs.c: Likewise.
34981 * fs/reiserfs.c: Likewise.
34982 * efiemu/runtime/efiemu.c: Likewise.
34983 * efiemu/main.c: Likewise.
34984 * efiemu/mm.c: Likewise.
34985 * include/grub/elf.h: Likewise.
34986 * include/grub/xnu.h: Likewise.
34987 * include/grub/usbdesc.h: Likewise.
34988 * include/grub/usb.h: Likewise.
34989 * include/grub/script_sh.h: Likewise.
34990 * include/grub/lib/LzmaEnc.h: Likewise.
34991 * include/grub/efiemu/efiemu.h: Likewise.
34992 * include/grub/command.h: Likewise.
34993 * normal/menu.c: Likewise.
34994 * normal/main.c: Likewise.
34995 * normal/datetime.c: Likewise.
34996 * bus/usb/uhci.c: Likewise.
34997 * mmap/i386/uppermem.c: Likewise.
34998 * mmap/mmap.c: Likewise.
34999 * commands/acpi.c: Likewise.
35000 * commands/test.c: Likewise.
35001 * partmap/apple.c: Likewise.
35002 * font/font.c: Likewise.
35003 * loader/sparc64/ieee1275/linux.c: Likewise.
35004 * loader/macho.c: Likewise.
35005 * loader/i386/bsd_trampoline.S: Likewise.
35006 * loader/i386/bsd.c: Likewise.
35007 * loader/xnu.c: Likewise.
35008 * term/i386/pc/vesafb.c: Likewise.
35009 * term/usb_keyboard.c: Likewise.
35010 * util/resolve.c: Likewise.
35011 * util/getroot.c: Likewise.
35012
0cfc0083 350132009-05-04 Felix Zielcke <fzielcke@z-51.de>
35014
35015 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
35016
7c1d00cd 350172009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35018
35019 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
35020 build error.
35021
b01f0548 350222009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35023
35024 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
35025 parameter only available on BIOS.
35026
ecc3eb22 350272009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35028
35029 Removed wrong semicolon in declaration
35030
35031 * grub/misc.h (grub_dprintf): remove semicolon
35032
112972a9 350332009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35034
35035 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
35036 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
35037 is done by grub_cmd_linux() now).
35038 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
35039 restore video to text mode.
35040 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
35041 indicates lack of "vga=" parameter. "vga=0" is mapped to
35042 `GRUB_LINUX_VID_MODE_NORMAL'.
35043
afd5c115 350442009-05-04 Felix Zielcke <fzielcke@z-51.de>
35045
35046 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
35047 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
35048 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 35049 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 35050 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
35051 `grub_script.tab.c'.
35052
35053 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35054 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35056 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35057 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35058
faa517ce 35059 * Makefile.in: Remove duplicated 2008 in Copyright line.
35060
ae0c0bdc 350612009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35062
473d1e45 35063 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 35064 unconditionally.
35065 * include/grub/util/misc.h (grub_util_warn): New declaration.
35066
35067 * util/i386/pc/grub-install.in: Understand --force and pass it down
35068 to grub-setup.
35069
35070 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
35071 down to setup().
35072 (setup): Improve error messages and add warnings when requested to
35073 install in odd layouts. Refuse to install using blocklists unless
35074 --force was set.
35075
18f547ad 350762009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 35077
35078 * disk/raid.c (grub_raid_scan_device): Improve debug message.
35079
6d260daa 350802009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35081
35082 Updated copyright year
35083
35084 * fs/hfsplus.c: updated copyright year
18f547ad 35085
69f853f8 350862009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35087
35088 HFS+ UUID
35089
18f547ad 35090 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 35091 in the space previously used by unused3
35092 (grub_hfsplus_uuid): new function
35093 (grub_hfsplus_fs): added uuid field
35094
4c402e73 350952009-05-03 Pavel Roskin <proski@gnu.org>
35096
35097 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
35098 suppress warnings. It's no longer needed.
35099 * disk/host.c: Likewise.
35100 * disk/ata_pthru.c: Likewise.
35101 * disk/loopback.c: Likewise.
35102 * hook/datehook.c: Likewise.
35103 * parttool/pcpart.c: Likewise.
35104 * fs/i386/pc/pxe.c: Likewise.
35105 * fs/ntfscomp.c: Likewise.
35106 * efiemu/main.c: Likewise.
35107 * mmap/mmap.c: Likewise.
35108 * commands/crc.c: Likewise.
35109 * commands/hexdump.c: Likewise.
35110 * commands/hdparm.c: Likewise.
35111 * commands/acpi.c: Likewise.
35112 * commands/echo.c: Likewise.
35113 * commands/minicmd.c: Likewise.
35114 * commands/blocklist.c: Likewise.
35115 * commands/memrw.c: Likewise.
35116 * commands/loadenv.c: Likewise.
35117 * commands/usbtest.c: Likewise.
35118 * commands/lsmmap.c: Likewise.
35119 * commands/boot.c: Likewise.
35120 * commands/parttool.c: Likewise.
35121 * commands/configfile.c: Likewise.
35122 * commands/search.c: Likewise.
35123 * commands/ieee1275/suspend.c: Likewise.
35124 * commands/cat.c: Likewise.
35125 * commands/i386/pc/pxecmd.c: Likewise.
35126 * commands/i386/pc/play.c: Likewise.
35127 * commands/i386/pc/halt.c: Likewise.
35128 * commands/i386/pc/vbeinfo.c: Likewise.
35129 * commands/i386/pc/vbetest.c: Likewise.
35130 * commands/lspci.c: Likewise.
35131 * commands/date.c: Likewise.
35132 * commands/handler.c: Likewise.
35133 * commands/ls.c: Likewise.
35134 * commands/test.c: Likewise.
35135 * commands/cmp.c: Likewise.
35136 * commands/efi/loadbios.c: Likewise.
35137 * commands/efi/fixvideo.c: Likewise.
35138 * commands/halt.c: Likewise.
35139 * commands/help.c: Likewise.
35140 * commands/reboot.c: Likewise.
35141 * hello/hello.c: Likewise.
35142 * script/sh/main.c: Likewise.
35143 * loader/xnu.c: Likewise.
35144 * term/terminfo.c: Likewise.
35145 * term/i386/pc/serial.c: Likewise.
35146 * term/usb_keyboard.c: Likewise.
35147
515b5079 351482009-05-03 David S. Miller <davem@davemloft.net>
35149
35150 * normal/menu.c: Include grub/parser.h
35151
dfc31a22 351522009-05-03 Pavel Roskin <proski@gnu.org>
35153
2fee74f1 35154 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
35155 not char*.
35156 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
35157 Suggested by Javier Martín <lordhabbit@gmail.com>
35158
dfc31a22 35159 * util/i386/pc/grub-mkrescue.in: Allow for the case when
35160 efiemu??.o doesn't exist.
35161 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
35162 copying.
35163
18f547ad 351642009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 35165
35166 FreeBSD 64-bit support
35167
18f547ad 35168 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 35169 and loader/i386/bsd_trampoline.S
35170 (bsd_mod_ASFLAGS): new variable
35171 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
35172 (FREEBSD_MODTYPE_KERNEL64): likewise
35173 (grub_bsd64_trampoline_start): likewise
35174 (grub_bsd64_trampoline_end): likewise
35175 (grub_bsd64_trampoline_selfjump): likewise
35176 (grub_bsd64_trampoline_gdt): likewise
35177 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
35178 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
35179 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
35180 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 35181 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 35182 of "attrib" member
35183 * loader/i386/bsd_pagetable.c: new file
35184 * loader/i386/bsd_trampoline.S: likewise
35185 * loader/i386/bsd.c (ALIGN_QWORD): new macro
35186 (ALIGN_VAR): likewise
35187 (entry_hi): new variable
35188 (kern_end_mdofs): likewise
35189 (is_64bit): likewise
35190 (grub_freebsd_add_meta): use ALIGN_VAR
35191 (grub_e820_mmap): new declaration
35192 (grub_freebsd_add_mmap): new function
35193 (grub_freebsd_add_meta_module): support 64 bit kernels
35194 (grub_freebsd_list_modules): use ALIGN_VAR
35195 (gdt_descriptor): new declaration
35196 (grub_freebsd_boot): support 64 bit kernels
35197 (grub_bsd_elf64_hook): new function
35198 (grub_bsd_load_elf): support elf64
35199
038c5720 352002009-05-03 Bean <bean123ch@gmail.com>
35201
35202 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
35203 after we get the result of if statement.
35204
fc45fb58 352052009-05-03 Bean <bean123ch@gmail.com>
35206
35207 * Makefile.in (enable_efiemu): New variable.
35208
35209 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
35210 set.
35211 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
35212 path.
35213 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
35214 path, add -mno-red-zone option.
35215 (efiemu64_s.o): Likewise.
35216 (efiemu64.o): Use macro $^ for source file.
35217
35218 * configure.ac (--enable-efiemu): New option.
35219
bbee0f2b 352202009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
35221
35222 xnu support
35223
35224 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
35225 (pkglib_MODULES): add xnu.mod
35226 (xnu_mod_SOURCES): new variable
35227 (xnu_mod_CFLAGS): likewise
35228 (xnu_mod_LDFLAGS): likewise
35229 (xnu_mod_ASFLAGS): likewise
35230 * conf/i386-pc.rmk: likewise
35231 * conf/x86_64-efi.rmk: likewise
7dd4a573 35232 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 35233 new declaration
35234 * include/grub/i386/macho.h: new file
35235 * include/grub/i386/xnu.h: likewise
35236 * include/grub/macho.h: likewise
35237 * include/grub/machoload.h: likewise
35238 * include/grub/x86_64/macho.h: likewise
35239 * include/grub/x86_64/xnu.h: likewise
35240 * include/grub/xnu.h: likewise
35241 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
35242 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
35243 * loader/i386/efi/xnu.c: new file
35244 * loader/i386/pc/xnu.c: likewise
35245 * loader/i386/xnu.c: likewise
35246 * loader/i386/xnu_helper.S: likewise
35247 * loader/macho.c: likewise
35248 * loader/xnu.c: likewise
35249 * loader/xnu_resume.c: likewise
35250 * util/grub-dumpdevtree: likewise
35251 * include/grub/i386/pit.h: include grub/err.h
35252 (grub_pit_wait): export
35253 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 35254
5caf964d 352552009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35256
35257 Efiemu
7dd4a573 35258
5caf964d 35259 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 35260 _linux_efi, linux_efi.
35261 new files in grub-emu
5caf964d 35262 new targets efiemu32.o and efiemu64.o
35263 * loader/linux_normal_efiemu.c: likewise
35264 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 35265 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 35266 files to copy
35267 * include/grub/autoefi.h: new file
7dd4a573 35268 * include/grub/i386/efiemu.h: likewise
5caf964d 35269 * include/grub/i386/pc/efiemu.h: likewise
35270 * include/grub/efi/api.h: add LL suffix when necessary
35271 new definitions relating to tables
35272 * include/grub/efiemu/efiemu.h: new file
35273 * include/grub/efiemu/runtime.h: likewise
35274 * efiemu/prepare.c: likewise
35275 * efiemu/loadcore_common.c: likewise
35276 * efiemu/loadcore64.c: likewise
35277 * efiemu/runtime/efiemu.sh: likewise
35278 * efiemu/runtime/efiemu.S: likewise
35279 * efiemu/runtime/efiemu.c: likewise
35280 * efiemu/runtime/config.h: likewise
35281 * efiemu/prepare32.c: likewise
35282 * efiemu/main.c: likewise
35283 * efiemu/modules/pnvram.c: likewise
35284 * efiemu/modules/i386: likewise
35285 * efiemu/modules/i386/pc: likewise
35286 * efiemu/modules/acpi.c: likewise
35287 * efiemu/i386/pc/cfgtables.c: likewise
35288 * efiemu/i386/loadcore64.c: likewise
35289 * efiemu/i386/loadcore32.c: likewise
35290 * efiemu/prepare64.c: likewise
35291 * efiemu/loadcore.c: likewise
35292 * efiemu/symbols.c: likewise
35293 * efiemu/mm.c: likewise
35294 * efiemu/loadcore32.c: likewise
7dd4a573 35295
352962009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 35297
35298 ACPI spoofing
35299
35300 * commands/acpi.c: new file
35301 * commands/i386/pc/acpi.c: likewise
35302 * commands/efi/acpi.c: likewise
35303 * include/grub/acpi.h: likewise
35304 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
35305 (acpi_mod_SOURCES): new variable
35306 (acpi_mod_CFLAGS): likewise
35307 (acpi_mod_LDFLAGS): likewise
35308 * conf/i386-efi.rmk: likewise
35309 * conf/x86_64-efi.rmk: likewise
35310
7dd4a573 353112009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 35312
35313 Missing part from mmap patch
35314
35315 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
35316 (grub_mmap_unregister)
35317 (grub_mmap_free_and_unregister): use grub_mmap_register
35318
7dd4a573 353192009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 35320
35321 Mmap services
35322
35323 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
35324 * loader/i386/linux.c (find_mmap_size): likewise
35325 (allocate_pages): likewise
35326 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
35327 (grub_fill_multiboot_mmap): likewise
35328 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
35329 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
35330 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
35331 (OPENBSD_MMAP_RESERVED): likewise
35332 * include/grub/i386/pc/memory.h: include grub/memory.h
35333 (grub_lower_mem): removed
35334 (grub_upper_mem): likewise
35335 (GRUB_MACHINE_MEMORY_ACPI): new definition
35336 (GRUB_MACHINE_MEMORY_NVS): likewise
35337 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
35338 (GRUB_MACHINE_MEMORY_HOLE): likewise
35339 (grub_machine_mmap_register): likewise
35340 (grub_machine_mmap_unregister): likewise
35341 (grub_machine_get_upper): likewise
35342 (grub_machine_get_lower): likewise
35343 (grub_machine_get_post64): likewise
35344 * include/grub/i386/efi/memory.h: new file
35345 * include/grub/x86_64/efi/memory.h: likewise
35346 * include/grub/efi/memory.h: likewise
35347 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
35348 (mmap_mod_SOURCES): new variable
35349 (mmap_mod_LDFLAGS): likewise
35350 (mmap_mod_ASFLAGS): likewise
35351 * conf/i386-coreboot.rmk: likewise
35352 * conf/i386-ieee1275.rmk: likewise
35353 * conf/i386-efi.rmk: likewise
35354 * conf/x86_64-efi.rmk: likewise
35355 * include/grub/types.h (UINT_TO_PTR): new macro
35356 (PTR_TO_UINT32): likewise
35357 (PTR_TO_UINT64): likewise
35358 * include/grub/memory.h: new file
35359 * mmap/i386/pc/mmap.c: likewise
35360 * mmap/i386/pc/mmap_helper.S: likewise
35361 * mmap/i386/uppermem.c: likewise
35362 * mmap/mmap.c: likewise
35363 * mmap/efi/mmap.c: likewise
7dd4a573 35364 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 35365 grub_upper_mem
35366 * kern/i386/pc/init.c (grub_lower_mem): removed variable
35367 (grub_upper_mem): likewise
35368 (grub_machine_init): don't use grub_upper_mem,
35369 make grub_lower_mem local
35370 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
35371 grub_mmap_iterate and grub_mmap_get_upper
35372 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
35373
d558e6b5 353742009-05-02 Bean <bean123ch@gmail.com>
35375
35376 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
35377 script/sh/parser.y.
35378 (pkglib_MODULES): Add normal.mod and sh.mod.
35379 (normal_SOURCES): New variable.
35380 (normal_mod_CFLAGS): Likewise.
35381 (normal_mod_LDFLAGS): Likewise.
35382 (sh_mod_SOURCES): Likewise.
35383 (sh_mod_CFLAGS): Likewise.
35384 (sh_mod_LDFLAGS): Likewise.
35385
35386 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
35387 script/sh/lexer.c_DEPENDENCIES.
35388 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
35389 kern/rescue_reader.c and kern/rescue_parser.c.
35390 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
35391 (grub_emu_SOURCES): Change source files.
35392 (pkglib_MODULES): Remove normal.mod.
35393 (normal_SOURCES): Removed.
35394 (normal_mod_CFLAGS): Likewise.
35395 (normal_mod_LDFLAGS): Likewise.
35396 * conf/i386-coreboot.rmk: Likewise.
35397 * conf/i386-efi.rmk: Likewise.
35398 * conf/i386-ieee1276.rmk: Likewise.
35399 * conf/powerpc-ieee1275.rmk: Likewise.
35400 * conf/sparc64-ieee1275.rmk: Likewise.
35401 * conf/x86_64-efi.rmk: Likewise.
35402
35403 * include/grub/command.h (grub_command_execute): New inline function.
35404
35405 * include/grub/menu.h (grub_menu_entry): Removed commands field.
35406
35407 * include/grub/normal.h: Remove <grub/setjmp.h>.
35408 (grub_fs_module_list): Moved to normal/autofs.c.
35409 (grub_exit_env): Removed.
35410 (grub_command_execute): Likewise.
35411 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
35412 parameter script.
35413 (read_command_list): New function declaration.
35414 (read_fs_list): Likewise.
35415
35416 * include/parser.h: Include <grub/reader.h>.
35417 (grub_parser_split_cmdline): Change type of getline parameter.
35418 (grub_parser): New structure.
35419 (grub_parser_class): New variable.
35420 (grub_parser_execute): New function declaration.
35421 (grub_register_rescue_parser): Likewise.
35422 (grub_parser_register): New inline function.
35423 (grub_parser_unregister): Likewise.
35424 (grub_parser_get_current): Likewise.
35425 (grub_parser_set_current): Likewise.
35426
35427 * include/grub/reader.h: New file.
35428 * kern/reader.c: Likewise.
35429 * kern/rescue_parser.c: Likewise.
35430 * kern/rescue_reader.c: Likewise.
35431 * normal/autofs.c: Likewise.
35432 * normal/dyncmd.c: Likewise.
35433
35434 * include/grub/rescue.h: Removed.
35435 * normal/command.h: Likewise.
35436
35437 * include/grub/script.h: Moved to ...
35438 * include/grub/script_sh.h: ... Moved here.
35439 * normal/execute.c: Moved to ...
35440 * script/sh/execute.c: ... Moved here.
35441 * normal/function.c: Moved to ...
35442 * script/sh/function.c: ... Moved here.
35443 * normal/lexer.c: Moved to ...
35444 * script/sh/lexer.c: ... Moved here.
35445 * normal/parser.y: Moved to ...
35446 * script/sh/parser.y: ... Moved here.
35447 * normal/script.c: Moved to ...
35448 * script/sh/script.c: ... Moved here.
35449
35450 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
35451 <grub/reader.h>.
35452 (grub_exit_env): Removed.
35453 (fs_module_list): Moved to normal/autofs.c.
35454 (grub_file_getline): Don't handle comment here.
35455 (free_menu): Skip removed field entry->commands.
35456 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
35457 script parameter.
35458 (read_config_file): Removed nested parameter, change getline function.
35459 (grub_enter_normal_mode): Removed.
35460 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
35461 (read_command_list): Likewise.
35462 (autoload_fs_module): Moved to normal/autofs.c.
35463 (read_fs_list): Likewise.
35464 (reader_nested): New variable.
35465 (grub_normal_execute): Run parser.sh to switch to sh parser.
35466 (grub_cmd_rescue): Removed.
35467 (cmd_normal): Removed.
35468 (grub_cmd_normal): Unregister itself at the beginning. Don't register
35469 rescue command.
35470 (grub_cmdline_run): New function.
35471 (grub_normal_reader_init): Likewise.
35472 (grub_normal_read_line): Likewise.
35473 (grub_env_write_pager): Likewise.
35474 (cmdline): New variable.
35475 (grub_normal_reader): Likewise.
35476 (GRUB_MOD_INIT): Register normal reader and set as current, register
35477 pager hook, register normal command with grub_register_command_prio,
35478 so that it won't show up in command.lst.
35479 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
35480 grub_fs_autoload_hook.
35481
35482 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
35483 (grub_menu_execute_entry): Replace grub_script_execute with
35484 grub_parser_execute, change parameter to grub_command_execute.
35485
35486 * normal/menu_text.c: Remove <grub/script.h>.
35487
35488 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
35489 and <grub/parser.h>.
35490 (run): Change editor_getline to use new parser interface. Change
35491 parameter to grub_command_execute.
35492
35493 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
35494 <grub/reader.h> and <grub/parser.h>.
35495 (grub_load_normal_mode): Execute normal command.
35496 (grub_main): Call grub_register_core_commands,
35497 grub_register_rescue_parser and grub_register_rescue_reader, use
35498 grub_reader_loop to enter input loop.
35499
7dd4a573 35500 * kern/parser.c (grub_parser_split_cmdline): Change type of
35501 getline parameter.
d558e6b5 35502 (grub_parser_class): New variable.
35503 (grub_parser_execute): New function.
35504
35505 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
35506 * loader/multiboot2.c: Likewise.
35507 * loader/sparc64/ieee1275/linux.c: Likewise.
35508
35509 * util/grub-emu.c (read_command_list): New dummy function.
35510
18db813d 355112009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35512
35513 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
35514 count to 16 for CCISS and IDA.
35515
6c67de15 355162009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35517
35518 * normal/menu_text.c (grub_wait_after_message): Print a newline
35519 after waiting for user input.
35520
35521 * loader/i386/linux.c: Include `<grub/normal.h>'.
35522 (grub_cmd_linux): Improve the error message about `ask' mode, by
35523 waiting for user input so it's not missed (we can do this, since
35524 user requested interaction).
35525
d9dc87b0 355262009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35527
35528 Added missing lst to grub-mkrescue
35529
35530 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
35531 and ${input_dir}/parttool.lst
35532
ac8a2baa 355332009-04-30 David S. Miller <davem@davemloft.net>
35534
ad22a610 35535 * util/hostdisk.c (device_is_wholedisk): New function.
35536 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
35537 zero only if device_is_wholedisk() returns true.
35538
6966215d 35539 * util/hostdisk.c (convert_system_partition_to_system_disk):
35540 Handle virtual disk devices named /dev/vdiskX as found on sparc
35541 and powerpc.
35542
ac8a2baa 35543 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
35544 lettered partition specifier is found, convert to numbered.
35545
979b4fb4 355462009-04-29 David S. Miller <davem@davemloft.net>
35547
e2bf39b2 35548 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
35549 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35550
3c64e104 35551 * normal/command.c: Add missing newline at end of file.
35552
979b4fb4 35553 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
35554 warnings.
35555 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
35556 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
35557 grub_ofdisk_read): Likewise, and deal similarly with the fact that
35558 ihandles have a 32-bit type but need to be stored in a "void *".
35559
136d9f82 355602009-04-28 Pavel Roskin <proski@gnu.org>
35561
9459c306 35562 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
35563 not disk. Adjust all dependencies.
2e08a26a 35564 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 35565 grub_disk_close().
35566
136d9f82 35567 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
35568 parent's partition, don't copy it by reference, as it gets freed
35569 on close.
35570
7dd4a573 355712009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 35572
35573 Preboot hooks support
35574
35575 * commands/boot.c (struct grub_preboot_t): new declaration
35576 (preboots_head): new variable
35577 (preboots_tail): likewise
35578 (grub_loader_register_preboot_hook): new function
35579 (grub_loader_unregister_preboot_hook): likewise
35580 (grub_loader_set): launch preboot hooks
35581 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
35582 (grub_loader_register_preboot_hook): new declaration
35583 (grub_loader_unregister_preboot_hook): likewise
35584
5af922b5 355852009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
35586
35587 Warning fix
35588
7dd4a573 35589 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 35590 calling grub_dprintf
35591
a5562c30 355922009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
35593
35594 Bug and warning fixes
35595
7dd4a573 35596 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 35597 declaration
35598 * commands/test.c (test_parse): fixed bug with file tests and corrected
35599 declaration of find_file
35600
4006f85c 356012009-04-26 Pavel Roskin <proski@gnu.org>
35602
35603 * Makefile.in: Don't install empty manual pages if help2man is
35604 missing. Use help2man option for output, not shell redirection.
35605
5c77c3de 356062009-04-26 David S. Miller <davem@davemloft.net>
35607
35608 * util/grub-mkdevicemap.c (make_device_map): Add missing
35609 NESTED_FUNC_ATTR to process_device().
35610
033b10a8 356112009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
35612
35613 Test command
35614
35615 * commands/test.c: rewritten to use bash-like test
35616
e4343593 356172009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
35618
35619 Parttool autoloading and improvements
35620
7dd4a573 35621 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 35622 (parttool.lst): new target
35623 * genmk.rb: generate parttool-*
35624 (CLEANFILES): add #{parttool}
35625 (PARTTOOLFILES): new variable
35626 * genparttoollist.sh: new file
7dd4a573 35627 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 35628 (grub_pcpart_type): likewise
35629 * commands/parttool.c (helpmsg): new variable
35630 (grub_cmd_parttool): output help if not enough arguments are supplied
35631 autoload modules
35632 (GRUB_MOD_INIT(parttool)): use helpmsg
35633
0d312500 356342009-04-24 David S. Miller <davem@davemloft.net>
35635
7dd4a573 35636 Avoiding opening same device multiple times in device iterator.
0d312500 35637
35638 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 35639 and use it to build a list of partitions in iterate_disk() and
0d312500 35640 iterate_partition().
35641
ac20caff 35642 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
35643 on disk->data.
35644
0dcf7495 35645 * disk/ieee1275/nand.c (grub_nand_iterate): Return
35646 grub_devalias_iterate() result instead of unconditional 0.
35647 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
35648 Also, capture hook return value, either directly or via
35649 grub_children_iterate(), and propagate to caller.
35650 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
35651 grub_children_iterate): Return value is now 'int' instead of
35652 'grub_err_t'.
35653 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
35654 like a proper iterator, stopping when hooks return non-zero.
35655 (grub_devalias_iterate): Likewise.
35656
c8c08833 356572009-04-23 David S. Miller <davem@davemloft.net>
35658
35659 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
35660
f01005a8 356612009-04-22 David S. Miller <davem@davemloft.net>
35662
35663 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
35664 is larger than address_cells, use that value for address_cells too.
35665
4e8269da 35666 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
35667 IEEE1275_MAX_PATH_LEN): Define.
35668 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
35669 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
35670 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
35671 'devtype'. Explicitly NULL terminate devalias expansion.
35672
a1447506 35673 * util/sparc64/ieee1275/misc.c: New file.
35674 * util/sparc64/ieee1275/grub-setup.c: New file.
35675 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
35676 * util/sparc64/ieee1275/grub-mkimage.c: New file.
35677 * util/sparc64/ieee1275/grub-install.in: New file.
35678 * util/ieee1275/ofpath.c: New file.
35679 * util/ieee1275/devicemap.c: New file.
35680 * util/devicemap.c: New file.
35681 * util/deviceiter.c: New file.
35682 * kern/sparc64/ieee1275/init.c: New file.
35683 * include/grub/util/ofpath.h: New file.
35684 * include/grub/util/deviceiter.h: New file.
35685 * util/grub-mkdevicemap.c: Include deviceiter.h.
35686 Implement using grub_util_emit_devicemap_entry and
35687 grub_util_iterate_devices.
35688 * conf/i386-corebook.rmk: Build util/deviceiter.c and
35689 util/devicemap.c into grub-mkdevicemap
35690 * conf/i386-efi.rmk: Likewise.
35691 * conf/i386-ieee1275.rmk: Likewise.
35692 * conf/i386-pc.rmk: Likewise.
35693 * conf/powerpc-ieee1275.rmk: Likewise.
35694 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
35695 images and installation utilities. Build kernel as image
35696 instead of as elf binary. Use common rules as much as possible.
35697
7dd4a573 356982009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 35699
35700 Correct GPT definition
35701
7dd4a573 35702 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 35703 of "attrib" member
35704
c6c5219f 357052009-04-19 Felix Zielcke <fzielcke@z-51.de>
35706
35707 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
35708
0552ff9f 357092009-04-19 David S. Miller <davem@davemloft.net>
35710
35711 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
35712 (grub_rescue_cmd_linux): Rename to...
35713 (grub_cmd_linux): and fix prototype.
35714 (grub_rescue_cmd_initrd): Rename to...
35715 (grub_cmd_initrd): and fix prototype.
35716 (cmd_linux, cmd_initrd): New.
35717 (GRUB_MOD_INIT(linux)): Use grub_register_command().
35718 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
35719
d1a282fc 357202009-04-17 Pavel Roskin <proski@gnu.org>
35721
07c5039f 35722 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
35723 format.
35724 (grub_ohci_transfer): Likewise.
35725
b012002d 35726 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
35727
1bc09c35 35728 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
35729 return without a value. Fix inconsistent indentation.
35730
e0ff9126 35731 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
35732 match struct grub_fs.
35733
d1a282fc 35734 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
35735 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
35736 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
35737 * commands/lspci.c (grub_lspci_iter): Likewise.
35738
a96df3f2 357392009-04-16 Bean <bean123ch@gmail.com>
35740
35741 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
35742 value.
35743
41bb0fe9 357442009-04-15 Pavel Roskin <proski@gnu.org>
35745
35746 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
35747 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
35748 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
35749 definitions.
35750
596c6970 357512009-04-15 Felix Zielcke <fzielcke@z-51.de>
35752
35753 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 35754 that no multiple data or metadata areas are supported and `Unknown
596c6970 35755 metadata header'.
35756
7dd4a573 357572009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 35758
35759 Move loader out of the kernel
35760
35761 * kern/loader.c: moved to ...
35762 * commands/boot.c: ... moved here
35763 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
35764 * commands/boot.c (grub_cmd_boot): moved here. All users updated
35765 * include/grub/kernel.h (grub_machine_fini): export
35766 * include/grub/loader.h (grub_loader_is_loaded): update declaration
35767 (grub_loader_set): likewise
35768 (grub_loader_unset): likewise
35769 (grub_loader_boot): likewise
35770 * conf/common.rmk: new module boot.mod
35771 (pkglib_MODULES): add boot.mod
35772 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
35773 (grub_emu_SOURCES): likewise
35774 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
35775 (grub_emu_SOURCES): likewise
35776 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
35777 (grub_emu_SOURCES): likewise
35778 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
35779 (grub_emu_SOURCES): likewise
35780 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
35781 (grub_emu_SOURCES): likewise
7dd4a573 35782 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
35783 (grub_emu_SOURCES): likewise
0d5d5653 35784 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 35785 (grub_emu_SOURCES): likewise
0d5d5653 35786
7dd4a573 357872009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 35788
35789 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 35790
5999d619 35791 * kern/misc.c (grub_itoa): Removed function
35792 (grub_ltoa): likewise
35793 (grub_vsprintf): use grub_lltoa
35794
7dd4a573 357952009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 35796
35797 Restore grub-emu
35798
35799 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
35800 * conf/i386-coreboot.rmk: likewise
35801 * conf/i386-ieee1275.rmk: likewise
35802 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 35803
20318222 358042009-04-15 Felix Zielcke <fzielcke@z-51.de>
35805
35806 * INSTALL: Add that `./autogen.sh' needs to be run before
35807 `./configure.'.
35808
d05f0df3 358092009-04-14 Bean <bean123ch@gmail.com>
35810
35811 * Makefile.in (pkglib_DATA): Add handler.lst.
35812 (handler.lst): New rule.
35813
35814 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
35815 * conf/i386-coreboot.rmk: Likewise.
35816 * conf/i386-ieee1275.rmk: Likewise.
35817 * conf/i386-efi.rmk: Likewise.
35818 * conf/x86_64-efi.rmk: Likewise.
35819 * conf/powerpc-ieee1275.rmk: Likewise.
35820 * conf/sparc64-ieee1275.rmk: Likewise.
35821
35822 * genhandlerlist.sh: New file.
35823
35824 * genmk.rb: Add rules to generate handler.lst.
35825
35826 * include/grub/normal.h (grub_file_getline): New function definition.
35827 (read_handler_list): Likewise.
35828 (free_handler_list): Likewise.
35829
35830 * include/grub/term.h (grub_term_register_input): Add name parameter
35831 for auto generation of handler.lst.
35832 (grub_term_register_output): Likewise.
35833
35834 * normal/handler.c: New file.
35835
35836 * normal/main.c (get_line): Renamed to grub_file_getline.
35837 (read_config_file): Use the newly renamed grub_file_getline.
35838 (read_command_list): Likewise.
35839 (read_fs_list): Likewise.
35840 (grub_normal_execute): Call read_handler_list to parse handler.lst.
35841 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
35842
35843 * term/efi/console.c (grub_console_init): Add name parameter for auto
35844 generation of handler.lst.
35845 * term/gfxterm.c: Likewise.
35846 * term/i386/pc/at_keyboard.c: Likewise.
35847 * term/i386/pc/console.c: Likewise.
35848 * term/i386/pc/serial.c: Likewise.
35849 * term/i386/pc/vesafb.c: Likewise.
35850 * term/i386/pc/vga.c: Likewise.
35851 * term/i386/pc/vga_text.c: Likewise.
35852 * term/ieee1275/ofconsole.c: Likewise.
35853 * term/usb_keyboard.c: Likewise.
35854
33c846be 358552009-04-14 Bean <bean123ch@gmail.com>
35856
35857 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
35858 properly with null character.
35859
4484e01e 358602009-04-14 Felix Zielcke <fzielcke@z-51.de>
35861
35862 * configure: Remove.
35863 * config.h.in: Likewise.
f93d668e 35864 * stamp-h.in: Likewise.
4484e01e 35865 * DISTLIST: Likewise.
35866 * conf/common.mk: Likewise.
35867 * conf/i386-coreboot.mk: Likewise.
35868 * conf/i386-efi.mk: Likewise.
35869 * conf/i386-ieee1275.mk: Likewise.
35870 * conf/i386.mk: Likewise.
35871 * conf/i386-pc.mk: Likewise.
35872 * conf/powerpc-ieee1275.mk: Likewise.
35873 * conf/sparc64-ieee1275.mk: Likewise.
35874 * conf/x86_64-efi.mk: Likewise.
35875
35876 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
35877 develop on GRUB.
35878
7dd4a573 358792009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 35880 David S. Miller <davem@davemloft.net>
35881
35882 * util/hostdisk.c (make_device_name): Fix buffer length
35883 calculations.
35884
e25b5a8c 358852009-04-14 Felix Zielcke <fzielcke@z-51.de>
35886
35887 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
35888 <sys/param.h> and <sys/sysctl.h>.
35889 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
35890 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
35891 opening the device and reset them afterwards.
35892
1f1f580c 358932009-04-13 Pavel Roskin <proski@gnu.org>
35894
35895 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
35896 Reported by John Stanley <jpsinthemix@verizon.net>
35897
7ebc2d6b 358982009-04-13 Robert Millan <rmh@aybabtu.com>
35899
35900 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 35901 that name for menuentries when appropriate.
7ebc2d6b 35902
d8ba3667 359032009-04-13 Felix Zielcke <fzielcke@z-51.de>
35904
35905 * util/grub.d/10_freebsd.in: Add a missing `fi'.
35906
cba416eb 359072009-04-13 Robert Millan <rmh@aybabtu.com>
35908
35909 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
35910 to Linux, simply abort telling the user it's no longer supported.
35911
a547a745 359122009-04-13 Felix Zielcke <fzielcke@z-51.de>
35913
35914 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 35915 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 35916 `freebsd_loadenv' only when devices.hints exist.
35917
232a769c 359182009-04-13 Pavel Roskin <proski@gnu.org>
35919
35920 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
35921
c3012039 359222009-04-13 Felix Zielcke <fzielcke@z-51.de>
35923
35924 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
35925 partition number.
35926 (grub_drive): Likewise.
35927
234022fe 359282009-04-13 David S. Miller <davem@davemloft.net>
35929
35930 * kern/sparc64/ieee1275/ieee1275.c: New file.
35931 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
35932 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
35933 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
35934 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
35935 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
35936 grub_ieee1275_alloc_physmem): Declare new exported functions.
35937
d8e1836c 35938 * include/grub/sparc64/ieee1275/loader.h: New file.
35939 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35940 * include/grub/sparc64/kernel.h: Likewise.
35941 * loader/sparc64/ieee1275/linux.c: Likewise.
35942
96bd81ec 35943 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
35944 (grub_fstest_SOURCES): Likewise.
35945
6a4737e5 35946 * util/hostdisk.c (make_device_name): Do not make any assumptions
35947 about the length of drive names.
35948
1d7a72fd 35949 * kern/dl.c (grub_dl_load_file): Close file immediately when
35950 we are done using it.
35951
56bc2471 359522009-04-12 David S. Miller <davem@davemloft.net>
35953
35954 * kern/misc.c (grub_ltoa): Fix cast when handling negative
35955 values. Noticed by Pavel Roskin.
35956
df38d0bb 35957 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
35958 target compiler.
7dd4a573 35959
e382e93a 35960 * genmk.rb: Add more flexible image type specification, also
35961 pass --strip-unneeded to objcopy.
35962 * conf/i386-pc.rmk: Use *_FORMAT.
35963 * conf/i386-pc.mk: Rebuilt.
35964
f5dbbca9 35965 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
35966 (OFDISK_HASH_SZ): Define.
35967 (ofdisk_hash): New hash table.
35968 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
35969 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
35970 instead of device phandle which is not unique.
35971
91c88b12 35972 * kern/sparc64/ieee1275/init.c: Delete, replace with...
35973 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
35974 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
35975 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
35976 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
35977 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
35978 GRUB_KERNEL_MACHINE_DATA_END): Define.
35979 (grub_kernel_image_size, grub_total_module_size): Declare.
35980
5b5d4aa5 359812009-04-12 Pavel Roskin <proski@gnu.org>
35982
7dd4a573 35983 * configure.ac: Change the logic when we check for target tools.
35984 Do it when the target is specified and it's different from the
35985 specified value of the host.
5b5d4aa5 35986
c91e1793 359872009-04-11 Felix Zielcke <fzielcke@z-51.de>
35988
35989 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
35990 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
35991 GNU/kFreeBSD. Check if a device is a character device. Use
35992 DIOCGMEDIASIZE to get the size.
35993 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
35994 support for GNU/kFreeBSD.
35995 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
35996 is a character device instead of a block device. Add support for
35997 FreeBSD device names.
35998
35999 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
36000 is a character device instead of a block device.
36001
36002 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
36003 is a character device instead of a block device.
36004
b1ac8644 360052009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
36006
36007 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
36008 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
36009 FreeBSD. Check if a device is a character device. Use
36010 DIOCGMEDIASIZE to get the size.
36011 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
36012 support for FreeBSD.
36013 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
36014 is a character device instead of a block device. Add support for
36015 FreeBSD device names.
36016
36017 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
36018 a character device instead of a block device.
36019 (grub_util_check_char_device): New function.
36020
36021 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
36022 a character device instead of a block device.
36023
36024 * include/grub/util/getroot.h (grub_util_check_char_device): New
36025 prototype.
36026
a3f7515a 360272009-04-11 David S. Miller <davem@davemloft.net>
36028
36029 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
36030 static libgcc.
36031 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
36032 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
36033 function, if present.
36034 (__bswapdi2): Likewise.
36035
0d44993d 36036 * include/grub/sparc64/ieee1275/boot.h: New file.
36037 * boot/sparc64/ieee1275/boot.S: Likewise.
36038 * boot/sparc64/ieee1275/diskboot.S: Likewise.
36039
ed3d2bc2 36040 * kern/misc.c (grub_ltoa): New function.
36041 (grub_vsprintf): Use it to format 'long' integers.
36042
d3bfb59c 360432009-04-10 David S. Miller <davem@davemloft.net>
36044
36045 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
36046 slots are of type grub_ieee1275_cell_t.
36047 (grub_nand_read): Likewise.
36048 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
36049 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
36050 macros are used to compare values in arg/ret block of the call.
36051 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36052 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
36053 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
36054 grub_ieee1275_instance_to_path, grub_ieee1275_write,
36055 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
36056 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
36057 grub_ieee1275_close, grub_ieee1275_set_property,
36058 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
36059 grub_ieee1275_cell_t.
36060 * kern/ieee1275/openfw.c (grub_map): Likewise.
36061 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
36062 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
36063
450e2238 36064 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
36065 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
36066 (grub_devalias_iterate): Likewise.
36067
7dd4a573 360682009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 36069
36070 UFS improvements
36071
36072 * fs/ufs.c (INODE_NBLOCKS): new definition
36073 (struct grub_ufs_dirent): added fields for non-BSD dirents
36074 (grub_ufs_get_file_block): fixed double indirect handling
36075 (grub_ufs_lookup_symlink): use more robust way to determine whether
36076 symlink is inline
36077 (grub_ufs_find_file): support for non-BSD dirents
36078 (grub_ufs_dir): support for non-BSD dirents
36079
e7e6862a 360802009-04-10 Bean <bean123ch@gnail.com>
36081
36082 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
36083 attribute, otherwise the size would be wrong for i386 platform.
36084
36085 * include/grub/pci.h (grub_pci_read_word): New inline function.
36086 (grub_pci_read_byte): Likewise.
36087 (grub_pci_write): Likewise.
36088 (grub_pci_write_word): Likewise.
36089 (grub_pci_write_byte): Likewise.
36090
36091 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
36092
36093 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
36094 (find_framebuf): Scan pci to locate the frame buffer address.
36095
36096 * commands/efi/fixvideo.c: New file.
36097
36098 * commands/efi/loadbios.c: Likewise.
36099
36100 * commands/memrw.c: Likewise.
36101
36102 * util/grub-dumpbios.in: Likewise.
36103
36104 * conf/common.rmk (grub-dumpbios): New utility.
36105 (pkglib_MODULES): New module memrw.mod.
36106 (memrw_mod_SOURCE): New macro.
36107 (memrw_mod_CFLAGS): Likewise.
36108 (memrw_mod_LDFLAGS): Likewise.
36109
7dd4a573 36110 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36111 fixvideo.mod.
36112 (loadbios_mod_SOURCE): New macro.
36113 (loadbios_mod_CFLAGS): Likewise.
36114 (loadbios_mod_LDFLAGS): Likewise.
36115 (fixvideo_mod_SOURCE): Likewise.
36116 (fixvideo_mod_CFLAGS): Likewise.
36117 (fixvideo_mod_LDFLAGS): Likewise.
36118
7dd4a573 36119 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36120 fixvideo.mod.
36121 (loadbios_mod_SOURCE): New macro.
36122 (loadbios_mod_CFLAGS): Likewise.
36123 (loadbios_mod_LDFLAGS): Likewise.
36124 (fixvideo_mod_SOURCE): Likewise.
36125 (fixvideo_mod_CFLAGS): Likewise.
36126 (fixvideo_mod_LDFLAGS): Likewise.
36127
af63ada2 361282009-04-08 Felix Zielcke <fzielcke@z-51.de>
36129
36130 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
36131
c2cdde70 361322009-04-07 David S. Miller <davem@davemloft.net>
36133
36134 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
36135 support for R_SPARC_OLO10 relocations. Fix compile warning for
36136 R_SPARC_WDISP30 case.
ea3f72cf 36137 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 36138
761319cf 361392009-04-06 Pavel Roskin <proski@gnu.org>
36140
1007d1f5 36141 * include/grub/misc.h (ARRAY_SIZE): New macro.
36142 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
36143 New macro.
36144 * loader/i386/linux.c (allocate_pages): Use free_pages().
36145 (grub_linux_unload): Don't use free_pages().
36146 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
36147 wrong index. Treat all other modes as text modes.
36148 (grub_cmd_linux): Initialize vid_mode unconditionally to
36149 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
36150
761319cf 36151 * commands/help.c (print_command_help): Use cmd->prio, not
36152 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
36153
ea761d40 361542009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 36155
ea761d40 36156 Parttool
36157
36158 * parttool/pcpart.c: new file
36159 * commands/parttool.c: likewise
36160 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
36161 (parttool_mod_SOURCES): new variable
36162 (parttool_mod_CFLAGS): likewise
36163 (parttool_mod_LDFLAGS): likewise
36164 (pcpart_mod_SOURCES): likewise
36165 (pcpart_mod_CFLAGS): likewise
36166 (pcpart_mod_LDFLAGS): likewise
7dd4a573 36167 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 36168 and parttool/pcpart.c
36169 * conf/i386-efi.rmk: likewise
36170 * conf/i386-ieee1275.rmk: likewise
36171 * conf/i386-pc.rmk: likewise
36172 * conf/powerpc-ieee1275.rmk: likewise
36173 * conf/sparc64-ieee1275.rmk: likewise
36174 * conf/x86_64-ieee1275.rmk: likewise
36175
05aaebfb 361762009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36177
36178 Support for mtime and further expandability of dir command
36179
36180 * include/grub/lib/datetime.h: moved to ...
7dd4a573 36181 * include/grub/datetime.h: ... moved here and added
05aaebfb 36182 declaration of grub_unixtime2datetime. All users updated
7dd4a573 36183 * include/grub/fs.h: new syntax for dir and mtime functions in
36184 struct grub_fs
05aaebfb 36185 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
36186 and GRUB_FSHELP_FLAGS_MASK
36187 * commands/ls.c (grub_ls_list_files): Write mtime in long format
36188 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
36189 (grub_ext2_mtime): new function
36190 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
36191 (grub_hfsplus_mtime): new function
36192 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
36193 (GRUB_UFS_ATTR_FILE): likewise
36194 (GRUB_UFS_ATTR_LNK): likewise
36195 (struct grub_ufs_sblock): new fields mtime
36196 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
36197 all users updated
36198 (grub_ufs_dir): mtime support
36199 (grub_ufs_mtime): new function
36200 * fs/affs.c (grub_affs_dir): use new dir syntax
36201 * fs/afs.c (grub_afs_dir): likewise
36202 * fs/cpio.c (grub_cpio_dir): likewise
36203 * fs/fat.c (grub_fat_find_dir): likewise
36204 * fs/hfs.c (grub_hfs_dir): likewise
36205 * fs/iso9660.c (grub_iso9660_dir): likewise
36206 * fs/jfs.c (grub_jfs_dir): likewise
36207 * fs/minix.c (grub_minix_dir): likewise
36208 * fs/ntfs.c (grub_ntfs_dir): likewise
36209 * fs/reiserfs.c (grub_reiserfs_dir): likewise
36210 * fs/sfs.c (grub_sfs_dir): likewise
36211 * fs/xfs.c (grub_xfs_dir): likewise
36212 * util/hostfs.c (grub_hostfs_dir): likewise
36213 * lib/datetime.c: moved to ...
36214 * normal/datetime.c: ... moved here
36215 (grub_unixtime2datetime): new function
36216 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 36217 * normal/completion.c (iterate_dir): use new dir syntax
36218 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 36219 last modification time of a volume
7dd4a573 36220 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 36221 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 36222 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 36223 (normal_mod_SOURCES): likewise
36224 (datetime_mod_SOURCES): Removed lib/datetime.c
36225 * conf/i386-efi.rmk: likewise
7dd4a573 36226 * conf/i386-ieee1275.rmk: likewise
05aaebfb 36227 * conf/i386-pc.rmk: likewise
36228 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 36229 * conf/sparc64-ieee1275.rmk: likewise
36230 * conf/x86_64-efi.rmk: likewise
05aaebfb 36231
8a7e1a14 362322009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36233
36234 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 36235
36236 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 36237 on grub_fat_find_dir
36238 (grub_fat_find_dir): use grub_fat_iterate_dir
36239 (grub_fat_label): likewise
36240
04186a9c 362412009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
36242
7dd4a573 36243 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 36244 and command.h
36245 remove extraneous kernel_elf_HEADERS
36246
da4c0bb6 362472009-04-04 Bean <bean123ch@gnail.com>
36248
36249 * include/grub/util/misc.h: Add dummy function fsync for mingw.
36250
36251 * util/misc.c: Likewise.
36252
54ad9555 362532009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
36254
36255 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
36256 instead of grub_printf.
36257
7a6bf9f2 362582009-04-03 Robert Millan <rmh@aybabtu.com>
36259
36260 * loader/i386/linux.c (grub_linux_setup_video): Fill
36261 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
36262 values from `mode info' structure instead of hardcoded
36263 values.
36264
3fcc2083 362652009-04-01 Pavel Roskin <proski@gnu.org>
36266
36267 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
36268 unused now.
36269 * genmk.rb: Likewise.
36270 * configure.ac: Likewise.
36271
5ec9740b 362722009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
36273
36274 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
36275 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
36276
5270cec8 362772009-04-01 David S. Miller <davem@davemloft.net>
36278
36279 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 36280 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 36281 (grub_setjmp): Mark with 'returns_twice' attribute.
36282 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
36283 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
36284 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
36285
9c3dd854 362862009-04-01 Robert Millan <rmh@aybabtu.com>
36287
36288 Reapply fix from 2008-07-28 which was accidentally reverted; also
36289 perform the same fix to a similar check in same function.
36290
36291 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36292 with the same number are found, just use issue a warning with
36293 grub_dprintf(), as this error has been reported to be non-fatal.
36294
0d818b7e 362952009-03-31 Pavel Roskin <proski@gnu.org>
36296
36297 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
36298 for cross-compilation.
36299
95646d92 363002009-03-30 Robert Millan <rmh@aybabtu.com>
36301
36302 Fix i386-ieee1275 build.
36303
36304 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
36305 Remove declaration.
36306
6a003ed1 363072009-03-30 Pavel Roskin <proski@gnu.org>
36308
36309 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
36310 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
36311 zero-terminated, rely only on the strlen value. Fix comparison
36312 of strings differing in length.
36313
92f33540 363142009-03-30 Robert Millan <rmh@aybabtu.com>
36315
36316 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
36317 checking for abi version. Improve error messages on BIOS to notify
36318 user about `linux16' command.
36319
a8c48fd5 363202009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
36321
f968172e 36322 Leak fixes
a8c48fd5 36323
f968172e 36324 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
36325 in case of collision
36326 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 36327
9c323f09 363282009-03-29 Robert Millan <rmh@aybabtu.com>
36329
36330 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
36331 set `vid_mode' accordingly.
36332 (grub_linux_boot): Process `vid_mode' and set video mode.
36333
ae68f423 363342009-03-29 Robert Millan <rmh@aybabtu.com>
36335
36336 * util/grub.d/10_linux.in (linux_entry): New function.
36337 Factorize generation of Linux boot entries.
36338
5709cfc4 363392009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
36340
36341 Make the format of Environment Block plain text. The boot loader
36342 part is not tested well yet.
7dd4a573 36343
5709cfc4 36344 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
36345 (buffer): Removed.
36346 (envblk): Likewise.
36347 (usage): Remove "info" and "clear". Add "unset". Update the
36348 description of "set", as this does not delete variables any
36349 longer.
36350 (create_envblk_file): Complete rewrite.
36351 (open_envblk_file): Likewise.
36352 (cmd_info): Removed.
36353 (cmd_list): Likewise.
36354 (cmd_set): Likewise.
36355 (cmd_clear): Likewise.
36356 (list_variables): New function.
36357 (write_envblk): Likewise.
36358 (set_variables): Likewise.
36359 (unset_variables): Likewise.
36360 (main): Complete rewrite.
36361
36362 * commands/loadenv.c (buffer): Removed.
36363 (envblk): Likewise.
36364 (open_envblk_file): New function.
36365 (read_envblk_file): Complete rewrite.
36366 (grub_cmd_load_env): Likewise.
36367 (grub_cmd_list_env): Likewise.
36368 (struct blocklist): New struct.
36369 (free_blocklists): New function.
36370 (check_blocklists): Likewise.
36371 (write_blocklists): Likewise.
36372 (grub_cmd_save_env): Complete rewrite.
36373
36374 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
36375 a plain text signature.
36376 (GRUB_ENVBLK_MAXLEN): Removed.
36377 (struct grub_envblk): Complete rewrite.
36378 (grub_envblk_find): Removed.
36379 (grub_envblk_insert): Likewise.
36380 (grub_envblk_open): New prototype.
36381 (grub_envblk_set): Likewise.
36382 (grub_envblk_delete): Put const to VALUE.
36383 (grub_envblk_iterate): Put const to NAME and VALUE.
36384 (grub_envblk_close): New prototype.
36385 (grub_envblk_buffer): New inline function.
36386 (grub_envblk_size): Likewise.
36387
36388 * lib/envblk.c: Include grub/mm.h.
36389 (grub_env_find): Removed.
36390 (grub_envblk_open): New function.
36391 (grub_envblk_close): Likewise.
36392 (escaped_value_len): Likewise.
36393 (find_next_line): Likewise.
36394 (grub_envblk_insert): Removed.
36395 (grub_envblk_set): New function.
36396 (grub_envblk_delete): Complete rewrite.
36397 (grub_envblk_iterate): Likewise.
36398
a9368fd3 363992009-03-28 Robert Millan <rmh@aybabtu.com>
36400
36401 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
36402 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
36403 variables. Use 16-bit loader.
36404 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
36405 loader.
36406 * kern/i386/loader.S (grub_linux_boot): Rename to ...
36407 (grub_linux16_boot): ... this. Update all users.
36408 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
36409 (grub_linux_boot): ... this. Update all users.
36410
36411 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
36412 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
36413 commands to `linux16' and `initrd16'.
36414 (GRUB_MOD_FINI(linux)): Rename to ...
36415 (GRUB_MOD_FINI(linux16)): ... this.
36416
e4dd5a7e 364172009-03-24 Pavel Roskin <proski@gnu.org>
36418
36419 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
36420 not just for compilation.
36421
c04d6e05 364222009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
36423
36424 Move multiboot helper out of kernel
36425
36426 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
36427 `loader/i386/multiboot_helper.S'.
36428 * conf/i386-coreboot.rmk: Likewise
36429 * conf/i386-ieee1275.rmk: Likewise
36430
36431 * kern/i386/loader.S: Move multiboot helpers from here...
36432 * loader/i386/multiboot_helper.S: ...moved here
36433 * include/grub/i386/loader.h: Move declarations of multiboot
36434 helpers from here...
36435 * include/grub/i386/multiboot.h: ...moved here
36436 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
36437
42a5b3fc 364382009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36439
36440 * kern/env.c (grub_env_context_open): Added an argument to specify
36441 whether a new context inherits exported variables from current
36442 one. This is useful when making a sandbox to interpret a config
36443 file.
36444 All callers updated.
36445
36446 * include/grub/env.h (grub_env_context_open): Updated the prototype.
36447
b28bbc4e 364482009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36449
36450 * kern/env.c (grub_env_context_close): Fix memory leaks.
36451
f04f02e4 364522009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36453
36454 * normal/main.c (grub_normal_execute): Added an argument
36455 BATCH to specify if an interactive interface should be provided
36456 after reading a config file.
36457 All callers updated.
36458 (read_command_list): Prevent being executed twice.
36459 (read_fs_list): Likewise.
36460
42a5b3fc 36461 * include/grub/normal.h (grub_normal_execute): Updated the
36462 prototype.
f04f02e4 36463
41473ac2 364642009-03-22 Pavel Roskin <proski@gno.org>
36465
fbc00b0c 36466 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
36467 _start.
36468 * kern/i386/pc/startup.S: Likewise.
36469 * kern/i386/efi/startup.S: Likewise.
36470 * kern/i386/ieee1275/startup.S: Likewise.
36471 * kern/i386/coreboot/startup.S: Likewise.
36472 * kern/x86_64/efi/startup.S: Likewise.
36473
41473ac2 36474 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
36475 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
36476 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
36477
2274cc8f 364782009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
36479
36480 Bugfixes in multiboot for bugs uncovered by solaris kernel.
36481
36482 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
36483 limit detection.
36484 Use vaddr of correct segment for entry_point.
36485
b1b797cb 364862009-03-21 Bean <bean123ch@gmail.com>
36487
36488 * commands/blocklist.c: Add include file <grub/command.h>, remove
36489 <grub/normal.h> and <grub/arg.h>.
36490 (grub_cmd_blocklist): Use the new command interface.
36491 (GRUB_MOD_INIT): Likewise.
36492 (GRUB_MOD_FINI): Likewise.
36493 * commands/boot.c: Likewise.
36494 * commands/cat.c: Likewise.
36495 * commands/cmp.c: Likewise.
36496 * commands/configfile.c: Likewise.
36497 * commands/crc.c: Likewise.
36498 * commands/echo.c: Likewise.
36499 * commands/halt.c: Likewise.
36500 * commands/handler.c: Likewise.
36501 * commands/hdparm.c: Likewise.
36502 * commands/help.c: Likewise.
36503 * commands/hexdump.c: Likewise.
36504 * commands/loadenv.c: Likewise.
36505 * commands/ls.c: Likewise.
36506 * commands/lsmmap.c: Likewise.
36507 * commands/lspci.c: Likewise.
36508 * commands/loadenv.c: Likewise.
36509 * commands/read.c: Likewise.
36510 * commands/reboot.c: Likewise.
36511 * commands/search.c: Likewise.
36512 * commands/sleep.c: Likewise.
36513 * commands/test.c: Likewise.
36514 * commands/usbtest.c: Likewise.
36515 * commands/videotest.c: Likewise.
36516 * commands/i386/cpuid.c: Likewise.
36517 * commands/i386/pc/halt.c: Likewise.
36518 * commands/i386/pc/play.c: Likewise.
36519 * commands/i386/pc/pxecmd.c: Likewise.
36520 * commands/i386/pc/vbeinfo.c: Likewise.
36521 * commands/i386/pc/vbetest.c: Likewise.
36522 * commands/ieee1275/suspend.c: Likewise.
36523 * disk/loopback.c: Likewise.
36524 * font/font_cmd.c: Likewise.
36525 * hello/hello.c: Likewise.
36526 * loader/efi/appleloader.c: Likewise.
36527 * loader/efi/chainloader.c: Likewise.
36528 * loader/i386/bsd.c: Likewise.
36529 * loader/i386/efi/linux.c: Likewise.
36530 * loader/i386/ieee1275/linux.c: Likewise.
36531 * loader/i386/linux.c: Likewise.
36532 * loader/i386/pc/chainloader.c: Likewise.
36533 * loader/i386/pc/linux.c: Likewise.
36534 * loader/powerpc/ieee1275/linux.c: Likewise.
36535 * loader/multiboot_loader.c: Likewise.
36536 * term/gfxterm.c: Likewise.
36537 * term/i386/pc/serial.c: Likewise.
36538 * term/terminfo.c: Likewise.
36539
36540 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
36541 * term/i386/pc/vga.c: Likewise.
36542 * video/readers/jpeg.c: Likewise.
36543 * video/readers/png.c: Likewise.
36544 * video/readers/tga.c: Likewise.
36545
36546 * util/grub-fstest (cmd_loopback): Removed.
36547 (cmd_blocklist): Likewise.
36548 (cmd_ls): Likewise.
36549 (grub_register_command): Likewise.
36550 (grub_unregister_command): Likewise.
36551 (execute_command): Use grub_command_find to locate command and execute
36552 it.
36553
36554 * include/grub/efi/chainloader.h: Removed.
36555 * loader/efi/chainloader_normal.c: Likewise.
36556 * loader/i386/bsd_normal.c: Likewise.
36557 * loader/i386/pc/chainloader_normal.c: Likewise.
36558 * loader/i386/pc/multiboot_normal.c: Likewise.
36559 * loader/linux_normal.c: Likewise.
36560 * loader/multiboot_loader_normal.c: Likewise.
36561 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
36562
36563 * gencmdlist.sh: Scan new registration command grub_register_extcmd
36564 and grub_register_command_p1.
36565
36566 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
36567 kern/command.c, lib/arg.c and commands/extcmd.c.
36568 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
36569 (minicmd_mod_SOURCES): New variable.
36570 (minicmd_mod_CFLAGS): Likewise.
36571 (minicmd_mod_LDFLAGS): Likewise.
36572 (extcmd_mod_SOURCES): Likewise.
36573 (extcmd_mod_CFLAGS): Likewise.
36574 (extcmd_mod_LDFLAGS): Likewise.
36575 (boot_mod_SOURCES): Removed.
36576 (boot_mod_CFLAGS): Likewise.
36577 (boot_mod_LDFLAGS): Likewise.
36578
36579 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
36580 kern/corecmd.c.
36581 (kernel_img_HEADERS): Add command.h.
36582 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
36583 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
36584 and lib/arg.c.
36585 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
36586 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
36587 remove the corresponding normal mode command.
36588 (normal_mod_SOURCES): Remove normal/arg.c.
36589 * conf/i386-coreboot.rmk: Likewise.
36590 * conf/i386-efi.rmk: Likewise.
36591 * conf/i386-ieee1275.rmk: Likewise.
36592 * conf/powerpc-ieee1275.rmk: Likewise.
36593 * conf/x86_64-efi.rmk: Likewise.
36594
36595 * include/grub/arg.h: Move from here ...
36596 * include/grub/lib/arg.h: ... to here.
36597
36598 * normal/arg.c: Move from here ...
36599 * lib/arg.c: ... to here.
36600
36601 * commands/extcmd.c: New file.
36602 * commands/minicmd.c: Likewise.
36603 * include/grub/command.h: Likewise.
36604 * include/grub/extcmd.h: Likewise.
36605 * kern/command.c: Likewise.
36606 * kern/corecmd.c: Likewise.
36607
36608 * kern/list.c (grub_list_iterate): Return int instead of void.
36609 (grub_list_insert): New function.
36610 (grub_prio_list_insert): Likewise.
36611
36612 * kern/rescue.c (grub_rescue_command): Removed.
36613 (grub_rescue_command_list): Likewise.
36614 (grub_rescue_register_command): Likewise.
36615 (grub_rescue_unregister_command): Likewise.
36616 (grub_rescue_cmd_boot): Move to minicmd.c
36617 (grub_rescue_cmd_help): Likewise.
36618 (grub_rescue_cmd_info): Likewise.
36619 (grub_rescue_cmd_boot): Likewise.
36620 (grub_rescue_cmd_testload): Likewise.
36621 (grub_rescue_cmd_dump): Likewise.
36622 (grub_rescue_cmd_rmmod): Likewise.
36623 (grub_rescue_cmd_lsmod): Likewise.
36624 (grub_rescue_cmd_exit): Likewise.
36625 (grub_rescue_print_devices): Moved to corecmd.c.
36626 (grub_rescue_print_files): Likewise.
36627 (grub_rescue_cmd_ls): Likewise.
36628 (grub_rescue_cmd_insmod): Likewise.
36629 (grub_rescue_cmd_set): Likewise.
36630 (grub_rescue_cmd_unset): Likewise.
7d074e3c 36631 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 36632 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 36633 commands, remove grub_rescue_register_command calls.
b1b797cb 36634
7d074e3c 36635 * normal/command.c (grub_register_command): Removed.
b1b797cb 36636 (grub_unregister_command): Likewise.
36637 (grub_command_find): Likewise.
36638 (grub_iterate_commands): Likewise.
36639 (rescue_command): Likewise.
36640 (export_command): Moved to corecmd.c.
36641 (set_command): Removed.
36642 (unset_command): Likewise.
36643 (insmod_command): Likewise.
36644 (rmmod_command): Likewise.
36645 (lsmod_command): Likewise.
36646 (grub_command_init): Likewise.
36647
36648 * normal/completion.c (iterate_command): Use cmd->prio to check for
36649 active command.
36650 (complete_arguments): Use grub_extcmd_t structure to find options.
36651 (grub_normal_do_completion): Change function grub_iterate_commands to
36652 grub_command_iterate.
36653
36654 * normal/execute.c (grub_script_execute_cmd): No need to parse
36655 argument here.
36656
36657 * normal/main.c (grub_dyncmd_dispatcher): New function.
36658 (read_command_list): Register unload commands as dyncmd.
36659 (grub_cmd_normal): Use new command interface, register rescue,
36660 unregister normal at entry, register normal, unregister rescue at exit.
36661
36662 * include/grub/list.h (grub_list_test_t): New type.
36663 (grub_list_iterate): Return int instead of void.
36664 (grub_list_insert): New function.
36665 (GRUB_AS_NAMED_LIST_P): New macro.
36666 (GRUB_AS_PRIO_LIST): Likewise.
36667 (GRUB_AS_PRIO_LIST_P): Likewise.
36668 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
36669 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
36670 (grub_prio_list): New structure.
36671 (grub_prio_list_insert): New function.
36672 (grub_prio_list_remove): New inline function.
36673
36674 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
36675 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
36676 (GRUB_COMMAND_FLAG_MENU): Likewise.
36677 (GRUB_COMMAND_FLAG_BOTH): Likewise.
36678 (GRUB_COMMAND_FLAG_TITLE): Likewise.
36679 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
36680 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
36681 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
36682 (grub_command): Likewise.
36683 (grub_register_command): Likewise.
36684 (grub_command_find): Likewise.
36685 (grub_iterate_commands): Likewise.
36686 (grub_command_init): Likewise.
36687 (grub_arg_parse): Likewise.
36688 (grub_arg_show_help): Likewise.
36689
36690 * include/grub/rescue.h (grub_rescue_register_command): Removed.
36691 (grub_rescue_unregister_command): Likewise.
36692
36693 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
36694 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
36695 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
36696
36697 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
36698 grub_rescue_cmd_initrd.
36699 * include/grub/i386/loader.h: Likewise.
36700 * include/grub/x86_64/loader.h: Likewise.
36701
36702 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
36703
1f4147aa 367042009-03-21 Bean <bean123ch@gmail.com>
36705
36706 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
36707 instead of stat in mingw environment.
36708
36709 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
36710
36711 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
36712
36713 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
36714 AC_CONFIG_LINKS.
36715
2156d5ba 367162009-03-21 Bean <bean123ch@gmail.com>
36717
36718 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
36719 out of range error.
36720
177b82ca 367212009-03-18 Michel Dänzer <michel@daenzer.net>
36722
36723 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
36724 checking inode flags for EXT4_EXTENTS_FLAG.
36725
14aad807 367262009-03-18 Robert Millan <rmh@aybabtu.com>
36727
36728 * loader/i386/linux.c: Include `<grub/video.h>' and
36729 `<grub/i386/pc/vbe.h>'..
36730 (grub_linux_setup_video): New function. Loosely based on the EFI one.
36731 (grub_linux32_boot): Attempt to configure video settings with
36732 grub_linux_setup_video().
36733 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
36734 to avoid grub_console_fini() which would step out of graphical mode
36735 unconditionally.
36736
8cf83a27 367372009-03-14 Robert Millan <rmh@aybabtu.com>
36738
36739 Fix build on powerpc.
36740 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
36741
40164e75 367422009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
36743
36744 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
36745 background image command.
36746
c58bc32a 367472009-03-12 Colin D Bennett <colin@gibibit.com>
36748
36749 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
36750 (grub_gfxterm_putchar): Extract pairs of identical calls to
36751 draw_cursor out of conditional blocks.
36752
5415144a 367532009-03-11 Pavel Roskin <proski@gnu.org>
36754
36755 * fs/hfs.c (grub_hfs_strncasecmp): New function.
36756 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
36757
6394042e 367582009-03-11 Robert Millan <rmh@aybabtu.com>
36759
36760 * loader/i386/multiboot_elfxx.c
36761 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
36762
b7b50e5f 367632009-03-11 Felix Zielcke <fzielcke@z-51.de>
36764
36765 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
36766 `kern/handler.c'.
36767
1ca7fc96 367682009-03-11 Robert Millan <rmh@aybabtu.com>
36769
36770 * loader/i386/multiboot.c (code_size): New variable.
36771 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 36772 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 36773 4-byte alignment to MBI and others by increasing
7d074e3c 36774 `boot_loader_name_length' appropriately.
1ca7fc96 36775
36776 * loader/i386/multiboot_elfxx.c
36777 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
36778
a83ea1d2 367792009-03-09 Felix Zielcke <fzielcke@z-51.de>
36780
36781 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
36782 `fs/ext2.c'.
36783
aa9f3bff 367842009-03-08 Robert Millan <rmh@aybabtu.com>
36785
36786 Make loader/i386/linux.c usable on i386-pc again.
36787
36788 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
36789 memory to heap.
36790 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
36791 `#error' stanza.
36792
d8b3b60e 367932009-03-07 Bean <bean123ch@gmail.com>
36794
36795 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
36796 allocation.
36797
b362c9e9 367982009-03-06 Robert Millan <rmh@aybabtu.com>
36799
36800 Fix display issue on terminals with screen size other than 80x25
36801 (e.g. gfxterm with resolution higher than 640x480).
36802
36803 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 36804 position relative to the center of the terminal instead of relying
b362c9e9 36805 on a hardcoded offset.
36806
9304eef1 368072009-03-04 Robert Millan <rmh@aybabtu.com>
36808
36809 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
36810 installed.
36811
36812 * Makefile.in (host_kernel): New variable.
36813 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
36814 scripts instead of just the windows one.
36815 * configure.ac: Initialize and AC_SUBST `host_kernel'.
36816
eabc95fb 368172009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 36818
36819 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
36820 `kern/handler.c'.
36821 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36822 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36823 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36825 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36826 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36827
ceb1223c 368282009-03-04 Felix Zielcke <fzielcke@z-51.de>
36829
36830 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
36831 or if there's no space for the disk label and print the partition number on a
36832 invalid magic.
36833
4910684a 368342009-03-04 Felix Zielcke <fzielcke@z-51.de>
36835
36836 * util/misc.c: Include <time.h>.
36837 (grub_millisleep): New function.
36838
7e9ca17a 368392009-03-04 Bean <bean123ch@gmail.com>
36840
36841 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
36842 another option -mno-red-zone.
36843
36844 * commands/handler.c: Change module description.
36845
36846 * kern/handler.c: Add missing space at the end of description line.
36847
36848 * kern/list.c: Likewise.
36849
f501677c 368502009-03-03 Robert Millan <rmh@aybabtu.com>
36851
36852 Move more components to the relocation area, and fix mbi pointer
36853 handling to use the destination rather than the origin (thanks to
36854 Vladimir Serbinenko for spotting).
36855
36856 * loader/i386/multiboot.c (mbi_dest): New variable.
36857 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
36858 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
36859 relocation area.
36860
9902d047 368612009-03-01 Bean <bean123ch@gmail.com>
36862
50fb7002 36863 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 36864 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
36865 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
36866 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
36867
36868 * loader/i386/efi/linux.c (acpi_guid): New variable.
36869 (acpi_guid): Likewise.
36870 (EBDA_SEG_ADDR): New constant.
36871 (LOW_MEM_ADDR): Likewise.
36872 (FAKE_EBDA_SEG): Likewise.
36873 (fake_bios_data): New function.
36874 (grub_linux_boot): Call fake_bios_data.
36875
71b9f361 368762009-03-01 Bean <bean123ch@gmail.com>
36877
36878 * commands/terminal.c: Removed.
36879
36880 * commands/handler.c: New file.
36881
36882 * include/grub/list.h: Likewise.
36883
36884 * include/grub/handler.h: Likewise.
36885
36886 * kern/list.c: Likewise.
36887
36888 * kern/handler.c: Likewise.
36889
36890 * kern/term.h: Include header file <grub/handler.h>.
36891 (grub_term_input): Move next field to the beginning.
36892 (grub_term_output): Likewise.
36893 (grub_term_input_class): New variable.
36894 (grub_term_output_class): Likewise.
36895 (grub_term_register_input): Changed to inline function.
36896 (grub_term_register_output): Likewise.
36897 (grub_term_unregister_input): Likewise.
36898 (grub_term_unregister_output): Likewise.
36899 (grub_term_set_current_input): Likewise.
36900 (grub_term_set_current_output): Likewise.
36901 (grub_term_get_current_input): Likewise.
36902 (grub_term_get_current_output): Likewise.
36903 (grub_term_iterate_input): Removed.
36904 (grub_term_iterate_output): Likewise.
36905
36906 * kern/term.c (grub_term_list_input): Removed.
36907 (grub_term_list_output): Likewise.
36908 (grub_term_input_class): New variable.
36909 (grub_term_output_class): Likewise.
50fb7002 36910 (grub_cur_term_input): Change variable as macro.
71b9f361 36911 (grub_cur_term_output): Likewise.
36912 (grub_term_register_input): Removed.
36913 (grub_term_register_output): Likewise.
36914 (grub_term_unregister_input): Likewise.
36915 (grub_term_unregister_output): Likewise.
36916 (grub_term_set_current_input): Likewise.
36917 (grub_term_set_current_output): Likewise.
36918 (grub_term_iterate_input): Likewise.
36919 (grub_term_iterate_output): Likewise.
36920 (grub_term_get_current_input): Likewise.
36921 (grub_term_get_current_output): Likewise.
36922
36923 * util/grub-editenv.c: Include header file <grub/handler.h>.
36924 (grub_term_get_current_input): Removed.
36925 (grub_term_get_current_output): Likewise.
36926 (grub_term_input_class): New variable.
50fb7002 36927 (grub_term_output_class): Likewise.
71b9f361 36928
36929 * util/grub-fstest.c (grub_term_get_current_input): Removed.
36930 (grub_term_get_current_output): Likewise.
36931 (grub_term_input_class): New variable.
50fb7002 36932 (grub_term_output_class): Likewise.
71b9f361 36933
36934 * util/grub-probe.c (grub_term_get_current_input): Removed.
36935 (grub_term_get_current_output): Likewise.
36936 (grub_term_input_class): New variable.
50fb7002 36937 (grub_term_output_class): Likewise.
71b9f361 36938
36939 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
36940 (grub_term_get_current_output): Likewise.
36941 (grub_term_input_class): New variable.
50fb7002 36942 (grub_term_output_class): Likewise.
71b9f361 36943
36944 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
36945 (terminal_mod_SOURCES): Likewise.
36946 (terminal_mod_CFLAGS): Likewise.
36947 (terminal_mod_LDFLAGS): Likewise.
36948
36949 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
36950 handler.c.
36951 (kernel_img_SOURCES): Add list.c and handler.c.
36952 (kernel_img_HEADERS): Add list.h and handler.h.
36953
36954 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
36955 handler.c.
36956 (kernel_mod_SOURCES): Add list.c and handler.c.
36957 (kernel_mod_HEADERS): Add list.h and handler.h.
36958
36959 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
36960 handler.c.
36961 (kernel_elf_SOURCES): Add list.c and handler.c.
36962 (kernel_elf_HEADERS): Add list.h and handler.h.
36963
36964 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
36965 handler.c.
36966 (kernel_elf_SOURCES): Add list.c and handler.c.
36967 (kernel_elf_HEADERS): Add list.h and handler.h.
36968
36969 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
36970 handler.c.
36971 (kernel_mod_SOURCES): Add list.c and handler.c.
36972 (kernel_mod_HEADERS): Add list.h and handler.h.
36973
36974 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
36975 handler.c.
36976 (kernel_elf_SOURCES): Add list.c and handler.c.
36977 (kernel_elf_HEADERS): Add list.h and handler.h.
36978
8a31787f 369792009-02-27 Robert Millan <rmh@aybabtu.com>
36980
36981 Factorize elf32 / elf64 code in Multiboot loader. This will
36982 prevent it from getting out of sync again.
36983
36984 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
36985 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
36986 grub_multiboot_load_elf64): Move from here ...
36987 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
36988 grub_multiboot_load_elf): ... to here (new file).
36989
51cd3dfc 369902009-02-27 Robert Millan <rmh@aybabtu.com>
36991
36992 * util/grub.d/10_linux.in: Rename "single-user mode" to
36993 "recovery mode".
36994
6e8c9c3a 369952009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
36996
36997 Don't leak in SCSI code.
36998 * disk/scsi.c (grub_scsi_close): free `scsi'.
36999
4b6bf4f9 370002009-02-27 Robert Millan <rmh@aybabtu.com>
37001
37002 * loader/i386/pc/multiboot.c: Move from here ...
37003 * loader/i386/multiboot.c: ... to here. Update all users.
37004
b9413424 370052009-02-27 Robert Millan <rmh@aybabtu.com>
37006
37007 Patch from Alexandre Bique <bique.alexandre@gmail.com>
37008 * util/i386/pc/grub-setup.c (setup): Fix directory path.
37009
50fb7002 370102009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 37011
37012 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
37013 b-tree.
37014
8cc50345 370152009-02-27 Robert Millan <rmh@aybabtu.com>
37016
37017 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
37018 `0x' qualifier as 0 when base is specified as parameter).
37019
6e09b8b7 370202009-02-24 Bean <bean123ch@gmail.com>
37021
37022 * configure.ac: Check for -mcmodel=large in x86_64 target.
37023
37024 * include/grub/efi/api.h (efi_call_10): New macro.
37025 (efi_wrap_10): New function.
37026
37027 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
37028 (GRUB_PE32_REL_BASED_HIGH): Likewise.
37029 (GRUB_PE32_REL_BASED_LOW): Likewise.
37030 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
37031 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
37032 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
37033 (GRUB_PE32_REL_BASED_SECTION): Likewise.
37034 (GRUB_PE32_REL_BASED_REL): Likewise.
37035 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
37036 (GRUB_PE32_REL_BASED_DIR64): Likewise.
37037 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
37038
37039 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
37040 issue.
37041
37042 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
37043 (efi_wrap_10): New function.
37044
37045 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
37046
37047 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
37048 MB/MBP model (NV chipset).
37049 (devdata_devs): Add devpath_5 to the list.
37050
37051 * load/i386/efi/linux.c (video_base): Remove variable.
37052 (RGB_MASK): New macro.
37053 (RGB_MAGIC): Likewise.
37054 (LINE_MIN): Likewise.
37055 (LINE_MAX): Likewise.
37056 (FBTEST_STEP): Likewise.
37057 (FBTEST_COUNT): Likewise.
37058 (fb_list): New variable.
37059 (grub_find_video_card): Remove function.
37060 (find_framebuf): New function.
37061 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
37062 line length.
37063
37064 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
37065 problem for x86_64.
37066
74b21bee 370672009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
37068
37069 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
37070
37071 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
37072 coding tool name.
37073
a455f472 370742009-02-22 Robert Millan <rmh@aybabtu.com>
37075
37076 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
37077 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
37078 in our relocation, instead of using it directly from heap. Also
37079 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
37080
6374daf3 370812009-02-21 Robert Millan <rmh@aybabtu.com>
37082
37083 Implement USB keyboard support (based on patch by Marco Gerards)
37084
37085 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
37086 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
37087 (usb_keyboard_mod_LDFLAGS): New variables.
37088
37089 * term/usb_keyboard.c: New file.
37090
8fa4ea70 370912009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
37092
37093 Corrected wrong declaration
37094
37095 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
37096
353976ac 370972009-02-14 Christian Franke <franke@computer.org>
37098
37099 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
37100 (grub_lspci_iter): Print class code and programming interface byte.
37101
6aa1169b 371022009-02-14 Christian Franke <franke@computer.org>
37103
37104 * gendistlist.sh: Ignore `.svn' directories.
37105
265372ca 371062009-02-14 Felix Zielcke <fzielcke@z-51.de>
37107
37108 * fs/fat.c: Add 2009 to Copyright line.
37109
9ff516f3 371102009-02-14 Christian Franke <franke@computer.org>
37111
37112 * commands/hdparm.c: New file. Provides `hdparm' command
37113 which sends ATA commands via grub_disk_ata_pass_through ().
37114
37115 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
37116
37117 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
37118 and <grub/cpu/io.h> to include/grub/ata.h.
37119 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
37120 (GRUB_CDROM_SECTOR_SIZE): Remove.
37121 (GRUB_ATA_*): Move to include/grub/ata.h.
37122 (GRUB_ATAPI_*): Likewise.
37123 (enum grub_ata_commands): Likewise.
37124 (enum grub_ata_timeout_milliseconds): Likewise.
37125 (struct grub_ata_device): Likewise.
37126 (grub_ata_regset): Likewise.
37127 (grub_ata_regget): Likewise.
37128 (grub_ata_regset2): Likewise.
37129 (grub_ata_regget2): Likewise.
37130 (grub_ata_check_ready): Likewise.
37131 (grub_ata_wait_not_busy): Remove static, exported in
37132 include/grub/ata.h.
37133 (grub_ata_wait_drq): Likewise.
37134 (grub_ata_pio_read): Likewise.
37135
37136 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
37137 function for hdparm.mod.
37138
37139 * include/grub/ata.h: New file, contains declarations from
37140 disk/ata.c.
37141 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
37142
37143 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
37144 (grub_disk_ata_pass_through): New exported variable.
37145
37146 * kern/disk.c (grub_disk_ata_pass_through): New variable.
37147
772e23da 371482009-02-13 Colin D Bennett <colin@gibibit.com>
37149
37150 Support multiple fallback entries, and provide an API to support
37151 executing default+fallback menu entries. Renamed the `terminal' menu
37152 viewer to `text'.
37153
37154 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
37155 variable declaration.
37156 (grub_menu_execute_callback): New structure declaration.
37157 (grub_menu_execute_callback_t): New typedef.
37158 (grub_menu_execute_with_fallback): New function declaration.
37159 (grub_menu_get_entry): Likewise.
37160 (grub_menu_get_timeout): Likewise.
37161 (grub_menu_set_timeout): Likewise.
37162
37163 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
37164
37165 * normal/menu.c (grub_wait_after_message): Moved to
37166 `normal/menu_text.c'.
37167 (draw_border): Likewise.
37168 (print_message): Likewise.
37169 (print_entry): Likewise.
37170 (print_entries): Likewise.
37171 (grub_menu_init_page): Likewise.
37172 (get_entry_number): Likewise.
37173 (print_timeout): Likewise.
37174 (run_menu): Likewise.
37175 (grub_menu_execute_entry): Likewise.
37176 (show_text_menu): Likewise.
37177 (get_and_remove_first_entry_number): New function.
37178 (grub_menu_execute_with_fallback): Likewise.
37179 (get_entry): Renamed to ...
37180 (grub_menu_get_entry): .. this and made it global.
37181 (get_timeout): Renamed to ...
37182 (grub_menu_get_timeout): ... this and made it global.
37183 (set_timeout): Renamed to ...
37184 (grub_menu_set_timeout): ... this and made it global.
37185 (grub_normal_terminal_menu_viewer): Renamed to ...
37186 (grub_normal_text_menu_viewer): ... this.
37187
37188 * normal/menu_text.c: New file. Extracted text-menu-specific code
37189 from normal/menu.c.
37190
37191 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
37192 (normal_mod_SOURCES): Likewise.
37193
37194 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37195 (normal_mod_SOURCES): Likewise.
37196
37197 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37198 (normal_mod_SOURCES): Likewise.
37199
37200 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
37201 (normal_mod_SOURCES): Likewise.
37202
37203 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37204 (normal_mod_SOURCES): Likewise.
37205
37206 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37207 (normal_mod_SOURCES): Likewise.
37208
37209 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37210 (normal_mod_SOURCES): Likewise.
37211
16ac430e 372122009-02-11 Robert Millan <rmh@aybabtu.com>
37213
37214 * util/grub.d/00_header.in: Update old reference to `font' command.
37215
06ff20fc 372162009-02-10 Felix Zielcke <fzielcke@z-51.de>
37217
37218 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
37219
37220 Based on patch from Javier Martín.
37221
96da9407 372222009-02-09 Felix Zielcke <fzielcke@z-51.de>
37223
37224 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 37225 to avoid false positives with FAT.
96da9407 37226 (grub_fstest_SOURCES): Likewise.
37227 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37228 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37230 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37231 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37232 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37233
6dca6fe4 372342009-02-09 Felix Zielcke <fzielcke@z-51.de>
37235
06ff20fc 37236 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 37237 bpb.version_specific.fat12_or_fat16.fstype and
37238 bpb.version_specific.fat32.fstype.
37239
2550c62f 372402009-02-08 Robert Millan <rmh@aybabtu.com>
37241
be110b30 37242 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 37243
56978920 372442009-02-08 Robert Millan <rmh@aybabtu.com>
37245
37246 * Makefile.in (host_os, host_cpu): New variables.
37247 (target_os): Remove. Update all users.
37248
d64399b5 372492009-02-08 Marco Gerards <marco@gnu.org>
37250
37251 * Makefile.in (enable_grub_emu_usb): New variable.
37252 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
37253 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
37254 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
37255 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
37256 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
37257 `usbtest.mod' and `usbms.mod'.
37258 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
37259 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
37260 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
37261 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
37262 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
37263 variables.
37264
37265 * disk/usbms.c: New file.
37266
37267 * include/grub/usb.h: Likewise.
37268
37269 * include/grub/usbtrans.h: Likewise.
37270
37271 * include/grub/usbdesc.h: Likewise.
37272
37273 * bus/usb/usbtrans.c: Likewise.
37274
37275 * bus/usb/ohci.c: Likewise.
37276
37277 * bus/usb/uhci.c: Likewise.
37278
37279 * bus/usb/usbhub.c: Likewise.
37280
37281 * bus/usb/usb.c: Likewise.
37282
37283 * commands/usbtest.c: Likewise.
37284
37285 * util/usb.c: Likewise.
50fb7002 37286
d64399b5 37287 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
37288
37289 * configure.ac: Test for libusb presence.
50fb7002 37290
d64399b5 37291 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
37292
2b40d6bb 372932009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
37294
37295 * kern/mm.c: Add more comments.
37296
73a4ce81 372972009-02-08 Robert Millan <rmh@aybabtu.com>
37298
37299 Patch from Javier Martín.
37300 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
37301 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
37302
f821ce59 373032009-02-08 Robert Millan <rmh@aybabtu.com>
37304
37305 * fs/cpio.c: Split tar functionality to ...
37306 * fs/tar.c: ... here (new file). Update all users.
37307
aebfc4b0 373082009-02-07 Robert Millan <rmh@aybabtu.com>
37309
37310 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
37311 backward-incompatible features.
37312
37313 Based on patch from Javier Martín, with some adjustments.
37314
50fb7002 373152009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 37316
37317 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
37318
0bb5115e 373192009-02-07 Robert Millan <rmh@aybabtu.com>
37320
37321 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
37322 position of `disk/lvm.c' to ensure grub_init_all() always picks it
37323 after the RAID stuff.
37324
38a0f8e7 373252009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
37326
50fb7002 37327 Fixes problem when running vbetest command as reported by
38a0f8e7 37328 Vladimir Serbinenko <phcoder@gmail.com>.
37329
37330 * (grub_vbe_set_video_mode): Fixed problem with text modes.
37331
3143cc1c 373322009-02-04 Felix Zielcke <fzielcke@z-51.de>
37333
37334 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
37335 /dev/md/NpN style mdraid devices.
37336
9cba6fce 373372009-02-03 Felix Zielcke <fzielcke@z-51.de>
37338
37339 * util/unifont2pff.rb: Remove.
37340
e507a2c1 373412009-02-03 Felix Zielcke <fzielcke@z-51.de>
37342
37343 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
37344 `#'.
37345
d2c2b4cd 373462009-02-03 Felix Zielcke <fzielcke@z-51.de>
37347
37348 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
37349 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37350 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37351 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37352 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37353 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37354 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37355
b4315fb0 373562009-02-02 Christian Franke <franke@computer.org>
37357
37358 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
37359
de3aa260 373602009-02-01 Felix Zielcke <fzielcke@z-51.de>
37361
7c3ff286 37362 * INSTALL: Note that we now require at least autoconf 2.59 and
37363 that LZO is optional.
de3aa260 37364
825a182b 373652009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37366
37367 Base on patch on bug #24154 created by Tomas Tintera
37368 <trosos@seznam.cz>.
37369
37370 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
37371
a69ef770 373722009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37373
7c3ff286 37374 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 37375 <bero@arklinux.org>.
37376
37377 * normal/parser.y (script_init): Add missing semicolon.
37378
6fa42fa6 373792009-01-31 Colin D Bennett <colin@gibibit.com>
37380
7c3ff286 37381 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 37382 (free_menu_entry_classes): Added.
37383 (grub_normal_menu_addentry): Added class property handling.
37384 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
37385 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
37386
37387 * normal/menu_viewer.c: New file.
37388
37389 * normal/menu.c (run_menu_entry): Renamed to ...
37390 (grub_menu_execute_entry): ... this and made it as global.
37391 (grub_menu_run): Renamed to ...
37392 (show_text_menu): ... this and made it local.
37393 (show_text_menu): Adapt to new function names.
37394 (grub_normal_terminal_menu_viewer): New global variable.
37395
37396 * include/grub/menu.h: New file.
37397
37398 * include/grub/menu_viewer.h: New file.
37399
37400 * include/grub/normal.h: Added include to grub/menu.h.
37401 (grub_menu_entry): Moved to include/grub/menu.h.
37402 (grub_menu_entry_t): Likewise.
37403 (grub_menu): Likewise.
37404 (grub_menu_t): Likewise.
37405 (grub_normal_terminal_menu_viewer): Added.
37406 (grub_menu_execute_entry): Likewise.
37407 (grub_menu_run): Removed.
37408
37409 * DISTLIST: Added include/grub/menu.h.
37410 Added include/grub/menu_viewer.h.
37411 Added normal/menu_viewer.c.
37412
374132009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
37414
37415 * normal/execute.c (grub_script_execute_menuentry): Changed to use
37416 arglist for menutitle arguments.
37417
37418 * normal/main.c (grub_normal_menu_addentry): Likewise.
37419
37420 * normal/parser.y (menuentry): Likewise.
37421
37422 * normal/script.c (grub_script_create_cmdmenu): Likewise.
37423
37424 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
37425 (grub_script_create_cmdmenu): Likewise.
37426
37427 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
37428
37429 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
37430 changes.
37431
37432 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
37433
37434 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
37435
37436 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
37437
37438 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37439
37440 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37441
37442 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37443
56192c23 374442009-01-30 Christian Franke <franke@computer.org>
37445
37446 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
37447 in option help text.
37448
d72521b3 374492009-01-27 Pavel Roskin <proski@gnu.org>
37450
37451 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
37452
994b5e84 374532009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37454
37455 * commands/lsmmap.c: Add include to grub/machine/memory.h.
37456
37457 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
37458
37459 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
37460 unregister function.
37461
6a7eab2c 374622009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37463
37464 * disk/scsi.c (grub_scsi_read): Fix sign problem.
37465
37466 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
37467
37468 * util/grub-mkfont.c (usage): Fix typo.
37469
37470 * util/elf/grub-mkimage.c (load_modules): Fix warning.
37471
1806b56e 374722009-01-26 Daniel Mierswa <impulze@impulze.org>
37473
3fb18f09 37474 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
37475
336e1fb9 37476 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
37477
1806b56e 37478 * kern/misc.c (grub_strcasecmp): New function.
37479 (grub_strcasecmp): Use grub_size_t instead of int for length.
37480 Fix return value.
37481 * include/grub/misc.h: Update function prototypes.
37482
580b2a0f 374832009-01-26 Robert Millan <rmh@aybabtu.com>
37484
37485 * configure.ac: Fix cross-compilation check.
ef257b36 37486
d31c24f1 374872009-01-22 Christian Franke <franke@computer.org>
37488
37489 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
37490 (precision) digit string. Allow `.format2' without `format1' (width).
37491 Limit input chars for `%s' output to `format2' if specified. This is
37492 compatible with standard printf ().
37493
3138b44c 374942009-01-22 Christian Franke <franke@computer.org>
37495
37496 * disk/ata.c (grub_ata_wait_status): Replace by ...
37497 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
37498 other status bits may be invalid while BSY is asserted.
37499 (grub_ata_check_ready): New function.
37500 (grub_ata_cmd): Removed.
37501 (grub_ata_wait_drq): New function.
37502 (grub_ata_strncpy): Remove inline.
37503 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
37504 and error check now done by grub_ata_wait_drq ().
37505 (grub_ata_pio_write): Likewise.
37506 (grub_atapi_identify): Set DEV before check for !BSY. Use
37507 grub_ata_wait_drq () to wait for data.
37508 (grub_ata_device_initialize): Add status register check to
37509 detect missing SATA slave devices. Add debug messages.
37510 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
37511 (grub_atapi_packet): Set DEV before check for !BSY. Replace
37512 transfer loop by grub_ata_pio_write ().
37513 (grub_ata_identify): Set DEV before check for !BSY. Use
37514 grub_ata_wait_drq () to wait for data.
ef257b36 37515 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 37516 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
37517 read/write in one loop. Fix invalid command on write. Fix incomplete
37518 command on (size % batch) == 0. Add missing error check after write of
37519 last block. Add debug messages.
37520 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
37521
59a64ef6 375222009-01-19 Christian Franke <franke@computer.org>
37523
37524 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
37525 (GRUB_ATAPI_IREASON_*): Likewise.
37526 (grub_ata_pio_write): Fix timeout error return.
37527 (grub_atapi_identify): Add grub_ata_wait () after cmd.
37528 (grub_atapi_wait_drq): New function.
37529 (grub_atapi_packet): New parameter `size'.
37530 Use grub_atapi_wait_drq () and direct write instead of
37531 grub_ata_pio_write ().
37532 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
37533 reads the number of bytes requested by the device for each DRQ
37534 assertion.
37535 (grub_atapi_write): Remove old implementation, return not
37536 implemented instead.
37537
1cfe20b3 375382009-01-19 Christian Franke <franke@computer.org>
37539
37540 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
37541 of 512 to calculate data size.
37542 (grub_scsi_read12): Likewise.
37543 (grub_scsi_write10): Likewise.
37544 (grub_scsi_write12): Likewise.
37545 (grub_scsi_read): Adjust size according to blocksize.
37546 Add checks for invalid blocksize and unaligned transfer.
37547
bee5fe5d 375482009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
37549
37550 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
37551
ef257b36 37552 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 37553 width glyphs.
37554
3e643f8c 375552009-01-19 Robert Millan <rmh@aybabtu.com>
37556
37557 * config.guess: Update to latest version from config git.
37558 * config.sub: Likewise.
37559
4fa80998 375602009-01-17 Felix Zielcke <fzielcke@z-51.de>
37561
37562 * Makefile.in: Change font compilation to use new grub-mkfont instead
37563 of java version.
37564
37565 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
37566 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
37567 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37568 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37569 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
37570 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
37571 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
37572 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
37573 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
37574
7086085b 375752009-01-16 Christian Franke <franke@computer.org>
37576
37577 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
37578 (enum grub_ata_timeout_milliseconds): New enum.
37579 (grub_ata_wait_status): Add parameter milliseconds.
37580 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
37581 recovery from timed-out commands.
37582 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
37583 return grub_errno instead of REG_ERROR.
37584 (grub_ata_pio_write): Add parameter milliseconds.
37585 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
37586 Pass milliseconds to grub_ata_wait_status () and
37587 grub_ata_pio_read ().
37588 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
37589 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
37590 grub_ata_wait_status (). Fix IDENTIFY timeout check.
37591 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
37592 It is not suitable for device detection, because DEV bit is ignored,
37593 the command may run too long, and not all devices set the signature
37594 properly.
37595 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
37596 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
37597 Fix device selection, DEV bit must be set first to address the registers
37598 of the correct device.
37599 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
37600 grub_ata_pio_read/write ().
37601 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
37602 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
37603
4a412913 376042009-01-13 Carles Pina i Estany <carles@pina.cat>
37605
37606 * util/grub-editenv.c (main): Use fseeko(), not fseek().
37607
7795c55e 376082009-01-13 Bean <bean123ch@gmail.com>
d913988c 37609
37610 * util/grub-mkfont.c (write_font): forget to remove some debug code.
37611
7795c55e 376122009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 37613
37614 * Makefile.in: (enable_grub_mkfont): New variable.
37615 (freetype_cflags): Likewise.
37616 (freetype_libs): Likewise.
37617
37618 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
37619 (grub_mkfont_SOURCES): New variable.
37620 (grub_mkfont_CFLAGS): Likewise.
37621 (grub_mkfont_LDFLAGS): Likewise.
37622
37623 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
37624 library if `--enable-grub-mkfont' is requested.
37625 (enable_grub_mkfont): New variable.
37626 (freetype_cflags): Likewise.
37627 (freetype_libs): Likewise.
37628
37629 * util/grub-mkfont.c: New file.
37630
093af1fe 376312009-01-12 Christian Franke <franke@computer.org>
37632
37633 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
37634 mode check. Fix setting of compat_use[].
37635
f36cc108 376362009-01-10 Robert Millan <rmh@aybabtu.com>
37637
37638 Update a few copyright years which we forgot to do in 2008 (only for
37639 files whose changes made in 2008 were copyright-significant)
37640
37641 * Makefile.in: Add 2008 to Copyright line.
37642 * disk/ieee1275/ofdisk.c: Likewise.
37643 * disk/efi/efidisk.c: Likewise.
37644 * kern/dl.c: Likewise.
37645 * kern/sparc64/ieee1275/init.c: Likewise.
37646 * kern/mm.c: Likewise.
37647 * kern/efi/mm.c: Likewise.
37648 * boot/i386/pc/boot.S: Likewise.
37649 * genfslist.sh: Likewise.
37650 * fs/iso9660.c: Likewise.
37651 * fs/hfs.c: Likewise.
37652 * fs/jfs.c: Likewise.
37653 * fs/minix.c: Likewise.
37654 * fs/ufs.c: Likewise.
37655 * gensymlist.sh.in: Likewise.
37656 * genkernsyms.sh.in: Likewise.
37657 * include/grub/misc.h: Likewise.
37658 * include/grub/types.h: Likewise.
37659 * include/grub/symbol.h: Likewise.
37660 * include/grub/elf.h: Likewise.
37661 * include/grub/kernel.h: Likewise.
37662 * include/grub/disk.h: Likewise.
37663 * include/grub/dl.h: Likewise.
37664 * include/grub/i386/linux.h: Likewise.
37665 * include/grub/i386/pc/biosdisk.h: Likewise.
37666 * include/grub/efi/api.h: Likewise.
37667 * include/grub/efi/pe32.h: Likewise.
37668 * include/grub/util/misc.h: Likewise.
37669 * normal/execute.c: Likewise.
37670 * normal/arg.c: Likewise.
37671 * normal/completion.c: Likewise.
37672 * normal/lexer.c: Likewise.
37673 * normal/parser.y: Likewise.
37674 * normal/misc.c: Likewise.
37675 * commands/i386/pc/vbeinfo.c: Likewise.
37676 * commands/hexdump.c: Likewise.
37677 * commands/terminal.c: Likewise.
37678 * commands/ls.c: Likewise.
37679 * commands/help.c: Likewise.
37680 * partmap/pc.c: Likewise.
37681 * loader/efi/chainloader.c: Likewise.
37682 * loader/multiboot_loader.c: Likewise.
37683 * loader/i386/pc/multiboot2.c: Likewise.
37684 * term/efi/console.c: Likewise.
37685 * term/i386/pc/serial.c: Likewise.
37686 * util/lvm.c: Likewise.
37687 * util/console.c: Likewise.
37688 * util/i386/efi/grub-mkimage.c: Likewise.
37689 * util/raid.c: Likewise.
37690
7f02114b 376912009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
37692
37693 * commands/videotest.c: Removed include to grub/machine/memory.h.
37694
37695 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
37696 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
37697 (video_mod_SOURCES): Removed.
37698 (video_mod_CFLAGS): Likewise.
37699 (video_mod_LDFLAGS): Likewise.
37700 (gfxterm_mod_SOURCES): Likewise.
37701 (gfxterm_mod_CFLAGS): Likewise.
37702 (gfxterm_mod_LDFLAGS): Likewise.
37703 (videotest_mod_SOURCES): Likewise.
37704 (videotest_mod_CFLAGS): Likewise.
37705 (videotest_mod_LDFLAGS): Likewise.
37706 (bitmap_mod_SOURCES): Likewise.
37707 (bitmap_mod_CFLAGS): Likewise.
37708 (bitmap_mod_LDFLAGS): Likewise.
37709 (tga_mod_SOURCES): Likewise.
37710 (tga_mod_CFLAGS): Likewise.
37711 (tga_mod_LDFLAGS): Likewise.
37712 (jpeg_mod_SOURCES): Likewise.
37713 (jpeg_mod_CFLAGS): Likewise.
37714 (jpeg_mod_LDFLAGS): Likewise.
37715 (png_mod_SOURCES): Likewise.
37716 (png_mod_CFLAGS): Likewise.
37717 (png_mod_LDFLAGS): Likewise.
37718
37719 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
37720 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
37721 (video_mod_SOURCES): Added.
37722 (video_mod_CFLAGS): Likewise.
37723 (video_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 (gfxterm_mod_SOURCES): Likewise.
37740 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 37741 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 37742
37743 * term/gfxterm.c: Removed include to grub/machine/memory.h,
37744 grub/machine/console.h.
37745
644fff97 377462009-01-04 Jerone Young <jerone@gmail.com>
37747
37748 Make on screen instructions clearer
37749
37750 Based on patch created by Jidanni <jidanni@jidanni.org>
37751
37752 * normal/menu.c: print clearer instructions on the screen
37753
1e901a75 377542009-01-02 Colin D Bennett <colin@gibibit.com>
37755
37756 New font engine.
34c44600 37757
1e901a75 37758 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
37759 build system and fixed gfxterm.c to work with different sized fonts.
37760
37761 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 37762
1e901a75 37763 * configure: Re-generated.
34c44600 37764
1e901a75 37765 * DISTLIST: Removed font/manager.c.
37766 Added font/font.c.
37767 Added font/font_cmd.c.
34c44600 37768
1e901a75 37769 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
37770 compilation.
34c44600 37771
1e901a75 37772 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 37773
37774 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 37775
37776 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 37777
1e901a75 37778 * normal/menu.c: Likewise.
34c44600 37779
1e901a75 37780 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
37781 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 37782
1e901a75 37783 * include/grub/font.h: Replaced with new file.
34c44600 37784
1e901a75 37785 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
37786 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
37787 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
37788 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
37789 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 37790 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 37791 fg_red, fg_green, fg_blue, fg_alpha.
37792 (grub_video_adapter): Removed blit_glyph.
34c44600 37793 (grub_video_blit_glyph): Removed.
37794
1e901a75 37795 * font/manager.c: Removed file.
34c44600 37796
37797 * font/font.c: New file.
37798
1e901a75 37799 * font/font_cmd.c: Likewise.
34c44600 37800
1e901a75 37801 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 37802
1e901a75 37803 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
37804 (grub_video_vbe_map_rgba): Likewise.
37805 (grub_video_vbe_unmap_color_int): Likewise.
37806 (grub_video_vbe_blit_glyph): Removed.
37807 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 37808
1e901a75 37809 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
37810 (get_pixel): Likewise.
34c44600 37811 (set_pixel): Likewise.
37812
1e901a75 37813 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 37814
1e901a75 37815 * term/gfxterm.c: Adapted to new font engine.
34c44600 37816
1e901a75 37817 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 37818
1e901a75 37819 * term/i386/pc/vga.c: Likewise.
34c44600 37820
1e901a75 37821 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 37822
1e901a75 37823 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 37824
1e901a75 37825 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 37826
1e901a75 37827 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 37828
1e901a75 37829 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 37830
1e901a75 37831 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 37832
1e901a75 37833 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 37834
1e901a75 37835 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 37836
1e901a75 37837 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
37838
37839 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 37840
1e901a75 37841 * util/grub-mkconfig_lib.in: Changed font extension.
37842
278922e8 378432008-12-28 Felix Zielcke <fzielcke@z-51.de>
37844
37845 * util/getroot.c (grub_util_get_grub_dev): Add support for
37846 /dev/md/dNNpNN style partitionable mdraid devices.
37847
3ced05cf 378482008-12-12 Alex Smith <alex@alex-smith.me.uk>
37849
37850 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
37851 at a time limit of the PXE TFTP API correctly.
37852 (grub_pxefs_close): Likewise.
37853
7fd0ee30 378542008-11-29 Robert Millan <rmh@aybabtu.com>
37855
34c44600 37856 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 37857 grub_ata_device_initialize() calls.
37858
34c44600 378592008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 37860
37861 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
37862 iteration failed.
37863 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
37864
89313780 378652008-11-28 Robert Millan <rmh@aybabtu.com>
37866
37867 Fix build on powerpc-ieee1275. Based on patch created by
37868 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
37869 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37870 `kern/ieee1275/mmap.c'.
37871 * include/grub/powerpc/ieee1275/memory.h: New file.
37872
15257703 37873 Provide grub-install on coreboot.
37874 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
37875 (grub_install_SOURCES): New variable.
37876 * util/i386/pc/grub-install.in: Add a few condition checks to make it
37877 usable on coreboot.
37878
9fc5388a 378792008-11-25 Felix Zielcke <fzielcke@z-51.de>
37880
37881 * util/grub-fstest.c (grub_term_get_current_input): Change return type
37882 to `grub_term_input_t'.
37883 (grub_term_get_current_output): Change return type to
37884 `grub_term_output_t'.
37885
bc3a2f31 378862008-11-22 Robert Millan <rmh@aybabtu.com>
37887
34c44600 37888 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 37889 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
37890 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
37891 grub_vga_text_cls().
37892
80fc88f2 37893 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 37894 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 37895
cbf36fd3 37896 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
37897 to 0x200000 (avoids trouble with some OFW implementations, and matches
37898 with the one in Yaboot).
37899 Reported by Manoel Abranches
37900
73e8e268 379012008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 37902
37903 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
37904 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
37905
73e8e268 37906 * util/grub-mkconfig_lib.in (grub_warn): New function.
37907 (convert_system_path_to_grub_path): Use grub_warn() when issuing
37908 warnings, to obtain consistent formatting.
37909 * util/grub.d/00_header.in: Likewise.
37910 * util/update-grub_lib.in: Likewise.
37911
e94045a1 37912 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 37913 Move comment text to `#error' stanza.
e94045a1 37914
79d29fd7 37915 Harmonize ieee1275's grub_available_iterate() with the generic
37916 grub_machine_mmap_iterate() interface (fixes a recently-introduced
37917 build problem on i386-ieee1275):
37918 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
37919 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
37920 parameter `type'. Update all users of this function.
37921 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
37922 `kern/ieee1275/mmap.c'.
37923 * kern/ieee1275/init.c
37924 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
37925 with ...
37926 (grub_machine_mmap_iterate): ... this.
37927 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
37928 return type to `grub_err_t'. Update all implementations of this
37929 function prototype.
37930 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
37931 Likewise.
37932
60d6b16e 37933 Add `lsmmap' command (lists firmware-provided memory map):
37934 * commands/lsmmap.c: New file.
37935 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
37936 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
37937 variables.
37938 * conf/powerpc-ieee1275.rmk: Likewise.
37939 * conf/i386-coreboot.rmk: Likewise.
37940 * conf/i386-ieee1275.rmk: Likewise.
37941
ebaaf49b 379422008-11-19 Robert Millan <rmh@aybabtu.com>
37943
37944 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 37945 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
37946 constraints to initrd allocation (based on code from
37947 loader/i386/pc/linux.c). Without them, initrd was allocated too high
37948 for Linux to find it.
ebaaf49b 37949
dfab719f 379502008-11-14 Robert Millan <rmh@aybabtu.com>
37951
37952 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
37953 order to cope with duplicate slashes.
37954
10fc3eb9 379552008-11-14 Robert Millan <rmh@aybabtu.com>
37956
37957 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
37958 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
37959 don't want to mess with lower memory, because it is used in the Linux
37960 loader.
37961
37962 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 37963 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 37964 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
37965 is in our heap (probably as a result of it being corrupted during
2f2a3442 37966 decompression). Add #error instance with comment to explain why this
37967 loader isn't currently usable on PC/BIOS.
10fc3eb9 37968
e2e07847 379692008-11-14 Robert Millan <rmh@aybabtu.com>
37970
37971 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 37972 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 37973
fe8e8d69 379742008-11-12 Robert Millan <rmh@aybabtu.com>
37975
37976 Make loader/i386/linux.c buildable on i386-pc (although disabled).
37977
37978 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
37979 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
37980 from here ...
37981 * include/grub/i386/pc/memory.h: ... to here.
37982
976b07d0 379832008-11-12 Robert Millan <rmh@aybabtu.com>
37984
37985 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
37986 split).
37987
37988 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
37989 (grub_console_cur_color, grub_console_real_putchar)
37990 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
37991 (grub_console_setcolorstate, grub_console_setcolor)
37992 (grub_console_getcolor): Move from here ...
37993 * include/grub/i386/vga_common.h: ... to here (new file).
37994
37995 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
37996 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
37997 `<grub/i386/io.h>'.
37998 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
37999 `<grub/i386/vga_common.h>'.
38000
76679cd3 380012008-11-12 Robert Millan <rmh@aybabtu.com>
38002
38003 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
38004 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
38005 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
38006 variables.
38007 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38008 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
38009
38010 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
38011 grub_console_init() with call to grub_vga_text_init().
38012 (grub_machine_fini): Replace call to
38013 grub_console_fini() with call to grub_vga_text_fini() and
38014 grub_at_keyboard_fini().
38015
38016 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
38017 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38018 (grub_console_setcolorstate, grub_console_setcolor)
38019 (grub_console_getcolor): New function prototypes.
38020
38021 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
38022 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
38023 (grub_vga_text_setcursor): Static-ize.
38024 (grub_vga_text_term): New structure.
38025 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
38026
38027 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
38028 (grub_console_cur_color, grub_console_standard_color)
38029 (grub_console_normal_color, grub_console_highlight_color)
38030 (map_char, grub_console_putchar, grub_console_getcharwidth)
38031 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
38032 (grub_console_getcolor): Move from here ...
38033 * term/i386/vga_common.c: ... to here (same function names).
38034
95b841d3 380352008-11-12 Robert Millan <rmh@aybabtu.com>
38036
38037 Use newly-added Multiboot support in coreboot.
38038
38039 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38040 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
38041
38042 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
38043 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
38044 (codestart): Store the MBI in `startup_multiboot_info' when we're
38045 being loaded using Multiboot.
38046
38047 * kern/i386/coreboot/init.c (grub_machine_init): Move
38048 grub_at_keyboard_init() call to beginning of function (useful for
38049 debugging). Call grub_machine_mmap_init() before attempting to use
38050 grub_machine_mmap_iterate().
38051 (grub_lower_mem, grub_upper_mem): Move from here ...
38052 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
38053 here (new file).
38054
38055 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
38056 function prototype.
38057
761ca975 380582008-11-12 Robert Millan <rmh@aybabtu.com>
38059
38060 Fix a regression introduced by the at_keyboard.mod split. Because
38061 some terminals are default on some platforms and non-default on
38062 others, the first terminal being registered determines which is
38063 going to be default.
38064
38065 * kern/term.c (grub_term_register_input): If this is the first
38066 terminal being registered, set it as the current one.
38067 (grub_term_register_output): Likewise.
38068
38069 * term/efi/console.c (grub_console_init): Do not call
38070 grub_term_set_current_output() or grub_term_set_current_input().
38071 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
38072 * term/i386/pc/console.c (grub_console_init): Likewise.
38073 (grub_console_fini): Do not call grub_term_set_current_input()
38074 (but leave grub_term_set_current_output() to restore text mode).
38075
6c529df7 380762008-11-10 Robert Millan <rmh@aybabtu.com>
38077
38078 * util/grub.d/00_header.in: Add backward compatibility check for
38079 versions of terminal.mod that don't understand `terminal_input' or
38080 `terminal_output'.
38081
132e4113 380822008-11-09 Robert Millan <rmh@aybabtu.com>
38083
38084 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
38085 `terminal_input' / `terminal_output', not `terminal'.
38086
ac293d50 380872008-11-08 Robert Millan <rmh@aybabtu.com>
38088
38089 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 38090 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 38091
0025933a 380922008-11-08 Robert Millan <rmh@aybabtu.com>
38093
38094 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 38095 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 38096 members. Update all users.
38097 * util/console.c (grub_ncurses_term): Split in ...
38098 (grub_ncurses_term_input): ... this, and ...
38099 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 38100 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 38101
37c86336 381022008-11-08 Robert Millan <rmh@aybabtu.com>
38103
38104 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
38105 (PKGDATA): Add $(pkgdata_SRCDIR).
38106 (pkglib_BUILDDIR): New variable.
38107 (pkgdata_SRCDIR): New variable.
38108 (build_env.mk): New target.
38109 (include_DATA): New variable.
38110 (install-local): Install $(include_DATA) files in $(includedir).
38111
b6c15a2d 381122008-11-07 Pavel Roskin <proski@gnu.org>
38113
d99d46f1 38114 * gendistlist.sh: Use C locale for sorting to ensure consistent
38115 output on all systems.
38116
b6c15a2d 38117 * util/grub.d/00_header.in: Remove incorrect space before
38118 "serial".
38119
c32ee8c9 381202008-11-07 Robert Millan <rmh@aybabtu.com>
38121
38122 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
38123 per specification.
38124 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
38125 * loader/multiboot_loader.c (find_multi_boot2_header): New function
38126 (based on find_multi_boot1_header).
38127 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
38128 using find_multi_boot2_header(), and abort if neither Multiboot or
38129 Multiboot headers were found.
38130
651c29b7 381312008-11-07 Robert Millan <rmh@aybabtu.com>
38132
38133 Modularize at_keyboard.mod:
38134
38135 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
38136 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
38137 (at_keyboard_mod_LDFLAGS): New variables.
38138
38139 Actual terminal split:
38140
38141 * include/grub/term.h (struct grub_term): Split in ...
38142 (struct grub_term_input): ... this, and ...
38143 (struct grub_term_output): ... this. Update all users.
38144 (grub_term_set_current): Split in ...
38145 (grub_term_set_current_input): ... this, and ...
38146 (grub_term_set_current_output): ... this.
38147 (grub_term_get_current): Split in ...
38148 (grub_term_get_current_input): ... this, and ...
38149 (grub_term_get_current_output): ... this.
38150 (grub_term_register): Split in ...
38151 (grub_term_register_input): ... this, and ...
38152 (grub_term_register_output): ... this.
38153 (grub_term_unregister): Split in ...
38154 (grub_term_unregister_input): ... this, and ...
38155 (grub_term_unregister_output): ... this.
38156 (grub_term_iterate): Split in ...
38157 (grub_term_iterate_input): ... this, and ...
38158 (grub_term_iterate_output): ... this.
38159
38160 * kern/term.c (grub_term_list): Split in ...
38161 (grub_term_list_input): ... this, and ...
38162 (grub_term_list_output): ... this. Update all users.
38163 (grub_cur_term): Split in ...
38164 (grub_cur_term_input): ... this, and ...
38165 (grub_cur_term_output): ... this. Update all users.
38166 (grub_term_set_current): Split in ...
38167 (grub_term_set_current_input): ... this, and ...
38168 (grub_term_set_current_output): ... this.
38169 (grub_term_get_current): Split in ...
38170 (grub_term_get_current_input): ... this, and ...
38171 (grub_term_get_current_output): ... this.
38172 (grub_term_register): Split in ...
38173 (grub_term_register_input): ... this, and ...
38174 (grub_term_register_output): ... this.
38175 (grub_term_unregister): Split in ...
38176 (grub_term_unregister_input): ... this, and ...
38177 (grub_term_unregister_output): ... this.
38178 (grub_term_iterate): Split in ...
38179 (grub_term_iterate_input): ... this, and ...
38180 (grub_term_iterate_output): ... this.
38181
38182 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
38183 a check for input and one for output (and only attempt to get keys
38184 from user when input works).
38185
38186 * util/grub-probe.c (grub_term_get_current): Split in ...
38187 (grub_term_get_current_input): ... this, and ...
38188 (grub_term_get_current_output): ... this.
38189 * util/grub-fstest.c: Likewise.
38190 * util/i386/pc/grub-setup.c: Likewise.
38191 * util/grub-editenv.c: Likewise.
38192
38193 Portability adjustments:
38194
38195 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
38196 `term/i386/pc/at_keyboard.c'.
38197 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
38198 grub_keyboard_controller_init() (now handled by terminal .init).
38199 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
38200 grub_at_keyboard_init().
38201 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
38202 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
38203 at_keyboard.mod via input terminal interface).
38204 * include/grub/i386/coreboot/console.h: Convert into a stub for
38205 `<grub/i386/pc/console.h>'.
38206
38207 Migrate full terminals to new API:
38208
38209 * term/efi/console.c (grub_console_term): Split into ...
38210 (grub_console_term_input): ... this, and ...
38211 (grub_console_term_output): ... this. Update all users.
38212 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
38213 (grub_ofconsole_init): Split into ...
38214 (grub_ofconsole_init_input): ... this, and ...
38215 (grub_ofconsole_init_output): ... this.
38216 (grub_ofconsole_term): Split into ...
38217 (grub_ofconsole_term_input): ... this, and ...
38218 (grub_ofconsole_term_output): ... this. Update all users.
38219 * term/i386/pc/serial.c (grub_serial_term): Split into ...
38220 (grub_serial_term_input): ... this, and ...
38221 (grub_serial_term_output): ... this. Update all users.
38222 * term/i386/pc/console.c (grub_console_term): Split into ...
38223 (grub_console_term_input): ... this, and ...
38224 (grub_console_term_output): ... this. Update all users.
38225 (grub_console_term_input): Only enable it on PC/BIOS platform.
38226 (grub_console_init): Remove grub_keyboard_controller_init() call.
38227
38228 Migrate input terminals to new API:
38229
38230 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
38231 `i386' and `i386/pc' to enable build on x86_64 (this driver is
38232 i386-specific anyway).
38233 (grub_console_checkkey): Rename to ...
38234 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
38235 users.
38236 (grub_keyboard_controller_orig): New variable.
38237 (grub_console_getkey): Rename to ...
38238 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
38239 users.
38240 (grub_keyboard_controller_init): Static-ize. Save original
38241 controller value so that it can be restored ...
38242 (grub_keyboard_controller_fini): ... here (new function).
38243 (grub_at_keyboard_term): New structure.
38244 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
38245 functions.
38246
38247 Migrate output terminals to new API:
38248
38249 * term/i386/pc/vga.c (grub_vga_term): Change type to
38250 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38251 members. Update all users.
38252 * term/gfxterm.c (grub_video_term): Change type to
38253 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38254 members. Update all users.
38255 * include/grub/i386/pc/console.h (grub_console_checkkey)
38256 (grub_console_getkey): Do not export (no longer needed by gfxterm,
38257 etc).
38258
38259 Migrate `terminal' command and userland tools to new API:
38260
38261 * commands/terminal.c (grub_cmd_terminal): Split into ...
38262 (grub_cmd_terminal_input): ... this, and ...
38263 (grub_cmd_terminal_output): ... this.
38264 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
38265 `terminal_input' and `terminal_output'.
38266 * util/grub.d/00_header.in: Adjust `terminal' calls to new
38267 `terminal_input' / `terminal_output' API.
38268 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
38269 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
38270 provided ${GRUB_TERMINAL}, convert it).
38271
96e5d876 382722008-11-04 Robert Millan <rmh@aybabtu.com>
38273
38274 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
38275 for FreeBSD.
38276 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
38277
556f3775 382782008-11-03 Bean <bean123ch@gmail.com>
38279
38280 * kern/elf.c (grub_elf32_load): Revert to previous code.
38281 (grub_elf64_load): Likewise.
38282
38283 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
38284
926b9823 382852008-11-01 Robert Millan <rmh@aybabtu.com>
38286
38287 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
38288 (TARGET_CPPFLAGS): Likewise.
38289 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
38290
1432e958 382912008-11-01 Carles Pina i Estany <carles@pina.cat>
38292
38293 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
38294
dba3f844 382952008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 38296
38297 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
38298 addition of objects until the code is not going to be able to fail.
38299
dba3f844 383002008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 38301
38302 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
38303 (add a missing NULL check, and correct them by moving the pointer
38304 operations after the actual check).
38305
7ab28c21 383062008-10-29 Robert Millan <rmh@aybabtu.com>
38307
38308 * util/i386/pc/grub-install.in: Handle empty string as output from
38309 make_system_path_relative_to_its_root().
38310
1b7748eb 383112008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
38312
38313 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
38314 circular metadata worst case scenario. If the metadata is circular
38315 then copy the wrap in place.
38316 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
38317 project lib/format_text/layout.h
38318 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
38319
c9618ab2 383202008-10-03 Felix Zielcke <fzielcke@z-51.de>
38321
7a36edca 38322 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 38323
bf981c62 383242008-10-03 Felix Zielcke <fzielcke@z-51.de>
38325
38326 * util/update-grub_lib.in: Mention filename in warning message.
38327
6d994591 383282008-09-29 Felix Zielcke <fzielcke@z-51.de>
38329
38330 * NEWS: Update for rename of update-grub to grub-mkconfig.
38331
18ade780 383322008-09-29 Felix Zielcke <fzielcke@z-51.de>
38333
38334 * util/update-grub_lib.in: Copy to ...
38335 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 38336 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 38337 * util/update-grub.in: Rename to ...
38338 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
38339 option. Add `--output' option to allow users to specify the generated
38340 configuration file. Default to stdout.
38341 (update_grub_dir): Rename to ...
38342 (grub_mkconfig_dir): ... this.
38343 (grub_cfg): Default to an empty string.
38344 * conf/common.rmk (update-grub): Rename to ...
38345 (grub-mkconfig): ... this.
38346 (update-grub_lib): Copy to ...
38347 (grub-mkconfig_lib): ... this.
38348 (update-grub_SCRIPTS): Copy to ...
38349 (grub-mkconfig_SCRIPTS): ... this. Update all users.
38350 (update-grub_DATA): Rename to ...
38351 (grub-mkconfig_DATA): ... this.
38352
556ce6ac 383532008-09-28 Robert Millan <rmh@aybabtu.com>
38354
38355 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
38356 to `modified'. Add the real `created' field.
38357 (grub_iso9660_uuid): Use `modified' rather than `created' for
38358 constructing the UUID.
38359
383602008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 38361
38362 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
38363 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
38364
92274e85 383652008-09-28 Bean <bean123ch@gmail.com>
38366
38367 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
38368 Thanks to Christian Franke for finding this bug.
38369
add6f17a 383702008-09-25 Robert Millan <rmh@aybabtu.com>
38371
38372 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
38373 instances of grub_util_get_disk_name() (see previous commit).
38374
d2a367b8 383752008-09-25 Robert Millan <rmh@aybabtu.com>
38376
38377 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
38378 `util/i386/get_disk_name.c'.
38379 * conf/i386-efi.rmk: Likewise.
38380 * conf/x86_64-efi.rmk: Likewise.
38381 * conf/i386-coreboot.rmk: Likewise.
38382 * conf/i386-ieee1275.rmk: Likewise.
38383 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
38384 `util/ieee1275/get_disk_name.c'.
38385 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
38386 * util/ieee1275/get_disk_name.c: Remove file.
38387 * util/i386/get_disk_name.c: Remove file.
38388 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
38389 "hd%d" for device.map entries, rather than using
38390 grub_util_get_disk_name().
38391
81a06771 383922008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 38393
38394 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
38395 warning.
38396 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
38397
5a004279 383982008-09-24 Carles Pina i Estany <carles@pina.cat>
38399
38400 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
38401 Changed to 0x5100.
38402 (GRUB_TERM_PPAGE): Changed to 0x4900.
38403
397093d3 384042008-09-24 Robert Millan <rmh@aybabtu.com>
38405
38406 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
38407 macros (they were i386-pc specific).
38408 * include/grub/sparc64/ieee1275/console.h: Likewise.
38409 * include/grub/efi/console.h: Likewise.
38410
a91b6c7c 384112008-09-22 Bean <bean123ch@gmail.com>
38412
38413 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
38414 resident and in attribute list.
38415
38416 * include/grub/ntfs.h (BMP_LEN): Removed.
38417
c40fd116 384182008-09-22 Bean <bean123ch@gmail.com>
38419
81a06771 38420 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 38421 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
38422
38423 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
38424 error occurs, as grub_disk_open will call grub_disk_close, which will
38425 call p->close (scsi).
38426
81a06771 384272008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 38428
38429 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
38430 (AC_PREREQ): Bumped to 2.59.
38431 (AC_TRY_COMPILE): Replace obsolete macro with ...
38432 (AC_COMPILE_IFELSE): ... this.
38433 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
38434 (AC_LINK_IFELSE): ... this.
38435
5dc43410 384362008-09-21 Felix Zielcke <fzielcke@z-51.de>
38437
38438 * autogen.sh: Add a call to `gendistlist.sh'.
38439
9035dce4 384402008-09-19 Christian Franke <franke@computer.org>
38441
38442 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
38443 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
38444 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
38445 Export __enable_execute_stack() to modules.
38446 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
38447 New function.
38448
7fd75377 384492008-09-09 Felix Zielcke <fzielcke@z-51.de>
38450
040030b3 38451 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
38452 Sort the list.
38453
384542008-09-09 Felix Zielcke <fzielcke@z-51.de>
38455
38456 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 38457 #include <grub/util/hostdisk.h>.
38458
89d5ffcf 384592008-09-08 Robert Millan <rmh@aybabtu.com>
38460
38461 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
38462 segments when their filesz is zero (grub_file_read() interprets
81a06771 38463 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 38464 Use `lowest_segment' rather than 0 for calculating the current
38465 segment load address.
38466
40da438f 384672008-09-08 Robert Millan <rmh@aybabtu.com>
38468
38469 * util/hostdisk.c (open_device): Replace a grub_util_info() call
38470 with grub_dprintf("hostdisk", ...), as it was so verbose that it
38471 clobbered useful information.
38472
ddbf5556 384732008-09-08 Robert Millan <rmh@aybabtu.com>
38474
38475 * include/grub/util/biosdisk.h: Move to ...
38476 * include/grub/util/hostdisk.h: ... here. Update all users.
38477 * util/biosdisk.c: Move to ...
38478 * util/hostdisk.c: ... here. Update all users.
38479
783d0f48 384802008-09-07 Robert Millan <rmh@aybabtu.com>
38481
38482 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
38483 variables.
38484 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
38485 and length can be stored directly in the `mbi->mmap_addr' and
38486 `mbi->mmap_length' struct fields.
38487
548e2ea5 384882008-09-07 Robert Millan <rmh@aybabtu.com>
38489
38490 * conf/i386.rmk: New file. Provides declaration for building
38491 `cpuid.mod'.
38492 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
38493 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
38494 variables.
38495 Include `conf/i386.mk'.
38496 * conf/i386-efi.rmk: Likewise.
38497 * conf/x86_64-efi.rmk: Likewise.
38498 * conf/i386-coreboot.rmk: Likewise.
38499 * conf/i386-ieee1275.rmk: Likewise.
38500
0ea85a37 385012008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
38502
38503 Based on patch created by Colin D Bennett <colin@gibibit.com>.
38504 Adds optimization support for BGR based modes.
38505
38506 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
38507 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38508 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38509 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38510 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38511 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38512 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38513 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38514 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38515 (grub_video_i386_vbeblit_index_index): Likewise.
38516 (grub_video_i386_vbeblit_replace_directN): Added.
38517 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38518 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38519 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38520 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38521 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38522 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 38523 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 38524 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38525 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38526 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38527 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38528 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38529 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
38530
38531 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
38532 (grub_video_i386_vbefill_R8G8B8): Likewise.
38533 (grub_video_i386_vbefill_index): Likewise.
38534 (grub_video_i386_vbefill_direct32): Added.
38535 (grub_video_i386_vbefill_direct24): Likewise.
38536 (grub_video_i386_vbefill_direct16): Likewise.
38537 (grub_video_i386_vbefill_direct8): Likewise.
38538
81a06771 38539 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 38540 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
38541 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
38542 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
38543 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
38544 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 38545
0ea85a37 38546 * video/video.c (grub_video_get_blit_format): Updated to use new
38547 blit formats. Added handling for 16 bit color modes.
81a06771 38548
38549 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 38550 fillers.
38551 (common_blitter): Updated to use new blitters.
38552
38553 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
38554 Removed.
38555 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38556 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38557 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38558 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38559 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38560 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38561 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38562 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38563 (grub_video_i386_vbeblit_index_index): Likewise.
38564 (grub_video_i386_vbeblit_replace_directN): Added.
38565 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38566 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38567 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38568 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38569 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38570 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
38571 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
38572 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38573 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38574 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38575 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38576 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38577 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 38578
0ea85a37 38579 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
38580 (grub_video_i386_vbefill_R8G8B8): Likewise.
38581 (grub_video_i386_vbefill_index): Likewise.
38582 (grub_video_i386_vbefill_direct32): Added.
38583 (grub_video_i386_vbefill_direct24): Likewise.
38584 (grub_video_i386_vbefill_direct16): Likewise.
38585 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 38586
0ea85a37 38587 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
38588 types.
81a06771 38589
0ea85a37 38590 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
38591 types.
81a06771 38592
0ea85a37 38593 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
38594 blitter types.
81a06771 38595
0ea85a37 38596 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
38597 types.
38598
e8a83df6 385992008-09-06 Felix Zielcke <fzielcke@z-51.de>
38600
38601 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
38602 RAID level 1.
38603
6bcd8ee5 386042008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 38605
6bcd8ee5 38606 * fs/iso9660.c (grub_iso9660_date): New structure.
38607 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
38608 (grub_iso9660_uuid): New function.
c375ae58 38609
59261157 386102008-09-05 Bean <bean123ch@gmail.com>
38611
38612 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
38613
38614 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
38615 insensitive bit for names in Win32 and Win32 & DOS namespace.
38616
38617 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
38618
38619 * include/grub/types.h (LONG_MAX): Likewise.
38620
58b6645a 386212008-09-04 Felix Zielcke <fzielcke@z-51.de>
38622
4ee55921 38623 * util/getroot.c: Include <config.h>.
38624 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
38625 add support for /dev/md/N devices and handle LVM double dash escaping.
38626
386272008-09-04 Felix Zielcke <fzielcke@z-51.de>
38628
38629 * config.guess: Update to latest version from config git.
38630 * config.sub: Likewise.
58b6645a 38631
9124f65d 386322008-09-03 Robert Millan <rmh@aybabtu.com>
38633
38634 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
38635 `disk->total_sectors'.
38636
81a06771 386372008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 38638
38639 * include/grub/normal.h: Fixed incorrect comment for
38640 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
38641
81a06771 386422008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 38643
38644 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
38645 values with defines.
38646
38647 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
38648 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
38649 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
38650 (GRUB_VBE_MODEATTR_COLOR): Likewise.
38651 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
38652 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
38653 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
38654 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
38655 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
38656 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
38657 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
38658 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
38659 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
38660 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
38661 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
38662 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
38663 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
38664 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
38665 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
38666
93d5cbf8 386672008-08-31 Robert Millan <rmh@aybabtu.com>
38668
38669 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
38670 declaration.
38671 (grub_multiboot): Fix a few warnings.
38672
21751d50 386732008-08-31 Robert Millan <rmh@aybabtu.com>
38674
38675 * loader/i386/pc/multiboot.c: Update comment not to say that
38676 boot_device support is unimplemented.
38677
e27a75c5 386782008-08-31 Robert Millan <rmh@aybabtu.com>
38679
38680 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
38681 or memory map support are unimplemented.
38682
81a06771 386832008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 38684
38685 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
38686
81a06771 386872008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 38688
38689 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
38690 total video memory in 'vbeinfo' output; show color format details for
38691 each video mode.
38692
7c5d8d95 386932008-08-30 Pavel Roskin <proski@gnu.org>
38694
38695 * util/genmoddep.c: Remove for real this time.
38696 * DISTLIST: Remove util/genmoddep.c.
38697
4cebd25a 386982008-08-30 Robert Millan <rmh@aybabtu.com>
38699
38700 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
38701 as required by Multiboot spec (it was already 4-byte aligned, but
38702 only by chance).
38703
b497a269 387042008-08-29 Pavel Roskin <proski@gnu.org>
38705
e3925185 38706 * kern/powerpc/ieee1275/crt0.S: Rename to ...
38707 * kern/powerpc/ieee1275/startup.S: ... this.
38708 * conf/powerpc-ieee1275.rmk: Adjust for the above.
38709 * DISTLIST: Likewise.
38710
b497a269 38711 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
38712 grub/cpu/kernel.h. Add start label for consistency with other
38713 platforms. Add grub_prefix immediately after start. Add jump
38714 to the code after grub_prefix.
38715 * include/grub/powerpc/kernel.h: Provide valid values for
38716 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
38717
6e5a42fe 387182008-08-29 Bean <bean123ch@gmail.com>
38719
38720 * configure.ac: Change host_os to cygwin for mingw.
38721 (asprintf): New check for function.
38722
38723 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
38724 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
38725
38726 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 38727 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 38728 sync, sleep and grub_util_get_disk_size for mingw.
38729
38730 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
38731 to get size in mingw.
38732 (open_device): Use flag O_BINARY if it's defined.
38733 (find_root_device): Add dummy code for mingw.
38734
38735 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
38736 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
38737 (get_scsi_disk_name): Return 0 for mingw.
38738
38739 * util/hostfs.c: #include <grub/util/misc.h>.
38740 (grub_hostfs_open): Use "rb" flag to open file, use
38741 grub_util_get_disk_size to get disk size for mingw.
38742
38743 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
38744 (asprintf): New function if HAVE_ASPRINTF is not set.
38745 (sync): New function for mingw.
38746 (sleep): Likewise.
38747 (grub_util_get_disk_size): Likewise.
38748
ab3f2673 387492008-08-28 Pavel Roskin <proski@gnu.org>
38750
38751 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38752 kern/time.c.
38753
1c282483 387542008-08-28 Robert Millan <rmh@aybabtu.com>
38755
38756 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
38757
678e849c 387582008-08-28 Robert Millan <rmh@aybabtu.com>
38759
38760 Change find_grub_drive() syntax so it doesn't prevent it from
38761 detecting NULL names as errors.
38762
38763 * util/biosdisk.c (find_grub_drive): Move free slot search code
38764 from here ...
38765 (find_free_slot): ... to here.
38766 (read_device_map): Use find_free_slot() to search for free slots.
38767
965c75ca 387682008-08-27 Marco Gerards <marco@gnu.org>
38769
38770 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
38771 (scsi_mod_SOURCES): New variable.
38772 (scsi_mod_CFLAGS): Likewise
38773 (scsi_mod_LDFLAGS): Likewise.
38774
38775 * disk/scsi.c: New file.
38776
38777 * include/grub/scsi.h: Likewise.
38778
38779 * include/grub/scsicmd.h: Likewise.
38780
38781 * disk/ata.c: Include <grub/scsi.h>.
38782 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
38783 instead.
38784 (grub_ata_iterate): Skip ATAPI devices.
38785 (grub_ata_open): Only handle ATAPI devices.
38786 (struct grub_atapi_read): Removed.
38787 (grub_atapi_readsector): Likewise.
38788 (grub_ata_read): No longer handle ATAPI devices.
38789 (grub_ata_write): Likewise.
38790 (grub_atapi_iterate): New function.
38791 (grub_atapi_read): Likewise.
38792 (grub_atapi_write): Likewise.
38793 (grub_atapi_open): Likewise.
38794 (grub_atapi_close): Likewise.
38795 (grub_atapi_dev): New variable.
38796 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
38797 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
38798
38799 * include/grub/disk.h (enum grub_disk_dev_id): Add
38800 `GRUB_DISK_DEVICE_SCSI_ID'.
38801
c07ae501 388022008-08-26 Robert Millan <rmh@aybabtu.com>
38803
38804 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
38805 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
38806 descriptive.
38807
5ed20adc 388082008-08-23 Bean <bean123ch@gmail.com>
38809
38810 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
38811 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
38812 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
38813 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
38814 dm_nv.mod.
38815 (raid5rec_mod_SOURCES): New macro.
38816 (raid5rec_mod_CFLAGS): Likewise.
38817 (raid5rec_mod_LDFLAGS): Likewise.
38818 (raid6rec_mod_SOURCES): Likewise.
38819 (raid6rec_mod_CFLAGS): Likewise.
38820 (raid6rec_mod_LDFLAGS): Likewise.
38821 (mdraid_mod_SOURCES): Likewise.
38822 (mdraid_mod_CFLAGS): Likewise.
38823 (mdraid_mod_LDFLAGS): Likewise.
38824 (dm_nv_mod_SOURCES): Likewise.
38825 (dm_nv_mod_CFLAGS): Likewise.
38826 (dm_nv_mod_LDFLAGS): Likewise.
38827
38828 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
38829 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
38830 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
38831
38832 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
38833 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
38834
38835 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38836
38837 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38838
38839 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38840
38841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38842
38843 * disk/raid5_recover.c: New file.
38844
38845 * disk/raid6_recover.c: Likewise.
38846
38847 * disk/mdraid_linux.c: Likewise.
38848
38849 * disk/dmraid_nvidia.c: Likewise.
38850
38851 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
38852 ULONG_MAX.
38853
38854 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
38855 calculate the size of raid device.
38856 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
38857 different layout of raid5.
38858 (grub_raid_scan_device): Remove code specific to mdraid.
38859 (grub_raid_list): New variable.
38860 (free_array): New function.
38861 (grub_raid_register): Likewise.
38862 (grub_raid_unregister): Likewise.
38863 (grub_raid_rescan): Likewise.
38864 (GRUB_MOD_INIT): Don't iterate device here.
38865 (GRUB_MOD_FINI): Use free_array to release resource.
38866
38867 * include/grub/raid.h: Remove macro and structure specific to mdraid.
38868 (grub_raid5_recover_func_t): New function variable type.
38869 (grub_raid6_recover_func_t): Likewise.
38870 (grub_raid5_recover_func): New variable.
38871 (grub_raid6_recover_func): Likewise.
38872 (grub_raid_register): New function.
38873 (grub_raid_unregister): Likewise.
38874 (grub_raid_rescan): Likewise.
38875 (grub_raid_block_xor): Likewise.
38876
38877 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
38878 (CMD_CRC): New macro.
38879 (part): Removed.
38880 (read_file): Handle device as well as file.
38881 (cmd_crc): New function.
38882 (fstest): Handle multiple disks.
38883 (options): Remove part, raw and long, add root and diskcount.
38884 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 38885 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 38886 add handling for the new options, support multiple disks.
38887
38888 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
38889
29c18915 388902008-08-23 Bean <bean123ch@gmail.com>
38891
38892 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
38893
38894 * genfslist.sh: Ignore kernel.mod.
38895
38896 * genpartmaplist.sh: Likewise.
38897
8415f261 388982008-08-23 Robert Millan <rmh@aybabtu.com>
38899
38900 * util/getroot.c (find_root_device): Skip anything that starts with
38901 a dot, not just directories. This avoids things like /dev/.tmp.md0.
38902
d5a7dc5b 389032008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 38904
d5a7dc5b 38905 * util/update-grub.in (GRUB_GFXMODE): Export variable.
38906 * util/grub.d/00_header.in: Allow the administrator to change default
38907 gfxmode via ${GRUB_GFXMODE}.
38908
380cfbb4 389092008-08-21 Felix Zielcke <fzielcke@z-51.de>
38910
38911 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
38912
c9baafe7 389132008-08-21 Robert Millan <rmh@aybabtu.com>
38914
38915 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
38916 loader.
38917 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
38918 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
38919
e290bef2 389202008-08-20 Carles Pina i Estany <carles@pina.cat>
38921
38922 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
38923 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
38924
f9dbfc96 389252008-08-19 Robert Millan <rmh@aybabtu.com>
38926
38927 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
38928 (struct grub_virtual_screen): Remove `cursor_color'.
38929 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
38930 initialization.
38931 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
38932
dd6bd6ab 389332008-08-18 Robert Millan <rmh@aybabtu.com>
38934
38935 Unify (identical) linux_normal.c files.
38936 * loader/i386/efi/linux_normal.c: Move from here ...
38937 * loader/linux_normal.c: ... to here. Update all users.
38938 * loader/i386/pc/linux_normal.c: Delete. Update all users.
38939 * loader/i386/ieee1275/linux_normal.c: Likewise.
38940
7f42f83e 389412008-08-18 Robert Millan <rmh@aybabtu.com>
38942
38943 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
38944 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
38945 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
38946 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
38947 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
38948 New macros.
38949 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
38950 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
38951 (GRUB_LINUX_CL_END_OFFSET): ... to here.
38952 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
38953 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
38954 (GRUB_EFI_CL_END_OFFSET): Rename to ...
38955 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
38956 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
38957 Initialize `params->video_cursor_x' and `params->video_cursor_y'
38958 portably using grub_getxy().
38959 Replace `-EFI' with `-bzImage' in boot message.
38960
38487ddb 389612008-08-17 Robert Millan <rmh@aybabtu.com>
38962
38963 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
38964
deceb3ec 389652008-08-17 Robert Millan <rmh@aybabtu.com>
38966
38967 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
38968
38969 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
38970 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
38971 (grub_machine_mmap_iterate): New function declaration.
38972 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
38973 structure.
38974 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
38975 macros.
38976
38977 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
38978 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
38979 Move e820 parsing from here ...
38980 * kern/i386/pc/mmap.c: New file.
38981 (grub_machine_mmap_iterate): ... to here.
38982
38983 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
38984 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
38985 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
38986 (grub_available_iterate): Redeclare to return `void', and redeclare
38987 its hook to use grub_uint64_t as addr and size parameters, and rename
38988 to ...
38989 (grub_machine_mmap_iterate): ... this. Update all users.
38990
38991 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
38992 to make it more readable. Rename to ...
38993 (grub_machine_mmap_iterate): ... this.
38994
38995 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
38996 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
38997 (grub_multiboot): Allocate an extra region after the payload, and fill
38998 it with a Multiboot memory map. Adjust a.out loader to calculate size
38999 with the extra space.
39000 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
39001 with the extra space.
39002
f8aa0f43 390032008-08-17 Carles Pina i Estany <carles@pina.cat>
39004
9807deb9 39005 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 39006
605f5bb6 390072008-08-17 Felix Zielcke <fzielcke@z-51.de>
39008
39009 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
39010 mdate-sh to the list `find' searches for.
39011 * DISTLIST: Regenerated.
39012
210db6c6 390132008-08-16 Felix Zielcke <fzielcke@z-51.de>
39014
39015 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
39016 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 39017 genmoddep.awk, gensymlist.sh.in.
39018 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 39019 * DISTLIST: Regenerated.
48cdbfd4 39020 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 39021
1082b929 390222008-08-16 Robert Millan <rmh@aybabtu.com>
39023
39024 * disk/raid.c (grub_raid_init): Handle/report errors set by
39025 grub_device_iterate().
39026 * disk/lvm.c (grub_lvm_init): Likewise.
39027
42ce5170 390282008-08-15 Bean <bean123ch@gmail.com>
39029
39030 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39031 and datehook.mod.
39032 (datetime_mod_SOURCES): New macro.
39033 (datetime_mod_CFLAGS): Likewise.
39034 (datetime_mod_LDFLAGS): Likewise.
39035 (date_mod_SOURCES): Likewise.
39036 (date_mod_CFLAGS): Likewise.
39037 (date_mod_LDFLAGS): Likewise.
39038 (datehook_mod_SOURCES): Likewise.
39039 (datehook_mod_CFLAGS): Likewise.
39040 (datehook_mod_LDFLAGS): Likewise.
39041
39042 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39043 and datehook.mod.
39044 (datetime_mod_SOURCES): New macro.
39045 (datetime_mod_CFLAGS): Likewise.
39046 (datetime_mod_LDFLAGS): Likewise.
39047 (date_mod_SOURCES): Likewise.
39048 (date_mod_CFLAGS): Likewise.
39049 (date_mod_LDFLAGS): Likewise.
39050 (datehook_mod_SOURCES): Likewise.
39051 (datehook_mod_CFLAGS): Likewise.
39052 (datehook_mod_LDFLAGS): Likewise.
39053
39054 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39055 and datehook.mod.
39056 (datetime_mod_SOURCES): New macro.
39057 (datetime_mod_CFLAGS): Likewise.
39058 (datetime_mod_LDFLAGS): Likewise.
39059 (date_mod_SOURCES): Likewise.
39060 (date_mod_CFLAGS): Likewise.
39061 (date_mod_LDFLAGS): Likewise.
39062 (datehook_mod_SOURCES): Likewise.
39063 (datehook_mod_CFLAGS): Likewise.
39064 (datehook_mod_LDFLAGS): Likewise.
39065
39066 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39067 and datehook.mod.
39068 (datetime_mod_SOURCES): New macro.
39069 (datetime_mod_CFLAGS): Likewise.
39070 (datetime_mod_LDFLAGS): Likewise.
39071 (date_mod_SOURCES): Likewise.
39072 (date_mod_CFLAGS): Likewise.
39073 (date_mod_LDFLAGS): Likewise.
39074 (datehook_mod_SOURCES): Likewise.
39075 (datehook_mod_CFLAGS): Likewise.
39076 (datehook_mod_LDFLAGS): Likewise.
39077
39078 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39079 and datehook.mod.
39080 (datetime_mod_SOURCES): New macro.
39081 (datetime_mod_CFLAGS): Likewise.
39082 (datetime_mod_LDFLAGS): Likewise.
39083 (date_mod_SOURCES): Likewise.
39084 (date_mod_CFLAGS): Likewise.
39085 (date_mod_LDFLAGS): Likewise.
39086 (datehook_mod_SOURCES): Likewise.
39087 (datehook_mod_CFLAGS): Likewise.
39088 (datehook_mod_LDFLAGS): Likewise.
39089
39090 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
39091
39092 * commands/date.c: New file.
39093
39094 * hook/datehook.c: Likewise.
39095
39096 * include/grub/lib/datetime.h: Likewise.
39097
39098 * include/grub/i386/cmos.h: Likewise.
39099
39100 * lib/datetime.c: Likewise.
39101
39102 * lib/i386/datetime.c: Likewise.
39103
39104 * lib/efi/datetime.c: Likewise.
39105
0e9242da 391062008-08-14 Robert Millan <rmh@aybabtu.com>
39107
39108 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
39109 (grub_mkelfimage_SOURCES): New variable.
39110 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
39111
39112 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
39113 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
39114 * conf/powerpc-ieee1275.rmk: Likewise.
39115 * conf/i386-ieee1275.rmk: Likewise.
39116
39117 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
39118 * kern/i386/coreboot/init.c: Likewise.
39119
39120 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
39121 with `<grub/cpu/kernel.h>'.
39122 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
39123 to ...
39124 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
39125 * kern/i386/coreboot/startup.S: Likewise.
39126
39127 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
39128 (GRUB_MOD_GAP): Remove.
39129 * include/grub/powerpc/kernel.h: New file.
39130 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
39131 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39132 * include/grub/i386/kernel.h: New file.
39133 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
39134 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
39135 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39136
39137 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
39138 `grub-mkelfimage'.
39139 Use --directory when invoking grub_mkimage.
39140
39141 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
39142 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
39143 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
39144 and GRUB_KERNEL_CPU_PREFIX.
39145
b86408f8 391462008-08-14 Felix Zielcke <fzielcke@z-51.de>
39147
d5e619ca 39148 * include/grub/err.h (grub_err_printf): New function prototype.
39149 * util/misc.c (grub_err_printf): New function.
39150 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
39151 grub_printf.
39152 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 39153
7161f0e0 391542008-08-13 Robert Millan <rmh@aybabtu.com>
39155
39156 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
39157
a1967522 391582008-08-13 Robert Millan <rmh@aybabtu.com>
39159
39160 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
39161 boot entry.
39162
371458b5 391632008-08-12 Robert Millan <rmh@aybabtu.com>
39164
39165 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
39166 of the relocation code from here ...
39167 (grub_multiboot): ... to here.
39168 (forward_relocator, backward_relocator): Move from here ...
39169 * kern/i386/loader.S (grub_multiboot_forward_relocator)
39170 (grub_multiboot_backward_relocator): ... to here.
39171 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
39172 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
39173 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
39174 (grub_multiboot_forward_relocator_end)
39175 (grub_multiboot_backward_relocator)
39176 (grub_multiboot_backward_relocator_end): New variables.
39177
05f9452b 391782008-08-12 Bean <bean123ch@gmail.com>
39179
39180 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
39181
20024ab0 391822008-08-11 Robert Millan <rmh@aybabtu.com>
39183
39184 * kern/i386/linuxbios/startup.S: Move from here ...
39185 * kern/i386/coreboot/startup.S: ... to here.
39186
39187 * kern/i386/linuxbios/init.c: Move from here ...
39188 * kern/i386/coreboot/init.c: ... to here.
39189
39190 * kern/i386/linuxbios/table.c: Move from here ...
39191 * kern/i386/coreboot/mmap.c: ... to here.
39192
39193 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
39194
e352e9cd 391952008-08-11 Robert Millan <rmh@aybabtu.com>
39196
39197 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
39198 errors. Leave it to the upper layer to handle them.
39199
2d05bc6a 392002008-08-09 Christian Franke <franke@computer.org>
39201
39202 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
39203 * conf/common.rmk: Install `grub-pe2elf' only if requested.
39204 Install `grub.d/10_windows' only on Cygwin.
39205 * configure.ac: Add subst of `target_os'.
39206 Check `target_os' also before setting TARGET_OBJ2ELF.
39207 Add `--enable-grub-pe2elf'.
39208
042bd419 392092008-08-08 Robert Millan <rmh@aybabtu.com>
39210
39211 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39212 (grub_last_time): Change type to grub_uint64_t.
39213 (grub_disk_open): Migrate code from to using grub_get_time_ms().
39214 (grub_disk_close): Likewise.
39215
39216 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39217 (run_menu): Migrate code from to using grub_get_time_ms().
39218
39219 * util/misc.c (grub_get_time_ms): New function.
39220
7f280db5 392212008-08-08 Marco Gerards <marco@gnu.org>
39222
39223 * disk/ata.c (grub_ata_regget): Change return type to
39224 `grub_uint8_t'.
39225 (grub_ata_regget2): Likewise.
39226 (grub_ata_wait_status): New function.
39227 (grub_ata_wait_busy): Removed function, updated all users to use
39228 `grub_ata_wait_status'.
39229 (grub_ata_wait_drq): Likewise.
39230 (grub_ata_cmd): New function.
39231 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
39232 error handling.
39233 (grub_ata_pio_write): Add error handling.
39234 (grub_atapi_identify): Likewise.
39235 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
39236 handling.
39237 (grub_ata_identify): Use `grub_ata_cmd' and improve error
39238 handling. Actually use the detected registers. Reorder the
39239 detection logic such that it is easier to read.
39240 (grub_ata_pciinit): Do not assign the same ID to each controller.
39241 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
39242 handling.
39243 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
39244
39245 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
39246
1fbc5e66 392472008-08-08 Marco Gerards <marco@gnu.org>
39248
39249 * NEWS: Update.
39250
819ce6c0 392512008-08-07 Bean <bean123ch@gmail.com>
39252
39253 * include/grub/x86_64/pci.h: New file.
39254
5c41d44d 392552008-08-07 Christian Franke <franke@computer.org>
39256
39257 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
39258 (TIMER2_GATE): Likewise.
39259 (grub_pit_wait): Add enable/disable of the timer2 gate
39260 bit of port 0x61. This fixes a possible infinite loop.
39261
5ebc275d 392622008-08-07 Bean <bean123ch@gmail.com>
39263
39264 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
39265 kern/i386/tsc.c and kern/i386/pit.c.
39266
39267 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
39268 x86_64 platform.
39269
39270 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
39271 <grub/i386/tsc.h>.
39272
39273 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
39274
e383b3d0 392752008-08-07 Bean <bean123ch@gmail.com>
39276
39277 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
39278
39279 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
39280
39281 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
39282 multiple inclusion. Add #include <grub/types.h>.
39283
1cbb58ac 392842008-08-06 Christian Franke <franke@computer.org>
39285
39286 * conf/common.rmk: Build and install `10_windows'.
39287 * util/grub.d/10_windows.in: New script.
39288
337f5a1e 392892008-08-06 Pavel Roskin <proski@gnu.org>
39290
39291 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
39292
057bc4ac 392932008-08-06 Robert Millan <rmh@aybabtu.com>
39294
39295 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
39296 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
39297
2b99f123 392982008-08-06 Bean <bean123ch@gmail.com>
39299
39300 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
39301 (grub_pxefs_fs_int): Remove dummy definition.
39302 (grub_pxefs_open): Use data->block_size to store the current block
39303 size setting.
39304 (grub_pxefs_read): Use block size stored in data->block_size. As the
39305 value of grub_pxe_blksize can be changed after the file is opened.
39306
9f0234cb 393072008-08-06 Bean <bean123ch@gmail.com>
39308
39309 * fs/i386/pc/pxe.c (curr_file): new variable.
39310 (grub_pxefs_open): Simply the handling of pxe file system. Don't
39311 require the dummy internal file system anymore.
39312 (grub_pxefs_read): Removed.
39313 (grub_pxefs_close): Likewise.
39314 (grub_pxefs_fs_int): Likewise.
39315 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
39316 connection when we switch file.
39317 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
39318
a55d42e0 393192008-08-06 Robert Millan <rmh@aybabtu.com>
39320
39321 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
39322 `halt.mod'.
39323 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
39324 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
39325
39326 * kern/i386/halt.c: New file.
39327 * kern/i386/reboot.c: Likewise.
39328 * include/grub/i386/reboot.h: Likewise.
39329 * include/grub/i386/halt.h: Likewise.
39330
39331 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
39332 Include `<grub/cpu/halt.h>'.
39333 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
39334 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
39335
39336 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
39337 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
39338 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
39339 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
39340 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
39341 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
39342 from here ...
39343 * include/grub/i386/at_keyboard.h: ... to here.
39344
24371d26 393452008-08-05 Robert Millan <rmh@aybabtu.com>
39346
39347 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
39348 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
39349 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
39350 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39351 `kern/generic/millisleep.c'.
39352
39353 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
39354 instead of grub_get_rtc().
39355 (grub_tsc_init): Initialize `tsc_boot_time'.
39356
39357 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
39358 (grub_machine_init): Use grub_tsc_init() rather than
39359 installing an RTC-based handler via grub_install_get_time_ms().
39360
39361 * kern/i386/pit.c: New file.
39362 * include/grub/i386/pit.h: Likewise.
39363
9e7007b3 393642008-08-05 Bean <bean123ch@gmail.com>
39365
39366 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
39367
39368 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
39369 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
39370 (pxe_mod_SOURCES): New macro.
39371 (pxe_mod_CFLAGS): Likewise.
39372 (pxe_mod_LDFLAGS): Likewise.
39373 (pxecmd_mod_SOURCES): Likewise.
39374 (pxecmd_mod_CFLAGS): Likewise.
39375 (pxecmd_mod_LDFLAGS): Likewise.
39376
39377 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
39378 (grub_pxe_call): Likewise.
39379
39380 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
39381
39382 * commands/i386/pc/pxecmd.c: New file.
39383
9f0234cb 39384 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 39385
39386 * include/grub/i386/pc/pxe.h: Likewise.
39387
6977d49f 393882008-08-05 Bean <bean123ch@gmail.com>
39389
39390 * util/console.c (grub_console_cur_color): New variable.
39391 (grub_console_standard_color): Likewise.
39392 (grub_console_normal_color): Likewise.
39393 (grub_console_highlight_color): Likewise.
39394 (color_map): Likewise.
39395 (use_color): Likewise.
39396 (NUM_COLORS): New macro.
39397 (grub_ncurses_setcolorstate): Handle color properly.
39398 (grub_ncurses_setcolor): Don't change color here, just remember the
39399 settings, color will be set in grub_ncurses_setcolorstate.
39400 (grub_ncurses_getcolor): New function.
39401 (grub_ncurses_init): Initialize color pairs.
39402 (grub_ncurses_term): New member grub_ncurses_getcolor.
39403
9c2ff3ee 394042008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 39405
9c2ff3ee 39406 High resolution timer support. Implemented for x86 CPUs using TSC.
39407 Extracted generic grub_millisleep() so it's linked in only as needed.
39408 This requires a Pentium compatible CPU; if the RDTSC instruction is
39409 not supported, then it falls back on the generic grub_get_time_ms()
39410 implementation that uses the machine's RTC.
39411
39412 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
39413 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39414 `kern/generic/millisleep.c'.
39415
39416 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
39417 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
39418
39419 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
39420 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
39421
39422 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39423
39424 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39425 `kern/generic/millisleep.c'.
39426
39427 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39428
39429 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
39430
39431 * kern/generic/rtc_get_time_ms.c: New file.
39432
39433 * kern/generic/millisleep.c: New file.
337f5a1e 39434
9c2ff3ee 39435 * kern/misc.c: Don't include
39436 <kern/time.h> anymore.
39437 (grub_millisleep_generic): Removed.
39438
39439 * commands/sleep.c (grub_interruptible_millisleep): Uses
39440 grub_get_time_ms() instead of grub_get_rtc().
39441
39442 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
39443 function.
39444 (grub_cpu_is_cpuid_supported): New inline function.
39445 (grub_cpu_is_tsc_supported): New inline function.
39446 (grub_tsc_init): New function prototype.
39447 (grub_tsc_get_time_ms): New function prototype.
39448
39449 * kern/i386/tsc.c (grub_get_time_ms): New file.
39450
39451 * include/grub/time.h: Include <grub/types.h.
39452 (grub_millisleep_generic): Removed.
39453 (grub_get_time_ms): New prototype.
39454 (grub_install_get_time_ms): New prototype.
39455 (grub_rtc_get_time_ms): New prototype.
39456
39457 * kern/time.c (grub_get_time_ms): New function.
39458 (grub_install_get_time_ms): New function.
39459
39460 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
39461 <grub/time.h> anymore.
39462 (grub_millisleep): Removed.
39463 (grub_machine_init): Call grub_tsc_init.
39464
39465 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
39466 get_time_ms() implementation.
39467
39468 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
39469 (ieee1275_get_time_ms): New function.
39470 (grub_machine_init): Install get_time_ms() implementation.
39471
39472 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
39473 (grub_machine_init): Call grub_tsc_init().
39474 (grub_millisleep): Removed.
bf06a93f 39475
9c2ff3ee 39476 * kern/ieee1275/init.c (grub_millisleep): Removed.
39477 (grub_machine_init): Install ieee1275_get_time_ms()
39478 implementation.
39479 (ieee1275_get_time_ms): New function.
39480 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
39481 real work.
39482
9ec92aaf 394832008-08-05 Marco Gerards <marco@gnu.org>
39484
39485 * disk/ata.c: Include <grub/pci.h>.
39486 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
39487 (grub_ata_initialize): Rewritten.
39488 (grub_ata_device_initialize): New function.
39489
8d23f507 394902008-08-04 Pavel Roskin <proski@gnu.org>
39491
39492 * kern/main.c: Include grub/mm.h.
39493
5e15ee3d 394942008-08-04 Robert Millan <rmh@aybabtu.com>
39495
39496 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
39497 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
39498 corruption problem).
39499
a9053f8f 395002008-08-04 Robert Millan <rmh@aybabtu.com>
39501
39502 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
39503 warnings introduced in my last commit.
39504
dd19c7d7 395052008-08-03 Robert Millan <rmh@aybabtu.com>
39506
39507 Make PCI available on all i386 architectures.
39508
39509 * include/grub/i386/pc/pci.h: Move from here ...
39510 * include/grub/i386/pci.h: ... to here.
39511
39512 * include/grub/i386/pc/pci.h: Remove.
39513 * include/grub/i386/efi/pci.h: Remove.
39514 * include/grub/x86_64/efi/pci.h: Remove.
39515
39516 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
39517 `<grub/cpu/pci.h>'.
39518
39519 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
39520 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
39521 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
39522
39523 * conf/i386-ieee1275.rmk: Likewise.
39524
e14a6184 395252008-08-03 Robert Millan <rmh@aybabtu.com>
39526
39527 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
39528 (grub_console_setcursor): Make it possible to set cursor off.
39529
52768e37 395302008-08-03 Robert Millan <rmh@aybabtu.com>
39531
39532 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
39533 of modules instead of assuming which platform provides what.
39534 * util/update-grub.in: Likewise.
39535
2d52f57f 395362008-08-03 Robert Millan <rmh@aybabtu.com>
39537
39538 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
39539 instead of `grub_install_dos_part' to determine whether a drive needs
39540 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 39541 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 39542
2a5cd121 395432008-08-02 Robert Millan <rmh@aybabtu.com>
39544
39545 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
39546
93808428 395472008-08-02 Robert Millan <rmh@aybabtu.com>
39548
39549 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
39550 of informational grub_dprintf() calls.
39551
3bd0a12a 395522008-08-02 Robert Millan <rmh@aybabtu.com>
39553
39554 * disk/memdisk.c (memdisk_size): Don't initialize.
39555 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
39556
39557 * include/grub/i386/pc/kernel.h
39558 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
39559 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
39560 (grub_memdisk_image_size, grub_arch_memdisk_addr)
39561 (grub_arch_memdisk_size): Remove.
39562
39563 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
39564 field (was only used to transfer a constant). Add `type' field to
39565 support multiple module types.
39566 (grub_module_iterate): New function.
39567
39568 * kern/device.c (grub_device_open): Do not hide error messages
39569 when grub_disk_open() fails. Use grub_print_error() instead.
39570
39571 * kern/i386/pc/init.c (grub_arch_modules_addr)
39572 (grub_arch_memdisk_size): Remove functions.
39573 (grub_arch_modules_addr): Return the module address in high memory
39574 (now that it isn't copied anymore).
39575
39576 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
39577 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
39578 decompression routine (grub_total_module_size already includes that
39579 now). Don't copy modules back to low memory.
39580
39581 * kern/main.c: Include `<grub/mm.h>'.
39582 (grub_load_modules): Split out (and use) ...
39583 (grub_module_iterate): ... this function, which iterates through
39584 module objects and runs a hook.
39585 Comment out grub_mm_init_region() call, as it would cause non-ELF
39586 modules to be overwritten.
39587
39588 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
39589 the memdisk image in its own region, make it part of the module list.
39590 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
39591 (main): Parse --memdisk|-m option, and pass user-provided path as
39592 parameter to generate_image().
39593 (add_segments): Pass `memdisk_path' down to load_modules().
39594 (load_modules): Embed memdisk image in module section when requested.
39595 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
39596 `header.type' instead of `header.offset'.
39597
39598 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
39599 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
39600 (memdisk_mod_LDFLAGS): New variables.
39601 * conf/i386-coreboot.rmk: Likewise.
39602 * conf/i386-ieee1275.rmk: Likewise.
39603
a927cc73 396042008-08-02 Robert Millan <rmh@aybabtu.com>
39605
39606 * loader/i386/pc/multiboot.c (playground, forward_relocator)
39607 (backward_relocator): New variables. Used to allocate and relocate
39608 the payload, respectively.
39609 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 39610 address, install the appropriate relocator code in each bound of
a927cc73 39611 the payload, and set the entry point such that
39612 grub_multiboot_real_boot() will jump to one of them.
39613
39614 * kern/i386/loader.S (grub_multiboot_payload_size)
39615 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
39616 (grub_multiboot_payload_entry_offset): New variables.
39617 (grub_multiboot_real_boot): Set cpu context to what the relocator
39618 expects, and jump to the relocator instead of the payload.
39619
39620 * include/grub/i386/loader.h (grub_multiboot_payload_size)
39621 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
39622 (grub_multiboot_payload_entry_offset): Export.
39623
b15d8a0c 396242008-08-01 Bean <bean123ch@gmail.com>
39625
39626 * normal/menu_entry.c (editor_getline): Don't return the original
39627 string as result, as it will be released by lexer once it has done
39628 using it.
39629
cdfb3d22 396302008-08-01 Robert Millan <rmh@aybabtu.com>
39631
39632 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
39633 within menuentries, not before them.
39634 util/grub.d/10_hurd.in: Likewise.
39635
9175e93d 396362008-08-01 Bean <bean123ch@gmail.com>
39637
39638 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
39639 (bufio_mod_SOURCES): New macro.
39640 (bufio_mod_CFLAGS): Likewise.
39641 (bufio_mod_LDFLAGS): Likewise.
39642
39643 * include/grub/bufio.h: New file.
39644
39645 * io/bufio.c: Likewise.
39646
39647 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
39648 (grub_video_reader_png): Use grub_buffile_open to open file.
39649
39650 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
39651 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
39652
39653 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
39654 (grub_video_reader_tga): Use grub_buffile_open to open file.
39655
39656 * font/manager.c: Include <grub/bufio.h>.
39657 (add_font): Use grub_buffile_open to open file.
39658
3d8383e7 396592008-07-31 Robert Millan <rmh@aybabtu.com>
39660
39661 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
39662 ELF segments, use a macro for arbitrarily accessing any of them instead
39663 of preparing a pointer that allows access to one at a time.
39664 (grub_multiboot_load_elf64): Likewise.
39665
16e641b6 396662008-07-31 Bean <bean123ch@gmail.com>
39667
39668 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
39669 GRUB_KERNEL_MACHINE_DATA_END.
39670
59198b72 396712008-07-30 Robert Millan <rmh@aybabtu.com>
39672
39673 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
39674 Increase from 0x50 to 0x60.
39675 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
39676 use UUIDs to identify the root drive for them. If that's not
39677 possible, abort.
39678 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
39679 check, for cross-disk installs.
39680
ae88bca3 396812008-07-30 Robert Millan <rmh@aybabtu.com>
39682
39683 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
39684 is non-empty, use it to set the `prefix' environment variable instead
39685 of the usual approach.
39686 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
39687 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
39688 environment variable instead of dummy make_install_device().
39689
39690 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
39691 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 39692 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 39693
39694 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
39695 New variable reference.
39696 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
39697 New macro. Defines offset of `grub_prefix' within startup.S (relative
39698 to `start').
39699 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
39700 section within startup.S (relative to `start').
39701 * include/grub/i386/coreboot/kernel.h: Likewise.
39702
39703 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
39704 Overwrite grub_prefix with its contents, at the beginning of the
39705 first segment.
39706 (main): Understand -p|--prefix.
39707
14f41dd1 397082008-07-30 Robert Millan <rmh@aybabtu.com>
39709
39710 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
39711
4ca049a3 397122008-07-30 Robert Millan <rmh@aybabtu.com>
39713
39714 * term/i386/pc/vga_text.c (grub_console_cls): Use
39715 grub_console_gotoxy() to go back to beginning of the screen.
39716 Found by Patrick Georgi <patrick.georgi@coresystems.de>
39717
2921d337 397182008-07-29 Christian Franke <franke@computer.org>
39719
39720 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
39721 Add conversion of emulated mount points on Cygwin.
39722
b609876d 397232008-07-29 Christian Franke <franke@computer.org>
39724
39725 * util/update-grub.in: Add a check for admin
39726 group on Cygwin.
39727 Remove old `grub.cfg.new' before creation.
39728 Add `-f' to `mv' to handle the different filesystem
39729 semantics of Windows.
39730
e93e4679 397312008-07-29 Bean <bean123ch@gmail.com>
39732
39733 * normal/main.c (get_line): Fix buffer overflow bug.
39734
41694fd0 397352008-07-28 Robert Millan <rmh@aybabtu.com>
39736
39737 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
39738 (struct grub_apple_header): New struct. Describes the layout of
39739 the partmap header.
39740 (apple_partition_map_iterate): Check the header magic as well as the
39741 partition magic (which was already being checked).
39742
cfd0b4e6 397432008-07-28 Pavel Roskin <proski@gnu.org>
39744
39745 * genmk.rb: Add a warning to the beginning of the output that
39746 it's a generated file and should not be edited.
39747
93cce016 397482008-07-28 Robert Millan <rmh@aybabtu.com>
39749
39750 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39751 with the same number are found, just use issue a warning with
39752 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 39753
cd1df915 397542008-07-27 Robert Millan <rmh@aybabtu.com>
39755
39756 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
39757 information.
39758
b70a8427 397592008-07-27 Bean <bean123ch@gmail.com>
39760
39761 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
39762 (grub_fat_find_dir): Ignore case when comparing filename.
39763
8f5e379f 397642008-07-27 Bean <bean123ch@gmail.com>
39765
39766 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
39767 smallino, as it's more descriptive, and i8count can be confused with
39768 the other field count.
39769 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
39770 inode type.
39771
a85cd5a0 397722008-07-27 Bean <bean123ch@gmail.com>
39773
39774 * commands/crc.c: New file.
39775
39776 * lib/crc.c: Likewise.
39777
39778 * include/grub/lib/crc.h: Likewise.
39779
39780 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
39781
39782 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
39783 (hexdump): Move this function to ...
39784
39785 * lib/hexdump.c: ... here.
39786
39787 * include/grub/hexdump.h: Renamed to ...
39788
39789 * include/grub/lib/hexdump.h: ... this.
39790
39791 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
39792
39793 * util/grub-editenv.c: Likewise.
39794
39795 * include/envblk.h: Renamed to ...
39796
39797 * include/lib/envblk.h: ... this.
39798
39799 * util/envblk.c: Renamed to ...
39800
39801 * lib/envblk.c: ... this.
39802
39803 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
39804 lib/hexdump.c.
39805 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
39806 (pkglib_MODULES): Add crc.mod.
39807 (hexdump_mod_SOURCES): Add lib/hexdump.c.
39808 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
39809 (crc_mod_SOURCES): New macro.
39810 (crc_mod_CFLAGS): Likewise.
39811 (crc_mod_LDFLAGS): Likewise.
39812
39813 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
39814
39815 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39816
39817 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39818
39819 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39820
39821 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39822
c298def0 398232008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 39824
39825 * commands/help.c: Include <grub/term.h>.
39826 (TERM_WIDTH): Removed. Updated all users.
39827
cc349fb3 398282008-07-27 Pavel Roskin <proski@gnu.org>
39829
39830 * util/getroot.c (find_root_device): Rephrase a comment to avoid
39831 spurious warnings about a comment within a comment.
39832
9051607e 398332008-07-25 Robert Millan <rmh@aybabtu.com>
39834
39835 * util/getroot.c (find_root_device): Skip devices that match
39836 /dev/dm-[0-9]. This lets the real device be found for any type of
39837 abstraction (LVM, EVMS, RAID..).
39838 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
39839 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
39840 device is found first, find_root_device() will now skip it.
39841
01453bfc 398422008-07-24 Pavel Roskin <proski@gnu.org>
39843
39844 * include/grub/types.h: Use __builtin_bswap32() and
39845 __builtin_bswap64() with gcc 4.3 and newer.
39846
6af9849f 398472008-07-24 Christian Franke <franke@computer.org>
39848
3a0fa256 39849 * util/i386/pc/grub-install.in: If `--debug' is specified,
39850 pass `--verbose' to grub-setup.
39851 Abort script if make_system_path_relative_to_its_root() fails.
39852
7810e747 398532008-07-24 Bean <bean123ch@gmail.com>
39854
39855 * configure.ac: Fixed a bug caused by the previous cygwin patch,
39856 variable `target_platform' should be `platform'.
39857
42290e17 398582008-07-24 Bean <bean123ch@gmail.com>
39859
51cc5193 39860 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 39861 (grub_png_init_fixed_block): New function.
39862 (grub_png_decode_image_data): Handle fixed huffman code compression.
39863
2a8a80e4 398642008-07-24 Bean <bean123ch@gmail.com>
39865
39866 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
39867 (grub_pe2elf_SOURCES): New macro.
39868 (CLEANFILES): Add grub-pe2elf.
39869
39870 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
39871 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
39872 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
39873 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
39874 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
39875 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
39876 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
39877 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
39878 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
39879 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
39880 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
39881 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
39882 (GRUB_PE32_DT_FUNCTION): Likewise.
39883 (GRUB_PE32_REL_I386_DIR32): Likewise.
39884 (GRUB_PE32_REL_I386_REL32): Likewise.
39885 (grub_pe32_symbol): New structure.
39886 (grub_pe32_reloc): Likewise.
39887
39888 * util/grub-pe2elf.c: New file.
39889
39890 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
39891 start symbol in non pc platform.
39892
39893 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
39894
39895 The following patches are from Christian Franke.
39896
39897 * include/grub/dl.h: Remove .previous, gas supports this only
39898 for ELF format.
39899
39900 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
39901 Remove .type, gas supports this only for ELF format.
39902
39903 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
39904 nullbytes in symbol table. This fixes an infinite loop if table is
39905 zero filled.
39906
39907 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
39908 TARGET_IMG_LDFLAGS and EXEEXT.
39909
39910 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
39911 TARGET_IMG_LDFLAGS_AC.
39912 (grub_CHECK_STACK_ARG_PROBE): New function.
39913
39914 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
39915
39916 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
39917
39918 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
39919 to set TARGET_IMG_LD* accordingly.
39920 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
39921 Add call to grub_CHECK_STACK_ARG_PROBE.
39922 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
39923
39924 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
39925
39926 * genmk.rb: Add EXEEXT to CLEANFILES.
39927
12ccdb75 399282008-07-23 Robert Millan <rmh@aybabtu.com>
39929
39930 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
39931 define the codes for arrows and lines used for the menu).
39932 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
39933 as well.
39934
39935 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
39936 fonts, because the latter are too slow.
39937
18eeaf04 399382008-07-21 Bean <bean123ch@gmail.com>
39939
39940 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
39941 a20. Run keyboard test last, as it will cause macbook to halt.
39942
b095e2ad 399432008-07-18 Pavel Roskin <proski@gnu.org>
39944
39945 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
39946 load foreign architecture modules correctly anyway. Keep
39947 support for loading host architecture modules, whether we
39948 compile them or not.
39949
737feb35 399502008-07-17 Pavel Roskin <proski@gnu.org>
39951
3f4ce737 39952 * configure.ac: Use -m32 or -m64 regardless of whether we had to
39953 change target_cpu. The compiler default can mismatch target_cpu
39954 in any case.
39955
4ad2d049 39956 * disk/efi/efidisk.c: Fix format warnings on x86_64.
39957 * kern/efi/efi.c: Likewise.
39958
f6130a12 39959 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
39960 target compiler is functional.
39961 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
39962 are set up.
39963
58393a2d 39964 * configure.ac: Default to efi platform for x86_64-apple. Allow
39965 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
39966 adjustments from the rest, only do them if target is not
39967 explicitly given. Merge other adjustments with the final sanity
39968 check. Remove an extraneous check for supported CPU. Be
39969 specific which CPU and which platform is not supported.
39970
737feb35 39971 * configure.ac: Default to pc platform for x86_64.
39972
546f966a 399732008-07-17 Robert Millan <rmh@aybabtu.com>
39974
39975 Partial LinuxBIOS -> Coreboot rename.
39976
39977 * conf/i386-linuxbios.rmk: Renamed to ...
39978 * conf/i386-coreboot.rmk: ... this.
39979 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
39980 * configure.ac: Accept "coreboot" as input platform (but maintain
39981 compatibility with "linuxbios").
39982 * include/grub/i386/linuxbios: Renamed to ...
39983 * include/grub/i386/coreboot: ... this.
39984
20011694 399852008-07-17 Bean <bean123ch@gmail.com>
39986
39987 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 39988 (appleldr_mod_SOURCE): New variable.
20011694 39989 (appleldr_mod_CFLAGS): Likewise.
39990 (appleldr_mod_LDFLAGS): Likewise.
39991 (pci_mod_SOURCES): Likewise.
39992 (pci_mod_CFLAGS): Likewise.
39993 (pci_mod_LDFLAGS): Likewise.
39994 (lspci_mod_SOURCES): Likewise.
39995 (lspci_mod_CFLAGS): Likewise.
39996 (lspci_mod_LDFLAGS): Likewise.
39997
39998 * conf/x86_64-efi.rmk: New file.
39999
40000 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
40001 macro.
40002 (grub_efidisk_write): Likewise.
40003
40004 * include/efi/api.h (efi_call_0): New macro.
40005 (efi_call_1): Likewise.
40006 (efi_call_2): Likewise.
40007 (efi_call_3): Likewise.
40008 (efi_call_4): Likewise.
40009 (efi_call_5): Likewise.
40010 (efi_call_6): Likewise.
40011
40012 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
40013 grub_rescue_cmd_chainloader.
40014
40015 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
40016 (grub_pe32_optional_header): Change some fields based on i386 or
40017 x86_64 platform.
40018 (GRUB_PE32_PE32_MAGIC): Likewise.
40019
40020 * include/grub/efi/uga_draw.h: New file.
40021
40022 * include/grub/elf.h (STN_ABS): New constant.
40023 (R_X86_64_NONE): Relocation constant for x86_64.
40024 (R_X86_64_64): Likewise.
40025 (R_X86_64_PC32): Likewise.
40026 (R_X86_64_GOT32): Likewise.
40027 (R_X86_64_PLT32): Likewise.
40028 (R_X86_64_COPY): Likewise.
40029 (R_X86_64_GLOB_DAT): Likewise.
40030 (R_X86_64_JUMP_SLOT): Likewise.
40031 (R_X86_64_RELATIVE): Likewise.
40032 (R_X86_64_GOTPCREL): Likewise.
40033 (R_X86_64_32): Likewise.
40034 (R_X86_64_32S): Likewise.
40035 (R_X86_64_16): Likewise.
40036 (R_X86_64_PC16): Likewise.
40037 (R_X86_64_8): Likewise.
40038 (R_X86_64_PC8): Likewise.
40039
40040 * include/grub/i386/efi/pci.h: New file.
40041
40042 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
40043 Change it value based on platform.
40044 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
40045 (GRUB_E820_RAM): Likewise.
40046 (GRUB_E820_RESERVED): Likewise.
40047 (GRUB_E820_ACPI): Likewise.
40048 (GRUB_E820_NVS): Likewise.
40049 (GRUB_E820_EXEC_CODE): Likewise.
40050 (GRUB_E820_MAX_ENTRY): Likewise.
40051 (grub_e820_mmap): New structure.
40052 (linux_kernel_header): Change the efi field according to different
40053 kernel version, also field from linux_kernel_header.
40054
40055 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
40056
40057 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
40058 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
40059 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
40060 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
40061 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
40062 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
40063 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
40064 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
40065 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
40066 (GRUB_PCI_ADDR_IO_MASK): Likewise.
40067
40068 * include/grub/x86_64/efi/kernel.h: New file.
40069
40070 * include/grub/x86_64/efi/loader.h: Likewise.
40071
40072 * include/grub/x86_64/efi/machine.h: Likewise.
40073
40074 * include/grub/x86_64/efi/pci.h: Likewise.
40075
40076 * include/grub/x86_64/efi/time.h: Likewise.
40077
40078 * include/grub/x86_64/linux.h: Likewise.
40079
40080 * include/grub/x86_64/setjmp.h: Likewise.
40081
40082 * include/grub/x86_64/time.h: Likewise.
40083
40084 * include/grub/x86_64/types.h: Likewise.
40085
40086 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
40087 GRUB_TARGET_SIZEOF_VOID_P.
40088
40089 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
40090 (grub_efi_locate_handle): Likewise.
40091 (grub_efi_open_protocol): Likewise.
40092 (grub_efi_set_text_mode): Likewise.
40093 (grub_efi_stall): Likewise.
40094 (grub_exit): Likewise.
40095 (grub_reboot): Likewise.
40096 (grub_halt): Likewise.
40097 (grub_efi_exit_boot_services): Likewise.
40098 (grub_get_rtc): Likewise.
40099
40100 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
40101 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
40102 (grub_efi_allocate_pages): Wrap efi calls.
40103 (grub_efi_free_pages): Wrap efi calls.
40104 (grub_efi_get_memory_map): Wrap efi calls.
40105
40106 * kern/x86_64/dl.c: New file.
40107
40108 * kern/x86_64/efi/callwrap.S: Likewise.
40109
40110 * kern/x86_64/efi/startup.S: Likewise.
40111
40112 * loader/efi/appleloader.c: Likewise.
40113
40114 * loader/efi/chainloader.c (cmdline): New variable.
40115 (grub_chainloader_unload): Wrap efi calls.
40116 (grub_chainloader_boot): Likewise.
40117 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
40118 command line.
40119
40120 * loader/efi/chainloader_normal.c (chainloader_command):
40121 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
40122 command line.
40123
40124 * loader/i386/efi/linux.c (allocate_pages): Change allocation
40125 method.
40126 (grub_e820_add_region): New function.
40127 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
40128 booting.
40129 (grub_find_video_card): New function.
40130 (grub_linux_setup_video): New function.
40131 (grub_rescue_cmd_linux): Probe for video information.
40132
40133 * normal/x86_64/setjmp.S: New file.
40134
40135 * term/efi/console.c (map_char): New function.
40136 (grub_console_putchar): Map unicode char.
40137 (grub_console_checkkey): Wrap efi calls.
40138 (grub_console_getkey): Likewise.
40139 (grub_console_getwh): Likewise.
40140 (grub_console_gotoxy): Likewise.
40141 (grub_console_cls): Likewise.
40142 (grub_console_setcolorstate): Likewise.
40143 (grub_console_setcursor): Likewise.
40144
40145 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
40146
59652a20 401472008-07-16 Pavel Roskin <proski@gnu.org>
40148
ef294055 40149 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
40150 format strings.
40151
59652a20 40152 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
40153 pointer, not an integer. This fixes a warning and prevents
40154 precision loss on 64-bit systems.
40155 (relocate_addresses): Remove unneeded cast.
40156
afc3b5d7 401572008-07-15 Pavel Roskin <proski@gnu.org>
40158
506b2b3e 40159 * kern/i386/ieee1275/init.c: Include grub/cache.h.
40160
62ead89c 40161 * term/ieee1275/ofconsole.c: Disable code unused on i386.
40162
c4cd51d7 40163 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
40164 Fix comparison between signed and unsigned.
40165
0d3d8f28 40166 * include/grub/i386/ieee1275/console.h: Declare
40167 grub_console_init() and grub_console_fini().
40168
8804b286 40169 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
40170 It's empty and unused.
40171
ee01cf35 40172 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
40173 beginning to avoid warnings with some compilers.
40174
afc3b5d7 40175 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
40176 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
40177
e4e8eaa5 401782008-07-14 Pavel Roskin <proski@gnu.org>
40179
407aceb4 40180 * kern/env.c (grub_register_variable_hook): Don't copy empty
40181 string, it leaks memory. Pass "" to grub_env_set(), it should
40182 handle constant strings.
40183
e4e8eaa5 40184 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
40185 * commands/cmp.c (grub_cmd_cmp): Likewise.
40186 * kern/dl.c (grub_dl_flush_cache): Likewise.
40187 (grub_dl_load_core): Likewise.
40188 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
40189 (grub_elf64_load_phdrs): Likewise.
40190
d4e2dad3 401912008-07-13 Pavel Roskin <proski@gnu.org>
40192
40193 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
40194 between signed and unsigned.
40195 (LzmaEnc_Finish): Fix warning about an unused parameter.
40196
aa24b516 401972008-07-13 Bean <bean123ch@gmail.com>
40198
40199 * Makefile.in (enable_lzo): New rule.
40200
40201 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
40202
40203 * configure.ac (ENABLE_LZO): New option --enable-lzo.
40204
40205 * boot/i386/pc/lnxboot.S: #include <config.h>.
40206
40207 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 40208 its value according to the compression algorithm used, lzo or lzma.
aa24b516 40209
40210 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
40211 compression algorithm according to configure macro.
40212
40213 * kern/i386/pc/startup.S (codestart): Likewise.
40214
40215 * kern/i386/pc/lzma_decode.S: New file.
40216
40217 * include/grub/lib/LzFind.h: Likewise.
40218
40219 * include/grub/lib/LzHash.h: Likewise.
40220
40221 * include/grub/lib/LzmaDec.h: Likewise.
40222
40223 * include/grub/lib/LzmaEnc.h: Likewise.
40224
40225 * include/grub/lib/LzmaTypes.h: Likewise.
40226
40227 * lib/LzFind.c: Likewise.
40228
40229 * lib/LzmaDec.c: Likewise.
40230
40231 * lib/LzmaEnc.c: Likewise.
40232
4ae821ac 402332008-07-13 Bean <bean123ch@gmail.com>
40234
40235 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
40236 (grub_ext4_extent_header): New structure.
40237 (grub_ext4_extent): Likewise.
40238 (grub_ext4_extent_idx): Likewise.
40239 (grub_ext4_find_leaf): New function.
40240 (grub_ext2_read_block): Handle extents.
40241
9a745147 402422008-07-12 Robert Millan <rmh@aybabtu.com>
40243
40244 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
40245
d49a4cf6 402462008-07-11 Robert Millan <rmh@aybabtu.com>
40247
40248 * util/grub.d/40_custom.in: New file. Example on how to add custom
40249 entries to /etc/grub.d.
40250 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
40251 40_custom (implicitly, by merging all the grub.d rules).
40252
947414b4 402532008-07-11 Pavel Roskin <proski@gnu.org>
40254
0059cf6f 40255 * commands/read.c (grub_getline): Fix invalid memory access.
40256 Don't add newline to the variable value.
40257
947414b4 40258 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
40259 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
40260 (serial_hw_get_port): Check validity of the port number.
40261 (grub_cmd_serial): Check return value of serial_hw_get_port().
40262
62a02d00 402632008-07-07 Pavel Roskin <proski@gnu.org>
40264
40265 * boot/i386/pc/diskboot.S (notification_string): Replace
40266 "Loading kernel" with just "loading". This is shorter, less
40267 confusing and saves a few bytes for possible future changes.
40268
3e5581b0 402692008-07-05 Pavel Roskin <proski@gnu.org>
40270
ea387a48 40271 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
40272 size for ATAPI devices, they are undefined. Output sector
40273 number in decimal form.
40274
3e5581b0 40275 * disk/ata.c: Use named constants for status bits.
40276
fdecb8fd 402772008-07-04 Pavel Roskin <proski@gnu.org>
40278
bcd35b90 40279 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
40280 grub_addr_t before casting it to the void pointer to fix a
40281 warning. Non-addressable regions are discarded earlier.
40282 (grub_arch_modules_addr): Cast _end to grub_addr_t.
40283 * kern/i386/linuxbios/table.c: Include grub/misc.h.
40284 (check_signature): Don't shadow table_header.
40285 (grub_linuxbios_table_iterate): Cast numeric constants to
40286 grub_linuxbios_table_header_t.
40287 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
40288 grub_stop().
40289
af58ab3d 40290 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
40291 prevent warnings.
40292
1759aa57 40293 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
40294 pointer, which can cause warnings. Support 64-bit addresses.
40295
fdecb8fd 40296 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
40297 of sizeof(long). This fixes PowerPC image generation on x86_64.
40298
8516d2a8 402992008-07-04 Robert Millan <rmh@aybabtu.com>
40300
40301 This fixes a performance issue when pc & gpt partmap iterators
40302 didn't abort iteration even after our hook found what it was
fe987087 40303 looking for (often causing expensive probes of non-existent drives).
8516d2a8 40304
40305 Some callers relied on previous buggy behaviour, since they would
34c44600 40306 raise an error when their own hooks caused early abortion of its
8516d2a8 40307 iteration.
40308
40309 * kern/device.c (grub_device_open): Improve error message.
40310 * disk/lvm.c (grub_lvm_open): Likewise.
40311 * disk/raid.c (grub_raid_open): Likewise.
40312
40313 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
40314 when hook requests it, independently of grub_errno.
40315 (pc_partition_map_probe): Do not fail when find_func() caused
40316 early abortion of pc_partition_map_iterate().
40317
40318 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
40319 when hook requests it, independently of grub_errno.
40320 (gpt_partition_map_probe): Do not fail when find_func() caused
40321 early abortion of gpt_partition_map_iterate().
40322
40323 * kern/partition.c (grub_partition_iterate): Abort parent iteration
40324 when hook requests it, independently of grub_errno. Do not fail when
40325 part_map_iterate_hook() caused early abortion of p->iterate().
40326
40327 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
40328 when grub_partition_iterate() returned with non-zero.
40329
277d0de9 403302008-07-03 Pavel Roskin <proski@gnu.org>
40331
40332 * disk/ata.c (grub_ata_pio_write): Check status before writing,
40333 like we do in grub_ata_pio_read().
40334 (grub_ata_readwrite): Always write individual sectors. Fix the
40335 sector count for the remainder.
40336 (grub_ata_write): Enable writing to ATA devices. Correctly
40337 report error for ATAPI devices.
40338
d4c9b428 403392008-07-02 Pavel Roskin <proski@gnu.org>
40340
e43fc690 40341 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
40342 warning.
40343
f707af42 40344 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
40345 for every read sector, we already increment it for the whole
40346 batch. This fixes reading more than 256 sectors at once.
40347
11e16b15 40348 * util/grub-editenv.c (cmd_info): Cast argument to long
40349 explicitly. ptrdiff_t reduces to int on i386.
40350
cbabfdd4 40351 * util/grub-editenv.c (main): Be specific which parameter is
40352 missing.
40353
b8fbce0a 40354 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
40355 (memdisk): Make memdisk_orig_addr a pointer.
40356
c9c8e606 40357 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
40358 for file offsets, use grub_off_t instead. Fix printf format
40359 warnings.
40360
ca62e598 40361 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
40362 there. Real unexpected warnings should not drown in the noise
40363 about known problems.
40364
ce8d1766 40365 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
40366 grub_disk_addr_t for memory addresses.
40367
00c7a56a 40368 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
40369 explicitly to fix a warning.
40370
08d3ef09 40371 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
40372
cb71ba20 40373 * Makefile.in (MODULE_LDFLAGS): New variable.
40374 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
40375 the linker accepts --build-id=none.
40376 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
40377 MODULE_LDFLAGS.
40378 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
40379
d4c9b428 40380 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
40381 those in Linux XFS code. Provide a way to access 64-bit parent
40382 inode.
40383 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
40384 the end of struct grub_xfs_dir_header.
40385
d4156eee 403862008-07-02 Bean <bean123ch@gmail.com>
40387
40388 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
40389 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40390 and GRUB_IEEE1275_FLAG_NO_ANSI.
40391
40392 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
40393 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40394 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
40395
40396 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
40397 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
40398
40399 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
40400 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
40401
40402 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
40403 esc sequence on non ANSI terminal.
40404 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
40405
40406 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
40407 beginning of file.
40408
2270f77b 404092008-07-02 Bean <bean123ch@gmail.com>
40410
40411 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
40412 (grub_editenv_SOURCES): New variable.
40413 (pkglib_MODULES): Add loadenv.mod.
40414 (loadenv_mod_SOURCES): New variable.
40415 (loadenv_mod_CFLAGS): Likewise.
40416 (loadenv_mod_LDFLAGS): Likewise.
40417
40418 * include/grub/envblk.h: New file.
40419
40420 * util/envblk.c: New file.
40421
40422 * util/grub-editenv.c: New file.
40423
40424 * commands/loadenv.c: New file.
40425
0e9e51ec 404262008-07-01 Pavel Roskin <proski@gnu.org>
40427
d89b7634 40428 * include/multiboot2.h (struct multiboot_tag_module): Use char,
40429 not unsigned char. This fixes warnings and is consistent with
40430 other tags.
40431
bf1835b1 40432 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
40433
8222a04b 40434 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
40435
6a42d99d 40436 * term/tparm.c (analyze): Always set *popcount.
40437
10b159d1 40438 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
40439 cast to fix a warning.
40440
b8789f6c 40441 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
40442 cast to suppress a warning.
40443
29d7e38a 40444 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
40445 grub_fshelp_read_file() expects.
40446
f341f669 40447 * fs/fat.c: Fix UUID calculation on big-endian systems. We
40448 write uuid as a 32-bit value in CPU byte order, so declare and
40449 use it as such.
40450
0e9e51ec 40451 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
40452 long if the format specifier expects it.
40453 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
40454 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40455 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
40456 long to fix a warning.
40457 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
40458 grub_dprintf() arguments to fix warnings.
40459
3aefa857 404602008-06-30 Pavel Roskin <proski@gnu.org>
40461
56c7668b 40462 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
40463 install_bsd_part immediately before core.img is embedded or
40464 modified on disk. This fixes core.img verification if core.img
40465 cannot be embedded.
40466
3aefa857 40467 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
40468 core_path to calculate the blocklist.
40469 Patch from Javier Martín <lordhabbit@gmail.com>
40470
5444088d 404712008-06-29 Robert Millan <rmh@aybabtu.com>
40472
40473 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
40474 block to disk block.
40475 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
40476 Patch from Niels Böhm <bitbucket@arcor.de>
40477
674835c8 404782008-06-29 Robert Millan <rmh@aybabtu.com>
40479
40480 * util/update-grub_lib.in (font_path): Search for fonts in
40481 /boot/grub first, which is more likely to be readable (we aren't
40482 deciding where fonts live, just looking for them).
40483
f527dbc8 404842008-06-26 Pavel Roskin <proski@gnu.org>
40485
6c2d8df6 40486 * util/biosdisk.c (read_device_map): Don't leave dead map
40487 entries for devices failing stat() check.
40488
f527dbc8 40489 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
40490 core_path_dev for the core.img path on the target device.
40491
aebe3d13 404922008-06-26 Robert Millan <rmh@aybabtu.com>
40493
40494 * disk/fs_uuid.c: New file.
40495 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
40496 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
40497 (fs_uuid_mod_LDFLAGS): New variables.
40498 * include/grub/disk.h (grub_disk_dev_id): Add
40499 `GRUB_DISK_DEVICE_UUID_ID'.
40500 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
40501 implement iterate().
40502
37aaf354 405032008-06-26 Robert Millan <rmh@aybabtu.com>
40504
40505 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
40506 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
40507 Linux image includes no initrd.
40508
25ff262a 405092008-06-21 Javier Martín <lordhabbit@gmail.com>
40510
40511 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
40512 call to resolve the core image location that effectively appended the
40513 name twice.
40514
76a2bd44 405152008-06-21 Robert Millan <rmh@aybabtu.com>
40516
40517 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
40518 call from here ...
40519
40520 * util/grub.d/10_hurd.in: ... to here ...
40521 * util/grub.d/10_linux.in: ... and here.
40522
650e1c79 405232008-06-19 Robert Millan <rmh@aybabtu.com>
40524
fe987087 40525 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 40526 after it has been set by grub_machine_set_prefix().
40527
6ce63911 405282008-06-19 Robert Millan <rmh@aybabtu.com>
40529
40530 * commands/search.c (search_label, search_fs_uuid, search_file): Print
40531 search result when not saving to variable, not the other way around.
40532 When saving to variable, abort iteration as soon as a match is found.
40533
73940cec 405342008-06-19 Robert Millan <rmh@aybabtu.com>
40535
40536 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
40537 check for partition that provides /boot/grub. Its logic is flawed,
40538 as it prevents prepare_grub_to_access_device() from being called
40539 multiple times.
40540
3c62a39d 405412008-06-19 Robert Millan <rmh@aybabtu.com>
40542
40543 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
40544 "insmod" command directly when abstraction modules are needed,
fe987087 40545 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 40546 since it had already been processed).
40547
47395a42 405482008-06-19 Pavel Roskin <proski@gnu.org>
40549
40550 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
40551 changed. This is needed in case GRUB_LIBDIR changes.
40552 * conf/i386-ieee1275.rmk: Likewise.
40553 * conf/i386-linuxbios.rmk: Likewise.
40554 * conf/i386-pc.rmk: Likewise.
40555 * conf/powerpc-ieee1275.rmk: Likewise.
40556
a145ac2d 405572008-06-18 Pavel Roskin <proski@gnu.org>
40558
40559 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
40560 kernel_elf_symlist.c to symlist.c for consistency with other
40561 architectures. Update all users.
40562 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40563
7847c51e 405642008-06-18 Robert Millan <rmh@aybabtu.com>
40565
40566 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
40567 it in prefix.
40568
40569 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
40570 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
40571 a RAID device, run setup() for all members independently on whether
40572 LVM abstraction is being used.
40573 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
40574 If grub-mkimage has set `*install_dos_part == -2', don't override this
40575 value.
40576 Perform *install_dos_part adjustments independently on whether
40577 we're embedding or not.
40578 Clarify error message when image is too big for embedding.
40579 Remove duplicate *install_dos_part stanza.
40580
b23e5644 405812008-06-17 Robert Millan <rmh@aybabtu.com>
40582
40583 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
40584 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
40585 variables.
40586 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
40587 values in grub_ofconsole_normal_color and
40588 grub_ofconsole_highlight_color (they're not directly related to
40589 background and foreground).
40590 (grub_ofconsole_setcolorstate): Extract background and foreground
40591 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
40592
0aac2f79 405932008-06-17 Robert Millan <rmh@aybabtu.com>
40594
40595 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
40596 /boot/grub for the check in last commit, not /boot (they could be
40597 different partitions).
40598
3cca7ef3 405992008-06-16 Robert Millan <rmh@aybabtu.com>
40600
40601 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
40602 asked to setup access for the same partition that provides /boot,
40603 don't bother using UUIDs since our root already has the value we
40604 want.
40605
347396d8 406062008-06-16 Robert Millan <rmh@aybabtu.com>
40607
40608 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
40609 I2O devices.
40610 Patch from Sven Mueller <sven@debian.org>.
40611
991477f8 406122008-06-16 Robert Millan <rmh@aybabtu.com>
40613
40614 * util/update-grub.in: Check for $EUID instead of $UID.
40615 Reported by Vincent Zweije.
40616
d31a32a1 406172008-06-16 Bean <bean123ch@gmail.com>
40618
fe987087 40619 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 40620 (grub_ext2_read_block): Likewise.
40621 (grub_ext2_read_inode): Likewise.
40622 (grub_ext2_mount): Likewise.
40623 (grub_ext2_close): Likewise.
40624 (grub_ext3_get_journal): Removed.
40625
fe987087 40626 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 40627 (grub_reiserfs_read_symlink): Likewise.
40628 (grub_reiserfs_mount): Likewise.
40629 (grub_reiserfs_open): Likewise.
40630 (grub_reiserfs_read): Likewise.
40631 (grub_reiserfs_close): Likewise.
40632 (grub_reiserfs_get_journal): Removed.
40633
40634 * fs/fshelp.c (grub_fshelp_read): Removed.
40635 (grub_fshelp_map_block): Likewise.
40636
40637 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
40638 (grub_fshelp_journal): Likewise.
40639 (grub_fshelp_read): Likewise.
40640 (grub_fshelp_map_block): Likewise.
40641
3540a760 406422008-06-16 Pavel Roskin <proski@gnu.org>
40643
40644 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
40645 floating point anymore.
40646 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
40647
95614c84 406482008-06-15 Pavel Roskin <proski@gnu.org>
40649
40650 * commands/ls.c (grub_ls_list_files): Use integer calculations
40651 for human readable format, avoid floating point use.
40652 * kern/misc.c (grub_ftoa): Remove.
40653 (grub_vsprintf): Remove floating point support.
40654
50465dd6 406552008-06-15 Robert Millan <rmh@aybabtu.com>
40656
fe6b695a 40657 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 40658 devices.
40659 Reported by Max Vozeler.
40660
a9207284 406612008-06-15 Robert Millan <rmh@aybabtu.com>
40662
40663 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
40664 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
40665 skipped later.
40666 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
40667 the beginning of the prefix.
40668
40669 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
40670 It is assumed that if we have a memdisk, grub-mkimage has set
40671 grub_prefix to include the "(memdisk)" drive in it.
40672
a7cbd45a 406732008-06-15 Robert Millan <rmh@aybabtu.com>
40674
40675 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
40676 Initialize keyboard controller after registering the terminal, so that
40677 grub_printf() can be called from grub_keyboard_controller_init().
40678
21cf716a 406792008-06-15 Robert Millan <rmh@aybabtu.com>
40680
40681 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
40682 extent-btree which is written as big endian on disk.
40683 Reported by Alain Greppin <al@chilibi.org>.
40684
23a64d8e 406852008-06-14 Robert Millan <rmh@aybabtu.com>
40686
40687 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
40688 * util/i386/pc/grub-install.in (modules): Likewise.
40689
d687651c 406902008-06-13 Pavel Roskin <proski@gnu.org>
40691
40692 * commands/ls.c (grub_ls_list_files): Fix format warnings.
40693
dfe9ddd4 406942008-06-13 Bean <bean123ch@gmail.com>
40695
40696 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
40697
40698 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
40699
40700 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
40701 to indicate sparse block.
40702
16ae7781 407032008-06-12 Pavel Roskin <proski@gnu.org>
40704
e6d1a308 40705 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
40706 number, grub_fshelp_read() does it for us.
40707
16ae7781 40708 * fs/fshelp.c (grub_fshelp_read): New function. Implement
40709 linear disk read with journal translation.
40710 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
40711 * include/grub/fshelp.h: Declare grub_fshelp_read().
40712
40fd3a2b 407132008-06-09 Pavel Roskin <proski@gnu.org>
40714
40715 * fs/minix.c (grub_minix_mount): Handle error reading
40716 superblock.
40717
f5679726 407182008-06-08 Robert Millan <rmh@aybabtu.com>
40719
40720 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
40721 don't append the RAID prefix afterwards.
40722 Reported by Clint Adams.
40723
ce525529 407242008-06-08 Robert Millan <rmh@aybabtu.com>
40725
40726 Based on description from Pavel:
40727 * kern/disk.c (grub_disk_check_range): Rename to ...
40728 (grub_disk_adjust_range): ... this. Add a comment explaining the
40729 tasks performed by this function.
40730
ad4936a0 407312008-06-08 Robert Millan <rmh@aybabtu.com>
40732
40733 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
40734 `num_serial' (for consistency with other variables).
40735 (struct grub_ntfs_data): Add `uuid' member.
40736 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
40737 (grub_ntfs_uuid): New function.
40738 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
40739
dc20b0f9 407402008-06-07 Pavel Roskin <proski@gnu.org>
40741
40742 * util/biosdisk.c (open_device): Revert last change to the
40743 function, it broke installation. The sector needs to be
40744 different dependent on which device is opened.
40745
c5e3cfba 407462008-06-06 Robert Millan <rmh@aybabtu.com>
40747
40748 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
40749 rest of GRUB, and breakage doesn't happen if its value were modified.
40750
40751 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
40752 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
40753 a constant (same value).
40754 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
40755 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
40756
26a1f8c4 407572008-06-06 Robert Millan <rmh@aybabtu.com>
40758
40759 * util/biosdisk.c (open_device): Do not modify sector offset when
40760 accessing a partition. kern/disk.c already handles this for us.
40761
25d6b327 407622008-06-06 Robert Millan <rmh@aybabtu.com>
40763
40764 * util/grub-emu.c (grub_machine_init): Move code in this function from
40765 here ...
40766 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
40767 segfault in case grub_printf() is called).
40768
40769 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
40770 grub_probe. Update all users not to explicitly add it again.
40771 (grub_device): New variable; contains corresponding device for grubdir.
40772 (fs_module, partmap_module, devabstraction_module): Pass
40773 `--device ${grub_device}' to grub_probe to avoid traversing /dev
40774 every time.
40775
9ece62fb 407762008-06-05 Robert Millan <rmh@aybabtu.com>
40777
40778 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
40779 is found, print it (same layout as with labels).
40780
1ad36d37 407812008-06-04 Robert Millan <rmh@aybabtu.com>
40782
40783 * util/biosdisk.c (get_drive): Rename to ...
40784 (find_grub_drive): ... this. Update all users.
40785
40786 (get_os_disk): Rename to ...
40787 (convert_system_partition_to_system_disk): ... this. Update all users.
40788
40789 (find_drive): Rename to ...
40790 (find_system_device): ... this. Update all users.
40791
e6a30859 407922008-06-04 Robert Millan <rmh@aybabtu.com>
40793
40794 * util/biosdisk.c (get_os_disk): Handle IDA devices.
40795 * util/grub-mkdevicemap.c (get_mmc_disk_name)
40796 (make_device_map): Likewise.
40797
00c108a4 407982008-06-01 Robert Millan <rmh@aybabtu.com>
40799
40800 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
40801 before dereferencing it.
40802
40803 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
40804 union with fat12/fat16-specific ones. Add some new fields, including
40805 `num_serial' for both versions.
40806 (struct grub_fat_data): Add `uuid' member.
40807 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
40808 names. Initialize `data->uuid' using `num_serial'.
40809 (grub_fat_uuid): New function.
40810 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
40811
40812 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
40813 (grub_reiserfs_uuid): New function.
40814 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
40815 member.
40816
40817 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
40818 (grub_xfs_uuid): New function.
40819 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
40820
1385c5bb 408212008-06-01 Robert Millan <rmh@aybabtu.com>
40822
40823 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
40824 code that is backward compatible with pre-uuid search command.
40825
c682dfd7 408262008-05-31 Robert Millan <rmh@aybabtu.com>
40827
40828 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
40829 floppies after everything else, to ensure floppy drive isn't accessed
40830 unnecessarily (patch from Bean).
40831
b7db5d47 408322008-05-31 Robert Millan <rmh@aybabtu.com>
40833
40834 * commands/search.c (search_label, search_fs_uuid, search_file): Do
40835 not print device names when we were asked to set a variable.
40836
6e037aa9 408372008-05-31 Robert Millan <rmh@aybabtu.com>
40838
40839 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
40840 using "cursor-on" and "cursor-off" commands (understood at least by
40841 the Open Firmware flavour on OLPC).
40842
41305bc8 408432008-05-31 Michael Gorven <michael@gorven.za.net>
40844
40845 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
40846 on and off sequences.
40847
69ba137e 408482008-05-31 Robert Millan <rmh@aybabtu.com>
40849
40850 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
40851 * util/update-grub.in: Likewise.
40852
520ae21b 408532008-05-30 Pavel Roskin <proski@gnu.org>
40854
40855 * util/biosdisk.c (linux_find_partition): Simplify logic and
40856 make the code more universal. Keep special processing for
40857 devfs, but use a simple rule for all other devices. If the
40858 device ends with a number, append 'p' and the partition number.
40859 Otherwise, append only the partition number.
40860
5786569b 408612008-05-30 Robert Millan <rmh@aybabtu.com>
40862
40863 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
40864 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
40865 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
40866 the `root' parameter to Linux.
40867
51500452 408682008-05-30 Robert Millan <rmh@aybabtu.com>
40869
40870 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
40871 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
40872 --fs_uuid with --fs-uuid.
40873 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
40874 all filesystems support them).
40875
811d3878 408762008-05-30 Robert Millan <rmh@aybabtu.com>
40877
40878 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 40879 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 40880
cab63c95 408812008-05-30 Robert Millan <rmh@aybabtu.com>
40882
40883 * util/grub.d/00_header.in: Remove obsolete comment referencing
40884 convert_system_path_to_grub_path().
40885 * util/update-grub.in: Likewise.
40886 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
40887 (convert_system_path_to_grub_path): Add a warning message explaining
40888 that this function is deprecated. Rely on is_path_readable_by_grub()
40889 for the readability checks.
40890 (font_path): Use is_path_readable_by_grub() for the readability
40891 check rather than convert_system_path_to_grub_path().
40892
972e2f7a 408932008-05-30 Robert Millan <rmh@aybabtu.com>
40894
40895 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
40896 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
40897 converting it first.
40898 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
40899 grub.cfg for access to font file, and afterwards call it again to set
40900 the root device.
40901
62191274 409022008-05-30 Robert Millan <rmh@aybabtu.com>
40903
40904 * commands/search.c (options): Add --fs_uuid option.
40905 (search_fs_uuid): New function.
40906 (grub_cmd_search): Fix --set argument passing.
40907 Use search_fs_uuid() when requested via --fs_uuid.
40908 (grub_search_init): Update help message.
40909 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
40910 and redeclare it as an array of 16-bit words.
40911 (grub_ext2_uuid): New function.
40912 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
40913 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
40914 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
40915 (GRUB_DEVICE_BOOT_UUID): New variables.
40916 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
40917 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
40918 whenever possible.
40919 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
40920 just assume `root' variable has the right value.
40921 * util/grub.d/10_linux.in: Likewise.
40922 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
40923 via PRINT_FS_UUID.
40924 (main): Recognise `-t fs_uuid' argument.
40925
01b73ec8 409262008-05-30 Robert Millan <rmh@aybabtu.com>
40927
40928 * util/biosdisk.c (map): Redefine structure to hold information
40929 about GRUB drive name.
fe6b695a 40930 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 40931 drive names.
40932 (call_hook): Remove.
40933 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
40934 member. Assume drive has partitions.
40935 (grub_util_biosdisk_open): Access device names via `.device' struct
40936 member.
40937 (open_device): Likewise.
40938 (find_drive): Likewise.
40939 (read_device_map): Adjust map[] usage to match the new struct
40940 definition. Don't check for duplicates (still possible, but not cheap
40941 anymore).
40942 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
40943 (make_device_name): Remove assumption of BIOS-like drive names.
40944
22f16596 409452008-05-30 Pavel Roskin <proski@gnu.org>
40946
40947 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
40948 compiling execute.c doesn't need grub_script.tab.h anymore.
40949 (normal/command.c_DEPENDENCIES): Likewise.
40950 (normal/function.c_DEPENDENCIES): Likewise.
40951 * conf/i386-ieee1275.rmk: Likewise.
40952 * conf/i386-linuxbios.rmk: Likewise.
40953 * conf/i386-pc.rmk: Likewise.
40954 * conf/powerpc-ieee1275.rmk: Likewise.
40955 * conf/sparc64-ieee1275.rmk: Likewise.
40956
528ad8f2 409572008-05-29 Pavel Roskin <proski@gnu.org>
40958
d1dff95d 40959 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
40960 when scanning metadata for volume group name.
40961
528ad8f2 40962 * include/grub/script.h: Don't include grub_script.tab.h. It's
40963 a generated file, which may only be included from the files with
40964 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
40965 use union YYSTYPE, as the later allows forward declaration.
40966 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
40967
47248e08 409682008-05-29 Robert Millan <rmh@aybabtu.com>
40969
40970 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
40971 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
40972 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
40973 (grub_console_checkkey): Add grub_dprintf() call to report unknown
40974 scan codes.
40975
ee632529 409762008-05-29 Robert Millan <rmh@aybabtu.com>
40977
40978 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
40979 control key combinations.
40980
eee96e08 409812008-05-29 Robert Millan <rmh@aybabtu.com>
40982
40983 * util/powerpc/ieee1275/grub-install.in: Move from here ...
40984 * util/ieee1275/grub-install.in: ... to here.
40985 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
40986 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
40987 (grub_install_SOURCES): Likewise.
40988
da9a6a94 409892008-05-29 Robert Millan <rmh@aybabtu.com>
40990
40991 * fs/affs.c: Update copyright year.
40992 * fs/ext2.c: Likewise.
40993 * fs/fshelp.c: Likewise.
40994 * fs/hfsplus.c: Likewise.
40995 * fs/ntfs.c: Likewise.
40996 * fs/xfs.c: Likewise.
40997 * include/grub/fshelp.h: Likewise.
40998 * util/grub-mkdevicemap.c: Likewise.
40999
12e65f3a 410002008-05-28 Robert Millan <rmh@aybabtu.com>
41001
41002 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
41003 might need to be fatfs to support some firmware implementations
41004 (e.g. OFW or EFI).
41005
23023641 410062008-05-28 Robert Millan <rmh@aybabtu.com>
41007
41008 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
41009 devices.
41010 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41011 (make_device_map): Likewise.
41012
887d2619 410132008-05-20 Bean <bean123ch@gmail.com>
41014
41015 * fs/fshelp.c (grub_fshelp_map_block): New function.
41016 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
41017 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
41018
41019 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
41020 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
41021 (grub_fshelp_journal): New structure.
41022 (grub_fshelp_map_block): New function prototype.
41023 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
41024 (grub_fshelp_map_block): Likewise.
41025
41026 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
41027 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
41028 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
41029 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
41030 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
41031 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
41032 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
41033 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
41034 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
41035 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
41036 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
41037 (grub_ext2_sblock): New members for journal support.
41038 (grub_ext3_journal_header): New structure.
41039 (grub_ext3_journal_revoke_header): Likewise.
41040 (grub_ext3_journal_block_tag): Likewise.
41041 (grub_ext3_journal_sblock): Likewise.
41042 (grub_fshelp_node): New members logfile and journal.
41043 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
41044 grub_fshelp_map_block to get real block number.
41045 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
41046 number.
41047 (grub_ext2_read_inode): Likewise.
41048 (grub_ext3_get_journal): New function.
41049 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
41050 (grub_ext2_close): Release memory used by journal.
41051
41052 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
41053 (REISERFS_MAGIC_DESC_BLOCK): New macro.
41054 (grub_reiserfs_transaction_header): Renamed to
41055 grub_reiserfs_description_block, replace field data with real_blocks.
41056 (grub_reiserfs_commit_block): New structure.
41057 (grub_reiserfs_data): New member journal.
41058 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
41059 number.
41060 (grub_reiserfs_read_symlink): Likewise.
41061 (grub_reiserfs_iterate_dir): Likewise.
41062 (grub_reiserfs_open): Likewise.
41063 (grub_reiserfs_read): Likewise.
41064 (grub_reiserfs_get_journal): New function.
41065 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
41066 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
41067 using grub_reiserfs_get_journal.
41068 (grub_reiserfs_close): Release memory used by journal.
41069
41070 * fs/affs.c (grub_affs_read_block): Change block type to
41071 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
41072
41073 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
41074
41075 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
41076
41077 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
41078
41079 * fs/udf.c (grub_udf_read_block): Change block type to
41080 grub_disk_addr_t. Use type cast to avoid warning.
41081
41082 * fs/xfs.c (grub_xfs_read_block): Likewise.
41083
b7c6bed5 410842008-05-16 Christian Franke <franke@computer.org>
41085
41086 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
41087 to ensure that break with ESC will always work.
41088 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
41089 Remove ESC from keyboard queue.
41090
eedf167f 410912008-05-16 Christian Franke <franke@computer.org>
41092
41093 * util/biosdisk.c: [__CYGWIN__] Add includes.
41094 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
41095 (get_os_disk): Move variable declarations to OS specific
41096 parts to avoid warning.
41097 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
41098 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
41099 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
41100 Cygwin.
41101 * util/getroot.c: [__CYGWIN__] Add includes.
41102 (strip_extra_slashes): Fix "/" case.
41103 [__CYGWIN__] (get_win32_path): New function.
41104 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
41105 [__CYGWIN__] (find_root_device): Disable.
41106 [__CYGWIN__] (get_bootsec_serial): New function.
41107 [__CYGWIN__] (find_cygwin_root_device): Likewise.
41108 [__linux__] (grub_guess_root_device): Add early returns to simplify
41109 structure.
41110 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
41111 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
41112 check for Linux only.
41113
a079699e 411142008-05-15 Bean <bean123ch@gmail.com>
41115
41116 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
41117 keyboard hang problem in apple's intel mac.
41118
1cf4059a 411192008-05-09 Robert Millan <rmh@aybabtu.com>
41120
41121 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
41122 devices.
41123 * util/grub-mkdevicemap.c (get_virtio_disk_name)
41124 (make_device_map): Likewise.
41125 Reported by Aurelien Jarno <aurel32@debian.org>
41126
ed759390 411272008-05-07 Ian Campbell <ijc@hellion.org.uk>
41128
41129 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
41130 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
41131 (make_device_map): Output entries for xvd type disks.
41132
b56c4eaa 411332008-05-07 Robert Millan <rmh@aybabtu.com>
41134
41135 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
41136 devices.
41137 * util/grub-mkdevicemap.c (get_cciss_disk_name)
41138 (make_device_map): Likewise.
41139 Reported by Roland Dreier <rdreier@cisco.com>
41140
7f8866ed 411412008-05-07 Robert Millan <rmh@aybabtu.com>
41142
41143 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
41144 grub_strstr() call. Correct a few mistakes in failure path handling.
41145
b0346e0f 411462008-05-06 Robert Millan <rmh@aybabtu.com>
41147
41148 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
41149 Do not print a trailing slash (therefore, the root directory is an
41150 empty string).
41151 (convert_system_path_to_grub_path): Do not remove trailing slash
41152 from make_system_path_relative_to_its_root() output.
41153
41154 * util/i386/pc/grub-install.in: Add trailing slash to output from
41155 make_system_path_relative_to_its_root().
41156
6cf12cbd 411572008-05-06 Robert Millan <rmh@aybabtu.com>
41158
41159 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
41160 ensures that output lines aren't intermangled with those sent to
41161 stderr (via grub_util_info()).
41162 * util/grub-probe.c (grub_refresh): Likewise.
41163 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
41164
0fbb3117 411652008-05-05 Christian Franke <franke@computer.org>
41166
41167 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
41168 Add Cygwin device names.
41169 (get_ide_disk_name) [__CYGWIN__]: Likewise.
41170 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
41171 (check_device): Return error instead of success on empty name.
41172 (make_device_map): Move label inside linux specific code to
41173 prevent compiler warning.
41174
8124cdb7 411752008-04-30 Robert Millan <rmh@aybabtu.com>
41176
41177 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
41178 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
41179 first boot option.
41180 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
41181
094c01d0 411822008-04-29 Robert Millan <rmh@aybabtu.com>
41183
41184 * docs/grub.cfg: New file (example GRUB configuration).
41185
f4b1fc02 411862008-04-26 Robert Millan <rmh@aybabtu.com>
41187
329ce2a5 41188 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
41189 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
41190 and `disk/ieee1275/nand.c'.
f4b1fc02 41191
25f16ec1 411922008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 41193
25f16ec1 41194 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
41195 i386-linuxbios.
41196
41197 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
41198 change the buffer size to 4096 for cdrom device.
41199
41200 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
41201 and nand.mod.
41202 (_linux_mod_SOURCES): New variable.
41203 (_linux_mod_CFLAGS): Likewise.
41204 (_linux_mod_LDFLAGS): Likewise.
41205 (linux_mod_SOURCES): Likewise.
41206 (linux_mod_CFLAGS): Likewise.
41207 (linux_mod_LDFLAGS): Likewise.
41208 (nand_mod_SOURCES): Likewise.
41209 (nand_mod_CFLAGS): Likewise.
41210 (nand_mod_LDFLAGS): Likewise.
41211
41212 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
41213 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
41214 type property. (nand device in olpc don't have this property)
41215
41216 * include/grub/disk.h (grub_disk_dev_id): New macro
41217 GRUB_DISK_DEVICE_NAND_ID.
41218
41219 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
41220 function prototype.
41221 (grub_rescue_cmd_initrd): Likewise.
41222
41223 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
41224 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
41225 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 41226
25f16ec1 41227 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
41228 GRUB_MACHINE_IEEE1275 is defined.
41229
41230 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
41231 Use NESTED_FUNC_ATTR attribute on the hook parameter.
41232
41233 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
41234 on nested function heap_init.
41235 (grub_upper_mem): New variable for i386-ieee1275.
41236 (grub_get_extended_memory): New function for i386-ieee1275.
41237 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
41238
41239 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
41240 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
41241 property.
f19dbdb7 41242
25f16ec1 41243 * loader/i386/ieee1275/linux.c: New file.
41244
41245 * loader/i386/ieee1275/linux_normal.c: New file.
41246
41247 * disk/ieee1275/nand.c: New file.
41248
e89d61e9 412492008-04-18 Thomas Schwinge <tschwinge@gnu.org>
41250
41251 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
41252 value.
41253 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
41254
602566f6 412552008-04-18 Robert Millan <rmh@aybabtu.com>
41256
41257 Restructures early code path on ieee1275 to unify grub_main() as
41258 the first C function that is executed in every platform.
41259
41260 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
41261 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
41262 cmain().
41263 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
41264 * kern/ieee1275/cmain.c (cmain): Rename to ...
41265 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
41266 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
41267 at the beginning.
41268
57490c2b 412692008-04-18 Robert Millan <rmh@aybabtu.com>
41270
41271 * util/update-grub.in: Fix syntax error when setting
41272 `GRUB_PRELOAD_MODULES'.
41273 Reported by Stephane Chazelas <stephane@artesyncp.com>
41274
1977517d 412752008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
41276
41277 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
41278 section into account, newer toolchains generate unique build ids
41279 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 41280 we want build ids to be preserved
1977517d 41281 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
41282 far from other sections don't cause the raw binary images grow
41283 size
41284
bfb1f1a2 412852008-04-15 Robert Millan <rmh@aybabtu.com>
41286
41287 * disk/lvm.c: Update copyright year.
41288 * kern/misc.c: Likewise.
41289
01979850 412902008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41291
41292 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 41293 there is no memory left for physical volume name.
01979850 41294
0a1150e2 412952008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41296
41297 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
41298 volume name mapping to support bigger than 9 character names properly.
41299
82ead3fe 413002008-04-13 Robert Millan <rmh@aybabtu.com>
41301
41302 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
41303 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
41304
e54a72f5 413052008-04-13 Christian Franke <franke@computer.org>
41306
41307 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
41308 to create a floppy emulation boot CD when non emulation mode
41309 does not work.
41310 Enable Joliet CD filesystem extension.
41311
9fe86034 413122008-04-13 Robert Millan <rmh@aybabtu.com>
41313
41314 * kern/misc.c (grub_strncat): Fix off-by-one error.
41315 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
41316
41317 * kern/env.c (grub_env_context_close): Clear current context, not
41318 previous one.
41319 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
41320
41321 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
41322
7ceeee39 413232008-04-13 Robert Millan <rmh@aybabtu.com>
41324
41325 Improve robustness when handling LVM.
41326
41327 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 41328 (and leave `*p' unmodified).
7ceeee39 41329 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
41330 through it.
41331 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
41332 iterating through it.
41333 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
41334 through it.
fe6b695a 41335 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 41336 when due) on each grub_lvm_getvalue() or grub_strstr() call.
41337 Don't assume `vg->pvs != NULL' when iterating through it.
41338
58cd3d85 413392008-04-13 Robert Millan <rmh@aybabtu.com>
41340
41341 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
41342 * genmk.rb (partmap): New variable.
41343 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
41344 (#{partmap}): New target rule.
41345 * genpartmaplist.sh: New file.
41346 * Makefile.in (pkglib_DATA): Add partmap.lst.
41347 (partmap.lst): New target rule.
41348 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
41349 modules (including all partition maps), instead of preloading them.
41350
78b51059 413512007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
41352
41353 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
41354 `linux-boot-prober' (if installed) to detect other operating
41355 systems which are installed on the computer and add them to
41356 the boot menu.
41357 * conf/common.rmk: Build and install 30_os-prober.
41358
a91627b4 413592008-04-12 Robert Millan <rmh@aybabtu.com>
41360
41361 * kern/powerpc/ieee1275/init.c: Move from here ...
41362 * kern/ieee1275/init.c: ... to here. Update all users.
41363
41364 * kern/powerpc/ieee1275/cmain.c: Move from here ...
41365 * kern/ieee1275/cmain.c: ... to here. Update all users.
41366
41367 * kern/powerpc/ieee1275/openfw.c: Move from here ...
41368 * kern/ieee1275/openfw.c: ... to here. Update all users.
41369
41370 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
41371 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
41372
322562ea 413732008-04-10 Pavel Roskin <proski@gnu.org>
41374
41375 * configure.ac: Always use "_cv_" in cache variables for
41376 compatibility with Autoconf 2.62.
41377
a02a73c5 413782008-04-07 Robert Millan <rmh@aybabtu.com>
41379
41380 Revert grub/machine/init.h addition by Pavel (since it breaks on
41381 i386-ieee1275 and others):
41382 * util/i386/pc/misc.c: Remove grub/machine/init.h.
41383 * util/powerpc/ieee1275/misc.c: Likewise.
41384
25c024b1 413852008-04-07 Robert Millan <rmh@aybabtu.com>
41386
41387 * util/grub-probe.c (probe): Improve error message.
41388
3cbd2f98 413892008-04-07 Robert Millan <rmh@aybabtu.com>
41390
41391 * util/biosdisk.c (read_device_map): Skip devices that don't exist
41392 (this prevents the presence of a bogus entry from ruining the whole
41393 thing).
41394
87a297bf 413952008-04-06 Pavel Roskin <proski@gnu.org>
41396
36747a62 41397 * util/biosdisk.c: Include grub/util/biosdisk.h.
41398 * util/grub-fstest.c (execute_command): Make static.
41399 * util/grub-mkdevicemap.c (check_device): Likewise.
41400 * util/i386/pc/misc.c: Include grub/machine/init.h.
41401 * util/powerpc/ieee1275/misc.c: Likewise.
41402 * util/lvm.c: Include grub/util/lvm.h.
41403 * util/misc.c: Include grub/kernel.h, grub/misc.h and
41404 grub/cache.h.
41405 * util/raid.c: Include grub/util/raid.h.
41406 (grub_util_getdiskname): Make static.
41407
87a297bf 41408 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
41409 grub_hostfs_fini(), as they are called from grub_init_all() and
41410 grub_fini_all() respectively. This fixes an infinite loop in
41411 grub-fstest due to double registration of hostfs.
41412 Reported by Christian Franke <Christian.Franke@t-online.de>
41413
f6ce7629 414142008-04-05 Pavel Roskin <proski@gnu.org>
41415
41416 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
41417 all 8 functions. Otherwise, probe function 0 only.
41418
070e49e4 414192008-04-04 Pavel Roskin <proski@gnu.org>
41420
8b088a4c 41421 * commands/lspci.c (grub_lspci_iter): Print the bus number
41422 correctly.
41423
4f657021 41424 * commands/lspci.c (grub_pci_classes): Fix typos.
41425 (grub_lspci_iter): Don't print func twice. Print vendor ID
41426 before device ID, as it's normally done.
41427
070e49e4 41428 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41429 Fix signedness warnings.
41430 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
41431 Likewise.
41432 * util/ieee1275/get_disk_name.c: Include config.h so that
41433 _GNU_SOURCE is defined and getline() is declared. Mark an
41434 unused argument as such. Fix a signedness warning.
41435
ba7328dc 414362008-04-02 Pavel Roskin <proski@gnu.org>
41437
26887f22 41438 * genkernsyms.sh.in: Use more robust assignments for CC and
41439 srcdir. Quote srcdir.
41440 * gensymlist.sh.in: Likewise. Assert at the compile time that
41441 the symbol table is not empty.
41442
ba7328dc 41443 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
41444 * fs/cpio.c (grub_cpio_read): Likewise.
41445
0f582c6b 414462008-04-01 Pavel Roskin <proski@gnu.org>
41447
4b6e1995 41448 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
41449 * disk/host.c (grub_host_open): Likewise.
41450 * disk/loopback.c (grub_loopback_open): Likewise.
41451 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
41452 disk->id as in disk/host.c, not a multi-character constant.
41453
828a2768 41454 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
41455 later is obsolete, potentially dangerous and sets a bad example.
41456 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
41457 * util/misc.c (grub_util_get_image_size): Likewise.
41458
2bb4fb47 41459 * disk/loopback.c (options): Improve help for "--partitions".
41460
0f582c6b 41461 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
41462 options to align them with the short options, e.g. "echo -e".
41463
a33224e0 414642008-03-31 Bean <bean123ch@gmail.com>
41465
41466 * video/reader/png.c (grub_png_data): New member is_16bit and
41467 image_data.
41468 (grub_png_decode_image_header): Detect 16 bit png image.
41469 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
41470 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
41471 (grub_video_reader_png): Release memory occupied by image_data.
41472
41473 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
41474 4096 bytes.
41475 (grub_nfs_mount): Skip the test for sector per cluster.
41476
41477 * include/grub/ntfs.h (MAX_SPC): Removed.
41478
86cb4f54 414792008-03-31 Bean <bean123ch@gmail.com>
41480
41481 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
41482 (grub_probe_SOURCES): Add fs/afs.c.
41483 (grub_fstest_SOURCES): Likewise.
41484 (afs_mod_SOURCES): New variable.
41485 (afs_mod_CFLAGS): Likewise.
41486 (afs_mod_LDFLAGS): Likewise.
41487
41488 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
41489 (grub_emu_SOURCES): Likewise.
41490
41491 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41492
41493 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41494
41495 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41496
41497 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41498
41499 * fs/afs.c: New file.
41500
17c74c21 415012008-03-30 Pavel Roskin <proski@gnu.org>
41502
4cb68e89 41503 * disk/host.c: Include grub/misc.h to fix a warning.
41504 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
41505 warnings about implicit declarations.
41506
8790bb04 41507 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
41508 variable.
41509 * include/grub/i386/loader.h: Change declaration of
41510 grub_linux_boot() to match what grub_loader_set() expects.
41511 * util/getroot.c (grub_guess_root_device): Return const char* to
41512 fix a warning.
41513 * util/grub-probe.c (probe): Fix a warning about uninitialized
41514 abstraction_name variable.
41515 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
41516 second argument as unused to fix a warning.
41517
9a3f3296 41518 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
41519 missing grub_error() call.
41520
0ecef90d 41521 * util/update-grub_lib.in: Define datarootdir, since Autoconf
41522 2.60 and newer uses it to define datadir.
41523
0bf6d401 41524 * commands/sleep.c: Fix warning about implicit declaration.
41525 * disk/memdisk.c: Likewise.
41526 * loader/aout.c: Likewise.
41527 * loader/i386/bsd_normal.c: Likewise.
41528 * util/grub-probe.c: Likewise.
41529
7cdacf97 41530 * commands/i386/cpuid.c (has_longmode): Make static.
41531 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
41532 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
41533
17c74c21 41534 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
41535 GDT. This is more robust, as %ds can change.
41536 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
41537 calling real_to_prot().
41538 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
41539
80a3e68b 415402008-03-28 Pavel Roskin <proski@gnu.org>
41541
41542 * kern/i386/pc/startup.S: Assert that uncompressed functions
41543 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
41544 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
41545 code, as they push parts of the code (error handlers) beyond
41546 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
41547 code as correctness and size.
41548
77bcd272 415492008-03-28 Pavel Roskin <proski@gnu.org>
41550
41551 * kern/i386/pc/startup.S
41552 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
41553 data block address to the real mode, keep offset minimal. This
41554 works around a bug in AWARD BIOS on old Athlon systems, which
41555 makes CD detection hang.
41556
c5dfd43b 415572008-03-26 Pavel Roskin <proski@gnu.org>
41558
41559 * normal/color.c (grub_parse_color_name_pair): Make `name' a
41560 const.
41561 * include/grub/normal.h: Add grub_parse_color_name_pair()
41562 declaration.
41563
bf962df2 415642008-03-24 Bean <bean123ch@gmail.com>
41565
41566 * disk/i386/pc/biosdisk.c (cd_start): Removed.
41567 (cd_count): Removed.
41568 (cd_drive): New variable.
41569 (grub_biosdisk_get_drive): Don't check for (cdN) device.
41570 (grub_biosdisk_call_hook): Likewise.
41571 (grub_biosdisk_iterate): Change cdrom detection method.
41572 (grub_biosdisk_open): Replace cd_start with cd_drive.
41573 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
41574 detect cdrom device.
41575
41576 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
41577 Removed.
41578 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
41579 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
41580 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
41581 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
41582 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
41583 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
41584 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
41585 (grub_biosdisk_cdrp): New structure.
41586 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
41587
41588 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
41589
41590 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
41591 device.
41592
41593 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
41594 New function.
41595
68e7fc7a 415962008-03-20 Robert Millan <rmh@aybabtu.com>
41597
41598 Remove 2 TiB limit in ata.mod.
41599 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
41600 (grub_ata_dumpinfo): Print sector count with 0x%llx.
41601 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
41602 grub_uint64_t instead of grub_uint32_t.
41603
38ad2cf5 416042008-03-05 Bean <bean123ch@gmail.com>
41605
41606 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
41607 (grub_multiboot): Set boot device.
41608
41609 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
41610
2b89344e 416112008-03-02 Bean <bean123ch@gmail.com>
41612
41613 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
41614 symlink_buffer.
41615
87a95d1f 416162008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
41617
41618 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
41619 texinfo.tex.
41620
41621 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
41622 modified.
41623
41624 * docs/fdl.texi: New file.
f19dbdb7 41625
87a95d1f 41626 * docs/mdate-sh: New file. Copied from gnulib.
41627 * docs/texinfo.tex: Likewise.
41628
41629 * config.guess: Updated from gnulib.
41630 * install-sh: Likewise.
41631
7dc15d8e 416322008-02-28 Robert Millan <rmh@aybabtu.com>
41633
41634 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
41635 (aout_mod_SOURCES): New variable.
41636 (aout_mod_CFLAGS): Likewise.
41637 (aout_mod_LDFLAGS): Likewise.
41638
41639 * conf/i386-ieee1275.rmk: Likewise.
41640
b00ab696 416412008-02-28 Robert Millan <rmh@aybabtu.com>
41642
41643 * util/update-grub.in: Reorganise terminal validity check. Accept
41644 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
41645 Based on suggestion by Franklin PIAT.
41646
79ca2d78 416472008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
41648
41649 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
41650 function.
41651 * util/getroot.c (grub_util_check_block_device): New function that
41652 returns the given argument if it is a block device and returns NULL else.
41653 * util/grub-probe.c (argument_is_device): New variable.
41654 (probe): Promote device_name from a variable to an argument. Receive
41655 device_name from grub_util_check_block_device() if path is NULL and from
41656 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 41657 (options): Introduce new parameter '-d, --device'.
79ca2d78 41658 (main): Add description of the new parameter to the help screen.
41659 Rename path variable to argument. Set argument_is_device if the '-d'
41660 option is given. Pass argument to probe() depending on
41661 argument_is_device.
41662
0d16e571 416632008-02-24 Bean <bean123ch@gmail.com>
41664
41665 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
41666 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
41667 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
41668 (GRUB_ISO9660_VOLDESC_PART): Likewise.
41669 (GRUB_ISO9660_VOLDESC_END): Likewise.
41670 (grub_iso9660_primary_voldesc): New member escape.
41671 (grub_iso9660_data): New member joliet.
41672 (grub_iso9660_convert_string): New function.
41673 (grub_iso9660_mount): Detect joliet extension.
41674 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
41675 (grub_iso9660_iso9660_label): Likewise.
41676
41677 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
41678 (grub_setup_SOURCES): Add fs/udf.c.
41679 (grub_fstest_SOURCES): Likewise.
41680 (udf_mod_SOURCES): New variable.
41681 (udf_mod_CFLAGS): Likewise.
41682 (udf_mod_LDFLAGS): Likewise.
41683
41684 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
41685 (grub_emu_SOURCES): Likewise.
41686
41687 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41688
41689 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41690
41691 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41692
41693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41694
41695 * fs/udf.c: New file.
41696
8a594a17 416972008-02-24 Robert Millan <rmh@aybabtu.com>
41698
41699 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
41700 (normal/lexer.c_DEPENDENCIES): New variables.
41701 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
41702 (normal/lexer.c_DEPENDENCIES): Likewise.
41703 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
41704 (normal/lexer.c_DEPENDENCIES): Likewise.
41705 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
41706 (normal/lexer.c_DEPENDENCIES): Likewise.
41707 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
41708 (normal/lexer.c_DEPENDENCIES): Likewise.
41709 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
41710 (normal/lexer.c_DEPENDENCIES): Likewise.
41711
2dc33c03 417122008-02-23 Robert Millan <rmh@aybabtu.com>
41713
41714 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
41715 since they were intended to be in hex. This didn't break previously
41716 because of a bug in gpt_partition_map_iterate() (see below).
41717
41718 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
41719 when checking the validity of GPT header.
41720 Remove `partno', since it always provides the same information as `i'.
41721
f6f4cfb0 417222008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
41723
41724 * include/grub/efi/time.h: Fix a wrong comment.
41725
79ff665f 417262008-02-19 Pavel Roskin <proski@gnu.org>
41727
41728 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
41729 message.
41730
d38e24c2 417312008-02-19 Bean <bean123ch@gmail.com>
41732
41733 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
41734 (aout_mod_SOURCES): New variable.
41735 (aout_mod_CFLAGS): Likewise.
41736 (aout_mod_LDFLAGS): Likewise.
41737 (_bsd_mod_SOURCES): New variable.
41738 (_bsd_mod_CFLAGS): Likewise.
41739 (_bsd_mod_LDFLAGS): Likewise.
41740 (bsd_mod_SOURCES): New variable.
41741 (bsd_mod_CFLAGS): Likewise.
41742 (bsd_mod_LDFLAGS): Likewise.
41743
41744 * include/grub/aout.h: New file.
41745
41746 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
41747
41748 * include/grub/i386/bsd.h: New file.
41749
41750 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
41751 to make it public.
41752
41753 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
41754 function is called, so that it's possible to change it inside the hook.
41755 (grub_elf64_load): Likewise.
41756 (grub_elf_file): Don't close the file if elf header is not found.
41757 (grub_elf_close): Close the file if grub_elf_file fails (The new
41758 grub_elf_file won't close it).
41759 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
41760 (grub_elf64_size): Likewise.
41761
41762 * kern/i386/loader.S (grub_unix_real_boot): New function.
41763
41764 * loader/aout.c: New file.
41765
41766 * loader/i386/bsd.c: New file.
41767
41768 * loader/i386/bsd_normal.c: New file.
41769
41770 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
41771
41772 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 41773 can test other formats.
d38e24c2 41774
b93bdb0f 417752008-02-19 Robert Millan <rmh@aybabtu.com>
41776
41777 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
41778 (grub_gpt_partition_type_empty): Redefine with macro from
41779 `<grub/gpt_partition.h>'.
41780 (gpt_partition_map_iterate): Adjust partition type comparison.
41781
41782 Export `entry' as partmap-specific `part.data' struct.
41783 (grub_gpt_header, grub_gpt_partentry): Move from here ...
41784
41785 * include/grub/gpt_partition.h (grub_gpt_header)
41786 (grub_gpt_partentry): ... to here (new file).
41787
41788 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
41789
41790 (grub_gpt_partition_type_bios_boot): New const variable, defined
41791 with macro from `<grub/gpt_partition.h>'.
41792
41793 (setup): Replace `first_start' with `embed_region', which keeps
41794 track of the embed region (and is partmap-agnostic).
41795
41796 Replace find_first_partition_start() with find_usable_region(),
41797 which finds a usable region for embedding using partmap-specific
41798 knowledge (supports PC/MSDOS and GPT).
41799
41800 Fix all assumptions that the embed region start at sector 1, using
41801 `embed_region.start' from now on. Similarly, use `embed_region.end'
41802 rather than `first_start' to calculate available size.
41803
41804 In grub_util_info() message, replace "into after the MBR" with an
41805 indication of the specific sector our embed region starts at.
41806
66cb40f6 418072008-02-19 Robert Millan <rmh@aybabtu.com>
41808
41809 * DISTLIST: Replace `commands/ieee1275/halt.c' and
41810 `commands/ieee1275/reboot.c' with `commands/halt.c' and
41811 `commands/reboot.c'.
41812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
41813 (halt_mod_SOURCES): Likewise.
41814 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
41815 (halt_mod_SOURCES): Likewise.
41816
b7202015 418172008-02-17 Christian Franke <franke@computer.org>
41818
41819 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
41820
32b0fc49 418212008-02-17 Robert Millan <rmh@aybabtu.com>
41822
41823 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
41824 set `first_start' to 0 for non-PC/MSDOS partition maps.
41825
aca63502 418262008-02-16 Robert Millan <rmh@aybabtu.com>
41827
41828 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
41829 do not assume partition map is PC/MSDOS before performing checks that
41830 are specific to that layout.
41831
0de8be86 418322008-02-13 Robert Millan <rmh@aybabtu.com>
41833
41834 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
41835 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
41836 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
41837
c3db8364 418382008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
41839
41840 * configure.ac: Only a cosmetic change on the handling of
41841 -fno-stack-protector.
41842
f714229e 418432008-02-12 Alexandre Boeglin <alex@boeglin.org>
41844
c3db8364 41845 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
41846 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
41847 reboot.c.
f714229e 41848 (grub_install_SOURCES): Add halt.mod and reboot.mod.
41849 (halt_mod_SOURCES): New variable.
41850 (halt_mod_CFLAGS): Likewise.
41851 (halt_mod_LDFLAGS): Likewise.
41852 (reboot_mod_SOURCES): Likewise.
41853 (reboot_mod_CFLAGS): Likewise.
41854 (reboot_mod_LDFLAGS): Likewise.
41855
c3db8364 41856 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
41857 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
41858 reboot.c.
f714229e 41859 (halt_mod_SOURCES): Likewise.
41860 (reboot_mod_SOURCES): Likewise.
41861
c3db8364 41862 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
41863 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 41864 (reboot_mod_SOURCES): Likewise.
41865
41866 * commands/i386/pc/reboot.c: merge this file ...
41867
41868 * commands/ieee1275/reboot.c: ... and this file ...
41869
41870 * commands/reboot.c: ... to this file.
c3db8364 41871 Add some precompiler directive to include the correct header for
41872 each machine.
f714229e 41873
41874 * commands/ieee1275/halt.c: move this file ...
41875
41876 * commands/halt.c: ... to here.
c3db8364 41877 Add some precompiler directive to include the correct header for
41878 each machine.
f714229e 41879
41880 * include/grub/efi/efi.h (grub_reboot): New function declaration.
41881 (grub_halt): Likewise.
41882
41883 * kern/efi/efi.c (grub_reboot): New function.
41884 (grub_halt): Likewise.
41885
c74493e0 418862008-02-12 Robert Millan <rmh@aybabtu.com>
41887
41888 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
41889 /dev (like it is done for /dev/mapper). This doesn't provide support
41890 for EVMS, but at least it is now easy to identify the problem when it
41891 arises.
41892
d0db4b04 418932008-02-11 Robert Millan <rmh@aybabtu.com>
41894
41895 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
41896 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
41897 comparing it with -1, not 0.
41898
bf748642 418992008-02-10 Robert Millan <rmh@aybabtu.com>
41900
41901 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
41902 `disk/lvm.c'.
41903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41904 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
41905
41906 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
41907 `disk/lvm.c' to the end of the list.
41908 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41909 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41910
b5db202a 419112008-02-10 Robert Millan <rmh@aybabtu.com>
41912
41913 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
41914 grub_print_error() instead. This will let user know why we're entering
41915 rescue mode.
41916 Based on suggestions from Sam Morris.
41917
83abee31 419182008-02-10 Alexandre Boeglin <alex@boeglin.org>
41919
41920 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
41921 on remaining N args, instead of "--" arg N times.
41922
78d5a08b 419232008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
41924
41925 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
41926 (fill_with_default_glyph): Changed to use unknown_glyph for fill
41927 pattern for unknown glyphs.
41928
68807e5f 419292008-02-09 Robert Millan <rmh@aybabtu.com>
41930
41931 * configure.ac: Probe for `help2man'.
41932 * Makefile.in (builddir): New variable.
41933 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
41934 or otherwise add a few flags/options to it.
41935 (install-local): For every executable utility or script that is
41936 installed, invoke $(HELP2MAN) to install a manpage based on --help
41937 output.
41938
41939 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
41940 that it doesn't prevent --help from working in build tree.
41941
41942 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
41943 with `bug-grub@gnu.org'.
41944 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
41945 * util/update-grub.in (usage): New function.
41946 Implement proper argument check, with support for --help and --version
41947 (as well as existing -y).
41948
419492008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 41950
41951 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
41952 avoid overwriting previous output.
41953 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
41954
c1962162 419552008-02-09 Robert Millan <rmh@aybabtu.com>
41956
41957 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
41958 drawing the menu.
41959
3dac2e3f 419602008-02-09 Robert Millan <rmh@aybabtu.com>
41961
41962 * commands/sleep.c: New file.
41963 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
41964 (sleep_mod_SOURCES): New variable.
41965 (sleep_mod_CFLAGS): Likewise.
41966 (sleep_mod_LDFLAGS): Likewise.
41967
7a634e08 419682008-02-09 Robert Millan <rmh@aybabtu.com>
41969
41970 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
41971 situations in which we can deduce the RAID size and the superblock
41972 doesn't match it.
41973
b92f0c18 419742008-02-09 Robert Millan <rmh@aybabtu.com>
41975
41976 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
41977 and return a grub_diskmemberlist_t composed of LVM physical volumes.
41978 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
41979
41980 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
41981 and return a grub_diskmemberlist_t composed of physical array members.
41982 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
41983
41984 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
41985 prototype.
41986 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
41987 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
41988 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
41989
41990 * util/grub-probe.c (probe): Move partmap probing code from here ...
41991 (probe_partmap): ... to here.
41992 (probe): Use probe_partmap() once for the disk we're probing, and
41993 additionally, when such disk contains a memberlist() struct member,
41994 once for each disk that is contained in the structure returned by
41995 memberlist().
41996
91a4bf68 419972008-02-09 Robert Millan <rmh@aybabtu.com>
41998
41999 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
42000 environment variable to 'all' in order to obtain debug output from
42001 non-util/ code.
42002 * util/i386/pc/grub-setup.c (main): Likewise.
42003
a96f9caa 420042008-02-08 Robert Millan <rmh@aybabtu.com>
42005
42006 * disk/raid.c (grub_raid_scan_device): Check for
42007 `array->device[sb.this_disk.number]' rather than for
42008 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 42009 guaranteed to be accessible.
a96f9caa 42010
b37a9222 420112008-02-08 Robert Millan <rmh@aybabtu.com>
42012
42013 * disk/raid.c: Update copyright.
42014 * fs/cpio.c: Likewise.
42015 * include/grub/raid.h: Likewise.
42016 * loader/i386/pc/multiboot.c: Likewise.
42017 * util/hostfs.c: Likewise.
42018
5626aee1 420192008-02-08 Robert Millan <rmh@aybabtu.com>
42020
42021 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
42022 to a grub_disk_t array.
42023 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
42024 `device[x]'.
42025 (grub_raid_scan_device): Replace `device[x].name' accesses with
42026 `device[x]->name'. Simplify initialization of `array->device[x]'.
42027
554f0187 420282008-02-08 Robert Millan <rmh@aybabtu.com>
42029
42030 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
42031 grub_dprintf() calls.
42032 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
42033 error message.
42034
1ec8425d 420352008-02-07 Christian Franke <franke@computer.org>
42036
42037 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
42038 instead of fseek and ftell to support large files.
42039 (grub_hostfs_read): Likewise.
42040
f2156fda 420412008-02-07 Robert Millan <rmh@aybabtu.com>
42042
42043 Patch from Jeroen Dekkers.
42044 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 42045 failure, since successfully reading all array members might not be
f2156fda 42046 required.
42047
9216e0e7 420482008-02-06 Robert Millan <rmh@aybabtu.com>
42049
42050 * util/grub-probe.c (probe): Simplify partmap probing (with the
42051 assumption that the first word up to the underscore equals to
42052 the module name).
42053
b0dfd29a 420542008-02-06 Christian Franke <franke@computer.org>
42055
42056 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
42057 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
42058 last block of a cpio or tar stream.
42059 Check for "TRAILER!!!" instead of any empty data
42060 block to detect last block of a cpio stream.
42061 (grub_cpio_dir): Fix constness of variable np.
42062 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
42063 cpio or tar trailer is detected. This fixes a crash
42064 on open of a non existing file.
42065
c32865bf 420662008-02-05 Bean <bean123ch@gmail.com>
42067
42068 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
42069 address of entry.
42070 (grub_multiboot_load_elf64): Likewise.
42071 (grub_multiboot): Initialize mbi structure.
42072
42073 * util/grub-fstest.c: Don't include unused header file script.h.
42074
fe6b695a 42075 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 42076 of file.
42077 (grub_fstest_SOURCES): Likewise.
42078
409480b7 420792008-02-05 Robert Millan <rmh@aybabtu.com>
42080
42081 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
42082 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
42083 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
42084 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
42085
42086 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
42087 (translation_table): Replace hardcoded values with macros
42088 provided by `<grub/term.h>'.
42089
42090 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
42091 (keyboard_map): Correct/add a few values, with macros provided
42092 by `<grub/term.h>'.
42093 (keyboard_map_shift): Zero values that don't differ from their
42094 `keyboard_map' equivalents.
42095 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
42096 Discard the second scan code that is always sent by Caps lock.
42097 Only use `keyboard_map_shift' when it provides a non-zero value,
42098 otherwise fallback to `keyboard_map'.
42099
99fadbaa 421002008-02-04 Bean <bean123ch@gmail.com>
42101
42102 * Makefile.in (enable_grub_fstest): New variable.
42103
42104 * conf/common.rmk (grub_fstest_init.lst): New rule.
42105 (grub_fstest_init.h): Likewise.
42106 (grub_fstest_init.c): Likewise.
42107 (util/grub-fstest.c_DEPENDENCIES): New variable.
42108 (grub_fstest_SOURCES): Likewise.
42109
42110 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
42111
42112 * util/grub-fstest.c: New file.
42113
bf567c50 421142008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42115
42116 Make grub-setup handle a separate root device.
f19dbdb7 42117
bf567c50 42118 * util/i386/pc/grub-setup.c (setup): Always open the root device,
42119 so that the root device can be compared with the destination
42120 device.
42121 When embedding the core image, if the root and destination devices
42122 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
42123 0xFF.
42124 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 42125
9be6b98b 421262008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42127
42128 Add support for having a grub directory in a different drive. This
42129 is still only the data handling part.
f19dbdb7 42130
9be6b98b 42131 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
42132 (codestart): Save %dh in GRUB_ROOT_DRIVE.
42133 (grub_root_drive): New variable.
42134
42135 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
42136 instead of GRUB_BOOT_DRIVE to construct a device name. Set
42137 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
42138 as it was.
42139
42140 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
42141
42142 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
42143 macro.
42144 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
42145
42146 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
42147 is bogus, because PXE booting does not specify any drive
42148 correctly.
42149
42150 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
42151 am not sure if this is really correct.
42152
42153 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
42154 is always identical to the boot drive when booting from a CD.
42155
42156 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
42157 longer.
42158 (root_drive): New variable.
42159 (real_start): Unconditionally set %dh to ROOT_DRIVE.
42160 (setup_sectors): Push %dx right after popping it, because %dh will
42161 be modified later.
42162 (copy_buffer): Restore %dx.
42163
e0ca0677 421642008-02-03 Robert Millan <rmh@aybabtu.com>
42165
42166 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
42167 use `cdboot.img' for cdrom images.
42168
3b3f6629 421692008-02-03 Robert Millan <rmh@aybabtu.com>
42170
42171 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
42172 only setup gfxterm when `font' command has succeeded.
42173
d42b3672 421742008-02-03 Robert Millan <rmh@aybabtu.com>
42175
42176 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
42177 (grub_rescue_cmd_multiboot_loader)
42178 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
42179
fa370ea6 421802008-02-03 Pavel Roskin <proski@gnu.org>
42181
e0c5dacb 42182 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 42183 %edx and %esi from stack only after grub_gate_a20() is called.
42184 grub_gate_a20() clobbers %edx.
42185
f2a76e1d 421862008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42187
42188 * configure.ac (AC_INIT): Bumped to 1.96.
42189
42190 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
42191 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
42192 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
42193 video/readers/png.c.
42194
90fd32d1 421952008-02-03 Bean <bean123ch@gmail.com>
9be665dd 42196
42197 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
42198 (cdboot_img_SOURCES): New variable.
42199 (cdboot_img_ASFLAGS): New variable.
42200 (cdboot_img_LDFLAGS): New variable.
42201
42202 * boot/i386/pc/cdboot.S: New file.
42203
42204 * disk/i386/pc/biosdisk.c (cd_start): New variable.
42205 (cd_count): Likewise.
42206 (grub_biosdisk_get_drive): Add support for cd device.
42207 (grub_biosdisk_call_hook): Likewise.
42208 (grub_biosdisk_iterate): Likewise.
42209 (grub_biosdisk_open): Likewise.
42210 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
42211 (grub_biosdisk_rw): Support reading from cd device.
42212 (GRUB_MOD_INIT): Iterate cd devices.
42213
42214 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
42215 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
42216 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
42217
42218 * kern/i386/pc/init.c (make_install_device): Check for cd device.
42219
4020aa53 422202008-02-02 Robert Millan <rmh@aybabtu.com>
42221
42222 * commands/read.c: New file.
42223 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
42224 (read_mod_SOURCES): New variable.
42225 (read_mod_CFLAGS): Likewise.
42226 (read_mod_LDFLAGS): Likewise.
42227
e03a1132 422282008-02-02 Robert Millan <rmh@aybabtu.com>
42229
42230 * normal/main.c (grub_normal_execute): Check for `menu->size' when
42231 determining whether menu has to be displayed.
42232
58c69220 422332008-02-02 Marco Gerards <marco@gnu.org>
42234
42235 * bus/pci.c: New file.
42236
42237 * include/grub/pci.h: Likewise.
42238
42239 * include/grub/i386/pc/pci.h: Likewise.
42240
42241 * commands/lspci.c: Likewise.
42242
42243 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
42244 `lspci.mod'.
42245 (pci_mod_SOURCES): New variable.
42246 (pci_mod_CFLAGS): Likewise.
42247 (pci_mod_LDFLAGS): Likewise.
42248 (lspci_mod_SOURCES): Likewise.
42249 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 42250 (lspci_mod_LDFLAGS): Likewise.
58c69220 42251
c004e1b4 422522008-02-02 Bean <bean123ch@gmail.com>
42253
42254 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
42255 (grub_ufs_get_file_block): Fix indirect block calculation problem.
42256
42257 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
42258 (grub_xfs_btree_node): New structure.
42259 (grub_xfs_btree_root): New structure.
42260 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
42261 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
42262 (GRUB_XFS_EXTENT_BLOCK): Likewise.
42263 (GRUB_XFS_EXTENT_SIZE): Likewise.
42264 (grub_xfs_read_block): Support btree format type.
42265 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
42266 Use directory block as basic unit.
42267
42268 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
42269
42270 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
42271 __attribute__ ((__regparm__ (1))).
42272
f95562bf 422732008-02-01 Robert Millan <rmh@aybabtu.com>
42274
42275 Correct a mistake in previous commit.
42276
42277 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
42278 top.
42279 (normal/command.c_DEPENDENCIES): New variable.
42280
7d31f41f 422812008-02-01 Robert Millan <rmh@aybabtu.com>
42282
42283 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
42284 top.
42285 (normal/command.c_DEPENDENCIES): New variable.
42286 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
42287 * conf/i386-ieee1275.rmk: Likewise.
42288 * conf/i386-linuxbios.rmk: Likewise.
42289 * conf/i386-pc.rmk: Likewise.
42290 * conf/sparc64-ieee1275.rmk: Likewise.
42291 * conf/powerpc-ieee1275.rmk: Likewise.
42292 (grub_emu_SOURCES): Add `fs/fshelp.c'.
42293
42294 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
42295
60b6be74 422962008-02-01 Robert Millan <rmh@aybabtu.com>
42297
42298 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
42299 call at beginning of function.
42300
078522ab 423012008-01-31 Pavel Roskin <proski@gnu.org>
42302
42303 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 42304 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
42305 (grub_mkrescue_SOURCES): Likewise.
078522ab 42306 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
42307
ccaa8a5f 423082008-01-30 Robert Millan <rmh@aybabtu.com>
42309
42310 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
42311 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
42312 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
42313 (grub_probe_SOURCES): ... to here.
42314
42315 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
42316 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
42317 * conf/i386-ieee1275.rmk: Likewise.
42318 * conf/i386-linuxbios.rmk: Likewise.
42319 * conf/powerpc-ieee1275.rmk: Likewise.
42320
ae5a9cd7 423212008-01-30 Tristan Gingold <gingold@free.fr>
42322
42323 * kern/rescue.c: Silently accept empty lines.
42324
70bc2ef2 423252008-01-29 Bean <bean123ch@gmail.com>
42326
42327 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
42328 (real_code_2): Code cleanup and change comment style.
42329 (move_memory): Avoid using 32-bit address mode.
42330
6a4d50ea 423312008-01-29 Bean <bean123ch@gmail.com>
42332
42333 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
42334 (png_mod_SOURCES): New variable.
42335 (png_mod_CFLAGS): Likewise.
42336 (png_mod_LDFLAGS): Likewise.
42337
42338 * video/readers/png.c: New file.
42339
11cc30ac 423402008-01-28 Robert Millan <rmh@aybabtu.com>
42341
42342 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
42343 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
42344 `ifndef GRUB_MOD_GAP' hack.
42345 * util/elf/grub-mkimage.c (add_segments): Likewise.
42346
3abc589f 423472008-01-27 Robert Millan <rmh@aybabtu.com>
42348
42349 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
42350 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 42351 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 42352
e1907778 423532008-01-27 Robert Millan <rmh@aybabtu.com>
42354
42355 Get grub-emu to build again (including parallel builds).
42356
42357 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
42358 Split into ...
42359 (util/grub-emu.c_DEPENDENCIES): ... this, ...
42360 (normal/execute.c_DEPENDENCIES): ... this, ...
42361 (grub-emu_DEPENDENCIES): ... and this.
42362
42363 * conf/i386-efi.rmk: Likewise.
42364 * conf/i386-linuxbios.rmk: Likewise.
42365 * conf/i386-ieee1275.rmk: Likewise.
42366 * conf/powerpc-ieee1275.rmk: Likewise.
42367 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
42368
2216b101 423692008-01-27 Robert Millan <rmh@aybabtu.com>
42370
42371 * NEWS: Add a few items.
42372
f75172d9 423732008-01-27 Robert Millan <rmh@aybabtu.com>
42374
42375 Fix parallel builds with grub-emu. Based on earlier commit for
42376 grub-probe and grub-setup.
42377
42378 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42379 (util/grub-emu.c_DEPENDENCIES): ... this.
42380 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42381 (util/grub-emu.c_DEPENDENCIES): ... this.
42382 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42383 (util/grub-emu.c_DEPENDENCIES): ... this.
42384 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42385 (util/grub-emu.c_DEPENDENCIES): ... this.
42386 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42387 (util/grub-emu.c_DEPENDENCIES): ... this.
42388
3f51de77 423892008-01-27 Pavel Roskin <proski@gnu.org>
42390
42391 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
42392 to create a gap between _end and the modules added to the image
42393 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
42394 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
42395 * util/elf/grub-mkimage.c (add_segments): Likewise.
42396
2033f53e 423972008-01-26 Pavel Roskin <proski@gnu.org>
42398
42399 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
42400 just return an error.
42401
22da1f6f 424022008-01-26 Bean <bean123ch@gmail.com>
42403
42404 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
42405 (grub_reiserfs_get_item): Save offset of the next item.
42406 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
42407
2a9525e6 424082008-01-25 Robert Millan <rmh@aybabtu.com>
42409
42410 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
42411 make all filesystem sources appear together (possibly fixing omissions
42412 while at it).
42413 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42414 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42415 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42417
42418 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
42419 add `kern/file.c'.
42420 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
42421 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42422 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
42423 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42424
42425 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
42426 (probe): Add a sanity check to make sure of our ability to read
42427 requested files when probing for filesystem type.
42428
42429 * genmk.rb: Update copyright year (2007).
42430
42431 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
42432 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
42433 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
42434 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
42435 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
42436 : Remove function prototypes.
42437
b95f71b5 424382008-01-25 Robert Millan <rmh@aybabtu.com>
42439
42440 Revert my previous commits (based on wrong assumption of how grub_errno
42441 works).
42442
fe6b695a 42443 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 42444 * kern/file.c (grub_file_open): Likewise.
42445
d08bbb49 424462008-01-24 Pavel Roskin <proski@gnu.org>
42447
42448 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
42449 that hang if GRUB tries to setup colors.
42450 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
42451 colors for firmwares that don't support it.
42452 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
42453 Recognize Open Hack'Ware, set flags to work around its
42454 limitations.
42455
605e36ed 424562008-01-24 Robert Millan <rmh@aybabtu.com>
42457
42458 * kern/file.c (grub_file_open): Do not account previous failures of
42459 unrelated functions when grub_errno is checked for.
42460 Reported by Oleg Strikov.
42461
bac332a1 424622008-01-24 Bean <bean123ch@gmail.com>
42463
42464 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
42465 (grub_ufs_sblock): New member volume name.
42466 (grub_ufs_find_file): Fix string copy bug.
42467 (grub_ufs_label): Implement this function properly.
42468
42469 * fs/hfs.c (grub_hfs_cnid_type): New enum.
42470 (grub_hfs_iterate_records): Use the correct file number for extents
42471 and catalog file. Fix problem in next index calculation.
42472 (grub_hfs_find_node): Replace recursive function call with loop.
42473 (grub_hfs_iterate_dir): Replace recursive function call with loop.
42474
15c80c09 424752008-01-23 Robert Millan <rmh@aybabtu.com>
42476
42477 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
42478 `<grub/symbol.h>' and `<grub/multiboot.h>'.
42479 (grub_multiboot2_real_boot): New function prototype.
42480
42481 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
42482 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
42483
42484 * kern/i386/ieee1275/init.c (grub_os_area_addr)
42485 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
42486
305338fd 424872008-01-23 Robert Millan <rmh@aybabtu.com>
42488
42489 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
42490 #ifdef'ed out grub_printf().
42491
3ea52685 424922008-01-23 Robert Millan <rmh@aybabtu.com>
42493
42494 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
42495 grub_dprintf calls, since they make "debug=all" mode unusable.
42496 (grub_console_checkkey): Likewise.
42497
5882ae4b 424982008-01-23 Robert Millan <rmh@aybabtu.com>
42499
42500 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
42501 `term/i386/pc/at_keyboard.c'.
42502 (pkglib_MODULES): Add `serial.mod'.
42503 (serial_mod_SOURCES): New variable.
42504 (serial_mod_CFLAGS): Likewise.
42505 (serial_mod_LDFLAGS): Likewise.
42506
42507 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
42508 `<grub/powerpc/ieee1275/console.h>'.
42509 (grub_keyboard_controller_init): New function prototype.
42510 (grub_console_checkkey): Likewise.
42511 (grub_console_getkey): Likewise.
42512
42513 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
42514 keyboard on i386.
42515
42516 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
42517 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
42518
06ab5303 425192008-01-23 Robert Millan <rmh@aybabtu.com>
42520
42521 * kern/i386/pc/init.c (make_install_device): When memdisk image is
42522 present, "(memdisk)/boot/grub" becomes the default prefix.
42523
42524 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
42525 a memdisk tarball with all the modules. Add --overlay=DIR option that
42526 allows users to overlay additional files into the image.
42527
dbb475a4 425282008-01-23 Robert Millan <rmh@aybabtu.com>
42529
42530 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
42531 and `machine/memory.h'.
42532 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
42533 (_multiboot_mod_SOURCES): New variable.
42534 (_multiboot_mod_CFLAGS): Likewise.
42535 (_multiboot_mod_LDFLAGS): Likewise.
42536 (multiboot_mod_SOURCES): Likewise.
42537 (multiboot_mod_CFLAGS): Likewise.
42538 (multiboot_mod_LDFLAGS): Likewise.
42539
42540 * include/grub/i386/ieee1275/loader.h: New file.
42541
42542 * include/grub/i386/ieee1275/machine.h: Likewise.
42543
42544 * include/grub/i386/ieee1275/memory.h: Likewise.
42545
42546 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
42547 variable declaration.
42548 (grub_os_area_size): Likewise.
42549
42550 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
42551 (grub_lower_mem, grub_upper_mem): New variables.
42552 (grub_stop_floppy): New function (just to make
42553 grub_multiboot2_real_boot() happy).
42554
42555 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
42556 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
42557 (grub_stop): New function.
42558 Include `"../realmode.S"' and `"../loader.S"'.
42559
42560 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
42561 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
42562
42563 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
42564 rely on grub_multiboot2_real_boot() for final boot.
42565
25638629 425662008-01-22 Robert Millan <rmh@aybabtu.com>
42567
42568 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
42569 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
42570 device that doesn't look like an SD card.
42571 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
42572 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
42573 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
42574 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
42575 found.
42576
9dad816d 425772008-01-22 Robert Millan <rmh@aybabtu.com>
42578
42579 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
42580 avoid claiming over our own code.
42581
34842f2d 425822008-01-22 Bean <bean123ch@gmail.com>
42583
42584 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
42585 (jpeg_mod_SOURCES): New variable.
42586 (jpeg_mod_CFLAGS): Likewise.
42587 (jpeg_mod_LDFLAGS): Likewise.
42588
42589 * video/readers/jpeg.c : New file.
42590
44023a28 425912008-01-22 Bean <bean123ch@gmail.com>
42592
42593 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
42594 there are no more items.
42595
bc2d8ac6 425962008-01-21 Robert Millan <rmh@aybabtu.com>
42597
42598 * kern/mm.c (grub_mm_init_region): Improve debug message.
42599
261bd4bc 426002008-01-21 Robert Millan <rmh@aybabtu.com>
42601
42602 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
42603 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
42604 address.
42605 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
42606 a C macro.
42607 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
42608 Indicates start of upper memory.
42609 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
42610 (generate_image): Abort when image size is big enough to corrupt
42611 upper memory.
42612
42613 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
42614 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
42615 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
42616 instead of hardcoding 0xA0000.
42617 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
42618 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
42619 instead of hardcoding 0xA0000.
42620
f970b55e 426212008-01-21 Robert Millan <rmh@aybabtu.com>
42622
42623 * disk/memdisk.c (memdisk_size): New variable.
42624 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
42625 `memdisk_size'.
42626 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
42627 image to dynamic memory.
42628 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
42629 `memdisk_size'. Free memdisk block.
42630
1a8b0526 426312008-01-21 Robert Millan <rmh@aybabtu.com>
42632
42633 Fix detection of very small filesystems (like tar).
42634
42635 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
42636 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
42637 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
42638 a problem with this disk).
42639
6e9b4aab 426402008-01-21 Robert Millan <rmh@aybabtu.com>
42641
42642 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
42643 on grub_biosdisk_rw_standard() error.
42644
0d8837b2 426452008-01-21 Robert Millan <rmh@aybabtu.com>
42646
42647 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
42648 recent changes.
42649 * kern/elf.c: Likewise.
42650 * kern/ieee1275/ieee1275.c: Likewise.
42651 * kern/powerpc/ieee1275/openfw.c: Likewise.
42652 * term/ieee1275/ofconsole.c: Likewise.
42653
ffd36e34 426542008-01-21 Robert Millan <rmh@aybabtu.com>
42655
42656 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
42657
3f0093d0 42658 * include/grub/kernel.h (grub_arch_memdisk_addr)
42659 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 42660
3f0093d0 42661 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
42662 (grub_arch_memdisk_size): ... to here.
ffd36e34 42663
6c391b21 426642008-01-21 Robert Millan <rmh@aybabtu.com>
42665
42666 Mostly based on bugfix from Bean.
42667
42668 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
42669 attribute with hook() parameter.
42670 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
42671 declaration.
42672 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
42673 attribute with hook() parameter.
42674 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
42675 declaration.
42676
55a581dc 426772008-01-21 Robert Millan <rmh@aybabtu.com>
42678
42679 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
42680 (pkglib_MODULES): Add `memdisk.mod'.
42681 (memdisk_mod_SOURCES): New variable.
42682 (memdisk_mod_CFLAGS): Likewise.
42683 (memdisk_mod_LDFLAGS): Likewise.
42684
42685 * disk/memdisk.c: New file.
42686
42687 * include/grub/disk.h (grub_disk_dev_id): Add
42688 `GRUB_DISK_DEVICE_MEMDISK_ID'.
42689
42690 * include/grub/i386/pc/kernel.h
42691 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
42692 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
42693 (grub_kernel_image_size): New variable declaration.
42694 (grub_total_module_size): Likewise.
42695 (grub_memdisk_image_size): Likewise.
42696
42697 * include/grub/i386/pc/memory.h
42698 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
42699
42700 * include/grub/kernel.h: Include `<grub/symbol.h>'.
42701 (grub_arch_memdisk_addr): New variable declaration.
42702 (grub_arch_memdisk_size): Likewise.
42703
42704 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
42705 (grub_arch_memdisk_size): Likewise.
42706
42707 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
42708 (codestart): Replace hardcoded `0x100000' with
42709 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
42710
42711 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
42712 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
42713 not NULL, append the contents of the file it refers to, at the end of
42714 the compressed kernel image. Initialize `grub_memdisk_image_size'
42715 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
42716 (options): Add "memdisk"|'m' option.
42717 (main): Parse --memdisk|-m option, and pass user-provided path as
42718 parameter to generate_image().
42719
3d7f54c9 427202008-01-20 Robert Millan <rmh@aybabtu.com>
42721
42722 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
42723 grub_dprintf() calls from here ...
42724 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
42725
0bf74728 427262008-01-20 Robert Millan <rmh@aybabtu.com>
42727
42728 Fix detection of "real mode" when /options/real-mode? doesn't exist.
42729
42730 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
42731 declaration.
42732 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
42733 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
42734 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 42735 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 42736 property).
42737 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
42738 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
42739
33bf70a7 427402008-01-19 Robert Millan <rmh@aybabtu.com>
42741
fe6b695a 42742 Get rid of confusing function (superseded by
33bf70a7 42743 `grub_ieee1275_get_integer_property')
42744 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
42745 prototype.
42746 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
42747 function.
42748 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
42749 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 42750 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 42751
e2da7d26 427522008-01-19 Robert Millan <rmh@aybabtu.com>
42753
42754 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
42755 command after "shut-down", since implementations differ on which
42756 the command for halt is.
42757
59f1fd8d 427582008-01-19 Robert Millan <rmh@aybabtu.com>
42759
42760 * include/grub/i386/linuxbios/console.h: Add header protection.
42761 (grub_keyboard_controller_init): New function prototype.
42762 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
42763 (KEYBOARD_COMMAND_READ): Likewise.
42764 (KEYBOARD_COMMAND_WRITE): Likewise.
42765 (KEYBOARD_SCANCODE_SET1): Likewise.
42766 (grub_keyboard_controller_write): New function.
42767 (grub_keyboard_controller_read): Likewise.
42768 (grub_keyboard_controller_init): Likewise.
42769
42770 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
42771 (grub_console_init): On coreboot/LinuxBIOS, call
42772 grub_keyboard_controller_init().
42773
5f5a7c15 427742008-01-19 Robert Millan <rmh@aybabtu.com>
42775
42776 PowerPC changes provided by Pavel Roskin.
42777
42778 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
42779 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
42780 don't rely on cmain() doing it.
42781 * kern/i386/ieee1275/startup.S (_start): Store %eax in
42782 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
42783
1210e168 427842008-01-16 Robert Millan <rmh@aybabtu.com>
42785
42786 * include/grub/i386/linuxbios/memory.h
42787 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
42788 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
42789 receive `table_header' as argument. Instead, probe for it in the
42790 known memory ranges where it can be present.
42791 (grub_available_iterate): Do not pass a fixed `table_header' address
42792 to grub_linuxbios_table_iterate().
42793
3d04eab8 427942008-01-15 Robert Millan <rmh@aybabtu.com>
42795
42796 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
42797 * conf/i386-ieee1275.rmk: New file.
42798 * include/grub/i386/ieee1275/console.h: Likewise.
42799 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
42800 * include/grub/i386/ieee1275/kernel.h: Likewise.
42801 * include/grub/i386/ieee1275/time.h: Likewise.
42802 * kern/i386/ieee1275/init.c: Likewise.
42803 * kern/i386/ieee1275/startup.S: Likewise.
42804
d1bc1b73 428052008-01-15 Robert Millan <rmh@aybabtu.com>
42806
42807 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
42808 when pointers are 32-bit (but still do set it to one when they are
42809 64-bit).
42810
66a65807 428112008-01-15 Robert Millan <rmh@aybabtu.com>
42812
42813 * include/grub/ieee1275/ieee1275.h
42814 (grub_ieee1275_get_integer_property): New function prototype.
42815
42816 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
42817 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 42818 grub_ieee1275_get_property() to handle endianness.
66a65807 42819
42820 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
42821 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 42822 where appropriate.
66a65807 42823 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
42824 (grub_map): Likewise.
42825 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
42826
a83ccafd 428272008-01-15 Bean <bean123ch@gmail.com>
42828
42829 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
42830 (grub_script_execute_cmdline): Reset grub_errno.
42831
42832 * normal/main.c (read_config_file): Reset grub_errno.
42833
42834 * normal/parse.y (script_init): New.
42835 (script): Move function and menuentry here.
42836 (delimiter): New.
42837 (command): Add delimiter at the end of command.
42838 (commands): Adjust to match the new command.
42839 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 42840 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 42841 (if): Use the new commands.
42842
42843 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
42844
df6ecfc6 428452008-01-15 Robert Millan <rmh@aybabtu.com>
42846
42847 * normal/menu.c (run_menu): Move timeout message from here ...
42848 (print_timeout): ... to here.
42849 (run_menu): Use print_timeout() once during initial draw to print
42850 the whole message, and again in every clock tick to update only
42851 the number of seconds.
42852
87ae25eb 428532008-01-15 Robert Millan <rmh@aybabtu.com>
42854
42855 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
42856 actual size of `available' from grub_ieee1275_get_property(), and
42857 restrict parsing to that bound.
42858
47bf09a4 428592008-01-15 Christian Franke <franke@computer.org>
42860
42861 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
42862 (argp_program_version): Remove variable.
42863 (argp_program_bug_address): Likewise.
42864 (options): Convert from struct argp_option to struct option.
42865 (struct arguments): Remove.
42866 (parse_opt): Remove.
42867 (usage): New function.
42868 (main): Replace struct args members by simple variables.
42869 Replace argp_parse() by getopt_long().
42870 Add switch to evaluate options.
42871 Add missing "(...)" around root_dev in prefix string.
42872
c86f1469 428732008-01-14 Robert Millan <rmh@aybabtu.com>
42874
42875 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
42876 for grub_ieee1275_exit(), in order to improve portability.
42877
e622c559 428782008-01-14 Robert Millan <rmh@aybabtu.com>
42879
42880 * util/grub.d/10_linux.in (prefix): Define.
42881 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
42882
44cb1ec8 428832008-01-13 Pavel Roskin <proski@gnu.org>
42884
42885 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
42886 grub_errno if no errors have been detected.
42887
1eb8c802 428882008-01-12 Robert Millan <rmh@aybabtu.com>
42889
42890 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
42891 (grub_util_get_dev_abstraction): New function prototype.
42892
42893 * util/getroot.c: Include `<grub/util/getroot.h>'
42894 (grub_util_get_grub_dev): Move detection of abstraction type to ...
42895 (grub_util_get_dev_abstraction): ... here (new function).
42896
42897 * util/grub-probe.c: Convert PRINT_* to an enum. Add
42898 `PRINT_ABSTRACTION'.
42899 (probe): Probe for abstraction type when requested.
42900 (main): Understand `--target=abstraction'.
42901
42902 * util/i386/efi/grub-install.in: Add abstraction module to core
42903 image when it is found to be necessary.
42904 * util/i386/pc/grub-install.in: Likewise.
42905 * util/powerpc/ieee1275/grub-install.in: Likewise.
42906
42907 * util/update-grub_lib.in (font_path): Return system path without
42908 converting to GRUB path.
42909 * util/update-grub.in: Convert system path returned by font_path()
42910 to a GRUB path. Use `grub-probe -t abstraction' to determine what
42911 abstraction module is needed for loading fonts (if any). Export
42912 that as `GRUB_PRELOAD_MODULES'.
42913 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
42914 insmod commands).
42915
52bd3de9 429162008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
42917
42918 Remove some unused code from reiserfs.
f19dbdb7 42919
52bd3de9 42920 * fs/reiserfs.c (struct grub_reiserfs_key)
42921 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
42922 (struct grub_reiserfs_node_body): Removed.
42923 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
42924 Likewise.
42925 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42926 Likewise.
42927 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42928 Likewise.
42929 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42930 Likewise.
42931 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
42932 Likewise.
42933 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
42934 Likewise.
42935 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42936 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42937 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42938
2f80039d 429392008-01-10 Robert Millan <rmh@aybabtu.com>
42940
42941 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
42942 Determines if a file is garbage left by packaging systems, etc.
42943 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
42944 for processing /etc/grub.d scripts.
42945 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
42946 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
42947 as a condition for processing Linux images.
42948
87888032 429492008-01-10 Pavel Roskin <proski@gnu.org>
42950
42951 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
42952 to compile reiserfs.c on PowerPC.
42953
7e54fced 429542008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 42955
42956 * kern/device.c (grub_device_iterate): Do not abort device iteration
42957 when one of the devices cannot be opened.
42958 * kern/disk.c (grub_disk_open): Do not account previous failures of
42959 unrelated functions when grub_errno is checked for.
42960
5aa541e6 429612008-01-08 Robert Millan <rmh@aybabtu.com>
42962
42963 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
42964 `! grub_linux_is_bzimage', change order of address comparison to make
42965 it more intuitive, and improve "too big zImage" error message.
42966
7076340d 429672008-01-08 Robert Millan <rmh@aybabtu.com>
42968
42969 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
42970 `$(update-grub_DATA)'.
42971 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
42972 targets.
42973
9ca70333 429742008-01-07 Robert Millan <rmh@aybabtu.com>
42975
42976 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
42977 which instruction is modified by grub-setup during installation
42978 (since it wasn't obvious by only looking at this file).
42979
38ccf575 429802008-01-07 Robert Millan <rmh@aybabtu.com>
42981
42982 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
42983 listing actual TODO items.
42984
f5db4291 429852008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42986
868967cf 42987 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
42988 correctly.
42989 (grub_reiserfs_get_key_offset): Likewise.
42990 (grub_reiserfs_set_key_offset): Likewise.
42991 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 42992 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 42993
42994 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
42995 better to remove the bitfield version completely.
f19dbdb7 42996
868967cf 429972008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 42998
f5db4291 42999 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
43000 allocated from the heap, due to the fshelp implementation.
43001 (grub_reiserfs_dir): Free NODE, due to the same reason.
43002
492e6d9d 430032008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43004
43005 Mostly from Vincent Pelletier:
f19dbdb7 43006
492e6d9d 43007 * fs/reiserfs.c: New file.
f19dbdb7 43008
492e6d9d 43009 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
43010 (reiserfs_mod_SOURCES): New variable.
43011 (reiserfs_mod_CFLAGS): Likewise.
43012 (reiserfs_mod_LDFLAGS): Likewise.
43013
43014 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
43015 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
43016 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
43017 normal/color.c.
43018
9ce3e7c1 430192008-01-06 Robert Millan <rmh@aybabtu.com>
43020
43021 * normal/color.c: Remove `<grub/env.h>'.
43022
f3b58148 430232008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
43024
43025 * include/grub/normal.h: Include <grub/env.h>.
43026
7ac3bcfa 430272008-01-05 Robert Millan <rmh@aybabtu.com>
43028
43029 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
43030 usage example with `(hd0,1)'.
fb358190 43031 Reported by Samuel Thibault.
7ac3bcfa 43032
c8ee99d7 430332008-01-05 Robert Millan <rmh@aybabtu.com>
43034
43035 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
43036 (grub_linux_boot_zimage): Rename to ...
43037 (grub_linux_boot): ... this.
43038 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
43039 (grub_linux_boot_zimage): Conditionalize zImage copy.
43040
43041 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
43042 (grub_linux_boot_bzimage): Remove prototype.
43043 (grub_linux_boot_zimage): Rename to ...
43044 (grub_linux_boot): ... this.
43045
43046 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
43047 (grub_linux_boot): Remove function.
43048
0ece25b1 430492008-01-05 Robert Millan <rmh@aybabtu.com>
43050
43051 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
43052 (grub_env_write_color_highlight): Likewise.
43053 (grub_wait_after_message): Likewise.
43054
43055 * normal/color.c: New file.
43056
43057 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43058 (normal_mod_DEPENDENCIES): Likewise.
43059
43060 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43061 (normal_mod_DEPENDENCIES): Likewise.
43062
43063 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43064 (normal_mod_DEPENDENCIES): Likewise.
43065
43066 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43067 (normal_mod_DEPENDENCIES): Likewise.
43068
43069 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
43070 for waiting after a message is printed.
43071 * normal/main.c (read_config_file): Likewise.
43072 (grub_normal_init): Register grub_env_write_color_normal() and
43073 grub_env_write_color_highlight() hooks. Mark `color_normal' and
43074 `color_highlight' variables as global.
43075
43076 * normal/menu.c (grub_wait_after_message): New function.
43077 (grub_color_menu_normal): New variable. Replaces ...
43078 (GRUB_COLOR_MENU_NORMAL): ... this macro.
43079 (grub_color_menu_highlight): New variable. Replaces ...
43080 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
43081 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
43082 `GRUB_TERM_COLOR_STANDARD'.
43083 (print_message): Use `grub_setcolorstate' to reload colors. Rename
43084 `normal_code' and `highlight_code' to `old_color_normal' and
43085 `old_color_highlight', respectively.
43086 (grub_menu_init_page): Update colors when drawing the menu, based on
43087 `menu_color_normal' and `menu_color_highlight' variables.
43088 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
43089 a message is printed.
43090
182dd4e5 430912008-01-05 Robert Millan <rmh@aybabtu.com>
43092
43093 * kern/env.c (grub_env_context_open): Propagate hooks for global
43094 variables to new context.
43095
43096 * kern/main.c (grub_set_root_dev): Export `root' variable.
43097
ddf8f6ad 430982008-01-05 Robert Millan <rmh@aybabtu.com>
43099
43100 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 43101 discs unconditionally, since udev and others have options to provide
ddf8f6ad 43102 them.
43103
d8b43d9b 431042008-01-05 Robert Millan <rmh@aybabtu.com>
43105
43106 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
43107
2bff2de3 431082008-01-04 Christian Franke <franke@computer.org>
43109
43110 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
43111 of eisa_mmap.
43112
97eab917 431132008-01-03 Pavel Roskin <proski@gnu.org>
43114
43115 * kern/i386/linuxbios/init.c: Put "void" to all function
43116 declarations with no arguments.
43117 * kern/powerpc/ieee1275/init.c: Likewise.
43118 * term/i386/pc/at_keyboard.c: Likewise.
43119 * term/i386/pc/vga_text.c: Likewise.
43120 * util/grub-mkdevicemap.c: Likewise.
43121
b9416d00 431222008-01-02 Robert Millan <rmh@aybabtu.com>
43123
43124 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
43125 message when loaded image is out of bounds.
43126 (grub_multiboot_load_elf64): Likewise.
43127
92695df9 431282008-01-02 Pavel Roskin <proski@gnu.org>
43129
43130 * util/grub.d/10_linux.in: Try version without ".old" when
43131 looking for initrd. It's better to use initrd from the newer
43132 kernel of the same version than no initrd at all.
43133
d98d9cad 431342008-01-01 Robert Millan <rmh@aybabtu.com>
43135
43136 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
43137
dbfdce36 431382008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
43139
f19dbdb7 43140 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 43141 grub_video_get_active_render_target.
43142 (grub_video_adapter): Added unmap_color and get_active_render_target.
43143
f19dbdb7 43144 * video/video.c: Added grub_video_unmap_color and
dbfdce36 43145 grub_video_get_active_render_target.
43146 (grub_video_get_info): Changed method to accept NULL pointer as an
43147 argument to allow detection of active video adapter.
43148
43149 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
43150 grub_video_vbe_unmap_color_int.
43151 Added grub_video_vbe_unmap_color and
43152 grub_video_vbe_get_active_render_target.
43153 (grub_video_vbe_adapter): Added unmap_color and
43154 get_active_render_target.
43155
f19dbdb7 43156 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 43157 with grub_video_vbe_unmap_color_int.
43158
43159 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
43160 (DEFAULT_NORMAL_COLOR): Likewise.
43161 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
43162 (DEFAULT_FG_COLOR): Removed.
43163 (DEFAULT_BG_COLOR): Likewise.
43164 (DEFAULT_CURSOR_COLOR): Changed value.
43165 (grub_virtual_screen): Added standard_color_setting,
43166 normal_color_setting, highlight_color_setting and term_color.
43167 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
43168 (bitmap_width): Added.
43169 (bitmap_height): Likewise.
43170 (bitmap): Likewise.
43171 (set_term_color): Likewise.
43172 (grub_virtual_screen_setup): Changed to use new terminal coloring
43173 settings.
43174 (grub_gfxterm_init): Added init for bitmap.
43175 (grub_gfxterm_fini): Added destroy for bitmap.
43176 (redraw_screen_rect): Updated to use background bitmap and new
43177 terminal coloring.
43178 (scroll_up): Added optimization for case when there is no bitmap.
43179 (grub_gfxterm_cls): Fixed to use correct background color.
43180 (grub_virtual_screen_setcolorstate): Changed to use new terminal
43181 coloring.
43182 (grub_virtual_screen_setcolor): Likewise.
43183 (grub_virtual_screen_getcolor): Added.
43184 (grub_gfxterm_background_image_cmd): Likewise.
43185 (grub_video_term): Added setcolor and getcolor.
43186 (MOD_INIT): Added registration of background_image command.
43187 (MOD_TERM): Added unregistration for background_image command.
43188
c3c20931 431892007-12-30 Pavel Roskin <proski@gnu.org>
43190
43191 * loader/multiboot_loader.c: Fix multiboot command
43192 unregistration. Fix all typos in the word "multiboot".
43193
df266716 431942007-12-29 Pavel Roskin <proski@gnu.org>
94239199 43195
43196 * util/grub.d/10_linux.in: Refactor search for initrd. Add
43197 support for initrd names used in Fedora.
43198
fc6e896c 431992007-12-26 Bean <bean123ch@gmail.com>
43200
43201 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
43202 (cpio_mod_SOURCES): New variable.
43203 (cpio_mod_CFLAGS): Likewise.
43204 (cpio_mod_LDFLAGS): Likewise.
43205
43206 * fs/cpio.c: New file.
43207
43208 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
43209
43210 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43211
43212 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43213
43214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43215
533110ad 432162007-12-25 Robert Millan <rmh@aybabtu.com>
43217
43218 * include/grub/term.h (struct grub_term): Add `getcolor' function.
43219 (grub_getcolor): New function.
43220
43221 * kern/term.c (grub_getcolor): New function.
43222 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
43223 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
43224 (print_entry): Set normal and highlight colors to
43225 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
43226 respectively, before printing and restore them to old
43227 values afterwards.
43228 (grub_menu_init_page): Likewise. Fill an additional colored space
43229 that would otherwise be left blank.
43230
43231 * term/efi/console.c (grub_console_getcolor): New function.
43232 (struct grub_console_term.getcolor): New variable.
43233 * term/i386/pc/console.c (grub_console_getcolor): New function.
43234 (struct grub_console_term.getcolor): New variable.
43235 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
43236 (struct grub_console_term.getcolor): New variable.
43237
43238 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
43239 (struct grub_console_term.setcolor): Remove variable.
43240 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
43241 (struct grub_console_term.setcolor): Remove variable.
43242 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
43243 (struct grub_console_term.setcolor): Remove variable.
43244 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
43245 (struct grub_console_term.setcolor): Remove variable.
43246
4931827f 432472007-12-25 Robert Millan <rmh@aybabtu.com>
43248
43249 * configure.ac: Search for possible unifont.hex locations, and
43250 define UNIFONT_HEX if found.
43251
43252 * Makefile.in (UNIFONT_HEX): Define variable.
43253 (DATA): Rename to ...
43254 (PKGLIB): ... this. Update all users.
43255 (PKGDATA): New variable.
43256 (pkgdata_IMAGES): Rename to ...
43257 (pkglib_IMAGES): ... this. Update all users.
43258 (pkgdata_MODULES): Rename to ...
43259 (pkglib_MODULES): ... this. Update all users.
43260 (pkgdata_PROGRAMS): Rename to ...
43261 (pkglib_PROGRAMS): ... this. Update all users.
43262 (pkgdata_DATA): Rename to ...
43263 (pkglib_DATA): ... this. Update all users.
43264 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
43265 (unicode.pff, ascii.pff): New rules.
43266 (all-local): Add `$(PKGDATA)' dependency.
43267 (install-local): Process `$(PKGDATA)'.
43268
43269 * util/update-grub_lib.in (font_path): Search for *.pff files in
43270 a few more locations, including `${pkgdata}'.
43271
57e57e31 432722007-12-23 Robert Millan <rmh@aybabtu.com>
43273
43274 Patch from Bean <bean123ch@gmail.com>:
43275 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
43276 `size'.
43277
4bc72aa9 432782007-12-21 Bean <bean123ch@gmail.com>
43279
43280 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
43281 (ntfscomp_mod_SOURCES): New variable.
43282 (ntfscomp_mod_CFLAGS): Likewise.
43283 (ntfscomp_mod_LDFLAGS): Likewise.
43284
43285 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
43286 (grub_probe_SOURCES): Likewise.
43287 (grub_emu_SOURCES): Likewise.
43288
43289 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43290 (grub_emu_SOURCES): Likewise.
43291
43292 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43293 (grub_emu_SOURCES): Likewise.
43294
43295 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43296 (grub_emu_SOURCES): Likewise.
43297
43298 * fs/ntfs.c (grub_ntfscomp_func): New variable.
43299 (read_run_list): Renamed to grub_ntfs_read_run_list.
43300 (decomp_nextvcn): Moved to ntfscomp.c.
43301 (decomp_getch): Likewise.
43302 (decomp_get16): Likewise.
43303 (decomp_block): Likewise.
43304 (read_block): Likewise.
43305 (read_data): Partially moved to ntfscomp.c.
43306 (fixup): Change unsigned to grub_uint16_t.
43307 (read_mft): Change unsigned long to grub_uint32_t.
43308 (read_attr): Likewise.
43309 (read_data): Likewise.
43310 (read_run_data): Likewise.
43311 (read_run_list): Likewise.
43312 (read_mft): Likewise.
43313
43314 * fs/ntfscomp.c: New file.
43315
43316 * include/grub/ntfs.h: New file.
43317
af680a87 433182007-12-16 Robert Millan <rmh@aybabtu.com>
43319
43320 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
43321 IDE disk check, since Linux is known to support 20 IDE disks.
43322 Reported by Colin Watson.
43323
84be7599 433242007-12-15 Bean <bean123ch@gmail.com>
43325
43326 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
43327 (lnxboot_img_SOURCES): New variable.
43328 (lnxboot_img_ASFLAGS): Likewise.
43329 (lnxboot_img_LDFLAGS): Likewise.
43330
43331 * boot/i386/pc/lnxboot.S: New file.
43332
6af9db01 433332007-11-24 Pavel Roskin <proski@gnu.org>
43334
43335 * configure.ac: Test if '--build-id=none' is supported by the
43336 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
43337 objcopy to generate incorrect binary files (binutils
43338 2.17.50.0.18-1 as shipped by Fedora 8).
43339 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
43340 linking, so that build ID doesn't break the test.
43341
7361cfe6 433422007-11-24 Pavel Roskin <proski@gnu.org>
43343
43344 * include/grub/i386/time.h: use "void" in the argument list
43345 of grub_cpu_idle().
43346 * include/grub/powerpc/time.h: Likewise.
43347 * include/grub/sparc64/time.h: Likewise.
43348
1593e10c 433492007-11-18 Christian Franke <franke@computer.org>
43350
43351 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
43352 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
43353 This fixes the problem that function keys did not work in grub-emu.
43354
3b8db1a8 433552007-11-18 Christian Franke <franke@computer.org>
43356
43357 * disk/host.c (grub_host_open): Remove attribute unused from
43358 name parameter. Add check for "host". This fixes the problem
43359 that grub-emu does not find partitions.
43360
2e29408d 433612007-11-18 Christian Franke <franke@computer.org>
43362
43363 * util/hostfs.c (is_dir): New function.
43364 (grub_hostfs_dir): Handle missing dirent.d_type case.
43365 (grub_hostfs_read): Add missing fseek().
43366 (grub_hostfs_label): Clear label pointer. This fixes a crash
43367 of grub-emu on "ls (host)".
43368
398cd047 433692007-11-18 Christian Franke <franke@computer.org>
43370
43371 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
43372 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
43373 to 64 bit boundary by default.
43374
c405c391 433752007-11-18 Bean <bean123ch@gmail.com>
43376
43377 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
43378 (hexdump_mod_SOURCES): New variable.
43379 (hexdump_mod_CFLAGS): Likewise.
43380 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 43381
c405c391 43382 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43383
43384 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43385
43386 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43387
43388 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43389
43390 * include/grub/hexdump.h: New file.
43391
43392 * commands/hexdump.c: New file.
43393
5cced7fd 433942007-11-10 Robert Millan <rmh@aybabtu.com>
43395
43396 * commands/i386/pc/play.c (beep_off): Switch order of arguments
43397 in grub_outb() calls.
43398 (beep_on): Likewise.
43399
8b714eb0 434002007-11-10 Christian Franke <franke@computer.org>
43401
43402 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
43403 (grub_menu_run): Likewise.
43404
ce0f1839 434052007-11-10 Robert Millan <rmh@aybabtu.com>
43406
43407 * include/grub/i386/efi/machine.h: New file.
43408 * include/grub/i386/linuxbios/machine.h: Likewise.
43409 * include/grub/i386/pc/machine.h: Likewise.
43410 * include/grub/powerpc/ieee1275/machine.h: Likewise.
43411 * include/grub/sparc64/ieee1275/machine.h: Likewise.
43412
43413 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
43414 (serial_hw_io_addr): New variable.
43415 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
43416 instead of `(unsigned short *) 0x400'.
43417
270c237d 434182007-11-10 Bean <bean123ch@gmail.com>
43419
43420 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
43421
a87783bf 434222007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43423
43424 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
43425 (vga_mod_SOURCES): Added.
43426 (vga_mod_CFLAGS): Likewise.
43427 (vga_mod_LDFLAGS): Likewise.
43428
43429 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
43430 grub_outb() calls.
43431 (set_map_mask): Likewise.
43432 (set_read_map): Likewise.
43433 (set_read_address): Likewise.
43434 (vga_font): Removed variable.
43435 (get_vga_glyph): Removed function.
43436 (invalidate_char): Likewise.
43437 (write_char): Changed to use grub_font_get_glyph() for font
43438 information.
43439 (grub_vga_putchar): Likewise.
43440 (grub_vga_getcharwidth): Likewise.
43441
6433b448 434422007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43443
43444 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
43445 flags.
43446 (pxeboot_img_LDFLAGS): Likewise.
43447 (diskboot_img_LDFLAGS): Likewise.
43448 (kernel_img_LDFLAGS): Likewise.
43449
49178511 434502007-11-06 Robert Millan <rmh@aybabtu.com>
43451
43452 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
43453 in grub_outb() calls.
43454 (serial_hw_init): Likewise.
43455
53b052de 434562007-11-05 Robert Millan <rmh@aybabtu.com>
43457
43458 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
43459 spaces. Skip non-regular files.
43460
5ab33bba 434612007-11-05 Robert Millan <rmh@aybabtu.com>
43462
43463 * kern/disk.c (grub_disk_firmware_fini)
43464 (grub_disk_firmware_is_tainted): New variables.
43465
43466 * include/grub/disk.h (grub_disk_firmware_fini)
43467 (grub_disk_firmware_is_tainted): Likewise.
43468
43469 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
43470 (grub_disk_biosdisk_fini): ... to here.
43471 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
43472 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
43473 is set. Register grub_disk_biosdisk_fini() in
43474 `grub_disk_firmware_fini'.
43475
43476 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
43477 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
43478 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
43479 to finish existing firmware disk interface.
43480
43481 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
43482 (ata_mod_SOURCES): New variable.
43483 (ata_mod_CFLAGS): Likewise.
43484 (ata_mod_LDFLAGS): Likewise.
43485
0149ab7c 434862007-11-05 Robert Millan <rmh@aybabtu.com>
43487
43488 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
43489 (grub_ata_wait): Reimplement using grub_millisleep().
43490
43491 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
43492 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
43493
be7ac41e 434942007-11-03 Marco Gerards <marco@gnu.org>
43495
43496 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
43497 (CRTC_ADDR_PORT): New macro.
43498 (CRTC_DATA_PORT): Likewise.
43499 (CRTC_CURSOR): Likewise.
43500 (CRTC_CURSOR_ADDR_HIGH): Likewise.
43501 (CRTC_CURSOR_ADDR_LOW): Likewise.
43502 (update_cursor): New function.
43503 (grub_console_real_putchar): Call `update_cursor'.
43504 (grub_console_gotoxy): Likewise.
43505 (grub_console_cls): Set the default color when clearing the
43506 screen.
43507 (grub_console_setcursor): Implemented.
43508
bb06ab2e 435092007-11-03 Marco Gerards <marco@gnu.org>
43510
43511 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
43512 become activate.
43513 (grub_ata_pio_write): Likewise.
43514
43515 (grub_atapi_identify): Wait after issuing an ATA command.
43516 (grub_atapi_packet): Likewise.
43517 (grub_ata_identify): Likewise.
43518 (grub_ata_readwrite): Likewise.
43519
cf8f780b 435202007-11-03 Marco Gerards <marco@gnu.org>
43521
43522 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
43523 (grub_ata_pio_write): Likewise.
43524 (grub_ata_readwrite): Use `grub_error', instead of
43525 returning `grub_errno'.
43526
ed649e54 435272007-11-03 Marco Gerards <marco@gnu.org>
43528
43529 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
43530 grub_ata_pio_write once for every single sector, instead of for
43531 multiple sectors.
43532
ca25d8f0 435332007-10-31 Robert Millan <rmh@aybabtu.com>
43534
43535 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
43536
43537 * conf/i386-linuxbios.rmk: New file.
43538
43539 * kern/i386/pc/hardware.c: Likewise.
43540 * term/i386/pc/at_keyboard.c: Likewise.
43541 * term/i386/pc/vga_text.c: Likewise.
43542
43543 * include/grub/i386/linuxbios/boot.h: Likewise.
43544 * include/grub/i386/linuxbios/console.h: Likewise.
43545 * include/grub/i386/linuxbios/init.h: Likewise.
43546 * include/grub/i386/linuxbios/kernel.h: Likewise.
43547 * include/grub/i386/linuxbios/loader.h: Likewise.
43548 * include/grub/i386/linuxbios/memory.h: Likewise.
43549 * include/grub/i386/linuxbios/serial.h: Likewise.
43550 * include/grub/i386/linuxbios/time.h: Likewise.
43551
43552 * kern/i386/linuxbios/init.c: Likewise.
43553 * kern/i386/linuxbios/startup.S: Likewise.
43554 * kern/i386/linuxbios/table.c: Likewise.
43555
e911ecc1 435562007-10-31 Marco Gerards <marco@gnu.org>
43557
43558 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
43559 (ata_mod_SOURCES): New variable.
43560 (ata_mod_CFLAGS): Likewise.
43561 (ata_mod_LDFLAGS): Likewise.
43562
43563 * disk/ata.c: New file.
43564
43565 * include/grub/disk.h (grub_disk_dev_id): Add
43566 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 43567
7f66d0e0 435682007-10-31 Robert Millan <rmh@aybabtu.com>
43569
43570 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
43571 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
43572
43573 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
43574 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
43575
43576 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
43577 `<grub/types.h>'.
43578
43579 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
43580
5cd7dd46 435812007-10-27 Robert Millan <rmh@aybabtu.com>
43582
3236ca65 43583 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 43584
2ebfc90f 435852007-10-22 Robert Millan <rmh@aybabtu.com>
43586
43587 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
43588 `"../realmode.S"'.
43589 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
43590
73fcb0f3 435912007-10-22 Robert Millan <rmh@aybabtu.com>
43592
43593 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
43594 (pkgdata_MODULES): Add `biosdisk.mod'.
43595 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
43596 variables.
43597
43598 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
43599 (grub_biosdisk_init): Replace with ...
43600 (GRUB_MOD_INIT(biosdisk)): ... this.
43601 (grub_biosdisk_fini): Replace with ...
43602 (GRUB_MOD_FINI(biosdisk)): ... this.
43603
43604 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
43605 (grub_machine_init): Remove call to grub_biosdisk_init().
43606 (grub_machine_fini): Remove call to grub_machine_fini().
43607
43608 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
43609
3381d274 436102007-10-22 Robert Millan <rmh@aybabtu.com>
43611
43612 * include/grub/time.h: New file.
43613 * include/grub/i386/time.h: Likewise.
43614 * include/grub/powerpc/time.h: Likewise.
43615 * include/grub/sparc64/time.h: Likewise.
43616
43617 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
43618 instances to ...
43619 (KERNEL_MACHINE_TIME_HEADER): ... this.
43620 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
43621 instances to ...
43622 (KERNEL_MACHINE_TIME_HEADER): ... this.
43623 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
43624 instances to ...
43625 (KERNEL_MACHINE_TIME_HEADER): ... this.
43626
43627 * kern/i386/efi/init.c: Include `<grub/time.h>'.
43628 (grub_millisleep): New function.
43629 * kern/i386/pc/init.c: Include `<grub/time.h>'.
43630 (grub_millisleep): New function.
43631 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
43632 Remove `grub/machine/time.h' include.
43633 (grub_millisleep): New function.
43634 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
43635 Remove `grub/machine/time.h' include.
43636 (grub_millisleep): New function.
43637
43638 * include/grub/misc.h (grub_div_roundup): New function.
43639
43640 * kern/misc.c: Include `<grub/time.h>'.
43641 (grub_millisleep_generic): New function.
43642
43643 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
43644 Add `time.h'.
43645 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
43646 Add `time.h'.
43647 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
43648 `machine/time.h'. Add `time.h'.
43649 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43650
a39a0312 436512007-10-21 Robert Millan <rmh@aybabtu.com>
43652
43653 * include/grub/misc.h (grub_max): New function.
43654
2aad70e2 436552007-10-21 Robert Millan <rmh@aybabtu.com>
43656
43657 * util/misc.c (grub_util_info): Call fflush() before returning.
43658
54b71c4b 436592007-10-20 Robert Millan <rmh@aybabtu.com>
43660
43661 * genmk.rb (Image): Copy `extra_flags' from here ...
43662 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
43663
43664 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
43665 to `argc' and `args' arguments.
43666
a979f513 436672007-10-17 Robert Millan <rmh@aybabtu.com>
43668
43669 * kern/i386/loader.S: New file.
43670
43671 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
43672 * kern/i386/loader.S (grub_linux_prot_size)... to here.
43673 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
43674 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
43675 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
43676 * kern/i386/loader.S (grub_linux_real_addr)... to here.
43677 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
43678 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
43679 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
43680 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
43681 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
43682 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
43683 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
43684 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
43685
43686 * kern/i386/realmode.S: New file.
43687
43688 * kern/i386/pc/startup.S (protstack): Moved from here ...
43689 * kern/i386/realmode.S (protstack)... to here.
43690 * kern/i386/pc/startup.S (gdt): Moved from here ...
43691 * kern/i386/realmode.S (gdt)... to here.
43692 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
43693 * kern/i386/realmode.S (prot_to_real)... to here.
43694
43695 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
43696 `kern/i386/realmode.S'.
43697
825fc8fd 436982007-10-17 Robert Millan <rmh@aybabtu.com>
43699
43700 * include/grub/i386/loader.h: New file.
43701
43702 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
43703 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
43704 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
43705 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
43706 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
43707 * include/grub/i386/loader.h (grub_linux_prot_size)
43708 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
43709 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
43710 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
43711 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
43712
43713 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
43714
e179b2f4 437152007-10-15 Robert Millan <rmh@aybabtu.com>
43716
43717 * normal/misc.c (grub_normal_print_device_info): Do not probe for
43718 filesystem when dev->disk is unset.
43719 Do probe for filesystem even when dev->disk->has_partitions is set.
43720 In case a filesystem is found, always report it.
43721 In case it isn't, if dev->disk->has_partitions is set, report that
43722 a partition table was found instead of reporting that no filesystem
43723 could be identified.
43724
5db82af6 437252007-10-12 Robert Millan <rmh@aybabtu.com>
43726
43727 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
43728 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
43729
68f6ac74 43730 * include/grub/types.h (grub_host_to_target16): New macro.
43731 (grub_host_to_target32): Likewise.
43732 (grub_host_to_target64): Likewise.
43733 (grub_target_to_host16): Likewise.
43734 (grub_target_to_host32): Likewise.
43735 (grub_target_to_host64): Likewise.
5db82af6 43736
43737 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
43738 Renamed from to ...
43739 (GRUB_MOD_ALIGN): ...this. Update all users.
43740
68f6ac74 43741 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
43742 grub_host_to_target32.
43743 Replace grub_be_to_cpu32 with grub_target_to_host32.
43744 (load_modules): Likewise.
43745 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
43746 Replace grub_be_to_cpu32 with grub_target_to_host32.
43747 Replace grub_cpu_to_be16 with grub_host_to_target16.
43748 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 43749
3cf497cc 437502007-10-12 Robert Millan <rmh@aybabtu.com>
43751
43752 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
43753 * util/elf/grub-mkimage.c: ... here.
43754
43755 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
43756 `util/powerpc/ieee1275/grub-mkimage.c'.
43757
c8cc3692 437582007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 43759
c8cc3692 43760 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
43761 and make it easier to figure out.
43762 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
43763 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
43764 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
43765 leave us with less than HEAP_MIN_SIZE total heap.
43766 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 43767
5c58b791 437682007-10-03 Robert Millan <rmh@aybabtu.com>
43769
43770 * include/grub/i386/io.h: New file.
43771 * commands/i386/pc/play.c (inb): Removed.
43772 (outb): Removed.
43773 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
43774 with grub_outb().
afcd2ef8 43775 * term/i386/pc/serial.c (inb): Removed.
43776 (outb): Removed.
43777 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
43778 with grub_outb().
43779 * term/i386/pc/vga.c (inb): Removed.
43780 (outb): Removed.
43781 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
43782 with grub_outb().
5c58b791 43783
1a477ed6 437842007-10-02 Robert Millan <rmh@aybabtu.com>
43785
43786 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
43787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43788 Reported by Marcin Kurek.
43789
6b5d80fa 437902007-09-07 Robert Millan <rmh@aybabtu.com>
43791
43792 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
43793 SmartFirmware version updates (as released by Sven Luther), and avoid
43794 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
43795 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
43796 known broken.
43797
5618afbf 437982007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43799
43800 From Hitoshi Ozeki:
43801 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
43802 when merging two regions.
43803
6139dcd9 438042007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43805
508e39ee 43806 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
43807 * normal/completion.c (grub_normal_do_completion): Likewise.
43808 Reported by Hitoshi Ozeki.
43809
438102007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43811
6139dcd9 43812 Do not use devices at boot in chainloading.
f19dbdb7 43813
6139dcd9 43814 * loader/i386/pc/chainloader.c (boot_drive): New variable.
43815 (boot_part_addr): Likewise.
43816 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
43817 with BOOT_DRIVE and BOOT_PART_ADDR.
43818 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
43819 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
43820
38da6516 438212007-08-29 Robert Millan <rmh@aybabtu.com>
43822
43823 Patch from Simon Peter <dn.tlp@gmx.net>:
43824 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
43825 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
43826 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
43827 util/i386/pc/grub-setup.c_DEPENDENCIES.
43828 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
43829 util/grub-probe.c_DEPENDENCIES.
43830 * conf/powerpc-ieee1275.rmk: Likewise.
43831
29d0928c 438322007-08-28 Robert Millan <rmh@aybabtu.com>
43833
43834 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
43835 to tell grub-mkdevicemap how to name devices.
43836 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
43837 feature).
43838
43839 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
43840 util/i386/get_disk_name.c.
43841 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
43842 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
43843 util/ieee1275/get_disk_name.c.
43844
43845 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
43846
43847 * DISTLIST: Add util/i386/get_disk_name.c and
43848 util/ieee1275/get_disk_name.c.
43849
43850 * util/grub-mkdevicemap.c: Replace device naming logic with
43851 grub_util_get_disk_name() calls.
43852
5a0d3cca 438532007-08-20 Robert Millan <rmh@aybabtu.com>
43854
43855 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
43856 (so that it works for both plural and singular quantities).
43857
8b72db2f 438582007-08-05 Robert Millan <rmh@aybabtu.com>
43859
43860 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
43861 so that [xz] isn't taken into account when determining order.
43862
352466bf 438632007-08-02 Marco Gerards <marco@gnu.org>
43864
43865 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
43866 `include/multiboot2.h', `include/grub/elfload.h',
43867 `include/multiboot.h', `include/grub/multiboot.h',
43868 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
43869 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
43870 `kern/elf.c', `loader/multiboot_loader.c',
43871 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
43872 `loader/i386/pc/multiboot2.c',
43873 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
43874 `util/i386/pc/grub-mkrescue.in'. Remove
43875 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
43876 `include/grub/i386/pc/util/biosdisk.h' and
43877 `include/grub/powerpc/ieee1275/multiboot.h'.
43878
8f096014 438792007-08-02 Bean <bean123ch@gmail.com>
43880
43881 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
43882 (ntfs_mod_SOURCES): New variable.
43883 (ntfs_mod_CFLAGS): Likewise.
43884 (ntfs_mod_LDFLAGS): Likewise.
43885
43886 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
43887 (grub_probe_SOURCES): Likewise.
43888 (grub_emu_SOURCES): Likewise.
43889
43890 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
43891 (grub_emu_SOURCES): Likewise.
43892
43893 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
43894 (grub_emu_SOURCES): Likewise.
f19dbdb7 43895
8f096014 43896 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
43897
43898 * fs/ntfs.c: New file.
43899
9959f7db 439002007-08-02 Bean <bean123ch@gmail.com>
43901
43902 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
43903
43904 * file.h (grub_file): Likewise.
43905
43906 * fshelp.h (grub_fshelp_read_file): Likewise.
43907
43908 * util/i386/pc/grub-setup.c (setup): Likewise.
43909 (save_first_sector): Likewise.
43910 (save_blocklists): Likewise.
f19dbdb7 43911
9959f7db 43912 * fs/affs.c (grub_affs_read_file): Likewise.
43913
43914 * fs/ext2.c (grub_ext2_read_file): Likewise.
43915
43916 * fs/fat.c (grub_fat_read_data): Likewise.
43917
43918 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
43919
43920 * fs/hfs.c (grub_hfs_read_file): Likewise.
43921
43922 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
43923
43924 * fs/jfs.c (grub_jfs_read_file): Likewise.
43925
43926 * fs/minix.c (grub_minix_read_file): Likewise.
43927
43928 * fs/sfs.c (grub_sfs_read_file): Likewise.
43929
43930 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 43931
9959f7db 43932 * fs/xfs.c (grub_xfs_read_file): Likewise.
43933
43934 * command/blocklist.c (read_blocklist): Likewise.
43935 (print_blocklist): Likewise.
43936
0a203f83 439372007-08-02 Marco Gerards <marco@gnu.org>
43938
43939 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
43940 `util/hostfs.c'.
43941
43942 * disk/host.c: New file.
43943
43944 * util/hostfs.c: Likewise.
43945
43946 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
43947 return `GRUB_ERR_BAD_FS'.
43948 * fs/sfs.c (grub_sfs_mount): Likewise.
43949 * fs/xfs.c (grub_xfs_mount): Likewise.
43950
43951 * include/grub/disk.h (enum grub_disk_dev_id): Add
43952 `GRUB_DISK_DEVICE_HOST_ID'.
43953
43954 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
43955
e5dfe777 439562007-07-24 Jerone Young <jerone@gmail.com>
43957
f19dbdb7 43958 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 43959 modules for compilation.
43960 * conf/powerpc-ieee1275.rmk: Likewise.
43961
43962 * include/multiboot.h: Move multiboot definitions to one file. Rename
43963 many definitions to not get grub specific.
43964 * include/multiboot2.h: Create header with multiboot 2 definitions.
43965 * include/grub/multiboot.h: Header for grub specific function
43966 prototypes and definitions.
43967 * include/grub/multiboot2.h: Likewise.
43968 * include/grub/multiboot_loader.h: Likewise.
43969 * include/grub/i386/pc/multiboot.h: Removed.
43970 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
43971
43972 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
43973 and 2 to allow for one multiboot and module commands.
43974 * loader/multiboot2.c: Add multiboot2 functionality.
43975 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
43976 and definition names.
43977 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
43978 2 functions.
43979 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
43980 ieee1275 specific multiboot2 code.
43981
43982 * kern/i386/pc/startup.S: Change headers and definition names for
43983 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
43984
daf0f0ba 439852007-07-22 Robert Millan <rmh@aybabtu.com>
43986
43987 * geninitheader.sh: Process file specified in first parameter rather
43988 than hardcoding grub_modules_init.lst.
fe6b695a 43989 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 43990 than hardcoding grub_modules_init.h.
43991
43992 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
43993 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
43994 grub_probe_init.[ch] and grub_setup_init.[ch].
43995
43996 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
43997 grub_modules_init.h with grub_emu_init.h.
43998 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
43999 grub_probe_init.[ch] files.
44000 * conf/i386-efi.rmk: Likewise.
44001 * conf/i386-pc.rmk: Likewise.
44002 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
44003 grub_setup_init.[ch] files.
44004
44005 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
44006 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
44007 to initialize modules rather than a list of hardcoded functions.
44008 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
44009 grub_init_all() to initialize modules rather than a list of hardcoded
44010 functions.
44011
54cdc1cc 440122007-07-22 Robert Millan <rmh@aybabtu.com>
44013
44014 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
44015 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
44016
ad0686cc 440172007-07-22 Robert Millan <rmh@aybabtu.com>
44018
44019 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
44020 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
44021 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
44022 flag when running on SmartFirmware.
44023 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
44024 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
44025 was set.
44026
44027 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44028 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
44029 rather than decreasing it.
44030
44031 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
44032 there's not enough space to do it, fail in the same way as when it
44033 can't be done because there are no partitions.
44034
44035 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
44036 when nvsetenv failed.
44037
969c02ec 440382007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44039
44040 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
44041 because this rule is automatically generated.
44042 (grub-mkrescue): Removed for the same reason as above.
44043
5a79f472 440442007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44045
44046 Migrate to GNU General Public License Version 3.
f19dbdb7 44047
5a79f472 44048 * COPYING: Replaced with the plain text version of GPLv3.
44049
44050 * config.guess: Updated from gnulib.
44051 * config.sub: Likewise.
44052
44053 * geninit.sh: Output a GPLv3 copyright notice.
44054 * geninitheader.sh: Likewise.
44055 * genmodsrc.sh: Likewise.
44056 * gensymlist.sh.in: Likewise.
44057
44058 * boot/i386/pc/boot.S: Upgraded to GPLv3.
44059 * boot/i386/pc/diskboot.S: Likewise.
44060 * boot/i386/pc/pxeboot.S: Likewise.
44061 * commands/blocklist.c: Likewise.
44062 * commands/boot.c: Likewise.
44063 * commands/cat.c: Likewise.
44064 * commands/cmp.c: Likewise.
44065 * commands/configfile.c: Likewise.
44066 * commands/echo.c: Likewise.
44067 * commands/help.c: Likewise.
44068 * commands/ls.c: Likewise.
44069 * commands/search.c: Likewise.
44070 * commands/terminal.c: Likewise.
44071 * commands/test.c: Likewise.
44072 * commands/videotest.c: Likewise.
44073 * commands/i386/cpuid.c: Likewise.
44074 * commands/i386/pc/halt.c: Likewise.
44075 * commands/i386/pc/play.c: Likewise.
44076 * commands/i386/pc/reboot.c: Likewise.
44077 * commands/i386/pc/vbeinfo.c: Likewise.
44078 * commands/i386/pc/vbetest.c: Likewise.
44079 * commands/ieee1275/halt.c: Likewise.
44080 * commands/ieee1275/reboot.c: Likewise.
44081 * commands/ieee1275/suspend.c: Likewise.
44082 * disk/loopback.c: Likewise.
44083 * disk/lvm.c: Likewise.
44084 * disk/raid.c: Likewise.
44085 * disk/efi/efidisk.c: Likewise.
44086 * disk/i386/pc/biosdisk.c: Likewise.
44087 * disk/ieee1275/ofdisk.c: Likewise.
44088 * font/manager.c: Likewise.
44089 * fs/affs.c: Likewise.
44090 * fs/ext2.c: Likewise.
44091 * fs/fat.c: Likewise.
44092 * fs/fshelp.c: Likewise.
44093 * fs/hfs.c: Likewise.
44094 * fs/hfsplus.c: Likewise.
44095 * fs/iso9660.c: Likewise.
44096 * fs/jfs.c: Likewise.
44097 * fs/minix.c: Likewise.
44098 * fs/sfs.c: Likewise.
44099 * fs/ufs.c: Likewise.
44100 * fs/xfs.c: Likewise.
44101 * hello/hello.c: Likewise.
44102 * include/grub/acorn_filecore.h: Likewise.
44103 * include/grub/arg.h: Likewise.
44104 * include/grub/bitmap.h: Likewise.
44105 * include/grub/boot.h: Likewise.
44106 * include/grub/cache.h: Likewise.
44107 * include/grub/device.h: Likewise.
44108 * include/grub/disk.h: Likewise.
44109 * include/grub/dl.h: Likewise.
44110 * include/grub/elfload.h: Likewise.
44111 * include/grub/env.h: Likewise.
44112 * include/grub/err.h: Likewise.
44113 * include/grub/file.h: Likewise.
44114 * include/grub/font.h: Likewise.
44115 * include/grub/fs.h: Likewise.
44116 * include/grub/fshelp.h: Likewise.
44117 * include/grub/gzio.h: Likewise.
44118 * include/grub/hfs.h: Likewise.
44119 * include/grub/kernel.h: Likewise.
44120 * include/grub/loader.h: Likewise.
44121 * include/grub/lvm.h: Likewise.
44122 * include/grub/misc.h: Likewise.
44123 * include/grub/mm.h: Likewise.
44124 * include/grub/net.h: Likewise.
44125 * include/grub/normal.h: Likewise.
44126 * include/grub/parser.h: Likewise.
44127 * include/grub/partition.h: Likewise.
44128 * include/grub/pc_partition.h: Likewise.
44129 * include/grub/raid.h: Likewise.
44130 * include/grub/rescue.h: Likewise.
44131 * include/grub/script.h: Likewise.
44132 * include/grub/setjmp.h: Likewise.
44133 * include/grub/symbol.h: Likewise.
44134 * include/grub/term.h: Likewise.
44135 * include/grub/terminfo.h: Likewise.
44136 * include/grub/tparm.h: Likewise.
44137 * include/grub/types.h: Likewise.
44138 * include/grub/video.h: Likewise.
44139 * include/grub/efi/api.h: Likewise.
44140 * include/grub/efi/chainloader.h: Likewise.
44141 * include/grub/efi/console.h: Likewise.
44142 * include/grub/efi/console_control.h: Likewise.
44143 * include/grub/efi/disk.h: Likewise.
44144 * include/grub/efi/efi.h: Likewise.
44145 * include/grub/efi/pe32.h: Likewise.
44146 * include/grub/efi/time.h: Likewise.
44147 * include/grub/i386/linux.h: Likewise.
44148 * include/grub/i386/setjmp.h: Likewise.
44149 * include/grub/i386/types.h: Likewise.
44150 * include/grub/i386/efi/kernel.h: Likewise.
44151 * include/grub/i386/efi/loader.h: Likewise.
44152 * include/grub/i386/efi/time.h: Likewise.
44153 * include/grub/i386/pc/biosdisk.h: Likewise.
44154 * include/grub/i386/pc/boot.h: Likewise.
44155 * include/grub/i386/pc/chainloader.h: Likewise.
44156 * include/grub/i386/pc/console.h: Likewise.
44157 * include/grub/i386/pc/init.h: Likewise.
44158 * include/grub/i386/pc/kernel.h: Likewise.
44159 * include/grub/i386/pc/loader.h: Likewise.
44160 * include/grub/i386/pc/memory.h: Likewise.
44161 * include/grub/i386/pc/multiboot.h: Likewise.
44162 * include/grub/i386/pc/serial.h: Likewise.
44163 * include/grub/i386/pc/time.h: Likewise.
44164 * include/grub/i386/pc/vbe.h: Likewise.
44165 * include/grub/i386/pc/vbeblit.h: Likewise.
44166 * include/grub/i386/pc/vbefill.h: Likewise.
44167 * include/grub/i386/pc/vbeutil.h: Likewise.
44168 * include/grub/i386/pc/vga.h: Likewise.
44169 * include/grub/ieee1275/ieee1275.h: Likewise.
44170 * include/grub/ieee1275/ofdisk.h: Likewise.
44171 * include/grub/powerpc/libgcc.h: Likewise.
44172 * include/grub/powerpc/setjmp.h: Likewise.
44173 * include/grub/powerpc/types.h: Likewise.
44174 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
44175 * include/grub/powerpc/ieee1275/console.h: Likewise.
44176 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
44177 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
44178 * include/grub/powerpc/ieee1275/loader.h: Likewise.
44179 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
44180 * include/grub/powerpc/ieee1275/time.h: Likewise.
44181 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
44182 * include/grub/sparc64/libgcc.h: Likewise.
44183 * include/grub/sparc64/setjmp.h: Likewise.
44184 * include/grub/sparc64/types.h: Likewise.
44185 * include/grub/sparc64/ieee1275/console.h: Likewise.
44186 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44187 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44188 * include/grub/sparc64/ieee1275/time.h: Likewise.
44189 * include/grub/util/biosdisk.h: Likewise.
44190 * include/grub/util/getroot.h: Likewise.
44191 * include/grub/util/lvm.h: Likewise.
44192 * include/grub/util/misc.h: Likewise.
44193 * include/grub/util/raid.h: Likewise.
44194 * include/grub/util/resolve.h: Likewise.
44195 * io/gzio.c: Likewise.
44196 * kern/device.c: Likewise.
44197 * kern/disk.c: Likewise.
44198 * kern/dl.c: Likewise.
44199 * kern/elf.c: Likewise.
44200 * kern/env.c: Likewise.
44201 * kern/err.c: Likewise.
44202 * kern/file.c: Likewise.
44203 * kern/fs.c: Likewise.
44204 * kern/loader.c: Likewise.
44205 * kern/main.c: Likewise.
44206 * kern/misc.c: Likewise.
44207 * kern/mm.c: Likewise.
44208 * kern/parser.c: Likewise.
44209 * kern/partition.c: Likewise.
44210 * kern/rescue.c: Likewise.
44211 * kern/term.c: Likewise.
44212 * kern/efi/efi.c: Likewise.
44213 * kern/efi/init.c: Likewise.
44214 * kern/efi/mm.c: Likewise.
44215 * kern/i386/dl.c: Likewise.
44216 * kern/i386/efi/init.c: Likewise.
44217 * kern/i386/efi/startup.S: Likewise.
44218 * kern/i386/pc/init.c: Likewise.
44219 * kern/i386/pc/lzo1x.S: Likewise.
44220 * kern/i386/pc/startup.S: Likewise.
44221 * kern/ieee1275/ieee1275.c: Likewise.
44222 * kern/powerpc/cache.S: Likewise.
44223 * kern/powerpc/dl.c: Likewise.
44224 * kern/powerpc/ieee1275/cmain.c: Likewise.
44225 * kern/powerpc/ieee1275/crt0.S: Likewise.
44226 * kern/powerpc/ieee1275/init.c: Likewise.
44227 * kern/powerpc/ieee1275/openfw.c: Likewise.
44228 * kern/sparc64/cache.S: Likewise.
44229 * kern/sparc64/dl.c: Likewise.
44230 * kern/sparc64/ieee1275/init.c: Likewise.
44231 * kern/sparc64/ieee1275/openfw.c: Likewise.
44232 * loader/efi/chainloader.c: Likewise.
44233 * loader/efi/chainloader_normal.c: Likewise.
44234 * loader/i386/efi/linux.c: Likewise.
44235 * loader/i386/efi/linux_normal.c: Likewise.
44236 * loader/i386/pc/chainloader.c: Likewise.
44237 * loader/i386/pc/chainloader_normal.c: Likewise.
44238 * loader/i386/pc/linux.c: Likewise.
44239 * loader/i386/pc/linux_normal.c: Likewise.
44240 * loader/i386/pc/multiboot.c: Likewise.
44241 * loader/i386/pc/multiboot_normal.c: Likewise.
44242 * loader/powerpc/ieee1275/linux.c: Likewise.
44243 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
44244 * normal/arg.c: Likewise.
44245 * normal/cmdline.c: Likewise.
44246 * normal/command.c: Likewise.
44247 * normal/completion.c: Likewise.
44248 * normal/execute.c: Likewise.
44249 * normal/function.c: Likewise.
44250 * normal/lexer.c: Likewise.
44251 * normal/main.c: Likewise.
44252 * normal/menu.c: Likewise.
44253 * normal/menu_entry.c: Likewise.
44254 * normal/misc.c: Likewise.
44255 * normal/parser.y: Likewise.
44256 * normal/script.c: Likewise.
44257 * normal/i386/setjmp.S: Likewise.
44258 * normal/powerpc/setjmp.S: Likewise.
44259 * normal/sparc64/setjmp.S: Likewise.
44260 * partmap/acorn.c: Likewise.
44261 * partmap/amiga.c: Likewise.
44262 * partmap/apple.c: Likewise.
44263 * partmap/gpt.c: Likewise.
44264 * partmap/pc.c: Likewise.
44265 * partmap/sun.c: Likewise.
44266 * term/gfxterm.c: Likewise.
44267 * term/terminfo.c: Likewise.
44268 * term/efi/console.c: Likewise.
44269 * term/i386/pc/console.c: Likewise.
44270 * term/i386/pc/serial.c: Likewise.
44271 * term/i386/pc/vesafb.c: Likewise.
44272 * term/i386/pc/vga.c: Likewise.
44273 * term/ieee1275/ofconsole.c: Likewise.
44274 * util/biosdisk.c: Likewise.
44275 * util/console.c: Likewise.
44276 * util/genmoddep.c: Likewise.
44277 * util/getroot.c: Likewise.
44278 * util/grub-emu.c: Likewise.
44279 * util/grub-mkdevicemap.c: Likewise.
44280 * util/grub-probe.c: Likewise.
44281 * util/lvm.c: Likewise.
44282 * util/misc.c: Likewise.
44283 * util/raid.c: Likewise.
44284 * util/resolve.c: Likewise.
44285 * util/update-grub.in: Likewise.
44286 * util/update-grub_lib.in: Likewise.
44287 * util/grub.d/00_header.in: Likewise.
44288 * util/grub.d/10_hurd.in: Likewise.
44289 * util/grub.d/10_linux.in: Likewise.
44290 * util/i386/efi/grub-install.in: Likewise.
44291 * util/i386/efi/grub-mkimage.c: Likewise.
44292 * util/i386/pc/grub-install.in: Likewise.
44293 * util/i386/pc/grub-mkimage.c: Likewise.
44294 * util/i386/pc/grub-mkrescue.in: Likewise.
44295 * util/i386/pc/grub-setup.c: Likewise.
44296 * util/i386/pc/misc.c: Likewise.
44297 * util/powerpc/ieee1275/grub-install.in: Likewise.
44298 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
44299 * util/powerpc/ieee1275/misc.c: Likewise.
44300 * video/bitmap.c: Likewise.
44301 * video/video.c: Likewise.
44302 * video/i386/pc/vbe.c: Likewise.
44303 * video/i386/pc/vbeblit.c: Likewise.
44304 * video/i386/pc/vbefill.c: Likewise.
44305 * video/i386/pc/vbeutil.c: Likewise.
44306 * video/readers/tga.c: Likewise.
44307
3572d015 443082007-07-02 Robert Millan <rmh@aybabtu.com>
44309
44310 * conf/i386-efi.rmk: Replace obsolete reference to
44311 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
44312 with util/getroot.c.
44313 * conf/powerpc-ieee1275.rmk: Likewise.
44314 * conf/sparc64-ieee1275.rmk: Likewise.
44315
44316 * util/grub-emu.c (main): Fix unchecked pointer handling.
44317
2c2a681b 443182007-07-02 Robert Millan <rmh@aybabtu.com>
44319
44320 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
44321 invocation to fail, in order to support partition-less media.
44322
44323 * util/i386/pc/grub-install.in: Likewise.
44324
44325 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
44326 which fs or partmap modules are needed (akin to its sister scripts).
44327
44328 Also use grub-probe to get rid of unportable /proc/mounts check.
44329
44330 Print the same informational message that the other scripts do, before
fe6b695a 44331 exiting.
2c2a681b 44332
6193defe 443332007-06-23 Robert Millan <rmh@aybabtu.com>
44334
fe6b695a 44335 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 44336 a font file can be found and, if so, echo the GRUB path to it.
44337
44338 * util/update-grub.in: Handle multiple terminals depending on user
44339 input, platform availability and font file presence. Propagate
44340 variables of our findings to /etc/grub.d/ children.
44341
44342 * util/grub.d/00_header.in: Handle multiple terminals, based on
44343 environment setup by update-grub.
44344
eface1dc 443452007-06-23 Robert Millan <rmh@aybabtu.com>
44346
ba50d28f 44347 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 44348
bf697e28 443492007-06-21 Robert Millan <rmh@aybabtu.com>
44350
44351 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
44352 indicate end of data section in kernel image.
44353 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
44354 GRUB_KERNEL_MACHINE_DATA_END.
44355
44356 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
44357 space for it.
44358 * kern/i386/efi/startup.S: Likewise.
44359
44360 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
44361 during image generation. Implement --prefix option to override this
44362 patch.
44363 * util/i386/efi/grub-mkimage.c: Likewise.
44364
44365 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
44366 code to make path relative to its root into a separate function.
44367
44368 * util/i386/pc/grub-install.in: Use newly provided
44369 make_system_path_relative_to_its_root() to convert ${grubdir}, then
44370 pass the result to grub-install --prefix.
44371
baa574b4 443722007-06-13 Robert Millan <rmh@aybabtu.com>
44373
44374 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
44375 DEFAULT_DEVICE_MAP.
44376 * util/grub-emu.c: Use above definitions from misc.h instead of
44377 defining them.
44378 * util/grub-mkdevicemap.c: Likewise.
44379 * util/i386/pc/grub-setup.c: Likewise.
44380 * util/grub-probe.c: Likewise.
44381 (probe): Abort with grub_util_error() when either
44382 grub_guess_root_device or grub_util_get_grub_dev fails.
44383
0215dcbf 443842007-06-12 Robert Millan <rmh@aybabtu.com>
44385
44386 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
44387 "pager" assignment.
44388 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
44389 "pcdata".
44390 * util/grub-probe.c (probe): Likewise for "drive_name".
44391
8af2ab7b 443922007-06-11 Robert Millan <rmh@aybabtu.com>
44393
44394 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
44395 not just the cdrom one.
44396
59d31694 443972007-06-11 Robert Millan <rmh@aybabtu.com>
44398
44399 * util/i386/pc/grub-mkrescue.in: Add "set -e".
44400 Add --pkglibdir=DIR option to override pkglibdir.
44401 Mention --image-type=TYPE in help output.
44402 Fix --grub-mkimage (it was a no-op).
fe6b695a 44403 Abort gracefully when no parameter is given.
59d31694 44404
7ee367e4 444052007-06-11 Robert Millan <rmh@aybabtu.com>
44406
44407 * util/i386/pc/grub-mkrescue.in: New file.
44408 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
44409 * Makefile.in: Handle bin_SCRIPTS.
44410
29b0ed46 444112007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
44412
44413 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
44414 list of video modes.
44415
c0f90770 444162007-06-06 Robert Millan <rmh@aybabtu.com>
44417
44418 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
44419 file doesn't exist, or if it is in a filesystem grub can't read.
44420
44421 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
44422 not abort if GRUB_DRIVE could not be defined. Rearrange generated
44423 header comment to fit in 80 columns when the variables are resolved.
44424
44425 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
44426 could be identified by update-grub. Remove redundant check for
fe6b695a 44427 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 44428 handles that).
44429
fb36dc26 444302007-06-04 Robert Millan <rmh@aybabtu.com>
44431
44432 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
44433
44434 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
44435
44436 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
44437
0c68c93e 444382007-06-04 Robert Millan <rmh@aybabtu.com>
44439
44440 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
44441
44442 * include/grub/partition.h: Declare grub_apple_partition_map_init and
44443 grub_apple_partition_map_fini.
44444
44445 * util/biosdisk.c
44446 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
44447 to access >2 TiB disks).
44448
44449 Print disk->total_sectors with %llu instead of %lu, since this
44450 variable is always 64-bit (prevents wrong disk size from being displayed
44451 on either >2 TiB disk or big-endian CPU).
44452
44453 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
44454 into a generic case that supports all (sane) partition maps.
44455
44456 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
44457 breaks big-endian.
44458
44459 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
44460 and grub_apple_partition_map_fini() after that.
44461
0f23eb74 444622007-06-01 Robert Millan <rmh@aybabtu.com>
44463
44464 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
44465
44466 * util/grub.d/00_header.in: Only enable gfxterm when
44467 convert_system_path_to_grub_path() succeeds.
44468
42c71976 444692007-05-20 Robert Millan <rmh@aybabtu.com>
44470
44471 * util/update-grub_lib.in: New file.
44472 * DISTLIST: Add update-grub_lib.in.
44473 * conf/common.rmk: Generate update-grub_lib and install it in
44474 $(lib_DATA).
44475 * Makefile.in: Add install routine for $(lib_DATA).
44476
44477 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
44478 function provided by update-grub_lib to support arbitrary paths of
44479 unifont.pff.
44480 * util/update-grub.in: Use convert_system_path_to_grub_path() to
44481 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
44482
5beb2291 444832007-05-19 Robert Millan <rmh@aybabtu.com>
44484
44485 * commands/i386/cpuid.c: New module.
44486 * DISTLIST: Add it.
44487 * conf/i386-efi.rmk: Enable cpuid.mod.
44488 * conf/i386-pc.rmk: Likewise.
44489
7262eca1 444902007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44491
44492 * kern/disk.c (grub_disk_read): Check return value of
44493 grub_realloc().
44494
260ba823 444952007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44496
44497 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
44498 arrays.
44499 * disk/raid.c (grub_raid_open): Likewise.
44500
1ecb6cf2 445012007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44502
44503 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
44504 stack instead of on the heap.
44505
44506 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
44507 before doing a read on it.
44508
44509 * configure.ac: Only use -fno-stack-protector for the target
44510 environment.
f19dbdb7 44511
21c8cbb1 445122007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44513
44514 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
44515 __attribute_ ((unused)) to mode_type argument.
44516
44517 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 44518
21c8cbb1 44519 * kern/misc.c (memcmp): Fix prototype.
44520
44521 * include/grub/partition.h [GRUB_UTIL]
44522 (grub_gpt_partition_map_init): Add prototype.
44523 (grub_gpt_partition_map_fini): Likewise.
44524
44525 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
44526 at the right place.
44527
44528 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
44529 (grub_fat_read_data): Likewise.
44530 (grub_fat_find_dir): Likewise.
44531
44532 * font/manager.c (find_glyph): Make table a const.
44533 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 44534
849d55d3 445352007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
44536
44537 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
44538 code, first search for device in /dev/mapper, then in /dev.
44539 (grub_util_get_grub_dev): New function.
44540 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
44541 prototype.
44542 * util/grub-probe.c (probe): Remove check for RAID, call
44543 grub_util_get_grub_dev() instead of
44544 grub_util_biosdisk_get_grub_dev().
44545 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
44546 grub_util_biosdisk_get_grub_dev().
44547 * util/i386/pc/grub-setup.c (main): Likewise.
44548
8fff7c2f 445492007-05-16 Robert Millan <rmh@aybabtu.com>
44550
44551 * DISTLIST: Update for the latest changes.
44552 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
44553 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
44554 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
44555 grub/util/biosdisk.h.
44556 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
44557 grub/util/biosdisk.h.
44558
48e12b52 445592007-05-16 Robert Millan <rmh@aybabtu.com>
44560
44561 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
44562
46b9d128 445632007-05-16 Robert Millan <rmh@aybabtu.com>
44564
44565 * util/i386/efi/grub-install.in: New.
44566 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
44567 newly added grub-install.
44568 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
44569 include.
44570 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
44571 grub/util/biosdisk.h.
44572 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
44573 grub/util/biosdisk.h.
44574
2d1a40a9 445752007-05-16 Robert Millan <rmh@aybabtu.com>
44576
44577 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
44578 * include/grub/util/biosdisk.h: ... here.
44579 * util/i386/pc/biosdisk.c: Moved to ...
44580 * util/biosdisk.c: ... here.
44581 * util/i386/pc/getroot.c: Moved to ...
44582 * util/getroot.c: ... here.
44583 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
44584 * util/grub-mkdevicemap.c: ... here.
44585 * util/i386/pc/grub-probe.c: Moved to ...
44586 * util/grub-probe.c: ... here.
44587
9e26e3bc 445882007-05-15 Robert Millan <rmh@aybabtu.com>
44589
44590 * util/update-grub.in: Remove duplicated line in grub.cfg header
44591 message.
44592
57f96397 445932007-05-13 Robert Millan <rmh@aybabtu.com>
44594
44595 * util/update-grub.in: Fix a few assumptions about the devices holding
44596 /, /boot and /boot/grub being the same.
44597 * util/grub.d/00_header.in: Likewise.
44598 * util/grub.d/10_hurd.in: Likewise.
44599 * util/grub.d/10_linux.in: Likewise.
44600
44601 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
44602 patterns. Use that to define the `.old' suffix as older than `'.
44603
44604 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
44605
44606 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
44607 the grub.cfg header message.
44608
2e610d62 446092007-05-11 Robert Millan <rmh@aybabtu.com>
44610
44611 * util/update-grub.in: Create device.map if it doesn't already exist,
44612 before attempting to run grub-probe.
44613 Check for grub-probe and grub-mkdevicemap with the same code
44614 grub-install is using.
44615 Remove test mode.
44616
3f6a10ef 446172007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
44618
44619 * Makefile.in: Add the datarootdir autoconf variable.
44620
02e7b75e 446212007-05-09 Robert Millan <rmh@aybabtu.com>
44622
44623 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 44624 fail gracefully if dev->disk->partition == NULL.
02e7b75e 44625
75f396cc 446262007-05-07 Robert Millan <rmh@aybabtu.com>
44627
44628 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
44629 determine partition map module.
44630 * util/i386/pc/grub-install.in: Use this feature to decide which
44631 partition module to load, instead of hardcoding pc and gpt.
44632
da65cb36 446332007-05-07 Robert Millan <rmh@aybabtu.com>
44634
44635 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
44636 source directory differs from build directory.
44637
b57d6a91 446382007-05-05 Robert Millan <rmh@aybabtu.com>
44639
44640 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
44641 initialisation.
44642
509d00f1 446432007-05-05 Robert Millan <rmh@aybabtu.com>
44644
44645 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
44646
c48f23ef 446472007-05-05 Robert Millan <rmh@aybabtu.com>
44648
44649 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
44650 command-line arguments via ${GRUB_CMDLINE_LINUX}.
44651
20b97658 446522007-05-05 Robert Millan <rmh@aybabtu.com>
44653
44654 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
44655 (grub_probe_SOURCES): Likewise.
44656 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
44657 GPT and initialize dos_part and bsd_part accordingly.
44658 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
44659 install_bsd_part.
44660 (main): Activate gpt module for use during partition identification,
44661 and deactivate it afterwards.
44662 * util/i386/pc/grub-install.in: Add gpt module to core.img.
44663 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
44664 partition identification, and deactivate it afterwards.
44665
99123174 446662007-05-05 Robert Millan <rmh@aybabtu.com>
44667
44668 * term/i386/pc/console.c (grub_console_fini): Call
44669 grub_term_set_current() before grub_term_unregister().
44670
ebd97f6e 446712007-05-04 Robert Millan <rmh@aybabtu.com>
44672
44673 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
44674 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
44675 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
44676 and update-grub_DATA.
44677 * conf/common.rmk: Build and install update-grub components.
44678 * conf/common.mk: Regenerate.
44679 * util/update-grub.in: New. Core of update-grub.
44680 * util/grub.d/00_header.in: New. Generates grub.cfg header.
44681 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
44682 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
44683 * util/grub.d/README: New. Document grub.d directory layout.
44684
b06a264d 446852007-05-01 Robert Millan <rmh@aybabtu.com>
44686
44687 * util/grub-emu.c: Move initialization functions
44688 grub_util_biosdisk_init() and grub_init_all() before
44689 grub_util_biosdisk_get_grub_dev(), which relies on them.
44690
41f0050e 446912007-04-19 Robert Millan <rmh@aybabtu.com>
44692
44693 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
44694 it is used later.
44695
04582bb3 446962007-04-18 Jerone Young <jerone@gmail.com>
44697
f19dbdb7 44698 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 44699 stanza.
44700
08db4632 447012007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 44702
08db4632 44703 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
44704 continue on and look for device node with real device name.
44705
801b76be 447062007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 44707
fe6b695a 44708 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 44709 ability.
44710 * Makefile.in: Add autoconf package transformation code.
44711 * util/i386/pc/grub-install.in: Likewise.
44712 * util/powerpc/ieee1275/grub-install.in: Likewise.
44713
6795c4e1 447142007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
44715
44716 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
44717 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
44718 (EXT2_REVISION): Likewise.
44719 (EXT2_INODE_SIZE): Likewise.
44720 (struct grub_ext2_block_group): Added a missing member
44721 "used_dirs".
44722 (grub_ext2_read_inode): Divide by the inode size in a superblock
44723 instead of 128 to obtain INODES_PER_BLOCK.
44724 Use the macro EXT2_INODE_SIZE instead of directly using
44725 SBLOCK->INODE_SIZE.
44726
d70af616 447272007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
44728
44729 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
44730 superblock instead of the structure size to compute an
44731 offset. This fixes the problem that GRUB could not read a
44732 filesystem when inode size is different from 128-byte.
44733
3b801603 447342007-03-05 Marco Gerards <marco@gnu.org>
44735
44736 * normal/main.c (read_config_file): When "menu" is not set, create
44737 an initial context.
44738
4785bfe4 447392007-02-21 Hollis Blanchard <hollis@penguinppc.org>
44740
44741 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
44742 (HEAP_LIMIT): New macro.
44743 (grub_claim_heap): Claim memory up to `heaplimit'.
44744
a0cbb023 447452007-02-21 Hollis Blanchard <hollis@penguinppc.org>
44746
44747 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
44748 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
44749 (_start): Likewise.
44750 (grub_arch_modules_addr): Return address after `_end'.
44751 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
44752 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
44753 (add_segments): Calculate `_end' from phdr size and location.
44754 (ALIGN_UP): Moved to ...
44755 * include/grub/misc.h: here.
44756 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
44757 New macro.
44758 (GRUB_IEEE1275_MODULE_BASE): Removed.
44759
fd7d8eba 447602007-02-20 Hollis Blanchard <hollis@penguinppc.org>
44761
44762 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
44763 loop boundary.
44764
9b09e6fc 447652007-02-20 Hollis Blanchard <hollis@penguinppc.org>
44766
44767 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
44768 All users updated.
44769 (grub_elf64_load_hook_t): Likewise.
44770 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
44771 debug output.
44772
3ce27299 447732007-02-20 Hollis Blanchard <hollis@penguinppc.org>
44774
44775 * kern/mm.c: Update copyright.
44776 (grub_mm_debug): Correct syntax error.
44777 (grub_mm_dump_free): New function.
44778 (grub_debug_free): Call `grub_free'.
44779 * include/grub/mm.h: Update copyright.
44780 (grub_mm_dump_free): Add declaration.
44781
077d5fee 447822007-02-12 Hollis Blanchard <hollis@penguinppc.org>
44783
44784 * include/grub/ieee1275/ieee1275.h: Update copyright.
44785 * kern/powerpc/ieee1275/init.c: Likewise.
44786 * kern/powerpc/ieee1275/openfw.c: Likewise.
44787
44788 * loader/powerpc/ieee1275/linux.c: Likewise.
44789 * include/grub/elfload.h: Likewise.
44790 * kern/elf.c: Likewise.
44791 (grub_elf32_load): Pass `base' and `size' parameters. Update all
44792 callers.
44793 (grub_elf64_load): Likewise.
44794 (grub_elf32_load_segment): Move to a nested function.
44795 (grub_elf64_load_segment): Likewise.
44796
dc946850 447972007-02-12 Hollis Blanchard <hollis@penguinppc.org>
44798
44799 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
44800 prototype.
44801 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
44802 (grub_heap_len): Likewise.
44803 (HEAP_SIZE): New macro.
44804 (grub_claim_heap): New function.
44805 (grub_machine_init): Don't claim heap directly. Call
44806 `grub_claim_heap'.
44807 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
44808 (grub_available_iterate): New function.
44809
baa2a121 448102007-02-03 Thomas Schwinge <tschwinge@gnu.org>
44811
44812 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
44813 * configure.ac: Use it for testing the HOST and TARGET compilers.
44814
4fe9862e 448152006-12-13 Thomas Schwinge <tschwinge@gnu.org>
44816
44817 * Makefile.in (enable_grub_emu): New variable.
44818 * configure.ac (--enable-grub-emu): New option.
44819 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
44820 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
44821 * conf/i386-pc.rmk: Likewise.
44822 * conf/powerpc-ieee1275.rmk: Likewise.
44823 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
44824
a8aa5762 448252006-12-12 Marco Gerards <marco@gnu.org>
44826
44827 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
44828
44829 * kern/env.c (grub_env_unset): Don't free the member `value' when
44830 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
44831 pointer.
44832
44833 * normal/main.c (current_menu): Removed.
44834 (free_menu): Unset the `menu' environment variable.
44835 (grub_normal_menu_addentry): Make use of the environment variable
44836 `menu', instead of using the global `current_menu'. Allocate
44837 memory for the sourcecode of this entry.
44838 (read_config_file): New argument `nested', changed all callers.
44839 Only in the case of a new context, initialize a new menu. Set the
44840 `menu' environment variable.
44841 (grub_normal_execute): Don't set and unset the environment
44842 variable `menu' here anymore. Only free the menu when leaving the
44843 context.
44844
44845 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
44846 leak.
44847
957b3a3e 448482006-12-11 Marco Gerards <marco@gnu.org>
44849
44850 * normal/menu_entry.c (run): Fix off by one bug so the last line
44851 is executed. Move the loader check to outside the loop.
44852
ef875714 448532006-12-08 Hollis Blanchard <hollis@penguinppc.org>
44854
44855 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
44856
4e739985 448572006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
44858
44859 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
44860 the number of sectors. Reported by Andrey Shuvikov
44861 <mr_hyro@yahoo.com>.
f19dbdb7 44862
790707f2 448632006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
44864
44865 * kern/disk.c (grub_disk_read): When there is a read error, always
44866 try to read only the necessary data.
f19dbdb7 44867
790707f2 44868 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
44869 disk/raid.c.
44870 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
44871 prototype.
44872 [GRUB_UTIL] (grub_raid_fini): Likewise.
44873 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 44874 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 44875 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
44876 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
44877 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
44878 and grub_raid_fini().
f19dbdb7 44879
03e58196 448802006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
44881
44882 * include/grub/types.h (__unused): Rename to UNUSED.
44883 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
44884 (grub_elf64_size): Likewise.
f19dbdb7 44885
ae4f23bf 448862006-11-03 Hollis Blanchard <hollis@penguinppc.org>
44887
44888 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
44889 grub_error_push and grub_error_pop in the error-handling path.
44890 (grub_elf32_load_segment): Only call grub_file_read with non-zero
44891 length.
44892
2166cc83 448932006-11-03 Hollis Blanchard <hollis@penguinppc.org>
44894
44895 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
44896 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44897 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44898 (kernel_elf_SOURCES): Likewise.
44899 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
44900 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
44901 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44902 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44903 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
44904 (elf_mod_SOURCES): New variable.
44905 (elf_mod_CFLAGS): Likewise.
44906 (elf_mod_LDFLAGS): Likewise.
44907 * include/grub/types.h (__unused): New macro.
44908 * include/grub/elfload.h: New file.
44909 * kern/elf.c: Likewise.
44910 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
44911 (ELF32_LOADMASK): New macro.
44912 (ELF64_LOADMASK): Likewise.
44913 (vmlinux): Removed.
44914 (grub_linux_load32): New function.
44915 (grub_linux_load64): Likewise.
44916 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
44917 Use grub_elf_t instead of grub_file_t.
44918
a09d5aa5 449192006-11-02 Hollis Blanchard <hollis@penguinppc.org>
44920
44921 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
44922 `catch_result' to struct set_color_args.
44923
d976fc51 449242006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44925
44926 * normal/menu.c: Include grub/script.h.
44927 * normal/menu_entry.c: Likewise.
44928 * include/grub/normal.h: Do not include grub/script.h.
44929
67507549 449302006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44931
44932 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
44933
69203a99 449342006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44935
44936 * kern/disk.c (grub_disk_open): Print debug messages when opening a
44937 disk.
44938 (grub_disk_close): Print debug messages when closing a disk.
44939 (grub_disk_read): Print debug messages when disk read fails.
44940 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
44941 filesystem type.
44942 * kern/partition.c: Include misc.h.
44943 (grub_partition_iterate): Print debug messages when detecting
44944 partition type.
44945
e2b8278c 449462006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44947
44948 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
44949 is negative.
44950 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
44951
97b2f2ff 449522006-10-26 Hollis Blanchard <hollis@penguinppc.org>
44953
44954 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44955 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
44956
6555d655 449572006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
44958
44959 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
44960 instead of sizeof(lv). Patch by Michael Guntsche.
44961
4d42b77f 449622006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
44963
44964 * disk/lvm.c: Rename VGS to VG_LIST.
44965 (grub_lvm_iterate): Change VGS->LV to VG-LV.
44966 (grub_lvm_open): Likewise.
44967 Thanks to Michael Guntsche for finding this bug.
44968
5d74d927 449692006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44970
44971 * configure.ac (AC_INIT): Bumped to 1.95.
44972
a1bb27e4 449732006-10-14 Robert Millan <rmh@aybabtu.com>
44974
44975 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
44976 with "/dev/.static/dev/md".
44977
e0994b8b 449782006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
44979
44980 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
44981 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
44982 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
44983 DRIVE_NAME are always freed.
44984
44985 * util/i386/pc/biosdisk.c (make_device_name): Add one into
44986 DOS_PART, as a DOS partition is counted from one instead of zero
44987 now. Reported by Robert Millan.
44988
ddd5cee9 449892006-10-14 Robert Millan <rmh@aybabtu.com>
44990
44991 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
44992 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
44993 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
44994 string returned by grub_guess_root_device.
44995 * util/i386/pc/grub-setup.c: Likewise.
44996 * util/i386/pc/grub-probefs.c: Likewise.
44997
44998 * util/i386/pc/grub-probefs.c: Rename to ...
44999 * util/i386/pc/grub-probe.c: ... this.
45000 * DISTLIST: Remove grub-probefs, add grub-probe.
45001 * conf/i386-efi.rmk: Likewise.
45002 * conf/i386-pc.rmk: Likewise.
45003 * util/i386/pc/grub-install.in: Likewise.
45004
45005 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
45006 choose which information we want to print.
45007
2b002173 450082006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45009
45010 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
45011 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
45012 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
45013 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
45014 video/readers/tga.c and video/i386/pc/vbeutil.c.
45015
450162006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
45017
45018 Added support for RAID and LVM.
f19dbdb7 45019
2b002173 45020 * disk/lvm.c: New file.
45021 * disk/raid.c: Likewise.
45022 * include/grub/lvm.h: Likewise.
f19dbdb7 45023 * include/grub/raid.h: Likewise.
2b002173 45024 * include/grub/util/lvm.h: Likewise.
45025 * include/grub/util/raid.h: Likewise.
45026 * util/lvm.c: Likewise.
45027 * util/raid.c: Likewise.
45028
45029 * include/grub/disk.h (grub_disk_dev_id): Add
45030 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
45031 (grub_disk_get_size): New prototype.
45032 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
45033 returns a partition.
45034 (grub_disk_get_size): New function.
f19dbdb7 45035
2b002173 45036 * kern/i386/pc/init.c (make_install_device): Copy the prefix
45037 verbatim if grub_install_dos_part is -2.
45038
45039 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
45040 and LVM devices.
45041
45042 * util/i386/pc/grub-setup.c (setup): New argument
45043 MUST_EMBED. Force embedding of GRUB when the argument is
45044 true. Close FILE before returning.
45045 (main): Add support for RAID and LVM.
f19dbdb7 45046
2b002173 45047 * conf/common.rmk: Add RAID and LVM modules.
45048 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
45049 util/lvm.c.
45050 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
45051
45052 * kern/misc.c (grub_strstr): New function.
45053 * include/grub/misc.h (grub_strstr): New prototype.
45054
050548d0 450552006-10-10 Tristan Gingold <tristan.gingold@bull.net>
45056
45057 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
45058
da849d2d 450592006-10-05 Tristan Gingold <tristan.gingold@bull.net>
45060
45061 * kern/misc.c (grub_strtoull): Guess the base only if not
45062 specified.
45063
97b2f2ff 450642006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 45065
45066 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
45067 PowerMac support.
45068
97b2f2ff 450692006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 45070
45071 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
45072
45073 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
45074 Remove `flags' argument. All callers changed.
45075 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
45076 (IEEE1275_IHANDLE_INVALID): New variable.
45077 (IEEE1275_CELL_INVALID): New variable.
45078 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
45079 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
45080 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
45081 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
45082 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
45083 codes from Open Firmware. All callers updated.
45084 (grub_ieee1275_next_property): Directly return Open Firmware return
45085 code.
45086 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45087 Standardize error checking from `grub_ieee1275_get_property'.
45088 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
45089 `devalias' to `aliases'. Correct comments. Consolidate error paths.
45090
97b2f2ff 450912006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 45092
45093 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
45094 `instance_to_package_args' to `instance_to_path_args'.
45095
45096 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
45097 `grub_ieee1275_chosen'.
45098
45099 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
45100 `grub_ieee1275_interpret'.
45101
97b2f2ff 451022006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 45103
45104 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
45105
97b2f2ff 451062006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 45107
45108 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
45109 (__cmpdi): Likewise.
45110
45111 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
45112 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
45113 `grub_ssize_t'.
45114
02bb8acc 45115 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 45116
45117 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
45118 to type `grub_ssize_t'.
45119 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
45120
7f9a8531 451212006-09-22 Marco Gerards <marco@gnu.org>
45122
45123 * normal/script.c (grub_script_create_cmdmenu): Skip leading
45124 newlines.
45125
b5ef1102 451262006-09-22 Marco Gerards <marco@gnu.org>
45127
45128 * commands/echo.c: New file.
45129
45130 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
45131
45132 * conf/common.rmk (echo_mod_SOURCES): New variable.
45133 (echo_mod_CFLAGS): Likewise.
45134 (echo_mod_LDFLAGS): Likewise.
45135
2cff3677 451362006-09-22 Marco Gerards <marco@gnu.org>
45137
45138 * normal/main.c (get_line): Malloc memory instead of using
45139 preallocated memory. Removed the arguments `cmdline' and
45140 `max_len'. Updated all callers.
45141
6ba4688b 451422006-09-22 Marco Gerards <marco@gnu.org>
45143
45144 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
45145 (normal_mod_DEPENDENCIES): Likewise.
45146
45147 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
45148 (normal_mod_DEPENDENCIES): Likewise.
45149
45150 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
45151
e02ac02c 451522006-09-22 Johan Rydberg <jrydberg@gnu.org>
45153
45154 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
45155 programs.
45156 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
45157 (normal_mod_DEPENDENCIES): Likewise.
45158 * conf/i386-pc.mk: Regenerate.
45159 * conf/i386-efi.mk: Likewise
45160 * conf/common.mk: Likewise.
45161 * conf/powerpc-ieee1275.mk: Likewise.
45162 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 45163
8d252e44 451642006-09-22 Robert Millan <rmh@aybabtu.com>
45165
45166 Sync with i386 version.
45167 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
45168 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
45169
209bf7ac 451702006-09-21 Robert Millan <rmh@aybabtu.com>
45171
45172 Import from GRUB Legacy (lib/device.c):
45173 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
45174 (init_device_map) [__linux__]: Add support for I2O devices.
45175
6b146090 451762006-09-14 Marco Gerards <marco@gnu.org>
45177
45178 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
45179 `-melf_i386'.
45180
e38600a8 451812006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 45182
45183 * util/i386/pc/grub-install.in: Skip menu.lst when removing
45184 /boot/grub/*.lst.
78fa1790 45185
2952da5d 45186 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 45187
2952da5d 45188 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
45189 before adding it to device.map.
45190
01b82a64 451912006-08-15 Johan Rydberg <jrydberg@gnu.org>
45192
fe6b695a 45193 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 45194 compiles a file; using the -MD option.
45195 * conf/common.mk: Regenerate.
45196 * conf/i386-pc.mk: Likewise.
45197 * conf/i386-efi.mk: Likewise.
45198 * conf/powerpc-ieee1275.mk: Likewise.
45199 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 45200
1064790d 452012006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
45202
45203 Move the prototypes of grub_setjmp and grub_longjmp to
45204 cpu/setjmp.h, so that each architecture may specify different
45205 attributes.
f19dbdb7 45206
1064790d 45207 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
45208 (grub_longjmp): Likewise.
45209 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
45210 (grub_longjmp): Likewise.
45211 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
45212 (grub_longjmp): Likewise.
45213
45214 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
45215 [!GRUB_UTIL] (grub_longjmp): Removed.
45216
29dda3ed 452172006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
45218
45219 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
45220 "color!" method does not return any value.
45221
ad2a06ed 452222006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45223
45224 * include/grub/bitmap.h: New file.
45225
45226 * include/grub/i386/pc/vbeutil.h: Likewise.
45227
45228 * video/bitmap.c: Likewise.
45229
45230 * video/readers/tga.c: Likewise.
45231
45232 * video/i386/pc/vbeutil.c: Likewise.
45233
45234 * commands/videotest.c: Code cleanup and updated to reflect to new
45235 video API.
45236
45237 * term/gfxterm.c: Likewise.
45238
45239 * video/video.c: Likewise.
45240
45241 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
45242 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
45243 (bitmap_mod_SOURCES): New entry.
45244 (bitmap_mod_CFLAGS): Likewise.
45245 (bitmap_mod_LDFLAGS): Likewise.
45246 (tga_mod_SOURCES): Likewise.
45247 (tga_mod_CFLAGS): Likewise.
45248 (tga_mod_LDFLAGS): Likewise.
45249
45250 * include/grub/video.h (grub_video_blit_operators): New enum type.
45251 (grub_video_render_target): Changed as forward declaration and moved
45252 actual definition to be video driver specific.
45253 (grub_video_adapter.blit_bitmap): Added blitting operator.
45254 (grub_video_adapter.blit_render_target): Likewise.
45255 (grub_video_blit_bitmap): Likewise.
45256 (grub_video_blit_render_target): Likewise.
45257
45258 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
45259 driver specific render target definition.
45260 (grub_video_vbe_map_rgba): Added driver internal helper.
45261 (grub_video_vbe_unmap_color): Updated to use
45262 grub_video_i386_vbeblit_info.
45263 (grub_video_vbe_get_video_ptr): Likewise.
45264
45265 * include/grub/i386/pc/vbeblit.h
45266 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
45267 grub_video_i386_vbeblit_info.
45268 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
45269 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
45270 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
45271 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
45272 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
45273 (grub_video_i386_vbeblit_index_index): Likewise.
45274 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
45275 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
45276 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
45277 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
45278 operator.
45279 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
45280 operator.
45281
45282 * video/i386/pc/vbeblit.c: Updated to reflect changes on
45283 include/grub/i386/pc/vbeblit.h.
45284
45285 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
45286 Updated to use grub_video_i386_vbeblit_info.
45287 (grub_video_i386_vbefill_R8G8B8): Likewise.
45288 (grub_video_i386_vbefill_index): Likewise.
45289 (grub_video_i386_vbefill): Added generic filler.
45290
45291 * video/i386/pc/vbefill.c: Updated to reflect changes on
45292 include/grub/i386/pc/vbefill.h.
45293
45294 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
45295 grub_video_i386_vbeblit_info.
45296 (grub_video_vbe_unmap_color): Likewise.
45297 (grub_video_vbe_blit_glyph): Likewise.
45298 (grub_video_vbe_scroll): Likewise.
45299 (grub_video_vbe_draw_pixel): Removed function.
45300 (grub_video_vbe_get_pixel): Likewise.
45301 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
45302 updated code to use it.
45303 (common_blitter): Added common blitter for render target and bitmap.
45304 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
45305 (grub_video_vbe_blit_render_target): Likewise.
45306
bc8c036d 453072006-07-30 Johan Rydberg <jrydberg@gnu.org>
45308
45309 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
45310 is in text mode if there is no console control protocol instance
45311 available.
45312
684a8eff 453132006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45314
45315 * include/grub/video.h: Code cleanup.
45316
45317 * include/grub/i386/pc/vbe.h: Likewise.
45318
45319 * video/i386/pc/vbe.c: Likewise.
45320
45321 * video/i386/pc/vbeblit.c: Likewise.
45322
45323 * video/i386/pc/vbefill.c: Likewise.
45324
45325 * video/video.c: Likewise. Also added more comments.
45326
5915059b 453272006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45328
45329 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
45330 (struct grub_biosdisk_dap): Likewise.
45331
45332 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
45333 linkage settings for all functions.
45334
90ce5d56 453352006-07-12 Marco Gerards <marco@gnu.org>
45336
45337 * configure.ac (--enable-mm-debug): Fix typo.
45338
45339 * genkernsyms.sh.in: Use proper quoting for `CC'.
45340
43e7f879 453412006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
45342
45343 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
45344 (normal_mod_ASFLAGS): Remove "-m32".
45345
4889bdec 453462006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
45347
45348 * util/misc.c: Include config.h.
45349 [!HAVE_MEMALIGN]: Do not include malloc.h.
45350 (grub_memalign): Use posix_memalign, if present. Then, use
45351 memalign, if present. Otherwise, emit an error.
45352
45353 * util/grub-emu.c: Do not include malloc.h.
45354
45355 * include/grub/util/misc.h: Include unistd.h. This is required for
45356 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
45357 D. Eades III <hde@foobar-qux.org>.
45358
45359 * configure.ac (AC_GNU_SOURCE): Added.
45360 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
45361 type.
45362
fd39d4da 453632006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
45364
45365 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
45366 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
45367
b786f3b5 453682006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
45369
45370 * include/grub/types.h (grub_host_addr_t): Rename to
45371 grub_target_addr_t.
45372 (grub_host_off_t): Rename to grub_target_off_t.
45373 (grub_host_size_t): Rename to grub_target_size_t.
45374 (grub_host_ssize_t): Rename to grub_target_ssize_t.
45375 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
45376
45377 * include/grub/kernel.h (struct grub_module_header): Change type
45378 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
45379 (grub_module_info): Likewise.
f19dbdb7 45380
051988bb 453812006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45382
45383 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
45384 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
45385 Velazquez <jesus.velazquez@gmail.com>.
45386
deae281b 453872006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45388
45389 Count partitions from 1 instead of 0 in the string representation
45390 of partitions. Still use 0-based internally.
f19dbdb7 45391
deae281b 45392 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
45393 (sun_partition_map_iterate): Use grub_partition_t instead of
45394 struct grub_partition *. Cast DESC->START_CYLINDER to
45395 grub_uint64_t after converting the endian.
45396 (sun_partition_map_probe): Subtract 1 for PARTNUM.
45397 (sun_partition_map_get_name): Add 1 to P->INDEX.
45398
45399 * partmap/pc.c (grub_partition_parse): Subtract 1 for
45400 PCDATA->DOS_PART.
45401 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
45402
45403 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
45404 zero instead of one.
45405 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
45406 (gpt_partition_map_get_name): Add 1 into P->INDEX.
45407
45408 * partmap/apple.c (apple_partition_map_iterate): Change the type
45409 of POS to unsigned.
45410 (apple_partition_map_probe): Subtract 1 for PARTNUM.
45411 (apple_partition_map_get_name): Add 1 into P->INDEX.
45412
45413 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
45414 of POS to unsigned.
45415 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
45416 calculate the offset of a partition.
45417 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
45418 (amiga_partition_map_get_name): Add 1 into P->INDEX.
45419
45420 * partmap/acorn.c (acorn_partition_map_find): Change the type of
45421 SECTOR to grub_disk_addr_t.
45422 (acorn_partition_map_iterate): Likewise.
45423 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
45424 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
45425 top.
45426 (acorn_partition_map_get_name): Add 1 into P->INDEX.
45427
45428 * kern/i386/pc/init.c (make_install_device): Add 1 into
45429 GRUB_INSTALL_DOS_PART.
45430
45431 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
45432 conditional.
45433
524a1e6a 454342006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45435
45436 Clean up the code to support 64-bit addressing in disks and
45437 files. This change is not enough for filesystems yet.
f19dbdb7 45438
524a1e6a 45439 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
45440 type of "start" to grub_uint64_t.
45441 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
45442 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
45443 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
45444 convert addresses.
45445
45446 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
45447 to grub_disk_addr_t.
45448
45449 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
45450 string.
45451
45452 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45453
45454 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
45455 to char *.
45456
45457 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
45458
45459 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
45460
45461 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
45462
45463 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
45464 to grub_off_t, to detect an error from grub_file_seek.
45465 (grub_multiboot_load_elf32): Likewise.
45466
45467 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
45468 maximum unsigned long value when an overflow is detected.
45469 (grub_strtoull): New function.
45470 (grub_divmod64): Likewise.
45471 (grub_lltoa): use grub_divmod64.
45472
45473 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
45474 grub_disk_addr_t.
45475 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
45476 the pointer to next character. Use grub_strtoull instead of
45477 grub_strtoul.
45478 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
45479 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
45480 respectively.
45481
fe6b695a 45482 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 45483 return value is signed.
45484 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
45485 test if OFFSET is less than zero, as OFFSET is unsigned now.
45486
45487 * kern/disk.c (struct grub_disk_cache): Change the type of
45488 "sector" to grub_disk_addr_t.
45489 (grub_disk_cache_get_index): Change the type of SECTOR to
45490 grub_disk_addr_t. Calculate the hash with SECTOR casted to
45491 unsigned after shifting.
45492 (grub_disk_cache_invalidate): Change the type of SECTOR to
45493 grub_disk_addr_t.
45494 (grub_disk_cache_unlock): Likewise.
45495 (grub_disk_cache_store): Likewise.
45496 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
45497 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
45498 grub_disk_addr_t and grub_uint64_t, respectively.
45499 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
45500 body, as the value of OFFSET is tweaked by
45501 grub_disk_check_range. Change the types of START_SECTOR, LEN and
45502 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
45503 respectively.
45504 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
45505 body, as the value of OFFSET is tweaked by
45506 grub_disk_check_range. Change the types of LEN and N to
45507 grub_size_t.
45508
45509 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
45510 and "saved_offset" to grub_off_t.
45511 (test_header): Cast BUF to char *.
45512 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
45513 to char *.
45514 (grub_gzio_read): Change the types of OFFSET and SIZE to
45515 grub_off_t and grub_size_t, respectively.
45516
45517 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
45518 Removed.
45519 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
45520 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
45521 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
45522 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
45523 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
45524
45525 * include/grub/types.h (grub_off_t): Unconditionally set to
45526 grub_uint64_t.
45527 (grub_disk_addr_t): Changed to grub_uint64_t.
45528
45529 * include/grub/partition.h (struct grub_partition): Change the
45530 types of "start", "len" and "offset" to grub_disk_addr_t,
45531 grub_uint64_t and grub_disk_addr_t, respectively.
45532 (grub_partition_get_start): Return grub_disk_addr_t.
45533 (grub_partition_get_len): Return grub_uint64_t.
45534
45535 * include/grub/misc.h (grub_strtoull): New prototype.
45536 (grub_divmod64): Likewise.
45537
45538 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
45539 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
45540 grub_off_t, respectively.
45541 All callers and references changed.
45542
45543 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
45544 grub_size_t in "read".
45545 All callers and references changed.
45546
45547 * include/grub/file.h (struct grub_file): Change the types of
45548 "offset" and "size" to grub_off_t and grub_off_t,
45549 respectively. Change the type of SECTOR to grub_disk_addr_t in
45550 "read_hook".
45551 (grub_file_read): Change the type of LEN to grub_size_t.
45552 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
45553 grub_off_t.
45554 (grub_file_size): Return grub_off_t.
45555 (grub_file_tell): Likewise.
45556 All callers and references changed.
45557
45558 * include/grub/disk.h (struct grub_disk_dev): Change the types of
45559 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
45560 "write".
45561 (struct grub_disk): Change the type of "total_sectors" to
45562 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 45563 "read_hook".
524a1e6a 45564 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
45565 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
45566 (grub_disk_write): Likewise.
45567 All callers and references changed.
45568
45569 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
45570 char * for grub_strncmp to silence gcc.
45571 (grub_iso9660_mount): Likewise.
45572 (grub_iso9660_mount): Likewise.
45573 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
45574 return statement.
45575 (grub_iso9660_iterate_dir): Likewise.
45576 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
45577
45578 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
45579 LEN to grub_disk_addr_t and grub_size_t, respectively.
45580
45581 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
45582
45583 * fs/jfs.c (grub_jfs_read_file): Likewise.
45584
45585 * fs/minix.c (grub_jfs_read_file): Likewise.
45586
45587 * fs/sfs.c (grub_jfs_read_file): Likewise.
45588
45589 * fs/ufs.c (grub_jfs_read_file): Likewise.
45590
45591 * fs/xfs.c (grub_jfs_read_file): Likewise.
45592
45593 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
45594 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
45595 respectively.
45596
45597 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
45598 BLKNR to -1 instead of returning GRUB_ERRNO.
45599 (grub_ext2_read_file): Change the types of SECTOR and
45600 LEN to grub_disk_addr_t and grub_size_t, respectively.
45601
45602 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
45603 LEN to grub_disk_addr_t and grub_size_t, respectively.
45604
45605 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
45606 grub_file_read.
45607
45608 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
45609 string. Do not cast SECTOR explicitly.
45610
45611 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
45612 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
45613 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
45614 grub_disk_addr_t and grub_size_t, respectively. If the sector is
45615 over 2TB and LBA mode is not supported, raise an error.
45616 (get_safe_sectors): New function.
45617 (grub_biosdisk_read): Use get_safe_sectors.
45618 (grub_biosdisk_write): Likewise.
45619
45620 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
45621 (grub_efidisk_write): Likewise.
45622
45623 * disk/loopback.c (delete_loopback): Cosmetic changes.
45624 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
45625 correctly.
45626 (grub_loopback_open): Likewise.
45627 (grub_loopback_read): Likewise. Also, change the type of POS to
45628 grub_off_t, and fix the usage of grub_memset.
45629
45630 * commands/i386/pc/play.c: Include grub/machine/time.h.
45631
45632 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
45633 print FILE->SIZE.
45634
45635 * commands/configfile.c: Include grub/env.h.
45636
45637 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
45638 GRUB_ERRNO directly instead. Change the type of POS to
45639 grub_off_t. Follow the coding standard.
45640
45641 * commands/blocklist.c: Include grub/partition.h.
45642 (grub_cmd_blocklist): Return an error if the underlying device is
45643 not a disk. Take the starting sector of a partition into account,
45644 if a partition is used.
45645
45646 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
45647 a length field.
45648 (lba_mode): Support 64-bit addresses.
45649 (chs_mode): Likewise.
45650 (copy_buffer): Adapted to the new offsets of a length field and a
45651 segment field.
45652 (blocklist_default_start): Allocate 64-bit space.
45653
45654 * boot/i386/pc/boot.S (force_lba): Removed.
45655 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 45656 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 45657 space.
45658 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
45659 is useless.
45660 (lba_mode): Refactored to support a 64-bit address. More size
45661 optimization.
45662 (setup_sectors): Likewise.
45663
53af98ad 456642006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45665
45666 * DISTLIST: Added include/grub/i386/linux.h. Removed
45667 include/grub/i386/pc/linux.h
45668
45669 * configure.ac (AC_INIT): Bumped to 1.94.
45670
45671 * config.guess: Updated from gnulib.
45672 * config.sub: Likewise.
45673 * install-sh: Likewise.
45674 * mkinstalldirs: Likewise.
45675
b4c1940a 456762006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
45677
45678 * conf/common.rmk (grub_modules_init.lst): Depended on
45679 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
45680 MODSRCFILES.
45681
45682 * genmk.rb (PModule::rule): Reverted the previous change.
45683
cfca1cfd 456842006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
45685
45686 * conf/common.rmk (grub_modules_init.lst): Depends on
45687 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
45688 that the target does not exist before producing.
45689 (grub_modules_init.h): Remove the target before generating.
45690 (grub_emu_init.c): Likewise.
45691
45692 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
45693
aa6d7826 456942006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
45695
45696 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
45697 for the target-specific tests. Make sure that we also have the
45698 up-to-date target variables for those tests.
45699
26c607b9 457002006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
45701
45702 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
45703 (PModule::rule): Likewise.
45704
0162321a 457052006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
45706
45707 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
45708 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
45709 target-specific flags should be prefixed.
45710 (PModule::rule): Likewise.
45711
6c826348 457122006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
45713
45714 * configure.ac (CMP): Check if cmp is available explicitly.
45715
b977bf01 457162006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
45717
45718 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
45719 (target_cpu): New variable.
45720 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 45721
b977bf01 45722 * util/i386/pc/grub-install.in (host_cpu): Removed.
45723 (target_cpu): New variable.
45724 (pkglibdir): Use target_cpu instead of host_cpu.
45725
45726 * util/genmoddep.c: Removed.
f19dbdb7 45727
b977bf01 45728 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
45729 instead of GRUB_HOST_SIZEOF_VOID_P.
45730 * kern/dl.c: Likewise.
45731
45732 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
45733 ...
45734 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
45735 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
45736 (GRUB_TARGET_SIZEOF_LONG): ... this.
45737 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
45738 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
45739 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
45740 to ...
45741 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
45742 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
45743 (GRUB_TARGET_SIZEOF_LONG): ... this.
45744 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
45745 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
45746 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
45747 to ...
45748 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
45749 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
45750 (GRUB_TARGET_SIZEOF_LONG): ... this.
45751 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
45752 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
45753
45754 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
45755 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
45756 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
45757 instead of GRUB_HOST_SIZEOF_LONG.
45758 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
45759 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
45760 GRUB_CPU_WORDS_BIGENDIAN.
45761 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
45762 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
45763 grub_host_ssize_t.
45764
45765 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
45766 (genmoddep_SOURCES): Likewise.
45767 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
45768 (genmoddep_SOURCES): Likewise.
45769 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
45770 (genmoddep_SOURCES): Likewise.
45771 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
45772 Likewise.
45773 (genmoddep_SOURCES): Likewise.
45774
45775 * genmoddep.awk: New file.
45776
45777 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
45778 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
45779 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
45780 (PModule::rule): Likewise.
45781 (Program::rule): Likewise.
45782 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
45783 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
45784 respectively.
45785
45786 * configure.ac: Rewritten intensively to use host and target
45787 instead of build and host, respectively.
45788
45789 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
45790 (host_cpu): Removed.
45791 (target_cpu): New variable.
45792 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
45793 (BUILD_CC): Removed.
45794 (BUILD_CFLAGS): Likewise.
45795 (BUILD_CPPFLAGS): Likewise.
45796 (TARGET_CC): New variable.
45797 (TARGET_CFLAGS): Likewise.
45798 (TARGET_CPPFLAGS): Likewise.
45799 (TARGET_LDFLAGS): Likewise.
45800 (AWK): Likewise.
45801 (include): Use target_cpu instead of host_cpu.
45802 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 45803
b977bf01 45804 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
45805
f09771a1 458062006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
45807
45808 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
45809 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
45810 field 'false' to 'exec_on_false'.
45811 (grub_script_create_cmdif): Renamed argument names to reflect above
45812 changes.
45813
45814 * normal/execute.c (grub_script_execute_cmdif): Likewise.
45815
45816 * normal/script.c (grub_script_create_cmdif): Likewise.
45817
118f4fb3 458182006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
45819
45820 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
45821 top.
45822 (grub_hfsplus_btree_recptr): Likewise.
45823 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
45824 FILEBLOCK both to pass a block number and store next block
45825 number.
45826 (grub_hfsplus_read_block): Rewritten heavily to support an extent
45827 overflow file correctly. Specify errors appropriately, because
45828 fshelp expects that GRUB_ERRNO is set when fails. Reuse
45829 grub_hfsplus_btree_recptr to get the pointer to a found key.
45830 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
45831 is found.
45832
45833 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
45834 linux.mod.
45835 (_linux_mod_SOURCES): New variable.
45836 (_linux_mod_CFLAGS): Likewise.
45837 (_linux_mod_LDFLAGS): Likewise.
45838 (linux_mod_SOURCES): Likewise.
45839 (linux_mod_CFLAGS): Likewise.
45840 (linux_mod_LDFLAGS): Likewise.
45841
45842 * DISTLIST: Added loader/i386/efi/linux.c,
45843 loader/i386/efi/linux_normal.c and
45844 include/grub/i386/efi/loader.h.
45845
45846 * loader/i386/efi/linux.c: New file.
45847 * loader/i386/efi/linux_normal.c: Likewise.
45848 * include/grub/i386/efi/loader.h: Likewise.
45849
89a7d726 458502006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
45851
45852 * commands/blocklist.c: New file.
45853
45854 * DISTLIST: Added commands/blocklist.c.
45855
45856 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 45857 color for the background, and a darker color for the foreground.
89a7d726 45858 (grub_console_checkkey): Return READ_KEY.
45859 (grub_console_cls): Set the background to
45860 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
45861
45862 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
45863
45864 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
45865 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
45866
45867 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
45868 prototype.
45869
45870 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
45871 BG. The spec is wrong again.
45872
45873 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
45874 prototype.
45875 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
45876
45877 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45878 commands/blocklist.c.
45879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 45880
89a7d726 45881 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
45882 (blocklist_mod_SOURCES): New variable.
45883 (blocklist_mod_CFLAGS): Likewise.
45884 (blocklist_mod_LDFLAGS): Likewise.
45885
75c8f258 458862006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
45887
45888 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
45889 duplication.
45890 (lba_mode): Use %eax more intensively to reduce the code size.
45891
da2eb181 458922006-05-20 Marco Gerards <marco@gnu.org>
45893
45894 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
45895
45896 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
45897 for `menuentry'.
45898 (script): Accept leading newlines.
45899 (newlines): New rule to describe 0 or more newlines.
45900 (commands): Accept `command' with trailing newline. Fixed the
45901 order in which arguments were passed to `grub_script_add_cmd'.
45902 Accept commands separated by newlines.
45903 (function): Changed to accept newlines.
45904 (menuentry) Rewritten.
45905
45906 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
45907 front of the list, instead of to the end.
45908
577b4050 459092006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
45910
45911 * util/i386/pc/grub-install.in (bindir): New variable.
45912 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
45913 Shaver <lbgwjl@gmail.com>.
45914
0d6e1189 459152006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
45916
45917 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
45918 grub/machine/linux.h
45919 * loader/i386/pc/linux.c: Likewise.
45920
45921 * include/grub/i386/pc/linux.h: Moved to ...
45922 * include/grub/i386/linux.h: ... here.
45923
45924 * include/grub/i386/linux.h (struct linux_kernel_params): New
45925 struct.
f19dbdb7 45926
31b86e9f 459272006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
45928
45929 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
45930 checking.
45931 (grub_video_vbe_blit_glyph): Likewise.
45932 (grub_video_vbe_blit_bitmap): Likewise.
45933 (grub_video_vbe_blit_render_target): Likewise.
45934
83b984de 459352006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
45936
45937 * configure.ac (--with-platform): Properly quote the square
45938 brackets.
45939
5f0413bd 459402006-05-08 Marco Gerards <marco@gnu.org>
45941
45942 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
45943 this...
45944 (kernel_elf_HEADERS): ...to this. Updated all users.
45945 (grubof_symlist.c): Renamed from this...
45946 (kernel_elf_symlist.c): ...to this. Updated all users.
45947 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
45948 (grubof_SOURCES): Renamed from this...
45949 (kernel_elf_SOURCES): ...to this.
45950 (grubof_HEADERS): Renamed from this...
45951 (kernel_elf_HEADERS): ...to this.
45952 (grubof_CFLAGS): Renamed from this...
45953 (kernel_elf_CFLAGS): ...to this.
45954 (grubof_ASFLAGS): Renamed from this...
45955 (kernel_elf_ASFLAGS): ...to this.
45956 (grubof_LDFLAGS): Renamed from this...
45957 (kernel_elf_LDFLAGS): ...to this.
45958
45959 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
45960 this...
45961 (kernel_elf_HEADERS): ...to this. Updated all users.
45962 (grubof_symlist.c): Renamed from this...
45963 (kernel_elf_symlist.c): ...to this. Updated all users.
45964 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
45965 (grubof_SOURCES): Renamed from this...
45966 (kernel_elf_SOURCES): ...to this.
45967 (grubof_HEADERS): Renamed from this...
45968 (kernel_elf_HEADERS): ...to this.
45969 (grubof_CFLAGS): Renamed from this...
45970 (kernel_elf_CFLAGS): ...to this.
45971 (grubof_ASFLAGS): Renamed from this...
45972 (kernel_elf_ASFLAGS): ...to this.
45973 (grubof_LDFLAGS): Renamed from this...
45974 (kernel_elf_LDFLAGS): ...to this.
45975
45976 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
45977 `kernel.elf' instead of `grubof'.
45978
05568c2e 459792006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
45980
45981 Add --with-platform to configure. Use pkglibdir instead of
45982 pkgdatadir. This is reported by Roger Leigh.
45983
45984 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
45985 (host_vendor): Likewise.
45986 (host_os): Likewise.
45987 (pkgdatadir): Likewise.
45988 (platform): New variable.
45989 (pkglibdir): Likewise.
45990 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 45991
05568c2e 45992 * util/i386/pc/grub-install.in (datadir): Removed.
45993 (host_vendor): Likewise.
45994 (host_os): Likewise.
45995 (pkgdatadir): Likewise.
45996 (platform): New variable.
45997 (pkglibdir): Likewise.
45998 Use PKGLIBDIR instead of PKGDATADIR.
45999
46000 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
46001 instead of GRUB_DATADIR.
46002 (main): Likewise.
46003 * util/i386/pc/grub-mkimage.c (usage): Likewise.
46004 (main): Likewise.
46005 * util/i386/efi/grub-mkimage.c (usage): Likewise.
46006 (main): Likewise.
46007
46008 * configure.ac (--with-platform): New option.
46009 Use PLATFORM instead of HOST_VENDOR to specify a platform.
46010
46011 * Makefile.in: Include a makefile based on PLATFORM instead of
46012 HOST_VENDOR.
46013 (pkgdatadir): Not appended by the machine type.
46014 (pkglibdir): Appended by the machine type.
46015 (host_vendor): Removed.
46016 (platform): New variable.
46017 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
46018 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
46019 (uninstall): Likewise.
46020
4e93851c 460212006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
46022
46023 Use the environment context in the menu. Remove the commands
46024 "default" and "timeout", and use variables instead.
f19dbdb7 46025
4e93851c 46026 * normal/menu.c: Include grub/env.h.
46027 (print_entry): Cast TITLE to silence gcc.
46028 (get_timeout): New function.
46029 (set_timeout): Likewise.
46030 (get_entry_number): Likewise.
46031 (run_menu): Use a default entry, a fallback entry and a timeout
46032 in the environment variables "default", "fallback" and
46033 "timeout". Also, tweak the default entry if it is not within the
46034 current menu entries.
46035 (grub_menu_run): Use a fallback entry in the environment variable
46036 "fallback".
46037
46038 * normal/main.c (read_config_file): Do not initialize
46039 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
46040 NEWMENU->TIMEOUT.
46041 (grub_normal_execute): Use a data slot to store the menu.
46042
46043 * include/grub/normal.h (struct grub_menu): Removed default_entry,
46044 fallback_entry and timeout.
46045 (struct grub_menu_list): Removed.
46046 (grub_menu_list_t): Likewise.
46047 (struct grub_context): Likewise.
46048 (grub_context_t): Likewise.
46049 (grub_context_get): Likewise.
46050 (grub_context_get_current_menu): Likewise.
46051 (grub_context_push_menu): Likewise.
46052 (grub_context_pop_menu): Likewise.
46053 (grub_default_init): Likewise.
46054 (grub_default_fini): Likewise.
46055 (grub_timeout_init): Likewise.
46056 (grub_timeout_fini): Likewise.
46057
46058 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
46059 and timeout.mod.
46060 (normal_mod_SOURCES): Removed normal/context.c.
46061
46062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
46063 commands/default.c, commands/timeout.c and normal/context.c.
46064 (normal_mod_SOURCES): Removed normal/context.c.
46065
46066 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
46067 commands/timeout.c and normal/context.c.
46068 (normal_mod_SOURCES): Removed normal/context.c.
46069
46070 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
46071 commands/default.c, commands/timeout.c and normal/context.c.
46072 (normal_mod_SOURCES): Removed normal/context.c.
46073
46074 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
46075 timeout.mod.
46076 (default_mod_SOURCES): Removed.
46077 (default_mod_CFLAGS): Likewise.
46078 (default_mod_LDFLAGS): Likewise.
46079 (timeout_mod_SOURCES): Removed.
46080 (timeout_mod_CFLAGS): Likewise.
46081 (timeout_mod_LDFLAGS): Likewise.
46082
46083 * DISTLIST: Removed commands/default.c, commands/timeout.c and
46084 normal/context.c.
46085
46086 * commands/default.c: Removed.
46087 * commands/timeout.c: Likewise.
46088 * normal/context.c: Likewise.
46089
1eb9cc1d 460902006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
46091
46092 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
46093
385bd9c1 460942006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
46095
46096 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
46097 "next" to "prev" for readability.
46098 (struct grub_env_sorted_var): New struct.
46099 (grub_env_context): Renamed to ...
46100 (initial_context): ... this.
46101 (grub_env_var_context): Renamed to ...
46102 (current_context): ... this.
46103 (grub_env_find): Look only at CURRENT_CONTEXT.
46104 (grub_env_context_open): Rewritten to copy exported variables from
46105 previous context.
46106 (grub_env_context_close): Rewritten according to the new
46107 scheme. Also, add an assertion to prevent the initial context from
46108 removed.
46109 (grub_env_insert): Removed the code for the sorted list.
46110 (grub_env_remove): Likewise.
46111 (grub_env_export): Simply mark the variable with
46112 GRUB_ENV_VAR_GLOBAL.
46113 (grub_env_set): A cosmetic change for naming consistency.
46114 (grub_env_get): Likewise.
46115 (grub_env_unset): Likewise.
46116 (grub_env_iterate): Rewritten to sort variables within this
46117 function.
46118 (grub_register_variable_hook): Fixed for naming consistency. Call
46119 grub_env_find again, only if NAME is not found at the first time.
46120 (mangle_data_slot_name): New function.
46121 (grub_env_set_data_slot): Likewise.
46122 (grub_env_get_data_slot): Likewise.
46123 (grub_env_unset_data_slot): Likewise.
46124
46125 * include/grub/env.h (grub_env_var_type): New enum.
46126 (GRUB_ENV_VAR_LOCAL): New constant.
46127 (GRUB_ENV_VAR_GLOBAL): Likewise.
46128 (GRUB_ENV_VAR_DATA): Likewise.
46129 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
46130 "type".
46131 (grub_env_set): Replace VAR with NAME for consistency.
46132 (grub_register_variable_hook): Likewise.
46133 (grub_env_export): Specify the name of the argument.
46134 (grub_env_set_data_slot): New prototype.
46135 (grub_env_get_data_slot): Likewise.
46136 (grub_env_unset_data_slot): Likewise.
46137
7f362539 461382006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46139
46140 Extend the loader so that GRUB can accept a loader which comes
46141 back to GRUB when a loaded image exits. Also, this change adds
46142 support for a chainloader on EFI.
f19dbdb7 46143
7f362539 46144 * term/efi/console.c: Include grub/misc.h.
46145 (grub_console_checkkey): Display a scan code on the top for
46146 debugging. This will be removed once the EFI port gets stable.
46147 Correct the scan code mapping.
46148
46149 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
46150 allocate memory from larger regions, in order to reduce the number
46151 of allocated regions. Otherwise, the MacOSX loader panics.
46152 (filter_memory_map): Avoid less than 1MB for compatibility with
46153 other loaders.
46154 (add_memory_regions): Allocate from the tail of a region, if
46155 possible, to avoid allocating a region near to 1MB, for the MacOSX
46156 loader.
46157
46158 * kern/efi/init.c (grub_efi_set_prefix): Specify
46159 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
46160
46161 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
46162 argument IMAGE_HANDLE and specify it to get a loaded image.
46163 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
46164 grub_efi_get_loaded_image.
fe6b695a 46165 (grub_efi_get_filename): Divide the length by the size of
7f362539 46166 grub_efi_char16_t.
46167 (grub_efi_get_device_path): New function.
46168 (grub_efi_print_device_path): Print End Device Path nodes. Divide
46169 the length by the size of grub_efi_char16_t for a file path device
46170 path node.
46171
46172 * kern/loader.c (grub_loader_noreturn): New variable.
46173 (grub_loader_set): Accept a new argument NORETURN. Set
46174 GRUB_LOADER_NORETURN to NORETURN.
46175 All callers changed.
46176 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
46177 grub_machine_fini.
46178
46179 * include/grub/efi/efi.h (grub_efi_get_device_path): New
46180 prototype.
46181 (grub_efi_get_loaded_image): Take an argument to specify an image
46182 handle.
46183
46184 * include/grub/loader.h (grub_loader_set): Added one more argument
46185 NORETURN.
46186
46187 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
46188 instead of grub_efi_open_protocol.
46189 (grub_efidisk_get_device_name): Likewise.
46190 (grub_efidisk_close): Print a newline.
46191 (grub_efidisk_get_device_handle): Fixed to use
46192 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
46193 GRUB_EFI_DEVICE_PATH_TYPE.
46194
46195 * disk/efi/efidisk.c (device_path_guid): Moved to ...
46196 * kern/efi/efi.c (device_path_guid): ... here.
46197
46198 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
46199 chain.mod.
46200 (kernel_mod_HEADERS): Added efi/disk.h.
46201 (_chain_mod_SOURCES): New variable.
46202 (_chain_mod_CFLAGS): Likewise.
46203 (_chain_mod_LDFLAGS): Likewise.
46204 (chain_mod_SOURCES): Likewise.
46205 (chain_mod_CFLAGS): Likewise.
46206 (chain_mod_LDFLAGS): Likewise.
46207
46208 * DISTLIST: Added include/grub/efi/chainloader.h,
46209 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
46210
46211 * include/grub/efi/chainloader.h: New file.
46212 * loader/efi/chainloader.c: Likewise.
46213 * loader/efi/chainloader_normal.c: Likewise.
46214
c0111d6e 462152006-04-30 Marco Gerards <marco@gnu.org>
46216
46217 * commands/configfile.c (grub_cmd_source): New function.
46218 (GRUB_MOD_INIT): Register the commands `source' and `.'.
46219 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
46220
df5341da 462212006-04-30 Marco Gerards <marco@gnu.org>
46222
46223 * normal/execute.c (grub_script_execute_cmd): Change the return
46224 type to `grub_err_t'. Correctly return the error.
46225 (grub_script_execute_cmdline): In case a command line is not a
46226 command or a function, try to interpret it as an assignment.
46227
f85934bd 462282006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46229
46230 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
46231 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
46232 skip a node whose name is obviously invalid as UTF-16,
46233 i.e. contains a NUL character. Stop the iteration when the last
46234 directory entry is found. Instead of using the return value of
46235 grub_hfsplus_btree_iterate_node, store the value in RET and use
46236 it, because the iterator can be stopped by the last directory
46237 entry.
46238
8f8a2cf8 462392006-04-30 Marco Gerards <marco@gnu.org>
46240
46241 * include/grub/env.h (grub_env_export): New prototype. Reported
46242 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
46243
a27e84ce 462442006-04-30 Marco Gerards <marco@gnu.org>
46245
46246 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
46247 size of the extents in a catalog file record.
46248
eaef0553 462492006-04-29 Marco Gerards <marco@gnu.org>
46250
46251 * commands/configfile.c (grub_cmd_configfile): Execute the
46252 configfile within its own context.
46253
46254 * include/grub/env.h (grub_env_context_open): New prototype.
46255 (grub_env_context_close): Likewise.
46256
46257 * kern/env.c (grub_env): Removed.
46258 (grub_env_sorted): Likewise.
46259 (grub_env_context): New variable.
46260 (grub_env_var_context): Likewise.
46261 (grub_env_find): Search both the active context and the global
46262 context.
46263 (grub_env_context_open): New function.
46264 (grub_env_context_close): Likewise.
46265 (grub_env_insert): Likewise.
46266 (grub_env_remove): Likewise.
46267 (grub_env_export): Likewise.
46268 (grub_env_set): Changed to use helper functions to avoid code
46269 duplication.
46270 (grub_env_iterate): Rewritten so both the current context and the
46271 global context are being used.
46272
46273 * normal/command.c (export_command): New function.
46274 (grub_command_init): Register the `export' function.
46275
7b455f4d 462762006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
46277
46278 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
46279 explicitly to suppress gcc's warnings.
46280 * fs/fat.c (grub_fat_find_dir): Likewise.
46281 (grub_fat_label): Likewise.
46282 * fs/xfs.c (grub_xfs_read_inode): Likewise.
46283 (grub_xfs_mount): Likewise.
46284 (grub_xfs_label): Likewise.
46285 * fs/affs.c (grub_affs_mount): Likewise.
46286 (grub_affs_label): Likewise.
46287 (grub_affs_iterate_dir): Likewise.
46288 * fs/sfs.c (grub_sfs_mount): Likewise.
46289 (grub_sfs_iterate_dir): Likewise.
46290 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
46291 * fs/hfs.c (grub_hfs_mount): Likewise.
46292 (grub_hfs_cmp_catkeys): Likewise.
46293 (grub_hfs_find_dir): Likewise.
46294 (grub_hfs_dir): Likewise.
46295 (grub_hfs_label): Likewise.
46296 * fs/jfs.c (grub_jfs_mount): Likewise.
46297 (grub_jfs_opendir): Likewise.
46298 (grub_jfs_getent): Likewise.
46299 (grub_jfs_lookup_symlink): Likewise.
46300 (grub_jfs_label): Likewise.
46301 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
46302 (grub_hfsplus_iterate_dir): Likewise.
46303 (grub_hfsplus_btree_iterate_node): Made static.
46304
46305 * util/grub-emu.c (prefix): New variable.
46306 (grub_machine_set_prefix): New function.
46307 (main): Do not set the environment variable "prefix" here. Only
46308 set PREFIX, which is used later by grub_machine_set_prefix.
46309
46310 * include/grub/video.h: Do not include grub/symbol.h.
46311 (grub_video_register): Not exported. This symbol is not defined in
46312 the kernel.
46313 (grub_video_unregister): Likewise.
46314 (grub_video_iterate): Likewise.
46315 (grub_video_setup): Likewise.
46316 (grub_video_restore): Likewise.
46317 (grub_video_get_info): Likewise.
46318 (grub_video_get_blit_format): Likewise.
46319 (grub_video_set_palette): Likewise.
46320 (grub_video_get_palette): Likewise.
46321 (grub_video_set_viewport): Likewise.
46322 (grub_video_get_viewport): Likewise.
46323 (grub_video_map_color): Likewise.
46324 (grub_video_map_rgb): Likewise.
46325 (grub_video_map_rgba): Likewise.
46326 (grub_video_fill_rect): Likewise.
46327 (grub_video_blit_glyph): Likewise.
46328 (grub_video_blit_bitmap): Likewise.
46329 (grub_video_blit_render_target): Likewise.
46330 (grub_video_scroll): Likewise.
46331 (grub_video_swap_buffers): Likewise.
46332 (grub_video_create_render_target): Likewise.
46333 (grub_video_delete_render_target): Likewise.
46334 (grub_video_set_active_render_target): Likewise.
46335
46336 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
46337 Undefined.
46338 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
46339
46340 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
46341 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46342 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46343 instead of $(srcdir)/genkernsyms.sh.
46344
46345 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
46346 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46347 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46348 instead of $(srcdir)/genkernsyms.sh.
46349
46350 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
46351 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46352 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46353 instead of $(srcdir)/genkernsyms.sh.
46354
46355 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
46356 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46357 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46358 instead of $(srcdir)/genkernsyms.sh.
46359
46360 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
46361 genkernsyms.sh.
46362
46363 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
46364 genkernsyms.sh.
46365 (gensymlist.sh): New target.
46366 (genkernsyms.sh): Likewise.
46367
46368 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
46369 genkernsyms.sh.in and gensymlist.sh.in.
46370
46371 * genkernsyms.sh: Removed.
46372 * gensymlist.sh: Likewise.
f19dbdb7 46373
7b455f4d 46374 * genkernsyms.sh.in: New file.
46375 * gensymlist.sh.in: Likewise.
46376
1885bb27 463772006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46378
46379 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
46380 clobber "prefix", since we may have already set it manually.
46381
71538dff 463822006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46383
46384 * kern/misc.c (abort): New alias for grub_abort.
46385
2965c7cc 463862006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
46387
46388 A new machine-specific function "grub_machine_set_prefix" is
46389 defined. This is called after loading modules, so that a prefix
46390 initialization can use modules. Also, this change adds an
46391 intensive debugging feature for the memory manager via the
46392 configure option "--enable-mm-debug".
f19dbdb7 46393
2965c7cc 46394 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
46395 PART.LEN.
46396
46397 * kern/sparc64/ieee1275/init.c (abort): Removed.
46398 (grub_stop): Likewise.
46399 (grub_exit): New function.
46400 (grub_set_prefix): Renamed to ...
46401 (grub_machine_set_prefix): ... this.
46402 (grub_machine_init): Do not call grub_set_prefix.
46403
46404 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
46405 (grub_machine_set_prefix): ... this.
46406 (grub_machine_init): Do not call grub_set_prefix.
46407
46408 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
46409 (grub_machine_init): Do not set the prefix here.
46410
46411 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
46412
46413 * kern/efi/init.c: Include grub/mm.h.
46414 (grub_efi_set_prefix): New function.
46415
46416 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
46417 (grub_efi_get_filename): New function.
46418 (grub_print_device_path): Renamed to ...
46419 (grub_efi_print_device_path): ... this.
46420
46421 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
46422 [MM_DEBUG] (grub_realloc): Likewise.
46423 [MM_DEBUG] (grub_free): Likewise.
46424 [MM_DEBUG] (grub_memalign): Likewise.
46425 [MM_DEBUG] (grub_mm_debug): New variable.
46426 [MM_DEBUG] (grub_debug_malloc): New function.
46427 [MM_DEBUG] (grub_debug_free): New function.
46428 [MM_DEBUG] (grub_debug_realloc): New function.
46429 [MM_DEBUG] (grub_debug_memalign): New function.
46430
46431 * kern/misc.c (grub_abort): Print a newline to distinguish
46432 the message.
46433
46434 * kern/main.c (grub_main): Call grub_machine_set_prefix and
46435 grub_set_root_dev after loading modules. This is necessary when
46436 setting a prefix depends on modules.
46437
46438 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
46439 (grub_efi_print_device_path): ... this.
46440 (grub_efi_get_filename): New prototype.
46441 (grub_efi_set_prefix): Likewise.
46442
46443 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
46444 and grub/disk.h.
46445 (grub_efidisk_get_device_handle): New prototype.
46446 (grub_efidisk_get_device_name): Likewise.
46447
46448 * include/grub/mm.h: Include config.h.
46449 (MM_DEBUG): Removed.
46450 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
46451 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
46452 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
46453 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
46454 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
46455 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
46456 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
46457 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
46458 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
46459
46460 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
46461
46462 * disk/efi/efidisk.c: Include grub/partition.h.
46463 (iterate_child_devices): New function.
46464 (add_device): First, compare only last device path nodes, so that
46465 devices are sorted by the types.
46466 (grub_efidisk_get_device_handle): New function.
46467 (grub_efidisk_get_device_name): Likewise.
46468
46469 * configure.ac (--enable-mm-debug): New option to enable the
46470 memory manager debugging feature. This makes the binary much
46471 bigger, so is disabled by default.
46472
9cacaa17 464732006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
46474
46475 Use grub_abort instead of grub_stop, and grub_exit must be
46476 define in each architecture now. Also, this change adds support
46477 for EFI disks.
f19dbdb7 46478
9cacaa17 46479 * util/i386/pc/grub-probefs.c: Include grub/term.h.
46480 (grub_getkey): New function.
46481 (grub_term_get_current): Likewise.
46482
46483 * util/i386/pc/grub-setup.c: Include grub/term.h.
46484 (grub_getkey): New function.
46485 (grub_term_get_current): Likewise.
46486
46487 * util/misc.c (grub_stop): Renamed to ...
46488 (grub_exit): ... this.
46489
46490 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
46491 (grub_exit): ... this.
46492 (grub_machine_init): Use grub_abort instead of abort.
46493 (grub_stop): Removed.
46494
46495 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
46496 abort.
46497
46498 * kern/i386/pc/startup.S (grub_exit): New function.
46499 (cold_reboot): New label.
46500
46501 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
46502 (grub_efi_init): Call grub_efidisk_init.
46503 (grub_efi_fini): Call grub_efidisk_fini.
46504
46505 * kern/efi/efi.c: Include grub/mm.h.
46506 (grub_efi_console_control_guid): Renamed to ...
46507 (console_control_guid): ... this.
46508 (grub_efi_loaded_image_guid): Renamed to ...
46509 (loaded_image_guid): ... this.
46510 (grub_efi_locate_handle): New function.
46511 (grub_efi_open_protocol): Likewise.
46512 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
46513 GRUB_EFI_CONSOLE_CONTROL_GUID.
46514 (grub_efi_exit): Removed.
46515 (grub_stop): Likewise.
46516 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
46517 (grub_exit): New function.
46518 (grub_print_device_path): Likewise.
46519
46520 * kern/rescue.c (grub_rescue_cmd_exit): New function.
46521 (grub_enter_rescue_mode): Register "exit".
46522
46523 * kern/misc.c (grub_real_dprintf): A cosmetic change.
46524 (grub_abort): New function.
46525
46526 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
46527
46528 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
46529
46530 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
46531
46532 * include/grub/efi/efi.h (grub_efi_exit): Removed.
46533 (grub_print_device_path): New prototype.
46534 (grub_efi_locate_handle): Likewise.
46535 (grub_efi_open_protocol): Likewise.
46536
46537 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
46538 * disk/efi/efidisk.c: Likewise.
46539
46540 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
46541
46542 * include/grub/efi/console_control.h
46543 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
46544
46545 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
46546 last 8 bytes as an array.
46547 (GRUB_EFI_DISK_IO_GUID): New macro.
46548 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
46549 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
46550 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
46551 grub_uint8_t.
46552 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
46553 (struct grub_efi_device_path): Rename the member "sub_type" to
46554 "subtype".
46555 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
46556 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
46557 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
46558 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
46559 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
46560 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
46561 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
46562 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
46563 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
46564 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
46565 (struct grub_efi_pci_device_path): New structure.
46566 (grub_efi_pci_device_path_t): New type.
46567 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
46568 (struct grub_efi_pccard_device_path): New structure.
46569 (grub_efi_pccard_device_path_t): New type.
46570 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
46571 (struct grub_efi_memory_mapped_device_path): New structure.
46572 (grub_efi_memory_mapped_device_path_t): New type.
46573 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
46574 (struct grub_efi_vendor_device_path): New structure.
46575 (grub_efi_vendor_device_path_t): New type.
46576 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
46577 (struct grub_efi_controller_device_path): New structure.
46578 (grub_efi_controller_device_path_t): New type.
46579 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
46580 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
46581 (struct grub_efi_acpi_device_path): New structure.
46582 (grub_efi_acpi_device_path_t): New type.
46583 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
46584 (struct grub_efi_expanded_acpi_device_path): New structure.
46585 (grub_efi_expanded_acpi_device_path_t): New type.
46586 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
46587 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
46588 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
46589 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
46590 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
46591 (struct grub_efi_atapi_device_path): New structure.
46592 (grub_efi_atapi_device_path_t): New type.
46593 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
46594 (struct grub_efi_fibre_channel_device_path): New structure.
46595 (grub_efi_fibre_channel_device_path_t): New type.
46596 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
46597 (struct grub_efi_1394_device_path): New structure.
46598 (grub_efi_1394_device_path_t): New type.
46599 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
46600 (struct grub_efi_usb_device_path): New structure.
46601 (grub_efi_usb_device_path_t): New type.
46602 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
46603 (struct grub_efi_usb_class_device_path): New structure.
46604 (grub_efi_usb_class_device_path_t): New type.
46605 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
46606 (struct grub_efi_i2o_device_path): New structure.
46607 (grub_efi_i2o_device_path_t): New type.
46608 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
46609 (struct grub_efi_mac_address_device_path): New structure.
46610 (grub_efi_mac_address_device_path_t): New type.
46611 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
46612 (struct grub_efi_ipv4_device_path): New structure.
46613 (grub_efi_ipv4_device_path_t): New type.
46614 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
46615 (struct grub_efi_ipv6_device_path): New structure.
46616 (grub_efi_ipv6_device_path_t): New type.
46617 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
46618 (struct grub_efi_infiniband_device_path): New structure.
46619 (grub_efi_infiniband_device_path_t): New type.
46620 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
46621 (struct grub_efi_uart_device_path): New structure.
46622 (grub_efi_uart_device_path_t): New type.
46623 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
46624 (struct grub_efi_vendor_messaging_device_path): New structure.
46625 (grub_efi_vendor_messaging_device_path_t): New type.
46626 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
46627 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
46628 (struct grub_efi_hard_drive_device_path): New structure.
46629 (grub_efi_hard_drive_device_path_t): New type.
46630 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
46631 (struct grub_efi_cdrom_device_path): New structure.
46632 (grub_efi_cdrom_device_path_t): New type.
46633 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
46634 (struct grub_efi_vendor_media_device_path): New structure.
46635 (grub_efi_vendor_media_device_path_t): New type.
46636 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
46637 (struct grub_efi_file_path_device_path): New structure.
46638 (grub_efi_file_path_device_path_t): New type.
46639 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
46640 (struct grub_efi_protocol_device_path): New structure.
46641 (grub_efi_protocol_device_path_t): New type.
46642 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
46643 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
46644 (struct grub_efi_bios_device_path): New structure.
46645 (grub_efi_bios_device_path_t): New type.
46646 (struct grub_efi_disk_io): New structure.
46647 (grub_efi_disk_io_t): New type.
46648 (struct grub_efi_block_io_media): New structure.
46649 (grub_efi_block_io_media_t): New type.
46650 (struct grub_efi_block_io): New structure.
46651 (grub_efi_block_io_t): New type.
46652
46653 * include/grub/misc.h (grub_stop): Removed.
46654 (grub_exit): New prototype.
46655 (grub_abort): Likewise.
46656
46657 * include/grub/disk.h (enum grub_disk_dev_id): Added
46658 GRUB_DISK_DEVICE_EFIDISK_ID.
46659
46660 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
46661 disk/efi/efidisk.c.
46662 (kernel_syms.lst): Remove the target if an error occurs.
46663
49986a9f 466642006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
46665
46666 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
46667 as it was simply too buggy.
46668
970d3b8a 466692006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
46670
46671 * kern/misc.c (grub_lltoa): New function.
46672 (grub_vsprintf): Added support for the long long suffix,
46673 i.e. "ll".
46674
ff04ec24 466752006-04-20 Hollis Blanchard <hollis@penguinppc.org>
46676
46677 * Makefile.in (LDFLAGS): Add variable.
46678 (LD): Remove variable.
46679 * configure.ac: Add -m32 to LDFLAGS.
46680 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
46681 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
46682 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
46683 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
46684 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
46685 variables.
46686 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
46687 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
46688 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
46689
37e5e1a4 466902006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
46691
46692 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
46693 length for unknown glyph.
46694
c352d8dd 466952006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
46696
2eab1c0d 46697 Add support for pre-loaded modules into the EFI port.
f19dbdb7 46698
2eab1c0d 46699 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
46700 completely. Accept one more argument DIR. The caller has changed.
46701
46702 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
46703
46704 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
46705 (grub_efi_loaded_image_guid): New variable.
46706 (grub_efi_get_loaded_image): New function.
46707 (grub_arch_modules_addr): Likewise.
46708
46709 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
46710 prototype.
46711
46712 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
46713 (struct grub_efi_loaded_image): New structure.
46714 (grub_efi_loaded_image_t): New type.
46715
467162006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46717
c352d8dd 46718 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
46719 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
46720 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
46721
6d01d6b4 467222006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
46723
46724 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
46725
976a4ea0 467262006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
46727
46728 * DISTLIST: Added include/grub/efi/console.h,
46729 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
46730 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
46731
46732 * include/grub/efi/console.h: New file.
46733 * include/grub/efi/time.h: Likewise.
46734 * include/grub/i386/efi/kernel.h: Likewise.
46735 * kern/efi/init.c: Likewise.
46736 * kern/efi/mm.c: Likewise.
46737 * term/efi/console.c: Likewise.
f19dbdb7 46738
976a4ea0 46739 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
46740 (grub_stop): Removed.
46741 (grub_get_rtc): Likewise.
46742 (grub_machine_init): Simply call grub_efi_init.
46743 (grub_machine_fini): Call grub_efi_fini.
46744
46745 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
46746 (grub_efi_output_string): Removed.
46747 (grub_efi_stall): New function.
46748 (grub_stop): Likewise.
46749 (grub_get_rtc): Likewise.
46750
46751 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
46752 (grub_efi_stall): New prototype.
46753 (grub_efi_allocate_pages): Likewise.
46754 (grub_efi_free_pages): Likewise.
46755 (grub_efi_get_memory_map): Likewise.
46756 (grub_efi_mm_init): Likewise.
46757 (grub_efi_mm_fini): Likewise.
46758 (grub_efi_init): Likewise.
46759 (grub_efi_fini): Likewise.
46760
46761 * include/grub/i386/efi/time.h: Do not include
46762 grub/symbol.h. Include grub/efi/time.h.
46763 (GRUB_TICKS_PER_SECOND): Removed.
46764 (grub_get_rtc): Likewise.
46765
46766 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
46767 Added padding. The EFI spec is buggy.
46768 (GRUB_EFI_BLACK): New macro.
46769 (GRUB_EFI_BLUE): Likewise.
46770 (GRUB_EFI_GREEN): Likewise.
46771 (GRUB_EFI_CYAN): Likewise.
46772 (GRUB_EFI_RED): Likewise.
46773 (GRUB_EFI_MAGENTA): Likewise.
46774 (GRUB_EFI_BROWN): Likewise.
46775 (GRUB_EFI_LIGHTGRAY): Likewise.
46776 (GRUB_EFI_BRIGHT): Likewise.
46777 (GRUB_EFI_DARKGRAY): Likewise.
46778 (GRUB_EFI_LIGHTBLUE): Likewise.
46779 (GRUB_EFI_LIGHTGREEN): Likewise.
46780 (GRUB_EFI_LIGHTCYAN): Likewise.
46781 (GRUB_EFI_LIGHTRED): Likewise.
46782 (GRUB_EFI_LIGHTMAGENTA): Likewise.
46783 (GRUB_EFI_YELLOW): Likewise.
46784 (GRUB_EFI_WHITE): Likewise.
46785 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
46786 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
46787 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
46788 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
46789 (GRUB_EFI_BACKGROUND_RED): Likewise.
46790 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
46791 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
46792 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
46793 (GRUB_EFI_TEXT_ATTR): Likewise.
46794
46795 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
46796 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
46797 (kernel_mod_HEADERS): Added efi/time.h.
46798
83709125 467992006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
46800
46801 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
46802 include/grub/efi/api.h, include/grub/efi/console_control.h,
46803 include/grub/efi/efi.h, include/grub/efi/pe32.h,
46804 include/grub/i386/efi/time.h, kern/efi/efi.c,
46805 kern/i386/efi/init.c, kern/i386/efi/startup.S,
46806 and util/i386/efi/grub-mkimage.c.
46807
46808 * Makefile.in (RMKFILES): Added i386-efi.rmk.
46809
46810 * genmk.rb (PModule#rule): Do not export symbols if
46811 #{prefix}_EXPORTS is set to "no".
46812
46813 * conf/i386-efi.mk: New file.
46814 * conf/i386-efi.rmk: Likewise.
46815 * include/grub/efi/api.h: Likewise.
46816 * include/grub/efi/console_control.h: Likewise.
46817 * include/grub/efi/efi.h: Likewise.
46818 * include/grub/efi/pe32.h: Likewise.
46819 * include/grub/i386/efi/time.h: Likewise.
46820 * kern/efi/efi.c: Likewise.
46821 * kern/i386/efi/init.c: Likewise.
46822 * kern/i386/efi/startup.S: Likewise.
46823 * util/i386/efi/grub-mkimage.c: Likewise.
46824
468252006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 46826
46827 * include/grub/script.h: Include <grub/parser.h> and
46828 "grub_script.tab.h".
46829 (struct grub_lexer_param): New struct.
46830 (struct grub_parser_param): Likewise.
46831 (grub_script_create_arglist): Pass the state in an argument.
46832 (grub_script_add_arglist): Likewise.
46833 (grub_script_create_cmdline): Likewise.
46834 (grub_script_create_cmdblock): Likewise.
46835 (grub_script_create_cmdif): Likewise.
46836 (grub_script_create_cmdmenu): Likewise.
46837 (grub_script_add_cmd): Likewise.
46838 (grub_script_arg_add): Likewise.
46839 (grub_script_lexer_ref): Likewise.
46840 (grub_script_lexer_deref): Likewise.
46841 (grub_script_lexer_record_start): Likewise.
46842 (grub_script_lexer_record_stop): Likewise.
46843 (grub_script_mem_record): Likewise.
46844 (grub_script_mem_record_stop): Likewise.
46845 (grub_script_malloc): Likewise.
46846 (grub_script_yylex): Likewise.
46847 (grub_script_yyparse): Likewise.
46848 (grub_script_yyerror): Likewise.
46849 (grub_script_yylex): Likewise.
46850 (grub_script_lexer_init): Return the state.
46851
46852 * normal/lexer.c (grub_script_lexer_state): Removed variable.
46853 (grub_script_lexer_done): Likewise.
46854 (grub_script_lexer_getline): Likewise.
46855 (grub_script_lexer_refs): Likewise.
46856 (script): Likewise.
46857 (newscript): Likewise.
46858 (record): Likewise.
46859 (recording): Likewise.
46860 (recordpos): Likewise.
46861 (recordlen): Likewise.
46862 (grub_script_lexer_init): Return the state instead of setting
46863 global variables.
46864 (grub_script_lexer_ref): Use the newly added argument for state
46865 instead of globals.
46866 (grub_script_lexer_deref): Likewise.
46867 (grub_script_lexer_record_start): Likewise.
46868 (grub_script_lexer_record_stop): Likewise.
46869 (recordchar): Likewise.
46870 (nextchar): Likewise.
46871 (grub_script_yylex2): Likewise.
46872 (grub_script_yylex): Likewise.
46873 (grub_script_yyerror): Likewise.
46874
46875 * normal/parser.y (func_mem): Removed variable.
46876 (menu_entry): Likewise.
46877 (err): Likewise.
46878 (%lex-param): New parser option.
46879 (%parse-param): Likewise.
46880 (script): Always return the AST.
46881 (argument): Pass the state around.
46882 (arguments): Likewise.
46883 (grubcmd): Likewise.
46884 (commands): Likewise.
46885 (function): Likewise.
46886 (menuentry): Likewise.
46887 (if_statement): Likewise.
46888 (if): Likewise.
46889
46890 * normal/script.c (grub_script_memused): Removed variable.
46891 (grub_script_parsed): Likewise.
46892 (grub_script_malloc): Added a state argument. Use that instead of
46893 global variables.
46894 (grub_script_mem_record): Likewise.
46895 (grub_script_mem_record_stop): Likewise.
46896 (grub_script_arg_add): Likewise.
46897 (grub_script_add_arglist): Likewise.
46898 (grub_script_create_cmdline): Likewise.
46899 (grub_script_create_cmdif): Likewise.
46900 (grub_script_create_cmdmenu): Likewise.
46901 (grub_script_add_cmd): Likewise.
46902 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 46903
e2a8c904 469042006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 46905
46906 * normal/command.c (grub_command_init): Remove the title command.
46907
46908 * normal/lexer.c (grub_script_yylex): Renamed from this...
46909 (grub_script_yylex2): ... to this.
46910 (grub_script_yylex): New function. Temporary
46911 introduced to filter some tokens.
46912 (grub_script_yyerror): Print a newline.
46913
46914 * normal/main.c (read_config_file): Output information about the
46915 lines that contain errors. Wait for a key after all lines have
46916 been processed. Don't return an empty menu.
46917
46918 * normal/parser.y (func_mem): Don't initialize.
46919 (menu_entry): Likewise.
46920 (err): New variable.
46921 (script): Don't return anything when an error was encountered.
46922 (ws, returns): Removed rules.
46923 (argument): Disabled concatenated variable support.
46924 (arguments): Remove explicit separators.
46925 (grubcmd): Likewise.
46926 (function): Likewise.
46927 (menuentry): Likewise.
46928 (if): Likewise.
46929 (commands): Likewise. Add error handling.
46930
46931 * normal/script.c (grub_script_create_cmdline): If
46932 `grub_script_parsed' is 0, assume the parser encountered an error.
46933
c9a86192 469342006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
46935
46936 * configure.ac: Add support for EFI. Fix the typo
46937 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
46938
70f3b243 469392006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
46940
46941 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
46942 foreign multibyte characters should be shown correctly.
46943
65f201ad 469442006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
46945
46946 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
46947 calculation.
46948 (read_config_file): Made it to close file before returning.
46949
b4b93674 469502006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
46951
46952 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
46953 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
46954 video/i386/pc/vbefill.c.
46955
46956 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
46957 video/i386/pc/vbefill.c.
46958
46959 * include/grub/video.h (grub_video_blit_format): New enum.
46960 (grub_video_mode_info): Added new member blit_format.
46961 (grub_video_get_blit_format): New function prototype.
46962
46963 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
46964 function prototype.
46965 (grub_video_vbe_map_rgb): Likewise.
46966 (grub_video_vbe_unmap_color): Likewise.
46967
46968 * include/grub/i386/pc/vbeblit.h: New file.
46969
46970 * include/grub/i386/pc/vbefill.h: New file.
46971
46972 * video/video.c (grub_video_get_blit_format): New function.
46973 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
46974 (grub_video_vbe_map_rgb): Likewise.
46975 (grub_video_vbe_unmap_color): Likewise.
46976
46977 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
46978 optimized fills.
46979 (grub_video_vbe_blit_render_target): Changed to use more optimized
46980 blits.
46981 (grub_video_vbe_setup): Added detection for optimized settings.
46982 (grub_video_vbe_create_render_target): Likewise.
46983
46984 * video/i386/pc/vbeblit.c: New file.
46985
46986 * video/i386/pc/vbefill.c: New file.
46987
c2379b9c 469882006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
46989
46990 * font/manager.c (grub_font_get_glyph): Removed font fixup from
46991 here...
46992
46993 * util/unifont2pff.rb: ... and moved it to here. Improved argument
46994 parsing to support both hex and dec ranges. If filename was missing
46995 show usage information.
46996
bd0d7896 469972006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
46998
46999 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
47000 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
47001
47002 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
47003 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
47004 (video_mod_SOURCES): Added.
47005 (video_mod_CFLAGS): Likewise.
47006 (video_mod_LDFLAGS): Likewise.
47007 (gfxterm_mod_SOURCES): Likewise.
47008 (gfxterm_mod_CFLAGS): Likewise.
47009 (gfxterm_mod_LDFLAGS): Likewise.
47010 (videotest_mod_SOURCES): Likewise.
47011 (videotest_mod_CFLAGS): Likewise.
47012 (videotest_mod_LDFLAGS): Likewise.
47013 (vesafb_mod_SOURCES): Removed.
47014 (vesafb_mod_CFLAGS): Likewise.
47015 (vesafb_mod_LDFLAGS): Likewise.
47016 (vga_mod_SOURCES): Likewise.
47017 (vga_mod_CFLAGS): Likewise.
47018 (vga_mod_LDFLAGS): Likewise.
47019
47020 * commands/videotest.c: New file.
47021
47022 * font/manager.c (fill_with_default_glyph): Modified to use
47023 grub_font_glyph.
47024 (grub_font_get_glyph): Likewise.
47025 (fontmanager): Renamed from this...
47026 (font_manager): ... to this.
47027
47028 * include/grub/font.h (grub_font_glyph): Added new structure.
47029 (grub_font_get_glyph): Modified to use grub_font_glyph.
47030
47031 * include/grub/misc.h (grub_abs): Added as inline function.
47032
47033 * include/grub/video.h: New file.
47034
47035 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
47036 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
47037 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
47038 (grub_vbe_get_controller_info): Renamed from this...
47039 (grub_vbe_bios_get_controller_info): ... to this.
47040 (grub_vbe_get_mode_info): Renamed from this...
47041 (grub_vbe_bios_get_mode_info): ... to this.
47042 (grub_vbe_set_mode): Renamed from this...
47043 (grub_vbe_bios_set_mode): ... to this.
47044 (grub_vbe_get_mode): Renamed from this...
47045 (grub_vbe_bios_get_mode): ... to this.
47046 (grub_vbe_set_memory_window): Renamed from this...
47047 (grub_vbe_bios_set_memory_window): ... to this.
47048 (grub_vbe_get_memory_window): Renamed from this...
47049 (grub_vbe_bios_get_memory_window): ... to this.
47050 (grub_vbe_set_scanline_length): Renamed from this...
47051 (grub_vbe_set_scanline_length): ... to this.
47052 (grub_vbe_get_scanline_length): Renamed from this...
47053 (grub_vbe_bios_get_scanline_length): ... to this.
47054 (grub_vbe_set_display_start): Renamed from this...
47055 (grub_vbe_bios_set_display_start): ... to this.
47056 (grub_vbe_get_display_start): Renamed from this...
47057 (grub_vbe_bios_get_display_start): ... to this.
47058 (grub_vbe_set_palette_data): Renamed from this...
47059 (grub_vbe_bios_set_palette_data): ... to this.
47060 (grub_vbe_set_pixel_rgb): Removed.
47061 (grub_vbe_set_pixel_index): Likewise.
47062
47063 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
47064 from this...
47065 (grub_vbe_bios_get_controller_info): ... to this.
47066 (grub_vbe_get_mode_info): Renamed from this...
47067 (grub_vbe_bios_get_mode_info): ... to this.
47068 (grub_vbe_set_mode): Renamed from this...
47069 (grub_vbe_bios_set_mode): ... to this.
47070 (grub_vbe_get_mode): Renamed from this...
47071 (grub_vbe_bios_get_mode): ... to this.
47072 (grub_vbe_set_memory_window): Renamed from this...
47073 (grub_vbe_bios_set_memory_window): ... to this.
47074 (grub_vbe_get_memory_window): Renamed from this...
47075 (grub_vbe_bios_get_memory_window): ... to this.
47076 (grub_vbe_set_scanline_length): Renamed from this...
47077 (grub_vbe_set_scanline_length): ... to this.
47078 (grub_vbe_get_scanline_length): Renamed from this...
47079 (grub_vbe_bios_get_scanline_length): ... to this.
47080 (grub_vbe_set_display_start): Renamed from this...
47081 (grub_vbe_bios_set_display_start): ... to this.
47082 (grub_vbe_get_display_start): Renamed from this...
47083 (grub_vbe_bios_get_display_start): ... to this.
47084 (grub_vbe_set_palette_data): Renamed from this...
47085 (grub_vbe_bios_set_palette_data): ... to this.
47086 (grub_vbe_bios_get_controller_info): Fixed problem with registers
47087 getting corrupted after calling it. Added more pushes and pops.
47088 (grub_vbe_bios_set_mode): Likewise.
47089 (grub_vbe_bios_get_mode): Likewise.
47090 (grub_vbe_bios_get_memory_window): Likewise.
47091 (grub_vbe_bios_set_scanline_length): Likewise.
47092 (grub_vbe_bios_get_scanline_length): Likewise.
47093 (grub_vbe_bios_get_display_start): Likewise.
47094 (grub_vbe_bios_set_palette_data): Likewise.
47095
47096 * normal/cmdline.c (cl_set_pos): Refresh the screen.
47097 (cl_insert): Likewise.
47098 (cl_delete): Likewise.
47099
47100 * term/gfxterm.c: New file.
47101
47102 * term/i386/pc/vesafb.c: Removed file.
47103
47104 * video/video.c: New file.
47105
47106 * video/i386/pc/vbe.c (real2pm): Added new function.
47107 (grub_video_vbe_draw_pixel): Likewise.
47108 (grub_video_vbe_get_video_ptr): Likewise.
47109 (grub_video_vbe_get_pixel): Likewise
47110 (grub_video_vbe_init): Likewise.
47111 (grub_video_vbe_fini): Likewise.
47112 (grub_video_vbe_setup): Likewise.
47113 (grub_video_vbe_get_info): Likewise.
47114 (grub_video_vbe_set_palette): Likewise.
47115 (grub_video_vbe_get_palette): Likewise.
47116 (grub_video_vbe_set_viewport): Likewise.
47117 (grub_video_vbe_get_viewport): Likewise.
47118 (grub_video_vbe_map_color): Likewise.
47119 (grub_video_vbe_map_rgb): Likewise.
47120 (grub_video_vbe_map_rgba): Likewise.
47121 (grub_video_vbe_unmap_color): Likewise.
47122 (grub_video_vbe_fill_rect): Likewise.
47123 (grub_video_vbe_blit_glyph): Likewise.
47124 (grub_video_vbe_blit_bitmap): Likewise.
47125 (grub_video_vbe_blit_render_target): Likewise.
47126 (grub_video_vbe_scroll): Likewise.
47127 (grub_video_vbe_swap_buffers): Likewise.
47128 (grub_video_vbe_create_render_target): Likewise.
47129 (grub_video_vbe_delete_render_target): Likewise.
47130 (grub_video_vbe_set_active_render_target): Likewise.
47131 (grub_vbe_set_pixel_rgb): Remove function.
47132 (grub_vbe_set_pixel_index): Likewise.
47133 (index_color_mode): Remove static variable.
47134 (active_mode): Likewise.
47135 (framebuffer): Likewise.
47136 (bytes_per_scan_line): Likewise.
47137 (grub_video_vbe_adapter): Added new static variable.
47138 (framebuffer): Likewise.
47139 (render_target): Likewise.
47140 (initial_mode): Likewise.
47141 (mode_in_use): Likewise.
47142 (mode_list): Likewise.
47143
5f97350b 471442006-03-10 Marco Gerards <marco@gnu.org>
47145
47146 * configure.ac (AC_INIT): Bumped to 1.93.
47147
47148 * DISTLIST: Added `include/grub/hfs.h'.
47149
a3c5c6f8 471502006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
47151
47152 * boot/i386/pc/boot.S (general_error): Before looping, try INT
47153 18H, which might help the BIOS falling back to next boot media.
47154
6de53d26 471552006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
47156
47157 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
47158 Poe Chen <poe.poechen@gmail.com>.
47159
77c4a393 471602006-01-17 Marco Gerards <marco@gnu.org>
47161
47162 * include/grub/normal.h: Include <grub/script.h>.
47163 (grub_command_list): Removed struct.
47164 (grub_command_list_t): Removed type.
47165 (grub_menu_entry): Remove members `num' and `command_list'. Add
47166 members `commands' and `sourcecode'.
47167 * include/grub/script.h: Add inclusion guards.
47168 (grub_script_cmd_menuentry): New struct.
47169 (grub_script_execute_menuentry): New prototype.
47170 (grub_script_lexer_record_start): Likewise.
47171 (grub_script_lexer_record_stop): Likewise.
47172 * normal/execute.c (grub_script_execute_menuentry): New function.
47173 * normal/lexer.c (record, recording, recordpos, recordlen): New
47174 variables.
47175 (grub_script_lexer_record_start): New function.
47176 (grub_script_lexer_record_stop): Likewise.
47177 (recordchar): Likewise.
47178 (nextchar): Likewise.
47179 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
47180 2048 as the buffer size. Add the tokens `menuentry' and `@'.
47181 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
47182 (current_menu): New variable.
47183 (free_menu): Mainly rewritten.
47184 (grub_normal_menu_addentry): New function.
47185 (read_config_file): Rewritten.
47186 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 47187 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 47188 the menu entry.
47189 (run): Mainly rewritten.
47190 * normal/parser.y (menu_entry): New variable.
47191 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
47192 (menuentry): New rule.
47193 (command): Add `menuentry'.
47194 (if_statement): Allow additional returns before `fi'.
47195 * normal/script.c (grub_script_create_cmdmenu): New function.
47196
144f1f98 471972006-01-03 Marco Gerards <marco@gnu.org>
47198
47199 * INSTALL: GNU Bison is required.
47200 * configure.ac: Rewritten the test to detect Bison.
47201 * Makefile.in (YACC): New variable. Reported by Xun Sun
47202 <xun.sun.cn@gmail.com>.
47203
af4b2d89 472042006-01-03 Marco Gerards <marco@gnu.org>
47205
47206 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
47207 the HFS+ filesystem to filesystem blocks.
47208 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
47209 GCC warning is silenced.
47210
15643b71 472112006-01-03 Marco Gerards <marco@gnu.org>
47212
47213 * partmap/apple.c (apple_partition_map_iterate): Convert the data
47214 read from disk from big endian to host byte order.
47215
00905879 472162006-01-03 Hollis Blanchard <hollis@penguinppc.org>
47217
47218 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
47219 documentation.
47220 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
47221 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
47222 embedded HFS+ filesystem.
47223 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
47224 (grub_hfs_sblock): Move from here...
47225 * include/grub/hfs.h: To here... New file.
47226 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
47227 documentation.
47228 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
47229 New macros.
47230 (grub_hfsplus_volheader): Change type of member `magic' to
47231 `grub_uint16_t'.
47232 (grub_hfsplus_data): Add new member `embedded_offset'.
47233 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
47234 returned block.
47235 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
47236 Calculate the offset.
47237
8899bc3e 472382005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47239
47240 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
47241 Removed.
47242 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
47243
ae8c0277 472442005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47245
47246 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
47247 ENV->NAME is NULL after allocating ENV->VALUE.
47248
07084456 472492005-12-25 Marco Gerards <marco@gnu.org>
47250
47251 * kern/env.c (grub_env_set): Rewritten the error handling code.
47252
4750f5f1 472532005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47254
47255 * geninit.sh: Made more robust, and more portable.
47256
50214199 472572005-12-25 Marco Gerards <marco@gnu.org>
47258
47259 Add support for Apple HFS+ filesystems.
f19dbdb7 47260
50214199 47261 * fs/hfsplus.c: New file.
47262
47263 * DISTLIST: Added `fs/hfsplus.c'.
47264
47265 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
47266 (hfsplus_mod_SOURCES): New variable.
47267 (hfsplus_mod_CFLAGS): Likewise.
47268 (hfsplus_mod_LDFLAGS): Likewise.
47269 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
47270 (grub_setup_SOURCES): Likewise.
47271 (grub_mkdevicemap_SOURCES): Likewise.
47272 (grub_emu_SOURCES): Likewise.
47273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47274
47275 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
47276
47277 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
47278
befaed6c 472792005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47280
47281 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
47282 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
47283 include/grub/parser.h, include/grub/script.h, kern/parser.c,
47284 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
47285 normal/lexer.c, normal/parser.y, normal/script.c, and
47286 partmap/gpt.c.
47287 Removed kern/sparc64/cache.c.
47288
47289 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
47290 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
47291 grub_emu_init.c.
47292
47293 * configure.ac (AC_INIT): Bumped to 1.92.
47294
6a124103 472952005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
47296
47297 * kern/err.c (grub_error_push): Added new function to support error
47298 stacks.
47299 (grub_error_pop): Likewise.
47300 (grub_error_stack_items): New local variable to support error stacks.
47301 (grub_error_stack_pos): Likewise.
47302 (grub_error_stack_assert): Likewise.
47303 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
47304 stack depth.
47305 (grub_print_error): Added support to print errors from error stack.
47306
47307 * include/grub/err.h (grub_error_push): Added function prototype.
47308 (grub_error_pop): Likewise.
47309
be973c1b 473102005-12-09 Hollis Blanchard <hollis@penguinppc.org>
47311
47312 * configure.ac: Accept `powerpc64' as host_cpu.
47313 (amd64): Rename to `biarch32'.
47314
47315 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
47316 non-cacheline-aligned addresses.
47317
47318 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
47319 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
47320 if `size' is non-zero.
47321
b04216ab 473222005-12-03 Marco Gerards <mgerards@xs4all.nl>
47323
47324 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
47325 and `cd' to make sure the filename is not prefixed with a
47326 directory name.
47327 (pkgdata_MODULES): Add `gpt.mod'.
47328 (gpt_mod_SOURCES): New variable.
47329 (gpt_mod_CFLAGS): Likewise.
47330 (gpt_mod_LDFLAGS): Likewise.
47331
47332 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
47333
47334 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
47335 New macro.
47336
47337 * partmap/gpt.c: New file.
47338
47339 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
47340 GPT partition map is detected.
47341
41730ed9 473422005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
47343
47344 * commands/i386/pc/play.c: New file.
47345 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
47346 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
47347 macros.
f19dbdb7 47348
95dc3643 473492005-11-27 Marco Gerards <mgerards@xs4all.nl>
47350
47351 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
47352 ((unused))' to silence gcc warning.
47353
1569ec51 473542005-11-26 Hollis Blanchard <hollis@penguinppc.org>
47355
47356 * configure.ac: Correct `AC_PROG_YACC' test.
47357
9abde152 473582005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47359
47360 * util/powerpc/ieee1275/grub-install.in: Run the mount point
47361 check before installing files.
47362
44b83271 473632005-11-22 Mike Small <smallm@panix.com>
47364
47365 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
47366 number regex so multidigit numbers are recognized correctly.
47367
473682005-11-22 Mike Small <smallm@panix.com>
47369
47370 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
47371 debugging message before attempting to claim memory.
47372 (grub_rescue_cmd_initrd): Add a claim debugging message and try
47373 multiple addresses in case of failure.
47374
9c12956b 473752005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47376
47377 * term/tparm.c (get_space): Remove empty `if' statement.
47378
47379 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
47380
47381 * kern/parser.c (check_varstate): Rename `state' to 's'.
47382
aeaf81d9 473832005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47384
47385 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
47386 variable definitions to the beginning of each function. Sort stack
47387 variables by size.
47388 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
47389 `buf' argument to `char *'.
47390
79bbb63f 473912005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47392
47393 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
47394 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 47395 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 47396 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47397 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47398 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47399 configfile.mod, search.mod, gzio.mod and test.mod.
47400 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47401 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47402 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47403 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47404 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47405 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47406 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47407 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47408 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47409 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47410 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47411 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47412 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47413 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47414 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47415 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47416 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47417 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47418 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47419 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47420 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47421 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47422 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
47423
47424 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
47425 `grep --include'.
47426 (pkgdata_MODULES): Add test.mod.
47427
233b1628 474282005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47429
47430 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
47431 appending to variables with "+=".
47432 (PModule): Use full pathname to generate *.lst filenames.
47433
47434 * Makefile.in: Fixed list rules moved from genmk.rb.
47435 (.DELETE_ON_ERROR): New special target.
47436 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
47437
47438 * conf/i386-pc.rmk: Include conf/common.mk.
47439 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 47440 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 47441 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47442 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47443 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47444 configfile.mod, search.mod, gzio.mod and test.mod.
47445 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47446 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47447 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47448 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47449 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47450 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47451 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47452 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47453 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47454 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47455 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47456 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47457 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47458 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47459 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47460 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47461 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47462 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47463 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47464 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47465 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47466 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47467 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
47468 here...
47469 * conf/common.rmk: ... to here. New file.
47470
47471 * conf/common.mk: New file.
47472
16f820c8 474732005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
47474
47475 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
47476 (grub_script.tab.c): ... here.
47477
47478 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
47479 (grub_script.tab.c): ... here.
47480
47481 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
47482 (grub_script.tab.c): ... here.
47483
47484 * normal/command.c (grub_command_find): Fixed a memory leak of
47485 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
47486
63ba1554 474872005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47488
47489 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
47490 "@" which marks the start of a comment on ARM.
47491 (VARIABLE): Likewise.
47492
7f67dc13 474932005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47494
79bbb63f 47495 Add support for Linux/ADFS partition tables.
7f67dc13 47496
47497 * partmap/acorn.c: New file.
47498
47499 * include/grub/acorn_filecore.h: Likewise.
47500
47501 * DISTLIST: Added `partmap/acorn.c' and
47502 `include/grub/acorn_filecore.h'.
f19dbdb7 47503
7f67dc13 47504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47505 `partmap/acorn.c'.
47506 (pkgdata_MODULES): Add `acorn.mod'.
47507 (acorn_mod_SOURCES): New variable.
47508 (acorn_mod_CFLAGS): Likewise.
47509
47510 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47511 `partmap/acorn.c'.
47512 (pkgdata_MODULES): Add `acorn.mod'.
47513 (acorn_mod_SOURCES): New variable.
47514 (acorn_mod_CFLAGS): Likewise.
47515
47516 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
47517 (pkgdata_MODULES): Add `acorn.mod'.
47518 (acorn_mod_SOURCES): New variable.
47519 (acorn_mod_CFLAGS): Likewise.
47520 (acorn_mod_LDFLAGS): Likewise.
47521
47522 * include/types.h (grub_disk_addr_t): New typedef.
47523
6d099807 475242005-11-13 Marco Gerards <mgerards@xs4all.nl>
47525
47526 * geninit.sh: New file.
47527
47528 * geninitheader.sh: Likewise.
47529
47530 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
47531 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
47532 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
47533 * commands/configfile.c (grub_configfile_init)
47534 (grub_configfile_fini): Likewise.
47535 * commands/default.c (grub_default_init, grub_default_fini):
47536 Likewise.
47537 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
47538 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
47539 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
47540 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
47541 Likewise.
47542 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
47543 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
47544 Likewise.
47545 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 47546 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 47547 Likewise.
47548 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
47549 Likewise.
fe6b695a 47550 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 47551 Likewise.
47552 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
47553 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
47554 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
47555 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
47556 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
47557 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
47558 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
47559 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
47560 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
47561 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
47562 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
47563 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
47564 * partmap/amiga.c (grub_amiga_partition_map_init)
47565 (grub_amiga_partition_map_fini): Likewise.
47566 * partmap/apple.c (grub_apple_partition_map_init)
47567 (grub_apple_partition_map_fini): Likewise.
47568 * partmap/pc.c (grub_pc_partition_map_init)
47569 (grub_pc_partition_map_fini): Likewise.
47570 * partmap/sun.c (grub_sun_partition_map_init,
47571 grub_sun_partition_map_fini): Likewise.
47572 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
47573 Likewise.
47574
47575 * util/grub-emu.c: Include <grub_modules_init.h>.
47576 (main): Don't initialize and de-initialize any modules directly,
47577 use `grub_init_all' and `grub_fini_all' instead.
47578
47579 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
47580 `grub_vesafb_mod_init'.
47581 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
47582 all users.
47583 * term/i386/pc/vga.c (grub_vga_init): Renamed to
47584 `grub_vga_mod_init'. Updated all users.
47585 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 47586
6d099807 47587 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
47588 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
47589 rules.
47590
47591 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
47592 Generate a function to initialize the module in utilities.
47593 Updated all callers.
47594 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
47595 initialize the module in utilities. Updated all callers.
47596
9046bcf0 475972005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47598
47599 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
47600 escape sequence and a literal ^L to clear the screen.
47601
47602 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
47603 when returning from Open Firmware.
47604
d13ea639 476052005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47606
47607 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
47608 (grub_ofconsole_height): Likewise.
47609 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
47610 manually insert a '\n'.
47611 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
47612 `grub_ofconsole_height'. Return early if these are already set.
47613
a8fcf206 476142005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
47615
47616 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47617 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
47618 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
47619 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
47620 and `normal/script.c'.
47621 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47622 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47623 (test_mod_SOURCES): New variable.
47624 (test_mod_CFLAGS): Likewise.
47625 (test_mod_LDFLAGS): Likewise.
47626 (pkgdata_MODULES): Add `test.mod'.
47627 (grub_script.tab.c): New rule.
47628 (grub_script.tab.h): Likewise.
47629
b6b32745 476302005-11-07 Marco Gerards <mgerards@xs4all.nl>
47631
47632 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47633 `commands/test.c', `normal/execute.c', `normal/lexer.c',
47634 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47635 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47636 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47637 (test_mod_SOURCES): New variable.
47638 (test_mod_CFLAGS): Likewise.
47639 (pkgdata_MODULES): Add `test.mod'.
47640 (grub_script.tab.c): New rule.
47641 (grub_script.tab.h): Likewise.
47642
daac212a 476432005-11-06 Marco Gerards <mgerards@xs4all.nl>
47644
47645 Add initial scripting support.
47646
47647 * commands/test.c: New file.
47648 * include/grub/script.h: Likewise.
47649 * normal/execute.c: Likewise.
47650 * normal/function.c: Likewise.
47651 * normal/lexer.c: Likewise.
47652 * normal/parser.y: Likewise.
47653 * normal/script.c: Likewise.
47654
47655 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 47656
daac212a 47657 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
47658 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
47659 `normal/function.c' and `normal/script.c'.
47660 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47661 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 47662 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
47663 variables.
daac212a 47664 (pkgdata_MODULES): Add `test.mod'.
47665 (grub_script.tab.c): New rule.
47666 (grub_script.tab.h): Likewise.
47667
47668 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
47669
47670 * include/grub/normal.h (grub_test_init): New prototype.
47671 (grub_test_fini): Likewise.
f19dbdb7 47672
daac212a 47673 * normal/command.c: Include <grub/script.h>.
47674 (grub_command_execute): Rewritten.
f19dbdb7 47675
daac212a 47676 * util/grub-emu.c (main): Call `grub_test_init' and
47677 `grub_test_fini'.
47678
77500b2b 476792005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47680
47681 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
47682 to 0.
47683 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
47684 there are no pending characters.
47685
e45deb9e 476862005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47687
47688 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
47689 `grub_strndup' to drop device arguments. Replace unnecessary
47690 `grub_strndup' with `grub_strdup'.
47691
4ce32619 476922005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47693
47694 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
47695 `debug' environment variable has been set.
47696
476972005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 47698
4ce32619 47699 * Makefile.in (install-local): Use $(DATA).
47700 (uninstall): Likewise.
47701 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
47702 (sbin_UTILITIES): ... to here.
47703 (sbin_SCRIPTS): New variable.
47704 (grub_install_SOURCES): New variable.
47705 * util/powerpc/ieee1275/grub-install.in: New file.
47706 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
47707 variable.
47708 (add_segments): Call `grub_util_get_path'.
47709
25fe6f03 477102005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
47711
47712 From Timothy Baldwin:
47713 * commands/ls.c (grub_ls_list_files): Close FILE with
47714 grub_file_close.
47715 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
47716
04ccf3ec 477172005-10-24 Marco Gerards <mgerards@xs4all.nl>
47718
47719 * include/grub/parser.h: New file.
47720
47721 * kern/parser.c: Likewise.
47722
47723 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
47724 (grub_setup_SOURCES): Likewise.
47725 (grub_probefs_SOURCES): Likewise.
47726 (grub_emu_SOURCES): Likewise.
47727 (kernel_img_HEADERS): Add `parser.h'.
47728
47729 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
47730 (grub_emu_SOURCES): Add `kern/parser.c'.
47731 (grubof_SOURCES): Likewise.
47732
47733 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
47734 (grubof_SOURCES): Add `kern/parser.c'.
47735
47736 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
47737
47738 * kern/misc.c (grub_split_cmdline): Removed function.
47739
47740 * kern/rescue.c: Include <grub/parser.h>.
47741 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
47742 of `grub_split_cmdline'.
47743
47744 * normal/command.c: Include <grub/parser.h>.
47745 (grub_command_execute): Use `grub_parser_split_cmdline' instead
47746 of `grub_split_cmdline'.
47747
47748 * normal/completion.c: Include <grub/parser.h>.
47749 (cmdline_state): New variable.
47750 (iterate_dir): End the filename with a quote depending on the
47751 command line state.
47752 (get_state): new function.
47753 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
47754 split the arguments and determine the current argument. When the
47755 argument string is not quoted, escape all spaces.
47756
6d8f4b0e 477572005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
47758
47759 * normal/sparc64/setjmp.S: New file.
47760
15cf03ed 477612005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
47762
47763 * include/grub/sparc64/libgcc.h: New file.
47764 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
47765 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
47766 normal/sparc64/setjmp.c.
47767
03e8661a 477682005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
47769
47770 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
47771 * kern/sparc64/cache.S: New file.
47772 * kern/sparc64/cache.c: Removed.
47773 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
47774 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
47775 -mtune=ultrasparc.
47776 (COMMON_LDFLAGS): Add -melf64_sparc.
47777 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
47778 (grubof_SOURCES): Use cache.S instead of cache.c.
47779 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
47780 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
47781 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
47782 commented though.
47783 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
47784 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
47785 (linux_mod_CFLAGS): Commented out.
47786 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
47787 out because module isn't built.
47788 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
47789 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
47790 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
47791 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
47792 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
47793 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
47794 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
47795 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
47796 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
47797 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
47798 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47799 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47800 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
47801 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
47802
34eeec8a 478032005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
47804
47805 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
47806 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
47807 longer, because HFS should not be used on PC.
47808
708367a3 478092005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47810
47811 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
47812 consistently within the loop.
47813
6fa1251a 478142005-10-15 Marco Gerards <mgerards@xs4all.nl>
47815
47816 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
47817 directory can not be read.
47818
4801580b 478192005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47820
47821 * configure.ac (AC_INIT): Increase the version number to 1.91.
47822
47823 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
47824 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
47825 term/i386/pc/serial.c.
47826
219ad426 478272005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47828
47829 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
47830 file size must be permitted.
47831
47832 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
47833 between %ah and %al.
47834
688e5699 478352005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47836
47837 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
47838 grub_uint64_t.
47839 Call the hook with a NUL-terminated filename.
47840 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
47841 grub_cpu_to_be32.
47842
47843 * kern/term.c (cursor_state): New variable.
47844 (grub_term_set_current): Reset the cursor state on a new
47845 terminal.
47846 (grub_setcursor): Rewritten to use CURSOR_STATE.
47847 (grub_getcursor): New function.
47848
47849 * include/grub/term.h (grub_getcursor): New prototype.
47850
47851 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
47852 integers on ARM. Reported by Timothy Baldwin
47853 <T.E.Baldwin99@members.leeds.ac.uk>.
47854
bb34586c 478552005-10-11 Marco Gerards <mgerards@xs4all.nl>
47856
47857 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
47858 allocated.
47859 (grub_sfs_dir): Likewise.
47860
9a909877 478612005-10-09 Marco Gerards <mgerards@xs4all.nl>
47862
47863 Add support for the SFS filesystem.
47864
47865 * fs/sfs.c: New file.
47866
47867 * DISTLIST: Added `fs/sfs.c'.
47868
47869 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
47870 (grub_probefs_SOURCES): Likewise.
47871 (grub_emu_SOURCES): Likewise.
47872 (pkgdata_MODULES): Add `sfs.mod'.
47873 (sfs_mod_SOURCES): New variable.
47874 (sfs_mod_CFLAGS): Likewise.
47875 (sfs_mod_LDFLAGS): Likewise.
47876
47877 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
47878 (pkgdata_MODULES): Add `sfs.mod'.
47879 (sfs_mod_SOURCES): New variable.
47880 (sfs_mod_CFLAGS): Likewise.
47881
47882 * util/grub-emu.c (main): Call `grub_sfs_init' and
47883 `grub_sfs_fini'.
47884
47885 * include/grub/fs.h (grub_sfs_init): New prototype.
47886 (grub_sfs_fini): Likewise.
47887
57bdbde3 478882005-10-07 Marco Gerards <mgerards@xs4all.nl>
47889
47890 Add support for the AFFS filesystem.
47891
47892 * fs/affs.c: New file.
47893
47894 * DISTLIST: Added `fs/affs.c'.
47895
47896 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
47897 (grub_probefs_SOURCES): Likewise.
47898 (grub_emu_SOURCES): Likewise.
47899 (pkgdata_MODULES): Add `affs.mod'.
47900 (affs_mod_SOURCES): New variable.
47901 (affs_mod_CFLAGS): Likewise.
47902 (affs_mod_LDFLAGS): Likewise.
47903
47904 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
47905 (pkgdata_MODULES): Add `affs.mod'.
47906 (affs_mod_SOURCES): New variable.
47907 (affs_mod_CFLAGS): Likewise.
47908
47909 * util/grub-emu.c (main): Call `grub_affs_init' and
47910 `grub_affs_fini'.
47911
47912 * include/grub/fs.h (grub_affs_init): New prototype.
47913 (grub_affs_fini): Likewise.
47914
047b67e0 479152005-10-01 Marco Gerards <mgerards@xs4all.nl>
47916
47917 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
47918
59b8208a 479192005-10-01 Marco Gerards <mgerards@xs4all.nl>
47920
47921 * configure.ac: Accept `x86_64' as host_cpu. In that case add
47922 `-m32' to CFLAGS.
47923
47924 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
47925 linking.
f19dbdb7 47926
59b8208a 47927 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
47928 (COMMON_LDFLAGS): New variable.
47929 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
47930 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
47931 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
47932 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
47933 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
47934 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
47935 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
47936 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
47937 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
47938 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
47939 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
47940 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
47941 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
47942 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
47943 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
47944 variables.
47945 (normal_mod_ASFLAGS): Add `-m32'.
47946
47947 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
47948 (grub_host_size_t, grub_host_ssize_t): New types.
47949 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 47950 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 47951 `GRUB_HOST_SIZEOF_VOID_P'.
47952
47953 * include/grub/kernel.h (struct grub_module_header): Type of
47954 member offset changed to `grub_host_off_t'. Type of member size
47955 changed to `grub_host_size_t'.
47956 (struct grub_module_info): Type of member offset changed to
47957 `grub_host_off_t'. Type of member size changed to
47958 `grub_host_size_t'.
47959
b4093103 479602005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
47961
47962 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 47963
b4093103 47964 * kern/i386/pc/startup.S (multiboot_header): New label.
47965 (multiboot_entry): Likewise.
47966 (multiboot_trampoline): Likewise.
47967
47968 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
47969 Increased to 0x4A0.
47970
47971 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
47972 put parentheses after a question mark.
47973 [!GRUB_UTIL] (my_mod): New variable.
47974
47975 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
47976
b2499b29 479772005-09-28 Marco Gerards <mgerards@xs4all.nl>
47978
47979 Adds support for the XFS filesystem. Btrees are not supported
47980 yet.
47981
47982 * fs/xfs.c: New file.
47983
47984 * DISTLIST: Added `fs/xfs.c'.
47985
47986 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
47987 (grub_probefs_SOURCES): Likewise.
47988 (grub_emu_SOURCES): Likewise.
47989 (pkgdata_MODULES): Add `xfs.mod'.
47990 (xfs_mod_SOURCES): New variable.
47991 (xfs_mod_CFLAGS): Likewise.
47992
47993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
47994 (pkgdata_MODULES): Add `xfs.mod'.
47995 (xfs_mod_SOURCES): New variable.
47996 (xfs_mod_CFLAGS): Likewise.
47997
47998 * util/grub-emu.c (main): Call `grub_xfs_init' and
47999 `grub_xfs_fini'.
48000
48001 * include/grub/fs.h (grub_xfs_init): New prototype.
48002 (grub_xfs_fini): Likewise.
48003
f19dbdb7 48004
83d37a62 480052005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
48006
48007 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
48008 color modes, allow greater than 16 colors to be configured as
48009 a default palette.
48010
47d2d65e 480112005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
48012
48013 * normal/completion.c (complete_arguments): Add the qualifier
48014 const into OPTIONS.
48015
48016 From Omniflux <omniflux+lists@omniflux.com>:
48017 * include/grub/terminfo.h: New file.
48018 * include/grub/tparm.h: Likewise.
48019 * include/grub/i386/pc/serial.h: Likewise.
48020 * term/terminfo.c: Likewise.
48021 * term/tparm.c: Likewise.
48022 * term/i386/pc/serial.c: Likewise.
48023 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
48024 serial.mod.
48025 (terminfo_mod_SOURCES): New variable.
48026 (terminfo_mod_CFLAGS): Likewise.
48027 (serial_mod_SOURCES): Likewise.
48028 (serial_mod_CFLAGS): Likewise.
48029
48b671ff 480302005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
48031
48032 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
48033 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
48034 and kern/powerpc/ieee1275/cmain.c, respectively.
48035
48036 * boot/powerpc/ieee1275/crt0.S: Moved to ...
48037 * kern/powerpc/ieee1275/crt0.S: ... here.
48038
48039 * boot/powerpc/ieee1275/cmain.c: Moved to ...
48040 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 48041
48b671ff 48042 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
48043 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
48044 instead of boot/powerpc/ieee1275/crt0.S and
48045 boot/powerpc/ieee1275/cmain.c, respectively.
48046
48047 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
48048 sectors. It was not used anyway.
48049
09fc77a7 480502005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48051
48052 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
48053 `unused parameter' warning.
48054
003789c7 480552005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48056
48057 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
48058 function.
48059 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
48060 getcharwidth.
48061
67f44c86 480622005-08-28 Marco Gerards <metgerards@student.han.nl>
48063
48064 * include/grub/normal.h (enum grub_completion_type): Added
48065 `GRUB_COMPLETION_TYPE_ARGUMENT'.
48066
48067 * normal/cmdline.c (print_completion): Handle
48068 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
48069 * normal/menu_entry.c (store_completion): Likewise.
48070
48071 * normal/completion.c (complete_arguments): New function.
48072 (grub_normal_do_completion): Call `complete_arguments' when the
48073 current words start with a dash.
48074
0b5abe02 480752005-08-27 Marco Gerards <metgerards@student.han.nl>
48076
48077 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
48078 `gzio.mod' instead of `io.mod').
48079
d9864ee1 480802005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
48081
48082 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
48083 (DISTDIRS): Added io and video.
48084 Rewrite the search routine to make an output consistently.
48085
48086 * DISTLIST: Added conf/sparc64-ieee1275.mk,
48087 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
48088 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
48089 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
48090 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
48091 util/powerpc/ieee1275/misc.c.
f19dbdb7 48092
d9864ee1 48093 * include/grub/gzio.h: New file.
48094 * io/gzio.c: Likewise.
f19dbdb7 48095
d9864ee1 48096 * kern/file.c (grub_file_close): Call grub_device_close only if
48097 FILE->DEVICE is not NULL.
48098
48099 * include/grub/mm.h [!NULL] (NULL): New macro.
48100
48101 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
48102
48103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
48104 (pkgdata_MODULES): Added gzio.mod.
48105 (gzio_mod_SOURCES): New variable.
48106 (gzio_mod_CFLAGS): Likewise.
48107
48108 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
48109 (pkgdata_MODULES): Added gzio.mod.
48110 (gzio_mod_SOURCES): New variable.
48111 (gzio_mod_CFLAGS): Likewise.
48112
48113 * commands/cat.c: Include grub/gzio.h.
48114 (grub_cmd_cat): Use grub_gzfile_open instead of
48115 grub_file_open.
f19dbdb7 48116
d9864ee1 48117 * commands/cmp.c: Include grub/gzio.h.
48118 (grub_cmd_cmp): Use grub_gzfile_open instead of
48119 grub_file_open.
48120
48121 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
48122 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
48123 grub_file_open.
48124 (grub_rescue_cmd_module): Likewise.
48125
fa46f4b5 481262005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48127
48128 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
48129 kern/sparc64/ieee1275/init.c because it contains _start.
48130 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
48131
e9211b5d 481322005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48133
48134 * configure.ac: Add support for sparc64 host with ieee1275
48135 firmware.
48136 * configure: Generated from configure.ac.
48137 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
48138 instead of int.
48139 (grub_ofdisk_read): Likewise.
48140 (grub_ofdisk_open): Use %p to print pointer values, and cast the
48141 pointers as (void *) to remove a warning.
48142 (grub_ofdisk_close): Likewise.
48143 (grub_ofdisk_read): Likewise.
48144 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
48145 returns, so make it return void to remove a warning.
48146 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
48147 Corresponding prototype change.
48148 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
48149 values, and cast the pointers as (void *) to remove a warning.
48150 (grub_mm_dump): Likewise.
48151 * conf/sparc64-ieee1275.mk: New file.
48152 * conf/sparc64-ieee1275.rmk: Likewise.
48153 * include/grub/sparc64/setjmp.h: Likewise.
48154 * include/grub/sparc64/types.h: Likewise.
48155 * include/grub/sparc64/ieee1275/console.h: Likewise.
48156 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48157 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48158 * include/grub/sparc64/ieee1275/time.h: Likewise.
48159 * kern/sparc64/cache.c: Likewise.
48160 * kern/sparc64/dl.c: Likewise.
48161 * kern/sparc64/ieee1275/init.c: Likewise.
48162 * kern/sparc64/ieee1275/openfw.c: Likewise.
48163
385c6a92 481642005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48165
48166 * util/console.c (grub_ncurses_putchar): If C is greater than
48167 0x7f, set C to a question mark.
48168 (grub_ncurses_getcharwidth): New function.
48169 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
48170 getcharwidth.
48171
48172 * normal/menu.c (print_entry): Made aware of Unicode. First,
48173 convert TITLE to UCS-4, and predict the cursor position by
48174 grub_getcharwidth.
48175
48176 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
48177 const to SRC.
48178 * kern/misc.c (grub_utf16_to_utf8): Likewise.
48179
16ccb8b1 481802005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48181
48182 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
48183 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48184 grub_strcat.
48185
48186 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
48187 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48188 grub_strcpy and grub_strlen. Take it into account that a space
48189 character is inserted as a delimiter.
48190
6a85ce79 481912005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48192
48193 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 48194 invalid magic in the error.
6a85ce79 48195
48196 * commands/search.c: New file.
f19dbdb7 48197
6a85ce79 48198 * util/grub-emu.c (main): Call grub_search_init and
48199 grub_search_fini.
48200
48201 * kern/rescue.c (grub_rescue_print_disks): Removed.
48202 (grub_rescue_print_devices): New function.
48203 (grub_rescue_cmd_ls): Use grub_device_iterate with
48204 grub_rescue_print_devices instead of grub_disk_dev_iterate with
48205 grub_rescue_print_disks.
48206
48207 * kern/partition.c (grub_partition_iterate): Return the result of
48208 PARTMAP->ITERATE instead of GRUB_ERRNO.
48209
48210 * kern/device.c: Include grub/partition.h.
48211 (grub_device_iterate): New function.
48212
48213 * include/grub/partition.h (grub_partition_iterate): Return int
48214 instead of grub_err_t.
48215
48216 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
48217 prototype.
48218 [GRUB_UTIL] (grub_search_fini): Likewise.
48219
48220 * include/grub/device.h (grub_device_iterate): New prototype.
48221
48222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48223 commands/search.c.
48224 (pkgdata_MODULES): Added search.mod.
48225 (search_mod_SOURCES): New variable.
48226 (search_mod_CFLAGS): Likewise.
48227
48228 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
48229 (pkgdata_MODULES): Added search.mod.
48230 (search_mod_SOURCES): New variable.
48231 (search_mod_CFLAGS): Likewise.
48232
48233 * commands/ls.c (grub_ls_list_disks): Renamed to ...
48234 (grub_ls_list_devices): ... this, and use grub_device_iterate.
48235 All callers changed.
48236
48237 * DISTLIST: Added commands/search.c.
48238
ef095434 482392005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48240
48241 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
48242 conversion.
48243 (grub_getcharwidth): New function.
48244
48245 * kern/misc.c (grub_utf8_to_ucs4): New function.
48246
48247 * include/grub/term.h (struct grub_term): Added a new member
48248 "getcharwidth".
48249 (grub_getcharwidth): New prototype.
48250
48251 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
48252
48253 * term/i386/pc/console.c (map_char): New function. Segregated from
48254 grub_console_putchar.
48255 (grub_console_putchar): Use map_char.
48256 (grub_console_getcharwidth): New function.
48257 (grub_console_term): Specified grub_console_getcharwidth as
48258 getcharwidth.
48259
48260 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
48261 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
48262
48263 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
48264 GRUB_ERRNO.
48265 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
48266 on grub_strtoul completely.
48267 (write_char): Declare local variables in the beginning of the
48268 function.
48269 (grub_vesafb_getcharwidth): New function.
48270 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
48271 getcharwidth.
48272
1f0a95e4 482732005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
48274
48275 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
48276 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
48277 commands/i386/pc/vbetest.c.
48278
48279 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
48280 call grub_vbe_get_controller_info again, because the returned
48281 information is volatile.
48282 (grub_vbe_set_video_mode): Mostly rewritten.
48283 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
48284 grub_vbe_status_t correctly.
48285 (grub_vbe_get_video_mode_info): Likewise.
48286 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
48287 several if statements.
48288
48289 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
48290 * commands/i386/pc/vbeinfo.c: ... this.
48291
48292 * commands/i386/pc/vbe_test.c: Renamed to ...
48293 * commands/i386/pc/vbetest.c: ... this.
48294
48295 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
48296 ...
48297 (grub_cmd_vbeinfo): ... this. Save video modes before
48298 iterating. Skip a video mode, if it is not available, not enough
48299 information is given or it is monochrome. Show the memory
48300 model. Leave the interpretation of MODEVAR to grub_strtoul
48301 completely.
48302 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
48303 (GRUB_MOD_FINI): Likewise.
48304
48305 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
48306 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
48307 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
48308 duplicated grub_env_get. Leave the interpretation of MODEVAR to
48309 grub_strtoul completely.
48310 (real2pm): Removed.
48311 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
48312 (GRUB_MOD_FINI): Likewise.
48313
48314 * normal/misc.c: Include grub/mm.h.
48315
48316 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
48317 vbe_list_modes with vbetest.mod and vbeinfo.mod.
48318 (vbe_list_modes_mod_SOURCES): Removed.
48319 (vbe_list_modes_mod_CFLAGS): Likewise.
48320 (vbe_test_mod_SOURCES): Likewise.
48321 (vbe_test_mod_CFLAGS): Likewise.
48322 (vbeinfo_mod_SOURCES): New variable.
48323 (vbeinfo_mod_CFLAGS): Likewise.
48324 (vbetest_mod_SOURCES): Likewise.
48325 (vbetest_mod_CFLAGS): Likewise.
48326
992ffbbe 483272005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
48328
48329 * normal/misc.c: New file.
48330
48331 * DISTLIST: Added normal/misc.c.
f19dbdb7 48332
992ffbbe 48333 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
48334 DISK to HOOK. Call HOOK with DISK.
48335 * partmap/apple.c (apple_partition_map_iterate): Likewise.
48336 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48337 * partmap/sun.c (sun_partition_map_iterate): Likewise.
48338
48339 * normal/menu_entry.c (struct screen): Added a new member
48340 "completion_shown".
48341 (completion_buffer): New global variable.
48342 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
48343 (store_completion): New function.
48344 (complete): Likewise.
48345 (clear_completions): Likewise.
48346 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
48347 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
48348 a tab, call complete.
48349
48350 * normal/completion.c (disk_dev): Removed.
48351 (print_simple_completion): Likewise.
48352 (print_partition_completion): Likewise.
48353 (print_func): New global variable.
48354 (add_completion): Do not take the arguments WHAT or PRINT any
48355 longer. Added a new argument TYPE. Instead of printing directly,
48356 call PRINT_FUNC if not NULL.
48357 All callers changed.
48358 (complete_device): Use a local variable DEV instead of
48359 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
48360 (grub_normal_do_completion): Take a new argument HOOK. Do not
48361 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
48362 empty string, return NULL instead.
48363 All callers changed.
48364
48365 * normal/cmdline.c (print_completion): New function.
48366
48367 * kern/partition.c (grub_partition_iterate): Add an argument DISK
48368 to HOOK.
48369 All callers changed.
48370
48371 * kern/disk.c (grub_print_partinfo): Removed.
48372
48373 * include/grub/partition.h (struct grub_partition_map): Add a new
48374 argument DISK into HOOK of ITERATE.
48375 (grub_partition_iterate): Add a new argument DISK to HOOK.
48376
48377 * include/grub/normal.h (enum grub_completion_type): New enum.
48378 (grub_completion_type_t): New type.
48379 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
48380 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
48381 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
48382 (GRUB_COMPLETION_TYPE_FILE): Likewise.
48383 (grub_normal_do_completion): Added a new argument HOOK.
48384 (grub_normal_print_device_info): New prototype.
48385
48386 * include/grub/disk.h (grub_print_partinfo): Removed.
48387
48388 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
48389 (normal_mod_SOURCES): Likewise.
48390 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48391 (normal_mod_SOURCES): Likewise.
48392
48393 * commands/ls.c (grub_ls_list_disks): Use
48394 grub_normal_print_device_info instead of grub_print_partinfo. Free
48395 PNAME.
48396 (grub_ls_list_files): Use grub_normal_print_device_info instead of
48397 duplicating the code.
48398
0bd41162 483992005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48400
48401 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 48402 follow GCS more precisely.
48403 * commands/i386/pc/vbe_test.c: Likewise.
48404 * include/grub/i386/pc/vbe.h: Likewise.
48405 * term/i386/pc/vesafb.c: Likewise.
48406 * video/i386/pc/vbe.c: Likewise.
0bd41162 48407
6323696a 484082005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48409
48410 * DISTLIST: Added term/i386/pc/vesafb.c
48411 DISTLIST: Added video/i386/pc/vbe.c
48412 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
48413 DISTLIST: Added commands/i386/pc/vbe_test.c.
48414 * commands/i386/pc/vbe_list_modes.c: New file.
48415 * commands/i386/pc/vbe_test.c: Likewise.
48416 * term/i386/pc/vesafb.c: Likewise.
48417 * video/i386/pc/vbe.c: Likewise.
48418 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
48419 (grub_vbe_probe) Added prototype.
48420 (grub_vbe_set_video_mode) Likewise.
48421 (grub_vbe_get_video_mode) Likewise.
48422 (grub_vbe_get_video_mode_info) Likewise.
48423 (grub_vbe_set_pixel_rgb) Likewise.
48424 (grub_vbe_set_pixel_index) Likewise.
48425 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
48426 (pkgdata_MODULES): Added vesafb.mod.
48427 (pkgdata_MODULES): Added vbe_list_modes.mod.
48428 (pkgdata_MODULES): Added vbe_test.mod.
48429 (vbe_mod_SOURCES): Added.
48430 (vbe_mod_CFLAGS): Likewise.
48431 (vesafb_mod_SOURCES): Likewise.
48432 (vesafb_mod_CFLAGS): Likewise.
48433 (vbe_list_modes_mod_SOURCES): Likewise.
48434 (vbe_list_modes_mod_CFLAGS): Likewise.
48435 (vbe_test_mod_SOURCES): Likewise.
48436 (vbe_test_mod_CFLAGS): Likewise.
48437
0a74e62f 484382005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
48439
0a74e62f 48440 * normal/command.c (grub_command_execute): If INTERACTIVE is
48441 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
48442 CMDLINE. Disable the pager if INTERACTIVE is true.
48443 All callers are changed.
48444
48445 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
48446 before reading a config file.
48447 * normal/main.c (read_config_file): Even if a command is not
48448 found, register it if it is within an entry.
48449
48450 * util/grub-emu.c: Include sys/types.h and unistd.h.
48451 (options): Added --hold.
48452 (struct arguments): Added a new member "hold".
48453 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
48454 missing.
48455 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
48456 cleared by a debugger, if it is not zero.
48457
48458 * include/grub/normal.h (grub_command_execute): Add an argument
48459 INTERACTIVE.
48460
e51f85ae 484612005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
48462
48463 * DISTLIST: Added include/grub/i386/pc/vbe.h.
48464
e9c6f39b 484652005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
48466
48467 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
48468 program with another one, because the old one didn't detect a bug
48469 in gcc-3.4. Always use regparm 2, because the new test is still
48470 not enough for gcc-4.0. Someone must investigate a simple test
48471 case which detects a bug in gcc-4.0.
48472
8de3495c 484732005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
48474
48475 * DISTLIST: Added normal/completion.c.
48476
48477 * normal/completion.c: New file.
f19dbdb7 48478
8de3495c 48479 * term/i386/pc/console.c (grub_console_getwh): New function.
48480 (grub_console_term): Assign grub_console_getwh to getwh.
48481
48482 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
48483 function is defined in normal/completion.c as
48484 grub_normal_do_completion.
48485 (grub_cmdline_get): Use grub_normal_do_completion instead of
48486 grub_tab_complete.
48487
48488 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
48489 returns non-zero, otherwise return 0.
48490 (grub_partition_iterate): First, probe the partition map. Then,
48491 call ITERATE only for this partition map.
48492
48493 * kern/misc.c (grub_strncmp): Rewritten.
48494
48495 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
48496 returns non-zero. Otherwise return 0.
48497
48498 * include/grub/partition.h (grub_partition_map_iterate): Return
48499 int instead of void.
48500
48501 * include/grub/normal.h (grub_normal_do_completion): New prototype.
48502
48503 * include/grub/misc.h (grub_strncmp): Change the type of N to
48504 grub_size_t.
48505
48506 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
48507 of void.
48508
48509 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 48510 unsigned explicitly before comparing it with I.
8de3495c 48511
48512 * kern/main.c (grub_env_write_root): Add the attribute unused into
48513 VAR.
48514
48515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48516 normal/completion.c.
48517 (normal_mod_SOURCES): Likewise.
48518 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48519 (normal_mod_SOURCES): Likewise.
48520
48521 * normal/command.c (grub_iterate_commands): If ITERATE returns
48522 non-zero, return one immediately.
48523
e85e144b 485242005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
48525
48526 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
48527 * kern/i386/pc/startup.S: Updated Global Descriptor table's
48528 descriptions.
48529 (grub_vbe_get_controller_info): New function.
48530 (grub_vbe_get_mode_info): Likewise.
48531 (grub_vbe_set_mode): Likewise.
48532 (grub_vbe_get_mode): Likewise.
48533 (grub_vbe_set_memory_window): Likewise.
48534 (grub_vbe_get_memory_window): Likewise.
48535 (grub_vbe_set_scanline_length): Likewise.
48536 (grub_vbe_get_scanline_length): Likewise.
48537 (grub_vbe_set_display_start): Likewise.
48538 (grub_vbe_get_display_start): Likewise.
48539 (grub_vbe_set_palette_data): Likewise.
48540 * include/grub/i386/pc/vbe.h: New file.
48541
c46153d2 485422005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48543
48544 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48545 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
48546 * DISTLIST: Likewise.
48547 * kern/ieee1275/of.c: Moved to ...
48548 * kern/ieee1275/ieee1275.c: ... here.
48549
0cb90c45 485502005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48551
48552 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
48553 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
48554 Pass 0 as `end' parameter to grub_strtoul().
48555
a19fb360 485562005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48557
48558 * include/grub/powerpc/ieee1275/console.h: Do not include
48559 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
48560 ifdef.
48561 (grub_console_cur_color): Remove i386-specific prototype.
48562 (grub_console_real_putchar): Likewise.
48563 (grub_console_checkkey): Likewise.
48564 (grub_console_getkey): Likewise.
48565 (grub_console_getxy): Likewise.
48566 (grub_console_gotoxy): Likewise.
48567 (grub_console_cls): Likewise.
48568 (grub_console_setcursor): Likewise.
48569 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
48570 Include <grub/machine/console.h>.
48571 * term/ieee1275/ofconsole.c: Likewise.
48572
4ac9bd04 485732005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
48574
48575 * Makefile.in (LIBLZO): New variable.
48576
48577 * configure.ac: Check for LZO version 2.
48578
48579 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
48580 lzo/lzo1x.h instead of lzo1x.h.
48581
48582 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
48583 of -llzo.
48584
48585 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
48586 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
48587
48588 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
48589 copying the data from PARTITION to P.
48590
f4917dfd 485912005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48592
48593 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
48594 negative, unload the module.
48595
48596 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
48597 map is "pc_partition_map" but not "pc".
48598 (usage): Fix the description. The options are --boot-image and
48599 --core-image but not --boot-file or --core-file.
48600 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
48601 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
48602 DEFAULT_DIRECTORY.
48603
48604 * util/i386/pc/grub-install.in: Do not specify --boot-file or
48605 --core-file. Specify INSTALL_DEVICE as an argument.
48606
48607 * util/console.c: Include config.h.
48608 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
48609 [HAVE_NCURSES_H]: Include ncurses.h.
48610 [HAVE_CURSES_H]: Include curses.h.
48611 [!A_NORMAL] (A_NORMAL): Defined as zero.
48612 [!A_STANDOUT] (A_STANDOUT): Likewise.
48613
48614 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
48615 -lncurses.
48616 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
48617
48618 * configure.ac: Check for curses libraries and headers.
48619
48620 * Makefile.in (LIBCURSES): New variable.
48621
48622 * genmk.rb (Script::rule): Set the executable bits.
48623
48624 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
48625 name of the PC partition map is "pc_partition_map" but not "pc".
48626
0e143073 486272005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48628
48629 * util/i386/pc/grub-install.in (grub_probefs): New variable.
48630 (modules): Likewise.
48631 (usage): Added descriptions for --modules and --grub-probefs.
48632 Handle --modules and --grub-probefs. Save the arguments in MODULES
48633 and GRUB_PROBEFS, respectively.
48634 Auto-detect a filesystem module against GRUBDIR. If the result is
48635 empty and modules are not specified explicitly, abort the
48636 installation. Add the result to MODULES.
48637
48638 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
48639 disk/powerpc/ieee1275/ofdisk.c,
48640 include/grub/powerpc/ieee1275/init.h and
48641 term/powerpc/ieee1275/ofconsole.c.
48642 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
48643 term/ieee1275/ofconsole.c.
48644
48645 * include/grub/powerpc/ieee1275/console.h: Resurrected.
48646
48647 * COPYING: Upgraded to the latest version. Only the address of the
48648 FSF office has changed.
f19dbdb7 48649
efd6e6d5 486502005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48651
48652 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48653 kern/ieee1275.c with kern/ieee1275/of.c.
48654
48655 * kern/ieee1275.c: Moved to ...
48656 * kern/ieee1275/of.c: ... here.
48657
8ceafda2 486582005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
48659
48660 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 48661 readability.
8ceafda2 48662
48663 * config.guess: Updated to the latest version from gnulib.
48664 * config.sub: Likewise.
48665 * install.sh: Likewise.
48666 * mkinstalldirs: Likewise.
48667
48668 * include/grub/console.h: Removed. This file is arch-specific. Do
48669 not put this in include/grub.
48670
48671 * include/grub/i386/pc/console.h: Resurrected.
48672
48673 * util/console.c: Include grub/machine/console.h instead of
48674 grub/console.h.
48675 * util/grub-emu.c: Likewise.
48676
267f6cd9 486772005-08-04 Marco Gerards <metgerards@student.han.nl>
48678
48679 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
48680 hardcoded value.
f19dbdb7 48681
267f6cd9 48682 From Vincent Pelletier <subdino2004@yahoo.fr>
48683 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
48684 Redefined to use grub_getwh.
48685 (grub_term): New member named getwh.
48686 (grub_getwh): New prototype.
48687 * kern/term.c (grub_getwh): New function.
48688 * term/i386/pc/console.c (grub_console_getwh): New function.
48689 (grub_console_term): New member `getwh'.
48690 * term/i386/pc/vga.c (grub_vga_getwh): New function.
48691 (grub_vga_term): New member `getwh'.
0b5abe02 48692 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 48693 grub_ssize_t.
48694 (grub_ofconsole_getw): New function.
48695 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
48696 (grub_ofconsole_term): New field named getwh and new initial
48697 value.
48698
3be7266d 486992005-08-03 Hollis Blanchard <hollis@penguinppc.org>
48700
48701 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
48702 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
48703 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
48704 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
48705 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
48706 of <grub/machine/ieee1275.h>.
48707 * commands/ieee1275/reboot.c: Likewise.
48708 * boot/powerpc/ieee1275/ieee1275.c: Move ...
48709 * kern/ieee1275.c: ... to here. All users updated. Change all
48710 parameter structs to use new type `grub_ieee1275_cell_t'.
48711 * term/powerpc/ieee1275/ofconsole.c: Move ...
48712 * term/ieee1275/ofconsole.c: ... to here. All users updated.
48713 * disk/powerpc/ieee1275/ofdisk.c: Move ...
48714 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
48715 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
48716 to return int.
48717 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
48718 Remove unused prototypes. All users updated.
48719 * include/grub/powerpc/ieee1275/console.h: Removed.
48720 * include/grub/powerpc/ieee1275/ieee1275.h: Define
48721 `grub_ieee1275_cell_t'.
48722 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
48723 Cast comparisons with -1 to the correct type.
48724 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
48725 type to match `grub_ieee1275_entry_fn'.
48726
8b5f3938 487272005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
48728
48729 * DISTLIST: Added util/i386/pc/grub-probefs.c.
48730
48731 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
48732 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
48733 partmap/sun.c.
48734 (grub_probefs_SOURCES): New variable.
48735
48736 * util/i386/pc/grub-probefs.c: New file.
48737
48738 * util/i386/pc/grub-setup.c (main): Call
48739 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
48740 grub_hfs_init and grub_jfs_init to initialize the system. Call
48741 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
48742 grub_pc_partition_map_fini to finish the system.
48743
ea409713 487442005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
48745
48746 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
48747 function.
48748 (grub_multiboot_load_elf32): Likewise.
48749 (grub_multiboot_is_elf64): Likewise.
48750 (grub_multiboot_load_elf64): Likewise.
48751 (grub_multiboot_load_elf): Likewise.
48752 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
48753 an ELF32 or ELF64 file.
48754 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
48755
48756 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
48757 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
48758 NULL before calling FS->LABEL.
48759 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
48760 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
48761 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
48762 before calling FS->LABEL.
48763
141a288b 487642005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
48765
48766 * util/i386/pc/grub-install.in (datadir): New variable.
48767 (libdir): Removed.
48768 (pkgdatadir): New variable.
48769 (pkglibdir): Removed.
48770
0d5f8a54 487712005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
48772
48773 * DISTLIST: Added util/i386/pc/grub-install.in.
48774
48775 * util/i386/pc/grub-install.in: New file.
48776
48777 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
48778 (grub_install_SOURCES): Likewise.
48779
48780 * genmk.rb: Added support for scripts.
48781 (Script): New class.
48782 (scripts): New variable.
48783
48784 * Makefile.in (install-local): Install sbin_SCRIPTS by
48785 INSTALL_SCRIPT.
48786 (uninstall): Remove sbin_SCRIPTS.
48787
48788 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
48789 device, try to get a GRUB device by
48790 grub_util_biosdisk_get_grub_dev.
48791 Free DEST_DEV.
48792
48793 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
48794 description for --device-map.
48795
5f968e1e 487962005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
48797
48798 Change the semantics of variable hooks. They now return strings
48799 instead of error values.
f19dbdb7 48800
5f968e1e 48801 * util/i386/pc/grub-setup.c: Include grub/env.h.
48802 (setup): Use grub_device_set_root instead of grub_env_set.
48803
48804 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
48805 grub_env_get instead of grub_device_set_root and
48806 grub_device_get_root, respectively.
48807
48808 * kern/main.c (grub_env_write_root): New function.
48809 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
48810 grub_env_set instead of grub_device_set_root.
48811
48812 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
48813 many variables.
48814 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
48815 rather than calling ENV->WRITE_HOOK afterwards.
48816 (grub_env_get): Return the result of ENV->READ_HOOK rather than
48817 passing a pointer of a pointer.
48818 (grub_register_variable_hook): Change the types of "read_hook" and
48819 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
48820 respectively.
48821 Allocate the default empty string on the heap, because this string
48822 may be freed later.
48823
48824 * kern/device.c: Include grub/env.h.
48825 (grub_device_set_root): Removed.
48826 (grub_device_get_root): Likewise.
48827 (grub_device_open): Use grub_env_get instead of
48828 grub_device_get_root.
48829
48830 * include/grub/env.h (grub_env_read_hook_t): New type.
48831 (grub_env_write_hook_t): Likewise.
48832 (grub_env_var): Change the types of "read_hook" and "write_hook"
48833 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
48834 (grub_register_variable_hook): Likewise.
48835
48836 * include/grub/device.h (grub_device_set_root): Removed.
48837 (grub_device_set_root): Likewise.
48838
48839 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
48840 make sure that DIRNAME terminates with '/', so that
48841 grub_fat_find_dir will fail if PATH is not a directory.
48842
48843 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
48844 from DIRNAME.
48845 Use the qualifier auto for print_files and print_files_long.
48846 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
48847 as a regular file.
48848 Put a newline only if there is no error.
48849 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
48850 used.
48851
896f0afd 488522005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
48853
48854 * kern/partition.c (grub_partition_probe): Initialize PART to
48855 NULL. Otherwise, when no partition map is registered, this returns
48856 a garbage.
48857
b28b81b2 488582005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
48859
48860 * partmap/apple.c (apple_partition_map_iterate): Check if POS
48861 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
48862 valid.
48863
5f3607e0 488642005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
48865
48866 * commands/ls.c (grub_ls_list_disks): Print the filesystem
48867 information on each device, if it does not have partitions. Print
48868 "Device" instead of "Disk", because this function is not specific
48869 to disk devices.
48870
48871 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
48872 static to ensure that it is put on the memory rather than a
48873 register.
48874
502c87e8 488752005-07-17 Yoshinori Okuji <okuji@enbug.org>
48876
48877 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
48878 (grub_cat_init): Likewise.
48879 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
48880 (options): Likewise.
48881 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
48882 (grub_configfile_init): Likewise.
48883 * font/manager.c (GRUB_MOD_INIT): Likewise.
48884 * commands/help.c (GRUB_MOD_INIT): Likewise.
48885 (grub_help_init): Likewise.
48886 * normal/command.c (grub_command_init): Likewise.
48887 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
48888 * disk/loopback.c (grub_loop_init): Likewise.
48889 (GRUB_MOD_INIT): Likewise.
48890 * commands/ls.c (grub_ls_init): Likewise.
48891 (GRUB_MOD_INIT): Likewise.
48892 (options): Likewise.
48893 * commands/boot.c (grub_boot_init): Likewise.
48894 (GRUB_MOD_INIT): Likewise.
48895 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
48896 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
48897 (GRUB_MOD_INIT): Likewise.
48898 * commands/cmp.c (grub_cmp_init): Likewise.
48899 (GRUB_MOD_INIT): Likewise.
48900
48901 * normal/arg.c: Use <> instead of "" to include header files.
48902 (SHORT_ARG_HELP): New macro.
48903 (SHORT_ARG_USAGE): Likewise.
48904 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
48905 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
48906 descriptions.
48907 (find_short): Check if C is 'h' or 'u' explicitly.
48908 (grub_arg_show_help): Use space characters instead of tabs. Treat
48909 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
48910 are shown with --help and --usage only if they are not used for
48911 the command itself.
48912 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
48913 'h' and 'u'.
48914
48915 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
48916 const into "longarg". Change the type of "shortarg" to int.
48917
f806d18e 489182005-07-17 Yoshinori Okuji <okuji@enbug.org>
48919
48920 * boot/i386/pc/boot.S (boot_drive_check): New label.
48921
48922 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
48923 macro.
48924
48925 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
48926 which do not pass a boot drive correctly. Copied from GRUB Legacy.
48927
e293232b 489282005-07-17 Yoshinori Okuji <okuji@enbug.org>
48929
48930 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
48931 When turning off Gate A20, skip the check and return immediately,
48932 because this is not fatal usually.
48933
ebedfd00 489342005-07-17 Yoshinori Okuji <okuji@enbug.org>
48935
48936 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
48937 be 0x7C00 instead of 0x8000.
48938
48939 * boot/i386/pc/pxeboot.S: Rewritten.
48940
48941 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
48942 EXT_C.
48943 (gate_a20_check_state): Read a byte from 0x108000. Invert the
48944 result.
48945
654fc59f 489462005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
48947
48948 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
48949 robustness. This routine now supports a BIOS call and System
48950 Control Port A to modify the gate A20.
48951
48952 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48953 Increased to 0x440.
48954
09f9923f 489552005-07-12 Hollis Blanchard <hollis@penguinppc.org>
48956
48957 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
48958 device path and resulting ihandle.
48959 (grub_ofdisk_close): dprintf the ihandle being closed.
48960 (grub_ofdisk_read): dprintf function parameters.
48961 * kern/mm.c (grub_mm_init_region): Likewise.
48962 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
48963 (grub_linux_boot): dprintf the Linux entry point, initrd address and
48964 size, and boot arguments.
48965 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
48966 before loading into memory.
48967 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
48968 before loading into memory.
48969
7ef504d8 489702005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
48971
48972 * kern/mm.c: Added much documentation.
48973 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
48974 8, set to 5 instead of 8.
48975
e0f050c2 489762005-07-10 Yoshinori Okuji <okuji@enbug.org>
48977
48978 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
48979
48980 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
48981 (grub_mkdevicemap_SOURCES): New variable.
48982
48983 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
48984 lib/device.c of GRUB Legacy.
48985
7224189a 489862005-07-10 Yoshinori Okuji <okuji@enbug.org>
48987
48988 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
48989 instead of PATH is NULL.
48990
68c864eb 489912005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
48992
48993 * commands/cmp.c (BUFFER_SIZE): New macro.
48994 (grub_cmd_cmp): Close the right file at the right time. Compare
48995 only data just read. Don't report files of different size as
48996 identical. Dynamically allocate buffers. Move variable
48997 declarations at the beginning of function.
48998
e6f3e614 489992005-07-09 Yoshinori Okuji <okuji@enbug.org>
49000
49001 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
49002 reverse.
49003
f8f1559a 490042004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
49005
49006 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
49007 when backspace is pressed at beginning of line.
49008
39c9d41d 490092005-07-03 Yoshinori Okuji <okuji@enbug.org>
49010
49011 * DISTLIST: Added genfslist.sh.
49012
49013 * normal/main.c (fs_module_list): New variable.
49014 (autoload_fs_module): New function.
49015 (read_fs_list): Likewise.
49016 (grub_normal_execute): Call read_fs_list.
49017
49018 * kern/fs.c (grub_fs_autoload_hook): New variable.
49019 (grub_fs_probe): Added support for auto-loading.
49020
49021 * include/grub/normal.h (struct grub_fs_module_list): New struct.
49022 (grub_fs_module_list_t): New type.
49023
49024 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
49025 (grub_fs_autoload_hook): New prototype.
49026
49027 * genfslist.sh: New file.
f19dbdb7 49028
39c9d41d 49029 * genmk.rb: Added a rule to generate a filesystem list.
49030
121c1d83 490312005-06-30 Marco Gerards <metgerards@student.han.nl>
49032
49033 * configure.ac: Fix the test for cross-compiling.
49034
49035 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
49036 define GRUB_UTIL anymore.
49037
49038 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
49039 so this function works on other systems than just big endian.
49040 (load_modules): Likewise.
49041 (add_segments): Likewise.
49042
e75d76e1 490432005-06-23 Hollis Blanchard <hollis@penguinppc.org>
49044
49045 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
49046 contains `l' modifier, get a long from va_arg().
49047
50b5a0a7 490482005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
49049
49050 * kern/mm.c (grub_free): If the next free block which is being
49051 merged is the first free block, set the first block to the block
49052 being freed.
49053 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
49054
89371b20 490552005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49056
49057 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
49058 `grub_ieee1275_chosen'.
49059
168d6e58 490602005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49061
49062 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
49063 (grub_ieee1275_chosen): New variable.
49064 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
49065 `chosen'.
49066 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
49067 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49068 Rename first argument to `phandle' for consistency.
49069 (grub_ieee1275_get_property_length): Likewise.
49070 (grub_ieee1275_next_property): Likewise. Change type of first argument
49071 to grub_ieee1275_phandle_t.
49072 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
49073 Move export next to declaration.
49074 (grub_ieee1275_chosen): New variable.
49075 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
49076 Correct cosmetic typo.
49077 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
49078 `grub_ieee1275_chosen'.
49079 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
49080 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
49081 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
49082 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
49083 `grub_ieee1275_chosen'.
49084
ca5baa3f 490852005-05-10 Hollis Blanchard <hollis@penguinppc.org>
49086
49087 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
49088 /chosen/bootargs.
49089 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
49090 /chosen/bootargs as "variable=value" pairs.
49091
708b345f 490922005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
49093
49094 * include/grub/misc.h (grub_dprintf): New macro.
49095 (grub_real_dprintf): New prototype.
49096 (grub_strword): Likewise.
49097 (grub_iswordseparator): Likewise.
49098 * kern/misc.c (grub_real_dprintf): New function.
49099 (grub_strword): Likewise.
49100 (grub_iswordseparator): Likewise.
49101
f4c5e67c 491022005-04-30 Hollis Blanchard <hollis@penguinppc.org>
49103
49104 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
49105 (roundup): Remove macro.
49106 (grub_ieee1275_flags): Make static.
49107 (grub_ieee1275_realmode): Remove.
49108 (grub_ieee1275_test_flag): New function.
49109 (grub_ieee1275_set_flag): Likewise.
49110 (find_options): Rename to `grub_ieee1275_find_options'; update
49111 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
49112 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
49113 (cmain): New prototype.
49114 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
49115 `grub_ieee1275_flags' directly.
49116 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
49117 machine/biosdisk.h.
49118 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
49119 Don't include grub/machine/init.h.
49120 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
49121 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49122 Remove prototype.
49123 (grub_ieee1275_realmode): Likewise.
49124 (grub_ieee1275_flag): New enum.
49125 (grub_ieee1275_test_flag): New prototype.
49126 (grub_ieee1275_set_flag): New prototype.
49127 * include/grub/powerpc/ieee1275/init.h: Remove file.
49128 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
49129 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
49130 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
49131 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
49132 comment.
49133 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
49134 `grub_ieee1275_test_flag'.
49135 (grub_ieee1275_encode_devname): Likewise.
49136
ed16607e 491372005-04-21 Hollis Blanchard <hollis@penguinppc.org>
49138
49139 * include/grub/powerpc/ieee1275/ieee1275.h
49140 (grub_ieee1275_encode_devname): New prototype.
49141 (grub_ieee1275_get_filename): Likewise.
49142 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
49143 function.
49144 (grub_set_prefix): Likewise.
49145 (grub_machine_init): Call grub_set_prefix.
49146 * kern/powerpc/ieee1275/openfw.c: Fix typos.
49147 (grub_parse_type): New enum.
49148 (grub_ieee1275_get_devargs): New function.
49149 (grub_ieee1275_get_devname): Likewise.
49150 (grub_ieee1275_parse_args): Likewise.
49151 (grub_ieee1275_get_filename): Likewise.
49152 (grub_ieee1275_encode_devname): Likewise.
49153
be369920 491542005-03-30 Marco Gerards <metgerards@student.han.nl>
49155
49156 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
49157 `grub_loader_unset'.
49158
a5ce3a4a 491592005-03-26 Hollis Blanchard <hollis@penguinppc.org>
49160
49161 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
49162 instead of grub_ieee1275_interpret.
49163 (grub_halt_init): New function.
49164 (grub_halt_fini): Likewise.
49165 (GRUB_MOD_INIT): Correct message grammar.
49166 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
49167 instead of grub_ieee1275_interpret.
49168 (grub_reboot_init): New function.
49169 (grub_reboot_fini): Likewise.
49170 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
49171 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
49172 util/i386/pc/misc.c with commands/ieee1275/halt.c,
49173 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
49174 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
49175 function.
49176 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
49177 Add prototype.
49178 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
49179 prototype.
49180 (grub_halt): Likewise.
49181 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
49182 (cmain): Remove __attribute__((unused)).
49183 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
49184 (grub_heap_len): Likewise.
49185 (grub_machine_fini): New function.
49186 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
49187 (grub_halt): Likewise.
49188 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
49189 function.
49190 * util/powerpc/ieee1275/misc.c: New file.
49191
0058f771 491922005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
49193
49194 * DISTLIST: New file.
49195 * gendistlist.sh: Likewise.
f19dbdb7 49196
0058f771 49197 * Makefile.in (COMMON_DISTFILES): Removed.
49198 (BOOT_DISTFILES): Likewise.
49199 (CONF_DISTFILES): Likewise.
49200 (DISK_DISTFILES): Likewise.
49201 (FS_DISTFILES): Likewise.
49202 (INCLUDE_DISTFILES): Likewise.
49203 (KERN_DISTFILES): Likewise.
49204 (LOADER_DISTFILES): Likewise.
49205 (TERM_DISTFILES): Likewise.
49206 (UTIL_DISTFILES): Likewise.
49207 (DISTFILES): Likewise.
49208 (uninstall): Uninstall files in $(pkgdata_DATA).
49209 (DISTLIST): New target.
49210 (distdir): Use the contents of the file DISTLIST to get a list of
49211 distributed files.
49212
46b3b8a5 492132005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
49214
49215 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
49216 descriptor. This is ported from GRUB Legacy.
49217
49218 * gencmdlist.sh: Added an extra semicolon to make it work with
49219 old sed versions. Reported by Robert Bihlmeyer
49220 <robbe@orcus.priv.at>.
49221
5822ff87 492222005-03-08 Yoshinori Okuji <okuji@enbug.org>
49223
49224 Automatic loading of commands is supported.
f19dbdb7 49225
5822ff87 49226 * normal/main.c (read_command_list): New function.
49227 (grub_normal_execute): Call read_command_list.
49228
49229 * normal/command.c (grub_register_command): Return zero or CMD.
49230 Allocate CMD->NAME from the heap.
49231 Initialize CMD->MODULE_NAME to zero.
49232 Find the same name as well. If the same command is found and it is
49233 a dummy command, overwrite members. If it is not a dummy command,
49234 return zero.
49235 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
49236 (grub_command_find): If a dummy command is found, load a module
49237 and retry to find a command only once.
49238
49239 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
49240 make sure that each command is loaded.
49241
49242 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
49243 macro.
49244 (struct grub_command): Remove const from the member `name'.
49245 Add a new member `module_name'.
49246 (grub_register_command): Return grub_command_t.
49247
49248 * commands/help.c (grub_cmd_help): Call grub_command_find to make
49249 sure that each command is loaded.
49250
49251 * genmk.rb (PModule::rule): Specify a module name without the
49252 suffix ".mod" to gencmdlist.sh.
49253
7b1f4b57 492542005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49255
49256 * gencmdlist.sh: New file.
f19dbdb7 49257
7b1f4b57 49258 * genmk.rb (PModule::rule): Generate a rule for a command list.
49259 Clean command.lst.
49260 Generate command.lst from $(COMMANDFILES).
49261
49262 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
49263 (DATA): Added $(pkgdata_DATA).
49264 (install-local): Install files in $(pkgdata_DATA).
49265
062aaf39 492662005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49267
49268 * term/i386/pc/vga.c (debug_command): Removed.
49269 (GRUB_MOD_INIT): Do not register the command "debug".
49270
49271 From Hollis Blanchard:
49272 * commands/configfile.c: New file.
49273 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49274 commands/configfile.c.
49275 (pkgdata_MODULES): Added configfile.mod.
49276 (configfile_mod_SOURCES): New variable.
49277 (configfile_mod_CFLAGS): Likewise.
49278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49279 commands/configfile.c.
49280 (pkgdata_MODULES): Added configfile.mod.
49281 (configfile_mod_SOURCES): New variable.
49282 (configfile_mod_CFLAGS): Likewise.
49283 * util/grub-emu.c (main): Call grub_configfile_init and
49284 grub_configfile_fini.
49285 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
49286 prototype.
49287 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 49288
cee01aa6 492892005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49290
49291 * normal/arg.c (grub_arg_show_help): Do not show the bug report
49292 address.
49293
49294 * commands/help.c (grub_cmd_help): Do not print newlines after
49295 the last command in print_command_help.
49296
93f3a1d8 492972005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49298
49299 * commands/default.h: New file.
49300 * commands/timeout.h: Likewise.
49301 * normal/context.c: Likewise.
f19dbdb7 49302
93f3a1d8 49303 * util/misc.c: Do not include sys/times.h.
49304 Include sys/time.h and grub/machine/time.h.
49305 (grub_get_rtc): Rewritten with gettimeofday.
49306
49307 * util/grub-emu.c (main): Call grub_default_init and
49308 grub_timeout_init before grub_normal_init, and call
49309 grub_timeout_fini and grub_default_fini after grub_main.
49310
49311 * util/console.c (grub_ncurses_checkkey): Return the read
49312 character or -1.
49313
49314 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
49315 timeouts.
49316
49317 * normal/main.c (read_config_file): Push MENU. If this fails,
49318 print an error and wait for a user input.
49319 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
49320 If a menu is empty or an error occurs, pop MENU.
49321 (grub_normal_execute): Pop and free MENU after grub_menu_run
49322 returns.
49323
49324 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
49325
49326 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
49327 include time.h.
49328 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49329 without GRUB_UTIL.
49330 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
49331 time.h.
49332 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49333 without GRUB_UTIL.
49334
49335 * include/grub/normal.h (struct grub_menu_list): New struct.
49336 (grub_menu_list_t): New type.
49337 (struct grub_context): New struct.
49338 (grub_context_t): New type.
49339 (grub_register_command): Got rid of EXPORT_FUNC.
49340 (grub_unregister_command): Likewise.
49341 (grub_context_get): New prototype.
49342 (grub_context_get_current_menu): Likewise.
49343 (grub_context_push_menu): Likewise.
49344 (grub_context_pop_menu): Likewise.
49345 [GRUB_UTIL] (grub_default_init): Likewise.
49346 [GRUB_UTIL] (grub_default_fini): Likewise.
49347 [GRUB_UTIL] (grub_timeout_init): Likewise.
49348 [GRUB_UTIL] (grub_timeout_fini): Likewise.
49349
49350 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
49351 commands/timeout.c and normal/context.c.
49352 (pkgdata_MODULES): Added default.mod and timeout.mod.
49353 (normal_mod_SOURCES): Added normal/context.c.
49354 (default_mod_SOURCES): New variable.
49355 (default_mod_CFLAGS): Likewise.
49356 (timeout_mod_SOURCES): Likewise.
49357 (timeout_mod_CFLAGS): Likewise.
49358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
49359 conf/i386-pc.rmk.
49360 (pkgdata_MODULES): Added default.mod and timeout.mod.
49361 (normal_mod_SOURCES): Added normal/context.c.
49362 (default_mod_SOURCES): New variable.
49363 (default_mod_CFLAGS): Likewise.
49364 (timeout_mod_SOURCES): Likewise.
49365 (timeout_mod_CFLAGS): Likewise.
49366
49367 * Makefile.in (all-local): Added $(MKFILES).
49368
4ed2e1dd 493692005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
49370
49371 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
49372 (grub_emu_SOURCES): Likewise.
49373 (pkgdata_MODULES): Add `sun.mod'.
49374 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49376 `partmap/sun.c'.
49377 (pkgdata_MODULES): Add `sun.mod'.
49378 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49379 * include/grub/partition.h (grub_sun_partition_map_init): New
49380 prototype.
49381 (grub_sun_partition_map_fini): Likewise.
49382 * partmap/sun.c: New file.
49383 * util/grub-emu.c (main): Initialize and de-initialize the sun
49384 partitionmap support.
49385
4d4e372e 493862005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
49387
49388 This implements an Emacs-like menu entry editor.
f19dbdb7 49389
4d4e372e 49390 * normal/menu_entry.c: New file.
f19dbdb7 49391
4d4e372e 49392 * util/console.c (grub_ncurses_putchar): Translate some Unicode
49393 characters to ASCII.
49394 (saved_char): New variable.
49395 (grub_ncurses_checkkey): Rewritten completely.
49396 (grub_ncurses_getkey): Likewise.
49397 (grub_ncurses_init): Call raw instead of cbreak.
49398
49399 * normal/menu.c (print_entry): Do not put a space.
49400 (init_page): Renamed to ...
49401 (grub_menu_init_page): ... this. All callers changed.
49402 (edit_menu_entry): Removed.
49403 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
49404
49405 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
49406
49407 * kern/misc.c (grub_vprintf): Call grub_refresh.
49408
49409 * normal/menu.c (DISP_LEFT): Renamed to ...
49410 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
49411 * normal/menu.c (DISP_UP): Renamed to ...
49412 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
49413 * normal/menu.c (DISP_RIGHT): Renamed to ...
49414 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
49415 * normal/menu.c (DISP_DOWN): Renamed to ...
49416 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
49417 * normal/menu.c (DISP_HLINE): Renamed to ...
49418 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
49419 * normal/menu.c (DISP_VLINE): Renamed to ...
49420 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
49421 * normal/menu.c (DISP_UL): Renamed to ...
49422 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
49423 * normal/menu.c (DISP_UR): Renamed to ...
49424 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
49425 * normal/menu.c (DISP_LL): Renamed to ...
49426 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
49427 * normal/menu.c (DISP_LR): Renamed to ...
49428 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
49429 * normal/menu.c (TERM_WIDTH): Renamed to ...
49430 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
49431 * normal/menu.c (TERM_HEIGHT): Renamed to ...
49432 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
49433 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
49434 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
49435 * normal/menu.c (TERM_MARGIN): Renamed to ...
49436 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
49437 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
49438 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
49439 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
49440 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
49441 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
49442 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
49443 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
49444 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
49445 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
49446 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
49447 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
49448 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
49449 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
49450 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
49451 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
49452 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
49453 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
49454 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
49455 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
49456 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
49457 All callers changed.
49458
49459 * include/grub/normal.h: New prototype.
49460
49461 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49462 normal/menu_entry.c.
49463 (normal_mod_SOURCES): Likewise.
49464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49465 (normal_mod_SOURCES): Likewise.
49466
e6b92c8a 494672005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
49468
49469 * include/grub/normal.h (grub_halt_init): New prototype.
49470 (grub_halt_fini): Likewise.
49471 (grub_reboot_init): Likewise.
49472 (grub_reboot_fini): Likewise.
49473
49474 * util/grub-emu.c: Include signal.h.
49475 (main_env): New global variable.
49476 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
49477 catch C-c.
49478 (grub_machine_fini): New function.
49479 (main): Call grub_halt_init and grub_reboot_init before
49480 grub_main, and grub_reboot_fini and grub_halt_fini after it.
49481 Call setjmp with MAIN_ENV to go back afterwards.
49482 Call grub_machine_fini right before return.
49483
49484 * include/grub/util/misc.h: Include setjmp.h.
49485 (main_env): New prototype.
49486
49487 * include/grub/kernel.h (grub_machine_fini): New prototype.
49488 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
49489 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
49490
49491 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
49492 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
49493 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 49494
e6b92c8a 49495 * util/i386/pc/misc.c: New file.
f19dbdb7 49496
e6b92c8a 49497 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49498 util/i386/pc/misc.c, commands/i386/pc/halt.c and
49499 commands/i386/pc/reboot.c.
49500
c642636f 495012005-02-14 Guillem Jover <guillem@hadrons.org>
49502
49503 * include/grub/dl.h (grub_dl_check_header): New prototype.
49504 (grub_arch_dl_check_header): Change return type to grub_err_t,
49505 remove size parameter and export function. Update all callers.
49506 * kern/dl.c (grub_dl_check_header): New function.
49507 (grub_dl_load_core): Use `grub_dl_check_header' instead of
49508 `grub_arch_dl_check_header'. Check ELF type. Check if sections
49509 are inside the core.
49510 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
49511 independent ELF header checks.
49512 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
49513 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
49514 `grub_dl_check_header' instead of explicit checks. Check for the
49515 ELF type.
49516 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
49517 `grub_dl_check_header' instead of explicit checks. Remove arch
49518 specific ELF header checks.
49519
e6b92c8a 49520 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
49521 argument SIZE.
49522
5eabe94b 495232005-02-13 Hollis Blanchard <hollis@penguinppc.org>
49524
49525 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
49526 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
49527
1b14a681 495282005-02-12 Hollis Blanchard <hollis@penguinppc.org>
49529
49530 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 49531 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 49532 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 49533 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 49534 * partmap/amiga.c (amiga_partition_map_iterate): Return
49535 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
49536 * partmap/apple.c (apple_partition_map_iterate): Likewise.
49537
aca108aa 495382005-02-01 Guillem Jover <guillem@hadrons.org>
49539
49540 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
49541 help info.
49542
c9f9c556 495432005-01-31 Marco Gerards <metgerards@student.han.nl>
49544
49545 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
49546 Removed prototype.
49547 (grub_rescue_cmd_linux): New prototype.
49548 (grub_rescue_cmd_initrd): Likewise.
49549 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
49550 `bi_rec'.
49551 (grub_linux_release_mem): Release the memory for the initrd.
49552 (grub_load_linux): Renamed from this...
49553 (grub_rescue_cmd_linux): ...To this. Changed all callers.
49554 Changed `entry' not to be static. Loop over memory regions to
49555 find another one when the default fails.
49556 (grub_rescue_cmd_initrd): New function.
49557 (grub_linux_init): Remove function.
49558 (grub_linux_fini): Likewise.
49559 (GRUB_MOD_INIT): Register `initrd'.
49560 (GRUB_MOD_FINI): Unregister `initrd'.
49561 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
49562 Function removed.
49563 (grub_linux_normal_fini): Likewise.
49564 (GRUB_MOD_INIT): Register `initrd'.
49565 (GRUB_MOD_FINI): Unregister `initrd'.
49566
990cf3aa 495672005-01-31 Marco Gerards <metgerards@student.han.nl>
49568
49569 * commands/help.c: New file.
49570 * normal/arg.c (show_help): Renamed to...
49571 (grub_arg_show_help): ... this.
49572 * commands/i386/pc/halt.c: New file.
49573 * commands/i386/pc/reboot.c: Likewise.
49574 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
49575 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
49576 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
49577 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
49578 variables.
49579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49580 `commands/help.c'.
49581 (pkgdata_MODULES): Add `help.mod'.
49582 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
49583 * grub/i386/pc/init.h (grub_reboot): New prototype.
49584 (grub_halt): Likewise.
49585 * include/grub/normal.h (grub_arg_show_help): New prototype.
49586 (grub_help_init): Likewise.
49587 (grub_help_fini): Likewise.
49588 * util/grub-emu.c (main): Initialize and deinitialize the help
49589 command.
49590
49591 * normal/cmdline.c (grub_cmdline_get): Doc fix.
49592
49593 * normal/command.c (grub_command_init): Fixed the description of
49594 the `set' and `unset' commands.
49595
495962005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 49597
49598 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
49599 function.
49600 * commands/ieee1275/halt.c: New file.
49601 * commands/ieee1275/reboot.c: Likewise.
49602 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
49603 `__attribute__ ((unused))'. Some GCS related fixed.
49604 (grub_suspend_init) [GRUB_UTIL]: Function removed.
49605 (grub_suspend_fini): Likewise.
49606 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
49607 and `halt.mod'.
49608 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
49609 (halt_mod_CFLAGS): New variables.
49610 * include/grub/powerpc/ieee1275/ieee1275.h
49611 (grub_ieee1275_interpret): New prototype.
49612
1ab09cc7 496132005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
49614
49615 * include/grub/misc.h (memmove): New prototype.
49616 (memcpy): Likewise.
49617
8b8cbdb2 496182005-01-22 Hollis Blanchard <hollis@penguinppc.org>
49619
49620 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
49621 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
49622
e3741a27 496232005-01-22 Marco Gerards <metgerards@student.han.nl>
49624
49625 * kern/misc.c (grub_strndup): Function rewritten.
49626
776bd780 496272005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
49628
49629 * normal/menu.c (TERM_WIDTH): Macro redefined.
49630 (TERM_TOP_BORDER_Y): Likewise.
49631 (draw_border): Replaced while-loop by a for-loop. Make the number
49632 of lines consistent with the number of lines displayed in
49633 print_entries. Added a margin below the rectangle.
49634 (print_entry): Make the entry fit in the rectangle.
49635 (print_entries): Display the scroll arrows next to the right
49636 border.
49637
78026bce 496382005-01-21 Marco Gerards <metgerards@student.han.nl>
49639
49640 * fs/minix.c (grub_minix_find_file): Reserve more space for
49641 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
49642 `grub_strncpy' to copy `path' into it.
49643
67bbaf0f 496442005-01-21 Marco Gerards <metgerards@student.han.nl>
49645
49646 Add the loopback device, a device via which files can be accessed
49647 as devices.
f19dbdb7 49648
67bbaf0f 49649 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
49650 (pkgdata_MODULES): Add loopback.mod.
49651 (loopback_mod_SOURCES): New variable.
49652 (loopback_mod_CFLAGS): Likewise.
49653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49654 `disk/loopback.c'.
49655 (pkgdata_MODULES): Add loopback.mod.
49656 (loopback_mod_SOURCES): New variable.
49657 (loopback_mod_CFLAGS): Likewise.
49658 * disk/loopback.c: new file.
49659 * include/grub/normal.h (grub_loop_init): New prototype.
49660 (grub_loop_fini): New prototype.
49661 * util/grub-emu.c (main): Initialize and de-initialize loopback
49662 support.
49663 * include/grub/disk.h (grub_disk_dev_id): Add
49664 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
49665
6f1c18bd 496662005-01-20 Hollis Blanchard <hollis@penguinppc.org>
49667
49668 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
49669 function.
49670 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
49671 (suspend_mod_SOURCES): New variable.
49672 (suspend_mod_CFLAGS): Likewise.
49673 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
49674 New prototype.
49675 * commands/ieee1275/suspend.c: New file.
49676
b38551da 496772005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49678
49679 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 49680 ((unused))' to `__attribute__ ((used))'.
b38551da 49681 (GRUB_MOD_FINI): Likewise.
49682 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
49683 * genmk.rb (PModule): Assign space to common symbols when linking
49684 modules.
49685
777aff39 496862005-01-20 Marco Gerards <metgerards@student.han.nl>
49687
49688 * include/grub/mm.h (grub_mm_init_region): Change the type of the
49689 `unsigned' arguments to `grub_size_t'.
49690 (grub_malloc): Likewise.
49691 (grub_realloc): Likewise.
49692 (grub_memalign): Likewise.
49693 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
49694 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
49695 * util/misc.c (grub_malloc): Likewise.
49696 (grub_realloc): Likewise.
49697 * kern/mm.c (get_header_from_pointer): Change the casts to
49698 `unsigned' into a cast to `grub_size_t'.
49699
49700 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
49701 point to `currnode' when `currnode' is changed.
49702
49703 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
49704 Schottelius <nico-linux@schottelius.org>.
49705
d0ff18e1 497062005-01-09 Hollis Blanchard <hollis@penguinppc.org>
49707
49708 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
49709 (note_path): Remove variable.
49710 (GRUB_IEEE1275_NOTE_NAME): New macro.
49711 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
49712 (grub_ieee1275_note_hdr): New structure.
49713 (grub_ieee1275_note_desc): Likewise.
49714 (grub_ieee1275_note): Likewise.
49715 (load_note): Remove `dir' argument. All callers updated. Remove
49716 `note_img' and `path'. Do not load a file from `note_path'.
49717 Initialize a struct grub_ieee1275_note and write that to `out'.
49718 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
49719
4ca7004c 497202005-01-05 Marco Gerards <metgerards@student.han.nl>
49721
49722 * util/misc.c (grub_util_read_image): Revert last change. It
49723 called `grub_util_read_at', which seeks from the beginning of the
49724 file.
49725
0b412211 497262005-01-04 Hollis Blanchard <hollis@penguinppc.org>
49727
49728 * TODO: Add note about endianness in grub-mkimage.
49729 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
49730 section.
49731 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
49732 (grub_mkimage_SOURCES): New target.
49733 * include/grub/kernel.h (grub_start_addr): Remove variable.
49734 (grub_end_addr): Likewise.
49735 (grub_total_module_size): Likewise.
49736 (grub_kernel_image_size): Likewise.
49737 (GRUB_MODULE_MAGIC): New constant.
49738 (grub_module_info): New structure.
49739 (grub_arch_modules_addr): New prototype.
49740 (grub_get_end_addr): Remove prototype.
49741 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
49742 * include/grub/powerpc/ieee1275/kernel.h: New file.
49743 * include/grub/util/misc.h (grub_util_get_fp_size): New
49744 prototype.
49745 (grub_util_read_at): Likewise.
49746 (grub_util_write_image_at): Likewise.
49747 * kern/main.c (grub_get_end_addr): Remove function.
49748 (grub_load_modules): Call grub_arch_modules_addr instead of using
49749 grub_end_addr. Look for a grub_module_info struct in memory. Use
49750 the grub_module_info fields instead of calling grub_get_end_addr
49751 as loop conditions. Move grub_add_unused_region code here.
49752 (grub_add_unused_region): Remove function.
49753 * kern/i386/pc/init.c: Include grub/cache.h.
49754 (grub_machine_init): Remove call to grub_get_end_addr. Remove
49755 one call to add_mem_region.
49756 (grub_arch_modules_addr): New function.
49757 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
49758 (grub_total_module_size): Likewise.
49759 Include grub/machine/kernel.h.
49760 (grub_arch_modules_addr): New function.
49761 * util/grub-emu.c (grub_end_addr): Remove variable.
49762 (grub_total_module_size): Likewise.
49763 (grub_arch_modules_addr): New function.
49764 * util/misc.c: Include unistd.h.
49765 (grub_util_get_fp_size): New function.
49766 (grub_util_read_at): Likewise.
49767 (grub_util_write_image_at): Likewise.
49768 (grub_util_read_image): Call grub_util_read_at.
49769 (grub_util_write_image): Call grub_util_write_image_at.
49770 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
49771 additional memory in kernel_img for a struct grub_module_info.
49772 Fill in that grub_module_info.
49773 * util/powerpc/ieee1275/grub-mkimage.c: New file.
49774
458786f8 497752005-01-03 Hollis Blanchard <hollis@penguinppc.org>
49776
49777 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
49778 New function.
49779 * include/grub/powerpc/ieee1275/ieee1275.h
49780 (grub_ieee1275_milliseconds): New prototype.
49781 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
49782 Change to 1000.
49783 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
49784 grub_ieee1275_milliseconds.
49785
ac507d1b 497862005-01-03 Hollis Blanchard <hollis@penguinppc.org>
49787
49788 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
49789 variable.
49790 (find_options): New function.
49791 (cmain): Call find_options.
49792 * include/grub/powerpc/ieee1275/ieee1275.h
49793 (grub_ieee1275_realmode): New extern variable.
49794 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
49795 grub_map if grub_ieee1275_realmode is false.
49796
6b8fd1c4 497972004-12-29 Marco Gerards <metgerards@student.han.nl>
49798
49799 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
49800 lines are inserted and make it work like readline. Reported by
49801 Vincent Pelletier <subdino2004@yahoo.fr>.
49802
8514a1e0 498032004-12-28 Marco Gerards <metgerards@student.han.nl>
49804
49805 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
49806
49807 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
49808 `kern/powerpc/cache.S'.
49809
924b6140 498102004-12-27 Marco Gerards <metgerards@student.han.nl>
49811
49812 * genmk.rb: Handle the `Program' class in the main loop. Written
49813 by Johan Rydberg <jrydberg@gnu.org>.
49814 (Program): New class.
49815 (programs): New variable.
49816 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
49817 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
49818 instead of "grub/kernel.h". Include <grub/machine/init.h>.
49819 (help_arch): Function removed.
49820 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
49821 `powerpc/libgcc.h' and `loader.h'.
49822 (pkgdata_PROGRAMS): New variable.
49823 (sbin_UTILITIES): Variable removed.
49824 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
49825 (grubof_SOURCES): Variable re-defined so it only includes the
49826 core functionality.
49827 (grubof_CFLAGS): Remove `-DGRUBOF'.
49828 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
49829 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
49830 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
49831 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
49832 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
49833 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
49834 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
49835 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
49836 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
49837 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
49838 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
49839 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
49840 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
49841 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
49842 (pc_mod_CFLAGS): New variables.
49843 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
49844 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
49845 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
49846 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
49847 Moved from here...
49848 * include/grub/i386/pc/init.h (grub_os_area_addr)
49849 (rub_os_area_size): ... to here.
49850 * include/grub/powerpc/ieee1275/ieee1275.h
49851 (grub_ieee1275_entry_fn): Export symbol.
49852 * include/grub/powerpc/ieee1275/init.h: New file.
49853 * include/grub/powerpc/libgcc.h: Likewise.
49854 * include/grub/cache.h: Likewise.
49855 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
49856 <hollis@penguinppc.org>.
49857 * kern/dl.c: Include <grub/cache.h>.
49858 (grub_dl_flush_cache): New function.
49859 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
49860 for this module.
49861 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
49862 (grub_console_init): Removed prototypes.
49863 (grub_machine_init): Don't initialize the modules anymore.
49864 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
49865 static.
49866 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
49867 Macro undef removed.
49868 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
49869 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
49870 relocation `R_PPC_REL32'. Return an error when the relocation is
49871 unknown.
49872 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
49873 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
49874 * util/misc.c (grub_arch_sync_caches): Likewise.
49875
e4b47e0c 498762004-12-19 Marco Gerards <metgerards@student.han.nl>
49877
49878 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
49879 `symlist.c', add `grubof_symlist.c'.
49880 (symlist.c): Variable removed.
49881 (grubof_HEADERS): Variable added.
49882 (grubof_symlist.c): New target.
49883 (kernel_syms.lst): Use `grubof_HEADERS' instead of
49884 `kernel_img_HEADERS'.
49885 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
49886 * kern/powerpc/dl.c: New file.
49887 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
49888 Function removed.
49889 (grub_arch_dl_relocate_symbols): Likewise.
49890 (grub_register_exported_symbols): Likewise.
49891
4ceb3636 498922004-12-13 Marco Gerards <metgerards@student.han.nl>
49893
49894 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
49895 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
49896 to fail instead. Reported by Vincent Pelletier
49897 <subdino2004@yahoo.fr>.
49898
49899 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
49900 it is not allocated. Reported by Vincent Pelletier
49901 <subdino2004@yahoo.fr>.
49902
49903 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
49904 output so the output looks better.
f19dbdb7 49905
3f1578fe 499062004-12-04 Marco Gerards <metgerards@student.han.nl>
49907
49908 Modulize the partition map support and add support for the amiga
49909 partition map.
f19dbdb7 49910
3f1578fe 49911 * commands/ls.c: Include <grub/partition.h> instead of
49912 <grub/machine/partition.h>.
49913 * kern/disk.c: Likewise.
49914 * kern/rescue.c: Likewise.
49915 * loader/i386/pc/chainloader.c: Likewise.
49916 * normal/cmdline.c: Likewise.
49917 * kern/powerpc/ieee1275/init.c: Likewise.
49918 (grub_machine_init): Call `grub_pc_partition_map_init',
49919 `grub_amiga_partition_map_init' and
49920 `grub_apple_partition_map_init'.
49921 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
49922 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
49923 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
49924 `partition.h' and `pc_partition.h'.
49925 (grub_setup_SOURCES): Remove
49926 `disk/i386/pc/partition.c'. Add `kern/partition.c',
49927 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
49928 (grub_emu_SOURCES): Likewise.
49929 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
49930 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
49931 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
49932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
49933 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
49934 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
49935 (grubof_SOURCES): Likewise.
49936 * disk/i386/pc/partition.c: File removed.
49937 * disk/powerpc/ieee1275/partition.c: Likewise.
49938 * include/grub/powerpc/ieee1275/partition.h: Likewise.
49939 * include/grub/i386/pc/partition.h: Likewise.
49940 * kern/partition.c: New file.
49941 * partmap/amiga.c: Likewise.
49942 * partmap/apple.c: Likewise.
49943 * partmap/pc.c: Likewise.
49944 * include/grub/partition.h: Likewise..
49945 * include/grub/pc_partition.h: Likewise.
49946 * util/grub-emu.c: Include <grub/partition.h> instead of
49947 <grub/machine/partition.h>.
49948 (main): Call `grub_pc_partition_map_init',
49949 `grub_amiga_partition_map_init' and
49950 `grub_apple_partition_map_init' and deinitialize afterwards.
49951 * util/i386/pc/biosdisk.c: Include `#include
49952 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
49953 `<grub/machine/partition.h>'.
49954 * util/i386/pc/grub-setup.c: Likewise.
49955 * util/i386/pc/biosdisk.c: Likewise.
49956 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
49957 partition information in case of a PC partition.
49958 * util/i386/pc/grub-setup.c: Include `#include
49959 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
49960 `<grub/machine/partition.h>'.
49961 (setup): Only access the PC specific partition information in case
49962 of a PC partition.
49963
0ef4ced9 499642004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 49965
0ef4ced9 49966 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
49967 (grub_longjmp): Likewise.
49968 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
49969 20.
49970 * normal/powerpc/setjmp.S: New file.
49971 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
49972 `normal/powerpc/setjmp.S'.
49973 (grubof_CFLAGS): Add `-DGRUBOF'.
49974 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
49975 [GRUB_UTIL && !GRUBOF].
f19dbdb7 49976
19950e29 499772004-11-16 Marco Gerards <metgerards@student.han.nl>
49978
49979 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
49980 property named `name'. Correctly handle the error returned by
49981 `grub_ieee1275_finddevice' if a device can not be opened.
49982
a2fea427 499832004-11-02 Hollis Blanchard <hollis@penguinppc.org>
49984
49985 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
49986 `actual' for negativity.
49987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
49988 kern/fshelp.c.
49989
41ea0ea3 499902004-11-01 Marco Gerards <metgerards@student.han.nl>
49991
49992 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
49993 (PAGE_OFFSET): New macro.
49994 (CRTC_ADDR_PORT): Likewise.
49995 (CRTC_DATA_PORT): Likewise.
49996 (START_ADDR_HIGH_REGISTER): Likewise.
49997 (START_ADDR_LOW_REGISTER): Likewise.
49998 (GRAPHICS_ADDR_PORT): Likewise.
49999 (GRAPHICS_DATA_PORT): Likewise.
50000 (READ_MAP_REGISTER): Likewise.
50001 (INPUT_STATUS1_REGISTER): Likewise.
50002 (INPUT_STATUS1_VERTR_BIT): Likewise.
50003 (page): New variable.
50004 (wait_vretrace): New function.
50005 (set_read_map): Likewise.
50006 (set_start_address): Likewise.
50007 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
50008 the right page.
50009 (check_vga_mem): Take the page into account.
50010 (write_char): Likewise.
50011 (write_cursor): Likewise.
50012 (scroll_up): Likewise. Copy the page to the page that is not
50013 shown and switch between both pages.
50014 (grub_vga_putchar): Fix off by one error.
50015 (grub_vga_cls): Wait for the vertical retrace. Take the page into
50016 account.
50017
ad0bd20b 500182004-11-01 Marco Gerards <metgerards@student.han.nl>
50019
50020 Add support for iso9660 (including rockridge).
f19dbdb7 50021
ad0bd20b 50022 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50023 (iso9660_mod_SOURCES): New variable.
50024 (iso9660_mod_CFLAGS): Likewise.
50025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50026 * include/grub/fs.h (grub_iso9660_init): New prototype.
50027 * util/grub-emu.c (main): Call `grub_iso9660_init'.
50028 * fs/iso9660.c: New file.
50029
50030 * include/grub/misc.h (grub_strncat): New prototype.
50031 * kern/misc.c (grub_strncat): New function.
f19dbdb7 50032
ad0bd20b 50033 * fs/hfs.c (grub_hfs_mount): Translate the error
50034 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
50035 * fs/jfs.c (grub_jfs_mount): Likewise.
50036 * fs/ufs.c (grub_ufs_mount): Likewise.
50037
a5477a59 500382004-10-28 Hollis Blanchard <hollis@penguinppc.org>
50039
50040 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
50041 which initialized BAT registers.
50042 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
50043 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50044 Move from here...
50045 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
50046 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50047 ... to here.
50048 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
50049 (grub_mapclaim): Likewise.
50050 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
50051 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
50052 hand.
50053
9304c1f8 500542004-10-19 Hollis Blanchard <hollis@penguinppc.org>
50055
50056 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
50057 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
50058 -ffreestanding and -msoft-float.
50059
86f4ae25 500602004-10-15 Hollis Blanchard <hollis@penguinppc.org>
50061
50062 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
50063 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
50064 set in grub_ieee1275_flags.
50065
38912228 500662004-10-14 Hollis Blanchard <hollis@penguinppc.org>
50067
50068 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
50069 prototype.
50070 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
50071 grub_console_init first.
50072 Change the memory range used for grub_ieee1275_claim and
50073 grub_mm_init_region.
50074 Print an error message if the claim fails.
50075 Include <grub/misc.h>.
50076
d1923dc8 500772004-10-13 Hollis Blanchard <hollis@penguinppc.org>
50078
50079 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
50080 Call grub_children_iterate for device nodes of type `scsi',
50081 `ide', or `ata'.
50082 (grub_ofdisk_open): Remove manual device alias resolution.
50083 Fix memory leak when device cannot be opened.
f19dbdb7 50084 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 50085 (grub_children_iterate): New prototype.
50086 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
50087 New function.
50088 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50089 Return -1 if args.size was -1.
50090
4512e4f3 500912004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50092
50093 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
50094 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
50095 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
50096 Open Firmware's memory for it; claim memory from _start to _end.
50097 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
50098 (_end): New extern.
50099 (_start): Zero BSS from __bss_start to _end.
50100 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
50101 New extern.
50102 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
50103
4d61feb0 501042004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50105
ad0bd20b 50106 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
50107 -1 if args.base was -1.
4d61feb0 50108
026fa2f9 501092004-10-08 Hollis Blanchard <hollis@penguinppc.org>
50110
50111 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
50112 escape sequence instead of a literal ^L. Also call
50113 grub_ofconsole_gotoxy.
50114
9f2220ef 501152004-10-03 Hollis Blanchard <hollis@penguinppc.org>
50116
50117 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
50118 void * arguments to grub_addr_t. All callers updated. Also make
50119 the `result' argument optional.
50120 (grub_ieee1275_release): change void * arguments to grub_addr_t.
50121 All callers updated.
50122
8a572cd7 501232004-09-22 Hollis Blanchard <hollis@penguinppc.org>
50124
50125 * commands/ls.c (grub_ls_list_files): Use the string following the
50126 initial ')', if present, as the filesystem path.
50127 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
50128
50129 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
50130
18aa81f2 501312004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
50132
50133 Make the source code of the menu interface more readable.
f19dbdb7 50134
18aa81f2 50135 * normal/menu.c: Include grub/mm.h.
50136 (TERM_WIDTH): New macro.
50137 (TERM_HEIGHT): Likewise.
50138 (TERM_INFO_HEIGHT): Likewise.
50139 (TERM_MARGIN): Likewise.
50140 (TERM_SCROLL_WIDTH): Likewise.
50141 (TERM_TOP_BORDER_Y): Likewise.
50142 (TERM_LEFT_BORDER_X): Likewise.
50143 (TERM_BORDER_WIDTH): Likewise.
50144 (TERM_MESSAGE_HEIGHT): Likewise.
50145 (TERM_BORDER_HEIGHT): Likewise.
50146 (TERM_NUM_ENTRIES): Likewise.
50147 (TERM_FIRST_ENTRY_Y): Likewise.
50148 (TERM_ENTRY_WIDTH): Likewise.
50149 (TERM_CURSOR_X): Likewise.
50150 (draw_border): Use macros instead of magic numbers.
50151 (print_entry): Likewise.
50152 (print_entries): Likewise.
50153 (run_menu): Likewise. Also, handle the key 'e'.
50154 (run_menu_entry): Ignore empty command lines.
50155 (print_message): Added a new argument EDIT. If EDIT is true,
50156 print a different message.
50157 (init_page): Likewise.
50158 (edit_menu_entry): New function. Not implemented yet.
50159
b47efe30 501602004-09-17 Marco Gerards <metgerards@student.han.nl>
50161
50162 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
50163 can be loaded from normal mode.
f19dbdb7 50164
b47efe30 50165 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
50166 `multiboot.mod'.
50167 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
50168 (multiboot_mod_CFLAGS): New variables.
50169 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 50170 * loader/i386/pc/multiboot_normal.c: Likewise.
50171
b47efe30 50172 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
50173 attribute `unused'.
f19dbdb7 50174
b47efe30 50175 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
50176 `fdiro' to read the mode information from instead of `diro'.
50177
50178 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
50179 looking up a symlink.
50180
50181 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
50182 macro.
50183 * normal/command.c (grub_command_execute): Don't parse the
50184 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
50185 flags of the command.
50186
50187 * normal/menu.c (grub_menu_run): Fix typo.
50188
da75ac71 501892004-09-14 Hollis Blanchard <hollis@penguinppc.org>
50190
50191 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
50192
50193 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
50194 `y + 1' instead of `y - 1'.
50195
50196 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 50197
062b24c2 501982004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
50199
50200 From Hollis Blanchard <hollis@penguinppc.org>:
50201 * kern/misc.c (memmove): New alias for grub_memmove.
50202 (memcmp): New alias for grub_memcmp.
50203 (memset): New alias for grub_memset.
f19dbdb7 50204 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 50205 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 50206 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 50207 (grub_ieee1275_get_property): Likewise.
f19dbdb7 50208
8ddad845 502092004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
50210
50211 Added normal mode command `chainloader' as module chain.mod, which
50212 depends on normal.mod and _chain.mod.
f19dbdb7 50213
8ddad845 50214 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
50215 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
50216 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
50217 Deleted prototype.
50218 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
50219 but arguments parsing moved to ...
50220 (grub_chainloader_cmd): ... here. New function.
50221 * include/grub/i386/pc/chainloader.h: New file.
50222 * loader/i386/pc/chainloader_normal.c: Likewise.
50223
2c1f4ce3 502242004-09-11 Marco Gerards <metgerards@student.han.nl>
50225
50226 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
50227 (grub_mkimage_LDFLAGS): Likewise.
50228 (grub_emu_SOURCES): Likewise.
50229 (kernel_img_HEADERS): Added fshelp.h.
50230 * fs/ext2.c: Include <grub/fshelp.h>.
50231 (FILETYPE_REG): New macro.
50232 (FILETYPE_INO_REG): Likewise.
50233 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
50234 Changed all users.
50235 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
50236 all users.
50237 (grub_fshelp_node): New struct.
50238 (grub_ext2_data): Added member `diropen'. Changed member `inode'
50239 to a pointer.
50240 (grub_ext2_get_file_block): Removed function.
50241 (grub_ext2_read_block): New function.
50242 (grub_ext2_read_file): Replaced parameter `data' by `node'.
50243 This function was written.
50244 (grub_ext2_mount): Read the root inode. Create a diropen struct.
50245 (grub_ext2_find_file): Removed function.
50246 (grub_ext2_read_symlink): New function.
50247 (grub_ext2_iterate_dir): Likewise.
50248 (grub_ext2_open): Rewritten.
50249 (grub_ext2_dir): Rewritten.
50250 * include/grub/fshelp.h: New file.
50251 * fs/fshelp.c: Likewise.
50252
3c52136a 502532004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
50254
50255 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
50256 (print_message): Add a missing newline.
50257 (run_menu): Added timeout support.
50258 (run_menu_entry): New local function.
50259 (grub_menu_run): Added support for booting.
50260
50261 * kern/loader.c (grub_loader_is_loaded): New function.
50262
50263 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
50264 (grub_get_rtc): Exported.
50265
50266 * include/grub/i386/pc/time.h: Include grub/symbol.h.
50267 (grub_get_rtc): Exported.
50268
50269 * include/grub/normal.h (struct grub_command_list): Remove
50270 constant from the member `command'.
50271
50272 * include/grub/loader.h (grub_loader_is_loaded): Declared.
50273
50274 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
50275
50276 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
50277
aa033560 502782004-08-28 Marco Gerards <metgerards@student.han.nl>
50279
50280 Add support for the JFS filesystem.
50281
50282 * fs/jfs.c: New file.
50283 * include/grub/fs.h (grub_jfs_init): New prototype.
50284 (grub_jfs_fini): New prototype.
50285 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
50286 (grub_emu_SOURCES): Likewise.
50287 (pkgdata_MODULES): Add jfs.mod.
50288 (jfs_mod_SOURCES): New variable.
50289 (jfs_mod_CFLAGS): Likewise.
50290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
50291 (grubof_SOURCES): Likewise.
50292 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
50293
50294 * fs/fat.c (grub_fat_find_dir): Convert the filename little
50295 endian to the host endian.
50296 (grub_fat_utf16_to_utf8): Move function from there...
50297 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 50298 the endianness of the source string anymore.
aa033560 50299 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
50300
94bc45af 503012004-08-24 Marco Gerards <metgerards@student.han.nl>
50302
50303 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
50304 (grub_boot_fini) [GRUB_UTIL]: Likewise.
50305 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
50306 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 50307
94bc45af 50308 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
50309 (grub_hfs_iterate_dir): Make the function static. Add prototypes
50310 for `node_found' and `it_dir'.
50311 (grub_hfs_dir): Add prototype for `dir_hook'.
50312
50313 * fs/minix.c (grub_minix_get_file_block): Add prototype for
50314 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
50315 and `indir32' to silence a gcc warning.
50316
50317 * include/grub/fs.h (grub_hfs_init): New prototype.
50318 (grub_hfs_fini): Likewise.
f19dbdb7 50319
50320
97543f08 503212004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
50322
50323 Each disk device has its own id now. This is useful to make use
50324 of multiple disk devices.
f19dbdb7 50325
97543f08 50326 * include/grub/disk.h (grub_disk_dev_id): New enum.
50327 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
50328 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
50329
50330 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
50331 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50332
50333 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
50334 GRUB_DISK_DEVICE_OFDISK_ID as an id.
50335
50336 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
50337 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50338
50339 * include/grub/disk.h (struct grub_disk_dev): Added a new member
50340 "id" which is used by the cache manager.
50341
50342 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
50343 of just "GRUB".
50344
64372eb4 503452004-08-18 Marco Gerards <metgerards@student.han.nl>
50346
50347 * fs/hfs.c: New file.
50348 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
50349 (grub_emu_SOURCES): Likewise.
50350 (pkgdata_MODULES): Add hfs.mod.
50351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
50352 (grubof_SOURCES): Likewise.
50353 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
50354
50355 * include/grub/misc.h (grub_strncasecmp): Add prototype.
50356 * kern/misc.c (grub_strncasecmp): Add function.
50357
cc61b58f 503582004-08-14 Marco Gerards <metgerards@student.han.nl>
50359
50360 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
50361 with parentheses.
50362
50363 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
50364 (grub_ext2_dir): In case the directory entry type is unknown, read
50365 it from the inode.
50366
0ef123f6 503672004-08-02 Peter Bruin <pjbruin@dds.nl>
50368
50369 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
50370 grub_load_linux instead of grub_rescue_cmd_linux as second
50371 argument of grub_rescue_register_command.
50372
50373 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
50374
a447c5df 503752004-07-27 Marco Gerards <metgerards@student.han.nl>
50376
50377 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
50378 function.
50379 * commands/boot.c: Remove the check for `GRUB_UTIL'.
50380 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50381 `loader/powerpc/ieee1275/linux.c',
50382 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
50383 * include/grub/powerpc/ieee1275/ieee1275.h
50384 (grub_ieee1275_release): New prototype.
50385 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
50386 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
50387 normal, boot, linux and linux_normal.
50388 * loader/powerpc/ieee1275/linux.c: New file.
50389 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
50390
5a9e3546 503912004-07-12 Marco Gerards <metgerards@student.han.nl>
50392
50393 * normal/arg.c (grub_arg_parse): Correct error handling after
50394 reallocating the argumentlist (check if `argl' is not null instead
50395 of checking if `args' is not null).
50396 * kern/mm.c (grub_realloc): Return the same pointer when using the
50397 same region, instead of returning the header address.
50398
e15199cb 503992004-07-11 Marco Gerards <metgerards@student.han.nl>
50400
50401 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
50402 one block instead of two when looking for the initial partition.
50403 (grub_partition_probe): Initialize the local variable `p' with 0.
50404 Use base 10 for the grub_strtoul call.
50405 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
50406 need for one local variable.
50407 (grub_strtoul): Don't add the new value to `num', instead of that
50408 just assign it.
50409
020616c2 504102004-07-11 Marco Gerards <metgerards@student.han.nl>
50411
50412 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
50413 (pxeboot_img_SOURCES): New variable.
50414 (pxeboot_img_ASFLAGS): Likewise.
50415 (pxeboot_img_LDFLAGS): Likewise.
50416 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
50417 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
50418 <lode_leroy@hotmail.com>.
50419
6c51eb64 504202004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50421
50422 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
50423 there was no input.
50424
cfb12aff 504252004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50426
50427 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
50428 the history buffer logic.
50429
6eabba74 504302004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50431
50432 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
50433 (FILETYPE_INO_SYMLINK): New macros.
50434 (grub_ext2_find_file): Check if the node is a directory using the
50435 inode stat information instead of using the filetype in the
50436 dirent. Exclude the first character of an absolute symlink.
50437 (grub_ext2_dir): Mask out the filetype part of the mode member of
50438 the inode.
50439
66e19ef8 504402004-05-24 Marco Gerards <metgerards@student.han.nl>
50441
50442 Add support for UFS version 1 and 2. Add support for the minix
50443 filesystem version 1 and 2, both the variants with 14 and 30 long
50444 filenames.
f19dbdb7 50445
66e19ef8 50446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
50447 fs/minix.c.
50448 (grub_emu_SOURCES): Likewise.
50449 (pkgdata_MODULES): Add ufs.mod and minix.mod.
50450 (ufs_mod_SOURCES): New variable.
50451 (ufs_mod_CFLAGS): Likewise.
50452 (minix_mod_SOURCES): Likewise.
50453 (minix_mod_CFLAGS): Likewise.
50454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
50455 fs/minix.c.
50456 (grubof_SOURCES): Likewise.
50457 * fs/ufs.c: New file.
50458 * fs/minix.c: New file.
50459 * include/grub/fs.h (grub_ufs_init): New prototype.
50460 (grub_ufs_fini): Likewise.
50461 (grub_minix_init): Likewise.
50462 (grub_minix_fini): Likewise.
50463 * util/grub-emu.c (main): Initialize and deinitialize UFS and
50464 minix fs.
50465
cc2e748a 504662004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
50467
50468 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
50469 commands/ls.c, commands/terminal.c, commands/boot.c,
50470 commands/cmp.c and commands/cat.c.
50471 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
50472
50473 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
50474 "env.h"
50475
4b13b216 504762004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50477
50478 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
50479 and grub_, respectively. Because the conversion is trivial and
50480 mechanical, I omit the details here. Please refer to the CVS
50481 if you need more information.
50482
6a142551 504832004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50484
50485 * include/pupa: Renamed to ...
50486 * include/grub: ... this.
50487 * util/i386/pc/pupa-mkimage.c: Renamed to ...
50488 * util/i386/pc/grub-mkimage.c: ... this.
50489 * util/i386/pc/pupa-setup.c: Renamed to ...
50490 * util/i386/pc/grub-setup.c: ... this.
50491 * util/pupa-emu.c: Renamed to ...
50492 * util/grub-emu.c: ... this.
50493
e56cdf21 504942004-03-29 Marco Gerards <metgerards@student.han.nl>
50495
50496 Add support for the newworld apple macintosh (PPC). This has been
50497 tested on the powerbook 2000 only. It only adds support for
50498 generic ieee1275 functions, console and disk support. This should
50499 be easy to port to other architectures with support for Open
50500 Firmware.
f19dbdb7 50501
e56cdf21 50502 * configure.ac: Accept the powerpc as host_cpu. In the case of
50503 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
50504 specific tests are only executed while building for the i386.
50505 Inverse test for crosscompile.
50506 * genmk.rb (Utility): Allow assembler files.
50507 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
50508 * conf/powerpc-ieee1275.rmk: New file.
50509 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
50510 * disk/powerpc/ieee1275/partition.c: Likewise.
50511 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
50512 * include/pupa/powerpc/ieee1275/console.h: Likewise.
50513 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
50514 * include/pupa/powerpc/ieee1275/time.h: Likewise.
50515 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
50516 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
50517 * include/pupa/powerpc/ieee1275/loader.h
50518 * include/pupa/powerpc/setjmp.h: Likewise.
50519 * include/pupa/powerpc/types.h: Likewise.
50520 * kern/powerpc/ieee1275/init.c: Likewise.
50521 * kern/powerpc/ieee1275/openfw.c: Likewise.
50522 * term/powerpc/ieee1275/ofconsole.c: Likewise.
50523
50524 These files were written by Johan Rydberg
50525 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 50526
e56cdf21 50527 * boot/powerpc/ieee1275/cmain.c: New file.
50528 * boot/powerpc/ieee1275/crt0.S: Likewise.
50529 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
50530 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
50531
8c8cc205 505322004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
50533
50534 * Makefile.in: Update copyright.
50535 * genmodsrc.sh: Likewise.
50536 * gensymlist.sh: Likewise.
50537 * term/i386/pc/vga.c: Indent correctly.
50538
50539 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
50540 bugreporting address.
50541 * util/i386/pc/pupa-setup.c (usage): Likewise,
50542 (main): Call pupa_ext2_init and pupa_ext2_fini.
50543
f19dbdb7 50544 * fs/fat.c (log2): Renamed to ...
8c8cc205 50545 (fat_log2): ... this.
50546 All callers changed.
50547 * kern/misc.c (memcpy): Alias to pupa_memmove.
50548 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
50549 lvalue cast.
50550 * util/console.c (pupa_ncurses_fini): Return 0.
50551
50552 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
50553 Move fail label here.
50554 [__GNU__]: Don't warn when using stat.
50555 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
50556 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
50557 long int. Use strtol instead of strtoul.
f19dbdb7 50558
db1771cf 505592004-03-14 Marco Gerards <metgerards@student.han.nl>
50560
50561 * commands/boot.c: New file.
50562 * commands/cat.c: Likewise.
50563 * commands/cmp.c: Likewise.
50564 * commands/ls.c: Likewise.
50565 * commands/terminal.c: Likewise.
50566 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
50567 (pupa_register_command): Changed interface to match the new
50568 argument parser.
50569 (pupa_command_execute): Changed (almost rewritten) so it uses
50570 pupa_split_command. Added support for setting variables using the
50571 syntax `foo=bar'.
50572 (rescue_command): Changed to work with the new argument parser.
50573 (terminal_command): Moved from here to commands/terminal.c.
50574 (set_command): New function.
50575 (unset_command): New function.
50576 (insmod_command): New function.
50577 (rmmod_command): New function.
50578 (lsmod_command): New function.
50579 (pupa_command_init): Don't initialize the command terminal
50580 anymore. Initialize the commands set, unset, insmod, rmmod and
50581 lsmod.
50582 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
50583 (kernel_img_HEADERS): Add arg.h and env.h.
50584 (pupa_mkimage_LDFLAGS): Add kern/env.c.
50585 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
50586 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
50587 normal/arg.c.
50588 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
50589 terminal.mod.
50590 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
50591 (boot_mod_SOURCES): New variable.
50592 (terminal_mod_SOURCES): Likewise.
50593 (ls_mod_SOURCES): Likewise.
50594 (cmp_mod_SOURCES): Likewise.
50595 (cat_mod_SOURCES): Likewise.
50596
50597 * normal/arg.c: New file.
50598 * kern/env.c: Likewise.
50599 * include/pupa/arg.h: Likewise.
50600 * include/pupa/env.h: Likewise.
50601 * font/manager.c (font_command): Changed to match argument parsing
50602 interface changes.
50603 (PUPA_MOD_INIT): Likewise.
50604 * hello/hello.c (pupa_cmd_hello): Likewise.
50605 (PUPA_MOD_INIT): Likewise.
50606 * include/pupa/disk.h: Include <pupa/device.h>.
50607 (pupa_print_partinfo): New prototype.
50608 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
50609 (pupa_dl_get_prefix): Likewise.
50610 * include/pupa/misc.h: Include <pupa/err.h>.
50611 (pupa_isgraph): New prototype.
50612 (pupa_isdigit): Likewise.
50613 (pupa_split_cmdline): Likewise.
50614 * include/pupa/normal.h: Include <pupa/arg.h>.
50615 (pupa_command): Changed the prototype of the member `func' to
50616 match the argument parsing interface. Added member `options'.
50617 (pupa_register_command): Updated to match function.
50618 (pupa_arg_parse): New prototype.
50619 (pupa_hello_init) [PUPA_UTIL]: New prototype.
50620 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
50621 (pupa_ls_init) [PUPA_UTIL]: Likewise.
50622 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
50623 (pupa_cat_init) [PUPA_UTIL]: Likewise.
50624 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
50625 (pupa_boot_init) [PUPA_UTIL]: Likewise.
50626 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
50627 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
50628 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
50629 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
50630 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
50631 * kern/disk.c: Include <pupa/file.h>.
50632 (pupa_print_partinfo): New function.
50633 * kern/dl.c: Include <pupa/env.h>.
50634 (pupa_dl_dir): Variable removed.
50635 (pupa_dl_load): Use the environment variable `prefix' instead of
50636 the variable pupa_dl_dir.
50637 (pupa_dl_set_prefix): Function removed.
50638 (pupa_dl_get_prefix): Likewise.
50639 * kern/i386/pc/init.c: Include <pupa/env.h>.
50640 (pupa_machine_init): Use the environment variable `prefix' instead of
50641 using pupa_dl_set_prefix to set the prefix.
50642 * kern/main.c: Include <pupa/env.h>.
50643 (pupa_set_root_dev): Use the environment variable `prefix' instead of
50644 using pupa_dl_get_prefix to get the prefix.
50645 * kern/misc.c: Include <pupa/env.h>.
50646 (pupa_isdigit): New function.
50647 (pupa_isgraph): Likewise.
50648 (pupa_ftoa): Likewise.
50649 (pupa_vsprintf): Added support for printing values of the type
50650 `double'. Make it possible to format variable output when using
50651 formatting like `%1.2%f'.
50652 (pupa_split_cmdline): New function.
50653 * kern/rescue.c: Include <pupa/env.h>.
50654 (next_word): Removed function.
50655 (pupa_rescue_cmd_prefix): Likewise.
50656 (pupa_rescue_cmd_set): New function.
50657 (pupa_rescue_cmd_unset): New function.
50658 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
50659 split the command line instead of splitting it here. Added
50660 support for setting variables using the syntax `foo=bar'. Don't
50661 initialize the prefix command anymore. Initialized the set and
50662 unset commands.
50663 * normal/cmdline.c: Include <pupa/env.h>.
50664 (pupa_tab_complete): Added prototypes for print_simple_completion,
50665 print_partition_completion, add_completion, iterate_commands,
50666 iterate_dev, iterate_part and iterate_dir. Moved code to print
50667 partition information from here to kern/disk.c.
fe6b695a 50668 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 50669 * normal/main.c: Include <pupa/env.h>.
50670 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
50671 instead of using pupa_dl_get_prefix to get the prefix.
50672 * term/i386/pc/vga.c: Include <pupa/arg.h>.
50673 (check_vga_mem): Cast pointers to `void *' to silence a gcc
50674 warning.
50675 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
50676 (pupa_vga_setcolor): Declare unused variables with `__attribute__
50677 ((unused))' to silence a gcc warning.
50678 (pupa_vga_setcolor): Likewise.
50679 (debug_command): Changed to match argument parsing
50680 interface changes.
50681 * util/pupa-emu.c: Include <pupa/env.h>.
50682 (options): Added 0's for unused fields to silence a gcc warning.
50683 (argp): Likewise.
50684 (main): Use the environment variable `prefix' instead of using
50685 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
50686 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
50687 and terminal.
50688
50689 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
50690 * util/misc.c: Include <malloc.h>.
50691 (pupa_malloc): Rewritten so errors are correctly reported.
50692 (pupa_realloc): Likewise.
50693 (pupa_memalign): Likewise.
50694 (pupa_mm_init_region): Declare unused variables with
50695 `__attribute__ ((unused))' to silence a gcc warning.
50696 * normal/i386/setjmp.S: Remove tab at the end of the file to
50697 silence a gcc warning.
50698 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
50699 variables with `__attribute__ ((unused))' to silence a gcc
50700 warning.
50701 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
50702 local variable i unsigned to silence a gcc warning.
50703
50704 * kern/term.c: Include <pupa/misc.h>.
50705 (pupa_more_lines): New variable.
50706 (pupa_more): Likewise.
50707 (pupa_putcode): When the pager is active pause at the end of every
50708 screen.
50709 (pupa_set_more): New function.
50710 * include/pupa/term.h (pupa_set_more): New prototype.
50711
50712
3b1139cb 507132004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
50714
50715 Now this project is GRUB 2 rather than PUPA. The location of
50716 the CVS repository was moved to GRUB's.
f19dbdb7 50717
3b1139cb 50718 * configure.ac: Use bug-grub as the reporting address.
50719 Use GRUB instead of PUPA.
50720 Change the version number to 1.90.
50721
8367695c 507222004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
50723
50724 * genkernsyms.sh: Updated copyright information.
50725 * genmk.rb: Likewise.
50726 * genmodsrc.sh: Likewise.
50727 * gensymlist.sh: Likewise.
50728 * boot/i386/pc/boot.S: Likewise.
50729 * boot/i386/pc/diskboot.S: Likewise.
50730 * disk/i386/pc/biosdisk.c: Likewise.
50731 * disk/i386/pc/partition.c: Likewise.
50732 * font/manager.c: Likewise.
50733 * fs/ext2.c: Likewise.
50734 * fs/fat.c: Likewise.
50735 * include/pupa/boot.h: Likewise.
50736 * include/pupa/device.h: Likewise.
50737 * include/pupa/disk.h: Likewise.
50738 * include/pupa/dl.h: Likewise.
50739 * include/pupa/elf.h: Likewise.
50740 * include/pupa/err.h: Likewise.
50741 * include/pupa/file.h: Likewise.
50742 * include/pupa/font.h: Likewise.
50743 * include/pupa/fs.h: Likewise.
50744 * include/pupa/kernel.h: Likewise.
50745 * include/pupa/loader.h: Likewise.
50746 * include/pupa/misc.h: Likewise.
50747 * include/pupa/mm.h: Likewise.
50748 * include/pupa/net.h: Likewise.
50749 * include/pupa/normal.h: Likewise.
50750 * include/pupa/rescue.h: Likewise.
50751 * include/pupa/setjmp.h: Likewise.
50752 * include/pupa/symbol.h: Likewise.
50753 * include/pupa/term.h: Likewise.
50754 * include/pupa/types.h: Likewise.
50755 * include/pupa/i386/setjmp.h: Likewise.
50756 * include/pupa/i386/types.h: Likewise.
50757 * include/pupa/i386/pc/biosdisk.h: Likewise.
50758 * include/pupa/i386/pc/boot.h: Likewise.
50759 * include/pupa/i386/pc/console.h: Likewise.
50760 * include/pupa/i386/pc/init.h: Likewise.
50761 * include/pupa/i386/pc/kernel.h: Likewise.
50762 * include/pupa/i386/pc/linux.h: Likewise.
50763 * include/pupa/i386/pc/loader.h: Likewise.
50764 * include/pupa/i386/pc/memory.h: Likewise.
50765 * include/pupa/i386/pc/multiboot.h: Likewise.
50766 * include/pupa/i386/pc/partition.h: Likewise.
50767 * include/pupa/i386/pc/time.h: Likewise.
50768 * include/pupa/i386/pc/vga.h: Likewise.
50769 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
50770 * include/pupa/util/getroot.h: Likewise.
50771 * include/pupa/util/misc.h: Likewise.
50772 * include/pupa/util/resolve.h: Likewise.
50773 * kern/device.c: Likewise.
50774 * kern/disk.c: Likewise.
50775 * kern/dl.c: Likewise.
50776 * kern/err.c: Likewise.
50777 * kern/file.c: Likewise.
50778 * kern/fs.c: Likewise.
50779 * kern/loader.c: Likewise.
50780 * kern/main.c: Likewise.
50781 * kern/misc.c: Likewise.
50782 * kern/mm.c: Likewise.
50783 * kern/rescue.c: Likewise.
50784 * kern/term.c: Likewise.
50785 * kern/i386/dl.c: Likewise.
50786 * kern/i386/pc/init.c: Likewise.
50787 * kern/i386/pc/lzo1x.S: Likewise.
50788 * kern/i386/pc/startup.S: Likewise.
50789 * loader/i386/pc/chainloader.c: Likewise.
50790 * loader/i386/pc/linux.c: Likewise.
50791 * loader/i386/pc/multiboot.c: Likewise.
50792 * normal/cmdline.c: Likewise.
50793 * normal/command.c: Likewise.
50794 * normal/main.c: Likewise.
50795 * normal/menu.c: Likewise.
50796 * normal/i386/setjmp.S: Likewise.
50797 * term/i386/pc/console.c: Likewise.
50798 * term/i386/pc/vga.c: Likewise.
50799 * util/console.c: Likewise.
50800 * util/genmoddep.c: Likewise.
50801 * util/misc.c: Likewise.
50802 * util/pupa-emu.c: Likewise.
50803 * util/resolve.c: Likewise.
50804 * util/unifont2pff.rb: Likewise.
50805 * util/i386/pc/biosdisk.c: Likewise.
50806 * util/i386/pc/getroot.c: Likewise.
50807 * util/i386/pc/pupa-mkimage.c: Likewise.
50808 * util/i386/pc/pupa-setup.c: Likewise.
50809
e6eced71 508102004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
50811
50812 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
50813 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
50814 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
50815 reading and reset it after reading.
50816 (pupa_ext2_close): Return PUPA_ERR_NONE.
50817
50818 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
50819 Correct value.
50820 (struct linux_kernel_header): Add kernel_version and
50821 initrd_addr_max.
50822 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
50823 pupa_file_read succeeds.
50824 (pupa_rescue_cmd_initrd): Implement.
50825
5aded270 508262003-12-03 Marco Gerards <metgerards@student.han.nl>
50827
50828 * fs/ext2.c (pupa_ext2_label): New function.
50829 (pupa_ext2_fs): Added label.
50830 * fs/fat.c (pupa_fat_label): New function.
50831 (pupa_fat_fs): Added label.
50832 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
50833
50834 * kern/misc.c (pupa_strndup): New function.
50835 * include/pupa/misc.h (pupa_strndup): New prototype.
50836
50837 * include/pupa/normal.h: Include <pupa/err.h>.
50838 (pupa_set_history): New prototype.
50839 (pupa_iterate_commands): New prototype.
50840 * normal/cmdline.c: Include <pupa/machine/partition.h>,
50841 <pupa/disk.h>, <pupa/file.h>.
50842 (hist_size): New variable.
50843 (hist_lines): Likewise.
50844 (hist_end): Likewise.
50845 (hist_used): Likewise.
50846 (pupa_set_history): New function.
50847 (pupa_history_get): Likewise.
50848 (pupa_history_add): Likewise.
50849 (pupa_history_replace): Likewise.
50850 (pupa_tab_complete): Likewise.
50851 (pupa_cmdline_run): Added tab completion and history buffer. Tab
50852 completion shows partitionnames while completing partitions, this
50853 feature was suggested by Jeff Bailey.
50854 * normal/command.c (pupa_iterate_commands): New function.
50855 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
50856 (pupa_normal_init): Initialize history buffer.
50857 (PUPA_MOD_INIT): Likewise.
50858 (pupa_normal_fini): Free the history buffer.
50859 (PUPA_MOD_FINI): Likewise.
50860
50861 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
50862 key.
50863
50864 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
50865 * configure.ac [i386]: Check for regparam bug.
50866 (NESTED_FUNC_ATTR) [! i386]: Defined.
50867
1f7315a3 508682003-11-17 Marco Gerards <metgerards@student.han.nl>
50869
50870 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
50871 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
50872 (pupa_emu_SOURCES): New variable.
50873 (pupa_emu_LDFLAGS): Likewise.
50874 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
50875 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
50876 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
50877 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
50878 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
50879 (pupa_jmp_buf): New typedef.
50880 (pupa_setjmp) [PUPA_UTIL]: New macro.
50881 (pupa_longjmp) [PUPA_UTIL]: Likewise.
50882 * include/pupa/term.h (struct pupa_term): New member `refresh'.
50883 (pupa_refresh): New prototype.
50884 * include/pupa/util/getroot.h: New file.
50885 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
50886 it.
50887 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
50888 (pupa_rescue_cmd_cat): Likewise.
50889 (pupa_rescue_cmd_ls): Likewise.
50890 (pupa_rescue_cmd_testload): Likewise.
50891 (pupa_rescue_cmd_lsmod): Likewise.
50892 * normal/cmdline.c (pupa_cmdline_get): Likewise.
50893 * normal/menu.c (run_menu): Likewise.
50894 * kern/term.c (pupa_cls): Likewise.
50895 (pupa_refresh): New function.
50896 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
50897 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
50898 * util/console.c: New file.
f19dbdb7 50899
1f7315a3 50900 * util/i386/pc/getroot.c: New file.
50901 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
50902 (pupa_putchar): New function.
50903 (pupa_refresh): Likewise.
50904 (xgetcwd): Function moved to ...
50905 (strip_extra_slashes): Likewise.
50906 (get_prefix): Likewise.
f19dbdb7 50907 * util/i386/pc/getroot.c: ... here.
1f7315a3 50908 (find_root_device): Function moved and renamed to...
50909 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
50910 Changed all callers.
50911 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
50912 and renamed to...
50913 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
50914 Changed all callers.
50915 * util/misc.c (pupa_memalign): New function.
50916 (pupa_mm_init_region): Likewise.
50917 (pupa_register_exported_symbols): Likewise.
50918 (pupa_putchar): Function removed.
50919 * util/pupa-emu.c: New file.
50920
9a5c1ade 509212003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
50922
50923 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
50924 (_multiboot_mod_SOURCES): New variable.
50925 (_multiboot_mod_CFLAGS): Likewise.
50926 * loader/i386/pc/multiboot.c: New file.
50927 * include/pupa/i386/pc/multiboot.h: Likewise.
50928 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
50929 (pupa_multiboot_real_boot): New function.
50930 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
50931 (pupa_multiboot_real_boot): New prototype.
50932 (pupa_rescue_cmd_multiboot): Likewise
50933 (pupa_rescue_cmd_module): Likewise.
50934
50935 * kern/loader.c (pupa_loader_set): Continue when
50936 pupa_loader_unload_func() fails.
50937 (pupa_loader_unset): New function.
50938 * include/pupa/loader.h (pupa_loader_unset): New prototype.
50939
50940 * kern/misc.c (pupa_stpcpy): New function.
50941 * include/pupa/misc.h (pupa_stpcpy): New prototype.
50942
8e72a9c0 509432003-11-12 Marco Gerards <metgerards@student.han.nl>
50944
50945 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
50946 for available extensions.
50947
50948 * include/pupa/i386/pc/time.h: New file.
50949 * kern/disk.c: Include <pupa/machine/time.h>.
50950 (PUPA_CACHE_TIMEOUT): New macro.
50951 (pupa_last_time): New variable.
50952 (pupa_disk_open): Flush the cache when there was a timeout.
50953 (pupa_disk_close): Reset the timer.
50954 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
50955 pupa_currticks.
50956 * util/misc.c: Include <sys/times.h>
50957 (pupa_get_rtc): New function.
50958
c4adbd32 509592003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
50960
50961 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
50962 as blocks.
50963 (pupa_ext2_get_file_block): Use blocks member.
50964
50965 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
50966 first block. Return -1 instead of pupa_errno on error.
50967
bfd30f06 509682003-10-27 Marco Gerards <metgerards@student.han.nl>
50969
50970 * README: In the pupa-mkimage example use _chain instead of chain
50971 and ext2 instead of fat.
50972 * TODO: Replace ext2fs with jfs as an example. Add an item for
50973 adding journal playback for ext2fs.
50974 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
50975 (pkgdata_MODULES): Added ext2.mod.
50976 (ext2_mod_SOURCES): New variable.
50977 (ext2_mod_CFLAGS): Likewise.
50978 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
50979 * include/pupa/misc.h (pupa_strncpy): New prototype.
50980 (pupa_strcat): Likewise.
50981 (pupa_strncmp): Likewise.
50982 * kern/misc.c (pupa_strcat): Enable function.
50983 (pupa_strncpy): New function.
50984 (pupa_strncmp): Likewise.
50985 * fs/ext2.c: New file.
f19dbdb7 50986
bfd30f06 50987 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
50988 when the read failed before retrying.
50989 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
50990 (_FILE_OFFSET_BITS): Likewise.
50991 * configure.ac: Added AC_SYS_LARGEFILE.
50992
98d15063 509932003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
50994
50995 * genmk.rb (PModule#rule): Make sure to get only symbol names
50996 from the output of nm.
59cad637 50997 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 50998
18d9c7cd 509992003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51000
51001 I forgot to check in these changes for a long time. This adds
51002 incomplete support for VGA console, and this is still very
51003 buggy. Also, a lot of consideration is required for I18N,
51004 UNICODE, and VGA font issues. Therefore, assume that this is
51005 such that "better than nothing".
f19dbdb7 51006
18d9c7cd 51007 * font/manager.c: New file.
51008 * include/pupa/font.h: Likewise.
51009 * include/pupa/i386/pc/vga.h: Likewise.
51010 * term/i386/pc/vga.c: Likewise.
51011 * util/unifont2pff.rb: Likewise.
51012
51013 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
51014 (pkgdata_MODULES): Added vga.mod and font.mod.
51015 (vga_mod_SOURCES): New variables.
51016 (vga_mod_CFLAGS): Likewise.
51017 (font_mod_SOURCES): Likewise.
51018 (font_mod_CFLAGS): Likewise.
51019
51020 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
51021
51022 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 51023 (struct pupa_term): Added init and fini.
18d9c7cd 51024 Changed the argument of putchar to pupa_uint32_t.
51025
51026 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
51027 (pupa_console_real_putchar): New prototype.
51028 (pupa_console_putchar): Removed.
51029 (pupa_console_checkkey): Exported.
51030 (pupa_console_getkey): Likewise.
51031
51032 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
51033 characters.
51034
51035 * kern/term.c (pupa_term_set_current): Rewritten.
51036 (pupa_putchar): Likewise.
51037 (pupa_putcode): New function.
51038
51039 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
51040 (pupa_console_real_putchar): ... this.
51041 (pupa_vga_set_mode): New function.
51042 (pupa_vga_get_font): Likewise.
51043
51044 * normal/command.c: Include pupa/term.h.
51045 (terminal_command): New function.
51046 (pupa_command_init): Register the command "terminal".
51047
51048 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
51049 (DISP_UP): Likewise.
51050 (DISP_RIGHT): Likewise.
51051 (DISP_DOWN): Likewise.
51052 (DISP_HLINE): Likewise.
51053 (DISP_VLINE): Likewise.
51054 (DISP_UL): Likewise.
51055 (DISP_UR): Likewise.
51056 (DISP_LL): Likewise.
51057 (DISP_LR): Likewise.
51058
51059 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 51060
977329f5 510612003-02-08 NIIBE Yutaka <gniibe@m17n.org>
51062
51063 * util/resolve.c (pupa_util_resolve_dependencies): BUG
51064 FIX. Reverse the path_list.
51065
51066 * include/pupa/normal.h: Export pupa_register_command and
51067 pupa_unregister_command.
51068
51069 * hello/hello.c (pupa_cmd_hello): New module.
51070 * conf/i386-pc.rmk: Added hello.mod.
51071
1f5ab428 510722003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
51073
51074 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 51075
1f5ab428 51076 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
51077 (compress_kernel): New variable.
51078 (generate_image): Heavily modified to support compressing a
51079 large part of the core image.
51080
51081 * util/misc.c (pupa_util_read_image): Fix a file descriptor
51082 leak.
51083 (pupa_util_load_image): New function.
51084
51085 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
51086 (pupa_compressed_size): New variable.
51087 (codestart): Enable Gate A20 here.
51088 Decompress the compressed part of the core image.
51089 Rearrange the code to put functions and variables which are
51090 required for initialization in the non-compressed part.
51091 Include lzo1x.S.
51092
51093 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
51094 here.
51095
51096 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
51097
f19dbdb7 51098 * include/pupa/i386/pc/kernel.h
1f5ab428 51099 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
51100 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
51101 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51102 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51103 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
51104
51105 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
51106
51107 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
51108 (Utility#rule): Likewise.
51109
51110 * configure.ac: Check if LZO is available.
51111
ce5bf700 511122003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
51113
51114 * include/pupa/normal.h: New file.
51115 * include/pupa/setjmp.h: Likewise.
51116 * include/pupa/i386/setjmp.h: Likewise.
51117 * normal/cmdline.c: Likewise.
51118 * normal/command.c: Likewise.
51119 * normal/main.c: Likewise.
51120 * normal/menu.c: Likewise.
51121 * normal/i386/setjmp.S: Likewise.
f19dbdb7 51122
ce5bf700 51123 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
51124 (pupa_rescue_cmd_initrd): Likewise.
51125
51126 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
51127 Likewise.
51128
51129 * kern/i386/pc/startup.S (translation_table): New variable.
51130 (translate_keycode): New function.
51131 (pupa_console_getkey): Call translate_keycode.
51132
51133 * kern/rescue.c (attempt_normal_mode): New function.
51134 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
51135 it failed, print a message.
51136
51137 * kern/mm.c (pupa_real_malloc): Print more information when a
51138 free magic is broken.
51139 (pupa_free): If the first free header is not free actually, set
51140 it to P.
51141
51142 * kern/main.c (pupa_load_normal_mode): Just load the module
51143 "normal".
51144 (pupa_main): Don't print the message
51145 "Entering into rescue mode..." here.
51146
51147 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
51148 Declared.
51149 (pupa_rescue_cmd_initrd): Likewise.
51150 (pupa_rescue_cmd_initrd): Likewise.
51151
51152 * include/pupa/symbol.h (FUNCTION): Specify the type.
51153 (VARIABLE): Likewise.
51154
51155 * include/pupa/err.h (pupa_err_t): Added
51156 PUPA_ERR_UNKNOWN_COMMAND.
51157
51158 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
51159 (pupa_dl_get_prefix): Likewise.
51160
51161 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
51162 Added _chain.mod and _linux.mod instead of chain.mod and
51163 linux.mod.
51164 (chain_mod_SOURCES): Renamed to ...
51165 (_chain_mod_SOURCES): ... this.
51166 (chain_mod_CFLAGS): Renamed to ...
51167 (_chain_mod_CFLAGS): ... this.
51168 (linux_mod_SOURCES): Renamed to ...
51169 (_linux_mod_SOURCES): ... this.
51170 (linux_mod_CFLAGS): Renamed to ...
51171 (_linux_mod_CFLAGS): ... this.
51172 (normal_mod_SOURCES): New variable.
51173 (normal_mod_CFLAGS): Likewise.
51174 (normal_mod_ASFLAGS): Likewise.
51175
511762003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
51177
51178 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
51179 possible.
51180
fe6b695a 51181 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 51182 recursively.
51183 (pupa_dl_unref): Unrefer depending modules recursively.
51184 Don't call pupa_dl_unload implicitly, because PUPA can crash if
51185 a module is unloaded before one depending on that module is
51186 unloaded.
51187 (pupa_dl_unload): Unload depending modules explicitly,
51188 if possible.
51189
c04da074 511902003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
51191
51192 * include/pupa/i386/pc/linux.h: New file.
51193 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 51194
c04da074 51195 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
51196 Removed.
51197 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
51198 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
51199 of PUPA_CHAINLOADER_BOOT_SECTOR.
51200
51201 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
51202 (pupa_linux_prot_size): New variable.
51203 (pupa_linux_tmp_addr): Likewise.
51204 (pupa_linux_real_addr): Likewise.
51205 (pupa_linux_boot_zimage): New function.
51206 (pupa_linux_boot_bzimage): Likewise.
51207
51208 * kern/i386/pc/init.c (struct mem_region): New structure.
51209 (MAX_REGIONS): New macro.
51210 (mem_regions): New variable.
51211 (num_regions): Likewise.
51212 (pupa_os_area_addr): Likewise.
51213 (pupa_os_area_size): Likewise.
51214 (pupa_lower_mem): Likewise.
51215 (pupa_upper_mem): Likewise.
51216 (add_mem_region): New function.
51217 (compact_mem_regions): Likewise.
51218 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
51219 the size of the conventional memory and that of so-called upper
51220 memory (before the first memory hole).
51221 Instead of adding each found region to free memory, use
51222 add_mem_region and add them after removing overlaps.
51223 Also, add only 1/4 of the upper memory to free memory. The rest
51224 is used for loading OS images. Maybe this is ad hoc, but this
51225 makes it much easier to relocate OS images when booting.
51226
51227 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
51228 (pupa_enter_rescue_mode): Don't register initrd and module.
51229
51230 * kern/mm.c: Include pupa/dl.h.
51231
51232 * kern/main.c: Include pupa/file.h and pupa/device.h.
51233
51234 * kern/loader.c (pupa_loader_load_module_func): Removed.
51235 (pupa_loader_load_module): Likewise.
51236
51237 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
51238 ``.o''.
51239
51240 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
51241 (pupa_linux_tmp_addr): Likewise.
51242 (pupa_linux_real_addr): Likewise.
51243 (pupa_linux_boot_zimage): Likewise.
51244 (pupa_linux_boot_bzimage): Likewise.
51245
51246 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
51247 (pupa_upper_mem): Likewise.
51248 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
51249 module is too dangerous.
51250
51251 * include/pupa/loader.h (pupa_os_area_addr): Declared.
51252 (pupa_os_area_size): Likewise.
51253 (pupa_loader_set): Remove the first argument. Loader doesn't
51254 manage modules or initrd any longer.
51255 (pupa_loader_load_module): Removed.
51256
51257 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
51258 (linux_mod_SOURCES): New variable.
51259 (linux_mod_CFLAGS): Likewise.
51260
a13f9237 512612003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
51262
51263 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
51264 the length of a blocklist correctly.
51265
51266 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
51267 Use ioctl only if the OS file is a block device.
51268 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
51269 not very useful for normal files.
51270
51271 * kern/main.c (pupa_set_root_dev): New function.
51272 (pupa_load_normal_mode): Likewise.
51273 (pupa_main): Call those above.
51274
51275 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
51276 pupa_uint16_t.
51277
51278 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
51279
a5ffe966 512802003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
51281
51282 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
51283 (setup): Configure the installed partition information and the
51284 dl prefix.
51285
51286 * loader/i386/pc/chainloader.c (my_mod): New variable.
51287 (pupa_chainloader_unload): New function.
51288 (pupa_rescue_cmd_chainloader): Refer itself.
51289 (PUPA_MOD_INIT): Save its own module in MY_MOD.
51290
51291 * kern/i386/pc/startup.S (install_partition): Removed.
51292 (version_string): Likewise.
51293 (config_file): Likewise.
51294 (pupa_install_dos_part): New variable.
51295 (pupa_install_bsd_part): Likewise.
51296 (pupa_prefix): Likewise.
51297 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
51298
51299 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
51300 and pupa/misc.h.
51301 (make_install_device): New function.
51302 (pupa_machine_init): Set the dl prefix.
51303
51304 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
51305 (buf): Renamed to ...
51306 (linebuf): ... this.
51307 (pupa_rescue_cmd_prefix): New function.
51308 (pupa_rescue_cmd_insmod): Likewise.
51309 (pupa_rescue_cmd_rmmod): Likewise.
51310 (pupa_rescue_cmd_lsmod): Likewise.
51311 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
51312 rmmod and lsmod.
51313
51314 * kern/mm.c (pupa_memalign): If failed even after invalidating
51315 disk caches, unload unneeded modules and retry.
51316
51317 * kern/misc.c (pupa_memmove): New function.
51318 (pupa_memcpy): Removed.
51319 (pupa_strcpy): New function.
51320 (pupa_itoa): Made static.
51321
51322 * kern/dl.c (pupa_dl_iterate): New function.
51323 (pupa_dl_ref): Likewise.
51324 (pupa_dl_unref): Likewise.
51325 (pupa_dl_unload): Return if succeeded or not.
51326 (pupa_dl_unload_unneeded): New function.
51327 (pupa_dl_unload_all): Likewise.
51328 (pupa_dl_init): Renamed to ...
51329 (pupa_dl_set_prefix): ... this.
51330 (pupa_dl_get_prefix): New function.
51331
51332 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
51333 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
51334 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51335 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51336 (pupa_install_dos_part): Declared.
51337 (pupa_install_bsd_part): Likewise.
51338 (pupa_prefix): Likewise.
51339 (pupa_boot_drive): Likewise.
51340
51341 * include/pupa/types.h: Fix a typo.
51342
51343 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
51344 pupa_memmove.
51345 (pupa_memmove): Declared.
51346 (pupa_strcpy): Likewise.
51347
51348 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
51349 pupa_mod_init takes one argument, its own module.
51350 (pupa_dl_unload_unneeded): Declared.
51351 (pupa_dl_unload_all): Likewise.
51352 (pupa_dl_ref): Likewise.
51353 (pupa_dl_unref): Likewise.
51354 (pupa_dl_iterate): Likewise.
51355 (pupa_dl_init): Renamed to ...
51356 (pupa_dl_set_prefix): ... this.
51357 (pupa_dl_get_prefix): Declared.
51358
51359 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 51360 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 51361 unloaded.
51362 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
51363 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
51364
51365 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
51366 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
51367
012d7999 513682003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51369
51370 * util/i386/pc/pupa-setup.c (setup): Define the internal
51371 function find_first_partition_start at the top level, because GCC
51372 3.0.x cannot compile internal functions in deeper scopes
51373 correctly.
51374 (find_root_device): Use lstat instead of stat.
51375 Don't follow symbolic links.
51376 Fix the path-constructing code.
51377
51378 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
51379 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
51380 by a BLKGETSIZE ioctl first, because block devices don't fill
51381 the member st_mode of the structure stat on Linux.
51382 [__linux__] (linux_find_partition): Use a temporary buffer
51383 REAL_DEV for the working space. Copy it to DEV before returning.
51384 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
51385 buffer cache consistent.
51386 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
51387 strncmp. The previous value was merely wrong.
51388 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
51389
51390 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
51391 FAT size is 12. The previous value was merely wrong.
51392
51393 * kern/main.c (pupa_main): Don't split the starting message from
51394 newlines.
51395
51396 * kern/term.c (pupa_putchar): Put CR after LF instead of before
51397 LF, because BIOS goes crazy about character attributes in this
51398 case.
51399
1cc73a62 514002003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51401
51402 * include/i386/pc/util/biosdisk.h: New file.
51403 * util/i386/pc/biosdisk.c: Likewise.
51404 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 51405
1cc73a62 51406 * Makefile.in (INCLUDE_DISTFILES): Added
51407 include/pupa/i386/pc/util/biosdisk.h.
51408 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
51409 directory util/i386/pc.
51410 (install-local): Added a rule for sbin_UTILITIES.
51411 (uninstall): Likewise.
51412
51413 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
51414
51415 * util/misc.c (xrealloc): New function.
51416 (pupa_malloc): Likewise.
51417 (pupa_free): Likewise.
51418 (pupa_realloc): Likewise.
51419 (pupa_stop): Likewise.
51420 (pupa_putchar): Likewise.
51421
51422 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
51423
51424 * include/pupa/util/misc.h (xrealloc): Declared.
51425
51426 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
51427 macro.
51428 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
51429 (PUPA_BOOT_MACHINE_BPB_END): ... this.
51430
51431 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
51432 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51433
51434 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
51435 way should be implemented.
51436 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51437
51438 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
51439 the size of NAME for safety.
51440 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
51441 0x88.
51442
51443 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
51444 (pupa_setup_SOURCES): Likewise.
51445
51446 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
51447
08b70fe8 514482002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51449
51450 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
51451 bunch of pushl's from pusha, because this destroys the return
51452 value.
51453
62ddcc8f 514542002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51455
51456 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
51457 This means that any missing prototypes could be fatal. Also, you
51458 must take care when writing assembly code. See the comments at
51459 the beginning of startup.S, for more details.
f19dbdb7 51460
62ddcc8f 51461 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
51462 compilation mechanism.
51463 (pupa_chainloader_real_boot): Likewise.
51464 (pupa_biosdisk_rw_int13_extensions): Likewise.
51465 (pupa_biosdisk_rw_standard): Likewise.
51466 (pupa_biosdisk_check_int13_extensions): Likewise.
51467 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
51468 (pupa_biosdisk_get_diskinfo_standard): Likewise.
51469 (pupa_get_memsize): Likewise.
51470 (pupa_get_mmap_entry): Likewise.
51471 (pupa_console_putchar): Likewise.
51472 (pupa_console_setcursor): Likewise.
51473 (pupa_getrtsecs): Use pushl instead of push.
51474
51475 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
51476 memory instead of the stack for a mmap entry, because some
51477 BIOSes may ignore the maximum size and overflow.
51478
51479 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
51480
51481 * genmk.rb (PModule#rule): Compile automatically generated
51482 sources with module-specific CFLAGS as well as other sources.
51483
9962ed99 514842002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51485
51486 * configure.ac: Check ld.
51487 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
51488 respectively, before checking endianness and sizes.
51489
51490 * Makefile.in (LD): New variable.
f19dbdb7 51491
abdfc3c5 514922002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51493
51494 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
51495
6a161fa9 514962002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51497
51498 * Changelog: New file.
51499