]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
[grub2.git] / ChangeLog
CommitLineData
fb56391e
VS
12013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4 rather than signed one.
5 (recovery): Likewise.
6
40f29060
VS
72013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
8
9 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
10
c64577a5
VS
112013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12
13 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
14 than signed.
15
c16535a8
JM
162013-10-25 Jon McCune <jonmccune@google.com>
17
18 * docs/grub.texi: Cleanup security documentation around signatures.
19
6673d8e7
VS
202013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
21
22 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
23
a105d375
VS
242013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
27 than int.
28
af81ed88
VS
292013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
32 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
33 functions when compiling for kernel.
34
ea899a57
VS
352013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
36
37 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
38 unsigned long long when using %llu.
39
c6dc6fa1
VS
402013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
41
42 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
43 terminal after updating progress.
44
ad2dc003
VS
452013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
46
47 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
48 argument. We don't disable Gate A20 in this code.
49
b46684ae
VS
502013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
51
52 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
53 Conceptually based on change in branch "vbe-on-coreboot".
54
f70d5c07
RM
552013-10-24 Robert Millan <rmh@gnu.org>
56
57 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
58 numeric constants with their symbolic equivalent.
59 Taken from branch "vbe-on-coreboot".
60
bca274b4
VS
612013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
62
63 * docs/grub.texi: Fix ordering and use pxref rather than xref.
64
238f0489
VS
652013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
66
67 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
68 divmod64 for offset division.
69
863c590b
PFS
702013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
71
72 Rename .bzrignore to .gitignore. Add "*.o" rule.
73
74 * .bzrignore: Renamed to...
75 * .gitignore: ...this.
76
84a0e969
PFS
772013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
78
79 Add new progress module that displays the load progress of files.
80
81 * grub-core/lib/progress.c: New file.
82 * grub-core/Makefile.core.def (progress): New module.
83 * grub-core/kern/file.c (grub_file_open): File name added.
84 * (grub_file_read): Progress hook added.
85 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
86 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
87 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
88 * include/grub/file.h (struct grub_file): Add progress module members.
89 * include/grub/term.h (struct grub_term_output): Likewise.
90 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
91 Terminal velocity added.
92 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
93 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
94 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
95 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
96 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
97 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
98 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
99 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
100 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
101 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
102 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
103 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
104
0d711431
VS
1052013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
106
107 Verify signatures of signatures unless --skip-sig is specified.
108
f8401f76
VS
1092013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
110
111 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
112 \0 checking.
113
114 Saves 70 bytes on compressed image.
115
ac1feb61
VS
1162013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
117
118 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
119 check.
120
121 Saves 10 bytes on compressed image.
122
00f72e89
VS
1232013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
124
125 * grub-core/kern/misc.c (grub_isprint): Move to ...
126 * include/grub/misc.h (grub_isprint): ... here. Make inline.
127
128 Saves 20 bytes on compressed image due to remving exporting.
129
067e6ae7
VS
1302013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
131
132 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
133
134 Saves 5 bytes on compressed image.
135
64a6c791
VS
1362013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
137
138 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
139 function get_utf8.
140
141 Saves 379 bytes on compressed image.
142
979d9f52
VS
1432013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
144
145 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
146
1437da54
VS
1472013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
148
149 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
150
151 Saves 40 bytes on compressed image.
152
d9ee2269
VS
1532013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
154
155 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
156 mask rather than 64-bit type.
157
158 Saves 20 bytes on compressed image.
159
63efa602
VS
1602013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
161
162 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
163 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
164
47601ffe
VS
165 Saves 273 bytes on compressed image.
166
2cc679ad
VS
1672013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
168
169 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
170 variable length arrays.
171
172 Saves 50 bytes on compressed image.
173
2e4659b8
VS
1742013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
175
176 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
177
2a40badf
VS
1782013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
179
180 * grub-core/fs/ufs.c: Remove variable length arrays.
181
1ba6b9b9
VS
1822013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
183
184 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
185
f3e39341
VS
1862013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
187
188 * grub-core/fs/zfs.c: Remove variable length arrays.
189 Reduces zfs.mod by 160 bytes (208 compressed).
190
71523935
VS
1912013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
194
28153eb8
VS
1952013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
196
197 * grub-core/net/arp.c: Remove variable length arrays.
198 * grub-core/net/bootp.c: Likewise.
199 * grub-core/net/dns.c: Likewise.
200 * grub-core/net/icmp6.c: Likewise.
201 * grub-core/net/net.c: Likewise.
202
88ce4cd7
VS
2032013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
204
205 * grub-core/fs/ntfs.c: Remove variable length arrays.
206 Increases ntfs.mod by 64 bytes (but decreases by 3 when
207 compressed).
208
66123940
VS
2092013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
210
211 * grub-core/fs/hfs.c: Remove variable length arrays.
212 Reduces hfs.mod by 8 bytes (52 compressed).
213
0927e5bd
VS
2142013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
215
216 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 217 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
218 compressed).
219
9c12ac97
VS
2202013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
221
222 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 223 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
224 compressed).
225
97ec2d71
VS
2262013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
227
228 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 229 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
230 compressed).
231
156e4ea0
VS
2322013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
233
234 * grub-core/fs/xfs.c: Remove variable length arrays.
235 Reduces xfs.mod by 40 bytes (43 compressed).
236
3b502c29
VS
2372013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
238
239 * grub-core/fs/fshelp.c: Remove variable length arrays.
240 Reduces fshelp.mod by 116 bytes (23 compressed).
241
c7037f1d
VS
2422013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
243
244 * grub-core/normal/completion.c: Remove variable length arrays.
245 * grub-core/normal/menu_entry.c: Likewise.
246
247 Reduces normal.mod by 496 bytes.
248
a07e6ad0
VS
2492013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
250
251 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
252 by 356 bytes (158 compressed).
253
2359bf88
VS
2542013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
255
256 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
257 by 364 bytes (169 compressed).
258
d28e1163
VS
2592013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
260
261 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
262 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
263 * include/grub/types.h (grub_unaligned_uint64_t): New type.
264
e89c2d48
VS
2652013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
266
267 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
268 bitmasks to small structures of size chosen to fit in registers.
269
7abdac8e
VS
2702013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
271
272 * conf/Makefile.common: Use -freg-struct-return on i386. This
273 decreases code size and improves performance.
274
518864c0
VS
2752013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
278
bbd2b539
VS
2792013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
280
281 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
282 "(null)" string.
283 Simplify expressions to save around 256 bytes in kernel.img.
284 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
285
99519c15
VS
2862013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
287
288 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
289 Use GRUB_UTIL_FD_O_* rather than O_*.
290
20285765
VS
2912013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
292
293 Add haiku-specific functions.
294
887c0bb6
VS
2952013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
298
cd78a56f
VS
2992013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
300
301 Move stat () and device mode checking into OS-dependent files as
302 long as performance doesn't suffer.
303
a4012f07
VS
3042013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
305
306 Split make_system_path_relative_to_its_root into separate file
307 relpath.c from getroot.c as it's common between unix and haiku
308 but otherwise haiku doesn't use any functions from unix getroot.c.
309
31de274d
VS
3102013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
313 New function.
314 (grub_util_is_special_file): Likewise.
315
40346de6
VS
3162013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
317
318 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
319 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
320
d3923ab9
VS
3212013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
322
323 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
324 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
325
663f6eb1
VS
3262013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
327
328 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
329 (load_image): Likewise.
330
44d1c20a
VS
3312013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
332
333 * util/grub-render-label.c: Move backend part to ...
334 * util/render-label.c: ... here.
335
d0a116ee
VS
3362013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
337
338 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
339 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
340
b47fcae6
VS
3412013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
342
343 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
344
0f7c00c1
VS
3452013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
346
347 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
348 CD-ROM in case when it's declared as having subpartitions.
349
29013cba
VS
3502013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
351
352 Don't add -lm on haiku.
353
354 * configure.ac: Define BUILD_LIBM to -lm on most platforms
355 and empty on haiku.
356 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
357 -lm.
358
e8559d24
VS
3592013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
360
361 * configure.ac: Use -melf_*_haiku as target on haiku.
362
8104063c
VS
3632013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
364
365 * Makefile.util.def: Add util/setup.c to extra_dist.
366
fc3182c7
VS
3672013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
368
369 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
370 unknown types through.
371
f90a3cc0
VS
3722013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
373
374 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
375 (grub_util_check_char_device): Likewise.
376 * include/grub/emu/getroot.h: Likewise.
377
1e3e7419
VS
3782013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
379
380 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
381 memset rather than inline static function.
382
92c88fc8
VS
3832013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
384
385 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
386 not doing embedded decompressor.
387
3cd910a2
VS
3882013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
389
390 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
391 shadowing.
392 * grub-core/kern/disk.c: Likewise.
393 * grub-core/kern/misc.c: Likewise.
394 * include/grub/parser.h: Likewise.
395 * include/grub/script_sh.h: Likewise.
396 * include/grub/zfs/zfs.h: Likewise.
397
7b3aca00
VS
3982013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
399
400 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
401
97dfe7e4
VS
4022013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
403
404 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
405 defined before trying to use it.
406
bf919aa9
VS
4072013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
408
409 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
410 warning.
411
f4ccf29d
VS
4122013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
413
414 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
415 Use __unused__ rather than __used__ on gcc < 3.2.
416
0d3a6f85
VS
4172013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
418
419 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
420 gcc < 4.0.
421 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
422
757e3eb7
VS
4232013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
424
425 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
426
fb320faf
VS
4272013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
428
429 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
430 * include/grub/emu/misc.h: Likewise.
431
ea73acd2
VS
4322013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
433
434 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
435 cur_color.
436
71237a6f
VT
4372013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
438
439 * grub-core/tests/checksums.h: Regenerated due to progress bar
440 get_minimal_size changes.
441
3d46c22f
BC
4422013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
443
444 Added `tr' command support.
445
446 * grub-core/commands/tr.c: New file.
447 * grub-core/Makefile.core.def: Build rules for new module.
448
449 * tests/grub_cmd_tr.in: New test.
450 * Makefile.util.def: Build rules for new test.
451
47e0a61f
VT
4522013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
453
454 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
455
946fd073
VT
4562013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
457
458 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
459 * docs/gurb.texi: Likewise.
460
9c13c576
VT
4612013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
462
463 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
464 Pixmap highlighted section with east and west slices was displayed
465 incorrectly due to negative width of the central slice.
466
ad543f12
VT
4672013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
468
469 * docs/grub.texi: Graphical options information update.
470 Removed outdated. Updated current. Inserted missed.
471
6176a0cd
VS
4722013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * docs/grub.texi: Mention few new platform-specific commands.
475
9688cae2
VS
4762013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
479 currently used so this doesn't really have any effect.
480 Reported by: Douglas Ray <dougray>
481
8154884d
VS
4822013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
483
484 * util/grub-mkstandalone.in: Remove needless copying since we already
485 pass the files to tar.
486
f7b69a3f
VS
4872013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
488
489 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
490 compilation but prevents gcc from displaying messages in non-Latin
491 alphabets.
492 * conf/Makefile.common: Likewise.
493
ceca6ddf
HY
4942013-10-16 Hiroyuki YAMAMORI
495
496 Handle Japanese special keys.
497 Reported by: Hiroyuki YAMAMORI.
498 Codes supplied by: Hiroyuki YAMAMORI.
499
ac48d334
VT
5002013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
501
502 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
503
b2b71bff
VT
5042013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
505
506 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
507 * docs/grub.texi: Likewise.
508
669fc449
VS
5092013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
510
511 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
512 value in case of incomplete read.
513 (grub_util_fd_write): Likewise.
514
59381678
VS
5152013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
516
517 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
518
bacfefbb
VS
5192013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
520
521 * util/grub-editenv.c (create_envblk_file): More from here ...
522 * util/editenv.c (grub_util_create_envblk_file): ... to here.
523
f7c49570
VS
5242013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
525
526 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
527 canonicalize file name before doing the rest.
528
7b83ca44
VS
5292013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
530
531 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
532 mingw32.
533
df1e64c9
VS
5342013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
535
536 Define grub_util_is_directory/regular/special_file and
537 use OS-dependent versions rather than to rely on stat().
538
ec16e026
VS
5392013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
540
541 * util/grub-mkimage.c: Move backend part to ...
542 * util/mkimage.c: ... here.
543
4b4eeb3c
VS
5442013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
545
546 Allow compilation with mingw64 albeit with warnings due to lack of
547 %llx/%llu.
548
549 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
550 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
551 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
552 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
553 on mingw64.
554 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
555
f4e0adc0
VS
5562013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
557
558 Remove leftover references to some of the system headers.
559
e0127364
VS
5602013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
561
562 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
563 read.
564
20d53541
VS
5652013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
566
567 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
568 of strerror.
569
5a869940
VS
5702013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
571
572 Split out blocklist retrieving from setup.c to
573 grub-core/osdep/blocklist.c and add windows implementation since
574 generic version doesn't work on NTFS on Windows due to aggressive
575 unflushable cache.
576
c06c7520
VS
5772013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
578
579 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
580 files.
581
8f53bb3f
VS
5822013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
583
584 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
585 Cut tailing newline. Remove arbitrary limitation. Always use
586 grub_util_tchar_to_utf8.
587
148f1007
VS
5882013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
589
590 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
591 * tests/printf_unit_test.c (printf_test): Add %% tests.
592 Reported by: Paulo Flabiano Smorigo.
593
af3b06be
VS
5942013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
595
596 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
597 implement fsync.
598
27f9d02e
VS
5992013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
600
601 * configure.ac: Check for nvlist_lookup_string in nvpair since we
602 use nvlist_lookup_string and don't use nvlist_print.
603
f6a81f0a
VS
6042013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
605
606 Add wrappers around rename, unlink, mkdir, opendir, readdir and
607 closedir to handle filename charset translation.
608
d7750b32
VS
6092013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
610
611 * include/grub/emu/hostdisk.h: Move file operations to
612 * include/grub/emu/hostfile.h: ... here.
613
2859196e
VS
6142013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
617 unicode path.
618
c018c968
VS
6192013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
620
621 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
622
7e45abce
VS
6232013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
624
625 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
626 and remove export.h.
627
23934da2
VS
6282013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
629
630 * grub-core/kern/emu/error.c: Removed.
631 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
632 explicitly as it's already in libgnu.a.
633
c11ebcc8
VS
6342013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
635
636 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
637 config-util.h include.
638
70671037
VS
6392013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
640
641 Split emunet into platform-dependent and GRUB-binding parts. Keep
642 platform-dependent part in kernel for easy access to OS functions.
643
25ac643a
VS
6442013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
645
646 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
647 open/read/write.
648
69ca5876
VS
6492013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
650
651 * grub-core/osdep/windows/emuconsole.c: New file.
652
d9d68ef0
AB
6532013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
654
655 * conf/Makefile.extra-dist: Add osdep/*/init.c
656
58e211cc
VS
6572013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
658
659 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
660
588744d0
VS
6612013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
662
663 * util/grub-probe.c (probe): Separate different drives in hint-str
664 by spaces and not newlines.
665 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
666
44016e52
AB
6672013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
668
669 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
670 Handle CD-ROMs.
671
6de9ee86
VS
6722013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
673
674 Pass-through unknown E820 types. It required reorganisation of mmap
675 module.
676
f8f3f155
AB
6772013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
678
679 * Makefile.util.def: Add osdep/init.c to grub-mount files.
680
b73249d2
VS
6812013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
682
683 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
684 fseeko.
685
dac86b18 6862013-10-14 qwertial <qwertial>
687
688 * grub-core/gdb_grub.in: Fix overflow and wrong field.
689
17614b84
JM
6902013-10-14 Jon McCune <jonmccune@google.com>
691
692 * docs/grub.texi: Document new signatures possibility.
693
6de292cb
VS
6942013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
695
696 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
697
84379b61
VS
6982013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
699
700 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
701 missing prototype.
702 (grub_util_tchar_to_utf8): Likewise.
703
21d85db1
VS
7042013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
705
706 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
707 * grub-core/kern/emu/main.c: Add missing include.
708 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
709 Don't call grub_util_init_nls.
710 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
711 Likewise.
712
66a1b3ee
VS
7132013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
714
715 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
716 stat.
717
e19bec17
VS
7182013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
719
720 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
721
ee8c1b29
VS
7222013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
723
724 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
725
bb338aaf
VS
7262013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
727
728 Add a wrapper for fopen. On unix-like systems just pass-through. On
729 windows use unicode version.
730
ae5540d3
VS
7312013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
732
733 Move set_program_name and init_nls to host_init. On windows
734 fix in this fuction console and argument charset as well.
735
4cd3c4fe
AB
7362013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
737
738 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
739 GRUB_ENABLE_CRYPTODISK.
740
741 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
742 GRUB_ENABLE_CRYPTODISK.
743 * util/grub-mkconfig_lib.in: Likewise.
744
78170f3e
CCZ
7452013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
746
747 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
748
3414b6c0
MC
7492013-10-12 Melki Christian <Christian.melki@saabgroup.com>
750
751 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
752 error when enabling debug.
753
6d0740e8
IB
7542013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
755
756 * configure.ac: Use -melf_*_obsd on openbsd.
757
ff2d4dc4
VS
7582013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
759
760 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
761
eac6ae82
VS
7622013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
763
764 * include/grub/misc.h: Use gnu_printf rather than printf as format
765 template since our functions are independent of libc.
766
ba9baabe
VS
7672013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
768
769 * util/grub-setup.c (setup): Move copying of partition table as
770 futher up as possible to avoid possible overwrite by floppy routines.
771
7722013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
773
774 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
775
145e2369
VT
7762013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
777
778 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
779 * docs/grub.texi: Likewise.
780
3530bc9d
VS
7812013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
782
783 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
784 it's mostly unused. Move vestiges to the callers.
785
fb9f59c3
VS
7862013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
787
788 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
789 version of salt and hash. Use grub_snprintf rather than snprintf.
790
9be1c255
VS
7912013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
792
793 * docs/grub.texi: Fix problem with braces.
794
ed8c0887
VS
7952013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
796
797 * conf/Makefile.extra-dist: Fix extra-dist list.
798 * grub-core/Makefile.core.def: Likewise.
799
f72ab14e
VS
8002013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
801
802 * docs/grub.texi: Document disk names used on Windows and AROS.
803
2fe53a22
VS
8042013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
805
806 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
807 with AROS devs.
808 * grub-core/osdep/aros/hostdisk.c: Likewise.
809
71c1d67a
VS
8102013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
811
812 Avoid including hostfile.h when not necessarry as it pulls
813 in OS-specific headers which may redefine generic names
814 like "far".
815
ad297ec7
VT
8162013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
817
818 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
819 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
820 scrollbar_bottom_pad
821 * docs/grub.texi: Likewise.
822
6e9e5dc9
VT
8232013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
824
825 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
826
761c718b
VS
8272013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
828
829 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
830
37149a2f
VS
8312013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
832
833 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
834 Removed.
835 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
836 Made static.
837
3837a151
VS
8382013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
839
840 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
841 leftover.
842
caca1c70
VS
8432013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
844
845 Move OS-specific driver configuration to grub_util_fd_open. This
846 moves OS-dependent parts from kern/emu/hostdisk.c to
847 grub-core/osdep/*/hostdisk.c.
848
f7676b70
VS
8492013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * util/grub-mkimage.c (generate_image): Use size_t instead of
852 grub_size_t.
853 * util/grub-mkimagexx.c (locate_sections): Likewise.
854 (load_image): Likewise.
855
22f98db2
VS
8562013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
857
858 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
859 size_t.
860 (grub_util_write_image): Likewise.
861
b102ce69
VS
8622013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
863
864 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
865 get random when no RNG is available.
866 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
867
acbbe5cb
VS
8682013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
869
870 * include/grub/util/lvm.h: Removed.
871
2112fb3f
VS
8722013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
873
874 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
875 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
876
79f78fbf
VS
8772013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
878
879 * grub-core/osdep/windows/sleep.c: Add missing config.h.
880
c2e6f705
VS
8812013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
882
883 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
884
aabe433a
VS
8852013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * grub-core/net/drivers/emu/emunet.c: Move to ..
888 * grub-core/osdep/linux/emunet.c: ..here.
889
9a2c903f
VS
8902013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
891
892 * util/ieee1275/ofpath.c: Move to ...
893 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
894 * grub-core/osdep/basic/ofpath.c: ..here.
895
4a445f58
VS
8962013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
897
898 Move password-querying (util-version) routines to grub-core/osdep.
899
c1ca4244
VS
9002013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
901
902 Move sleep routines to grub-core/osdep.
903
672fa55e
VS
9042013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
905
906 Move OS-dependent files to grub-core/osdep and document it.
907
a5b0365a
VS
9082013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
909
910 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
911 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
912
29072e99
VS
9132013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
914
915 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
916
f8772ea7
VS
9172013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
918
919 * util/misc.c: Remove leftover inclusion of malloc.h.
920
a1a315e7
VS
9212013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * include/grub/setjmp.h: Remove leftover GRUBOF.
924
cef86fef
VS
9252013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
926
927 * util/raid.c: Fold into ...
928 * util/getroot_linux.c: ... here. Make all functions static.
929
c4cf25ee
VS
9302013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
931
932 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
933 macros to GRUB ones.
934
53a5f5c2
VT
9352013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
936
937 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
938 occasional bug. If there are too many boot entries or too low
939 scrollbar height then we need to use another formula to calculate
940 the position and size of the scrollbar thumb.
941
de300af2
VS
9422013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
943
c4cf25ee 944 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 945
c5827364
VT
9462013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
947
948 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
949 * docs/grub.texi: Likewise.
950
dd2ed8b0
VT
9512013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
952
953 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
954 viewport.
955
7286c384
VT
9562013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
957
ffdfc1f3
VT
958 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
959 minimal width calculations.
7286c384 960
ea547e14
VS
9612013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
962
963 * docs/grub.texi: Update note on colors on emu console.
964
b726be76
VS
9652013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
966
967 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
968 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
969 it's FS and not GRUB limitation.
970
a5f6ade6
VS
9712013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
972
973 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
974
3b0f3aa2
VS
9752013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
978
1db38304
ST
9792013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
980
981 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
982 kernels by version order.
983
fb295fc0
VS
9842013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
985
986 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
987
47345010
VS
9882013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
989
990 Add AROS hostdisk and getroot routines.
991
bf25f879
VS
9922013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
993
994 Make cryptodisk and diskfilter probe data retrievable programmatically
995 and not just printable.
996
24ca4512
VS
9972013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
998
999 Split random retrieving code into separate files.
1000
c7c177f0
VS
10012013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1002
1003 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
1004 R_ARM_V4BX.
1005
d71b45ae
VS
10062013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1007
1008 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
1009 condition.
1010 * grub-core/tests/fake_input.c: Likewise.
1011 * grub-core/tests/cmdline_cat_test.c: Likewise.
1012
e44b9a83
VS
10132013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * grub-core/video/capture.c: Do not do finalization when .fini
1016 is called as there is explicit capture_end.
1017
4fa60739
VS
10182013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1019
1020 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
1021 changing windows to avoid crash.
1022
17c8bc37
VS
10232013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
1026
9d4d7977
VS
10272013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1028
1029 * po/exclude.pot: Add several strings to exclude.
1030
0caa407c
VS
10312013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
1034
9ae393da
VS
10352013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 * autogen.sh: Add ./util/grub-gen-widthspec.c and
1038 ./util/grub-gen-asciih.c to exclude list.
1039
498d5033
VS
10402013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
1043 and don't mark error strings for translation.
1044
7d93298f
VS
10452013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
1048 properly in case of missing block size.
1049
b2cae20c
VS
10502013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * grub-core/lib/arm/setjmp.S: Add missing license section.
1053
3896d6b4
VS
10542013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * po/swiss.sed: Add replacement for key names and for term computer.
1057
ebc1da55
VT
10582013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
1059
1060 * grub-core/gfxmenu/theme_loader.c: New global options for the
1061 theme background image handling. desktop-image-scale-method,
1062 desktop-image-h-align, desktop-image-v-align.
1063 * grub-core/gfxmenu/view.c: Likewise.
1064 * include/gfxmenu_view.h: Likewise.
1065 * include/bitmap_scale.h: Proportional scale functions introduced.
1066 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
1067 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
1068 cases of unexpected input variables for scale functions.
1069 * docs/grub.texi: Updated documentation for new options.
1070
c5739143
VS
10712013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
1074
be74aeb3
VT
10752013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1076
1077 * grub-core/tests/checksums.h: Corrected due to changes in
1078 bilinear interpolation function.
1079
d999ac72
VT
10802013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1081
1082 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
1083 to eliminate artefacts in bilinear interpolation.
1084
2b131610
VS
10852013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * grub-core/video/readers/tga.c: Support paletted tga.
1088
de6e5ff8
VS
10892013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1090
1091 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
1092 incorrect cbcr setting when in color mode.
1093
fa31ee9c
VS
10942013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 * grub-core/video/readers/png.c: Support paletted images and clean up
1097 greyscale support.
1098
e84f8188
VS
10992013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1100
1101 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
1102 usage of wrong table which resulted in mishandling of 4-byte
1103 sequences.
1104
11052013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
1106
1107 * grub-core/term/terminfo.c: Add Home and End key sequences.
1108
d72bff09
VS
11092013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 * grub-core/video/readers/png.c (grub_png_decode_image_header):
1112 Fix formula for computing total number of bytes.
1113
29648c5d
VS
11142013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
1117 image processing, fix big-endian and support grayscale.
1118
4a876492
VS
11192013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
1122 Correctly will with maximum transparency when using index color.
1123
3ccf16df
VS
11242013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 * grub-core/video/readers/png.c: Support grayscale
1127
11282013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
1129
1130 * grub-core/video/readers/jpeg.c: Support grayscale.
1131
3ccf16df 11322013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
1133
1134 * grub-core/commands/loadenv.c: Support skipping signature check
1135 and variable names filtering.
1136
30b7f58f
VS
11372013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1138
1139 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
1140 * grub-core/kern/emu/hostfs.c: Likewise.
1141 * util/getroot_unix.c: Likewise.
1142
bab7b1eb
VS
11432013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
1146 Migrate all explicit defines to this new one.
1147
43b1c99d
VS
11482013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1149
1150 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
1151 grub_util_fd_strerror when using grub_util_fd_*.
1152 (grub_util_fd_open_device): Likewise.
1153 (grub_util_biosdisk_read): Likewise.
1154 (grub_util_biosdisk_write): Likewise.
1155 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
1156 (grub_util_fd_strerror): Likewise.
1157 (grub_util_fd_sync): Likewise.
1158 (grub_util_fd_close): Likewise.
1159 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
1160 (grub_util_fd_close): Likewise.
1161 (grub_util_fd_strerror): Likewise.
1162 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
1163 function proto rather than macro.
1164 (grub_util_fd_sync): Likewise.
1165 (grub_util_fd_open): Likewise.
1166 (grub_util_fd_strerror): New proto.
1167
e8fd80bc
VS
11682013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1169
1170 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
1171 platforms on which it doesn't work.
1172
bf645fda
VS
11732013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1174
1175 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
1176 stat immediately to where it's used.
1177
5177ba14
VS
11782013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1179
1180 * util/getroot.c (grub_util_check_block_device): Move to ...
1181 * util/getroot_unix.c (grub_util_check_block_device): ... here.
1182 * util/getroot.c (grub_util_check_char_device): Move to ...
1183 * util/getroot_unix.c (grub_util_check_char_device): ... here.
1184
9db826e1
VS
11852013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1186
1187 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
1188 disk closing logic.
1189
49120085
AB
11902013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1191
1192 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
1193
b3328b68
AB
11942013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1195
1196 * docs/grub.texi (File name syntax): Document ZFS filenames
1197 (/volume@snapshot/...).
1198
3fff48ab
VS
11992013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1200
1201 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
1202 Always return full path. Fixes a problem with mkrelpath.
1203
39cfdaa9
PFS
12042013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1205
1206 * util/grub-install.in: Add GPT PReP support.
1207 * util/grub-probe.c (probe): Support GPT partition type.
1208 (main): Support -t gpt_parttype.
1209
7c680e1f 12102013-09-23 Aleš Nesrsta <starous@volny.cz>
1211
1212 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
1213
890bdabe
MM
12142013-09-23 Massimo Maggi <me@massimo-maggi.eu>
1215
1216 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
1217
9c262ff9
TH
12182013-09-23 Tim Hardeck <thardeck>
1219
1220 * util/grub.d/10_hurd.in: Filter out character for the class.
1221 * util/grub.d/10_kfreebsd.in: Likewise.
1222 * util/grub.d/10_linux.in: Likewise.
1223 * util/grub.d/20_linux_xen.in: Likewise.
1224
d755342a
MC
12252013-09-23 Melki Christian <Christian.melki@saabgroup.com>
1226
1227 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
1228 "changed".
1229
68b77707
JT
12302013-09-23 Josh Triplett <josh@joshtriplett.org>
1231
1232 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
1233 boot partition.
1234
efa68bfa
VS
12352013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
1238 doesn't use posix_wrap. Keep literal -fno-builtin however.
1239
d9104204
VS
12402013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1241
1242 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
1243
c248781a 12442013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
12452013-09-23 neil
1246
5830df88 1247 * configure.ac: Do not enable -Wmissing-noreturn as its
1248 usefulness is limited and creates problems on some OS notably with
1249 code generated by bison.
1250
12512013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
12522013-09-23 neil
1253
1254 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 1255 supported by all gcc and when it is, it's already enabled by -Wall.
1256
621bed69
VS
12572013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1258
1259 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
1260 desactivated use of EDID at all.
1261
71764dc8 12622013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
12632013-09-23 neil
1264
1265 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
1266 video if no text is available.
1267
affce7d4 12682013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
12692013-09-23 neil
1270
1271 * configure.ac: Substitute TARGET_RANLIB.
1272
12732013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
12742013-09-23 neil
affce7d4
VS
1275
1276 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
1277
1278 Based on patches from AROS.
1279
0e8daad0 12802013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 12812013-09-23 neil
0e8daad0
VS
1282
1283 * grub-core/Makefile.am: Override STRIP and RANLIB.
1284 * configure.ac: compute TARGET_RANLIB.
1285 * INSTALL: Document TARGET_RANLIB
1286
1287 Based on patches from AROS.
1288
3f7d9c82
VS
12892013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
1292 that floppies are unpartitioned.
1293
bca8873a
VS
12942013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
1297 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
1298
12992013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
1302 less nice but more portable.
1303 * grub-core/lib/posix_wrap/wchar.h: Likewise.
1304
a47a78be
VS
13052013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1306
1307 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
1308 for cheat_fd.
1309 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
1310 functions.
1311 (grub_cryptodisk_cheat_insert): Likewise.
1312 (grub_cryptodisk_close): Likewise.
1313
e85a5d5c
VS
13142013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1315
1316 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
1317 Use windows path for DEFAULT_DIRECTORY.
1318
dad9fa6b
VS
13192013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
1322 difference was likely just gcc version, not anything mingw-related.
1323
7e518ca8
VS
13242013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1325
1326 Use Winapi on both cygwin and mingw32 to share more code between both.
1327
d68d0157
AB
13282013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1329
1330 * util/grub-install.in: Add --grub-editenv option.
1331 * util/grub-install_header (grub_compress_file): Explicitly check for
1332 plain file to avoid cp error.
1333
775b284d
AB
13342013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1335
1336 * docs/grub.texi (Device syntax): Document new LVM UUID based device
1337 names; fix LVM driver name (lvm, not lv).
1338 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
1339 names.
1340
3ff4063d
VS
13412013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1342
1343 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
1344 files rather than one file with loads of #if's.
1345 * util/getroot.c: Likewise.
1346
287faafe
VS
13472013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
1350
d1983764
VS
13512013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
1354 GNU/Hurd to the list of checked PRNG.
1355
15ce95c4
VS
13562013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1357
1358 * configure.ac: On FreeBSD use -melf_*_fbsd format.
1359
207862dd 13602013-09-21 Ales Nesrsta <starous@volny.cz>
1361
7c680e1f 1362 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 1363
63653cfd
VS
13642013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1365
1366 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
1367 * grub-core/disk/lvm.c: Add LVM UUIDs.
1368 * util/getroot.c: Use LVM UUIDs whenever possible.
1369
f5d3e7ef
AB
13702013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
1371
1372 * docs/grub.texi (Networking commands): Add documentation for
1373 network related commands.
1374
53c6b7d6
VS
13752013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 * util/getroot.c (grub_util_open_dm): Check major rather than the name
1378 to determine if device is handled by devmapper.
1379 (convert_system_partition_to_system_disk): Likewise.
1380 (get_dm_uuid): Don't check explicitly if device is mapped, it's
1381 already done in grub_util_open_dm.
1382
e70d6736
LL
13832013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
1384
1385 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
1386 Clean up stack manipulation (sync_caches_armv*)
1387
90379808
VS
13882013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1389
1390 * util/lvm.c: Remove since unused. Remove remaining references.
1391
386701a8
VS
13922013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 Handle the case of partitioned LVM properly.
1395
1396 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1397 Stop on meeting LVM, mpath or DMRAID.
1398 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
1399 (read_device_map): Likewise.
1400 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
1401 device is full disk rather than erroring out on LVM and similar cases.
1402
53070787
VS
14032013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1404
1405 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
1406
1bc783bd
VS
14072013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
1410 4K before the end.
1411 Reported by: Leif Lindholm
1412
436ad5c3
PW
14132013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
14142013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1415
1416 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
1417 codes.
1418
607319c9
CW
14192013-09-18 Colin Watson <cjwatson@ubuntu.com>
1420
1421 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
1422 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
1423
d404d154
DR
14242013-09-18 Douglas Ray <dougray@cpan.org>
1425
1426 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
1427 as secure.
1428
28851ef6
AN
14292013-09-18 Aleš Nesrsta <starous@volny.cz>
1430
1431 * docs/grub.texi: Fix broken link.
1432
897c3bc6
MC
14332013-09-18 Melki Christian <Christian.melki@saabgroup.com>
1434
1435 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
1436 to break endless loop.
1437
f1630459
VS
14382013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 * util/grub-fstest.c: Fix several printf formats.
1441 * util/grub-mkimage.c: Likewise.
1442 * util/grub-mkimagexx.c: Likewise.
1443 * util/grub-script-check.c: Likewise.
1444
64463dfd
VS
14452013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1446
1447 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
1448 error.
1449
48972495
VS
14502013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
1453
5dd5e64b
VS
14542013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
1457 removed in current versions cygwin_conv_*.
1458
1c1f31e5
VS
14592013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * configure.ac: Disable efiemu runtime on cygwin.
1462
c546a259
VS
14632013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
1466 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
1467
81690478
VS
14682013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1469
1470 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
1471 error message.
1472
6b87c10a
VS
14732013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
1476 windows variant.
1477 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
1478 data.
1479
8f0baaac
VS
14802013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
1483 when on x86 and not cygwin.
1484 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
1485 -Wl,-melf_x86_64.
1486
b224c266
VS
14872013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1488
1489 * configure.ac: Set CPP to build one when checkoing for freetype for
1490 build.
1491
506b336b
VS
14922013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
1495 [!GRUB_BUILD]: Remove has_argument.
1496
8c8c87b7
VS
14972013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
1500 Replace with a dummy.
1501
7dc5ca13
VS
15022013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 * configure.ac: Don't change host_os from mingw to cygwin.
1505
c3302aa5
VS
15062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1507
1508 * configure.ac: Change target_os from windows to cygwin.
1509
7b780018
VS
15102013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 Handle grub-pe2elf and grub-mkfont for cases when build != host.
1513
1514 * Makefile.am (build-grub-mkfont): Don't include gnulib.
1515 (build-grub-gen-asciih): Likewise.
1516 (build-grub-gen-widthspec): Likewise.
1517 * Makefile.util.def (grub-pe2elf): Remove.
1518 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
1519 * configure.ac: Separate tests for build.
1520 Move ./build-grub-pe2elf to grub-core.
1521 Fix typo.
1522 * grub-core/Makefile.am (build-grub-pe2elf): New target.
1523 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
1524 defined.
1525 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
1526 constants.
1527 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
1528 * util/grub-pe2elf.c: Simplify not to rely on getopt.
1529 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
1530
984cfd8a
VS
15312013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1532
1533 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
1534 mingw32 as well based on grub_util_get_disk_size.
1535 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
1536 grub_util_get_fd_size.
1537 (sync): Removed.
1538 (fsync): Moved to ...
1539 * grub-core/kern/emu/misc.c (fsync): ... here.
1540
f82d79c9
VS
15412013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * include/grub/mm.h (grub_extend_alloc): Remove.
1544 * grub-core/loader/i386/pc/plan9.c: Use own version of
1545 grub_extend_alloc with appropriate types.
1546
fd7dd66d
VS
15472013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1548
1549 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
1550
43ffba7c
VS
15512013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1552
1553 * util/getroot.c: Include sys/wait.h only when we need waitpid.
1554
3c7eac44
VS
15552013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 Fix dependencies on cygwin.
1558
1559 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
1560 dependencies when used and defined.
1561 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
1562
bdb5ba47
VS
15632013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1564
1565 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
1566 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
1567
ed7fbf43
VS
15682013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1569
1570 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
1571 implementation available to cause compile-time rather than runtime
1572 error.
1573
fc46e9fc
VS
15742013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 * util/grub-fstest.c: Don't check for symlinks on windows.
1577
7f68269a
VS
15782013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1579
1580 * INSTALL: Mention unavailability of man pages when cross-compiling.
1581
8ed358e0
VS
15822013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
1585 and gcry_log_bug.
1586 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
1587
fc97214f
VS
15882013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 * INSTALL: Document cross-compilation.
1591 * acinclude.m4: Determine whether nm support -P and --defined-only.
1592 * configure.ac: Add TARGET_ to all variables pertaining to target
1593 that don't have it yet.
1594 * gentpl.py: Likewise.
1595 * grub-core/Makefile.am: Likewise.
1596 * grub-core/genmod.sh.in: Likewise.
1597 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
1598 as well.
1599
ca1fb563
IB
16002013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
1601
1602 * configure.ac: Remove -Wempty-body. It's not essential and needs
1603 recent gcc.
1604
0031b229
IB
16052013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
1606
1607 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
1608 * util/getroot.c: Likewise.
1609
54ea2f44
VS
16102013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * grub-core/disk/ahci.c: Add needed explicit cast.
1613 * grub-core/lib/backtrace.c: Likewise.
1614 * grub-core/net/ip.c: Likewise.
1615 * grub-core/net/tcp.c: Likewise.
1616 * grub-core/net/udp.c: Likewise.
1617
3c601f8c
VS
16182013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1619
1620 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
1621
1d679dda
VS
16222013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * util/import_gcry.py: Add final newline in visibility.h.
1625
00c28dd9
VS
16262013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1627
1628 * conf/Makefile.common: Fix typo.
1629
32af299a
VS
16302013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
1633
e733cf52
VS
16342013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * Makefile.am (widthspec.h): Fix typo.
1637 * util/grub-gen-widthspec.c: Likewise.
1638
c6b066f2
VS
16392013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 Move ascii.h and widthspec.h generation to a separate build-time-only
1642 tool.
1643
ad1fe3f9 16442013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
1645
1646 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
1647 Always fill bootdisk info and improve check for NetBSD disklabel.
1648
92a52dd4
VS
16492013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1650
1651 * conf/Makefile.extra-dist: Add util/bin2h.c.
1652 Reported by: floppym.
1653
b2e9d276
VS
16542013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
1657
7b966834
VS
16582013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1659
1660 * configure.ac: Disable unifont and starfield if no freetype was found.
1661
d5c1eef1
VS
16622013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
1663
1664 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
1665 on NetBSD and OpenBSD.
1666
66345b50 16672013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
1668
1669 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
1670
66345b50 16712013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
1672
1673 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
1674 reduced. Inheritant options are processed during the theme loading.
1675
66345b50 16762013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
1677
1678 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
1679
369508b3
AS
16802013-08-14 Avik Sil <aviksil@in.ibm.com>
1681
1682 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
1683
16842013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
1685
1686 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
1687 using qemu.
1688
6f27a3f6
PFS
16892013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1690
1691 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
1692 remove-potcdate.sed.
1693
c6ed362a
AB
16942013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1695
1696 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
1697 unused attribute from pull argument.
1698
5e7d9464
AB
16992013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1700
1701 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
1702 memory leak.
1703
dea55e2a
AB
17042013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1705
1706 * util/getroot.c (pull_lvm_by_command): add --separator option
1707 to vgs call to disable padding of output to 10 characters.
1708
f0b94ded
VS
17092013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
1712 here ...
1713 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
1714 here.
1715
b828fb5d
VS
17162013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1717
1718 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
1719 length.
1720
7c9d0c39
VS
17212013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1722
1723 Fix handling of build-time grub-bin2h and grub-mkfont when doing
1724 full Canadian cross. Tested with build=x86_64, host=arm,
1725 target=ppc-ieee1275.
1726
816719c8
VS
17272013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1728
1729 * configure.ac: Error if no $BUILD_CC could be found.
1730 Reported by: DevHC.
1731
2af2353b
VS
17322013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1733
1734 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
1735 i386-multiboot.
1736
797abd0a
VS
17372013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1738
1739 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
1740 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
1741
36e87d25
CW
17422013-08-13 Colin Watson <cjwatson@ubuntu.com>
1743
1744 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
1745 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
1746 falling back to the partition device, otherwise a later call to this
1747 function may fail spuriously.
1748 Reported by Axel Beckert. Fixes Debian bug #708614.
1749
273349fe
GS
17502013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
1751
1752 * autogen.sh: Replace find -not by the POSIX-compliant find !.
1753
418f86c6
GS
17542013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
1755
1756 Prevent shadowing of stdlib's devname(3) on BSD.
1757
1758 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
1759 and devlast to diskname and disklast, respectively.
1760
c137aea0
CW
17612013-08-11 Colin Watson <cjwatson@ubuntu.com>
1762
1763 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
1764
272dc8df 17652013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
1766
1767 * docs/grub.texi: Introduce terminal window position options:
1768 terminal-left: terminal window's left position
1769 terminal-top: terminal window's top position
1770 terminal-width: terminal window's width
1771 terminal-height: terminal window's height
1772 terminal-border: terminal window's border width
1773 * grub-core/gfxmenu/theme-loader.c: Likewise.
1774 * include/grub/gfxmenu_view.h: Likewise.
1775 * po/exlude.pot: Likewise.
1776 * grub-core/gfxmenu/view.c: Likewise.
1777 Also updated minimal window size.
1778 Also terminal_sanity_check function has been introduced.
272dc8df
VT
1779 * grub-core/tests/checksums.h: Update (terminal window height
1780 is adjusted now for low resolution screen)
b4743461 1781
748a4533
VS
17822013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
1785 position).
1786
fca5f944
VS
17872013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * po/exclude.pot: Add few recent exceptions.
1790
4f47d809
VS
17912013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1792
1793 * tests/grub_func_test.in: Add unicode.pf2.
1794
a62ae90c
VS
17952013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
1798 standard rather than noral color, in line with other terminals.
1799
4ed41392
VS
18002013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1801
1802 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
1803 analysis.
1804
3719fbc5
VS
18052013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1806
1807 * grub-core/loader/arm/linux.c: Change printf to dprintf.
1808
459b1d91
VS
18092013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1810
1811 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
1812 inappropriate printf.
1813
f4e1ab9d
AB
18142013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
1815
1816 * .bzrignore: Remove grub-core/lib/dtc-grub,
1817 grub-core/Makefile.libfdt.def
1818 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
1819
fa471bfa
VS
18202013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * include/grub/video.h (grub_video_register): Keep double-linked as
1823 well as single-linked invariants.
1824 Reported by: qwertial.
1825
d65be02b
VS
18262013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1827
1828 * grub-core/commands/nativedisk.c (get_uuid): Handle
1829 GRUB_DISK_DEVICE_UBOOTDISK_ID.
1830
ba8bc620
VT
18312013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
1832
1833 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
1834 maximum of NW, N, NE heights instead of N's height and maximum of
1835 NW, W, SW widths instead of W's width. (So the box will be always
1836 correctly drawn)
1837
4f0ad029
GS
18382013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1839
1840 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
1841 Fix misuse of variable count.
1842
43d53b72
LL
18432013-07-18 Leif Lindholm <leif.lindholm@arm.com>
18442013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
18452013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 1846
43d53b72
LL
1847 New ports to arm-uboot and arm-efi.
1848 Mostly by Leif Lindholm with some additions from
1849 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 1850
88f8d146
VS
18512013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1852
1853 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
1854 and not before.
1855 Reported by: Leon Drugi.
1856
3f42504c
VS
18572013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
1860 Reported by: Paulo Flabiano Smorigo.
1861
d110499b
VT
18622013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
1863
1864 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
1865
a8674ad3
VT
18662013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
1867
1868 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
1869
286fe4b3
VS
18702013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
1873
1bd57aa3
VS
18742013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
1877
7a87d69f
AB
18782013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
1879
1880 * grub-core/net/bootp.c: Export net_* variables.
1881 * grub-core/net/net.c: Likewise.
1882
b2182299
VS
18832013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
1886
795b3dc0
VS
18872013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1888
1889 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
1890
68714c43
VS
18912013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
1894
af211bab
VS
18952013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
1898
0036f02d
MM
18992013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1900
1901 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
1902 <= 0.
1903
6d0ddff3
MM
19042013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1905
1906 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
1907 functions.
1908
038016f4
MM
19092013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1910
1911 * grub-core/fs/zfs/zfs_lz4.c: New file.
1912 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
1913
776bdce2
MM
19142013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1915
1916 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
1917
c71dbd40
MM
19182013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1919
1920 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
1921 (check_pool_label): Likewise.
1922 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
1923
19242013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
1925
1926 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
1927
8e67b50f
AB
19282013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
1929
1930 * docs/grub.texi (Commands): Document postition parameters
1931 for menuentry command.
1932
f5ae3717
AB
19332013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
1934
1935 * util/grub-mknetdir.in: Remove stray line from help output.
1936
9c28da2a
VS
19372013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1938
1939 Remove early sm712 init as there is no reason for it (the "watchdog"
1940 effect was due to wrong GPIO map).
1941
139072b8
VS
19422013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1943
1944 * grub-core/commands/pcidump.c: Remove static variables.
1945
c6a61bda
VS
19462013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1947
1948 * grub-core/commands/sleep.c: Refresh screen before sleeping.
1949
51369614
VS
19502013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1951
1952 * configure.ac: Move delimiter after the infos.
1953
efa8640a
VS
19542013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
1957
6f80a7b2
VS
19582013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
1961 not filling whole 8x16 space.
1962
a2371e19
VS
19632013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1964
1965 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
1966
64fce2d8
VS
19672013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1968
1969 * configure.ac: Indicate which liblzma is used if any.
1970
eb272d84
PW
19712013-06-21 Paul Wise <pabs3@bonedaddy.net>
19722013-06-21 Craig Sanders <savannah@taz.net.au>
1973
1974 * util/grub-reboot.in: Document submenu usage.
1975
a9e5abee
CW
19762013-06-25 Colin Watson <cjwatson@ubuntu.com>
1977
1978 * .bzrignore: Update with a number of new test-related files.
1979
e639c204
CW
19802013-06-25 Colin Watson <cjwatson@ubuntu.com>
1981
1982 * util/grub-script-check.c: Fail on scripts containing no
1983 commands, to guard against corrupted grub-mkconfig setups that
1984 produce no useful output.
1985 * tests/grub_script_no_commands.in: New test.
1986 * Makefile.util.def (grub_script_no_commands): Add.
1987 Reported by Hans Putter. Fixes Debian bug #713886.
1988
a4c89b17
AB
19892013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
1990
1991 * grub-core/disk/diskfilter.c: Forgot to remove comment
1992 from previous commit.
1993
5b06b53c
AB
19942013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
1995
1996 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
1997 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
1998
702da5c9
AB
19992013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2000
2001 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
2002
aa62a5b7
AB
20032013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2004
2005 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
2006 rescan diskfilter devices until nothing new is found.
2007
4aa237c8
VS
20082013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2009
2010 Fix casts when compiling coreboot-specific code for 64-bit EFI.
2011
93d8479b
VS
20122013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2013
2014 Don't try to detect cbfs on *-emu.
2015
837222cc
VS
20162013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * grub-core/term/gfxterm.c: USe right background color when scrolling.
2019
99c971af
VS
20202013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 Add support for processed coreboot payload chainloading.
2023
e6930a45
VS
20242013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 Enable coreboot information commands even when not loaded as
2027 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
2028
5027af38
VS
20292013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 Support for cbfs. Also factor out the part which is common
2032 for all archives to a separate module. This splits tar from cpio
2033 as they are very different but keeps cpio, cpio_be, odc and newc
2034 together since they're very similar.
2035
a5b55c4b
DM
20362013-06-15 David Michael <fedora.dm0@gmail.com>
2037
2038 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
2039 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
2040
0301a8b3
VS
20412013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * tests/grub_script_eval.in: Really add the eval test.
2044
3d84cb17
VS
20452013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2046
2047 Move flavour-specific parts out of common cpio.c file and
2048 rename remaining to cpio_common.c
2049
593e430c
AB
20502013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2051
2052 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
2053 off new function grub_script_execute_new_scope. Change callers to use
2054 either of them as appropriate.
2055 * grub-core/commands/eval.c: New command eval.
2056 * docs/grub.texi (Commands): Document it.
2057
63c29849
AB
20582013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2059
2060 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
2061 to fetch values when listing.
2062
cc284112
AB
20632013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2064
2065 Fix make dist on non-pc.
2066
20672013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
2068
2069 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
2070 without a device name.
2071
69544d1e
VS
20722013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2073
2074 Remove enable_executable_check as it's not needed anymore.
2075 Reported by: dougray.
2076
96dbe648
VS
20772013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
2080 ambigouos RAID before discovering RAIDs on top of it.
2081 Reported by: bodom.
2082
ccfc0bdb
VS
20832013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2084
2085 Fix typo (failback vs fallback).
2086
f2587088
AB
20872013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
2088
2089 * util/grub.d/30_os-prober.in: Add support for probing EFI
2090 System Partition (as of os-prober 1.58).
2091
cec5cf0c
VS
20922013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * configure.ac: Add yet another path to unifont. For parabola.
2095
e40b4596
JT
20962013-05-30 Josh Triplett <josh@joshtriplett.org>
2097
2098 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
2099 handling to copy the killed characters to the kill buffer as
2100 UCS4 stored as grub_uint32_t rather than as 8-bit characters
2101 stored as char. Eliminates UCS4 truncation and corruption
2102 observed when killing characters with Ctrl-u and yanking them
2103 back with Ctrl-y.
2104
fc4c4fdd
VS
21052013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2106
2107 Detach optional parts of gfxterm and integrate in with coreboot init.
2108
6570b205
VS
21092013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2110
2111 Move blit and fill dispatcher to appropriate files to decrease export
2112 and relocation overhead.
2113
b8323067
VS
21142013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2115
2116 * grub-core/font/font.c, include/grub/font.h: Inline simple font
2117 functions.
2118
3cc1878f
VS
21192013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2120
2121 * grub-core/Makefile.am: Fix compilation problem with some
2122 automake versions.
2123
4b80e43c
VS
21242013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
2127
57e0c20c
VS
21282013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
2131 automake versions.
2132
4fd42c53
VS
21332013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2134
2135 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
2136 SSDT.
2137
1e908b34
RS
21382013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
2139
2140 * grub-core/partmap/dfly.c: New partition map.
2141
1359e474
VS
21422013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
2145 checking.
2146 Reported by: Francesco Lavra.
2147
17806392
AB
21482013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
2149
2150 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
2151 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
2152 false conditions.
2153 * conf/Makefile.common: define dist_grubconf_DATA
2154
cdce14fa
VS
21552013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 Progressively skip menu elements on small terminals rather
2158 than crashing.
2159
c8d6cc3c
VS
21602013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
2163 to avoid losing last column.
2164
a73b31ce
VS
21652013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2166
2167 * po/exclude.pot: Add missing string "%C".
2168
1202c764
VS
21692013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2170
2171 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
2172 after the test.
2173
50268344
VS
21742013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2175
2176 * util/grub-install.in: Gettextize "Not found" message.
2177
62b15edf
VS
21782013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2179
2180 Fix distfiles list.
2181 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2182
21832013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
2184
2185 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
2186 present.
2187 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
2188
709ad61b
VS
21892013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2190
2191 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
2192
d128901a
VS
21932013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2194
2195 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
2196 attribute since structure is not necessarily aligned.
2197
34b22f5c
AB
21982013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
2199
2200 * docs/grub.texi (Device syntax): Clarify description of network
2201 drives.
2202
0f7e980b
VS
22032013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2204
2205 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
2206 for vasprintf presence.
2207
30b03dc2
VS
22082013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * util/grub-install.in: Handle efibootmgr presence check.
2211 Reported by: Leif Lindholm.
2212
0dc11c08
VS
22132013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
2216 new strings to translate.
2217
f8024c3f
VS
22182013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
2221 yet another string (pun intended) to translate.
2222
b4c1da62
VS
22232013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 * po/POTFILES-shell.in: Autogenerate it.
2226
0ef7478b
VS
22272013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
2230
8200fa15
VS
22312013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
2234 misnomer.
2235
091945b2
AB
22362013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
2237
2238 * docs/grub.texi (Network): Add description of net_default_interface,
2239 net_default_ip and net_default_mac. Rewrite variables description
2240 to emphasize that they are per-interface.
2241
0e7b2e32
VS
22422013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 New test: cmdline and cat.
2245
16f7c8f6
VS
22462013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 * grub-core/commands/cat.c: Show UTF-8 characters.
2249
3e912fda
VS
22502013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 * conf/Makefile.common: Poison float and double on non-emu.
2253
ee0220bc
VS
22542013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2255
2256 * configure.ac: Don't disable extended registers on emu.
2257
89e0240c
VS
22582013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 * configure.ac: Don't use extended registers on x86_64.
2261 Reported by: Peter Jones.
2262
e56d9637
VS
22632013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 * grub-core/term/efi/console.c: Fix compile error.
2266
8098f655
VS
22672013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 Compressed HFS+ support.
2270
16940e07
VS
22712013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
2274 pixel".
2275
c5dbc13d
VS
22762013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 Menu color test.
2279
011f8ae8
VS
22802013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2281
2282 * grub-core/tests/setjmp_test.c: New test.
2283
2aa072d7
VS
22842013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 New variables 'net_default_*' to determine MAC/IP of default interface.
2287
43fe02cb
VS
22882013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 * tests/gettext_strings_test.in: A test to check for strings not
2291 marked for translation.
2292
bed06142
VS
22932013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * autogen.sh: Exclude unused libgcrypt files from translation.
2296
fb2666b5
VS
22972013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2298
2299 Simplify few strings.
2300
d22840ec
VS
23012013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 Mark few forgotten strings for translation.
2304
e34092fd
VS
23052013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
2308 rather than printf.
2309
47cf82b4
VS
23102013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
2313 rather than printf.
2314 * grub-core/video/readers/tga.c: Likewise.
2315
1eed0e6e
VS
23162013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2317
2318 * tests/priority_queue_unit_test.cc: New test.
2319
c5b7697b
VS
23202013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
2323 than printf.
2324
5945c2f8
AB
23252013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
2326
2327 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
2328 variable for one time boot menu entry.
2329
fa292343
B
23302013-05-05 Bean <bean123ch@gmail.com>
2331
2332 * grub-core/commands/testspeed.c: New command testspeed.
2333
310d4214
VS
23342013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2335
2336 Factor-out human-size printing.
2337
85002bf3
VS
23382013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2339
2340 Agglomerate more mallocs to speed-up gfxterm.
2341
22b06e96
VS
23422013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 Speed-up gfxterm by slightly agglomerating mallocs.
2345
b7c036bc
VS
23462013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 More video checks.
2349
92323d1f
VS
23502013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2351
2352 Speed-up gfxterm by saving intermediate results in index+alpha
2353 format.
2354
0fb356a3
VS
23552013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2356
2357 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
2358 test.
2359
44dea3f9
VS
23602013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
2363 line of timeout as it may contain the rest of long line.
2364
14af86e4
VS
23652013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 * grub-core/normal/main.c: Fix freed memory dereference.
2368
03f7c8c3
VS
23692013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 Fix several memory leaks.
2372
c686014c
VS
23732013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
2376
0788a695
VS
23772013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2378
2379 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
2380
daf01d61
VS
23812013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 Fix test -a and -o precedence.
2384 Reported by: adrian15.
2385
82ae74d7
VS
23862013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
2389
8cec7bd4
AB
23902013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
2391
2392 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
2393 and add it as source to functional_test module.
2394
aa73d688
VS
23952013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
2398
c104b6f9
VS
23992013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2400
2401 New series of tests for gfxterm and gfxmenu.
2402
7391c4d5
VS
24032013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2404
2405 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
2406 the theme path relative to $prefix/themes.
2407
cff50118
VS
24082013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2409
2410 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
2411 Fix order bug.
2412 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
2413
7c332bdc
VS
24142013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2415
2416 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
2417 descriptor.
2418
a4f9a5ff
VS
24192013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2420
2421 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
2422 grub_gfxmenu_timeout_notifications.
2423 (grub_gfxmenu_view_destroy): Likewise.
2424
b5a2114d
VS
24252013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2426
2427 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
2428
a8905e8a
VS
24292013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2430
2431 Several fixes to ieee1275 and big-endian video.
2432
813c1622
VS
24332013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 Add missing exports on mips.
2436
3f3e7326
VS
24372013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
2440 if no unifont is found.
2441 Restore original keyboard.
2442
095accd1
VS
24432013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
2446 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
2447
50361660
VS
24482013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2449
2450 First automated video test (running videotest and comparing results)
2451
cd0f6eec
VS
24522013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
2455 instead of 2 to have full RGB/CMY test pattern.
2456
3f9634e5
VS
24572013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2458
2459 Add few more tests.
2460
583e5b64
VS
24612013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * include/grub/arc/arc.h: Account for missing "other" peripheral on
2464 ARCS. All users updated.
2465
aa7bcb99
VS
24662013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
2469
95ef1a54
VS
24702013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 * grub-core/partmap/amiga.c: Fix size of checksummed block.
2473
46546fc5
VS
24742013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
2477 Reported by: qwertial.
2478
3476e0ef
VT
24792013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
2480
2481 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
2482 with syntax "XXX deg"/"XXX °".
2483
96f33fed
VS
24842013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2485
2486 Make PCI init in i386-qemu port more robust.
2487
24882013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
2489
2490 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
2491 cached view is reused.
2492 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
2493 open boot menus.
2494
c53b4e67
VS
24952013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 Unify more code in grub-install_header.
2498
f7457fb2
VS
24992013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 Add few new tests.
2502
e2f27a8c
VS
25032013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 Enforce disabling of firmware disk drivers when native drivers kick in.
2506
ef9d8cd5
VS
25072013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 * grub-core/commands/nativedisk.c: Customize the list of modules on
2510 platform. Don't try to search for disks already using native drivers.
2511
f7bf6c31
VS
25122013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2513
2514 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
2515 platforms.
2516
bdc4add8
VS
25172013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
2520 handling of variables containing backslash.
2521
e9e46c9a
VS
25222013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
2525 dereference.
2526 Reported by: qwertial.
2527
0e90dee8
VS
25282013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
2531
e0aacf24
VS
25322013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
2533
2534 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
2535 dereference.
2536 Reported by: qwertial.
2537
3c0003c3
VS
25382013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2539
2540 * docs/grub.texi: Add a comment about usefullness of nativedisk.
2541
adb7d667
VS
25422013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2543
2544 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
2545
7cd0df84
VS
25462013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 New command `nativedisk'.
2549
02adbb93
VS
25502013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2551
2552 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
2553 * grub-core/loader/i386/bsd.c: Likewise.
2554
9fb0fd4f
VS
25552013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2556
2557 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
2558
bd69257a
VS
25592013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2560
2561 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
2562 grub_get_unaligned16 rather than shifts.
2563
178c2764
VS
25642013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * grub-core/kern/file.c: Use const char * rather than casting to
2567 non-const.
2568
eadfad24
VS
25692013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2570
2571 * grub-core/commands/probe.c: Add missing grub_device_close.
2572
9f73ebd4
VS
25732013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 * INSTALL: Document linguas.sh.
2576
965fa829
VS
25772013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 Remove POTFILES.in and regenerate it in autogen.sh.
2580
d417ddc4
VS
25812013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 Move --directory/--override-directorry to grub-install_header and unify.
2584
f97ec546
VS
25852013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
2586
2587 * grub-core/term/morse.c: Macroify dih and dah.
2588
b2d7470c
PFS
25892013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2590
2591 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
2592
141e2a78
VS
25932013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2594
2595 * grub-core/term/ns8250.c: Systematically probe ports by writing
2596 to SR before using them.
2597
1dd70ebd
PFS
25982013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2599
2600 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
2601 disks.
2602 (check_sas): Get sas_adress info.
2603
c796a107
VS
26042013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2605
2606 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
2607 ports.
2608
43168646
LD
26092013-04-27 Leon Drugi <eyak>
2610
2611 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
2612 BSS clearing.
2613
e7b8fd08
VS
26142013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2615
2616 Core compression test.
2617
17f9fd29
VS
26182013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2619
2620 Implement grub_machine_get_bootlocation for ARC.
2621
dc2a6c8b
VS
26222013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2623
2624 Improve AHCI detection and command issuing.
2625
f25a2ba6
VS
26262013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2627
2628 Fix pseries test.
2629
a6393224
VS
26302013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2631
2632 Make 'make check' work on emu.
2633
db99fbe8
VS
26342013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 Replace libcurses with our own vt100 handling for the ease of testing
2637 and decreasing prerequisites.
2638
b24ca7cd
VS
26392013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
2642
63314aa4
VS
26432013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2644
2645 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
2646 compile when not needed.
2647
c1b00fff
VS
26482013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 * tests/pseries_test.in: New test.
2651
f93e89ef
VS
26522013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 Add test to check that different boot mediums work.
2655
c4b456d3
VS
26562013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
2659 ofw limited ISO support.
2660
5fe67f39
VS
26612013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
2662
2663 * configure.ac: Fix loongson conditional.
2664
7f63a64f
VS
26652013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2666
2667 Enable mipsel-arc.
2668
b04b5990
VS
26692013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 Add serial on ARC platform.
2672
88d2f302
VS
26732013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2674
2675 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
2676 commit.
2677
86eb23bc
VS
26782013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2679
2680 * tests/partmap_test.in: Add missing double semicolon.
2681
eec3bb75
VS
26822013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2683
2684 * util/grub-mkrescue.in: Fix loongson filename.
2685
e0810df3
VS
26862013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * util/grub-mkrescue.in: Move all files that don't have a location
2689 set in stone under /boot/grub. Use ISO hard links rather than copies
2690 to save some space.
2691
65a6b30b
VS
26922013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
2695 bogus SLOF values.
2696
6aff0107
VS
26972013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 Make check work on mips-arc.
2700
5e013e56
VS
27012013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * util/grub-mkrescue.in: Alias sashARCS as sash.
2704
d1989e2e
VS
27052013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2706
2707 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
2708 it's serial.
2709
1a25e72c
VS
27102013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2711
2712 * util/grub-install.in: Fix target fo qemu_mips.
2713 Fix extension on EFI.
2714
a59a9826
VS
27152013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
2718 in front of chosen entry to mark it even if highlighting is lost.
2719
1a40f80c
VS
27202013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
2723 gfxpayload=keep if cbfb is active.
2724
e343549c
VS
27252013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
2728
45fbd9a2
VS
27292013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2730
2731 Add missing video ids to coreboot and ieee1275 video.
2732
ab1440bd
VS
27332013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * util/grub-mkrescue.in: Add mips-arc support.
2736
cdeb8324
VS
27372013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
2740
8528c879
VS
27412013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 Move mips-arc link address. Previous link address was chosen
2744 in belief that RAM on SGI platforms grows down while in fact it
2745 grows up from an unusual base.
2746
17fca573
VS
27472013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2748
2749 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
2750 Fix a type which prevented CD-ROM and floppy boot.
2751
d178788e
VS
27522013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2753
2754 Support coreboot framebuffer.
2755
2756 * grub-core/video/i386/coreboot/cbfb.c: New file.
2757
fe4c3e7e
VS
27582013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2759
2760 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
2761 detecting too small regions.
2762
ec2dd179
VS
27632013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2764
2765 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
2766
872dac83
VS
27672013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
2770 Remove dprintf.
2771 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
2772
90ec4b7f
VS
27732013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2774
2775 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
2776 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
2777 * grub-core/loader/powerpc/ieee1275/linux.c
2778 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
2779
f32555dd
VS
27802013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2781
2782 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
2783 Look for /boot-rom as well as /rom/boot-rom.
2784
38649799
VS
27852013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2786
2787 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
2788 handling when creating text_layer failed.
2789 * grub-core/video/video.c (grub_video_create_render_target):
2790 Set result to 0 on error.
2791 (grub_video_delete_render_target): Do not dereference NULL.
2792
aeace7f7
VS
27932013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
2796 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
2797 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
2798 (grub_linux_load64): Mask out 2 high bits.
2799
4eafa175
AB
28002013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
2801
2802 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
2803 more place.
2804
daaa64bd
VS
28052013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 Add support for pseries and other bootinfo machines to grub-mkrescue.
2808
2809 Tested by: Paulo Flabiano Smorigo.
2810
d0d2daa6
VS
28112013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2812
2813 * util/grub-mkrescue.in: Add GPT for EFI boot.
2814
b193e100
VS
28152013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
2818 It improves performance in qemu.
2819
a0f8f3ac
VS
28202013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2821
2822 * build-aux/snippet: Add missing gnulib files.
2823
284df0e2
AB
28242013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
2825
2826 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
2827
740201f3
AB
28282013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
2829
2830 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
2831
a7e03923
PJ
28322013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
28332013-04-15 Peter Jones <pjones@redhat.com>
2834
2835 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
2836 sectors.
2837 Based on patch by Peter Jones.
2838
25fc51a8
VS
28392013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2840
2841 Fix DMRAID partition handling.
2842
88017d47
VS
28432013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * tests/grub_cmd_date.in: Skip on sparc64.
2846
fa7d914e
VS
28472013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2848
2849 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
2850 firmware error messages.
2851
cbe57a48
VS
28522013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2853
2854 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
2855 source and destination differ.
2856
21aecce0
VS
28572013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
2860 detection.
2861
25092d29
VS
28622013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2863
2864 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
2865 match config-util.h to avoid warnings and increase compatibility.
2866
79451522 28672013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 28682013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
2869
2870 Add option to compress files on install/image creation.
2871
78b7d77b
VS
28722013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * docs/grub-dev.texi: Rearrange menu to match the section order.
2875 Reported by: Bryan Hundven.
2876
cc2fa5ec
VS
28772013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
2880
b49fe879
VS
28812013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 Move GRUB out of system area when using xorriso 1.2.9 or later.
2884
5351da81
VS
28852013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2886
2887 * tests/grub_cmd_date.in: Add missing exit 1.
2888
c9d586ea
VS
28892013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2890
2891 * tests/partmap_test.in: Skip on sparc64.
2892
3f729741
VS
28932013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 Support grub-shell on sparc64.
2896
8ca86b3a
VS
28972013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2898
2899 Support mkrescue on sparc64.
2900
aa1af9bb
VS
29012013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2902
2903 Allow IEEE1275 ports on path even if it wasn't detected automatically.
2904 Needed on OpenBIOS due to incomplete device tree.
2905
ac4fea79
VS
29062013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
2909 would be otherwise excluded.
2910
29112013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
2912
2913 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
2914 Inline name defines used only once.
2915
fe22b071
VS
29162013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2917
2918 Fix memory leaks in ofnet.
2919 Reported by: Francesco Lavra.
2920
9d21381b
VS
29212013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * docs/man/grub-glue-efi.h2m: Add missing file.
2924
07aec23c
VS
29252013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2926
2927 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
2928
67ab8353
VS
29292013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 Better support Apple Intel Macs on CD.
2932
ba44ca6d
VS
29332013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 Replace stpcpy with grub_stpcpy in tools.
2936
bbdd6305
VS
29372013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 Handle Japanese special keys.
2940 Reported by: Hiroyuki YAMAMORI.
2941 Codes supplied by: Hiroyuki YAMAMORI.
2942
8573d302
VS
29432013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * util/grub-mkimage.c: Document memdisk implying --prefix.
2946
d70dbab7
VS
29472013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
2950 much we can do about it anyway.
2951
51a4c3e3
AN
29522013-04-12 Aleš Nesrsta <starous@volny.cz>
2953
2954 Fix handling of split transfers.
2955
92c8f58d
VS
29562013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/net/http.c: Fix bad free.
2959
b7d17a49
VS
29602013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
2963 than buffer size.
2964
a3d566d4
VS
29652013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2966
2967 Disable partmap check on i386-ieee1275 due to openfirmware issues.
2968
a936af56
VS
29692013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * tests/util/grub-shell.in: Fix it on powerpc.
2972
51212234
VS
29732013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2974
2975 Turn off QEMU ACPI-way since new releases don't have shutdown port
2976 anymore.
2977
a21eec9e
VS
29782013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2979
2980 * docs/grub.texi: Update coreboot status info.
2981
e3734b84
VS
29822013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2983
2984 * tests/grub_cmd_date.in: New test for datetime.
2985
f9d40055
VS
29862013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 * tests/partmap_test.in: Fix missing qemudisk setting.
2989
dbc56d8f
VS
29902013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 Support i386-ieee1275 grub-mkrescue and make check on it.
2993
a79b8a15
VS
29942013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2995
2996 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
2997 feature for it.
2998
48f39bb4
VS
29992013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
3002 GRUB_CMDLINE_XEN_DEFAULT.
3003 Reported by: Marc Warne (GigaTux) <gigatux>
3004
053cfcdd
VS
30052013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 Import new gnulib.
3008
93cd84df
VS
30092013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 Use ACPI shutdown intests as traditional port was removed.
3012
f4b1fa4f
AB
30132013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
3014
3015 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
3016 distinction.
3017
49818a59
VS
30182013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
3021 Fix few warining messages and leaks while on it.
3022
9277a306
AB
30232013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
3024
3025 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
3026 links under grub-core/lib/libgcrypt-grub/mpi.
3027
d5e2a158
VS
30282013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3029
3030 Fix ia64-efi image generation on big-endian machines. Deduplicate
3031 some code while on it.
3032 Reported by: Leif Lindholm.
3033
18866643
AB
30342013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3035
3036 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
3037 as extra_dist.
3038
ca53deb8
AB
30392013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3040
3041 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
3042
d4c4b8e1
BH
30432013-04-08 Bryan Hundven <bryanhundven@gmail.com>
3044
3045 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
3046 texinfo-5.1.
3047
47043f95
VS
30482013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 * grub-core/normal/term.c: Few more fixes for menu entry editor
3051 rendering.
3052 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3053
a3216068
VS
30542013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3055
3056 * grub-core/normal/term.c: Few more fixes for menu entry editor
3057 rendering.
3058 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3059
21026747
AB
30602013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3061
3062 * conf/Makefile.extra-dist (EXTRA_DIST): Add
3063 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
3064
59624ca8
AB
30652013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3066
3067 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
3068 instead of hardcoding grub.mo.
3069
1f44478c
FN
30702013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
3071
3072 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
3073
eeada7b1
VS
30742013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
3077 grub-core/disk/geli.c.
3078
132867de
VS
30792013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * util/grub-mkfont.c: Prefer enum to #define.
3082
de73de17
VS
30832013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
3086
1865baa7
VS
30872013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
3090
ce7d92a9
VS
30912013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
3094
52eab656
VS
30952013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
3098
98b23b95
VS
30992013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * include/grub/bsdlabel.h: Use enums.
3102
0467a5dd
VS
31032013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 Move GRUB_CHAR_BIT to types.h.
3106
16cc9f03
AB
31072013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3108
3109 * docs/grub.texi: Document more user commands.
3110
3152aecb
AB
31112013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3112
3113 * docs/grub.texi: Document menuentry --id option.
3114
c506fc30
FL
31152013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
3116
3117 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
3118
aa428238
VS
31192013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 Unify file copying setup across different install scripts. Add
3122 options for performing partial install.
3123
efe0cdda
PJ
31242013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
31252013-04-04 Peter Jones <pjones@redhat.com>
3126
3127 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
3128
f75835bd
VS
31292013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 Use TSC as a possible time source on i386-ieee1275.
3132
2cd5ce6c
VS
31332013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3134
3135 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
3136 Init err.
3137
c9625630
VS
31382013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 * util/grub-setup.c (setup): Handle some corner cases.
3141
be008941
VS
31422013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
3145
1a78d573
VS
31462013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * grub-core/commands/verify.c: Save verified file to avoid it being
3149 tampered with after verification was done.
3150
db8ff59f
VS
31512013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3152
3153 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
3154 reported width by one to compensate for curesor algorithm problem.
3155
91bf46b1
VS
31562013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3157
3158 Fix screen corruption in menu entry editor and simplify the code
3159 flow while on it.
3160
a7b1d693
AB
31612013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
3162
3163 * util/grub-mount.c (fuse_init): Return error if fuse_main
3164 failed.
3165
31df9ad8
FL
31662013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
3167
3168 * include/grub/elf.h: Add missing ARM relocation codes and fix
3169 existing ones.
3170
07f392eb
VT
31712013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3172
3173 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
3174
9efd73ec 31752013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
31762013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
3179 into account when calculating radius.
3180
31812013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
3182
3183 * grub-core/gfxmenu/view.c: Fix off-by-one error.
3184
4985ddaa
VT
31852013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3186
3187 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
3188
8c3635ff
RS
31892013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3190
3191 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
3192 missing closing bracket.
3193
74a35e69
RS
31942013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3195
3196 * INSTALL: Mention xorriso requirement.
3197
40f1c000
AB
31982013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
3199
3200 * grub-core/commands/verify.c: Fix hash algorithms values for
3201 the first three hashes - they start with 1, not with 0.
3202
e75fdee4
VS
32032013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
3206 Try terminating EFI services several times due to quirks in some
3207 implementations.
3208
33028f4c
CW
32092013-03-26 Colin Watson <cjwatson@ubuntu.com>
3210
3211 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
3212 skipping Event, Device, Processor, PowerRes, ThermalZone, and
3213 BankField extended opcodes.
3214 (get_sleep_type): Add minimal scope handling (just enough to
3215 handle setting the scope to the root path).
3216 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
3217 * include/grub/acpi.h: Add enumeration values for Event, Device,
3218 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
3219
33871a10
VT
32202013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
3221
3222 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
3223 memory leak.
3224
8990963a
VS
32252013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 * grub-core/disk/ahci.c: Give more time for AHCI request.
3228
daae8f9e
VS
32292013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
3232 command.
3233
6a7fb94b
VS
32342013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 Replace the region at 0 from coreboot tables to available in BSD
3237 memory map.
3238
ff99babd
VS
32392013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
3242 non-BIOS platforms.
3243
30d6b1b2
VS
32442013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3245
3246 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
3247 platforms.
3248
6ccd0b31
VS
32492013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
3252 handling of multi-device filesystems.
3253
23c9cc04
VS
32542013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
3257 platforms.
3258
ce50dbd7
VS
32592013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 Add new 'proc' filesystem framework and put luks_script into it.
3262
d975e8d5
VS
32632013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
3266 and qemu.
3267
e73ba5e8
VS
32682013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
3271
92750e4c
VS
32722013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3273
3274 Add ability to generate newc additions on runtime.
3275
0ec45a68
VS
32762013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
3279 description.
3280
320abd43
VS
32812013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * po/POTFILES.in: Regenerate.
3284
d7a6506e
VS
32852013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * grub-core/commands/verify.c (hashes): Add several hashes
3288 from the spec.
3289
8fe05def
VS
32902013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 Slight improve in USB-related boot-time checkpoints.
3293
524e2766
VS
32942013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * grub-core/commands/boottime.c: Fix copyright header.
3297
cc19857a
VS
32982013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
3301 coreboot tables content. Support for cbmemc.
3302
ef8810e9
VS
33032013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 Fix a conflict between ports structures with 2 controllers of
3306 same kind.
3307
e9dabdfa
VS
33082013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3309
3310 * include/grub/boottime.h: Add missing file.
3311
f6df57d2
VS
33122013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 Initialize USB ports in parallel to speed-up boot.
3315
d745dda7
VS
33162013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3317
3318 Fix USB devices not being detected when requested
3319 due to delayed attach.
3320
e5a2dd7b
VS
33212013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3322
e744219b
VS
3323 Implement boot time analysis framework.
3324
33252013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3326
3327 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
3328 descriptor to just receive it as argument rather than endpoint
3329 address.
3330
5dd6f587
VS
33312013-03-19 Aleš Nesrsta <starous@volny.cz>
3332
3333 Better estimate the maximum USB transfer size.
3334
2f1071d5
VS
33352013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 Resend a packet if we got the wrong buffer in status.
3338
46ecfc49
VS
33392013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
3342 multiplication rather than division.
3343
ea811130
VS
33442013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
3347 than divisions.
3348
d2789cf0
VS
33492013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
3352 operations to have intended shifts and not divisions.
3353
a9c94590
VS
33542013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
3357 intended shifts rather than division.
3358
84cfe81b
VS
33592013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3360
3361 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
3362 computation for some years before epoch. Avode confusing division
3363 while on it.
3364
21344ef6
VS
33652013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 * grub-core/video/i386/pc/vbe.c
3368 (grub_video_vbe_print_adapter_specific_info): Replace division by
3369 shifts.
3370
3f2b4d1a
VS
33712013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3372
3373 Adjust types in gdb module to have intended unsigned shifts rather than
3374 signed divisions.
3375
3dac5878
VS
33762013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
3379 maximum size is 4G - 1 on hfs
3380
5341c0fb
VS
33812013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
3384
fc3ff2a2
VS
33852013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
3388 function.
3389
81455e8e
AB
33902013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
3391
3392 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
3393 causing gcc error with gcc 4.7.1.
3394
efd4f117
NZ
33952013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
3396
3397 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
3398 dereference null pointer. While the code is technically correct, gcc
3399 may eliminate a null check if pointer is already dereferenced.
3400
e11645f4
NZ
34012013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
3402
3403 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
3404 OOM check.
3405 * grub-core/normal/term.c (read_terminal_list): Likewise.
3406
77468368
VS
34072013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 Lift up core size limits on some platforms. Fix potential memory
3410 corruption with big core on small memory systems. Document remaining
3411 limits.
3412
f6b58fe5
VS
34132013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
3416 gotoxy to 0,0.
3417
19ce697d
VS
34182013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 Remove all trampoline support. Add -Wtrampolines when
3421 present. Remove symbols used for trampolines to make
3422 link fail if trampolines are present.
3423
73b5d90f
VS
34242013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3425
3426 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
3427 append out of its parent.
3428
cb758e96
VS
34292013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3430
3431 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
3432 parent.
3433
3188131f
VS
34342013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3435
3436 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
3437 all vars to a macro. All users updated.
3438
e42b2514
VS
34392013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * grub-core/disk/ieee1275/nand.c: Fix compilation on
3442 i386-ieee1275.
3443
83e1a1a1
VS
34442013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
3447
1d5a880f
VS
34482013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3449
3450 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
3451
6e4146c4
VS
34522013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3453
3454 Move to more hookless approach in IEEE1275 devices handling.
3455
99fcda8a
VS
34562013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3457
3458 * grub-core/kern/term.c (grub_term_normal_color),
3459 (grub_term_highlight_color): Add back lost defaults.
3460
73bf57e2
VS
34612013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3462
3463 Make elfload not use hooks. Opt for flags and iterators instead.
3464
7f8c105f
VS
34652013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
3468 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
3469
396d4091
VS
34702013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3471
3472 * grub-core/script/execute.c (gettext_append): Remove nested functions.
3473
34742013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3475
3476 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
3477 hook pass-through parameter. All users updated and unnested.
3478
74a27421
VS
34792013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3480
3481 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
3482 out of its parent.
3483
b46d4213
VS
34842013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3485
3486 * grub-core/fs/hfs.c: Remove nested functions.
3487
e114c3cc
VS
34882013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3489
3490 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
3491 the context through.
3492 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
3493
f9b7d780
VS
34942013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * util/grub-editenv.c (list_variables): Move print_var out of its
3497 parent.
3498
ca9c2608
VS
34992013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3500
3501 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
3502 function.
3503
5d983f5f
VS
35042013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * grub-core/gentrigtables.c: Make tables const.
3507
3056d3e7
VS
35082013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 Remove nested functions from videoinfo iterators.
3511
e2303774
VS
35122013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3513
3514 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
3515 for 64-bit platforms.
3516
f42e3a2f
VS
35172013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
3520 a FOR_CHILDREN macro.
3521
be174e5e
VS
35222013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
3525 platform from firmware path.
3526
0789b672
VS
35272013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 Enable linux16 on non-BIOS systems for i.a. memtest.
3530
3531 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
3532 correctly.
3533 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
3534
005a9c32
VS
35352013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
3538 Fix end of table condition.
3539
ff2b3cd9
VS
35402013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
3543 out of its parent.
3544
4fc40ff8
VS
35452013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * grub-core/fs/jfs.c: Remove nested functions.
3548
be42d97a
VS
35492013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * grub-core/fs/minix.c: Remove nested functions.
3552
99373ce4
VS
35532013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3554
3555 * grub-core/fs/iso9660.c: Remove nested functions.
3556
5aec2afe
VS
35572013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
3560 of parent function.
3561
6c69e691
VS
35622013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * util/grub-fstest.c: Remove nested functions.
3565
43c91882
VS
35662013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * grub-core/loader/machoXX.c: Remove nested functions.
3569
4eb8b756
CW
35702013-02-27 Colin Watson <cjwatson@ubuntu.com>
3571
3572 Remove nested functions from disk and file read hooks.
3573
3574 * include/grub/disk.h (grub_disk_read_hook_t): New type.
3575 (struct grub_disk): Add read_hook_data member.
3576 * include/grub/file.h (struct grub_file): Likewise.
3577 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
3578 argument.
3579
3580 Update all callers.
3581
df6da5a5
AB
35822012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
3583
3584 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
3585 Fix off by one error in enumerating extended partitions.
3586
21aecde5
AB
35872013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
3588
3589 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
3590 memory leak if device name is not found.
3591
f1a19118
AB
35922013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
3593
3594 * grub-core/normal/menu_entry.c (update_screen): remove
3595 unused variable `off' which caused scroll down arrow to be always shown.
3596
958bfd20
AB
35972013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
3598
3599 * grub-core/normal/menu_entry.c (insert_string): fix off by one
3600 access to unallocated memory.
3601
b7b78edb
AB
36022013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
3603
3604 * Makefile.util.def: Add partmap/msdos.c to common library.
3605 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
3606 * grub-core/disk/ldm.c: Check for existence of
3607 GRUB_PC_PARTITION_TYPE_LDM.
3608
28d468d6
VS
36092013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
3612 sizes and display sector size.
3613
d55ffb02
VS
36142013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3615
3616 Implement new command cmosdump.
3617
b5ea6ce0
VS
36182013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3619
3620 Support Openfirmware disks with non-512B sectors.
3621
3622 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
3623 size of the disk.
3624 * (grub_ofdisk_get_block_size): New function.
3625 * (grub_ofdisk_prepare): Use the correct block size.
3626 * (grub_ofdisk_read): Likewise.
3627 * (grub_ofdisk_write): Likewise.
3628 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
3629 New proto.
3630
cc0e476f
VS
36312013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3632
3633 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
3634
c5dbdc33
VS
36352013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
3638 on first error.
3639
3f078c0f
VS
36402013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
3643 freeing it.
3644
66a93674
VS
36452013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 Implement USBDebug (full USB stack variant).
3648
c9f0c134
VS
36492013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3650
3651 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
3652 unless they have unexpected values.
3653
cfe1288b
VS
36542013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
3657 grub_print_error.
3658
e42b9969
VS
36592013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
3662 zero-out of port structure.
3663
cf94fd62
VS
36642013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
3667 of extended attributes.
3668
f81ef4b5
AB
36692013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
3670
3671 * util/grub-install.in: change misleading comment about
3672 device.map creation
3673
af18fdb4
VS
36742013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3675
3676 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
3677 when menu highlight color isn't set.
3678
08bcec50
M
36792013-01-27 C. Masloch <pushbx@38.de>
3680
3681 Improve FreeDOS direct loading support compatibility.
3682
3683 * include/grub/i386/relocator.h (grub_relocator16_state):
3684 New member ebp.
3685 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
3686 variable.
3687 (grub_relocator16_boot): Handle %ebp.
3688 * grub-core/lib/i386/relocator16.S: Likewise.
3689 * grub-core/loader/i386/pc/freedos.c:
3690 Load BPB to pass kernel which partition to load from.
3691 Check that kernel file is not too large.
3692 Set register dl to BIOS unit number as well.
3693
7782b8a6
CW
36942013-01-22 Colin Watson <cjwatson@ubuntu.com>
3695
3696 * util/grub-reboot.in (usage): Document the need for
3697 GRUB_DEFAULT=saved.
3698 * util/grub-set-default.in (usage): Likewise.
3699 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
3700
e661c180
VS
37012013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3702
3703 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
3704 than defining WORDS_BIGENDIAN manually.
3705
1c22ca9a
VS
37062013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
3709 invariants.
3710
d44892fe
CW
37112013-01-21 Colin Watson <cjwatson@ubuntu.com>
3712
3713 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
3714 nested.
3715 (blit_comb: add_device_width): Likewise.
3716
5fdbaed1
CW
37172013-01-21 Colin Watson <cjwatson@ubuntu.com>
3718
3719 Remove nested functions from USB iterators.
3720
3721 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
3722 (grub_usb_controller_iterate_hook_t): Likewise.
3723 (grub_usb_iterate): Add hook_data argument.
3724 (grub_usb_controller_iterate): Likewise.
3725 (struct grub_usb_controller_dev.iterate): Likewise.
3726
3727 Update all implementations and callers.
3728
4250985a
VS
37292013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3730
3731 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
3732 margin when not needed.
3733
7d8848f3
VS
37342013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3735
bc136973 3736 Make color variables global instead of it being per-terminal.
7d8848f3
VS
3737
37382013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3739
bc136973
VS
3740 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
3741 asterisk.
7d8848f3 3742
ed12a003
CW
37432013-01-21 Colin Watson <cjwatson@ubuntu.com>
3744
3745 Fix powerpc and sparc64 build failures caused by un-nesting memory
3746 map iterators.
3747
6a0db449
CW
37482013-01-21 Colin Watson <cjwatson@ubuntu.com>
3749
3750 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
3751 parameter declarations.
3752
ccd86b21
VS
37532013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3754
3755 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
3756
822b726b
VS
37572013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 Improve spkmomdem reliability by adding a separator between bytes.
3760
115c2cc1
CW
37612013-01-21 Colin Watson <cjwatson@ubuntu.com>
3762
3763 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
3764 an Acer registration utility with several sightings in the wild.
3765 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
3766
fc524edf
CW
37672013-01-21 Colin Watson <cjwatson@ubuntu.com>
3768
3769 Remove nested functions from filesystem directory iterators.
3770
3771 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
3772 (struct grub_fs.dir): Add hook_data argument.
3773
3774 Update all implementations and callers.
3775
53d3e4e3
CW
37762013-01-21 Colin Watson <cjwatson@ubuntu.com>
3777
3778 * docs/grub.texi (Multi-boot manual config): Fix typo for
3779 "recommended".
3780
c821711f
LL
37812013-01-20 Leif Lindholm <leif.lindholm@arm.com>
3782
3783 * util/grub-mkimage.c (main): Postpone freeing arguments.output
3784 until after its use in generate_image.
3785
6a0debbd
CW
37862013-01-20 Colin Watson <cjwatson@ubuntu.com>
3787
3788 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
3789 initrd size to addr_min, since the initrd will be allocated after
3790 this address.
3791
f41e08db
AB
37922013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
3793
3794 * conf/Makefile.common: Fix autogen rules to pass definition
3795 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
3796
77529e0f
LL
37972013-01-20 Leif Lindholm <leif.lindholm@arm.com>
3798
3799 * include/grub/elf.h: Update ARM definitions based on binutils.
3800
b879aa7b
VS
38012013-01-20 Aleš Nesrsta <starous@volny.cz>
3802
3803 Split long USB transfers into short ones.
3804
8eb8284d
AB
38052013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
3806
3807 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
3808 is interrupted by ESC.
3809
08dad2dc
VS
38102013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * util/grub-script-check.c (main): Uniform the error message.
3813
6c724b85
CW
38142013-01-20 Colin Watson <cjwatson@ubuntu.com>
3815
3816 Remove nested functions from ELF iterators.
3817
25239370
CW
38182013-01-20 Colin Watson <cjwatson@ubuntu.com>
3819
3820 Remove nested functions from device iterators.
3821
3822 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
3823 (grub_arc_iterate_devs): Add hook_data argument.
3824 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
3825 (struct grub_ata_dev.iterate): Add hook_data argument.
3826 * include/grub/device.h (grub_device_iterate_hook_t): New type.
3827 (grub_device_iterate): Add hook_data argument.
3828 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
3829 (struct grub_disk_dev.iterate): Add hook_data argument.
3830 (grub_disk_dev_iterate): Likewise.
3831 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
3832 Likewise.
3833 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
3834 Likewise.
3835 * include/grub/partition.h (grub_partition_iterate_hook_t): New
3836 type.
3837 (struct grub_partition_map.iterate): Add hook_data argument.
3838 (grub_partition_iterate): Likewise.
3839 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
3840 (struct grub_scsi_dev.iterate): Add hook_data argument.
3841
3842 Update all callers.
3843
6c0314d6
CW
38442013-01-20 Colin Watson <cjwatson@ubuntu.com>
3845
3846 Fix typos for "developer" and "development".
3847
600dc5f1
VS
38482013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 Add license header to spkmodem-recv.c.
3851
17334a6b
VS
38522013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 Rewrite spkmodem to use PIT for timing. Double the speed.
3855
7d462559
VS
38562013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 Add new command pcidump.
3859
b78d6c32
VS
38602013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 New terminal outputs using serial: morse and spkmodem.
3863
34f71cb8
VS
38642013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 Improve bidi handling in entry editor.
3867
4542e71b
VS
38682013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
3871 argument to prevent name collision.
3872
09fd6d82
CW
38732013-01-15 Colin Watson <cjwatson@ubuntu.com>
3874
3875 Remove nested functions from script reading and parsing.
3876
3877 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
3878 getline_data argument, passed to getline.
3879 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
3880 getline_data argument, passed to grub_parser_split_cmdline.
3881 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
3882 lexerstate->getline_data to lexerstate->getline.
3883 (grub_script_lexer_init): Add getline_data argument, saved in
3884 lexerstate->getline_data.
3885 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
3886 argument, passed to grub_script_parse.
3887 * grub-core/script/script.c (grub_script_parse): Add getline_data
3888 argument, passed to grub_script_lexer_init.
3889 * include/grub/parser.h (grub_parser_split_cmdline): Update
3890 prototype. Update all callers to pass appropriate getline data.
3891 (struct grub_parser.parse_line): Likewise.
3892 (grub_rescue_parse_line): Likewise.
3893 * include/grub/reader.h (grub_reader_getline_t): Add void *
3894 argument.
3895 * include/grub/script_sh.h (struct grub_lexer_param): Add
3896 getline_data member.
3897 (grub_script_parse): Update prototype. Update all callers to pass
3898 appropriate getline data.
3899 (grub_script_lexer_init): Likewise.
3900 (grub_normal_parse_line): Likewise.
3901
3902 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
3903 data argument.
3904 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
3905 static instead of nested. Rename to ...
3906 (grub_parser_execute_getline): ... this.
3907 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
3908 data argument.
3909 * grub-core/normal/main.c (read_config_file: getline): Make static
3910 instead of nested. Rename to ...
3911 (read_config_file_getline): ... this.
3912 (grub_normal_read_line): Add unused data argument.
3913 * grub-core/script/execute.c (grub_script_execute_sourcecode:
3914 getline): Make static instead of nested. Rename to ...
3915 (grub_script_execute_sourcecode_getline): ... this.
3916 * util/grub-script-check.c (main: get_config_line): Make static
3917 instead of nested.
3918
d0d4b8a0
CW
39192013-01-15 Colin Watson <cjwatson@ubuntu.com>
3920
3921 Remove nested functions from memory map iterators.
3922
3923 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
3924 argument, passed to hook.
3925 * grub-core/kern/i386/coreboot/mmap.c
3926 (grub_linuxbios_table_iterate): Likewise.
3927 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
3928 instead of nested.
3929 (grub_machine_mmap_iterate): Add hook_data argument.
3930 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
3931 Add hook_data argument, passed to hook.
3932 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
3933 Likewise.
3934 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
3935 Likewise.
3936 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
3937 Likewise.
3938 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
3939 Likewise.
3940 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
3941 Likewise.
3942 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
3943 Likewise.
3944 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
3945 (grub_machine_mmap_iterate): Likewise.
3946 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
3947 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
3948 prototype.
3949 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
3950 Remove NESTED_FUNC_ATTR from here and from all users.
3951 (grub_mmap_iterate): Update prototype.
3952 (grub_efi_mmap_iterate): Update prototype. Update all callers to
3953 pass appropriate hook data.
3954 (grub_machine_mmap_iterate): Likewise.
3955
3956 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
3957 static instead of nested.
3958 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
3959 Rename to ...
3960 (lsmmap_hook): ... this.
3961 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
3962 Likewise.
3963 (grub_efiemu_mmap_fill: fill_hook): Likewise.
3964 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
3965 heap_init): Likewise.
3966 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
3967 Rename to ...
3968 (mmap_iterate_hook): ... this.
3969 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
3970 Likewise.
3971 * grub-core/lib/ieee1275/relocator.c
3972 (grub_relocator_firmware_get_max_events: count): Likewise.
3973 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
3974 to ...
3975 (grub_relocator_firmware_fill_events_iter): ... this.
3976 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
3977 hook): Likewise. Rename to ...
3978 (grub_relocator_alloc_chunk_align_iter): ... this.
3979 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
3980 Rename to ...
3981 (generate_e820_mmap_iter): ... this.
3982 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
3983 Rename to ...
3984 (count_hook): ... this.
3985 (grub_linux_boot: hook): Likewise. Rename to ...
3986 (grub_linux_boot_mmap_find): ... this.
3987 (grub_linux_boot: hook_fill): Likewise. Rename to ...
3988 (grub_linux_boot_mmap_fill): ... this.
3989 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
3990 hook): Likewise. Rename to ...
3991 (grub_fill_multiboot_mmap_iter): ... this.
3992 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
3993 hook): Likewise. Rename to ...
3994 (count_hook): ... this.
3995 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
3996 hook): Likewise. Rename to ...
3997 (grub_fill_multiboot_mmap_iter): ... this.
3998 * grub-core/loader/powerpc/ieee1275/linux.c
3999 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
4000 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
4001 Likewise. Rename to ...
4002 (alloc_phys_choose): ... this.
4003 (determine_phys_base: get_physbase): Likewise.
4004 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
4005 find_hook): Likewise.
4006 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
4007 (malloc_hook: count_hook): Likewise.
4008 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
4009 Likewise. Rename to ...
4010 (lower_hook): ... this.
4011 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4012 (upper_hook): ... this.
4013 (grub_mmap_get_post64: hook): Likewise. Rename to ...
4014 (post64_hook): ... this.
4015 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
4016 Likewise. Rename to ...
4017 (lower_hook): ... this.
4018 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4019 (upper_hook): ... this.
4020 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
4021 (grub_mmap_iterate: fill_hook): Likewise.
4022 (fill_mask): Pass addr and mask within a single struct.
4023 (grub_cmd_badram: hook): Make static instead of nested. Rename
4024 to ...
4025 (badram_iter): ... this.
4026 (grub_cmd_cutmem: hook): Likewise. Rename to ...
4027 (cutmem_iter): ... this.
4028
22099030
VS
40292013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4030
4031 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
4032 delimit path in strings using quotes.
4033 * util/getroot.c (grub_guess_root_devices): Likewise.
4034 (grub_make_system_path_relative_to_its_root): Likewise.
4035 * util/grub-probe.c (probe): Likewise.
4036 * util/ieee1275/ofpath.c (find_obppath): Likewise.
4037 (xrealpath): Likewise.
4038
4a9950ec
VS
40392013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4040
4041 Fix compilation with older compilers.
4042
4043 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
4044 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
4045 declarations.
4046 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
4047 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
4048 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
4049 identifier with b.
4050 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
4051 * include/grub/crypto.h: Add type defines.
4052 * util/import_gcrypth.sed: Remove duplicate type defines.
4053
adcc6020
VS
40542013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 New command list_trusted.
4057
4058 * grub-core/commands/verify.c (grub_cmd_list): New function.
4059
a4528937
CW
40602013-01-13 Colin Watson <cjwatson@ubuntu.com>
4061
4062 * util/grub-mkimage.c (generate_image): Fix "size of public key"
4063 info message.
4064
ca3a7446
CW
40652013-01-13 Colin Watson <cjwatson@ubuntu.com>
4066
4067 Remove nested functions from PCI iterators.
4068
4069 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
4070 passed to hook. Update all callers to pass appropriate hook data.
4071 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
4072 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
4073 Remove NESTED_FUNC_ATTR from here and from all users.
4074 (grub_pci_iterate): Update prototype.
4075 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
4076 instead of nested. Rename to ...
4077 (grub_cs5536_find_iter): ... this.
4078 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
4079 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
4080 Likewise.
4081 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
4082 Likewise.
4083 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
4084 Likewise.
4085 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
4086 Likewise.
4087 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
4088 * grub-core/video/radeon_fuloong2e.c
4089 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
4090 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
4091 find_card): Likewise.
4092 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
4093 Likewise.
4094
f8e98fee
VS
40952013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4096
4097 * grub-core/commands/verify.c: Mark messages for translating.
4098
055b36b6
VS
40992013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4100
4101 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
4102 fatal.
4103
f7ff879b
VS
41042013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
4107 fatal.
4108
41092013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
4110
4111 * autogen.sh: Do not try to delete nonexistant files.
4112 * util/import_gcrypth.sed: Add some missing header removals.
4113
01323d49
CW
41142013-01-12 Colin Watson <cjwatson@ubuntu.com>
4115
4116 Clean up dangling references to grub-setup.
4117 Fixes Ubuntu bug #1082045.
4118
4119 * docs/grub.texi (Images): Refer generally to grub-install rather
4120 than directly to grub-setup.
4121 (Installing GRUB using grub-install): Remove direct reference to
4122 grub-setup.
4123 (Device map) Likewise.
4124 (Invoking grub-install): Likewise.
4125 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
4126 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
4127 * util/grub-install.in (usage): Likewise.
4128
4129 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
4130 Apply to grub-bios-setup and grub-sparc64-setup rather than to
4131 grub-setup.
4132 * configure.ac: Remove grub_setup output variable.
4133
4134 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
4135 to grub-bios-setup.
4136 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
4137 grub-setup to grub-sparc64-setup.
4138
5e3b8dcb
VS
41392013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4140
4141 Import gcrypt public-key cryptography and implement signature checking.
4142
535714bd
VS
41432013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4144
4145 * grub-core/fs/ntfs.c: Ue more appropriate types.
4146 * grub-core/fs/ntfscomp.c: Likewise.
4147 * include/grub/ntfs.h: Likewise.
4148
3e4f3566
VS
41492013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4150
4151 Support Apple FAT binaries on non-Apple platforms.
4152
4153 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
4154 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
4155 Likewise.
4156 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
4157 Apple FAT binaries.
4158
4dedb13f
VS
41592013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4160
4161 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
4162 sector devices.
4163
f8861eaf
CW
41642013-01-07 Colin Watson <cjwatson@ubuntu.com>
4165
4166 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
4167 explicitly zeroing elements.
4168 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
4169 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
4170 of elements in a structure already allocated using grub_zalloc.
4171 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
4172
86065b0a
CW
41732013-01-07 Colin Watson <cjwatson@ubuntu.com>
4174
4175 * docs/grub.texi (grub_cpu): New subsection.
4176 (grub_platform): Likewise.
4177
c6f1e92f
VS
41782013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
4181
f797ec85
VS
41822013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
4185 divisions.
4186
033d0b4b
VS
41872013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
4190 * grub-core/fs/ntfscomp.c: Likewise.
4191 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
4192 (grub_ntfs_comp): Likewise.
4193
21d1b9a0
VS
41942013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4195
4196 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
4197 Rename to ...
4198 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
4199 of groups_per_block. All users updated.
4200
10ca8645
VS
42012013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
4204 grub_error properly.
4205 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
4206 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
4207
a4c3ed4c
VS
42082013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4209
4210 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
4211 always in /boot/zfs.
4212 Reported by: Yuta Satoh.
4213
0b716507
YS
42142013-01-03 Yuta Satoh <nigoro>
4215
4216 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
4217 ${grub_probe}
4218
00c05e22
VS
42192013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4220
4221 * configure.ac: Extend -Wno-trampolines to host.
4222
dadddb76
VS
42232013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4224
4225 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
4226 entry->len = 0.
4227
54ce53ca
CW
42282013-01-03 Colin Watson <cjwatson@ubuntu.com>
4229
4230 * docs/grub.texi (Invoking grub-mkrelpath): New section.
4231 (Invoking grub-script-check): Likewise.
4232
8912efca
CW
42332013-01-03 Colin Watson <cjwatson@ubuntu.com>
4234
4235 * docs/grub.texi (Invoking grub-mount): New section.
4236 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
4237
c3fc8394
CW
42382013-01-02 Colin Watson <cjwatson@ubuntu.com>
4239
4240 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
4241 test failures, so that a failing unit test correctly causes 'make
4242 check' to fail.
4243
45d26abb
CW
42442013-01-02 Colin Watson <cjwatson@ubuntu.com>
4245
4246 Fix failing printf test.
4247
4248 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
4249 '$' in the correct order when collecting type information.
4250
971dd2c6
CW
42512013-01-02 Colin Watson <cjwatson@ubuntu.com>
4252
4253 * docs/grub.texi (configfile): Explain environment variable
4254 handling.
4255 (source): New section.
4256 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
4257
5c67ea6c
CW
42582012-12-31 Colin Watson <cjwatson@ubuntu.com>
4259
4260 Remove several trivially-unnecessary uses of nested functions.
4261
4262 * grub-core/commands/i386/pc/sendkey.c
4263 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
4264 instead of nested.
4265 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
4266 Rename to ...
4267 (legacy_file_getline): ... this.
4268 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
4269 Likewise.
4270 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
4271 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
4272 to ...
4273 (probe_dummy_iter): ... this.
4274 * grub-core/kern/i386/coreboot/mmap.c
4275 (grub_linuxbios_table_iterate: check_signature): Likewise.
4276 * grub-core/kern/parser.c (grub_parser_split_cmdline:
4277 check_varstate): Likewise. Mark inline.
4278 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
4279 an additional parameter.
4280 (find_long: fnd_long): Likewise. Pass two additional parameters.
4281 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
4282 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
4283 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
4284 Likewise. Rename to ...
4285 (grub_cmos_find_port_iter): ... this.
4286 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
4287 Rename to ...
4288 (find_rtc_iter): ... this.
4289
4290 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
4291 function directly into the function body, since it is only called
4292 once.
4293
33a68ac6
CW
42942012-12-30 Colin Watson <cjwatson@ubuntu.com>
4295
4296 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
4297 __attribute__ ((unused)).
4298 * grub-core/video/bochs.c (find_card): Likewise.
4299 * grub-core/video/cirrus.c (find_card): Likewise.
4300 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
4301 * grub-core/video/sis315pro.c (find_card): Likewise.
4302 * grub-core/video/sm712.c (find_card): Likewise.
4303
608b647a
CW
43042012-12-28 Colin Watson <cjwatson@ubuntu.com>
4305
4306 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
4307 Fixes Savannah bug #37821.
4308
fd49ceb3
CW
43092012-12-28 Colin Watson <cjwatson@ubuntu.com>
4310
4311 Apply program name transformations at build-time rather than at
4312 run-time. Fixes Debian bug #696465.
4313
4314 * acinclude.m4 (grub_TRANSFORM): New macro.
4315 * configure.ac: Create output variables with transformed names for
4316 most programs.
4317 * util/bash-completion.d/grub-completion.bash.in: Use
4318 pre-transformed variables for program names.
4319 * util/grub-install.in: Likewise.
4320 * util/grub-kbdcomp.in: Likewise.
4321 * util/grub-mkconfig.in: Likewise.
4322 * util/grub-mkconfig_lib.in: Likewise.
4323 * util/grub-mknetdir.in: Likewise.
4324 * util/grub-mkrescue.in: Likewise.
4325 * util/grub-mkstandalone.in: Likewise.
4326 * util/grub-reboot.in: Likewise.
4327 * util/grub-set-default.in: Likewise.
4328 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4329 * tests/util/grub-shell-tester.in: Remove unused assignment.
4330 * tests/util/grub-shell.in: Likewise.
4331 * util/grub.d/00_header.in: Likewise.
4332
7024b3c0
CW
43332012-12-28 Colin Watson <cjwatson@ubuntu.com>
4334
4335 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
4336
4337 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
4338 HAVE_RAW_DECL_GETS.
4339 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
4340
e3501b13
VS
43412012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
4342
4343 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
4344 Reported by: Eriks Latosheks <foresterlv>.
4345
b40c88a9
VS
43462012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4347
4348 * docs/grub.texi (Network): Update instructions on generating netboot
4349 image.
4350
ce96d01c
VS
43512012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4352
4353 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
4354 around device name if necessarry.
4355
0f596201
PFS
43562012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4357
4358 * util/grub-install.in: Follow the symbolic link parameter added
4359 to the file command.
4360
600d5bdb
AB
43612012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
4362
4363 * util/grub-install.in: Remove stale TODO.
4364
64ebd2f4
PFS
43652012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4366
4367 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
4368 dynamic allocation for the bootpath buffer.
4369
74b2fe3e
DTB
43702012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
4371
4372 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
4373 window too small.
4374
969b804f
VS
43752012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4376
4377 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
4378 argument rather than font name. All users updated.
4379 (grub_gfxterm_set_window): Likewise.
4380
b9f5ebd6
VT
43812012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4382
4383 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
4384 from working.
4385
258f43b7
VS
43862012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 * util/getroot.c (convert_system_partition_to_system_disk): Support
4389 nbd disks.
4390
cc1ce5f9
VS
43912012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4392
4393 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
4394 infinite loop on corrupted FS.
4395
e77a16ca
VS
43962012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 Fix big-endian mtime.
4399
4400 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
4401 together sec and usec.
4402 (grub_ufs_dir): Use correct byteswapping for UFS time.
4403
d9c48c7b
VS
44042012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
4405
4406 Support big-endian UFS1.
4407
4408 * Makefile.util.def (libgrubmods): Add ufs_be.c
4409 * grub-core/Makefile.core.def (ufs1_be): New module.
4410 * grub-core/fs/ufs_be.c: New file.
4411 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
4412 the file.
4413
2f9f40ba
LL
44142012-11-28 Leif Lindholm <leif.lindholm@arm.com>
4415
4416 * include/grub/types.h: Fix functionality unaffecting typo in
4417 GRUB_TARGET_WORDSIZE conditional macro.
4418
48ff0889
PFS
44192012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4420
4421 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
4422
03711240
GS
44232012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
4424
4425 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
4426 that /netbsd appears first (when it exists).
4427
a31b11bd
CJ
44282012-10-12 Christoph Junghans <ottxor@gentoo.org>
4429
4430 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
4431 Fixes Savannah bug #37558.
4432
e8a5d5d4
CW
44332012-10-12 Colin Watson <cjwatson@ubuntu.com>
4434
4435 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
4436 description of extract_entries_configfile.
4437
44382012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
4439
4440 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
4441 preferred_address.
4442 (grub_cmd_linux): Likewise.
4443 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
4444 preferred_lifetime. Update all users.
4445
288c757d
CW
44462012-09-26 Colin Watson <cjwatson@ubuntu.com>
4447
4448 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
4449 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
4450
0d35da3f
CW
44512012-09-26 Colin Watson <cjwatson@ubuntu.com>
4452
4453 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
4454 errors from grub-probe to /dev/null, not stdout.
4455
b78c3127
VS
44562012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
4459 sector 1.
4460
473959f0
CW
44612012-09-24 Colin Watson <cjwatson@ubuntu.com>
4462
4463 * util/grub-install.in: Make the error message if $source_dir
4464 doesn't exist more useful.
4465
794c8c33
CW
44662012-09-22 Colin Watson <cjwatson@ubuntu.com>
4467
4468 Fix grub-emu build on FreeBSD.
4469
4470 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
4471 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
4472 headers on Linux.
4473 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
4474 implementation is currently Linux-specific.
4475 * util/getroot.c (exec_pipe): Define only on Linux or when either
4476 libzfs or libnvpair is unavailable.
4477 (find_root_devices_from_poolname): Remove unused path variable.
4478
86d08fdb
CW
44792012-09-19 Colin Watson <cjwatson@ubuntu.com>
4480
4481 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
4482 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
4483 should fit before end == 63.
4484
735abf54
CW
44852012-09-19 Colin Watson <cjwatson@ubuntu.com>
4486
4487 * util/grub-setup.c (write_rootdev): Remove unused core_img
4488 parameter. Update all callers.
4489 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
4490 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
4491 GRUB_SETUP_BIOS.
4492
140acd3c
VS
44932012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4494
4495 * util/grub-mkconfig_lib.in (grub_tab): New variable.
4496 (grub_add_tab): New function.
4497 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
4498 * util/grub.d/10_illumos.in: Likewise.
4499 * util/grub.d/10_kfreebsd.in: Likewise.
4500 * util/grub.d/10_linux.in: Likewise.
4501 * util/grub.d/10_netbsd.in: Likewise.
4502 * util/grub.d/10_windows.in: Likewise.
4503 * util/grub.d/10_xnu.in: Likewise.
4504 * util/grub.d/20_linux_xen.in: Likewise.
4505 * util/grub.d/30_os-prober.in: Likewise.
4506
7ddffdad
VS
45072012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4510 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
4511 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
4512 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
4513 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
4514 ieee1275-nocursor.
4515 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
4516 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
4517
4e092454
VS
45182012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4519
4520 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
4521 le-conversion.
4522 Reported by: BURETTE, Bernard.
4523
735abf54 45242012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
4525
4526 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
4527 from comment.
4528
dfd39dbd
CW
45292012-09-14 Colin Watson <cjwatson@ubuntu.com>
4530
4531 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
4532 IEEE1275 machines. Fixes powerpc-emu compilation.
4533 * include/grub/terminfo.h: Likewise.
4534
3bfa763c
VS
45352012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
4538 a const pointer.
4539 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
4540 const pointer.
4541 (efiemu_set_variable): Make vendor_guid a const pointer.
4542
250e475b
VS
45432012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 Don't require grub-mkconfig_lib to generate manpages for programs.
4546
4547 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
4548 dependencies, don't add grub-mkconfig_lib.
4549 (program): Pass empty adddeps.
4550 (script): Pass grub-mkconfig_lib as adddeps.
4551
592fd0e4
VS
45522012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
4553
4554 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
4555 * util/getroot.c (grub_find_device): Likewise.
4556 (get_mdadm_uuid): Likewise.
4557 (grub_util_is_imsm): Likewise.
4558 (grub_util_pull_device): Likewise.
4559 * util/grub-probe.c (probe): Likewise.
4560
801a3027
BG
45612012-09-10 Benoit Gschwind <gschwind>
4562
4563 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
4564 (devs): Add devpath_8.
4565
c5052c81
PJ
45662012-09-08 Peter Jones <pjones@redhat.com>
4567
4568 * grub-core/Makefile.core.def (efifwsetup): New module.
4569 * grub-core/commands/efi/efifwsetup.c: New file.
4570 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
4571 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
4572 New define.
4573 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
4574
8e832f71
JS
45752012-09-05 Jiri Slaby <jslaby@suse.cz>
4576
4577 * configure.ac: Add SuSe path.
4578
f0f55752
CW
45792012-09-05 Colin Watson <cjwatson@ubuntu.com>
4580
4581 * NEWS: Fix typo.
4582
ecadc4c2
CW
45832012-09-05 Colin Watson <cjwatson@ubuntu.com>
4584
4585 * util/import_gcry.py: Sort cipher_files, to make build system
4586 generation more deterministic.
4587
64498f25
VS
45882012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
4591 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
4592 (grub_set_datetime): Likewise.
4593
9cc836a2
VS
45942012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4595
4596 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
4597 warnings.
4598
bcfcea01
VS
45992012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4600
4601 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
4602
a4099485
VS
46032012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
4606
265c162a
CW
46072012-09-04 Colin Watson <cjwatson@ubuntu.com>
4608
4609 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
4610 required for checkouts from bzr, but it may be useful for users or
4611 distributors wishing to update translations against a tarball
4612 distribution, and it can be helpful for the tarball to be a superset
4613 of what's in bzr.
4614
3d171e95
CW
46152012-09-04 Colin Watson <cjwatson@ubuntu.com>
4616
4617 * Makefile.am (EXTRA_DIST): Add
4618 grub-core/tests/boot/linux.init-mips.S,
4619 grub-core/tests/boot/linux.init-ppc.S, and
4620 grub-core/tests/boot/linux-ppc.cfg.
4621
f2c2503e
CW
46222012-09-04 Colin Watson <cjwatson@ubuntu.com>
4623
4624 * grub-core/mmap/mips/loongson: Remove empty directory.
4625
46262012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
4627
4628 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
4629 gone.
4630
ab2163d5
CW
46312012-09-04 Colin Watson <cjwatson@ubuntu.com>
4632
4633 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
4634 grub-sparc64-setup.
4635
ce938140
GS
46362012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
4637
4638 * configure.ac: Strengthen the test for working -nostdinc -isystem.
4639
529f58a5
GS
46402012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
4641
4642 * po/POTFILES.in: Regenerated.
4643
16cf79e9
GS
46442012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
4645
4646 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
4647 (NetBSD): New subsection.
4648
39b27f1e 46492012-07-22 Ales Nesrsta <starous@volny.cz>
4650
4651 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
4652 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
4653
a885261b
VS
46542012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4655
4656 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
4657 * util/grub.d/10_hurd.in: Add missing quoting.
4658 * util/grub.d/10_illumos.in: Likewise.
4659 * util/grub.d/10_kfreebsd.in: Likewise.
4660 * util/grub.d/10_linux.in: Likewise.
4661 * util/grub.d/20_linux_xen.in: Likewise.
4662
7bd29c01
VS
46632012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 New command `lsefi'.
4666
4667 * grub-core/Makefile.core.def (lsefi): New module.
4668 * grub-core/commands/efi/lsefi.c: New file.
4669 * include/grub/efi/api.h: Add more GUIDs.
4670
ac625d8f
VS
46712012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
4674 (grub_bsd_elf32_hook): Likewise.
4675 (grub_bsd_elf64_size_hook): Likewise.
4676 (grub_bsd_elf64_hook): Likewise.
4677 (grub_bsd_load_elf): Likewise.
4678
e73bb801
VS
46792012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4680
4681 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
4682 if hash function is unavailable.
4683 (dec_stream_header): Likewise.
4684
e81db8b5
VS
46852012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
4688 filter state.
4689
d187a1c3
VS
46902012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 Fix coreboot compilation.
4693
4694 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
4695 (grub_vga_text_init_real): ... this.
4696 (grub_vga_text_fini): Rename to ...
4697 (grub_vga_text_fini_real): ... this.
4698
91a05f64
VS
46992012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
4702
6af96df7
VS
47032012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 * grub-core/lib/legacy_parse.c: Support clear and testload.
4706
4d569e12
VS
47072012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4708
4709 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
4710
073b57bb
VS
47112012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 * grub-core/fs/ext2.c: Experimental support for 64-bit.
4714
a706f4cc
VS
47152012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 * grub-core/net/tftp.c (ack): Fix endianness problem.
4718 (tftp_receive): Likewise.
4719 Reported by: Michael Davidsaver.
4720
e7850aa9
VS
47212012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 * gentpl.py: Make mans depend on grub-mkconfig_lib.
4724
47252012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4726
4727 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
4728 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
4729 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
4730
35692881
VS
47312012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4732
4733 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
4734 efi_mmap_size.
4735 Reported by: Stuart Hayes.
4736
c35fc5bd
VS
47372012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
4740
4741 * grub-core/Makefile.core.def (mda_text): New module.
4742 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
4743 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
4744 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
4745 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
4746 here.
4747 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
4748 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
4749 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
4750 here.
4751 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
4752 to ..
4753 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
4754 ... here
4755 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
4756 here.
4757 * grub-core/term/i386/vga_common.c: Removed.
4758 * include/grub/i386/vga_common.h: Likewise.
4759 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
4760 (grub_vga_cr_bw_read): Likewise.
4761 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
4762 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
4763 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
4764 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
4765 grub_vga_cr_read/grub_vga_cr_write.
4766 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
4767
5f91f701
VS
47682012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4769
4770 * configure.ac: Bump version to 2.00.
4771 * grub-core/normal/main.c (features): Add feature_200_final.
4772
0c4f85f6
VS
47732012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
47742012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
4775
4776 * NEWS: Fix unclarity and language mistakes.
4777
f923ad22
VS
47782012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4779
4780 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
4781 additional size to 3 pages.
4782 Reported by: Stuart Hayes.
4783
d22029ba
VS
47842012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * NEWS: Add 2.00 entry.
4787
58eee08f
VS
47882012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4789
4790 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
4791 put explicit "/" for empty path.
4792 (wildcard_expand): Improve dprintf.
4793
c59bdff7
VS
47942012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
4797 it's equal to currnode. This can happen with "" symlink.
4798
5e6a440a
YB
47992012-06-27 Yves Blusseau <blusseau@zetam.org>
4800
4801 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
4802 echo shell command by printf command.
4803
73a68bcb
VS
48042012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4805
4806 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
4807 the value returned by firmware is the maximal position, not diumension.
4808 (grub_terminfo_output_state): Use a more sane fallback.
4809
392a603b
VS
48102012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4811
4812 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
4813
42d0867f
VS
48142012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4815
4816 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
4817 frequency to 150 MHz.
4818
489509f4
VS
48192012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 Apple fixes.
4822
4823 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
4824 __APPLE_
4825 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
4826 definition.
4827 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
4828
9f3fc883
VS
48292012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 Handle slash in HFS label.
4832
4833 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
4834 (grub_hfs_dir): Tanslate slash.
4835 (grub_hfs_label): Don't translate slash.
4836
54853fd7
VS
48372012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
4840 network protocol listing since it introduces problematic dependency on
4841 net module.
4842
4dc02ddf
VS
48432012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4844
4845 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
4846
c50c867d
VS
48472012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 Init video early on yeeloong to avoid being rebooted by watchdog.
4850
4851 * grub-core/Makefile.am (gensm712): New target.
4852 (sm712_start.S): Likewise.
4853 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
4854 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
4855 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
4856 description.
4857 * include/grub/vga.h: Move registry definitions to...
4858 * include/grub/vgaregs.h: ... here.
4859
5f92c8a1
VS
48602012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
4863 signedness.
4864
e9e6f111
VS
48652012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
4868 platforms with firmware disk drivers in the core.
4869
754ad9eb
VS
48702012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4871
4872 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
4873 informative verbose message.
4874 (read_lv): Handle 64-bit segment size.
4875
315654c2
VS
48762012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
4879
fb022c79
VS
48802012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
4883 character but still remove trainling spaces.
4884 (grub_fat_label): Ignore archive flag.
4885
8645f72c
VS
48862012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4887
4888 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
4889 cast between linux_kernel_header and linux_kernel_params.
4890
36498496
VS
48912012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
4894 type for size.
4895 (grub_raid6_recover_func_t): Likewise.
4896 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
4897 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
4898
0b5ea6b8
VS
48992012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4900
4901 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
4902
650cfcfe
GS
49032012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
4904
4905 Fix overflow.
4906
4907 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
4908 [__NetBSD__]: Add explicit cast before bitshift.
4909
8a4d6a44
VS
49102012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4911
4912 * configure.ac: Bump to 2.00~rc1.
4913
2fb97ed3
VS
49142012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4915
4916 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
4917 half of $a0.
4918
1fa097dc
VS
49192012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
49202012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
4921
4922 * docs/grub.texi: Fix search syntax.
4923 (Multi-boot manual config): Put msdos rather than GPT example.
4924 Grammar corrections.
4925
c890ba78
VS
49262012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4927
4928 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
4929
0f92dca7
VS
49302012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4931
4932 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
4933
3988c4a0
VS
49342012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4935
4936 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
4937 message on double free. Put the value of magic in case of mismatch.
4938
9e86d4c5
VS
49392012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 Speed-up video on yeeloong.
4942
4943 * grub-core/video/sm712.c (framebuffer): Remove render_target and
4944 add cached_ptr.
4945 (grub_video_sm712_video_fini): Unmap cached_ptr.
4946 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
4947 (grub_video_sm712_set_active_render_target): Removed.
4948 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
4949 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
4950 sync caches.
4951
ed24c312
VS
49522012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4953
4954 Avoid flushing the same line multiple times on loongson.
4955
4956 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
4957 Step in 32 bytes and not 1 byte.
4958 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
4959 Likewise.
4960
d1718e7d
VS
49612012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
4964 subvolumes.
4965
982f1909
VS
49662012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 Implement flow control for http.
4969
4970 * grub-core/net/http.c (parse_line): Handle response 206.
4971 (http_receive): Stall if too many packets are in the queue.
4972 (http_establish): Fix range header.
4973 (http_seek): Fix double free.
4974 (http_close): Likewise.
4975 (http_packets_pulled): New function.
4976 (grub_http_protocol): Set http_seek
4977 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
4978 (ack_real): Set window depending on i_stall.
4979 (grub_net_send_tcp_packet): Likewise.
4980 (grub_net_tcp_stall): New function.
4981 (grub_net_tcp_unstall): Likewise.
4982 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
4983 (grub_net_tcp_unstall): Likewise.
4984
bd407d6e
VS
49852012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4986
4987 * grub-core/net/tftp.c: Decrease stall to 50 packets.
4988
c7564b8e
VS
49892012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
4992
a3706162
VS
49932012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4994
4995 * tests/util/grub-shell.in: Fix a typo.
4996
b27069e0
VS
49972012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4998
4999 Implement flow control for tftp.
5000
5001 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
5002 packets but stop only if stop condition is satisfied.
5003 (grub_net_fs_read_real): Call packets_pulled after real read. Use
5004 `stall' instead of `eof' as stop condition.
5005 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
5006 (http_err): Likewise.
5007 * grub-core/net/tftp.c (ack): Replace the first argument with data
5008 instead of socket.
5009 (tftp_receive): Stall if too many packets are in wait queue.
5010 (tftp_packets_pulled): New function.
5011 (grub_tftp_protocol): Set packets_pulled.
5012 * include/grub/net.h (grub_net_packets): New field count.
5013 (grub_net_put_packet): Increment count.
5014 (grub_net_remove_packet): Likewise.
5015 (grub_net_app_protocol): New field `packets_pulled'.
5016 (grub_net): New field `stall'.
5017
6b9cfac6
VS
50182012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
5021 sync part to handle them.
5022
f35abd81
VS
50232012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5024
5025 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
5026 * grub-core/net/drivers/ieee1275/ofnet.c
5027 (grub_ieee1275_net_config_real): Likewise.
5028
0e7ec820
VS
50292012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5030
5031 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
5032 the direct route for server/gateway.
5033
9d611a31
VS
50342012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5035
5036 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
5037 IP address to server name since we may not hame the DNS.
5038
418f45ab
VS
50392012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5040
5041 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
5042 freeing random buffer on failure.
5043 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
5044
44a0efc1
VS
50452012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
5048
531e2241
VS
50492012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5050
5051 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
5052 reserved bytes.
5053 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
5054 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
5055 Handle malloc error correctly.
5056
cde393c9
VS
50572012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
5060 blocks.
5061
538478d0
VS
50622012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5063
5064 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
5065 increment.
5066
9b55efe0
VS
50672012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
5070 none is explicitly specified.
5071
9eb832c3
VS
50722012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5073
5074 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
5075 while reallocating.
5076
d6b7c7c9
VS
50772012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 Respect netmask from bootp/dhcp.
5080
5081 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
5082 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
5083 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
5084 into ...
5085 (grub_net_add_ipv4_local): ... this.
5086 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
5087 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
5088 (grub_net_add_ipv4_local): New proto.
5089
67caf9eb
VS
50902012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
5093 determining EFI memory map size.
5094
43657558
VS
50952012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5096
5097 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
5098
eb6d0dd3
VS
50992012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
5102 when looking for partition separator.
5103
31230544
VS
51042012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5105
5106 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
5107 Escape commas.
5108
918a2517
VS
51092012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5110
5111 Restructure FAT driver to avoid hook in label reading as it hits a
5112 GCC bug.
5113
5114 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
5115 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
5116 (grub_fat_iterate_dir): Split into ...
5117 (grub_fat_iterate_init): ... this, ...
5118 (grub_fat_iterate_fini): ... this, ...
5119 (grub_fat_iterate_dir_next): ... and this. All users updated.
5120
9f1d654e
VS
51212012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5122
5123 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
5124 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
5125 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5126 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
5127 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
5128 New fields last_key and last_key_time.
5129 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
5130 extended key-esc into extended key-extended key.
5131
52f0f643
VS
51322012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5133
5134 Avoid unnecessary memcpy of whole video buffer.
5135
5136 * grub-core/video/fb/video_fb.c (dirty): New struct.
5137 (framebuffer): Add members current_dirty and previous_dirty.
5138 (dirty): New function.
5139 (grub_video_fb_fill_rect): Update dirty.
5140 (common_blitter): Likewise.
5141 (grub_video_fb_scroll): Likewise.
5142 (doublebuf_blit_update_screen): Copy only dirty part.
5143 (doublebuf_pageflipping_update_screen): Likewise.
5144 (grub_video_fb_doublebuf_blit_init): Init dirty.
5145 (doublebuf_pageflipping_init): Likewise.
5146 (grub_video_fb_setup): Likewise.
5147
e169a180
VS
51482012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
5151 poll rate.
5152
48556879
VS
51532012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5154
5155 Fix wildcard regexp dot and other special characters handling.
5156 Reported by: Robert Mabee.
5157
5158 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
5159 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
5160 (split_path): Trigger expansion on '?'.
5161 (unescape): New function.
5162 (wildcard_expand): Unescape parts copied without globbing.
5163 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
5164 (grub_script_arglist_to_argv): Don't unescape expansions.
5165
0494408e
VS
51662012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5167
5168 * include/grub/net.h (grub_net_card): New member txbufsize.
5169 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
5170 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5171 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
5172 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
5173 txbufsize.
5174 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
5175 compatible property to check for macs. Set
5176 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5177 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
5178 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
5179 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
5180 (send_card_buffer): Use txbuf.
5181 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
5182 nested function out of the parent while on it.
5183
cc35fe8f
VS
51842012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
5187 presence check.
5188 (grub_ieee1275_net_config_real): Fix config pointer.
5189
970a0a09
VS
51902012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5191
5192 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
5193 filename parsing to non-block devices.
5194
3e19bf87
VS
51952012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5196
5197 * grub-core/kern/device.c (grub_device_open): Remove dead code.
5198
c62d1a0c
VS
51992012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
5202 All users updated.
5203
ef76bec3
VS
52042012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5205
5206 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
5207 UUID search command even if hints probing failed.
5208
52092012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
5210
5211 * po/POTFILES.in: Regenerated.
5212
70aaf305
VS
52132012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
5214
5215 Speed-up video on fuloong.
5216
5217 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
5218 New function.
5219 (grub_pci_device_unmap_range): Handle non-cached address.
5220 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
5221 add direct_ptr.
5222 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
5223 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
5224 (grub_video_sis315pro_set_active_render_target): Removed.
5225 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
5226 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5227 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
5228 sync caches.
5229 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
5230 New proto.
5231
10400f0b
VS
52322012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5233
5234 * docs/grub.texi (Multi-boot manual config): New section.
5235
ba67e2c6
VS
52362012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5237
5238 Avoid slow read-back from VRAM.
5239
5240 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
5241 Move from here ...
5242 * grub-core/video/fb/video_fb.c
5243 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
5244 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
5245 (front_target): Remove front_target. Add pages.
5246 (grub_video_fb_init): Skip setting front_pages.
5247 (grub_video_fb_fini): Likewise.
5248 (doublebuf_blit_update_screen): Use pages.
5249 (grub_video_fb_doublebuf_blit_init): Likewise.
5250 (doublebuf_pageflipping_init): Allocate offscreen buffer.
5251 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
5252 (grub_video_fb_setup): Prefer doublebuffing.
5253
377c98cb
VS
52542012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5255
5256 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
5257 gzio.
5258
eac49cff
VS
52592012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5260
5261 Add loongson tests.
5262
5263 * tests/util/grub-shell.in: Handle loongson.
5264 * tests/partmap_test.in: Add loongson to the list of platform using ATA
5265 drivers.
5266 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
5267 Reboot instead of shutdown if REBOOT is defined.
5268
0321415e
VS
52692012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5270
5271 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
5272 sized ports since unlike on real hardware qemu supports only 32-bit
5273 regs.
5274
3f2bdd8f
VS
52752012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5276
5277 * Makefile.util.def (grub-mkrescue): Enable on loongson.
5278 * util/grub-mkrescue.in: Handle loongson.
5279
29a049c9
VS
52802012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5281
5282 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
5283 Set is_part appropriately.
5284 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
5285 names. Canonicalize partition without full disk.
5286
4abde346
VS
52872012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5288
5289 Revert usb-quiesce since it's wrong.
5290
5291 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
5292 (grub_ofdisk_init): Don't do quiesce.
5293
61f1d93b
VS
52942012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
5297 PowerMac workaround to Xserves as well.
5298 Information supplied by: Benjamin Herrenschmidt.
5299
a09eb541
VS
53002012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5301
5302 Don't assume that beginning address is also the entry point on ppc.
5303
5304 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
5305 (grub_linux_boot): Use linux_entry.
5306 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
5307 (grub_linux_load64): Likewise.
5308
505b3c9b
VS
53092012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5310
5311 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
5312
cbe0b4ef
VS
53132012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5314
5315 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
5316 needlessly lose the console.
5317
3006e981
VS
53182012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5319
5320 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
5321 space.
5322
4e5a96b0
VS
53232012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5324
7da036bb
VS
5325 Remove non-functional EFI grub_get_rtc. Put a better fatal message
5326 than current grub_get_rtc() not implemented when booted with
5327 coreboot without TSC.
5328
5329 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
5330 Add machine/time.h to kernel headers on loongson.
5331 * grub-core/Makefile.core.def (kernel): Remove
5332 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
5333 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
5334 (grub_get_rtc): Likewise.
5335 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
5336 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
5337 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
5338 * grub-core/kern/i386/tsc.c (grub_tsc_init)
5339 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
5340 rather than installing known non-working time source.
5341 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
5342 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
5343 * include/grub/time.h: Don't include machine/time.h.
5344 * include/grub/efi/time.h: Removed.
5345 * include/grub/i386/efi/time.h: Likewise.
5346 * include/grub/i386/ieee1275/time.h: Likewise.
5347 * include/grub/powerpc/ieee1275/time.h: Likewise.
5348 * include/grub/sparc64/ieee1275/time.h: Likewise.
5349 * include/grub/x86_64/efi/time.h: Likewise.
5350
53512012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5352
5353 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
5354
5355 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
5356 value.
5357 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
5358 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
5359 with dotless variants when any combining above is present.
5360
5561c22d
VS
53612012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5362
5363 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
5364 text and not binary.
5365
96f7e60e
VS
53662012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5367
5368 Stop polling as soon as we have the packet we were waiting for.
5369
5370 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
5371 All users updated.
5372 * grub-core/net/arp.c (have_pending): New var.
5373 (pending_req): Likewise.
5374 (grub_net_arp_send_request): Fill pending_req and use have_pending as
5375 stop indicator.
5376 (grub_net_arp_receive): Set have_pending.
5377 * grub-core/net/dns.c (recv_data): New field stop.
5378 (recv_hook): Set stop.
5379 (grub_net_dns_lookup): Init stop and use as stop condition.
5380 * grub-core/net/http.c (http_establish): Use headers_recv as stop
5381 condition.
5382 * grub-core/net/net.c (grub_net_poll_cards): New argument
5383 stop_condition. Stop when it goes true.
5384 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
5385 indicator.
5386 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
5387
3e747239
VS
53882012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 Keep TX and RX buffers on EFI rather than always allocate new ones.
5391
5392 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
5393 card. All users updated.
5394 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
5395 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
5396 (get_card_packet): Likewise.
5397 (grub_efinet_findcards): Init new fields.
5398
f695e99a
VS
53992012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5400
5401 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
5402 compilation error on sparc64.
5403
9e5e66d1
VS
54042012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5405
5406 Use ITC on IA64 rather than broken routine based on daytime.
5407
5408 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
5409 ia64.
5410 (grub_get_rtc) [__ia64__]: Likewise.
5411 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
5412 (get_itc): New function.
5413 (grub_rtc_get_time_ms): Likewise.
5414 (grub_machine_init): Calibrate ITC.
5415 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
5416 Keep only on non-ia64. Don't export since it's broken and used only
5417 if TSC is unavailable.
5418
a1767404
VS
54192012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
5422 even if it's used.
5423 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
5424 Skip if parent is unused.
5425
34b2bced
VS
54262012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
5429
5e619f40
VS
54302012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 Fix wildcard escaping.
5433
5434 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
5435 * grub-core/script/execute.c (wildcard_escape): .. to here.
5436 Don't escape dot.
5437 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
5438 * grub-core/script/execute.c (wildcard_unescape): .. to here.
5439 Don't escape dot.
5440 * grub-core/script/execute.c (gettext_append): Always escape.
5441 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
5442 * grub-core/script/yylex.l: Don't cut away the escaping.
5443 * tests/grub_script_echo1.in: Add tests with wildcard.
5444
c8ca5855
VS
54452012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
5448 (ftdi_hw_configure): Likewise.
5449 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
5450 define.
5451 (real_config): Handle 1.5 stop bits.
5452 (pl2303_hw_configure): Likewise.
5453
7183452c
VS
54542012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5455
5456 * Makefile.am: Add ppc linux bootcheck.
5457 * grub-core/tests/boot/linux-ppc.cfg: New file.
5458 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
5459
f57c84cd
VS
54602012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 * tests/grub_script_expansion.in: Skip network protocols.
5463
ecfc6207
VS
54642012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5465
5466 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
5467
8d03d284
VS
54682012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
5471 --rom-directory.
5472 Add -graft-points.
5473
61c42af0
VS
54742012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 ESCC serial driver for conducting sautomated tests in qemu.
5477 Not tested on real hardware.
5478
5479 * include/grub/serial.h (grub_serial_port): New field escc_desc.
5480 * grub-core/term/ieee1275/escc.c: New file.
5481 * grub-core/Makefile.core.def (escc): New module.
5482
08fd1291
VS
54832012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5484
5485 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
5486 invalid on error.
5487 (serial_hw_fetch): Don't read invalid handle.
5488 (serial_hw_put): Don't write into invalid handle.
5489
08dafeea
VS
54902012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 Add a 1.5 stop bits value.
5493
5494 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
5495 * include/grub/serial.h (grub_serial_stop_bits_t): Add
5496 GRUB_SERIAL_STOP_BITS_1_5.
5497
9068fdcf
VS
54982012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5499
5500 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
5501 value rather than let it uninited.
5502
f4d5820f
VS
55032012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5504
5505 * grub-core/commands/wildcard.c (+check_file): New function.
5506 (wildcard_expand): Don't expand to non-existing files, expand with
5507 suffix and not attempt to expand if not needed.
5508
3d2de9a7
VS
55092012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5510
5511 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
5512 out of partitions containing other partitions.
5513
c5c81ff9
VS
55142012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5515
5516 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
5517 on some qemu versions with GRUB.
5518
5519 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
5520 define.
5521 (grub_openbsd_bootarg_pcibios): New struct.
5522 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
5523 Add PCIINFO.
5524
08a14e0b
VS
55252012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5526
5527 * tests/util/grub-shell.in: Trim firmware output on EFI.
5528
cede3ca3
VS
55292012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
5532 and coreboot since it's already in kernel.
5533
558d3a60
VS
55342012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
5537 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5538 to here. New return value start. All users updated.
5539 Recursively scan linear mappings.
5540 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
5541 proto.
5542 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
5543 Use grub_util_get_dm_node_linear_info.
5544 * util/getroot.c (convert_system_partition_to_system_disk): Use
5545 grub_util_info rather than grub_dprintf.
5546 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
5547
60fde14d
VS
55482012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5549
5550 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
5551
5552 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
5553 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
5554
24bd8838
VS
55552012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5556
5557 * include/grub/types.h (grub_set_unaligned64): New function.
5558 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
5559 (setup): Likewise.
5560
7bc06a49
VS
55612012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5562
5563 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
5564 (grub_ofdisk_fini): Quiesce USB devices.
5565
49cea015
VS
55662012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
5569 caches.
5570
8dcbe03b
VS
55712012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5572
5573 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
5574
5b258735
VS
55752012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5576
5577 * grub-core/disk/pata.c (grub_pata_pio_read)
5578 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
5579 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
5580
37ba07eb
VS
55812012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5582
5583 Extend automated tests to qemu-mips.
5584
5585 * Makefile.am: reorganise tests and enable qemu-mips.
5586 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
5587 * grub-core/tests/boot/linux.init-mips.S: New file.
5588 * tests/partmap_test.in: Handle ata0 disks.
5589 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
5590 non-pc i386.
5591
070038f8
VS
55922012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
5595 ia64.
5596 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
5597 quotes while on it.
5598
004be2cd
VS
55992012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
5602 (grub_halt): Likewise.
5603 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
5604
b1622487
VS
56052012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * grub-core/term/serial.c (grub_serial_register)
5608 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
5609 the behaviour in line with x86 platforms.
5610
b7b4ab33
VS
56112012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5612
5613 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
5614 (grub_ata_strncpy): Likewise.
5615 (grub_ata_identify): Add missing byteswaps.
5616
5e3535ae
VS
56172012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5618
5619 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
5620 byte-swap.
5621 (screen_read_char): Likewise.
5622 (grub_vga_text_cls): Likewise.
5623
c21b17e6
VS
56242012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5625
5626 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
5627 filenames.
5628 (make_file_path): Likewise.
5629
bf293dec
VS
56302012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
5633 machines.
5634 Tested by: Paulo Flabiano Smorigo.
5635 Crucial information about API supplied by: Coleen <Last name unknown>.
5636 Reviewed by: Coleen <Last name unknown>.
5637
81f6ef0e
VS
56382012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5639
5640 * util/grub-mkimage.c: Disable -Wcast-align.
5641
7284143a
VS
56422012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5643
5644 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
5645 as they are fatal.
5646
b99f3e00
VS
56472012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
5650
944f752d
VS
56512012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5652
5653 * util/grub-probe.c (escape_of_path): Fix double free.
5654
6cce6f38
VS
56552012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5656
5657 * grub-core/commands/videoinfo.c (hook): Show pitch.
5658
1e1eb50e
VS
56592012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5660
5661 * util/grub.d/20_linux_xen.in: Skip xen-syms.
5662
1c715b5a
VS
56632012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
5664
5665 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
5666 (probe): Add ieee1275 to OFW devices.
5667
007ae52d
VS
56682012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
5671
4557a36d
VS
56722012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
5673
5674 Handle IBM OFW path.
5675
5676 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
5677 available.
5678 (of_path_of_scsi): Handle vdevice.
5679
efbeefe9
VS
56802012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
5681
5682 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
5683 Allocate in multiples of 16 to avoid adding a few bytes free region the
5684 windows bugs upon.
5685
15a940bb
VS
56862012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
5687
5688 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
5689 Allocate in multiples of 16 to avoid adding a few bytes free region the
5690 windows bugs upon.
5691 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
5692
6e5efd60
VS
56932012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5694
5695 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
5696 resolutions.
5697 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
5698 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
5699
0d3d137e
IS
57002012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
5701
5702 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
5703
45dbe300
VS
57042012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5705
5706 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
5707 resulted in \\ at the end of the line.
5708
6d8db947
VS
57092012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
5712 (grub_parser_cmdline_state): Likewise.
5713 (grub_parser_split_cmdline): Likewise.
5714
de89d338
VS
57152012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5716
5717 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
5718 /dev/root and /dev/dm-*.
5719
00d41dee
VS
57202012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5721
5722 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
5723 fix partially stale display.
5724
f95d1f11
VS
57252012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5726
5727 * grub-core/normal/menu_entry.c (backward_char): Use right line for
5728 substraction.
5729
6297e197
VS
57302012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
5733 Fix MBR remapping workaround.
5734 (grub_util_biosdisk_read) [__linux__]: Likewise.
5735
8a7ecad3
VS
57362012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
5737
5738 * util/grub-install.in: Check for ieee1275 and not ieee1276.
5739
2b34f944
VS
57402012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5741
5742 * configure.ac: Bump to beta6.
5743
684aef11
CW
57442012-05-31 Christer Weinigel <christer@weinigel.se>
5745
5746 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
5747
05b0bb91
VS
57482012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5749
5750 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
5751 (grub_cmd_linux): Likewise.
5752
bda36bfa
CW
57532012-05-31 Christer Weinigel <christer@weinigel.se>
5754
5755 Fix EHCI low-speed.
5756
5757 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
5758 (GRUB_EHCI_MULT_TWO): Likewise.
5759 (GRUB_EHCI_MULT_THREE): Likewise.
5760 (GRUB_EHCI_CMASK_MASK): New enum value.
5761 (GRUB_EHCI_SMASK_MASK): Likewise.
5762 (GRUB_EHCI_CMASK_OFF): Likewise.
5763 (GRUB_EHCI_SMASK_OFF): Likewise.
5764 (grub_ehci_pci_iter): Enable periodic schedule.
5765 (grub_ehci_parse_notrun): Likewise.
5766 (grub_ehci_restore_hw): Likewise.
5767 (grub_ehci_setup_qh): Set flags for low speed transfers.
5768 (grub_ehci_find_qh): Use periodic list for low speed.
5769 (grub_ehci_setup_transfer): Check periodic queue as well.
5770 (grub_ehci_check_transfer): Likewise.
5771 (grub_ehci_cancel_transfer): Cancel periodic transfer.
5772
e12bcb1c
PFS
57732012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5774
5775 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
5776 parameter is used.
5777
bcc75fb3
PJ
57782012-05-31 Peter Jones <pjones@redhat.com>
5779
5780 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
5781 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
5782 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
5783
f19cb95e
VS
57842012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5785
5786 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
5787 uninited variable. Allocate at least setup_sects.
5788
a4e5ca80
VS
57892012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5790
5791 Fix handling of EFI with big memory maps.
5792
5793 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
5794 (real_mode_mem): Likewise.
5795 (real_mode_target): Likewise.
5796 (real_mode_pages): Likewise.
5797 (prot_mode_pages): Likewise.
5798 (linux_params): New var.
5799 (linux_cmdline): Likewise.
5800 (free_pages): Don't set real mode variables.
5801 (allocate_pages): Don't allocate real mode memory.
5802 (grub_e820_add_region): Remove the limit.
5803 (grub_linux_boot): Allocate and copy real mode memory.
5804 (grub_linux_unload): Free linux_cmdline.
5805 (grub_cmd_linux): Use temporary storage for parameters.
5806 (grub_cmd_initrd): Likewise.
5807 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
5808 (linux_kernel_params): Make it 1K big.
5809
ddb73558
VS
58102012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 * Makefile.util.def: Remove -Wno-format.
5813 * grub-core/Makefile.core.def: Likewise.
5814
1c4afb60
VS
58152012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5816
5817 * tests/cmp_unit_test.c: Add missing failure message.
5818 * tests/example_unit_test.c: Likewise.
5819 * tests/printf_unit_test.c: Likewise.
5820
941e3a6d
VS
58212012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5822
5823 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
5824 relaxation of protective MBR requirements.
5825
b105df76
VS
58262012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
5827
5828 * configure.ac: Add condition for COND_HOST_XNU.
5829 * Makefile.util.def (10_xnu): New script.
5830 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
5831
84e1569e
VS
58322012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
5835 objconv bug.
5836
130c0f77
VS
58372012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
5838
5839 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
5840 Binary on other platforms stays identical.
5841
6fd0b143
VS
58422012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
5845 Apple.
5846
0af1751d
VS
58472012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5848
5849 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
5850
176d5f7d
VS
58512012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5852
5853 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
5854 rather than defining size_t ourselves to avoid conflict.
5855
7de5e20a
VS
58562012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5857
5858 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
5859 initialisation to avoid __bzero reference.
5860
f7143efe
VS
58612012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5862
5863 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
5864 version.
5865 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
5866 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
5867 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
5868 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
5869 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
5870
e6ad0555
VS
58712012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5872
5873 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
5874 * grub-core/kern/misc.c: Likewise.
5875 * grub-core/loader/i386/xnu.c: Likewise.
5876 * include/grub/i386/tsc.h: Likewise.
5877 * include/grub/symbol.h: Likewise.
5878
4a5a3c4a
VS
58792012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5880
5881 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
5882 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
5883 on older compiler.
5884
037f6d90
VS
58852012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5886
5887 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
5888 Implement Apple flavour.
5889 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
5890
f7194551
VS
58912012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5892
5893 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
5894 (memmove) [__APPLE__]: Likewise.
5895 (memcpy) [__APPLE__]: Likewise.
5896 (memset) [__APPLE__]: Likewise.
5897 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
5898 (memmove) [__APPLE__]: Likewise.
5899 (memcpy) [__APPLE__]: Likewise.
5900 (memset) [__APPLE__]: Likewise.
5901
85a730ca
VS
59022012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5903
5904 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
5905 dependency discard.
5906
40e80b94
VS
59072012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 * grub-core/normal/main.c (read_config_file): Provide config_file and
5910 config_directory.
5911 * util/grub.d/41_custom.in: Use config_directoy when available.
5912
9da59c32
VS
59132012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
5916 (grub_bfs_dir): Likewise.
5917
2787ae53
PJ
59182012-05-27 Peter Jones <pjones@redhat.com>
5919
5920 The old code gives arguments to a printf function which can't work
5921 correctly, and the compiler complains.
5922
5923 * grub-core/tests/example_functional_test.c (example_test): Add
5924 missing text.
5925 * grub-core/tests/lib/test.c (add_failure): Rewrite.
5926 * include/grub/test.h (grub_test_assert_helper): New declaration.
5927 (grub_test_assert): Use grub_test_assert_helper.
5928
526ef13d
VS
59292012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
5932 (exfctest): ... this to avoid overlong filenames.
5933 All users updated.
5934
20dd511c
VS
59352012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5936
5937 Handle "." and ".." on squashfs.
5938
5939 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
5940 Make inode numbers into stack.
5941 (grub_squash_read_symlink): Use stack.
5942 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
5943 (make_root_node): Fill stack.
5944 (grub_squash_open): Use stack.
5945
1d80c62a
VS
59462012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5947
5948 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
5949 freeing.
5950
d336f652
VS
59512012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
5954 stderr on test calls.
5955
8b43f587
VS
59562012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5957
5958 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
5959
80a3dc3f
VS
59602012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
5963
47e297d4
VS
59642012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5965
5966 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
5967 "..".
5968
df042ccb
VS
59692012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5970
5971 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
5972 (grub_hfsplus_iterate_dir): Add "." and "..".
5973
fc977f48
VS
59742012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * grub-core/fs/cpio.c (canonicalize): Handle "..".
5977 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
5978
f3250e5f
VS
59792012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
5982 (find_path): Handle "." and "..".
5983
fd8ed4c5
VS
59842012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
5987 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
5988 (grub_affs_iterate_dir): Handle hardlinks.
5989
4ce776d2
MG
59902012-05-26 Matthew Garrett <mjg@redhat.com>
5991
5992 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
5993 (grub_efi_console_fini): Likewise.
5994 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
5995 (grub_video_gop_fill_mode_info): Rename to ...
5996 (grub_video_gop_fill_real_mode_info): ... this.
5997 (grub_video_gop_fill_mode_info): New function.
5998 (grub_video_gop_setup): Setup double framebuffer.
5999 (grub_video_gop_get_info_and_fini): Use original framebuffer.
6000 Free offscreen.
6001 (grub_video_gop_swap_buffers): Copy framebuffer.
6002 (grub_video_gop_fini): Free offscreen buffer.
6003 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
6004 New enum.
6005 (grub_efi_gop_blt_pixel): New struct.
6006
683031ba
VS
60072012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 * gentpl.py: Remove error disabling for objconv.
6010
c2deb798
VS
60112012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 * configure.ac: Remove -Wunitialized as it's not available on older
6014 compilers.
6015
60162012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
6017
6018 Fix extent overflow comparator.
6019
6020 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
6021 (grub_hfsplus_read_block): Set type.
6022 (grub_hfsplus_cmp_extkey): Compare type.
6023
d6b1fd36
VS
60242012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
6025
6026 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
6027
0a9aa0f6
VS
60282012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6029
6030 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
6031 than 0.
6032
8360e159
VS
60332012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
6036 (dejavu_bold_14.pf2): New target.
6037
501b9e4b
VS
60382012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6039
6040 * configure.ac: Fix djvu font detection.
6041
7026b0e2
VS
60422012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
6045 ext* instead of ext2.
6046
c2a51ade
VS
60472012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6048
6049 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
6050 name with \0.
6051
8f803a5d
JU
60522012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
6053
6054 * docs/grub-dev.texi: Remove dot from .png.
6055
13c6353f
VS
60562012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6057
6058 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
6059 protective entry in any slot.
6060 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
6061 if protective entry is found in any slot.
6062
6063 Protective entry in non-first slot make no sense but is a widespread
6064 brain damage.
6065
4cf6be1b
VS
60662012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6067
6068 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
6069
937d1c44
VS
60702012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
6073 with old reiserfs.
6074 (grub_reiserfs_open): Don't free root.
6075
021d90ec
VS
60762012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6077
6078 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
6079 after freeing for safety.
6080
967b2b64
VS
60812012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6082
6083 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
6084 Reported by: Jordan Uggla.
6085
34274d02
JU
60862012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
6087
967b2b64
VS
6088 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
6089 actual implementation. Specifically, clarify that the grub menu will
6090 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
6091 passed.
34274d02 6092
dcaaae9d
BH
60932012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
6094
6095 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
6096 of r0.
6097
7086ad52
VS
60982012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 Remove unjustified hard dependency of normal.mod on gfxterm.
6101
6102 * include/grub/term.h (grub_term_output): New member fullscreen.
6103 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
6104 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
6105 (grub_gfxterm): Set .fullscreen.
6106 * grub-core/normal/menu.c (menu_init): Use fullscreen.
6107 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
6108
37ed2c9b
VS
61092012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
6112 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 6113 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 6114
a4469c88
VS
61152012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6116
6117 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
6118
4e461486
VS
61192012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6120
6121 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6122 a bad FS.
6123
aa78f5c4
VS
61242012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
6127 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
6128
197626b5
VS
61292012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
6132 (grub_jfs_mount): Fill caseins.
6133 (grub_jfs_find_file): Respect caseins.
6134
8ad3f28c
VS
61352012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6136
6137 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
6138 through UTF-16.
6139
0c6c324e
VS
61402012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6141
6142 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
6143 New argument origpath. All users updated.
6144
c6666ba6
VS
61452012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6146
6147 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
6148 (read_attr): Ensure that we read start of possibly compressed block.
6149
e28e5fe5
VS
61502012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
6153 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
6154 All users updated.
6155
5fc23ab2
VS
61562012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6157
6158 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
6159 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
6160 (dejavu.pf2): Replace with ...
6161 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
6162 this.
6163
79dbc21c
VS
61642012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 * util/grub.d/20_linux_xen.in: Add missing line.
6167
d2fcfb0c
VS
61682012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
6171 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
6172 (grub_utf16_to_utf8): Likewise.
6173
5560e9d6
VS
61742012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
6175
6176 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
6177 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
6178 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6179 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
6180 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6181 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
6182
61832012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
6184
6185 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6186 a bad FS.
6187
5560e9d6 61882012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
6189
6190 * grub-core/fs/udf.c (read_string): Bail out on size=0.
6191 (grub_udf_read_symlink): Handle read_string failure.
6192
5eae3175
VS
61932012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6194
6195 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
6196 comment.
6197
c1ad82db
VS
61982012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6199
6200 Fix handling of UDF symlinks.
6201
6202 * grub-core/fs/udf.c (read_string): New argument outbuf.
6203 All users updated.
6204 (grub_ufs_read_symlink): Rename to ...
6205 (grub_udf_read_symlink): ... this. All users updated.
6206 Handle symlinks with more than one component.
6207
33eca6e0
VS
62082012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
6211 symlinks. Replace leading colon with a slash.
6212
57f4a70b
VS
62132012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6214
6215 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
6216 filename.
6217
38c8ee20
VS
62182012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
6221 match in inner node.
6222
2e57f28f
VS
62232012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
6226 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
6227 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
6228 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
6229 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
6230 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
6231 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
6232 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
6233 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
6234
fe8c2f11
VS
62352012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6236
6237 Use grub-probe and not cmp to check that disk is empty.
6238
6239 * util/grub-install.in: Use grub-probe for zero-check.
6240 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
6241 (probe): Handle PRINT_ZERO_CHECK.
6242 (argp_parser): Handle -t zero_check.
6243
62442012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
6245
6246 Flush block cache on adding disk to device map.
6247
6248 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
6249 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
6250 adding.
6251 (read_device_map): Likewise.
6252 (open_device): Flush on opening.
6253
690434e8
VS
62542012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
6257 (handle_symlink): Fix off-by-one error.
6258 Canonicalize the target.
6259 (grub_cpio_dir): Canonicalize the name.
6260 Fix memory leak.
6261 Set directory.
6262 (grub_cpio_open): Canonicalize the name.
6263
742d2be6
VS
62642012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6265
6266 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
6267 handling.
6268
3244fe96
VS
62692012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6270
6271 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
6272 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
6273
8aeb1837
VS
62742012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
6277 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 6278 All users updated.
8aeb1837 6279
9133fd05
VS
62802012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
6283 counterpart.
6284
6d521c5b
VS
62852012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6286
6287 Fix UFS1 big file support.
6288
6289 * grub-core/fs/ufs.c (INODE): Removed.
6290 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
6291 64-bit.
6292 (INODE_MODE): Simplify.
6293 (grub_ufs_inode): Use uint64_t for size and not int64_t.
6294 (grub_ufs_lookup_symlink): Don't use INODE.
6295
21b82e17
VS
62962012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6297
6298 Fix minixfs with non-power-of-two blocks since it's supported by minix.
6299
6300 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
6301 (grub_minix_data): Replace log_block_size with block_size.
6302 (grub_minix_read_file): Use block_size but avoid 64-bit division.
6303 (grub_minix_mount): Fill block_size.
6304
63052012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
6306
6307 * configure.ac: Bump to beta5.
6308
f417ed04
VS
63092012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6310
6311 Fix wrapped HFS+ handling.
6312
6313 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
6314 blocks_start. All users updated.
6315 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
6316 wrapping offset.
6317 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
6318
607d282b
VS
63192012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6320
6321 Fix long symlinks on reiserfs.
6322
6323 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
6324 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
6325 (grub_reiserfs_iterate_dir): Save size for non-directories.
6326 (grub_reiserfs_open): Don't reread stat block as we already know the
6327 size.
6328 (grub_reiserfs_read): Split into...
6329 (grub_reiserfs_read_real): ... and ...
6330 (grub_reiserfs_read): ...this.
6331
ae16024d
VS
63322012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6333
6334 Fix non-indexed JFS.
6335
6336 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
6337 (grub_jfs_data): New field namecomponentlen.
6338 (grub_jfs_mount): Fill namecomponentlen.
6339 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
6340
eea1e26e
VS
63412012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6342
6343 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
6344 * tests/grub_script_echo1.in: Add tests.
6345
df760f77
VS
63462012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 * util/grub-install.in: Ignore empty devicetree directory.
6349
5efb817d
B
63502012-05-08 Bean <bean123ch@gmail.com>
6351
6352 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
6353 All users updated.
6354 (free_rsm): Free header as well.
6355 (free_old_fragments): Fix memory leak.
6356 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
6357 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
6358 (destroy_pq): Likewise.
6359 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
6360
668ea6d2
VS
63612012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6362
6363 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
6364 resulting hash as a precaution.
6365
1739b1fe
VS
63662012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6367
6368 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
6369 '_' in variable names.
6370 * grub-core/net/net.c (grub_net_network_level_interface_register):
6371 Likewise.
6372
6ae485aa
VS
63732012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 Fix AFFS with non-512B blocks.
6376
6377 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
6378 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
6379 (grub_affs_data): Replace blocksize with log_blocksize.
6380 (grub_affs_read_block): Fix non-512B blocks.
6381 (grub_affs_read_symlink): Likewise.
6382 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
6383 (grub_affs_read): Fix non-512B blocks.
6384 (grub_affs_label): Likewise.
6385 (grub_affs_mtime): Likewise.
6386 (grub_affs_mount): Fix block detection routine.
6387
d20fab84
VS
63882012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 Add filesystem mtime to AFFS.
6391
6392 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
6393 (aftime2ctime): New function.
6394 (grub_affs_dir): Use aftime2ctime.
6395 (grub_affs_label): Fix return value.
6396 (grub_affs_mtime): New function.
6397 (grub_affs_fs): Add mtime.
6398
e87b10f5
VS
63992012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
6402 UTF-8.
6403
7dceec9b
VS
64042012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6405
6406 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
6407 UTF-8.
6408
2f48221f
VS
64092012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6410
6411 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
6412
dacd85cf
VS
64132012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6414
6415 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
6416 flags.
6417 (FLAGS_CASE_SENSITIVE): New enum value.
6418 (cache_entry): New struct.
6419 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
6420 cache_size and cache.
6421 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
6422 Add log_blocksize and fshelp_flags.
6423 (grub_sfs_read_extent): Handle non-512 blocks.
6424 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
6425 (grub_sfs_read_file): Handle non-512 blocks.
6426 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
6427 fshelp_flags.
6428 (grub_sfs_read_symlink): Handle non-512 blocks.
6429 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
6430 (grub_sfs_dir): Free cache.
6431 (grub_sfs_close): Likewise.
6432
24e9a854
VS
64332012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
6436 filesystems.
6437
62ace64d
VS
64382012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
6441
83b2e89c
VS
64422012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6443
6444 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
6445
75ccaea3
VS
64462012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
6449 (grub_sfs_read_extent): Likewise.
6450 (grub_sfs_read_block): Likewise.
6451 (grub_sfs_mount): Likewise.
6452 (grub_sfs_iterate_dir): Likewise.
6453 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
6454 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
6455
1b8463f2
VS
64562012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6457
6458 Fix errors on compressed NTFS with 512B clusters.
6459
6460 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
6461 types.
6462 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
6463 not 0.
6464 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
6465 Relax check for inline extents.
6466 (ntfscomp): Return correct -1 on error and not 0.
6467
4f8e368f
VS
64682012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 * util/grub-install.in: Fix handling of prefix containing spaces.
6471
6f5d5ee8
VS
64722012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
6475 (grub_squash_read_data): Fix offset byte-swapping.
6476
ce41ab7a
VS
64772012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
6480 per common usage and preffered in several parts of code.
6481 (grub_memcmp): Likewise.
6482 (grub_strncmp): Likewise.
6483 * include/grub/misc.h (grub_strcasecmp): Likewise.
6484 (grub_strncasecmp): Likewise.
6485 * Makefile.util.def (cmp_test): New test.
6486 (grub_script_strcmp): Likewise.
6487 * tests/cmp_unit_test.c: New file.
6488 * tests/grub_script_strcmp.in: Likewise.
6489 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
6490
49717bf4
VS
64912012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * include/grub/pci.h: Move enums into no-asm part.
6494
0a308f64
VS
64952012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6496
6497 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
6498
1796965f
ST
64992012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
6500
6501 * util/getroot.c (find_hurd_root_device): Try to make error message
6502 and comments to translators clearer.
6503
4e9b2819
VS
65042012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6505
6506 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
6507
076aeb50
VS
65082012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6509
6510 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
6511 btrfs.
6512
19424d94
VS
65132012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6514
6515 * docs/grub.cfg: Update.
6516
ebb73076
VS
65172012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 * docs/grub.texi (PXE): Remove not present variables.
6520
9a1b669c
VS
65212012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 * grub-core/net/net.c (defserver_set_env): New function.
6524 (defserver_get_env): Likewise.
6525 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
6526
d38bf7d3
VS
65272012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
6530 entries.
6531
65322012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
6533
6534 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
6535 * grub-core/kern/emu/hostdisk.c: Likewise.
6536
e5e4ca48
ST
65372012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6538
6539 Handle hurd userspace partitions.
6540
6541 * util/getroot.c (find_hurd_root_device): New function.
6542 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
6543
56bb5dd5
VS
65442012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
6547 names.
6548 Reported by: Bastian Blank.
6549
9e8bc27a
VS
65502012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6551
6552 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
6553 crossing page boundary.
6554
aa01499d
VS
65552012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 Fix B-tree search in BFS, especially in presence of non-ASCII
6558 characters.
6559
6560 * grub-core/fs/bfs.c (bfs_strcmp): New function.
6561 (find_in_b_tree): Use standard bsearch + btree algorithm.
6562
57006035
VS
65632012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6564
6565 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
6566 and so on.
6567
9d34bb85
MG
65682012-05-03 Matthew Garrett <mjg@redhat.com>
65692012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 Suspend broadcom cards in order to stop their DMA.
6572
6573 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
6574 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
6575 (pci): Don't build on x86 EFI.
6576 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
6577 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
6578 New function.
6579 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
6580 stop_broadcom if running on EFI.
6581 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
6582 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
6583 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
6584 (grub_pci_find_capability): New proto.
6585
01aab997
VS
65862012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6587
6588 * docs/grub.texi: Remove dot from the extension as it apparently
6589 doesn't work with some makeinfo versions.
6590
fbd8dca6
VS
65912012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6592
6593 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
6594 with GRUB expectance.
6595
dab797f4
VS
65962012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6597
6598 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
6599
1516bfb4
VS
66002012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
6603 zero after directory block since last entry may be not 0-terminated if
6604 it ends on block boundary. Use continue instead of if spanning whole
6605 loop.
6606
a3a0eace
VS
66072012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 Support 4K sectors UDF inline files.
6610
6611 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
6612 (grub_udf_extended_file_entry): Likewise.
6613 (grub_fshelp_node): Name the anonymous union. Put block at the end.
6614 All users updated.
6615 (get_fshelp_size): New function.
6616 (grub_udf_read_icb): Read whole block.
6617 (grub_udf_iterate_dir): Likewise.
6618 (grub_udf_dir): Likewise.
6619 (grub_udf_open): Likewise.
6620
c82f16c1
VS
66212012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6622
6623 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
6624
59fd2aac
VS
66252012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6626
6627 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
6628 inline symlinks in addition to workaround.
6629
3b4afb4d
VS
66302012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6631
6632 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
6633
f45c794a
VS
66342012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
6637
f25cecbd
VS
66382012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6639
6640 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
6641
bb9a34e8
VS
66422012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6643
6644 Fix reiserfs big seek times.
6645
6646 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
6647 exact. All users updated.
6648 (grub_reiserfs_read): Use nearest btree search for seeking.
6649 Fix return value on error.
6650
dc478aea
VS
66512012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
6654 entries.
6655 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
6656 * docs/grub.texi: Update menuentry description.
6657
8db10f47
VS
66582012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
6661 crash when embedding onto filesystem.
6662
bcb288ed
VS
66632012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
6666 name.
6667
a626fdd7
VS
66682012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6669
6670 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
6671
b2f68477
VS
66722012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6673
6674 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
6675 commit.
6676
ba15b2af
B
66772012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
66782012-05-01 Bean <bean123ch@gmail.com>
6679
6680 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
6681
a188012e
VS
66822012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
6685 Special behaviour for len = 0 to read whole file isn't used anywhere and
6686 can cause buffer ovewrflows in several places.
6687
f0a53ed2
VS
66882012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
6691
5ed554f0
VS
66922012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6693
6694 Handle RAIDZ on non-512B sectors.
6695
6696 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
6697 max_children_ashift.
6698 (fill_vdev_info_real): Fill max_children_ashift.
6699 (read_device): Use max_children_ashift.
6700
ddc58357
VS
67012012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
6704
e3282399
VS
67052012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
6708 disk names.
6709 * docs/grub.texi: Update device.map parts.
6710
ee618bd4
VS
67112012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 Don't scan into non-diskfilter devices having diskfilter names.
6714
6715 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
6716 (scan_disk): New argument accept_diskfilter. Fix recursion depth
6717 handling.
6718 (scan_disk_hook): New function.
6719
bdf88864
B
67202012-04-29 Bean <bean123ch@gmail.com>
6721
6722 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
6723 allocation.
6724
32745f51
MK
67252012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
6726
6727 * configure.ac: Detect starfield theme font path
6728 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
6729
bc95c8c0
VS
67302012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6731
6732 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
6733 geometry on serial consoles.
6734
147fbcab
VS
67352012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6736
6737 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
6738 because of network consoles.
6739
0f42c889
VS
67402012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
6743 handling.
6744
4a3594c9
VS
67452012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6746
6747 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
6748 falls on Q syndrom.
6749
5cb53879
VS
67502012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6751
6752 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
6753 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
6754
b282dfe5
VS
67552012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6756
6757 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
6758 Allocate at lest 8192 for temporary buffer as required for lzo.
6759
daa59f47
VS
67602012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
6763 to cluster_bits, since it's already added in.
6764 (grub_fat_read_data): Likewise.
6765
986748ce
VS
67662012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6767
6768 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
6769 as long as cluster size is multiple of 512 bytes.
6770
a20f6ad0
VS
67712012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
6772
6773 * util/grub-mkrescue.in: Fix locale directory.
6774
385f9abb
VS
67752012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
6776
6777 * grub-core/kern/emu/hostdisk.c (map): Make static.
6778
1c557d30
B
67792012-04-23 Bean <bean123ch@gmail.com>
6780
6781 * util/grub-fstest.c (fstest): Add missing break.
6782
524b5d3a
ST
67832012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
6784
6785 Fix hurd build.
6786
6787 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
6788 not define nr variable.
fe4824e9 6789 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
6790 find_root_devices_from_poolname, find_root_devices_from_libzfs,
6791 grub_find_device): Do not define.
524b5d3a 6792
9a06490c
VS
67932012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 Fix kfreebsd compile and behaviour.
6796
6797 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
6798 format-security.
6799 * util/getroot.c: Fix wait.h include.
6800 (grub_guess_root_devices): Error if grub_find_device fails.
6801 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
6802 (grub_util_get_dev_abstraction): Likewise.
6803 (grub_util_pull_device): Likewise.
6804 (grub_util_get_grub_dev): Likewise.
6805 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
6806
48143d96
VS
68072012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6808
6809 Fix and unify wholedisk detection.
6810
6811 * util/getroot.c (convert_system_partition_to_system_disk): New argument
6812 is_part. All users updated.
6813 (device_is_wholedisk): Removed.
6814 (grub_util_biosdisk_get_grub_dev): Use is_part.
6815
ebbd24f3
VS
68162012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6817
6818 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
6819 mode.
6820
56f7aa1e
VS
68212012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 * configure.ac: Bump to beta4.
6824
9c815e01
VS
68252012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
6828 --fs-uuid --set UUID syntax.
6829
59e2651a
VS
68302012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6831
6832 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
6833 disunification.
6834
54e03cfc
VS
68352012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
6838
81092a75
MK
68392012-04-18 Mads Kiilerich <mads@kiilerich.com>
6840
6841 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
6842
f8315e14
MG
68432012-04-18 Mike Gilbert <floppym@gentoo.org>
6844
6845 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
6846
1501ac21
B
68472012-04-18 Bean <bean123ch@gmail.com>
6848
6849 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
6850 place.
6851
cb7f944e
VS
68522012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
6855 users updated.
6856 (grub_util_biosdisk_read): Handle Linux partitions not exactly
6857 corresponding to GRUB partitions.
6858 (grub_util_biosdisk_write): Likewise.
6859
b72d44a1
VS
68602012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6861
6862 Scan mdraid before LVM.
6863
6864 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
6865 (grub_diskfilter_register_front): ... this.
6866 (grub_diskfilter_register_back): New function.
6867 All users of grub_diskfilter_register updated.
6868
33d918b8
VS
68692012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6870
6871 * util/grub-install.in: Fix an automatic target detection bug.
6872
c6ca973d
VS
68732012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6874
6875 * util/grub-install.in: New option --efi-directory.
6876
b41be562
VS
68772012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6878
6879 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
6880 boot services if we have no other choice.
6881
68822012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6883
6884 * util/grub-mknetdir.in: Rename --override-directory to --directory and
6885 document it.
6886 * tests/util/grub-shell.in: Update to --directory.
6887
e0595a73
VS
68882012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6889
6890 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
6891
4ed80652
VS
68922012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
6895 (grub_minix_read_file): Likewise.
6896 (grub_minix_read_inode): Likewise.
6897 (grub_minix_find_file): Likewise.
6898 (grub_minix_dir): Likewise.
6899
56008077
VS
69002012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 * util/grub-setup.c (setup): Fix partition handling and blocklist
6903 check.
6904
ee520775
VS
69052012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6906
6907 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
6908 redundant buggy overlap check.
6909
16fc9293
VS
69102012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6911
6912 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
6913 and grub-mknetdir.
6914
9bab65c4
VS
69152012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6916
6917 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
6918 kh.loadflags on pre-2.00 kernels.
6919
3c491b47
VS
69202012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6921
6922 Terminate UNDI and PXE before launching the payload to avoid problems
6923 with DMA.
6924
6925 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
6926 (grub_loader_flags): ... this. All users updated.
6927 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
6928 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
6929 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
6930 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
6931 function.
6932 (grub_pxe_restore): Likewise.
6933 (fini_hnd): New var.
6934 (GRUB_MOD_INIT): Register shutdown hook.
6935 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
6936 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
6937 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
6938 (grub_loader_set): Rename second argument to flags.
6939
851ffada
VS
69402012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6941
6942 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
6943 written bytes.
6944 (grub_get_num_of_utf8_bytes): New function.
6945 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
6946 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
6947 executing it.
6948 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
6949 (grub_ucs4_to_utf8): Change return type.
6950
491c57a8
VS
69512012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
6954 warning.
851ffada
VS
6955 * grub-core/fs/bfs.c (hop_level): Likewise.
6956 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 6957
756773df
VS
69582012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6959
6960 * grub-core/lib/adler32.c: Recode due to license unclearness.
6961
fd556a96
VS
69622012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6963
6964 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
6965 (test_header): Likewise.
6966
9f9d3f69
VS
69672012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6968
6969 Fix --help formatting.
6970
6971 * util/grub-mkconfig_lib.in (print_option_help): New function.
6972 (grub_fmt): Likewise.
6973 * util/grub-install.in: Use print_option_help and grub_fmt.
6974 * util/grub-kbdcomp.in: Likewise.
6975 * util/grub-mkconfig.in: Likewise.
6976 * util/grub-mknetdir.in: Likewise.
6977 * util/grub-mkrescue.in: Likewise.
6978 * util/grub-mkstandalone.in: Likewise.
6979 * util/grub-reboot.in: Likewise.
6980 * util/grub-set-default.in: Likewise.
6981 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6982
561ec77e
VS
69832012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 * linguas.sh: Remove autogenerated *.po.
6986
7ec2b021
VS
69872012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6988
6989 * po/README: Move language fetcing to ...
6990 * linguas.sh: ... here.
6991 * po/README: Point to linguas.sh.
6992
a88f3270
VS
69932012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6994
6995 * po/README: Exclude ko.po due to disclaimer problems.
6996
d61357ce
VS
69972012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6998
6999 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
7000 len = 0.
7001 (grub_gettext_translate_real): Handle 0th string.
7002 (grub_gettext_translate): Ensure that "" isn't translated.
7003
505e41dc
VS
70042012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7005
7006 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
7007 TRANSLATORS comment.
7008 (grub_diskfilter_print_partmap): Propagate changing of error into
7009 warning.
7010
e44092db
VS
70112012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7012
7013 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
7014 to uint64_t to prevent overflow.
7015 (grub_diskfilter_lv): Increase start_extent and extent_count
7016 to uint64_t to prevent overflow.
7017
9b83956a
VS
70182012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 * configure.ac: Increase version.
7021
da0d5b3f
VS
70222012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7023
7024 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
7025
7026 * po/Rules-translit: New file.
7027 * po/arabic.sed: Likewise.
7028 * po/cyrillic.sed: Likewise.
7029 * po/greek.sed: Likewise.
7030 * po/hebrew.sed: Likewise.
7031 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
7032 * po/Makefile.in.in: Add extra_dist4.
7033
ac66b453
VS
70342012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 Handle big-endian minixfs (fixes minixfs tests on bigendian).
7037
7038 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
7039 modify names. Introduce MODE_BIGENDIAN.
7040 * grub-core/fs/minix_be.c: New file.
7041 * grub-core/fs/minix2_be.c: Likewise
7042 * grub-core/fs/minix3_be.c: Likewise.
7043 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
7044 minix3_be.
7045 * grub-core/Makefile.core.def (minix_be): New module.
7046 (minix2_be): Likewise.
7047 (minix3_be): Likewise.
7048
70492012-04-01 Felix <email@hamburg.de>
7050
7051 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
7052 (devs): Add MBP 2011.
7053
0a2d5a82
VS
70542012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7055
7056 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
7057
d1625889
VS
70582012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7059
7060 * grub-core/normal/cmdline.c (print_completion): New field
7061 prompt_len.
7062 (grub_cmdline_get): Handle width properly.
7063
6d36a236
VS
70642012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7065
7066 * grub-core/commands/lsacpi.c (options): Add missing terminator.
7067
9576977e
VS
70682012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7069
7070 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 7071 after 29th of February.
9576977e 7072
d73ff15d
VS
70732012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 Fix exfat endianness handling.
7076
7077 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
7078 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
7079 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
7080 Byte-swap utf16 when necessary.
7081 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
7082
bbb39a45
AB
70832012-03-31 Anton Blanchard <anton@samba.org>
70842012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 Fix btrfs endianness handling.
7087
7088 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
7089 (lower_bound): Make root uint64_t. Use root in le.
7090 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
7091 (find_path): Fix template key init.
7092 (grub_btrfs_dir): Fix mtime byteswap.
7093 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
7094
354e0af7
VS
70952012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7096
7097 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
7098 recursion_depth. Break infinite resursions. All users updated.
7099
4e75f21c
VS
71002012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7101
7102 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
7103 after free.
7104 Reported by: Peter Jones.
7105
25581802
AB
71062012-03-31 Anton Blanchard <anton@samba.org>
7107
7108 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
7109 8 bit values.
7110
08fbf92e
VS
71112012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 * util/grub-install.in: Fix nvram call for PreP.
7114
5d1182a6
VS
71152012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
7118 the error when some elements are missing into a warning.
7119
3f8cdd90
VS
71202012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7121
7122 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
7123
51006716
CW
71242012-03-28 Colin Watson <cjwatson@ubuntu.com>
7125
7126 * docs/grub.texi (Invoking grub-probe): New section.
7127 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
7128
e1bd676b
VS
71292012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7130
7131 Fix tab and wide character handling in editor and menu.
7132
7133 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
7134 agglomerate control characters with combining marks.
7135 (bidi_line_wrap): Allow break on tab.
7136 (grub_unicode_get_comb_start): New function.
7137 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
7138 and tab correctly.
7139 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
7140 with a space.
7141 * grub-core/normal/term.c (print_ucs4_terminal): New argument
7142 fixed_tab_size. All users updated.
7143 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
7144 (grub_term_getcharwidth): Handle \t.
7145 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
7146 and copy.
7147
22e6a774
VS
71482012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 Handle big-endian mdraid.
7151
7152 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
7153 * grub-core/Makefile.core.def (mdraid09_be): New module.
7154 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
7155 rather than grub_le_to_cpu* and grub_cpu_to_le*.
7156 * grub-core/disk/mdraid_linux_be.c: New file.
7157
3c0eae66
VS
71582012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7159
7160 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
7161
b6cf74c9
VS
71622012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
7165 missing quotes which caused confusion among translators.
7166
83c93b9c
VS
71672012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7168
7169 * util/grub-mkconfig_lib.in: Fix typo.
7170
ac6fd218
VS
71712012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
7174 spaces.
7175 * tests/grub_script_leading_whitespace.in: New file.
7176 * Makefile.util.def (grub_script_leading_whitespace): New test.
7177
ba287dd8
VS
71782012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7179
7180 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
7181 to work.
7182
d2d58d0a
VS
71832012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7184
7185 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
7186 starts with control character.
7187
0382d9bb
VS
71882012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7189
7190 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
7191 overflow.
7192 (grub_gdb_outbuf): Likewise.
7193
d83ff9f9
VS
71942012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
7197 zero terminator. Fixes a crash.
7198
2282da4a
VS
71992012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
7202 beyond 4 GiB.
7203 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
7204 images independently of preffered adderss field.
7205
0ae4f0bd
VS
72062012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7207
7208 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
7209 * grub-core/commands/regexp.c: Likewise.
7210 * grub-core/loader/i386/linux.c: Likewise.
7211 * grub-core/partmap/msdos.c: Likewise.
7212 * grub-core/script/execute.c: Likewise.
7213 * grub-core/term/gfxterm.c: Likewise.
7214
546fbe9b
VS
72152012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7216
7217 Add variable parsing in $"..." and fix several mismatches with bash.
7218
7219 * Makefile.util.def (grub_script_gettext): New test.
7220 * grub-core/script/execute.c (parse_string): New function.
7221 (gettext_append): Likewise.
7222 (grub_script_arglist_to_argv): Use gettext_append.
7223 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
7224 * tests/grub_script_gettext.in: New file.
7225
9fdb2d7b
VS
72262012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7227
7228 Fix handling of leading spaces in scripts.
7229
7230 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
7231 spaces.
7232 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
7233 other than skipping \r. All users updated.
7234 * tests/grub_script_echo1.in: Add space-related tests.
7235 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
7236
1a1ac4f6
VS
72372012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7238
7239 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
7240
b63d89b6
VS
72412012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7242
7243 * configure.ac: Bump up the version to beta2.
7244
17f38c0f
VS
72452012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7246
7247 Fix gettext reload bugs (e.g. inability to disable gettext
7248 once enabled).
7249
7250 * grub-core/gettext/gettext.c: Encapsulate all static variables in
7251 main_context and secondary_context. All functions updated.
7252 (grub_gettext_translate): Rename to ...
7253 (grub_gettext_translate_real): ... this. Return NULL on failed
7254 translate.
7255 (grub_gettext_translate): Handle secondary context.
7256 (grub_gettext_delete_list): Close file and zero-out the context.
7257 (grub_mofile_open): Don't call grub_gettext_delete_list.
7258 Don't close file.
7259 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
7260 if locale="" to avoid pointless error message.
7261 (grub_gettext_env_write_lang): Update lang even if load fails.
7262 Handle secondary context.
7263 (grub_gettext_reread_prefix): New function.
7264 (read_main): Likewise.
7265 (read_secondary): Likewise.
7266 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
7267 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
7268 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
7269 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
7270
8e56f870
VS
72712012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7272
7273 * configure.ac: Decrease warning level to avoid spurious warnings and
7274 to be able to compile with GCC 4.2.
7275 * Makefile.util.def: Remove -Wno-error=logical-op.
7276
82f6d455
WB
72772012-03-10 William Bittner <william.bittner@gmail.com>
7278
7279 * util/import_unicode.py: Add missing brackets around string for
7280 python 3 support.
7281
1ecd61a4
VS
72822012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7283
7284 Fix efi chainloader on network root.
7285
7286 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
7287 network devices.
7288 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
7289 New function.
7290
14361ee8
VS
72912012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7292
7293 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
7294 unused show_text member.
7295 * docs/grub.texi: Document "text" property.
7296
922aabf3
VS
72972012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
7300 in dprintf.
7301
ec316771
VS
73022012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 Fix IMSM handling on Fedora.
7305
7306 * util/getroot.c (grub_util_is_imsm): New function.
7307 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
7308
0f021838
VS
73092012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 * Makefile.am: Strip gold section.
7312 * conf/Makefile.common: Likewise.
7313 * gentpl.py: Likewise.
7314 * grub-core/Makefile.core.def: Likewise.
7315 * grub-core/genmod.sh.in: Likewise.
7316
1039c8eb
VS
73172012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
7320 * util/grub.d/20_linux_xen.in: Likewise.
7321 Based on Debian patch.
7322
6dd412cd
VS
73232012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7324
7325 * util/grub.d/10_linux.in: Fix syntax error resulting in
7326 Richard Laager's patch.
7327 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
7328
3fd8bae5
VS
73292012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7330
7331 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
7332 dependencies.
7333
7eea1671
RL
73342012-03-10 Richard Laager <rlaager@wiktel.com>
7335
7336 * util/grub.d/10_linux.in: Fix ZFS root passing.
7337
e8e0566b
VS
73382012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7339
7340 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
7341 * grub-core/commands/xnu_uuid.c: Likewise.
7342 * grub-core/loader/efi/appleloader.c: Likewise.
7343 * grub-core/script/execute.c: Likewise.
7344 * grub-core/script/main.c: Likewise.
7345 * util/grub-mkfont.c: Likewise.
7346
1acc5b1f
VS
73472012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7348
7349 * util/grub-mkfont.c (options): Use more appropriate "select" that
7350 "set" for face index.
7351
35d70620
VS
73522012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 * util/grub-editenv.c (options): Gettextize command summaries.
7355
c9eb96b5
VS
73562012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
7359 "out of memory" error messagge.
7360
1f493136
VS
73612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7362
7363 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
7364 of diskfilter for diskfilter on diskfilter support.
7365
6d790129
VS
73662012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
7369
005f46c9
VS
73702012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7371
7372 * util/grub-install.in: Check for themes/starfield/theme.txt and not
7373 themes/starfield.
7374
c8f778a0
VS
73752012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7376
7377 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
7378
de1e64eb
VS
73792012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
7382
c6d54211
VS
73832012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7384
7385 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
7386 of error message.
7387
dd390777
VS
73882012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
7389
7390 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
7391
5fd1c522
VS
73922012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
7393
7394 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
7395 message.
c6d54211 7396 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 7397
fae01f6c
VS
73982012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
7401 Gettextize.
7402 * util/grub-mount.c (options): Likewise.
7403
292fdaff
VS
74042012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
7407 gettextize.
7408 * grub-core/commands/search_wrap.c (options): Likewise.
7409
ecdbae77
VS
74102012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7411
7412 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
7413
52bfedfa
VS
74142012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7415
7416 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
7417 size calculation.
7418 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
7419 none is known.
7420
55b20e58
VS
74212012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7422
7423 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
7424 "temporary" since it's used in identifier and is limited in space.
7425
fda9d101
VS
74262012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 * po/POTFILES.in: Regenerate. Include *.h since they contain
7429 translatable strings as well.
7430
6a0295e2
VS
74312012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7432
7433 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
7434 byte-swap on big-endian.
7435 Reported by: Lennart Sorensen
7436
807fb77c
VS
74372012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
7440 (allocate_pages): Improve dprintf.
7441 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
7442 code32_start. Fill code32_start and kernel_alignment in params.
7443 (grub_cmd_initrd): Use prot_init_space.
7444
61ac50ba
VS
74452012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7446
7447 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
7448
abdd26dd
VS
74492012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 * util/grub-install.in: Add missing dot at the end of sentence.
7452
6e69da9c
VS
74532012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
7456 * grub-core/commands/videotest.c: Likewise.
7457 * grub-core/loader/i386/linux.c: Likewise.
7458
4a929343
VS
74592012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
7462 sentence.
7463 Reported by: Milo Casagrande.
7464
bb51c6c6
VS
74652012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
7468 * grub-core/commands/gptsync.c: Likewise.
7469 * grub-core/commands/hashsum.c: Likewise.
7470 * grub-core/commands/i386/pc/sendkey.c: Likewise.
7471 * grub-core/commands/legacycfg.c: Likewise.
7472 * grub-core/io/gzio.c: Likewise.
7473 * grub-core/net/net.c: Likewise.
7474 * grub-core/term/gfxterm.c: Likewise.
7475 * grub-core/term/terminfo.c: Likewise.
7476 * grub-core/tests/test_blockarg.c: Likewise.
7477 * grub-core/video/video.c: Likewise.
7478 * util/grub-install.in: Likewise.
7479 * util/grub-mkfont.c: Likewise.
7480
b2b149cb
VS
74812012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7482
7483 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
7484
c7c080ad
VS
74852012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 7488 Reported by: David Prévot.
c7c080ad 7489
f2e243c0
VS
74902012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7491
7492 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
7493 description.
7494
09963c76
VS
74952012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 * util/grub-script-check.c (main): Fix a syntax error message which was
7498 unclear.
7499
a50514a8
VS
75002012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
7503
4650daec
VS
75042012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7505
7506 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
7507 messages.
7508
75092012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
7510
7511 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
7512 without argument.
7513 * util/grub-mount.c (options): Likewise.
7514
bbc5a342
VS
75152012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7516
7517 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
7518
ef292a87
VS
75192012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7520
7521 * grub-core/net/http.c: Add TRANSLATORS comments.
7522 * grub-core/normal/cmdline.c: Likewise.
7523 * grub-core/normal/misc.c: Likewise.
7524 * grub-core/partmap/msdos.c: Likewise.
7525 * grub-core/parttool/msdospart.c: Likewise.
7526 * grub-core/script/execute.c: Likewise.
7527 * grub-core/script/main.c: Likewise.
7528 * grub-core/term/terminfo.c: Likewise.
7529 * grub-core/video/bitmap.c: Likewise.
7530 * util/grub-install.in: Likewise.
7531 * util/grub-mkimage.c: Likewise.
7532 * util/grub-mklayout.c: Likewise.
7533 * util/grub-setup.c: Likewise.
7534
0fc19bd0
VS
75352012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
7538 with similar messages in grub-fstest.
7539
d95862ef
VS
75402012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 * util/grub-install.in: Unify "option requires an argument" message
7543 with similar messages in other files.
7544 * util/grub-mkconfig.in: Likewise.
7545
b7308f90
VS
75462012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7547
7548 * util/grub-set-default.in: Replace printf with gettext_printf (the
7549 string in in question is already translated from grub-reboot)
7550
559dc587
VS
75512012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7552
7553 * configure.ac: Bump up the version to beta1.
7554
1a11761f
VS
75552012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7556
7557 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
7558 case when min_align = 0.
7559
24539abd
VS
75602012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7561
7562 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
7563 and fix a case when line_start overflows.
7564
32bd735b
VS
75652012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7566
7567 * util/grub-reboot.in (usage): Mention id posibility.
7568 * util/grub-set-default.in (usage): Likewise.
7569
1a2fd1e6
VS
75702012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7571
7572 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
7573 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
7574 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7575 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7576 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7577 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7578 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7579
90eeab76
VS
75802012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * grub-core/commands/menuentry.c (options): Remove
7583 GRUB_ARG_OPTION_REPEATABLE.
7584 Reported by: Andreas Vogel
7585
5ad1be82
AV
75862012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
7587
7588 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
7589
cb055286
HE
75902012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
7591
7592 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
7593 error.
7594
93b1cd79
VS
75952012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7596
7597 Use sort -V by the idea of Georgi Georgiev.
7598
7599 * util/grub-mkconfig_lib.in (version_sort): New function.
7600 (version_test_numeric): Use version_sort.
7601
0cdc126c
VS
76022012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7603
7604 Use submenus in grub-mkconfig.
7605
7606 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
7607 * util/grub-mkconfig_lib.in (grub_quote): New function.
7608 (gettext_printf): Use gettext and not gettext_quoted to fix several
7609 messages.
7610 * util/grub.d/10_hurd.in: Use submenus.
7611 * util/grub.d/10_kfreebsd.in: Likewise.
7612 * util/grub.d/10_linux.in: Likewise.
7613 * util/grub.d/10_netbsd.in: Likewise.
7614 * util/grub.d/20_linux_xen.in: Likewise.
7615 * util/grub.d/30_os-prober.in: Likewise.
7616 * util/grub.d/10_illumos.in: Add missing quoting.
7617 * util/grub.d/10_windows.in: Likewise.
7618
d9bef9bc
VS
76192012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 Fix menu title instability bug.
7622
7623 * grub-core/commands/menuentry.c (options): New option --id.
7624 (grub_normal_add_menu_entry): New argument id. All users updated.
7625 (grub_cmd_menuentry): Handle --id.
7626 (grub_menu_init): Accept unknown arguments.
7627 * grub-core/normal/main.c (features): Add feature_menuentry_id and
7628 feature_menuentry_options.
7629 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
7630 saved_entry.
7631 (get_entry_number): Match with id as well.
7632 * include/grub/menu.h (grub_menu_entry): New member id.
7633 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
7634 * util/grub.d/00_header.in: Define menuentry_id_option.
7635 * util/grub.d/10_hurd.in: Define id.
7636 * util/grub.d/10_illumos.in: Likewise.
7637 * util/grub.d/10_kfreebsd.in: Likewise.
7638 * util/grub.d/10_linux.in: Likewise.
7639 * util/grub.d/10_netbsd.in: Likewise.
7640 * util/grub.d/10_windows.in: Likewise.
7641 * util/grub.d/20_linux_xen.in: Likewise.
7642 * util/grub.d/30_os-prober.in: Likewise.
7643
76442012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
7645
7646 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
7647 "scope" with "body".
7648
7c8d0ce7
VS
76492012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7650
7651 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
7652 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
7653 prot_size and prot_file_size.
7654
49de079b
VS
76552012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7656
7657 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
7658 All users updated. If easily=1 require raid-5/-6 to be full.
7659 (is_node_readable): Likewise.
7660 (scan_devices): Scan incomplete but readable LVs at the end.
7661 (grub_diskfilter_memberlist): Pull missing devices.
7662 (insert_array): Skip scanning until device is complete or scan is
7663 done otherwise.
7664 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
7665 check.
7666 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
7667 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
7668
aff05d45
MG
76692012-03-03 Matthew Garrett <mjg@redhat.com>
76702012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7671
7672 Avoid EFI boot services when loading Linux.
7673
7674 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
7675 avoid_efi_bootservices. All users updated.
7676 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
7677 argument avoid_efi_bootservices. All users updated.
7678 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
7679 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
7680 align, min_align, relocatable, prefered_address. All users updated.
7681 Allocate avoiding boot services if kernel is relocatable.
7682 (grub_cmd_linux): Check if kernel is relocatable.
7683 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
7684 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
7685 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
7686 avoid_efi_boot_services.
7687 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
7688 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
7689 (linux_kernel_params): Likewise.
7690
3935dde2
MG
76912012-03-03 Matthew Garrett <mjg@redhat.com>
76922012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7693
7694 Use EDID on EFI.
7695
7696 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
7697 datasize_out.
7698 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
7699 modes. Set gop_handle.
7700 (grub_video_gop_get_edid): New function.
7701 (grub_gop_get_preferred_mode): Likewise.
7702 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
7703 (grub_video_efi_gop_adapter): Set .get_edid.
7704 * include/grub/efi/edid.h: New file.
7705 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
7706
32107ec0
VS
77072012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7708
7709 * util/grub-install.in: Load efivars unconditionally.
7710
e70a2c50
VS
77112012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7712
7713 * po/Rules-piglatin: Change suffix from .po-update-en to
7714 .po-update-en-piglatin.
7715
8f9cace1
VS
77162012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7717
7718 Add a pig farm.
7719
7720 * po/piglatin.sed: New file.
7721 * po/en@piglatin.header: Likewise.
7722 * po/Rules-piglatin: Likewise.
7723 * po/README: Add en@piglatin to autogenerated languages.
7724
8f95d002
VS
77252012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7726
7727 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
7728 "Command for ...".
7729 * grub-core/commands/hdparm.c (options): Use "Display" rather than
7730 "Check" since we don't check anything.
7731 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
7732 is 64-bit one.
7733 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
7734 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
7735 (grub_md_sha512_real): Likewise.
7736
805a8dcc
VS
77372012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7738
7739 * grub-core/commands/gptsync.c: Fix typographic quoting.
7740 * grub-core/commands/ieee1275/suspend.c: Likewise.
7741 * grub-core/commands/parttool.c: Likewise.
7742 * grub-core/commands/search_wrap.c: Likewise.
7743 * grub-core/commands/videoinfo.c: Likewise.
7744 * grub-core/gfxmenu/gui_label.c: Likewise.
7745 * grub-core/hello/hello.c: Likewise.
7746 * grub-core/kern/emu/main.c: Likewise.
7747 * grub-core/net/net.c: Likewise.
7748 * grub-core/normal/menu.c: Likewise.
7749 * grub-core/normal/menu_text.c: Likewise.
7750 * grub-core/normal/misc.c: Likewise.
7751 * util/grub-editenv.c: Likewise.
7752 * util/grub-install.in: Likewise.
7753 * util/grub-kbdcomp.in: Likewise.
7754 * util/grub-mkconfig.in: Likewise.
7755 * util/grub-mknetdir.in: Likewise.
7756 * util/grub-mkrescue.in: Likewise.
7757 * util/grub-mkstandalone.in: Likewise.
7758 * util/grub-reboot.in: Likewise.
7759 * util/grub-set-default.in: Likewise.
7760 * util/grub-setup.c: Likewise.
7761 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7762
40211ab8
VS
77632012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7764
7765 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
7766 * grub-core/commands/keystatus.c: Likewise.
7767 * grub-core/commands/loadenv.c: Likewise.
7768 * grub-core/commands/probe.c: Likewise.
7769 * grub-core/commands/regexp.c: Likewise.
7770 * grub-core/commands/true.c: Likewise.
7771 * grub-core/commands/videoinfo.c: Likewise.
7772 * grub-core/disk/cryptodisk.c: Likewise.
7773 * grub-core/disk/ldm.c: Likewise.
7774 * grub-core/disk/loopback.c: Likewise.
7775 * grub-core/disk/luks.c: Likewise.
7776 * grub-core/fs/zfs/zfsinfo.c: Likewise.
7777 * grub-core/kern/disk.c: Likewise.
7778 * grub-core/kern/emu/hostdisk.c: Likewise.
7779
0c7d99c7
VS
77802012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
7783 * util/grub-install.in: Add missing quote in the comment.
7784
e7d2559b
VS
77852012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
7788 * grub-core/commands/lsmmap.c: Likewise.
7789 * grub-core/commands/minicmd.c: Likewise.
7790 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
7791 * grub-core/commands/regexp.c: Likewise.
7792 * grub-core/gdb/gdb.c: Likewise.
7793 * grub-core/term/gfxterm.c: Likewise.
7794 * util/grub-mkconfig.in: Likewise.
7795 * util/grub-mkfont.c: Likewise.
7796 * util/grub-mklayout.c: Likewise.
7797 * util/grub-mknetdir.in: Likewise.
7798 * util/grub-mkrescue.in: Likewise.
7799 * util/grub.d/30_os-prober.in: Likewise.
7800
49ce9e50
VS
78012012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
7804 with "Direct color" and "Packed" with "Packed pixel".
7805 (grub_cmd_videoinfo): Simplify legend.
7806
e4b791fa
VS
78072012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7808
7809 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
7810 absolutely unclear error message.
7811
fd1265cb
VS
78122012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7813
7814 * util/grub-mkstandalone.in: Remove confusing leftover print.
7815
8822a8a0
VS
78162012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7817
7818 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
7819 comments.
7820 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
7821 (GRUB_MOD_INIT): Likewise.
7822 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
7823 VGA mode.
7824 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
7825 comments.
7826 * util/grub-install.in (usage): Likewise.
7827 Spell ID in whole letters.
7828 Add missing ending dot.
7829 Quote variables.
7830 * util/grub-reboot.in: Fix capitalisation.
7831 * util/grub-set-default.in: Likewise.
7832
937fd0cc
VS
78332012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7834
7835 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
7836 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
7837 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
7838 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
7839 Disable -Werror for -Wdeprecated-declarations.
7840 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
7841 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
7842 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
7843 (grub_util_get_grub_dev): Make luks handling dependent on
7844 HAVE_DEVICE_MAPPER and not __linux__.
7845 (get_win32_path): Fix format security.
7846 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
7847 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
7848 Don't try grub_find_zpool_from_dir.
7849 (grub_make_system_path_relative_to_its_root) [!__linux__]:
7850 #ifdef-out paresdir.
7851
1bab1ae3
VS
78522012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7853
7854 * util/grub-pe2elf.c (usage): Add missing noreturn.
7855 (write_section_data): Rename name to shname to avoid shadowing.
7856 (write_symbol_table): Rename name to symname to avoid shadowing.
7857 Fix write_reloc_section call.
7858
ef023e42
VS
78592012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7860
7861 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
7862 to ensure that it's after the last byte of .text.
7863
48afcb75
VS
78642012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7865
7866 * util/ieee1275/ofpath.c (my_isdigit): New function.
7867 (trailing_digits): Use my_isdigit.
7868 (strip_trailing_digits): Likewise.
7869
88d51eff
VS
78702012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7871
7872 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
7873 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
7874
17edc2ba
VS
78752012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 * grub-core/kern/i386/pc/startup.S: Define __start.
7878
ad5518d7
VS
78792012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7880
7881 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
7882 strip already transforms he format.
7883
9e95e1bf
VS
78842012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7885
7886 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
7887
9cc3ee5c
VS
78882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7889
7890 * util/grub-install.in: Add missing gettext init.
7891 * util/grub-kbdcomp.in: Likewise.
7892 * util/grub-mkconfig.in: Likewise.
7893 * util/grub-mknetdir.in: Likewise.
7894 * util/grub-mkrescue.in: Likewise.
7895 * util/grub-mkstandalone.in: Likewise.
7896 * util/grub-reboot.in: Likewise.
7897 * util/grub-set-default.in: Likewise.
7898 * util/grub.d/00_header.in: Likewise.
7899 * util/grub.d/10_hurd.in: Likewise.
7900 * util/grub.d/10_windows.in: Likewise.
7901 * util/grub.d/30_os-prober.in: Likewise.
7902 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7903
49e08a06
VS
79042012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7905
7906 * po/Rules-swiss: Fix header comment.
7907
3809cb41
AV
79082012-02-29 Andreas Vogel <anvoit>
7909
7910 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
7911 resulted in leak of arguments.
7912
fa6ec573
VS
79132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 * grub-core/boot/i386/pc/startup_raw.S: Use separate
7916 reed_solomon_size const definition instead of computing it since
7917 Apple assembler doesn't support the later.
7918
22899b9c
VS
79192012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7920
7921 * gentpl.py (kernel): Rewrite Apple part.
7922
a132afc3
VS
79232012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7924
7925 * include/grub/kernel.h (FOR_MODULES): Check module magic.
7926
9d742bd4
VS
79272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7928
7929 * util/grub-mkimagexx.c (locate_sections): Support non-standard
7930 ELF section gap.
7931 (load_image): Likewise.
7932
f04a9a21
VS
79332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7934
7935 * configure.ac: Fix a typo in previous commit.
7936
46cf439c
VS
79372012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7938
7939 Don't add -Wl,-N on Apple platform.
7940
7941 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
7942 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
7943
c4c48c54
VS
79442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7945
7946 * grub-core/Makefile.core.def (lzma_decompress): Use
7947 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
7948
31a12124
VS
79492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7950
7951 * grub-core/genmod.sh.in: Rewrite the Apple part.
7952
4f3aa1af
VS
79532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7954
7955 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
7956 comparison.
7957
7bd8b0c7
VS
79582012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7959
7960 * acinclude.m4 (grub_CHECK_PIC): New test.
7961 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
7962
97304d7c
VS
79632012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7964
7965 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
7966 to avoid the warning.
7967
fb883812
VS
79682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7969
7970 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
7971 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
7972 after. All users updated.
7973
a121c964
VS
79742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7975
7976 Use the common size routine in hostfs so we can read disks as well.
7977
7978 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
7979 (grub_util_get_fd_size): ... this. Return size in bytes.
7980 All users updated.
7981 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
7982 grub_util_get_fd_size.
7983
c66d6410
VS
79842012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7985
7986 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
7987 Add blocksize retrieval.
7988
dfc8aeb0
VS
79892012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7990
7991 * configure.ac: Restore CFLAGS after efiemu check.
7992
403e25a5
VS
79932012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7994
7995 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
7996 Apple bug.
7997
382775d1
VS
79982012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7999
8000 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
8001
6fd4e6e4
VS
80022012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8003
8004 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
8005 (grub_cmd_halt): Likewise.
8006
bea359d6
VS
80072012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8008
8009 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
8010 for local arithmetics.
8011 Break %sp init into 2 instructions.
8012 Add 0 byte at the end.
8013
32eb6ee1
VS
80142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8015
8016 * grub-core/disk/diskfilter.c (read_segment): Initialise err
8017 before loops.
8018
e8377389
VS
80192012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8020
8021 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
8022 for context.
8023
8cb17de7
VS
80242012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8025
8026 * grub-core/disk/ldm.c (make_vg): Init part.name.
8027 (grub_ldm_detect): Silence spurious warning.
8028 (grub_util_is_ldm): Likewise.
8029
595717e6
VS
80302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8031
8032 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
8033 sane value to avoid a spurious warning.
8034
c4b7e588
VS
80352012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8036
8037 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
8038 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
8039
59824957
VS
80402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8041
8042 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
8043 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
8044
70115b99
VS
80452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8046
8047 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
8048 hardcoding the relevant info.
8049
56733740
VS
80502012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8051
8052 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
8053 missing const qualifiers.
8054 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
8055
43481481
VS
80562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8057
8058 * util/getroot.c [__APPLE__]: Add missing includes.
8059 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
8060
3cb38f01
VS
80612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8062
8063 * util/grub-mkimage.c (generate_image): Silence spurious warning.
8064
d9dbf11e
VS
80652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8066
8067 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
8068 avoid conflicts.
8069
0c42a45d
VS
80702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8071
8072 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
8073
46c34eb0
VS
80742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8075
8076 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
8077 and grub_file_close call.
8078
99ce1597
VS
80792012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8080
8081 Add LZSS Mach-O support (needed for new xnu kernelcache).
8082
8083 * grub-core/Makefile.core.def (xnu): Add file lzss.c
8084 * grub-core/loader/lzss.c: New file.
8085 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
8086 on Mach-O open failure.
8087 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
8088 Don't free cmdsXX in uncompressedXX is set.
8089 (grub_macho_file): Init new fields.
8090 New argument is_64bit. All users updated.
8091 Handle compressed. Error out if no suitable architecture is found.
8092 Don't close file.
8093 (grub_macho_open): New argument is_64bit. All users updated.
8094 * grub-core/loader/macho32.c: Add defines for new fields.
8095 * grub-core/loader/macho64.c: Likewise.
8096 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
8097 (grub_macho_parse): Handle compressed.
8098 Defer actual processing if compressed.
8099 (grub_macho_cmds_iterate): Decompress if compressed. New argument
8100 "filename". All users updated.
8101 (grub_macho_size): New argument "filename". All users updated.
8102 (grub_macho_get_entry_point): Likewise.
8103 (grub_macho_load): Handle compressed.
8104 * include/grub/macho.h (grub_macho_lzss_header): New struct.
8105 (GRUB_MACHO_LZSS_OFFSET): New define.
8106 (grub_decompress_lzss): New proto.
8107 * include/grub/machoload.h (grub_macho_file): New fields to handle
8108 compressed.
8109 (grub_macho_contains_macho64): Remove proto.
8110 (grub_macho_contains_macho32): Likewise.
8111 * util/grub.d/30_os-prober.in: Use kernel cache if available.
8112
ebd17d6f
VS
81132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8114
8115 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
8116
2702b4e4
VS
81172012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8118
8119 Fix make dist.
8120
8121 * Makefile.am (starfield_theme_files): New var.
8122 (starfield_DATA): Use starfield_theme_files.
8123 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
8124 Add bootcheck-related files.
8125 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
8126 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
8127 and font_char_metrics.txt.
8128 * grub-core/Makefile.core.def (kernel): Update extra_dist.
8129 (setjmp): Add lib/ia64/longjmp.S.
8130 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
8131 * po/POTFILES.in: Regenerate.
8132 * po/Rules-swiss: use DISTFILES.common.extra2 and not
8133 DISTFILES.common.extra1.
8134 * util/devicemap.c: Removed.
8135 * grub-core/lib/i386/relocator_backward.S: Likewise.
8136 * util/import_gcry.py: Remove unused files. Add extra_dist for
8137 ChangeLog.
8138
cf1adfdf
VS
81392012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8140
8141 * grub-core/gettext/gettext.c (grub_mofile_open): Call
8142 grub_gettext_delete_list before changing grub_gettext_max to avoid
8143 running out of array bounds.
8144
81452012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
8146
8147 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
8148 grub_vga_text_init/grub_vga_text_fini.
8149
cf1adfdf 81502012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
8151
8152 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
8153
541d92e9
VS
81542012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8155
8156 * configure.ac: Bump to 2.00~beta0.
8157
7931dddf
VS
81582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8159
8160 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
8161 missing initialisation.
8162
f1b16fa3
VS
81632012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8164
8165 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
8166
83ddae23
VS
81672012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8168
8169 Support v2 xnu boot arguments.
8170
8171 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
8172 New argument fsbfreq_out.
8173 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
8174 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
8175 be used.
8176 * grub-core/loader/machoXX.c (grub_macho_load): New argument
8177 darwin_version.
8178 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
8179 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
8180 (grub_xnu_boot_params): Rename to ...
8181 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
8182 (grub_xnu_boot_params_v2): New struct.
8183
dc693fe6
VS
81842012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8185
8186 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
8187 zeroing of CRC field before computing CRC.
8188
5a6e39c2
VS
81892012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8190
8191 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
8192 Change order of allocations to decrease fragmentation.
8193
6c21f5d7
VS
81942012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8195
8196 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
8197
cfe456dc
CW
81982012-02-27 Colin Watson <cjwatson@ubuntu.com>
8199
8200 Use write-combining MTRR to speed up video with buggy BIOSes.
8201
8202 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
8203 (cpuid): New define.
8204 (rdmsr): Likewise.
8205 (wrmsr): Likewise.
8206 (mtrr_base): Likewise.
8207 (mtrr_mask): Likewise.
8208 (grub_vbe_enable_mtrr_entry): New function.
8209 (grub_vbe_enable_mtrr): Likewise.
8210 (grub_vbe_disable_mtrr): Likewise.
8211 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
8212 control off to BIOS.
8213 (grub_video_vbe_init): Fill mtrr.
8214 (grub_video_vbe_fini): Disable mtrr.
8215 (grub_video_vbe_get_info_and_fini): Likewise.
8216 (grub_video_vbe_setup): Enable mtrr.
8217
e3c78337
CW
82182012-02-27 Colin Watson <cjwatson@ubuntu.com>
8219
8220 * include/grub/partition.h (grub_partition_map): Change prototype of
8221 embed to take a maximum value for nsectors.
8222 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
8223 * include/grub/fs.h (grub_fs): Likewise.
8224 * grub-core/partmap/msdos.c (embed_signatures): New array.
8225 (pc_partition_map_embed): Check for and avoid sectors matching any
8226 of the signatures in embed_signatures, up to max_nsectors.
8227 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
8228 returned sector map to max_nsectors.
8229 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
8230 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
8231 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
8232 * util/grub-setup.c (setup): Allow for the embedding area being
8233 split into multiple blocklists. Tell dest_partmap->embed the
8234 maximum number of sectors we care about.
8235
82362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8237
8238 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
8239 Specify blocklist_install and reserver_first_sector for all fs.
8240 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
8241 blocklists.
8242
984b973f
VS
82432012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 * util/grub-install.in: Clarify strings.
8246 Fix source dir check.
8247
f122e0d6
RL
82482012-02-27 Richard Laager <rlaager@wiktel.com>
8249
8250 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
8251 "zfs" and "fuse.zfs" as synonyms.
8252
071114bb
VS
82532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8254
8255 * configure.ac: Put platform and target_cpu substitutions back since
8256 they are used for directories.
8257
817e6abc
RL
82582012-02-27 Richard Laager <rlaager@wiktel.com>
82592012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8260
8261 * util/grub.d/10_linux.in: Add ZFS-related arguments.
8262 * util/grub.d/20_linux_xen.in: Likewise.
8263
897b7419
RL
82642012-02-27 Richard Laager <rlaager@wiktel.com>
8265
8266 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
8267 with full paths.
8268
a414bd15
RL
82692012-02-27 Richard Laager <rlaager@wiktel.com>
8270
8271 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
8272 unescape.
8273
30ac48c4
VS
82742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 Don't use insecure popen in getroot.
8277
8278 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
8279 (exec_pipe): ... here.
8280 (find_root_devices_from_poolname): Use exec_pipe.
8281
53f13848
VS
82822012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8283
8284 Remove platform and target_cpu replacement.
8285
8286 * configure.ac: Remove platform and target_cpu substitutions.
8287 * tests/util/grub-shell.in: Use modinfo.
8288 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
8289 explicitly.
8290
90cb2803
VS
82912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8292
8293 Autodetect platform in grub-install but allow override.
8294
8295 * util/grub-install.in: Autodetect platform. Support --target and
8296 --directory. Read platform from modinfo.sh.
8297
b9136427
VS
82982012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8299
8300 Support btrfs multi-volume probe.
8301
8302 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
8303 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
8304 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
8305 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
8306 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
8307 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
8308 grub_find_root_devices_from_btrfs if on btrfs.
8309
c36e5cd1
VS
83102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8311
8312 Remove any awareness of *.c util files about target.
8313
8314 * Makefile.util.def (grub-setup): Split to ...
8315 (grub-bios-setup): ... and this.
8316 (grub-sparc64-setup): ... and this.
8317 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
8318 * docs/man/grub-setup.h2m: Split into ...
8319 * docs/man/grub-sparc64-setup.h2m: ... this.
8320 * docs/man/grub-bios-setup.h2m: ... and this.
8321 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
8322 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
8323 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
8324 (grub_target_addr_t): Remove.
8325 (grub_target_size_t): Remove.
8326 (grub_target_ssize_t): Remove.
8327 * util/grub-install.in: Use new grub-*-setup.
8328 * util/grub-mkimagexx.c (Elf_Word): New define.
8329 (Elf_Half): Likewise.
8330 (Elf_Section): Likewise.
8331 (ELF_ST_TYPE): Likewise.
8332 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
8333 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
8334
584b2f8a
VS
83352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8336
8337 Replace grub_target_addr with more appropriate types.
8338
8339 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
8340 grub_target_addr with grub_addr.
8341 * grub-core/commands/iorw.c (grub_cmd_read): Replace
8342 grub_target_addr with grub_port.
8343 (grub_cmd_write): Likewise.
8344 * grub-core/commands/memrw.c (grub_cmd_read): Replace
8345 grub_target_addr with grub_addr.
8346 (grub_cmd_write): Likewise.
8347 * grub-core/video/efi_uga.c (find_line_len): Likewise.
8348
5a0dc6fb
VS
83492012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8350
8351 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
8352 const qualifier for vendor_guid.
8353
786aff6e
VS
83542012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8355
8356 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
8357 const qualifier.
8358 (efiemu_memequal): Likewise.
8359 (find_variable): Likewise.
8360
49017b17
VS
83612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8362
8363 Fix missing console prototype on qemu-mips.
8364
8365 * include/grub/mips/qemu_mips/console.h: New file.
8366
c5988629
MG
83672012-02-27 Matthew Garrett <mjg@redhat.com>
83682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
8371 * include/grub/efi/efi.h: Likewise.
8372 * include/grub/efi/api.h: Add guid for EFI-specified variables.
8373 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
8374 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
8375 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
8376 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
8377 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
8378
e33f8d69
MG
83792012-02-27 Matthew Garrett <mjg@redhat.com>
8380
8381 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
8382
fb312cd9
VS
83832012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8384
8385 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
8386 error.
8387
7134247c
VS
83882012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8389
8390 * configure.ac: Remove inappropriate use of program_transform_name
8391 on grubdir and bootdir but allow explicit specification of those
8392 variables.
8393
6a313124
VS
83942012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * util/grub-mknetdir.in (grub_prefix): Removed.
8397 (subdir): Use @bootdirname@ and @grubdirname@.
8398
2311c5ca
VS
83992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8400
8401 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
8402
7d5d60f7
VS
84032012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8404
8405 * po/POTFILES.in: Regenerated.
8406
8151bc82
VS
84072012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8408
8409 Remove improper use of program_transform_name on pkglibrootdir.
8410
8411 * configure.ac (pkglibrootdir): Removed.
8412 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
8413 * util/grub-mkimage.c: Likewise.
8414
b4a6a533
VS
84152012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8416
8417 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
8418 warning.
8419
668f304f
VS
84202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8421
8422 * util/grub-install.in: Use file identifier if no UUID is available
8423 or user explicitly prompted for it.
8424
665f2341
NP
84252012-02-27 Navdeep Parhar <nparhar@gmail.com>
8426
8427 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
8428 (freebsd_get_zfs): New function.
8429 (grub_freebsd_boot): Pass zfs UUID.
8430 (grub_cmd_freebsd): Set zfs UUID.
8431
8151bc82 84322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
8433
8434 * conf/Makefile.common (platformdir): Base on pkglibdir and not
8435 pkglibrootdir.
8436
e4c498a1
MG
84372012-02-27 Mike Gilbert <floppym@gentoo.org>
8438
8439 Add configure flag to control libzfs integration.
8440
8441 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
8442
1e9a9a3f
VS
84432012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
8446 device.
8447 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
8448 small devices.
8449
036985b8
VS
84502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8451
8452 Remove grub_{modname}_init and grub_{modname}_fini. They should never
8453 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
8454 be used on non-modules.
8455
8456 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
8457 Rename to grub_boot_init.
8458 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
8459 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
8460 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
8461 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
8462 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
8463 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
8464 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
8465 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
8466 includes.
8467 (grub_machine_init): Remove empty inits.
8468 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
8469 includes.
8470 (grub_machine_init): Remove empty inits.
8471 * grub-core/term/arc/console.c: Remove explicit proto.
8472 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
8473 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
8474 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8475 grub_at_keyboard_fini.
8476 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
8477 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
8478 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8479 grub_gfxterm_fini.
8480 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
8481 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
8482 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8483 grub_vgatext_fini.
8484 * grub-core/term/ieee1275/console.c: Remove explicit proto.
8485 * grub-core/term/serial.c (GRUB_MOD_INIT)
8486 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
8487 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8488 grub_serial_fini.
8489 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
8490 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
8491 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
8492 grub_terminfo_fini.
8493 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
8494 (GRUB_MOD_FINI): Likewise.
8495 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
8496 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
8497 (GRUB_MOD_FINI) [LOONGSON]: Rename to
8498 grub_video_radeon_fuloong2e_fini.
8499 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
8500 [LOONGSON]: Rename to grub_video_sis315pro_init.
8501 (GRUB_MOD_FINI) [LOONGSON]: Rename to
8502 grub_video_sis315pro_fini.
8503 * grub-core/video/sm712.c (GRUB_MOD_INIT)
8504 [LOONGSON]: Rename to grub_video_sm712_init.
8505 (GRUB_MOD_FINI) [LOONGSON]: Rename to
8506 grub_video_sm712_fini.
8507 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
8508 (grub_at_keyboard_fini): Likewise.
8509 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
8510 Don't declare grub_{modname}_init.
8511 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
8512 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
8513 New proto.
8514 (grub_keylayouts_fini) [!EMU]: Likewise.
8515 * include/grub/serial.h (grub_serial_init) [!EMU]:
8516 New proto.
8517 (grub_serial_fini) [!EMU]: Likewise.
8518 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
8519 New proto.
8520 (grub_terminfo_fini) [!EMU]: Likewise.
8521 * include/grub/video.h (grub_font_init) [!EMU]:
8522 New proto.
8523 (grub_font_fini) [!EMU]: Likewise.
8524 (grub_gfxterm_init) [!EMU]: Likewise.
8525 (grub_gfxterm_fini) [!EMU]: Likewise.
8526 (grub_video_sm712_init) [!EMU]: Likewise.
8527 (grub_video_sm712_fini) [!EMU]: Likewise.
8528 (grub_video_sis315pro_init) [!EMU]: Likewise.
8529 (grub_video_sis315pro_fini) [!EMU]: Likewise.
8530 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
8531 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
8532
d5534665
VS
85332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 Make nand a prefix for nand devices.
8536
8537 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
8538
10133b5f
VS
85392012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8540
8541 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
8542 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
8543
8e307a62
VS
85442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8545
8546 * include/grub/env.h (grub_env_find): Remove prototype.
8547 * grub-core/kern/env.c (grub_env_find): Make static.
8548 (grub_env_set): Remove useless set.
8549
a4c65f34
VS
85502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8551
8552 * grub-core/kern/i386/realmode.S: Remove useless align.
8553
d87893d5
VS
85542012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * include/grub/dl.h (grub_dl_load_file): Don't export.
8557
50159add
VS
85582012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
8561 grub_dprintf.
8562
b2582b84
VS
85632012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8564
8565 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
8566 grub_errors.
8567 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
8568 not reloading whole superblock but only the part which is really needed.
8569 Remove useless grub_errors.
8570 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
8571 grub_errors.
8572
e2a83395
VS
85732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8574
8575 Don't export grub_get_rtc.
8576
8577 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
8578 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
8579
e7d2a906
VS
85802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8581
8582 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
8583
6cf1363b
VS
85842012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8585
8586 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 8587 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 8588
eece3349
VS
85892012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8590
8591 Remove prio_list.
8592
8593 * include/grub/list.h (grub_prio_list): Removed.
8594 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
8595 GRUB_COMMAND_PRIO_MASK.
8596 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
8597 GRUB_COMMAND_FLAG_ACTIVE.
8598 (grub_prio_list_insert): Removed.
8599 (grub_prio_list_remove): Likewise.
8600 (GRUB_AS_PRIO_LIST): Likewise.
8601 (GRUB_AS_PRIO_LIST_P): Likewise.
8602 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
8603 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
8604 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
8605 * grub-core/kern/command.c (grub_register_command_prio): Inline
8606 the prio_list code.
8607 (grub_unregister_command): Likewise.
8608
94f064b4
VS
86092012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8610
8611 Fix interrupt mixup from previous commit.
8612
8613 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
8614 (grub_realidt): New var.
8615 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
8616 Load idt.
8617 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
8618 New declaration.
8619 (grub_relocator16_boot): Set grub_relocator16_idt.
8620 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
8621 (LOCAL(realidt)): ... this.
8622 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
8623 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
8624 (grub_realidt): New variable.
8625
27317084
VS
86262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8627
8628 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
8629 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
8630 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
8631 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
8632 Gettextize.
8633 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
8634 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
8635 * po/POTFILES.in: Regenerate.
8636
47b40053
VS
86372012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8638
8639 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
8640 errors.
8641
2b343101
VS
86422012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
8645 \0.
8646 (add_length): Likewise.
8647
ff27c3dd
LK
86482012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
86492012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
8650
8651 GDB serial and backtrace support.
8652
8653 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
8654 (prot_to_real): Likewise.
8655 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
8656 * grub-core/Makefile.core.def (backtrace): New module.
8657 (gdb): Likewise.
8658 * grub-core/gdb/cstub.c: New file.
8659 * grub-core/gdb/gdb.c: Likewise.
8660 * grub-core/gdb/i386/idt.c: Likewise.
8661 * grub-core/gdb/i386/machdep.S: Likewise.
8662 * grub-core/gdb/i386/signal.c: Likewise.
8663 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 8664 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
8665 * include/grub/backtrace.h: Likewise.
8666 * include/grub/gdb.h: Likewise.
8667 * include/grub/i386/gdb.h: Likewise.
8668
86692012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
8670
8671 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
8672 New function.
8673 (add_length): Likewise.
8674 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
8675 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
8676 proto.
8677 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
8678 __argp_get_display_len.
8679
ff27c3dd 86802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
8681
8682 $"..." support in scripts.
8683
8684 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
8685 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
8686 * grub-core/script/yylex.l: Likewise.
8687 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
8688 value.
8689
ff27c3dd 86902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
8691
8692 * gentpl.py: Remove obsolete pkglib_DATA handling.
8693
ff27c3dd 86942012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
8695
8696 Don't transform PACKAGE_TARNAME following a discussion on autoconf
8697 mailing list.
8698
8699 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
8700 * util/grub-kbdcomp.in: Likewise.
8701 * util/grub-mkconfig.in: Likewise.
8702 * util/grub-mkconfig_lib.in: Likewise.
8703 * util/grub-mknetdir.in: Likewise.
8704 * util/grub-mkrescue.in: Likewise.
8705 * util/grub-mkstandalone.in: Likewise.
8706 * util/grub-reboot.in: Likewise.
8707 * util/grub-set-default.in: Likewise.
8708 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8709
ff27c3dd 87102012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
8711
8712 Remove GRUB_PREFIX.
8713
8714 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
8715 * util/grub.d/00_header.in: Compute prefix in the only place it's still
8716 used for backward compatibility.
8717
ff27c3dd 87182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
8719
8720 Add new all_video module.
8721
8722 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
8723 * grub-core/Makefile.core.def (all_video): New module.
8724 * grub-core/genmoddep.awk: Generate dependency of all_video from
8725 video.lst.
8726 * grub-core/lib/fake_module.c: New file.
8727 * grub-core/normal/main.c (features): Add feature_all_video_module.
8728 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
8729 don't do explicit search again.
47454da5 8730 insmod all_video in load_video if available.
22c7ce85 8731
ff27c3dd 87322012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
8733
8734 Another round of string clarification and adding TRANSLATORS comments.
8735
ff27c3dd 87362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
8737
8738 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
8739
ff27c3dd 87402012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
8741
8742 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
8743 to grub_ssize_t.
8744 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
8745 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
8746
ff27c3dd 87472012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
8748
8749 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
8750 trailing newline implicitly. All users updated.
8751
ff27c3dd 87522012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
8753
8754 Implement serial on IEEE1275 and EFI.
8755
8756 * docs/grub.texi (Platform-specific limitations): Fix the columen video
8757 on emu. Mention arc and emu as the only platforms without serial
8758 support.
8759 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
8760 ieee1275 platforms.
8761 * grub-core/term/efi/serial.c: New file.
8762 * grub-core/term/ieee1275/serial.c: Likewise.
8763 * grub-core/term/serial.c (grub_serial_find): Disable direct port
8764 specification if no ns8250 driver is available.
8765 (grub_cmd_serial): Likewise.
8766 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
8767 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
8768 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
8769 (grub_efi_parity_type_t): New type.
8770 (grub_efi_stop_bits_t): Likewise.
8771 (grub_efi_serial_io_interface): New struct.
8772 * include/grub/serial.h (grub_serial_port): Make 'broken' field
8773 available for all interfaces.
8774 Add EFI and IEEE1275 fields.
8775 (grub_ofserial_init): New proto.
8776 (grub_efiserial_init): Likeiwse.
8777 * util/grub.d/00_header.in: Don't check for the presence of serial
8778 module.
8779
ff27c3dd 87802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
8781
8782 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
8783 name as if it was an alias.
8784
114076ef
VS
87852012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 * grub-core/commands/lsacpi.c (options): Fix typo.
8788
6a656b0e
VS
87892012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
8790
8791 Convert grub-emu to argp.
8792
8793 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
8794 emu.
8795 * util/argp_common.c: Rename to ...
8796 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
8797 Add missing includes.
8798 * grub-core/kern/emu/main.c: Convert to argp.
8799 * po/POTFILES.in: Regenerate.
8800 * util/grub-install.in (usage): Make first letter lowcase in messages
8801 for uniformity.
8802 * util/grub-setup.c (options): Likewise.
8803
1e3f8ae8
VS
88042012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
8807 Put back accidently commented-out code.
8808
ed167a80
VS
88092012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
8812 loop check using Brent algorithm.
8813 (grub_hfsplus_btree_search): Likewise.
8814
6753c0ec
VS
88152012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8816
8817 * util/grub-install.in: Fix usage of wrong device for PreP install.
8818
4e27343f
VS
88192012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8820
8821 * conf/Makefile.common (CFLAGS_GNULIB): Add
8822 -Wno-unsafe-loop-optimizations.
8823 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
8824 on tools.
8825 * grub-core/commands/legacycfg.c: Add pragma to skip
8826 -Wunsafe-loop-optimizations.
8827 (check_password_md5_real): Fix loop counter type.
8828 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
8829 reading.
8830 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
8831 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
8832 loop condition.
8833 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
8834 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
8835 * grub-core/net/net.c (grub_net_route_address): Add safety loop
8836 condition.
8837 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
8838 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
8839 avoid possible infinite loops.
8840 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
8841 and -Wunsafe-loop-optimizations.
8842 * grub-core/script/yylex.l: Likewise.
8843 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
8844 (print_glyphs): Avoid infinite loops.
8845 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
8846
697f18b0
GS
88472012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
8848
8849 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
8850 to avoid infinite loop.
8851 (disp_acpi_rsdt_table): Likewise.
8852
274416e8
VS
88532012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * grub-core/font/font.c (grub_font_load): Add support for default
8856 path for fonts ($prefix/fonts).
8857 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
8858 for checking if string is a path.
8859 * grub-core/normal/main.c (features): Add feature_default_font_path.
8860 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
8861 * util/grub.d/00_header.in: Use default directory if possible.
8862 * util/grub-install.in: Install unicode.pf2.
8863
b3e08622
VS
88642012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
8867 * po/Rules-swiss: New file.
8868 * po/swiss.sed: Likewise.
8869
fe42ce09
VS
88702012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
8871
8872 * grub-core/fs/btrfs.c (find_device): Fix typos.
8873 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
8874 * util/grub-mkrelpath.c (argp_parser): Likewise.
8875 Reported by: Yuri Chornoivan.
8876
72f1d065
DO
88772012-02-23 Dalet Omega <daletomega@gmail.com>
8878
8879 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
8880 for usual informative messages.
8881
c5884973
DO
88822012-02-23 Dalet Omega <daletomega@gmail.com>
8883
8884 Starfield theme.
8885
8886 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
8887 * conf/Makefile.common: Define starfielddir.
8888 * configure.ac: Configure starfield.
8889 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
8890 * themes/starfield/README: Likewise.
8891 * themes/starfield/blob_w.png: Likewise.
8892 * themes/starfield/boot_menu_c.png: Likewise.
8893 * themes/starfield/boot_menu_e.png: Likewise.
8894 * themes/starfield/boot_menu_n.png: Likewise.
8895 * themes/starfield/boot_menu_ne.png: Likewise.
8896 * themes/starfield/boot_menu_nw.png: Likewise.
8897 * themes/starfield/boot_menu_s.png: Likewise.
8898 * themes/starfield/boot_menu_se.png: Likewise.
8899 * themes/starfield/boot_menu_sw.png: Likewise.
8900 * themes/starfield/boot_menu_w.png: Likewise.
8901 * themes/starfield/slider_c.png: Likewise.
8902 * themes/starfield/slider_n.png: Likewise.
8903 * themes/starfield/slider_s.png: Likewise.
8904 * themes/starfield/src/blob_nw.xcf: Likewise.
8905 * themes/starfield/src/bootmenu/: Likewise.
8906 * themes/starfield/src/bootmenu/center.xcf: Likewise.
8907 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
8908 * themes/starfield/src/bootmenu/side.xcf: Likewise.
8909 * themes/starfield/src/slider_c.xcf: Likewise.
8910 * themes/starfield/src/slider_n.xcf: Likewise.
8911 * themes/starfield/src/slider_s.xcf: Likewise.
8912 * themes/starfield/src/terminalbox/: Likewise.
8913 * themes/starfield/src/terminalbox/center.xcf: Likewise.
8914 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
8915 * themes/starfield/src/terminalbox/side.xcf: Likewise.
8916 * themes/starfield/starfield.png: Likewise.
8917 * themes/starfield/terminal_box_c.png: Likewise.
8918 * themes/starfield/terminal_box_e.png: Likewise.
8919 * themes/starfield/terminal_box_n.png: Likewise.
8920 * themes/starfield/terminal_box_ne.png: Likewise.
8921 * themes/starfield/terminal_box_nw.png: Likewise.
8922 * themes/starfield/terminal_box_s.png: Likewise.
8923 * themes/starfield/terminal_box_se.png: Likewise.
8924 * themes/starfield/terminal_box_sw.png: Likewise.
8925 * themes/starfield/terminal_box_w.png: Likewise.
8926 * themes/starfield/theme.txt: Likewise.
8927
17d73325
VS
89282012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 * util/grub.d/00_header.in: Add missing export theme.
8931
dbebaf92
VS
89322012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8933
8934 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
8935 already included.
8936 Reported by: Eren D.
8937
3d68bffb
VS
89382012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8939
8940 * conf/Makefile.common (grubdatadir): Removed.
8941 (Makefile.am): Move eveything grubdata to pkgdata.
8942
4b59234d
VS
89432012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * grub-core/commands/acpihalt.c (get_sleep_type):
8946 Remove unused variable.
8947
463dcadc
VS
89482012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8949
8950 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
8951 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
8952 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
8953 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
8954 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
8955 i18n with gettext no-op.
8956 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
8957 GRUB_ACPI_OPCODE_STRING_CONST.
8958 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
8959 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
8960
e5b90c82
VS
89612012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 * po/POTFILES.in: Regenerate.
8964
2a704ca9
VS
89652012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
8968 -Wno-error=missing-noreturn.
8969
84f9d341
VS
89702012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8971
8972 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
8973 condition to avoid possibly infinite loops.
8974 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
8975 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
8976
d46683f9
VS
89772012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
8980 condition to avoid possibly infinite loops.
8981
c44866b2
VS
89822012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8983
8984 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
8985 on show_error.
8986
96790539
VS
89872012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8988
8989 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
8990
1ba7e295
VS
89912012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8992
8993 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
8994
21ffe8f1
VS
89952012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8996
8997 * util/bin2h.c (usage): Add missing attribute noreturn.
8998
0ccb6b3c
VS
89992012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
9002 if the size isn't divisible by 512.
9003
b00d7fb6
VS
90042012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 Make list_push and list_remove functions rather than inline functions
9007 to decrease size and avoid aliasing violations.
9008
9009 * include/grub/list.h (grub_list_push): Move to ...
9010 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
9011 * include/grub/list.h (grub_list_remove): Move to ...
9012 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
9013
9d369087
VS
90142012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9015
9016 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
9017 and -Wunused-result.
9018
af0250d9
VS
90192012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9020
9021 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
9022 Reported by: Seth Goldberg
9023
aad32b14
VS
90242012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9025
9026 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
9027
ac96441c
ST
90282012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9029
9030 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
9031 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
9032 command line.
9033 * docs/grub.texi (Simple configuration): Document
9034 GRUB_CMDLINE_GNUMACH.
9035
90362012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
9037
9038 * conf/Makefile.common (platform_SCRIPTS): New variable.
9039 (platform_PROGRAMS): Likewise.
9040 * gentpl.py: Mark *,module and *.image for install.
9041 * grub-core/gdb_grub.in: Add a notice of expected environment.
9042 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
9043 (gmodule.pl): Likewise.
9044
ac96441c 90452012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
9046
9047 Replace grub_checkkey with grub_getkey_noblock.
9048
9049 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
9050 (grub_getkey_noblock): ... this. All users updated.
9051
ac96441c 90522012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
9053
9054 * grub-core/kern/emu/console.c: Move to ...
9055 * grub-core/term/emu/console.c: ...here.
9056 (grub_ncurses_getkey): Fix return value if no key is detected.
9057
e51b5666
VS
90582012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
9061 (grub_unit_test_fini): Likewise.
9062 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
9063
90642012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 * include/grub/test.h (GRUB_UNIT_TEST)
9067
d9a62292
VS
90682012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * grub-core/script/execute.c (grub_script_break): Clarify logic.
9071 Better error handling.
9072 (grub_script_return): Likewise.
9073 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
9074
77c9182f
VS
90752012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9076
9077 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
9078 rimplicit redifinition.
9079
edb13cf9
VS
90802012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
9083 GRUB.
9084
a9e9dc7c
VS
90852012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
9088 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
9089 prompt here.
9090
b4ba8e02
VS
90912012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9092
9093 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
9094 as GRUB_ERR_BUG. Don't malloc if no device is available.
9095
dded5540
VS
90962012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9097
9098 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
9099 Mark calling with invalid term as GRUB_ERR_BUG.
9100
0cf69874
VS
91012012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9102
9103 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
9104 packets rather than raising an error.
9105
59bfe502
VS
91062012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9107
9108 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
9109 in if.
9110
db5fc596
VS
91112012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
9114 diagnostic to dprintf.
9115 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9116
e4b7f404
VS
91172012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9118
9119 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
9120 device name.
9121
e7b02f9e
VS
91222012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9123
9124 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
9125 (grub_ntfs_iterate_dir): Likewise.
9126
0331e102
VS
91272012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 Efiemu stylistic fixes and gettext.
9130
9131 * grub-core/efiemu/i386/loadcore32.c
9132 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
9133 * grub-core/efiemu/i386/loadcore64.c
9134 (grub_arch_efiemu_relocate_symbols64): Likewise.
9135 * grub-core/efiemu/i386/pc/cfgtables.c
9136 (grub_machine_efiemu_init_tables): Likewise.
9137 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
9138 (grub_efiemu_loadcore_initXX): Add a filename argument.
9139 All users updated.
9140 Improved error message.
9141 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
9142 Add a filename argument.
9143 All users updated.
9144 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
9145 Reclassify double relocation as GRUB_ERR_BUG.
9146
306fc074
VS
91472012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
9150 handling.
9151
794d8ef2
VS
91522012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9153
9154 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
9155 on partition.
9156
91572012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
9158
9159 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
9160
794d8ef2 91612012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
9162
9163 Improve string. Gettextize.
9164
78dde88e
VS
91652012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9166
9167 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
9168 utils.
9169 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
9170
4786a90f
VS
91712012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9172
9173 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
9174 [GRUB_UTIL]: New function.
9175 (insert_array) [GRUB_UTIL]: Store partmaps.
9176 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
9177 partmaps.
9178 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
9179 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
9180 (probe_abstraction): Print diskfilter and not raid.
9181 Reported by: Lennart Sorensen
9182
0b6225bd
VS
91832012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9184
9185 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
9186 * util/grub-mkimagexx.c (MASK3): New define.
9187 (add_value_to_slot_20b): Use MASK3.
9188 (add_value_to_slot_21): Likewise.
9189 (relocate_addresses): Fix format specification.
9190 (load_image): Explicitly init symtab_section.
9191
b055f8f6
VS
91922012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9193
9194 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
9195 (grub_util_biosdisk_get_grub_dev): Fix format specification.
9196
b77c2fb7
VS
91972012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9198
9199 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
9200 on powerpc.
9201 Reported by: Lennart Sorensen
9202
e3ec28ab
VS
92032012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9204
9205 * gentpl.py: Add missing license header.
9206 * docs/grub.texi: Update copyright year.
9207
c8d9ead6
GS
92082012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
9209
9210 Source grub-mkconfig_lib from the build directory at build time.
9211 Suggested by: Vladimir Serbinenko.
9212
9213 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
9214 * util/grub-install.in: Define pkgdatadir if not already set, and source
9215 grub-mkconfig_lib from there.
9216 * util/grub-kbdcomp.in: Likewise.
9217 * util/grub-mkconfig.in: Likewise.
9218 * util/grub-mknetdir.in: Likewise.
9219 * util/grub-mkrescue.in: Likewise.
9220 * util/grub-mkstandalone.in: Likewise.
9221 * util/grub-reboot.in: Likewise.
9222 * util/grub-set-default.in: Likewise.
9223 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9224
ebcecdf1
VS
92252012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9226
9227 Increase warning level.
9228
9229 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
9230 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
9231 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
9232 (TARGET_CFLAGS): Likewise.
9233 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
9234 * grub-core/Makefile.core.def (decompressor_xz): Add
9235 -Wno-unreachable-code.
9236 (normal): Add -Wno-redundant-decls.
9237 (xzio): Add -Wno-unreachable-code.
9238 (lzopio): Add -Wno-redundant-decls -Wno-error.
9239 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
9240 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
9241 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
9242 * grub-core/kern/dl.c: Add exception to -Wcast-align.
9243 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
9244 * grub-core/kern/i386/coreboot/init.c: Add exception to
9245 -Wsuggest-attribute=noreturn.
9246 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
9247 * grub-core/kern/ia64/dl_helper.c: Likewise.
9248 * grub-core/kern/mips/dl.c: Likewise.
9249 * grub-core/kern/sparc64/dl.c: Likewise.
9250 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
9251 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
9252 (memcmp): Likewise.
9253 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
9254 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
9255 * grub-core/loader/mips/linux.c: Likewise.
9256 * grub-core/loader/multiboot_elfxx.c: Likewise.
9257 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
9258 * grub-core/video/sm712.c: Add exception to -Wcast-align.
9259 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
9260 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
9261 fixme.
9262 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9263 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
9264 Fix prototype.
9265
37bb97fe
VS
92662012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9267
9268 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
9269 address.
9270
29a3550b
VS
92712012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9272
9273 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
9274 Avoid improper use of strings.
9275 (grub_cmd_legacy_initrdnounzip): Likewise.
9276
dfdffd0d
VS
92772012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9278
9279 * include/grub/emu/misc.h (grub_util_warn): Add missing format
9280 attribute.
9281 (grub_util_info): Likewise.
9282 (grub_util_error): Likewise.
9283
102fae4a
VS
92842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9285
9286 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
9287 * util/grub-fstest.c (fstest): Likewise.
9288
7e94d044
VS
92892012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9290
9291 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
9292 (grub_md_sha512_real): Likewise.
9293 (grub_util_get_geli_uuid): Likewise.
9294 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
9295 (grub_util_biosdisk_open): Fix format specification.
9296 Respect format security.
9297 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
9298 (xrealloc): Likewise.
9299 (xasprintf): Likewise.
9300
5ebd9769
VS
93012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9302
9303 * util/import_gcry.py: Include grub/crypto.h in init.c.
9304
495fc8c1
VS
93052012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9306
9307 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
9308 (generate_image): Make prefix a const char *.
9309 Fix format specifications. Respect format security.
9310 Avoid void * arithmetics.
9311 Avoid shadowing.
9312 (argp_parser): Remove unused variable. Respect format security.
9313 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
9314 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
9315 (count_funcs): Remove unused variable.
9316 (relocate_addresses): Fix format specification.
9317 Disable x86-64 with elf32. Remove unused variables.
9318 (add_fixup_entry): Avoid shadowing.
9319 (make_reloc_section): Fix format specification.
9320 Use assert.
9321 (locate_sections): Fix format specifications.
9322 (load_image): Avoid shadowing.
9323
043c2ea3
VS
93242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9325
9326 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
9327 Fix format specifications. Respect format security.
9328 Don't translate already translated grub_errmsg.
9329 (argp_parser): Remove unused variable
9330
3ec65a81
VS
93312012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9332
9333 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
9334
a4d9fe4a
VS
93352012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9336
9337 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
9338 (main): Likewise. Use xmalloc. Respect format security.
9339
15b81d49
VS
93402012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9341
9342 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
9343 a const char *.
9344 (argp_parser): Remove unused variable.
9345
31731fc0
VS
93462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9347
9348 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
9349 (add_pixel): Make static.
9350 (add_font): Likewise.
9351 (write_string_section): Make name and str a const char *.
9352 (write_be16_section): Make name a const char *.
9353 (print_glyphs): Make static.
9354 (write_font_ascii_bitmap): Likewise.
9355 (write_font_width_spec): Likewise.
9356 (write_font_pf2): Likewise.
9357 (argp_parser): Remove unused variable.
9358 Respect format security.
9359 (main): Avoid shadowing. Respect format security.
9360
0809527b
VS
93612012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9362
9363 * util/grub-editenv.c (argp_parser): Make static.
9364 (create_envblk_file): Use xmalloc.
9365 (open_envblk_file): Likewise.
9366 Resepect format security.
9367 (set_variables): Respect format security.
9368
45b0c8b7
VS
93692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 * util/getroot.c (grub_find_device): Respect format security.
9372 (get_mdadm_uuid): Remove unused variable.
9373 (grub_util_pull_device): Dont call gettext on already translated
9374 grub_errmsg.
9375 (find_system_device): Remove unused variable.
9376 (grub_util_get_grub_dev): Likewise.
9377 (grub_make_system_path_relative_to_its_root): Respect format security.
9378
1b024b4e
VS
93792012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9380
9381 * util/grub-fstest.c (execute_command): Make first argument
9382 a const char *.
9383 (read_file): Avoid shadowing.
9384 Reuse underlying error message if device open fails.
9385 (cmd_cmp): Respect format security.
9386 (root): Make const char *.
9387 (fstest): Remove args argument and use global copy.
9388 Respect format security.
9389 (argp_parser): Make static.
9390 (main): Make default_root const char *.
9391
5d1d4e28
VS
93922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 * util/grub-mount.c (root): Make const char *.
9395 (execute_command): Make first argument a const char *.
9396 (fuse_init): Respect format security.
9397 (argp_parser): Make static. Remove unused variable.
9398 (main): Make default_root a const char *.
9399 Respect format security.
9400
36eb7379
VS
94012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9402
9403 * util/grub-probe.c (probe): Don't call gettext on already translated
9404 grub_errmsg.
9405 Remove unused variables.
9406 (argp_parser): Remove unused variable.
9407
76fb2ea9
VS
94082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9409
9410 * util/grub-script-check.c (argp_parser): Remove unused variable.
9411 (main): Rename read to curread to avoid shadowing.
9412
56c98584
VS
94132012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 * util/misc.c (grub_util_write_image_at): Fix format specification.
9416 (grub_util_write_image): Likewise.
9417 (grub_script_execute_argument_to_string): Removed (unused).
9418 (grub_script_execute_menuentry): Likewise.
9419 (grub_putchar): Likewise.
9420
164ebb48
VS
94212012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9422
9423 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
9424 (FUNCTION) [GRUB_UTIL]: Likewise.
9425 (VARIABLE) [GRUB_UTIL]: Likewise.
9426
44318d61
VS
94272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9428
9429 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
9430 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
9431
31a26002
VS
94322012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9433
9434 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
9435 buffer.
9436
94372012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9438
9439 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
9440 (LzmaEnc_SaveState): Removed (unused).
9441 (LzmaEnc_RestoreState): Likewise.
9442 (LzmaEnc_InitPriceTables): Made static.
9443 (LzmaEnc_Construct): Likewise.
9444 (LzmaEnc_FreeLits): Likewise.
9445 (LzmaEnc_Destruct): Likewise.
9446 (LzmaEnc_Init): Likewise.
9447 (LzmaEnc_InitPrices): Likewise.
9448 (LzmaEnc_Finish): Likewise.
9449 (LzmaEnc_PrepareForLzma2): Removed (unused).
9450 (LzmaEnc_MemPrepare): Likewise.
9451 (LzmaEnc_GetNumAvailableBytes): Likewise.
9452 (LzmaEnc_GetCurBuf): Likewise.
9453 (LzmaEnc_CodeOneMemBlock): Likewise.
9454
6fa67967
VS
94552012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9456
9457 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
9458 (grub_util_ldm_embed): Likewise.
9459
9a7428e6
VS
94602012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * util/grub-editenv.c (print_var): Rename name to varname to
9463 avoid shadowing.
9464 (main): Rename index to curindex to avoid shadowing.
31a26002 9465 Make filename a const char *.
9a7428e6 9466
4f96abd1
VS
94672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9468
9469 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
9470 to arg_getline to avoid shadowing.
9471
44d10dad
VS
94722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9473
9474 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
9475 disk_ to avoid shadowing.
9476
340ba63e
VS
94772012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9478
9479 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
9480 curindex to avoid shadowing.
9481 Make static.
9482 (MatchFinder_GetNumAvailableBytes): Make static.
9483
22965bce
VS
94842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
9487 avoid shadowing.
9488
7b5784d4
VS
94892012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9490
9491 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
9492 argument from encrypt to do_encrypt to avoid shadowing.
9493
6f48ca01
VS
94942012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9495
9496 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
9497 incorrect nesting of #if's.
9498
a4ea2dff
VS
94992012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
9502 checks which are always false on some platforms.
9503 (grub_cmd_lsacpi): Likewise.
9504 * grub-core/kern/misc.c (grub_strtoul): Likewise.
9505 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
9506 Likewise.
9507
def9fc1b
VS
95082012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
9511 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
9512
a67b2a04
VS
95132012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9514
9515 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
9516 re_dfa_t to avoid breaking alignment invariants.
9517 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
9518 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
9519
44c6828d
VS
95202012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9521
9522 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
9523 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
9524
bebe0dd0
VS
95252012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9526
9527 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
9528 Fix declaration.
9529
a9cdb3cf
VS
95302012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9531
9532 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
9533 conserve alignment invariants.
9534 (grub_ehci_ehcc_read16): Likewise.
9535 (grub_ehci_oper_read32): Likewise.
9536 (grub_ehci_oper_write32): Likewise.
9537 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
9538 Conserve alignment invariants.
9539
ccc3b1b8
VS
95402012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9541
9542 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
9543 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
9544 declarations.
9545
987fbd95
VS
95462012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9547
9548 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
9549 Remove unused variable.
9550
0df363f3
VS
95512012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9552
9553 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
9554 Remove set in if.
9555
b2c0c4a6
VS
95562012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9557
9558 * include/grub/net.h: Remove double declarations.
9559
690c531f
VS
95602012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 Remove "payload" command in ia64 Linux loader since I couldn't
9563 find any evidence of it being used for anything.
9564 Replace "relocate" command with an environment variable
9565
9566 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
9567 fields.
9568 (ia64_boot_payload): Removed.
9569 (last_payload): Likewise.
9570 (RELOCATE_OFF): Likewise.
9571 (RELOCATE_ON): Likewise.
9572 (RELOCATE_FORCE): Likewise.
9573 (relocate): Likewise.
9574 (free_pages): Don't free payloads.
9575 (grub_load_elf64): Use common error messages.
9576 Use "linux_relocate" variable.
9577 Increase the space after boot_params.
9578 (grub_cmd_payload): Removed.
9579 (grub_cmd_relocate): Likewise.
9580 (grub_cmd_fpswa): Improve messages.
9581 (cmd_payload): Removed.
9582 (cmd_relocate): Likewise.
9583 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
9584 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
9585
01783768
VS
95862012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9587
9588 Convert UHCI to DMA framework.
9589
9590 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
9591 (grub_uhci_pci_iter): Fill new members
9592 (grub_alloc_td): Use P2V and V2P functions.
9593 (grub_free_queue): Likewise.
9594 (grub_alloc_qh): Likewise.
9595 (grub_uhci_setup_transfer): Likewise.
9596 (grub_uhci_check_transfer): Likewise.
9597
43206939
VS
95982012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9599
9600 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
9601 Remove assignment in if while on it.
9602
571e140e
VS
96032012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9604
9605 * util/grub-mkstandalone.in: Fix modules directory.
9606
a9d96eeb
VS
96072012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
9610 on i386-pc target.
9611 (argp_parser): Accept "auto" as compression specification.
9612
e4e37e8d
VS
96132012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 Fix `help' with unloaded modules.
9616
9617 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
9618 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
9619 (grub_dyncmd_dispatcher): Small stylistic fix.
9620 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
9621 explicit help is requested.
9622
e1ea3ade
VS
96232012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9624
9625 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
9626 Explicitly init restart while on it.
9627
27556881
VS
96282012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9629
9630 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
9631 uninited variable.
9632
d65f6b36
VS
96332012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9634
9635 * util/grub-mknetdir.in: Use . rather than source for POSIX
9636 compatibility.
9637
0a1e473c
VS
96382012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9639
9640 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
9641
ce6647c8
VS
96422012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9643
9644 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
9645 variable.
9646
66747894
VS
96472012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9648
9649 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
9650 without quotes.
9651
71645f6e
VS
96522012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9653
9654 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
9655
0e1c1f61
VS
96562012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9657
9658 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
9659 iteration of partitions.
9660
9c4b5c13
VS
96612012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 Improve gettext support. Stylistic fixes and error handling fixes while
9664 on it.
9665
215c90cb
VS
96662012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9667
9668 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
9669 part. Instead setup the correct stack in RM.
9670 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
9671 for stack.
9672 * include/grub/i386/relocator_private.h: New file.
9673
b5c1f9bf
VS
96742012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9675
9676 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
9677 argument.
9678 * util/grub-fstest.c (options): Add missing DEVICE part.
9679
b525fd83
VS
96802012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 Clarify and unify messages.
9683
9684 * grub-core/commands/hashsum.c (options): Unify messages.
9685 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
9686 literal-only message as translatable.
9687 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
9688 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
9689 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
9690 commands.
9691 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
9692 key, not the key used to unlock. Clarify what it's used for.
9693 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
9694 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
9695 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
9696 * util/grub-editenv.c (options): Unify "verbose" message.
9697 * util/grub-fstest.c (read_file): Unify error message.
9698 (fstest): Add quotes around commands.
9699 (options): Unify "verbose" message.
9700 * util/grub-install.in: Add quotes around variable name.
9701 * util/grub-kbdcomp.in: Unify error message.
9702 * util/grub-mkfont.c (main): Likewise.
9703 * util/grub-mkrescue.in: Likewise.
9704 * util/grub-mklayout.c (options): Unify "verbose" message.
9705 * util/grub-mkstandalone.in: Unify help and verbose messages.
9706 * util/grub-mount.c (options): Unify "verbose" message.
9707 * util/grub-probe.c (options): Likewise.
9708 * util/grub-script-check.c (options): Likewise.
9709 * util/grub-setup.c (setup): Unify no-terminator message.
9710 (options): Use DEVICE and not DEV.
9711 Unify "verbose" message.
9712 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
9713
0ae70393
VS
97142012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9715
9716 Improve and unify messages.
9717
9718 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
9719 name. All users updated.
9720 Print filename in error.
9721 (read_device_map): Print filename in error.
9722 * util/getroot.c (grub_guess_root_devices): Print filename in error.
9723 (grub_util_get_os_disk): Likewise.
9724 (grub_util_biosdisk_get_grub_dev): Likewise.
9725 (grub_util_check_block_device): Likewise.
9726 (grub_util_check_char_device): Likewise.
9727 (grub_make_system_path_relative_to_its_root): Likewise.
9728 * util/grub-editenv.c (create_envblk_file): Likewise.
9729 (open_envblk_file): Likewise.
9730 (write_envblk): Likewise.
9731 * util/grub-fstest.c (cmd_cp): Likewise.
9732 (cmd_cat): Likewise.
9733 (cmd_cmp): Likewise.
9734 * util/grub-menulst2cfg.c (main): Likewise.
9735 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
9736 (write_font_width_spec): Likewise.
9737 (write_font_pf2): Likewise.
9738 * util/grub-mkimage.c (generate_image): New argument outname.
9739 All users updated.
9740 Remove unreacheable message.
9741 (options): Unify messages.
9742 (help_filter): Likewise.
9743 * util/grub-mklayout.c (usage): Removed (unused).
9744 (main): Print filename in error.
9745 * util/grub-mkrescue.in: Fix wrong quoting.
9746 * util/grub-setup.c (setup): Print filename in error.
9747 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
9748 (check_sas): Likewise.
9749 * util/misc.c (grub_util_get_fp_size): Removed.
9750 (grub_util_get_image_size): Print filename in error.
9751 (grub_util_read_at): Removed.
9752 (grub_util_read_image): Print filename in error.
9753 (grub_util_load_image): Likewise.
9754 (grub_util_write_image_at): New argument filename. All users updated.
9755 Print filename in error.
9756 (grub_util_write_image): New argument filename. All users updated.
9757 Print filename in error.
9758 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
9759 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
9760
0a96117d
VS
97612012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9762
9763 * grub-core/Makefile.core.def (pxechain): New module.
9764 * grub-core/loader/i386/pc/pxechainloader.c: New file.
9765 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
9766 function.
9767 (grub_pc_net_config_real): Use grub_pxe_get_cached.
9768 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
9769
aca002f7
VS
97702012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9771
9772 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
9773 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
9774 * include/grub/err.h (grub_error_saved): New struct.
9775 (grub_errmsg): Make array size explicit.
9776 * include/grub/misc.h (grub_error_save): New function.
9777 (grub_error_load): Likewise.
9778 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
9779 (grub_error_push): Update `errno' member name.
9780 (grub_error_pop): Likewise
9781 * grub-core/net/tftp.c (tftp_data): New member save_err.
9782 (tftp_receive): Save error.
9783 (tftp_open): Restore error.
9784
a51dab13
VS
97852012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9786
9787 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
9788 to real mode down to execute A20-related code in protected mode as
9789 intended.
9790
eb6e6649
GS
97912012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
9792
9793 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
9794 NULL when the argument `level' has an unexpected value.
9795
92cd0f6e
VS
97962012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9797
9798 Move platform-dependent files from $prefix to $prefix/$platform.
9799
9800 * config.h.in (GRUB_TARGET_CPU): New definition.
9801 (GRUB_PLATFORM): Likewise.
9802 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
9803 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
9804 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9805 * grub-core/kern/dl.c (grub_dl_load): Likewise.
9806 * grub-core/normal/autofs.c (read_fs_list): Likewise.
9807 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
9808 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
9809 * grub-core/normal/term.c (read_terminal_list): Likewise.
9810 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
9811 $prefix/locale.
9812 (grub_gettext_init_ext): Likewise.
9813 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
9814 grub_platform.
9815 * util/grub-install.in: Update directories.
9816 * util/grub-mknetdir.in: Likewise.
9817 * util/grub-mkrescue.in: Likewise.
9818
db606889
VS
98192012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9820
9821 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
9822 grub_error framework. All users updated.
9823
c39992a4
VS
98242012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9825
9826 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
9827 lists (by always binsearching), improve caching (cache strings
9828 used for binsearch, not only results), improve
9829 maintainability (by using more structured binary search) and correct
9830 error handling.
9831
1e5ec32f
VS
98322012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 * grub-core/script/execute.c (grub_script_return): Fix warning.
9835
ac576cde
VS
98362012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9837
9838 * grub-core/script/execute.c (grub_script_return): Fix potential
9839 NULL-dereference.
9840 Reported by: Jim Meyering.
9841
498453f6
VS
98422012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 * po/POTFILES.in: Regenerate.
9845 * util/grub-install.in: Gettextize the strings missed in first pass.
9846
8be63f2e
VS
98472012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9848
9849 * Makefile.util.def (grub-mkdevicemap): Removed.
9850 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
9851 * include/grub/util/deviceiter.h: Removed.
9852 * util/deviceiter.c: Likewise.
9853 * util/getroot.c (grub_util_get_os_disk): New function.
9854 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
9855 replacement for EFI.
9856 * util/grub-mkdevicemap.c: Removed.
9857 * util/grub-probe.c (probe): Handle PRINT_DISK.
9858 (argp_parser): Handle -t disk.
9859
8e1e4e39
VS
98602012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9861
9862 * util/grub-mkfont.c: Migrate to argp.
9863 * util/grub-mklayout.c: Likewise.
9864 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9865 * util/grub-mkrelpath.c: Likewise.
9866 * util/grub-probe.c: Likewise.
9867 * util/grub-script-check.c: Likewise.
9868
4459819a
VS
98692012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * util/grub-reboot.in: Add missing datarootdir.
9872 Add missing newline.
9873 * util/grub-set-default.in: Add missing datarootdir.
9874 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
9875 * util/grub-mkrescue.in: Likewise.
9876
f65741c7
VS
98772012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9878
9879 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
9880
c1a33466
VS
98812012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9882
9883 * util/grub-kbdcomp.in: Add decent help and gettextize.
9884 * docs/man/grub-kbdcomp.h2m: New file.
9885
c76899a0
VS
98862012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9887
9888 Migrate grub-mkimage.c to argp.
9889
9890 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
9891 (grub-setup): Likewise.
9892 * util/grub-setup.c (print_version): Move to ...
9893 * util/argp_common.c (print_version): ... here.
9894 * util/grub-setup.c (argp_program_version_hook): Move to ...
9895 * util/argp_common.c (argp_program_version_hook): ... here.
9896 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
9897 safety.
9898 * util/grub-mkimage.c (main): Migrate to argp.
9899
57db0757
VS
99002012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 * util/grub-mkrescue.in: Use same message as
9903 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
9904 for better translations.
9905
18534ad9
VS
99062012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9907
9908 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
9909 options with generic grub-mkrescue.in with the goal of future
9910 merge.
9911
c84ba308
VS
99122012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 * grub-core/kern/mm.c: Add missing include of i18n.h
9915 * grub-core/lib/relocator.c: Likewise.
9916
347998c2
VS
99172012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9918
9919 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
9920 error.
9921 (allocate_pages): Check return value.
9922 Replace fatal with error.
9923 (grub_linux_boot): Replace printf with dprintf.
9924 Check find_mmap_size return value.
9925 Replace fatal with error.
9926 Don't call grub_machine_fini.
9927 (grub_load_elf64): Replace printf with dprintf.
9928 (grub_cmd_linux): Likewise.
9929 (grub_cmd_initrd): Likewise.
9930 (grub_cmd_payload): Likewise.
9931
c779226e
VS
99322012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9933
9934 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
9935 message.
9936 * grub-core/video/radeon_fuloong2e.c
9937 (grub_video_radeon_fuloong2e_setup): Likewise.
9938 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
9939 * grub-core/video/video.c (grub_video_set_mode): Don't override
9940 standard out of memory message.
9941
dc87d45a
GS
99422012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
9943
9944 NetBSD disk wedge support.
9945
9946 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
9947 [__NetBSD__]: Handle NetBSD disk wedges.
9948 * util/getroot.c (convert_system_partition_to_system_disk)
9949 [__NetBSD__]: Likewise.
9950
055f856f
MW
99512012-02-03 Mark Wooding <mdw@distorted.org.uk>
9952
9953 * util/grub-mkconfig.in: Use umask rather than chmod to create
9954 grub.cfg.new to avoid insecure grub.cfg.
9955
4a9f8346
VS
99562012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 * grub-core/commands/ls.c: Gettextize.
9959 * grub-core/commands/setpci.c: Likewise.
9960 * grub-core/commands/videotest.c: Likewise.
9961 * grub-core/disk/geli.c: Likewise.
9962 * grub-core/kern/mm.c: Likewise.
9963 * grub-core/lib/relocator.c: Likewise.
9964 * grub-core/loader/efi/appleloader.c: Likewise.
9965 * grub-core/loader/i386/xnu.c: Likewise.
9966 * grub-core/loader/ia64/efi/linux.c: Likewise.
9967 * grub-core/loader/xnu.c: Likewise.
9968 * grub-core/net/dns.c: Likewise.
9969 * grub-core/net/net.c: Likewise.
9970 * grub-core/script/lexer.c: Likewise.
9971 * grub-core/script/parser.y: Likewise.
9972 * grub-core/script/yylex.l: Likewise.
9973 * util/getroot.c: Likewise.
9974 * util/grub-setup.c: Likewise.
9975
a646a366
VS
99762012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9977
9978 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
9979 number.
9980
54e2be26
VS
99812012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9982
9983 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
9984
f7c71e68
VS
99852012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9986
9987 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
9988 macro.
9989 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
9990 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
9991
a32d5c71
VS
99922012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9993
9994 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
9995 * util/grub-install.in: Gettextize.
9996 * util/grub-mkconfig.in: Likewise.
9997 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
9998 if not available.
9999 (grub_warn): Gettextize.
10000 * util/grub-mknetdir.in: Gettextize.
10001 * util/grub-mkrescue.in: Likewise.
10002 * util/grub-mkstandalone.in: Likewise.
10003 * util/grub-reboot.in: Likewise.
10004 * util/grub-set-default.in: Likewise.
10005 * util/grub.d/00_header.in: Likewise.
10006 * util/grub.d/10_hurd.in: Likewise.
10007 * util/grub.d/10_kfreebsd.in: Likewise.
10008 * util/grub.d/10_linux.in: Likewise.
10009 * util/grub.d/10_netbsd.in: Likewise.
10010 * util/grub.d/10_windows.in: Likewise.
10011 * util/grub.d/20_linux_xen.in: Likewise.
10012 * util/grub.d/30_os-prober.in: Likewise.
10013 * po/POTFILES-shell.in: Regenerate.
10014
69edd81a
RL
100152012-02-03 Richard Laager <rlaager@wiktel.com>
10016
10017 * util/grub-mkimage.c (main): Fix format-security warning.
10018 * util/grub-mkrelpath.c (main): Likewise.
10019 * util/grub-probe.c (main): Likewise.
10020
65f08dbf
RL
100212012-02-03 Richard Laager <rlaager@wiktel.com>
10022
10023 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
10024 failure.
10025 Put back lost PRINT_DRIVE.
10026
e9084abe
RL
100272012-02-03 Richard Laager <rlaager@wiktel.com>
10028
10029 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
10030 (grub_guess_root_devices): Replace strlen with sizeof.
10031 Avoid crash.
10032 (find_root_devices_from_poolname): Remove unused variable.
10033 Handle raidzN.
10034
cf5f7ee7
VS
100352012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 Support install on multi-device filesystems.
10038
10039 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
10040 (grub_guess_root_devices): ...this. Return char **. All users updated.
10041 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
10042 Removed.
10043 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
10044 (find_root_devices_from_poolname): ... here.
10045 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
10046 Support zfs-fuse.
10047 (grub_guess_root_device): Rename to ...
10048 (grub_guess_root_devices): ... this. Return char **. All users updated.
10049 * util/grub-install.in: Handle multi-device filesystems.
10050 * util/grub-probe.c (probe). Make device_names a char **. Add delim
10051 argument. All users updated.
10052 Handle multi-device filesystems.
10053 Use 'delim' as separator.
10054 Remove device check to allow filesystems on file.
10055 (main): Support -0 argument. Handle multi-device.
10056 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
10057 Fix a cross-device check while on it.
10058 (arguments): Remove root_dev.
10059 (argp_parser): Remove -r.
10060 (main): Remove root_dev.
10061
2f53a9ed
VS
100622012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10063
10064 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
10065
17e1d934
VS
100662012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10067
10068 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
10069 symbol.
10070 Reported by: NODA, Kai <nodakai>.
10071
d3e3fab5
VS
100722012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10073
10074 Fix ehci on amd64.
10075
10076 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
10077 pointers.
10078 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
10079 (grub_ehci_setup_qh): Likewise.
10080 (grub_ehci_find_qh): Likewise.
10081 (grub_ehci_transaction): Likewise.
10082 (grub_ehci_setup_transfer): Likewise.
10083 (grub_ehci_check_transfer): Likewise.
10084 (grub_ehci_portstatus): Likewise.
10085 (grub_ehci_detect_dev): Likewise.
10086 (grub_ehci_transfer_controller_data): New field td_last_phys.
10087 (grub_ehci_setup_transfer): Fill td_last_phys.
10088 (grub_ehci_check_transfer): Use td_last_phys.
10089
3008675b
SG
100902012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
10091
10092 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
10093 if no submenu is present.
10094
fc9b5652
AN
100952012-02-01 Aleš Nesrsta <starous@volny.cz>
10096
10097 CBI support.
10098
10099 * include/grub/usb.h (grub_usbms_protocol_t): New values
10100 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
10101 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
10102 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
10103 (grub_usbms_dev): Add subclass, protocol and intrpt.
10104 Remove in_maxsz and out_maxsz.
10105 (grub_usbms_reset): Rename to ...
10106 (grub_usbms_bo_reset): .. this.
10107 (grub_usbms_cbi_cmd): New function.
10108 (grub_usbms_cbi_reset): Likewise.
10109 (grub_usbms_reset): Likewise.
10110 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
10111 (grub_usbms_transfer): Rename to ...
10112 (grub_usbms_transfer_bo): ... this.
10113 (grub_usbms_transfer_cbi): Likewise.
10114 (grub_usbms_transfer): Likewise.
10115
a2b81d53
AN
101162012-02-01 Aleš Nesrsta <starous@volny.cz>
101172012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
10120 the support for the CS5536 modification thereos and few bugfixes.
10121
10122 * grub-core/Makefile.core.def (ehci): New module.
10123 * grub-core/bus/usb/ehci.c: New file.
10124 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
10125 port and hubaddr. All users updated.
10126 Save port and hubaddr into dev structure.
10127 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
10128 define.
10129 * include/grub/pci.h (grub_dma_phys2virt): New function.
10130 (grub_dma_virt2phys): Likewise.
10131 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
10132
b1d51f02
VS
101332012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10134
10135 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
10136 check as some mkfs implementations omit it.
10137
fc694106
VS
101382012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 * docs/grub.texi (Unicode): Mention identifier and space limitations.
10141
6c0920e3
VS
101422012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10143
10144 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
10145 Add new member volname2.
10146 (grub_jfs_label): Use volname2 if available.
10147
d1a46f9a
VS
101482012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
10151 over last_mounted as seen in image generated by mkfs.nilfs2.
10152 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
10153
dec8ed14
VS
101542012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10155
10156 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
10157 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
10158 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
10159
7397c69b
VS
101602012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10161
10162 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
10163 over the sector.
10164
b3fe42ad
VS
101652012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10166
10167 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
10168 subvolume name (by removing a bogus and useless check).
10169
10476bb0
VS
101702012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
10173 sizeof while on it.
10174
9c08ad87
VS
101752012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10176
10177 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
10178 (grub_scsi_read_capacity10): ... this.
10179 (grub_scsi_read_capacity16): New function.
10180 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
10181 0xffffffff.
10182 Fix off-by-one error.
10183 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
10184 64-bit unsigned.
10185 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
10186 (grub_scsi_read_capacity10): ... this.
10187 (grub_scsi_read_capacity_data): Rename to ...
10188 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
10189 (grub_scsi_read_capacity16): New struct.
10190 (grub_scsi_read_capacity16_data): Likewise.
10191 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
10192 grub_scsi_cmd_read_capacity10.
10193 New command grub_scsi_cmd_read_capacity16.
10194
bc8d0f45
VS
101952012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10196
10197 SCSI >2TiB support.
10198
10199 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
10200 (grub_scsi_write16): Likewise.
10201 (grub_scsi_read): Use read16 when necessary.
10202 (grub_scsi_write): Likewise.
10203 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
10204 (grub_scsi_write16): Likewise.
10205 (grub_scsi_cmd_t): Add READ16 and WRITE16.
10206
cc774926
VS
102072012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10208
10209 SCSI write support (for usbms mainly).
10210
10211 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
10212 a const pointer.
10213 (grub_scsi_write): Implement.
10214 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
10215
67639fd7
VS
102162012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10217
10218 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
10219 variable.
10220
9079d3ed
VS
102212012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10222
10223 * grub-core/lib/posix_wrap/string.h (memchr): New function.
10224
c6a6f204
VS
102252012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10226
10227 * po/POTFILES.in: Regenerate.
10228
ecbf8cd1
VS
102292012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
10232 with grub_printf to avoid unnecessary fatal failure.
10233
0b3b3b38
VS
102342012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10235
10236 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
10237 (INT_MAX): Likewise.
10238 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
10239 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
10240 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
10241 (strcpy): Likewise.
10242 (strstr): Likewise.
10243 (strchr): Likewise.
10244 (strncpy): Likewise.
10245 (strcat): Likewise.
10246 (strncat): Likewise.
10247 (strcoll): Likewise.
10248 * include/grub/types.h (GRUB_SHRT_MAX): New define.
10249 (GRUB_INT_MAX): Likewise.
10250
db7337a3
VS
102512012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
10254 unexpected error.
10255 (optimize_utf8): Likewise.
10256 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
10257
f37c87e1
VS
102582012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10259
10260 * grub-core/boot/i386/pc/lnxboot.S: Use
10261 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
10262 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
10263 location.
10264 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
10265 definition.
10266 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
10267
63fe43f3
VS
102682012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10269
10270 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
10271 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
10272 now to avoid double free.
10273 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
10274 hostdisk.
10275 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
10276 * util/grub-probe.c (escape_of_path): Always return a new copy.
10277 (print_full_name): Escape path.
10278 (probe): Don't call grub_util_devname_to_ofpath on NULL.
10279 Fix hints on abstractions.
10280
ebe2c961
VS
102812012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10282
10283 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
10284 Don't add "root" line if no compatibility hont is available.
10285 Suggested by: Seth Goldberg.
10286
2b5336a2
VS
102872012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10288
10289 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
10290 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
10291 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
10292 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
10293
74310bd8
VS
102942012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10295
10296 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
10297
c30582ba
VS
102982012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10299
10300 * util/grub-pe2elf.c (ehdr): Make static.
10301 (shdr): Likewise.
10302 (num_sections): Likewise.
10303 (offset): Likewise.
10304
5f47782c
VS
103052012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10306
10307 Eliminate ofpath limits and possible overflows.
10308
10309 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
10310 (OF_PATH_MAX): Removed.
10311 (MAX_DISK_CAT): New const.
10312 (find_obppath): Use allocated rather than preallocated buffer.
10313 Return result. Argument of_path removed. All users updated.
10314 Add missing fdstat.
10315 (xrealpath): New function.
10316 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
10317 Allocate rather than use preallocated buffer. All users updated.
10318 (__of_path_common): Use allocated rather than preallocatecd buffer.
10319 Return result. Argument of_path removed. All users updated.
10320 (vendor_is_ATA): Read only needed part form the file.
10321 (check_sas): Allocate depending on contents rather than fixed.
10322 (main) [STANDALONE]: Handle NULL result.
10323
f990cbf9
VS
103242012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 * grub-core/normal/completion.c (iterate_dev): Close the disk.
10327
9c6e84b8
VS
103282012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10329
10330 Cryptodisk write support.
10331
10332 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
10333 (grub_cryptodisk_decrypt): Moved logic to ...
10334 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
10335 (grub_cryptodisk_write): Implement.
10336 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
10337 (grub_util_fd_write): ... this. Make global.
10338 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
10339
87cf9744
VS
103402012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10341
10342 * include/grub/list.h (grub_list_remove): Don't crash if element is
10343 removed twice.
10344
ca8c0baf
VS
103452012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10346
10347 Rename ofconsole to console.
10348
10349 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
10350 as sysnonym to console.
10351 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
10352 * grub-core/term/ieee1275/console.c: ... this. All users updated.
10353 Rename grub_ofconsole_ to grub_console_. All users updated
10354 (grub_console_term_output): Rename "ofconsole" to "console".
10355 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
10356 as "console".
10357
64c8b8f6
VS
103582012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10359
10360 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
10361 handling.
10362 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
10363 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
10364 GRUB_DISK_DEVICE_FILE_ID.
10365
f6c434d5
VS
103662012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10367
10368 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
10369 and improve performance.
10370
5858b42d
VS
103712012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10372
10373 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
10374 missing ieee1275/ prefix on whole disk.
10375
4ed3c26b
VS
103762012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10377
10378 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
10379 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
10380
df71143e
VS
103812012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10382
10383 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
10384
076e7c0f
VS
103852012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 Merge common RAID and LVM logic to an abstract diskfilter.
10388 Add LDM support using the same framework.
10389
10390 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
10391 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
10392 (libgrubmods): Remove grub-core/disk/raid.c and
10393 grub-core/partmap/gpt.c.
10394 * grub-core/Makefile.core.def (ldm): New module.
10395 (raid): Renamed to diskfilter. All users updated.
10396 * grub-core/disk/raid.c: Moved to ...
10397 * grub-core/disk/diskfilter.c: ... here.
10398 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
10399 (lv_num): New var.
10400 (find_array): Renamed to ...
10401 (find_lv): ... this. Support multi-LV. Skip nameless LVs
10402 (grub_is_array_readable): Renamed to ...
10403 (grub_is_lv_readable): ... this. Support multinode hierarchy.
10404 (insert_array): New argument id.
10405 (is_node_readable): New function.
10406 (scan_device): Rename to ...
10407 (scan_disk): .. this. Restrict to one disk.
10408 (scan_devices): New function.
10409 (grub_diskfilter_iterate): Support multi-LV.
10410 Skip invisible and nameless LVs.
10411 (grub_diskfilter_memberlist): Support multi-LV.
10412 (grub_diskfilter_read_node): New function.
10413 (grub_raid_read): Most of logic moved to ...
10414 (read_segment): ... here
10415 (read_lv): New function.
10416 (grub_diskfilter_get_vg_by_uuid): New function.
10417 (grub_diskfilter_make_raid): Likewise.
10418 * grub-core/disk/ldm.c: New file.
10419 * grub-core/disk/lvm.c (vg_list): Removed.
10420 (lv_count): Likewise.
10421 (scan_depth): Likewise.
10422 (is_lv_readable): Likewise.
10423 (grub_lvm_getvalue): Advance pointer past the number.
10424 (find_lv): Removed.
10425 (do_lvm_scan): Refactored into ...
10426 (grub_lvm_detect): ... this. Support raid.
10427 (grub_lvm_iterate): Removed.
10428 (grub_lvm_memberlist): Likewise.
10429 (grub_lvm_open): Likewise.
10430 (grub_lvm_close): Likewise.
10431 (read_lv): Likewise.
10432 (read_node): Likewise.
10433 (is_node_readable): Likewise.
10434 (is_lv_readable): Likewise.
10435 (grub_lvm_read): Likewise.
10436 (grub_lvm_write): Likewise.
10437 (grub_lvm_dev): Use diskfilter
10438 (GRUB_MOD_INIT): Likewise.
10439 (GRUB_MOD_FINI): Likewise.
10440 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
10441 new interface.
10442 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
10443 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10444 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
10445 grub_diskfilter_read_node.
10446 Fix a bug with xor.
10447 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
10448 grub_diskfilter_read_node.
10449 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
10450 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
10451 (grub_disk_dev_iterate): Move from here...
10452 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
10453 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
10454 Make global.
10455 (grub_hostdisk_find_partition_start): Likewise.
10456 (grub_hostdisk_os_dev_to_grub_drive): New function.
10457 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
10458 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
10459 * util/getroot.c (make_device_name): ... here.
10460 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
10461 Move to ...
10462 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
10463 * grub-core/kern/emu/hostdisk.c
10464 (convert_system_partition_to_system_disk): Move to ...
10465 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
10466 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
10467 * util/getroot.c (device_is_wholedisk): ... here.
10468 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
10469 * util/getroot.c (find_system_device): ... here.
10470 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
10471 Move to ...
10472 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
10473 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
10474 Move to ...
10475 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
10476 Handle LDM.
10477 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10478 Move to ...
10479 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
10480 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
10481 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
10482 DISKFILTER.
10483 * include/grub/raid.h: Renamed to ...
10484 * include/grub/diskfilter.h: ... this.
10485 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
10486 (GRUB_RAID_LAYOUT_*): Make into array.
10487 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
10488 (grub_diskfilter_vg): New struct.
10489 (grub_diskfilter_pv_id): Likewise.
10490 (grub_raid_member): Removed.
10491 (grub_raid_array): Likewise.
10492 (grub_diskfilter_pv): New struct.
10493 (grub_diskfilter_lv): Likewise.
10494 (grub_diskfilter_segment): Likewise.
10495 (grub_diskfilter_node): Likewise.
10496 (grub_diskfilter_get_vg_by_uuid): New proto.
10497 (grub_raid_register): Inline.
10498 (grub_diskfilter_unregister): Likewise.
10499 (grub_diskfilter_make_raid): New proto.
10500 (grub_diskfilter_vg_register): Likewise.
10501 (grub_diskfilter_read_node): Likewise.
10502 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
10503 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
10504 (grub_util_is_ldm): Likewise.
10505 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
10506 (grub_hostdisk_find_partition_start): Likewise.
10507 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
10508 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
10509 New definition.
10510 (grub_gpt_partition_map_iterate): New proto.
10511 * include/grub/lvm.h (grub_lvm_vg): Removed.
10512 (grub_lvm_pv): Likewise.
10513 (grub_lvm_lv): Likewise.
10514 (grub_lvm_segment): Likewise.
10515 (grub_lvm_node): Likewise.
10516 * util/getroot.c [...]
10517 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
10518 (probe_abstraction): Likewise.
10519 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
10520 (main): Remove dead logic.
10521
8a7f9b9c
VS
105222012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
10523
10524 Simplify root device discover and don't fail when trying to open
10525 incorrect devices.
10526
10527 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
10528 function.
10529 (get_diskname_from_path): Likewise.
10530 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
10531 of iterating.
10532
30545b85
VS
105332012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10534
10535 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
10536
28ea58cf
VS
105372012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10538
10539 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
10540 pastthe end.
10541
692dabca
VS
105422012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10543
10544 * util/grub-install.in: Add missing \.
10545 Reported by: gentoofan
10546
f6e4ea70
VS
105472012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
10548
10549 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
10550 (direct_read): Use correct compressed size.
10551 (grub_squash_read_data): Likewise.
10552
105532012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
10554
10555 * docs/grub.texi (Platform limitations): New section.
10556 (Platform-specific operations): Likewise.
10557 * docs/grub-dev.texi (Porting): Likewise.
10558
76261110
VS
105592012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10560
10561 IEEE1275 disk write support.
10562
10563 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
10564 const void *.
10565 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
10566 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
10567 and seek loginc to ...
10568 (grub_ofdisk_prepare): ... here.
10569 (grub_ofdisk_write): Implement.
10570
fc36d603
VS
105712012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10572
10573 ARC disk write support.
10574
10575 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
10576 (reopen): New argument writable. All users updated.
10577 Handle required access mode.
10578 (grub_arcdisk_write): Implement.
10579 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
10580 (grub_arc_firmware_vector): Make buffer to write a const buffer.
10581
e06c2e7a
VS
105822012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10583
10584 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
10585 (read_sblock): Don't attempt to read superblocks outside the disk size.
10586
ff447958
VS
105872012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10588
10589 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
10590 first superblock to find the second one when possible.
10591
9e88df39
VS
105922012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
10593
10594 * util/grub-install.in: Fix an ARC bug.
10595 Print a warning if no platform-specific setup is available.
10596
bb26e4ff
VS
105972012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10598
10599 Use static allocation rather than scratch pointer in reed_solomon.
10600 It decreases its size significantly and avoids a variable in .text.
10601
10602 * grub-core/lib/reed_solomon.c (scratch): Removed.
10603 (chosenstat): New const or static array.
10604 (sigma): Likewise.
10605 (errpot): Likewise.
10606 (errpos): Likewise.
10607 (sy): Likewise.
10608 (mstat): Likewise.
10609 (errvals): Likewise.
10610 (eqstat): Likewise.
10611 (pol_evaluate): Replace x with log_x argument. All users updated.
10612 (syndroms): Removed.
10613 (gauss_solve): Use statically allocated arrays.
10614 (rs_recover): Likewise.
10615 Calculate syndroms directly.
10616 (decode_block): Use statically allocated arrays.
10617 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
10618 (main) [TEST]: Allow -DTEST -DSTANDALONE.
10619
2e13ede5
VS
106202012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10621
10622 Eliminate fixed limit on reed solomon decoder length.
10623
10624 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
10625 rather than hardcoding the address.
10626 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
10627 no_reed_solomon_length.
10628 Move gate_a20 to no-reed-solomon part.
10629 Don't force a particular size of no reed-solomon part.
10630 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
10631 Removed.
10632 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
10633 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
10634
f8a9ab12
VS
106352012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10636
10637 * grub-core/commands/wildcard.c (match_files): Handle filenames
10638 without explicit device.
10639 (wildcard_expand): Don't add explicit device if not already present.
10640 * tests/grub_script_echo1.in: Add a new expansion test.
10641
87edb894
VS
106422012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10643
10644 Replace single-linked with double-linked lists. It results in more
10645 compact and more efficient code.
10646
10647 * grub-core/kern/list.c (grub_list_push): Moved from here ...
10648 * include/grub/list.h (grub_list_push): ... to here. Set prev.
10649 (grub_list_remove): Moved from here ...
10650 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
10651 (grub_prio_list_insert): Set prev.
10652 * include/grub/list.h (grub_list): Add prev. All users updated.
10653
48b391e9
VS
106542012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 Handle newer autotools. Add some missing quotes while on it.
10657
10658 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
10659 (pkglib_DATA): Move grub-mkconfig_lib from here ...
10660 (pkgdata_DATA): ... here.
10661 * Makefile.util.def (update-grub_lib): Removed.
10662 * conf/Makefile.common (pkglib_DATA): Removed.
10663 (pkglib_SCRIPTS): Likewise.
10664 (pkgdata_DATA): New variable.
10665 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
10666 needed.
10667 Add missing quotes.
10668 Remove unused variable while on it.
10669 * tests/util/grub-shell.in: Likewise.
10670 * util/grub-install.in: Likewise.
10671 * util/grub-mkconfig.in: Likewise.
10672 * util/grub-mknetdir.in: Likewise.
10673 * util/grub-mkrescue.in: Likewise.
10674 * util/grub-mkstandalone.in: Likewise.
10675 * util/grub.d/00_header.in: Likewise.
10676 * util/grub.d/10_hurd.in: Likewise.
10677 * util/grub.d/10_illumos.in: Likewise.
10678 * util/grub.d/10_kfreebsd.in: Likewise.
10679 * util/grub.d/10_linux.in: Likewise.
10680 * util/grub.d/10_netbsd.in: Likewise.
10681 * util/grub.d/10_windows.in: Likewise.
10682 * util/grub.d/20_linux_xen.in: Likewise.
10683 * util/grub.d/30_os-prober.in: Likewise.
10684 * util/update-grub_lib.in: Removed.
10685
106862012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
10687
10688 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
10689 a workaround for intel problem.
10690
66832792
PRP
106912012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
106922012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
106932012-01-23 pfsmorigo
10694
10695 * util/grub-install.in: Support dd'in into PreP partition.
10696 * util/grub-probe.c (probe): Support discovering partition type.
10697 (main): Support -t msdos_parttype.
10698
7816a17e
VS
106992012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
10700
10701 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
10702 infinite recursion using counter.
10703 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
10704 init to skip it if the magic check fails.
10705 (dec_stream_header): Init s->crc32.
10706
8f9d3a8c
ZB
107072012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
107082012-01-22 Zachary Bedell <pendorbound@gmail.com>
107092012-01-22 Richard Laager <rlaager@wiktel.com>
10710
10711 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
10712 All users updated.
10713 (find_bestub): Determine correct size.
10714 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
10715 (scan_disk): Align the size down.
10716 Call check pool before find_bestub to have ashift.
10717
b055dd32
VS
107182012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10719
10720 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
10721 dprintf in no-malloc zone.
10722
d779e9bd
ML
107232012-01-22 Mario Limonciello <mario_limonciello@dell.com>
10724
10725 * configure.ac: Add back in test for limits.h.
10726
b508af69
VS
107272012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10728
10729 Support 4K-sector NTFS.
10730
10731 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
10732 (grub_ntfs_data): Remove blocksize.
10733 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
10734 Remove data argument. All users updated.
10735
dad9c8b5
VS
107362012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10737
10738 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
10739 being in .text to avoid dprel references.
10740 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
10741 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
10742 (grub_arch_highmemsize): Likewise.
10743 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
10744 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
10745 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
10746
d43a777e
VS
107472012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10748
10749 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
10750
10751 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
10752 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
10753
34e4208f
VS
107542012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10755
10756 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
10757 GRUB_UTIL.
10758 (grub_set_datetime_cmos): Likewise.
10759
3ec0fc1c
VS
107602012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10761
10762 Make XZ compression parameters dependent on target and not host CPU.
10763
10764 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
10765 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
10766
22489834
VS
107672012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10768
10769 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
10770 set but not used variable.
10771
8502fbca
VS
107722012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10773
10774 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
10775 created when no uuid support is compiled into mkfs.reiser.
10776
76df2068
VS
107772012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10778
10779 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
10780 (utf8_to_macroman): Do the opposite.
10781 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
10782
64e3f8f6
VS
107832012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10784
10785 * configure.ac: Refise build qemu_mips w/o unifont.
10786
9c271078
VS
107872012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10788
10789 Eliminate grub_min/grub_max prone to overflow usage.
10790
10791 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
10792 (poll_nonroot_hub): Likewise.
10793 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
10794 (grub_affs_label): Likewise.
10795 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
10796 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
10797 (grub_hfs_label): Likewise.
10798 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
10799 * grub-core/fs/zfs/zfs.c (MIN): Remove.
10800 (zap_leaf_array_equal): Use grub_size. Remove MIN.
10801 (zap_leaf_array_get): Likewise.
10802 (dnode_get_path): Likewise.
10803 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
10804 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
10805 * grub-core/script/execute.c (grub_script_break): Likewise.
10806 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
10807 grub_max.
10808 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
10809 * include/grub/misc.h (grub_min): Removed.
10810 (grub_max): Likewise.
10811
80662dbc
VS
108122012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10813
10814 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
10815 direct.inode = 0.
10816
e6da1467
VS
108172012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
10820
b1ac4cb1
VS
108212012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10822
10823 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
10824
b4bf7c3b
VS
108252012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10826
10827 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
10828 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
10829
8ee1101a
VS
108302012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10831
10832 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
10833 rather than a hack for grub_strncasemap.
10834
108352012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 Support multiple initrds
10838 Note: part of this was accidently committed in r3739.
10839
10840 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
10841 initrd.
10842 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
10843 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
10844 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10845 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10846 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10847
4d1e2bc9
VS
108482012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10849
10850 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
10851 disks with unknown size.
10852 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
10853
75b49ebe
VS
108542012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10855
10856 Remove defines pertaining to arbitrary limits not affecting GRUB
10857 anymore.
10858
10859 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
10860 (EXT2_MAX_SYMLINKCNT): Likewise.
10861 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
10862 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
10863 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
10864 (GRUB_PXE_MAX_BLKSIZE): Likewise.
10865 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
10866 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
10867 (DN_MAX_OBJECT_SHIFT): Likewise.
10868 (DN_MAX_OFFSET_SHIFT): Likewise.
10869 (DN_MAX_OBJECT): Likewise.
10870 (DNODES_PER_LEVEL_SHIFT): Likewise.
10871 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
10872 (SPA_MAXBLOCKSIZE): Likewise.
10873 (SPA_BLOCKSIZES): Likewise.
10874 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
10875 (MZAP_MAX_BLKSZ): Likewise.
10876
74a1dce7
VS
108772012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10878
10879 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
10880 handle NULL appropriately.
10881 Remove MIN.
10882
30c7d3ce
VS
108832012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10884
10885 Fix efiemu.
10886
10887 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
10888 cpu/types.h.
10889 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
10890 * configure.ac: Fix efiemu check.
10891
3c76ea0c
VS
108922012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10893
10894 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
10895 grub_probe.
10896 Reported by: adamwill
10897
7e532280
SG
108982012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
10899
10900 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
10901
30492374
VS
109022012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10903
10904 Fix handling of wide characters in gfxterm.
10905
10906 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
10907 (clear_char): Likewise.
10908 (paint_char): Skip code == NULL chars.
10909 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
10910
e70cb72f
VS
109112012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 * grub-core/normal/charset.c: Move comment to right place.
10914
5c827cf9
VS
109152012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
10916
10917 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
10918 (GRUB_AFFS_FLAG_FFS): Put back where it was.
10919 (grub_affs_mount): Revert the correct version checking.
10920
53603892
VS
109212012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
10922
10923 * docs/grub.texi (Unicode): Mention several other unsupported features.
10924
ff094b9b
VS
109252011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10926
10927 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
10928 case statements as compile-time one.
10929 (direct_read): Prevent spurious warnings.
10930 (grub_squash_read_data): Likewise.
10931
c029da8a
VS
109322011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10933
10934 Various squash4 fixes and LZO and XZ support.
10935
10936 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
10937 Add xzembed source files.
10938 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
10939 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
10940 (grub_squash_inode): New subtype long_dir.
10941 (SQUASH_TYPE_LONG_DIR): New inode type.
10942 (COMPRESSION): New enum.
10943 (XZBUFSIZ): New const.
10944 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
10945 (read_chunk): Use data->decompress.
10946 (zlib_decompress): New function.
10947 (lzo_decompress): Likewise.
10948 (xz_decompress): Likewise.
10949 (squash_mount): Set new data fields.
10950 (grub_squash_iterate_dir): Handle long dir.
10951 (squash_unmount): Free xzdec and xzbuf.
10952 (grub_squash_open): Check ino type.
10953 (direct_read): Stylistic fixes. Use data->decompress.
10954 (grub_squash_read_data): Likewise.
10955 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
10956 (get_byte): Likewise.
10957 (grub_zlib_disk_read): Removed.
10958 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
10959 (GRUB_POSIX_BOOL_DEFINED): New define.
10960 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
10961 * grub-core/lib/xzembed/xz.h: Addmissing includes.
10962 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
10963 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
10964
7a45a539
VS
109652011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10966
10967 Don't override more informative errors.
10968
10969 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
10970 * grub-core/font/font.c (open_section): Likewise.
10971 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
10972 filename. Don't override errors.
10973 (grub_cmd_openbsd_ramdisk): Don't override errors.
10974 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
10975 (grub_cmd_initrd): Likewise.
10976 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10977 (grub_cmd_initrd): Likewise.
10978 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
10979 (grub_cmd_linux): Likewise.
10980 (grub_cmd_initrd): Likewise.
10981 (grub_cmd_payload): Likewise.
10982 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10983 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
10984 (grub_cmd_module): Likewise.
10985 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10986 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10987 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
10988 (grub_cmd_xnu_mkext): Likewise.
10989 (grub_cmd_xnu_ramdisk): Likewise.
10990 (grub_xnu_check_os_bundle_required): Likewise.
10991 (grub_xnu_load_kext_from_dir): Likewise.
10992 (grub_cmd_xnu_kextdir): Likewise.
10993 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
10994
b2d004db
VS
109952011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
10998 as 1024 in block size field. Found on one of my test images.
10999 Small optimisation while on it.
11000
ec000eac
VS
110012011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11002
11003 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
11004 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
11005 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
11006 performance fixes while on it.
11007 (grub_sfs_close): Fix memory leak while on it.
11008 (grub_sfs_label): Convert Latin1 to UTF-8.
11009
f50e1165
VS
110102011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11011
11012 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
11013 space to avoid overflows.
11014 (grub_hfs_label): Convert from macroman to UTF-8.
11015
2ae254de
VS
110162011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11017
11018 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
11019
0108f491
VS
110202011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11021
11022 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
11023
f45f5f89
VS
110242011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11025
11026 * unicode: Import Unicode 6.0 data.
11027
4d8c4765
VS
110282011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11029
63fa8ef9
VS
11030 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
11031 outside of range.
11032
110332011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11034
11035 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
11036
11037 * include/grub/charset.h (grub_getend): New function.
11038 * grub-core/script/function.c (grub_script_function_find): Use
11039 grub_getend.
11040 * grub-core/normal/completion.c (add_completion): Likewise.
11041
f3cb4a4e
VS
110422011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11043
11044 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
11045 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
11046 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
11047 (GRUB_UNICODE_TAG_END): Likewise.
11048 (GRUB_UNICODE_LAST_VALID): Likewise.
11049
5da8dbc5
VS
110502011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11051
11052 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
11053 len and make it smaller. All users updated.
11054 * util/import_unicode.py: Put length and not end character.
11055 Check length.
11056
8569f13d
VS
110572011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11058
11059 Make better Unicode-compliant and unify some UTF-8 code pathes.
11060
11061 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
11062 valid character.
11063 (grub_is_valid_utf8): Use grub_utf8_process.
11064 Check resulting code range.
11065 (grub_utf8_to_ucs4): Use grub_utf8_process.
11066 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
11067 valid character.
11068
cc4fddf5
VS
110692011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11070
11071 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
11072
bbc47747
VS
110732011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11074
11075 * docs/grub.texi (Filesystems): Mention AFS.
11076
f63d6bf4
VS
110772011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11078
11079 * docs/grub.texi (Filesystems): Clarify restrictions.
11080 (Regexp): Mention non-Unicode regexp behaviour.
11081 (Other): Mention non-Unicode matching behaviour.
11082
74bbf0db
VS
110832011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11084
f63d6bf4 11085 Make HFS implementation use MacRoman.
74bbf0db
VS
11086
11087 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
11088 (macroman): New const array.
11089 (macroman_to_utf8): New function.
11090 (utf8_to_macroman): Likewise.
11091 (grub_hfs_find_dir): Use utf8_to_macroman.
11092 (grub_hfs_dir): Use macroman_to_utf8.
11093 Set case_insensitive.
11094
4ea0316e
VS
110952011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11096
11097 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
11098
d3c13cbd
VS
110992011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11100
11101 Integrate hints into autogeneration scripts.
11102
11103 * docs/grub.texi (Filesystems): Add a hostdisk example.
11104 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
11105 (grub-probe): Add ofpath.
11106 * gentpl.py: Remove group nosparc64.
11107 * grub-core/commands/search.c (cache_entry): New struct.
11108 (cache): New var.
11109 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
11110 * grub-core/commands/search_wrap.c (options): Add platform-specific
11111 hint options.
11112 (grub_cmd_search): Handle platform-specific hints.
11113 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
11114 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
11115 (grub_util_biosdisk_data): Likewise.
11116 (grub_util_biosdisk_open): Set device_map.
11117 (read_device_map): Handle "" as indication of no map.
11118 Set device_map.
11119 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
11120 (grub_util_biosdisk_get_compatibility_hint): New function.
11121 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
11122 * include/grub/emu/hostdisk.h
11123 (grub_util_biosdisk_get_compatibility_hint): New proto.
11124 * util/grub-install.in: Don't call grub-mkdevicemap.
11125 Add platform-specific hint to load.cfg.
11126 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
11127 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11128 hints. Set root preliminary to compatibility hint, not to OS name.
11129 * util/grub-probe.c (PRINT_*): Add hints.
11130 (print): Make static.
11131 (escape_of_path): New function.
11132 (guess_bios_drive): Likewise.
11133 (guess_efi_drive): Likewise.
11134 (guess_baremetal_drive): Likewise.
11135 (print_full_name): Likewise.
11136 (probe): Handle hints.
11137 (main): Likewise.
11138 * util/ieee1275/devicemap.c: Removed.
11139 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
11140 updated.
11141 (grub_util_devname_to_ofpath): Return NULL on failure.
11142
11143 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
11144 resource leak.
11145 * util/getroot.c (grub_util_pull_device): Fix memory leak.
11146
11147 * po/POTFILES.in: Regenerated.
11148
11149 Allow purely long options
11150
11151 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
11152 (SHORT_ARG_USAGE): Likewise.
11153 (grub_arg_show_help): Compare opt with help_options.
11154 (parse_option): Receive opt as argument. If makes big simplificatons.
11155 All users updated
11156
00ce2df3
VS
111572011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11158
11159 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
11160 Restructure to avoid warning.
11161
e77e325f
VS
111622011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11163
11164 * util/grub-install.in: Account for possible escaped comma in device
11165 name.
11166
165099ea
VS
111672011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11168
11169 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
11170 channel.
11171
ce4a999d
VS
111722011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11173
11174 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
11175 allocation and zero-setting.
11176 (grub_ieee1275_get_devname): Check that alias is complete.
11177
379586ad
VS
111782011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11179
11180 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
11181 unaligned segments.
11182
9197b0ad
VS
111832011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11184
11185 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
11186 prefix.
11187 (grub_ofdisk_open): Check and discard ieee1275 prefix.
11188 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11189 Add ieee1275 prefix.
11190
edddb7f9
VS
111912011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11192
11193 * docs/grub.texi (Filesystems): Update.
11194
a1a8b1b9
VS
111952011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11196
11197 Support odc, newc and bigendian cpio formats.
11198
11199 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
11200 * grub-core/Makefile.core.def (newc): New module.
11201 (odc): Likewise.
11202 (cpio_be): Likewise.
11203 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
11204 (MAGIC): Likewise.
11205 (MAGIC2): Likewise.
11206 (head) [MODE_ODC]: Adapt for the format.
11207 (head) [MODE_NEWC]: Likewise.
11208 (head) [!MODE_*]: Write fields of interest as arrays.
11209 (MAGIC_USTAR): Removed.
11210 (read_number) [MODE_NEWC]: Change to hex.
11211 (read_number) [!MODE_*]: Parse binary arrays.
11212 (grub_cpio_find_file): Factor out the code for better structure and
11213 always use read_number.
11214 (grub_cpio_mount): Use MAGIC and MAGIC2.
11215 (grub_cpio_dir): Exit on first hook non-0 return.
11216 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
11217 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
11218 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
11219 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
11220 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
11221 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
11222 * grub-core/fs/newc.c: New file.
11223 * grub-core/fs/odc.c: Likewise.
11224 * grub-core/fs/cpio_be.c: Likewise.
11225
58eba9ee
VS
112262011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11227
11228 Fix handling of tar numbers occupying the whole field.
11229
11230 * grub-core/fs/cpio.c (read_number): New function.
11231 (grub_cpio_find_file): Use read_number instead of strtoull.
11232
a54a0e12
VS
112332011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11234
11235 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
11236 occupying the whole field size.
11237
a6120aca
LA
112382011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
11239
11240 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
11241
a93964ce
VS
112422011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11243
11244 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
11245
3ea1ca46
SG
112462011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
11247
11248 * grub-core/Makefile.core.def (lzma_decompress): Add missing
11249 TARGET_IMG_LDFLAGS.
11250
b87f7ef2
VS
112512011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11252
11253 * util/getroot.c (ESCAPED_PATH_MAX): New define.
11254 (mountinfo_entry): Increase the field size to take escaping into
11255 account.
11256 (find_root_device_from_libzfs): Add one byte to size of strings for
11257 security.
11258
62092395
VS
112592011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11260
11261 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
11262 an assert.
11263 * util/grub-setup.c (setup): Likewise.
11264
1f0b1a77
VS
112652011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11266
11267 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
11268 _LzmaDecodeA.
11269
8eba9997
VS
112702011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11271
11272 * docs/grub.texi (Internationalisation): New section.
11273
dd0c91e9
VS
112742011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11275
11276 * docs/grub.texi (Loopback booting): New section.
11277
112782011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
11279
11280 * util/grub-mkstandalone.in: Fix minor typo errors.
11281
198e150a
VS
112822011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11283
11284 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
11285
11286 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
11287 net/icmp.c and net/icmp6.c.
11288 (http): New module.
11289 (priority_queue): Likewise.
11290 * grub-core/io/bufio.c: Rewritten.
11291 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
11292 TYPE_WITH_CONFIGFILE_OPTION.
11293 (legacy_commands): Add bootp and dhcp.
11294 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
11295 (grub_legacy_parse): Likewise.
11296 * grub-core/lib/priority_queue.c: New file.
11297 * grub-core/net/arp.c: Add missing license header.
11298 (arp_find_entry): Removed.
11299 (arp_find_entry): Likewise.
11300 (grub_net_arp_resolve): Rename to ...
11301 (grub_net_arp_send_request): ...this.
11302 (grub_net_arp_receive): New card argument.
11303 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
11304 Set router and DNS server.
11305 (grub_net_configure_by_dhcp_ack): Handle routing information.
11306 (grub_cmd_bootp): Set checksum.
11307 (grub_bootp_init): Remove net_dhcp.
11308 * grub-core/net/dns.c: New file.
11309 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
11310 completion.
11311 (get_card_packet): Handle allocation.
11312 (grub_efinet_findcards): Set mtu.
11313 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
11314 (get_card_packet): Handle allocation.
11315 (emucard): Set mtu.
11316 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
11317 (GRUB_MOD_INIT): Set mtu.
11318 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
11319 mtu.
11320 (get_card_packet): Handle allocation.
11321 (grub_ofnet_findcards): Set mtu.
11322 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
11323 assert.
11324 (grub_net_recv_ethernet_packet): Handle IPv6.
11325 * grub-core/net/http.c: New file.
11326 * grub-core/net/icmp.c: Likewise.
11327 * grub-core/net/icmp6.c: Likewise.
11328 * grub-core/net/ip.c (ip6addr): New type.
11329 (ip6hdr): Likewise.
11330 (reassemble): Likewise.
11331 (cmp): New function.
11332 (reassembles): New variable.
11333 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
11334 (id): New variable.
11335 (send_fragmented): New function.
11336 (grub_net_send_ip_packet): Rename to ...
11337 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
11338 Handle non-UDP.
11339 (grub_net_recv_ip_packets): Rename to ...
11340 (handle_dgram): ... this. Check checksum. Handle non-UDP.
11341 (free_rsm): New function.
11342 (free_old_fragments): Likewise.
11343 (grub_net_recv_ip4_packets): New function.
11344 (grub_net_send_ip6_packet): Likewise.
11345 (grub_net_send_ip_packet): Likewise.
11346 (grub_net_recv_ip6_packets): Likewise.
11347 (grub_net_recv_ip_packets): Likewise.
11348 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
11349 (LINK_LAYER_CACHE_SIZE): New const.
11350 (link_layer_find_entry): New function.
11351 (grub_net_link_layer_add_address): Likewise.
11352 (grub_net_link_layer_resolve_check): Likewise.
11353 (grub_net_link_layer_resolve): Likewise.
11354 (grub_net_ipv6_get_slaac): Likewise.
11355 (grub_net_ipv6_get_link_local): Likewise.
11356 (grub_cmd_ipv6_autoconf): Likewise.
11357 (parse_ip): Handle one number representation.
11358 (parse_ip6): New functoion.
11359 (match_net): Handle IPv6.
11360 (grub_net_resolve_address): Handle IPv6 and DNS.
11361 (grub_net_resolve_net_address): Handle IPv6.
11362 (route_cmp): New function.
11363 (grub_net_route_address): Find best route.
11364 (grub_net_addr_to_str): Handle IPv6.
11365 (grub_net_addr_cmp): New function.
11366 (grub_net_add_addr): Register local route.
11367 (print_net_address): Handle net address.
11368 (grub_net_poll_cards): Retransmit TCP.
11369 (grub_net_poll_cards_idle_real): Likewise.
11370 (have_ahead): New function.
11371 (grub_net_seek_real): Use underlying seek.
11372 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
11373 * grub-core/net/tcp.c: New file.
11374 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
11375 (cmp): New function.
11376 (ack): Likewise.
11377 (tftp_receive): Handle unordered input.
11378 (destroy_pq): New function.
11379 (tftp_close): Close pq.
11380 * grub-core/net/udp.c: Put missing license header.
11381 (grub_net_udp_socket): New function.
11382 (udp_socket_register): Likewise.
11383 (grub_net_udp_close): Likewise.
11384 (grub_net_recv_udp_packet): Check checksum.
11385 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
11386 * include/grub/misc.h (grub_memchr): New function.
11387 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
11388 (grub_net_card_driver): Return buf in recv.
11389 (grub_net_slaac_mac_list): New struct.
11390 (grub_network_level_protocol_id): Add ipv6.
11391 (grub_net_network_level_addr): Likewise.
11392 (grub_net_network_level_net_addr): Likewise.
11393 (grub_net_app_protocol): Add seek.
11394 (grub_net_socket): Removed.
11395 (grub_net_sockets): Likewise.
11396 (grub_net_socket_register): Likewise.
11397 (grub_net_socket_unregister): Likewise.
11398 (FOR_NET_SOCKETS): Likewise.
11399 (grub_net_add_addr): Add const.
11400 (GRUB_NET_BOOTP_*): New enum.
11401 (grub_net_addr_cmp): New proto.
11402 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
11403 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
11404 (grub_net_hwaddr_to_str): NEw proto.
11405 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
11406 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
11407 (grub_dns_init): New proto.
11408 (grub_dns_fini): Likewise.
11409 (grub_net_tcp_retransmit): Likewise.
11410 (grub_net_link_layer_add_address): Likewise.
11411 (grub_net_link_layer_resolve_check): Likewise.
11412 (grub_net_link_layer_resolve): Likewise.
11413 (grub_net_dns_lookup): Likewise.
11414 (grub_net_add_dns_server): Likewise.
11415 (grub_net_remove_dns_server): Likewise.
11416 (GRUB_NET_TRIES): New const.
11417 (GRUB_NET_INTERVAL): Likewise.
11418 * include/grub/net/arp.h: Mostly rewritten.
11419 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
11420 * include/grub/net/ip.h: Mostly rewritten.
11421 * include/grub/net/netbuff.h: Indent.
11422 * include/grub/net/tcp.h: New file.
11423 * include/grub/net/udp.h: Mostly rewritten.
11424 * include/grub/priority_queue.h: New file.
11425 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
11426 (grub_swap_bytes64_compile_time): Likewise.
11427 (grub_cpu_to_be16_compile_time): Likewise.
11428 (grub_cpu_to_be32_compile_time): Likewise.
11429 (grub_cpu_to_be64_compile_time): Likewise.
11430 (grub_be_to_cpu64_compile_time): Likewise.
11431
215c1800
VS
114322011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
11433
11434 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
11435 UINT_TO_PTR with cast.
11436
c17e546c
VS
114372011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11438
11439 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
11440 don't use them.
11441
ff6b18b6
VS
114422011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
11445 already there.
11446
70ffcc93
VS
114472011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11448
11449 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
11450 confusing ipxe.
11451
e5f4d260
VS
114522011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11453
11454 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
11455 Add missing const attribute.
11456 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
11457 Likewise.
11458 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
11459 Likewise.
11460
8e54b4b7
VS
114612011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11462
11463 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
11464 misaligned access.
11465 (serpent_setkey): Likewise.
11466 (serpent_encrypt_internal): Likewise.
11467 (serpent_decrypt_internal): Likewise.
11468 (serpent_encrypt): Don't put an alignment-increasing cast.
11469 (serpent_decrypt): Likewise.
11470 (serpent_test): Likewise.
11471
813c0a2b
VS
114722011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
11475
f2b60fbd
VS
114762011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11477
11478 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
11479
11480 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
11481 grub_addr_t casts.
11482 (PTR_TO_UINT64): Likewise.
11483 (PTR_TO_UINT32): Likewise.
11484
5ef5c511
VS
114852011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * util/grub-mkimage.c (generate_image): Decrease the higher limit
11488 because of stack.
11489 * util/grub-setup.c (setup): Don't add redundancy past the higher load
11490 limit.
11491
c476e6df
VS
114922011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11493
11494 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
11495 text_width > available width a bit more gracefully.
11496
384ad7cc
VS
114972011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11498
11499 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
11500 current address calculation.
11501
96f8caf8
VS
115022011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11503
11504 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
11505 stack.
11506 (encode_block): Likewise.
11507
276b7a8b
VS
115082011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11509
11510 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
11511 certainety.
11512
e3fd394a
VS
115132011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11514
11515 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
11516 non-RS part to avoid RS messing with GDT.
11517 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11518 Increase to suit in realmode routines.
11519
115202011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11521
11522 * grub-core/kern/i386/realmode.S: Increase alignment.
11523 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
11524
ee9c2e7a
VS
115252011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11526
11527 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
11528 be deterministic.
11529 (syndroms): Compute 0 syndrom.
11530 (rs_recover): Use 0 syndrom.
11531
7a7f7cc9
VS
115322011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11533
11534 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
11535
a14b16d1
VS
115362011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11537
11538 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
11539 brackets.
11540
9f59e9fc
VS
115412011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11542
ca1b552c
VS
11543 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
11544 account.
11545 (get_top_pad): Likewise.
11546 (get_right_pad): Likewise.
11547 (get_bottom_pad): Likewise.
11548
115492011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11550
11551 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 11552
e739d698
VS
115532011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11554
11555 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
11556 attribute as the structure isn't guaranteed to be properly aligned.
11557 (grub_efi_pci_device_path): Likewise.
11558 (grub_efi_pccard_device_path): Likewise.
11559 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
11560 specify the size of `memory_type'.
11561 (grub_efi_vendor_device_path): Likewise.
11562 (grub_efi_controller_device_path): Likewise.
11563 (grub_efi_acpi_device_path): Likewise.
11564 (grub_efi_expanded_acpi_device_path): Likewise.
11565 (grub_efi_atapi_device_path): Likewise.
11566 (grub_efi_scsi_device_path): Likewise.
11567 (grub_efi_fibre_channel_device_path): Likewise.
11568 (grub_efi_1394_device_path): Likewise.
11569 (grub_efi_usb_device_path): Likewise.
11570 (grub_efi_usb_class_device_path): Likewise.
11571 (grub_efi_i2o_device_path): Likewise.
11572 (grub_efi_mac_address_device_path): Likewise.
11573 (grub_efi_ipv4_device_path): Likewise.
11574 (grub_efi_ipv6_device_path): Likewise.
11575 (grub_efi_infiniband_device_path): Likewise.
11576 (grub_efi_uart_device_path): Likewise.
11577 (grub_efi_vendor_messaging_device_path): Likewise.
11578 (grub_efi_hard_drive_device_path): Likewise.
11579 (grub_efi_cdrom_device_path): Likewise.
11580 (grub_efi_vendor_media_device_path): Likewise.
11581 (grub_efi_file_path_device_path): Likewise.
11582 (grub_efi_protocol_device_path): Likewise.
11583 (grub_efi_piwg_device_path): Likewise.
11584 (grub_efi_bios_device_path): Likewise.
11585
cb8f88ea
VS
115862011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11587
11588 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
11589 (grub_ucs4_to_utf8_alloc): Likewise.
11590 (grub_ucs4_to_utf8): Likewise.
11591 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
11592 (grub_ucs4_to_utf8_alloc): Likewise.
11593
309e5352
VS
115942011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
11595
11596 AFFS never uses unicode.
11597
11598 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
11599 (grub_latin1_to_utf8): New inline function.
11600 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
11601
e7987e1b
VS
116022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11603
11604 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
11605 overflow.
11606
efc2616e
VS
116072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11608
11609 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
11610 (grub_squash_dirent_header): Likewise.
11611 (read_chunk): Don't double swap.
11612 (grub_squash_iterate_dir): Fix swap sizes.
11613
3c349f5a
VS
116142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
11617
b453412d
VS
116182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11619
11620 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
11621 (grub_hfs_iterate_dir): Likewise.
11622
12e9d4d1
VS
116232011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11624
11625 Fix video on platforms where unaligned access is forbidden.
11626 Make several optimisations while on it.
11627
11628 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
11629 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
11630 (grub_video_fbblit_replace_32bit_1bit): Likewise.
11631 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
11632 Disable.
11633 (grub_video_fbblit_replace_16bit_1bit):
11634 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
11635 (grub_video_fbblit_replace_8bit_1bit): Likewise.
11636 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
11637 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
11638 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
11639 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
11640 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
11641 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
11642 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
11643 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
11644 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
11645 (grub_video_fbblit_replace_index_RGB888): Likewise.
11646 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
11647 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
11648 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
11649 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
11650 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
11651 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
11652 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
11653 Disable.
11654 (grub_video_fbblit_blend_XXX565_1bit):
11655 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
11656 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
11657 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
11658 void *.
11659 * grub-core/video/fb/video_fb.c (common_blitter)
11660 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
11661 (grub_video_fb_create_render_target_from_pointer)
11662 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
11663 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
11664 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
11665 definition.
11666 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
11667
ace96609
VS
116682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11669
11670 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
11671 HH22 and HM10 relocations.
11672
fd261d73
VS
116732011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11674
11675 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
11676
e59b7857
VS
116772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11678
11679 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
11680 allocation succeeded.
11681
9b4baaa4
VS
116822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11683
11684 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
11685 argument a u8 pointer. All users updated.
11686 Handle unaligned buffers.
11687
dc713193
VS
116882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11689
11690 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
11691 add_part to workaround compiler bug.
11692
30dd48c2
VS
116932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11694
11695 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
11696
0c6087a8
VS
116972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11698
11699 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
11700 Reserve alignment invariants.
11701 (grub_multiboot_load): Likewise.
11702 (retrieve_video_parameters): Likewise.
11703 (grub_multiboot_make_mbi): Likewise.
11704
c2e77777
VS
117052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11706
11707 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
11708 incorrect pointer.
11709
b70b6d11
VS
117102011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
11713 (grub_pata_pio_write): Likewise.
11714
02a2bf83
VS
117152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11716
11717 Add noreturn attributes and remove unreachable code.
11718
11719 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
11720 code.
11721 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
11722 code. Mark as noreturn.
11723 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
11724 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
11725 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
11726 unreachable code.
11727 * grub-core/kern/main.c (grub_main): Mark as noreturn.
11728 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
11729 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
11730 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
11731 * include/grub/kernel.h (grub_main): Mark as noreturn.
11732 * include/grub/reader.h (grub_rescue_run): Likewise.
11733
2019d09e
VS
117342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11735
11736 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
11737 redundant declaration.
11738
d1c501ee
VS
117392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11740
11741 * include/grub/net.h (grub_net_network_level_interfaces): Remove
11742 redundant declaration.
11743 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
11744
61664420
VS
117452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11746
11747 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
11748 to ensure alignment.
11749 (grub_hdparm_print_identify): Make argument uint16 * to ensure
11750 alignment. Ensure tmp alignment.
11751 (grub_cmd_hdparm): Ensure buf alignment.
11752 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
11753 to ensure alignment.
11754 (grub_ata_dumpinfo): Ensure text alignment.
11755 (grub_atapi_identify): Preserve alignment invariant.
11756 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
11757
0d51ee20
VS
117582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11759
11760 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
11761 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
11762 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
11763 * include/grub/misc.h (grub_reboot)
11764 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
11765 (grub_halt) [__mips__]: Likewise.
11766
753ef8c1
VS
117672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11768
11769 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
11770 Remove redundant declaration.
11771 (grub_mmap_get_post64): Likewise.
11772 (grub_mmap_get_upper): Likewise.
11773 (grub_mmap_get_lower): Likewise.
11774
85c85365
VS
117752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11776
11777 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
11778 uint32_t * to ensure alignment.
11779 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
11780
a23f2cc4
VS
117812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11782
93018f64
VS
11783 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
11784 uint16_t * to ensure alignment.
11785 (sun_pc_partition_map_iterate): Make `block' a union to ensure
11786 alignment.
11787
117882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11789
11790 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
11791 to ensure alignment.
11792 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
11793
58acccd6
VS
117942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11795
11796 * grub-core/fs/ntfs.c (u16at): Make into inline function.
11797 Handle unaligned pointers.
11798 (u32at): Likewise.
11799 (u64at): Likewise.
11800 (fixup): Use byte access instead of v16at.
11801 (find_attr): Fix imporper usage of v32at.
11802 (read_data): Likewise.
11803 (list_file): Handle byte-swapping and unaligned strings.
11804 (grub_ntfs_label): Likewise.
11805
9b05cad7
VS
118062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11807
11808 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
11809 as it's not necessarily aligned.
11810
b3950b84
VS
118112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11812
11813 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
11814 redundant declaration.
11815 (grub_serial_init): Likewise.
11816 (grub_terminfo_init): Likewise.
11817
fcd232b7
VS
118182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11819
11820 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
11821 function.
11822 (ZAP_HASH_IDX): Likewise.
11823 (ZAP_LEAF_HASH_SHIFT): Likewise.
11824 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
11825 (LEAF_HASH): Likewise.
11826 (ZAP_LEAF_NUMCHUNKS): Likewise.
11827 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
11828 alignment invariants. Return pointer. All users updated.
11829 (ZAP_LEAF_ENTRY): Make into inline function.
11830 (NBBY): Removed.
11831 (xor): LIkewise.
11832 (xor_out): Use grub_crypto_xor.
11833 (dnode_get_path): Use grub_get_unaligned.
11834 (nvlist_find_value): Likewise.
11835 (grub_zfs_nvlist_lookup_uint64): Likewise.
11836 (grub_zfs_nvlist_lookup_string): Likewise.
11837 (get_nvlist_size): Likewise.
11838 (grub_zfs_open): Likewise.
11839 (fill_fs_info): Likewise.
11840 (grub_zfs_dir): Likewise.
11841 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
11842 alignment invariants.
11843 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
11844 necessarily aligned.
11845
f138623a
VS
118462011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11847
11848 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
11849
564840dc
VS
118502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11851
11852 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
11853 arithmetic to conserve alignment invariants.
11854
9b40df20
VS
118552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11856
11857 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
11858 redundant declaration.
11859 (grub_efiemu_mm_obtain_request): Likewise.
11860 (grub_efiemu_prepare): Likewise.
11861
d1c930f9
VS
118622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11863
11864 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
11865 to match types.
11866
4c5f3056
VS
118672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11868
11869 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
11870 case of aunaligned recptr.
11871 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
11872 alignment.
11873 (grub_hfsplus_btree_search): Handle unaligned index.
11874
728cba91
VS
118752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11876
11877 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
11878 to get freetag and skip.
11879
eb561f31
VS
118802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11881
11882 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
11883 array.
11884 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
11885 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
11886
20993fbb
VS
118872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11888
11889 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
11890 name for checksum and fix allocation algorithm.
11891
1f313b94
VS
118922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 * include/grub/types.h (grub_properly_aligned_t): New type.
11895 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
11896 (grub_get_unaligned16): Add explicit casts.
11897 (grub_get_unaligned32): Likewise.
11898 (grub_get_unaligned64): Likewise.
11899 (grub_set_unaligned16): New function.
11900 (grub_set_unaligned32): Likewise.
11901
47ae27ec
VS
119022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11903
11904 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
11905
78c2cd1c
VS
119062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11907
11908 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
11909 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
11910 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
11911
53072f9b
VS
119122011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11913
11914 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
11915 conditionals.
11916
055dc239
VS
119172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11918
11919 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
11920 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
11921
496bd074
VS
119222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11923
11924 Unify and improve RAID and crypto xor.
11925
11926 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
11927 changed to grub_crypto_xor
11928 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
11929 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
11930 Use bigger types when possible.
11931
ef6e4335
VS
119322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11933
11934 * grub-core/disk/raid.c (scan_devices): Fix condition.
11935
5d048bf2
VS
119362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11937
11938 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
11939 Make name a const ptr.
11940
ee533335
VS
119412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11942
11943 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
11944 first argument a const pointer.
11945 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
11946 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
11947 proto.
11948 (grub_children_iterate): Likewise.
11949 (grub_machine_mmap_iterate): Remove redundant declaration.
11950
cc8f3668
VS
119512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11952
11953 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
11954 (grub_cmd_acpi) [!x86]: Disable EBDA.
11955
c5fc563a
VS
119562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11957
11958 Enable UTF8 in gnulib regexp.
11959
11960 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
11961 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
11962 (isupper): Use grub_isupper.
11963 (isascii): New inline function.
11964 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
11965 * grub-core/lib/posix_wrap/wctype.h: Likewise.
11966 * grub-core/normal/charset.c (grub_utf8_process): New function.
11967 (grub_utf8_to_utf16): Use grub_utf8_process.
11968 (grub_encode_utf8_character): New function.
11969 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
11970 * include/grub/charset.h (grub_utf8_process): New declaration.
11971 (grub_encode_utf8_character): Likewise.
11972 * include/grub/misc.h (grub_islower): New inline function.
11973 (grub_isupper): Likewise.
11974 (grub_strchrsub): Moved down to fix the definitions.
11975
0af2346f
VS
119762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11977
11978 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
11979 specification.
11980
74dbd244
VS
119812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11982
11983 * include/grub/loader.h (grub_loader_register_preboot_hook):
11984 Use struct preboot * and not void * for handle. All users updated.
11985 (grub_loader_unregister_preboot_hook): Likewise.
11986
1bc8f60d
VS
119872011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
11988
11989 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
11990 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
11991 UTF-16-BE. All users updated.
11992 (grub_hfsplus_cmp_catkey): Fix unicode handling.
11993 (grub_hfsplus_iterate_dir): Likewise.
11994 (grub_hfsplus_label): Likewise.
11995
48d6e456
VS
119962011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
11997
11998 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
11999
bf3a3857
VS
120002011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
12001
12002 Add missing const qualifiers.
12003
12004 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
12005 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
12006 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
12007 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
12008 (grub_lvm_check_flag): Likewise.
12009 * grub-core/efiemu/i386/coredetect.c
12010 (grub_efiemu_get_default_core_name): Likewise
12011 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
12012 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
12013 * grub-core/fs/ntfs.c (fixup): Likewise.
12014 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
12015 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
12016 (fzap_lookup): Likewise.
12017 (zap_lookup): Likewise.
12018 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
12019 * grub-core/lib/legacy_parse.c (check_option): Likewise.
12020 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
12021 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
12022 (grub_freebsd_add_meta_module): Likewise.
12023 (grub_cmd_freebsd_module): Likewise.
12024 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
12025 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
12026 (grub_xnu_writetree_get_size): Likewise.
12027 (grub_xnu_writetree_toheap_real): Likewise.
12028 (grub_xnu_find_key): Likewise.
12029 (grub_xnu_create_key): Likewise.
12030 (grub_xnu_create_value): Likewise.
12031 (grub_xnu_register_memory): Likewise.
12032 (grub_xnu_check_os_bundle_required): Likewise.
12033 (grub_xnu_scan_dir_for_kexts): Likewise.
12034 (grub_xnu_load_kext_from_dir): Likewise.
12035 * grub-core/normal/color.c (color_list): Likewise.
12036 * grub-core/normal/completion.c (current_word): Likewise.
12037 * grub-core/normal/menu_entry.c (insert_string): Likewise.
12038 * grub-core/term/serial.c (grub_serial_find): Likewise.
12039 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
12040 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
12041 Likewise.
12042 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
12043 (grub_freebsd_add_meta_module): Likewise.
12044 * include/grub/lib/arg.h (grub_arg_option): Likewise.
12045 * include/grub/net.h (grub_net_card_driver): Likewise.
12046 (grub_net_card): Likewise.
12047 (grub_net_app_protocol): Likewise.
12048 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
12049 * include/grub/serial.h (grub_serial_find): Likewise.
12050 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
12051 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
12052 (grub_xnu_create_value): Likewise.
12053 (grub_xnu_find_key): Likewise.
12054 (grub_xnu_scan_dir_for_kexts): Likewise.
12055 (grub_xnu_load_kext_from_dir): Likewise.
12056
12057 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
12058 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
12059 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
12060 Moved from here ...
12061 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
12062
112b4837
CW
120632011-11-28 Colin Watson <cjwatson@ubuntu.com>
12064
12065 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
12066
49e891ac
VS
120672011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
12068
12069 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
12070 (read_device): Fix size calculation.
12071
fd258e5c
RM
120722011-11-25 Robert Millan <rmh@gnu.org>
12073
12074 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
12075 (find_root_device_from_libzfs): Add zpool output parser to be used
12076 as fallback when libzfs isn't available.
12077
78845dc2
SG
120782011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
12079
12080 * po/Makefile.in.in: Add missing escape-continuation.
12081
adac5211
VS
120822011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
12083
12084 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
12085
10b64f1c
VS
120862011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12087
12088 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
12089
bb416954
VS
120902011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12091
12092 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
12093
bdfe9eeb
VS
120942011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12095
12096 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
12097
581ffa8a
VS
120982011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
12099
12100 * grub-core/lib/adler32.c: Add missing license specification.
12101 * grub-core/lib/crc64.c: Likewise.
12102 * grub-core/loader/i386/pc/plan9.c: Likewise.
12103 * grub-core/partmap/plan.c: Likewise.
12104
2536cf64
LK
121052011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
12106
12107 Add facility to debug GRUB with gdb under qemu.
12108
12109 * grub-core/gdb_grub.in: New file.
12110 * grub-core/gmodule.pl.in: Likewise.
12111 * grub-core/Makefile.core.def (gmodule.pl): New script.
12112 (gdb_grub): Likewise.
12113
bc108a4a
VS
121142011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12115
12116 * util/grub-mount.c (argp_parser): Accept relative pathes.
12117 * util/grub-fstest.c (argp_parser): Likewise.
12118
111c1778
VS
121192011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 Plan9 support.
12122
12123 * Makefile.util.def (libgrubmods): Add
12124 grub-core/partmap/plan.c.
12125 * docs/grub.texi: Notice Plan9 support.
12126 * grub-core/Makefile.core.def (plan9): New module.
12127 (part_plan): Likewise.
12128 * grub-core/loader/i386/pc/plan9.c: New file.
12129 * grub-core/partmap/plan.c: Likewise.
12130 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
12131 define.
12132 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
12133 * include/grub/mm.h (grub_extend_alloc): New inline function.
12134
c30be3b6
VS
121352011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12136
12137 Make Reed-Solomon faster by using power of generator representation of
12138 GF(256)*.
12139
12140 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
12141 (gf_double_t): Likewise.
12142 (gf_invert): Removed.
12143 (gf_powx): New array.
12144 (gf_powx_inv): Likewise.
12145 (scratch): Move higher.
12146 (gf_reduce): Removed.
12147 (gf_mul): Use powx.
12148 (gf_invert): Likewise.
12149 (init_inverts): Replaced with ...
12150 (init_powx): ...this. All users updated.
12151 (pol_evaluate): Replace multiplications with additions.
12152 (rs_encode): Likewise.
12153 (gauss_eliminate): Call gf_invert.
12154 (grub_reed_solomon_add_redundancy): Call init_powx.
12155 (grub_reed_solomon_recover): Call init_powx unconditionally.
12156
fa5aeffc
VS
121572011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12158
12159 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
12160
a346b81c
VS
121612011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
12164 disk->partiton for safety.
12165
d89ee414
VS
121662011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12167
12168 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
12169 Fix a memory leak.
12170 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
12171
91ee7b6d
VS
121722011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12173
12174 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
12175
91e5a33d
VS
121762011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12177
12178 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
12179
9edd7be2
VS
121802011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12181
12182 Fix spaces handling in proc/self/mountinfo.
12183
12184 * util/getroot.c (unescape): New function.
12185 (grub_find_root_device_from_mountinfo): Use unescape.
12186
ba102053
VS
121872011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12188
12189 Support ZFS embedding.
12190
12191 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
12192 (grub_zfs_fs): Register grub_zfs_embed.
12193
aa94b870
VS
121942011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12195
12196 Fix MIPS compilation.
12197
12198 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
12199 * include/grub/offsets.h: Rename decompressor fields from
12200 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
12201 * util/grub-mkimage.c (image_targets): Use new names.
12202
5fbdac14
VS
122032011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12204
12205 Defer multiboot device parsing until we're in compressed part.
12206
12207 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
12208 bsd_part. setdevice has fallen into disuse.
12209 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
12210 (bsd_part): Likewise.
12211 (boot_dev): New variable.
12212 (multiboot_trampoline): Don't parse multiboot device.
12213 Pass multiboot device in %edx.
12214 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
12215 grub_boot_device.
12216 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
12217 Likewise.
12218 * grub-core/kern/i386/pc/startup.S: Save edx.
12219 (grub_boot_drive): Removed.
12220 (grub_install_dos_part): Likewise.
12221 (grub_install_bsd_part): Likewise.
12222 (grub_boot_device): New variable.
12223 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
12224 (grub_install_bsd_part): Likewise.
12225 (grub_boot_drive): Likewise.
12226 (grub_boot_device): New variable.
12227 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
12228 Removed.
12229 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12230 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
12231 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
12232 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
12233 * util/grub-install.in: Remove redundant condition.
12234
691cbb58
VS
122352011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12236
12237 Fix bug introduced by previous commit.
12238
12239 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
12240
60240b8b
VS
122412011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12242
12243 Use decompressors framework on i386-pc. It increases core size
12244 by 46 bytes but improves compatibility and maintainability.
12245
12246 * grub-core/Makefile.core.def (lzma_decompress): New image.
12247 (kernel): Add i386_pc_ldflags.
12248 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
12249 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
12250 to real_to_prot, prot_to_real and device info.
12251 * include/grub/offsets.h: Renamed decompressor offsets.
12252 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
12253 (image_target_desc): Remove raw_size and rename decompressor fields.
12254 (compress_kernel): Handle lzma.
12255 (generate_image): Handle decompressors on i386-pc.
12256
e9d3421c
VS
122572011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12258
12259 * configure.ac: Add -fno-asynchronous-unwind-tables.
12260
2b23074a
VS
122612011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12262
12263 Move assembly code to C by using intwrap. It increases core size
12264 by 88 bytes but improves compatibility and maintainability.
12265
12266 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
12267 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
12268 ... here. Translated to C.
12269 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
12270 * grub-core/term/i386/pc/console.c (grub_console_getkey):
12271 ... here. Translated to C.
12272 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
12273 * grub-core/term/i386/pc/console.c (grub_console_getxy):
12274 ... here. Translated to C.
12275 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
12276 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
12277 ... here. Translated to C.
12278 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
12279 * grub-core/term/i386/pc/console.c (grub_console_cls):
12280 ... here. Translated to C.
12281 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
12282 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
12283 ... here. Translated to C.
12284 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
12285 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
12286 Translated to C.
12287 * grub-core/term/i386/pc/console.c (int10_9): New function.
12288 (grub_console_putchar): Likewise.
12289 * include/grub/i386/pc/console.h: Removed the not anymore shared
12290 functions.
12291
678f4b67
VS
122922011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12293
12294 Move grub_chainloader_real_boot out of the kernel.
12295
12296 * grub-core/Makefile.am: Remove machine/loader.h.
12297 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12298 Removed.
12299 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
12300 variable.
12301 (grub_relocator16_keep_a20_enabled): Likewise.
12302 (grub_relocator16_boot): Fill new variables.
12303 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
12304 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
12305 relocator.
12306 (grub_chainloader_unload): Likewise.
12307 (grub_chainloader_cmd): Likewise.
12308 * include/grub/i386/pc/loader.h: Removed.
12309 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
12310 and esi. All initialisers updated.
12311
4626edf6
VS
123122011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
123132011-11-12 Colin Watson <cjwatson@ubuntu.com>
12314
12315 * Makefile.util.def (grub-mount): New util.
12316 * .bzrignore: Add grub-mount.
12317 * configure.ac: Check for fuse and enable grub-mount if available.
12318 * docs/man/grub-mount.h2m: New file.
12319 * util/grub-mount.c: Likewise.
12320
10f0117b
VS
123212011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12322
12323 * grub-core/commands/efi/fixvideo.c: Gettextize.
12324 * grub-core/commands/hashsum.c: Likewise.
12325 * grub-core/commands/i386/cmostest.c: Likewise.
12326 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12327 * grub-core/commands/i386/pc/lsapm.c: Likewise.
12328 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12329 * grub-core/commands/lsmmap.c: Likewise.
12330 * grub-core/commands/menuentry.c: Likewise.
12331 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
12332 * grub-core/commands/setpci.c: Likewise.
12333 * grub-core/loader/i386/bsd.c: Likewise.
12334 * grub-core/loader/i386/linux.c: Likewise.
12335 * util/getroot.c: Likewise.
12336 * util/grub-editenv.c: Likewise.
12337 * util/grub-fstest.c: Likewise.
12338 * util/grub-mkfont.c: Likewise.
12339 * util/grub-mkimage.c: Likewise.
12340 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12341 * util/grub-pe2elf.c: Likewise.
12342 * util/grub-probe.c: Likewise.
12343 * util/grub-setup.c: Likewise.
12344 * util/ieee1275/ofpath.c: Likewise.
12345 * util/misc.c: Likewise.
12346 * util/raid.c: Likewise.
12347
566f779b
RM
123482011-11-11 Robert Millan <rmh@gnu.org>
12349
12350 * util/getroot.c (grub_util_get_geom_abstraction): Remove
12351 __attribute__((unused)) from `os_dev', which *is* being used.
12352
b50787de
VS
123532011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12354
12355 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
12356 forgotten define.
12357 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
12358 GRUB_IA64_DL_GOT_ALIGN.
12359 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
12360 GRUB_IA64_DL_TRAMP_ALIGN.
12361
119d11c8
VS
123622011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12363
12364 Replace grub_fatal with normal errors in i386 linux loader.
12365
12366 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
12367 (allocate_pages): Check find_efi_mmap_size return value.
12368 (grub_e820_add_region): Return error.
12369 (grub_linux_boot): Check mmap return value.
12370
6e0632e2
VS
123712011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12372
12373 * grub-core/commands/acpihalt.c: Gettextized.
12374 * grub-core/commands/cacheinfo.c: Likewise.
12375 * grub-core/commands/cmp.c: Likewise.
12376 * grub-core/commands/efi/loadbios.c: Likewise.
12377 * grub-core/commands/gptsync.c: Likewise.
12378 * grub-core/commands/ieee1275/suspend.c: Likewise.
12379 * grub-core/commands/legacycfg.c: Likewise.
12380 * grub-core/commands/memrw.c: Likewise.
12381 * grub-core/commands/minicmd.c: Likewise.
12382 * grub-core/commands/parttool.c: Likewise.
12383 * grub-core/commands/time.c: Likewise.
12384 * grub-core/commands/videoinfo.c: Likewise.
12385 * grub-core/disk/geli.c: Likewise.
12386 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
12387 * grub-core/disk/luks.c: Likewise.
12388 * grub-core/disk/lvm.c: Likewise.
12389 * grub-core/font/font_cmd.c: Likewise.
12390 * grub-core/fs/zfs/zfscrypt.c: Likewise.
12391 * grub-core/fs/zfs/zfsinfo.c: Likewise.
12392 * grub-core/gfxmenu/view.c: Likewise.
12393 * grub-core/kern/emu/hostdisk.c: Likewise.
12394 * grub-core/kern/emu/main.c: Likewise.
12395 * grub-core/kern/emu/misc.c: Likewise.
12396 * grub-core/kern/emu/mm.c: Likewise.
12397 * grub-core/kern/mips/arc/init.c: Likewise.
12398 * grub-core/kern/mips/loongson/init.c: Likewise.
12399 * grub-core/kern/partition.c: Likewise.
12400 * grub-core/lib/i386/halt.c: Likewise.
12401 * grub-core/lib/mips/arc/reboot.c: Likewise.
12402 * grub-core/lib/mips/loongson/reboot.c: Likewise.
12403 * grub-core/loader/i386/pc/chainloader.c: Likewise.
12404 * grub-core/loader/i386/xnu.c: Likewise.
12405 * grub-core/loader/multiboot.c: Likewise.
12406 * grub-core/net/bootp.c: Likewise.
12407 * grub-core/net/net.c: Likewise.
12408 * grub-core/normal/term.c: Likewise.
12409 * grub-core/partmap/bsdlabel.c: Likewise.
12410 * grub-core/parttool/msdospart.c: Likewise.
12411 * grub-core/term/gfxterm.c: Likewise.
12412 * grub-core/term/terminfo.c: Likewise.
12413 * grub-core/video/i386/pc/vbe.c: Likewise.
12414 * util/grub-menulst2cfg.c: Likewise.
12415 * util/grub-mkdevicemap.c: Likewise.
12416 * util/grub-mklayout.c: Likewise.
12417 * util/grub-mkrelpath.c: Likewise.
12418 * util/grub-script-check.c: Likewise.
12419 * util/ieee1275/grub-ofpathname.c: Likewise.
12420 * util/resolve.c: Likewise.
12421
073aa7a9
VS
124222011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12423
12424 Support %1$d syntax.
12425
12426 * tests/printf_unit_test.c: New file.
12427 * Makefile.util.def (printf_test): New test.
12428 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
12429
c76b5417
VS
124302011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12431
12432 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
12433 fix.
12434
df067ad1
VS
124352011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12436
12437 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
12438 dprintf.
12439 * grub-core/font/font.c (grub_font_load): Likewise.
12440
5b289bc5
VS
124412011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12442
12443 * util/grub-macho2img.c: Add comment concerning gettext.
12444 * grub-core/lib/legacy_parse.c: Likewise.
12445
c1860f87
VS
124462011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12447
12448 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
12449 (grub_xvasprintf): Likewise.
12450
d35d0d37
VS
124512011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12452
12453 Add const keyword to grub_env_get and gettextize week days.
12454
12455 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
12456 (grub_read_hook_datetime): Return const char *.
12457 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
12458 updated.
12459 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12460 Mark for gettext.
12461 (grub_get_weekday_name): Return const char *. Call gettext.
12462 * grub-core/script/argv.c (grub_script_argv_append): Receive const
12463 char * and len as the argument. All users updated.
12464 (grub_script_argv_split_append): Receive const char *.
12465 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
12466 * include/grub/env.h (grub_env_get): Likewise.
12467 (grub_env_read_hook_t): Return const char *.
12468 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
12469 (grub_script_argv_split_append): Likewise.
12470
9aed8a71
VS
124712011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12472
12473 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
12474
067fdf00
VS
124752011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12476
12477 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
12478 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
12479
a8bd9d39
VS
124802011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12481
12482 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
12483 Fix prototype.
12484
f7ce5baf
VS
124852011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12486
12487 Fix mips compilation.
12488
12489 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
12490 normal decoder.
12491 (hashes): Use in embed decoder as well (for sizes).
12492 (dec_stream_header): Fix embed decompressor logic.
12493 (dec_stream_footer): Likewise.
12494
9bb182f3
VS
124952011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12496
12497 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
12498 an error and not a fatal on unrecognised relocation types.
12499
63a9e6f6
VS
125002011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12501
12502 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
12503 Issue error rather than printf on unknown arguments.
12504
4c458569
VS
125052011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12506
12507 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
12508 Make buf a const.
12509
e2d22baf
VS
125102011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12511
12512 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
12513 Fix module name.
12514
53dc8590
VS
125152011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12516
12517 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
12518 leftover debug printf.
12519
6c189294
VS
125202011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12521
12522 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
12523
f7688369
VS
125242011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12525
12526 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
12527 A stylistic fix.
12528
11a775a3
VS
125292011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12530
12531 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
12532
33f784e8
SL
125332011-11-10 Shea Levy <slevy@tieronedesign.com>
12534
12535 Allow all modules to perform serial IO
12536
12537 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
12538 * include/grub/serial.h (grub_serial_port_configure): New inline
12539 function.
12540 (grub_serial_port_fetch): Likewise.
12541 (grub_serial_port_put): Likewise.
12542 (grub_serial_port_fini): Likewise.
12543 (grub_serial_find): New proto.
12544
f6276525
VS
125452011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12546
12547 Put symlink at the end of the node and fix a potential
12548 memory corruption.
12549
12550 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
12551 Make symlink into an array.
12552 (set_rockridge): Set have_symlink and alloc_dirents.
12553 (grub_iso9660_read_symlink): Use new layout.
12554 (grub_iso9660_iterate_dir): Fix memory corruption.
12555 Use new layout.
12556 (grub_iso9660_dir): Set have_symlink.
12557 (grub_iso9660_open): Likewise.
12558
c3591189
VS
125592011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12560
12561 Remove local keyword.
12562
12563 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
12564 (version_test_gt): Likewise.
12565 (version_find_latest): Likewise.
12566 (gettext_printf): Likewise.
12567 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
12568
cb544caa
VS
125692011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12570
12571 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
12572
45bd824d
VS
125732011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12574
12575 Fix ZFS memory and resource leaks.
12576
12577 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
12578 All users updated.
12579 Free type on exit.
12580 (fill_vdev_info): New parameter inserted. All users updated.
12581 (check_pool_label): Likewise.
12582 (scan_disk): Likewise.
12583 (scan_devices): Close non-inserted disks.
12584 (fzap_iterate): Free l.
12585 (unmount_device): Free children descripto memory.
12586
ad9a2f44
VS
125872011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12588
12589 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
12590 argument (access out of bounds).
12591
6b68db81
VS
125922011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12593
12594 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
12595 >= 6 drives.
12596
28840fda
VS
125972011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
12598
12599 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
12600 Fix declaration.
12601
8a5a3a5b
VS
126022011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12603
12604 Fix several memory leaks.
12605
12606 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
12607 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
12608 (grub_cpio_dir): Likewise.
12609 * grub-core/fs/fat.c (grub_fat_label): Likewise.
12610 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
12611 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
12612 (grub_romfs_label): Likewise.
12613 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
12614 (squash_unmount): New function.
12615 (grub_squash_dir): Fix memory leak.
12616 (grub_squash_open): Likewise.
12617 (grub_squash_read): Likewise.
12618 (grub_squash_mtime): Likewise.
12619 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
12620 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
12621 * util/grub-fstest.c (fstest): Likewise.
12622
57b01250
VS
126232011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12624
12625 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
12626 avoid accessing beyond the array.
12627
19e81ba7
VS
126282011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12629
12630 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
12631
52b656c0
VS
126322011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12633
12634 Several AFFS fixes.
12635
12636 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
12637 (GRUB_AFFS_FLAG_FFS): Removed.
12638 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
12639 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
12640 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
12641 (grub_fshelp_node): Make block 32-bit.
12642 Add block_cache and last_block_cache.
12643 (grub_affs_read_block): Fill and use block cache.
12644 (grub_affs_read_file): Removed.
12645 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
12646 boot block.
12647 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
12648 safety.
12649 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
12650 space.
12651 (grub_affs_close): Free block cache.
12652 (grub_affs_read): Use grub_fshelp_read_file directly.
12653
438a746a
VS
126542011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12655
12656 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
12657 with no error set.
12658
49a45021
VS
126592011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12660
12661 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
12662 used variable.
12663 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12664 Likewise.
12665
3ae17eb8
VS
126662011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12667
12668 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
12669
12670 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
12671 byteswap when needed.
12672
27610c38
VS
126732011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 Fix FreeBSD compilation.
12676
12677 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
12678 to avoid circular dependency.
12679 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
12680 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
12681 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
12682
4a19b601
VS
126832011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12684
12685 Fix ZFS crypto error types.
12686
12687 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
12688 (grub_gcm_decrypt): Likewise.
12689 (grub_zfs_load_key_real): Fix error code type. Handle possible error
12690 from PBKDF2.
12691
958ee221
VS
126922011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12693
12694 Illumos support.
12695
12696 * Makefile.util.def (10_illumos): New script.
12697 * configure.ac: Set COND_HOST_ILLUMOS.
12698 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
12699 Support Illumos calls.
12700 (find_partition_start) [__sun__]: Likewise.
12701 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
12702 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
12703 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
12704 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
12705 device.
12706 * util/grub-probe.c (probe) [__sun__]: Do character check.
12707 * util/grub.d/10_illumos.in: New file.
12708
cac14fb6
VS
127092011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12710
12711 Support escaped commas in hostdisk.
12712
12713 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
12714 (find_grub_drive): Use unescape_cmp.
12715 (make_device_name): Escape commas.
12716
78e08dc3
VS
127172011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12718
12719 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
12720
9f421dd1
VS
127212011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12722
12723 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
12724 variable.
12725
ed64e9e2
VS
127262011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12727
12728 Support trampoline jumps on powerpc.
12729
12730 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
12731 __ia64__ path.
12732 (grub_dl_load_segments): Set mod->sz.
12733 (grub_dl_flush_cache): Flush whole space occupied by module, not just
12734 segments.
12735 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
12736 (jump): Likewise.
12737 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
12738 function.
12739 (trampoline): New struct.
12740 (trampoline_template): New const.
12741 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
12742 * include/grub/dl.h (grub_dl): Add sz element.
12743 [__powerpc__]: Follow __ia64__.
12744 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
12745 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
12746 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
12747 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
12748
3084ede4
VS
127492011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
12750
12751 ZFS crypto support.
12752
12753 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
12754 * grub-core/Makefile.core.def (zfscrypt): New module.
12755 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
12756 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
12757 it. All users updated.
12758 (grub_zfs_decrypt): New var.
12759 (grub_zfs_load_key): Likewise.
12760 (zio_checksum_functions): Add SHA256+MAC.
12761 (zio_checksum_verify): Handle incomplete comparison due to MAC.
12762 (zio_read): Handle encrypted blocks.
12763 (zap_verify): Remove incorrect check.
12764 (fzap_iterate): Handle non-standard fzap.
12765 (zap_iterate): Likewise.
12766 (zap_iterate_u64): New function.
12767 (dnode_get_fullpath): Load keys.
12768 * grub-core/fs/zfs/zfscrypt.c: New file.
12769 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
12770 (grub_crypto_ecb_encrypt): Make input const.
12771 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
12772 (grub_crypto_ecb_encrypt): Make input const.
12773 (GRUB_CIPHER_AES): New macro.
12774 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
12775 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
12776 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
12777 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
12778 prefix. All users updated.
12779 (grub_zfs_add_key): New proto.
12780 (grub_zfs_decrypt): Likewise.
12781 (grub_zfs_load_key): Likewise.
12782 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
12783 * util/grub-fstest.c (options): Add -K option.
12784 (argp_parser): Likewise.
12785
b632b404
VS
127862011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
12787
12788 Support zle compression on ZFS.
12789
12790 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
12791 (decomp_table): Add zle.
12792 * include/grub/zfs/zio.h (zio_compress): Add zle.
12793
c7ba4f69
VS
127942011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
12795
12796 Support BtrFS embedding.
12797
12798 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
12799 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
12800 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
12801 * util/grub-setup.c (setup): Use fs embedding if available.
12802 Add additional sanity check.
12803
455377d9
VS
128042011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
12805
12806 * util/grub-install.in: Fix condition for config_opt.
12807
c2fd16ca
VS
128082011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 Support third redundancy strip on raidz3.
12811
12812 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
12813 Return error on singularity. All users updated.
12814 (read_device): Don't stop on 3rd failure on raidz3.
12815
8622923b
VS
128162011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12817
12818 Support case-insensitive ZFS subvolumes.
12819
12820 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
12821 All users updated.
12822 (zap_hash): Likewise.
12823 (name_cmp): New function.
12824 (zap_leaf_array_equal): New parameter case_insensitive.
12825 All users updated.
12826 (zap_leaf_lookup): Likewise.
12827 (fzap_lookup): Likewise.
12828 (zap_lookup): Likewise.
12829 (dnode_get_path): New parameter case_insensitive. Retrieve case
12830 sensitiviness of a volume. All users updated.
12831 (dnode_get_fullpath): New parameter case_insensitive.
12832 All users updated.
12833 (grub_zfs_dir): Set info.case_insensitiveness.
12834
95f2e860
VS
128352011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12836
12837 Support second redundancy strip on raidz(2,3).
12838
12839 * grub-core/fs/zfs/zfs.c (powx): New array.
12840 (powx_inv): Likewise.
12841 (poly): New const.
12842 (xor_out): New function.
12843 (gf_mul): Likewise.
12844 (recovery): Likewise.
12845 (read_device): Use second redundancy strip.
12846
11ee4389
VS
128472011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12848
12849 Use a power of generator representation of GF(256) multiplication group
12850 to save space time and complexity.
12851
12852 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
12853 (raid6_table2): Likewise.
12854 (powx): New array.
12855 (powx_inv): Likewise.
12856 (poly): New const.
12857 (grub_raid_block_mul): Replace with ...
12858 (grub_raid_block_mulx): ...this.
12859 (grub_raid6_init_table): Rewritten.
12860 (grub_raid6_recover): Use power of generator representation.
12861
09e2763f
VS
128622011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12863
12864 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
12865 for the right device.
12866
8bec9a28
VS
128672011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12868
12869 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
12870 expected by grub-mkimage and it's more clear since there is no implicit
12871 padding.
12872
dbd3a32e
VS
128732011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12874
12875 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
12876 disk.
12877 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
12878
182c872a
PMH
128792011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
12880
12881 * util/grub-mkrescue.in: Fix handling xorriso option.
12882
1e51cabd
VS
128832011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12884
12885 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
12886 NULL.
12887
9cc3581d 128882011-11-03 crocket <crockabiscuit@gmail.com>
12889
12890 * util/grub.d/10_linux.in: Add Slackware initrd naming.
12891
158dc1ea
VS
128922011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12893
12894 XZ CRC64 and SHA256 support.
12895
12896 * Makefile.util.def (libgrubmods): Add crc64.c.
12897 * grub-core/Makefile.core.def (crc64): New module.
12898 * grub-core/lib/crc64.c: New file.
12899 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
12900 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
12901 Fix the type.
12902 (MAX_HASH_SIZE): New define.
12903 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
12904 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
12905 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
12906 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
12907 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
12908 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
12909 Handle non-crc32 hashes.
12910 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
12911 (dec_stream_header): Handle non-crc32 hashes.
12912 (dec_stream_footer): Likewise.
12913 (dec_block_header): Likewise.
12914 (dec_main): Likewise.
12915 (xz_dec_init): Likewise.
12916 (xz_dec_reset): Likewise.
12917 (xz_dec_end): Likewise.
12918 * util/import_gcry.py: Add CRC64 line.
12919
9d9b3d2f
VS
129202011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12921
12922 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
12923 as well.
12924
7d0ac931
VS
129252011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12926
12927 Make reiserfs label retrieval similar to other *_label functions.
12928
12929 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
12930 (REISERFS_MAX_LABEL_LENGTH): Removed.
12931 (REISERFS_LABEL_OFFSET): Likewise.
12932 (grub_reiserfs_label): Rewritten.
12933
129342011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12935
12936 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
12937 field.
12938
cf5ba824
VS
129392011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12940
12941 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
12942
17744004
VS
129432011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
12944
12945 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
12946 drive failure on both raidz and raidz2.
12947
aca5aefc
VS
129482011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
12949
12950 Fix RAIDZ(2) for >= 5 devices.
12951
12952 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
12953 asize argument. All users updated.
12954
ce8ca56e
VS
129552011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 Fix RAIDZ(2).
12958
12959 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
12960 (fill_vdev_info_real): Set ashift.
12961 (read_device): Rewrite RAIDZ part based on reverse engineering.
12962
7c01e783
VS
129632011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12964
12965 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
12966 don't report potentially unavialiable fields in debug output.
12967 (find_path): Fix double-free and memory leak.
12968
ce109e84
VS
129692011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 Read label on UFS1.
12972
12973 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
12974 (grub_ufs_fs): Always set .label.
12975
87661123
VS
129762011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12977
12978 Use shifts in UFS.
12979
12980 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
12981 (grub_ufs_data): New field log2_blksz.
12982 (grub_ufs_read_file): Use shifts.
12983 (grub_ufs_mount): Check block size and logarithm it.
12984
46bc1dc2
VS
129852011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12986
12987 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
12988 long symlinks.
12989
19ee2987
VS
129902011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12991
12992 Handle symlinks and long names on tar and cpio.
12993
12994 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
12995 (ATTR_FILE): Likewise.
12996 (ATTR_DIR): Likewise.
12997 (ATTR_LNK): Likewise.
12998 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
12999 (grub_cpio_find_file): Fill mode, handle linkname field as well as
13000 L and K entries.
13001 (grub_cpio_mount): Zero-fill data.
13002 (handle_symlink): New function.
46bc1dc2
VS
13003 (grub_cpio_dir): Handle symlinks.
13004 (grub_cpio_open): Likewise.
13005 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 13006
c83a08d8
VS
130072011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 Fix iso9660 filename limitations and fix memory leaks.
13010
13011 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
13012 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
13013
45cdd3ea
VS
130142011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13015
13016 Fix JFS file name length limitations.
13017
13018 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
13019 (grub_jfs_diropen): Fix maximum filename length.
13020 (grub_jfs_getent): Fix filename length.
13021 (grub_jfs_lookup_symlink): Fix size checks.
13022
94ef05c2
VS
130232011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13024
13025 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
13026 string.
13027
785ab8c7
VS
130282011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13029
eb0b6b45
VS
13030 Leverage BFS implementation to read AFS.
13031
13032 * Makefile.util.def (libgrubmods): Add afs.c.
13033 * grub-core/Makefile.core.def (afs): New module
13034 * grub-core/fs/afs.c: New file.
13035 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
13036
130372011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13038
13039 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 13040
c4a1628f
VS
130412011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 * grub-core/fs/bfs.c: Run indent.
13044
5825b379
VS
130452011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 BFS implementation based on the specification.
13048
13049 * grub-core/fs/bfs.c: New file.
13050 * Makefile.util.def (libgrubmods): Add bfs.c.
13051 * grub-core/Makefile.core.def (bfs): New module.
13052
42b2a706
VS
130532011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13054
13055 * util/grub-fstest.c (cmd_cp): Clarify error message.
13056 (cmd_cmp): Likewise.
13057
61b99bfc
YB
130582011-10-30 Yves Blusseau <blusseau@zetam.org>
13059
13060 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
13061 and befs_be.
13062
faba3d16
VS
130632011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
13064
13065 Remove afs and befs because of copyright problem.
13066
13067 * grub-core/fs/afs.c: Removed.
13068 * grub-core/fs/afs_be.c: Removed.
13069 * grub-core/fs/befs.c: Removed.
13070 * grub-core/fs/befs_be.c: Removed.
13071 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
13072 * grub-core/Makefile.core.def (afs): Removed.
13073 (afs_be): Likewise.
13074 (befs): Likewise.
13075 (befs_be): Likewise.
13076
c39224b0
VS
130772011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13078
13079 Prefer rockridge over Joliet.
13080
13081 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
13082 to ...
13083 (set_rockridge): ... here.
13084 (grub_iso9660_mount): Check rockridge on the primary label when
13085 discovering. Ignore Joliet if Rockridge is present.
13086
e551115a
VS
130872011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13088
13089 Use shifts in nilfs2.
13090
13091 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
13092 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
13093 (grub_nilfs2_palloc_entries_per_group): Replace with ...
13094 (grub_nilfs2_log_palloc_entries_per_group): ... this.
13095 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
13096 (grub_nilfs2_entries_per_block): Replaced with ...
13097 (grub_nilfs2_log_entries_per_block_log): ... this.
13098 (grub_nilfs2_blocks_per_group): Replaced with ...
13099 (grub_nilfs2_blocks_per_group_log): ... this.
13100 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
13101 (grub_nilfs2_blocks_per_desc_block_log): ... this.
13102 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
13103 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
13104 (grub_nilfs2_palloc_entry_offset): Replaced ...
13105 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
13106 (grub_nilfs2_dat_translate): Use shifts.
13107 (grub_nilfs2_read_inode): Likewise.
13108 (GRUB_MOD_INIT): Ensure that logs are correct.
13109
564dd58c
VS
131102011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13111
13112 Use shifts in minix filesystem.
13113
13114 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
13115 (GRUB_MINIX_ZONE2SECT): Likewise.
13116 (grub_minix_data): Replace block_size with log_block_size.
13117 (grub_minix_read_file): Use shifts.
13118 (grub_minix_mount): Check block size and take a logarithm.
13119
ed9ba06d
VS
131202011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13121
13122 Use shifts in squash4.
13123
13124 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
13125 (squash_mount): Check block size and take logarithm.
13126 (direct_read): Use shifts.
13127
ad03fe76
VS
131282011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13129
13130 Correct befs block counting logic.
13131
13132 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
13133 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
13134 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
13135 (grub_afs_read_inode): Use block_shift.
13136 (RANGE_SHIFT): New definition.
13137 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
13138 unexpected conditions, use shifts and appropriate types.
13139 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
13140
6563f63d
VS
131412011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13142
13143 * grub-core/disk/raid.c (scan_devices): Check partition.
13144 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13145
5b1ae25f
VS
131462011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13147
13148 Support BFS (befs) UUID.
13149
13150 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
13151 (grub_afs_small_data_element_header): New struct.
13152 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
13153 (grub_afs_read_attribute) [MODE_BFS]: New function.
13154 (grub_afs_iterate_dir): Allocate for complete inode.
13155 (grub_afs_mount): Likewise.
13156 (grub_afs_uuid) [MODE_BFS]: New function.
13157 (grub_afs_fs) [MODE_BFS]: Add .uuid.
13158
f8d82408
VS
131592011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13160
13161 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
13162 (zfs_unmount): Fix memory leak.
13163
5773fb64
VS
131642011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13165
13166 Support NTFS reparse points.
13167
13168 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
13169 (symlink_descriptor): New struct.
13170 (grub_ntfs_read_symlink): New function.
13171 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
13172 (grub_ntfs_open): Likewise.
13173
91c3fdde
VS
131742011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13175
13176 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
13177
3be82e10
VS
131782011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13179
13180 fstest xnu_uuid subcommand.
13181
13182 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
13183 grub-core/commands/xnu_uuid.c.
13184 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
13185 (fstest): Handle xnu_uuid.
13186 (options): Document xnu_uuid.
13187 (argp_parser): Parse xnu_uuid.
13188
8e32442e
VS
131892011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13190
13191 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
13192 -l argument. Add newline at the end if printing.
13193 (GRUB_MOD_INIT): Document -l.
13194
52a05075
VS
131952011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13196
13197 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
13198
1869edb5
VS
131992011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13200
13201 ZFS multi-device and version 33 support.
13202
13203 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
13204 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
13205 (grub_zfs_data): Add multidev-ice-related fields.
13206 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
13207 (dva_get_offset): Make dva const.
13208 (zfs_fetch_nvlist): New function.
13209 (fill_vdev_info_real): Likewise.
13210 (fill_vdev_info): Likewise.
13211 (check_pool_label): Likewise.
13212 (scan_disk): Likewise.
13213 (scan_devices): Likewise.
13214 (read_device): Likewise.
13215 (read_dva): Likewise.
13216 (zio_read_gang): Use read_dva.
13217 (zio_read_data): Likewise.
13218 (zap_leaf_lookup): Add missing endian conversion.
13219 (zap_verify): Add missing endian conversion. All users updated.
13220 (fzap_lookup): Likewise.
13221 (fzap_iterate): Likewise.
13222 (dnode_get_path): Handle SA bonus.
13223 (nvlist_find_value): Make input const. All users updated.
13224 (unmount_device): New function.
13225 (zfs_unmount): Use unmount_device.
13226 (zfs_mount): Use scan_disk.
13227 (zfs_mtime): New function.
13228 (grub_zfs_open): Handle system attributes.
13229 (fill_fs_info): Likewise.
13230 (grub_zfs_dir): Likewise.
13231 (grub_zfs_fs): Add mtime.
13232 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
13233 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
13234 (SA_MTIME_OFFSET): Likewise.
13235 (SA_SYMLINK_OFFSET): Likewise.
13236 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
13237 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
13238 (fstest): Support zfsinfo.
13239 (argp_parser): Likewise.
13240
186b4028
VS
132412011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13242
13243 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
13244 error.
13245
132462011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
13247
13248 ZFS fixes.
13249
13250 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
13251 sharing the same block. Iterate over correct number of indices.
13252 (dnode_get_path): Handle symlinks correctly.
13253
c0584900
VS
132542011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13255
13256 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
13257
67e2bd71
VS
132582011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13259
13260 Read label on HFS+.
13261
13262 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
13263 (grub_hfsplus_btree_search): Fix types.
13264 (grub_hfsplus_label): Implement.
13265
e9cc6b7b
VS
132662011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
13269
19832ddb
VS
132702011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
13273
66b40850
VS
132742011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13275
13276 Fix symlink handling on iso9660.
13277
13278 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
13279 All users updated.
13280 (grub_iso9660_susp_iterate): Accept zero-size iterate.
13281 (grub_iso9660_read_symlink): Moved most of code ...
13282 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
13283
db821363
VS
132842011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13285
13286 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
13287 Use union to avoid breaking strict-aliasing rules.
13288
e1211949
VS
132892011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13290
13291 Support multi-extent iso files.
13292
13293 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
13294 Add node.
13295 (grub_fshelp_node): Revamp. All users updated.
13296 (FLAG_*): New enum.
13297 (read_node): New function.
13298 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
13299 All users updated.
13300 (grub_iso9660_mount): Don't attempt to read sua when there is none.
13301 (get_node_size): New function.
13302 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
13303 entries.
13304 Fix memory leak on . and ..
13305 (grub_iso9660_read): Use read_node.
13306 (grub_iso9660_close): Free node.
13307
d4888031
VS
133082011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13309
13310 Fix tar 4G limit and handle paths containing dot.
13311
13312 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
13313 (canonicalize): New function.
13314 (grub_cpio_find_file): Use canonicalize. Store offs in
13315 grub_disk_addr_t.
13316 (grub_cpio_dir): Use grub_disk_addr_t.
13317 (grub_cpio_open): Likewise.
13318
9f12e664
VS
133192011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13320
13321 Fix handling of uncompressed blocks on squashfs and break 4G limit.
13322
13323 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
13324 unused flags.
13325 (grub_squash_inode): Add long_file and block_size.
13326 (grub_squash_cache_inode): New struct.
13327 (grub_squash_dirent): Make types into enum.
13328 (SQUASH_TYPE_LONG_REGULAR): New type.
13329 (grub_squash_frag_desc): Add field size.
13330 (SQUASH_BLOCK_FLAGS): New enum.
13331 (grub_squash_data): Use grub_squash_cache_inode.
13332 (grub_fshelp_node): Make ino_chunk 64-bit.
13333 (read_chunk): Minor argument change. All users updated.
13334 (squash_mount): Use correct le_to_cpu.
13335 (grub_squash_open): Handle LONG_REGULAR.
13336 (direct_read): New function.
13337 (grub_squash_read_data): Handle blocks correctly.
13338
9f326fba
VS
133392011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13340
13341 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
13342
f4d9b64b
VS
133432011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13344
13345 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
13346
5bbd28b8
VS
133472011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13348
13349 Fix 2G limit on ZFS.
13350
13351 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
13352 types.
13353 (uberblock_verify): Likewise.
13354 (dmu_read): Likewise.
13355 (grub_zfs_read): Likewise. Remove invalid cast.
13356
68c72069
VS
133572011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13358
13359 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
13360 (grub_jfs_blkno): Fix incorrect shift.
13361 (grub_jfs_read_file): Use more appropriate types.
13362
6e536dc8
VS
133632011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13364
13365 Support triple indirect on minix2 and minix3.
13366
13367 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
13368 Declare triple_indir_zone.
13369 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
13370 indirect.
13371
e0864e7a
VS
133722011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13373
13374 Minix FS fixes.
13375
13376 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
13377 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
13378 Rename ctime to mtime. All users updated.
13379 (grub_minix_get_file_block): Fix types and double indirect computations.
13380
89481cab
VS
133812011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13382
13383 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
13384 if no label is found.
13385 (grub_fat_iterate_dir): Fix file size type.
13386 (grub_fat_iterate_dir): Likewise.
13387
f646e143
VS
133882011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13389
13390 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
13391 save some space.
13392 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
13393 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13394
534d769e
VS
133952011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13396
13397 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
13398
e084ba18
VS
133992011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13400
13401 * util/import_gcry.py: Accept space between # and include.
13402
3471ecdf
VS
134032011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13404
13405 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
13406
124df5f6
VS
134072011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13408
13409 Fine grainely disable warnings on lexer. Remove Wno-error on it.
13410
13411 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
13412 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
13413 yylex_strncpy.
13414 * grub-core/script/yylex.l: Add fine-grained #pragma.
13415
4defb8d5
VS
134162011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13417
13418 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
13419 New inline function.
13420 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
13421 Likewise.
13422 (memset) [GRUB_UTIL]: Likewise.
13423 (memcmp) [GRUB_UTIL]: Likewise.
13424
4e94ae65
VS
134252011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13426
13427 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
13428 inline function rather than a define.
13429
18c575e5
VS
134302011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13431
13432 * util/grub-setup.c: Add missing include.
13433
f8bc22a8
VS
134342011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13435
13436 * util/ieee1275/grub-ofpathname.c: Add missing include.
13437
3ce69fc9
VS
134382011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13439
13440 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
13441 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
13442 Likewise.
13443
d1e293bb
VS
134442011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13445
13446 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
13447 grub_memcmp usage.
13448
7a5c54a4
VS
134492011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13450
13451 * util/grub-install.in: Add datarootdir as per automake manual
13452 suggestion.
13453 * util/grub-mknetdir.in: Likewise.
13454
134552011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
13456
13457 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
13458 suggestion.
13459 * util/grub.d/10_kfreebsd.in: Likewise.
13460 * util/grub.d/10_linux.in: Likewise.
13461 * util/grub.d/10_netbsd.in: Likewise.
13462 * util/grub.d/10_windows.in: Likewise.
13463 * util/grub.d/20_linux_xen.in: Likewise.
13464
766f7d08
VS
134652011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
13466
13467 Remove redundant grub_kernel_image_size.
13468
13469 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
13470 _edata and _start.
13471 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
13472 the small code. It moves it only by few bytes but simplifies the code.
13473 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
13474 _start.
13475 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
13476 (grub_kernel_image_size): Removed.
13477 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
13478 (grub_kernel_image_size): Removed.
13479 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
13480 compiled with Apple toolchain.
13481 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
13482 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
13483 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
13484 (grub_total_module_size): Likewise.
13485 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
13486 Removed.
13487 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
13488 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
13489 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
13490 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
13491 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
13492 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
13493 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
13494 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
13495 Removed.
13496 (grub_total_module_size): Removed.
13497 * util/grub-mkimage.c (image_target_desc): Remove image_size.
13498 (image_targets): Likewise.
13499 Set .compressed_size to no field on sparc.
13500 (generate_image): Remove kernel_image_size handling.
13501
fcf1d672
SJ
135022011-10-19 Szymon Janc <szymon@janc.net.pl>
13503
13504 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
13505 NULL pointer dereference.
13506
de9c615e
VS
135072011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13508
13509 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
13510 done with a dedicated section.
13511
13512 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
13513 Ensure the correct position of boot_path.
13514 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
13515 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
13516 other fields.
13517 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
13518 * include/grub/boot.h: Removed. All references removed.
13519 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
13520 Removed.
13521 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
13522
e55599dc
VS
135232011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13524
13525 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
13526 name.
13527
36dd20ad
VS
135282011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13529
13530 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
13531
f8f72eb8
VS
135322011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13533
13534 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
13535 Don't add the bogus brackets.
13536
a374751b
VS
135372011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13538
13539 ExFAT support.
13540
13541 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
13542 * grub-core/Makefile.core.def (exfat): New module.
13543 * grub-core/fs/exfat.c: New file.
13544 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
13545 (GRUB_FAT_ATTR_*): Make into an enum.
13546 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
13547 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
13548 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
13549 (GRUB_FAT_MAXFILE): Removed.
13550 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
13551 (grub_current_fat_bpb_t): New type.
13552 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
13553 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
13554 (grub_fat_dir_node_t): New type.
13555 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
13556 (fat_log2) [MODE_EXFAT]: Removed.
13557 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
13558 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
13559 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
13560 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
13561 (grub_fat_label) [MODE_EXFAT]: New function.
13562 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
13563 reserved_first_sector to 0.
13564
544c2487
VS
135652011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
13566
13567 Move grub_reboot out of the kernel.
13568
13569 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
13570 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
13571 * grub-core/lib/efi/reboot.c: ... here.
13572 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
13573 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
13574 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
13575 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
13576 * grub-core/lib/i386/reboot_trampoline.S: ... here.
13577 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
13578 * grub-core/lib/ieee1275/reboot.c: ... here.
13579 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
13580 * grub-core/lib/mips/arc/reboot.c: ... here.
13581 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
13582 * grub-core/lib/mips/loongson/reboot.c: ...here.
13583 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
13584 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
13585 * include/grub/emu/misc.h (grub_reboot): New function declaration.
13586 * include/grub/i386/reboot.h: New file.
13587 * include/grub/mips/loongson/ec.h: Fix includes.
13588 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
13589 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
13590 * grub-core/lib/i386/reboot.c: New file.
13591
a97501d2
VS
135922011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
13593
13594 Make grub_prefix into module to fix the arbitrary limit and save
13595 some space.
13596
13597 * grub-core/kern/emu/main.c (grub_prefix): Removed.
13598 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
13599 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
13600 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
13601 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
13602 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
13603 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
13604 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
13605 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
13606 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
13607 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
13608 * include/grub/ia64/efi/kernel.h: Removed.
13609 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
13610 (grub_prefix): Removed.
13611 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
13612 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
13613 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
13614 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
13615 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
13616 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
13617 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
13618 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
13619 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
13620 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
13621 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
13622 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
13623 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
13624 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
13625 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
13626 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
13627 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
13628 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
13629 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
13630 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
13631 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
13632 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
13633 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
13634 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
13635 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
13636 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
13637 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
13638 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
13639 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
13640 from module.
13641 * util/grub-mkimage.c (image_target_desc): Removed prefix and
13642 prefix_end.
13643 (image_targets): Likewise.
13644 (generate_image): Put prefix as a module.
13645
39705fad
VS
136462011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13647
13648 Replace grub_module_iterate with FOR_MODULES.
13649
13650 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
13651 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
13652 (grub_efi_modules_addr): ...this.
13653 * grub-core/kern/efi/init.c (grub_modbase): New variable.
13654 (grub_efi_init): Set grub_modbase.
13655 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
13656 (grub_modbase): New variable.
13657 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
13658 (grub_modbase): New variable.
13659 (grub_machine_init): Set grub_modbase.
13660 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
13661 (grub_modbase): New variable.
13662 (grub_machine_init): Set grub_modbase.
13663 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
13664 (grub_modbase): New variable.
13665 (grub_machine_init): Set grub_modbase.
13666 * grub-core/kern/main.c (grub_module_iterate): Remove.
13667 (grub_modules_get_end): Use grub_modbase.
13668 (grub_load_modules): Use FOR_MODULES.
13669 (grub_load_config): Likewise.
13670 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
13671 (grub_modbase): New variable.
13672 (grub_machine_init): Set grub_modbase.
13673 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
13674 (grub_modbase): New variable.
13675 (grub_machine_init): Set grub_modbase.
13676 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
13677 Removed.
13678 (grub_modbase): New variable.
13679 (grub_machine_init): Set grub_modbase.
13680 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
13681 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
13682 (grub_module_iterate): Likewise.
13683 (grub_modbase): New variable declaration.
13684 (FOR_MODULES): New macro.
13685
2afb7f6c
VS
136862011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13687
13688 * configure.ac: Check for __ctzdi2 and __ctzsi2.
13689 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
13690
366e34fa
VS
136912011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13692
13693 Fix few obvious type discrepancies.
13694
13695 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
13696 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
13697 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
13698 variable.
13699 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
13700 and connected types.
13701 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
13702 offset.
13703 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
13704 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
13705 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
13706 and connected types.
13707
177b960e
VS
137082011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13709
13710 Fix python 3.x incompatibilities.
13711
13712 * gentpl.py: Put brackets around print strings.
13713 * util/import_gcry.py: Open explicitly as utf-8.
13714 Use in instead of has_key.
13715
3b619ae1
VS
137162011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13717
13718 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
13719 (GRUB_XFS_INO_AGBITS): Make into inline function.
13720 (GRUB_XFS_INO_INOINAG): Likewise.
13721 (GRUB_XFS_INO_AG): Likewise.
13722 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
13723 (GRUB_XFS_EXTENT_OFFSET): Likewise.
13724 (GRUB_XFS_EXTENT_BLOCK): Likewise.
13725 (GRUB_XFS_EXTENT_SIZE): Likewise.
13726 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
13727 (GRUB_XFS_NEXT_DIRENT): Likewise.
13728 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
13729 (grub_xfs_read_file): Fix offset type.
13730
8bcebcb8
RM
137312011-10-15 Robert Millan <rmh@gnu.org>
13732
13733 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
13734
0017e5ef
RM
137352011-10-15 Robert Millan <rmh@gnu.org>
13736
13737 Fix build problem on FreeBSD and GNU/kFreeBSD.
13738
13739 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
13740
d8919552
VS
137412011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13742
13743 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
13744
13745 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
13746 types.
13747 (grub_hfsplus_btree_recoffset): Likewise.
13748 (grub_hfsplus_btree_recptr): Likewise.
13749 (grub_hfsplus_find_block): Likewise.
13750 (grub_hfsplus_btree_search): Likewise.
13751 (grub_hfsplus_read_block): Likewise.
13752 (grub_hfsplus_read_file): Likewise.
13753 (grub_hfsplus_mount): Likewise.
13754 (grub_hfsplus_btree_iterate_node): Likewise.
13755 (grub_hfsplus_btree_search): Likewise.
13756 (grub_hfsplus_iterate_dir): Likewise.
13757 (grub_hfsplus_read): A small code simplification.
13758
c81296b6
VS
137592011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13760
13761 * grub-core/kern/emu/hostdisk.c
13762 (convert_system_partition_to_system_disk): Don't assume that children
13763 of mapper nodes are mapper nodes.
13764
0eb8ffb1
VS
137652011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13766
13767 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
13768 * include/grub/misc.h (grub_isxdigit): New function.
13769 * grub-core/video/colors.c (my_isxdigit): Removed. All users
13770 switched to grub_isxdigit.
13771 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
13772 number starting with a letter.
13773
a98f4a08
RM
137742011-10-09 Robert Millan <rmh@gnu.org>
13775
13776 LVM support for FreeBSD and GNU/kFreeBSD.
13777
13778 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
13779 GNU/kFreeBSD.
13780 (LVM_DEV_MAPPER_STRING): Move from here ...
13781 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
13782 * util/getroot.c: Include `<grub/util/lvm.h>'.
13783 (grub_util_get_dev_abstraction): Enable
13784 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
13785 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
13786 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
13787 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
13788 support it.
13789 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
13790 GNU/kFreeBSD.
13791 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
13792 when LVM abstraction is required for ${GRUB_DEVICE}.
13793
050e8e90
SJ
137942011-10-06 Szymon Janc <szymon@janc.net.pl>
13795
13796 Add support for LZO compression in GRUB:
13797 - import of minilzo library,
13798 - LZO decompression for btrfs,
13799 - lzop files decompression.
13800
13801 * grub-core/io/lzopio.c: New file.
13802 * grub-core/lib/adler32.c: Likewise.
13803 * grub-core/lib/minilzo/lzoconf.h: Likewise.
13804 * grub-core/lib/minilzo/lzodefs.h: Likewise.
13805 * grub-core/lib/minilzo/minilzo.c: Likewise.
13806 * grub-core/lib/minilzo/minilzo.h: Likewise.
13807 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
13808 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
13809 grub-core/lib/minilzo/minilzo.c to common.
13810 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
13811 cflags in cppflags.
13812 * grub-core/Makefile.core.def (btrfs): Likewise.
13813 * grub-core/Makefile.core.def (lzopio): New module.
13814 (adler32): Likewise.
13815 * grub-core/fs/btrfs.c: Include minilzo.h.
13816 (GRUB_BTRFS_COMPRESSION_LZO): New define.
13817 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
13818 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
13819 (grub_btrfs_lzo_decompress): New function.
13820 (grub_btrfs_extent_read): Add support for LZO compression type.
13821 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
13822 (GRUB_USHRT_MAX): Likewise.
13823 (GRUB_UINT_MAX): Likewise.
13824 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
13825 (UINT_MAX): Likewise.
13826 (CHAR_BIT): Likewise.
13827 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
13828 grub-core/lib/posix_wrap/limits.h
13829 (UCHAR_MAX): Likewise.
13830 * include/grub/file.h (grub_file_filter_id): New compression filter
13831 GRUB_FILE_FILTER_LZOPIO.
13832 * include/grub/file.h (grub_file_filter_id): Set
13833 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
13834 * include/grub/types.h (grub_get_unaligned16): New function.
13835 (grub_get_unaligned32): Likewise.
13836 (grub_get_unaligned64): Likewise.
13837 * util/import_gcry.py (cryptolist): Add adler32.
13838
0eb8ffb1
VS
138392011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
13840
13841 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
13842 in perspective decreases the complexity of build system and fixes
13843 compilation right now.
13844
ce79cc99 138452011-10-01 Ales Nesrsta <starous@volny.cz>
13846
13847 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
13848 (fixed problem related to using UHCI with coreboot).
13849
8667a314
BC
138502011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
13851
13852 * gentpl.py: Use Autogen macros so that the output template file
13853 (Makefile.tpl) size is reduced.
13854
fc5efcc0
MK
138552011-09-29 Mads Kiilerich <mads@kiilerich.com>
13856
13857 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
13858 extra_dist.
13859
d1ab689d
ML
138602011-09-29 Mario Limonciello <mario_limonciello@dell.com>
13861
13862 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
13863 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
13864
c05de032
ML
138652011-09-29 Mario Limonciello <mario_limonciello@dell.com>
13866
13867 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
13868 _fullpath.
13869
cca7ccd8
ML
138702011-09-29 Mario Limonciello <mario_limonciello@dell.com>
13871
13872 Remove extra declaration of sleep for mingw32.
13873
13874 * util/misc.c (sleep) [__MINGW32__]: Removed.
13875 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
13876
e0b0dc83
GS
138772011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
13878
13879 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
13880 type and packname.
13881 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
13882 Resurrected.
13883 (NETBSD_BTINFO_BOOTWEDGE): New definition.
13884 (grub_netbsd_btinfo_bootwedge): New struct.
13885 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
13886 New function.
13887 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
13888
91a1a164
TH
138892011-09-28 Thomas Haller <thomas.haller@fen-net.de>
13890
13891 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
13892 loader.
13893
2ded951e
AB
138942011-09-28 Andreas Born <futur.andy@googlemail.com>
13895
13896 Fix incorrect identifiers in bash-completion.
13897
13898 * util/bash-completion.d/grub-completion.bash.in
13899 (_grub_mkpasswd-pbkdf2): Rename to ...
13900 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
13901 (_grub_script-check): Rename to ...
13902 (_grub_script_check): ... this. All users updated.
13903
69915030
VS
139042011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
13905
13906 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
13907 Return 0 if disk isn't biosdisk.
13908
20fd15f9
GS
139092011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
13910
13911 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
13912 on NetBSD.
13913 * Makefile.util.def (grub-fstest): Likewise.
13914
1a7d7db9
GS
139152011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
13916
13917 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
13918 Get sector size from disk label.
13919
2221ab6c
CW
139202011-09-05 Colin Watson <cjwatson@ubuntu.com>
13921
13922 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
13923 */README* as well as README*.
13924 Reported by: Axel Beckert.
13925
ca51c4a0
VS
139262011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13927
13928 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
13929 case of less than 256 MiB of RAM.
13930
ab80f326
VS
139312011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13932
13933 * grub-core/commands/wildcard.c (make_regex): Handle @.
13934
4155e697
VS
139352011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13936
13937 * util/grub-install.in: Move cryptodisk logic to appropriate place.
13938
ab178c08
SJ
139392011-08-21 Szymon Janc <szymon@janc.net.pl>
13940
13941 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
13942 AC_LANG_CONFTEST macros.
13943
7dc3c686
SJ
139442011-08-20 Szymon Janc <szymon@janc.net.pl>
13945
13946 Add grub-fstest option to uncompress data for commands.
13947
13948 * util/grub-fstest.c (uncompress): New var.
13949 (options): New option -u.
13950
fe8d4a7b
SJ
139512011-08-20 Szymon Janc <szymon@janc.net.pl>
13952
13953 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
13954 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
13955
a5219af1
SJ
139562011-08-20 Szymon Janc <szymon@janc.net.pl>
13957
13958 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
13959 file type was not recognized correctly (not gzip or corrupted).
13960
f87abff5
VS
139612011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13962
13963 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
13964 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
13965
d94497ea
VS
139662011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13967
13968 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
13969 loongson.
13970 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
13971 video_radeon_fuloong2e.
13972 * grub-core/video/radeon_fuloong2e.c: New file.
13973 * include/grub/video.h (grub_video_id_t): Add new ID
13974 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
13975
0d1fd011
VS
139762011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13977
13978 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
13979 define.
13980 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
13981 that PRID matches the detected subplatform and reset the subplatform
13982 if it doesn't.
13983
84beb0ee
VS
139842011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13985
13986 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
13987
1227c133
VS
139882011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13989
13990 Fix PCI iterating on functions >= 4.
13991
13992 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
13993 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
13994 Removed.
13995 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
13996 (grub_pci_read): Fix bitmask.
13997 (grub_pci_read_word): Likewise.
13998 (grub_pci_read_byte): Likewise.
13999 (grub_pci_write): Likewise.
14000 (grub_pci_write_word): Likewise.
14001 (grub_pci_write_byte): Likewise.
14002
9594c689
VS
140032011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14004
14005 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
14006 can still be specified in TARGET_CFLAGS)
14007
14a2562c
VS
140082011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14009
14010 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
14011
14012 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
14013 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
14014 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
14015 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
14016 (FULOONG): Rename to ...
14017 (FULOONG2F): ... this. All users updated.
14018 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
14019 (machtype_fuloong2f_str): ... this.
14020 (machtype_fuloong2e_str): New string.
14021 Check for machtype_fuloong2e_str.
14022 * grub-core/loader/mips/linux.c (loongson_machtypes)
14023 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
14024 * grub-core/term/serial.c (loongson_defserial)
14025 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
14026 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
14027 loongson_defserial.
14028 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
14029 Rename to ...
14030 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
14031 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
14032 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
14033 to IMAGE_FULOONG2F_FLASH. All users updated.
14034 (image_targets): Rename images.
14035 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
14036
b526cbb6
SJ
140372011-08-19 Szymon Janc <szymon@janc.net.pl>
14038
14039 Make enable of disk cache statistics code configurable.
14040
14041 * configure.ac: --enable-cache-stats added.
14042 * config.h.in (DISK_CACHE_STATS): New define.
14043 * grub-core/Makefile.core.def (cacheinfo): New command.
14044 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
14045 * grub-core/commands/cacheinfo.c: New file.
14046 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
14047 moved to cacheinfo.c.
14048 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
14049 debug code.
14050 * include/grub/disk.h: Likewise.
14051
fb739ccd
SJ
140522011-08-19 Szymon Janc <szymon@janc.net.pl>
14053
14054 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
14055 * grub-core/Makefile.am: Likewise.
14056
2bba8cfd
VS
140572011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14058
14059 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
14060 non-zero pull.
14061
43526629
VS
140622011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14063
14064 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
14065 All users updated.
14066 (grub_jfs_lookup_symlink): Use correct starting inode.
14067
5c144cc8
VS
140682011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14069
14070 * util/grub-setup.c (main): Add missing gcry initialisation.
14071
b1257f65
VS
140722011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14073
14074 Don't accept text modes on EFI when booting Linux.
14075
14076 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
14077 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
14078
828bc390
ML
140792011-08-15 Mario Limonciello <mario_limonciello@dell.com>
140802011-08-15 Colin Watson <cjwatson@ubuntu.com>
14081
14082 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
14083 use of "/path/.." as in grub-install for EFI as well as handling
14084 symlinks correctly.
14085 Fixes Debian bug #637768.
14086
5f60ccac
CW
140872011-08-15 Colin Watson <cjwatson@ubuntu.com>
14088
14089 * util/grub-probe.c: Remove duplicate #include.
14090
6dc212f9
RM
140912011-08-10 Robert Millan <rmh@gnu.org>
14092
14093 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
14094
14095 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
14096 function.
14097 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
14098 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
14099
66816d85
RM
141002011-08-03 Robert Millan <rmh@gnu.org>
14101
14102 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
14103 la_array as packed.
14104 Reported by: Zachary Bedell
14105
20168fca
CW
141062011-07-26 Colin Watson <cjwatson@ubuntu.com>
14107
14108 * configure.ac: The Loongson port requires grub-mkfont due to its
14109 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
14110 be built.
14111
303b6246
CW
141122011-07-26 Colin Watson <cjwatson@ubuntu.com>
14113
14114 * util/grub-install.in: Don't source grub-mkconfig_lib until after
14115 processing arguments (otherwise help2man fails when GRUB has not yet
14116 been installed).
14117
6795300e
VS
141182011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14119
41aa28ea
VS
14120 New script grub-mkstandalone.
14121
14122 * Makefile.util.def (grub-mkstandalone): New script.
14123 * docs/man/grub-mkstandalone.h2m: New file.
14124 * util/grub-mkstandalone.in: Likewise.
14125
141262011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14127
14128 Support ATA disks with 4K sectors.
6795300e
VS
14129
14130 * include/grub/ata.h (grub_ata): New member log_sector_size.
14131 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
14132 (grub_ata_identify): Read sector size.
14133 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
14134
92227597
VS
141352011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14136
14137 * util/grub-install.in: Don't use uhci outside of x86.
14138
c77069f5
VS
141392011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14140
14141 * util/grub-mkrescue.in: Add missing quotes.
14142
141432011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
14144
14145 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
14146 dereference.
14147
583168a2
VS
141482011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14149
14150 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
14151
6be1c01f
VS
141522011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14153
14154 * include/grub/video.h: add missing EXPORT_FUND on
14155 grub_video_edid_checksum and grub_video_edid_preferred_mode.
14156
a1167439
VS
141572011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14158
14159 * include/grub/mips/kernel.h: Fix define conflict.
14160
bf66054f
VS
141612011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14162
14163 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
14164 all four ways.
14165
8fc4fa45
CW
141662011-07-21 Colin Watson <cjwatson@ubuntu.com>
14167
14168 Preferred resolution detection for VBE.
14169
14170 * grub-core/video/video.c (grub_video_edid_checksum): New function.
14171 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
14172 the Flat Panel extension, in line with the X.org VESA driver.
14173 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
14174 New function.
14175 (grub_vbe_bios_get_ddc_capabilities): Likewise.
14176 (grub_vbe_bios_read_edid): Likewise.
14177 (grub_vbe_get_preferred_mode): Likewise.
14178 (grub_video_vbe_setup): When the mode is "auto", try to get the
14179 preferred mode from VBE, and use the largest mode that is no larger
14180 than the preferred mode (some BIOSes expose a preferred mode that is
14181 not in their mode list!). If this fails, fall back to 640x480 as a
14182 safe conservative choice.
14183 (grub_video_vbe_get_edid): New function.
14184 (grub_video_vbe_adapter): Add get_edid.
14185 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
14186 (struct grub_video_adapter): Add get_edid.
14187 (grub_video_edid_checksum): Add prototype.
14188 (grub_video_edid_preferred_mode): Likewise.
14189 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
14190 structure.
14191
14192 * grub-core/commands/videoinfo.c (print_edid): New function.
14193 (grub_cmd_videoinfo): Print EDID if available.
14194
14195 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
14196 is more appropriate on a wider range of platforms than 640x480.
14197 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
14198 documentation.
14199
ca5572a9
VS
142002011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14201
14202 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
14203
e4bcf625
VS
142042011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14205
14206 * po/POTFILES.in: Regenerate.
14207
c4edd548
VS
142082011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14209
14210 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
14211 incorrect memory usage.
14212
16a2bab0
VS
142132011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14214
14215 * util/grub-install.in: Source grub-mkconfig_lib.
14216
2e418de6
VS
142172011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14218
14219 Remove getroot.c from core on emu platform.
14220
14221 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
14222 kern/emu/raid.c.
14223 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
14224 useless.
14225 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
14226 * util/getroot.c (get_win32_path): ... here.
14227 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
14228 * util/getroot.c (fini_libzfs): ... here.
14229 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
14230 * util/getroot.c (grub_get_libzfs_handle): ... here.
14231 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
14232 Moved from here...
14233 * util/getroot.c (grub_find_zpool_from_dir): ... here.
14234 * grub-core/kern/emu/misc.c
14235 (grub_make_system_path_relative_to_its_root): Moved from here...
14236 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
14237 * grub-core/kern/emu/getroot.c: Moved from here ...
14238 * util/getroot.c: ... here. All users updated.
14239 * grub-core/kern/emu/raid.c: Moved from here ...
14240 * util/raid.c: ... here. All users updated.
14241
def9832a
VS
142422011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14243
14244 * po/POTFILES.in: Regenerate.
14245
cd8fe79a
VS
142462011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14247
14248 Fix compilation on GNU/Linux.
14249
14250 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
14251 Disable geli.
14252 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
14253 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
14254 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
14255
a251b719
VS
142562011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
142572011-07-07 Michael Gorven <michael@gorven.za.net>
142582011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
14259
14260 LUKS and GELI support.
14261
14262 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
14263 grub-core/disk/luks.c, grub-core/disk/geli.c,
14264 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
14265 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
14266 grub-core/lib/arg.c.
14267 (libgrubmods.a): Remove gcrypts cflags and cppflags.
14268 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
14269 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
14270 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
14271 (grub-bin2h): Add libgcry.a.
14272 (grub-mkimage): Likewise.
14273 (grub-mkrelpath): Likewise.
14274 (grub-script-check): Likewise.
14275 (grub-editenv): Likewise.
14276 (grub-mkpasswd-pbkdf2): Likewise.
14277 (grub-pe2elf): Likewise.
14278 (grub-fstest): Likewise.
14279 (grub-mkfont): Likewise.
14280 (grub-mkdevicemap): Likewise.
14281 (grub-probe): Likewise.
14282 (grub-ofpath): Likewise.
14283 (grub-mklayout): Likewise.
14284 (example_unit_test): Likewise.
14285 (grub-menulst2cfg): Likewise.
14286 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
14287 * grub-core/Makefile.core.def (cryptodisk): New module.
14288 (luks): Likewise.
14289 (geli): Likewise.
14290 * grub-core/disk/AFSplitter.c: New file.
14291 * grub-core/disk/cryptodisk.c: Likewise.
14292 * grub-core/disk/geli.c: Likewise.
14293 * grub-core/disk/luks.c: Likewise.
14294 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
14295 grub_util_is_lvm.
14296 (grub_util_get_dm_abstraction): New function.
14297 (grub_util_follow_gpart_up): Likewise.
14298 (grub_util_get_geom_abstraction): Likewise.
14299 (grub_util_get_dev_abstraction): Use new functions.
14300 (grub_util_pull_device): Pull GELI and LUKS.
14301 (grub_util_get_grub_dev): Handle LUKS and GELI.
14302 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
14303 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
14304 (follow_geom_up): Removed.
14305 (grub_util_fd_seek): New function.
14306 (open_device): Use grub_util_fd_seek.
14307 (nread): Rename to ..
14308 (grub_util_fd_read): ... this. All users updated.
14309 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
14310 (grub_crypto_cbc_decrypt): Likewise.
14311 (grub_crypto_hmac_write): Likewise.
14312 (grub_crypto_hmac_buffer): Likewise.
14313 (grub_password_get): Extend to util.
14314 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
14315 New member modname.
14316 (gcry_md_spec) [GRUB_UTIL]: Likewise.
14317 * include/grub/cryptodisk.h: New file.
14318 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
14319 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
14320 LUKS and GELI.
14321 (grub_util_follow_gpart_up): New proto.
14322 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
14323 (grub_util_fd_read): Likewise.
14324 (grub_cryptodisk_cheat_mount): Likewise.
14325 (grub_util_cryptodisk_print_uuid): Likewise.
14326 (grub_util_get_fd_sectors): Likewise.
14327 * util/grub-fstest.c (mount_crypt): New var.
14328 (fstest): Mount crypto if requested.
14329 (options): New option -C.
14330 (argp_parser): Parse -C.
14331 (main): Init and fini gcry.
14332 * util/grub-install.in: Support cryptodisk install.
14333 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
14334 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
14335 cryptodisk.
14336 (prepare_grub_to_access_device): Likewise.
14337 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
14338 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
14339 (probe_cryptodisk_uuid): New function.
14340 (probe_abstraction): Likewise.
14341 (probe): Use new functions.
14342 * util/import_gcry.py: Create Makefile.utilgcry.def.
14343 Add modname member.
14344
9bfdcbbc
VS
143452011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14346
14347 Lazy device scanning.
14348
14349 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
14350 (grub-setup): Remove util/raid.c.
14351 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
14352 * grub-core/disk/lvm.c (scan_depth): New variable.
14353 (grub_lvm_iterate): Rescan if necessary.
14354 (find_lv): New function based on grub_lvm_open.
14355 (grub_lvm_open): Use find_lv. Rescan on error.
14356 (is_node_readable): New function.
14357 (is_lv_readable): Likewise.
14358 (grub_lvm_scan_device): Skip already found disks.
14359 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
14360 Stop if searched device is found and readable.
14361 * grub-core/disk/raid.c (inscnt): New variable.
14362 (scan_depth): Likewise.
14363 (scan_devices): New function based on grub_raid_register. Abort if
14364 looked for device is found.
14365 (grub_raid_iterate): Rescan if needed.
14366 (find_array): NEw function based on -grub_raid_open.
14367 (grub_raid_open): Use find_array and rescan.
14368 (insert_array): Set became_readable_at.
14369 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
14370 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
14371 New function.
14372 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
14373 (grub_util_pull_device): New function.
14374 (grub_util_get_grub_dev): Call grub_util_pull_device.
14375 * util/raid.c: Moved to ..
14376 * grub-core/kern/emu/raid.c: ... here.
14377 (grub_util_raid_getmembers): New parameter "bootable".
14378 All users updated. Support 1.x.
14379 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
14380 All users updated.
14381 * include/grub/disk.h (grub_disk_pull_t): New enum.
14382 (grub_disk_dev): Change iterate prototype.
14383 All users updated.
14384 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
14385 New proto.
14386 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
14387 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
14388 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
14389 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
14390 All users updated.
14391 * include/grub/util/raid.h: Removed.
14392
1c358e59
VS
143932011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
14394
14395 * po/POTFILES.in: Regenerate.
14396
abee94ed
VS
143972011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
14398
14399 Unify sparc init with other ieee1275.
14400
14401 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
14402 instead of kern/sparc64/ieee1275/init.c.
14403 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
14404 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
14405 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
14406 grub/machine/kernel.h.
14407 (grub_ieee1275_original_stack) [__sparc__]: New variable.
14408 (grub_claim_heap) [__sparc__]: Use sparc version.
14409 (grub_machine_init): Moved args parsing to
14410 (grub_parse_cmdline): ...this.
14411 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
14412 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
14413 New definition.
14414 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
14415
14416 Move BOOTP to separate file.
14417
14418 * grub-core/Makefile.core.def (net): Add net/bootp.c.
14419 * grub-core/net/net.c: Move all BOOTP functions to
14420 * grub-core/net/bootp.c: ... here.
14421
14422 Use frame interface on PXE.
14423
14424 * grub-core/Makefile.core.def (pxecmd): Removed.
14425 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
14426 * grub-core/commands/i386/pc/pxecmd.c: Removed.
14427 * grub-core/i386/pc/pxe.c: Moved from here ...
14428 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
14429 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
14430 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
14431
14432 EFI network support.
14433
14434 * grub-core/Makefile.core.def (efinet): New module.
14435 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
14436 here...
14437 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
14438 All users updated.
14439 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
14440 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
14441 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
14442 * grub-core/net/drivers/efi/efinet.c: New file.
14443 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
14444 (grub_efi_net_config): New extern var.
14445
14446 Various cleanups and bugfixes.
14447
14448 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
14449 error.
14450 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
14451 disk declared as partition.
14452 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
14453 leak on failure.
14454 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
14455 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
14456 (grub_debug_zalloc): Likewise.
14457 (grub_debug_realloc): Likewise.
14458 (grub_debug_memalign): Likewise.
14459 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
14460 Check that target is IPv4.
14461 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
14462 local-mac-address as fallback.
14463 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
14464 memory leak.
14465 * grub-core/net/ip.c (ipchksum): Rename to ...
14466 (grub_net_ip_chksum): ... this. All users updated.
14467 (grub_net_recv_ip_packets): Special handling for DHCP.
14468 * util/grub-mkimage.c (generate_image): Zero-out aout header.
14469
14470 Unify prefix handling
14471
14472 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
14473 (grub_machine_get_bootlocation): ... this.
14474 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
14475 (grub_machine_get_bootlocation): ... this.
14476 (grub_prefix): New variable.
14477 (prefix): Removed.
14478 (root_dev): New variable.
14479 (dir): Likewise.
14480 (main): Use new variables.
14481 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
14482 Revamped into ...
14483 (grub_machine_get_bootlocation): ... this.
14484 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
14485 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
14486 (grub_machine_get_bootlocation): ... this.
14487 (grub_machine_set_prefix): Removed.
14488 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
14489 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
14490 Revamped into ...
14491 (grub_machine_get_bootlocation): ... this.
14492 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
14493 (grub_set_prefix_and_root): ... this. All users updated.
14494 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
14495 Revamped into ...
14496 (grub_machine_get_bootlocation): ... this.
14497 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
14498 (grub_machine_get_bootlocation): New proto.
14499 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
14500
14501 Less intrusive and more reliable seek on network implementation.
14502
14503 * grub-core/kern/file.c (grub_file_net_seek): Removed.
14504 (grub_file_seek): Don't call grub_file_net_seek.
14505 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
14506 (grub_net_fs_read_real): .. this.
14507 (grub_net_seek_real): Use net->offset.
14508 (grub_net_fs_read): Seek if necessary.
14509
14510 Unify IEEE1275 netwotk config with the other platforms.
14511
14512 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
14513 New variable.
14514 (grub_machine_get_bootlocation): Support network.
14515 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
14516 Support type and device parsing.
14517 (grub_ieee1275_get_device_type): New function.
14518 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
14519 into ...
14520 (grub_ieee1275_net_config_real): ... this.
14521 (grub_ofnet_probecards): Removed.
14522 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
14523 * include/grub/ieee1275/ofnet.h: Removed.
14524 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
14525 extern var.
14526 (grub_ieee1275_get_device_type): New function.
14527
14528 Unify network device closing across platforms and make more robust.
14529
14530 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
14531 grub_grubnet_fini.
14532 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
14533 already.
14534 * grub-core/net/net.c (grub_net_network_level_interface_register):
14535 Update num_ifaces.
14536 (grub_net_card_unregister): Close all interfaces.
14537 (receive_packets): Don't poll if no iterfaces are registered.
14538 Open if necessary.
14539 (grub_net_fini_hw): New function.
14540 (grub_net_restore_hw): Likewise.
14541 (fini_hnd): New variable.
14542 (GRUB_MOD_INIT): Register preboot hook.
14543 (GRUB_MOD_FINI): Run and unregister preboot hook.
14544
14545 Poll network cards when idle.
14546
14547 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
14548 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
14549 * grub-core/net/net.c (receive_packets): Save last poll time.
14550 (grub_net_poll_cards_idle_real): New function.
14551 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
14552 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
14553 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
14554
14555 Rename ofnet interfaces.
14556
14557 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
14558 (grub_ofnet_findcards): Use ofnet_%s names.
14559
14560 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
14561
14562 Cleanup socket opening.
14563
14564 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
14565 (grub_net_fs_close): Likewise.
14566 (grub_net_fs_read_real): Use eof member.
14567 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
14568 (+grub_net_udp_close): New inline function.
14569
14570 * include/grub/net/tftp.h: Moved to the top of ...
14571 * grub-core/net/tftp.c: ... here.
14572 * include/grub/net/ip.h: Moved mostly to the top of ...
14573 * grub-core/net/ip.c: ... here.
14574 * include/grub/net/ethernet.h: Moved mostly to the top of ...
14575 * grub-core/net/ethernet.c: ... here.
14576
14577 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
14578
14579 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
14580 FS name.
14581
14582 * include/grub/net/ip.h (ipv4_ini): Removed.
14583 (ipv4_fini): Likewise.
14584
14585 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
14586 (grub_net_send_ip_packets): Likewise.
14587
cf1337aa
VS
145882011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14589
14590 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
14591 grub_read_cmos prototype.
14592
93c06ff9
VS
145932011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14594
14595 VGA text support in qemu-mips
14596
14597 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
14598 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
14599 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
14600 text.
14601 * grub-core/kern/i386/qemu/init.c: Renamed to ...
14602 * grub-core/kern/vga_init.c: ... this.
14603 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
14604 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
14605 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
14606 Adjust.
14607 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
14608 GRUB_MACHINE_PCI_IO_BASE.
14609
748ccabe
VS
146102011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14611
14612 MIPS qemu flash support.
14613
14614 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
14615 magic.
14616 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
14617 (grub_machine_init): Probe memory if its size isn't known.
14618 * util/grub-mkimage.c (image_targets): Add flash targets.
14619 (generate_image): Handle flash targets.
14620
d7345994
VS
146212011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14622
14623 MIPS qemu at_keyboard support.
14624
14625 * gentpl.py (videoinkernel): Add qemu-mips.
14626 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
14627 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
14628 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
14629 modules.
14630 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
14631 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
14632 * grub-core/term/serial.c (grub_serial_register)
14633 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
14634
a07a81b3
VS
146352011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
14636
14637 CMOS support on sparc.
14638
14639 * gentpl.py (cmos): Add powerpc and sparc.
14640 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
14641 powerpc and sparc.
14642 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
14643 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
14644 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
14645 grub_set_datetime_cmos.
14646 * grub-core/lib/ieee1275/cmos.c: New file.
14647 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
14648 (find_rtc): Set no_ieee1275_rtc on error.
14649 (grub_get_datetime): Call grub_get_datetime_cmos on error.
14650 (grub_set_datetime): Call grub_set_datetime_cmos on error.
14651 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
14652 fail. Move value to argument. All users updated
14653 (grub_cmos_write): Likewise.
14654 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
14655 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
14656 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
14657 grub_get_datetime_cmos and grub_set_datetime_cmos.
14658
77546584
GS
146592011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
14660
14661 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
14662 sourcing grub-mkconfig_lib.
14663 * util/update-grub_lib.in: Likewise.
14664 * util/grub.d/00_header.in: Likewise.
14665 * util/grub.d/10_hurd.in: Likewise.
14666 * util/grub.d/10_kfreebsd.in: Likewise.
14667 * util/grub.d/10_linux.in: Likewise.
14668 * util/grub.d/10_netbsd.in: Likewise.
14669 * util/grub.d/10_windows.in: Likewise.
14670 * util/grub.d/20_linux_xen.in: Likewise.
14671 * util/grub.d/30_os-prober.in: Likewise.
14672
54894791
CW
146732011-06-28 Colin Watson <cjwatson@ubuntu.com>
14674
14675 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
14676 default_bg_color rather than black.
14677 (grub_gfxterm_fullscreen): Likewise.
14678 (grub_gfxterm_background_color_cmd): Save new background color in
14679 default_bg_color.
14680
8d5d8444
VS
146812011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14682
14683 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
14684
5afeb5bd
VS
146852011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14686
14687 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
14688 mismerge.
14689
ba7df45e
VS
146902011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14691
14692 Chainloading on coreboot support.
14693
14694 * grub-core/Makefile.core.def (chain): Add coreboot.
14695 * grub-core/loader/i386/coreboot/chainloader.c: New file.
14696
d0b526b2
VS
146972011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14698
14699 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
14700 if it happens.
14701
5ff1d945
VS
147022011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14703
14704 Implement time command.
14705
14706 * grub-core/Makefile.core.def (time): New module.
14707 * grub-core/commands/time.c: New file.
14708 * grub-core/script/parser.y: Remove "time" keyword.
14709 * grub-core/script/yylex.l: Likewise.
14710
5ebaad7e
VS
147112011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14712
14713 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
14714
bdea3798
VS
147152011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14716
14717 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
14718 when handling leftovers.
14719
b28c5655
VS
147202011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14721
14722 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
14723 so that help2man doesn't fail.
14724
b6f945dc
VS
147252011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14726
14727 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
14728 type in pointers on sparc64.
14729 (get_card_packet): Likewise.
14730
f9b75e8a
CW
147312011-06-27 Colin Watson <cjwatson@ubuntu.com>
14732
14733 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
14734 with `*'.
14735 (grub_cmd_videoinfo): Fetch current video mode.
14736
1e3d9b86
VS
147372011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14738
14739 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
14740 because of underlying system restrictions.
14741
efff4b1c
VS
147422011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14743
14744 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
14745 necessary.
14746
9fc9ce37
VS
147472011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14748
14749 Coreboot video support.
14750
14751 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
14752 (vbe): Likewise.
14753 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
14754 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
14755 here ...
14756 * grub-core/kern/i386/int.S: ... here.
14757 * grub-core/video/i386/pc/vbe.c: Updated includes.
14758 * grub-core/video/i386/pc/vga.c: Likewise.
14759 * include/grub/i386/coreboot/memory.h
14760 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
14761 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
14762 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
14763 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
14764 Disable interrupts.
14765 * include/grub/i386/pc/vga.h: Removed. All users updated.
14766
41bec7fe
VS
147672011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14768
14769 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
14770 definitions for dprintf.
14771 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
14772
ca80309d
VS
147732011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14774
14775 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
14776 prototype.
14777 (get_card_packet): Likewise.
14778
9e322ce8
YB
147792011-06-26 Yves Blusseau <blusseau@zetam.org>
14780
14781 Display the path of the file when file is not found
14782
14783 * grub-core/fs/fat.c: Display the filename when file is not found.
14784 * grub-core/fs/fshelp.c: Likewise.
14785 * grub-core/fs/hfs.c: Likewise.
14786 * grub-core/fs/jfs.c: Likewise.
14787 * grub-core/fs/minix.c: Likewise.
14788 * grub-core/fs/ufs.c: Likewise.
14789 * grub-core/fs/btrfs.c: Likewise.
14790 * grub-core/commands/i386/pc/play.c: Likewise.
14791
cbf597af
SJ
147922011-06-26 Szymon Janc <szymon@janc.net.pl>
14793
14794 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
14795 pointer checks before calling grub_free().
14796 * grub-core/commands/wildcard.c (match_devices): Likewise.
14797 * grub-core/commands/wildcard.c (match_files): Likewise.
14798 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
14799 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
14800 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
14801 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
14802 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
14803 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
14804 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
14805 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
14806 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
14807
6295b32f
P
148082011-06-25 Patrick <p55@mailinator.com>
14809
14810 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
14811
77c0840b
VS
148122011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
14813
14814 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
14815 (grub_pxe_send): Likewise.
14816 (GRUB_MOD_INIT): Fix types.
14817
40ea05de
SJ
148182011-06-24 Szymon Janc <szymon@janc.net.pl>
14819
14820 * grub-core/io/xzio.c: Fix code style issues
14821
90162423
MRA
148222011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
148232011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
14824
14825 Network infrastructure.
14826 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
14827
14828 * include/grub/net/arp.h: New file.
90162423
MRA
14829 * include/grub/net/device.h: Likewise.
14830 * include/grub/net/ethernet.h: Likewise.
14831 * include/grub/net/ip.h: Likewise.
14832 * include/grub/net/netbuff.h: Likewise.
14833 * include/grub/net/tftp.h: Likewise.
14834 * include/grub/net/udp.h: Likewise.
14835 * include/grub/ieee1275/ofnet.h: Likewise.
14836 * include/grub/emu/export.h: Likewise.
14837 * include/grub/net.h: Likewise.
14838 * grub-core/net/arp.c: Likewise.
14839 * grub-core/net/ethernet.c: Likewise.
14840 * grub-core/net/ip.c: Likewise.
14841 * grub-core/net/udp.c: Likewise.
14842 * grub-core/net/tftp.c: Likewise.
14843 * grub-core/net/netbuff.c: Likewise.
14844 * grub-core/net/net.c: Likewise.
14845 * grub-core/net/drivers/emu/emunet.c: Likewise.
14846 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
14847 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
14848 export.h.
14849 * grub-core/Makefile.core.def (net): New module.
14850 (tftp): Likewise.
14851 (ofnet): Likewise.
14852 (emunet): Likewise.
14853 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
14854 network protocols.
14855 * grub-core/kern/device.c (grub_net_open) : New variable.
14856 (grub_device_open): Handle network device.
14857 (grub_device_close): Likewise.
14858 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
14859 (grub_grubnet_fini): Likewise.
14860 (grub_file_seek): Seek in network device.
14861 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
14862 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
14863 network root.
14864 (grub_machine_fini): Call grub_grubnet_fini.
14865 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
14866 network.
14867 (grub_ieee1275_get_aliasdevname): New function.
14868 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14869 Add unofficial Solaris network info.
14870 (grub_multiboot_make_mbi): Likewise.
14871 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
14872 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
14873 * include/grub/device.h (grub_fs): Removed.
14874 * include/grub/err.h (grub_err_t): Add network-related values.
14875 * include/grub/i386/pc/pxe.h: Removed bootp parts.
14876 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
14877 (grub_ieee1275_get_aliasdevname): New proto.
14878 * include/grub/net.h: Rewritten.
423a1849 14879
031f22a0
VS
148802011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14881
14882 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
14883 names.
14884
4388ca72
VS
148852011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14886
14887 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
14888 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
14889 it truncates the output.
14890 Reported by: Ximin Luo.
14891
98e2f506
VS
148922011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14893
14894 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
14895
2a5e94d8
VS
148962011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14897
14898 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
14899 partmap before abstraction.
14900
535c1910
AK
149012011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
14902
14903 * util/grub-mkconfig_lib.in: Add missing quotes.
14904
bc09e1a2
VS
149052011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14906
14907 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
14908 old method if mountinfo would return /dev/root and /dev/root doesn't
14909 exist.
14910
290766fb
VS
149112011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 ZFS zlib support
14914
14915 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
14916 (decomp_table): Add zlib entries.
14917 (zio_read): USe 8 bits for compression function rather than 3.
14918 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
14919
149202011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14921
14922 * grub-core/disk/ahci.c: Add missing license statements.
14923 * grub-core/fs/romfs.c: Likewise.
14924 * grub-core/lib/ia64/setjmp.S: Likewise.
14925 * grub-core/loader/i386/pc/freedos.c: Likewise.
14926 * grub-core/loader/ia64/efi/linux.c: Likewise.
14927 * grub-core/video/colors.c: Likewise.
14928 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
14929
5ab3f48a
VS
149302011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14931
14932 AHCI support.
14933
14934 * grub-core/Makefile.core.def (ata_pthru): Removed.
14935 (ahci): New module.
14936 (pata): Likewise.
14937 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
14938 on unload.
14939 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
14940 readwrite.
14941 (grub_hdparm_do_check_powermode_cmd): Likewise.
14942 (grub_hdparm_do_smart_cmd): Likewise.
14943 (grub_hdparm_set_val_cmd): Likewise.
14944 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
14945 * grub-core/disk/ahci.c: New file.
14946 * grub-core/disk/ata.c: Factor out the low-level part into ...
14947 * grub-core/disk/pata.c: ... here.
14948 * grub-core/disk/ata_pthru.c: Contents moved to ...
14949 * grub-core/disk/pata.c: ... here.
14950 * grub-core/disk/scsi.c (grub_scsi_names): New array.
14951 (grub_scsi_iterate): Use grub_scsi_names.
14952 (grub_scsi_open): Likewise.
14953 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
14954 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
14955 (grub_ata_regs_t): New struct.
14956 (grub_disk_ata_pass_through_parms): Likewise.
14957 (grub_ata_device): Renamed to ...
14958 (grub_ata): ... this.
14959 (grub_ata_dev): New struct.
14960 Removed all low-level inline functions.
14961 * include/grub/scsi.h: Add PATA and AHCI subsystems.
14962 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
14963 iterate hooks and open. All users updated.
14964 * util/grub-install.in: Handle AHCI disk module.
14965
c31dc5f5
SJ
149662011-06-23 Szymon Janc <szymon@janc.net.pl>
14967
14968 Add support for DRI and RSTn markers in JPEG files.
14969
14970 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
14971 (JPEG_MARKER_RST0): Likewise.
14972 (JPEG_MARKER_RST1): Likewise.
14973 (JPEG_MARKER_RST2): Likewise.
14974 (JPEG_MARKER_RST3): Likewise.
14975 (JPEG_MARKER_RST4): Likewise.
14976 (JPEG_MARKER_RST5): Likewise.
14977 (JPEG_MARKER_RST6): Likewise.
14978 (JPEG_MARKER_RST7): Likewise.
14979 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
14980 (grub_jpeg_decode_dri): New function.
14981 (grub_jpeg_decode_sos): Move image data related part into
14982 grub_jpeg_decode_data function.
14983 (grub_jpeg_decode_data): New function.
14984 (grub_jpeg_reset): New function.
14985 (grub_jpeg_decode_jpeg): Handle new markers.
14986
fe12fd5b
VS
149872011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14988
14989 * util/ieee1275/ofpath.c (check_sas): Close fd.
14990 (main): Free of_path.
14991 Reported by: David Volgyes <dvolgyes>.
14992
03147f46
VS
149932011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14994
14995 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
14996 Reported by: David Volgyes <dvolgyes>.
14997
cad3237f
VS
149982011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14999
15000 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
15001 file after stat.
15002 Reported by: David Volgyes <dvolgyes>.
15003
13548d26
VS
150042011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15005
15006 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
15007
15008 Reported by: David Volgyes <dvolgyes>.
15009
e061a1b5
VS
150102011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15011
15012 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
15013 Prevent memory leak.
15014
1abe47dc
VS
150152011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15016
15017 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
15018 (main): Close file.
e061a1b5 15019 Reported by: David Volgyes <dvolgyes>.
1abe47dc 15020
fbc62666
VS
150212011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15022
15023 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
15024 to continue if allocation is failed.
15025
15026 Reported by: David Volgyes <dvolgyes>.
15027
e98c83e9
DV
150282011-06-23 David Volgyes <dvolgyes>
15029
15030 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
15031 dereference.
15032
a199a8cd
VS
150332011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15034
15035 Fix spurious warning.
15036
15037 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
15038 (acorn_partition_map_find): Use .bin member.
15039
e2d1dba0
VS
150402011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15041
15042 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
15043 /dev/root as a valid device.
15044
8a5d6919
JM
150452011-06-23 Jim Meyering <meyering@redhat.com>
15046
e2d1dba0
VS
15047 Avoid NULL deref in grub_device_open.
15048
8a5d6919
JM
15049 * grub-core/kern/device.c (grub_device_open): Don't dereference
15050 a NULL pointer upon failed grub_env_get.
15051
f7db6f4a
VS
150522011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15053
15054 Support non-512B sectors and agglomerate reads.
15055
15056 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
15057 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
15058 (disk_io_guid): Removed.
15059 (make_devices): Locate solely by BlockIO.
15060 (grub_efidisk_open): Fill log_sector_size and total_sectors.
15061 (grub_efidisk_read): Use read_blocks.
15062 (grub_efidisk_write): Use write_blocks.
15063 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
15064 log_sector_size.
15065 (get_safe_sectors): Handle non-512B sectors.
15066 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
15067 sectors.
15068 (grub_biosdisk_write): Handle non-512B sectors.
15069 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
15070 (grub_scsi_read): Remove special non-512B block handling (now handled
15071 one level up).
15072 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
15073 and do sanity checks.
15074 (grub_disk_adjust_range): Handle non-512B sectors.
15075 (transform_sector): New function.
15076 (grub_disk_read_small): Likewise.
15077 (grub_disk_read): Rewritten.
15078 (grub_disk_write): Handle non-512B sectors.
15079 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
15080 log_sector_size.
15081 (open_device): Use log_sector_size.
15082 (grub_util_biosdisk_read): Likewise.
15083 (grub_util_biosdisk_write): Likewise.
15084 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
15085 non-512B sectors.
15086 (pc_partition_map_embed): Likewise.
15087 * include/grub/disk.h (grub_disk): New field log_sector_size.
15088 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
15089 (GRUB_DISK_CACHE_BITS): Increased to 6.
15090 * util/grub-fstest.c (fstest): New command testload.
15091 (argp_parser): Likewise.
15092
881ac815
RM
150932011-06-16 Robert Millan <rmh@gnu.org>
15094
15095 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
15096 `ata' driver on kernel of FreeBSD 9.
15097
15098 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
15099 (get_ataraid_disk_name): New functions.
15100 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
15101 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
15102 get_ataraid_disk_name() and get_ada_disk_name().
15103
1e9aef7d
CW
151042011-06-13 Colin Watson <cjwatson@ubuntu.com>
15105
15106 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
15107 input format.
15108
351c7c8a
CW
151092011-05-29 Colin Watson <cjwatson@ubuntu.com>
15110
15111 * docs/grub.texi (Obtaining and Building GRUB): Substitute
15112 `ftp.gnu.org' for `alpha.gnu.org'.
15113
6b4e6430
CW
151142011-05-27 Colin Watson <cjwatson@ubuntu.com>
15115
15116 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
15117 partitions under /dev/disk/by-id/.
15118
c64db050
CW
151192011-05-27 Colin Watson <cjwatson@ubuntu.com>
15120
15121 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
15122 after ten consecutive open failures. Scanning all the way up to
15123 10000 is excessive and can cause serious performance problems in
15124 some configurations.
15125 Fixes Ubuntu bug #787461.
15126
245f4aba
VS
151272011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15128
15129 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
15130 opening new one.
15131
f767c929
VS
151322011-05-21 Colin Watson <cjwatson@ubuntu.com>
151332011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15134
15135 Don't stat devices unless we have to.
15136
15137 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
15138 dir == /dev/mapper.
15139 (grub_guess_root_device): Use already known os_dev if possible.
15140 * grub-core/kern/emu/hostdisk.c
15141 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
15142 if device is known to be a dm one.
15143
f35fa3a6
CW
151442011-05-20 Colin Watson <cjwatson@ubuntu.com>
15145
15146 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
15147 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
15148 Reported by: Pawel Tecza.
15149
9a79fcf2
VS
151502011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
15151
15152 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
15153 (lsefisystab): Likewise.
15154 (lssal): Likewise.
15155 (lsefimmap): Likewise.
15156 (hdparm): Enable on qemu-mips.
15157 (setjmp): Add ia64 nodist.
15158 (serial): Simplify tags.
15159
63e3eea9
CW
151602011-05-18 Colin Watson <cjwatson@ubuntu.com>
15161
15162 * Makefile.util.def (grub-ofpathname): Install manual page.
15163
09728256
CW
151642011-05-18 Colin Watson <cjwatson@ubuntu.com>
15165
15166 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
15167
8b63a142
CW
151682011-05-18 Colin Watson <cjwatson@ubuntu.com>
15169
15170 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
15171
e775d8ed
VS
151722011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15173
15174 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
15175 into dprintf.
15176
bf947d36
VS
151772011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15178
15179 Use full 64-bit division.
15180
15181 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
15182 (grub_divmod64): ... this.
15183 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
15184 version.
15185
b84f26c5
CW
151862011-05-18 Colin Watson <cjwatson@ubuntu.com>
15187
15188 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
15189 `source'.
15190
5626056f
CW
151912011-05-18 Colin Watson <cjwatson@ubuntu.com>
15192
15193 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
15194 to avoid accidents when debugging with 'sh -x'.
15195 * grub-core/gensyminfo.sh.in: Likewise.
15196 * tests/example_scripted_test.in: Likewise.
15197 * tests/grub_cmd_regexp.in: Likewise.
15198 * tests/grub_script_blanklines.in: Likewise.
15199 * tests/grub_script_dollar.in: Likewise.
15200 * tests/grub_script_expansion.in: Likewise.
15201 * tests/grub_script_final_semicolon.in: Likewise.
15202 * tests/partmap_test.in: Likewise.
15203 * tests/util/grub-shell-tester.in: Likewise.
15204 * tests/util/grub-shell.in: Likewise.
15205
e2965f4a
CW
152062011-05-18 Colin Watson <cjwatson@ubuntu.com>
15207
15208 Move gfxmenu color handling to video, so that gfxterm can use it
15209 too.
15210
15211 * grub-core/gfxmenu/named_colors.c: Move to ...
15212 * grub-core/video/colors.c: ... here. Rename
15213 grub_gui_get_named_color to grub_video_get_named_color.
15214 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
15215 * grub-core/video/colors.c (my_isxdigit): ... here.
15216 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
15217 Move to ...
15218 * grub-core/video/colors.c (parse_hex_color_component): ... here.
15219 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
15220 to ...
15221 * grub-core/video/colors.c (grub_video_parse_color): ... here.
15222
15223 * include/grub/gui.h (grub_gui_color_t): Move to ...
15224 * include/grub/video.h (grub_video_rgba_color_t): ... here.
15225 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
15226 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
15227 * include/grub/gui.h (grub_gui_map_color): Move to ...
15228 * include/grub/video.h (grub_video_map_rgba_color): ... here.
15229 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
15230 to ...
15231 * include/grub/video.h (grub_video_get_named_color): ... here.
15232 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
15233 * include/grub/video.h (grub_video_parse_color): ... here.
15234
15235 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
15236 video/colors.c.
15237 (gfxmenu): Remove gfxmenu/named_colors.c.
15238 (video) [videomodules]: Add video/colors.c.
15239
15240 Add a background_color command.
15241
15242 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
15243 function.
15244 (GRUB_MOD_INIT): Register background_color command.
15245 (GRUB_MOD_FINI): Unregister background_color command.
15246 (redraw_screen_rect): Allow blend/replace of text layer to be
15247 controlled independently from whether there is a background bitmap.
15248 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
15249 changing bitmap.
15250
1e4b4390
VS
152512011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15252
26618ff0
VS
15253 Patch BPB in ntldr and chainloader --bpb.
15254
1e4b4390
VS
15255 * grub-core/fs/fat.c: Include grub/fat.h.
15256 (grub_fat_bpb): Moved to ...
15257 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
15258 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
15259 grub/ntfs.h.
15260 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
15261 Moved from here...
15262 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
15263 here.
15264 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
15265 New function.
15266 (grub_chainloader_cmd): Patch BPB if --bpb is given.
15267 (GRUB_MOD_INIT): Show --bpb.
15268 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
15269 * grub-core/normal/main.c (features): New variable.
15270 (GRUB_MOD_INIT): Set feature_* variables.
15271 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
15272 proto.
15273 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
15274
cf02731e
VS
152752011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15276
15277 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
15278 for cleanness.
15279
e3a1073f
VS
152802011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15281
15282 FreeDOS direct loading support.
15283
15284 * docs/grub.texi (Supported OS): Add FreeDOS.
15285 * grub-core/Makefile.core.def (freedos): New module.
15286 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
15287 variable.
15288 (grub_relocator16_boot): Handle %ebx.
15289 * grub-core/lib/i386/relocator16.S: Likewise.
15290 * grub-core/loader/i386/pc/freedos.c: New file.
15291
05caa461
VS
152922011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15293
15294 Long Linux command line support.
15295
15296 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15297 (maximal_cmdline_size): New variable.
15298 (allocate_pages): Use maximal_cmdline_size.
15299 (grub_cmd_linux): Set and use maximal_cmdline_size.
15300 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15301 (allocate_pages): Use maximal_cmdline_size.
15302 (grub_cmd_linux): Set and use maximal_cmdline_size.
15303 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
15304 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
15305 and cmdline_size.
15306
a2491e23
VS
153072011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
153082011-05-18 Colin Watson <cjwatson@ubuntu.com>
15309
15310 Improve devmapper support
15311
15312 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
15313 (grub_util_is_lvm): New function.
15314 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
15315 than lvm if not dmraid.
15316 Handle mapped md nodes.
15317 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
15318 (grub_util_device_is_mapped): ... this. Make always available. All users
15319 updated.
15320 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
15321 (convert_system_partition_to_system_disk): Handle lvm, mpath and
15322 dmraid nodes.
15323 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
15324
6ad6223e
VS
153252011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15326
15327 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
15328
15329 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
15330 * grub-core/modinfo.sh.in: New file.
15331 * grub-core/Makefile.core.def (modinfo.sh): New script.
15332 * util/grub-mknetdir.in: Use modinfo.sh.
15333 * util/grub-mkrescue.in: Likewise.
15334
543a8f6e
VS
153352011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15336
15337 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15338 Fix potential usage of Elf32 instead of Elf64 when compiling on
15339 32-bit architecture. Add endianness macros while on it.
15340
4959e111
VS
153412011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15342
15343 Use mipsel- rather than mips- in directories involving mipsel ports to
15344 allow both endiannesses coexist.
15345
15346 * configure.ac: proparate target_cpu=mipsel rather than resetting to
15347 mips. All conditions adjusted.
15348 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
15349 variable.
15350 * util/grub-install.in: Adjust conditions to take renaming into account.
15351 * util/grub-mkimage.c (image_targets): Likewise. New target
15352 mips-qemu_mips-elf for bigendian mips.
15353
35341bbc
VS
153542011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15355
15356 Avoid unnecessary copying on MIPS.
15357
15358 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
15359 early if src == dest.
15360 * util/grub-mkimage.c (generate_image): Arange for src == dest if
15361 compression is none.
15362
b772baed
VS
153632011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15364
15365 Reduce memory footprint on SGI by putting modules before the kernel
15366 as opposed to after.
15367
15368 * grub-core/Makefile.core.def (kernel): Increase linking address.
15369 (none_decompress): Likewise.
15370 (xz_decompress): Likewise.
15371 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
15372 address.
15373 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
15374 layout change.
15375 (grub_arch_modules_addr): New function.
15376 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
15377 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
15378 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
15379 here.
15380 * grub-core/kern/mips/startup.S (total_size): Rename to ...
15381 (grub_total_modules_size): ... this. Make global.
15382 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
15383 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
15384 New definition.
15385 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
15386 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
15387 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
15388 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
15389 * util/grub-mkimage.c (image_target_desc): New flag
15390 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
15391 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
15392 (generate_image): Handle images with modules before kernel.
15393
566a1917
VS
153942011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15395
15396 Prevent potential loss of memory map by overwrite on qemu-mips.
15397
15398 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
15399 Save ram size in $s4.
15400 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
15401 All users changed to grub_arch_memsize.
15402 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
15403 Loongson.
15404 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
15405 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
15406 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
15407 external variable.
15408
5d420cd9
CW
154092011-05-17 Colin Watson <cjwatson@ubuntu.com>
15410
15411 * .bzrignore: Remove grub-dumpbios.
15412
d064b830
CW
154132011-05-17 Colin Watson <cjwatson@ubuntu.com>
15414
15415 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
15416 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
15417 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
15418 existing options which append).
15419 * docs/grub.texi (Simple configuration): Document new options.
15420 Reported by: Ian Jackson. Fixes Debian bug #617538.
15421
3ca2b466
CW
154222011-05-17 Colin Watson <cjwatson@ubuntu.com>
15423
15424 * util/grub-fstest.c (cmd_cat): New function.
15425 (fstest): Handle CMD_CAT.
15426 (options): Add cat.
15427 (argp_parser): Handle cat.
15428
24c9143a
CW
154292011-05-17 Colin Watson <cjwatson@ubuntu.com>
15430
15431 * Makefile.util.def (grub-bin2h): Don't install.
15432 * docs/man/grub-bin2h.h2m: Remove.
15433
90f7ac19
VS
154342011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15435
15436 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
15437 place.
15438
8d4a5178
VS
154392011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15440
15441 Reenable qemu-mips port.
15442
15443 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
15444 Fix small arc bug while on it.
15445 * gentpl.py: Handle qemu_mips.
15446 * grub-core/Makefile.am: Likewise.
15447 * grub-core/Makefile.core.def: Likewise.
15448 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
15449 inappropriate includes.
15450 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
15451 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
15452 * grub-core/kern/main.c (grub_modules_get_end)
15453 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
15454 * grub-core/kern/mips/qemu-mips: Moved to ..
15455 * grub-core/kern/mips/qemu_mips: ... this.
15456 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
15457 (grub_machine_init): Call terminfo_init and serial_init.
15458 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
15459 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
15460 New variable.
15461 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
15462 parameter passing.
15463 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
15464 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
15465 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
15466 * include/grub/mips/qemu_mips/cmos.h: New file.
15467 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
15468 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
15469 Removed.
15470 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
15471 Use correct mips-style address.
15472 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
15473 (GRUB_TICKS_PER_SECOND): Removed.
15474 (grub_get_rtc): Likewise.
15475 (grub_cpu_idle): Likewise.
15476 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
15477 New definition.
15478 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
15479 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
15480 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
15481 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
15482 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
15483 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
15484 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
15485 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
15486
400b9371
VS
154872011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15488
15489 SGI ARCS port.
15490
15491 * Makefile.util.def (libgrubmods.a): Add dvh.c.
15492 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
15493 platforms.
15494 * configure.ac: New target mips-arc.
15495 * gentpl.py: Likewise.
15496 * grub-core/Makefile.am: Likewise.
15497 * grub-core/Makefile.core.def: Likewise.
15498 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
15499 (none_decompress): Likewise.
15500 (lsdev): New module.
15501 (datetime): Use lib/arc/datetime.c on ARC.
15502 (part_dvh): New module.
15503 * grub-core/commands/arc/lsdev.c: New file.
15504 * grub-core/disk/arc/arcdisk.c: Likewise.
15505 * grub-core/kern/mips/arc/init.c: Likewise.
15506 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
15507 aligned addresses.
15508 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
15509 support.
15510 (grub_arch_dl_relocate_symbols): Likewise.
15511 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
15512 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
15513 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
15514 platforms.
15515 * grub-core/lib/arc/datetime.c: New file.
15516 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
15517 pci.h on non-loongson.
15518 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
15519 (grub_linux_boot): Set unused registers to 0.
15520 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
15521 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
15522 * grub-core/mmap/mips/uppermem.c: ...here.
15523 * grub-core/partmap/dvh.c: New file.
15524 * grub-core/term/arc/console.c: Likewise.
15525 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
15526 (grub_terminfo_set_current): Add terminal "arc".
15527 (grub_terminfo_readkey): Support ARC sequences.
15528 * include/grub/arc/arc.h: New file.
15529 * include/grub/arc/console.h: Likewise.
15530 * include/grub/disk.h (grub_disk_dev_id): Add
15531 GRUB_DISK_DEVICE_ARCDISK_ID.
15532 * include/grub/mips/arc/kernel.h: New file.
15533 * include/grub/mips/arc/memory.h: Likewise.
15534 * include/grub/mips/arc/time.h: Likewise.
15535 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
15536 * include/grub/mips/kernel.h (grub_halt): ... here.
15537 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
15538 here...
15539 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
15540 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
15541 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
15542 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
15543 proto.
15544 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
15545 from here ...
15546 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
15547 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
15548 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
15549 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
15550 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
15551 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
15552 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
15553 (grub_phys_addr_t): Moved from here ...
15554 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
15555 (grub_vtop): Moved from here ...
15556 * include/grub/mips/memory.h (grub_vtop): ... here.
15557 (grub_map_memory): Moved from here ...
15558 * include/grub/mips/memory.h (grub_map_memory): ... here.
15559 (grub_unmap_memory): Moved from here ...
15560 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
15561 (grub_machine_mmap_iterate): Moved from here ...
15562 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
15563 (grub_mmap_get_lower): Moved from here ...
15564 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
15565 (grub_mmap_get_upper): Moved from here ...
15566 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
15567 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
15568 here ...
15569 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
15570 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
15571 here ...
15572 * include/grub/mips/time.h (grub_get_rtc): ... here.
15573 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
15574 here ...
15575 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
15576 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
15577 here ...
15578 * include/grub/mips/time.h (grub_cpu_idle): ... here.
15579 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
15580 definition.
15581 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
15582 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
15583 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
15584 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
15585 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
15586 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
15587 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
15588 (GRUB_MACHINE_LINK_ADDR): Likewise.
15589 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
15590 to 6.
15591 * util/grub-install.in: Run dvhtool on ARC.
15592 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 15593 (generate_image): Handle ECOFF output for mips-arc.
400b9371 15594
c8ecc840
VS
155952011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15596
15597 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
15598 blocks.
15599
153a4b55
VS
156002011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15601
15602 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
15603 after enabling port.
15604
ff44d107
VS
156052011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15606
15607 Skip incorrect USB devices.
15608
15609 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
15610 configcnt == 0.
15611 * include/grub/usb.h (grub_usb_err_t): New enum value
15612 GRUB_USB_ERR_BADDEVICE.
15613
638dbe4f
VS
156142011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
15615
15616 Fuloong video init support.
15617
15618 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
15619 well.
15620 (grub_vga_read_arx): New function.
15621 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
15622 definition.
15623 (framebuffer): New members io, mmioptr and mmiobase.
15624 (read_sis_cmd): New function.
15625 (write_sis_cmd): Likewise.
15626 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
15627 rather than 640x400.
15628 * grub-core/video/sis315_init.c: New file.
15629
c3fc520c
VS
156302011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15631
15632 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
15633 non-loongson.
15634 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
15635 to grub_dl_register_symbol.
15636
67b1e5c9
VS
156372011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15638
15639 Fix compilation errors.
15640
15641 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
15642 potentially unused.
15643 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
15644 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
15645 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
15646 to loongson machines.
15647
b756f75f
VS
156482011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 Several FS mtime support.
15651
15652 * grub-core/fs/affs.c (grub_affs_time): New struct.
15653 (grub_affs_file): New field mtime.
15654 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
15655 type. Removed 'size'. New field 'di'. All users updated.
15656 (grub_affs_mount): Simplify checsum checking.
15657 (grub_affs_iterate_dir): New helper grub_affs_create_node.
15658 (grub_affs_dir): Handle mtime.
15659 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
15660 (grub_cpio_dir): Likewise.
15661 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
15662 (grub_hfs_filerec): New field mtime.
15663 (grub_hfs_dir): Handle mtime.
15664 (grub_hfs_mtime): New function.
15665 (grub_hfs_fs): Register grub_hfs_mtime.
15666 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
15667 (grub_iso9660_dir): New field mtime.
15668 (grub_fshelp_node): New field dirent.
15669 (iso9660_to_unixtime): New function.
15670 (iso9660_to_unixtime2): Likewise.
15671 (grub_iso9660_read_symlink): Use node->dirent.
15672 (grub_iso9660_iterate_dir): Likewise.
15673 (grub_iso9660_dir): Set mtime.
15674 (grub_iso9660_mtime): New function.
15675 (grub_iso9660_fs): Register grub_iso9660_mtime.
15676 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
15677 (grub_jfs_inode): New fields atime, ctime and mtime.
15678 (grub_jfs_dir): Set mtime.
15679 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15680 * grub-core/fs/ntfs.c (list_file): Set mtime.
15681 (grub_ntfs_dir): Likewise.
15682 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
15683 (grub_reiserfs_iterate_dir): Set mtime.
15684 (grub_reiserfs_dir): Likewise.
15685 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
15686 (grub_fshelp_node): Likewise.
15687 (grub_sfs_iterate_dir): Set mtime.
15688 (grub_sfs_dir): Likewise.
15689 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
15690 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
15691 (grub_xfs_inode): New fields atime, mtime, ctime.
15692 (grub_xfs_dir): Set mtime.
15693 * include/grub/datetime.h (grub_datetime2unixtime): New function.
15694 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
15695 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
15696
15697 Support UDF symlinks.
15698
15699 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
15700 (grub_ufs_read_symlink): New function. All users updated.
15701
15702 Check amiga partmap checksum.
15703
15704 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
15705 (grub_amiga_partition): Likewise.
15706 (amiga_partition_map_checksum): New function.
15707 (amiga_partition_map_iterate): Check checksum.
15708
5470225d
VS
157092011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15710
15711 ROMFS support.
15712
15713 * Makefile.util.def (libgrubmods.a): Add romfs.
15714 * grub-core/Makefile.core.def (romfs): New module.
15715 * grub-core/fs/romfs.c: New file.
15716
d4680a35
VS
157172011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15718
15719 Squashfs v4 support.
15720
15721 * Makefile.util.def (libgrubmods.a): Add squash4.
15722 * grub-core/Makefile.core.def (squash4): New module.
15723 * grub-core/fs/squash4.c: New file.
15724 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
15725 disk_input_start, disk_input.
15726 (get_byte): Handle disk_input.
15727 (grub_zlib_disk_read): New function.
15728 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
15729
bcb18e74
FZ
157302011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
157312011-05-15 Feiran Zheng <famcool@gmail.com>
15732
15733 * Makefile.util.def (libgrubmods.a): Add minix3.
15734 * grub-core/Makefile.core.def (minix3): New module.
15735 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
15736 (GRUB_MINIX_BSIZE): Removed.
15737 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
15738 (grub_minix_ino_t): New type.
15739 (grub_minix_le_to_cpu_ino): New macro.
15740 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
15741 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
15742 (grub_minix_data): New field block_size.
15743 (grub_minix_read_file): Handle 64-bit correctly.
15744 * grub-core/fs/minix3.c: New file.
15745
32297d5f
TG
157462011-05-15 Tristan Gingold <gingold@free.fr>
157472011-05-15 Robert Millan <rmh.grub@aybabtu.com>
157482011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15749
15750 IA64 support.
15751
15752 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
15753 * configure.ac: Add ia64-efi target.
15754 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
15755 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
15756 * gentpl.py: Add ia64_efi platform.
15757 Rename x86_efi to efi and Add ia64-efi. All users updated.
15758 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
15759 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
15760 Remove kern/generic/rtc_get_time_ms.c on EFI.
15761 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
15762 kern/ia64/dl_helper.c on ia64-efi.
15763 Add kern/emu/cache.c on emu.
15764 (linux): Use on loader/ia64/efi/linux.c on ia64.
15765 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
15766 whether symbol is a function.
15767 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
15768 (grub_symbol): New field 'isfunc'.
15769 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
15770 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
15771 (grub_dl_load_segments): Place all sections into the same region.
15772 [__ia64__]: Create trampolines and got.
15773 [GRUB_MACHINE_EMU]: Call mprotect.
15774 (grub_dl_resolve_symbols): Resolve symbol type as well.
15775 [__ia64__]: Create function descriptors.
15776 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
15777 (grub_rtc_get_time_ms): ... this. Expressions simplified.
15778 (grub_get_rtc): New function.
15779 * grub-core/kern/emu/cache.c [__ia64__]: New file.
15780 * grub-core/kern/emu/cache.S: Renamed to ...
15781 * grub-core/kern/emu/cache_s.S: ... this.
15782 [__ia64__]: Add a nop.
15783 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
15784 [__ia64__]: New function.
15785 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
15786 * grub-core/kern/ia64/dl.c: New file.
15787 * grub-core/kern/ia64/dl_helper.c: Likewise.
15788 * grub-core/kern/ia64/efi/init.c: New file.
15789 * grub-core/kern/ia64/efi/startup.S: Likewise.
15790 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
15791 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
15792 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
15793 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
15794 * grub-core/loader/ia64/efi/linux.c: New file.
15795 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
15796 (GRUB_MOD_DEP): Likewise.
15797 (grub_dl) [__ia64__]: New fields got and tramp.
15798 (grub_dl): New field 'base'.
15799 (grub_dl_register_symbol): New argument isfunc. All users updated.
15800 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
15801 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
15802 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
15803 (grub_ia64_dl_get_tramp_got_size): New proto.
15804 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
15805 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
15806 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
15807 * include/grub/efi/api.h: Skip call wrappers on ia64.
15808 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
15809 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
15810 * include/grub/elf.h (ELF_ST_INFO): New definition.
15811 * include/grub/ia64/efi/kernel.h: New file.
15812 * include/grub/ia64/efi/memory.h: Likewise.
15813 * include/grub/ia64/efi/time.h: Likewise.
15814 * include/grub/ia64/kernel.h: Likewise.
15815 * include/grub/ia64/setjmp.h: Likewise (from glibc).
15816 * include/grub/ia64/time.h: New file.
15817 * include/grub/ia64/types.h: Likewise.
15818 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
15819 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
15820 New protos.
15821 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
15822 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
15823 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
15824 * util/grub-mkimage.c (image_target_desc): New field pe_target.
15825 All users updated.
15826 (EFI64_HEADER_SIZE): New definition. All users updated.
15827 (image_targets): Add ia64-efi.
15828 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
15829 jumpers_addr. All users updated.
15830 Create function descriptors.
15831 (count_funcs): New function.
15832 (unaligned_uint32): New struct.
15833 (MASK20): New definition.
15834 (MASK19): Likewise.
15835 (MASKF21): Likewise.
15836 (add_value_to_slot_20b): New function.
15837 (add_value_to_slot_21_real): Likewise.
15838 (add_value_to_slot_21): Likewise.
15839 (ia64_kernel_trampoline): New struct.
15840 (nopm): New variable.
15841 (jump): Likewise.
15842 (make_trampoline): New function.
15843 (relocate_addresses): Handle ia64.
15844 (make_reloc_section): Likewise.
15845 (load_image): Likewise.
15846
983b414d
VS
158472011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15848
15849 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
15850 warning. Move variables before code while on it.
15851
5d063cdc
VS
158522011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15853
15854 Fuloong support.
15855
15856 * configure.ac: Rename yeeloong platform to loongson. All users updated.
15857 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
15858 * grub-core/boot/mips/loongson/fuloong.S: New file.
15859 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
15860 Explicitly init CS5536.
15861 [FULOONG]: Don't use serial until CS5536 is available.
15862 Set GPIO based on dumps.
15863 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
15864 [FULOONG]: Handle GPIO and memory controller differences.
15865 Parse machine type in $a2.
15866 * grub-core/boot/mips/startup_raw.S: Determine and save the
15867 architecture.
15868 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
15869 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
15870 init on architecture type.
15871 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
15872 SIS315E. Don't init at_keyboard on fuloong.
15873 (grub_halt): Support Fuloong.
15874 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
15875 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
15876 (loongson_machtypes): New array.
15877 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
15878 type.
15879 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
15880 config. All users updated. Handle CS5536 serial.
15881 * grub-core/term/serial.c (grub_serial_register): Conditionalise
15882 default port on machine type. Register serial as inactive.
15883 * grub-core/video/sis315pro.c: New file.
15884 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
15885 definition.
15886 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
15887 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
15888 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
15889 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
15890 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
15891 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
15892 to ...
15893 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
15894 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
15895 definition.
15896 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
15897 (grub_arch_machine): New extern var.
15898 * include/grub/mips/loongson/serial.h
15899 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
15900 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
15901 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
15902 (GRUB_MACHINE_SERIAL_PORT0): ... this.
15903 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
15904 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
15905 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
15906 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
15907 * include/grub/term.h (grub_term_register_input_inactive): New inline
15908 function.
15909 (grub_term_register_output_inactive): Likewise.
15910 * include/grub/video.h (grub_video_driver_id): New value
15911 GRUB_VIDEO_DRIVER_SIS315PRO.
15912 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
15913 New field "names". All users updated.
15914 New field value IMAGE_FULOONG_FLASH.
15915 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
15916
6ada82d1
JU
159172011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
15918
15919 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
15920 and add some clarification.
15921
90c571a4
VS
159222011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15923
15924 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
15925 platforms if kernel is compressed.
15926
de04eecf
VS
159272011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15928
15929 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
15930 unused modules since currently referrence counter isn't reliable and
15931 there isn't much memory to recover there anyway.
15932
57688121
VS
159332011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15934
15935 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
15936 rather than resetting it to allow modules to reference themselves
15937 in init.
15938
3d2c7e35
VS
159392011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15940
15941 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
15942 counter on dependencies since grub_dl_unref already handles this.
15943
b25db218
VS
159442011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15945
15946 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
15947 on error if not already done.
15948
25a45338
VS
159492011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15950
15951 Fix few potential memory misusage.
15952
15953 * grub-core/font/font.c (load_font_index): Don't free char_index to
15954 avoid double free.
b25db218
VS
15955 (grub_font_load): Zero-fill font at alloc for safety.
15956 Close file on error.
15957 (free_font): Free bmp_idx.
25a45338 15958
0cac83df
VS
159592011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15960
15961 * docs/grub.texi (Installation): Fix several outdated claims.
15962
2217a143
VS
159632011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15964
15965 Handle module_license on windows.
15966
15967 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
15968 sections shifted.
15969 (insert_string): Make argument const char * instead of char *.
15970 (write_section_data): Handle long section names.
15971 Handle module_license.
15972
d4de6b01
VS
159732011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15974
15975 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
15976 handle class-free menuentries.
15977 (grub_normal_add_menu_entry): Add a check to be sure.
15978
4c2a3b43
VS
159792011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15980
15981 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
15982 PgUp and PgDown.
15983
85c6210f
VS
159842011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15985
15986 * configure.ac: Bump version to 1.99.
15987
36084912
VS
159882011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15989
15990 Give ATA device a bit more time on first try in order to allow disks
15991 to spin up.
15992
15993 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
15994 if dev->present is 1. Reset dev->present on failure.
15995 (grub_ata_device_initialize): Set dev->present to 1.
15996 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
15997 (grub_ata_device): New member 'present'.
15998
bda0e219
VS
159992011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16000
16001 * util/grub-mkimage.c (generate_image): Update hash.
16002
19e1c41b
VS
160032011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16004
16005 Flush caches on DMA memory.
16006
16007 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
16008 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
16009 (grub_dma_free): Likewise.
16010 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
16011
91bbcc0c
VS
160122011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16013
16014 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
16015 to avoid asm treating ld and sd as macros.
16016
60ddfad3
VS
160172011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16018
16019 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
16020 decompressor.
16021
a298aa04
VS
160222011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16023
16024 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
16025 grub_decompress_core since later would fail if grub_decompress_core
16026 is too far.
16027
9b44feca
VS
160282011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16029
16030 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
16031 R_MIPS_JALR since it's used by newer compiler.
16032
56dbe7b4
VS
160332011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
16034
16035 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
16036
52856af2
VS
160372011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16038
16039 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
16040 file_path to 0 for surety.
16041 (grub_chainloader_boot): Set exit_data to NULL.
16042 Unset the loader once done.
16043 (grub_cmd_chainloader): Fix confusing error message if file is empty.
16044
9c9bfc6d
VS
160452011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16046
16047 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
16048 unknown key into a dprintf.
16049
dd94a3df
VS
160502011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16051
16052 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
16053 on first non-existant partition.
16054
fa68d99c
VS
160552011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16056
16057 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
16058 openning fails.
16059 Reported by: Mark Korenberg.
16060
157effb7
VS
160612011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16062
16063 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
16064 overflow.
16065
ea75312f
VS
160662011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16067
16068 * util/grub-mkimage.c (main): Explicitely flush and sync the output
16069 before closing to ensure that it will be readable by grub-setup.
16070
072b5d31
VS
160712011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16072
16073 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
16074 (devpath_1): Use MAKE_PIWG_PATH.
16075 (devpath_2): Likewise.
16076 (devpath_3): Likewise.
16077 (devpath_4): Likewise.
16078 (devpath_5): Likewise.
16079 (devpath_6): Likewise.
16080
16081 The appleldr.mod was checked that to be binary identical to previous
16082 version.
16083
7fae0051
Z
160842011-05-05 Zach <mikezackles>
16085
16086 Support 2010 Macbooks.
16087
16088 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
16089 (devs): Add devpath_6.
16090
7c515bee
VS
160912011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16092
16093 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
16094 /dev/random. /dev/urandom is good enough for our purposes (salting).
16095
ed660bd8
VS
160962011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16097
16098 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
16099
ee5614b7
VS
161002011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16101
16102 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
16103 hexadecimal.
16104
664889a6
VS
161052011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16106
16107 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
16108 and not 0 on failure.
16109
bd405bbc
CW
161102011-05-03 Colin Watson <cjwatson@ubuntu.com>
16111
16112 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
16113 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
16114 disk; otherwise grub_fs_probe will not fall back to the next
16115 filesystem.
16116 (grub_pxefs_open): Likewise, for consistency.
16117 Reported and tested by: Ezekiel Grave.
16118
4ebff753
CW
161192011-05-03 Colin Watson <cjwatson@ubuntu.com>
16120
16121 * tests/partmap_test.in: Don't hardcode path to parted.
16122 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
16123
8f942553
CW
161242011-05-01 Colin Watson <cjwatson@ubuntu.com>
16125
16126 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
16127 of `ls' to find out which devices are available.
16128
3c62402d
VS
161292011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16130
16131 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
16132 than source address for efi mmap buffer.
16133
723f63f2
VS
161342011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16135
16136 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
16137 wrong action on non-detecting the magic.
16138
68797f92
VS
161392011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16140
16141 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
16142 already supplied by another part of the module (fixes compilation on
16143 FreeBSD).
16144
6be8715d
VS
161452011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16146
16147 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
16148 match the one used by mdadm.
16149
e91dba5b
CW
161502011-04-21 Colin Watson <cjwatson@ubuntu.com>
16151
16152 * po/README: Add instructions for creating po/LINGUAS.
16153
c85140b3
CW
161542011-04-21 Colin Watson <cjwatson@ubuntu.com>
16155
16156 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
16157 #551428.
16158
16159 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
16160 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
16161 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
16162 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
16163 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
16164 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
16165 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
16166 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
16167 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
16168 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
16169 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
16170 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
16171 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
16172 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
16173 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
16174 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
16175 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
16176 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
16177 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
16178 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
16179 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
16180 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
16181
92051871
CW
161822011-04-21 Colin Watson <cjwatson@ubuntu.com>
16183
16184 * grub-core/kern/emu/getroot.c
16185 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
16186 test that was incorrectly reintroduced in r3214.
16187 Reported by: Ian Dall. Fixes Savannah bug #33133.
16188
b13f79a4
CW
161892011-04-21 Colin Watson <cjwatson@ubuntu.com>
16190
16191 Fix stack pointer handling in 16-bit relocator.
16192
16193 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
16194 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
16195 Fixes Ubuntu bug #683904.
16196
9b710a88
VS
161972011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16198
16199 * configure.ac: Bump version to 1.99~rc2.
16200
d97e7b59
VS
162012011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16202
16203 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
16204 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
16205 * grub-core/lib/x86_64/setjmp.S: Likewise.
16206 * grub-core/lib/mips/setjmp.S: Likewise.
16207 * grub-core/lib/powerpc/setjmp.S: Likewise.
16208 * grub-core/lib/sparc64/setjmp.S: Likewise.
16209
0624551c
VS
162102011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16211
16212 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
16213 * grub-core/lib/efi/datetime.c: Likewise.
16214
e8f28d4c
VS
162152011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16216
16217 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
16218 New function.
16219 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
16220 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
16221 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
16222
bba79a15
VS
162232011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16224
16225 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
16226 bitmap.
16227 (grub_gfxterm_term_init): Likewise.
16228
abc474ef
VS
162292011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16230
16231 Take into account the decorations the computing menu entry width.
16232
16233 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
16234 (grub_gfxmenu_create_box): Register get_border_width.
16235 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
16236 if available.
16237 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
16238 get_border_width.
16239
e74b3947
EP
162402011-04-18 Endres Puschner <code@e7p.de>
16241
16242 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
16243 Don't skip first class.
16244
34faa595
VS
162452011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16246
16247 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
16248 chunks.
16249 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
16250
93a777e3
VS
162512011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16252
16253 Complete 64-bit division support.
16254
16255 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
16256 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
16257 * include/grub/misc.h (grub_divmod64): Rename to ...
16258 (grub_divmod64_full): ... this.
16259 (grub_divmod64): New inline function.
16260
a5102d94
VS
162612011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16262
16263 * util/grub-mkimage.c (generate_image): Add forgotten comma.
16264
f3fb7b36
VS
162652011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16266
16267 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
16268 performing the necessary test.
16269
9ac718b0
VS
162702011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16271
16272 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
16273 (kfreebsd.elf): Likewise.
16274 (pc-chainloader.elf): Likewise.
16275 (ntldr.elf): Likewise.
16276
50d2cc5a
VS
162772011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16278
16279 Identify RAID by its UUID rather than (guessed) name.
16280
16281 * grub-core/disk/raid.c (ascii2hex): New function.
16282 (grub_raid_open): Accept mduuid/%s specification.
16283 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
16284 (get_mdadm_uuid): ... this.
16285 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
16286
e03f7bea
VS
162872011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
16288
16289 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
16290 to negative size.
16291
e74c3112
CW
162922011-04-13 Colin Watson <cjwatson@ubuntu.com>
16293
16294 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
16295 btrfs subvolume.
16296 * util/grub.d/20_linux_xen.in: Likewise.
16297
78fa584f
CW
162982011-04-13 Colin Watson <cjwatson@ubuntu.com>
16299
16300 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
16301 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
16302
16303 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16304 Build a list of relevant visible mounts using the mnt_id and
16305 parent_mnt_id fields, and then scan that list at the end.
16306
9d5f8162
CW
163072011-04-12 Colin Watson <cjwatson@ubuntu.com>
16308
16309 * docs/grub.texi (normal): New section.
16310 (normal_exit): New section.
16311 (Embedded configuration): Add reference to normal.
16312 (GRUB only offers a rescue shell): Likewise.
16313 * docs/grub-dev.texi (Error Handling): Fix typo.
16314
09a9d66f
CW
163152011-04-12 Colin Watson <cjwatson@ubuntu.com>
16316
16317 * NEWS: Drop obsolete entry about probe-only btrfs support.
16318
0c676933
CW
163192011-04-12 Colin Watson <cjwatson@ubuntu.com>
16320
16321 * util/import_gcry.py: Fix typo.
16322
ec9f5e0d
VS
163232011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16324
16325 * NEWS: Add btrfs support.
16326
fe6b2cba
VS
163272011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
163282011-04-11 Colin Watson <cjwatson@ubuntu.com>
16329
16330 BtrFS support. Written by me (Vladimir) with important bugfixes and
16331 even more important testing by Colin.
16332
16333 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
16334 * grub-core/Makefile.core.def (btrfs): Add crc.c.
16335 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
16336 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
16337 mem_input_off and mem_input. All users updated to accept in-RAM input.
16338 (gzio_seek): New function.
16339 (test_zlib_header): Likewise.
16340 (grub_gzio_read): Likewise.
16341 (grub_zlib_decompress): Likewise.
16342 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
16343 Accept partial and non-virtual mounts.
16344 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
16345 avoid receiving /dev/dm-X as device.
16346 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
16347 Handle bind and partial mounts.
16348 * grub-core/lib/crc.c: New file.
16349 * include/grub/deflate.h: Likewise.
16350 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
16351 proto.
16352 * include/grub/lib/crc.h: New file.
16353
e745cf0c
VS
163542011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16355
16356 Implement automatic module license checking according to new GNU
16357 guidelines.
16358
16359 * grub-core/kern/dl.c (grub_dl_check_license): New function.
16360 (grub_dl_load_core): Use grub_dl_check_license.
16361 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
16362 (GRUB_MOD_LICENSE): Likewise.
16363 (GRUB_MOD_DUAL_LICENSE): Likewise.
16364 All modules updated.
16365
2a9bc016
CW
163662011-04-11 Colin Watson <cjwatson@ubuntu.com>
16367
16368 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
16369 reserved_first_sector to 1. btrfs reserves plenty of space for boot
16370 loaders.
16371 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
16372
8a3bc88e
VS
163732011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16374
16375 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
16376
af869a4a
VS
163772011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16378
16379 * util/grub-fstest.c (read_file): Report GRUB error if file opening
16380 failed.
16381
9ee8d94f
VS
163822011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16383
16384 * grub-core/kern/file.c (grub_file_open): Don't take into account the
16385 parenthesis in the middle of the filename.
16386
b01abe3e
VS
163872011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16388
16389 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
16390 rather than trying to put initrd way too high.
16391 Reported by: Ryan Lortie <desrt@desrt.ca>
16392
335bda1e
VS
163932011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16394
16395 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
16396 improperly removed string.
16397
5ca1a64d
VS
163982011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16399
16400 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
16401 is_disk.
16402 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
16403 (open_device) Likewise.
16404 (grub_util_biosdisk_close): Likewise.
d8ce9995 16405 Reported by: Mark Korenberg.
5ca1a64d 16406
cbac5b1e
AK
164072011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
16408
16409 * util/grub-mkconfig_lib.in: Add missing quotes.
16410
088cdb65
CW
164112011-04-10 Colin Watson <cjwatson@ubuntu.com>
16412
16413 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
16414 is NULL.
16415
8b8a81fa
VS
164162011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16417
16418 Dynamically count the number of lines for the lower banner.
16419
16420 * grub-core/normal/menu_entry.c (per_term_screen): New member
16421 num_entries.
16422 (print_down): Use num_entries.
16423 (update_screen): Likewise.
16424 (grub_menu_entry_run): Set num_entries.
16425 * grub-core/normal/menu_text.c (menu_viewer_data): New member
16426 num_entries.
16427 (grub_print_message_indented): Move real part to ...
16428 (grub_print_message_indented_real): ... here. Additional argument
16429 dry_run.
16430 (draw_border): Additional argument num_entries.
16431 (print_message): Additional argument dry_run.
16432 (print_entries): Receive menu viewer data.
16433 (grub_menu_init_page): New argment num_entries.
16434 (menu_text_set_chosen_entry): Use num_entries.
16435 (grub_menu_try_text): Likewise.
16436 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
16437 All users updated.
16438 (grub_ucs4_count_lines): New function.
16439 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
16440 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
16441 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
16442 (grub_term_border_height): Likewise.
16443 (grub_term_num_entries): Likewise.
16444
277f955b
VS
164452011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16446
16447 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
16448 Remove now unused string.
16449
536ce85a
CW
164502011-04-09 Colin Watson <cjwatson@ubuntu.com>
16451
16452 * docs/grub-dev.texi (Finding your way around): Update for 1.99
16453 build system.
16454 (Getting started): GRUB is developed in Bazaar now, not Subversion.
16455
16456 (Comment): Fix typo.
16457 (Getting started): General copy-editing.
16458 (Typical Development Experience): Likewise.
16459 (Error Handling): Likewise.
16460 (Video API): Likewise.
16461
2cf09e32
CW
164622011-04-09 Colin Watson <cjwatson@ubuntu.com>
16463
16464 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
16465 throughout.
16466
1ec652f4
VS
164672011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16468
16469 * util/grub-mkimage.c (main): Handle special naming of yeeloong
16470 directory.
16471
2c583728
CW
164722011-04-08 Colin Watson <cjwatson@ubuntu.com>
16473
16474 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
16475 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
16476 "development".
16477
d7a565e9
VS
164782011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16479
16480 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
16481 grub_strcpy since the lines aren't necessarily 0-terminated.
16482
7c2e4909
VS
164832011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16484
16485 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
16486 root on legacy.
16487
34c09785
VS
164882011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16489
16490 * grub-core/commands/probe.c (options): Argument to set isn't optional.
16491 (GRUB_MOD_INIT): DEVICE isn't optional.
16492
6a6f8058
VS
164932011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16494
16495 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
16496 word on new line if it's too long anyway. Fixes a hang.
16497
2e335e90
VS
164982011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16499
16500 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
16501 const.
16502 * util/grub-setup.c (main): Reuse md device name if available.
16503 * util/raid.c (grub_util_raid_getmembers): Receive device name and
16504 not GRUB name as argument.
16505 Based on patch by: Florian Wagner <fwagner>.
16506
10a7a867
VS
165072011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16508
16509 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16510 Place mbi on low memory for better compatibility.
16511
7a3d6cd9
VS
165122011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16513
16514 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
16515
18dd6b47
VS
165162011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
165172011-04-08 Colin Watson <cjwatson@ubuntu.com>
16518
16519 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 16520 * conf/Makefile.common: Likewise.
18dd6b47 16521
3c0e3f14
VS
165222011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16523
f7148863
VS
16524 * grub-core/normal/menu.c: Add missing include.
16525
165262011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16527
16528 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 16529
6d1fa41f
MZ
165302011-04-08 Martin Zuther <mzuther@mzuther.de>
16531
16532 * util/grub-mkconfig.in: Ignore emacsen backup.
16533
478182a8
VS
165342011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16535
16536 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
16537 on open.
16538 (grub_util_biosdisk_close): Likewise.
16539
72a89a54
VS
165402011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
16541
16542 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
16543 const attribute and use grub_isdigit.
16544
b5ebecfa
A
165452011-04-06 Andrey <dev_null@ukr.net>
16546
16547 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
16548 gcc warning.
16549
7755f66e
VS
165502011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16551
16552 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
16553 useful grub_dprintf's.
16554
461121ff
VS
165552011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16556
16557 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
16558
2a961775
VS
165592011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16560
16561 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
16562
adf594cc
VS
165632011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16564
16565 Output errors if theme loading failed.
16566
16567 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
16568 grub_gfxterm_fullscreen on error paths to ...
16569 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
16570 theme loading error.
16571
665900a3
VS
165722011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16573
16574 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
16575 space for older compilers.
16576 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16577
a562b479
VS
165782011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
16579
16580 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
16581 and report them as not RAID members since they are useless for GRUB.
16582 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16583
850e9373
VS
165842011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16585
16586 Increase LVM implementation robustness in order not to crash on
16587 configurations like pvmove. Previously code assumed that in some places
16588 only lvs or only pvs are used whereas it seems that they are used
16589 interchangeably.
16590
16591 * grub-core/disk/lvm.c (read_node): New function.
16592 (read_lv): Use read_node.
16593 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
16594 Match volumes only at the end when all lvs are found. Take both
16595 pvs (first) and lvs (second) into account.
16596 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
16597 mirror_* into node_*. All users updated.
16598 (grub_lvm_stripe): Merge this ...
16599 (grub_lvm_mirror): ... and this ...
16600 (grub_lvm_node): ... into this. All users updated.
16601
6f332153
VS
166022011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16603
16604 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
16605 of function to allow further scanning for LVMs.
16606
829ea451
VS
166072011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16608
16609 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
16610 on failed seek as it breaks open fd reusage.
16611
09ceb9a5
VS
166122011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16613
16614 * util/grub-install.in: Add a recommendation to use --recheck before
16615 reporting bugs.
16616
67e11623
VS
166172011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16618
16619 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
16620 are obtained.
16621
caee5efd
VS
166222011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
16623
16624 GRUB developper manual based on existing Internals section and
16625 contributions by the various authors with active copyright assignment.
16626
16627 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
16628 * docs/font_char_metrics.png: New file.
16629 * docs/font_char_metrics.txt: Likewise.
16630 * docs/grub-dev.texi: Likewise.
16631 * docs/grub.texi (Internals): Move from here ...
16632 * docs/grub-dev.texi: ... here.
16633
2cccc747
CW
166342011-04-01 Colin Watson <cjwatson@ubuntu.com>
16635
16636 Store the loopback device as data on loopback grub_disk structures,
16637 rather than the file it points to. This fixes use of freed memory
16638 if an existing loopback device is replaced.
16639
16640 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
16641 disk->data, not dev->file.
16642 (grub_loopback_read): Adjust file assignment to match.
16643 Fixes Ubuntu bug #742967.
16644
186ae367
CW
166452011-04-01 Colin Watson <cjwatson@ubuntu.com>
16646
16647 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
16648 when replacing an existing device.
16649
cfed2ad0
VS
166502011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
16651
16652 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
16653 memory corruptions.
16654
16655 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
16656 unsigned.
16657 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
16658 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
16659 (grub_jfs_read_inode): Likewise.
16660 (grub_jfs_opendir): Likewise. Remove now useless casts.
16661 (grub_jfs_getent): Likewise.
16662 Make ino a grub_uint32_t rather than int.
16663 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
16664 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
16665 division and module with bit operations.
16666 (grub_jfs_find_file): Make ino a grub_uint32_t.
16667 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
16668
05d2ed32
CW
166692011-04-01 Colin Watson <cjwatson@ubuntu.com>
16670
16671 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
16672 warning. (This was in fact always initialised before use, but GCC
16673 wasn't smart enough to prove that.)
16674 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
16675
91dc6073
VS
166762011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
16679 stack alignment.
16680 (efi_wrap_1): Likewise.
16681 (efi_wrap_2): Likewise.
16682 (efi_wrap_3): Likewise.
16683 (efi_wrap_4): Likewise.
16684 (efi_wrap_5): Likewise.
16685 (efi_wrap_6): Likewise.
16686 (efi_wrap_10): Likewise.
16687 Based on information by: Red Hat/Peter Jones.
16688
a8afc1d1
CW
166892011-03-31 Colin Watson <cjwatson@ubuntu.com>
16690
16691 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
16692 set-but-not-used variable.
16693
a826cc7d
CW
166942011-03-31 Colin Watson <cjwatson@ubuntu.com>
16695
16696 * docs/grub.texi (Simple configuration): Be more explicit about
16697 GRUB_DEFAULT, and add an example.
16698 Reported by: Leslie Rhorer.
16699
875b67ba
CW
167002011-03-30 Colin Watson <cjwatson@ubuntu.com>
16701
16702 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
16703 shell".
16704
fd7cd914
AS
167052011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
16706
16707 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
16708 * util/grub.d/20_linux_xen.in: Likewise.
16709
090b1b6a
VS
167102011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16711
16712 * util/grub.d/10_linux.in: Try alternative config filenames where
16713 we parse config file.
16714 * util/grub.d/20_linux_xen.in: Likewise.
16715
baad885c
AS
167162011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
16717
16718 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
16719 * util/grub.d/20_linux_xen.in: Likewise.
16720
241e41f5
VS
167212011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16722
16723 * grub-core/disk/raid.c (insert_array): Add few potentially
16724 useful grub_util_info.
16725 (grub_raid_register): Likewise.
16726
56445fb2
VS
167272011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16728
16729 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
16730 Preserve partition number in mdadm code path.
16731
c871b1c6
VS
167322011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16733
16734 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
16735 few potentially useful grub_util_info.
16736
5e631b4f
CW
167372011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16738
16739 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
16740
2d5d0333
CW
167412011-03-30 Colin Watson <cjwatson@ubuntu.com>
16742
16743 * docs/grub.texi (default): Use @example rather than nested
16744 itemized lists to avoid breaking gendocs.
16745
3d7ed04e
CW
167462011-03-30 Colin Watson <cjwatson@ubuntu.com>
16747
16748 * docs/grub.texi (Future): Update.
16749
abf04200 167502011-03-30 Colin Watson <cjwatson@ubuntu.com>
16751
16752 * docs/grub.texi (Environment): New chapter.
16753 (Changes from GRUB Legacy): Link to "Environment block" section for
16754 details of limitations.
16755 (Simple configuration): Likewise. Link to documentation of gfxmode
16756 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
16757 respectively.
16758 (Shell-like scripting): Note that normal variables are stored in the
16759 environment.
16760 (gettext): Link to documentation of lang and locale_dir.
16761 (list_env): New section.
16762 (load_env): New section.
16763 (save_env): New section.
16764
16765 (Reporting bugs): Fix typo.
16766
e1ad0edd
VS
167672011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16768
16769 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
16770 the example.
16771
5d803174
VS
167722011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16773
16774 * grub-core/term/at_keyboard.c (set_scancodes)
16775 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
16776
2a2da1d0
CW
167772011-03-30 Colin Watson <cjwatson@ubuntu.com>
16778
16779 * docs/grub.texi (Menu-specific commands): Remove some semantics
16780 that were true in GRUB Legacy but not in GRUB 2.
16781 (submenu): New section.
16782 (false): New section.
16783 (read): New section.
16784 (true): New section.
16785
a7527639
CW
167862011-03-30 Colin Watson <cjwatson@ubuntu.com>
16787
16788 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
16789
167902011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
16791
16792 * docs/grub.texi (Simple configuration): Explain some of the
16793 current limitations of grub-mkconfig.
8a748df2 16794 Reported by: Leslie Rhorer.
e30af029 16795
fc858482
VS
167962011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16797
16798 Old macs search for boot.efi rather than for bootia32.efi.
16799
16800 * util/grub-install.in: Copy bootia32.efi to boot.efi.
16801 * util/grub-mkrescue.in: Likewise.
16802 Suggested by: Peter Jones.
16803
e1eb511d
VS
168042011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16805
16806 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
16807
70e75364
VS
168082011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16809
16810 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
16811 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
16812 (grub_lvm_mirror): New struct.
16813 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
16814 (grub_lvm_iterate): Iterate only visible volumes.
16815 (grub_lvm_read): Factor out to ..
16816 (read_lv): ... this. Support mirrors.
16817 (grub_lvm_read): New wrapper function.
16818 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
16819 stripped or mirrored.
16820
fc18f6a3
VS
168212011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16822
16823 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
16824
5c650f4c
CW
168252011-03-29 Colin Watson <cjwatson@ubuntu.com>
16826
16827 * docs/grub.texi (loopback): New section.
16828
61d7156b
CW
168292011-03-29 Colin Watson <cjwatson@ubuntu.com>
16830
16831 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
16832 removed -p option.
16833
994b8264
CW
168342011-03-29 Colin Watson <cjwatson@ubuntu.com>
16835
16836 * docs/grub.texi (BIOS installation): New section, partly based on
16837 previous text in other sections.
16838 (Installing GRUB using grub-install): Replace BIOS discussion with a
16839 cross-reference.
16840 (Images): Likewise.
16841
9e4d19e0
VS
168422011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16843
16844 * grub-core/kern/emu/hostdisk.c (find_partition_start)
16845 [HAVE_DIOCGDINFO]: Add safety checks.
16846
a307c0b2
VS
168472011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16848
16849 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
16850 per default compiled in kernel and prior to 8.0 isn't shipped at all.
16851
b4db4f39
CW
168522011-03-29 Colin Watson <cjwatson@ubuntu.com>
16853
16854 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
16855 real_sb->size is zero (e.g. RAID-0), get the disk size from
16856 real_sb->data_size instead.
16857 Fixes Ubuntu bug #743136.
16858
35e5f84c
VS
168592011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16860
16861 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
16862 printf clauses for printing size and start.
16863
d2e29d81
VS
168642011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16865
16866 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
16867 Reported and tested by: Timothy Nikkel.
16868
ed5587af
VS
168692011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16870
16871 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
16872 (dirty_region_add_real): ... this.
16873 (dirty_region_add): Don't discard margin refresh when performing
16874 scheduled repaint.
16875
a1dc717c
VS
168762011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16877
16878 * grub-core/lib/relocator.c (allocate_regstart)
16879 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
16880 terminals are capabple of malloc-free operation.
16881 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
16882 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
16883
9f3677d3
VS
168842011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
16885
16886 * util/grub-setup.c: Copy the partition table zone if floppy support
16887 is disabled, even if no partition table is found.
16888
16889 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
16890 during POST if an invalid partition table is contained in the PBR
16891 of the active partition when GRUB is installed to a partition.
16892
24148725
CW
168932011-03-28 Colin Watson <cjwatson@debian.org>
16894
16895 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
16896 comment.
16897
f329eda7
CW
168982011-03-28 Colin Watson <cjwatson@debian.org>
16899
16900 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
16901 to be specific about what kind of RAID device we're scanning for.
16902
c482ad98
SG
169032011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
16904
16905 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
16906 return freed string.
16907
5ee04984
VS
169082011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16909
16910 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
16911
f4727da9
VS
169122011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16913
16914 Use libgeom on FreeBSD to detect partitions.
16915
16916 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
16917 (grub-mkrelpath): Likewise.
16918 (grub-script-check): Likewise.
16919 (grub-editenv): Likewise.
16920 (grub-mkpasswd-pbkdf2): Likewise.
16921 (grub-fstest): Likewise.
16922 (grub-mkfont): Likewise.
16923 (grub-mkdevicemap): Likewise.
16924 (grub-probe): Likewise.
16925 (grub-setup): Likewise.
16926 (grub-ofpathname): Likewise.
16927 (grub-mklayout): Likewise.
16928 (example_unit_test): Likewise.
16929 (grub-menulst2cfg): Likewise.
16930 * grub-core/Makefile.core.def (grub-emu): Likewise.
16931 (grub-emu-lite): Likewise.
16932 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
16933 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
16934 define HAVE_DIOCGDINFO.
16935 (follow_geom_up) [FreeBSD]: New function.
16936 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
16937 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
16938 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
16939 unconditionally of HAVE_DIOCGDINFO.
16940
82fe6c75
VS
169412011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16942
16943 Fix FreeBSD compilation problem.
16944
16945 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
16946 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
16947
4c6c9431
CW
169482011-03-24 Colin Watson <cjwatson@ubuntu.com>
16949
16950 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
16951 Switch back to page zero before loading a kernel, since some kernel
16952 drivers expect that.
16953 Thanks to: Felix Kuehling.
16954
c7064d94
VS
169552011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16956
16957 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
16958 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
16959 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
16960
3f71cded
VS
169612011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16962
16963 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
16964 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
16965
ef6de21a
VS
169662011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16967
16968 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
16969 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
16970 malloc is disabled.
16971
8bc66a2c
VS
169722011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16973
16974 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
16975 for modules headers when counting the needed allocation size.
16976
5657722c
VS
169772011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16978
16979 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
16980 if no ASCII character is found to prevent crash.
16981
41a85f55
AK
169822011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
16983
16984 * grub-core/video/bitmap.c (match_extension): Ignore case.
16985
59e1e5f1
VS
169862011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16987
16988 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
16989
bd4d051a
VS
169902011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16991
16992 * grub-core/script/parser.y: Declare "time" as valid argument.
16993
bae7fcc1
PJ
169942011-03-23 Peter Jones <pjones@redhat.com>
16995
16996 Fix incorrect assert failure reporting.
16997
16998 * grub-core/tests/example_functional_test.c (example_test): Add
16999 a failure comment.
17000 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
17001 (failure_start): ...this. Check that malloc succeeded.
17002 Don't call xvasprintf. Return failure struct.
17003 (failure_append_vtext): New function.
17004 (failure_append_text): Likewise.
17005 (add_failure): Likewise.
17006 (grub_test_assert_helper): Likewise.
17007 * include/grub/test.h (grub_test_assert_helper): New declaration.
17008 (grub_test_assert): Macro rewritten.
17009
537dc9be
VS
170102011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17011
17012 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
17013
fa3e01bf
VS
170142011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17015
17016 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
17017
b1d28404
VS
170182011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17019
17020 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
17021 into GRUB-style one.
17022
2e3e2e09
VS
170232011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17024
17025 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
17026 error and not grub_errno.
17027 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
17028
ed57e557
VS
170292011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17030
17031 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
17032 GRUB_USB_SPEED_NONE in case of failure and not the error code.
17033
d1611f01
VS
170342011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17035
17036 * grub-core/efiemu/i386/pc/cfgtables.c
17037 (grub_machine_efiemu_init_tables): Make declaration a prototype.
17038 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
17039 (grub_xnu_unlock): Likewise.
17040 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
17041
7d4e39d6
VS
170422011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
17045 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
17046 * grub-core/commands/hashsum.c (aliases): Likewise.
17047 * grub-core/commands/setpci.c (pci_registers): Likewise.
17048 * grub-core/disk/usbms.c (attach_hook): Likewise.
17049 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
17050 (zio_checksum_table): Likewise.
17051 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
17052 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
17053 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
17054 * grub-core/lib/relocator.c (leftovers): Likewise.
17055 (extra_blocks): Likewise.
17056 * grub-core/loader/i386/bsd.c (relocator): Likewise.
17057 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
17058 (modules_last): Likewise.
17059 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
17060 (devices): Likewise.
17061 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
17062 (modules_last): Likewise.
17063 * grub-core/normal/auth.c (users): Likewise.
17064 * grub-core/normal/context.c (initial_menu): Likewise.
17065 (current_menu): Likewise.
17066 * grub-core/normal/crypto.c (crypto_specs): Likewise.
17067 * grub-core/term/serial.c (grub_serial_ports): Likewise.
17068 (grub_serial_terminfo_input_template): Likewise.
17069 (grub_serial_terminfo_output_template): Likewise.
17070 (grub_serial_terminfo_input): Likewise.
17071 (grub_serial_terminfo_output): Likewise.
17072 (registered): Likewise.
17073 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
17074
40fc4659
VS
170752011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17076
17077 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
17078 grub_video_mode_type_t.
17079 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
17080 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
17081 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
17082
2da48d28
VS
170832011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17084
17085 * util/grub-install.in: Correct the x86-64 name as x86_64.
17086
9b43bf39
CW
170872011-03-11 Colin Watson <cjwatson@ubuntu.com>
17088
17089 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
17090 initial chunk read from the kernel always includes GRUB's multiboot
17091 header, which is now outside the first sector.
17092
be1a7ce0
CW
170932011-03-09 Colin Watson <cjwatson@ubuntu.com>
17094
17095 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
17096 cached mmap_size, so that this works correctly when called multiple
17097 times.
17098 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
17099
83a3c48d
CW
171002011-03-09 Colin Watson <cjwatson@ubuntu.com>
17101
17102 * docs/grub.texi (Simple configuration): Tidy up formatting.
17103
57d75699
SJ
171042011-03-07 Szymon Janc <szymon@janc.net.pl>
17105
17106 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
17107 Set-but-not-used variable removed.
17108
028501a0
VS
171092011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17110
17111 Workaround yet another IEEE1275 bug.
17112
17113 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
17114 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
17115 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
17116 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
17117 is set.
17118 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17119 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
17120
d998657d
VS
171212011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17122
17123 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
17124 error.
17125
fee7cdd4
CW
171262011-02-11 Colin Watson <cjwatson@ubuntu.com>
17127
17128 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
17129 empty, since in that case we can only generate either nothing or a
17130 syntactically invalid configuration file.
17131 Reported by: Michal Suchanek. Fixes Debian bug #612898.
17132
97286eb5
CW
171332011-02-09 Colin Watson <cjwatson@ubuntu.com>
17134
17135 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
17136 (Making a GRUB bootable CD-ROM): Likewise.
17137 (Invoking grub-mkrescue): New section.
17138 Reported by: Yann Dirson. Fixes Debian bug #612585.
17139
22b28eb3
CW
171402011-02-09 Colin Watson <cjwatson@ubuntu.com>
17141
17142 * util/grub-install.in: Remove unnecessary brackets from tr
17143 arguments.
17144 * util/grub.d/10_hurd.in: Likewise.
17145 * util/grub.d/10_kfreebsd.in: Likewise.
17146 * util/grub.d/10_linux.in: Likewise.
17147 * util/grub.d/20_linux_xen.in: Likewise.
17148 Reported by: Jamie Heilman. Fixes Debian bug #612564.
17149
7e735e43
CW
171502011-02-08 Colin Watson <cjwatson@ubuntu.com>
17151
17152 * include/grub/file.h (not_easly_seekable): Rename to ...
17153 (not_easily_seekable): ... this. Update all users.
17154
800f1881
CW
171552011-01-28 Colin Watson <cjwatson@ubuntu.com>
17156
17157 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
17158 grub-mkrescue.
17159
3281d3d6
VS
171602011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
17161
17162 * util/grub-mkimage.c (generate_image): Refuse to create the images
17163 bigger than the actual flash (512K) in Loongson machines. 512K is also
17164 the biggest chip supported by them.
17165
3533413c
VS
171662011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17167
17168 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
17169
73ae4f4f
VS
171702011-01-22 Anthony DeRobertis <anthony@derobert.net>
17171
17172 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
17173 super_offset field.
17174
37f4f608
VS
171752011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17176
17177 * util/grub-install.in: Ignore install device on platforms
17178 where it doesn't make sense. Always use UUIDs except on pc, efi and
17179 sparc64.
17180 Reported by: Daniel Kahn Gillmor.
17181
03a4ccb5
VS
171822011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17183
17184 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
17185
ffc8f4d8
VS
171862011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17187
17188 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
17189 (iterate_real): Don't rely on partition being non-NULL.
17190
80f23be7
VS
171912011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17192
17193 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
17194 supported platforms. Put a compile time assert for this rather than
17195 generate a warning with 32-bit shift.
17196
5d4f4dd5
VS
171972011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17198
17199 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
17200 logical expression more readable.
17201
e489601a
VS
172022011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17203
17204 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
17205 even if some elements have a name.
17206 Reported by: Alexander GQ Gerasiov.
17207
96e0a6ea
CW
172082011-01-22 Colin Watson <cjwatson@ubuntu.com>
17209
17210 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
17211 path unreadable if `grub-probe -t abstraction' fails, for example if
17212 memberlist fails on an LVM volume group.
17213 Reported by: Darius Jahandarie.
17214
81431e2b
CW
172152011-01-22 Colin Watson <cjwatson@ubuntu.com>
17216
17217 * docs/grub.texi (Simple configuration): Document
17218 GRUB_PRELOAD_MODULES.
17219
5e79d66a
CW
172202011-01-17 Colin Watson <cjwatson@ubuntu.com>
17221
17222 * .bzrignore: Remove nonexistent grub-pbkdf2.
17223
646ada34
VS
172242011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
17225
17226 * configure.ac: Bump version to 1.99~rc1.
17227
04360337
VS
172282011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17229
17230 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
17231 for safety.
17232
46c9db88
VS
172332011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17234
17235 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
17236 module.
17237
172382011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
17239
17240 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
17241
4fbf1852
VS
172422011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17243
17244 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
17245 diskdevid.
17246
f1632d4d
VS
172472011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17248
17249 Fix compilation on cygwin.
17250
17251 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
17252 -R .drectve on cygwin.
17253 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
17254 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
17255 (COND_CYGWIN): New condition.
17256 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
17257 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
17258 not @TARGET_OBJ2ELF@.
17259 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
17260 type to determine whether aux is to be used.
17261
0b5e127b
VS
172622011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17263
17264 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
17265 realpath'ed device string.
17266 Handle floppy (somewhat).
17267 Issue error in unknown case rather than garbage.
17268 Reported by: Axel Beckert.
17269
173b71e9
VS
172702011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17271
17272 * util/grub.d/00_header.in (load_video): Handle the case when no video
17273 drivers available.
17274 Thanks to: Axel Beckert.
17275
f8f479db
VS
172762011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17277
17278 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
17279 variable. Fixes problem on big endian platforms.
17280
8fc0a245
VS
172812011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17282
17283 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
17284 It doesn't work well there.
17285
b8494fbe
VS
172862011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17287
17288 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
17289 warning.
17290 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
17291 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
17292 counter.
17293
b44a558c
VS
172942011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17295
17296 Use alias->path rather than buggy "canon".
17297
17298 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
17299 (ofdisk_hash_add): New argument curcan. All users updated.
17300
51fa856c
CW
173012011-01-11 Colin Watson <cjwatson@ubuntu.com>
17302
17303 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
17304
9da068a5
VS
173052011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17306
17307 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
17308 loadmask before doing any calculations. Use correct type for offset.
17309 (grub_linux_load64): Likewise.
17310
86205c94
CW
173112011-01-11 Colin Watson <cjwatson@ubuntu.com>
17312
17313 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
17314 with NULL.
17315 (console_grub_equivalences_unshift): Likewise.
17316 Reported by: Daniel Dehennin.
17317
4531a206
VS
173182011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17319
17320 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
17321 (set_env_limn_ro): Likewise.
17322 (GRUB_MOD_INIT): Likewise.
17323 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
17324 ARRAY_SIZE while on it.
17325 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
17326 * grub-core/normal/context.c (grub_env_export): Move from here ...
17327 * grub-core/kern/env.c (grub_env_export): ... here.
17328 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
17329 prefix.
17330 * grub-core/kern/main.c (grub_main): Export root and prefix.
17331 * include/grub/env.h (grub_env_export): Export.
17332 Reported by: Seth Goldberg.
17333
45146057
VS
173342011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17335
17336 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17337 Take into account space used by ELF sections and multiboot palette.
17338 Reported by: Grégoire Sutre.
17339
f093110b
VS
173402011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17341
17342 * BUGS: New file.
17343
3395fe52
VS
173442011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17345
17346 Pass more appropriate video id to Linux.
17347
17348 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
17349 grub_video_get_driver_id and variable gfxpayloadforcelfb to
17350 fill have_vga.
17351 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
17352 shift params->lfb_size.
17353 * include/grub/i386/linux.h: Make an enume out of have_vga values.
17354
c2fa6cbb
VS
173552011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17356
17357 * util/grub-menulst2cfg.c: Add missing include of misc.h.
17358
b3ff6ff0
VS
173592011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17360
17361 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
17362 separator and pass bootpath/devid even if only one of them is available.
17363 Reported by: Seth Goldberg.
17364
ae67942e
VS
173652011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17366
17367 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
17368 implementations bug on them.
17369
17370 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
17371 memory.
17372 (filter_memory_map): Likewise.
17373
d570097a
VS
173742011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17375
17376 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
17377 Reported by: nebuchadnezzar.
17378
a508e776
VS
173792011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17380
17381 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
17382 Reported by: nebuchadnezzar.
17383
dcb883b1
VS
173842011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17385
17386 Submenu default support.
17387
17388 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
17389 auto_boot. All users updated.
17390 Declared static.
17391 Handle chosen and default with submenus.
17392 (grub_menu_execute_with_fallback): Declared static.
17393 Don't notify failure if autobooted. Upper level does it.
17394 (menuentry_eq): New function.
17395 (get_entry_number): Use menuentry_eq.
17396 (show_menu): New parameter "autobooted". All users updated.
17397 (grub_show_menu): Likewise.
17398 * include/grub/normal.h (grub_show_menu): Likewise.
17399 * include/grub/menu.h (grub_menu_execute_entry): Removed.
17400 (grub_menu_execute_with_fallback): Likewise.
17401
6fef99b4
VS
174022011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17403
17404 * util/grub-mklayout.c (usage): Update help text.
17405
47a77af5
VS
174062011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17407
17408 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
17409
ce6bb3ee
VS
174102011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17411
17412 * util/grub-menulst2cfg.c (main): Trim the line.
17413
db87be2a
VS
174142011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17415
17416 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
17417 (grub_machine_init): Don't check amount of low memory as reportedly
17418 INT 12h can be broken and if low memory is too low we wouldn't have
17419 gotten into grub_machine_init anyway.
17420
c49849cc
VS
174212011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17422
17423 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
17424 (grub_machine_mmap_iterate): Take low memory into account
17425
b1969b30
VS
174262011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17427
17428 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
17429 badfs.
17430 Reported by: TiCPU.
17431
cf0eaf13
VS
174322011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17433
17434 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
17435 members errors.
17436
1f060f39
GS
174372011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
17438
17439 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
17440 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
17441
a21e5672
GS
174422011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
17443
17444 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
17445 openbsd and netbsd types being in part_bsd module.
17446
c88172fa
VS
174472011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17448
17449 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
17450 (_FILE_OFFSET_BITS): Likewise.
17451 Reported by: Seth Goldberg.
17452
53798c4b
GS
174532011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
17454
17455 * configure.ac: Check for libdevmapper header.
17456
e7121b69
VS
174572011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17458
17459 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
17460 avoid aliasing.
17461 (fzap_lookup): Likewise.
17462 (dnode_get): Likewise.
17463 (make_mdn): Likewise.
17464 (zfs_mount): Likewise.
17465 (fzap_iterate): Use temporary pointer to avoid aliasing.
17466 (grub_zfs_read): Likewise.
17467 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
17468 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
17469 pointers to avoid aliasing.
17470 (grub_cmd_xnu_kernel64): Likewise.
17471 (grub_xnu_load_driver): Likewise.
17472
fc836af9
VS
174732011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17474
17475 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
17476 aliasing warning.
17477 (grub_cmd_terminal_output): Likewise.
17478 Reported and tested by: Grégoire Sutre.
17479
f9f37648
VS
174802011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17481
17482 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
17483 warning.
17484 Reported and tested by: Grégoire Sutre.
17485
ec1dfd63
VS
174862011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17487
17488 * configure.ac: Do CPU substitution even if it's specified explicitly.
17489 Reported and tested by: Alain Greppin.
17490
9462775a
VS
174912011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17492
17493 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
17494 Reported and tested by: Alain Greppin.
17495
0fd48e35
VS
174962011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17497
17498 Satisfy some bison versions need for inttypes.h.
17499
17500 * grub-core/lib/posix_wrap/inttypes.h: New file.
17501 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
17502 (int16_t): Likewise.
17503 (int32_t): Likewise.
17504 (int64_t): Likewise.
17505 Reported and tested by: Alain Greppin.
17506
43f1bc83
VS
175072011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17508
17509 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
17510 Silence spurious warning.
17511 Reported and tested by: Alain Greppin.
17512
64d1f041
SJ
175132011-01-07 Szymon Janc <szymon@janc.net.pl>
17514
17515 * docs/grub.texi (Support automatic decompression): Update with xz
17516 decompression support.
17517
25953e10
SJ
175182011-01-07 Szymon Janc <szymon@janc.net.pl>
17519
17520 Improve loaders' kernel command line handling.
17521
17522 * grub-core/lib/cmdline.c: New file.
17523 * include/grub/lib/cmdline.h: Likewise.
17524 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
17525 grub_create_loader_cmdline to create kernel command line.
17526 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
17527 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
17528 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
17529 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
17530 (linux): Add lib/cmdline.c on common.
17531
e72d259f
VS
175322011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17533
17534 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
17535 inopos might be unaligned.
17536
c0cf26da
VS
175372011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17538
17539 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
17540 endian transformations.
17541 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17542 Based on report by: Doug Nazar.
17543
0ca09e6c
DN
175442011-01-07 Doug Nazar <nazard.michi@gmail.com>
17545
17546 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
17547 array->members[i].start_sector.
17548 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
17549
014b6806
VS
175502011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17551
17552 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
17553 Reported and tested by: Grégoire Sutre.
17554
415502c2
CW
175552011-01-06 Colin Watson <cjwatson@ubuntu.com>
17556
17557 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
17558 avoid causing test failures by clearing the screen.
17559
71b6a2b7
CW
175602011-01-06 Colin Watson <cjwatson@ubuntu.com>
17561
17562 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
17563 Fix prefix check to handle the case where dir ends with a slash
17564 (most significantly, "/" itself).
17565 Reported by: Michael Vogt.
17566
b3f8d28a
VS
175672011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17568
17569 Run terminfo_cls on initing terminfo output to clear the screen and
17570 move the cursor to (0,0).
17571
17572 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
17573 Call grub_terminfo_output_init.
17574 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
17575 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
17576 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
17577
4c3e4f37
VS
175782011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17579
17580 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
17581 only when needed.
17582
488f71f1
VS
175832011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17584
17585 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
17586 CTRL.
17587
18a38098
VS
175882011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
17589
17590 The E820 type 5 is BADRAM, not EXEC_CODE.
17591
17592 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
17593 (GRUB_E820_BADRAM): New define.
17594 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
17595 into reserved. Propagate BADRAM.
17596 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
17597 (GRUB_E820_BADRAM): New define.
17598
9eae2084
VS
175992011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17600
17601 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
17602 Ignore the memory post-4G.
17603 (grub_relocator_firmware_alloc_region): Additional debug statement.
17604
ebc71d28
VS
176052011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17606
17607 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
17608 names.
17609 Reported by: David Pravec.
17610
446fa400
VS
176112011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17612
17613 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
17614 BIOSes.
17615
a0159f37
VS
176162011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17617
17618 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
17619 Prevent overflow.
17620 (grub_reed_solomon_recover): Likewise.
17621
e5146ca1
VS
176222011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
17623
17624 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
17625
176262011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
17627
17628 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
17629 variable.
17630
5b1bdf12
CW
176312011-01-04 Colin Watson <cjwatson@ubuntu.com>
17632
17633 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
17634 descriptions of extract_legacy_entries_source and
17635 extract_legacy_entries_configfile.
17636 Reported by: Seung Soo, Ha.
17637
99d925aa
CW
176382011-01-03 Colin Watson <cjwatson@ubuntu.com>
17639
17640 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
17641 on devices that do not implement function 0.
17642
4af0504b
DV
176432011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
17644
17645 * grub-core/fs/hfsplus.c: Make parent unsigned.
17646 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
17647 overflows.
17648 (grub_hfsplus_cmp_extkey): Likewise
17649
469ee10a
VS
176502011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
17651
17652 * util/grub-install.in: Correctly use bootloader_id and not
17653 GRUB_DISTRIBUTOR on efibootmgr line.
17654
323a8e9c
VS
176552011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
17656
17657 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
17658
1b394975
IC
176592010-12-31 Ian Campbell <ijc@hellion.org.uk>
17660
17661 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
17662 Xen and reorder menu item wording to make it clearer that this entry
17663 will launch Xen. Print separate messages when loading Xen and
17664 Linux.
17665
275bff5f
VS
176662010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
17667
17668 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
17669 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
17670 loop in case of incorrect amiga partmap.
17671
307806cb
VS
176722010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
17673
17674 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
17675 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
17676 Reported by:EHeM.
17677
b12b923e
VS
176782010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
17679
17680 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
17681 spurious warning.
17682 Reported by: crocket
17683
14b48a19
VS
176842010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17685
17686 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
17687 Preload EFIemu.
17688 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
17689
693db2df
VS
176902010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17691
17692 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
17693 is loaded
17694 (grub_cmd_xnu_kextdir): Likewise.
17695 (grub_cmd_xnu_splash): Likewise.
17696
c7638645
VS
176972010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17698
17699 Avoid using Reed-Solomon with 0 redundancy.
17700
17701 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
17702 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
17703 or 0 redundancy.
17704 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
17705 (grub_reed_solomon_recover): Likewise.
17706
25dd4780
VS
177072010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17708
17709 Don't use disk subsystem in freebsd_boot.
17710
17711 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
17712 (freebsd_biosdev): Likewise.
17713 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
17714 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
17715
0b2db943
VS
177162010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
17717
17718 Handling of files of unknown size is currently limited. They can't be
17719 used e.g. for initrd or modules. Moreover gzip handling of not
17720 easily seekable files is buggy. Disable unknown file size for now. May
17721 be inefficient but works.
17722
17723 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
17724 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
17725
5c408d0f
MP
177262010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
17727
17728 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
17729 floppy probe.
17730
190a011a
JD
177312010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
17732
17733 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
17734
022d01b8
SL
177352010-12-25 Shea Levy <shlevy>
17736
17737 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
17738
c4855fdc
VS
177392010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17740
17741 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
17742 Windows Server 2008.
17743 Reported by: Devin Giddings.
17744
0354b867
VS
177452010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17746
17747 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
17748 writing an error message because of async power management.
17749 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
17750 (grub_reboot): Likewise.
17751
ab66c69f
JU
177522010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
17753
17754 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
17755 keep unit tests from failing when they shouldn't.
17756
1426ef35
CW
177572010-12-21 Colin Watson <cjwatson@ubuntu.com>
17758
17759 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
17760 previous patch increased the size of the RS code by 20 bytes (at
17761 least with gcc-4.4), so increase this by 20 bytes to match.
17762 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17763
20641b6b
CW
177642010-12-21 Colin Watson <cjwatson@ubuntu.com>
17765
17766 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
17767 scratch area. Make sure to initialise chosen in standalone mode as
17768 well as non-standalone.
17769 Reported by: Robert Hooker and Andy Whitcroft.
17770 Tested by: Andy Whitcroft.
17771
d060ad60
CW
177722010-12-21 Colin Watson <cjwatson@ubuntu.com>
17773
17774 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
17775 constructing a new unescaped string and passing it to grub_xputs in
17776 one go, rather than passing characters to grub_printf one at a time.
17777
b889cfad
CW
177782010-12-21 Colin Watson <cjwatson@ubuntu.com>
17779
17780 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
17781 initialising utf16.
17782
4e01b6c8
CW
177832010-12-21 Colin Watson <cjwatson@ubuntu.com>
17784
17785 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
17786 comment. Add an extra layer of quotation, requiring the output of
17787 this function to be used in a printf format string.
17788 (gettext_printf): New function.
17789 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
17790 Extract translatable strings from here-documents and use a temporary
17791 variable instead, so that xgettext can find them.
17792 * util/grub.d/10_kfreebsd.in: Likewise.
17793 * util/grub.d/10_linux.in: Likewise.
17794 * util/grub.d/20_linux_xen.in: Likewise.
17795
17796 * po/grub.d.sed: New file.
17797 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
17798 arguments. Set c-format flags on all strings extracted from
17799 util/grub.d/ (xgettext refuses to include these itself for strings
17800 it extracted from a shell file, but these really are c-format).
17801
5318fe98
VS
178022010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
17803
17804 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
17805 Avoid next pointing to nowhere.
17806
6c85b743
VS
178072010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
17808
17809 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
17810 rather than assuming than rootblock is exactly in the middle.
17811 (grub_affs_label): Likewise.
17812
a2a08a35
VS
178132010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
17814
17815 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
17816 reserved_first_sector to 0.
17817 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
17818 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
17819 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
17820
7059d1ec
VS
178212010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
17822
17823 Fix handling of UTF-16 UDF labels.
17824
17825 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
17826 (read_string): .. here.
17827 (grub_udf_label): Use read_string.
17828
30aff4cb
BC
178292010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
17830
17831 * grub-core/normal/menu_entry.c (run): Execute commands from menu
17832 editor under argument scope.
17833 Reported by: Jordan Uggla
17834
5cf86f4b
VS
178352010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
17836
17837 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
17838
32570200
CW
178392010-12-18 Colin Watson <cjwatson@ubuntu.com>
17840
17841 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
17842 line, and other keys scroll an entire page (previous handling was
17843 for \r and \n to scroll a page and other keys to scroll two lines).
17844
e1dffcf2
VS
178452010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
17846
17847 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17848 Set ptrdest to correct get_physical_target_address rather than
17849 incorrect get_virtual_current_address.
17850
b04298cf 178512010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
17852
17853 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
17854 correct cat to grub_uint8_t * rather than grub_uint32_t *.
17855
5367ecd3
CW
178562010-12-10 Colin Watson <cjwatson@ubuntu.com>
17857
17858 * .bzrignore: Ignore grub-core/rs_decoder.S.
17859
1fb430f8
CW
178602010-12-10 Colin Watson <cjwatson@ubuntu.com>
17861
17862 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
17863 .mo/.mo.gz opening sequence to ...
17864 (grub_mofile_open_lang): ... here.
17865 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
17866 * util/grub.d/00_header.in (grub_lang): Include country part of
17867 locale.
17868 Reported by: Mario Limonciello.
17869
a94a6671
RM
178702010-12-09 Robert Millan <rmh@gnu.org>
17871
17872 * NEWS: Document addition of ZFS support.
17873
24b7938b
CW
178742010-12-04 Colin Watson <cjwatson@ubuntu.com>
17875
17876 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
17877 rather than `/ 2', as the latter requires -Wa,--divide which would
17878 require bumping our minimum binutils version.
17879
bddc3ef6
BC
178802010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
17881
17882 * util/grub-script-check.c (main): Print script line number on
17883 error.
17884
bf78d5b2
RM
178852010-12-01 Robert Millan <rmh@gnu.org>
17886
17887 * grub-core/fs/zfs/zfs.c: New file.
17888 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
17889 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
17890 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
17891 * grub-core/fs/zfs/zfsinfo.c: Likewise.
17892
17893 * include/grub/zfs/dmu.h: Likewise.
17894 * include/grub/zfs/dmu_objset.h: Likewise.
17895 * include/grub/zfs/dnode.h: Likewise.
17896 * include/grub/zfs/dsl_dataset.h: Likewise.
17897 * include/grub/zfs/dsl_dir.h: Likewise.
17898 * include/grub/zfs/sa_impl.h: Likewise.
17899 * include/grub/zfs/spa.h: Likewise.
17900 * include/grub/zfs/uberblock_impl.h: Likewise.
17901 * include/grub/zfs/vdev_impl.h: Likewise.
17902 * include/grub/zfs/zap_impl.h: Likewise.
17903 * include/grub/zfs/zap_leaf.h: Likewise.
17904 * include/grub/zfs/zfs.h: Likewise.
17905 * include/grub/zfs/zfs_acl.h: Likewise.
17906 * include/grub/zfs/zfs_znode.h: Likewise.
17907 * include/grub/zfs/zil.h: Likewise.
17908 * include/grub/zfs/zio.h: Likewise.
17909 * include/grub/zfs/zio_checksum.h: Likewise.
17910
17911 * Makefile.util.def: Build ZFS into libgrubmods.
17912 * grub-core/Makefile.core.def: Build zfs.mod.
17913
3f0f3831
SJ
179142010-11-30 Szymon Janc <szymon@janc.net.pl>
17915
17916 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
17917 variable.
17918 * grub-core/commands/wildcard.c (match_files): Likewise.
17919
3a4253b2
RM
179202010-11-30 Robert Millan <rmh@gnu.org>
17921
17922 * grub-core/loader/i386/bsd.c
17923 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
17924 whether kernel is loaded using grub_loader_is_loaded(), rather
17925 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
17926 certain error conditions.
17927
8c317b27
RM
179282010-11-30 Robert Millan <rmh@gnu.org>
17929
c5c9cd3e
RM
17930 * grub-core/commands/echo.c: Include `<grub/term.h>'.
17931 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 17932
49d3ab46
VS
179332010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
17934
17935 Avoid using tricks for initialising endian variables.
17936
17937 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
17938 Make const.
17939 (GRUB_MOD_INIT): Don't byte-swap.
17940 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
17941 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
17942 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
17943 (grub_swap_bytes32_compile_time): Likewise.
17944 (grub_cpu_to_le32_compile_time): Likewise.
17945 (grub_cpu_to_le16_compile_time): Likewise.
17946
f420a804
VS
179472010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
17948
17949 * util/grub-setup.c (setup): Stop recommending --force. People who
17950 understand the dangers of blocklists are able to find this option
17951 anyway and the ones who don't shouldn't use it anyway.
17952
4e7db17b
RM
179532010-11-26 Robert Millan <rmh@gnu.org>
17954
17955 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
17956 Update all users.
17957
9be57a0d
CW
179582010-11-26 Colin Watson <cjwatson@ubuntu.com>
17959
17960 Fix LVM-on-RAID probing.
17961
17962 * util/grub-probe.c (probe): Remember which disk was detected as
17963 RAID (perhaps an LVM physical volume). Use that disk's raidname
17964 rather than that of the top-level disk.
17965
2c7859b3 179662010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 17967
d7647bb6
BC
17968 Fix cmdline argument quotes for setparams command of menuentry
17969 definitions.
7e623b0d
BC
17970
17971 * grub-core/commands/menuentry.c (setparams_prefix): Use single
17972 quotes for arguments.
f866fe80 17973 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 17974 grub_strchrsub function instead.
f866fe80 17975
7955bea0 17976 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 17977
74f72a64
CW
179782010-11-24 Colin Watson <cjwatson@ubuntu.com>
17979
17980 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
17981 effort by skipping "." and ".." entries up-front.
17982 Suggested by: Michael Lazarev.
17983
5a407278
CW
179842010-11-24 Colin Watson <cjwatson@ubuntu.com>
17985
17986 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
17987 ldflags to ldadd, to fix link line ordering.
17988 (none_decompress): Likewise.
17989
3030d8ec
CW
179902010-11-24 Colin Watson <cjwatson@ubuntu.com>
17991
17992 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
17993 platforms.
17994 (grub-emu-lite): Remove kern/emu/cache.S.
17995
b7fbac12
CW
179962010-11-23 Colin Watson <cjwatson@ubuntu.com>
17997
17998 * util/deviceiter.c (compare_devices): If the by-id link for a
17999 device couldn't be resolved, fall back to sorting by the by-id link
18000 rather than segfaulting.
18001 Reported and tested by: Daniel Mierswa.
18002
5225f328
CW
180032010-11-23 Colin Watson <cjwatson@ubuntu.com>
18004
18005 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
18006 ldflags, to fix link line ordering.
18007
038b3ce8
CW
180082010-11-23 Colin Watson <cjwatson@ubuntu.com>
18009
18010 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
18011 linkers are picky about this.
18012
bf16e98e
CW
180132010-11-23 Colin Watson <cjwatson@ubuntu.com>
18014
18015 * grub-core/Makefile.am (command.lst): Adjust sed expression
18016 ordering so that extended and priority commands aren't treated as
18017 ordinary commands.
18018
7242bab6
CW
180192010-11-23 Colin Watson <cjwatson@ubuntu.com>
18020
18021 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18022 Remove byte-swapping function calls, which are not valid in
18023 structure initialisers.
18024 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
18025 non-const.
18026 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
18027 grub_gpt_partition_type_bios_boot.
18028
14e8b279
CW
180292010-11-22 Colin Watson <cjwatson@ubuntu.com>
18030
18031 Fix test program build on GNU/kFreeBSD.
18032
18033 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
18034 $(LIBNVPAIR)' library dependencies.
18035
e6f63338 180362010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
18037
18038 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
18039
cf8ffc38
CW
180402010-11-22 Colin Watson <cjwatson@ubuntu.com>
18041
18042 * util/grub-install.in: Remove excessive quoting that broke
18043 installations to RAID devices.
18044
7f8b0fd7
VS
180452010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18046
18047 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
18048 bootloader version instead of 0.
18049
dfd240b1
VS
180502010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18051
18052 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
18053 warning.
18054
7b61e609
VS
180552010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18056
18057 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
18058 retrieve the metadat sector if size isn't known.
18059 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18060
9dfe92d0
RM
180612010-11-18 Robert Millan <rmh@gnu.org>
18062
18063 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
18064 with grub_memcmp().
18065
41cc919e
VS
180662010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
18067
18068 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
18069 arrow.
18070 Reported by: Jordan Uggla.
18071
1afcc914
VS
180722010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18073
18074 Make better UTF compliant.
18075
18076 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
18077 sequences as incorrect.
18078 (grub_is_valid_utf8): Likewise.
18079 (grub_utf8_to_ucs4): Likewise.
18080 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
18081 (grub_ucs4_to_utf8_alloc): Likewise.
18082 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
18083
f1808884
VS
180842010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18085
18086 Make legacy_source behave like source.
18087
18088 * grub-core/commands/legacycfg.c (legacy_file): Don't call
18089 grub_show_menu.
18090 (grub_cmd_legacy_source): Call grub_show_menu if needed.
18091
24ec575b
CW
180922010-11-16 Colin Watson <cjwatson@debian.org>
18093
18094 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
18095 (-Wunused implies -Wunused-parameter, but not vice versa).
18096
72b7c7aa
CW
180972010-11-16 Colin Watson <cjwatson@ubuntu.com>
18098
18099 * configure.ac: Make error messages less confusing by testing for
18100 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
18101 accepted, but produces a diagnostic if something else is wrong).
18102
e98937aa
VS
181032010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18104
18105 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
18106 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
18107 (now unused).
18108 (grub_keyboard_controller_init)
18109 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
18110 read the initial state since controller isn't inited yet.
18111
f6bbabc3
VS
181122010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18113
18114 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
18115 allocate_regbeg may need to create new chunk header.
18116
22e7dbb2
VS
181172010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18118
18119 Fix quoting in legacy parser.
18120
18121 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
18122 single quotes.
18123 (grub_legacy_parse): Likewise.
18124 Reported by: Jordan Uggla.
18125 Tested by: Jordan Uggla.
18126
03f80960
VS
181272010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18128
18129 Don't add -lgcc on i386 and x86_64.
18130
18131 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
18132 * conf/Makefile.common (LDADD_KERNEL): Likewise.
18133 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
18134
779dc15b
VS
181352010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18136
18137 * configure.ac: Add -Wno-trampolines when supported.
18138
d20a3b37
MV
181392010-11-14 Modestas Vainius <modax@debian.org>
18140
18141 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
18142 fakeraid.
18143
e5360933
GC
181442010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18145
18146 Add generic logical block size support for UDF.
18147
18148 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
18149 (GRUB_UDF_BLKSZ): Removed.
18150 (struct grub_udf_data): New field "lbshift" to hold the logical block
18151 size of the file system in log2 format. All users updated.
18152 (sblocklist): Change type to unsigned.
18153 (grub_udf_mount): Change type of "sblklist" to unsigned.
18154 Move AVDP search before VRS recognition, because the latter requires
18155 knowledge of the logical block size, which is detected during the
18156 former.
18157 Detect and validate logical block size during AVDP search, adding
18158 support for block sizes 512, 1024 and 4096.
18159 Make VRS recognition independent of block size.
18160
cb0229c5
GC
181612010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18162
18163 Properly handle deleted files on UDF.
18164
18165 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
18166 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
18167 set.
18168
406858a8
GC
181692010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18170
18171 Support reading files larger than 2 GiB.
18172
18173 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
18174 "offset" to grub_off_t.
18175 (grub_udf_read_file): Likewise for parameter "pos".
18176
130da6a7
VS
181772010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18178
18179 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
18180 unavailable.
18181 (Simple configuration): Refer to Changes from GRUB Legacy about
18182 save_env availability.
18183
65e93f6b
VS
181842010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18185
18186 * util/grub-install.in: Ignore empty partition table detection
18187 instead of trying to include part_ module.
18188
1fd08bf1
VS
181892010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18190
18191 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
18192 LVM on RAID support.
18193
de1a024f
VS
181942010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18195
18196 Properly define WORDS_BIGENDIAN in wrapped environments.
18197
18198 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
18199 definition.
18200 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
18201
18202 Reported by: Manoel Rebelo Abranches.
18203 Tested by: Manoel Rebelo Abranches.
18204
bc5dd0b9
VS
182052010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18206
18207 * util/grub-mkconfig.in: Fix quoting.
18208
58c184be
VS
182092010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18210
18211 Support big ext2 files.
18212
18213 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
18214 (grub_ext2_read_block): Support triple indirect blocks.
18215 (grub_ext2_read_file): Use 64-bit types and read size_high.
18216 (grub_ext2_open): Read size_high.
18217 Reported by: Ximin Luo.
18218 Tested by: Manoel Rebelo Abranches.
18219
5f0c02b3
VS
182202010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18221
18222 * util/grub-install.in: Handle filenames containing spaces.
18223 Reported by: Jordan Uggla.
18224 Tested by: Jordan Uggla.
18225
4417aae6
VS
182262010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18227
18228 * util/grub-mkconfig.in (grub_script_check): New variable.
18229 Use grub_script_check instead of grub-script-check.
18230 Reported by: Barry Jackson.
18231
7625a68e
VS
182322010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18233
18234 * docs/grub.texi (menu): Correct the order.
18235 Reported by: D. Hugh Redelmeier.
18236
10001ac5
VS
182372010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
18238
18239 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
18240 jump.
18241
9c4cf53b
MRA
182422010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
18243
10001ac5
VS
18244 * include/grub/elfload.h (grub_elf32_size): New parameter.
18245 All users updated.
9c4cf53b
MRA
18246 Return maximum segments alignment.
18247 (grub_elf64_size): Likewise.
18248 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
18249 Return maximum segments alignment.
18250 (grub_elf64_size): Likewise.
18251 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
18252 (grub_linux_claimmap_iterate): New function. Uses the
18253 "available" property in the "memory" node for memory allocation
18254 for kernel in the PowerPC loader.
9c4cf53b
MRA
18255 (grub_linux_load32): Correctly find linux entry point offset.
18256 (grub_linux_load64): Likewise.
18257
d2bf06bf
RM
182582010-11-07 Robert Millan <rmh@gnu.org>
18259
18260 On mips-yeeloong, build with -march=loongson2f when this flag is
18261 available (GCC >= 4.4).
18262 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
18263 `-march=mips3'.
18264 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
18265 or otherwise add -march=mips3.
18266
898c99a2
BC
182672010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
18268
87220a68
BC
18269 Suppress shell expansion on echo '*' and echo "*" like cases.
18270 Reported by: Jordan Uggla.
898c99a2
BC
18271
18272 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
18273 string arguments before shell expansion.
18274 * tests/grub_cmd_echo.in: New testcases.
18275
4f9b406a
RM
182762010-11-07 Robert Millan <rmh@gnu.org>
18277
18278 * conf/mips-qemu-mips.rmk: Remove stale file from previous
18279 transition.
18280
80c6d25e
VS
182812010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
18282
18283 * grub-core/kern/emu/hostdisk.c
18284 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
18285
4a1a0153
VS
182862010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18287
18288 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
18289 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
18290 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
18291
34706ddc
VS
182922010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18293
18294 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
18295
6972dea9
VS
182962010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18297
18298 * util/grub-install.in: Replace useless recomendation to pass
18299 --modules with a recomendation to report a bug.
18300
9c693bd6
VS
183012010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18302
18303 Properly register serial terminfo.
18304 Reported by: Jordan Uggla
18305
18306 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
18307 const.
18308 (grub_serial_terminfo_output_template): Likewise.
18309 (grub_cmd_serial): Register "serial" with terminfo.
18310 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
18311 grub_serial_terminfo_output.
18312
6c9e4c0c
RM
183132010-11-05 Robert Millan <rmh@gnu.org>
18314
18315 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
18316 needed).
18317
b9b3839f
RM
183182010-11-05 Robert Millan <rmh@gnu.org>
18319
18320 On Yeeloong, pass machine type information to Linux.
18321
18322 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
18323 (LOONGSON_MACHTYPE): New macro, set to
18324 "machtype=lemote-yeeloong-2f-8.9inches".
18325 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
18326 additional argument to Linux.
18327
1a3aaff4
RM
183282010-11-04 Robert Millan <rmh@gnu.org>
18329
18330 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
18331 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
18332 (its SATA disks are detected as slaveless IDE master drives on
18333 kFreeBSD).
18334 Reported by Carsten Aulbert.
18335
a75f4f62
CW
183362010-11-02 Colin Watson <cjwatson@ubuntu.com>
18337
18338 * util/bin2h.c (main): Fix spelling error in generated output.
18339
33b4b0c6
GS
183402010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
18341
18342 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
18343
2b36fbf4
VS
183442010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18345
18346 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
18347 vga= option is supplied.
18348
74aaf558
VS
183492010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18350
18351 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
18352 * util/grub.d/10_kfreebsd.in: Likewise.
18353 * util/grub.d/10_linux.in: Likewise.
18354 * util/grub.d/20_linux_xen.in: Likewise.
18355
6428dec3
VS
183562010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18357
18358 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
18359 argument as an argument to no-argument option.
18360
f8729d98
VS
183612010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18362
18363 * util/grub.d/10_linux.in: Add missing load_video with explicit
18364 GRUB_GFXPAYLOAD_LINUX.
18365
89d68fa6
VS
183662010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18367
18368 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
18369
3a1197cd
VS
183702010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18371
18372 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
18373 elements with invlid index.
18374 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18375 * grub-core/disk/raid.c (insert_array): Automatically reallocate
18376 members.
18377 * include/grub/raid.h (grub_raid_member): New struct.
18378 (grub_raid_array): Transform devices and start_sector into usage of
18379 grub_raid_member. All users updated
18380 (allocated_devs): New member.
18381
71574288
VS
183822010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18383
18384 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
18385 is modified
18386
8d40ec65
BC
183872010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
18388
18389 NetBSD build fix for getline function conflict from gnulib.
18390
18391 * Makefile.util.def (libgrubkern.a): New library for grub kernel
18392 components that depend on gnulib headers.
18393 (libgrubmods.a): Renamed from earlier libgrub.a.
18394 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
18395
95b9257e
VS
183962010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18397
18398 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
18399 install rather than creating a broken install.
18400
26c53dc6
VS
184012010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18402
18403 * util/grub-setup.c (argp): Remove misleading example of installing to
18404 a partition.
18405
4171b3c5
VS
184062010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18407
18408 * util/grub-setup.c (setup): Clarify the error message.
18409
18568d18
VS
184102010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18411
18412 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
18413
4f6a2e21
VS
184142010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
18415
18416 * grub-core/kern/emu/misc.c
18417 (grub_make_system_path_relative_to_its_root)
18418 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
18419
184202010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
18421
18422 * grub-core/kern/emu/misc.c
18423 (grub_make_system_path_relative_to_its_root): Revert r2882.
18424
e138c458
VS
184252010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
18426
18427 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
18428 useless field head. All users updated.
18429 (free_subchunk): Correct handling of IN_REGION subchunk.
18430
0cbcdf0e
CW
184312010-10-22 Colin Watson <cjwatson@ubuntu.com>
18432
18433 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
18434 (Supported kernels): Likewise.
18435
b65ea155
GS
184362010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
18437
18438 Make mktemp invocations portable.
18439
18440 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
18441 exit if mktemp fails.
18442 * tests/grub_script_blockarg.in: Likewise.
18443 * tests/partmap_test.in: Likewise.
18444 * tests/util/grub-shell-tester.in: Likewise.
18445 * tests/util/grub-shell.in: Likewise.
18446 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
18447 * Makefile.am: Likewise, and chain shell commands with `&&'
18448 instead of ';'.
18449 * util/grub-mkrescue.in: Use the same explicit template as above, and
18450 exit if mktemp fails.
18451
05f43cdd
BC
184522010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
18453
18454 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
18455 Linux kernel, reported by Dennis Schridde.
18456
800e6a9b
SJ
184572010-10-17 Szymon Janc <szymon@janc.net.pl>
18458
18459 * grub-core/normal/auth.c (grub_auth_check_authentication):
18460 Set-but-not-used variable removed.
18461
d82df574
VS
184622010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18463
18464 * docs/grub.texi (GNU/Linux): Document APM unavailability with
18465 32-bit linux protocol.
18466
7bced458
VS
184672010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18468
18469 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
18470 cursor shape for sanity.
18471
5b027690
VS
184722010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18473
18474 * docs/grub.texi (Installation): Document buggy BIOS install.
18475
ba5f65cf
VS
184762010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18477
18478 * docs/grub.texi (Installation): Indent.
18479
fdf2ec9c
VS
184802010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18481
18482 * util/grub-setup.c (setup): New parameter allow_floppy.
18483 (arguments): New member allow_floppy.
18484 (argp_parser): Handle --allow-floppy.
18485 (main): Pass allow_floppy.
18486 * util/grub-install.in: New option --allow-floppy passed though to
18487 grub-setup.
18488
861dfd4c
VS
184892010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18490
18491 * util/grub-install.in: Handle partitionless disks.
18492
f77a8c24
VS
184932010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
18494
18495 * util/grub-setup.c (setup): Don't clean blocklists before readability
18496 verfification.
18497
27d9ee32
VS
184982010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18499
18500 * docs/grub.texi (Installation): Document embedding zone. Remove
18501 obsolete grub-install example.
18502
6bdda8f8
SJ
185032010-10-16 Szymon Janc <szymon@janc.net.pl>
18504
18505 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
18506 Set-but-not-used variable ifdef'ed.
18507 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
18508 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
18509 variable removed.
18510 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
18511 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
18512 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
18513 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
18514 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
18515 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
18516 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
18517 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
18518 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
18519 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
18520 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
18521 Likewise.
18522
e19b016b
VS
185232010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18524
18525 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
18526 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
18527 enum value.
18528
6c8d3002
VS
185292010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18530
18531 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
18532 synonym to _S5_. Needed for some DSDTs.
18533
c32b51c9
VS
185342010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18535
18536 Userspace ACPI parser debugging.
18537
18538 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
18539 headers and add relevant defines. Don't include standard headers.
18540 (main) [GRUB_DSDT_TEST]: New function.
18541 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
18542 Don't declare functions.
18543
fbfbeb39
VS
185442010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18545
18546 Remove dead grub_efi_mm_fini.
18547
18548 * grub-core/kern/efi/mm.c (allocated_page): Removed.
18549 (ALLOCATED_PAGES_SIZE): Likewise.
18550 (MAX_ALLOCATED_PAGES): Likewise.
18551 (allocated_pages): Likewise.
18552 (grub_efi_allocate_pages): Don't record allocated pages.
18553 (grub_efi_free_pages): Likewise.
18554 (grub_efi_mm_init): Likewise.
18555 (grub_efi_mm_fini): Removed.
18556
65f7ed7c
VS
185572010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18558
18559 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
18560 (grub_efi_mm_init): Take into account the memory map size increase.
18561
24977b44
VS
185622010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
18563
18564 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
18565 (serial_hw_put): Wait based on real time rather than port reads. Don't
18566 roken ports.
18567 * include/grub/serial.h (grub_serial_port): New field broken.
18568
1eb01cd2
RM
185692010-10-16 Robert Millan <rmh@gnu.org>
18570
18571 * grub-core/kern/emu/misc.c
18572 (grub_make_system_path_relative_to_its_root): Fix premature return
18573 when processing non-root ZFS filesystems.
5f8b440b 18574 Reported by Sergio Talens-Oliag.
1eb01cd2 18575
2d5fed60
RM
185762010-10-15 Robert Millan <rmh@gnu.org>
18577
18578 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
18579 guarantee compressed ones are processed first.
18580
d0f4c1ea
VS
185812010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
18582
18583 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
18584 grub_efiemu_autocore.
18585
d87c681f
VS
185862010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
18587
18588 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
18589 rather than 0x1b.
18590 (grub_console_getkey): Use correct jae opcode rather than ja.
18591
219b3564
RM
185922010-10-12 Robert Millan <rmh@gnu.org>
18593
18594 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
18595 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
18596 variable. All references updated.
18597
18598 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
18599
20c6bb7e
VS
186002010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
18601
18602 Correctly distinguish mdraid flavours.
18603
18604 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
18605 (insert_array): New argument raid.
18606 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
18607 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
18608 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
18609
74baff84
VS
186102010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
18611
18612 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
18613 handling of special keys.
18614
3ef068df 186152010-10-02 Aleš Nesrsta <starous@volny.cz>
18616
c7980ad9
VS
18617 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
18618 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 18619
a9455194 186202010-10-02 Aleš Nesrsta <starous@volny.cz>
18621
c7980ad9
VS
18622 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
18623 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
18624 users updated.
a9455194 18625 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 18626 Use right endpoint when querying descriptor.
a9455194 18627
441cfe65
VS
186282010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
18629
18630 Clear out 0x80 color bit on EFI.
18631 Tested by: decoder
18632 Reported by: decoder and meta tech.
18633
18634 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
18635 (grub_console_setcolorstate): Clear out 0x80 bit.
18636 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
18637 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
18638 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
18639
bf26bcc4
VS
186402010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
18641
18642 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
18643 Set to "auto".
18644
6e3c515d
VS
186452010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18646
18647 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
18648 mo_file after freeing.
18649
e6d983ba
VS
186502010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18651
18652 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
18653
74ccb5b5
VS
186542010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18655
18656 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
18657 flags.
18658
17821956
VS
186592010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18660
18661 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
18662 usage.
18663
ee74fa48
VS
186642010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
18665
18666 Put terminfo into core on ieee1275 and yeeloong (needed for console).
18667
18668 * gentpl.py: New groups terminfoinkernel and terminfomodule.
18669 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
18670 and terminfo.h when needed.
18671 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
18672 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
18673 (terminfo): Enable only on terminfokernel.
18674 (extcmd): Likewise.
18675 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
18676 * include/grub/lib/arg.h: Likewise.
18677 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
18678 incorrect usage of ->.
18679
aa438e68
VS
186802010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18681
18682 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
18683 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
18684
57994012
VS
186852010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18686
18687 Fix coreboot compilation.
18688
18689 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18690 Take VBE info into account even if only text is supported.
18691 (fill_vbe_info): Take into account the case when only VGA text
18692 is supported.
18693 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
18694 on coreboot, multiboot and qemu.
18695
2a406611
VS
186962010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18697
18698 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
18699 debug messages.
18700 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
18701
d33613fc
VS
187022010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18703
18704 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
18705 parameters.
18706
44a1b432
VS
187072010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18708
18709 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
18710 if they were BSD-style.
18711
edde54e6
VS
187122010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18713
18714 * grub-core/boot/i386/pc/lnxboot.S: Replace
18715 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
18716 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
18717
b65830fa
VS
187182010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18719
18720 Write embedding zone using Reed-Solomon.
18721
18722 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
18723 * grub-core/Makefile.am (rs_decoder.S): New target.
18724 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
18725 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
18726 (multiboot): Move to RS part.
18727 (post_reed_solomon): New label.
18728 (grub_boot_drive): Move to non-RS part since it's modified in memory
18729 on boot.
18730 Include rs_decoder.S.
18731 * grub-core/lib/reed_solomon.c: New file.
18732 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
18733 New definition.
18734 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
18735 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
18736 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
18737 * include/grub/partition.h (grub_partition_map): Change prototype of
18738 embed to allow returning additional sectors.
18739 * include/grub/reed_solomon.h: New file.
18740 * util/grub-setup.c (setup): Handle Reed-Solomon.
18741
0b4b227f
CW
187422010-09-28 Colin Watson <cjwatson@ubuntu.com>
18743
18744 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
18745 i386 and x86-64 definedness tests.
18746
f772623b
YB
187472010-09-27 Yves Blusseau <blusseau@zetam.org>
18748
18749 Fix generation of kernel_syms.lst
18750
18751 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
18752 ASM_PREFIX
18753
8e57a6ca
RM
187542010-09-26 Robert Millan <rmh@gnu.org>
18755
18756 Support degraded ZFS arrays in "grub-probe -t device" resolution.
18757
18758 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
18759 the pool is an array of devices, iterate through it and return the
18760 first device that passes a stat() test (instead of blindly returning
18761 the first one).
18762
f9130836
RM
187632010-09-26 Robert Millan <rmh@gnu.org>
18764
18765 Build fixes for GNU/kFreeBSD.
18766
18767 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
18768 to programs that require ZFS conversion.
18769 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
18770 kernels that don't have FLOPPY_MAJOR.
18771
96510faf
BC
187722010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
18773
18774 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
18775
449333eb
BC
187762010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
18777
18778 Fix grub-emu build.
18779
18780 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
18781 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
18782 mdraid09 and mdraid1x.
18783
e1fd1939
CW
187842010-09-24 Colin Watson <cjwatson@ubuntu.com>
18785
18786 Re-enable grub-extras.
18787
18788 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
18789 avoid confusing Automake. Run autogen only twice, once for the top
18790 level and once for grub-core. Add Makefile.util.def and
18791 Makefile.core.def from extra modules to the appropriate autogen
18792 invocations. If Makefile.common exists in an extra module, include
18793 it in both Makefile.util.am and grub-core/Makefile.core.am;
18794 similarly, include any Makefile.util.common file in Makefile.util.am
18795 and any Makefile.core.common file in grub-core/Makefile.core.am.
18796 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
18797 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
18798 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
18799 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
18800
18801 * gentpl.py (gvar_add): Turn GVARS into a set.
18802 (global_variable_initializers): Sort global variables on output.
18803 (vars_init): New function.
18804 (first_time): Likewise.
18805 (library): Ensure that non-global variable initialisations are
18806 emitted before the first time we emit code for a library block.
18807 Append to variables rather than setting them. Only emit
18808 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
18809 each conditional path.
18810 (program): installdir() emits an Autogen macro, so must be passed to
18811 var_add rather than gvar_add.
18812 (data): Likewise.
18813 (script): Likewise.
18814 (rules): New function, centralising handling for different target
18815 types. Set up Guile association lists for first_time and vars_init,
18816 and send most output to a diversion so that variable initialisations
18817 can be emitted first.
18818 (module_rules): Use new rules function.
18819 (kernel_rules): Likewise.
18820 (image_rules): Likewise.
18821 (library_rules): Likewise.
18822 (program_rules): Likewise.
18823 (script_rules): Likewise.
18824 (data_rules): Likewise.
18825
18826 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
18827
18828 * .bzrignore: Add contrib and grub-core/contrib. Remove
18829 grub-core/Makefile.gcry.am.
18830
1d12cf29
YB
188312010-09-24 Yves Blusseau <blusseau@zetam.org>
18832
18833 * grub-core/lib/LzFind.c: Add missing include.
18834 * grub-core/lib/LzmaEnc.c: Likewise.
18835 * grub-core/script/lexer.c: Likewise.
18836 * grub-core/script/yylex.l: Likewise.
18837 * util/grub-macho2img.c: Likewise.
18838 * util/grub-menulst2cfg.c: Likewise.
18839 * util/grub-mklayout.c: Likewise.
18840 * util/grub-mkpasswd-pbkdf2.c
18841 * util/grub-mkrelpath.c: Likewise.
18842 * util/resolve.c: Likewise.
18843
dd363028
BC
188442010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
18845
18846 * Makefile.util.def (example_unit_test): Add
18847 grub-core/gnulib/libgnu.a.
18848
f5a109e2
GS
188492010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
18850
18851 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
18852
6d0fa83c
VS
188532010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
18854
18855 Support xz compression on yeeloong.
18856
18857 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
18858 * configure.ac: Check for LZMA.
18859 * grub-core/Makefile.core.def (xz_decompress): New target.
18860 (none_decompress): Likewise.
18861 * grub-core/boot/decompressor/minilib.c: New file.
18862 * grub-core/boot/decompressor/none.c: Likewise.
18863 * grub-core/boot/decompressor/xz.c: Likewise.
18864 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
18865 * grub-core/kern/mips/cache_flush.S: Likewise.
18866 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
18867 * grub-core/kern/mips/startup.S: Move first stage to ...
18868 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
18869 nomacro.
18870 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
18871 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
18872 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
18873 Allocate statically.
18874 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
18875 Allocate statically or use scratch. Don't check CRC32.
18876 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
18877 Allocate statically. Don't check CRC32.
18878 * include/grub/decompressor.h: New file.
18879 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
18880 Removed.
18881 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
18882 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
18883 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
18884 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
18885 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
18886 * util/grub-mkimage.c (grub_compression_t): New type.
18887 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
18888 (image_target_desc): New field default_compression.
18889 (image_targets): Adjust yeeloong targets.
18890 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
18891 (compress_kernel): New parameter comp.
18892 (generate_image): Likewise. Handle new compression case.
18893 (options): New option --compression
18894 (help): Likewise.
18895 (main): Handle new option.
18896
1b655af6
GS
188972010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
18898
18899 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
18900
8f03f0b5
CW
189012010-09-22 Colin Watson <cjwatson@ubuntu.com>
18902
18903 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
18904 typo in __i386__ conditional.
18905
7835dfd3
VS
189062010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
18907
18908 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
18909 include.
18910
e255597e
VS
189112010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
18912
6d0fa83c 18913 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
18914
18915 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
18916 new tags as supported.
18917 (acpiv2_size): New function.
18918 (grub_multiboot_get_mbi_size): Take new tags into account.
18919 (grub_multiboot_make_mbi): Add new tags.
18920 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 18921
6cc14051 189222010-09-21 Aleš Nesrsta <starous@volny.cz>
18923
18924 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
18925 Added missing configuration of USB device.
18926
df7769d8
CW
189272010-09-21 Colin Watson <cjwatson@ubuntu.com>
18928
18929 * grub-core/normal/menu_entry.c (run): Make sure we always return
18930 a value.
18931
b031012d
CW
189322010-09-21 Colin Watson <cjwatson@ubuntu.com>
18933
18934 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
18935 NumberOfPages is UINT64 according to the UEFI specification, not
18936 UINTN. Fix printf format.
18937
174de8f3
CW
189382010-09-21 Colin Watson <cjwatson@ubuntu.com>
18939
18940 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
18941 `err' to grub_usb_err_t.
18942 Reported and tested by: KESHAV P.R.
18943
d7dbe923
CW
189442010-09-21 Colin Watson <cjwatson@ubuntu.com>
18945
18946 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
18947 tpart non-const, so that we can assign to it. (Since this is a
18948 typedef, the constness refers to the pointer rather than what it
18949 points to.)
18950
8d5e2af3
CW
189512010-09-21 Colin Watson <cjwatson@ubuntu.com>
18952
18953 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
18954 $(top_srcdir)/grub-core/gnulib as well as
18955 $(top_builddir)/grub-core/gnulib.
18956 Reported by: KESHAV P.R.
18957
5c527783
CW
189582010-09-21 Colin Watson <cjwatson@ubuntu.com>
18959
18960 * util/grub-install.in: Fix the bootloader ID option to be
18961 consistently --bootloader-id, not --bootloader_id.
18962 Reported by: KESHAV P.R.
18963
d309a16e
CW
189642010-09-21 Colin Watson <cjwatson@ubuntu.com>
18965
18966 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
18967 check hash checksum." consistently translatable.
18968
b830cd16
YB
189692010-09-21 Yves Blusseau <blusseau@zetam.org>
18970
18971 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
18972 $(top_builddir).
18973
c4fe27a8
CW
189742010-09-21 Colin Watson <cjwatson@ubuntu.com>
18975
18976 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
18977 (GRUB_MOD_INIT): Register sha1sum command.
18978 (GRUB_MOD_FINI): Unregister sha1sum command.
18979
a4c1d277
YB
189802010-09-21 Yves Blusseau <blusseau@zetam.org>
18981
18982 Keep boot and grub directory names in sync with utils scripts
18983
18984 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
18985 * config.h.in: Add previous macros.
18986 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
18987 * util/grub-install.in: Use $bootdir and $grubdir variables.
18988
4eff79d2
CW
189892010-09-21 Colin Watson <cjwatson@ubuntu.com>
18990
18991 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
18992 convert partition names to disk names if the new `convert' parameter
18993 is set.
18994 (grub_util_biosdisk_get_grub_dev): If opening the disk device
18995 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
18996 disk in its own right. This can happen with Xen disk images.
18997
934d7e44
YB
189982010-09-21 Yves Blusseau <blusseau@zetam.org>
18999
19000 * util/grub-editenv.c: Update strings to avoid warnings when generating
19001 grub.pot file.
19002 * util/grub-setup.c: Likewise.
934d7e44 19003
df3367cc
VS
190042010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19005
19006 * configure.ac: Change version to 1.99~beta0.
19007
77a94e98
VS
190082010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19009
19010 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
19011 Add BADRAM.
19012 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
19013 Likewise.
19014 * include/multiboot.h: Resynced with specification.
19015 * include/multiboot2.h: Likewise.
19016
269004c1
CW
190172010-09-21 Colin Watson <cjwatson@ubuntu.com>
19018
19019 Fix po directory handling.
19020
19021 * configure.ac: Create po/Makefile.in rather than po/Makefile.
19022 * grub-core/gnulib/Makefile.am: Import gettext module.
19023 * m4/gnulib-cache.m4: Likewise.
19024 * m4/gnulib-comp.m4: Likewise.
19025 * m4/gettext.m4: New file, from gnulib.
19026 * m4/glibc2.m4: Likewise.
19027 * m4/iconv.m4: Likewise.
19028 * m4/intdiv0.m4: Likewise.
19029 * m4/intl.m4: Likewise.
19030 * m4/intldir.m4: Likewise.
19031 * m4/intlmacosx.m4: Likewise.
19032 * m4/intmax.m4: Likewise.
19033 * m4/inttypes-pri.m4: Likewise.
19034 * m4/lcmessage.m4: Likewise.
19035 * m4/lib-ld.m4: Likewise.
19036 * m4/lib-link.m4: Likewise.
19037 * m4/lib-prefix.m4: Likewise.
19038 * m4/lock.m4: Likewise.
19039 * m4/nls.m4: Likewise.
19040 * m4/po.m4: Likewise.
19041 * m4/printf-posix.m4: Likewise.
19042 * m4/progtest.m4: Likewise.
19043 * m4/threadlib.m4: Likewise.
19044 * m4/uintmax_t.m4: Likewise.
19045 * m4/visibility.m4: Likewise.
19046 * po/Makefile.am: Remove.
19047 * po/Makefile.in.in: New file, from gettext.
19048 ($(DOMAIN).pot-update): Support POTFILES-shell.
19049 * po/Makevars: New file.
19050 * po/POTFILES-shell: Rename to ...
19051 * po/POTFILES-shell.in: ... this. Update.
19052 * po/POTFILES: Rename to ...
19053 * po/POTFILES.in: ... this. Update.
19054 * po/Rules-quot: New file, from gettext.
19055 * po/boldquot.sed: Likewise.
19056 * po/en@boldquot.header: Likewise.
19057 * po/en@quot.header: Likewise.
19058 * po/insert-header.sin: Likewise.
19059 * po/quot.sed: Likewise.
19060 * po/remove-potcdate.sin: Likewise.
19061
3e0fa5d0
VS
190622010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19063
19064 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
19065
ade9bd66
VS
190662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19067
19068 * util/grub.d/20_linux_xen.in: Use submenus.
19069
fc55cc4c
VS
190702010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19071
19072 Support submenus.
19073
19074 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
19075 parameter submenu. All users updated.
19076 * grub-core/normal/main.c (free_menu): Rename to ...
19077 (grub_normal_free_menu): ... this. Made global.
19078 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
19079 if requested.
19080 * grub-core/normal/menu_entry.c (screen): New field submenu.
19081 (make_screen): Set submenu.
19082 (run): Open new context if requested.
19083 * include/grub/menu.h (grub_menu_entry): New field submenu.
19084 * include/grub/normal.h (grub_normal_free_menu): New proto.
19085
600cedf7
VS
190862010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19087
19088 Menu entries extractor.
19089
19090 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
19091 variants.
19092 (GRUB_MOD_INIT): Register new variants.
19093 (GRUB_MOD_FINI): Unregister new variants.
19094 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
19095 into grub_cmd_legacy_source.
19096 (grub_cmd_legacy_source): Implement extractor variants.
19097 (GRUB_MOD_INIT): Register new variants.
19098 (GRUB_MOD_FINI): Unregister new variants.
19099 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
19100 as an extractor.
19101 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
19102 search as an extractor.
19103 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
19104 test as an extractor.
19105 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
19106 as an extractor.
19107 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
19108 (grub_env_new_context): New function.
19109 (grub_env_context_open): Likewise.
19110 (grub_env_extractor_open): Likewise.
19111 (grub_env_extractor_close): Likewise.
19112 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
19113 grub_extractor_level.
19114 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
19115 * include/grub/env.h (grub_env_extractor_open): New proto.
19116 (grub_env_extractor_close): Likewise.
19117 * include/grub/normal.h (grub_extractor_level): New external variable.
19118
7bda3a87
VS
191192010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19120
19121 Make cutmem accept a region specification.
19122 Suggested by: Samuel Thibault
19123
19124 * grub-core/mmap/mmap.c (parsemem): New function.
19125 (grub_cmd_cutmem): Handle new arguments.
19126
2ea57f88
VS
191272010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19128
19129 New command cutmem.
19130
19131 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
19132 (GRUB_MOD_INIT): Register new command.
19133 (GRUB_MOD_FINI): Unregister new command.
19134
74342e31
VS
191352010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19136
19137 Support some annoying BSD and Minix subpartitions.
19138
19139 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
19140 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
19141 Properly handle concatenation.
19142 * grub-core/kern/device.c (grub_device_iterate): Likewise.
19143 * grub-core/normal/completion.c (iterate_partition): Likewise.
19144 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
19145 contain partition. All users updated.
19146 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
19147 struct.
19148 (grub_openbsdlabel_partition_map): Likewise.
19149 (bsdlabel_partition_map_iterate): Rename to ..
19150 (iterate_real): ... this. New arguments sector, freebsd and pmap.
19151 (bsdlabel_partition_map_iterate): New function.
19152 (netopenbsdlabel_partition_map_iterate): Likewise.
19153 (netbsdlabel_partition_map_iterate): Likewise.
19154 (openbsdlabel_partition_map_iterate): Likewise.
19155 (GRUB_MOD_INIT): Register new partmaps.
19156 (GRUB_MOD_FINI): Unregister new partmaps.
19157 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
19158 (grub_partition_msdos_iterate): ... this. All users updated.
19159 Don't support embedding other than in a minix partition.
19160 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
19161 proto.
19162 * include/grub/partition.h (grub_partition): New field msdostype.
19163 * util/grub-install.in: Handle openbsd and netbsd types being in
19164 part_bsd module.
19165
1e8d555b
VS
191662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19167
19168 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
19169
19170 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
19171 * grub-core/Makefile.core.def (mdraid): Renamed to ...
19172 (mdraid09): ... this.
19173 (mdraid1x): New module.
19174 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
19175 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
19176
899d8af4
VS
191772010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19178
19179 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
19180 vsprintf.
19181
40901acd
CW
191822010-09-20 Colin Watson <cjwatson@ubuntu.com>
19183
19184 * grub-core/commands/efi/lsefimmap.c: Correct header.
19185 * NEWS: Update.
19186
dfe3b247
CW
191872010-09-20 Colin Watson <cjwatson@ubuntu.com>
19188
19189 * util/grub-editenv.c (argp_parser): Don't pass translated strings
19190 as printf format strings; the translations might contain '%' which
19191 could cause a crash.
19192 (main): Likewise.
19193 * util/grub-fstest.c (argp_parser): Likewise.
19194 * util/grub-setup.c (argp_parser): Likewise.
19195 (main): Likewise.
19196
3286a4b4
VS
191972010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19198
19199 Use argp in grub-fstest.
19200
19201 * util/grub-fstest.c: Don't include getopt.h.
19202 Include argp.h.
19203 (root): New variable.
19204 (args_count): Likewise.
19205 (nparm): Likewise.
19206 (num_disks): Likewise.
19207 (images): Likewise.
19208 (cmd): Likewise.
19209 (debug_str): Likewise.
19210 (args): Likewise.
19211 (options): Transformed to argp.
19212 (usage): Removed.
19213 (main): Split argument parsing into ...
19214 (argp_parser): ... this. Changed to argp format.
19215 (argp): New variable.
19216 (main): Use argp_parse.
19217
3dccbe4b
TG
192182010-09-20 Tristan Gingold <gingold@free.fr>
192192010-09-20 Robert Millan <rmh.grub@aybabtu.com>
192202010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19221
19222 * grub-core/commands/efi/lsefimmap.c: New file.
19223 * grub-core/Makefile.core.def (lsefimmap): New module.
19224 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
19225
38c259a7
VS
192262010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19227
19228 Pause the execution (10s max) if any errors are displayed so the user
19229 has a chance to see them.
19230
19231 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
19232 (grub_print_error): Increment grub_err_printed_errors.
19233 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
19234 execution if any errors were displayed.
19235 (show_menu): Remove old code for pause.
19236 * grub-core/normal/menu_entry.c (run): Likewise.
19237 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
19238 users updated.
19239 (grub_normal_get_char_counter): Likewise.
19240 * include/grub/err.h (grub_err_printed_errors): New external variable.
19241 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
19242
f218b09c
VS
192432010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19244
19245 Support multiboot VBE info.
19246
19247 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19248 Take VBE info into account.
19249 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
19250 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19251 Call fill_vbe_info when appropriate.
19252 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
19253 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
19254 as supported.
19255 (grub_multiboot_get_mbi_size): Take new tags into account.
19256 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
19257 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19258 Call fill_vbe_tag when appropriate.
19259 (grub_multiboot_make_mbi): Properly align tags.
19260 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
19261 function.
19262 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
19263 proto.
19264 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
19265
a9cc5438
VS
192662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19267
19268 Suport manual terminal geometry specification.
19269
19270 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
19271 Save state in grub_ofconsole_terminfo_output.
19272 (grub_ofconsole_term): Use grub_terminfo_getwh.
19273 (grub_ofconsole_getwh): Removed.
19274 * grub-core/term/serial.c (grub_serial_getwh): Removed.
19275 (grub_serial_term): Use grub_terminfo_getwh.
19276 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
19277 (options): New struct.
19278 (OPTION_*): New enum.
19279 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
19280 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
19281 width and height.
19282 (grub_terminfo_getwh): New proto.
19283 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
19284
1a8fed20
VS
192852010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19286
19287 Handle legacy "terminal" command.
19288
19289 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
19290 and FLAG_TERMINAL.
19291 (legacy_commands): Add terminal and title.
19292 (grub_legacy_parse): Handle terminal. Simplify title handling.
19293
41e9c57d
VS
192942010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19295
19296 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
19297 parameters overflow.
19298
61c874c5
CW
192992010-09-20 Colin Watson <cjwatson@ubuntu.com>
19300
19301 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
19302 widthspec.h.
19303
19304 * docs/grub.texi (Shell-like scripting): Document `!'.
19305 (Network): Simplify using new i386-pc-pxe format. Mention
19306 grub-mknetdir.
19307
19308 * NEWS: Update.
19309
943682b4
CW
193102010-09-20 Colin Watson <cjwatson@ubuntu.com>
19311
19312 * Makefile.am (SUBDIRS): Restore "."; it's important to force
19313 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
19314 when needed.
19315
6d3d698d
CW
193162010-09-20 Colin Watson <cjwatson@ubuntu.com>
19317
19318 * grub-core/commands/efi/lsefisystab.c: Correct header.
19319 * grub-core/commands/efi/lssal.c: Likewise.
19320 * grub-core/commands/testload.c: Likewise.
19321
c982589f
CW
193222010-09-20 Colin Watson <cjwatson@ubuntu.com>
19323
19324 * util/grub-mkrescue.in: Add explicit root argument to --set to
19325 prevent the UUID being interpreted as an argument to --set (matches
19326 previous change to prepare_grub_to_access_device).
19327
a63c31b6
CW
193282010-09-20 Colin Watson <cjwatson@ubuntu.com>
19329
19330 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
19331 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
19332 the verbosity of later #ifs.
19333 (find_partition_start): Define this function on FreeBSD too.
19334 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
19335 function.
19336 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
19337 on FreeBSD.
19338
6439b8ee
YB
193392010-09-20 Yves Blusseau <blusseau@zetam.org>
19340
19341 * util/grub-editenv.c: Use argp instead of getopt.
19342
c5930ec8
YB
193432010-09-20 Yves Blusseau <blusseau@zetam.org>
19344
19345 * util/grub-setup.c: Use argp instead of getopt.
19346
15c69261
YB
193472010-09-20 Yves Blusseau <blusseau@zetam.org>
19348
19349 Use gnulib-tool to create gnulib source files.
19350
19351 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
19352 grub-core/gnulib directories
19353 * .bzignore: Add **/.deps and autogenerated gnulib files
19354 * configure.ac: Assign auxiliary directory to build-aux, add invocation
19355 of gnulib macros, add grub-core/gnulib/Makefile
19356 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
19357 include m4 directory to aclocal.
19358 * Makefile.util.def: Remove direct compilation of gnulib source files
19359 and use the new grub-core/gnulib/libgnu.a.
19360 * build-aux/config.rpath: move config.rpath from top directory to
19361 build-aux
19362 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
19363 in gnulib headers
19364 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
19365 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
19366 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
19367 header.
19368 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
19369 string.
19370
e511c9f5
YB
193712010-09-20 Yves Blusseau <blusseau@zetam.org>
19372
19373 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
19374 grub-core/genmod.sh and grub-core/gensyminfo.sh
19375
c2dede05
BC
193762010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
19377
19378 Add a test for echo command options.
19379
19380 * tests/grub_cmd_echo.in: New test.
19381 * Makefile.util.def: Rules for new test.
19382
c55f5018
SJ
193832010-09-20 Szymon Janc <szymon@janc.net.pl>
19384
19385 Remove crc.mod and move crc command to hashsum.mod.
19386 Remove lib/crc.c - users updated to use gcrypt implementation.
19387
19388 * grub-core/commands/crc.c: Removed.
19389 * grub-core/Makefile.core.def (crc): Module removed.
19390 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
19391 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
19392 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
19393 * grub-core/lib/crc.c: Removed.
19394 * include/grub/lib/crc.h: Removed.
19395 * Makefile.util.def (crc): Remove lib/crc.c
19396 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
19397 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
19398 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
19399 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
19400 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
19401 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
19402
e0337366
VS
194032010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19404
19405 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
19406
742f9232
VS
194072010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19408
19409 Split config.h for util and core.
19410
19411 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
19412 (ADDR32): Likewise.
19413 (DATA32): Likewise.
19414 (BSS_START_SYMBOL): Likewise.
19415 (END_SYMBOL): Likewise.
19416 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
19417 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
19418 * config.h.in: New file.
19419 * configure.ac: Use config-util.h as config define file.
19420 Rename MACHINE into GRUB_MACHINE. All users updated.
19421 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
19422 updated.
19423 (NESTED_FUNC_ATTR): Likewise.
19424 Substitue new variables.
19425 (COND_HAVE_ASM_USCORE): New conditional.
19426 * grub-core/Makefile.am (ASM_PREFIX): New variable.
19427 (kernel_syms.lst): Use ASM_PREFIX.
19428 * grub-core/kern/emu/console.c: Include config-util.h.
19429 * grub-core/kern/emu/misc.c: Likewise.
19430 * grub-core/kern/emu/mm.c: Likewise.
19431 * include/grub/emu/misc.h: Likewise.
19432 * include/grub/libgcc.h: Likewise.
19433
39feb0e8
VS
194342010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19435
19436 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
19437 constants usage.
19438 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
19439 Fix GRUB_TERM_KEY_* constants usage.
19440 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
19441
9af6dac3
VS
194422010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19443
19444 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
19445 print pointer.
19446 * grub-core/bus/usb/uhci.c: Remove empty define.
19447 (grub_uhci_check_transfer): Add missing cast.
19448 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
19449 print pointer.
19450 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
19451 PRIuGRUB_SIZE.
19452 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
19453
d6d94820
VS
194542010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19455
19456 * grub-core/Makefile.core.def (legacycfg): Add
19457 lib/i386/pc/vesa_modes_table.c on emu.
19458
3572f2b6
BC
194592010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
19460
19461 Reduce number of temporary files generated by build system.
19462
19463 * grub-core/gencmdlist.sh: Removed.
19464 * grub-core/genfslist.sh: Removed.
19465 * grub-core/genhandlerlist.sh: Removed.
19466 * grub-core/genmodsrc.sh: Removed.
19467 * grub-core/genpartmaplist.sh: Removed.
19468 * grub-core/genparttoollist.sh: Removed.
19469 * grub-core/gentermiinallist.sh: Removed.
19470 * grub-core/genvideolist.sh: Removed.
19471
19472 * grub-core/genmod.sh.in: New file.
19473 * grub-core/gensyminfo.sh.in: New file.
19474
19475 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
19476 * conf/Makefile.extra-dist: Update with new files.
19477 * gentpl.py: Remove rules related to unnecessary temporary files.
19478 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
19479 and und-* files.
19480 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
19481 genmod.sh scripts.
19482 * grub-core/bus/usb/uhci.c: Remove empty #define.
19483 * grub-core/genmoddep.awk: Updated with new syminfo format.
19484 * util/bash-completion.d/Makefile.am: Add config.log to
19485 CLEANFILES.
19486
c836b030
YB
194872010-09-19 Yves Blusseau <blusseau@zetam.org>
19488
19489 * Makefile.util.def: Add forgotten $(LIBINTL) library.
19490
2f4e8053
BC
194912010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
19492
19493 * util/grub-mkconfig.in: Check the config script for syntax errors
19494 before saving.
19495
75831c34
CW
194962010-09-19 Colin Watson <cjwatson@ubuntu.com>
194972010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19498
19499 * Makefile.util.def (grub-install): Use util/grub-install.in on all
19500 platforms.
19501 * util/grub-install.in: Add EFI and IEEE1275 support.
19502 * util/i386/efi/grub-install.in: Removed.
19503 * util/ieee1275/grub-install.in: Likewise.
19504
eaf41b25
VS
195052010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19506
19507 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
19508 (grub_cmd_cmosclean): Likewise.
19509 (GRUB_MOD_INIT): Register command cmosclean.
19510 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
19511 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
19512
1a9130dd
CPE
195132010-09-18 Carles Pina i Estany <carles@pina.cat>
195142010-09-18 Aleš Nesrsta <starous@volny.cz>
195152010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19516
19517 Add keyboard layouts support.
19518
19519 * Makefile.util.def (grub-mklayout): New file.
19520 (grub-kbdcomp): New script.
19521 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
19522 Add keyboard_layouts.h.
19523 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
19524 commands/boot.c on yeeloong.
19525 (keylayouts): New module.
19526 * grub-core/bus/usb/ohci.c
19527 * grub-core/bus/usb/uhci.c
19528 * grub-core/bus/usb/usbhub.c (rescan): New variable.
19529 (grub_usb_add_hub): Poll interrupt pipe for device handling.
19530 (attach_root_port): Likewise.
19531 (poll_nonroot_hub): Likewise.
19532 (grub_usb_poll_devices): Likewise.
19533 (detach_device): Close transfer.
19534 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
19535 function.
19536 (grub_usb_bulk_setup_readwrite): Likewise.
19537 (grub_usb_bulk_finish_readwrite): Likewise.
19538 * grub-core/commands/keylayouts.c: New file.
19539 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
19540 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
19541 aliases.
19542 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
19543 support scancode 2.
19544 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
19545 * include/grub/keyboard_layouts.h: New file.
19546 * util/grub-mklayout.c: New file.
19547 * util/grub-kbdcomp.in: Likewise.
19548
a1d84a5e
VS
195492010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19550
19551 Unify memory types.
19552
19553 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
19554 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
19555 types.
19556 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
19557 (grub_upper_mem): Likewise.
19558 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
19559 * include/grub/memory.h (grub_memory_type_t): New enum.
19560 All users updated.
19561
9696382e
VS
195622010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19563
19564 * grub-core/Makefile.core.def (lsapm): New module.
19565 * grub-core/commands/i386/pc/lsapm.c: New file.
19566 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
19567 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
19568 Likewise.
19569 * include/grub/i386/pc/apm.h: New file.
19570 * include/multiboot.h (multiboot_apm_info): New struct.
19571
195722010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
19573
19574 GRUB-legacy configuration file support.
19575
19576 * Makefile.util.def (grub-menulst2cfg): New util.
19577 * docs/man/grub-menulst2cfg.h2m: New file.
19578 * grub-core/Makefile.core.def (legacycfg): New module.
19579 * grub-core/commands/legacycfg.c: New file.
19580 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
19581 (grub_normal_add_menu_entry): ... this.
19582 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
19583 (grub_normal_set_password): ...this.
19584 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
19585 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
19586 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
19587 * grub-core/lib/legacy_parse.c: New file.
19588 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
19589 * include/grub/i386/pc/vesa_modes_table.h: New file.
19590 * include/grub/legacy_parse.h: Likewise.
19591 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
19592 * util/grub-menulst2cfg.c: New file.
19593
bf8d1338
CW
195942010-09-17 Colin Watson <cjwatson@ubuntu.com>
19595
19596 * grub-core/kern/emu/hostdisk.c
19597 (convert_system_partition_to_system_disk): Initialise node.
19598
9c0bad2e
CW
195992010-09-17 Colin Watson <cjwatson@ubuntu.com>
19600
19601 * grub-core/kern/emu/hostdisk.c
19602 (convert_system_partition_to_system_disk): Fix devmapper memory pool
19603 leak.
19604 Reported and based on patch by: Modestas Vainius.
19605
a939d135
CW
196062010-09-17 Colin Watson <cjwatson@ubuntu.com>
19607
19608 Fix DM-RAID probing with recent versions of device-mapper udev
19609 rules.
19610
19611 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
19612 canonicalise device paths under /dev/mapper/.
19613 (convert_system_partition_to_system_disk): Compare the
19614 uncanonicalised path to /dev/mapper/ rather than the canonicalised
19615 path, since device nodes under /dev/mapper/ are often symlinks.
19616
0f7ee3c9
YB
196172010-09-17 Yves Blusseau <blusseau@zetam.org>
19618
19619 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
19620
10854d0d
YB
196212010-09-16 Yves Blusseau <blusseau@zetam.org>
19622
19623 * configure.ac: Avoid some annoying error messages if freetype-config
19624 program is not found.
19625
108538d8
CW
196262010-09-16 Colin Watson <cjwatson@ubuntu.com>
19627
19628 Support RAID on virtio devices, and others.
19629
19630 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
19631 Rename to ...
19632 [__MINGW32__] (grub_find_device): ... this.
19633 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
19634 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
19635 reasonable default if dir is NULL.
19636 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
19637 ...
19638 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
19639 (grub_guess_root_device): Update callers.
19640 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
19641
19642 * util/raid.c (grub_util_getdiskname): Remove.
19643 (grub_util_raid_getmembers): Use grub_find_device rather than
19644 grub_util_getdiskname.
19645
e5bfc130
CW
196462010-09-16 Colin Watson <cjwatson@ubuntu.com>
19647
19648 * docs/grub.texi (serial): Remove obsolete comment about GRUB
19649 needing to be compiled with serial support.
19650 (ls): Indicate that multiple files are accepted.
19651 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
19652 indicate that multiple files are accepted.
19653
be458ae2
CW
196542010-09-16 Colin Watson <cjwatson@ubuntu.com>
19655
19656 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
19657 libgrub_a_init.c, and util/bash-completion.d/grub.
19658
cb731b5e
VS
196592010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19660
19661 * util/grub-setup.c (setup): Fix incorrect container semantics.
19662
35139e8a
VS
196632010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19664
19665 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
19666 misusage.
19667 Reported by: J. Nick Terry
19668
e50fca4a
VS
196692010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19670
19671 Move embedding routines to partmap sources files.
19672
19673 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
19674 [GRUB_UTIL]: New variable.
19675 (gpt_partition_map_iterate): Set part.parent.
19676 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
19677 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
19678 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
19679 New function.
19680 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
19681 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
19682 (grub_partition_map) [GRUB_UTIL]: New field embed.
19683 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
19684 (setup): Use ->embed.
19685
f00478b7
VS
196862010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19687
19688 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
19689 function.
19690 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
19691 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
19692
2b94e3ff
YB
196932010-09-15 Yves Blusseau <blusseau@zetam.org>
19694
19695 Add function to get completions from usage.
19696
19697 * util/bash-completion.d/grub-completion.bash.in: Add function to get
19698 completions from usage. Use LC_ALL=C to get options properly.
19699
2e04a006
VS
197002010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19701
19702 * grub-core/gnulib/basename-lgpl.c: Imported.
19703 * grub-core/gnulib/basename.c: Likewise.
19704 * grub-core/gnulib/dirname-lgpl.c: Likewise.
19705 * grub-core/gnulib/dirname.c: Likewise.
19706 * grub-core/gnulib/dirname.h: Likewise.
19707 * grub-core/gnulib/stripslash.c: Likewise.
19708
5dcdf93a
VS
197092010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19710
19711 * grub-core/gnulib/error.c: Resynced.
19712 * grub-core/gnulib/getopt.c: Likewise.
19713 * grub-core/gnulib/getopt_int.h: Likewise.
19714 * grub-core/gnulib/regex.h: Likewise.
19715 * grub-core/gnulib/regex_internal.c: Likewise.
19716 * grub-core/gnulib/regex_internal.h: Likewise.
19717
014f47b7
SJ
197182010-09-15 Szymon Janc <szymon@janc.net.pl>
19719
19720 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
19721 CRC calculations and validity checks.
19722 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
19723 calculations.
19724
dd521a4a
SJ
197252010-09-15 Szymon Janc <szymon@janc.net.pl>
19726
19727 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
19728
79c4eeb9
VS
197292010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19730
19731 Fix incorrect echo options handling.
19732 Reported by: Yves Blusseau.
19733
19734 * include/grub/command.h (grub_command_flags_t): New flags
19735 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
19736 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
19737 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
19738
ed80f7d5
VS
197392010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19740
19741 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
19742 users updated.
19743 (GRUB_COMMAND_FLAG_MENU): Likewise.
19744 (GRUB_COMMAND_FLAG_BOTH): Likewise.
19745 (GRUB_COMMAND_FLAG_TITLE): Removed.
19746 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
19747 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
19748 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
19749 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
19750 (grub_command_flags_t): New enum. All users updated.
19751
5fe7620a
SG
197522010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
19753
19754 Fix solaris compilation.
19755
19756 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
19757 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
19758 (grub-emu-list): Likewise.
19759
545b752f
VS
197602010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19761
19762 Remove deprecated root command.
19763
19764 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
19765 updated.
19766
6c1a338c
VS
197672010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19768
19769 * util/i386/pc/grub-setup.c: Merge this ...
19770 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
19771 * util/grub-setup.c: ... into this.
19772 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
19773 New struct.
19774
197752010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19776
19777 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
19778 possible.
19779
d2ea4551
VS
197802010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19781
19782 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
19783 allocate p.
19784
3c3b5040
VS
197852010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19786
19787 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
19788 explicit root argument to set to prevent UUID to be interpreted as
19789 argument to set.
19790
b71c3fae
VS
197912010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19792
19793 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
19794
275433e6
VS
197952010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19796
19797 Don't export grub_gate_a20.
19798
19799 * grub-core/kern/i386/pc/init.c: Remove leftovers.
19800 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
19801 to ...
19802 (grub_gate_a20): ... this. All users updated.
19803 * include/grub/i386/pc/init.h: Removed. All users updated.
19804
a5dbb1f1
VS
198052010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19806
19807 Create euro.pf2 which supports most European languages.
19808
19809 * Makefile.am (grubdata_DATA): Add euro.pf2.
19810 (euro.pf2): New target.
19811 (CLEANFILES): Add euro.pf2.
19812
62a747cb
VS
198132010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19814
19815 * configure.ac: Disable emu-usb by default to prevent inadvertent
19816 device takeover.
19817
608e43b1
VS
198182010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19819
19820 Disable usbserial on grub-emu since our libusb code isn't good enough
19821 yet.
19822
19823 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
19824 (usbserial_pl2303): Likewise.
19825 (usbserial_ftdi): Likewise.
19826
94564f81
VS
198272010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19828
19829 * include/grub/disk.h (grub_disk): Remove has_partitions.
19830 All users updated.
19831 * disk/loopback.c (grub_loopback): Remove has_partitions.
19832 All users updated.
19833 (options): Remove partitions. All users updated.
19834 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
19835 * util/i386/pc/grub-setup.c (setup): copy partition table only when
19836 actual partition table is found.
19837
3352800b
VS
198382010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19839
19840 Remove readability checks (too many false negatives).
19841
19842 * util/grub-install.in: Remove readability checks.
19843 * util/grub-mkconfig.in: Likewise.
19844 * util/grub.d/10_hurd.in: Likewise.
19845 * util/grub.d/10_kfreebsd.in: Likewise.
19846 * util/grub.d/10_linux.in: Likewise.
19847 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
19848 way.
19849
2419f17a
VS
198502010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19851
19852 Enable acpi shutdown on all ACPI platforms.
19853
19854 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
19855 on coreboo, multiboot and EFI.
19856 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
19857 (grub_acpi_halt): Likewise.
19858 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
19859 (grub_cmd_halt): Don't call grub_acpi_halt directly.
19860 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
19861 * grub-core/lib/i386/halt.c (grub_halt)
19862 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
19863
0575c7c3
VS
198642010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19865
19866 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
19867 context.
19868
54ac3cd1
VS
198692010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19870
19871 * grub-core/video/efi_gop.c: Fix over-80-chars line.
19872 * grub-core/video/efi_uga.c: Likewise.
19873
b2a30ac5
VS
198742010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19875
19876 Filter devaliases and never open same device twice.
19877
19878 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
19879 (last_ihandle): Likewise.
19880 (ofdisk_hash_ent): New member shortest.
19881 (ofdisk_hash_add): Add canonical path too.
19882 (scan): New function.
19883 (grub_ofdisk_iterate): Iterate over hashed entries.
19884 (compute_dev_path): Don't add :0.
19885 (grub_ofdisk_open): Don't really open the disk.
19886 (grub_ofdisk_close): Avoid closing unrelated disk.
19887 (grub_ofdisk_read): Implement reopen logic.
19888 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
19889 New function.
19890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
19891 New proto.
19892
fb53b340
VS
198932010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19894
19895 Fix sparc64.
19896
19897 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
19898 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
19899 right address. Add sparc64_ieee1275_ldflags.
19900 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
19901 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
19902 to grub_host_to_target_addr
19903 (load_image): Likewise.
19904
f452b040
VS
199052010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19906
19907 * grub-core/normal/completion.c (complete_file): Handle device
19908 containing slash.
19909 Fix based on patch by Doug Nazar.
19910
9b5b2541
VS
199112010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19912
19913 grub-mknetdir script.
19914
19915 * Makefile.util.def (grub-mknetdir): New module.
19916 * tests/util/grub-shell.in: Support boot=net
19917 * util/grub-mknetdir.in: New file.
19918
9d2be652
VS
199192010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19920
19921 videoinfo on non-vbe.
19922
19923 * grub-core/Makefile.core.def (vbeinfo): Removed.
19924 (vbetest): Removed.
19925 (videoinfo): New module.
19926 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
19927 * grub-core/commands/i386/pc/vbetest.c: Removed.
19928 * grub-core/commands/videoinfo.c: New file.
19929 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
19930 specification.
19931 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
19932 as vbetest.
19933 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
19934 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
19935 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
19936 mode_number. New parameter mode. All users updated.
19937 (grub_video_gop_iterate): New function.
19938 (grub_video_efi_gop): New member iterate.
19939 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
19940 (grub_vbe_set_video_mode): Remove setting useless fields.
19941 (vbe2videoinfo): New function.
19942 (grub_video_vbe_iterate): Likewise.
19943 (grub_video_vbe_setup): Use vbe2videoinfo.
19944 (grub_video_vbe_print_adapter_specific_info): New function.
19945 (grub_video_vbe_adapter): New fields iterate and
19946 print_adapter_specific_info.
19947 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
19948 All users updated.
19949 (grub_video_mode_info): New field mode_number.
19950 (grub_video_adapter): New fields iterate and
19951 print_adapter_specific_info.
19952
179503f5
TG
199532010-09-13 Tristan Gingold <gingold@free.fr>
199542010-09-13 Robert Millan <rmh.grub@aybabtu.com>
199552010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19956
19957 * grub-core/commands/efi/lsefisystab.c: New file.
19958 * grub-core/commands/efi/lssal.c: Likewise.
19959 * grub-core/Makefile.core.def (lsacpi): New module.
19960 (lsefisystab): Likewise.
19961 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
19962 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
19963 (grub_efi_sal_system_table): New struct.
19964 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
19965 (grub_efi_sal_system_table_memory_descriptor): Likewise.
19966 (grub_efi_sal_system_table_platform_features): Likewise.
19967 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
19968 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
19969 (grub_efi_sal_system_table_ap_wakeup): Likewise.
19970 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
19971
cf9827de
VS
199722010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19973
19974 Support explicit user claim that a device is BIOS-visible.
19975
19976 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
19977 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
19978 * grub-core/kern/emu/hostdisk.c
19979 (convert_system_partition_to_system_disk): Support mdX.
19980 (find_system_device): New parameter add. All users updated.
19981 (grub_util_biosdisk_is_present): New function.
19982 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
19983 proto.
19984
53f0eb1f
VS
199852010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19986
19987 Search hints support.
19988
19989 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
19990 All users updated.
19991
b23ffd70
YB
199922010-09-13 Yves Blusseau <blusseau@zetam.org>
19993
19994 Bash completion script for util commands
19995
19996 * Makefile.am: Add util/bash-completion.d directory
19997 * configure.ac: Likewise.
19998 * util/bash-completion.d/Makefile.am: New file.
19999 * util/bash-completion.d/grub-completion.bash.in: Likewise.
20000
d547dc28
VS
200012010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20002
20003 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
20004 (print_backlog): set backlog_ucs4 and backlog_glyphs.
20005 Reported by: Yves Blusseau.
20006
2fc8ccb9
VS
200072010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20008
20009 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
20010 partition size and offset.
20011
d8a84076
VS
200122010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20013
20014 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
20015
84fb3b3d
VS
200162010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20017
20018 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
20019
768ec2e2
VS
200202010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20021
20022 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
20023 (grub_xvasprintf): Likewise.
20024
4870900f
VS
200252010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20026
20027 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
20028
faca6bec
VS
200292010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20030
20031 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
20032 args ending with NULL.
20033
200342010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
20035
20036 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
20037 pointer.
20038
3c70f225
SJ
200392010-09-11 Szymon Janc <szymon@janc.net.pl>
20040
20041 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
20042
4df7996d
VS
200432010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20044
20045 Shutdown using ACPI.
20046
20047 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
20048 * grub-core/commands/acpihalt.c: New file.
20049 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
20050 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
20051 (grub_acpi_halt): New proto.
20052 (GRUB_ACPI_SLP_EN): New const.
20053 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
20054 (GRUB_ACPI_OPCODE_*): New enum.
20055 (GRUB_ACPI_EXTOPCODE_*): Likewise.
20056
126b4c32
TG
200572010-09-11 Tristan Gingold <gingold@free.fr>
200582010-09-11 Robert Millan <rmh.grub@aybabtu.com>
200592010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20060
20061 * commands/lsacpi.c: New file.
20062 * grub-core/Makefile.core.def (lsacpi): New module.
20063 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
20064 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
20065 (grub_acpi_madt_entry_header): New struct.
20066 (grub_acpi_madt): Likewise.
20067 (grub_acpi_madt_entry_interrupt_override): Likewise.
20068 (grub_acpi_madt_entry_sapic): Likewise.
20069 (grub_acpi_madt_entry_lsapic): Likewise.
20070 (grub_acpi_madt_entry_platform_int_source): Likewise.
20071 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
20072 (PRIuGRUB_UINT32_T): Likewise.
20073 (PRIxGRUB_UINT64_T): Likewise.
20074
1aa4fe88
VS
200752010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20076
20077 Implement loading palette on ieee1275_fb.
20078
20079 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
20080 (have_setcolors): Likewise.
20081 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
20082 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
20083 (grub_video_ieee1275_set_palette): Implement.
20084
25761e13
VS
200852010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
200862010-09-11 Colin Watson <cjwatson@ubuntu.com>
20087
20088 * util/grub-install.in (grub_partition): New variable.
20089 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
20090 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
20091 Fixes a bug reported by Yves Blusseau.
20092
050abaea
VS
200932010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20094
20095 Fix emu on mipsel.
20096
20097 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
20098 =grub_cpu_flush_cache on all mips and not only yeeloong.
20099 * configure.ac (COND_mips): New conditional.
20100 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
20101 platforms.
20102 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
20103 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
20104 [GRUB_LINKER_HAVE_INIT]: New function.
20105 (grub_emu_post_init): Likewise.
20106 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
20107 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
20108 * include/grub/cache.h (_mips): Include mips/cache.h.
20109 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
20110 LVM and RAID prototypes.
20111 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
20112 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
20113 function.
20114
5ed7d816
CW
201152010-09-10 Colin Watson <cjwatson@ubuntu.com>
20116
20117 * util/grub-install.in: Don't try to verify core.img until after
20118 running grub-mkimage to create it.
20119
90367e04
RM
201202010-09-10 Robert Millan <rmh@gnu.org>
20121
20122 * util/grub.d/10_hurd.in: Add misc readability checks.
20123 * util/grub.d/10_kfreebsd.in: Likewise.
20124 * util/grub.d/10_linux.in: Likewise.
20125
c452fa66
CW
201262010-09-10 Colin Watson <cjwatson@ubuntu.com>
20127
20128 * util/grub-install.in: ${imgext} won't be defined here until the
20129 install branch is merged. For the meantime, only verify core.img on
20130 i386-pc and sparc64-ieee1275 platforms.
20131
c38fe9f4
RM
201322010-09-10 Robert Millan <rmh@gnu.org>
20133
20134 Solaris support in grub_find_zpool_from_dir(). Thanks
20135 Seth Goldberg for referring to getextmntent() facility.
20136
20137 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
20138 `sys/mkdev.h'.
20139 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
20140 `<sys/mnttab.h>'.
20141 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
20142 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
20143 method for finding zpool name.
20144
905f7773
CW
201452010-09-10 Colin Watson <cjwatson@ubuntu.com>
20146
20147 grub-fstest needs the host and hostfs modules while other utilities
20148 actively require those modules to be absent, so grub-fstest needs
20149 its own initialisation and finalisation code.
20150
20151 * Makefile.am (grub_fstest.pp): New target.
20152 (grub_fstest_init.lst): Likewise.
20153 (grub_fstest_init.c): Likewise.
20154 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
20155
fb90b546
RM
201562010-09-10 Robert Millan <rmh@gnu.org>
20157
20158 * configure.ac: Check for `struct statfs.f_fstypename' and
20159 `struct statfs.f_mntfromname'.
20160
20161 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
20162 kFreeBSD-specific code.
20163
66d4bea5
RM
201642010-09-10 Robert Millan <rmh@gnu.org>
20165
20166 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
20167 on ZFS. Now non-main filesystems are supported as / too.
20168
b6a690ee
CW
201692010-09-09 Colin Watson <cjwatson@ubuntu.com>
20170
20171 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
20172 and grub-core/disk/host.c to ...
20173 (grub-fstest): ... here. Having the host disk implementation
20174 present confuses grub-probe and other utility programs.
20175
20176 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
20177 when writing to a file, not when writing to stdout.
20178
8901b00c 201792010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
20180
20181 * tests/partmap_test.in: New test for partitions.
20182 * Makefile.util.def: Rules for new test.
20183
7bf45fdd
RM
201842010-09-09 Robert Millan <rmh@gnu.org>
20185
20186 * util/grub-probe.c (probe): Fix a pair of unhandled error
20187 conditions.
20188
4dfbc574
RM
201892010-09-09 Robert Millan <rmh@gnu.org>
20190
20191 Basic Btrfs support (detection and UUID).
20192
20193 * grub-core/fs/btrfs.c: New file.
20194 * Makefile.util.def (library): Register btrfs.c.
20195 * grub-core/Makefile.core.def: Likewise.
20196
6b8e78ae
RM
201972010-09-08 Robert Millan <rmh@gnu.org>
20198
20199 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
20200 with (optional) parameters to specify device and relative path.
20201 * util/grub-install.in: Use is_path_readable_by_grub() to
20202 verify readability of a few critical files.
20203 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
20204 verify readability of grub.cfg.new.
20205
27f21a8b
VS
202062010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20207
20208 Split minix.mod into minix.mod and minix2.mod.
20209
20210 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
20211 * grub-core/Makefile.core.def (minix2): New module.
20212 * grub-core/fs/minix.c: Use definitions instead of runtime version
20213 checking.
20214 * grub-core/fs/minix2.c: New file.
20215
c0e53ea5
YB
202162010-09-08 Yves Blusseau <blusseau@zetam.org>
20217
20218 Add new --boot-directory option to replace --root-directory
20219
20220 * util/grub-install.in: Add new --boot-directory option
20221 * util/grub-reboot.in: Likewise.
20222 * util/grub-set-default.in: Likewise.
20223
b9fe6ea2
YB
202242010-09-08 Yves Blusseau <blusseau@zetam.org>
20225
20226 * util/grub-mkconfig.in: Use new variable.
20227
d87aedff
YB
202282010-09-08 Yves Blusseau <blusseau@zetam.org>
20229
20230 * configure.ac: Define some useful variables.
20231
e55e8495
VS
202322010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20233
20234 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20235 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
20236 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
20237 Use terminfo and don't use cursor-on/cursor-off unless it's known
20238 to work.
20239 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
20240 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
20241
6fa6d675
CW
202422010-09-08 Colin Watson <cjwatson@ubuntu.com>
20243
20244 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
20245 starts with "(,", fill the drive containing the loaded image in
20246 between those two characters, but expect that a full partition
20247 specification including partition map names will follow.
20248
92f2aef0
RM
202492010-09-08 Robert Millan <rmh@gnu.org>
20250
20251 * configure.ac: Remove `--enable-grub-fstest' option.
20252 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
20253
20254 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
20255 `grub-fstest' instead of `grub-probe' for readability verification.
20256 * util/grub-probe.c (probe): Remove readability verification kludge.
20257
99fd620d
RM
202582010-09-08 Robert Millan <rmh@gnu.org>
20259
20260 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
20261 initializing `GRUB_FS'.
20262
058e30ac 202632010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
20264
20265 Not command (!) support to GRUB script.
20266
20267 * tests/grub_script_not.in: New test.
20268 * Makefile.util.def: Rules for new test.
20269
20270 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
20271 ! command as a special case.
20272 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
20273
b61d05ed 202742010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20275
058e30ac 20276 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
20277 grub_free.
b61d05ed 20278
4d69c786 202792010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20280
20281 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
20282
aa3119c4 202832010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20284
20285 * docs/grub.texi (Shell-like scripting): Documentation for break,
20286 continue, shift and return commands.
20287
db0f7e3d
VS
202882010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
20289
20290 Rename CD-ROM to cd on BIOS.
20291
20292 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
20293 "cd".
20294 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
20295
88b87c93
VS
202962010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20297
20298 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
20299 * util/grub-probe.c (main): Likewise.
20300 * util/i386/pc/grub-setup.c (main): Likewise.
20301 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
20302 Reported and debugged by: alexxy
20303
294f324d
VS
203042010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20305
20306 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
20307 diagnostic info.
20308
d7ee3441
JS
203092010-09-05 Jo Shields <directhex@apebox.org>
20310
20311 * util/grub.d/30_os-prober.in: Add missing classes.
20312
d7e06c1f
VS
203132010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20314
20315 * docs/grub.texi (Theme file format): Document new position format.
20316
fc157e53
VS
203172010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20318
20319 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
20320 a table. Use @code instead of @verbatim.
20321
506e9a1c
CB
203222010-09-05 Colin D Bennett <colin@gibibit.com>
20323
20324 Gfxmenu documentation.
20325
20326 * docs/grub.texi (Theme file format): New chapter.
20327
f0aff67c
SJ
203282010-09-05 Szymon Janc <szymon@janc.net.pl>
20329
20330 * grub-core/Makefile.core.def (xzio): New module.
20331 * grub-core/io/xzio.c: New file.
20332 * grub-core/lib/xzembed/xz.h: New file (from xembed).
20333 * grub-core/lib/xzembed/xz_config.h: Likewise.
20334 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
20335 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
20336 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
20337 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
20338 * grub-core/lib/xzembed/xz_private.h: Likewise.
20339 * grub-core/lib/xzembed/xz_stream.h: Likewise.
20340 * include/grub/file.h (grub_file_filter_id): New compression filter
20341 GRUB_FILE_FILTER_XZIO.
20342
82a85062
VS
203432010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20344
20345 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
20346 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
20347 size.
20348
3579415d
VS
203492010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20350
20351 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
20352 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
20353
5124ae6d
VS
203542010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20355
20356 Uncompressed checksum support.
20357
20358 * grub-core/commands/hashsum.c (options): Add option --uncompress.
20359 (check_list): New parameter uncompress.
20360 (grub_cmd_hashsum): Handle --uncompress.
20361
9aadb3d1
VS
203622010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20363
20364 Reintroduce testload.
20365
20366 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
20367 from here ...
20368 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
20369 (GRUB_MOD_INIT): New function.
20370 (GRUB_MOD_FINI): Likewise.
20371 * grub-core/Makefile.core.def (testload): New module.
20372
a17792c3
SJ
203732010-09-05 Szymon Janc <szymon@janc.net.pl>
20374
20375 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
20376 (uint8_t): New type.
20377 (uint16_t): Likewise.
20378 (uint32_t): Likewise.
20379 (uint64_t): Likewise.
20380
b81e40a3
SJ
203812010-09-05 Szymon Janc <szymon@janc.net.pl>
20382
20383 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
20384
fc2ef117
VS
203852010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20386
20387 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
20388 Made static.
20389 (grub_gzfile_open): Removed. All users updated.
20390 (GRUB_MOD_INIT): New function.
20391 (GRUB_MOD_FINI): Likewise.
20392 * grub-core/kern/file.c (grub_file_filters_all): New variable.
20393 (grub_file_filters_enabled): Likewise.
20394 (grub_file_open): Handle filters.
20395 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
20396 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
20397 * include/grub/file.h (grub_file_filter_id_t): New type.
20398 (grub_file_filter_t): Likewise.
20399 (grub_file_filters_all): New extern variable.
20400 (grub_file_filters_enabled): Likewise.
20401 (grub_file_filter_register): New inline function.
20402 (grub_file_filter_unregister): Likewise.
20403 (grub_file_filter_disable): Likewise.
20404 (grub_file_filter_disable_compression): Likewise.
20405 * include/grub/gzio.h: Removed.
20406
35ee15e0
BC
204072010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20408
20409 Filename expansion support for wildcards in GRUB script.
20410
20411 * tests/grub_script_expansion.in: New test.
20412 * Makefile.util.def: Rule for new test.
20413
20414 * grub-core/commands/wildcard.c: New file, implements filename
20415 expansion support for GRUB script.
20416 * grub-core/Makefile.core.def: Rule update for regexp.mod.
20417 * grub-core/script/argv.c: Cosmetic changes.
20418 * grub-core/script/execute.c (grub_script_arglist_to_argv):
20419 Refactored to perform wildcard expansion on arguments.
20420 * include/grub/script_sh.h (grub_script_wildcard_translator): New
20421 struct.
20422
20423 * tests/util/grub-shell.in: Fix quoting for read input.
20424
5f0c4aca
BC
204252010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20426
20427 Support for updating environment variables with matched substrings
20428 of regexp.
20429
20430 * tests/grub_cmd_regexp.in: New test.
20431 * Makefile.util.def: Rule for new test.
20432
20433 * grub-core/commands/regexp.c: New option -s to update environment
20434 variables with regexp matches.
20435
3759a35f
SJ
204362010-09-04 Szymon Janc <szymon@janc.net.pl>
20437
20438 * include/grub/file.h (grub_file): New member not_easly_seekable.
20439 (grub_file_seekable): New inline function.
20440 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
20441 easily seekable.
20442 (grub_gzio_open): Set not_easly_seekable.
20443 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
20444 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
20445
ed8c6dec
BC
204462010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20447
20448 Support for options to appear multiple times on cmdline.
20449
20450 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
20451 * grub-core/commands/extcmd.c: Support for repeatable option.
20452 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
20453 repeatable option support.
20454
20455 Refactor menuentry into a regular command.
20456
20457 * grub-core/commands/menuentry.c: New file, menuentry command
20458 implementation.
20459 * grub-core/Makefile.core.def: Rule update for normal.mod.
20460 * grub-core/normal/main.c: Moved menuentry creation to
20461 grub-core/commands/menuentry.c.
20462 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
20463 (grub_menu_execute_entry_real): Removed.
20464 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
20465 function.
20466 (grub_script_execute_menuentry): Removed.
20467 * grub-core/script/parser.y (menuentry): Removed.
20468 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
20469 * grub-core/script/yylex.l (menuentry): Removed.
20470 * include/grub/menu.h (grub_menu_init): New prototype.
20471 (grub_menu_fini): New prototype.
20472 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
20473 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
20474 (grub_script_execute_sourcecode): New prototype.
20475
dacd0cf0
BC
204762010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20477
20478 "return" command for GRUB script functions.
20479
20480 * tests/grub_script_return.in: New test.
20481 * Makefile.util.def: Rules for new test.
20482
20483 * grub-core/script/execute.c (grub_script_return): New function.
20484 * grub-core/script/main.c: Register/unregister return commaond.
20485 * include/grub/script_sh.h (grub_script_return): New prototype.
20486
52e72f9d
BC
204872010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20488
20489 "setparams" command to update positional parameters.
20490
20491 * tests/grub_script_setparams.in: New test.
20492 * Makefile.util.def: Rules for new test.
20493
20494 * grub-core/script/argv.c (grub_script_argv_make): New function.
20495 * grub-core/script/execute.c (replace_scope): New function.
20496 (grub_script_setparams): New function.
20497 * grub-core/script/lexer.c: Remove unused variables.
20498 * grub-core/script/main.c: Register/unregister setparams command.
20499 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
20500 (grub_script_setparams): New prototype.
20501
25b60c91
BC
205022010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20503
20504 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
20505 grub_free order.
20506
37e7bf68
BC
205072010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20508
20509 Support for passing block of commands as an argument to extcmds.
20510
20511 * Makefile.util.def: Rules for new test.
20512 * tests/grub_script_blockarg.in: New test.
20513 * grub-core/tests/test_blockarg.c: New file, block argument
20514 command used in the test.
20515
20516 * include/grub/extcmd.h (grub_extcmd_context): New struct.
20517 (grub_register_extcmd_prio): New function prototype.
20518 (grub_extcmd_dispatcher): New function prototype.
20519 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
20520 type.
20521 * include/grub/script_sh.h (struct grub_script): New members
20522 `children', `next_siblings' and `refcnt' for block arguments and
20523 reference counting.
20524 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
20525 (grub_script_arg): New member `script' for block argument.
20526 (grub_script_argv): New member `script' for block argument.
20527 (grub_parser_param): New member `scripts' for block argument.
20528 (grub_script_mem_free): New extern function prototype.
20529 (grub_script_ref): New function prototype.
20530 (grub_script_unref): New function prototype.
20531
20532 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
20533 extcmd form to support block arguments.
20534 * grub-core/script/argv.c: Block arguments support.
20535 * grub-core/script/execute.c: Likewise.
20536 * grub-core/script/lexer.c: Likewise.
20537 * grub-core/script/main.c: Likewise.
20538 * grub-core/script/script.c: Likewise.
20539 * grub-core/script/parser.y: Likewise. New `block' and `block0'
20540 non-terminals.
20541
20542 * grub-core/commands/acpi.c: Update extcmd implementations with
20543 grub_extcmd_context_t.
20544 * grub-core/commands/cat.c: Likewise.
20545 * grub-core/commands/echo.c: Likewise.
20546 * grub-core/commands/extcmd.c: Likewise.
20547 * grub-core/commands/hashsum.c: Likewise.
20548 * grub-core/commands/hdparm.c: Likewise.
20549 * grub-core/commands/help.c: Likewise.
20550 * grub-core/commands/hexdump.c: Likewise.
20551 * grub-core/commands/i386/cpuid.c: Likewise.
20552 * grub-core/commands/i386/pc/drivemap.c: Likewise.
20553 * grub-core/commands/i386/pc/halt.c: Likewise.
20554 * grub-core/commands/i386/pc/sendkey.c: Likewise.
20555 * grub-core/commands/iorw.c: Likewise.
20556 * grub-core/commands/keystatus.c: Likewise.
20557 * grub-core/commands/loadenv.c: Likewise.
20558 * grub-core/commands/ls.c: Likewise.
20559 * grub-core/commands/lspci.c: Likewise.
20560 * grub-core/commands/memrw.c: Likewise.
20561 * grub-core/commands/probe.c: Likewise.
20562 * grub-core/commands/search_wrap.c: Likewise.
20563 * grub-core/commands/setpci.c: Likewise.
20564 * grub-core/commands/sleep.c: Likewise.
20565 * grub-core/disk/loopback.c: Likewise.
20566 * grub-core/hello/hello.c: Likewise.
20567 * grub-core/loader/i386/bsd.c: Likewise.
20568 * grub-core/loader/xnu.c: Likewise.
20569 * grub-core/term/gfxterm.c: Likewise.
20570 * grub-core/term/serial.c: Likewise.
20571 * grub-core/tests/lib/functional_test.c: Likewise.
20572
888d1500
BC
205732010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20574
20575 Multi-line quoted strings support.
20576
20577 * grub-core/script/lexer.c (append_newline): Removed.
20578 (grub_script_lexer_yywrap): Refactored.
20579 (grub_script_lexer_init): Refactored.
20580 * grub-core/script/yylex.l (yywrap): New function.
20581 (grub_lexer_resplit): New function.
20582 (grub_lexer_unput): New function.
20583 * include/grub/script_sh.h (grub_lexer_param): New members, unput
20584 and resplit.
20585 * tests/grub_script_echo1.in: Added few more testcases.
20586
dda060dd
VS
205872010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
20588
20589 * grub-core/kern/misc.c: Don't add abort alias in utils.
20590 Reported by: echoline.
20591
6556eba9
BC
205922010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
20593
20594 Add missing files into "make dist" tarball for other platforms.
20595
20596 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
20597 * conf/Makefile.common (dist_noinst_DATA): New variable.
20598 * conf/Makefile.extra-dist: Added missing make dist files.
20599 * grub-core/Makefile.core.def: Likewise.
20600
c8e7bf5f
VS
206012010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
20602
20603 Compress grub_prefix.
20604
20605 * grub-core/boot/i386/pc/lnxboot.S: Use
20606 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
20607 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
20608 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
20609 GRUB_MACHINE_PREFIX_END. All users updated.
20610 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
20611 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
20612 + 0x40.
20613 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
20614 * util/grub-mkimage.c (image_target_desc): Change data_end to
20615 prefix_end. All users updated.
20616
a7c00cdb
VS
206172010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
20618
20619 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
20620 value.
20621 (grub_openbsd_boot): Likewise.
20622 (grub_netbsd_boot): Likewise.
20623 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
20624 (grub_xnu_boot): Likewise.
20625
9f915872
VS
206262010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20627
20628 * configure.ac: Clean LIBS variable after tests.
20629
efa1bee7
CW
206302010-09-02 Colin Watson <cjwatson@ubuntu.com>
20631
20632 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
20633
61d720e5
VS
206342010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20635
20636 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
20637 echo if libdevmapper will be used.
20638
ef8e0ec8
IT
206392010-09-02 Ian Turner <Ian.Turner@deshaw.com>
20640
20641 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
20642 constant for the same file.
20643
03e261d8
VS
206442010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20645
20646 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
20647
c2a4eba6
CW
206482010-09-02 Colin Watson <cjwatson@ubuntu.com>
20649
20650 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
20651 grub-core/*.pp.
20652
9056cbf3
CW
206532010-09-02 Colin Watson <cjwatson@ubuntu.com>
20654
20655 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
20656 required by the boot protocol.
20657
20658 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
20659 ebp and edi members.
20660 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
20661 state.ebp and state.edi.
20662 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
20663 %ebp and %edi according to grub_relocator32_ebp and
20664 grub_relocator32_edi respectively.
20665 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
20666 and state.edi.
20667
529cc99a
VS
206682010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20669
20670 Add i386-pc-pxe image target.
20671
20672 * util/grub-mkimage.c (image_target_desc): New enum value
20673 IMAGE_I386_PC_PXE.
20674 (image_targets): New target i386-pc-pxe.
20675 (generate_image): Handle i386-pc-pxe image.
20676
9a093920
VS
206772010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
20678
20679 Fix grub_pxe_scan.
20680
20681 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
20682 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
20683 All users updated.
20684 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
20685 (grub_pxe_pxenv): Correct type.
20686
f9cefc4e
CW
206872010-09-01 Colin Watson <cjwatson@ubuntu.com>
20688
20689 * NEWS: Document most of the important changes since 1.98.
20690
4066f57f
CW
206912010-09-01 Colin Watson <cjwatson@ubuntu.com>
20692
20693 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
20694 generated manual page) a little.
20695
da2891f9
CW
206962010-09-01 Colin Watson <cjwatson@ubuntu.com>
20697
20698 * docs/grub.texi: Add myself as an author.
20699
ad717fae
VS
207002010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
20701
20702 * Makefile.util.def (libgrub.a): Add missing sunpc.
20703 Reported by: Seth Goldberg.
20704
eefe8abd
VS
207052010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20706
20707 Interrupt wrapping and code simplifications.
20708
9494ef9a
VS
20709 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
20710 x86_noieee1275 which are functionaly equivalent in this case.
20711 (grub-install): Make source on each platform explicit. Enable on
20712 all noemu.
20713 * gentpl.py (x86_efi_pc): Removed group.
20714 (x86_noefi): Likewise.
20715 (i386_noefi): Likewise.
20716 (x86_noieee1275): Likewise.
20717 (i386_noieee1275): Likewise.
20718 (i386_noefi_noieee1275): Likewise.
20719 (i386_pc_qemu_coreboot): Likewise.
20720 (i386_coreboot_multiboot): Likewise.
20721 (i386_pc_coreboot_multiboot_qemu): Likewise.
20722 (x86_noefi_mips): Likewise.
20723 (noieee1275): Likewise.
20724 (ieee1275_mips): Likewise.
20725 (noemu_noieee1275): Likewise.
20726 (cmos): New group.
20727 (usb): Likewise.
20728 (videoinkernel): Likewise.
20729 (videomodules): Likewise.
eefe8abd 20730 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
20731 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
20732 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
20733 include/grub/loader.h, include/grub/msdos_partition.h,
20734 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
20735 include/grub/machine/console.h, include/grub/machine/vga.h,
20736 include/grub/machine/vbe.h, include/grub/machine/init.h,
20737 include/grub/machine/kernel.h, include/grub/cpu/time.h,
20738 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 20739 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
20740 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
20741 * grub-core/Makefile.core.def (kernel): Explicit the source for
20742 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
20743 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
20744 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
20745 Use videoinkernel tag.
20746 (usb): Enable on all usb.
20747 (usbserial_common): Likewise.
20748 (usbserial_pl2303): Likewise.
20749 (usbserial_ftdi): Likewise.
20750 (uhci): Enable on all x86.
20751 (ohci): Enable on all pci.
20752 (cmostest): Enable on all CMOS.
20753 (acpi): Include commands/acpi.c on all platforms.
20754 (halt): Add relevant lib/*/halt.c.
20755 (hdparm): Enable on all pci.
20756 (lspci): Likewise.
20757 (usbtest): Enable on all usb.
20758 (ata): Enable on all pci.
20759 (ata_pthru): Likewise.
20760 (usbms): Enable on all usb.
20761 (usb_keyboard): Likewise.
20762 (font): Use tag videomodules.
20763 (bufio): Likewise.
20764 (datetime): Use tag cmos. Enable on all noemu.
20765 (mmap): Use tags common and x86.
20766 (gfxterm): Use tag videomodules.
20767 (bitmap): Likewise.
20768 (bitmap_scale): Likewise.
20769 (video_fb): Likewise.
20770 (video): Likewise.
20771 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
20772 adjust padding accordingly. All users updated.
20773 (grub_ohci_transaction): Fix bad format specification.
20774 (GRUB_MOD_INIT): Add asserts for struct size.
20775 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
20776 (grub_alloc_td): Likewise.
20777 (grub_free_queue): Likewise.
20778 (grub_uhci_transfer): Likewise.
20779 (grub_uhci_transaction): Fix bad format specification.
20780 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20781 (grub_usb_bulk_readwrite): Likewise.
20782 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
20783 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
20784 Made static.
20785 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
20786 Made static.
20787 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
20788 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
20789 Transformed into C.
20790 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
20791 Moved from here ...
20792 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
20793 ... here. Transformed into C. Made static.
20794 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
20795 Moved from here ...
20796 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
20797 ... here. Transformed into C. Made static.
20798 * grub-core/kern/i386/pc/startup.S
20799 (grub_biosdisk_check_int13_extensions): Moved from here ...
20800 * grub-core/disk/i386/pc/biosdisk.c
20801 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
20802 Made static.
20803 * grub-core/kern/i386/pc/startup.S
20804 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
20805 * grub-core/disk/i386/pc/biosdisk.c
20806 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
20807 Transformed into C. Made static.
20808 * grub-core/kern/i386/pc/startup.S
20809 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
20810 * grub-core/disk/i386/pc/biosdisk.c
20811 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
20812 Transformed into C. Made static.
20813 * grub-core/kern/i386/pc/startup.S
20814 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
20815 * grub-core/disk/i386/pc/biosdisk.c
20816 (grub_biosdisk_get_diskinfo_standard): ... here.
20817 Transformed into C. Made static.
20818 * grub-core/kern/i386/pc/startup.S
20819 (grub_biosdisk_get_num_floppies): Moved from here ...
20820 * grub-core/disk/i386/pc/biosdisk.c
20821 (grub_biosdisk_get_num_floppies): ... here.
20822 Transformed into C. Made static.
20823 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
20824 New function.
20825 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
20826 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
20827 Transformed into C. Made static.
20828 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
20829 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
20830 Transformed into C. Made static.
20831 * grub-core/kern/i386/ieee1275/init.c: Removed.
20832 * grub-core/kern/i386/misc.S: Likewise.
20833 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
20834 Splitted from here ...
20835 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
20836 Transformed into C. Made static. All users updated.
20837 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
20838 Transformed into C. Made static. All users updated.
20839 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
20840 Moved from here...
20841 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
20842 Transformed into C. Made static. All users updated.
20843 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
20844 Moved from here...
20845 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
20846 Transformed into C. Made static. All users updated.
20847 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
20848 Removed (replaced by C version).
20849 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
20850 Moved from here...
20851 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
20852 Transformed into C. Made static.
20853 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
20854 Moved from here...
20855 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
20856 ... here. Transformed into C.
20857 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
20858 Moved from here...
20859 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
20860 ... here. Transformed into C.
20861 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
20862 Moved from here...
20863 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
20864 ... here. Transformed into C. Made static.
20865 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
20866 Moved from here...
20867 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
20868 ... here. Transformed into C.
21ed554b
VS
20869 * grub-core/kern/i386/pc/startup.S
20870 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
20871 * grub-core/video/i386/pc/vbe.c
20872 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
20873 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
20874 Moved from here...
20875 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
20876 ... here. Transformed into C.
20877 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
20878 Moved from here...
20879 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
20880 ... here. Transformed into C.
20881 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
20882 Moved from here...
20883 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
20884 ... here. Transformed into C.
20885 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
20886 Moved from here...
20887 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
20888 ... here. Transformed into C.
20889 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
20890 Moved from here...
20891 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
20892 ... here. Transformed into C. Made static.
20893 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
20894 Moved from here...
20895 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
20896 ... here. Transformed into C. Made static.
20897 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
20898 Moved from here...
20899 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
20900 ... here. Transformed into C. Made static.
20901 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
20902 pxe_rm_entry as third argument.
20903 (grub_bios_interrupt): New function.
20904 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
20905 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
20906 of calling grub_stop.
20907 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
20908 * grub-core/lib/efi/halt.c (grub_halt): ...here.
20909 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
20910 * grub-core/lib/emu/halt.c (grub_halt): ... here.
20911 * grub-core/lib/i386/halt.c: Moved from here ...
20912 * grub-core/lib/i386/halt.c: ... here.
20913 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
20914 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
20915 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
20916 grub_stop_floppy.
20917 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
20918 * include/grub/i386/coreboot/init.h: Removed.
20919 * include/grub/i386/multiboot/init.h: Likewise.
20920 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
20921 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
20922 * include/grub/i386/pc/int.h: New file.
20923 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
20924 (grub_pxe_scan): Removed.
20925 (grub_pxe_call): Update prototype.
20926 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
20927 prototypes.
20928 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
20929 * include/grub/i386/qemu/init.h: Removed.
20930 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
20931 noreturn.
20932 (grub_halt): Likewise.
20933 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
20934 (grub_reboot): Likewise.
20935 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
20936 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
20937 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
20938
215dd471
RM
209392010-08-30 Robert Millan <rmh@gnu.org>
20940
20941 * NEWS: Document addition of ZFS support in `grub-install' and
20942 `grub-mkconfig'.
20943
ebd65b82
BC
209442010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
20945
20946 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
20947 dprintf output.
20948
11721d19
VS
209492010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20950
20951 Remove leftover embedding of font objects.
20952
20953 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
20954 * util/grub-install.in (font): Removed.
20955 * util/grub-mkimage.c (generate_image): Remove font support. All users
20956 updated.
20957
37837d4e
VS
209582010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20959
20960 Remove leftover embedding of font objects.
20961
20962 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
20963 * util/grub-install.in (font): Removed.
20964 * util/grub-mkimage.c (generate_image): Remove font support. All users
20965 updated.
20966
b4c1aae0
VS
209672010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20968
20969 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 20970 Reported by: Ian Turner
b4c1aae0 20971
8920a08d
VS
209722010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20973
20974 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
20975 timeout to avoid indefinite boot stalling.
20976
f21db033
VS
209772010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20978
20979 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
20980 (grub_env_write_color_highlight): Likewise.
20981
9a9de209
VS
209822010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20983
20984 * grub-core/normal/term.c (print_more): Return to normal and not
20985 to standard state after printing "---MORE---".
20986
3dca01d7
VS
209872010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20988
20989 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
20990 Mask out the bit 0x80 since it has other meaning that specifiing color.
20991
0b986c40
VS
209922010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20993
20994 New relocator. Allows for more kernel support and more straightforward
20995 loader writing.
20996
20997 * Makefile.am (BOOTTARGET): New variable.
20998 (QEMU32): Likewise.
20999 (linux.init.x86_64): New target.
21000 (linux.init.i386): Likewise.
21001 (multiboot.elf): Likewise.
21002 (kfreebsd.elf): Likewise.
21003 (kfreebsd.aout): Likewise.
21004 (pc-chainloader.elf): Likewise.
21005 (pc-chainloader.bin): Likewise.
21006 (ntldr.elf): Likewise.
21007 (ntldr.bin): Likewise.
21008 (multiboot2.elf): Likewise.
21009 (kfreebsd.init.x86_64): Likewise.
21010 (kfreebsd.init.i386): Likewise.
21011 (knetbsd.init.i386): Likewise.
21012 (kopenbsd.init.i386): Likewise.
21013 (knetbsd.init.x86_64): Likewise.
21014 (kopenbsd.init.x86_64): Likewise.
21015 (linux-initramfs.i386): Likewise.
21016 (linux-initramfs.x86_64): Likewise.
21017 (kfreebsd-mfsroot.i386.img): Likewise.
21018 (knetbsd.image.i386): Likewise.
21019 (kopenbsd.image.i386): Likewise.
21020 (kopenbsd.image.x86_64): Likewise.
21021 (knetbsd.miniroot-image.i386.img): Likewise.
21022 (kfreebsd-mfsroot.x86_64.img): Likewise.
21023 (knetbsd.image.x86_64): Likewise.
21024 (knetbsd.miniroot-image.x86_64.img): Likewise.
21025 (kfreebsd-mfsroot.i386.gz): Likewise.
21026 (bootcheck-kfreebsd-i386): Likewise.
21027 (kfreebsd-mfsroot.x86_64.gz): Likewise.
21028 (bootcheck-kfreebsd-x86_64): Likewise.
21029 (knetbsd.miniroot-image.i386.gz): Likewise.
21030 (bootcheck-knetbsd-i386): Likewise.
21031 (bootcheck-kopenbsd-i386): Likewise.
21032 (bootcheck-kopenbsd-x86_64): Likewise.
21033 (knetbsd.miniroot-image.x86_64.gz): Likewise.
21034 (bootcheck-knetbsd-x86_64): Likewise.
21035 (bootcheck-linux-i386): Likewise.
21036 (bootcheck-linux-x86_64): Likewise.
21037 (bootcheck-linux16-i386): Likewise.
21038 (bootcheck-linux16-x86_64): Likewise.
21039 (bootcheck-multiboot): Likewise.
21040 (bootcheck-multiboot2): Likewise.
21041 (bootcheck-kfreebsd-aout): Likewise.
21042 (bootcheck-pc-chainloader): Likewise.
21043 (bootcheck-ntldr): Likewise.
21044 (CLEANFILES): Add new targets.
21045 (BOOTCHECKS): New variable.
21046 (.PHONY): Add bootchecks.
21047 (SUCCESSFUL_BOOT_STRING): New variable.
21048 (BOOTCHECK_TIMEOUT): Likewise.
21049 (bootcheck): New target
21050 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
21051 * configure.ac: Correct efiemu excuse.
21052 * docs/grub.texi (Supported kernels): New chapter.
21053 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
21054 include/grub/mm_private.h. Simplify inclusion of
21055 include/grub/boot.h, include/grub/loader.h
21056 and include/grub/msdos_partition.h
21057 (KERNEL_HEADER_FILES) [i386_coreboot]:
21058 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
21059 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
21060 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
21061 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
21062 include/grub/machine/loader.h.
21063 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
21064 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
21065 extra_dist.
21066 (pci.mod): Enable on i386-multiboot.
21067 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
21068 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
21069 i386-qemu.
21070 (relocator.mod): Rewritten.
21071 (aout.mod): Enable on all x86.
21072 (bsd.mod): Likewise.
21073 (ntldr.mod): New module.
21074 (linux.mod): Use loader/i386/linux.c on all x86.
21075 (xnu.mod): Enable on all x86.
21076 (vga_text.mod): disable on EFI and QEMU.
21077 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
21078 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
21079 * grub-core/efiemu/loadcore.c: Likewise.
21080 * grub-core/efiemu/main.c: Likewise.
21081 (grub_efiemu_exit_boot_services): Removed.
21082 (grub_efiemu_finish_boot_services): Likewise.
21083 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
21084 function.
21085 * grub-core/efiemu/i386/nocfgtables.c: New file.
21086 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
21087 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
21088 (grub_efi_finish_boot_services): Moved from here ...
21089 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
21090 Fille finish memory map and related data.
21091 (finish_mmap_buf): New variable.
21092 (grub_efi_uintn_t finish_mmap_size): Likewise.
21093 (grub_efi_uintn_t finish_key): Likewise.
21094 (grub_efi_uintn_t finish_desc_size): Likewise.
21095 (grub_efi_uint32_t finish_desc_version): Likewise.
21096 (grub_efi_is_finished): Likewise.
21097 (grub_efi_get_memory_map): Use saved memory map if EFI is already
21098 finished.
21099 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
21100 (grub_elf64_phdr_iterate): Likewise.
21101 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
21102 (grub_os_area_size): Likewise.
21103 (grub_machine_init): Don't reserve os area.
21104 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
21105 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
21106 * grub-core/kern/i386/loader.S: Removed.
21107 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
21108 (grub_os_area_size): Likewise.
21109 (grub_machine_init): Don't reserve os area.
21110 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
21111 Don't call grub_dl_unload_all.
21112 Don't include loader.S.
21113 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
21114 Declare the memory after _end as available.
21115 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 21116 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 21117 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
21118 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
21119 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
21120 * include/grub/mm_private.h (grub_mm_header): ... here.
21121 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
21122 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
21123 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
21124 (grub_mm_region): ..here. Removed addr. Added pre_size.
21125 All users updated.
21126 * grub-core/kern/mm.c (base): Renamed to ...
21127 (grub_mm_base): ... this. Made global.
21128 (grub_real_malloc): Alloc from end of region.
21129 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
21130 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
21131 * grub-core/kern/powerpc/cache_flush.S: ... here.
21132 * grub-core/lib/efi/relocator.c: New file.
21133 * grub-core/lib/i386/relocator.c: Rewritten.
21134 * grub-core/lib/i386/relocator16.S: New file.
21135 * grub-core/lib/i386/relocator32.S: Likewise.
21136 * grub-core/lib/i386/relocator64.S: Likewise.
21137 * grub-core/lib/i386/relocator_asm.S: Rewritten.
21138 * grub-core/lib/i386/relocator_common.S: New file.
21139 * grub-core/lib/ieee1275/relocator.c: Likewise.
21140 * grub-core/lib/mips/relocator.c: Rewritten.
21141 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
21142 stylistic adjustments.
21143 * grub-core/lib/powerpc/relocator.c: New file.
21144 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
21145 * grub-core/lib/relocator.c: Rewritten.
21146 * grub-core/lib/x86_64/relocator_asm.S: New file.
21147 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
21148 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
21149 (bsd_tag): New struct.
21150 (tags): New variable.
21151 (tags_last): Likewise.
21152 (netbsd_module): New struct.
21153 (netbsd_mods): New variable.
21154 (netbsd_mods_last): Likewise.
21155 (openbsd_opts): New parameter "serial".
21156 (OPENBSD_SERIAL_ARG): New definition.
21157 (netbsd_opts): New parameter "serial".
21158 (NETBSD_SERIAL_ARG): New definition.
21159 (grub_freebsd_add_meta): Reorganised into ...
21160 (grub_bsd_add_meta): ...this. All users updated.
21161 (grub_freebsd_add_mmap): Reorganised into ...
21162 (generate_e820_mmap): ...this...
21163 (grub_bsd_add_mmap): ...and this. All users updated.
21164 (grub_freebsd_list_modules): Use tags.
21165 (grub_netbsd_add_meta_module): New function.
21166 (grub_netbsd_list_modules): Likewise.
21167 (grub_freebsd_boot): Use relocator and finish EFI.
21168 (grub_openbsd_boot): Likewise.
21169 (grub_netbsd_setup_video): New function.
21170 (grub_netbsd_add_modules): Likewise.
21171 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
21172 and finish EFI.
21173 (grub_bsd_unload): Unload tags.
21174 (grub_bsd_load_aout): Use relocator.
21175 (grub_bsd_elf32_size_hook): New function.
21176 (grub_bsd_elf32_hook): Use relocator.
21177 (grub_bsd_elf64_size_hook): New function.
21178 (grub_bsd_elf64_hook): Use relocator.
21179 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
21180 (grub_bsd_load): Zero-out openbsd_ramdisk.
21181 (grub_bsd_load): Use relocator.
21182 (grub_cmd_openbsd): Support serial.
21183 (grub_cmd_netbsd): Support modules.
21184 (grub_cmd_freebsd_module): Use relocator.
21185 (grub_netbsd_module_load): New function.
21186 (grub_cmd_netbsd_module): Likewise.
21187 (grub_cmd_openbsd_ramdisk): Likewise.
21188 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
21189 kopenbsd_ramdisk.
21190 (GRUB_MOD_FINI): Unregister new commands.
21191 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
21192 (grub_freebsd_load_elfmodule_obj): Use relocator.
21193 (grub_freebsd_load_elfmodule): Likewise.
21194 (grub_freebsd_load_elf_meta): Likewise.
21195 (grub_netbsd_load_elf_meta): New function.
21196 (grub_openbsd_find_ramdisk): Likewise.
21197 * grub-core/loader/i386/bsd_helper.S: Removed.
21198 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
21199 * grub-core/loader/i386/bsd_trampoline.S: Removed.
21200 * grub-core/loader/i386/efi/linux.c: Likewise.
21201 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
21202 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
21203 (DEFAULT_VIDEO_MODE): Likewise.
21204 (real_mode_target): New variable.
21205 (prot_mode_target): Likewise.
21206 (initrd_mem_target): Likewise.
21207 (relocator): Likewise.
21208 (efi_mmap_buf): Likewise.
21209 (efi_mmap_size): Likewise.
21210 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
21211 (free_pages): Use relocator.
21212 (allocate_pages): Account for efi_mmap and use relocator. Return error.
21213 (grub_linux_setup_video): Return error.
21214 (grub_linux_trampoline_start): Removed.
21215 (grub_linux_trampoline_end): Likewise.
21216 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
21217 andd video parameters depending on firmware.
21218 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
21219 [GRUB_MACHINE_EFI]: Pass EFI parameters.
21220 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
21221 (grub_cmd_initrd): Use relocator.
21222 * grub-core/loader/i386/linux_trampoline.S: Removed.
21223 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
21224 (elf_sec_entsize): Likewise.
21225 (elf_sec_shstrndx): Likewise.
21226 (elf_sections): Likewise.
21227 (grub_multiboot_load): Use relocator.
21228 (grub_multiboot_get_mbi_size): Account for sections.
21229 (grub_multiboot_make_mbi): Use relocator and support sections.
21230 (grub_multiboot_add_elfsyms): New function.
21231 (grub_multiboot_free_mbi): Free sections.
21232 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
21233 (grub_linux_real_target): Likewise.
21234 (grub_linux_real_chunk): Likewise.
21235 (grub_linux16_prot_size): Likewise.
21236 (grub_linux16_boot): Use relocator.
21237 (grub_linux_unload): Unload relocator.
21238 (grub_cmd_linux): Use relocator.
21239 (grub_cmd_initrd): Likewise.
21240 * grub-core/loader/i386/pc/ntldr.c: New file.
21241 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
21242 Don't try to guess CPU frequency.
21243 (grub_xnu_set_video): Stretch bitmap.
21244 (grub_xnu_boot): Use relocator.
21245 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
21246 (grub_linux_unload): Free relocator.
21247 (grub_linux_load32): Use relocator.
21248 (grub_linux_load64): Likewise.
21249 (grub_cmd_initrd): Likewise.
21250 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
21251 (grub_multiboot_unload): Unload relocator.
21252 (grub_cmd_multiboot): Use relocator.
21253 (grub_cmd_module): Likewise.
21254 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
21255 Use relocator and support sections.
21256 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
21257 (elf_sec_entsize): Likewise.
21258 (elf_sec_shstrndx): Likewise.
21259 (elf_sections): Likewise.
21260 (grub_multiboot_load): Use relocator.
21261 (grub_multiboot_get_mbi_size): Account for sections.
21262 (grub_multiboot_make_mbi): Use relocator and support sections.
21263 (grub_multiboot_add_elfsyms): New function.
21264 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
21265 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
21266 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
21267 Prototype changed. All users updated.
21268 (grub_xnu_align_heap): Simplified.
21269 (grub_xnu_writetree_toheap): Likewise.
21270 (grub_xnu_unload): Unload relocator.
21271 (grub_cmd_xnu_kernel): Use relocator.
21272 (grub_cmd_xnu_kernel64): Likewise.
21273 (grub_xnu_register_memory): Simplified.
21274 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
21275 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
21276 EFI is finished.
21277 (grub_console_checkkey): Likewise.
21278 (grub_console_getkey): Likewise.
21279 (grub_console_getwh): Likewise.
21280 (grub_console_getxy): Likewise.
21281 (grub_console_gotoxy): Likewise.
21282 (grub_console_cls): Likewise.
21283 (grub_console_setcolorstate): Likewise.
21284 (grub_console_setcursor): Likewise.
21285 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
21286 * grub-core/tests/boot/kbsd.init-i386.S: New file.
21287 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
21288 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
21289 * grub-core/tests/boot/kernel-8086.S: Likewise.
21290 * grub-core/tests/boot/kernel-i386.S: Likewise.
21291 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
21292 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
21293 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
21294 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
21295 * grub-core/tests/boot/knetbsd.cfg: Likewise.
21296 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
21297 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
21298 * grub-core/tests/boot/linux.cfg: Likewise.
21299 * grub-core/tests/boot/linux.init-i386.S: Likewise.
21300 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
21301 * grub-core/tests/boot/linux16.cfg: Likewise.
21302 * grub-core/tests/boot/multiboot.cfg: Likewise.
21303 * grub-core/tests/boot/multiboot2.cfg: Likewise.
21304 * grub-core/tests/boot/ntldr.cfg: Likewise.
21305 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
21306 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
21307 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
21308 New definition.
21309 * include/grub/dl.h (grub_dl_unload_all): Removed.
21310 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
21311 (grub_efi_finish_boot_services): Change prototype.
21312 (grub_efi_is_finished): New variable.
21313 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
21314 Changed prototype.
21315 (grub_efiemu_finish_boot_services): Removed.
21316 (grub_machine_efiemu_init_tables): New prototype.
21317 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
21318 (grub_elf64_phdr_iterate): Likewise.
21319 * include/grub/i386/bsd.h: Include relocator.h.
21320 (freebsd_tag_header): New struct.
21321 (grub_openbsd_bios_mmap): Removed.
21322 (grub_unix_real_boot): Removed.
21323 (grub_freebsd_load_elfmodule32): Changed prototype.
21324 (grub_freebsd_load_elfmodule_obj64): Likewise.
21325 (grub_freebsd_load_elf_meta32): Likewise.
21326 (grub_freebsd_load_elf_meta64): Likewise.
21327 (grub_freebsd_add_meta): Removed.
21328 (grub_netbsd_load_elf_meta32): New prototype.
21329 (grub_netbsd_load_elf_meta64): Likewise.
21330 (grub_bsd_add_meta): Likewise.
21331 (grub_openbsd_ramdisk_descriptor): New struct.
21332 (grub_openbsd_find_ramdisk32): New prototype.
21333 (grub_openbsd_find_ramdisk64): Likewise.
21334 * include/grub/i386/coreboot/loader.h: Removed.
21335 * include/grub/i386/efi/loader.h: Likewise.
21336 * include/grub/i386/ieee1275/loader.h: Likewise.
21337 * include/grub/i386/linux.h (linux_kernel_header): Change void *
21338 to grub_uint32_t.
21339 * include/grub/i386/loader.h: Removed.
21340 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
21341 value.
21342 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
21343 (grub_phys_addr_t): New type.
21344 (grub_vtop): New inline function.
21345 (grub_map_memory): Likewise.
21346 (grub_unmap_memory): Likewise.
21347 * include/grub/i386/multiboot/loader.h: Removed.
21348 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
21349 (NETBSD_BTINFO_CONSOLE): New definition.
21350 (NETBSD_BTINFO_SYMTAB): Likewise.
21351 (NETBSD_BTINFO_MODULES): Likewise.
21352 (NETBSD_BTINFO_FRAMEBUF): Likewise.
21353 (grub_netbsd_bootinfo): New struct.
21354 (grub_netbsd_btinfo_common): Use explicit bitsize.
21355 (grub_netbsd_btinfo_mmap_entry): Removed.
21356 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
21357 (grub_netbsd_btinfo_bootdisk): New struct.
21358 (grub_netbsd_btinfo_symtab): Likewise.
21359 (grub_netbsd_btinfo_serial): Likewise.
21360 (grub_netbsd_btinfo_modules): Likewise.
21361 (grub_netbsd_btinfo_framebuf): Likewise.
21362 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
21363 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
21364 Likewise.
21365 (grub_openbsd_bootargs): Use explicit bitsize.
21366 (grub_openbsd_bootarg_console): New struct.
21367 (GRUB_OPENBSD_COM_MAJOR): New definition.
21368 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
21369 * include/grub/i386/pc/efiemu.h: Removed.
21370 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
21371 * include/grub/i386/qemu/loader.h: Removed.
21372 * include/grub/i386/relocator.h: Rewritten.
21373 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
21374 * include/grub/mips/memory.h: New file.
21375 * include/grub/mips/multiboot.h: Rewritten.
21376 * include/grub/mips/relocator.h: Rewritten.
21377 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
21378 (grub_vtop): New function.
21379 (grub_map_memory): Likewise.
21380 (grub_unmap_memory): Likewise.
21381 * include/grub/misc.h (ALIGN_DOWN): New definition.
21382 * include/grub/mm.h (grub_mm_check_real): New proto.
21383 (GRUB_MM_CHECK): New definition.
21384 * include/grub/mm_private.h: New file.
21385 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
21386 (grub_multiboot_get_mbi_size): Removed.
21387 (grub_multiboot_make_mbi): Change prottype.
21388 (grub_multiboot_set_accepts_video): New proto.
21389 (grub_multiboot_add_elfsyms): Likewise.
21390 (grub_multiboot_payload_eip): New variable.
21391 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
21392 New prototype.
21393 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
21394 New definition.
21395 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
21396 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
21397 * include/grub/powerpc/ieee1275/loader.h: Removed.
21398 * include/grub/powerpc/memory.h: New file.
21399 * include/grub/powerpc/relocator.h: Likewise.
21400 * include/grub/relocator.h: Likewise.
21401 * include/grub/relocator_private.h: Likewise.
21402 * include/grub/sparc64/ieee1275/loader.h: Removed.
21403 * include/grub/x86_64/memory.h: New file.
21404 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
21405 (grub_xnu_heap_malloc): Likewise.
21406 (grub_xnu_heap_real_start): Removed.
21407 (grub_xnu_heap_start): Likewise.
21408 (grub_xnu_relocator): New variable.
21409 (grub_xnu_heap_target_start): Likewise.
21410 * tests/util/grub-shell.in: Support non-pc.
21411 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 21412
5303b85d
VS
214132010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21414
21415 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
21416 on malloc error.
21417 (grub_bidi_logical_to_visual): Check that malloc succeded.
21418 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
21419 puts.
21420 (grub_xputs_normal): Likewise.
21421
d768d159
VS
214222010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21423
21424 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
21425 extra_dist.
21426
214272010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21428
21429 * grub-core/efiemu/runtime/efiemu.sh: Removed.
21430
5bf84df4
VS
214312010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21432
21433 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
21434
3626810e
VS
214352010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21436
21437 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
21438 dprintf.
21439
a7363f53
BC
214402010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
21441
21442 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
21443
902f75f6
VS
214442010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21445
21446 * grub-core/normal/term.c (print_more): Fix a memory leak.
21447 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
21448 (grub_xputs_normal): Likewise.
21449
3c707967
VS
214502010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21451
21452 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
21453 the begining of the string
21454
2053cc07
VS
214552010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21456
21457 * grub-core/script/script.c (grub_script_parse): Free parsed on
21458 failure.
21459
46422ebf
VS
214602010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21461
21462 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
21463 on failure.
21464
9e0fa3f6
VS
214652010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21466
21467 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
21468 return.
21469
3393cf16
VS
214702010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21471
21472 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
21473 (scroll_up): Fix a memory leak.
21474
b17540cb
VS
214752010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21476
21477 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
21478 errors.
21479
67140446
VS
214802010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
21481
21482 Handle USB pendrives exposed as floppies.
21483
21484 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
21485 floppy.
21486 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
21487 Check for partitions on all devices.
21488
e35e46fc
VS
214892010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21490
21491 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
21492 (readkey): Likewise.
21493
d24c6190
BC
214942010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
21495
21496 Multiple variable names support to "export" command.
21497
21498 * normal/context.c (grub_cmd_export): "export" command supports
21499 multiple variable names.
21500
04ddcc6a
ST
215012010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
21502
21503 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
21504 --target=drive output to Mach device name.
21505
0c8b61d8
BC
215062010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
21507
21508 New Automake based build system for GRUB.
21509
21510 * ABOUT-NLS: New file.
21511 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
21512 in Makefile.util.def file.
21513 * Makefile.util.def: New file. Autogen build definitions file for
21514 GRUB host utils.
21515 * conf/Makefile.common: New file. Common variables for GRUB host
21516 utils and target modules.
21517 * conf/Makefile.extra-dist: New file. Extra files for make dist.
21518 * docs/Makefile.am: New file. Automake file for docs.
21519 * gentpl.py: New file. Python script to generate Autogen
21520 template.
21521 * grub-core/Makefile.am: New file. GRUB target modules' rules
21522 that doesn't fit in Makefile.core.def file.
21523 * grub-core/Makefile.core.def: New file. Autogen build
21524 definitions file for GRUB target modules.
21525 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
21526 specific setjmp.S file.
21527 * po/Makefile.am: New file.
21528
21529 * .bzrignore: New ignores.
21530 * INSTALL: New requirements, without Ruby.
21531 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
21532 * autogen.sh: Updated to invoke autogen as necessary.
21533 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
21534 and defines for Automake conditionals.
21535 * geninit.sh: Refactoring.
21536
21537 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
21538 necessary.
21539 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
21540 New prototype.
21541
21542 * include/grub/test.h: Fix functional test modules' naming.
21543 * grub-core/tests/example_functional_test.c: Fix test module name.
21544
21545 * util/misc.c: Hosted versions' of grub functions for libgrub.a
21546 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
21547 * util/grub-editenv.c: Likewise.
21548 * util/grub-fstest.c: Likewise.
21549 * util/grub-mkdevicemap.c: Likewise.
21550 * util/grub-mkfont.c: Likewise.
21551 * util/grub-mkimage.c: Likewise.
21552 * util/grub-mkpasswd-pbkdf2.c: Likewise.
21553 * util/grub-probe.c: Likewise.
21554 * util/grub-script-check.c: Likewise.
21555 * util/i386/pc/grub-setup.c: Likewise.
21556 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21557
21558 * tests/util/grub-shell.in: Fix override directory path.
21559 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
21560 * util/import_gcry.py: Create Makefile.gcry.def file instead.
21561
21562 * util/lvm.c: Update #includes.
21563 * util/raid.c: Likewise.
21564 * util/resolve.c: Likewise.
21565 * grub-core/bus/emu/pci.c: Likewise.
21566 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
21567 * grub-core/lib/posix_wrap/string.h: Likewise.
21568 * grub-core/kern/emu/main.c: Likewise.
21569
21570 * grub-core/gensymlist.sh: New file. Script for generating kernel
21571 symbols file.
21572 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
21573
21574 * grub-core/gentrigtables.c: Fix unused variable warnings.
21575
21576 * Makefile.in: Removed.
21577 * conf/any-emu.rmk: Removed.
21578 * conf/common.rmk: Removed.
21579 * conf/i386-coreboot.rmk: Removed.
21580 * conf/i386-efi.rmk: Removed.
21581 * conf/i386-ieee1275.rmk: Removed.
21582 * conf/i386-multiboot.rmk: Removed.
21583 * conf/i386-pc.rmk: Removed.
21584 * conf/i386-qemu.rmk: Removed.
21585 * conf/i386.rmk: Removed.
21586 * conf/mips-yeeloong.rmk: Removed.
21587 * conf/mips.rmk: Removed.
21588 * conf/powerpc-ieee1275.rmk: Removed.
21589 * conf/sparc64-ieee1275.rmk: Removed.
21590 * conf/tests.rmk: Removed.
21591 * conf/x86-efi.rmk: Removed.
21592 * conf/x86_64-efi.rmk: Removed.
21593 * gendistlist.sh: Removed.
21594 * geninitheader.sh: Removed.
21595 * genkernsyms.sh.in: Removed.
21596 * genmk.rb: Removed.
21597 * gensymlist.sh.in: Removed.
21598 * mkinstalldirs: Removed.
21599 * boot: Moved ...
21600 * grub-core/boot: ... to here.
21601 * bus: Moved ...
21602 * grub-core/bus: ... to here.
21603 * commands: Moved ...
21604 * grub-core/commands: ... to here.
21605 * disk: Moved ...
21606 * grub-core/disk: ... to here.
21607 * efiemu: Moved ...
21608 * grub-core/efiemu: ... to here.
21609 * font: Moved ...
21610 * grub-core/font: ... to here.
21611 * fs: Moved ...
21612 * grub-core/fs: ... to here.
21613 * gencmdlist.sh: Moved ...
21614 * grub-core/gencmdlist.sh: ... to here.
21615 * genemuinit.sh: Moved ...
21616 * grub-core/genemuinit.sh: ... to here.
21617 * genemuinitheader.sh: Moved ...
21618 * grub-core/genemuinitheader.sh: ... to here.
21619 * genfslist.sh: Moved ...
21620 * grub-core/genfslist.sh: ... to here.
21621 * genhandlerlist.sh: Moved ...
21622 * grub-core/genhandlerlist.sh: ... to here.
21623 * genmoddep.awk: Moved ...
21624 * grub-core/genmoddep.awk: ... to here.
21625 * genmodsrc.sh: Moved ...
21626 * grub-core/genmodsrc.sh: ... to here.
21627 * genpartmaplist.sh: Moved ...
21628 * grub-core/genpartmaplist.sh: ... to here.
21629 * genparttoollist.sh: Moved ...
21630 * grub-core/genparttoollist.sh: ... to here.
21631 * genterminallist.sh: Moved ...
21632 * grub-core/genterminallist.sh: ... to here.
21633 * gentrigtables.c: Moved ...
21634 * grub-core/gentrigtables.c: ... to here.
21635 * genvideolist.sh: Moved ...
21636 * grub-core/genvideolist.sh: ... to here.
21637 * gettext: Moved ...
21638 * grub-core/gettext: ... to here.
21639 * gfxmenu: Moved ...
21640 * grub-core/gfxmenu: ... to here.
21641 * gnulib: Moved ...
21642 * grub-core/gnulib: ... to here.
21643 * hello: Moved ...
21644 * grub-core/hello: ... to here.
21645 * hook: Moved ...
21646 * grub-core/hook: ... to here.
21647 * io: Moved ...
21648 * grub-core/io: ... to here.
21649 * kern: Moved ...
21650 * grub-core/kern: ... to here.
21651 * lib: Moved ...
21652 * grub-core/lib: ... to here.
21653 * loader: Moved ...
21654 * grub-core/loader: ... to here.
21655 * mmap: Moved ...
21656 * grub-core/mmap: ... to here.
21657 * normal: Moved ...
21658 * grub-core/normal: ... to here.
21659 * partmap: Moved ...
21660 * grub-core/partmap: ... to here.
21661 * parttool: Moved ...
21662 * grub-core/parttool: ... to here.
21663 * script: Moved ...
21664 * grub-core/script: ... to here.
21665 * term: Moved ...
21666 * grub-core/term: ... to here
21667 * tests/example_functional_test.c: Moved ...
21668 * grub-core/tests/example_functional_test.c: ... to here.
21669 * tests/lib/functional_test.c: Moved ...
21670 * grub-core/tests/lib/functional_test.c: ... to here.
21671 * tests/lib/test.c: Moved ...
21672 * grub-core/tests/lib/test.c: ... to here.
21673 * video: Moved ...
21674 * grub-core/video: ... to here.
21675
645586e6
BC
216762010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
21677
21678 Replace --enable-grub-emu-modules with grub-emu-lite.
21679
21680 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
21681 cache.S.
21682
21683 * include/grub/emu/misc.h (grub_emu_init): New prototype.
21684 * kern/emu/full.c: New file. For grub-emu specific initialization.
21685 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
21686 * kern/emu/main.c: Call initialization function grub_emu_init.
21687
21688 * Makefile.in: Include grub-emu-lite in install.
21689 * commands/parttool.c: Use grub_no_autoload to differentiate
21690 between grub-emu and grub-emu-lite.
21691 * include/grub/misc.h: New variable grub_no_autoload.
21692
21693 * conf/any-emu.rmk: New rules for grub-emu-lite.
21694 * configure.ac: Remove --enable-grub-emu-modules.
21695 * genmk.rb: Cleanup unnecessary rules.
21696 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
21697
21698 * normal/main.c: Don't load list files on grub-emu-lite.
21699 * util/misc.c (grub_arch_sync_caches): Removed.
21700
f86a4030
CW
217012010-08-23 Colin Watson <cjwatson@ubuntu.com>
21702
21703 * kern/mips/startup.S (grub_prefix): Update comment to refer to
21704 grub-mkimage rather than grub-mkelfimage.
21705 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
21706
06776944
VS
217072010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21708
21709 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
21710 a key after CapsLock or NumLock. It's just a qemu bug.
21711
df262419
VS
217122010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
21713
21714 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
21715 needed by libusb wrapper.
21716
b40ea81b
ST
217172010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21718
21719 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
21720
dee50575
VS
217212010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
21722
21723 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
21724 --nounzip is passed.
21725
fb1d7b79
VS
217262010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
21727
21728 USB hotunplugging and USB serial support.
21729
21730 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
21731 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
21732 (grub_uhci_transfer): Respect timeout and set *actual.
21733 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
21734 non-standard length.
21735 (grub_usb_device_attach): Autoload modules.
21736 (GRUB_MOD_INIT): Set grub_term_poll_usb.
21737 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
21738 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
21739 users updated.
21740 (grub_usb_add_hub): Fill nports and children.
21741 (attach_root_port): Receive hub instead of controller.
21742 All users updated. Fill hub->devices.
21743 (grub_usb_root_hub): Allocate hub->devices.
21744 (detach_device): New function.
21745 (poll_nonroot_hub): Fill children and detach devices.
21746 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
21747 actual arguments. All users updated.
21748 (grub_usb_bulk_read_extended): New function.
21749 * bus/usb/serial/common.c: New file.
21750 * bus/usb/serial/ftdi.c: Likewise.
21751 * bus/usb/serial/pl2303.c: Likewise.
21752 * commands/terminal.c (handle_command): Support wildcard.
21753 * commands/usbtest.c: Output "Unknown" instead of empty string.
21754 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
21755 (usbserial_common_mod_SOURCES): New variable.
21756 (usbserial_common_mod_CFLAGS): Likewise.
21757 (usbserial_common_mod_LDFLAGS): Likewise.
21758 (pkglib_MODULES): Add usbserial_pl2303.mod.
21759 (usbserial_pl2303_mod_SOURCES): New variable.
21760 (usbserial_pl2303_mod_CFLAGS): Likewise.
21761 (usbserial_pl2303_mod_LDFLAGS): Likewise.
21762 (pkglib_MODULES): Add usbserial_ftdi.mod.
21763 (usbserial_ftdi_mod_SOURCES): New variable.
21764 (usbserial_ftdi_mod_CFLAGS): Likewise.
21765 (usbserial_ftdi_mod_LDFLAGS): Likewise.
21766 (pkglib_MODULES): Add serial.mod.
21767 (serial_mod_SOURCES): New variable.
21768 (serial_mod_CFLAGS): Likewise.
21769 (serial_mod_LDFLAGS): Likewise.
21770 * conf/i386-pc.rmk: Likewise.
21771 * conf/mips-yeeloong.rmk: Likewise.
21772 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
21773 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
21774 * disk/usbms.c (first_available_slot): New variable.
21775 (grub_usbms_attach): Don't reuse free slots due to potential cache
21776 problems.
21777 * include/grub/serial.h: Moved to ..
21778 * include/grub/ns8250.h: ...this.
21779 * include/grub/serial.h: New file.
21780 * include/grub/term.h (grub_term_poll_usb): New variable.
21781 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
21782 readkey. All users updated.
21783 (grub_terminfo_output_state): Pass term to put.
21784 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
21785 (grub_usb_controller_dev): Add timeout and actual arguments to
21786 transfer. All users updated.
21787 (grub_usb_interface): New field detach_data.
21788 (grub_usb_device): New fields children and nports.
21789 (grub_usb_ep_type_t): New type.
21790 (grub_usb_get_ep_type): New function.
21791 (grub_usb_bulk_read_extended): Likewise.
21792 * include/grub/usbdesc.h (grub_usb_desc): New type.
21793 * include/grub/usbserial.h: New file.
21794 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
21795 * kern/term.c (grub_term_poll_usb): New variable.
21796 (grub_getkey): Call grub_term_poll_usb if set.
21797 (grub_checkkey): Likewise.
21798 (grub_getkeystatus): Likewise.
21799 * term/serial.c: Moved controller-specific parts to ...
21800 * term/ns8250.c: ... here.
21801 * term/serial.c: Mostly rewritten.
21802 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
21803 according to spec.
21804
21a313de
RM
218052010-08-20 Robert Millan <rmh@gnu.org>
21806
21807 Make kFreeBSD code more generic to support ext2fs as root, ufs as
21808 a separate module and maybe other interesting combinations.
21809
21810 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
21811 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
21812 (kfreebsd_entry): Add generic filesystem module load routine.
21813 Map GRUB `ext2' to kFreeBSD `ext2fs'.
21814
63c734a6
CW
218152010-08-20 Colin Watson <cjwatson@ubuntu.com>
21816
21817 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
21818 "numcenter" (I misunderstood the purpose of this entry).
21819 * docs/grub.texi (sendkey): Likewise.
21820
c4d16542
CW
218212010-08-20 Colin Watson <cjwatson@ubuntu.com>
21822
21823 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
21824 status flag options; simply omitting the option is equivalent and
21825 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
21826 (keysym_table): Rename "num5numlock" to "numlock".
21827 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
21828 can uniformly say that only the last of multiple `sendkey'
21829 invocations has any effect.
21830 * docs/grub.texi (sendkey): New section.
21831
93541d66
CW
218322010-08-19 Colin Watson <cjwatson@ubuntu.com>
21833
21834 * commands/i386/pc/sendkey.c (options): Fix three typos.
21835
b4ece5e1
VS
218362010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
21837
21838 Implement sendkey support.
21839
21840 * commands/i386/pc/sendkey.c: New file.
21841 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
21842 (sendkey_mod_SOURCES): New variable.
21843 (sendkey_mod_CFLAGS): Likewise.
21844 (sendkey_mod_LDFLAGS): Likewise.
21845
51f1f5af
CW
218462010-08-18 Colin Watson <cjwatson@ubuntu.com>
21847
21848 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
21849 fix warnings from Autoconf.
21850
9da94e05
CW
218512010-08-18 Colin Watson <cjwatson@ubuntu.com>
21852
21853 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
21854 to avoid false positives with some assemblers that output things
21855 like "someprefix_func" as part of their output.
21856
729a0f2e
RM
218572010-08-15 Robert Millan <rmh@gnu.org>
21858
21859 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
21860 errors.
21861 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
21862 grub_get_libzfs_handle() errors.
21863
f3710e08
RM
218642010-08-14 Robert Millan <rmh@gnu.org>
21865
21866 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
21867 filesystem is not ZFS.
21868
7a3c13de
BC
218692010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21870
21871 Fix for misspelled color names defaulting to black/black (bug
21872 reported by Doug Nazar)
21873
21874 * include/grub/normal.h (grub_parse_color_name_pair): Add return
21875 status to prototype.
21876 * normal/color.c (grub_parse_color_name_pair): Return failure
21877 status.
21878 (grub_env_write_color_normal): Ignore bad color names.
21879 (grub_env_write_color_highlight): Likewise.
21880 * normal/main.c (GRUB_MOD_INIT): Set default color names.
21881
ab8ba50d
BC
218822010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21883
21884 "shift" command support to GRUB script.
21885
21886 * include/grub/script_sh.h (grub_script_shift): New prototype.
21887 * script/execute.c (grub_script_shift): New function.
21888 * script/main.c (grub_script_init): Register shift command.
21889 (grub_script_fini): Unregister shift command.
21890 * util/grub-script-check.c (grub_script_cmd_shift): New function.
21891
21892 * tests/grub_script_shift.in: New testcase.
21893 * conf/tests.rmk: Rules for new testcase.
21894
4d61999e
BC
218952010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21896
21897 "continue" command support to GRUB script.
21898
21899 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
21900 (grub_script_break): Continue support.
21901 * script/main.c (grub_script_init): Register continue command.
21902 (grub_script_fini): Unregister continue command.
21903
21904 * tests/grub_script_continue.in: New testcase.
21905 * conf/tests.rmk: Rules for new testcase.
21906
4df51e00
BC
219072010-08-12 BVK Chaitanya <bvk@dbook>
21908
21909 "break" command support to GRUB script.
21910
21911 * conf/common.rmk: Rule updates to grub-script-check.
21912 * include/grub/misc.h (grub_min): New function.
21913 * include/grub/script_sh.h (grub_script_init): New prototype.
21914 (grub_script_fini): New prototype.
21915 (grub_script_break): New prototype.
21916 * script/main.c (grub_script_init): New function.
21917 (grub_script_fini): New function.
21918 * script/execute.c (grub_script_break): New function.
21919 * normal/main.c: Calls to grub_script_{init,fini}.
21920 * util/grub-script-check.c (grub_script_break): New function.
21921
21922 * tests/grub_script_break.in: New testcase.
21923 * conf/tests.rmk: Rules for new test case.
21924
f12c8420
BC
219252010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21926
21927 Function parameters support to GRUB script.
21928
21929 * script/yylex.l (VARIABLE): Regular expression update.
21930 * script/function.c (grub_script_function_call): Moved ...
21931 * script/execute.c (grub_script_function_call): ... to here.
21932 (grub_script_execute_arglist_to_argv): Removed.
21933 (grub_script_arglist_to_argv): New function.
21934 * script/argv.c: New file.
21935 (grub_script_argv_free): New function.
21936 (grub_script_argv_next): Likewise.
21937 (grub_script_argv_append): Likewise.
21938 (grub_script_argv_split_append): Likewise.
21939 * include/grub/script_sh.h (grub_script_argv): New struct.
21940 (grub_script_argv_free): New function.
21941 (grub_script_argv_next): Likewise.
21942 (grub_script_argv_append): Likewise.
21943 (grub_script_argv_split_append): Likewise.
21944
21945 * conf/common.rmk (normal.mod): New source script/argv.c.
21946
21947 * tests/grub_script_echo1.in: More tests.
21948 * tests/grub_script_vars1.in: Likewise.
21949 * tests/grub_script_functions.in: New test case.
21950 * conf/tests.rmk: Rules for new testcase.
21951
8022b748
BC
219522010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21953
21954 Remove grub_script_cmdblock struct.
21955
21956 * include/grub/script_sh.h: Remove grub_script_cmdblock.
21957 * script/parser.y: Likewise.
21958 * script/execute.c: Rename cmdblock suffix to cmdlist.
21959 * script/script.c: Likewise.
21960 * util/grub-script-check.c: Likewise.
21961
79a6ba61
YB
219622010-08-11 Yves Blusseau <blusseau@zetam.org>
21963
21964 * .bzrignore: add grub-macho2img
21965
d04b9414
VS
219662010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
21967
21968 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
21969
f947ab49
VS
219702010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
21971
21972 Remove the dump of sm712 initialisation sequence.
21973
21974 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
21975 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
21976 (GRUB_VGA_IO_MISC_WRITE): Likewise.
21977 (GRUB_VGA_CR_*): Added many registers.
21978 (GRUB_VGA_SR_*): Likewise.
21979 (GRUB_VGA_GR_*): Likewise.
21980 (grub_vga_write_arx): New function.
21981 (grub_video_hw_config): New struct.
21982 (grub_vga_set_geometry): New function.
21983 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
21984 GRUB_PCI_CLASS_SUBCLASS_VGA.
21985 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
21986 * video/sm712.c (grub_sm712_write_reg): New function
21987 (grub_sm712_read_reg): Likewise.
21988 (grub_sm712_sr_write): Likewise.
21989 (grub_sm712_gr_write): Likewise.
21990 (grub_sm712_cr_write): Likewise.
21991 (grub_sm712_write_arx): Likewise.
21992 (grub_sm712_cr_shadow_write): Likewise.
21993 (grub_sm712_write_dda_lookup): Likewise.
21994 (grub_video_sm712_setup): Initialise the video rather then
21995 blindly replay the dump.
21996 (main) [TEST]: Add a routine to be able to compile as standalone for
21997 tests.
21998 * video/sm712_init.c (sm712_init): Removed.
21999 (sm712_sr_seq1): New array.
22000 (sm712_sr_seq2): Likewise.
22001
f0206638
VS
220022010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22003
22004 * include/grub/vga.h: Add missing grub/pci.h include.
22005
2764da3b
YB
220062010-08-10 Yves Blusseau <blusseau@zetam.org>
22007
22008 * util/grub-macho2img.c (main): fix typo
22009
cf0c775e
VS
220102010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22011
22012 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
22013 (grub_vga_gr_read): Likewise.
22014 (grub_vga_cr_write): Likewise.
22015 (grub_vga_cr_read): Likewise.
22016 (grub_vga_sr_write): Likewise.
22017 (grub_vga_sr_read): Likewise.
22018 (grub_vga_palette_read): Likewise.
22019 (grub_vga_palette_write): Likewise.
22020 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
22021 (grub_sm712_sr_read): New function.
22022 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
22023 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
22024
07f360e9
RM
220252010-08-09 Robert Millan <rmh@gnu.org>
22026
22027 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
22028 out unused variables on non-ZFS build.
22029
346c2072
RM
220302010-08-08 Robert Millan <rmh@gnu.org>
22031
22032 Fix path generation for sub-filesystems in ZFS.
22033
22034 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
22035 missing slash.
22036
71175420
RM
220372010-08-08 Robert Millan <rmh@gnu.org>
22038
22039 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
22040
0d8286f3
RM
220412010-08-08 Robert Millan <rmh@gnu.org>
22042
22043 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
22044 exist, issue a proper error message (rely on `ls' for translated
22045 strings).
22046
55dd2924
RM
220472010-08-08 Robert Millan <rmh@gnu.org>
22048
22049 Fix grub-probe invocation.
22050
22051 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
22052
d3dd9e80
RM
220532010-08-04 Robert Millan <rmh@gnu.org>
22054
22055 * configure.ac: Remove checks for getfsstat() and getmntany().
22056 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
22057 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
22058 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
22059 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
22060 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
22061 function.
22062 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
22063 via find_mount_point_from_dir() and getfsstat() / getmntany().
22064
0de22aa9
RM
220652010-08-04 Robert Millan <rmh@gnu.org>
22066
22067 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22068 (grub_find_zpool_from_mount_point): Merge into ...
22069 (grub_find_zpool_from_dir): ... this.
22070 * kern/emu/misc.c: Likewise.
22071
22072 * kern/emu/misc.c
22073 (grub_make_system_path_relative_to_its_root): Replace
22074 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
22075 with grub_find_zpool_from_dir().
22076 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
22077
62858144
RM
220782010-08-04 Robert Millan <rmh@gnu.org>
22079
22080 Support OpenSolaris in ZFS device resolution.
22081
22082 * configure.ac: Check for getmntany().
22083 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
22084 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
22085 support.
22086
9dd6fd50
RM
220872010-08-03 Robert Millan <rmh@gnu.org>
22088
22089 Fix grub-emu build.
22090
22091 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
22092 * include/grub/emu/misc.h: ... here.
22093
22094 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
22095 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
22096
22097 * util/misc.c: Remove `<grub/util/libzfs.h>'.
22098 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
22099 (grub_get_libzfs_handle): Move to ...
22100 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
22101 (grub_get_libzfs_handle): ... here.
22102
c9f7ff97
BC
221032010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
22104
22105 * script/execute.c (grub_script_execute_cmdline): Check for NULL
22106 as command name case.
22107
a870a783
CW
221082010-08-02 Colin Watson <cjwatson@ubuntu.com>
22109
22110 * disk/raid.c (insert_array): Select unique numbers for named arrays
22111 as well, for use as keys in the disk cache.
22112
c7db243b
RM
221132010-08-01 Robert Millan <rmh@gnu.org>
22114
22115 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
22116 kFreeBSD device name, except on ZFS where the filesystem label is
22117 used.
22118 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
22119 `/boot/zfs/zpool.cache'.
22120 Set mountfrom kernel variable using ${kfreebsd_device}.
22121
f7abdefb
RM
221222010-08-01 Robert Millan <rmh@gnu.org>
22123
22124 Make it even harder to use uninitialized `libzfs_handle' (and
22125 make the interface a bit simpler).
22126
22127 * include/grub/util/misc.h (grub_util_init_libzfs)
22128 (libzfs_handle): Remove.
22129 (grub_get_libzfs_handle): New prototype.
22130
22131 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
22132 attribute.
22133 (grub_util_init_libzfs): Remove.
22134 (grub_get_libzfs_handle): New function.
22135
22136 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
22137 grub_get_libzfs_handle() to obtain a libzfs handle instead of
22138 accessing `libzfs_handle' directly.
22139
c882acc0
RM
221402010-08-01 Robert Millan <rmh@gnu.org>
22141
22142 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22143 (grub_find_zpool_from_mount_point): New function prototypes.
22144
22145 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22146 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22147
22148 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22149 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22150 `static' attribute.
22151
22152 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22153 finding zpool from mount point into ...
22154 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22155
22156 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22157 requested path is part of a ZFS pool, use
22158 grub_find_zpool_from_mount_point() to detect its filesystem name,
22159 and generate a path with `/fsname@path' syntax.
22160
8bfe31d8
CW
221612010-08-01 Colin Watson <cjwatson@ubuntu.com>
22162
22163 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
22164 (void) rather than () so that this is a proper prototype.
22165
553df63d
VS
221662010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22167
22168 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
22169
8687cf07
VS
221702010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22171
22172 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
22173 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
22174
ea9be8ea
CW
221752010-08-01 Colin Watson <cjwatson@ubuntu.com>
22176
22177 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
22178
6eea041a
CW
221792010-08-01 Colin Watson <cjwatson@ubuntu.com>
22180
22181 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
22182
2cfb45df
CW
221832010-08-01 Colin Watson <cjwatson@ubuntu.com>
22184
22185 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
22186 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
22187 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
22188 disable gfxpayload.
22189 (Shell-like scripting): Add real content.
22190 (Serial terminal): Suggest `terminal_input serial; terminal_output
22191 serial' rather than putting the two commands on separate lines,
22192 since console input will be inoperative after the first command.
22193 (menuentry): Document --class, --users, and --hotkey options.
22194 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
22195 Vladimir Serbinenko).
22196
7decd202
VS
221972010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
221982010-08-01 Colin Watson <cjwatson@ubuntu.com>
22199
22200 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
22201
c882acc0
RM
222022010-08-01 Robert Millan <rmh@gnu.org>
22203
22204 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22205 (grub_find_zpool_from_mount_point): New function prototypes.
22206
22207 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22208 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22209
22210 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22211 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22212 `static' attribute.
22213
22214 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22215 finding zpool from mount point into ...
22216 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22217
22218 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22219 requested path is part of a ZFS pool, use
22220 grub_find_zpool_from_mount_point() to detect its filesystem name,
22221 and generate a path with `/fsname@path' syntax.
22222
deb0caa3
RM
222232010-08-01 Robert Millan <rmh@gnu.org>
22224
22225 Prevent accidental use of uninitialized libzfs_handle.
22226
22227 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
22228 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
22229 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
22230
ce04ef47
CW
222312010-08-01 Colin Watson <cjwatson@ubuntu.com>
22232
22233 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
22234 util/grub.d/10_linux.in). Fixes Debian bug #591093.
22235
ebf53056
RM
222362010-08-01 Robert Millan <rmh@gnu.org>
22237
22238 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 22239
3710bb6b
RM
222402010-07-31 Robert Millan <rmh@gnu.org>
22241
22242 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
22243
8072efeb
RM
222442010-07-31 Robert Millan <rmh@gnu.org>
22245
22246 * kern/emu/misc.c: Add missing license header.
22247
3169f4c7
RM
222482010-07-31 Robert Millan <rmh@gnu.org>
22249
22250 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
22251
22252 * include/grub/util/libnvpair.h: Include `<config.h>'.
22253 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
22254 declaring libnvpair prototypes ourselves.
22255 * include/grub/util/libzfs.h: Include `<config.h>'.
22256 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
22257 declaring libzfs prototypes ourselves.
22258
22259 (libzfs_handle): Moved to ...
22260 * include/grub/util/misc.h (libzfs_handle): ... here.
22261 Include `<grub/util/libzfs.h>'.
22262
c9a00aee
RM
222632010-07-30 Robert Millan <rmh@gnu.org>
22264
22265 * include/grub/emu/misc.h: Add missing license header.
22266
a184f9c8
RM
222672010-07-30 Robert Millan <rmh@gnu.org>
22268
22269 Enable `grub-probe -t device' resolution on ZFS.
22270
22271 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
22272 * include/grub/util/libnvpair.h: New file.
22273 * include/grub/util/libzfs.h: New file.
22274
22275 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
22276 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
22277 `<grub/util/libnvpair.h>'.
22278 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
22279
22280 (find_mount_point_from_dir): New static function.
22281 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
22282 function.
22283 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
22284 find_root_device_from_libzfs() before ressorting to find_root_device().
22285
22286 * include/grub/util/misc.h (grub_util_init_libzfs): New function
22287 prototype.
22288 * util/misc.c: Include `<grub/util/libzfs.h>'.
22289 (grub_util_init_libzfs): New function.
22290 [HAVE_LIBZFS] (libzfs_handle): New global variable.
22291 [HAVE_LIBZFS] (fini_libzfs): New static function.
22292 (grub_util_init_libzfs): New function.
22293 * util/grub-probe.c (main): Call grub_util_init_libzfs().
22294
f7790cdd
RM
222952010-07-30 Robert Millan <rmh@gnu.org>
22296
22297 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
22298 (xmalloc, xrealloc, xstrdup, xasprintf): Add
22299 `warn_unused_result' attribute.
22300 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
22301 (grub_xasprintf, grub_xvasprintf): Likewise.
22302 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
22303
0806b63c
RM
223042010-07-29 Robert Millan <rmh@gnu.org>
22305
22306 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
22307 (probe): Handle `PRINT_FS_LABEL'.
22308 (main): Handle `-t fs_label'.
22309
9f841f5c
RM
223102010-07-29 Robert Millan <rmh@gnu.org>
22311
22312 * configure.ac: Remove grub-mkisofs checks.
22313
46371121
VS
223142010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
22315
22316 * util/ieee1275/grub-install.in: Don't use empty grub_device.
22317 Reported by: Lennart Sorensen.
22318
223192010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22320
22321 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
22322 prior to terminal_input/terminal_output separation. It's been over 1.5
22323 years and those versions weren't widely deployed.
22324
a9600892
CW
223252010-07-22 Colin Watson <cjwatson@ubuntu.com>
22326
22327 * disk/raid.c (insert_array): Don't count named arrays when looking
22328 for unused array numbers.
697e053c 22329 Reported and tested by: Michael Guntsche.
a9600892 22330
c03507df
CW
223312010-07-20 Colin Watson <cjwatson@ubuntu.com>
22332
22333 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
22334 implementation of this so that grub-emu links again, with a note
22335 that this should support hotplugging in the future.
22336
b26f1c11
CW
223372010-07-20 Colin Watson <cjwatson@ubuntu.com>
22338
22339 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
22340
efc9d7f1
CW
223412010-07-20 Colin Watson <cjwatson@ubuntu.com>
22342
22343 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
22344 handle on failure.
22345 (grub_loopback_close): Remove empty function.
22346 (grub_loopback_dev): Remove close method.
22347
dd8ff5c9
CW
223482010-07-20 Colin Watson <cjwatson@ubuntu.com>
22349
22350 Disable EFI cursor when the EFI console becomes inactive.
22351
22352 * term/efi/console.c (grub_efi_console_init): New function.
22353 (grub_efi_console_fini): New function.
22354 (grub_console_term_output): Register init and fini methods.
22355
5e3bec67
VS
223562010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22357
22358 * tests/util/grub-shell-tester.in: Remove bashism and declare as
22359 sh script.
22360
afaec079
VS
223612010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22362
22363 * disk/loopback.c (grub_loopback): Replace filename with file.
22364 (delete_loopback): Handle new semantics.
22365 (grub_cmd_loopback): Likewise.
22366 (grub_loopback_iterate): Likewise.
22367 (grub_loopback_close): Likewise.
22368
a6a11f3c
VS
223692010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22370
22371 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
22372 with -p "".
22373 Reported by: Tito Keitel.
22374
64a638b0
VS
223752010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22376
22377 * docs/grub.texi (Naming convention): Document new naming convention.
22378
ab8ba957
VS
223792010-07-20 Vadim Solomin <vadic052@gmail.com>
223802010-07-20 Colin Watson <cjwatson@ubuntu.com>
22381
22382 Generate device.map in something closer to the old ordering.
22383
22384 * util/deviceiter.c (struct device): New declaration.
22385 (compare_file_names): Rename to ...
22386 (compare_devices): ... this. Sort by kernel name in preference to
22387 the stable by-id name, but keep the latter as a fallback comparison.
22388 Update header comment.
22389 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
22390 of `struct device' rather than of plain file names.
22391
a29d6a4b
TF
223922010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
22393
22394 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
22395 on i386.
22396
39d824e8
VS
223972010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22398
22399 * commands/acpi.c (setup_common_tables): Use sizeof instead of
22400 hardcoding size.
22401 (setv1table): Likewise.
22402
f058276b
FZ
224032010-07-20 Colin Watson <cjwatson@ubuntu.com>
22404
22405 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
22406 removing the homehost if present.
22407 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
22408 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
22409 removing the homehost if present.
22410 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
22411 if possible.
22412 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
22413
22414 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
22415 parameter. Set its pointer target to 0.
22416 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
22417 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
22418 `data_offset' value from the superblock for 1.x metadata.
22419 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
22420 data on the device.
22421 (insert_array): Record the start sector of data on the device.
22422 (grub_raid_register): Pass start_sector parameters to
22423 grub_raid_list->detect and insert_array.
22424 * include/grub/raid.h (struct grub_raid_array): Add start_sector
22425 member.
22426 (struct grub_raid): Add start_sector parameter to `detect'.
22427
22428 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
22429 __attribute__ ((packed)), leaving a comment.
22430 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
22431 (grub_mdraid_detect_09): ... here and ...
22432 (grub_mdraid_detect_1x): ... here.
22433
224342010-07-20 Peter Henn <peter.henn@web.de>
22435
22436 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
22437 chunk size and disk size, which are already given as sector counts
22438 as distinct from the 0.90 units. Fetch the correct device number
22439 from the role table instead of using the table index.
22440
224412010-07-20 Felix Zielcke <fzielcke@z-51.de>
22442
22443 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
22444 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
22445 (WriteMostly1): New macro.
22446 Set array->name to NULL for metadata format 0.90. Add support for
22447 metadata 1.x. Fix some comments.
22448 * disk/raid.c (): Add support for name based RAID arrays. Fix a
22449 few comments.
22450 * util/getroot.c (grub_util_get_grub_dev): Add support for
22451 /dev/md/name style devices.
22452
4b761da9
CW
224532010-07-20 Colin Watson <cjwatson@ubuntu.com>
22454
22455 * .bzrignore: Ignore 20_linux_xen.
22456
5771289a
CW
224572010-07-17 Colin Watson <cjwatson@ubuntu.com>
22458
22459 * util/import_unicode.py: Remove unnecessary imports.
22460
5dab68df
AN
224612010-07-17 Aleš Nesrsta <starous@volny.cz>
22462
22463 Hotplugging and USB hub support.
22464
22465 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
22466 (grub_ohci): Likewise.
22467 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
22468 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
22469 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
22470 (GRUB_OHCI_CTRL_EDS): Likewise.
22471 (GRUB_OHCI_BULK_EDS): Likewise.
22472 (GRUB_OHCI_TDS): Likewise.
22473 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
22474 (grub_ohci_ed_phys2virt): New function.
22475 (grub_ohci_virt_to_phys): Likewise.
22476 (grub_ohci_td_phys2virt): Likewise.
22477 (grub_ohci_td_virt2phys): Likewise.
22478 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
22479 attachment.
22480 (grub_ohci_find_ed): New function.
22481 (grub_ohci_alloc_td): Likewise.
22482 (grub_ohci_free_td): Likewise.
22483 (grub_ohci_free_tds): Likewise.
22484 (grub_ohci_transfer): Use previously allocated memory.
22485 (grub_ohci_portstatus): Reset status changed bit.
22486 (grub_ohci_detect_dev): Supply status changed.
22487 (grub_ohci_fini_hw): Free memory.
22488 (grub_ohci_restore_hw): Reallocate memory.
22489 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
22490 Reset status change.
22491 (grub_uhci_detect_dev): Supply status_change.
22492 * bus/usb/usb.c (attach_hooks): New var.
22493 (grub_usb_device_attach): New function.
22494 (grub_usb_register_attach_hook_class): Likewise.
22495 (grub_usb_unregister_attach_hook_class): Likewise.
22496 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
22497 (grub_usb_add_hub): Reset connection changed bit.
22498 (attach_root_port): New function.
22499 (grub_usb_root_hub): Likewise.
22500 (poll_nonroot_hub): Likewise.
22501 (grub_usb_poll_devices): Likewise.
22502 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
22503 * disk/usbms.c (grub_usbms_open): Use device hooks.
22504 (grub_usbms_iterate) :Poll devices.
22505 (grub_usbms_finddevs): Split into ...
22506 (grub_usbms_attach): ... this ...
22507 (grub_usbms_attach): ... and this.
22508 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
22509 in detect_dev.
22510 (grub_usb_interface): New fields attached and detach_hook.
22511 (grub_usb_attach_hook_class): New type.
22512 (grub_usb_attach_desc): New struct.
22513 (grub_usb_register_attach_hook_class): New function.
22514 (grub_usb_unregister_attach_hook_class): Likewise.
22515 (grub_usb_poll_devices): Likewise.
22516 (grub_usb_device_attach): Likewise.
22517 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
22518 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
22519
3222efaf
VS
225202010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
22521
22522 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
22523 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
22524 delta determination style. Works with most NetBSD partitions too.
22525
139b714a
VS
225262010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
22527
22528 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
22529 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
22530
986aad56
VS
225312010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
22532
22533 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
22534
99be513c
AB
225352010-07-14 Anton Blanchard <anton@samba.org>
22536
22537 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
22538 ET_DYN files.
22539
18075f62
GS
225402010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22541
22542 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
22543
8d9a5b15
GS
225442010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22545
22546 * kern/partition.c (grub_partition_check_containment): New function to
22547 check that a partition is physically contained in a parent. Since
22548 offsets are relative (and non-negative), this reduces to checking that
22549 the partition ends before its parent.
22550 (grub_partition_map_probe): Discard out-of-range sub-partitions.
22551 (grub_partition_iterate): Likewise.
22552 * include/grub/partition.h (grub_partition_map): Slightly more detailed
22553 comments.
22554 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
22555 partitions that start before their parent, and add debug printfs.
22556
19563c25
CW
225572010-07-13 Colin Watson <cjwatson@ubuntu.com>
22558
22559 * Makefile.in (.SUFFIX): Spell correctly, as ...
22560 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
22561 bare module name without `.mod', e.g. `test') tried to invoke a
22562 Modula-2 compiler.
22563
1a1f1e67
CW
225642010-07-13 Colin Watson <cjwatson@ubuntu.com>
22565
22566 * README: Point to the Info manual.
22567
811b0dca
JS
225682010-07-13 Jiro SEKIBA <jir@unicus.jp>
22569
22570 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
22571 2nd superblock position from partition size.
22572
e4f4eafc
CW
225732010-07-10 Colin Watson <cjwatson@ubuntu.com>
22574
22575 * Makefile.in (MAINTAINER_CLEANFILES): Remove
22576 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
22577 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
22578 outputs.
22579
4274c30f
VS
225802010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22581
22582 Restructure SCSI .id handling.
22583 Reported and tested by: Aleš Nesrsta.
22584
22585 * disk/ata.c (grub_atapi_close): Removed. All users updated.
22586 (grub_atapi_dev): Changed .name to "ata". New field .id.
22587 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
22588 (grub_usbms_dev): New field .id.
22589 * disk/scsi.c (grub_scsi_iterate): Generate name.
22590 (grub_scsi_open): Parse name.
22591 * include/grub/scsi.h (grub_make_scsi_id): New function.
22592 (grub_scsi_dev): Change iterate and open to number instead of naming
22593 busses. All users updated.
22594 (grub_scsi): Remove name. Add .bus.
22595
5bc24388
VS
225962010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22597
22598 * commands/help.c (grub_cmd_help): Fix a typo.
22599
249975ba
VS
226002010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22601
22602 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
22603 Reported and tested by: Colin Watson.
22604
3eaac1a1
VS
226052010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
22606
22607 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
22608 in this context.
22609
becce1b1
VS
226102010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
22611
22612 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
22613
f7bf0918
CW
226142010-07-07 Colin Watson <cjwatson@ubuntu.com>
22615
22616 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
22617 indentation.
22618
0b0f9620
CW
226192010-07-06 Colin Watson <cjwatson@ubuntu.com>
22620
22621 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
22622 and disk/raid6_recover.c.
22623 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22624 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22625
1e545469
CW
226262010-07-06 Colin Watson <cjwatson@ubuntu.com>
22627
22628 * term/gfxterm.c (repaint_schedulded): Rename to ...
22629 (repaint_scheduled): ... this. Update all callers.
22630 (repaint_was_schedulded): Rename to ...
22631 (repaint_was_scheduled): ... this. Update all callers.
22632
5357687a
CW
226332010-07-06 Colin Watson <cjwatson@ubuntu.com>
22634
22635 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
22636 which we expect to be handled by upper layers.
22637
29d7e783
BC
226382010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
22639
22640 * bus/usb/usbhub.c: #include time.h header.
22641
37582066
CW
226422010-07-06 Colin Watson <cjwatson@ubuntu.com>
22643
22644 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
22645 entry_name also for entries without stat blocks (e.g. ".."); fixes
22646 corruption of the first entry in a directory.
22647
c8c06953
CW
226482010-07-06 Colin Watson <cjwatson@ubuntu.com>
22649
22650 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
22651 after setting gfxterm as the active terminal. GRUB_BACKGROUND
22652 doesn't work otherwise.
22653
e75056f1
CW
226542010-07-05 Colin Watson <cjwatson@ubuntu.com>
22655
22656 * docs/grub.texi (Features): Update list of supported file systems.
22657 (GNU/Linux): Update for GRUB 2.
22658 (Serial terminal): Remove mention of --disable-serial, which was a
22659 GRUB Legacy configure option. Update instructions to use
22660 `terminal_input' and `terminal_output' rather than `terminal'.
22661 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
22662 configuration' and `Installing GRUB using grub-install'.
22663 (Menu entry editor): Update for GRUB 2.
22664 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
22665 Document new -a, -u, and -v options.
22666 (initrd): New section.
22667 (initrd16): New section.
22668 (linux): New section.
22669 (linux16): New section.
22670 (search): The `var' argument to `--set' is optional.
22671 (GRUB only offers a rescue shell): Go into a little more detail on
22672 drive ordering.
22673
5cf69151
CW
226742010-07-05 Colin Watson <cjwatson@ubuntu.com>
22675
22676 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
22677
e3f90044
CW
226782010-07-05 Colin Watson <cjwatson@ubuntu.com>
22679
22680 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
22681 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
22682
38d8f4f3
CW
226832010-07-05 Colin Watson <cjwatson@ubuntu.com>
22684
22685 * util/i386/pc/grub-setup.c (setup): Rename prefix to
22686 install_prefix, in line with install_dos_part and install_bsd_part.
22687 Add new prefix variable, which is copied to install_prefix after
22688 comparing core.img in memory with the one read from disk in the
22689 no-embedding case, and use that rather than overwriting
22690 install_prefix immediately when installing to a partition.
22691 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
22692 Bicakci.
22693
57ebd41e
GS
226942010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
22695
22696 * configure.ac: Avoid == in test command, it's not portable.
22697 * util/grub.d/30_os-prober.in: Likewise.
22698
cb7f64b2
CW
226992010-07-04 Colin Watson <cjwatson@ubuntu.com>
22700
22701 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
22702
6b654bb0
GS
227032010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
22704
22705 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
22706 multiple (top-level) partmaps.
22707
72a2026d
VS
227082010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22709
22710 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 22711 Reported by: Tino Keitel.
72a2026d 22712
df3eb88f
VS
227132010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22714
22715 Bidi and diacritics support.
22716
22717 * Makefile.in (widthspec.bin): New target.
22718 (widthspec.h): Likewise.
22719 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
22720 * autogen.sh: Generate unidata.c.
22721 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
22722 * commands/ls.c (grub_ls_list_devices): Likewise.
22723 (grub_ls_list_files): Likewise.
22724 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
22725 (grub_mini_cmd_lsmod): Likewise.
22726 * commands/read.c: Likewise.
22727 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
22728 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
22729 * lib/arg.c (grub_arg_show_help): Likewise.
22730 * lib/crypto.c (grub_password_get): Likewise.
22731 * normal/auth.c (grub_username_get): Likewise.
22732 * normal/misc.c (grub_normal_print_device_info): Likewise.
22733 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
22734 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
22735 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
22736 (normal/charset.c_DEPENDENCIES): New variable.
22737 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
22738 (pkglib_MODULES): Remove charset.mod.
22739 (charset_mod_SOURCES): Removed.
22740 (charset_mod_CFLAGS): Likewise.
22741 (charset_mod_LDFLAGS): Likewise.
22742 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
22743 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
22744 and term/tparm.c.
22745 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22746 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22747 (kernel_img_HEADERS): Add terminfo.h.
22748 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
22749 Fill ->font. Reverse ascii bitmaps.
22750 (grub_font_get_xheight): New function.
22751 * font/font.c (grub_font_get_string_width): Moved from here ...
22752 * gfxmenu/font.c (grub_font_get_string_width): ... here.
22753 * font/font.c (grub_font_draw_string): Moved from here ...
22754 * gfxmenu/font.c (grub_font_draw_string): ... here.
22755 * font/font.c (grub_font_dup_glyph): New function.
22756 (grub_font_blit_glyph): Likewise.
22757 (grub_font_blit_glyph_mirror): Likewise.
22758 (blit_comb): Likewise.
22759 (grub_font_construct_dry_run): Likewise.
22760 (grub_font_get_constructed_device_width): Likewise.
22761 (grub_font_construct_glyph): Likewise.
22762 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
22763 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
22764 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
22765 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
22766 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
22767 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
22768 (grub_font_get_xheight): New proto.
22769 (grub_font_get_constructed_device_width): Likewise.
22770 (grub_font_construct_glyph): Likewise.
22771 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
22772 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
22773 * include/grub/font.h (grub_font_draw_string): Moved from here ...
22774 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
22775 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
22776 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
22777 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
22778 (grub_console_getcharwidth): Likewise.
22779 * include/grub/misc.h (grub_xputs): New proto.
22780 (grub_puts): Inlined.
22781 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
22782 (grub_normal_get_line_counter): Removed.
22783 (grub_install_newline_hook): Likewise.
22784 (grub_normal_get_char_counter): New proto.
22785 (grub_normal_reset_more): Likewise.
22786 (grub_xputs_normal): Likewise.
22787 * include/grub/powerpc/ieee1275/console.h: Removed.
22788 * include/grub/sparc64/ieee1275/console.h: Likewise.
22789 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
22790 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
22791 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
22792 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
22793 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
22794 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
22795 (grub_term_input): Pass reference to self. All users updated.
22796 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
22797 Pass reference to self. New fields normal_color, highlight_color and
22798 data. All users updated.
22799 (grub_putchar): Removed.
22800 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
22801 (grub_unicode_estimate_width): New function.
22802 (grub_term_getcharwidth): Add defaults.
22803 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
22804 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
22805 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
22806 (grub_cls): Remove EXPORT_FUNC.
22807 (grub_setcolorstate): Inline.
22808 (grub_newline_hook): Removed.
22809 * include/grub/terminfo.h: Rewritten. All users updated.
22810 * include/grub/unicode.h: New file.
22811 * include/grub/video.h (grub_video_signed_rect): New type.
22812 * kern/emu/console.c (grub_console_highlight_color): Removed.
22813 (grub_console_normal_color): Likewise.
22814 (grub_console_standard_color): Made static.
22815 (grub_ncurses_putchar): Remove mapping.
22816 (grub_ncurses_getcharwidth): Removed.
22817 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
22818 (grub_ncurses_setcolor): Removed.
22819 (grub_ncurses_getcolor): Likewise.
22820 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
22821 (grub_console_putchar): ... this.
22822 (grub_console_putchar): Handle argument difference.
22823 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
22824 console_init_early and console_init_lately.
22825 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
22826 * kern/misc.c (grub_puts): Removed.
22827 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
22828 (grub_vsnprintf_real): Remove str = NULL support.
22829 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
22830 * normal/charset.c (grub_utf8_to_ucs4): ... here.
22831 * kern/term.c (grub_putcode): Renamed to ...
22832 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
22833 (grub_putchar): Removed.
22834 (grub_xputs_dumb): New function.
22835 (grub_xputs): New variable.
22836 * lib/charset.c: Move from here ...
22837 * normal/charset.c: ... to here.
22838 (grub_ucs4_to_utf8): New function.
22839 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
22840 (join_types): New variable.
22841 (unpack_join): New function.
22842 (bidi_types): New variable.
22843 (unpack_bidi): New function.
22844 (get_bidi_type): Likewise.
22845 (get_join_type): Likewise.
22846 (is_mirrored): Likewise.
22847 (grub_unicode_get_comb_type): Likewise.
22848 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
22849 (is_type_after): Likewise.
22850 (grub_unicode_aglomerate_comb): Likewise.
22851 (bidi_line_wrap): Likewise.
22852 (grub_bidi_line_logical_to_visual): Likewise.
22853 (grub_bidi_logical_to_visual): Likewise.
22854 (grub_unicode_mirror_code): Likewise.
22855 (grub_unicode_shape_code): Likewise.
22856 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
22857 Don't use grub_putchar.
22858 * normal/main.c (grub_normal_init_page): Use grub_putcode.
22859 (grub_normal_reader_init): Likewise.
22860 (grub_xputs_saved): New variable.
22861 (GRUB_MOD_INIT): Set grub_xputs.
22862 (GRUB_MOD_FINI): Restore grub_xputs.
22863 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
22864 (menu_init): Avoid printing gfxmenu error.
22865 (show_menu): Use grub_normal_get_char_counter.
22866 * normal/menu_entry.c (update_screen): Fix out-of-array.
22867 (complete): Avoid NULL dereferencing.
22868 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
22869 * normal/menu_text.c (print_spaces): Removed.
22870 (grub_print_ucs4): Likewise.
22871 (grub_print_message_indented): Use grub_print_ucs4.
22872 (print_message): Use grub_putcode.
22873 (print_entry): Hanlde diacritics.
22874 * normal/term.c (term_state): New type.
22875 (grub_more_lines): Removed.
22876 (term_states): New variable.
22877 (grub_normal_line_counter): Renamed to ..
22878 (grub_normal_char_counter): ...this. All users updated.
22879 (grub_normal_get_line_counter): Renamed to ...
22880 (grub_normal_get_char_counter): ... this.
22881 (grub_normal_reset_more): New function.
22882 (process_newline): Removed.
22883 (print_more): New function.
22884 (grub_install_newline_hook): Removed.
22885 (map_code): New function.
22886 (grub_puts_terminal): Use grub_print_ucs4.
22887 (putglyph): New function.
22888 (putcode_real): Likewise.
22889 (grub_putcode): Use putcode_real.
22890 (get_maxwidth): New function.
22891 (get_startwidth): Likewise.
22892 (print_ucs4_terminal): Likewise.
22893 (find_term_state): Likewise.
22894 (put_glyphs_terminal): Likewise.
22895 (print_backlog): Likewise.
22896 (print_ucs4_real): Likewise.
22897 (grub_print_ucs4): Likewise.
22898 (grub_xputs_normal): Likewise.
22899 * term/efi/console.c (grub_console_putchar): Output diacritics.
22900 (grub_console_getcharwidth): Removed.
22901 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
22902 * term/gfxterm.c (clear_char): Free chars.
22903 (scroll_up): Avoid leaking memory.
22904 (grub_gfxterm_putchar): Support diacritics.
22905 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
22906 * term/i386/pc/console.c (grub_console_term_output): Declare as
22907 GRUB_TERM_CODE_TYPE_VGA.
22908 * term/i386/pc/vga.c (grub_vga_term): Declare as
22909 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
22910 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
22911 GRUB_TERM_CODE_TYPE_VGA.
22912 * term/i386/vga_common.c (map_char): Removed.
22913 (grub_console_putchar): Likewise.
22914 (grub_console_getcharwidth): Likewise.
22915 * term/ieee1275/ofconsole.c: Simplify using terminfo.
22916 (colors): Reordered to match terminfo.
22917 (grub_ofconsole_normal_color): Removed.
22918 (grub_ofconsole_writeesc): Likewise.
22919 (grub_ofconsole_highlight_color): Likewise.
22920 (grub_ofconsole_getcharwidth): Likewise.
22921 (grub_ofconsole_setcolorstate): Likewise.
22922 (grub_ofconsole_setcolor): Likewise.
22923 (grub_ofconsole_getcolor): Likewise.
22924 (grub_ofconsole_readkey): Renamed to ...
22925 (readkey): ... this. Remove escape sequence handling. Return -1 on no
22926 key.
22927 (grub_ofconsole_checkkey): Removed.
22928 (grub_ofconsole_getkey): Likewise.
22929 (grub_ofconsole_getxy): Likewise.
22930 (grub_ofconsole_gotoxy): Likewise.
22931 (grub_ofconsole_cls): Likewise.
22932 (grub_ofconsole_refresh): Likewise.
22933 (grub_ofconsole_terminfo_input): New struct.
22934 (grub_ofconsole_terminfo_output): Likewise.
22935 (grub_ofconsole_term_input): Use terminfo.
22936 (grub_ofconsole_term_output): Likewise.
22937 (grub_console_init): Split into ...
22938 (grub_console_init_early): ...this and ...
22939 (grub_console_init_lately): ...this. Use terminfo.
22940 (grub_ofconsole_putchar): Renamed to ...
22941 (put): ... this. Remove mapping.
22942 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
22943 * term/serial.c: Simplify using terminfo.
22944 (xpos): Removed.
22945 (ypos): Likewise.
22946 (keep_track): Likewise.
22947 (registered): Likewise.
22948 (input_buf): Likewise.
22949 (npending): Likewise.
22950 (serial_translate_key_sequence): Likewise.
22951 (fill_input_buf): Likewise.
22952 (grub_serial_checkkey): Likewise.
22953 (grub_serial_getkey): Likewise.
22954 (grub_serial_getxy): Likewise.
22955 (grub_serial_gotoxy): Likewise.
22956 (grub_serial_putchar): Likewise.
22957 (grub_serial_cls): Likewise.
22958 (grub_serial_setcolorstate): Likewise.
22959 (grub_serial_setcursor): Likewise.
22960 (serial_hw_init): Use serial_hw_fetch.
22961 (grub_serial_terminfo_input): New variable.
22962 (grub_serial_terminfo_output): Likewise.
22963 (grub_serial_term_input): Use terminfo.
22964 (grub_serial_term_output): Likewise.
22965 * term/terminfo.c (putstr): Use put.
22966 (grub_terminfo_all_free): New function
22967 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
22968 (grub_terminfo_output_register): New function.
22969 (grub_terminfo_output_unregister): Likewise.
22970 (grub_terminfo_getxy): Likewise.
22971 (grub_terminfo_readkey): Likewise.
22972 (grub_terminfo_checkkey): Likewise.
22973 (grub_terminfo_getkey): Likewise.
22974 (grub_terminfo_input_init): Likewise.
22975 (print_terminfo): Likewise.
22976 (grub_cmd_terminfo): Handle encoding.
22977 (grub_terminfo_gotoxy): Track position.
22978 (grub_terminfo_cls): Likewise.
22979 (grub_terminfo_putchar): Likewise.
22980 (grub_terminfo_setcolorstate): Handle colors
22981 (grub_terminfo_cursor_on): This ...
22982 (grub_terminfo_cursor_off): ... and this merged into ...
22983 (grub_terminfo_setcursor): ... this.
22984 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
22985 * unicode/ArabicShaping.txt: New file (imported from Unicode).
22986 * unicode/BidiMirroring.txt: Likewise.
22987 * unicode/UnicodeData.txt: Likewise.
22988 * unicode/COPYING: Likewise.
22989 * util/grub-editenv.c (grub_putchar): Removed.
22990 (grub_xputs_real): New function.
22991 (grub_xputs): New variable.
22992 * util/grub-fstest.c (grub_putchar): Removed.
22993 (grub_xputs_real): New function.
22994 (grub_xputs): New variable.
22995 * util/grub-mkdevicemap.c (grub_putchar): Removed.
22996 (grub_xputs_real): New function.
22997 (grub_xputs): New variable.
22998 * util/grub-probe.c (grub_putchar): Removed.
22999 (grub_xputs_real): New function.
23000 (grub_xputs): New variable.
23001 * util/grub-script-check.c (grub_putchar): Removed.
23002 (grub_xputs_real): New function.
23003 (grub_xputs): New variable.
23004 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
23005 (grub_xputs_real): New function.
23006 (grub_xputs): New variable.
23007 * util/import_unicode.py: New file.
23008 * util/grub-mkfont.c (ft_errmsgs): New array.
23009 (grub_glyph_info): Make bitmap a pointer.
23010 (file_formats): New type WIDTH_SPEC.
23011 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
23012 (options): Add width-spec.
23013 (help): Likewise.
23014 (add_char): Renamed to ...
23015 (add_glyph): ... this.
23016 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
23017 (glyph_replace): New type.
23018 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
23019 (add_char): New function.
23020 (add_subst): Likewise.
23021 (process_cursive): Likewise.
23022 (add_font): Handle GSUB.
23023 (write_font_width_spec): New function.
23024 (main): Sort glyphs.
23025 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
23026 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
23027 * kern/term.c (grub_cls): Moved from here...
23028 * normal/term.c (grub_cls): ... here.
23029
50f0bcda
CW
230302010-07-02 Colin Watson <cjwatson@ubuntu.com>
23031
23032 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
23033 suitable for using within the format argument of printf when
23034 converting grub_size_t.
23035 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
23036 "x" to convert grub_size_t arguments.
23037
40372103
VS
230382010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23039
23040 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
23041 too long captions.
23042 (list_get_minimal_size): Take selection box into account.
23043
942a10c7
VS
230442010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23045
23046 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
23047 NULL font.
23048
2bdb2892
CW
230492010-07-02 Colin Watson <cjwatson@ubuntu.com>
23050
23051 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
23052 devices when iterating over /dev/disk/by-id; they will be handled
23053 later if appropriate, which they aren't always (e.g. LVM).
23054
e03ed6c1
CW
230552010-07-02 Colin Watson <cjwatson@ubuntu.com>
23056
23057 * include/grub/misc.h (grub_reboot): Declare as noreturn.
23058 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
23059 fails.
23060 (grub_halt): Likewise.
23061 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
23062 reset-all fails.
23063 (grub_halt): Don't return, even if all of shut-down, power-off, and
23064 poweroff fail.
23065
47695765
CW
230662010-07-02 Colin Watson <cjwatson@ubuntu.com>
23067
23068 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
23069 arguments, not three.
23070
507736c8
CW
230712010-07-02 Colin Watson <cjwatson@ubuntu.com>
23072
23073 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
23074 * util/grub.d/10_linux.in: Use it to check for LVM, so that
23075 LVM-on-RAID is handled correctly.
23076
e3c8cd37
CW
230772010-07-02 Colin Watson <cjwatson@ubuntu.com>
23078
23079 * docs/grub.texi (Changes from GRUB Legacy): New section.
23080 (Future): Fix typo.
23081
8d4a2fec
CW
230822010-07-02 Colin Watson <cjwatson@ubuntu.com>
23083
23084 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
23085 grub.d/README accidentally ends up executable for one reason or
23086 another. Ignore it.
23087
1c4827be
VS
230882010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23089
23090 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
23091 (gpt_partition_map_iterate): Support non-512B sectors.
23092
d9a0c941
VS
230932010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23094
23095 * kern/efi/init.c (grub_efi_init): Disable watchdog.
23096 Tested by: Seth Goldberg.
23097
48f27e87
VS
230982010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23099
23100 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
23101 Properly align mbi.
23102 Reported by: Seth Goldberg.
23103
b0c4f956
VS
231042010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23105
23106 * util/grub-mkrescue.in: Avoid module duplication.
23107
105a2e8c
SF
231082010-07-01 Sean Finney <seanius@seanius.net>
23109
23110 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
23111
5944958c
SF
231122010-07-01 Sean Finney <seanius@seanius.net>
23113
23114 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
23115
231162010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23117
23118 * disk/lvm.c (grub_lvm_checkvalue): New function.
23119 (grub_lvm_check_flag): Likewise.
23120
b79889ba
RM
231212010-07-01 Robert Millan <rmh@gnu.org>
23122
23123 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
23124 Support 'p' as partition separator on kernel of FreeBSD (used
23125 with GPT labels).
23126 (grub_util_biosdisk_get_grub_dev): Likewise.
23127
ec1d04f1
VS
231282010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23129
23130 Yeeloong firmware port.
23131
23132 * boot/mips/yeeloong/fwstart.S: New file.
23133 * bus/cs5536.c (gpiodump): New const.
23134 (set_io_space): New function.
23135 (set_iod): Likewise.
23136 (set_p2d): Likewise.
23137 (grub_cs5536_init_geode): Likewise.
23138 * commands/mips/yeeloong/lsspd.c: New file.
23139 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
23140 (serial_mod_SOURCES): New variable.
23141 (serial_mod_CFLAGS): Likewise.
23142 (serial_mod_LDFLAGS): Likewise.
23143 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
23144 term/terminfo.c and term/tparm.c.
23145 (pkglib_IMAGES): Add fwstart.img.
23146 (fwstart_img_SOURCES): New variable.
23147 (fwstart_img_CFLAGS): Likewise.
23148 (fwstart_img_ASFLAGS): Likewise.
23149 (fwstart_img_LDFLAGS): Likewise.
23150 (fwstart_img_FORMAT): Likewise.
23151 (pkglib_MODULES): Add lsspd.mod.
23152 (lsspd_mod_SOURCES): New variable.
23153 (lsspd_mod_CFLAGS): Likewise.
23154 (lsspd_mod_LDFLAGS): Likewise.
23155 (pkglib_MODULES): Add halt.mod.
23156 (halt_mod_SOURCES): New variable.
23157 (halt_mod_CFLAGS): Likewise.
23158 (halt_mod_LDFLAGS): Likewise.
23159 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
23160 (serial_mod_SOURCES): Removed.
23161 (serial_mod_CFLAGS): Likewise.
23162 (serial_mod_LDFLAGS): Likewise.
23163 * disk/ata.c (check_device): New function.
23164 (grub_ata_device_initialize): Use check_device.
23165 (grub_ata_iterate): Recheck devices.
23166 (grub_ata_open): Likewise.
23167 (grub_atapi_iterate): Likewise.
23168 (grub_atapi_open): Likewise.
23169 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
23170 (GRUB_ATA_CH1_PORT1): Likewise.
23171 (GRUB_ATA_CH0_PORT2): Likewise.
23172 (GRUB_ATA_CH1_PORT2): Likewise.
23173 * include/grub/mips/loongson.h: New file.
23174 * include/grub/mips/yeeloong/ec.h: Likewise.
23175 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
23176 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
23177 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
23178 * include/grub/misc.h (grub_halt): Declare as noreturn.
23179 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
23180 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
23181 (UART_ENABLE_FIFO_TRIGGER1): New definition.
23182 (UART_ENABLE_DTRRTS): Likewise.
23183 (UART_ENABLE_MODEM): Removed.
23184 (UART_ENABLE_OUT2): New const.
23185 * include/grub/term.h (grub_term_register_input_active): New function.
23186 (grub_term_register_output_active): Likewise.
23187 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
23188 argument.
23189 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
23190 (init_pci): New function.
23191 (grub_machine_init): Execute platform init when firmware. Init serial.
23192 (grub_halt): Implement.
23193 (grub_exit): Likewise.
23194 (grub_reboot): Likewise.
23195 * term/serial.c (serial_hw_init): Update macros.
23196 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
23197 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
23198 (image_targets): New target mipsel-yeeloong-flash.
23199 (generate_image): Support IMAGE_YEELOONG_FLASH.
23200 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
23201 (grub_video_sm712_setup): Init card.
23202 (grub_video_sm712_set_palette): Removed.
23203 * video/sm712_init.c: New file.
23204
ff4a70d2
CW
232052010-06-30 Colin Watson <cjwatson@ubuntu.com>
23206
23207 * Makefile.in (install-local): Temporarily prepend $(builddir) to
23208 PATH when running help2man and then run it on the unadorned
23209 executable names, rather than passing $(builddir)/* paths to
23210 help2man. This avoids the build directory ending up in generated
23211 manual pages.
23212
1246efeb
CW
232132010-06-29 Colin Watson <cjwatson@ubuntu.com>
23214
23215 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
23216 to avoid accidents when debugging with 'sh -x'.
23217 * util/grub-mkrescue.in: Likewise.
23218 * util/grub.d/00_header.in: Likewise.
23219 * util/grub.d/10_hurd.in: Likewise.
23220 * util/grub.d/10_kfreebsd.in: Likewise.
23221 * util/grub.d/10_linux.in: Likewise.
23222 * util/grub.d/10_netbsd.in: Likewise.
23223 * util/grub.d/10_windows.in: Likewise.
23224 * util/grub.d/20_linux_xen.in: Likewise.
23225 * util/grub.d/30_os-prober.in: Likewise.
23226 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23227
1ba9b889
CW
232282010-06-29 Colin Watson <cjwatson@ubuntu.com>
23229
23230 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
23231 last character in the buffer.
23232 Reported by: Vladimir Serbinenko.
23233
dccaf99d
RM
232342010-06-29 Robert Millan <rmh@gnu.org>
23235
23236 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
23237 (Command-line and menu entry commands): Document `badram' command.
23238
d500ed12
RM
232392010-06-28 Robert Millan <rmh@gnu.org>
23240
23241 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
23242 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
23243 command using ${GRUB_BADRAM} as parameter.
23244
20bc84a6
CW
232452010-06-28 Colin Watson <cjwatson@ubuntu.com>
23246
23247 * docs/grub.texi (Device map): New section.
23248 (Themes): New section (stub).
23249 * Makefile.in (docs/grub.info): The info documentation now builds
23250 without errors. Make sure it stays that way.
23251
4045dee1
VS
232522010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23253
23254 Use normal parser for menu entries.
23255 Reported by: Thomas Frauendorfer
23256
23257 * include/grub/parser.h (grub_parser_execute): Don't export.
23258 * normal/menu.c (grub_menu_execute_entry_real): New function.
23259 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
23260
bca58c7b
CW
232612010-06-28 Colin Watson <cjwatson@ubuntu.com>
23262
23263 * docs/grub.texi (Embedded configuration): New section (replacing
23264 old "Preset Menu" stub).
23265 (Images): New section.
23266 (configfile): Note that any menu entries defined in `file' are shown
23267 immediately.
23268
dec53e63
JT
232692010-06-28 Josh Triplett <josh@joshtriplett.org>
23270
23271 * mmap/i386/pc/mmap_helper.S: Set CF on return.
23272
c06e40f7
CW
232732010-06-28 Colin Watson <cjwatson@ubuntu.com>
23274
23275 * util/grub-install.in: Add --debug-image= option.
23276
cb88052b
CW
232772010-06-28 Colin Watson <cjwatson@ubuntu.com>
23278
23279 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
23280 possible on Linux.
23281
23282 * util/deviceiter.c (check_device): Rename to ...
23283 (check_device_readable_unique): ... this. Update all callers.
23284 Maintain and check a list of which devices (by canonicalized name)
23285 have already been seen.
23286 (clear_seen_devices): New function.
23287 (compare_file_names) [__linux__]: New function.
23288 (grub_util_iterate_devices): Clear the list of seen devices on exit
23289 and (just in case) on entry.
23290 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
23291 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
23292 seen-devices list, superseded by general code in check_device.
23293
bbe34652
CW
232942010-06-28 Colin Watson <cjwatson@ubuntu.com>
23295
23296 * commands/cat.c (options): New variable.
23297 (grub_cmd_cat): Parse options. If the --dos option is given, print
23298 DOS-style "\r\n" line endings as simple newlines (Debian bug
23299 #586358).
23300 (GRUB_MOD_INIT): Use extcmd.
23301 (GRUB_MOD_FINI): Likewise.
23302 * docs/grub.texi (cat): Document --dos.
23303
412e09f3
VS
233042010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23305
23306 XEN with Linux grub-mkconfig support.
23307
23308 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
23309 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
23310 GRUB_CMDLINE_XEN_DEFAULT.
23311 * util/grub.d/20_linux_xen.in: New file.
23312
53f3ef38 233132010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
23314
23315 Initialise VGA video on qemu ourselves.
23316
23317 * boot/i386/qemu/boot.S: Don't call 0xc000.
23318 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
23319 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
23320 (kernel_img_HEADERS): Add pci.h.
23321 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
23322 * configure.ac: Force unifont on qemu and yeeloong.
23323 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
23324 (grub_vga_palette_write): Use correct register.
23325 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
23326 Call grub_qemu_init_cirrus.
23327 * kern/i386/qemu/init.c: New file.
23328 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
23329
23330 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
23331
c75be4fb
PR
233322010-06-26 Pavel Roskin <proski@gnu.org>
23333
23334 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
23335 13.
23336
d8034603
CW
233372010-06-26 Colin Watson <cjwatson@ubuntu.com>
23338
23339 * docs/grub.texi (Simple configuration): Explain that
23340 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
23341 set to `true' to disable their respective recovery entries, not
23342 merely set.
23343
3fa06487
CW
233442010-06-26 Colin Watson <cjwatson@ubuntu.com>
23345
23346 Make the `source' command slightly faster.
23347
23348 * normal/main.c (grub_normal_execute): Don't re-read list files when
23349 nested.
23350
e9b29642
CW
233512010-06-23 Colin Watson <cjwatson@ubuntu.com>
23352
23353 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
23354 field position and mask size to red fields from mode_info, not
23355 green.
23356 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
23357 Remove redundant tag->common.framebuffer_type assignment.
23358 Reported by: Seth Goldberg.
23359
e726542f
CW
233602010-06-23 Colin Watson <cjwatson@ubuntu.com>
23361
23362 Sync up other versions of the Linux loader with Robert Millan's
23363 change of 2010-01-09, "Make loader output a bit more user-friendly".
23364
23365 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
23366 grub_dprintf().
23367 (grub_cmd_linux): Likewise.
23368 (grub_cmd_initrd): Likewise.
23369 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
23370 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
23371
d6e98a17
CW
233722010-06-21 Colin Watson <cjwatson@ubuntu.com>
23373
23374 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
23375 larger than MEMORY_MAP_SIZE.
23376
14d3f08e
BC
233772010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
23378
23379 Fix parallel build.
23380
23381 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
23382 dependency.
23383 * script/parser.y: #include grub_script.tab.h header.
23384
4f9613a3
VS
233852010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23386
23387 Support >3GiB and <16MiB RAM in i386-qemu.
23388
23389 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
23390 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
23391 (grub_lower_mem): Removed.
23392 (grub_upper_mem): Likewise.
23393 (mem_size): Made static.
23394 (above_4g): New variable.
23395 (grub_machine_mmap_init): Detect small mem_size and above_4g.
23396 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
23397 support.
23398
05e51879
VS
233992010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23400
23401 Cirrus 5446 and Bochs video cards support.
23402
23403 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
23404 video_bochs.mod
23405 (video_cirrus_mod_SOURCES): New variable.
23406 (video_cirrus_mod_CFLAGS): Likewise.
23407 (video_cirrus_mod_LDFLAGS): Likewise.
23408 (video_bochs_mod_SOURCES): Likewise.
23409 (video_bochs_mod_CFLAGS): Likewise.
23410 (video_bochs_mod_LDFLAGS): Likewise.
23411 * include/grub/vga.h: New file.
23412 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
23413 (grub_video_fb_set_page_t): New type.
23414 (grub_video_fb_setup): New prototype.
23415 (grub_video_fb_swap_buffers): Likewise.
23416 (grub_video_fb_get_info_and_fini): Likewise.
23417 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
23418 (CRTC_DATA_PORT): Likewise.
23419 (CRTC_CURSOR): Likewise.
23420 (CRTC_CURSOR_ADDR_HIGH): Likewise.
23421 (CRTC_CURSOR_ADDR_LOW): Likewise.
23422 (CRTC_CURSOR_DISABLE): Likewise.
23423 (update_cursor): Use grub_vga_cr_write.
23424 (grub_vga_text_setcursor): Likewise.
23425 * video/bochs.c: New file.
23426 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
23427 (palette): Likewise.
23428 (palette_size): Likewise.
23429 (framebuffer): New variable.
23430 (grub_video_fb_init): Use 'framebuffer'.
23431 (grub_video_fb_fini): Likewise.
23432 (grub_video_fb_get_info): Likewise.
23433 (grub_video_fb_get_palette): Likewise.
23434 (grub_video_fb_set_palette): Likewise.
23435 (grub_video_fb_set_viewport): Likewise.
23436 (grub_video_fb_get_viewport): Likewise.
23437 (grub_video_fb_map_color): Likewise.
23438 (grub_video_fb_map_rgb): Likewise.
23439 (grub_video_fb_map_rgba): Likewise.
23440 (grub_video_fb_unmap_color): Likewise.
23441 (grub_video_fb_unmap_color_int): Likewise.
23442 (grub_video_fb_fill_rect): Likewise.
23443 (grub_video_fb_blit_bitmap): Likewise.
23444 (grub_video_fb_blit_render_target): Likewise.
23445 (grub_video_fb_scroll): Likewise.
23446 (grub_video_fb_create_render_target): Likewise.
23447 (grub_video_fb_doublebuf_blit_init): Likewise.
23448 (grub_video_fb_set_active_render_target): Handle doublebuffering.
23449 (doublebuf_pageflipping_update_screen): New function.
23450 (doublebuf_pageflipping_init): Likewise.
23451 (grub_video_fb_setup): Likewise.
23452 (grub_video_fb_swap_buffers): Likewise.
23453 (grub_video_fb_get_info_and_fini): Likewise.
23454 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
23455 All users updated.
23456 (doublebuf_pageflipping_commit): Restructured into ...
23457 (doublebuf_pageflipping_set_page): ... this.
23458 (doublebuf_pageflipping_update_screen): Removed.
23459 (doublebuf_pageflipping_init): Likewise.
23460 (double_buffering_init): Likewise.
23461 (grub_video_vbe_setup): Use grub_video_fb_setup.
23462 (grub_video_vbe_swap_buffers): Removed.
23463 (grub_video_vbe_set_active_render_target): Likewise.
23464 (grub_video_vbe_get_active_render_target): Likewise.
23465 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
23466 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
23467 grub_video_fb_set_active_render_target and
23468 grub_video_fb_get_active_render_target.
23469 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
23470 (SEQUENCER_DATA_PORT): Likewise.
23471 (MAP_MASK_REGISTER): Likewise.
23472 (CRTC_ADDR_PORT): Likewise.
23473 (CRTC_DATA_PORT): Likewise.
23474 (START_ADDR_HIGH_REGISTER): Likewise.
23475 (START_ADDR_LOW_REGISTER): Likewise.
23476 (GRAPHICS_ADDR_PORT): Likewise.
23477 (GRAPHICS_DATA_PORT): Likewise.
23478 (READ_MAP_REGISTER): Likewise.
23479 (INPUT_STATUS1_REGISTER): Likewise.
23480 (INPUT_STATUS1_VERTR_BIT): Likewise.
23481 (get_map_mask): Use grub_vga_sr_read.
23482 (set_map_mask): Use grub_vga_sr_write.
23483 (set_read_map): Use grub_vga_gr_write.
23484 (set_start_address): Use grub_vga_cr_write.
23485 * video/sm712.c (framebuffer): Remove leftover fields.
23486
4321c64a
CW
234872010-06-20 Colin Watson <cjwatson@ubuntu.com>
23488
23489 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
23490 setting GRUB_VIDEO_BACKEND. Make it available as a user override
23491 instead. Replace the gfxterm backend check with a check that
23492 ${GRUB_PREFIX}/video.lst is non-empty.
23493 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
23494 again.
23495 (load_video): New generated function. Call it before loading
23496 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
23497 * util/grub.d/10_linux.in (linux_entry): Call load_video.
23498 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
23499 * docs/grub.texi (Simple configuration): Document
23500 GRUB_VIDEO_BACKEND.
23501
235022010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23503
23504 Use video functions in linux and xnu loaders.
23505
23506 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
23507 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
23508 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
23509 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
23510 loader/i386/pc/linux.c.
23511 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
23512 (find_line_len): Removed.
23513 (find_framebuf): Likewise.
23514 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
23515 * loader/i386/efi/xnu.c: Removed.
23516 * loader/i386/pc/xnu.c: Moved from here...
23517 * loader/i386/xnu.c: ...here.
23518
23519 Enable priorities in video drivers.
23520
23521 * include/grub/video.h (grub_video_adapter_prio_t): New type.
23522 (grub_video_adapter): New field prio.
23523 (grub_video_register): Respect prio when inserting.
23524 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
23525 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
23526 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
23527 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
23528 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
23529 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
23530 * video/sm712.c (grub_video_sm712_adapter): Likewise.
23531
23532 Fix SDL driver ID.
23533
23534 * include/grub/video.h (grub_video_driver_id_t): New value
23535 GRUB_VIDEO_DRIVER_SDL.
23536 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
23537
7d24e434
CW
235382010-06-17 Colin Watson <cjwatson@ubuntu.com>
23539
23540 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
23541 argument to printf.
23542 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
23543
c88a83f6
CW
235442010-06-17 Colin Watson <cjwatson@ubuntu.com>
23545
23546 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
23547 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
23548
094dfb69
CW
235492010-06-17 Colin Watson <cjwatson@ubuntu.com>
23550
23551 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
23552 directly, and recommend grub-install instead.
23553 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
23554
2164da6b
CW
235552010-06-17 Colin Watson <cjwatson@ubuntu.com>
23556
23557 Fix i386-pc prefix handling with nested partitions (Debian bug
23558 #585068). Note that the case where the core image is booted using
23559 multiboot and relocated from its original location still requires
23560 more work.
23561
23562 * kern/i386/pc/init.c (make_install_device): If the prefix starts
23563 with "(,", fill the boot drive in between those two characters, but
23564 expect that a full partition specification including partition map
23565 names will follow.
23566 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
23567 specified, write a prefix without the drive name but including a
23568 full partition specification.
23569
044e2e60
CW
235702010-06-16 Colin Watson <cjwatson@ubuntu.com>
23571
23572 * util/grub-mkconfig.in: Ignore non-option arguments, for
23573 compatibility with older versions (before 2010-06-12) which did the
23574 same. In particular, this makes it easier to ship an update-grub
23575 wrapper which is compatible with that used with GRUB Legacy (Debian
23576 bug #586056).
23577
5591324f
GS
235782010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23579
23580 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
23581 for manual page generation.
23582
662e24d5
GS
235832010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23584
23585 * po/POTFILES: Remove leftover commands/handler.c.
23586
8d70754e
CW
235872010-06-14 Colin Watson <cjwatson@ubuntu.com>
23588
23589 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
23590 left this script non-functional.
23591
41160e2e
CW
235922010-06-14 Colin Watson <cjwatson@ubuntu.com>
23593
23594 * docs/man/grub-emu.h2m: New file.
23595
b5309cc1
CW
235962010-06-13 Colin Watson <cjwatson@ubuntu.com>
23597
23598 * docs/grub.texi (Commands): Document reduced command set in rescue
23599 mode.
23600 (cpuid): New section.
23601
fcb2d090
GS
236022010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
23603
23604 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
23605 new partition naming style.
23606 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
23607
96e5c556
BC
236082010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
23609
23610 Add "-o grub.iso" like cmdline options support.
23611
23612 * util/grub-install.in: Improve cmdline option parsing.
23613 * util/grub-mkconfig.in: Likewise.
23614 * util/grub-mkrescue.in: Likewise.
23615 * util/grub-reboot.in: Likewise.
23616 * util/grub-set-default.in: Likewise.
23617 * util/i386/efi/grub-install.in: Likewise.
23618 * util/ieee1275/grub-install.in: Likewise.
23619 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23620
c16be99b
CW
236212010-06-12 Colin Watson <cjwatson@ubuntu.com>
23622
23623 * .bzrignore: Ignore 41_custom.
23624
ce08a9fb
TS
236252010-06-12 Thomas Schmitt <scdbackup@gmx.net>
23626
23627 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
23628
7beac90c
CW
236292010-06-12 Colin Watson <cjwatson@ubuntu.com>
23630
23631 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
23632 prototype declarations.
23633
23634 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
23635 generating fs, partmap, and video lists.
23636 * include/grub/fs.h (grub_fs_register): Omit prototype if
23637 GRUB_LST_GENERATOR is defined.
23638 * include/grub/partition.h (grub_partition_map_register): Likewise.
23639 * include/grub/video.h (grub_video_register): Likewise.
23640
1c8f0f8d
JM
236412010-06-12 Javier Martín <lordhabbit@gmail.com>
23642
23643 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
23644
a6085973
TS
236452010-06-12 Thomas Schmitt <scdbackup@gmx.net>
23646
23647 * util/grub-mkrescue.in: Support --xorriso argument.
23648
25c56d29
VS
236492010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23650
23651 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
23652 Suggested by: Thomas Schmitt.
23653
e03e4b24
VS
236542010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23655
23656 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
23657 Suggested by: Thomas Schmitt.
23658
57711df6
VS
236592010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23660
23661 custom.cfg support.
23662
23663 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
23664 * util/grub.d/41_custom.in: New file.
23665
ee62c427
CW
236662010-06-12 Colin Watson <cjwatson@ubuntu.com>
23667
23668 * util/grub-mkrescue.in (make_image): Remove sh module, which has
23669 been merged back into normal.
23670
283af07a
CW
236712010-06-11 Colin Watson <cjwatson@ubuntu.com>
23672
23673 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
23674 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
23675
56a0d956
CW
236762010-06-11 Colin Watson <cjwatson@ubuntu.com>
23677
23678 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
23679 when generating manual pages.
23680 * docs/man/grub-bin2h.h2m: New file.
23681 * docs/man/grub-editenv.h2m: New file.
23682 * docs/man/grub-fstest.h2m: New file.
23683 * docs/man/grub-install.h2m: New file.
23684 * docs/man/grub-macho2img.h2m: New file.
23685 * docs/man/grub-mkconfig.h2m: New file.
23686 * docs/man/grub-mkdevicemap.h2m: New file.
23687 * docs/man/grub-mkfont.h2m: New file.
23688 * docs/man/grub-mkimage.h2m: New file.
23689 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
23690 * docs/man/grub-mkrelpath.h2m: New file.
23691 * docs/man/grub-mkrescue.h2m: New file.
23692 * docs/man/grub-ofpathname.h2m: New file.
23693 * docs/man/grub-pe2elf.h2m: New file.
23694 * docs/man/grub-probe.h2m: New file.
23695 * docs/man/grub-reboot.h2m: New file.
23696 * docs/man/grub-script-check.h2m: New file.
23697 * docs/man/grub-set-default.h2m: New file.
23698 * docs/man/grub-setup.h2m: New file.
23699
3a37e322
VS
237002010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
23701
23702 Use FOR_* macros instead of *_iterate whenever possible.
23703
23704 * commands/handler.c: Removed.
23705 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
23706 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
23707 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23708 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
23709 (grub_probe_SOURCES): Remove kern/parser.c.
23710 (util/grub-script-check.c_DEPENDENCIES): Removed.
23711 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
23712 and grub_script_check_init.c.
23713 (grub_script_check_init.lst): Removed.
23714 (grub_script_check_init.h): Likewise.
23715 (grub_script_check_init.c): Likewise.
23716 (pkglib_MODULES): Remove handler.mod and sh.mod.
23717 (handler_mod_SOURCES): Removed.
23718 (handler_mod_CFLAGS): Likewise.
23719 (handler_mod_LDFLAGS): Likewise.
23720 (normal_mod_SOURCES): Remove normal/handler.c.
23721 Add script/main.c, script/script.c, script/execute.c,
23722 script/function.c, script/lexer.c, grub_script.tab.c
23723 and grub_script.yy.c.
23724 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23725 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23726 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
23727 (grub_setup_SOURCES): Remove kern/parser.c.
23728 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23729 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
23730 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
23731 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23732 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23733 (grub_setup_SOURCES): Remove kern/parser.c.
23734 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23735 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
23736 * include/grub/command.h (grub_command_iterate): Removed.
23737 (FOR_COMMANDS): New macro.
23738 * include/grub/dl.h (grub_dl): New member next.
23739 (grub_dl_iterate): Removed.
23740 (grub_dl_head): New variable declaration.
23741 (FOR_DL_MODULES): New macro.
23742 * include/grub/fs.h: Include list.h.
23743 (grub_fs): Make next first element.
23744 (grub_fs_list): New variable declaration.
23745 (grub_fs_register): Make inline.
23746 (grub_fs_unregister): Likewise.
23747 (grub_fs_iterate): Removed.
23748 (FOR_FILESYSTEMS): New macro.
23749 * include/grub/handler.h: Removed.
23750 * include/grub/list.h (grub_list_hook_t): Removed.
23751 (grub_list_test_t): Likewise.
23752 (grub_list_pop): Likewise.
23753 (grub_list_iterate): Likewise.
23754 (grub_list_insert): Likewise.
23755 (FOR_LIST_ELEMENTS): New macro.
23756 * include/grub/parser.h (grub_parser_class): Removed.
23757 (grub_parser_register): Likewise.
23758 (grub_parser_unregister): Likewise.
23759 (grub_parser_get_current): Likewise.
23760 (grub_parser_set_current): Likewise.
23761 (grub_register_rescue_parser): Likewise.
23762 (grub_rescue_parse_line): New function.
23763 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
23764 * include/grub/script_sh.h (grub_script_function_list): New variable
23765 declaration.
23766 (FOR_SCRIPT_FUNCTIONS): New macro.
23767 (grub_script_function_iterate): Removed.
23768 (grub_normal_parse_line): New prototype.
23769 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
23770 (FOR_DISABLED_TERM_INPUTS): Likewise.
23771 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
23772 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
23773 * include/grub/video.h (grub_video_adapter): Move 'next' to first
23774 element.
23775 (grub_video_register): Inline.
23776 (grub_video_unregister): Likewise.
23777 (grub_video_adapter_list): New variable declaration.
23778 (grub_video_iterate): Removed.
23779 (FOR_VIDEO_ADAPTERS): New macro.
23780 * kern/dl.c (grub_dl_list): Removed. All users updated.
23781 (grub_dl_iterate): Removed.
23782 * kern/fs.c (grub_fs_list): Make global.
23783 (grub_fs_register): Removed.
23784 (grub_fs_unregister): Likewise.
23785 (grub_fs_iterate): Likewise.
23786 * kern/handler.c: Removed.
23787 * kern/list.c (grub_list_pop): Removed.
23788 (grub_list_iterate): Likewise.
23789 (grub_list_insert): Likewise.
23790 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
23791 (grub_prio_list_insert): Don't use grub_list_insert.
23792 * kern/main.c (grub_register_rescue_parser): Don't call
23793 grub_register_rescue_parser.
23794 * kern/parser.c (grub_parser_class): Removed.
23795 (grub_parser_execute): Use grub_rescue_parse_line.
23796 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
23797 (grub_rescue_parser): Removed.
23798 (grub_register_rescue_parser): Likewise.
23799 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
23800 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
23801 (grub_auth_check_authentication): Likewise.
23802 * normal/completion.c (iterate_command): Removed.
23803 (grub_normal_do_completion): Use FOR_COMMANDS.
23804 * normal/handler.c: Removed.
23805 * normal/main.c (read_config_file): Remove parser changing.
23806 (grub_normal_execute): Don't call read_handler_list.
23807 (grub_normal_read_line_real): Statically allocate prompt.
23808 (grub_cmdline_run): Use grub_normal_parse_line.
23809 (GRUB_MOD_FINI): Don't call free_handler_list.
23810 * normal/menu_entry.c (run): Likewise.
23811 * script/function.c (grub_script_function_list): Make global.
23812 (grub_script_function_iterate): Removed.
23813 * script/main.c (grub_normal_parse_line): Make global.
23814 (grub_sh_parser): Removed.
23815 (GRUB_MOD_INIT): Likewise.
23816 (GRUB_MOD_FINI): Likewise.
23817 * tests/lib/functional_test.c (grub_functional_test): Use
23818 FOR_LIST_ELEMENTS.
23819 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
23820 (grub_test_run): Use FOR_LIST_ELEMENTS.
23821 * tests/lib/unit_test.c (main): Likewise.
23822 * util/deviceiter.c (grub_util_iterate_devices): Don't use
23823 grub_list_pop.
23824 * util/grub-fstest.c (grub_term_input_class): Removed.
23825 (grub_term_output_class): Likewise.
23826 * util/grub-probe.c: Likewise.
23827 * util/i386/pc/grub-setup.c: Likewise.
23828 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23829 * util/grub-script-check.c (main): Don't call grub_init_all and
23830 grub_fini_all.
23831 * video/video.c (grub_video_adapter_list): Make global.
23832 (grub_video_register): Removed.
23833 (grub_video_unregister): Likewise.
23834 (grub_video_iterate): Likewise.
23835
6289c3a7
VS
238362010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
23837
23838 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
23839 reported by Henrique Ferreiro.
23840
91460247
RM
238412010-06-09 Robert Millan <rmh@gnu.org>
23842
23843 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
23844 ones, when both are available.
23845
0ea7c4f9
GS
238462010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
23847
23848 Make --version uniform and avoid hard-coded program name.
23849
23850 * util/grub-mkimage.c (main): Use `program_name' instead of
23851 hard-coded string.
23852 * util/i386/pc/grub-setup.c (main): Likewise.
23853 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
23854 * util/grub-install.in: Save the basename of $0 in $self, and use the
23855 latter in informational messages. Use the same format for --version
23856 as the binary programs.
23857 * util/grub-mkconfig.in: Likewise.
23858 * util/grub-mkrescue.in: Likewise.
23859 * util/grub-reboot.in: Likewise.
23860 * util/grub-set-default.in: Likewise.
23861 * util/i386/efi/grub-install.in: Likewise.
23862 * util/ieee1275/grub-install.in: Likewise.
23863 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23864
e8a6f3b6
GS
238652010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
23866
23867 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
23868 embedding area. Use <= instead of == when checking for non-emptiness.
23869
f4d095d7
GS
238702010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
23871
23872 * configure.ac: Add `.' to the directories searched for unifont.
23873
50e532ca
CW
238742010-06-08 Colin Watson <cjwatson@ubuntu.com>
23875
23876 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
23877 grub_script.yy.h.
23878
d39f3dec
CW
238792010-06-08 Colin Watson <cjwatson@ubuntu.com>
23880
23881 * docs/grub.texi (History): Expand to cover GRUB 2.
23882 (Serial terminal): Refer to `terminal_input' and `terminal_output'
23883 commands, not `terminal'.
23884 (serial): Likewise.
23885 (terminal_input): New section.
23886 (terminal_output): New section.
23887 (uppermem): New section (stub).
23888 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
23889
6ef0ddb4
CW
238902010-06-08 Colin Watson <cjwatson@ubuntu.com>
23891
23892 * docs/grub.texi (Security): Menu entries are unrestricted by
23893 default, not restricted to superusers as I had previously thought.
23894 Reword to account for this.
23895
e0f4c438
CW
238962010-06-07 Colin Watson <cjwatson@ubuntu.com>
23897
23898 * kern/emu/misc.c (device_mapper_null_log): New function.
23899 (grub_device_mapper_supported): New function.
23900 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
23901 prototype.
23902 * kern/emu/hostdisk.c (find_partition_start): Check whether
23903 device-mapper is supported before trying to use it.
23904 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
23905
da908200
CW
239062010-06-07 Colin Watson <cjwatson@ubuntu.com>
23907
23908 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
23909 (File name syntax): Likewise.
23910 (help): --all is no longer supported in GRUB 2. Be more precise
23911 about pattern matching.
23912
fb55c3ac
CW
239132010-06-07 Colin Watson <cjwatson@ubuntu.com>
23914
23915 * normal/completion.c (grub_normal_do_completion): When completing
23916 arguments to "set" and the current word contains an equals sign,
23917 skip to after the equals sign before starting completion.
23918
258c2573
CW
239192010-06-07 Colin Watson <cjwatson@ubuntu.com>
23920
23921 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
23922
ee75515e
CW
239232010-06-07 Colin Watson <cjwatson@ubuntu.com>
23924
23925 * docs/grub.texi (Network): New section.
23926 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
23927 `(nd)' as in GRUB Legacy.
23928 (pxe_unload): New section.
23929
a6a700aa
CW
239302010-06-07 Colin Watson <cjwatson@ubuntu.com>
23931
23932 * docs/grub.texi (Troubleshooting): `echo' is not usually available
23933 in the rescue shell, so recommend using `set' instead. Thanks,
23934 Jordan Uggla.
23935
4003dd38
CW
239362010-06-07 Colin Watson <cjwatson@ubuntu.com>
23937
23938 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
23939 (password): New section.
23940 (password_pbkdf2): New section.
23941 (search): New section.
23942 (Security): New section.
23943 (Troubleshooting): New section, currently very incomplete.
23944 (Invoking grub-mkpasswd-pbkdf2): New section.
23945 (Internals): New section, currently very incomplete.
23946
e1cbcc40
CW
239472010-06-07 Colin Watson <cjwatson@ubuntu.com>
23948
23949 * util/grub.d/00_header.in: Add some more quoting (of
23950 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
23951 work again.
23952 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
23953
db8fa1ad
CW
239542010-06-07 Colin Watson <cjwatson@ubuntu.com>
23955
23956 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
23957 to `count', fixing variable shadowing that broke the -c option.
23958
239592010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
23960
23961 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
23962 in case they contain spaces.
23963
f28a9212
CW
239642010-06-04 Colin Watson <cjwatson@ubuntu.com>
23965
23966 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
23967 "part_" to partmap module names, in line with grub-install.
23968 Reported by: Jindřich Makovička (Debian bug #584426).
23969
9cdfe32f
CW
239702010-06-04 Colin Watson <cjwatson@ubuntu.com>
23971
23972 * util/grub-mkimage.c: Make target-related error messages slightly
23973 more helpful; -O talks about "format". Explicitly point to the use
23974 of -O if no target is specified.
23975 Reported by: Didier Raboud (Debian bug #584415).
23976
795b593a
CW
239772010-06-03 Colin Watson <cjwatson@ubuntu.com>
23978
23979 * INSTALL: Document several build requirements for optional features
23980 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
23981
9d9b5833
GS
239822010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
23983
23984 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
23985 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
23986 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
23987
0819fec8
CW
239882010-06-02 Colin Watson <cjwatson@ubuntu.com>
23989
23990 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
23991 Thanks to Jordan Uggla for spotting this.
23992
49396b4f
VS
239932010-06-02 Aleš Nesrsta <starous@volny.cz>
23994
23995 Finally make USB usable.
23996
23997 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
23998 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
23999 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
24000 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
24001 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
24002 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
24003 (GRUB_OHCI_FSMPS): Likewise.
24004 (GRUB_OHCI_PERIODIC_START): Likewise.
24005 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
24006 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
24007 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
24008 (GRUB_OHCI_SET_PORT_RESET): Likewise.
24009 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
24010 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
24011 (grub_ohci_transaction): Likewise.
24012 (grub_ohci_transfer): Improve condition detection algorithms.
24013 Handle toggle property. Program the transactions correctly.
24014 Improve error handling. Various important fixups.
24015 (grub_ohci_portstatus): Put register writes in right order.
24016 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
24017 (grub_uhci_transfer): Don't show "failed" message on success.
24018 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
24019 array.
24020 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
24021 determine its size.
24022 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
24023 before initialization is completed. Use IN direction for empty
24024 transfers. Use last_trans and compute toggle.
24025 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
24026 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
24027 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
24028 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
24029 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
24030 (grub_usb_device): Increase toggle to 256.
24031 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
24032 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
24033 GRUB_USBMS_SUBCLASS_SFF8070.
24034 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
24035 (grub_scsi_inquiry): New member page and alloc_length.
24036 (grub_scsi_request_sense): New structure.
24037 (grub_scsi_request_sense_data): Likewise.
24038 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
24039 control.
24040 * disk/scsi.c (grub_scsi_request_sense): New function.
24041 (grub_scsi_test_unit_ready): Likewise.
24042 (grub_scsi_inquiry): Fill new fields.
24043 (grub_scsi_read_capacity): Likewise.
24044 (grub_scsi_read10): Add request sense at the end.
24045 (grub_scsi_read12): Likewise.
24046 (grub_scsi_write10): Likewise.
24047 (grub_scsi_write12): Likewise.
24048 (grub_scsi_open): Add Test Unit Ready.
24049 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
24050 Support additional subclasses. Con't clear halt yet. Activate the
24051 proper config. Calculate LUNs correctly.
24052 (grub_usbms_transfer): Various important fixups.
24053
240542010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24055
24056 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
24057 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
24058 (grub_ohci_fini_hw): New function.
24059 (grub_ohci_restore_hw): Likewise.
24060 (GRUB_MOD_INIT(ohci)): Register preboot hook.
24061 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
24062 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
24063
240642010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24065
24066 Dedicated DMA allocations.
24067
24068 * bus/pci.c (grub_memalign_dma32): New function
24069 (grub_dma_free): Likewise.
24070 (grub_dma_get_virt): Likewise.
24071 (grub_dma_get_phys): Likewise.
24072 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
24073 (grub_ohci_pci_iter): Use dma32_alloc.
24074 (grub_ohci_transfer): Likewise.
24075 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24076 (grub_usb_bulk_readwrite): Likewise.
24077 * include/grub/pci.h: Add declarations.
24078
240792010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24080
24081 CS5536 support.
24082
24083 * bus/cs5536.c: New file.
24084 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
24085 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
24086 (cs5536_mod_SOURCES): New variable.
24087 (cs5536_mod_CFLAGS): Likewise.
24088 (cs5536_mod_LDFLAGS): Likewise.
24089 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
24090 machine/pci.h.
24091 (kernel_img_SOURCES): Add bus/cs5536.c.
24092 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
24093 usb_keyboard.mod.
24094 (usb_mod_SOURCES): New variable.
24095 (usb_mod_CFLAGS): New variable.
24096 (usb_mod_LDFLAGS): New variable.
24097 (usbtest_mod_SOURCES): New variable.
24098 (usbtest_mod_CFLAGS): New variable.
24099 (usbtest_mod_LDFLAGS): New variable.
24100 (ohci_mod_SOURCES): New variable.
24101 (ohci_mod_CFLAGS): New variable.
24102 (ohci_mod_LDFLAGS): New variable.
24103 (usbms_mod_SOURCES): New variable.
24104 (usbms_mod_CFLAGS): New variable.
24105 (usbms_mod_LDFLAGS): New variable.
24106 (usb_keyboard_mod_SOURCES): New variable.
24107 (usb_keyboard_mod_CFLAGS): New variable.
24108 (usb_keyboard_mod_LDFLAGS): New variable.
24109 * include/grub/smbus.h: New file.
24110 * include/grub/cs5536.h: New file.
24111
0b35b2a9
CW
241122010-06-02 Colin Watson <cjwatson@ubuntu.com>
24113
24114 * util/grub.d/00_header.in: Add safety check to make sure that
24115 ${locale_dir} exists before trying to probe it.
24116
ca0afd5b
CW
241172010-06-02 Colin Watson <cjwatson@ubuntu.com>
24118
24119 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
24120 per the GNU Coding Standards; this is now too obscure to be worth
24121 documenting.
24122 (QNX): Likewise.
24123 (chainloader): Remove cross-reference to `SCO UnixWare'.
24124
1c41aa78
CW
241252010-06-02 Colin Watson <cjwatson@ubuntu.com>
24126
24127 * docs/grub.texi (Chain-loading): New section.
24128 (DOS/Windows): New section, borrowed from GRUB Legacy with details
24129 adjusted for GRUB 2.
24130 (SCO UnixWare): Likewise.
24131 (QNX): Likewise.
24132 (chainloader): Add reference to `Block list syntax'.
24133 (drivemap): New section.
24134 (parttool): New section.
24135
bb8ea0f5
CW
241362010-06-02 Colin Watson <cjwatson@ubuntu.com>
24137
24138 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
24139 the grub shell'.
24140 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
24141 (Installing GRUB using grub-install): Remove reference to the grub
24142 shell; mention `grub-mkimage' and `grub-setup' instead.
24143 (Invoking grub-install): Likewise.
24144 (Interface): Add reference to `Menu entry editor'.
24145 (serial): Remove `--device' option.
24146
288dd6ed
CW
241472010-06-02 Colin Watson <cjwatson@ubuntu.com>
24148
24149 * docs/grub.texi (Configuration): New section, documenting
24150 configuration file generation using grub-mkconfig. I've left a slot
24151 for documenting the full shell scripting format but have not yet
24152 started on writing that up.
24153 (Invoking grub-mkconfig): New section.
24154
34c9f0e9
CW
241552010-06-02 Colin Watson <cjwatson@ubuntu.com>
24156
24157 * docs/grub.texi (direntry): Remove grub-terminfo reference.
24158 (GNU GRUB manual): Likewise.
24159 (General commands): Update description of `terminfo' for GRUB 2.
24160
9121567e
CW
241612010-06-02 Colin Watson <cjwatson@ubuntu.com>
24162
24163 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
24164 (GRUB_MOD_INIT): Fix capitalisation.
24165 * docs/grub.texi (Command-line and menu entry commands): Document
24166 gettext and gptsync commands.
24167
ab631611
CW
241682010-06-02 Colin Watson <cjwatson@ubuntu.com>
24169
24170 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
24171 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
24172
bde4a9ac
CW
241732010-06-01 Colin Watson <cjwatson@ubuntu.com>
24174
24175 Add btrfs probing support, currently only in the single-device case.
24176
24177 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
24178 function.
24179 (grub_guess_root_device): Call find_root_device_from_mountinfo
24180 before looking in /dev.
24181
b1d17e10
VS
241822010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24183
24184 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
24185 GRUB_DISK_SIZE_UNKNOWN.
24186 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
24187
dfbfe004
JS
241882010-05-31 Jiro SEKIBA <jir@unicus.jp>
24189
24190 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
24191 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
24192 corrupted or not synced properly.
24193
c2ffc8e9
VS
241942010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24195
24196 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
24197 Reported by: Seth Goldberg.
24198
56293166
VS
241992010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24200
24201 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
24202 addition of dest.
24203 Reported by: Seth Goldberg.
24204
7620e7de
VS
242052010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24206
24207 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
24208 Reported by: Seth Goldberg.
24209
c837af3f
VS
242102010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24211
24212 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
24213 64-bit address as signed on MIPS.
24214
c7c75cf4
CW
242152010-05-28 Colin Watson <cjwatson@ubuntu.com>
24216
24217 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
24218 to the empty string.
24219
fa4b8490
BC
242202010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
24221
24222 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
24223
24224 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
24225 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
24226 * kern/misc.c (__enable_execute_stack): Disable on
24227 GRUB_MACHINE_EMU.
24228
a33075b9
CW
242292010-05-28 Colin Watson <cjwatson@ubuntu.com>
24230
24231 Make grub-probe work with symbolic links under /dev/mapper as well
24232 as with real block devices. The Linux world seems to be (at best)
24233 in transition here, and GRUB shouldn't get caught in the middle.
24234
24235 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
24236 /dev/mapper.
24237
d8708134
CW
242382010-05-27 Colin Watson <cjwatson@ubuntu.com>
24239
24240 * util/grub-script-check.c (main): Ensure defined behaviour on empty
24241 input files (in which case exit zero).
24242
db2102a0
CW
242432010-05-27 Colin Watson <cjwatson@ubuntu.com>
24244
24245 * kern/emu/misc.c (canonicalize_file_name): realpath can still
24246 return NULL for various reasons even if it has a maximum-length
24247 buffer: for example, there might be a symlink loop, or the path
24248 might exceed PATH_MAX. If this happens, return NULL.
24249
5fdba519
RM
242502010-05-27 Robert Millan <rmh@gnu.org>
24251
24252 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
24253 partmap module to handle cross-partmap setups.
24254 Reported by Orestes Mas. Gràcies!
24255
d1d368e4
CW
242562010-05-27 Colin Watson <cjwatson@ubuntu.com>
24257
24258 * util/grub-mkrescue.in: Initialise override_dir rather than
24259 assuming that it's unset or empty in the environment.
24260
95ac3c73
GS
242612010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
24262
24263 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
24264 variable index into p_index to suppress a warning with -Wshadow.
24265
7d8c0213
BC
242662010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
24267
24268 * INSTALL: Added flex >= 2.5.35 requirement.
24269
db4d5813
VS
242702010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24271
24272 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
24273
f24f4300
VS
242742010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24275
24276 cmostest support.
24277
24278 * commands/i386/cmostest.c: New file.
24279 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
24280 (cmostest_mod_SOURCES): New variable.
24281 (cmostest_mod_CFLAGS): Likewise.
24282 (cmostest_mod_LDFLAGS): Likewise.
24283 * conf/i386-pc.rmk: Likewise.
24284 * docs/grub.texi (Vendor power-on keys): New section.
24285 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
24286 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
24287 and GRUB_BUTTON_CMOS_ADDRESS.
24288 * util/grub.d/00_header.in: Handle powering-on by separate button.
24289
ad603f61
VS
242902010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24291
24292 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
24293 Removed drawing_scrollbar argument. All users updated
24294 Fixes #29792.
24295 Reported by Jo Shields
24296
3ecb080a
VS
242972010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24298
24299 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
24300 buffer since gfxterm handles double repaint.
24301
5f2316c1
VS
243022010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24303
24304 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
24305 * term/gfxterm.c (real_scroll): Likewise.
24306
9a25f885
VS
243072010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24308
24309 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
24310 before calling BIOS.
24311
39fbb79a
VS
243122010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24313
24314 * include/grub/i18n.h: Always enable grub_gettext.
24315
228cfa97
VS
243162010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24317
24318 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
24319 partition naming style.
24320
21717c8f
CW
243212010-05-21 Colin Watson <cjwatson@ubuntu.com>
24322
24323 * util/grub-mkconfig.in: Fix handling of -o so that it works when
24324 not the first option.
24325
c0f48e65
CW
243262010-05-20 Colin Watson <cjwatson@ubuntu.com>
24327
24328 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
24329
96779aec
CW
243302010-05-20 Colin Watson <cjwatson@ubuntu.com>
24331
24332 * util/misc.c: Move inclusion of <limits.h> to ...
24333 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
24334
fa9d256e
GS
243352010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
24336
24337 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
24338 Fix merge error in NetBSD code.
24339 (find_partition_start) [__NetBSD__]: Likewise.
24340
123b7a85
BC
243412010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
24342
24343 Fix grub-mkrescue usage unit testing.
24344
24345 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
24346
74276c0d
CF
243472010-05-18 Christian Franke <franke@computer.org>
24348
24349 * util/grub.d/10_windows.in: Use path names instead of
24350 drive letters to prevent warning from Cygwin 1.7.
24351 Add drivemap command to menuentry if needed.
24352
c4f7b523
ST
243532010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
24354
24355 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
24356 gnumach and gnumach.gz.
24357
95b97950
VS
243582010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24359
24360 * include/grub/i18n.h (gettext): Inline instead of using #define.
24361 (grub_gettext): Likewise.
24362 (_): Likewise.
24363
01b8d2d7
VS
243642010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24365
24366 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
24367 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
24368 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
24369 (main): Add a slash after pkglibdirroot.
24370
654e1d1e
VS
243712010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24372
24373 * util/grub-install.in: Add missing "in" keyword.
24374
26966aeb
VS
243752010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24376
24377 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
24378 Reported by: Seth Goldberg.
24379
75006747
VS
243802010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24381
24382 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
24383
74cbf5bd
CW
243842010-05-18 Colin Watson <cjwatson@ubuntu.com>
24385
24386 * configure.ac: Check for Linux device-mapper support.
24387
24388 * util/hostdisk.c (device_is_mapped): New function.
24389 (find_partition_start): New function, partly broken out from
24390 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
24391 device-mapper support added.
24392 (linux_find_partition): Use find_partition_start.
24393 (convert_system_partition_to_system_disk): Add `st' argument.
24394 Support Linux /dev/mapper/* devices if device-mapper support is
24395 available; only DM-RAID devices are understood at present.
24396 (find_system_device): Add `st' argument. Pass it to
24397 convert_system_partition_to_system_disk.
24398 (grub_util_biosdisk_get_grub_dev): Pass stat result to
24399 find_system_device and convert_system_partition_to_system_disk. Use
24400 find_partition_start.
24401
24402 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
24403 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
24404 * util/deviceiter.c [__linux__]: Define MINOR.
24405 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
24406 * util/mkdevicemap.c (grub_putchar): New function.
24407 (grub_getkey): New function.
24408 (grub_refresh): New function.
24409 (main): Set debug=all if -v -v is used.
24410
355b51e9
CW
244112010-05-18 Colin Watson <cjwatson@ubuntu.com>
24412
24413 Fix build with non-GNU libcs.
24414
24415 * util/misc.c (canonicalize_file_name): Move to ...
24416 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
24417 grub_make_system_path_relative_to_its_root.
24418
7fb5c25f
CW
244192010-05-18 Colin Watson <cjwatson@ubuntu.com>
24420
24421 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
24422 we handle finding grub-mkimage. Default to finding grub-mkimage in
24423 ${bindir} with program_transform_name applied, and provide a
24424 --grub-mkimage option to override this.
24425
1d3293d6
VS
244262010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24427
24428 Remove grub-mkisofs.
24429
24430 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
24431 (grub_mkisofs_SOURCES): Removed.
24432 (grub_mkisofs_CFLAGS): Removed.
24433 * util/mkisofs/defaults.h: Removed.
24434 * util/mkisofs/eltorito.c: Likewise.
24435 * util/mkisofs/exclude.h: Likewise.
24436 * util/mkisofs/hash.c: Likewise.
24437 * util/mkisofs/include/: Likewise.
24438 * util/mkisofs/include/fctldefs.h: Likewise.
24439 * util/mkisofs/include/mconfig.h: Likewise.
24440 * util/mkisofs/include/prototyp.h: Likewise.
24441 * util/mkisofs/include/statdefs.h: Likewise.
24442 * util/mkisofs/iso9660.h: Likewise.
24443 * util/mkisofs/joliet.c: Likewise.
24444 * util/mkisofs/match.c: Likewise.
24445 * util/mkisofs/match.h: Likewise.
24446 * util/mkisofs/mkisofs.c: Likewise.
24447 * util/mkisofs/mkisofs.h: Likewise.
24448 * util/mkisofs/msdos_partition.h: Likewise.
24449 * util/mkisofs/multi.c: Likewise.
24450 * util/mkisofs/name.c: Likewise.
24451 * util/mkisofs/rock.c: Likewise.
24452 * util/mkisofs/tree.c: Likewise.
24453 * util/mkisofs/write.c: Likewise.
24454
5dde9afe
VS
244552010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24456
24457 Unify grub-mkimage accross platforms.
24458
24459 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
24460 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
24461 (grub_mkelfimage_SOURCES): Removed.
24462 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
24463 (util/grub-mkimage.c_DEPENDENCIES): .. this.
24464 (bin_UTILITIES): Add grub-mkimage.
24465 (grub_mkimage_SOURCES): New variable.
24466 (kernel_img_HEADERS): Remove machine/kernel.h.
24467 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
24468 (pkglib_PROGRAMS): Add kernel.img.
24469 (kernel_img_HEADERS): Add machine/kernel.h.
24470 (kernel_img_FORMAT): Removed.
24471 (bin_UTILITIES): Remove grub-mkimage.
24472 (grub_mkimage_SOURCES): Removed.
24473 (grub_mkimage_CFLAGS): Likewise.
24474 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24475 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
24476 (pkglib_PROGRAMS): Add kernel.img.
24477 (bin_UTILITIES): Remove grub-mkimage.
24478 (grub_mkimage_SOURCES): Removed.
24479 (grub_mkimage_CFLAGS): Likewise.
24480 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24481 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
24482 (pkglib_PROGRAMS): Add kernel.img.
24483 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
24484 (pkglib_PROGRAMS): Add kernel.img.
24485 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
24486 (grub_mkimage_SOURCES): Removed.
24487 (grub_mkimage_CFLAGS): Likewise.
24488 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24489 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
24490 (pkglib_PROGRAMS): Add kernel.img.
24491 (bin_UTILITIES): Remove grub-mkimage.
24492 (grub_mkimage_SOURCES): Removed.
24493 (grub_mkimage_CFLAGS): Likewise.
24494 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24495 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
24496 (grub_mkimage_SOURCES): Removed.
24497 (grub_mkimage_CFLAGS): Likewise.
24498 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
24499 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
24500 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
24501 (grub_pe32_optional_header): ... this.
24502 (grub_pe64_optional_header): ... and this. All users updated.
24503 (GRUB_PE32_PE32_MAGIC): Split into ..
24504 (GRUB_PE32_PE32_MAGIC): .. this.
24505 (GRUB_PE32_PE64_MAGIC): .. and this.
24506 (GRUB_PE32_SIGNATURE_SIZE): New definition.
24507 * include/grub/elf.h (PT_GNU_STACK): New definition.
24508 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
24509 * include/grub/i386/efi/kernel.h: Likewise.
24510 * include/grub/i386/kernel.h: Likewise.
24511 * include/grub/i386/pc/kernel.h: Likewise.
24512 * include/grub/i386/qemu/boot.h: Likewise.
24513 * include/grub/mips/kernel.h: Likewise.
24514 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24515 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
24516 * include/grub/powerpc/kernel.h: Likewise.
24517 * include/grub/sparc64/ieee1275/boot.h: Likewise.
24518 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24519 * include/grub/sparc64/kernel.h: Likewise.
24520 * include/grub/x86_64/efi/kernel.h: Likewise.
24521 * include/grub/x86_64/kernel.h: Likewise.
24522 * include/grub/offsets.h: New file.
24523 * include/grub/kernel.h (grub_module_info): Split into ...
24524 (grub_module_info32): ... this.
24525 (grub_module_info64): ... and this.
24526 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
24527 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
24528 (grub_boot_blocklist): Moved from here ...
24529 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
24530 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
24531 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
24532 * include/grub/types.h (grub_target_to_host16): Removed.
24533 (grub_target_to_host32): Likewise.
24534 (grub_target_to_host64): Likewise.
24535 (grub_host_to_target16): Likewise.
24536 (grub_host_to_target32): Likewise.
24537 (grub_host_to_target64): Likewise.
24538 (grub_host_to_target_addr): Likewise.
24539
24540 Support grub-mkrescue for efi, coreboot and qemu.
24541
24542 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
24543 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
24544 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
24545 * util/grub-mkrawimage.c: Moved from here ...
24546 * util/grub-mkimage.c: ... here. All users updated.
24547 (ALIGN_ADDR): Use image_target.
24548 (TARGET_NO_FIELD): New const.
24549 (image_target_desc): New type.
24550 (image_targets): New array.
24551 (grub_target_to_host64): Use image_target.
24552 (grub_target_to_host32): Likewise.
24553 (grub_target_to_host16): Likewise.
24554 (grub_host_to_target64): Likewise.
24555 (grub_host_to_target32): Likewise.
24556 (grub_host_to_target16): Likewise.
24557 (grub_host_to_target_addr): Likewise.
24558 (generate_image): Handle multiimage.
24559 (main): Require -O parameter. All users updated.
24560 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
24561 util/efi/grub-mkimage.c
24562 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
24563 New option --rom-directory.
24564 Use xorriso.
24565 * util/i386/efi/grub-mkimage.c: Removed.
24566 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
24567 (grub_target_to_host32): Likewise.
24568 (grub_target_to_host64): Likewise.
24569 (grub_host_to_target16): Likewise.
24570 (grub_host_to_target32): Likewise.
24571 (grub_host_to_target64): Likewise.
24572 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
24573 (grub_target_to_host32): Likewise.
24574 (grub_target_to_host64): Likewise.
24575 (grub_host_to_target16): Likewise.
24576 (grub_host_to_target32): Likewise.
24577 (grub_host_to_target64): Likewise.
24578
f4fc97d0
BC
245792010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
24580
24581 Source tree is reorganized for emu build.
24582
24583 * include/grub/util/console.h: Move from here...
24584 * include/grub/emu/console.h: ...to here.
24585 * include/grub/util/getroot.h: Move from here...
24586 * include/grub/emu/getroot.h: ...to here.
24587 * include/grub/util/hostdisk.h: Move from here...
24588 * include/grub/emu/hostdisk.h: ...to here.
24589 * util/console.c: Move from here...
24590 * kern/emu/console.c: ...to here.
24591 * util/getroot.c: Move from here...
24592 * kern/emu/getroot.c: ...to here.
24593 * util/grub-emu.c: Move from here...
24594 * kern/emu/main.c: ...to here.
24595 * util/hostdisk.c: Move from here...
24596 * kern/emu/hostdisk.c: ...to here.
24597 * util/hostfs.c: Move from here...
24598 * kern/emu/hostfs.c: ...to here.
24599 * util/mm.c: Move from here...
24600 * kern/emu/mm.c: ...to here.
24601 * util/pci.c: Move from here...
24602 * bus/emu/pci.c: ...to here.
24603 * util/sdl.c: Move from here...
24604 * video/emu/sdl.c: ...to here.
24605 * util/time.c: Move from here...
24606 * kern/emu/time.c: ...to here.
24607 * util/usb.c: Move from here...
24608 * bus/usb/emu/usb.c: ...to here.
24609
24610 * include/grub/emu/misc.h: New header for grub-emu functions.
24611 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
24612
24613 * conf/any-emu.rmk: Rule updates for above renames.
24614 * conf/common.rmk: Likewise.
24615 * conf/i386-pc.rmk: Likewise.
24616 * conf/i386-qemu.rmk: Likewise.
24617 * conf/mips.rmk: Likewise.
24618 * conf/sparc64-ieee1275.rmk: Likewise.
24619 * conf/x86-efi.rmk: Likewise.
24620
24621 * disk/lvm.h: #include updates for above renames.
24622 * util/grub-mkrelpath.c: Likewise.
24623 * util/grub-probe.c: Likewise.
24624 * util/i386/pc/grub-setup.c: Likewise.
24625 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24626 * kern/emu/console.c: Likewise.
24627 * kern/emu/getroot.c: Likewise.
24628 * kern/emu/hostdisk.c: Likewise.
24629 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
24630
24631 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
24632 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
24633 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
24634 * util/misc.c: Remove grub-emu functions.
24635
cced9145
VS
246362010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
24637
24638 Fix gfxmenu crash.
24639 Reported by: Thorsten Grützmacher.
24640
24641 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
24642 timeout hook.
24643 (circprog_set_property): Register and unregister timeout hook.
24644 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
24645 (label_destroy): Free template. and unregister hook.
24646 (label_set_state): New function.
24647 (label_set_property): Handle templates and hooks.
24648 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
24649 timeout hook.
24650 (progress_bar_set_property): Register and unregister timeout hook.
24651 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
24652 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
24653 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
24654 (update_timeout_visit): Removed.
24655 (update_timeouts): New function.
24656 (redraw_timeouts): Likewise.
24657 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
24658 (grub_gfxmenu_clear_timeout): Likewise.
24659 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
24660 (grub_gfxmenu_timeout_notify): Likewise.
24661 (grub_gfxmenu_timeout_notifications): New external variable.
24662 (grub_gfxmenu_timeout_register): New function.
24663 (grub_gfxmenu_timeout_unregister): Likewise.
24664
c6e5caab
VS
246652010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24666
24667 Transform (broken) vga terminal into (working) vga video driver.
24668
24669 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
24670 video/i386/pc/vga.c.
24671 * include/grub/video.h (grub_video_driver_id):
24672 Add GRUB_VIDEO_DRIVER_VGA.
24673 * term/i386/pc/vga.c: Renamed to ...
24674 * video/i386/pc/vga.c: ...this
24675 (DEBUG_VGA): Removed.
24676 (CHAR_WIDTH): Likewise.
24677 (CHAR_HEIGHT): Likewise.
24678 (TEXT_WIDTH): Likewise.
24679 (TEXT_HEIGHT): Likewise.
24680 (DEFAULT_FG_COLOR): Likewise.
24681 (DEFAULT_BG_COLOR): Likewise.
24682 (colored_char): Likewise.
24683 (xpos): Likewise.
24684 (ypos): Likewise.
24685 (cursor_state): Likewise.
24686 (fg_color): Likewise.
24687 (bg_color): Likewise.
24688 (text_buf): Likewise.
24689 (page): Likewise.
24690 (font): Likewise.
24691 (framebuffer): New variable.
24692 (set_read_map): Disabled.
24693 (setup): New variable.
24694 (is_target): Likewise.
24695 (grub_vga_mod_init): Likewise.
24696 (grub_vga_mod_fini): Likewise.
24697 (check_vga_mem): Likewise.
24698 (write_char): Likewise.
24699 (write_cursor): Likewise.
24700 (scroll_up): Likewise.
24701 (grub_vga_putchar): Likewise.
24702 (grub_vga_getcharwidth): Likewise.
24703 (grub_vga_getwh): Likewise.
24704 (grub_vga_getxy): Likewise.
24705 (grub_vga_gotoxy): Likewise.
24706 (grub_vga_cls): Likewise.
24707 (grub_vga_setcolorstate): Likewise.
24708 (grub_vga_setcursor): Likewise.
24709 (grub_video_vga_init): New function.
24710 (grub_video_vga_setup): Likewise.
24711 (grub_video_vga_fini): Likewise.
24712 (update_target): Likewise.
24713 (grub_video_vga_blit_bitmap): Likewise.
24714 (grub_video_vga_blit_render_target): Likewise.
24715 (grub_video_vga_set_active_render_target): Likewise.
24716 (grub_video_vga_get_active_render_target): Likewise.
24717 (grub_video_vga_swap_buffers): Likewise.
24718 (grub_video_vga_set_palette): Likewise.
24719 (grub_video_vga_get_info_and_fini): Likewise.
24720 (grub_vga_term): Removed.
24721 (grub_video_vga_adapter): New variable.
24722 (GRUB_MOD_INIT): Register a video driver instead of terminal.
24723 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
24724
2bf61a98
VS
247252010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24726
24727 * video/readers/jpeg.c: Indented.
24728
09ddcd11
VS
247292010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24730
24731 Various jpeg cleanups.
24732
24733 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
24734 (grub_jpeg_decode_quan_table): Use sizeof.
24735 (grub_jpeg_decode_du): Use ARRAY_SIZE.
24736
e5507505
PH
247372010-05-05 Peter Hurley <No e-mail available> (tiny change)
24738
24739 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
24740 tables. Ignore non-last ac bit.
24741 (grub_jpeg_decode_quan_table): Likewise.
24742
7e720a9b
VS
247432010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24744
24745 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
24746 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
24747 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24748 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
24749 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
24750 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
24751
a7fc080b
VS
247522010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24753
24754 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
24755 error.
24756
2bf6012d
VS
247572010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24758
24759 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
24760
265d68cd
VS
247612010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24762
24763 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
24764 condition.
24765
247662010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
24767
24768 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
24769 part.
24770
265d68cd 247712010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
24772
24773 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
24774 pointers.
24775
265d68cd 247762010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
24777
24778 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
24779
d1b61374
CF
247802010-05-01 Christian Franke <franke@computer.org>
24781
24782 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
24783 Remove broken Cygwin path conversion.
24784 * util/misc.c: [__CYGWIN__] Add include and define.
24785 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
24786 for Cygwin 1.7.
24787 (make_system_path_relative_to_its_root): Simplify loop, replace early
24788 return by break.
24789 [__CYGWIN__] Add conversion to win32 path.
24790 Include "/" case in trailing slash removal.
24791
3558c6e9
VS
247922010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24793
24794 * kern/main.c (grub_load_config): Fix copy-pasted comment.
24795 Reported by: Seth Goldberg
24796
f5f3ff93
VS
247972010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24798
24799 * commands/help.c (grub_cmd_help): Fix a typo.
24800 Reported by: Seth Goldberg
24801
d8b5cd40
VS
248022010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24803
24804 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
24805 name and add N_.
24806 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
24807 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
24808 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
24809 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
24810 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
24811 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
24812 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
24813 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
24814 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
24815 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24816 * normal/context.c (GRUB_MOD_INIT): Likewise.
24817 * normal/main.c (GRUB_MOD_INIT): Likewise.
24818 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
24819 * term/serial.c (GRUB_MOD_INIT): Likewise.
24820 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
24821
88c14915
VS
248222010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24823
24824 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
24825 extra == 0.
24826
165134bc
VS
248272010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24828
24829 * commands/iorw.c: New file.
24830 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
24831 (iorw_mod_SOURCES): New variable.
24832 (iorw_mod_CFLAGS): Likewise.
24833 (iorw_mod_LDFLAGS): Likewise.
24834
c5ac9b32
VS
248352010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24836
24837 Hotkey support
24838
24839 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
24840 * normal/main.c (hotkey_aliases): New variable.
24841 (grub_normal_add_menu_entry): Parse "--hotkey".
24842 * normal/menu_text.c (run_menu): Handle hotkeys.
24843
ce60689c
VS
248442010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24845
24846 * kern/i386/coreboot/init.c (grub_machine_init): Call
24847 grub_machine_mmap_init on qemu.
24848
0359d006
VS
248492010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24850
24851 * boot/i386/qemu/boot.S: Add a missing .code16.
24852
7819a456
VS
248532010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24854
24855 Use LBIO on coreboot.
24856
24857 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
24858 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
24859 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
24860 New declaration.
24861 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
24862 grub_machine_mmap_init on coreboot.
24863 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
24864 GRUB_LINUXBIOS_MEMBER_LINK.
24865 (grub_machine_mmap_iterate): Fix declaration.
24866 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
24867
7210dca9
VS
248682010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24869
24870 Split coreboot and multiboot ports.
24871
24872 * conf/i386-multiboot.rmk: New file.
24873 * configure.ac: Add multiboot port.
24874 * include/grub/i386/multiboot/boot.h: New file.
24875 * include/grub/i386/multiboot/console.h: Likewise.
24876 * include/grub/i386/multiboot/init.h: Likewise.
24877 * include/grub/i386/multiboot/kernel.h: Likewise.
24878 * include/grub/i386/multiboot/loader.h: Likewise.
24879 * include/grub/i386/multiboot/memory.h: Likewise.
24880 * include/grub/i386/multiboot/serial.h: Likewise.
24881 * include/grub/i386/multiboot/time.h: Likewise.
24882 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
24883 * loader/multiboot.c: Likewise.
24884 * loader/multiboot_mbi2.c: Likewise.
24885 * util/grub-mkrescue.in: Generate multiboot rescue.
24886
6f8aaf68
VS
248872010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24888
3080f7a7
VS
24889 * kern/parser.c (grub_parser_execute): Cope with read-only config.
24890
248912010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24892
24893 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
24894
24895 * commands/terminal.c (abstract_terminal): New struct.
24896 (handle_command): New function. Based on grub_cmd_terminal_input.
24897 (grub_cmd_terminal_input): Use handle_command.
24898 (grub_cmd_terminal_output): Use handle_command.
24899
a8ebb841
BC
249002010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
24901
24902 Fix comment handling.
24903
24904 * tests/grub_script_comments.in: New testcase.
24905 * conf/tests.rmk: Rules for new testcase.
24906 * script/yylex.l: Updated flex rules.
24907
bb06ba08
ST
249082010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
24909
24910 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
24911 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
24912 if argc is 1.
bb06ba08 24913
cc9d2425
VS
249142010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24915
24916 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
24917 autogen issues.
24918
460d8402
CF
249192010-04-26 Christian Franke <franke@computer.org>
24920
24921 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
24922 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
24923 (grub_get_prefix): Remove function.
24924 * util/grub-emu.c (main): Replace grub_get_prefix () call by
24925 make_system_path_relative_to_its_root ().
24926 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24927
553c01f9
CF
249282010-04-24 Christian Franke <franke@computer.org>
24929
24930 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
24931 (kernel_img_LDFLAGS): Remove -static-libgcc.
24932
2aec1692
CF
249332010-04-24 Christian Franke <franke@computer.org>
24934
24935 * configure.ac: Do not CHECK_BSS_START_SYMBOL
24936 and CHECK_END_SYMBOL if grub-emu is built.
24937 Unset TARGET_OBJ2ELF if grub-emu is built
24938 without module support.
24939
f67dc308
JS
249402010-04-24 Jiro SEKIBA <jir@unicus.jp>
24941
24942 Nilfs2 support.
24943
24944 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
24945 (grub_fstest_SOURCES): Likewise.
24946 (pkglib_MODULES): Add nilfs2.mod.
24947 (nilfs2_mod_SOURCES): New variable.
24948 (nilfs2_mod_CFLAGS): Likewise.
24949 (nilfs2_mod_LDFLAGS): Likewise.
24950 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
24951 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
24952 * fs/nilfs2.c: New file.
24953
4ba8d354
VS
249542010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
24955
24956 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
24957 is not supported.
24958
0d2c20c6
GS
249592010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
24960
24961 Add grub-mkconfig support for NetBSD.
24962
24963 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
24964 * util/grub-mkconfig.in: export new NetBSD specific variables.
24965 * po/POTFILES-shell: added 10_netbsd.in.
24966 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
24967
bc4a2d83
BC
249682010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
24969
24970 Fix emu build with grub-emu-pci and grub-emu-modules.
24971
24972 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
24973 functions.
24974 * include/grub/libpciaccess.h: New file.
24975 * conf/any-emu.rmk: Update kernel headers for emu build.
24976
f48c87aa
VS
249772010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24978
24979 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
24980
18959385
VS
249812010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24982
24983 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
24984
0037de3f
VS
249852010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
24986
24987 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
24988 Retrieve chosen/bootpath if bootpath isn't hardcoded.
24989 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
24990 util/ieee1275/ofpath.c.
24991 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
24992 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
24993 * include/grub/sparc64/ieee1275/boot.h
24994 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
24995 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
24996 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
24997 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
24998 const char *.
24999 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
25000 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
25001 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
25002 install.
25003
38e55e90
GS
250042010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
25005
25006 * util/grub-mkconfig.in: Corrected two == equality tests.
25007 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
25008 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
25009 expect a number appended to it.
25010 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
25011 expects a number appended to it.
25012
a9e6ff28
VS
250132010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25014
25015 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
25016
0b830b8f
VS
250172010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25018
25019 * util/hostdisk.c (make_device_name): Change to new partition naming.
25020
0973daeb
VS
250212010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
25022
25023 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
25024
460d8402 250252010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
25026
25027 * Makefile.in: Add missing localedir setting.
25028
0b456309
CW
250292010-04-14 Colin Watson <cjwatson@ubuntu.com>
25030
25031 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
25032 mistake in r2156. Noticed by Anthony Fok.
25033
25034 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
25035 @localedir@.
25036 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
25037
08f46d62
BC
250382010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
25039
25040 Fix a spurious, uninitialized variable warning.
25041
25042 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
25043 Initialize variable, shdr.
25044 (grub_freebsd_load_elfmodule): Likewise.
25045 (grub_freebsd_load_elf_meta): Likewise.
25046
8c4a72d4
BC
250472010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
25048
25049 Fix for escaped dollar in double quoted strings.
25050
25051 * script/yylex.l: Updated flex rules.
25052 * conf/tests.rmk: Rule for new testcase.
25053 * tests/grub_script_dollar.in: New testcase.
25054
ce44826e
CPE
250552010-04-13 Carles Pina i Estany <carles@pina.cat>
250562010-04-13 Colin Watson <cjwatson@ubuntu.com>
25057
25058 Enclose all translated strings in grub.cfg in single quotes, and
25059 escape them appropriately (Ubuntu bug #552921).
25060
25061 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
25062 * util/grub.d/10_hurd.in: Use it.
25063 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
25064 * util/grub.d/10_linux.in (linux_entry): Likewise.
25065
4b0cd8f8
VS
250662010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25067
25068 Fix cygwin compilation.
25069
25070 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
25071 * include/grub/misc.h (__register_frame_info)
25072 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
25073 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25074 * kern/misc.c (__register_frame_info)
25075 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
25076 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25077
01fcf061
VS
250782010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25079
25080 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
25081
5d04b11e
VS
250822010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25083
25084 Unify libgcc processing.
25085
25086 * Makefile.in (kernel_img_LDFLAGS): New variable.
25087 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
25088 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
25089 overwriting.
25090 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
25091 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
25092 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
25093 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
25094 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
25095 overwriting. Remove -lgcc and -static-libgcc
25096 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
25097 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25098 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25099 (kernel_img_LDFLAGS): Append instead of overwriting.
25100 Remove -lgcc and -static-libgcc
25101 * conf/sparc64-ieee1275.rmk: Likewise.
25102 * include/grub/powerpc/libgcc.h: Move to ...
25103 * include/grub/libgcc.h: .. this.
25104 * include/grub/libgcc.h: Don't export most of the function on x86.
25105 (__bswapsi2): New export.
25106 (__bswapdi2): Likewise.
25107 * include/grub/mips/libgcc.h: Removed.
25108 * include/grub/sparc64/libgcc.h: Likewise.
25109
b7f3ac29
VS
251102010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25111
25112 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
25113 disk_info_msg (conflicts with gettexting into languages with cases).
25114
2c7031b1
GS
251152010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
25116
25117 Add grub-probe support for NetBSD.
25118
25119 * util/getroot.c (find_root_device): Convert block device to
25120 character device on NetBSD.
25121 * util/probe.c (probe): Require character device on NetBSD.
25122 * util/hostdisk.c: NetBSD specific headers.
25123 (configure_device_driver): new function to tune device driver
25124 parameters (currently only for NetBSD floppy driver).
25125 (grub_util_biosdisk_open): NetBSD specific code (get disk size
25126 via disklabel ioctl).
25127 (open_device): call configure_device_driver on NetBSD.
25128 (convert_system_partition_to_system_disk): NetBSD specific code.
25129 (device_is_wholedisk): Likewise.
25130 (grub_util_biosdisk_get_grub_dev): Likewise.
25131 (make_device_name): Fixed a typo in bsd_part_str.
25132 * configure.ac: check for opendisk() and getrawpartition() on
25133 NetBSD and set LIBUTIL.
25134 * Makefile.in: add LIBUTIL to LIBS.
25135
f516290c
BC
251362010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25137
25138 Documentation fix.
25139
25140 * util/grub-script-check.c: Better help message.
25141
d8dcc0df
BC
251422010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25143
25144 Fix FreeBSD build.
25145
25146 * configure.ac: Flex version check.
25147 * conf/common.rmk: Add -Wno-error to sh.mod.
25148 * script/yylex.l: Remove all #pragma.
25149
6734334a
VS
251502010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25151
25152 * include/grub/util/misc.h (canonicalise_file_name): Add missing
25153 prototype.
25154 Reported by: Seth Goldberg.
25155
daea6abd
VS
251562010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25157
25158 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
25159 Rename "module" to "module2".
25160 Reported by: Seth Goldberg.
25161
f2fd9d2b
VS
251622010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25163
25164 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
25165 EXPORT_FUNC.
25166 Reported by: Seth Goldberg.
25167
be124579
VS
251682010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25169
25170 * lib/posix_wrap/locale.h: Add missing file.
25171 Reported by: Seth Goldberg.
25172
ef5da797
VS
251732010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25174
25175 grub-emu module load support.
25176
25177 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
25178 NO_DYNAMIC_MODULES switched to this.
25179 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
25180 (CFLAGS): Likewise.
25181 * conf/any-emu.rmk: Generate symlist.
25182 (kernel_img_HEADERS): Add util/datetime.h.
25183 (kernel_img_HEADERS) [sdl]: Add sdl.h.
25184 (kernel_img_HEADERS) [libusb]: Add libusb.h.
25185 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
25186 kern/$(target_cpu)/cache.S.
25187 * configure.ac (grub-emu-modules): New option.
25188 * genmk.rb: Handle multiple source lists.
25189 * include/grub/sdl.h: New file.
25190 * include/grub/libusb.h: Likewise.
25191 * util/grub-emu.c (main): Hanle (host) root.
25192 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
25193 GRUB_ERR_UNKNOWN_DEVICE.
25194 * util/misc.c: Move mm functions to ...
25195 * util/mm.c: ... here. All users updated.
25196
47822096
VS
251972010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25198
25199 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
25200 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
25201 missing files.
25202 (maintainer-clean): Remove libgcrypt-grub.
25203
5d7e7445
VS
252042010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25205
25206 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
25207
25f4e252
EC
252082010-04-09 EFI Coder <eficoder@hotmail.com>
25209
25210 * normal/menu_text.c (print_message): Clean up the message and show
25211 the Fn information when on EFI
25212 * term/efi/console.c (grub_console_checkkey): Add F4 support.
25213
027de555
VS
252142010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25215
25216 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
25217 All users updated.
25218 * normal/crypto.c (read_crypto_list): Likewise.
25219 * normal/dyncmd.c (read_command_list): Likewise.
25220 * normal/term.c (read_terminal_list): Likewise.
25221 * normal/main.c (read_lists): Use explicit prefix.
25222 (read_lists_hook): Use read_lists.
25223 (grub_normal_execute): Likewise.
25224
47779711
VS
252252010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25226
25227 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
25228 Reported by: Thomas Schmitt.
25229 Add -no-emul-boot to grub-mkisofs parameters.
25230
1118c32e
VS
252312010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25232
25233 * font/font.c: Indented.
25234
7d652447
BC
252352010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25236
25237 Elif support to GRUB script (by Deepak Vankadaru).
25238
25239 * tests/grub_script_if.in: New testcase.
25240 * conf/tests.rmk: Rule for new testcase.
25241 * script/parser.y: Grammar rules for elif.
25242
34bb22df
BC
252432010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25244
25245 While and until loops support to GRUB script.
25246
25247 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
25248 (grub_script_create_cmdwhile): New function prototype.
25249 (grub_script_execute_cmdwhile): New function prototype.
25250 * script/execute.c (grub_script_execute_cmdwhile): New function.
25251 * script/parser.y (command): New commands.
25252 (whilecmd): New grammar rule.
25253 (untilcmd): New grammar rule.
25254 * script/script.c (grub_script_create_cmdwhile): New function.
25255 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
25256 function.
25257
25258 * tests/grub_script_while1.in: New testcase.
25259 * conf/tests.rmk: Rule for new testcase.
25260
e215d8e0
VS
252612010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25262
25263 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
25264 as *.jpg.
25265
d7c43ba1
MV
252662010-04-09 Mario Vazquez <mariovazq@gmail.com>
25267
25268 GRUB_BACKGROUND support.
25269
25270 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
25271 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
25272
d64795c0
VS
252732010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25274
25275 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 25276 Idea by: Mario Vazquez
d64795c0
VS
25277
25278 * util/grub.d/00_header.in: Load pf2 and image modules.
25279
f267f83a
VS
252802010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25281
25282 grub-mkconfig multiple terminal support.
25283
25284 * util/grub-mkconfig.in: Handle multiple terminals correctly.
25285 * util/grub.d/00_header.in: Likewise.
25286
b7841ceb
VS
252872010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25288
25289 * Makefile.in: Specify files explicitly instead of using $< and $@ since
25290 we use cd $(srcdir).
25291
df60998c
CW
252922010-04-08 Colin Watson <cjwatson@ubuntu.com>
25293
25294 * util/grub.d/10_linux.in: Only use the first word of
25295 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
25296 spaces in GRUB_DISTRIBUTOR.
25297 * util/grub.d/10_kfreebsd.in: Likewise.
25298 * util/grub.d/10_hurd.in: Likewise.
25299
fa09c82e
BC
253002010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
25301
14e18ae3 25302 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
25303
25304 * tests/util/grub-shell.in: Remove -serial stdio option.
25305
daf892b3
BC
253062010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25307
25308 POSIX header file wrappers.
25309
25310 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
25311 equivalents.
25312 * lib/posix_wrap/ctype.h: Likewise.
25313 * lib/posix_wrap/errno.h: Likewise.
25314 * lib/posix_wrap/langinfo.h: Likewise.
25315 * lib/posix_wrap/limits.h: Likewise.
25316 * lib/posix_wrap/localcharset.h: Likewise.
25317 * lib/posix_wrap/stdint.h: Likewise.
25318 * lib/posix_wrap/stdio.h: Likewise.
25319 * lib/posix_wrap/stdlib.h: Likewise.
25320 * lib/posix_wrap/string.h: Likewise.
25321 * lib/posix_wrap/sys/types.h: Likewise.
25322 * lib/posix_wrap/unistd.h: Likewise.
25323 * lib/posix_wrap/wchar.h: Likewise.
25324 * lib/posix_wrap/wctype.h: Likewise.
25325 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
25326 (grub_script.yy.h): Likewise.
25327 * script/yylex.l: Remove POSIX emulation #defines.
25328 * Makefile.in (POSIX_CFLAGS): New variable.
25329 (GNULIB_UTIL_CFLAGS): Likewise.
25330
25331 Regexp support.
25332
25333 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
25334 (regexp_mod_SOURCES): New variable.
25335 (regexp_mod_CFLAGS): Likewise.
25336 (regexp_mod_LDFLAGS): Likewise.
25337 * commands/regexp.c: New file.
25338 * gnulib/regcomp.c: New file. Imported from gnulib.
25339 * gnulib/regex.c: Likewise.
25340 * gnulib/regex_internal.c: Likewise.
25341 * gnulib/regex_internal.h: Likewise.
25342 * gnulib/regexec.c: Likewise.
25343 * gnulib/regex.h: Likewise.
25344
974ac4f7
VS
253452010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25346
25347 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
25348 unsupported video mode types.
25349
2622c3ff
VS
253502010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25351
25352 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
25353
064cb524
VS
253542010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25355
25356 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
25357 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
25358
a8c3b552
VS
253592010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25360
25361 Remove unused grub_vga_get_font.
25362
25363 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
25364 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
25365
187bbe3d
GS
253662010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25367
25368 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
25369 * include/grub/misc.h: Likewise.
25370
b9396631
GS
253712010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25372
25373 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
25374 for which failure is fatal.
25375
50479feb
GS
253762010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25377
25378 * util/grub-install.in: Use mkdir -p to create grub directory.
25379 * util/i386/efi/grub-install.in: Likewise.
25380 * util/ieee1275/grub-install.in: Likewise.
25381
b1654fdf
GS
253822010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25383
25384 * Makefile.in (LEX): new variable.
25385
bd5a6415
GS
253862010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25387
25388 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
25389 `=' and added double quotes on operands of this equality test.
25390
3db3a82b
VS
253912010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
25392
25393 * Makefile.in (uninstall): Remove a leftover debug echo.
25394 Reported by: Grégoire Sutre
25395
38023412
VS
253962010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
25397
25398 MIPS multiboot2 support.
25399
25400 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
25401 (multiboot2_mod_SOURCES): New variable.
25402 (multiboot2_mod_CFLAGS): Likewise.
25403 (multiboot2_mod_LDFLAGS): Likewise.
25404 (multiboot2_mod_ASFLAGS): Likewise.
25405 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
25406 definition.
25407 (MULTIBOOT_ENTRY_REGISTER): Likewise.
25408 (MULTIBOOT_MBI_REGISTER): Likewise.
25409 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
25410 (MULTIBOOT_ELF32_MACHINE): Likewise.
25411 (MULTIBOOT_ELF64_MACHINE): Likewise.
25412 * include/grub/mips/multiboot.h: New file.
25413 * include/grub/video.h (grub_video_driver_id): New type
25414 GRUB_VIDEO_DRIVER_SM712.
25415 (grub_video_get_info_and_fini): Export.
25416 (grub_video_get_palette): Likewise.
25417 (grub_video_get_driver_id): Likewise.
25418 * include/multiboot2.h: Resynced with spec.
25419 * loader/i386/multiboot.c: Moved from here ...
25420 * loader/multiboot.c: ... here. All users updated.
25421 (grub_multiboot_boot): Use platform-specific macros.
25422 * loader/i386/multiboot_elfxx.c: Moved from here ...
25423 * loader/multiboot_elfxx.c: ... here. All users updated.
25424 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
25425 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
25426 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
25427
47674667
VS
254282010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
25429
25430 Import gnulib argp module.
25431
25432 * gnulib/argp-ba.c: New file.
25433 * gnulib/argp-eexst.c: Likewise.
25434 * gnulib/argp-fmtstream.c: Likewise.
25435 * gnulib/argp-fmtstream.h: Likewise.
25436 * gnulib/argp-fs-xinl.c: Likewise.
25437 * gnulib/argp-help.c: Likewise.
25438 * gnulib/argp-namefrob.h: Likewise.
25439 * gnulib/argp-parse.c: Likewise.
25440 * gnulib/argp-pin.c: Likewise.
25441 * gnulib/argp-pv.c: Likewise.
25442 * gnulib/argp-pvh.c: Likewise.
25443 * gnulib/argp-version-etc.c: Likewise.
25444 * gnulib/argp-version-etc.h: Likewise.
25445 * gnulib/argp-xinl.c: Likewise.
25446 * gnulib/argp.h: Likewise.
25447
495442ed
VS
254482010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
25449
25450 * kern/device.c (grub_device_iterate): Clear errors after failed
25451 opening device.
25452
f9fd65df
VS
254532010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
25454
25455 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
25456 returned by firmware.
25457
af09641e
VS
254582010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
25459
25460 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
25461 compilation on coreboot and qemu
25462
016883a5
VS
254632010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
25464
25465 * include/multiboot2.h: Resync with spec.
25466
f97e1f7d
VS
254672010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
25468
25469 Multiboot2 tag support
25470
25471 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
25472 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
25473 Remove loader/multiboot_loader.c.
25474 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
25475 (grub_multiboot2_real_boot): Likewise.
25476 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
25477 (grub_get_multiboot_mmap_count): New proto.
25478 (grub_fill_multiboot_mmap): Likewise.
25479 (grub_multiboot_set_video_mode): Likewise.
25480 (grub_multiboot_set_console): Likewise.
25481 (grub_multiboot_load): Likewise.
25482 (grub_multiboot_load_elf): Likewise.
25483 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
25484 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
25485 * include/multiboot.h: Resynced with specification.
25486 * include/multiboot2.h: Resynced with specification.
25487 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
25488 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
25489 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
25490 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
25491 users updated.
25492 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
25493 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
25494 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
25495 Removed.
25496 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
25497 Moved from here...
25498 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
25499 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
25500 Moved from here...
25501 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
25502 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
25503 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
25504 All users updated.
25505 * loader/i386/multiboot_mbi2.c: New file.
25506
3506b90b
VS
255072010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
25508
25509 Resync with gnulib.
25510
25511 * Makefile.in (GNULIB_CFLAGS): New variable.
25512 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
25513 (grub_script_check_CFLAGS): New variable.
25514 * gnulib/alloca.h: Resync with gnulib.
25515 * gnulib/error.c: Likewise.
25516 * gnulib/error.h: Likewise.
25517 * gnulib/fnmatch.c: Likewise.
25518 * gnulib/fnmatch_loop.c: Likewise.
25519 * gnulib/getdelim.c: Likewise.
25520 * gnulib/getline.c: Likewise.
25521 * gnulib/getopt.c: Likewise.
25522 * gnulib/getopt1.c: Likewise.
25523 * gnulib/getopt_int.h: Likewise.
25524 * gnulib/gettext.h: Likewise.
25525 * gnulib/progname.c: Likewise.
25526 * gnulib/progname.h: Likewise.
25527
394a3120
GS
255282010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
25529
25530 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
25531 which is the case with --disabled-nls.
25532
25533 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
25534 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
25535 * util/misc.c: Likewise.
25536 * util/mkisofs/mkisofs.c: Likewise.
25537 * util/mkisofs/mkisofs.h: Likewise.
25538
969d1c78
VS
255392010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
25540
25541 Simplify Apple CC support.
25542
25543 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
25544 Add 0 byte at the end not to have a symbol with empty target.
25545 * mmap/i386/pc/mmap_helper.S: Likewise.
25546 * genmk.rb: Ignore errors 2030 and 2050.
25547 * kern/i386/pc/startup.S: Use LOCAL when possible.
25548
8d2977bb
BC
255492010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
25550
25551 Testcase and the fix for final semicolon on cmdline.
25552
25553 * tests/grub_script_final_semicolon.in: New testcase.
25554 * conf/tests.rmk: Rules for the new testcase.
25555 * script/parser.y: Grammar fix.
25556
a7bd6915
BC
255572010-03-26 BVK Chaitanya <bvk@localhost>
25558
25559 Blank lines testcase for GRUB script.
25560
25561 * tests/grub_script_blanklines.in: New testcase.
25562 * conf/tests.rmk: Rules for the new testcase.
25563
e4ff6628
VS
255642010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
25565
25566 Don't use __FILE__.
25567
25568 * genmk.rb: Add -DGRUB_FILE to all C targets.
25569 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
25570 * include/grub/list.h: Likewise.
25571 * include/grub/misc.h: Likewise.
25572 * include/grub/mm.h: Likewise.
25573 * include/grub/test.h: Likewise.
25574 * kern/mm.c: Likewise.
25575 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25576
6a5cf6b6
VS
255772010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
25578
25579 Sunpc partitions support.
25580
25581 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
25582 (grub_fstest_SOURCES): Likewise.
25583 (pkglib_MODULES): Add part_sunpc.mod.
25584 (part_sunpc_mod_SOURCES): New variable.
25585 (part_sunpc_mod_CFLAGS): Likewise.
25586 (part_sunpc_mod_LDFLAGS): Likewise.
25587 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
25588 * partmap/sunpc.c: New file.
25589
746d9045
BC
255902010-03-26 BVK Chaitanya <bvk@localhost>
25591
25592 For loop support to GRUB script.
25593
25594 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
25595 (grub_script_create_cmdfor): New function prototype.
25596 (grub_script_execute_cmdfor): New function prototype.
25597 * script/execute.c (grub_script_execute_cmdfor): New function.
25598 * script/parser.y (command): New for command.
25599 (forcmd): New grammar rule.
25600 * script/script.c (grub_script_create_cmdfor): New function.
25601 * util/grub-script-check.c (grub_script_execute_cmdfor): New
25602 function.
25603 * tests/grub_script_for1.in: New testcase.
25604 * conf/tests.rmk: Rules for new testcase.
25605
18486b18
VS
256062010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
25607
25608 Nested partitions
25609
25610 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
25611 'partition' is NULL, grub_partition_get_start already does that.
25612 * commands/loadenv.c (check_blocklists): Likewise.
25613 (write_blocklists): Likewise.
25614 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
25615 (grub_fstest_SOURCES): Likewise.
25616 (pkglib_MODULES): Add part_bsd.mod.
25617 (part_bsd_mod_SOURCES): New variable.
25618 (part_bsd_mod_CFLAGS): Likewise.
25619 (part_bsd_mod_LDFLAGS): Likewise.
25620 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
25621 (grub_emu_SOURCES): Likewise.
25622 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25623 * include/grub/bsdlabel.h: New file.
25624 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
25625 'get_name'.
25626 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
25627 (grub_partition_map_list): New variable.
25628 (grub_partition_map_register): Inline.
25629 (grub_partition_map_unregister): Likewise.
25630 (FOR_PARTITION_MAPS): New macro.
25631 (grub_partition_map_iterate): Removed.
25632 (grub_partition_get_start): Handle nested partitions.
25633 * include/grub/msdos_partition.h: Remove bsd-related entries.
25634 (grub_pc_partition): Remove.
25635 * kern/disk.c (grub_disk_close): Free partition data.
25636 (grub_disk_adjust_range): Handle nested partitions.
25637 * kern/partition.c (grub_partition_map_probe): New function.
25638 (grub_partition_probe): Parse name to number, handle subpartitions.
25639 (get_partmap): New function.
25640 (grub_partition_iterate): Handle subpartitions.
25641 (grub_partition_get_name): Likewise.
25642 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
25643 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
25644 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
25645 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
25646 Set 'number'.
25647 (acorn_partition_map_probe): Remove.
25648 (acorn_partition_map_get_name): Likewise.
25649 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
25650 Set 'number'.
25651 Set 'index' to 0 since there can be only one partition entry per sector.
25652 (amiga_partition_map_probe): Remove.
25653 (amiga_partition_map_get_name): Likewise.
25654 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
25655 Set 'number'.
25656 Set 'offset' and 'index' to real positions of partitions.
25657 (apple_partition_map_probe): Remove.
25658 (apple_partition_map_get_name): Likewise.
25659 * partmap/bsdlabel.c: New file.
25660 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
25661 Set 'number'.
25662 Allocate 'data' so it can be correctly freed.
25663 Set 'index' to offset inside sector.
25664 (gpt_partition_map_probe): Remove.
25665 (gpt_partition_map_get_name): Likewise.
25666 * partmap/msdos.c (grub_partition_parse): Remove.
25667 (pc_partition_map_iterate): Don't force raw access.
25668 Set 'number'.
25669 Make 'ext_offset' a local variable.
25670 (pc_partition_map_probe): Remove.
25671 (pc_partition_map_get_name): Remove.
25672 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
25673 Set 'number'.
25674 (sun_partition_map_probe): Remove.
25675 (sun_partition_map_get_name): Likewise.
25676 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
25677 (grub_pcpart_type): Likewise.
25678 * util/hostdisk.c (open_device): Handle new numbering scheme.
25679 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
25680 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
25681 * util/grub-probe.c (probe_partmap): Handle nested paritions.
25682 * util/grub-install.in: Insert all subpartition modules.
25683 * util/ieee1275/grub-install.in: Likewise.
25684
a3940f88
AG
256852010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
25686
25687 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
25688 grammar.
25689
21b99926 256902010-03-24 Colin Watson <cjwatson@ubuntu.com>
25691
25692 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
25693
bed1d352
CW
256942010-03-21 Colin Watson <cjwatson@ubuntu.com>
25695
25696 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
25697 match where 'make install' puts them.
25698 * util/i386/efi/grub-install.in: Likewise.
25699
c9f58427
CW
257002010-03-19 Colin Watson <cjwatson@ubuntu.com>
25701
25702 * .bzrignore: Add gentrigtables, grub-script-check,
25703 grub_script_check_init.c, grub_script_check_init.h, and
25704 trigtables.c.
25705
f84afb27
VS
257062010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
25707
25708 * kern/parser.c: Indented.
25709
ed0e3d30
VS
257102010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
25711
25712 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
25713
0ea81d98
VS
257142010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
25715
25716 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
25717 alpha_mask_size == 0 case.
25718
0cdc2a09
BC
257192010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
25720
25721 GRUB shell lexer and parser improvements.
25722
25723 * conf/any-emu.rmk: Build rule updates.
25724 * conf/common.rmk: Likewise.
25725 * conf/i386-coreboot.rmk: Likewise.
25726 * conf/i386-efi.rmk: Likewise.
25727 * conf/i386-ieee1275.rmk: Likewise.
25728 * conf/i386-pc.rmk: Likewise.
25729 * conf/powerpc-ieee1275.rmk: Likewise.
25730 * conf/x86_64-efi.rmk: Likewise.
25731
25732 * configure.ac: Configure check for flex.
25733
25734 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
25735 types.
25736 (grub_lexer_param): Struct member updates.
25737 (grub_parser_param): Likewise.
25738 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
25739 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
25740 (grub_script_lexer_init): Prototype update.
25741 (grub_script_lexer_record_start): Likewise.
25742 (grub_script_lexer_record_stop): Likewise.
25743 (grub_script_lexer_yywrap): New function prototype.
25744 (grub_script_lexer_fini): Likewise.
25745 (grub_script_execute_argument_to_string): Removed by...
25746 (grub_script_execute_argument_to_argv): ...better version.
25747
25748 * script/execute.c (ROUND_UPTO): New macro.
25749 (grub_script_execute_cmdline): Out of memory fixes.
25750 (grub_script_execute_menuentry): Likewise.
25751 (grub_script_execute_argument_to_string): Removed. Update all
25752 users by...
25753 (grub_script_execute_argument_to_argv): ...better version.
25754 * script/function.c (grub_script_function_create): Use
25755 grub_script_execute_argument_to_argv instead of
25756 grub_script_execute_argument_to_string.
25757
25758 * script/lexer.c (check_varstate): Removed.
25759 (check_textstate): Removed.
25760 (grub_script_lexer_record_start): Likewise.
25761 (grub_script_lexer_record_stop): Likewise.
25762 (recordchar): Replaced with...
25763 (grub_script_lexer_record): ...new function.
25764 (nextchar): Removed.
25765 (grub_script_lexer_init): Rewritten.
25766 (grub_script_yylex): Rewritten.
25767 (append_newline): New function.
25768 (grub_script_lexer_yywrap): New function.
25769 (grub_script_lexer_fini): New function.
25770 (grub_script_yyerror): Sets error flag.
25771
25772 * script/yylex.l: New file.
25773 (grub_lexer_yyfree): Wrapper for flex yyffre.
25774 (grub_lexer_yyalloc): Likewise.
25775 (grub_lexer_yyrealloc): Likewise.
25776 * script/parser.y: Refactored.
25777
25778 * script/script.c (grub_script_arg_add): Out of memory fixes.
25779 (grub_script_add_arglist): Likewise.
25780 (grub_script_create_cmdline): Likewise.
25781 (grub_script_create_cmdmenu): Likewise.
25782 (grub_script_add_cmd): Likewise.
25783 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
25784 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
25785 unnecessary code.
25786
25787 * tests/grub_script_echo1.in: New testcase.
25788 * tests/grub_script_vars1.in: New testcase.
25789 * tests/grub_script_echo_keywords.in: New testcase.
25790
1d63a066
VS
257912010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25792
25793 Remove some redundancy in build system.
25794
25795 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
25796 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
25797 (TARGET_LDFLAGS): Add -nostdlib.
25798 (TARGET_IMG_LDFLAGS): Likewise.
25799 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
25800 anything since mmap isn't available.
25801 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
25802 Add util/time.c.
25803 (pkglib_MODULES): Remove reboot.mod.
25804 (reboot_mod_SOURCES): Removed.
25805 (reboot_mod_CFLAGS): Likewise.
25806 (reboot_mod_LDFLAGS): Likewise.
25807 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
25808 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
25809 (DEFSYMFILES): Add kernel_syms.lst.
25810 (kernel_img_HEADERS): Add common headers.
25811 (symlist.c): New target.
25812 (kernel_syms.lst): Likewise.
25813 (pkglib_MODULES): Add memdisk.mod.
25814 (memdisk_mod_SOURCES): New variable.
25815 (memdisk_mod_CFLAGS): Likewise.
25816 (memdisk_mod_LDFLAGS): Likewise.
25817 (pkglib_MODULES): Add reboot.mod.
25818 (reboot_mod_SOURCES): New variable.
25819 (reboot_mod_CFLAGS): Likewise.
25820 (reboot_mod_LDFLAGS): Likewise.
25821 (pkglib_MODULES): Add date.mod.
25822 (date_mod_SOURCES): New variable.
25823 (date_mod_CFLAGS): Likewise.
25824 (date_mod_LDFLAGS): Likewise.
25825 (pkglib_MODULES): Add datehook.mod.
25826 (datehook_mod_SOURCES): New variable.
25827 (datehook_mod_CFLAGS): Likewise.
25828 (datehook_mod_LDFLAGS): Likewise.
25829 (pkglib_MODULES): Add lsmmap.mod.
25830 (lsmmap_mod_SOURCES): New variable.
25831 (lsmmap_mod_CFLAGS): Likewise.
25832 (lsmmap_mod_LDFLAGS): Likewise.
25833 (pkglib_MODULES): Add boot.mod.
25834 (boot_mod_SOURCES): New variable.
25835 (boot_mod_CFLAGS): Likewise.
25836 (boot_mod_LDFLAGS): Likewise.
25837 * conf/i386-coreboot.rmk: Removed redundant parts.
25838 * conf/i386-ieee1275.rmk: Likewise.
25839 * conf/i386-pc.rmk: Likewise.
25840 * conf/mips-yeeloong.rmk: Likewise.
25841 * conf/mips.rmk: Likewise.
25842 * conf/powerpc-ieee1275.rmk: Likewise.
25843 * conf/sparc64-ieee1275.rmk: Likewise.
25844 * conf/x86_64-efi.rmk: Likewise.
25845 * conf/i386-coreboot.rmk: Moved qemu parts ..
25846 * conf/i386-qemu.rmk: ... here
25847 * conf/i386-efi.rmk: Moved common parts to...
25848 * conf/x86-efi.rmk: ... here.
25849 * conf/i386.rmk: Added modules common to all x86 variants.
25850 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
25851 * disk/memdisk.c: Remove grub/machine/kernel.h.
25852 * gensymlist.sh.in: Include symbol.h.
25853 * hook/datehook.c: Correct module name.
25854 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
25855 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
25856 * include/grub/i386/efi/serial.h: New file.
25857 * include/grub/x86_64/efi/serial.h: Likewise.
25858 * util/time.c: Likewise.
25859 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
25860
463ac55f
CK
258612010-03-14 Colin King <colin.king@ubuntu.com>
258622010-03-14 Colin Watson <cjwatson@ubuntu.com>
25863
25864 Shrink the pre-partition-table part of boot.img by eight bytes.
25865
25866 * boot/i386/pc/boot.S (ERR): New macro.
25867 (chs_mode): Use ERR.
25868 (geometry_error): Likewise.
25869 (hd_probe_error): Remove. This is only used once, so we wrwite
25870 it inline instead.
25871 (read_error): Instead of printing read_error_string, just set up
25872 %si and fall through to ...
25873 (error_message): ... this new function, also used by ERR.
25874
08e46ede
CW
258752010-03-14 Colin Watson <cjwatson@ubuntu.com>
25876
25877 Speed up consecutive hostdisk operations on the same device.
25878
25879 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
25880 (grub_util_biosdisk_open): Initialise disk->data.
25881 (struct linux_partition_cache): New structure.
25882 (linux_find_partition): Cache partition start positions; these are
25883 expensive to compute on every read and write.
25884 (open_device): Cache open file descriptor in disk->data, so that we
25885 don't have to reopen it and flush the buffer cache for consecutive
25886 operations on the same device.
25887 (grub_util_biosdisk_close): New function.
25888 (grub_util_biosdisk_dev): Set `close' member.
25889
25890 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
25891 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
25892 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25893 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
25894 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
25895
4a6d2d06
VS
258962010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25897
25898 Compile parts of grub-emu as modules.
25899
25900 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
25901 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
25902 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
25903 (all-local): Add $(GRUB_EMU).
25904 (install-local): Install $(GRUB_EMU).
25905 (uninstall): Uninstall $(GRUB_EMU).
25906 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
25907 * kern/dl.c: Likewise.
25908 * commands/sleep.c: Not include machine/time.h.
25909 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
25910 (COMMON_CFLAGS): Likewise.
25911 (sbin_UTILITIES): Remove grub-emu.
25912 (grub_emu_SOURCES): Removed.
25913 (kernel_img_RELOCATABLE): New variable.
25914 (pkglib_PROGRAMS): Add kernel.img.
25915 (kernel_img_SOURCES): New variable
25916 (kernel_img_CFLAGS): Likewise.
25917 (kernel_img_LDFLAGS): Likewise.
25918 (TARGET_NO_STRIP): Likewise.
25919 (TARGET_NO_DYNAMIC_MODULES): Likewise.
25920 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
25921 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
25922 (grub-emu): New target.
25923 (GRUB_EMU): New variable.
25924 * configure.ac: Whitelist -emu as possible x86_64 architecture.
25925 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
25926 * loader/xnu.c: Likewise.
25927 * include/grub/pci.h: Likewise.
25928 * genemuinit.sh: New file.
25929 * genemuinitheader.sh: Likewise.
25930 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
25931 Support TARGET_NO_DYNAMIC_MODULES.
25932 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
25933 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
25934 * disk/loopback.c: Likewise.
25935 * font/font_cmd.c: Likewise.
25936 * partmap/acorn.c: Likewise.
25937 * partmap/amiga.c: Likewise.
25938 * partmap/apple.c: Likewise.
25939 * partmap/gpt.c: Likewise.
25940 * partmap/msdos.c: Likewise.
25941 * partmap/sun.c: Likewise.
25942 * parttool/msdospart.c: Likewise.
25943 * term/gfxterm.c: Likewise.
25944 * video/bitmap.c: Likewise.
25945 * video/readers/jpeg.c: Likewise.
25946 * video/readers/png.c: Likewise.
25947 * video/readers/tga.c: Likewise.
25948 * video/video.c: Likewise.
25949 * util/grub-emu.c (read_command_list): Removed.
25950 (main): Don't call util_init_nls.
25951 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
25952 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
25953
91fdd2ed
VS
259542010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25955
25956 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
25957 date.mod, datehook.mod.
25958 (datetime_mod_SOURCES): New variable.
25959 (datetime_mod_CFLAGS): Likewise.
25960 (datetime_mod_LDFLAGS): Likewise.
25961 (date_mod_SOURCES): Likewise.
25962 (date_mod_CFLAGS): Likewise.
25963 (date_mod_LDFLAGS): Likewise.
25964 (datehook_mod_SOURCES): Likewise.
25965 (datehook_mod_CFLAGS): Likewise.
25966 (datehook_mod_LDFLAGS): Likewise.
25967 * conf/sparc64-ieee1275.rmk: Likewise.
25968 * lib/ieee1275/datetime.c: New file.
25969
873ccae6
VS
259702010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25971
25972 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
25973 (ieee1275_fb_mod_SOURCES): New variable.
25974 (ieee1275_fb_mod_CFLAGS): Likewise.
25975 (ieee1275_fb_mod_LDFLAGS): Likewise.
25976 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
25977 New proto.
25978 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
25979 (HEAP_MAX_ADDR): Likewise.
25980 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
25981 type.
25982 Correct stop condition.
25983 (grub_ieee1275_devices_iterate): New function.
25984 * video/ieee1275.c: New file.
25985
601c97c0
VS
259862010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25987
25988 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
25989
25990 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
25991 as scratch.
25992 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
25993 SCRATCH_PAD_DISKBOOT as scratch.
25994 (bootit): Pass Openfirmware pointer in %o4.
25995 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
25996 of 0x200000.
25997 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
25998 with util/grub-mkrawimage.c.
25999 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
26000 * include/grub/aout.h (AOUT_MID_SUN): New definition.
26001 (grub_aout_get_type) [GRUB_UTIL]: Removed.
26002 (grub_aout_load) [GRUB_UTIL]: Likewise.
26003 * include/grub/kernel.h (grub_modules_get_end): New proto.
26004 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
26005 (SCRATCH_PAD_BOOT): New definition.
26006 (SCRATCH_PAD_DISKBOOT): Likewise.
26007 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
26008 * include/grub/sparc64/ieee1275/ieee1275.h
26009 (grub_ieee1275_original_stack): New variable
26010 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26011 New definition
26012 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
26013 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
26014 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
26015 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
26016 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
26017 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
26018 (grub_platform_image_format_t): New type.
26019 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
26020 * kern/main.c (grub_modules_get_end)
26021 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
26022 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
26023 (codestart): Switch stacks.
26024 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
26025 variable.
26026 (grub_heap_init): Use grub_modules_get_end.
26027 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
26028 stack.
26029 * util/grub-mkrawimage.c (generate_image): Support sparc64.
26030 (main): Likewise.
26031 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
26032
d68b491e
TG
260332010-03-14 Thorsten Glaser <tg@mirbsd.org>
26034
26035 * util/grub-mkrescue.in: Base ISO UUID on UTC.
26036
4e02ed50
MK
260372010-03-08 Matt Kraai <kraai@ftbfs.org>
26038
26039 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
26040 bug #559005).
26041
1f15fc1e
VS
260422010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
26043
26044 * genmoddep.awk: Output all missing symbols and not only first.
26045
fce5d8ff
VS
260462010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26047
26048 * NEWS: Put the date of 1.98 release.
26049
d1e8a02f
VS
260502010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26051
26052 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
26053 ft2build.h.
26054
696fd607
VS
260552010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26056
26057 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
26058 completition in the middle of string.
26059
33e2e6f3
VS
260602010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26061
26062 * util/grub-mkrescue.in: Use mktemp with explicit template.
26063
b1f6d291
VS
260642010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26065
26066 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
26067
2ac227c7
VS
260682010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26069
26070 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
26071 right pointer.
26072
8f9a632b
VS
260732010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26074
26075 Fix FreeBSD compilation.
26076
26077 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
26078 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
26079
60b03859
VS
260802010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26081
26082 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
26083
48a5a769
VS
260842010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26085
26086 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
26087
3ab4bd77
VS
260882010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26089
26090 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
26091
d116e0d8
RM
260922010-03-04 Robert Millan <rmh.grub@aybabtu.com>
26093
26094 Support relative image path in theme file.
26095
26096 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
26097 (image_set_property): Handle theme_dir and relative path.
26098
c7ef54aa
VS
260992010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26100
26101 * configure.ac: Alias amd64 to x86_64.
26102
fcee14ed
VS
261032010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26104
26105 * NEWS: mention multiboot on EFI.
26106
d0780363
VS
261072010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26108
26109 * kern/main.c (grub_load_modules): Handle errors from init functions of
26110 embeded modules.
26111
41168ea4
VS
261122010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26113
26114 * normal/autofs.c (autoload_fs_module): Handle errors.
26115
b54d93ac
VS
261162010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26117
26118 Disable linux.mod on qemu-mips since it's not functional and leads
26119 to compilation failure.
26120
26121 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
26122 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
26123 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
26124 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
26125 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
26126 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
26127 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
26128 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
26129 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
26130 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
26131 Reported by: BVK Chaitanya
26132
fc8345da
JU
261332010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
26134
26135 * INSTALL: Add gettext as a dependency and add qemu to a new section
26136 "Prerequisites for make-check".
26137
4760f979
CF
261382010-03-04 Christian Franke <franke@computer.org>
26139
26140 * util/grub-pe2elf.c: Add missing include "progname.h".
26141
f209b5b2
VS
261422010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26143
26144 * normal/crypto.c (read_crypto_list): Fix a typo.
26145 Reported by: Seth Goldberg.
26146
b4b7be98
VS
261472010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26148
26149 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 26150 Reported by: Seth Goldberg.
b4b7be98 26151
c0ee0385
VS
261522010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26153
26154 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
26155 ascii.bitmaps.
26156
a8efbf64
VS
261572010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26158
26159 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 26160 Reported by: Seth Goldberg.
a8efbf64 26161
08dcd913
VS
261622010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26163
26164 * util/i386/efi/grub-install.in: Copy gettext files.
26165
c4d0b332
VS
261662010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26167
26168 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
26169
c6f2fe52
VS
261702010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26171
26172 Wait for user entry basing on presence of output rather than on errors.
26173
26174 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
26175 (grub_install_newline_hook): Likewise.
26176 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
26177 * normal/menu.c (show_menu): Check line_counter to determine presence
26178 of output.
26179 * normal/term.c (grub_normal_line_counter): New variable.
26180 (grub_normal_get_line_counter): New function.
26181 (grub_install_newline_hook): Likewise.
26182
5382b1e4
VS
261832010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26184
26185 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
26186
5519963b
VS
261872010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26188
26189 * configure.ac: Update version to 1.98.
26190
72b28631
VS
261912010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
26192
26193 * util/grub.d/10_linux.in (linux_entry): Don't default to
26194 gfxpayload=keep if Linux doesn't support video handover.
26195
c140a180
VS
261962010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
26197
26198 Don't compile video modules on yeeloong since video subsystem is part
26199 of kernel.
26200
26201 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
26202 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
26203 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
26204 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
26205 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
26206 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
26207 * include/grub/bitmap_scale.h: Likewise.
26208 * include/grub/bufio.h: Likewise.
26209 * include/grub/font.h: Likewise.
26210 * include/grub/gfxterm.h: Likewise.
26211 * include/grub/video.h: Likewise.
26212 * include/grub/vbe.h: Don't include video_fb.h.
26213 * video/i386/pc/vbe.c: Include video_fb.h.
26214 * commands/i386/pc/vbetest.c: Include video.h.
26215
a0ca21c2
CW
262162010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
26217
26218 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
26219 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
26220 default entry if GRUB_SAVEDEFAULT=true. This allows using
26221 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
26222 saving a new default on every boot.
26223
4a8a763c
VS
262242010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26225
26226 * normal/crypto.c (read_crypto_list): Fix a memory leak.
26227 * normal/term.c (read_terminal_list): Likewise.
26228 * normal/main.c (grub_normal_init_page): Likewise.
26229 (grub_normal_read_line_real): Likewise.
26230
607ffde2
VS
262312010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26232
26233 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
26234 memory leak.
26235 Reported by: Seth Goldberg.
26236
2b8fa975
CW
262372010-02-24 Joey Korkames <joey+lists@kidfixit.com>
26238
26239 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
26240 duplicate declaration of `start'.
26241
618307dd
VS
262422010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26243
26244 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
26245 filename.
26246 Reported by: Georgy Buranov
26247
7dd05b96 262482010-02-20 Carles Pina i Estany <carles@pina.cat>
26249
26250 * util/grub-mkrawimage.c (usage): Change string formatting to
26251 improve gettext.
26252
d1484a42
MRA
262532010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
26254
26255 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
26256 backspace keys.
26257
42b1d186
VS
262582010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26259
26260 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
26261 Reported by: Michael Suchanek.
26262
262632010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
26264
26265 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
26266 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
26267
d9f31a41
VS
262682010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
26269
26270 Remove any reference to non-free fonts.
26271
26272 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
26273 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
26274 uses non-free components.
26275 * font/font.c (grub_font_get_name): Remove example name.
26276 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
26277 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
26278 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
26279 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
26280
2793c71e
GB
262812010-02-16 Georgy Buranov <gburanov@gmail.com>
26282
26283 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
26284
402e3779
VS
262852010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26286
26287 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
26288 Double divisor.
26289 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
26290 features.
26291 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
26292
0dd1e0dd
VS
262932010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26294
26295 * gensymlist.sh.in: Use TARGET_CC instead of CC.
26296
6fa7cfce
ST
262972010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26298
26299 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
26300 * docs/grub.texi (Command-line and menu entry commands): Document play
26301 command.
26302
37c8483b
ST
263032010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26304
26305 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
26306 parse arguments as inline tempo and notes. Move code for playing notes
26307 to...
26308 (play): ... new function.
26309
14da0fb7
ST
263102010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26311
26312 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
26313 grub_uint16_t instead of short.
26314 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
26315 disk from little endian to cpu endianness.
26316
04459e70
ST
263172010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
26318
26319 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
26320 GRUB_TICKS_PER_SECOND instead of 120.
26321
a0876943
VS
263222010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26323
26324 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
26325 escape sequence after \e.
26326
e29f95dc
VS
263272010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26328
26329 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
26330 non-ASCII characters.
26331
d27859b2
VS
263322010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26333
26334 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
26335 set root in single quotes to prevent \, from being unescaped.
26336
bc028f2f
VS
263372010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26338
26339 Prevent unknown commands from stopping menuentry execution.
26340
26341 * script/execute.c (grub_script_execute_cmdline): Print error after
26342 unknown command.
26343
095f5f82
VS
263442010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26345
26346 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
26347 Reported by: Pavel Pisa.
26348
8c717950
VS
263492010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26350
26351 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
26352
904935c3
VS
263532010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26354
26355 Merge grub_ieee1275_map_physical into grub_map and rename to
26356 grub_ieee1275_map
26357
26358 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
26359 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
26360 Remove.
26361 * kern/ieee1275/openfw.c (grub_map): Rename to ...
26362 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
26363 necessary.
26364 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
26365
5b59a4e3
VS
263662010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26367
26368 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
26369 opening and not after.
26370
69e137e8
VS
263712010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26372
26373 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
26374 constants.
26375
2c0fcc36
VS
263762010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26377
26378 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
26379 (alloc_phys): Use ALIGN_UP instead of align_addr.
26380
8c6052ce
VS
263812010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26382
26383 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
26384
17cec782
VS
263852010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26386
26387 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
26388
e0128bbd
VS
263892010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26390
26391 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
26392 verbose dprintf.
26393
ca62070b
VS
263942010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26395
26396 Fix over-4GiB seek on sparc64.
26397
26398 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
26399 Replace pos_i and pos_lo with pos. All users updated.
26400 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
26401 New constant.
26402 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
26403 Likewise.
26404 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
26405 and pos_lo.
26406
bdca2607
VS
264072010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26408
26409 * util/grub-mkrawimage.c (main): Call set_program_name.
26410
da278c4d
VS
264112010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26412
26413 Properly align 64-bit targets.
26414
26415 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
26416 (generate_image): Use ALIGN_ADDR.
26417
b274d734
VS
264182010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26419
26420 Properly create cross-endian images.
26421
26422 * include/grub/types.h (grub_host_to_target_addr): New macro
26423 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
26424
82da2062
VS
264252010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26426
26427 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
26428
7cae4377
VS
264292010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26430
26431 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
26432
26433 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
26434 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
26435 (grub_linux_boot): Divide by 64K when on VESA.
26436
65a533e7
VS
264372010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26438
26439 Support GRUB_GFXPAYLOAD_LINUX.
26440
26441 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
26442 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
26443
dd01d397
VS
264442010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26445
26446 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
26447 to show messages instead of discarding them.
26448 Process errors after executing command and not before. Keep old method
26449 too as precaution.
26450
660960d6
VS
264512010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
26452
26453 * configure.ac: Check for ft2build.h.
26454
62509f04
VS
264552010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26456
26457 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
26458
473df63d
VS
264592010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26460
26461 * genkernsyms.sh.in: Use TARGET_CC.
26462
c98d2a13
CW
264632010-02-07 Colin Watson <cjwatson@ubuntu.com>
26464
26465 * NEWS: Update.
26466
6e14234c
VS
264672010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26468
26469 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
26470 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
26471 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 26472
b255e9cf
YB
264732010-02-07 Yves Blusseau <blusseau@zetam.org>
26474
6e14234c 26475 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 26476
98e6959d
VS
264772010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26478
26479 Fix warnings in grub-emu when compiling with maximum warning options.
26480
26481 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
26482 (grub_arch_modules_addr): Return 0 and not NULL.
26483 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 26484 (xstrdup): Use newstr instead of dup.
f88d801b
VS
26485 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
26486 of disk to dsk to avoid shadowing.
74e4934e
VS
26487 (find_free_slot): Fix prototype.
26488 * util/getroot.c (grub_util_is_dmraid): Make static.
26489 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
26490 Add missing prototype.
26491 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 26492
74e31b5c
VS
264932010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26494
26495 * loader/i386/linux.c (grub_linux_setup_video): Handle error
26496 appropriately.
26497
6b2ad14b
VS
264982010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26499
26500 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
26501 code out.
26502
8f891adc
VS
265032010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26504
26505 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
26506 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
26507 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
26508 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
26509 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
26510 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
26511
74b45184
VS
265122010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26513
26514 * include/grub/err.h (grub_err_printf): Don't export.
26515
a4bced77
VS
265162010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26517
26518 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
26519
007d0695
VS
265202010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26521
26522 * include/grub/i18n.h (grub_gettext_dummy): Removed.
26523 * kern/misc.c (grub_gettext_dummy): Make static.
26524
b6c0d9c2
VS
265252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26526
26527 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
26528 by non-valid ones.
26529 * kern/term.c (grub_putchar): Likewise.
26530
f51a90d0
VS
265312010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26532
26533 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
26534 buggy hook call and memory leak.
26535
6846cec5
VS
265362010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26537
26538 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
26539
468d69fe
VS
265402010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26541
26542 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
26543
51906b8c
VS
265442010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26545
26546 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
26547 modevar.
26548 Return grub_errno on allocation error.
26549
09706ce5
VS
265502010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26551
26552 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
26553
911df80c
YB
265542010-02-06 Yves Blusseau <blusseau@zetam.org>
26555
26556 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
26557 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
26558
3746a6bc
VS
265592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26560
26561 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
26562 non-pxe disk.
26563 (grub_pxefs_open): Likewise.
26564
09706ce5
VS
265652010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26566
26567 * util/grub.d/10_hurd.in: Add --class information to menuentries.
26568 * util/grub.d/10_kfreebsd.in: Likewise.
26569 * util/grub.d/10_linux.in: Likewise.
26570
7cc192d9
VS
265712010-02-06 Colin D Bennett <colin@gibibit.com>
26572
26573 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
26574 (gfxmenu_mod_SOURCES): New variable.
26575 (gfxmenu_mod_CFLAGS): Likewise.
26576 (gfxmenu_mod_LDFLAGS): Likewise.
26577 * include/grub/term.h (grub_term_set_current_output): Declare
26578 argument as const.
26579 * docs/gfxmenu-theme-example.txt: New file.
26580 * gfxmenu/gfxmenu.c: Likewise.
26581 * gfxmenu/gui_box.c: Likewise.
26582 * gfxmenu/gui_canvas.c: Likewise.
26583 * gfxmenu/gui_circular_progress.c: Likewise.
26584 * gfxmenu/gui_image.c: Likewise.
26585 * gfxmenu/gui_label.c: Likewise.
26586 * gfxmenu/gui_list.c: Likewise.
26587 * gfxmenu/gui_progress_bar.c: Likewise.
26588 * gfxmenu/gui_string_util.c: Likewise.
26589 * gfxmenu/gui_util.c: Likewise.
26590 * gfxmenu/icon_manager.c: Likewise.
26591 * gfxmenu/model.c: Likewise.
26592 * gfxmenu/named_colors.c: Likewise.
26593 * gfxmenu/theme_loader.c: Likewise.
26594 * gfxmenu/view.c: Likewise.
26595 * gfxmenu/widget-box.c: Likewise.
26596 * include/grub/gfxmenu_model.h: Likewise.
26597 * include/grub/gfxmenu_view.h: Likewise.
26598 * include/grub/gfxwidgets.h: Likewise.
26599 * include/grub/gui.h: Likewise.
26600 * include/grub/gui_string_util.h: Likewise.
26601 * include/grub/icon_manager.h: Likewise.
26602
266032010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26604
26605 Agglomerate scrolling in gfxterm.
26606
26607 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
26608 (grub_virtual_screen_setup): Initialise 'total_screen'.
26609 (write_char): Split to ...
26610 (paint_char): ... this ...
26611 (write_char): ... and this.
26612 (paint_char): Handle delayed scrolling.
26613 (draw_cursor): Likewise.
26614 (scroll_up): Split to ...
26615 (real_scroll): ... this ...
26616 (scroll_up): ... and this.
26617 (real_scroll): Handle multi-line scroll and draw below-the-bottom
26618 characters.
26619 (grub_gfxterm_refresh): Call real_scroll.
26620
266212010-02-06 Colin D Bennett <colin@gibibit.com>
26622
26623 * include/grub/misc.h (grub_iscntrl): New inline function.
26624 (grub_isalnum): Likewise.
26625 (grub_strtol): Likewise.
26626
266272010-02-06 Colin D Bennett <colin@gibibit.com>
26628
26629 * normal/menu_text.c (get_entry_number): Move from here ...
26630 * normal/menu.c (get_entry_number): ... moved here.
26631 * include/grub/menu.h (grub_menu_get_default_entry_index):
26632 New prototype.
26633 * normal/menu.c (grub_menu_get_default_entry_index): New function.
26634 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
26635 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
26636 (grub_menu_viewer_should_return): Likewise.
26637 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
26638 * normal/menu_text.c (run_menu): Enable menu switching.
26639 * normal/menu_viewer.c (should_return): New variable.
26640 (menu_viewer_changed): Likewise.
26641 (grub_menu_viewer_show_menu): Handle menu viewer changes.
26642 (grub_menu_viewer_should_return): New function.
26643 (menuviewer_write_hook): Likewise.
26644 (grub_menu_viewer_init): Likewise.
26645
266462010-02-06 Colin D Bennet <colin@gibibit.com>
266472010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26648
26649 Support for gfxterm in a window.
26650
26651 * include/grub/gfxterm.h: New file.
26652 * include/grub/video.h (struct grub_video_rect): New declaration.
26653 (grub_video_rect_t): Likewise.
26654 * term/gfxterm.c (struct grub_gfxterm_window): New type.
26655 (refcount): New variable.
26656 (render_target): Likewise.
26657 (window): Likewise.
26658 (repaint_callback): Likewise.
26659 (grub_virtual_screen_setup): Use 'render_target'.
26660 (init_window): New function.
26661 (grub_gfxterm_init_window): Likewise.
26662 (grub_gfxterm_init): Check reference counter.
26663 Use init_window.
26664 (destroy_window): New function.
26665 (grub_gfxterm_destroy_window): Likewise.
26666 (grub_gfxterm_fini): Check reference counter.
26667 Use destroy_window.
26668 (redraw_screen_rect): Restore viewport.
26669 Use 'render_target' and 'window'.
26670 Call 'repaint_callback'.
26671 (write_char): Use 'render_target'.
26672 (draw_cursor): Likewise.
26673 (scroll_up): Restore viewport.
26674 Use 'render_target' and 'window'.
26675 Call 'repaint_callback'.
26676 (grub_gfxterm_cls): Likewise.
26677 (grub_gfxterm_refresh): Use 'window'.
26678 (grub_gfxterm_set_repaint_callback): New function.
26679 (grub_gfxterm_background_image_cmd): Use 'window'.
26680 (grub_gfxterm_get_term): New function.
26681 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
26682
266832010-02-06 Colin D Bennett <colin@gibibit.com>
26684
26685 Bitmap scaling support.
26686
26687 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
26688 (bitmap_scale_mod_SOURCES): New variable.
26689 (bitmap_scale_mod_CFLAGS): Likewise.
26690 (bitmap_scale_mod_LDFLAGS): Likewise.
26691 * include/grub/bitmap_scale.h: New file.
26692 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
26693 (background_image_cmd_options): New variable.
26694 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
26695 (cmd): Rename and change type to ...
26696 (background_image_cmd_handle): ... this. All users updated.
26697 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
26698 * video/bitmap_scale.c: New file.
26699
267002010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26701
26702 SDL support.
26703
26704 * Makefile.in (LIBSDL): New variable.
26705 (enable_grub_emu_sdl): Likewise.
26706 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
26707 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
26708 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
26709 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
26710 * util/sdl.c: New file.
26711
267122010-02-06 Colin D Bennett <colin@gibibit.com>
267132010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26714
26715 Double buffering support.
26716
26717 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
26718 * include/grub/video.h: Update comment.
26719 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
26720 New type.
26721 (grub_video_fb_doublebuf_blit_init): New prototype.
26722 * term/gfxterm.c (scroll_up): Support double buffering.
26723 (grub_gfxterm_refresh): Likewise.
26724 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
26725 (grub_video_fb_doublebuf_blit_init): Likewise.
26726 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
26727 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
26728 'displayed_page', 'render_page' and 'update_screen'.
26729 (grub_video_vbe_fini): Free offscreen buffer.
26730 (doublebuf_pageflipping_commit): New function.
26731 (doublebuf_pageflipping_update_screen): Likewise.
26732 (doublebuf_pageflipping_init): Likewise.
26733 (double_buffering_init): Likewise.
26734 (grub_video_vbe_setup): Enable doublebuffering.
26735 (grub_video_vbe_swap_buffers): Implement.
26736 (grub_video_vbe_set_active_render_target): Handle double buffering.
26737 (grub_video_vbe_get_active_render_target): Likewise.
26738 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
26739 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
26740 (grub_video_vbe_enable_double_buffering): Likewise.
26741 (grub_video_vbe_swap_buffers): Use update_screen.
26742 (grub_video_set_mode): Use double buffering.
26743
267442010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26745
26746 * maintainance/gentrigtables.py: Remove.
26747 * lib/trig.c: Likewise.
26748
26749 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
26750
26751 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
26752 `trigtables.c'.
26753 (trigtables.c): New rule.
26754 (gentrigtables): Likewise.
26755 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
26756
267572010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26758
26759 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
26760 integer constants.
26761
267622010-02-06 Colin D Bennet <colin@gibibit.com>
26763
26764 Trigonometry support.
26765
26766 * include/grub/trig.h: New file.
26767 * lib/trig.c: Likewise.
26768 * maintainance/gentrigtables.py: Likewise.
26769 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
26770 (trig_mod_SOURCES): New variable.
26771 (trig_mod_CFLAGS): Likewise.
26772 (trig_mod_LDFLAGS): Likewise.
26773
5562834e
VS
267742010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26775
26776 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
26777 disk devices.
26778
4f8528fc
VS
267792010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26780
26781 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
26782 error.
26783
2b4068e9
VS
267842010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
26785
26786 * util/hostdisk.c (open_device): Don't use partition device when reading
26787 before the partition.
26788 (grub_util_biosdisk_read): Don't read from partition and before the
26789 partition in single operation.
26790 (grub_util_biosdisk_write): Don't write to partition and before the
26791 partition in single operation.
26792
399f6e4d
TL
267932010-02-03 Torsten Landschoff <torsten@debian.org>
26794
26795 * kern/disk.c (grub_disk_read): Fix offset computation when reading
26796 last sectors.
26797
996649b0
VS
267982010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
26799
26800 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
26801 CDROM reads.
26802 (grub_biosdisk_write): Refuse to write to CDROM.
26803
3b205d4d
VS
268042010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
26805
26806 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
26807
61e89d9d
VS
268082010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
26809
26810 * font/font.c (find_glyph): Check that bmp_idx is available before
26811 using it.
26812 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
26813 with (font == NULL).
26814
bf7fcba2
CS
268152010-01-28 Christian Schmitt <chris@ilovelinux.de>
26816
26817 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
26818
f45d2663
BC
268192010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
26820
26821 * include/grub/script_sh.h (sourcecode): Add const qualifier.
26822 * util/grub-script-check.c (getline): Fix empty lines case.
26823
ec1444e6
RM
268242010-01-28 Robert Millan <rmh.grub@aybabtu.com>
26825
26826 * Makefile.in (check): Exit with fail status when one of the tests
26827 fails.
26828 * tests/example_functional_test.c (example_test): Fix reversed assert.
26829 * tests/example_unit_test.c (example_test): Likewise.
26830
2e1cb9bb
CW
268312010-01-28 Colin Watson <cjwatson@ubuntu.com>
26832
26833 * util/grub.d/10_linux.in: This script does not use any of the
26834 contents of gettext.sh, only the external command `gettext', so stop
26835 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
26836 the same prefix as GRUB.)
26837 * util/grub.d/10_kfreebsd.in: Likewise.
26838
63533ab0
VS
268392010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
26840
26841 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
26842 of the line.
26843
989e1f93
VS
268442010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
26845
26846 * kern/disk.c (grub_disk_read): Fix offset computation when reading
26847 last sectors.
26848
e709ebe2
VS
268492010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
26850
26851 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
26852 having a 4KiB and not 32KiB buffer size.
26853
27dea7ed
RM
268542010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26855
26856 * util/hostfs.c: Include `<errno.h>'.
26857 (grub_hostfs_read): Handle errors from fseeko() and fread().
26858
67667b9c
RM
268592010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26860
26861 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
26862 loop when using read hooks on files whose size isn't sector-aligned.
26863
c294d9d8
RM
268642010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26865
26866 Remove unused parameter.
26867
26868 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
26869 (grub_iso9660_open): Remove initialization of `data->length'.
26870
af75a9f1
RM
268712010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26872
26873 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
26874 memleak conditions.
26875
254e2ce5 268762010-01-27 Carles Pina i Estany <carles@pina.cat>
26877
26878 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
26879 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
26880
b510928c 268812010-01-26 Carles Pina i Estany <carles@pina.cat>
26882
26883 * util/bin2h.c (usage): Fix warning (space after backslash).
26884
aa2f9dd2 268852010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 26886
26887 * font/font.c: Include `grub/fontformat.h.
26888 Remove font file format constants.
26889 (grub_font_load): Use the new macros.
26890 * include/grub/fontformat.h: New file.
26891 * util/grub-mkfont.c: Include `grub/fontformat.c'.
26892 (write_font_pf2): Use the new macros.
26893
94e7e712
RM
268942010-01-26 Robert Millan <rmh.grub@aybabtu.com>
26895
26896 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
26897 does.
26898
3973a59a
RM
268992010-01-26 Robert Millan <rmh.grub@aybabtu.com>
26900
26901 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
26902
26903 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
26904 (_start): Macroify `0x7F'.
26905
26906 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
26907 (make_install_device): Use "(pxe)" as fallback prefix when booting
26908 via PXE.
26909
42e0cba3
GS
269102010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
26911
26912 * configure.ac: Reset LIBS after check for libgcc symbols.
26913
847effd8
CW
269142010-01-25 Colin Watson <cjwatson@ubuntu.com>
26915
26916 * util/hostdisk.c (open_device): Add trailing newline to debug
26917 message.
26918
ea4a7e35
GS
269192010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
26920
26921 * configure.ac: Check for `limits.h'.
26922 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
26923
67951a53
RM
269242010-01-24 Robert Millan <rmh.grub@aybabtu.com>
26925
26926 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
26927 capitalize error strings.
26928
c273d4ce
ST
269292010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26930
26931 * util/grub.d/10_hurd.in: Add a recovery mode.
26932
69be5b74
VS
269332010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
26934
26935 * configure.ac: Check for libgcc symbols with -nostdlib.
26936
fc9e5810
BC
269372010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
26938
26939 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
26940
4b358c0a
VS
269412010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
26942
26943 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
26944 stack since heap may be unavailable at that point.
26945 (grub_ofconsole_gotoxy): Likewise.
26946
454fcd1c
VS
269472010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
26948
26949 * configure.ac: Check for _restgpr_14_x.
26950 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
26951 and _savegpr_* prototypes.
26952
566863ca
RM
269532010-01-22 Robert Millan <rmh.grub@aybabtu.com>
26954
26955 Use generic grub_reboot() for i386-efi.
26956
26957 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
26958 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
26959 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
26960
bf86e59a
VS
269612010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
26962
26963 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
26964 presence of "prefix" variable as it breaks when normal.mod is
26965 embedded.
26966
d645e0f8
VS
269672010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
26968
26969 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
26970 stack since heap is unavailable at that point.
26971
f9ab2e25
VS
269722010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
26973
26974 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
26975 (grub_freebsd_bootinfo): Rewritten.
26976 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
26977
01fc7054
VS
269782010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
26979
26980 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
26981
caab4fd6
RM
269822010-01-21 Robert Millan <rmh.grub@aybabtu.com>
26983
26984 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
26985 domain now.
26986
67eb1427
FZ
269872010-01-20 Felix Zielcke <fzielcke@z-51.de>
26988
26989 * util/misc.c (make_system_path_relative_to_its_root): Change the work
26990 around for handling "/" to the correct fix. Fix a memory leak. Use
26991 xstrdup instead of strdup.
26992
a9ed4ff3
VS
269932010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26994
26995 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
26996
269972010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
26998
26999 Optimise glyph lookup by Basic Multilingual Plane lookup array.
27000
27001 * font/font.c (struct grub_font): New member 'bmp_idx'.
27002 (font_init): Initialise 'bmp_idx'.
27003 (load_font_index): Fill 'bmp_idx'.
27004 (find_glyph): Make inline. Use bmp_idx for BMP characters.
27005
48209f4f
VS
270062010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27007
27008 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
27009 unnecessary calls.
27010
9f0a4bb7
VS
270112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27012
27013 Move context handling out of the kernel.
27014
27015 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
27016 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
27017 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
27018 * conf/i386-efi.rmk: Likewise.
27019 * conf/i386-ieee1275.rmk: Likewise.
27020 * conf/i386-pc.rmk: Likewise.
27021 * conf/powerpc-ieee1275.rmk: Likewise.
27022 * conf/sparc64-ieee1275.rmk: Likewise.
27023 * conf/x86_64-efi.rmk: Likewise.
27024 * include/grub/env.h: Include grub/menu.h.
27025 (grub_env_var_type): Removed.
27026 (grub_env_var): Replaced field 'type' with 'global'.
27027 (grub_env_find): New prototype.
27028 (grub_env_context_open): Remove EXPORT_FUNC.
27029 (grub_env_context_close): Likewise.
27030 (grub_env_export): Likewise.
27031 (grub_env_set_data_slot): Removed.
27032 (grub_env_get_data_slot): Likewise.
27033 (grub_env_unset_data_slot): Likewise.
27034 (grub_env_unset_menu): New prototype.
27035 (grub_env_set_menu): Likewise.
27036 (grub_env_get_menu): Likewise.
27037 * include/grub/env_private.h: New file.
27038 * include/grub/normal.h (grub_context_init): New prototype.
27039 (grub_context_fini): Likewise.
27040 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
27041 * normal/context.c (grub_cmd_export): ... to here.
27042 * kern/env.c: Include env_private.h.
27043 (HASHSZ): Moved to include/grub/env_private.h.
27044 (grub_env_context): Likewise.
27045 (grub_env_sorted_var): Likewise.
27046 (current_context): Renamed from this ...
27047 (grub_current_context): ...to this. 'static' removed. All users updated.
27048 (grub_env_find): Removed 'static'.
27049 (grub_env_context_open): Moved to normal/context.c.
27050 (grub_env_context_close): Likewise.
27051 (grub_env_export): Likewise.
27052 (mangle_data_slot_name): Removed.
27053 (grub_env_set_data_slot): Likewise.
27054 (grub_env_get_data_slot): Likewise.
27055 (grub_env_unset_data_slot): Likewise.
27056 * kern/main.c (grub_set_root_dev): Don't export root.
27057 It will be done later.
27058 (grub_main): Don't export prefix.
27059 It will be done later.
27060 * normal/context.c: New file.
27061 * normal/main.c (free_menu): Use grub_env_unset_menu.
27062 (grub_normal_add_menu_entry): Use grub_env_get_menu.
27063 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
27064 (GRUB_MOD_INIT(normal)): Call grub_context_init.
27065 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
27066
8dd35b8c
VS
270672010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27068
27069 setpci support.
27070
27071 * commands/setpci.c: New file.
27072 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
27073 (setpci_mod_SOURCES): New variable.
27074 (setpci_mod_CFLAGS): Likewise.
27075 (setpci_mod_LDFLAGS): Likewise.
27076
449193d5
VS
270772010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27078
27079 Byte-addressable PCI configuration space.
27080
27081 * bus/pci.c (grub_pci_make_address): Use byte address instead of
27082 dword address.
27083 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
27084 GRUB_PCI_REG_CACHELINE.
27085 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
27086 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
27087 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
27088 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
27089 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
27090 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
27091 grub_pci_make_address.
27092 (lock_rom_area): Likewise.
27093 * commands/lspci.c (grub_lspci_iter): Use macroses
27094 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
27095 of grub_pci_make_address.
27096 * disk/ata.c (grub_ata_pciinit): Likewise.
27097 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
27098 (GRUB_PCI_REG_VENDOR): Likewise.
27099 (GRUB_PCI_REG_DEVICE): Likewise.
27100 (GRUB_PCI_REG_COMMAND): Likewise.
27101 (GRUB_PCI_REG_STATUS): Likewise.
27102 (GRUB_PCI_REG_REVISION): Likewise.
27103 (GRUB_PCI_REG_CLASS): Likewise.
27104 (GRUB_PCI_REG_CACHELINE): Likewise.
27105 (GRUB_PCI_REG_LAT_TIMER): Likewise.
27106 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
27107 (GRUB_PCI_REG_BIST): Likewise.
27108 (GRUB_PCI_REG_ADDRESSES): Likewise.
27109 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27110 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27111 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27112 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27113 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27114 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27115 (GRUB_PCI_REG_CIS_POINTER): Likewise.
27116 (GRUB_PCI_REG_SUBVENDOR): Likewise.
27117 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
27118 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
27119 (GRUB_PCI_REG_CAP_POINTER): Likewise.
27120 (GRUB_PCI_REG_IRQ_LINE): Likewise.
27121 (GRUB_PCI_REG_IRQ_PIN): Likewise.
27122 (GRUB_PCI_REG_MIN_GNT): Likewise.
27123 (GRUB_PCI_REG_MAX_LAT): Likewise.
27124 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
27125 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
27126 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 27127 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
27128 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
27129 space.
27130
96d73208
RM
271312010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27132
27133 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
27134 can be reliably determined to be supported.
27135
d4484482
RM
271362010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27137
27138 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
27139 that VESA is supported.
27140 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
27141 supported.
27142
00308ecf
VS
271432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27144
27145 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
27146
f66924a4
RM
271472010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27148
27149 * util/misc.c (make_system_path_relative_to_its_root): Work around
27150 special-casing of "/", as previous incarnation of this routine did.
27151
cbca0ada
VS
271522010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27153
27154 Fix any-emu compilation.
27155
27156 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
27157 * grub_bin2h_SOURCES: New variable.
27158
34a66d99
RM
271592010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27160
27161 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
27162
94fabf58
RM
271632010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27164
27165 * util/grub.d/00_header.in: Fix handling of locale_dir.
27166
02cf98ca
VS
271672010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27168
27169 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
27170 as possible unifont location (Gentoo).
27171 Reported by: Alexander Brüning
27172
327dbcd7
VS
271732010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27174
27175 Don't try to generate lists for kernel.img.
27176
27177 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
27178 (pkglib_MODULES): Remove kernel.img.
27179 (kernel_img_EXPORTS): Removed.
27180 (kernel_img_RELOCATABLE): New variable.
27181 * conf/x86_64-efi.rmk: Likewise.
27182 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
27183
ca467290
VS
271842010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27185
27186 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
27187 grub_xasprintf or grub_snprintf.
27188 (grub_vsprintf): Likewise.
27189 (grub_snprintf): New proto.
27190 (grub_vsnprintf): Likewise.
27191 (grub_xasprintf): Likewise.
27192 (grub_xvasprintf): Likewise.
27193 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
27194 (grub_sprintf): Removed.
27195 (grub_vsnprintf): New function.
27196 (grub_snprintf): Likewise.
27197 (grub_xvasprintf): Likewise.
27198 (grub_xasprintf): Likewise.
27199 (grub_vsprintf): Renamed to ...
27200 (grub_vsnprintf_real): ...this. New argument max_len.
27201
aca655fd
BC
272022010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
27203
27204 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
27205 fix grub-script-check warning.
27206
7ee92c32
VS
272072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27208
27209 * include/grub/font.h (grub_font_load): Fix prototype.
27210
f80927ca
VS
272112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27212
27213 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
27214
119c50ea
VS
272152010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27216
27217 * include/grub/x86_64/at_keyboard.h: New file.
27218
47d5f3c1
VS
272192010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27220
27221 * loader/mips/linux.c: Include missing grub/i18n.h.
27222
55ff5266
RM
272232009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27224
27225 * normal/menu.c (notify_execution_failure): Clarify error message.
27226
c893cc87
RM
272272009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27228
27229 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
27230 return value (and revert all return statements). Update users.
27231
917dd370
CW
272322010-01-20 Dan Merillat <debian@dan.merillat.org>
27233
27234 * kern/device.c (grub_device_iterate): Allocate new part_ent
27235 structure based on sizeof (*p) rather than sizeof (p->next), to
27236 account for structure padding.
27237
27238 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
27239 disk is NULL, which might happen for LVM physical volumes with no
27240 LVM signature.
27241
d4a4ee57
RM
272422009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27243
27244 * loader/mips/linux.c (grub_cmd_initrd)
27245 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
27246
272472009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27248
27249 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
27250 (grub_video_video_init, grub_video_bitmap_init)
27251 (grub_font_manager_init, grub_term_gfxterm_init)
27252 (grub_at_keyboard_init): New extern declarations.
27253 (grub_machine_init): Initialize gfxterm and at_keyboard.
27254
27255 * kern/main.c (grub_main): Revert grub_printf delay kludge.
27256
27257 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
27258 `gfxterm.mod' into core image.
27259
27260 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27261 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27262 (kernel_img_FORMAT): Copy to ...
27263
27264 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27265 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27266 (kernel_img_FORMAT): ... here, and ...
27267
27268 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27269 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27270 (kernel_img_FORMAT): ... here.
27271
27272 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
27273 and input (at_keyboard) terminals in kernel.
27274 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
27275
27276 (pkglib_MODULES): Remove `pci.mod'.
27277 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
27278 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
27279 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27280 (at_keyboard_mod_LDFLAGS): Remove variables.
27281
272822010-01-11 Felix Zielcke <fzielcke@z-51.de>
27283
27284 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
27285
272862009-12-10 Robert Millan <rmh.grub@aybabtu.com>
27287
27288 * include/grub/mips/libgcc.h: Only export symbols for functions
27289 that libgcc provides.
27290
272912009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
27292
27293 MIPS support.
27294
27295 * bus/bonito.c: New file.
27296 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
27297 GRUB_PCI_NUM_DEVICES.
27298 * term/i386/pc/serial.c: Move to ...
27299 * term/serial.c: ... here. All users updated.
27300 * util/i386/pc/grub-mkimage.c: Move to ...
27301 * util/grub-mkrawimage.c: ... here. All users updated.
27302 * term/i386/pc/at_keyboard.c: Move to ...
27303 * term/at_keyboard.c: ... here. All users updated.
27304 * conf/mips-qemu-mips.rmk: New file.
27305 * conf/mips-yeeloong.rmk: Likewise.
27306 * conf/mips.rmk: Likewise.
27307 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
27308 mipsel-qemu-mips.
27309 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
27310 to port addresses.
27311 (grub_ata_pciinit): Support CS5536.
27312 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
27313 * font/font_cmd.c (loadfont_command): Open file before passing it to
27314 grub_font_load.
27315 (pseudo_file_read): New function.
27316 (pseudo_file_close): Likewise.
27317 (pseudo_fs): New structure.
27318 (load_font_module): New function.
27319 (GRUB_MOD_INIT(font_manager)): Load embedded font.
27320 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
27321 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
27322 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
27323 * include/grub/i386/at_keyboard.h: Split into ...
27324 * include/grub/at_keyboard.h: ... this ...
27325 * include/grub/i386/at_keyboard.h: ... and this.
27326 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
27327 New prototype.
27328 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
27329 updated.
27330 (grub_elf64_size): Likewise.
27331 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
27332 filename.
27333 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
27334 * include/grub/i386/coreboot/serial.h: Rewritten.
27335 * include/grub/i386/ieee1275/serial.h: Include
27336 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
27337 * include/grub/i386/pc/serial.h: Moved from here ...
27338 * include/grub/serial.h: ... to here. All users updated.
27339 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
27340 (GRUB_PCI_NUM_BUS): Likewise.
27341 (GRUB_PCI_NUM_DEVICES): Likewise.
27342 (grub_pci_device_map_range): Add missing volatile keyword.
27343 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
27344 * include/grub/mips/at_keyboard.h: New file.
27345 * include/grub/mips/cache.h: Likewise.
27346 * include/grub/mips/io.h: Likewise.
27347 * include/grub/mips/kernel.h: Likewise.
27348 * include/grub/mips/libgcc.h: Likewise.
27349 * include/grub/mips/pci.h: Likewise.
27350 * include/grub/mips/qemu-mips/boot.h: Likewise.
27351 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27352 * include/grub/mips/qemu-mips/loader.h: Likewise.
27353 * include/grub/mips/qemu-mips/memory.h: Likewise.
27354 * include/grub/mips/qemu-mips/serial.h: Likewise.
27355 * include/grub/mips/qemu-mips/time.h: Likewise.
27356 * include/grub/mips/relocator.h: Likewise.
27357 * include/grub/mips/time.h: Likewise.
27358 * include/grub/mips/types.h: Likewise.
27359 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
27360 * include/grub/mips/yeeloong/boot.h: Likewise.
27361 * include/grub/mips/yeeloong/kernel.h: Likewise.
27362 * include/grub/mips/yeeloong/loader.h: Likewise.
27363 * include/grub/mips/yeeloong/memory.h: Likewise.
27364 * include/grub/mips/yeeloong/pci.h: Likewise.
27365 * include/grub/mips/yeeloong/serial.h: Likewise.
27366 * include/grub/mips/yeeloong/time.h: Likewise.
27367 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
27368 * kern/elf.c (grub_elf32_size): New parameter. All users
27369 updated.
27370 (grub_elf64_size): Likewise.
27371 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
27372 Load modules before saying "Welcome to GRUB!".
27373 Call grub_refresh after saying "Welcome to GRUB!".
27374 * kern/mips/cache.S: New file.
27375 * kern/mips/cache_flush.S: Likewise.
27376 * kern/mips/dl.c: Likewise.
27377 * kern/mips/init.c: Likewise.
27378 * kern/mips/qemu-mips/init.c: Likewise.
27379 * kern/mips/startup.S: Likewise.
27380 * kern/mips/yeeloong/init.c: Likewise.
27381 * kern/term.c (grub_putcode): Handle NULL terminal.
27382 (grub_getcharwidth): Likewise.
27383 (grub_getkey): Likewise.
27384 (grub_checkkey): Likewise.
27385 (grub_getkeystatus): Likewise.
27386 (grub_getxy): Likewise.
27387 (grub_getwh): Likewise.
27388 (grub_gotoxy): Likewise.
27389 (grub_cls): Likewise.
27390 (grub_setcolorstate): Likewise.
27391 (grub_setcolor): Likewise.
27392 (grub_getcolor): Likewise.
27393 (grub_refresh): Likewise.
27394 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
27395 (write_jump): Add hatch nop.
27396 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
27397 * lib/mips/setjmp.S: New file.
27398 * loader/mips/linux.c: Likewise.
27399 * term/i386/pc/at_keyboard.c: Move from here ...
27400 * term/at_keyboard.c: ... to here.
27401 * term/i386/pc/serial.c: Moved from here ...
27402 * term/serial.c: ... to here. All users updated.
27403 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
27404 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
27405 (serial_translate_key_sequence): Avoid deadlock.
27406 (grub_serial_getkey): Handle backspace.
27407 (grub_serial_putchar): Fix newline handling.
27408 * util/i386/pc/grub-mkimage.c: Move from here ...
27409 * util/grub-mkrawimage.c: ... to here. All users updated.
27410 (generate_image): New parameters 'font_path' and 'format'.
27411 Support embedding font.
27412 Use grub_host_to_target* instead of grub_cpu_to_le*.
27413 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
27414 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
27415 (options): New option "--font".
27416 (usage): Likewise.
27417 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
27418 (main): Handle "--font".
27419 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
27420 (grub_virtual_screen_setup): Set bg_color_display.
27421 (redraw_screen_rect): Use bg_color_display instead of incorrect
27422 bg_color.
27423 (grub_gfxterm_cls): Likewise.
27424 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
27425 Support embedding config file.
27426 (add_segments): Likewise.
27427 (options): New option "--config".
27428 (main): Handle "--config".
27429 * video/sm712.c: New file.
27430
25c2b5b3
RM
274312010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27432
27433 Fix parallel builds.
27434
27435 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
27436 font.c depend on ascii.h).
27437
274382010-01-12 Carles Pina i Estany <carles@pina.cat>
27439
27440 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
27441
274422010-01-11 Carles Pina i Estany <carles@pina.cat>
27443
27444 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
27445 By default: disabled.
27446 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
27447 parameter.
27448
274492010-01-10 Carles Pina i Estany <carles@pina.cat>
27450
27451 * font/font.c: Update copyright years.
27452 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
27453
274542010-01-10 Carles Pina i Estany <carles@pina.cat>
27455
27456 * font/font.c: Include `ascii.h'.
27457 (ASCII_BITMAP_SIZE): New macro.
27458 (ascii_font_glyph): Define.
27459 (ascii_glyph_lookup): New function.
27460 (grub_font_get_string_width): Change comment. If glyph not found, use
27461 ascii_glyph_lookup.
27462 (grub_font_get_glyph_with_fallback): If glyph not available returns
27463 ascii_glyph_lookup.
27464 * util/grub-mkfont.c (file_formats): New enum.
27465 (options): Add `ascii-bitmaps' new option.
27466 (usage): Add `asii-bitmaps' new option.
27467 (write_font_ascii_bitmap): New function.
27468 (write_font): Rename to ...
27469 (write_font_p2): ... this. Remove print_glyphs call.
27470 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
27471 used. Call print_glyphs.
27472 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
27473
274742010-01-14 Robert Millan <rmh.grub@aybabtu.com>
27475
27476 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
27477 (grub_bin2h_SOURCES): New variable.
27478 * util/bin2h.c: New file.
27479
915fc1b8
VS
274802010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27481
27482 * include/multiboot.h: Resynced with spec.
27483 * include/multiboot2.h: Likewise.
27484 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
27485 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
27486
9444b678
RM
274872010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27488
27489 * include/grub/term.h (grub_term_register_input,
27490 grub_term_register_output): Check return of terminal init()
27491 routines, and abort if errors are raised.
27492
27493 * commands/terminal.c: Update copyright year.
27494
cba98e8d
RM
274952010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27496
27497 * commands/terminal.c (grub_cmd_terminal_input)
27498 (grub_cmd_terminal_output): Check return of terminal init()
27499 routines, and abort if errors are raised.
27500
6f7db5d6
VS
275012010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
27502
27503 * include/grub/i386/bsd.h: Fix include pathes.
27504
262bff8d
VS
275052010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
27506
27507 Add missing *BSD copyright headers.
27508
27509 * include/grub/aout.h: Add BSD licence.
27510 * include/grub/i386/bsd.h: Parts under different licences moved to ...
27511 * include/grub/i386/freebsd_linker.h: ... here,
27512 * include/grub/i386/freebsd_reboot.h: ... here,
27513 * include/grub/i386/netbsd_bootinfo.h: ... here,
27514 * include/grub/i386/netbsd_reboot.h: ... here,
27515 * include/grub/i386/openbsd_bootarg.h: ... here,
27516 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
27517 licence to each file.
27518
b2cab848
RM
275192010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27520
27521 * acinclude.m4: Remove `nop' assembly instruction; it's not
27522 implemented by all architectures.
27523
2cb6be4b
RM
275242010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27525
27526 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
27527 ELILO. This is no longer necessary.
27528
a2eaee15
BC
275292010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
27530
27531 Added new tool, grub-scrit-check to verify grub.cfg syntax.
27532
27533 * util/grub-script-check.c: grub-script-check tool.
27534 * conf/common.rmk: Make rules for grub-script-check.
27535
88d17012
RM
275362010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27537
27538 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
27539 spotting it back in 2008. Shame on me for forgetting he did.
27540
27541 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
27542
8040619d
RM
275432010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27544
27545 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
27546 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
27547 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
27548 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
27549 (GRUB_VIDEO_TYPE_EFI): Rename to ...
27550 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
27551
a0c2a0f6
RM
275522010-01-17 Robert Millan <rmh.grub@aybabtu.com>
27553
27554 * include/grub/test.h: Add license header.
27555 * tests/example_functional_test.c: Likewise.
27556 * tests/example_unit_test.c: Likewise.
27557 * tests/lib/functional_test.c: Likewise.
27558 * tests/lib/test.c: Likewise.
27559 * tests/lib/unit_test.c: Likewise.
27560
b0b13907
VS
275612010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
27562
27563 Use flag-based instead of hook-based video mode selection and "auto"
27564 keyword.
27565
27566 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
27567 (grub_video_set_mode): Changed prototype. All users updated.
27568 (grub_video_check_mode_flag): New inline function.
27569 * video/video.c (parse_modespec): New function.
27570 (grub_video_set_mode): Parse flags and keywords.
27571
ea379330 275722010-01-17 Carles Pina i Estany <carles@pina.cat>
27573
27574 * util/misc.c (grub_util_info): Fix the order of the parameters in a
27575 fprintf call.
27576
e15c215e
FZ
275772010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
27578
27579 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
27580
409ae1c9 275812010-01-16 Carles Pina i Estany <carles@pina.cat>
27582
27583 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
27584 string.
27585 * util/grub-emu.c (usage): Likewise.
27586 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
27587 * util/i386/efi/grub-mkimage.c (usage): Likewise.
27588 * util/i386/pc/grub-mkimage.c (usage): Likewise.
27589 * util/i386/pc/grub-setup.c (usage): Likewise.
27590
70a14d3d 275912010-01-16 Carles Pina i Estany <carles@pina.cat>
27592
27593 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
27594 the message.
27595 (grub_util_info): Likewise.
27596 (grub_util_error): Likewise.
27597 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
27598 and/or new lines in `grub_util_warna', `grub_util_info',
27599 `grub_util_error' calls.
27600 * util/getroot.c: Likewise.
27601 * util/grub-editenv.c: Likewise.
27602 * util/grub-emu.c: Likewise.
27603 * util/grub-fstest.c: Likewise.
27604 * util/grub-mkdevicemap.c: Likewise.
27605 * util/grub-mkfont.c: Likewise.
27606 * util/grub-mkpasswd-pbkdf2.c: Likewise.
27607 * util/grub-mkrelpath.c: Likewise.
27608 * util/grub-pe2elf.c: Likewise.
27609 * util/grub-probe.c: Likewise.
27610 * util/hostdisk.c: Likewise.
27611 * util/i386/efi/grub-mkimage.c: Likewise.
27612 * util/i386/pc/grub-mkimage.c: Likewise.
27613 * util/i386/pc/grub-setup.c: Likewise.
27614 * util/ieee1275/ofpath.c: Likewise.
27615 * util/mkisofs/eltorito.c: Likewise.
27616 * util/mkisofs/rock.c: Likewise.
27617 * util/mkisofs/write.c: Likewise.
27618 * util/raid.c: Likewise.
27619 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
27620 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27621
a0b766fc
VS
276222010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
27623
27624 Enable multiboot on non-pc.
27625
27626 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
27627 multiboot.mod and multiboot2.mod to ...
27628 * conf/i386.rmk (pkglib_MODULES): ... here.
27629 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
27630 Moved to ...
27631 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
27632 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
27633 Moved to ...
27634 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
27635 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
27636 Moved to ...
27637 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
27638 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
27639 Moved to ...
27640 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
27641 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
27642 relocator.mod.
27643 (ata_mod_SOURCES): Removed.
27644 (ata_mod_CFLAGS): Likewise.
27645 (ata_mod_LDFLAGS): Likewise.
27646 (relocator_mod_SOURCES): Removed.
27647 (relocator_mod_CFLAGS): Likewise.
27648 (relocator_mod_ASFLAGS): Likewise.
27649 (relocator_mod_LDFLAGS): Likewise.
27650 Include i386.mk.
27651 * include/grub/x86_64/multiboot.h: New file.
27652 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
27653 Terminate EFI.
27654
884ade56
VS
276552010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
27656
27657 Video multiboot support.
27658
27659 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
27660 New prototype.
27661 * include/multiboot.h: Resynced with multiboot specification.
27662 * include/multiboot2.h: Likewise.
27663 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
27664 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
27665 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
27666 (HAS_VGA_TEXT): Likewise.
27667 (accepts_video): New variable.
27668 (grub_multiboot_set_accepts_video): New function.
27669 (grub_multiboot_get_mbi_size): Account for video structures.
27670 (set_video_mode): New function.
27671 (retrieve_video_parameters): Likewise.
27672 (grub_multiboot_make_mbi): Fill video fields.
27673
0d90e8a6
VS
276742010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
27675
27676 Video driver ids.
27677
27678 * include/grub/video.h (grub_video_driver_id): New type.
27679 (grub_video_adapter): New member 'id'. All users updated.
27680 (grub_video_get_driver_id): New proto.
27681 * video/video.c (grub_video_get_driver_id): New function.
27682
5c71db1b 276832010-01-14 Carles Pina i Estany <carles@pina.cat>
27684
27685 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
27686 `var=val'.
27687
cca15b52 276882010-01-14 Carles Pina i Estany <carles@pina.cat>
27689
27690 * normal/cmdline.c (print_completion): Gettextizze.
27691
c586fbb2 276922001-01-14 Carles Pina i Estany <carles@pina.cat>
27693
27694 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
27695
ba2f6848 276962010-01-14 Carles Pina i Estany <carles@pina.cat>
27697
27698 * gettext/gettext.c (grub_gettext_translate): Push and pop
27699 grub_errno.
27700 (grub_gettext_delete_list): Change comment style.
27701 * kern/err.c (grub_error): Gettextizze.
27702 (grub_fatal): Gettextizze.
27703
0a46429a
RM
277042010-01-14 Robert Millan <rmh.grub@aybabtu.com>
27705
27706 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
27707 (grub_linux16_real_boot): ... this.
27708 * kern/i386/loader.S: Likewise.
27709 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
27710 (grub_linux16_boot): New function. Switches to text mode and calls
27711 grub_linux16_real_boot().
27712
27713 * loader/i386/bsd.c: Include `<grub/video.h>'.
27714 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
27715 text mode before calling grub_unix_real_boot().
27716
27717 * loader/i386/multiboot.c: Include `<grub/video.h>'.
27718 (grub_multiboot_boot): Switch to text mode before calling
27719 grub_relocator32_boot().
27720
27721 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
27722 (grub_chainloader_boot): Switch to text mode before calling
27723 grub_chainloader_real_boot().
27724
d6f93a66
RM
277252010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
277262010-01-05 Colin Watson <cjwatson@ubuntu.com>
27727
27728 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
27729 non-empty value.
27730
277312010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
277322010-01-05 Colin Watson <cjwatson@ubuntu.com>
27733
27734 * util/grub.d/00_header.in: Define a "savedefault" function for use
27735 in menu entries.
27736 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
27737
277382010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
277392010-01-05 Colin Watson <cjwatson@ubuntu.com>
27740
27741 * util/grub-mkconfig_lib.in (save_default_entry): Only set
27742 saved_entry if boot_once is unset.
27743 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
27744 previous saved entry (i.e. grub-reboot).
27745
277462009-12-08 Colin Watson <cjwatson@ubuntu.com>
27747
27748 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
27749
277502009-12-08 Colin Watson <cjwatson@ubuntu.com>
27751
27752 * util/grub.d/00_header.in: Use `set var=val' rather than plain
27753 `var=val'.
27754 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
27755
277562009-12-08 Colin Watson <cjwatson@ubuntu.com>
27757
27758 * util/grub-reboot.in: Fix --version output.
27759 * util/grub-set-default.in: Likewise.
27760
277612009-12-08 Colin Watson <cjwatson@ubuntu.com>
27762
27763 * util/grub.d/00_header.in: Silently ignore zero-sized environment
27764 blocks.
27765
277662009-12-08 Colin Watson <cjwatson@ubuntu.com>
27767
27768 * util/grub.d/00_header.in: Quote the value assigned to `default',
27769 in case it contains spaces.
27770
277712009-12-08 Colin Watson <cjwatson@ubuntu.com>
27772
27773 * util/grub.d/30_os-prober.in: Fix merge error that moved a
27774 `save_default_entry' call from the macosx case to the linux case.
27775
277762009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
277772009-10-25 Colin Watson <cjwatson@ubuntu.com>
27778
27779 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
27780 in `chosen' environment variable.
27781 * normal/menu_text.c (get_entry_number): Check if the variable
27782 matches the title of a menu entry.
27783 (run_menu): Pass menu to get_entry_number.
27784
27785 * util/grub-reboot.in: New file.
27786 * util/grub-set-default.in: New file.
27787 * conf/common.rmk (grub-reboot): New utility.
27788 (grub-set-default): New utility.
27789
27790 * util/grub-mkconfig_lib.in (save_default_entry): New function.
27791 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
27792 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
27793 move it to `saved_entry' for the next boot. Load environment on
27794 initialisation.
27795 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
27796 * util/grub.d/10_hurd.in: Likewise.
27797 * util/grub.d/10_linux.in (linux_entry): Likewise.
27798 * util/grub.d/10_windows.in: Likewise.
27799 * util/grub.d/30_os-prober.in: Likewise.
27800
27801 * util/grub-install.in: Create environment block.
27802 * util/i386/efi/grub-install.in: Likewise.
27803 * util/ieee1275/grub-install.in: Likewise.
27804 * util/sparc64/ieee1275/grub-install.in: Likewise.
27805
0934d184
BC
278062010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
27807
27808 Unit testing framework for GRUB.
27809
27810 * Makefile.in: Test framework build rules for 'make check'.
27811 * conf/tests.rmk: Build rules for individual tests and framework.
27812
27813 * include/grub/test.h: Header file for whitebox tests.
27814 * tests/lib/functional_test.c: Framework support for whitebox
27815 functional tests.
27816 * tests/lib/test.c: Common whitebox testing code for unit and
27817 functional tests.
27818 * tests/lib/unit_test.c: Framework support for whitebox unit
27819 tests.
27820
27821 * tests/util/grub-shell-tester.in: Support utility for grub-script
27822 tests.
27823 * tests/util/grub-shell.in: Utility to execute grub-script
27824 commands in a Qemu instance.
27825
27826 * tests/example_functional_test.c: Example whitebox functional
27827 test.
27828 * tests/example_grub_script_test.in: Example grub-script test.
27829 * tests/example_scripted_test.in: Example scripted test.
27830 * tests/example_unit_test.c: Example whitebox unit test.
27831
9c4ffeeb
VS
278322010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
27833
27834 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
27835 Add loader/i386/multiboot_mbi.c.
27836 (multiboot2_mod_SOURCES): Likewise.
27837 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
27838 (multiboot2_mod_SOURCES): Likewise.
27839 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
27840 (grub_multiboot_make_mbi): Likewise.
27841 (grub_multiboot_free_mbi): Likewise.
27842 (grub_multiboot_init_mbi): Likewise.
27843 (grub_multiboot_add_module): Likewise.
27844 (grub_multiboot_set_bootdev): Likewise.
27845 * loader/i386/multiboot.c (mbi): Removed.
27846 (mbi_dest): Likewise.
27847 (alloc_mbi): New variable.
27848 (grub_multiboot_payload_size): Removed. All users updated.
27849 (grub_multiboot_pure_size): New variable.
27850 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
27851 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
27852 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
27853 (grub_fill_multiboot_mmap): Likewise.
27854 (grub_multiboot_get_bootdev): Likewise.
27855 (grub_multiboot): Use multiboot_mbi functions.
27856 * loader/i386/multiboot_mbi.c: New file.
27857
17383dfe
VS
278582010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
27859
27860 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
27861 it would result in module crash.
27862
c1f28820
VS
278632010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
27864
27865 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
27866 (grub_ofconsole_getwh): Split to ...
27867 (grub_ofconsole_getwh): ... this.
27868 (grub_ofconsole_dimensions): ...and this.
27869 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
27870
58655a16
RM
278712010-01-13 Robert Millan <rmh.grub@aybabtu.com>
27872
27873 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
27874
10891398
VS
278752010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
27876
27877 * loader/i386/pc/multiboot2.c: Removed stalled file.
27878
0b8a223c
VS
278792010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
27880
27881 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
27882 Reported by: Grégoire Sutre
27883
92ab12b0
RM
278842010-01-11 Robert Millan <rmh.grub@aybabtu.com>
27885
27886 * util/misc.c (canonicalize_file_name): New function.
27887 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
27888 instead of realpath().
27889
a788afb6
CW
278902010-01-11 Colin Watson <cjwatson@ubuntu.com>
27891
27892 * util/grub-install.in (usage): Clarify meaning of --root-directory,
27893 and make it clearer that it's optional. Based on confusion
27894 witnessed on IRC.
27895
ffa8e3d2
VS
278962010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
27897
27898 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
27899 in premature implicit newline.
27900
e9060a9d
VS
279012010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
27902
27903 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
27904 which resulted in garbled command line at the end of screen.
27905
f0d0c0b7
RM
279062010-01-10 Robert Millan <rmh.grub@aybabtu.com>
27907
27908 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
27909 initialization with similar approach as with other Linux loaders.
27910
0e60bae7
RM
279112010-01-10 Robert Millan <rmh.grub@aybabtu.com>
27912
27913 Fix i386-ieee1275 build.
27914
27915 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
27916 and grub_term_height() for video_{width,height} initialization.
27917
279182010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
27919
27920 Fix grub-emu build.
27921
27922 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
27923
cdb3f378
RM
279242010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
279252010-01-09 Robert Millan <rmh.grub@aybabtu.com>
27926
27927 Support for multiple terminals.
27928
27929 * Makefile.in (pkglib_DATA): terminal.lst.
27930 (terminal.lst): New target.
27931 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
27932 (GRUB_MOD_INIT(handler)): Likewise.
27933 (GRUB_MOD_FINI(handler)): Likewise.
27934 * commands/help.c (grub_cmd_help): Handle multiple terminals.
27935 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
27936 * commands/sleep.c (do_print): Use grub_term_restore_pos.
27937 (grub_cmd_sleep): Use grub_term_save_pos.
27938 * commands/terminal.c: New file.
27939 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
27940 commands/terminal.c and lib/charset.c.
27941 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
27942 (pkglib_MODULES): Add terminal.mod.
27943 (terminal_mod_SOURCES): New variable.
27944 (terminal_mod_CFLAGS): Likewise.
27945 (terminal_mod_LDFLAGS): Likewise.
27946 * genhandlerlist.sh: Don't handle terminals.
27947 * genmk.rb: Generate terminal-*.lst.
27948 * genterminallist.sh: New file.
27949 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
27950 (grub_is_valid_utf8): Likewise.
27951 (grub_utf8_to_ucs4_alloc): Likewise.
27952 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
27953 (grub_menu_register_viewer): Changed argument.
27954 (grub_menu_try_text): New proto.
27955 (grub_gfxmenu_try_hook): New declaration.
27956 * include/grub/normal.h (grub_normal_exit_level): New declaration.
27957 (grub_menu_init_page): Additional argument term.
27958 (grub_normal_init_page): Likewise.
27959 (grub_cmdline_get): Arguments simplified.
27960 (grub_utf8_to_ucs4_alloc): Removed.
27961 (grub_print_ucs4): Additional argument term.
27962 (grub_getstringwidth): Likewise.
27963 (grub_print_message_indented): Likewise.
27964 (grub_menu_text_register_instances): New proto.
27965 (grub_show_menu): Likewise.
27966 (read_terminal_list): Likewise.
27967 (grub_set_more): Likewise.
27968 * include/grub/parser.h: Include handler.h.
27969 * include/grub/reader.h: Rewritten.
27970 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
27971 (GRUB_TERM_WIDTH): Changed to function.
27972 (GRUB_TERM_HEIGHT): Likewise.
27973 (GRUB_TERM_BORDER_WIDTH): Likewise.
27974 (GRUB_TERM_BORDER_HEIGHT): Likewise.
27975 (GRUB_TERM_NUM_ENTRIES): Likewise.
27976 (GRUB_TERM_ENTRY_WIDTH): Likewise.
27977 (GRUB_TERM_CURSOR_X): Likewise.
27978 (grub_term_input_class): Likewise.
27979 (grub_term_output_class): Likewise.
27980 (grub_term_outputs_disabled): New declaration.
27981 (grub_term_inputs_disabled): Likewise.
27982 (grub_term_outputs): Likewise.
27983 (grub_term_inputs): Likewise.
27984 (grub_term_register_input): Rewritten.
27985 (grub_term_register_output): Likewise.
27986 (grub_term_unregister_input): Likewise.
27987 (grub_term_unregister_output): Likewise.
27988 (FOR_ACTIVE_TERM_INPUTS): New macro.
27989 (FOR_DISABLED_TERM_INPUTS): Likewise.
27990 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27991 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27992 * include/grub/terminfo.h: Add oterm argument to all protypes.
27993 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
27994 Use grub_rescue_run.
27995 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
27996 All users updated.
27997 * kern/reader.c: Removed. All users updated.
27998 * kern/rescue_reader.c (grub_rescue_init): Removed.
27999 (grub_rescue_reader): Likewise.
28000 (grub_register_rescue_reader): Likewise.
28001 (grub_rescue_run): New function based on kern/reader.c.
28002 * kern/term.c: Adapted for multiterm.
28003 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
28004 (grub_is_valid_utf8): Likewise.
28005 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
28006 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
28007 right terminal.
28008 * loader/i386/linux.c (grub_linux_boot): Likewise.
28009 * normal/auth.c (grub_username_get): New function.
28010 (grub_auth_check_authentication): Use grub_username_get.
28011 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
28012 * normal/color.c: Adapt for multiterm.
28013 * normal/main.c (read_config_file): Don't use grub_reader_loop.
28014 (grub_normal_init_page): Additional argument term.
28015 (read_lists): Call read_terminal_lists.
28016 (grub_enter_normal_mode): Call grub_cmdline_run.
28017 Handle grub_normal_exit_level.
28018 (grub_cmd_normal): Make reentrant.
28019 (grub_cmd_normal_exit): New function.
28020 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
28021 * normal/menu.c: Adapt for multiterm.
28022 * normal/menu_entry.c: Likewise.
28023 * normal/menu_text.c: Likewise.
28024 * normal/menu_viewer.c: Removed. All users updated.
28025 * normal/term.c: New file.
28026 * util/console.c: Change order of includes to workaround a bug in
28027 ncurses headers.
28028 * term/terminfo.c: New argument oterm on all exported functions.
28029 All users updated.
28030 * util/grub-editenv.c (grub_term_input_class): Removed.
28031 (grub_term_output_class): Likewise.
28032
1a064917
RM
280332010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28034
28035 Make loader output a bit more user-friendly.
28036
28037 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
28038 is being loaded. Likewise for the Hurd.
28039
28040 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
28041 that kernel of FreeBSD ${version} is being loaded.
28042
28043 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
28044 grub_dprintf().
28045 (grub_cmd_initrd): Likewise.
28046 * util/grub.d/10_linux.in (linux_entry): Print message indicating
28047 that Linux ${version} is being loaded. Likewise for initrd.
28048
5ce0a83a 280492010-01-09 Carles Pina i Estany <carles@pina.cat>
28050
28051 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
28052
809bbfeb 280532010-01-08 Carles Pina i Estany <carles@pina.cat>
28054
28055 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
28056 (GRUB_MOD_INIT): Gettextizze.
28057 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
28058 (GRUB_MOD_INIT): Gettextizze.
28059 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
28060 (grub_cmd_linux): Capitalise Linux.
28061 (GRUB_MOD_INIT): Gettextizze.
28062 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
28063 (grub_cmd_linux): Capitalise Linux.
28064 (GRUB_MOD_INIT): Gettextizze.
28065 * loader/i386/linux.c: Include `<grub/i18n.h>'.
28066 (grub_cmd_linux): Capitalise Linux.
28067 (GRUB_MOD_INIT): Gettextizze.
28068 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
28069 (GRUB_MOD_INIT): Gettextizze.
28070 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
28071 (grub_cmd_linux): Capitalise Linux.
28072 (GRUB_MOD_INIT): Gettextizze.
28073 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
28074 (grub_cpu_xnu_init): Gettextizze.
28075 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
28076 (GRUB_MOD_INIT): Gettextizze.
28077 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
28078 (GRUB_MOD_INIT): Gettextizze.
28079 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
28080 (grub_linux_load64): Capitalise Linux.
28081 (GRUB_MOD_INIT): Gettextizze.
28082 * loader/xnu.c: Include `<grub/i18n.h>'.
28083 (GRUB_MOD_INIT): Gettextizze.
28084 * po/POTFILES: Add `loader/efi/appleloader.c',
28085 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
28086 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
28087 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
28088 `loader/i386/xnu.c', `loader/multiboot_loader.c',
28089 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
28090 and `loader/xnu.c'.
28091
b394b2ca
RM
280922010-01-08 Robert Millan <rmh.grub@aybabtu.com>
28093
28094 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
28095
280962010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
28097
28098 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
28099 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
28100 * util/mkisofs/mkisofs.c (main): Readjust --version output.
28101
bc8b32b3
RM
281022010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28103
28104 Reset Multiboot 2 support. New loader implements the draft in
28105 /branches/multiboot2 and shares as much code as possible with the
28106 production Multiboot 1 implementation.
28107
28108 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
28109 * loader/multiboot2.c: Likewise.
28110 * loader/i386/multiboot_helper.S: Likewise.
28111 * include/multiboot2.h: Replace with latest version from the draft
28112 in /branches/multiboot2.
28113
28114 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
28115 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
28116 and `loader/multiboot2.c'.
28117 (pkglib_MODULES): Add `multiboot2.mod'.
28118 (multiboot2_mod_SOURCES): New variable.
28119 (multiboot2_mod_LDFLAGS): Likewise.
28120 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
28121
28122 * conf/i386-pc.rmk: Likewise.
28123
28124 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
28125 (multiboot_mod_SOURCES): Remove variable.
28126 (multiboot_mod_LDFLAGS): Likewise.
28127 (multiboot_mod_CFLAGS): Likewise.
28128
28129 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
28130 `<multiboot2.h>' instead of `<multiboot.h>'.
28131 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
28132 (MULTIBOOT_HEADER_MAGIC): New macros.
28133
28134 * loader/multiboot_loader.c (module_version_status): Remove variable.
28135 (find_multi_boot2_header): Remove function.
28136 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
28137 logic. Always check for the Multiboot version we're compiling for.
28138 (grub_cmd_module_loader): Likewise.
28139 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
28140 command instead of `multiboot'.
28141
5d2c52b8
RM
281422010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28143
28144 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
28145 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
28146 all users.
28147
53108d92
RM
281482010-01-07 Robert Millan <rmh.grub@aybabtu.com>
281492010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28150
28151 Fix breakage introduced with previous commit.
28152
28153 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
28154 commands.
28155 * normal/handler.c (read_handler_list): Revert part of previous commit
28156 affecting this file.
28157 * normal/main.c (read_lists): Move read_handler_list() call back to ...
28158 (grub_normal_execute): ... here.
28159
e2e936b2
RM
281602010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28161
28162 Merge prefix-redefinition-fix branch.
28163
28164 * normal/autofs.c (read_fs_list): Make function capable of being
28165 run multiple times, gracefuly replacing the previous data
28166 structures.
28167 * normal/dyncmd.c (read_command_list): Likewise.
28168 * normal/handler.c (read_handler_list): Likewise.
28169 * normal/main.c (read_lists): New function. Calls all the
28170 list reading functions.
28171 (grub_normal_execute): Use read_lists() instead of calling all
28172 list reading functions explicitly. Register read_lists() as a
28173 variable hook attached to ${prefix}.
28174
607a3701
VS
281752010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28176
28177 Merge crypto branch.
28178
28179 * Makefile.in (pkglib_DATA): Add crypto.lst.
28180 (crypto.lst): New target.
28181 * commands/hashsum.c: New file.
28182 * commands/password.c (check_password): Use grub_crypto_memcmp.
28183 * commands/password_pbkdf2.c: New file.
28184 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
28185 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
28186 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
28187 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
28188 -I$(srcdir)/lib/libgcrypt_wrap.
28189 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
28190 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
28191 password_pbkdf2.mod.
28192 (crypto_mod_SOURCES): New variable.
28193 (crypto_mod_CFLAGS): Likewise.
28194 (crypto_mod_LDFLAGS): Likewise.
28195 (hashsum_mod_SOURCES): New variable.
28196 (hashsum_mod_CFLAGS): Likewise.
28197 (hashsum_mod_LDFLAGS): Likewise.
28198 (pbkdf2_mod_SOURCES): New variable.
28199 (pbkdf2_mod_CFLAGS): Likewise.
28200 (pbkdf2_mod_LDFLAGS): Likewise.
28201 (password_pbkdf2_mod_SOURCES): New variable.
28202 (password_pbkdf2_mod_CFLAGS): Likewise.
28203 (password_pbkdf2_mod_LDFLAGS): Likewise.
28204 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
28205 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
28206 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
28207 Include conf/gcry.rmk.
28208 * include/grub/auth.h: Rewritten.
28209 * include/grub/crypto.h: New file.
28210 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
28211 * include/grub/normal.h (read_crypto_list): New prototype.
28212 * lib/crypto.c: New file.
28213 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28214 * lib/pbkdf2.c: Likewise.
28215 * normal/auth.c (grub_auth_strcmp): Removed.
28216 (grub_iswordseparator): Likewise.
28217 (grub_auth_strword): Likewise.
28218 (is_authenticated): Use grub_strword.
28219 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
28220 and grub_strword. Pass entered password to authentication callback.
28221 * normal/crypto.c: New file.
28222 * normal/main.c: Call read_crypto_list.
28223 * util/grub-mkpasswd-pbkdf2.c: New file.
28224 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
28225
42841caa
VS
282262010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
28227
28228 Fix descent and ascent calculation.
28229
28230 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
28231 (options): New option "asce".
28232 (usage): Likewise.
28233 (add_char): Ignore invalid glyphs for descent calculation.
28234 Calculate ascent from actual content.
28235 (print_glyphs): Use 'asce'.
28236 (write_font): Likewise. Allow ascent override.
28237 (main): Handle "asce" option.
28238
e7730de7 282392010-01-06 Carles Pina i Estany <carles@pina.cat>
28240
28241 * kern/err.c: Include `<grub/i18n.h>'.
28242 (grub_print_error): Add full stop. Gettextizze.
28243 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
28244 (grub_bsd_load_elf): Capitalise ELF.
28245 (grub_cmd_freebsd_loadenv): Add `s' in error string.
28246 (grub_cmd_freebsd_module): Likewise.
28247 (grub_cmd_freebsd_module_elf): Likewise.
28248 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
28249
40e3a41f 282502010-01-06 Carles Pina i Estany <carles@pina.cat>
28251
28252 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
28253 * commands/search_file.c (HELP_MESSAGE): New macro.
28254 * commands/search_label.c (HELP_MESSAGE): Likewise.
28255 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
28256 * po/POTFILES: Add `commands/search_file.c',
28257 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
28258 `commands/search.c'.
28259
83507e68
RM
282602010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28261
28262 * config.rpath: Update from Gnulib.
28263
465c787b
YB
282642010-01-05 Yves Blusseau <blusseau@zetam.org>
28265
28266 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
28267
6581dd3a
YB
282682010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
28269
28270 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
28271
3bff18c5
CW
282722010-01-05 Colin Watson <cjwatson@ubuntu.com>
28273
28274 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
28275 arguments to fread so that we get a return value in bytes, rather
28276 than something that will normally be rounded down to 0.
28277 Adjust error handling to avoid producing garbage when size_t is not
28278 the same size as long long.
28279
a1368118
CW
282802010-01-05 Colin Watson <cjwatson@ubuntu.com>
28281
28282 * util/mkisofs/write.c (padblock_write): Check return value of
28283 fread.
28284
7c302978
RM
282852010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28286
28287 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
28288 floppy images now.
28289
28290 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
28291
e33ace06
RM
282922010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28293
28294 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
28295 instead of manual alignment.
28296 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
28297 verbose). Avoid attempts to read past end of the device
28298 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
28299 but GRUB_DISK_CACHE_SIZE may exceed that).
28300
4b856776
RM
283012010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28302
28303 * commands/crc.c (grub_cmd_crc): Abort on read errors.
28304 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
28305 it to upper layer.
28306
52c2d97f
VS
283072010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28308
28309 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
28310 New constant.
28311 (grub_efi_piwg_device_path): New structure
28312 (grub_efi_piwg_device_path_t): New type.
28313 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
28314 (devpath_1): Transform to a structure. All users updated.
28315 (devpath_2): Likewise.
28316 (devpath_3): Likewise.
28317 (devpath_4): Likewise.
28318 (devpath_5): Likewise.
28319
98ff6a54
VS
283202010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28321
28322 * loader/efi/appleloader.c: Restored. Update all users.
28323
3a73dcb6
RM
283242010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28325
28326 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
28327
28328 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
28329 (struct boot_blocklist): Move from here ...
28330 * include/grub/i386/pc/boot.h [ASM_FILE]
28331 (struct grub_boot_blocklist): ... to here. Update all users.
28332 (setup): Only initialize `start' member of `first_block'
28333 structure. Add assert() calls to verify the other members.
28334
28335 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
28336 (generate_image): Fix broken blocklist length initialization.
28337 Add assert() call to verify blocklist `segment' field.
28338
ab0eeb0c
RM
283392010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28340
28341 * loader/efi/appleloader.c: Remove. Update all users.
28342
58bc8bd5
RM
283432010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28344
28345 * boot/i386/pc/boot.S: Update copyright year.
28346 * boot/i386/pc/cdboot.S: Likewise.
28347 * boot/i386/pc/diskboot.S: Likewise.
28348 * boot/i386/pc/lnxboot.S: Likewise.
28349 * boot/i386/pc/pxeboot.S: Likewise.
28350 * bus/pci.c: Likewise.
28351 * commands/cmp.c: Likewise.
28352 * commands/help.c: Likewise.
28353 * commands/hexdump.c: Likewise.
28354 * commands/i386/pc/halt.c: Likewise.
28355 * commands/i386/pc/play.c: Likewise.
28356 * commands/i386/pc/vbeinfo.c: Likewise.
28357 * commands/ls.c: Likewise.
28358 * commands/test.c: Likewise.
28359 * disk/dmraid_nvidia.c: Likewise.
28360 * disk/i386/pc/biosdisk.c: Likewise.
28361 * disk/ieee1275/nand.c: Likewise.
28362 * disk/ieee1275/ofdisk.c: Likewise.
28363 * disk/lvm.c: Likewise.
28364 * disk/raid.c: Likewise.
28365 * disk/raid6_recover.c: Likewise.
28366 * disk/scsi.c: Likewise.
28367 * fs/affs.c: Likewise.
28368 * fs/cpio.c: Likewise.
28369 * fs/ext2.c: Likewise.
28370 * fs/hfs.c: Likewise.
28371 * fs/iso9660.c: Likewise.
28372 * fs/ntfs.c: Likewise.
28373 * fs/sfs.c: Likewise.
28374 * fs/udf.c: Likewise.
28375 * fs/ufs.c: Likewise.
28376 * fs/xfs.c: Likewise.
28377 * gencmdlist.sh: Likewise.
28378 * genmk.rb: Likewise.
28379 * include/grub/disk.h: Likewise.
28380 * include/grub/efi/api.h: Likewise.
28381 * include/grub/efi/efi.h: Likewise.
28382 * include/grub/efi/pe32.h: Likewise.
28383 * include/grub/elf.h: Likewise.
28384 * include/grub/fs.h: Likewise.
28385 * include/grub/i386/at_keyboard.h: Likewise.
28386 * include/grub/i386/pc/memory.h: Likewise.
28387 * include/grub/i386/pc/vbe.h: Likewise.
28388 * include/grub/i386/pci.h: Likewise.
28389 * include/grub/i386/tsc.h: Likewise.
28390 * include/grub/ieee1275/ieee1275.h: Likewise.
28391 * include/grub/ntfs.h: Likewise.
28392 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
28393 * include/grub/sparc64/libgcc.h: Likewise.
28394 * include/grub/symbol.h: Likewise.
28395 * include/grub/types.h: Likewise.
28396 * include/multiboot2.h: Likewise.
28397 * io/gzio.c: Likewise.
28398 * kern/device.c: Likewise.
28399 * kern/disk.c: Likewise.
28400 * kern/efi/efi.c: Likewise.
28401 * kern/efi/mm.c: Likewise.
28402 * kern/elf.c: Likewise.
28403 * kern/file.c: Likewise.
28404 * kern/i386/dl.c: Likewise.
28405 * kern/i386/pc/init.c: Likewise.
28406 * kern/i386/pc/startup.S: Likewise.
28407 * kern/ieee1275/ieee1275.c: Likewise.
28408 * kern/ieee1275/init.c: Likewise.
28409 * kern/main.c: Likewise.
28410 * kern/mm.c: Likewise.
28411 * kern/powerpc/dl.c: Likewise.
28412 * kern/sparc64/dl.c: Likewise.
28413 * kern/x86_64/dl.c: Likewise.
28414 * lib/hexdump.c: Likewise.
28415 * loader/efi/appleloader.c: Likewise.
28416 * loader/i386/ieee1275/linux.c: Likewise.
28417 * loader/i386/pc/chainloader.c: Likewise.
28418 * loader/i386/pc/linux.c: Likewise.
28419 * loader/i386/pc/multiboot2.c: Likewise.
28420 * loader/ieee1275/multiboot2.c: Likewise.
28421 * loader/multiboot2.c: Likewise.
28422 * loader/multiboot_loader.c: Likewise.
28423 * loader/powerpc/ieee1275/linux.c: Likewise.
28424 * normal/completion.c: Likewise.
28425 * normal/menu_entry.c: Likewise.
28426 * partmap/apple.c: Likewise.
28427 * util/grub.d/10_hurd.in: Likewise.
28428 * util/hostfs.c: Likewise.
28429 * video/readers/png.c: Likewise.
28430
e2d70b5c
CW
284312010-01-03 Colin Watson <cjwatson@ubuntu.com>
28432
28433 * include/grub/misc.h (GNUC_PREREQ): New macro.
28434 (ATTRIBUTE_ERROR): New macro.
28435 * include/grub/list.h (grub_bad_type_cast_real): Use
28436 ATTRIBUTE_ERROR.
28437
a173283f 284382010-01-03 Carles Pina i Estany <carles@pina.cat>
28439
28440 * normal/menu_text.c (print_message): Change messages.
28441
7fa7ff74 284422010-01-03 Carles Pina i Estany <carles@pina.cat>
28443
28444 * normal/menu_entry.c (store_completion): Gettextizze.
28445
136d24f6 284462010-01-03 Carles Pina i Estany <carles@pina.cat>
28447
28448 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
28449
f936862e 284502010-01-03 Carles Pina i Estany <carles@pina.cat>
28451
28452 * po/POTFILES: Sort correctly.
28453
29c44ad1 284542010-01-03 Carles Pina i Estany <carles@pina.cat>
28455
28456 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
28457 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
28458 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
28459 full stop.
28460 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
28461 summary. Gettextizze the strings.
28462 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
28463 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
28464 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
28465 full stop.
28466 (GRUB_MOD_INIT): Remove command name from summary.
28467 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
28468 summary.
28469 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
28470 * term/i386/pc/serial.c (options): Add full stops.
28471 (GRUB_MOD_INIT): Remove command name from the summary.
28472
77a79592 284732010-01-03 Carles Pina i Estany <carles@pina.cat>
28474
28475 * commands/acpi.c: Gettextizze help strings and/or options. Include
28476 `grub/i18n.h' if needed.
28477 * commands/blocklist.c: Likewise.
28478 * commands/boot.c: Likewise.
28479 * commands/cat.c: Likewise.
28480 * commands/cmp.c: Likewise.
28481 * commands/configfile.c: Likewise.
28482 * commands/crc.c: Likewise.
28483 * commands/date.c: Likewise.
28484 * commands/echo.c: Likewise.
28485 * commands/efi/fixvideo.c: Likewise.
28486 * commands/efi/loadbios.c: Likewise.
28487 * commands/gptsync.c: Likewise.
28488 * commands/halt.c: Likewise.
28489 * commands/handler.c: Likewise.
28490 * commands/hdparm.c: Likewise.
28491 * commands/hexdump.c: Likewise.
28492 * commands/i386/cpuid.c: Likewise.
28493 * commands/i386/pc/drivemap.c: Likewise.
28494 * commands/i386/pc/halt.c: Likewise.
28495 * commands/i386/pc/pxecmd.c: Likewise.
28496 * commands/i386/pc/vbeinfo.c: Likewise.
28497 * commands/i386/pc/vbetest.c: Likewise.
28498 * commands/ieee1275/suspend.c: Likewise.
28499 * commands/keystatus.c: Likewise.
28500 * commands/loadenv.c: Likewise.
28501 * commands/ls.c: Likewise.
28502 * commands/lsmmap.c: Likewise.
28503 * commands/lspci.c: Likewise.
28504 * commands/memrw.c: Likewise.
28505 * commands/minicmd.c: Likewise.
28506 * commands/parttool.c: Likewise.
28507 * commands/password.c: Likewise.
28508 * commands/probe.c: Likewise.
28509 * commands/read.c: Likewise.
28510 * commands/reboot.c: Likewise.
28511 * commands/search.c: Likewise.
28512 * commands/sleep.c: Likewise.
28513 * commands/test.c: Likewise.
28514 * commands/true.c: Likewise.
28515 * commands/usbtest.c: Likewise.
28516 * commands/videotest.c: Likewise.
28517 * commands/xnu_uuid.c: Likewise.
28518 * disk/loopback.c: Likewise.
28519 * hello/hello.c: Likewise.
28520 * loader/i386/bsd.c: Likewise.
28521 * term/i386/pc/serial.c: Likewise.
28522 * po/POTFILES: Add new files.
28523
da8d5c53
CW
285242010-01-02 Colin Watson <cjwatson@ubuntu.com>
28525
28526 * term/i386/pc/at_keyboard.c
28527 (keyboard_controller_wait_untill_ready): Rename to ...
28528 (keyboard_controller_wait_until_ready): ... this. Update all users.
28529
33937904 285302010-01-01 Carles Pina i Estany <carles@pina.cat>
28531
28532 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
28533 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
28534 string using string width.
28535 * normal/menu_text.c (grub_print_message_indented): Use
28536 grub_print_spaces and not print_spaces.
28537 (print_timeout): Likewise.
28538 (print_spaces): Move to...
28539 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
28540
3fd3b8d8
RM
285412010-01-01 Robert Millan <rmh.grub@aybabtu.com>
28542
28543 Import from Gnulib.
28544
28545 * gnulib/getdelim.c: New file.
28546 * gnulib/getline.c: Likewise.
28547
33433555
VS
285482009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
28549
28550 * include/grub/list.h (grub_assert_fail): Removed.
28551 (grub_bad_type_cast_real): New function.
28552 (grub_bad_type_cast): New macro.
28553 (GRUB_AS_LIST): Use grub_bad_type_cast.
28554 (GRUB_AS_LIST_P): Likewise.
e44721e8 28555 (GRUB_AS_NAMED_LIST): Likewise.
33433555 28556 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 28557 (GRUB_AS_PRIO_LIST): Likewise.
33433555 28558 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 28559 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 28560
f5a51306
VS
285612009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
28562
28563 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
28564 Fix syntax error.
28565
90d1e879
RM
285662009-12-29 Robert Millan <rmh.grub@aybabtu.com>
28567
28568 * configure.ac: Check for TARGET_CFLAGS initialization before we
28569 initialize it ourselves (sigh).
28570 Move a few modifications to TARGET_CFLAGS to be unconditional
28571 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
28572 eh_frame)
28573
28574 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
28575 * term/i386/pc/at_keyboard.c
28576 (keyboard_controller_wait_untill_ready): Likewise.
28577 (keyboard_controller_led): Rename `led_status' paramter to avoid
28578 name conflict.
28579
465b5a81 285802009-12-28 Carles Pina i Estany <carles@pina.cat>
28581
28582 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
28583 quotes.
28584
c181849b
VS
285852009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
28586
28587 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
28588
9c8739a4
VS
285892009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
28590
28591 * normal/menu_text.c (grub_print_message_indented): Prevent
28592 past-the-end-of-array dereference.
28593
3e74249c
VS
285942009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
28595
28596 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
28597 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
28598
64fd18ed 285992009-12-27 Carles Pina i Estany <carles@pina.cat>
28600
28601 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
28602 * normal/main.c (grub_normal_read_line): Remove a space from the
28603 default prompt.
28604
714af9b9 286052009-12-27 Carles Pina i Estany <carles@pina.cat>
28606
28607 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
28608 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28609 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
28610 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
28611 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28612 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28613 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28614
82f3e412 286152009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 28616
28617 * video/readers/jpeg.c (cmd): Declare.
28618 (grub_cmd_jpegtest): Use `grub_command_t' type.
28619 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
28620 Assign to `cmd'.
28621 (GRUB_MOD_FINI): Use `cmd' to unregister.
28622 * video/readers/png.c (cmd): Declare.
28623 (grub_cmd_pngtest): Use `grub_command_t' type.
28624 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
28625 Assign to `cmd'.
28626 (GRUB_MOD_FINI): Use `cmd' to unregister.
28627 * video/readers/tga.c (cmd): Declare.
28628 (grub_cmd_tgatest): Use `grub_command_t' type.
28629 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
28630 Assign to `cmd'.
28631 (GRUB_MOD_FINI): Use `cmd' to unregister.
28632
82f3e412 286332009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 28634
28635 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
28636 stops.
28637 * kern/corecmd.c (grub_register_core_commands): Likewise.
28638 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
28639 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
28640 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
28641 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28642 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
28643 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
28644 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
28645 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
28646 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28647 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
28648 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28649 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28650 * normal/handler.c (insert_handler): Likewise.
28651 * normal/main.c (GRUB_MOD_INIT): Likewise.
28652 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28653
fdcdbb66 286542009-12-26 Carles Pina i Estany <carles@pina.cat>
28655
28656 * commands/help.c (grub_cmd_help): Print the command name before the
28657 summary.
28658 (GRUB_MOD_INIT): Remove command name from the summary.
28659 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 28660 string as summary.
fdcdbb66 28661 * lib/arg.c (find_long): Print the command name before the summary.
28662 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
28663 summary.
28664 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
28665 * commands/cat.c (GRUB_MOD_INIT): Likewise.
28666 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
28667 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
28668 * commands/crc.c (GRUB_MOD_INIT): Likewise.
28669 * commands/date.c (GRUB_MOD_INIT): Likewise.
28670 * commands/echo.c (GRUB_MOD_INIT): Likewise.
28671 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
28672 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
28673 * commands/handler.c (GRUB_MOD_INIT): Likewise.
28674 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
28675 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
28676 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
28677 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
28678 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
28679 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
28680 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
28681 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
28682 * commands/ls.c (GRUB_MOD_INIT): Likewise.
28683 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
28684 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
28685 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
28686 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
28687 * commands/password.c (GRUB_MOD_INIT): Likewise.
28688 * commands/probe.c (GRUB_MOD_INIT): Likewise.
28689 * commands/read.c (GRUB_MOD_INIT): Likewise.
28690 * commands/search.c (GRUB_MOD_INIT): Likewise.
28691 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
28692 * commands/test.c (GRUB_MOD_INIT): Likewise.
28693 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
28694 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28695 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28696 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
28697 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28698 * lib/arg.c (GRUB_MOD_INIT): Likewise.
28699 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
28700 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
28701 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28702 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28703 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28704 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
28705 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
28706 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
28707
9c288be2
VS
287082009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28709
28710 Use search command for preliminar UUID search.
28711
28712 * commands/search.c: Split into ...
28713 * commands/search_wrap.c: ...this
28714 * commands/search.c: ...and this.
28715 * commands/search_file.c: New file.
28716 * commands/search_label.c: New file.
28717 * commands/search_uuid.c: New file.
28718 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
28719 Add commands/search_wrap.c, commands/search_file.c,
28720 commands/search_label.c and commands/search_uuid.c.
28721 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
28722 (search_mod_SOURCES): Set to commands/search_wrap.c.
28723 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
28724 search_label.mod.
28725 (search_fs_file_mod_SOURCES): New variable.
28726 (search_fs_file_mod_CFLAGS): Likewise.
28727 (search_fs_file_mod_LDFLAGS): Likewise.
28728 (search_label_mod_SOURCES): Likewise.
28729 (search_label_mod_CFLAGS): Likewise.
28730 (search_label_mod_LDFLAGS): Likewise.
28731 (search_fs_uuid_mod_SOURCES): New variable.
28732 (search_fs_uuid_mod_CFLAGS): Likewise.
28733 (search_fs_uuid_mod_LDFLAGS): Likewise.
28734 (fs_file_mod_SOURCES): Removed.
28735 (fs_file_mod_CFLAGS): Likewise.
28736 (fs_file_mod_LDFLAGS): Likewise.
28737 (fs_uuid_mod_SOURCES): Removed.
28738 (fs_uuid_mod_CFLAGS): Likewise.
28739 (fs_uuid_mod_LDFLAGS): Likewise.
28740 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
28741 Set to util/grub-install.in.
28742 * disk/fs_file.c: Removed.
28743 * disk/fs_uuid.c: Likewise.
28744 * include/grub/search.h: New file.
28745 * util/grub-install.in: Handle sparc64.
28746 Create and use load.cfg.
28747 * util/sparc64/ieee1275/grub-install.in: Removed.
28748
db943399
VS
287492009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28750
28751 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
28752 Ignore return status if CF is cleared.
28753 (grub_biosdisk_get_diskinfo_standard): Likewise.
28754
3fdae612
RM
287552009-12-25 Robert Millan <rmh.grub@aybabtu.com>
28756
28757 * term/i386/pc/at_keyboard.c
28758 (keyboard_controller_wait_untill_ready): New function.
28759 (grub_keyboard_controller_write, grub_keyboard_controller_read)
28760 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
28761 for keyboard polling, rather than duplicate the same loop. This
28762 saves a few bytes in code size.
28763
7ebaa2b4
VS
287642009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28765
28766 Support for (pxe[:server[:gateway]]) syntax and
28767 use environment variable for PXE.
28768
28769 * commands/i386/pc/pxecmd.c (options): Removed.
28770 (print_ip): Removed.
28771 (grub_cmd_pxe): Removed
28772 (grub_cmd_pxe_unload): New function.
28773 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
28774 (grub_pxe_your_ip): Made static.
28775 (grub_pxe_default_server_ip): Likewise.
28776 (grub_pxe_default_gateway_ip): Likewise.
28777 (grub_pxe_blksize): Likewise.
28778 (parse_ip): New function.
28779 (grub_pxe_open): Support server and gateway specification.
28780 (grub_pxe_close): Free disk->data.
28781 (grub_pxefs_open): Use disk->data.
28782 (grub_pxefs_read): Likewise.
28783 (grub_env_write_readonly): New function.
28784 (set_mac_env): Likewise.
28785 (set_env_limn_ro): Likewise.
28786 (parse_dhcp_vendor): Likewise.
28787 (grub_pxe_detect): Set the environment variables.
28788 (set_ip_env): New function.
28789 (write_ip_env): Likewise.
28790 (grub_env_write_pxe_default_server): Likewise.
28791 (grub_env_write_pxe_default_gateway): Likewise.
28792 (grub_env_write_pxe_blocksize): Likewise.
28793 (GRUB_MOD_INIT(pxe)): Set environment variables.
28794 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
28795 (grub_pxe_mac_addr_t): ... this. All users updated.
28796 (grub_pxe_your_ip): Removed.
28797 (grub_pxe_server_ip): Likewise.
28798 (grub_pxe_gateway_ip): Likewise.
28799 (grub_pxe_blksize): Likewise.
28800
ec5f98ab 288012009-12-25 Carles Pina i Estany <carles@pina.cat>
28802
28803 * commands/help.c: Include `<grub/i18n.h>'.
28804 (grub_cmd_help): Gettextizze.
28805 (GRUB_MOD_INIT): Likewise.
28806 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
28807 (GRUB_MOD_INIT): Gettextizze.
28808 * commands/search.c: Include `<grub/i18n.h>'.
28809 (options): Gettextizze.
28810 (GRUB_MOD_INIT): Gettextizze.
28811 * lib/arg.c: Include `<grub/i18n.h>'.
28812 (help_options): Gettextizze.
28813 (find_long): Likewise.
28814 (grub_arg_show_help): Likewise.
28815 * normal/dyncmd.c: Include `<grub/i18n.h>'.
28816 (read_command_list): Gettextizze.
28817 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 28818 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 28819
22815526
RM
288202009-12-25 Robert Millan <rmh.grub@aybabtu.com>
28821
28822 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
28823 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
28824 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
28825 (led_status): New variable.
28826 (keyboard_controller_led): New function.
28827 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
28828 update led status for caps lock, num lock and scroll lock.
28829
0ad46fd7
FZ
288302009-12-25 Felix Zielcke <fzielcke@z-51.de>
28831
28832 * util/hostdisk.c (open_device): Fix a comment.
28833
d0e158c2
RM
288342009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28835
28836 * util/grub-install.in (host_os): New variable.
28837 * util/i386/efi/grub-install.in (host_os): Likewise.
28838
401c0ad6
RM
288392009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28840
28841 * util/mkisofs/write.c (padblock_write): Abort when given an
28842 excedingly large embed image, instead of silently truncating it.
28843
d14d3370
RM
288442009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28845
28846 * include/multiboot.h: Indentation fixes.
28847
eeed10b4
RM
288482009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28849
28850 * include/multiboot.h (struct multiboot_aout_symbol_table)
28851 (struct multiboot_elf_section_header_table): New structure
28852 declarations (stolen from GRUB Legacy).
28853 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
28854 table information.
28855
28856 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
28857 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
28858 type aliases.
28859
681c70ab
RM
288602009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28861
28862 * include/multiboot.h: Make comments src2texi-friendly.
28863
e4d47d8d
RM
288642009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28865
28866 For consistency with [multiboot]/docs/boot.S.
28867
28868 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
28869 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
28870 (MULTIBOOT_MAGIC2): Rename from this ...
28871 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
28872
a0b70bda
RM
288732009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28874
28875 * include/multiboot.h: Remove `<grub/types.h>'.
28876 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
28877 types. Update all users.
28878
61ba42be 288792009-12-25 Carles Pina i Estany <carles@pina.cat>
28880
28881 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
28882 `couldn't' and `can not' by `cannot'.
28883 * commands/i386/pc/drivemap.c: Likewise.
28884 * disk/ata.c: Likewise.
28885 * disk/ieee1275/nand.c: Likewise.
28886 * fs/affs.c: Likewise.
28887 * fs/fat.c: Likewise.
28888 * fs/hfs.c: Likewise.
28889 * fs/hfsplus.c: Likewise.
28890 * fs/iso9660.c: Likewise.
28891 * fs/jfs.c: Likewise.
28892 * fs/minix.c: Likewise.
28893 * fs/reiserfs.c: Likewise.
28894 * fs/sfs.c: Likewise.
28895 * fs/udf.c: Likewise.
28896 * fs/ufs.c: Likewise.
28897 * fs/xfs.c: Likewise.
28898 * loader/powerpc/ieee1275/linux.c: Likewise.
28899 * loader/sparc64/ieee1275/linux.c: Likewise.
28900 * util/grub-probe.c: Likewise.
28901 * util/misc.c: Likewise.
28902
7fd0baee 289032009-12-24 Carles Pina i Estany <carles@pina.cat>
28904
28905 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
28906 grub_errno calls.
28907 * commands/acpi.c: Likewise.
28908 * commands/blocklist.c: Likewise.
28909 * commands/efi/loadbios.c: Likewise.
28910 * commands/i386/pc/drivemap.c: Likewise.
28911 * commands/loadenv.c: Likewise.
28912 * commands/memrw.c: Likewise.
28913 * commands/password.c: Likewise.
28914 * commands/videotest.c: Likewise.
28915 * disk/ata.c: Likewise.
28916 * disk/ata_pthru.c: Likewise.
28917 * disk/dmraid_nvidia.c: Likewise.
28918 * disk/ieee1275/nand.c: Likewise.
28919 * disk/ieee1275/ofdisk.c: Likewise.
28920 * disk/loopback.c: Likewise.
28921 * disk/lvm.c: Likewise.
28922 * disk/mdraid_linux.c: Likewise.
28923 * disk/raid.c: Likewise.
28924 * disk/raid6_recover.c: Likewise.
28925 * disk/scsi.c: Likewise.
28926 * efiemu/main.c: Likewise.
28927 * efiemu/mm.c: Likewise.
28928 * efiemu/pnvram.c: Likewise.
28929 * efiemu/symbols.c: Likewise.
28930 * font/font.c: Likewise.
28931 * fs/cpio.c: Likewise.
28932 * fs/hfsplus.c: Likewise.
28933 * fs/iso9660.c: Likewise.
28934 * fs/jfs.c: Likewise.
28935 * fs/minix.c: Likewise.
28936 * fs/ntfs.c: Likewise.
28937 * fs/ntfscomp.c: Likewise.
28938 * fs/reiserfs.c: Likewise.
28939 * fs/ufs.c: Likewise.
28940 * fs/xfs.c: Likewise.
28941 * gettext/gettext.c: Likewise.
28942 * include/grub/auth.h: Likewise.
28943 * kern/elf.c: Likewise.
28944 * kern/file.c: Likewise.
28945 * kern/ieee1275/init.c: Likewise.
28946 * kern/ieee1275/mmap.c: Likewise.
28947 * kern/ieee1275/openfw.c: Likewise.
28948 * kern/powerpc/dl.c: Likewise.
28949 * kern/sparc64/dl.c: Likewise.
28950 * lib/arg.c: Likewise.
28951 * loader/i386/bsd.c: Likewise.
28952 * loader/i386/bsdXX.c: Likewise.
28953 * loader/i386/efi/linux.c: Likewise.
28954 * loader/i386/efi/xnu.c: Likewise.
28955 * loader/i386/ieee1275/linux.c: Likewise.
28956 * loader/i386/linux.c: Likewise.
28957 * loader/i386/multiboot.c: Likewise.
28958 * loader/i386/pc/linux.c: Likewise.
28959 * loader/i386/pc/multiboot2.c: Likewise.
28960 * loader/i386/xnu.c: Likewise.
28961 * loader/ieee1275/multiboot2.c: Likewise.
28962 * loader/macho.c: Likewise.
28963 * loader/machoXX.c: Likewise.
28964 * loader/multiboot2.c: Likewise.
28965 * loader/multiboot_loader.c: Likewise.
28966 * loader/powerpc/ieee1275/linux.c: Likewise.
28967 * loader/sparc64/ieee1275/linux.c: Likewise.
28968 * loader/xnu.c: Likewise.
28969 * loader/xnu_resume.c: Likewise.
28970 * mmap/i386/pc/mmap.c: Likewise.
28971 * normal/menu_viewer.c: Likewise.
28972 * partmap/acorn.c: Likewise.
28973 * partmap/amiga.c: Likewise.
28974 * partmap/apple.c: Likewise.
28975 * script/lexer.c: Likewise.
28976 * term/gfxterm.c: Likewise.
28977 * term/i386/pc/serial.c: Likewise.
28978 * term/i386/pc/vga.c: Likewise.
28979 * term/ieee1275/ofconsole.c: Likewise.
28980 * term/terminfo.c: Likewise.
28981 * video/bitmap.c: Likewise.
28982 * video/efi_gop.c: Likewise.
28983 * video/efi_uga.c: Likewise.
28984 * video/fb/video_fb.c: Likewise.
28985 * video/i386/pc/vbe.c: Likewise.
28986 * video/readers/tga.c: Likewise.
28987 * video/video.c: Likewise.
28988
0ad46fd7 289892009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
28990
28991 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
28992 * commands/lspci.c: Likewise.
28993 * commands/probe.c: Likewise.
28994 * commands/xnu_uuid.c: Likewise.
28995 * conf/i386-coreboot.rmk: Likewise.
28996 * conf/i386-efi.rmk: Likewise.
28997 * conf/i386-ieee1275.rmk: Likewise.
28998 * conf/i386-pc.rmk: Likewise.
28999 * conf/powerpc-ieee1275.rmk: Likewise.
29000 * conf/sparc64-ieee1275.rmk: Likewise.
29001 * conf/x86_64-efi.rmk: Likewise.
29002 * fs/i386/pc/pxe.c: Likewise.
29003 * gettext/gettext.c: Likewise.
29004 * include/grub/efi/graphics_output.h: Likewise.
29005 * include/grub/i386/pc/memory.h: Likewise.
29006 * kern/env.c: Likewise.
29007 * kern/i386/qemu/startup.S: Likewise.
29008 * lib/i386/pc/biosnum.c: Likewise.
29009 * lib/i386/relocator.c: Likewise.
29010 * lib/i386/relocator_asm.S: Likewise.
29011 * lib/relocator.c: Likewise.
29012 * loader/i386/bsd.c: Likewise.
29013 * loader/i386/multiboot.c: Likewise.
29014 * loader/i386/pc/chainloader.c: Likewise.
29015 * loader/i386/xnu.c: Likewise.
29016 * loader/xnu.c: Likewise.
29017 * normal/main.c: Likewise.
29018 * normal/menu_text.c: Likewise.
29019 * util/getroot.c: Likewise.
29020 * util/grub-mkconfig_lib.in: Likewise.
29021 * util/grub.d/00_header.in: Likewise.
29022 * util/i386/pc/grub-mkimage.c: Likewise.
29023 * util/mkisofs/eltorito.c: Likewise.
29024 * util/mkisofs/exclude.h: Likewise.
29025 * util/mkisofs/hash.c: Likewise.
29026 * util/mkisofs/iso9660.h: Likewise.
29027 * util/mkisofs/joliet.c: Likewise.
29028 * util/mkisofs/mkisofs.c: Likewise.
29029 * util/mkisofs/mkisofs.h: Likewise.
29030 * util/mkisofs/multi.c: Likewise.
29031 * util/mkisofs/name.c: Likewise.
29032 * util/mkisofs/rock.c: Likewise.
29033 * util/mkisofs/tree.c: Likewise.
29034 * util/mkisofs/write.c: Likewise.
29035 * video/efi_gop.c: Likewise.
29036
009ec743
VS
290372009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
29038
29039 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
29040 size counting.
29041
0ad46fd7 290422009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
29043
29044 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
29045 * genmk.rb (class SCRIPT): Modify the target file instead of source.
29046
d3d30ea0
VS
290472009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29048
29049 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
29050 (GRUB_MOD_INIT(memrw)): Update help line.
29051
a34f5c70
VS
290522009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29053
29054 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
29055 Use grub_extcmd_t. All users updated.
29056 (options): New variable.
29057 (grub_cmd_read): Restructure for readability. Support "-v" option.
29058 (grub_cmd_write): Restructure for readability.
29059
0ad46fd7 290602009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
29061
29062 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
29063
0ad46fd7 290642009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
29065
29066 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
29067 with the actual contents of the correspondending make variable.
29068 * util/grub-mkrescue.in (pkglib_DATA): New variable.
29069 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
29070 specifying `*.lst' and `efiemu??.o'
29071
0ad46fd7 290722009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
29073
29074 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
29075 after function name.
29076 Noticed by Rene Engelhard <rene@debian.org>.
29077
dc77a799
VS
290782009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29079
29080 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
29081 (options): New variable.
29082 (iospace): Likewise.
29083 (grub_lspci_iter): List IO spaces if "-i" was given.
29084 (grub_cmd_lspci): Parse options.
29085 (GRUB_MOD_INIT(lspci)): Use extcmd.
29086 (GRUB_MOD_FINI(lspci)): Likewise.
29087
0ad46fd7 290882009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
29089
29090 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
29091 `function' keyword.
29092 Patch by Tony Mancill <tmancill@debian.org>.
29093
b5d5993b
VS
290942009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29095
29096 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
29097 (grub_uhci_portstatus): Likewise.
29098 (grub_uhci_portstatus): Add necessary delay.
11d18281 29099 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 29100
941903f2 291012009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 29102
941903f2 29103 * commands/acpi.c (options): Fix capitalizations and/or full stops.
29104 (GRUB_MOD_INIT): Likewise.
29105 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 29106 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
29107 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 29108 * commands/efi/loadbios.c (enable_rom_area): Likewise.
29109 (enable_rom_area): Likewise.
29110 (GRUB_MOD_INIT): Likewise.
29111 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29112 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
29113 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29114 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
29115 * commands/hexdump.c (options): Likewise.
29116 * commands/i386/cpuid.c (options): Likewise.
29117 (GRUB_MOD_INIT): Likewise.
29118 * commands/i386/pc/drivemap.c (options): Likewise.
29119 (GRUB_MOD_INIT): Likewise.
29120 * commands/i386/pc/halt (options): Likewise.
29121 (GRUB_MOD_INIT): Likewise.
29122 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29123 * commands/i386/pc/pxecmd.c (options): Likewise.
29124 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
29125 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
29126 * commands/keystatus.c (options): Likewise.
29127 (GRUB_MOD_INIT): Likewise.
29128 * commands/loadenv.c (options): Likewise.
29129 * commands/ls.c (options): Likewise.
29130 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29131 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29132 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29133 * commands/parttool.c (helpmsg): Likewise.
29134 * commands/probe.c (options): Likewise.
29135 * commands/read.c (GRUB_MOD_INIT): Likewise.
29136 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
29137 * commands/search.c (options): Likewise.
29138 * commands/sleep.c (options): Likewise.
29139 * commands/test.c (GRUB_MOD_INIT): Likewise.
29140 * commands/true.c (GRUB_MOD_INIT): Likewise.
29141 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
29142 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
29143 * lib/arg.c (help_options): Likewise.
e9bbb4e7 29144 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
29145 `$(XGETTEXT)'.
98a50553 29146 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 29147
0ad46fd7 291482009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 29149
ef3c2c3a 29150 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
29151 instead of specifying them explicit.
29152
7922f68b
RM
291532009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29154
29155 * NEWS: Add grub-probe support for GNU/Hurd.
29156
537ce47f
RM
291572009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29158
29159 * NEWS: gettext was added after 1.97.
29160
9b214e3a
RM
291612009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29162
29163 * util/mkisofs/msdos_partition.h: New file (based on
29164 include/grub/msdos_partition.h).
29165 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
29166 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
29167 (ld_options, main): Recognize --protective-msdos-label.
29168 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
29169 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
29170 (padblock_write): If `use_protective_msdos_label' is set, patch a
29171 protective DOS-style label in the output image.
29172
29173 * util/grub-mkrescue.in: Use --protective-msdos-label.
29174
e9309813
RM
291752009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29176
29177 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
29178 boot.
29179
0ae56929
RM
291802009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29181
29182 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
29183 variables.
29184 (ld_options, main): Recognize `--embedded-boot'.
29185 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
29186 declarations.
29187 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
29188 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
29189 (padblock_write): Likewise. Rewrite to support embedded boot image.
29190
29191 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
29192 for BIOS-based disk boot instead of only ElTorito.
29193
b15937b1
RM
291942009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29195
29196 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
29197 build (not needed for bootstrap).
29198
52cc3ce0
RM
291992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29200
29201 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
29202 from i386-pc build (not needed for bootstrap).
29203 Rewrite a pair of strings.
29204
36f5ff04
RM
292052009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29206
29207 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
29208
973c6c85 292092009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
29210
29211 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
29212
05d21547
AB
292132009-12-21 Andreas Born <futur.andy@googlemail.com>
29214
29215 * kern/env.c (grub_env_context_open): Mark exported variable for
29216 reexport.
29217
0175d51f
AB
292182009-12-21 Andreas Born <futur.andy@googlemail.com>
29219
29220 * kern/env.c (grub_env_export): Create nonexistent variables before
29221 exporting.
29222
7f39d92f 292232009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 29224
7f39d92f 29225 * include/grub/auth.h: Include `<grub/i18n.h>'.
29226 (GRUB_GET_PASSWORD): Gettextizze string.
29227 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
29228 menu_text.c.
29229 (grub_utf8_to_ucs4_alloc): Fix indentation.
29230 (grub_print_ucs4): Likewise.
29231 (grub_getstringwidth): Likewise.
29232 (print_message_indented): New declaration.
29233 * normal/auth.c: Include `<grub/i18n.h>'.
29234 (grub_auth_check_authentication): Gettexttize string.
29235 * normal/cmdline.c: Include `<grub/i18n.h>'.
29236 (grub_cmdline_get): Gettextizze.
29237 * normal/color.c: Include `<grub/i18n.h>'.
29238 (grub_parse_color_name_pair): Gettexttize strings.
29239 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
29240 string (use `print_message_indented').
29241 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
29242 `include/grub/normal.h'.
29243 (print_message_indented): Renamed to ...
29244 (grub_print_message_indented): ... this. Remove `static' qualifer (now
29245 used in normal/main.c).
29246 (print_message): Use `grub_print_message_indented' instead of
29247 `print_message_indented'.
29248 (print_timeout): Likewise.
29249 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
29250 (grub_normal_print_device_info): Gettexttize strings.
29251 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
29252
3041d898
VS
292532009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29254
29255 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
29256 of arguments. Return number of tokens and not arguments. All users
29257 updated.
29258
de15bf8e
VS
292592009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29260
29261 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
29262 non-MSDOS paritions.
29263
e0a6ca52
VS
292642009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
29265
29266 * include/grub/types.h (UNUSED): Removed since it conflicts with
29267 NetBSD headers. All users changed to direct __attribute__ ((unused)).
29268 Reported by Grégoire Sutre.
29269
b99518d1 292702009-12-19 Carles Pina i Estany <carles@pina.cat>
29271
29272 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
29273 (grub_print_ucs4_alloc): Likewise.
29274 (grub_getstringwidth): Likewise.
29275 * normal/main.c (grub_normal_init_page): Gettextize version string.
29276 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
29277 (getstringwidth): Renamed to ...
29278 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
29279 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
29280 (grub_print_ucs4): Remove `static' qualifer (now used in
29281 normal/main.c).
29282 * po/POTFILES: Add normal/main.c.
29283
bfd5e52b 292842009-12-19 Carles Pina i Estany <carles@pina.cat>
29285
29286 * normal/menu_text.c (STANDARD_MARGIN): New macro.
29287 (print_message_indented): Add `margin_left' and `margin_right'
29288 parameters.
29289 (print_message): Update `print_message_indented' calls. Adds '\n' to the
29290 strings.
29291 (print_timeout): Use `print_message_indented' to print the message.
29292 Deletes `second_stage' parameter.
29293 (run_menu): Update `print_timeout' calls.
29294
5a1ad2b9
VS
292952009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29296
29297 Fix console palette on OpenFirmware.
29298
29299 * term/ieee1275/ofconsole.c (MAX): Removed.
29300 (colors): Redone based on VGA palette.
29301 (grub_ofconsole_setcolor): Discard brightness bit since only 8
29302 colors are supported.
29303 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
29304
b045f00a
VS
293052009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29306
29307 Fix potential EfiEmu double prepare.
29308
29309 * efiemu/main.c (prepared): New variable
29310 (grub_efiemu_unload): Set prepare to '0'.
29311 (grub_efiemu_prepare): Return if already prepared. Set prepared.
29312
29313 set_virtual_address_map support.
29314
29315 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
29316 prototype.
29317 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
29318 prototype.
29319 (grub_efiemu_crc32): Likewise.
29320 (grub_efiemu_crc64): Likewise.
29321 (grub_efiemu_set_virtual_address_map): Likewise.
29322 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
29323 New definition.
29324 (grub_autoefi_set_virtual_address_map): Likewise.
29325 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
29326 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
29327 Restructure flow to accomodate it.
29328 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
29329 (grub_efiemu_crc): Recompute CRC32.
29330 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
29331 (efiemu_ptv_relocated): ... this. Made global. All users updated.
29332 * efiemu/symbols.c (relocated_handle): New variable.
29333 (grub_efiemu_free_syms): Free relocated_handle.
29334 (grub_efiemu_alloc_syms): Allocate relocated_handle.
29335 (grub_efiemu_write_sym_markers): New function.
29336 (grub_efiemu_set_virtual_address_map): Likewise.
29337
29338 Newer XNU parameters.
29339
29340 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
29341 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
29342 (grub_xnu_fill_devicetree): New prototype.
29343 (grub_xnu_heap_real_start): New variable.
29344 * loader/xnu.c (get_name_ptr): New function.
29345 (grub_xnu_load_driver): Fill namelen and name.
29346
29347 64-bit xnu support.
29348
29349 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
29350 and 'loader/macho64.c'.
29351 * conf/i386-pc.rmk: Likewise.
29352 * conf/x86_64-efi.rmk: Likewise.
29353 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
29354 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
29355 * include/grub/macho.h (grub_macho_segment64): New structure.
29356 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
29357 (grub_macho_size32): ... to this.
29358 (grub_macho32_get_entry_point): Renamed from ...
29359 (grub_macho_get_entry_point32): ... to this.
29360 (grub_macho_contains_macho64): New prototype.
29361 (grub_macho_size64): Likewise.
29362 (grub_macho_get_entry_point64): Likewise.
29363 (grub_macho32_load): Renamed from ...
29364 (grub_macho_load32): ... to this.
29365 (grub_macho32_filesize): Renamed from ...
29366 (grub_macho_filesize32): ... to this.
29367 (grub_macho32_readfile): Renamed from ...
29368 (grub_macho_readfile32): ... to this.
29369 (grub_macho_filesize64): New prototype.
29370 (grub_macho_readfile64): Likewise.
29371 (grub_macho_parse32): Likewise.
29372 (grub_macho_parse64): Likewise.
29373 * loader/macho.c: Split into ...
29374 * loader/machoXX.c: ... and this. Replace 32 with XX.
29375 * loader/macho32.c: New file.
29376 * loader/macho64.c: Likewise.
29377 * loader/xnu.c (grub_xnu_is_64bit): New variable.
29378 (grub_cmd_xnu_kernel): Make 32-bit only.
29379 (grub_cmd_xnu_kernel64): New function.
29380 (grub_xnu_load_driver): Support Mach-O 64.
29381 (grub_cmd_xnu_mkext): Likewise.
29382 * util/grub.d/30_os-prober.in (osx_entry): New function.
29383 Generate entries for 64-bit boot too.
29384
29385 Eliminate ad-hoc tree format in XNU and EfiEmu.
29386
29387 * efiemu/main.c (grub_efiemu_prepare): Update comment.
29388 * efiemu/pnvram.c: Rewritten to use environment variables.
29389 All users updated.
29390
29391 Inline utf16_to_utf8.
29392
29393 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
29394 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
29395 All users updated.
29396 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
29397
29398 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
29399 * commands/usbtest.c (grub_usb_get_string): ... move here.
29400 (usb_print_str): Fix error handling.
29401 * include/grub/usb.h (grub_usb_get_string): Remove.
29402
29403 UTF-8 to UTF-16 transformation.
29404
29405 * conf/common.rmk (pkglib_MODULES): Add charset.mod
29406 (charset_mod_SOURCES): New variable.
29407 (charset_mod_CFLAGS): Likewise.
29408 (charset_mod_LDFLAGS): Likewise.
29409 * include/grub/utf.h: New file.
29410 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
29411
29412 Support for device properties.
29413
29414 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
29415 (grub_xnu_devprop_device_header): Likewise.
29416 (grub_xnu_devprop_device_descriptor): Likewise.
29417 (grub_xnu_devprop_add_device): New prototype.
29418 (grub_xnu_devprop_remove_device): Likewise.
29419 (grub_xnu_devprop_remove_property): Likewise.
29420 (grub_xnu_devprop_add_property_utf8): Likewise.
29421 (grub_xnu_devprop_add_property_utf16): Likewise.
29422 (grub_cpu_xnu_init): Likewise.
29423 (grub_cpu_xnu_fini): Likewise.
29424 (grub_cpu_xnu_unload): Likewise.
29425 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
29426 (property_descriptor): Likewise.
29427 (devices): New variable.
29428 (grub_xnu_devprop_remove_property): New function.
29429 (grub_xnu_devprop_add_device): Likewise.
29430 (grub_xnu_devprop_remove_device): Likewise.
29431 (grub_xnu_devprop_add_property): Likewise.
29432 (grub_xnu_devprop_add_property_utf8): Likewise.
29433 (grub_xnu_devprop_add_property_utf16): Likewise.
29434 (hextoval): Likewise.
29435 (grub_cpu_xnu_fill_devprop): Likewise.
29436 (grub_cmd_devprop_load): Likewise.
29437 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
29438 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
29439 (cmd_devprop_load): New variable.
29440 (grub_cpu_xnu_init): New function.
29441 (grub_cpu_xnu_fini): Likewise.
29442 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
29443 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
29444 (grub_cmd_xnu_devtree): Likewise.
29445 (hextoval): New function.
29446 (unescape): Likewise.
29447 (grub_xnu_fill_devicetree): Likewise.
29448
29449 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
29450 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
29451
0945f181
VS
294522009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29453
29454 Workaround for broken ATI VBE.
29455
29456 * video/i386/pc/vbe.c (last_set_mode): New variable.
29457 (grub_vbe_set_video_mode): Set 'last_set_mode'.
29458 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
29459 (grub_video_vbe_setup): Don't check for reserved flag.
29460
0ad46fd7 294612009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
29462
29463 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
29464 the `find' command.
29465
c179ebe4
VS
294662009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
29467
29468 UUID support for HFS.
29469
29470 * fs/hfs.c (grub_hfs_uuid): New function.
29471 (grub_hfs_fs): New value .uuid.
29472 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
29473
0ad46fd7 294742009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
29475
29476 Fix a segfault with parsing unknown long options.
29477
29478 * util/grub-mkrelpath.c (options): Zero terminate it.
29479
c4a3e41a
CPE
294802009-12-13 Carles Pina i Estany <carles@pina.cat>
29481
29482 * include/grub/misc.h (grub_puts): New declaration.
29483 (grub_puts_): Likewise.
a22008a6 29484 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
29485 (grub_puts_): Likewise.
29486
2e8a7602
RM
294872009-12-13 Robert Millan <rmh.grub@aybabtu.com>
29488
29489 * util/grub-probe.c (probe): Improve error message.
29490
b50b77b9
RM
294912009-12-13 Robert Millan <rmh.grub@aybabtu.com>
29492
29493 * loader/i386/multiboot_elfxx.c
29494 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
29495 initialization.
29496
294972009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
29498
29499 Relocator framework
29500
29501 * loader/i386/xnu_helper.S: Removed. All users updated.
29502 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
29503 (relocator_mod_SOURCES): New variable.
29504 (relocator_mod_CFLAGS): Likewise.
29505 (relocator_mod_LDFLAGS): Likewise.
29506 (relocator_mod_ASFLAGS): Likewise.
29507 * conf/x86_64.rmk: Likewise.
29508 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
29509 (grub_multiboot_payload_entry_offset): Likewise.
29510 (grub_multiboot_forward_relocator): Likewise.
29511 (grub_multiboot_forward_relocator_end): Likewise.
29512 (grub_multiboot_backward_relocator): Likewise.
29513 (grub_multiboot_backward_relocator_end): Likewise.
29514 (grub_multiboot_payload_eip): New variable.
29515 (grub_multiboot_payload_orig): Likewise.
29516 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
29517 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
29518 * include/grub/i386/memory.h
29519 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
29520 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
29521 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
29522 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
29523 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
29524 * include/grub/i386/relocator.h: New file.
29525 * include/grub/x86_64/relocator.h: Likewise.
29526 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
29527 (XNU_RELOCATOR): New macro.
29528 (grub_xnu_launcher_start): Remove.
29529 (grub_xnu_launcher_end): Likewise.
29530 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
29531 (grub_xnu_heap_real_start): Remove.
29532 (grub_xnu_heap_start): Change to void *. All users updated.
29533 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
29534 * lib/i386/relocator.c: New file.
29535 * lib/i386/relocator_asm.S: Likewise.
29536 * lib/i386/relocator_backward.S: Likewise.
29537 * lib/mips/relocator.c: Likewise.
29538 * lib/mips/relocator_asm.S: Likewise.
29539 * lib/relocator.c: Likewise.
29540 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
29541 (entry): Removed.
29542 (playground): Likewise.
29543 (grub_multiboot_payload_orig): New variable.
29544 (grub_multiboot_payload_dest): Likewise.
29545 (grub_multiboot_payload_size): Likewise.
29546 (grub_multiboot_payload_eip): Likewise.
29547 (grub_multiboot_payload_esp): Likewise.
29548 (grub_multiboot_boot): Use grub_relocator32_boot.
29549 (grub_multiboot_unload): Free relocators.
29550 (grub_multiboot): Setup stack. Use relocators.
29551 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
29552 (grub_multiboot_load_elfXX): Use relocators.
29553 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
29554 (grub_multiboot_payload_size): Likewise.
29555 (grub_multiboot_payload_dest): Likewise.
29556 (grub_multiboot_payload_entry_offset): Likewise.
29557 (grub_multiboot_forward_relocator): Likewise.
29558 (grub_multiboot_backward_relocator): Likewise.
29559 (grub_multiboot_real_boot): Likewise.
29560 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
29561 (grub_xnu_entry_point): Likewise.
29562 (grub_xnu_arg1): Likewise.
29563 (grub_xnu_stack): Likewise.
29564 (grub_xnu_launch): Removed.
29565 (grub_xnu_boot_resume): New function.
29566 (grub_xnu_boot): Use relocators.
29567 * loader/i386/xnu_helper.S: Removed.
29568 * loader/xnu.c (grub_xnu_heap_start): New variable.
29569 (grub_xnu_heap_size): Likewise.
29570 (grub_xnu_heap_malloc): Use relocators.
29571 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
29572
29eb90c6
VS
295732009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
29574
29575 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
29576 anything.
29577
31027430
CPE
295782009-12-13 Carles Pina i Estany <carles@pina.cat>
29579
29580 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
29581 GRUB_ERR_NONE before calling grub_env_set.
29582
dc0c71d9
RM
295832009-12-12 Robert Millan <rmh@aybabtu.com>
29584
29585 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
29586 * genmk.rb (video): New variable.
29587 (CLEANFILES, VIDEOFILES): Add #{video}.
29588 (#{video}): New target rule.
29589 * genvideolist.sh: New file.
29590 * Makefile.in (pkglib_DATA): Add video.lst.
29591 (video.lst): New target rule.
29592 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
29593 `video.lst'.
29594 * util/grub.d/30_os-prober.in: Replace `vbe' with
29595 ${GRUB_VIDEO_BACKEND}.
29596
2a4bfcf0
RM
295972009-12-11 Robert Millan <rmh.grub@aybabtu.com>
29598
29599 * THANKS: Add David Miller.
29600
2a3aa4d5
RM
296012009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
29602
29603 libpciaccess support.
29604
29605 * Makefile.in (LIBPCIACCESS): New variable.
29606 (enable_grub_emu_pci): Likewise.
29607 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
29608 util/pci.c and commands/lspci.c.
29609 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
29610 * configure.ac (grub-emu-pci): New option.
29611 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
29612 (grub_pci_device_unmap_range): Likewise.
29613 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
29614 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
29615 (grub_pci_address_t) [!GRUB_UTIL]: New type.
29616 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
29617 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
29618 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
29619 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
29620 * include/grub/pciutils.h: New file.
29621 * util/pci.c: Likewise.
29622
0ad46fd7 296232009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
29624
29625 * util/misc.c: Don't include <errno.h> twice.
29626
0ad46fd7 296272009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
29628
29629 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
29630 name in an error message.
29631 (grub_biosdisk_rw): Likewise.
29632
2e59983c
VS
296332009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29634
29635 Eliminate NTFS 4Gib barrier.
29636
29637 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
29638 (read_run_data): Likewise.
29639 (grub_ntfs_read_run_list): Likewise.
29640 (grub_ntfs_read_block): Likewise.
29641 (grub_ntfs_iterate_dir): Likewise.
29642 (read_mft): Likewise.
29643 (read_data): Likewise.
29644 Use COM_LOG_LEN.
29645 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
29646 to avoid 64-bit division
29647 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
29648 (grub_ntfs_rlst): Use grub_disk_addr_t.
29649
71ee178a
VS
296502009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29651
29652 Eliminate grub-fstest 4Gib barrier.
29653
29654 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
29655 (read_file): Fix error reporting.
29656
2520d4b8
VS
296572009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29658
29659 Eliminate hexdump 4Gib barrier.
29660
29661 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
29662 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
29663
e1f27065
VS
296642009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29665
29666 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
29667 Fixes amarsh bug.
29668
1a0f7f45
RM
296692009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
29670
29671 Remove miscellaneous files in distclean target.
29672
29673 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
29674
c631d9fb
CW
296752009-12-09 Colin Watson <cjwatson@ubuntu.com>
29676
29677 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
29678 if they're already set. This resolves the conflict between my
29679 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
29680 fixing the --grub-probe option again.
29681 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
29682 change on 2009-10-06, so that we now once again source
29683 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
29684
7c7b6106
RM
296852009-12-08 Robert Millan <rmh.grub@aybabtu.com>
29686
29687 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
29688 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
29689 `util/devicemap.c'.
29690
e3069ec1
CPE
296912009-12-08 Carles Pina i Estany <carles@pina.cat>
29692
29693 * include/grub/misc.h (grub_printf_): New declaration.
29694 * kern/misc.c (grub_printf_): New definition.
29695 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
29696 instead of `grub_printf' and `_'.
29697 * normal/menu_entry.c (store_completion): Likewise.
29698 (run): Likewise.
29699 (grub_menu_entry_run): Likewise.
29700 * normal/menu_text.c (grub_wait_after_message): Likewise.
29701 (notify_booting): Likewise.
29702 (notify_fallback): Likewise.
29703 (notify_execution_failure): Likewise.
29704
d6ceebf1
CW
297052009-12-07 Colin Watson <cjwatson@ubuntu.com>
29706
29707 * configure.ac: Check for vasprintf.
29708 * util/misc.c (asprintf): Move allocation from here ...
29709 (vasprintf): ... to here. New function.
29710 (xasprintf): New function.
29711 * include/grub/util/misc.h (vasprintf, xasprintf): Add
29712 prototypes.
29713 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
29714 * util/grub-mkfont.c (write_font): Likewise.
29715 * util/grub-probe.c (probe): Likewise.
29716 * util/hostdisk.c (make_device_name): Likewise.
29717
de6daa8b
DM
297182009-12-06 David S. Miller <davem@sunset.davemloft.net>
29719
29720 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
29721 anything even prefixed with 'cdrom' as a cdrom.
29722
0ad46fd7 297232009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
29724
29725 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
29726 mount points.
29727
98d3dc02
CPE
297282009-12-05 Carles Pina i Estany <carles@pina.cat>
29729
29730 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
29731 grub_gettext_msg_list.
29732 (grub_gettext_gettranslation_from_position): Return const char *
29733 and not char *.
a2c1332b 29734 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
29735 returns from the list if existing there.
29736 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
29737 (grub_gettext_delete_list): Delete the list.
29738 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
29739 lang environment variable is changed.
29740 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
29741
b283f108
VS
297422009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
29743
29744 Rename kernel.mod to kernel.img.
29745
29746 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
29747 (kernel_mod_EXPORTS): Rename to ...
29748 (kernel_img_EXPORTS): ... this.
29749 (kernel_mod_SOURCES): Rename to ...
29750 (kernel_img_SOURCES): ... this.
29751 (kernel_mod_HEADERS): Rename to ...
29752 (kernel_img_HEADERS): ... this. All users updated.
29753 (kernel_mod_CFLAGS): Rename to ...
29754 (kernel_img_CFLAGS): ... this.
29755 (kernel_mod_ASFLAGS): Rename to ...
29756 (kernel_img_ASFLAGS): ... this.
29757 (kernel_mod_LDFLAGS): Rename to ...
29758 (kernel_img_LDFLAGS): ... this.
29759 * conf/x86_64-efi.rmk: Likewise.
29760 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
29761 (read_kernel_image): ... this. All users updated.
29762 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
29763
69055f8a
CPE
297642009-12-05 Carles Pina i Estany <carles@pina.cat>
29765
29766 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
29767 (print_spaces): New function.
29768 (grub_print_ucs4): New function.
29769 (getstringwidth): New function.
29770 (print_message_indented): New function.
29771 (print_message): Gettexttize strings using print_message_indented.
29772 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
29773 width.
29774 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 29775 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
29776 Gettextize.
29777 * normal/menu_entry.c (store_completion): Cleanup the gettextized
29778 string.
29779 (run): Likewise.
29780 (grub_menu_entry_run): Likewise.
29781 * PO/POTFILES: Add normal/menu_entry.c.
29782
f616f51c
VS
297832009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
29784
29785 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
29786
57bbe3be
CPE
297872009-12-05 Carles Pina i Estany <carles@pina.cat>
29788
29789 * util/grub-install.in: Install gettext .mo files.
29790 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
29791
013d67a1
CPE
297922009-12-05 Carles Pina i Estany <carles@pina.cat>
29793
29794 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
29795 grub_dprintf.
29796
fb954db0
RM
297972009-12-05 Robert Millan <rmh.grub@aybabtu.com>
29798
29799 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
29800 non-firmware-dependant one in realmode.S takes precedence.
29801
6b8474f8
RM
298022009-12-04 Robert Millan <rmh.grub@aybabtu.com>
29803
29804 * commands/halt.c: Replace misc arch-specific headers with
29805 `<grub/misc.h>'.
29806 * commands/reboot.c: Likewise.
29807 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
29808 `<grub/misc.h>'.
29809 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
29810 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
29811 (kernel_img_SOURCES): ... to here.
29812
29813 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
29814 * include/grub/i386/pc/init.h: Likewise.
29815 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
29816 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
29817
29818 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
29819
29820 * include/grub/i386/halt.h: Remove.
29821 * include/grub/i386/reboot.h: Likewise.
29822
29823 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
29824
4b2e6ca2
DM
298252009-12-03 David S. Miller <davem@sunset.davemloft.net>
29826
29827 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
29828 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
29829 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
29830 "progname.h"
29831 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
29832 * util/sparc64/ieee1275/grub-setup.c: Likewise.
29833 (usage): Add missing comma in printf.
29834
5239348f
RM
298352009-12-02 Robert Millan <rmh.grub@aybabtu.com>
29836
29837 Use the same reboot approach on i386 coreboot and qemu as we do on
29838 BIOS.
29839
29840 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
29841 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
29842 * kern/i386/reboot.c: Remove.
29843 * include/grub/i386/reboot.h (grub_reboot): Export function.
29844 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
29845 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
29846 0xf000:0xfff0 instead of 0xffff:0x0000.
29847 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
29848 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
29849
ef34cbd4
RM
298502009-11-30 Robert Millan <rmh.grub@aybabtu.com>
29851
29852 Fix $srcdir != $objdir build.
29853
29854 * Makefile.in (po/%.po): Rewrite as ...
29855 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
29856
dc9837ea
ST
298572009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
29858
29859 Fix GNU/Hurd grub-install crash.
29860 * util/grub-probe.c (probe): Try to access `path' only when it is not
29861 NULL.
29862
2f857f98
VS
298632009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
29864
29865 Correct module naming.
29866
29867 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
29868 (GRUB_MOD_INIT(efi_uga)): ... to this
29869 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
29870 (GRUB_MOD_FINI(efi_uga)): ... to this
29871 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
29872 (GRUB_MOD_INIT(efi_gop)): ... to this
29873 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
29874 (GRUB_MOD_FINI(efi_gop)): ... to this
29875
c5448046
RM
298762009-11-28 Robert Millan <rmh.grub@aybabtu.com>
29877
29878 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
29879 translatable.
29880 (usage): Translate `arg' strings using gettext().
29881 Thanks to Jordi Mallach for the suggestion.
29882
c85184ad
VS
298832009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
29884
29885 GOP support. Based on patch from Bean
29886 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
29887
29888 * video/efi_gop.c: New file.
29889 * include/grub/efi/graphics_output.h: Likewise.
29890 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
29891 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
29892 variables.
29893 * conf/x86_64-efi.rmk: Likewise.
29894
8a4c48d8
VS
298952009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
29896
29897 Rename efi_fb to efi_uga.
29898
29899 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
29900 'efi_uga.mod'.
29901 (efi_fb_mod_SOURCES): Rename this ...
29902 (efi_uga_mod_SOURCES): ... to this.
29903 (efi_fb_mod_CFLAGS): Rename this ...
29904 (efi_uga_mod_CFLAGS): ... to this.
29905 (efi_fb_mod_LDFLAGS): Rename this ...
29906 (efi_uga_mod_LDFLAGS): ... to this.
29907 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
29908 'efi_uga.mod'.
29909 (efi_fb_mod_SOURCES): Rename this ...
29910 (efi_uga_mod_SOURCES): ... to this.
29911 (efi_fb_mod_CFLAGS): Rename this ...
29912 (efi_uga_mod_CFLAGS): ... to this.
29913 (efi_fb_mod_LDFLAGS): Rename this ...
29914 (efi_uga_mod_LDFLAGS): ... to this.
29915 * video/efi_fb.c: Move this ...
29916 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
29917
fb6c1a7b
RM
299182009-11-27 Robert Millan <rmh.grub@aybabtu.com>
29919
29920 * po/README: New file. Explain our PO file workflow.
29921
3bc7896c
RM
299222009-11-27 Robert Millan <rmh.grub@aybabtu.com>
29923
29924 * po/ChangeLog: Remove. Move relevant entries back to ...
29925 * ChangeLog: ... here.
29926 * po/ca.po: Remove (now handled by TLP).
29927 * po/id.po: Likewise.
29928 * po/zh_CN.po: Likewise.
29929 * Makefile.in (LINGUAS): Initialize in a way that supports
29930 empty set.
29931
9ed4841d
RM
299322009-11-27 Robert Millan <rmh.grub@aybabtu.com>
29933
29934 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
29935 reliing on po/LINGUAS.
29936 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
29937 (po/%.po): ... this.
29938
0ad46fd7 299392009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
29940
29941 * util/i386/efi/grub-mkimage.c: Include "progname.h".
29942 (main): Use `program_name' instead of nonexistent `progname'.
29943
e30dd392
FZ
299442009-11-26 Felix Zielcke <fzielcke@z-51.de>
29945
29946 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
29947 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
29948
7656de4f
RM
299492009-11-26 Robert Millan <rmh.grub@aybabtu.com>
29950
29951 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
29952 commit.
29953 * conf/i386-efi.rmk: Likewise.
29954 * conf/i386-ieee1275.rmk: Likewise.
29955 * conf/powerpc-ieee1275.rmk: Likewise.
29956 * conf/sparc64-ieee1275.rmk: Likewise.
29957 * conf/x86_64-efi.rmk: Likewise.
29958
db77c4d4
FZ
299592009-11-26 Felix Zielcke <fzielcke@z-51.de>
29960
29961 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
29962
a755bb04
FZ
299632009-11-26 Felix Zielcke <fzielcke@z-51.de>
29964
29965 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
29966
8a4c07fd
RM
299672009-11-26 Robert Millan <rmh.grub@aybabtu.com>
29968
29969 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
29970 (grub_mkdevicemap_SOURCES): New variable.
29971 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
29972 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
29973 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
29974 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
29975 (grub_mkdevicemap_SOURCES): Remove.
29976 * conf/i386-efi.rmk: Likewise.
29977 * conf/i386-ieee1275.rmk: Likewise.
29978 * conf/i386-pc.rmk: Likewise.
29979 * conf/powerpc-ieee1275.rmk: Likewise.
29980 * conf/sparc64-ieee1275.rmk: Likewise.
29981 * conf/x86_64-efi.rmk: Likewise.
29982 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
29983 (usage): Fix strings to use `program_name'.
29984 (main): Initialize gettext.
29985 * util/grub-editenv.c: Likewise.
29986 * util/grub-emu.c: Likewise.
29987 * util/grub-fstest.c: Likewise.
29988 * util/grub-mkdevicemap.c: Likewise.
29989 * util/grub-mkfont.c: Likewise.
29990 * util/grub-mkrelpath.c: Likewise.
29991 * util/grub-pe2elf.c: Likewise.
29992 * util/grub-probe.c: Likewise.
29993 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
29994 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
29995 * util/sparc64/ieee1275/grub-setup.c: Likewise.
29996
29997 * util/misc.c: Include `"progname.h"'.
29998 (progname): Remove variable.
29999 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
30000
6f61ed55
FZ
300012009-11-25 Felix Zielcke <fzielcke@z-51.de>
30002
30003 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
30004 printf and print a newline after the menuentry header line.
30005 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
30006
f022876b
FZ
300072009-11-25 Felix Zielcke <fzielcke@z-51.de>
30008
30009 autoconf >= 2.60 support $(localedir).
30010
30011 * INSTALL: Note that autoconf 2.60 is required.
30012 * configure.ac (AC_PREREQ): Bump to 2.60.
30013 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
30014 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
30015
6717926e
YB
300162009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
30017
30018 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
30019 aclocal is run.
30020
08806a54
RM
300212009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30022
30023 * normal/main.c (grub_normal_read_line): Fix off-by-one
30024 buffer overflow.
30025
13b33fba
RM
300262009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30027
30028 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
30029 "parser.grub" in grub_command_execute() call.
30030
4a8572e9
CPE
300312009-11-24 Carles Pina i Estany <carles@pina.cat>
30032
30033 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
30034 * conf/i386-efi.rmk: Likewise.
30035 * conf/i386-ieee1275.rmk: Likewise.
30036 * conf/i386-pc.rmk: Likewise.
30037 * conf/powerpc-ieee1275.rmk: Likewise.
30038 * conf/sparc64-ieee1275.rmk: Likewise.
30039 * conf/x86_64-efi.rmk: Likewise.
30040 * gettext/gettex.c: Include <grub/i18n.h>.
30041 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
30042 here ...
30043 * include/grub/i18n.h: ... to here
30044 * include/grub/i18n.h: ... to here.
30045 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 30046 (grub_gettext_dummy): Move above user.
4a8572e9 30047
bee48093
FZ
300482009-11-24 Felix Zielcke <fzielcke@z-51.de>
30049
30050 * util/Makefile.in (install-local): Convert a `for' into a normal
30051 shell expansion.
30052
a031e91c
RM
300532009-11-24 Robert Millan <rmh.grub@aybabtu.com>
30054
30055 * autogen.sh: Add automake call.
30056 * config.guess: Remove.
30057 * config.sub: Likewise.
30058 * install-sh: Likewise.
30059
26bec39d
FZ
300602009-11-24 Felix Zielcke <fzielcke@z-51.de>
30061
30062 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
30063
8e2532fd
FZ
300642009-11-24 Felix Zielcke <fzielcke@z-51.de>
30065
30066 * util/Makefile.in (install-local): Convert a make `$(foreach)'
30067 function to a normal shell `for'.
30068
fefa1b7d
FZ
300692009-11-24 Felix Zielcke <fzielcke@z-51.de>
30070
30071 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30072
4501250b
FZ
300732009-11-24 Felix Zielcke <fzielcke@z-51.de>
30074
30075 * util/grub-mkrelpath.c: New file.
30076 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
30077 (grub_mkrelpath_SOURCES): New variable.
30078 * include/grub/util/misc.h: New function prototype.
30079 * util/misc.c (make_system_path_relative_to_its_root): New function.
30080
30081 * util/grub-mkconfig_lib.in (bindir): New variable.
30082 (grub_mkrelpath): Likewise.
30083 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
30084
30085 * util/probe.c (probe): Make the file path relative to its root.
30086 Change a info message to use the GRUB path. Enable again the
30087 check if we can read the file with GRUB facilities.
30088
30089 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
30090 to its root.
30091
11d9778b
FZ
300922009-11-24 Felix Zielcke <fzielcke@z-51.de>
30093
30094 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
30095 platform.
30096
4465287d
FZ
300972009-11-24 Felix Zielcke <fzielcke@z-51.de>
30098
30099 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
30100 strncmp().
30101
62b47f22
FZ
301022009-11-24 Felix Zielcke <fzielcke@z-51.de>
30103
30104 * util/getroot.c (grub_util_is_dmraid): New function.
30105 (grub_util_get_dev_abstraction): Treat dmraid and multipath
30106 devices as normal ones, not as LVM.
30107
1eafb9b9 301082009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
30109
30110 * conf/common.rmk: Add grub-gettext_lib target and updates
30111 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
30112 LDFLAGS.
30113 * gettext/gettext.c: New file. (Reads mo files).
30114 * include/grub/file.h (grub_file_pread): New prototype.
30115 * include/grub/i18n.h (_): New prototype.
30116 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
30117 prototypes.
30118 * kern/misc.c (grub_gettext_dummy): New function.
30119 * normal/menu_text.c: Include <grub/i18n.h>.
30120 * normal/menu_text.c (print_timeout): Gettexttize string.
30121 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
30122 * po/POTFILES: Add `normal/menu_text.c'.
30123 * po/ca.po: Add new translations.
c3ea6bd4
CPE
30124 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
30125 gettext module and defines locale_dir and lang in grub.cfg.
30126 * NEWS: Add gettext support.
30127
0fdb2568
RM
301282009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30129
30130 * util/hostdisk.c: Include `<grub/i18n.h>'.
30131 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
30132 (make_device_name): Rewrite using asprintf.
30133 (convert_system_partition_to_system_disk): Replace 0 with NULL.
30134 (find_system_device): If a device is not found, generate one just
30135 by reusing the OS path name.
30136 (read_device_map): Make it permissible for device.map not to exist.
30137
f515aa62
RM
301382009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30139
30140 * script/sh/execute.c: Move from here ...
30141 * script/execute.c: ... to here. Update all users.
30142 * script/sh/function.c: Move from here ...
30143 * script/function.c: ... to here. Update all users.
30144 * script/sh/lexer.c: Move from here ...
30145 * script/lexer.c: ... to here. Update all users.
30146 * script/sh/main.c: Move from here ...
30147 * script/main.c: ... to here. Update all users.
30148 * script/sh/parser.y: Move from here ...
30149 * script/parser.y: ... to here. Update all users.
30150 * script/sh/script.c: Move from here ...
30151 * script/script.c: ... to here. Update all users.
30152
f84b481b
RM
301532009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30154
30155 * configure.ac: Detect all `emu' platforms. Define
30156 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
30157 --enable-grub-emu logic. Disable include/grub/machine
30158 symlink on `emu' platforms.
30159
30160 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
30161 * gensymlist.sh.in: Likewise.
30162
30163 * include/grub/i386/coreboot/machine.h: Remove file.
30164 * include/grub/i386/efi/machine.h: Likewise.
30165 * include/grub/i386/ieee1275/machine.h: Likewise.
30166 * include/grub/i386/pc/machine.h: Likewise.
30167 * include/grub/i386/qemu/machine.h: Likewise.
30168 * include/grub/powerpc/ieee1275/machine.h: Likewise.
30169 * include/grub/sparc64/ieee1275/machine.h: Likewise.
30170 * include/grub/x86_64/efi/machine.h: Likewise.
30171
30172 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
30173 * commands/halt.c: Likewise.
30174 * commands/reboot.c: Likewise.
30175 * include/grub/autoefi.h: Likewise.
30176 * include/grub/i386/at_keyboard.h: Likewise.
30177 * include/grub/i386/kernel.h: Likewise.
30178 * include/grub/i386/loader.h: Likewise.
30179 * include/grub/i386/pc/memory.h: Likewise.
30180 * kern/dl.c: Likewise.
30181 * kern/i386/coreboot/init.c: Likewise.
30182 * loader/i386/bsd.c: Likewise.
30183 * loader/i386/linux.c: Likewise.
30184 * loader/multiboot_loader.c: Likewise.
30185 * term/i386/pc/serial.c: Likewise.
30186 * term/usb_keyboard.c: Likewise.
30187
30188 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
30189 `<grub/machine/machine.h>'
30190 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
30191 * util/misc.c: Remove `<grub/machine/machine.h>' and
30192 `<grub/machine/time.h>'.
30193
30194 * Makefile.in (enable_grub_emu): Remove variable.
30195 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
30196
30197 * conf/any-emu.rmk: New file.
30198 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
30199 (grub_emu_init.c): Move from here ...
30200 * conf/any-emu.rmk: ... to here.
30201
30202 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
30203 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
30204 * conf/any-emu.rmk: ... to here.
30205
4efeab03
RM
302062009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30207
30208 * include/grub/parser.h (grub_parser_register): Document need
30209 of `name' parameter.
30210 * normal/main.c (grub_normal_read_line): Simplify prompt string.
30211 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
30212 "sh" to "grub".
30213
ea1dd8bf
RM
302142009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30215
30216 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
30217 `$(XGETTEXT)'.
30218 * include/grub/i18n.h (N_): New macro.
30219 * util/mkisofs/mkisofs.h: Likewise.
30220 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
30221 around N_().
30222 (usage): Use gettext() to translate help strings when printing them.
30223
0c140626
RM
302242009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30225
30226 Based on patch from Bean
30227 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30228
30229 * video/efi_fb.c: New file.
30230 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
30231 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30232 variables.
30233 * conf/x86_64-efi.rmk: Likewise.
30234
87d58298
RM
302352009-11-22 Robert Millan <rmh.grub@aybabtu.com>
30236
30237 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
30238 * util/i386/pc/grub-setup.c: Likewise.
30239
994cc3a3
ST
302402009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
30241
30242 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
30243 <hurd/fs.h>
30244 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
30245 file_get_storage_info to implement grub_guess_root_device.
30246
26a61d6a
FZ
302472009-11-21 Felix Zielcke <fzielcke@z-51.de>
30248
30249 * Makefile.in (target): Use make's builtin $(shell) function
30250 instead of calling directly $(SHELL) to create the locale directories,
30251 inside the $(foreach) function.
30252
74ff1dd5
FZ
302532009-11-21 Felix Zielcke <fzielcke@z-51.de>
30254
30255 * util/grub-mkrescue.in: Print an error and usage if output option
30256 has not been given.
30257
0b787d0e
FZ
302582009-11-21 Felix Zielcke <fzielcke@z-51.de>
30259
30260 Patch from Loïc Minier <loic.minier@ubuntu.com>.
30261 * util/grub.d/30_os-prober.in: Cope with Linux entries where
30262 root and /boot are on different devices.
30263
1164b270
RM
302642009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30265
30266 Fix build for srcdir != objdir.
30267
30268 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
30269 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
30270 $(srcdir).
30271 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
30272 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
30273 reference for input.
30274
13774a2f
RM
302752009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30276
30277 * util/grub-mkrescue.in: Use source directory direcly (without copiing
30278 or hardlinking it). Remove -J option, Joliet is not compatible with
30279 multiple source directories.
30280
efda854e
RM
302812009-11-21 Carles Pina i Estany <carles@pina.cat>
302822009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30283
30284 * util/grub-mkrescue.in: Recognize `--override-directory' option.
30285 (process_input_dir): New function. Process an arbitrary input
30286 directory.
30287 Misc adjustments to support both "override mode" and system-wide mode.
30288
6c09890c
FZ
302892009-11-20 Felix Zielcke <fzielcke@z-51.de>
30290
30291 * configure.ac (UNIFONT_BDF): Rename to ...
30292 (FONT_SOURCE): ... this. Update all users.
30293
a797824f
FZ
302942009-11-20 Felix Zielcke <fzielcke@z-51.de>
30295
30296 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
30297 to the list of unifont files to look for.
30298
cd4f42b0
RM
302992009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30300
30301 Patch from Joe Auricchio <jauricchio@gmail.com>
30302 * commands/minicmd.c (grub_mini_cmd_clear): New function.
30303 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
30304 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
30305
393c783d
FZ
303062009-11-19 Felix Zielcke <fzielcke@z-51.de>
30307
30308 * Makefile.in (install-local): Add a missing backslash.
30309
b2f1e327
FZ
303102009-11-19 Felix Zielcke <fzielcke@z-51.de>
30311
30312 * include/grub/x86_64/io.h: New file.
30313
f577f7a0
RM
303142009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30315
30316 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
30317 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
30318 Include `"progname.h"'.
30319 (main): Initialize gettext.
30320 * util/i386/pc/grub-setup.c: Gettexttize.
30321 * util/i386/pc/grub-mkimage.c: Likewise.
30322
30323 * Makefile.in (po/*.po): Redefine as ...
30324 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
30325
3bc7896c
RM
30326 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
30327
c37943b6
RM
303282009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30329
30330 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
30331 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
30332 (program_name): Remove.
30333 (main): Initialize gettext support.
6323f705
RM
30334 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
30335 Include `<libintl.h>'.
30336 (_): New macro.
c37943b6
RM
30337
30338 * util/mkisofs/eltorito.c: Gettexttize.
30339 * util/mkisofs/joliet.c: Likewise.
30340 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
30341 * util/mkisofs/multi.c: Likewise.
30342 * util/mkisofs/rock.c: Likewise.
30343 * util/mkisofs/tree.c: Likewise.
30344 * util/mkisofs/write.c: Likewise.
30345
3bc7896c
RM
30346 * po/POTFILES: Update with new files.
30347
5ce77c6e
RM
303482009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30349
30350 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
30351 * util/mkisofs/iso9660.h: Likewise.
30352 * util/mkisofs/joliet.c: Likewise.
30353 * util/mkisofs/mkisofs.c: Likewise.
30354 * util/mkisofs/mkisofs.h: Likewise.
30355 * util/mkisofs/rock.c: Likewise.
30356 * util/mkisofs/tree.c: Likewise.
30357 * util/mkisofs/write.c: Likewise.
30358
30359 * util/mkisofs/eltorito.c (rcsid): Remove.
30360 * util/mkisofs/hash.c: Likewise.
30361 * util/mkisofs/joliet.c: Likewise.
30362 * util/mkisofs/name.c: Likewise.
30363 * util/mkisofs/rock.c: Likewise.
30364 * util/mkisofs/tree.c: Likewise.
30365 * util/mkisofs/write.c: Likewise.
30366
1dabbc77
RM
303672009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30368
30369 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
30370 instead of static allocation.
30371 * util/mkisofs/match.h: Likewise.
30372
633877cb
RM
303732009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30374
3bc7896c
RM
30375 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
30376 and `util/grub.d/10_linux.in'.
633877cb
RM
30377 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
30378 translatable Shell files.
30379
af1c0c85
RM
303802009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30381
30382 * Makefile.in ($(srcdir)/aclocal.m4): New target.
30383
769ae37b
RM
303842009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30385
30386 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 30387 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
30388 * util/grub.d/10_kfreebsd.in (bindir): New variable.
30389 Add gettext initialization.
30390 (kfreebsd_entry): Make menuentry output translatable.
30391
303922009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30393
30394 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
30395 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
30396 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
30397 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
30398 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 30399 * po/LINGUAS: New file.
769ae37b
RM
30400
304012009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30402
30403 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
30404 other things).
30405 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
30406 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
30407 bindtextdomain() calls for gettext initialization.
30408
304092009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30410
30411 * gnulib/progname.c: New file (imported from Gnulib).
30412 * gnulib/progname.h: Likewise.
30413 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30414 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
30415 (usage): Replace `progname' with `program_name'.
30416 (main): Use set_program_name() for program name initialization.
30417
304182009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30419
30420 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
30421 from here ...
30422 * Makefile.in (CPPFLAGS): ... to here.
30423
304242009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30425
30426 * aclocal.m4: Move from here ...
30427 * acinclude.m4: ... to here.
30428 * autogen.sh: Add call to `aclocal'.
30429 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
30430
304312009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30432
30433 * Makefile.in (CLEANFILES): Add `po/*.mo'.
30434 (LINGUAS): New variable.
30435 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
30436 (install-local): Install MO files.
30437 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
30438 * include/grub/i18n.h: New file.
3bc7896c
RM
30439 * po/POTFILES: New file.
30440 * po/ca.po: New file.
769ae37b
RM
30441 * util/grub.d/10_linux.in (bindir): New variable.
30442 Add gettext initialization.
30443 (linux_entry): Make menuentry output translatable.
30444 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
30445 (usage): Make --help output translatable.
30446 (main): Initialize gettext.
30447
02c0a6ad
RM
304482009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30449
30450 * import_gcry.py: New file (written by Vladimir with minor
30451 adjustments).
30452 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
30453 ciphers.
30454 * INSTALL: Document that Python is required for bootstrap.
30455
304562009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30457
30458 Import ciphers from libgcrypt 1.4.4.
30459
30460 * lib/libgcrypt/cipher/ChangeLog
30461 * lib/libgcrypt/cipher/ac.c
30462 * lib/libgcrypt/cipher/arcfour.c
30463 * lib/libgcrypt/cipher/bithelp.h
30464 * lib/libgcrypt/cipher/blowfish.c
30465 * lib/libgcrypt/cipher/camellia-glue.c
30466 * lib/libgcrypt/cipher/camellia.c
30467 * lib/libgcrypt/cipher/camellia.h
30468 * lib/libgcrypt/cipher/cast5.c
30469 * lib/libgcrypt/cipher/cipher.c
30470 * lib/libgcrypt/cipher/crc.c
30471 * lib/libgcrypt/cipher/des.c
30472 * lib/libgcrypt/cipher/dsa.c
30473 * lib/libgcrypt/cipher/ecc.c
30474 * lib/libgcrypt/cipher/elgamal.c
30475 * lib/libgcrypt/cipher/hash-common.c
30476 * lib/libgcrypt/cipher/hash-common.h
30477 * lib/libgcrypt/cipher/hmac-tests.c
30478 * lib/libgcrypt/cipher/md.c
30479 * lib/libgcrypt/cipher/md4.c
30480 * lib/libgcrypt/cipher/md5.c
30481 * lib/libgcrypt/cipher/primegen.c
30482 * lib/libgcrypt/cipher/pubkey.c
30483 * lib/libgcrypt/cipher/rfc2268.c
30484 * lib/libgcrypt/cipher/rijndael-tables.h
30485 * lib/libgcrypt/cipher/rijndael.c
30486 * lib/libgcrypt/cipher/rmd.h
30487 * lib/libgcrypt/cipher/rmd160.c
30488 * lib/libgcrypt/cipher/rsa.c
30489 * lib/libgcrypt/cipher/seed.c
30490 * lib/libgcrypt/cipher/serpent.c
30491 * lib/libgcrypt/cipher/sha1.c
30492 * lib/libgcrypt/cipher/sha256.c
30493 * lib/libgcrypt/cipher/sha512.c
30494 * lib/libgcrypt/cipher/tiger.c
30495 * lib/libgcrypt/cipher/twofish.c
30496 * lib/libgcrypt/cipher/whirlpool.c
30497
af2f93ac
RM
304982009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30499
30500 Fix build for systems without error().
30501
30502 * gnulib/error.c: New file (imported from Gnulib).
30503 * gnulib/error.h: Likewise.
30504 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
30505 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
30506 (this variable is now used by error()).
30507
73fb3dd5
FZ
305082009-11-16 Felix Zielcke <fzielcke@z-51.de>
30509
814f5e96
FZ
30510 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
30511 instead of relying that char is signed.
73fb3dd5 30512
a691ca33
VS
305132009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
30514
30515 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
30516 blocksize different from specified.
30517 (grub_pxefs_read): Likewise.
30518
2af8f0f4
FZ
305192009-11-16 Felix Zielcke <fzielcke@z-51.de>
30520
30521 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
30522
30523 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
30524 (grub_ata_readwrite): Likewise. Update 2 format strings.
30525 (grub_atapi_read): Likewise.
30526
30527 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
30528 * conf/i386.rmk (pkglib_MODULES): ... to here ...
30529 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
30530 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
30531 (ata_mod_LDFLAGS): Move from here ...
30532 * conf/i386.rmk: ... to here ...
30533 * conf/x86_64-efi.rmk: ... and here.
30534 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
30535 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
30536
83bdecaf
RM
305372009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30538
30539 Relicense multiboot.h, with RMS' blessing.
30540
30541 * include/multiboot.h: Change to X11 license.
30542
fd6fd3d7
RM
305432009-11-15 Robert Millan <rmh.grub@aybabtu.com>
30544
30545 Support --version in grub-mkisofs.
30546
30547 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
30548 (OPTION_VERSION): New macro.
30549 (ld_options): Recognize --version.
30550 (usage): Move `program_name' from here ...
30551 (program_name): ... to here. Add `static' qualifier.
30552 (main): Recognize `OPTION_VERSION'.
30553
16a88c49
FZ
305542009-11-15 Felix Zielcke <fzielcke@z-51.de>
30555
30556 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
30557 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
30558
a4158476
RM
305592009-11-14 Robert Millan <rmh.grub@aybabtu.com>
30560
30561 Fix help2man generation for mkisofs.
30562
30563 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
30564 (usage): Send output to stdout (rather than stderr).
30565
fc2208b0
RM
305662009-11-14 Robert Millan <rmh.grub@aybabtu.com>
30567
30568 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
30569 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
30570 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
30571 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
30572 (bin_SCRIPTS): Add `grub-mkfloppy'.
30573 (grub_mkfloppy_SOURCES): New variable.
30574
30575 * util/grub-mkrescue.in: New file.
30576 * util/i386/pc/grub-mkfloppy.in: New file.
30577
30578 * util/i386/coreboot/grub-mkrescue.in: Remove.
30579 * util/i386/pc/grub-mkrescue.in: Remove.
30580
8d0edf4a
RM
305812009-11-13 Robert Millan <rmh.grub@aybabtu.com>
30582
30583 * include/grub/multiboot.h (struct grub_multiboot_header): Move
30584 from here ...
30585 * include/multiboot.h (struct multiboot_header): ... to here. Update
30586 all users.
30587 * include/grub/multiboot.h (struct grub_multiboot_info): Move
30588 from here ...
30589 * include/multiboot.h (struct multiboot_info): ... to here. Update
30590 all users.
30591 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
30592 from here ...
30593 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
30594 Update all users.
30595 * include/grub/multiboot.h (struct grub_mod_list): Move
30596 from here ...
30597 * include/multiboot.h (struct multiboot_mod_list): ... to here.
30598 Update all users.
30599
a73f5969
RM
306002009-11-13 Robert Millan <rmh.grub@aybabtu.com>
30601
30602 * include/multiboot2.h (multiboot_word): Rename from this ...
30603 (multiboot2_word): ... to this. Update all users.
30604 (multiboot_header): Rename from this ...
30605 (multiboot2_header): ... to this. Update all users.
30606 (multiboot_tag_header): Rename from this ...
30607 (multiboot2_tag_header): ... to this. Update all users.
30608 (multiboot_tag_start): Rename from this ...
30609 (multiboot2_tag_start): ... to this. Update all users.
30610 (multiboot_tag_name): Rename from this ...
30611 (multiboot2_tag_name): ... to this. Update all users.
30612 (multiboot_tag_module): Rename from this ...
30613 (multiboot2_tag_module): ... to this. Update all users.
30614 (multiboot_tag_memory): Rename from this ...
30615 (multiboot2_tag_memory): ... to this. Update all users.
30616 (multiboot_tag_unused): Rename from this ...
30617 (multiboot2_tag_unused): ... to this. Update all users.
30618 (multiboot_tag_end): Rename from this ...
30619 (multiboot2_tag_end): ... to this. Update all users.
30620
1c8927f0
RM
306212009-11-13 Robert Millan <rmh.grub@aybabtu.com>
30622
30623 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
30624 this platform we should support Multiboot1 first.
30625
30626 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
30627 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
30628 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
30629
6e1e0d89
RM
306302009-11-12 Robert Millan <rmh.grub@aybabtu.com>
30631
30632 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
30633 of write calls (converting them to fwrite() if they aren't already).
30634 (get_torito_desc): Likewise.
30635 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
30636
7f2b34d8
RM
306372009-11-12 Robert Millan <rmh.grub@aybabtu.com>
30638
30639 * util/i386/pc/grub-install.in: Move from here ...
30640 * util/grub-install.in: ... to here. Update all users.
30641
c0ef3311
CW
306422009-11-11 Colin Watson <cjwatson@ubuntu.com>
30643
30644 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
30645
e1f240ff
RM
306462009-11-11 Robert Millan <rmh.grub@aybabtu.com>
30647
30648 Support for El Torito without floppy emulation.
30649
30650 * util/mkisofs/eltorito.c: Include `<errno.h>'.
30651 (init_boot_catalog): Improve error handling.
30652 (get_torito_desc): Don't use floppy emulation unless requested by
30653 user. Patch boot information table when requested via
30654 `-boot-info-table'.
30655 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
30656 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
30657 (use_boot_info_table): New variables.
30658 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
30659 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
30660 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
30661 `--eltorito-emul-floppy'.
30662 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
30663 and `OPTION_ELTORITO_EMUL_FLOPPY'.
30664 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
30665 (use_boot_info_table, get_731): New prototypes.
30666 * util/mkisofs/write.c (get_731): New function.
30667
af7d4de5
FZ
306682009-11-11 Felix Zielcke <fzielcke@z-51.de>
30669
30670 Fix the generation of the man page.
30671
30672 * util/pc/i386/grub-install.in: Source
30673 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
30674
2c55dbc0
RM
306752009-11-11 Robert Millan <rmh.grub@aybabtu.com>
30676
30677 Large file support for grub-mkisofs.
30678
30679 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
30680 * util/mkisofs/mkisofs.c (next_extent, last_extent)
30681 (session_start): Upgrade type to `uint64_t'. Update all users.
30682 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
30683 (struct directory_entry): Upgrade type of `starting_block' and
30684 `size' to `uint64_t'. Update all users.
30685 (struct deferred): Remove unused structure.
30686 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
30687 Update all users.
30688 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
30689 file is larger than `UINT32_MAX'.
30690 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
30691 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
30692 return value.
30693 (struct deferred_write): Upgrade type of `extent' and `size' to
30694 `uint64_t'. Update all users.
30695 (last_extent_written): Upgrade type to `uint64_t'. Update all
30696 users.
30697 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
30698 Update all users. Upgrade type of `remain' to `int64_t' and
30699 `use' to `size_t'. Use error() to handle fread() errors.
30700 (write_files): Rely on write_one_file() rather than calling
30701 xfwrite() directly.
30702
6a9cead5
FZ
307032009-11-09 Felix Zielcke <fzielcke@z-51.de>
30704
30705 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
30706
4825d790
RM
307072009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30708
30709 * util/mkisofs/fnmatch.c: Remove.
30710 * util/mkisofs/getopt1.c: Likewise.
30711 * util/mkisofs/getopt.c: Likewise.
30712 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
30713 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
30714 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
30715 `gnulib/getopt1.c' and `gnulib/getopt.c'.
30716 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
30717
30718 * configure.ac: Detect `mingw32msvc' host_os.
30719 Check for lstat(), getuid() and getgid().
30720
30721 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
30722 instances of `u_char' with `uint8_t'.
30723
30724 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
30725 [!HAVE_GETUID] (getuid): New function (stub).
30726 [!HAVE_GETGID] (getgid): Likewise.
30727 [!HAVE_LSTAT] (lstat): Likewise.
30728 [!S_IROTH] (S_IROTH): New macro (dummy).
30729 [!S_IRGRP] (S_IRGRP): Likewise.
30730
84b860d8
RM
307312009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30732
30733 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
30734 conditional expression).
30735
66e9b712
RM
307362009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30737
30738 Import from Gnulib.
30739
30740 * gnulib/fnmatch.c: New file.
30741 * gnulib/fnmatch.h: Likewise.
30742 * gnulib/fnmatch_loop.c: Likewise.
30743 * gnulib/getopt.c: Likewise.
30744 * gnulib/getopt.h: Likewise.
30745 * gnulib/getopt1.c: Likewise.
30746 * gnulib/getopt_int.h: Likewise.
30747 * gnulib/gettext.h: Likewise.
30748
34f4a5b0
RM
307492009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30750
30751 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
30752 * normal/handler.c (read_handler_list): Likewise.
30753
ac451143
RM
307542009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30755
30756 Misc cleanup.
30757
30758 * kern/command.c (grub_register_command_prio): Use
30759 grub_zalloc() instead of explicitly zeroing data.
30760 * kern/list.c: Include `<grub/mm.h>'.
30761 (grub_named_list_find): Replace `0' with `NULL'.
30762 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
30763 (fs_module_list): Change type to `grub_named_list_t'. Update all
30764 users.
30765 * normal/dyncmd.c (read_command_list): Add space between function
30766 call and parenthesis.
30767 * normal/handler.c (read_handler_list): Likewise.
30768
4089b167
RM
307692009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30770
30771 * normal/auth.c (punishment_delay): Moved from here ...
30772 (grub_auth_strcmp): ... to here (inside function).
30773
325f5037
RM
307742009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30775
30776 * include/grub/list.h (struct grub_named_list): Remove `const'
30777 qualifier from `name'.
30778 (struct grub_prio_list): Likewise.
30779
7aea29a3
RM
307802009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30781
30782 * normal/auth.c: Include `<grub/time.h>'.
30783 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
30784
3fd6f044
RM
307852009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30786
30787 * normal/auth.c (punishment_delay): New variable.
30788 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
30789 (grub_auth_check_authentication): Punish failed login attempts with
30790 an incremental (2^N) delay.
30791
a4cd68e4
RM
307922009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30793
30794 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
30795 path with $(srcdir).
30796
7ad12f43
VS
307972009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
30798
30799 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
30800
c1129f03
RM
308012009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30802
30803 * util/i386/coreboot/grub-mkrescue.in: New file.
30804 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
30805 variables.
30806
30807 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
30808 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
30809 * configure.ac: Add header and function checks to satisfy grub-mkisofs
30810 requirements.
30811 * util/mkisofs/defaults.h: New file.
30812 * util/mkisofs/eltorito.c: Likewise.
30813 * util/mkisofs/exclude.h: Likewise.
30814 * util/mkisofs/fnmatch.c: Likewise.
30815 * util/mkisofs/getopt.c: Likewise.
30816 * util/mkisofs/getopt1.c: Likewise.
30817 * util/mkisofs/hash.c: Likewise.
30818 * util/mkisofs/include/fctldefs.h: Likewise.
30819 * util/mkisofs/include/mconfig.h: Likewise.
30820 * util/mkisofs/include/prototyp.h: Likewise.
30821 * util/mkisofs/include/statdefs.h: Likewise.
30822 * util/mkisofs/iso9660.h: Likewise.
30823 * util/mkisofs/joliet.c: Likewise.
30824 * util/mkisofs/match.c: Likewise.
30825 * util/mkisofs/match.h: Likewise.
30826 * util/mkisofs/mkisofs.c: Likewise.
30827 * util/mkisofs/mkisofs.h: Likewise.
30828 * util/mkisofs/multi.c: Likewise.
30829 * util/mkisofs/name.c: Likewise.
30830 * util/mkisofs/rock.c: Likewise.
30831 * util/mkisofs/tree.c: Likewise.
30832 * util/mkisofs/write.c: Likewise.
30833
ec8bb77d
VS
308342009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
30835
30836 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
30837 being insecure.
30838
3716b12c
RM
308392009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30840
30841 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
30842 `grub-mkimage' (and use $0 when possible).
30843
b97b7b91
RM
308442009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30845
30846 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
30847 error message for excessively large memory map.
30848
04114812
RM
308492009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30850
30851 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
30852 executable bit.
30853
e4eb2373
RM
308542009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30855
30856 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
30857 message for coreboot users.
30858
c926e1d5 308592009-11-07 Robert Millan <rmh.grub@aybabtu.com>
30860
30861 Fix build with GNU gold.
30862
30863 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
30864 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
30865 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
30866 link addresses.
30867 * aclocal.m4: Likewise.
30868
86e5b1db 308692009-11-04 Felix Zielcke <fzielcke@z-51.de>
30870
30871 * configure.ac (AC_PREREQ): Bump to 2.59d.
30872 * INSTALL: Make it more clear when Autoconf and Ruby are
30873 needed and when to run `./autogen.sh'.
30874
246cd78f 308752009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30876
30877 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
30878 OSes.
30879
4f9dfb37 308802009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30881
30882 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
30883
b82bd5e1 308842009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30885
30886 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
30887 giving it to GNU Mach.
30888
ff1a9bca 308892009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30890
30891 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
30892 GNU partition number to get internal GRUB partition number.
30893
61697d9c 308942009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30895
30896 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
30897 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
30898
a50569e1 308992009-11-01 Robert Millan <rmh.grub@aybabtu.com>
30900
30901 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
30902 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
30903 case.
30904
5b153867 309052009-11-01 Felix Zielcke <fzielcke@z-51.de>
30906
30907 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
30908
d9e2cd70 309092009-10-30 Robert Millan <rmh.grub@aybabtu.com>
30910
30911 Fix build problem.
30912
30913 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
30914 `-isystem=$(srcdir)/include'.
30915
805111a4 309162009-10-30 Robert Millan <rmh.grub@aybabtu.com>
30917
30918 * util/i386/pc/grub-install.in: Remove hint that device.map should be
30919 checked (grub-install doesn't currently rely on it).
30920
fa6e945f 309212009-10-29 Robert Millan <rmh.grub@aybabtu.com>
30922
30923 Revert SVN r2660.
30924
30925 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
30926 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
30927 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
30928 * conf/i386-ieee1275.rmk: Likewise.
30929 * conf/i386-pc.rmk: Likewise.
30930 * conf/powerpc-ieee1275.rmk: Likewise.
30931 * conf/sparc64-ieee1275.rmk: Likewise.
30932 * conf/x86_64-efi.rmk: Likewise.
30933
cee15086 309342009-10-28 Robert Millan <rmh.grub@aybabtu.com>
30935
30936 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
30937
95b9239e 309382009-10-28 Robert Millan <rmh.grub@aybabtu.com>
30939
30940 * include/grub/misc.h: Stop checking for APPLE_CC.
30941
2ed19dfd 309422009-10-28 Robert Millan <rmh.grub@aybabtu.com>
30943
30944 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
30945 doesn't cause an infinite call loop.
30946
fdcdde19 309472009-10-28 Felix Zielcke <fzielcke@z-51.de>
30948
30949 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
30950 strings.
30951
cefabfe1 309522009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30953
30954 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
30955 variable.
30956 * Makefile.in: Likewise.
30957
ed96ab6d 309582009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30959
30960 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
30961
0579b753 309622009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30963
30964 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
30965
478df409 309662009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30967
30968 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
30969
083d1679 309702009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30971
30972 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
30973 from here ...
30974 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
30975
5947ae32 309762009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30977
30978 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
30979 in $(MAKEINFO) invocation. This makes it clear in output that
30980 errors are being ignored.
30981
94180ff6 309822009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30983
30984 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
30985 from here ...
30986 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
30987 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
30988 * conf/i386-ieee1275.rmk: Likewise.
30989 * conf/i386-pc.rmk: Likewise.
30990 * conf/powerpc-ieee1275.rmk: Likewise.
30991 * conf/sparc64-ieee1275.rmk: Likewise.
30992 * conf/x86_64-efi.rmk: Likewise.
30993
9031b03a 309942009-10-26 Colin Watson <cjwatson@ubuntu.com>
30995
30996 * util/grub-editenv.c (main): If only a command is given, use
30997 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
30998 (usage): FILENAME is now optional and has a default.
30999
e4f6809b 310002009-10-26 Colin Watson <cjwatson@ubuntu.com>
31001
31002 Improve grub-mkconfig performance when there are several menu
31003 entries on a single filesystem.
31004
31005 * util/grub.d/10_linux.in (linux_entry): Cache the output of
31006 prepare_grub_to_access_device.
31007 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
31008 * util/grub.d/30_os-prober.in: Likewise.
31009
67937d4d 310102009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31011
31012 * util/grub.d/10_freebsd.in: Remove.
31013 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
31014 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
31015
ee3756cc 310162009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31017
5c35048e 31018 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 31019
4dea1c6f 310202009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31021
31022 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
31023 grub_util_error() call.
31024
042484d7 310252009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31026
31027 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
31028 `reserved_first_sector' member.
31029 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
31030 `reserved_first_sector' to 1.
31031 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
31032 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
31033 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
31034 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
31035 filesystems which begin at first sector.
31036 (options): New option --skip-fs-probe.
31037 (main): Handle --skip-fs-probe and pass it to setup().
31038
d64448a7 310392009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31040
31041 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
31042 (memset): Fix function prototype.
31043
508d42ec 310442009-10-25 Robert Millan <rmh.grub@aybabtu.com>
310452009-10-25 Vasily Averin <vvs@parallels.com>
31046
31047 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
31048 `dirent.direntlen == 0'.
31049
b240e30c 310502009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31051
31052 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
31053 `cpio'.
31054 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
31055
346e7fbe 310562009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31057
31058 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
31059 `__trampoline_setup' and `__ucmpdi2'.
31060 * include/grub/powerpc/libgcc.h: Only export symbols for functions
31061 that libgcc provides.
31062
cdb308b0 310632009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31064
31065 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
31066 * include/grub/sparc64/libgcc.h (memset): Likewise.
31067 * include/grub/misc.h (memset, memcmp): New function prototypes.
31068
fb26abc2 310692009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31070
31071 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
31072 `cpio'.
31073 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
31074
f6693890 310752009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31076
31077 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
31078 * docs/grub.cfg: Compensate for recent change in multiboot
31079 loader (since 2009-08-14 it won't pass filename to payload).
31080 * util/grub.d/10_hurd.in: Likewise.
31081
0933cdc0 310822009-10-21 Felix Zielcke <fzielcke@z-51.de>
31083
31084 * config.guess: Update to latest version from config git
31085 repository.
31086 * config.sub: Likewise.
31087
3b2fe8c2 310882009-10-20 Robert Millan <rmh.grub@aybabtu.com>
31089
31090 Fix build on sparc64.
31091
31092 * configure.ac: Perform checks for libgcc symbols before
31093 adding `-nostdlib' to LDFLAGS.
31094
46695a62 310952009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31096
31097 Let user specify OpenBSD root device.
31098
31099 * loader/i386/bsd.c (openbsd_root): New variable.
31100 (openbsd_opts): New option 'root'.
31101 (OPENBSD_ROOT_ARG): New macro.
31102 (grub_openbsd_boot): Use 'openbsd_root'.
31103 (grub_cmd_openbsd): Fill 'openbsd_root'.
31104
d2b6b7fc 311052009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31106
31107 * NEWS: Misc adjustments.
31108
421bd7ac 311092009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31110
31111 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
31112
f1d29d87 311132009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31114
31115 * configure.ac: Bump version to 1.97.
31116
6f3cd880 311172009-10-16 Colin Watson <cjwatson@ubuntu.com>
31118
31119 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
31120 -mno-3dnow on x86 architectures. Some toolchains enable these
31121 features by default, but they rely on registers that aren't enabled
31122 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
31123
035f7122 311242009-10-15 Robert Millan <rmh.grub@aybabtu.com>
31125
31126 Make entry text a bit more readable.
31127
31128 * util/grub.d/10_linux.in: Add `with' before `Linux'.
31129
44998e58 311302009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31131
31132 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
31133
cd2851b3 311342009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31135
31136 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
31137 operations.
31138
c6f3b249 311392009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31140
31141 * configure.ac: Add missing dollar.
31142
6b5886ba 311432009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31144
31145 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
31146
31147 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
31148 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
31149 exports.
31150 * include/grub/sparc64/libgcc.h: Likewise. Use
31151 preprocessor conditionals.
31152
e9d66f6d 311532009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31154
31155 * conf/common.rmk (grub-dumpbios): Remove rule.
31156 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
31157 * util/grub-dumpbios.in: Remove file.
31158
9155bc17 311592009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31160
31161 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
31162 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
31163
31164 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
31165 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
31166 users.
31167
31168 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
31169 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
31170 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
31171 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
31172 users.
31173
bf7f7a18 311742009-10-12 Robert Millan <rmh.grub@aybabtu.com>
31175
31176 * term/tparm.c: Switch to GPLv3.
31177
86564c26 311782009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31179
31180 * include/grub/i386/cpuid.h: Add header protection.
31181
5c936493 311822009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31183
31184 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
31185
31186 * include/grub/i386/cpuid.h: New file.
31187 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
31188 (has_longmode): Rename to ...
31189 (grub_cpuid_has_longmode): ... this. Update all users. Remove
31190 `static' attribute.
31191 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
31192 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
31193 on a CPU that doesn't implement AMD64 instruction set.
31194
186e7cf2 311952009-10-06 Colin Watson <cjwatson@ubuntu.com>
31196
31197 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
31198 that version.texi is rebuilt on version number changes.
31199
83b65c4a 312002009-10-06 Colin Watson <cjwatson@ubuntu.com>
31201
31202 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
31203 Fixes bug #27602.
31204
d244281c 312052009-10-06 Colin Watson <cjwatson@ubuntu.com>
31206
31207 * util/i386/pc/grub-install.in: Source
31208 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
31209 that the --grub-probe option will work.
31210 * util/sparc64/ieee1275/grub-install.in: Likewise.
31211
da25306d 312122009-10-05 Robert Millan <rmh.grub@aybabtu.com>
31213
31214 * configure.ac: Bump version to 1.97~beta4.
31215
e8ee83c0 312162009-10-03 Robert Millan <rmh.grub@aybabtu.com>
31217
31218 Resync grub-mkdevicemap in x86_64-efi.
31219
31220 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
31221 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
31222 `util/devicemap.c'.
31223
50dcabcf 312242009-10-01 Colin Watson <cjwatson@ubuntu.com>
31225
31226 * util/grub-editenv.c (create_envblk_file): Write new block with a
31227 .new suffix and then rename it into place, to ensure atomic
31228 creation.
31229
0e51c3a7 312302009-09-28 Robert Millan <rmh.grub@aybabtu.com>
31231
31232 Do not automatically install headers.
31233
31234 * Makefile.in (include_DATA): Remove. Update all users.
31235
31299a95 312362009-09-26 Robert Millan <rmh.grub@aybabtu.com>
31237
31238 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
31239 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
31240
31241 * util/osdetect.lua: Remove.
31242 * script/lua/lauxlib.c: Likewise.
31243 * script/lua/ldebug.c: Likewise.
31244 * script/lua/grub_main.c: Likewise.
31245 * script/lua/lauxlib.h: Likewise.
31246 * script/lua/ldebug.h: Likewise.
31247 * script/lua/ltablib.c: Likewise.
31248 * script/lua/liolib.c: Likewise.
31249 * script/lua/lstrlib.c: Likewise.
31250 * script/lua/lualib.h: Likewise.
31251 * script/lua/ldo.c: Likewise.
31252 * script/lua/ldump.c: Likewise.
31253 * script/lua/ldo.h: Likewise.
31254 * script/lua/loslib.c: Likewise.
31255 * script/lua/lundump.c: Likewise.
31256 * script/lua/grub_lib.c: Likewise.
31257 * script/lua/ldblib.c: Likewise.
31258 * script/lua/lundump.h: Likewise.
31259 * script/lua/lmem.c: Likewise.
31260 * script/lua/grub_lib.h: Likewise.
31261 * script/lua/lmathlib.c: Likewise.
31262 * script/lua/lstate.c: Likewise.
31263 * script/lua/ltm.c: Likewise.
31264 * script/lua/lvm.c: Likewise.
31265 * script/lua/lmem.h: Likewise.
31266 * script/lua/lstate.h: Likewise.
31267 * script/lua/ltm.h: Likewise.
31268 * script/lua/ltable.c: Likewise.
31269 * script/lua/lvm.h: Likewise.
31270 * script/lua/llex.c: Likewise.
31271 * script/lua/lgc.c: Likewise.
31272 * script/lua/grub_lua.h: Likewise.
31273 * script/lua/loadlib.c: Likewise.
31274 * script/lua/lfunc.c: Likewise.
31275 * script/lua/lopcodes.c: Likewise.
31276 * script/lua/lparser.c: Likewise.
31277 * script/lua/ltable.h: Likewise.
31278 * script/lua/llex.h: Likewise.
31279 * script/lua/lgc.h: Likewise.
31280 * script/lua/lfunc.h: Likewise.
31281 * script/lua/lbaselib.c: Likewise.
31282 * script/lua/lopcodes.h: Likewise.
31283 * script/lua/lparser.h: Likewise.
31284 * script/lua/lzio.c: Likewise.
31285 * script/lua/linit.c: Likewise.
31286 * script/lua/lobject.c: Likewise.
31287 * script/lua/llimits.h: Likewise.
31288 * script/lua/lstring.c: Likewise.
31289 * script/lua/lzio.h: Likewise.
31290 * script/lua/lapi.c: Likewise.
31291 * script/lua/lcode.c: Likewise.
31292 * script/lua/lua.h: Likewise.
31293 * script/lua/lobject.h: Likewise.
31294 * script/lua/lstring.h: Likewise.
31295 * script/lua/lapi.h: Likewise.
31296 * script/lua/lcode.h: Likewise.
31297 * script/lua/luaconf.h: Likewise.
31298
cb8a2c38 312992009-09-26 Colin Watson <cjwatson@ubuntu.com>
31300
31301 * docs/grub.texi (Command-line and menu entry commands): Document
31302 date and echo commands.
31303
6b9b6276 313042009-09-24 Pavel Roskin <proski@gnu.org>
31305
31306 * include/grub/kernel.h (struct grub_module_header): Remove
31307 `grub_module_header_types'. Make `type' unsigned. Make `size'
31308 32-bit on all platforms.
31309 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
31310 8-bit field. Use grub_host_to_target32() for `size'.
31311 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
31312 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
31313 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
31314
4e5a02a7 313152009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31316
31317 Fix "lost keypress" bug in at_keyboard.
31318
31319 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
31320 Checks for readyness of input buffer (without flushing it).
31321 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
31322 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
31323
c6dcedf6 313242009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31325
31326 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
31327 size check within GRUB_MACHINE_PCBIOS section.
31328
74c958b1 313292009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31330
31331 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
31332 return value.
31333 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
31334 KEYBOARD_ISREADY check.
31335 (grub_at_keyboard_checkkey): Rename to ...
31336 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
31337 Remove gratuitous cast.
31338
ff420223 313392009-09-23 Colin Watson <cjwatson@ubuntu.com>
31340
31341 * configure.ac: Call AC_PROG_MKDIR_P.
31342 * Makefile.in (docs/stamp-vti): Create docs directory. Create
31343 version.texi in $(builddir) rather than $(srcdir).
31344 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
31345 to makeinfo's @include search path.
31346
d96875df 313472009-09-23 Felix Zielcke <fzielcke@z-51.de>
31348
31349 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
31350
9b3f8365 313512009-09-23 Felix Zielcke <fzielcke@z-51.de>
31352
31353 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
31354 for `*.dpkg-new'.
31355
c44c90db 313562009-09-21 Colin Watson <cjwatson@ubuntu.com>
31357
31358 Build info documentation. Some code borrowed from Automake.
31359
31360 * configure.ac: Check for makeinfo.
31361 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
31362 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
31363 docs/version.texi.
31364 (MOSTLYCLEANFILES): Add vti.tmp.
31365 (docs/version.texi, docs/stamp-vti): Update automatically.
31366 (docs/grub.info): Build info documentation. Use --force and ignore
31367 errors for now.
31368 (all-local): Add $(INFOS).
31369 (install-local): Install info files.
31370 (uninstall): Uninstall info files.
31371 * docs/version.texi: Remove from revision control. This file is
31372 automatically generated on build now.
31373 * gendistlist.sh: Add `*.info'.
31374
e0b37bb5 313752009-09-21 Felix Zielcke <fzielcke@z-51.de>
31376
31377 * kern/term.c: Fix indentation.
31378
5a78865b 313792009-09-21 Felix Zielcke <fzielcke@z-51.de>
31380
31381 * util/hostdisk.c: Fix a comment.
31382
dace7e8a 313832009-09-20 Robert Millan <rmh.grub@aybabtu.com>
31384
31385 Fix regression introduced in r2539.
31386
31387 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
31388 to 0xA1.
31389
a83d079b 313902009-09-19 Colin Watson <cjwatson@ubuntu.com>
31391
31392 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 31393 os-prober. Under normal operation, it does not print anything to
31394 stderr; if it does, we need to debug it, and throwing away stderr
31395 makes that excessively difficult.
a83d079b 31396
be94a509 313972009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
31398
31399 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
31400
63f745e8 314012009-09-16 Robert Millan <rmh.grub@aybabtu.com>
31402
31403 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
31404 AC_LANG_PROGRAM from autoconf.
31405 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
31406 prototypes (fixes warning).
31407
31408 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
31409 `--disable-werror' was used.
31410
bbb2a70f 314112009-09-16 Robert Millan <rmh.grub@aybabtu.com>
31412
31413 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
31414 uninitialized `lastaddr'.
31415
77c24f1d 314162009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
31417
0f0b8c87 31418 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 31419
07197f23 314202009-09-14 Colin Watson <cjwatson@ubuntu.com>
31421
31422 * commands/test.c (get_fileinfo): Return immediately if
31423 grub_fs_probe fails.
31424
dabf1798 314252009-09-14 José Martínez <xosemp@gmail.com>
31426
31427 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
31428
d52109a7 314292009-09-14 Colin Watson <cjwatson@ubuntu.com>
31430
31431 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
31432 output.
31433
56532179 314342009-09-13 Robert Millan <rmh.grub@aybabtu.com>
31435
31436 * configure.ac: Remove --enable-grub-pe2elf. Only build
31437 grub-pe2elf when needed by the build system itself.
31438 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
31439
8ef070f5 314402009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31441
31442 * configure.ac: Bump version to 1.97~beta3.
31443 * docs/version.texi: Likewise.
31444
61229557 314452009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31446
31447 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
31448 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
31449 from here ...
31450 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
31451 (grub_linux_setup_video): ... to here (with some adjustments).
31452
5c9f8d84 314532009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31454
31455 Fix memory corruption issue (spotted by Colin Watson).
31456
31457 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
31458 causing returned size to be stored in an incorrect memory location.
31459 Fix use of uninitialized value when storing the returned size.
31460
e8f5d6e9 314612009-09-12 Yves Blusseau <blusseau@zetam.org>
31462
31463 Change clean rules to properly remove files
31464
31465 * genmk.rb: add new clean rules
31466 * Makefile.in (clean): add the new targets
31467 (mostlyclean): likewise
31468
cda2a409 314692009-09-11 Colin Watson <cjwatson@ubuntu.com>
31470
31471 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
31472 to grub_uint64_t.
31473 * fs/ntfs.c (init_file): Understand 64-bit sizes for
31474 non-resident files.
31475
86695375 314762009-09-11 Colin Watson <cjwatson@ubuntu.com>
31477
31478 * configure.ac: Don't look for help2man when cross-compiling. Fixes
31479 part of bug #27349.
31480
8aa1541a 314812009-09-10 Felix Zielcke <fzielcke@z-51.de>
31482
31483 * util/grub-mkconfig.in: Make the created config mode 400 and
31484 print a warning if it fails.
31485
48d9bb0a 314862009-09-10 Robert Millan <rmh.grub@aybabtu.com>
31487
31488 * util/grub.d/40_custom.in: Ask user to type custom entries below
31489 comment, rather than below 'exec tail' line.
31490
3b0521be 314912009-09-10 Colin Watson <cjwatson@ubuntu.com>
31492
31493 * util/grub.d/40_custom.in: Make sure that the explanatory text is
31494 visible in grub.cfg.
31495
50051d55 314962009-09-10 Colin Watson <cjwatson@ubuntu.com>
31497
31498 * util/grub.d/40_custom.in: Make it a little clearer how to use this
31499 file.
31500
c0d34387 315012009-09-10 Felix Zielcke <fzielcke@z-51.de>
31502
31503 * docs/grub.cfg: Add an example menu entry for memtest86+.
31504
80a608f3 315052009-09-09 Felix Zielcke <fzielcke@z-51.de>
31506
a2094832 31507 * config.guess: Update to latest version from config git.
80a608f3 31508 * config.sub: Likewise.
31509
99423078 315102009-09-08 Colin Watson <cjwatson@ubuntu.com>
31511
31512 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
31513 unknown-command case. Fixes bug #27320.
31514
44454e4c 315152009-09-08 Felix Zielcke <fzielcke@z-51.de>
31516
31517 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
31518 `help' if the command exists.
31519
e30d87ad 315202009-09-06 Robert Millan <rmh.grub@aybabtu.com>
31521
31522 * INSTALL: Require GCC 4.1.3 or later.
31523
9a86f1ec 315242009-09-06 Yves Blusseau <blusseau@zetam.org>
31525
31526 * Makefile.in (RMKFILES): add i386-qemu.rmk
31527 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
31528 $(srcdir)/stamp-h.in
31529
7f26d466 315302009-09-05 Robert Millan <rmh.grub@aybabtu.com>
31531
31532 * util/grub-probe.c (probe): Comment out buggy codepath, which
31533 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
31534 should be re-enabled after 1.97.
31535
3a613259 315362009-09-05 Felix Zielcke <fzielcke@z-51.de>
31537
31538 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
31539 find searches for.
31540
197f76c7 315412009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
31542
31543 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
31544 unnecessary calls to grub_error.
31545
70ba68ce 315462009-09-04 Colin Watson <cjwatson@ubuntu.com>
31547
31548 * NEWS: Mention `keystatus' and Unicode fonts.
31549
4ff0d7a4 315502009-09-04 Robert Millan <rmh.grub@aybabtu.com>
31551
31552 * configure.ac: Bump version to 1.97~beta2.
31553 * docs/version.texi: Likewise.
31554
77c55a87 315552009-09-03 Colin Watson <cjwatson@ubuntu.com>
31556
31557 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
31558 containing unwind information in some cases where it previously did
31559 not. Use -fno-dwarf2-cfi-asm if available to restore the old
31560 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
31561 discussion.
31562
f79572cd 315632009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
31564
31565 Embedding loadenv module into grub-emu
31566
31567 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
31568 commands/loadenv.c
31569 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
31570 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
31571 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
31572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
31573 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
31574 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
31575
93a81088 315762009-09-03 Magnus Granberg <zorry@ume.nu>
31577
31578 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
31579 include -fPIE in the default specs.
31580 * configure.ac: Check if pie_possible is yes and add -fno-PIE
31581 to TARGET_CFLAGS.
31582
160034b2 315832009-09-03 Felix Zielcke <fzielcke@z-51.de>
31584
31585 * INSTALL: Note that GNU Bison 2.3 or later is required.
31586
087c07c4 315872009-09-03 Colin Watson <cjwatson@ubuntu.com>
31588
31589 * kern/i386/pc/startup.S: Fix typo.
31590
cbf978c0 315912009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
31592
31593 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
31594 according to GCS.
31595
315962009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 31597
31598 * docs/grub.texi (Naming convention): Describe one-based partition
31599 numbering.
31600 (Device syntax): Likewise.
31601 (File name syntax): Likewise.
31602 (Block list syntax): Likewise.
31603 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
31604 menu.lst.
31605 (File name syntax): Likewise.
31606 (Command-line and menu entry commands): Document acpi, blocklist,
31607 crc, export, insmod, keystatus, ls, set, and unset commands.
31608
f3e8cdfd 316092009-09-02 Colin Watson <cjwatson@ubuntu.com>
31610
31611 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
31612 to avoid implying that only one of --shift, --ctrl, or --alt may be
31613 used.
31614
c0bc232b 316152009-09-02 Colin Watson <cjwatson@ubuntu.com>
31616
31617 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
31618 rather than comparing against S_IFREG, which will almost never work.
31619
aa0f752d 316202009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
31621
31622 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
31623 (write_blocklists): Likewise.
31624
ecb3166a 316252009-09-01 Colin Watson <cjwatson@ubuntu.com>
31626
31627 * script/lua/grub_lua.h (fputs): Supply a format string as the first
31628 argument to grub_printf.
31629
c403a125 316302009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 31631
31632 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 31633 non GNU test.
31aba781 31634
b5e7312c 316352009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
31636
31637 * kern/file.c (grub_file_read): Spelling fix
31638
fe00f472 316392009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
31640
31641 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
31642 loading of headers in some cases.
31643
cc55302e 316442009-08-30 Robert Millan <rmh.grub@aybabtu.com>
31645
31646 * configure.ac: Bump version to 1.97~beta1.
31647 * docs/version.texi: Likewise.
31648
5c90cdd2 316492009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 31650
31651 * include/grub/i386/xnu.h: Add license header.
31652 include grub/err.h explicitly.
31653
c90edae4 316542009-08-29 Robert Millan <rmh.grub@aybabtu.com>
31655
31656 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
31657 to `ufs' in the vfs.root.mountfrom kernel parameter.
31658
d8888b5c 316592009-08-29 Robert Millan <rmh.grub@aybabtu.com>
31660
31661 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
31662
31663 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
31664 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
31665
31666 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
31667 `ARRAY_SIZE' macro.
31668
6f07b921 316692009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31670
31671 * kern/file.c (grub_file_read): Check offset.
31672 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
31673 * fs/jfs.c (grub_jfs_read_file): Likewise.
31674 * fs/ntfs.c (grub_ntfs_read): Likewise.
31675 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
31676 * fs/minix.c (grub_minix_read_file): Correct offset check.
31677 * fs/ufs.c (grub_ufs_read_file): Likewise.
31678
b4f34077 316792009-08-28 Colin Watson <cjwatson@ubuntu.com>
31680
31681 * term/i386/pc/console.c (bios_data_area): Cast
31682 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
31683
e7c69859 316842009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31685
31686 1-bit optimised blitters.
31687
31688 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
31689 prototype.
31690 (grub_video_fbblit_replace_24bit_1bit): Likewise.
31691 (grub_video_fbblit_replace_16bit_1bit): Likewise.
31692 (grub_video_fbblit_replace_8bit_1bit): Likewise.
31693 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
31694 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
31695 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
31696 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
31697 function.
31698 (grub_video_fbblit_replace_24bit_1bit): Likewise.
31699 (grub_video_fbblit_replace_16bit_1bit): Likewise.
31700 (grub_video_fbblit_replace_8bit_1bit): Likewise.
31701 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
31702 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
31703 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
31704 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
31705 when possible.
31706 * video/video.c (grub_video_get_blit_format): Return
31707 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
31708
a57da43f 317092009-08-28 Colin Watson <cjwatson@ubuntu.com>
31710
31711 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
31712 the first argument to grub_printf.
31713
4cbe67e5 317142009-08-28 Colin Watson <cjwatson@ubuntu.com>
317152009-08-28 Robert Millan <rmh.grub@aybabtu.com>
31716
31717 Add `getkeystatus' terminal method. Add a new `keystatus' command
31718 to query it.
31719
31720 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
31721 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
31722 modifier key bitmasks.
31723 (struct grub_term_input): Add `getkeystatus' member.
31724 (grub_getkeystatus): Add prototype.
31725 * kern/term.c (grub_getkeystatus): New function.
31726
31727 * include/grub/i386/pc/memory.h
31728 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
31729 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
31730 Data Area layout.
31731 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
31732 (grub_console_term_input): Set `getkeystatus' member.
31733 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
31734 constants.
31735 (grub_usb_keyboard_getreport): Likewise.
31736 (grub_usb_keyboard_checkkey): Likewise.
31737 (grub_usb_keyboard_getkeystatus): New function.
31738 (grub_usb_keyboard_term): Set `getkeystatus' member.
31739
31740 * commands/keystatus.c: New file.
31741 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
31742 (keystatus_mod_SOURCES): New variable.
31743 (keystatus_mod_CFLAGS): Likewise.
31744 (keystatus_mod_LDFLAGS): Likewise.
31745 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
31746 commands/keystatus.c.
31747 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31748 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31749 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31751 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31752 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 31753
6e2a9085 317542009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31755
31756 Split befs.mod and afs.mod into *_be.mod and *.mod
31757
31758 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
31759 (grub_fstest_SOURCES): Likewise.
31760 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
31761 (afs_be_mod_SOURCES): New variable.
31762 (afs_be_mod_CFLAGS): Likewise.
31763 (afs_be_mod_LDFLAGS): Likewise.
31764 (befs_be_mod_SOURCES): Likewise.
31765 (befs_be_mod_CFLAGS): Likewise.
31766 (befs_be_mod_LDFLAGS): Likewise.
31767 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
31768 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31769 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31770 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
31771 (grub_emu_SOURCES): Likewise.
31772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31773 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31774 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31775 * fs/afs_be.c: New file.
31776 * fs/befs_be.c: New file.
31777 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
31778 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
31779 (U16): Replaced with ...
31780 (grub_afs_to_cpu16): ...this. All users updated.
31781 (U32): Replaced with ...
31782 (grub_afs_to_cpu32): ...this. All users updated.
31783 (U64): Replaced with ...
31784 (grub_afs_to_cpu64): ...this. All users updated.
31785 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
31786 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 31787 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 31788 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
31789 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
31790 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
31791 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
31792 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
31793 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
31794 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
31795 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
31796
32a71655 317972009-08-26 Bean <bean123ch@gmail.com>
31798
31799 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
31800 64-bit number.
31801 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
31802 (grub_xfs_inode_block): Change return type to grub_uint64_t.
31803 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
31804
552bf6c5 318052009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31806
31807 NetBSD memory map support.
31808
31809 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
31810 (grub_netbsd_btinfo_mmap_header): New structure.
31811 (grub_netbsd_btinfo_mmap_entry): Likewise.
31812 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
31813
1ae2078c 318142009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31815
31816 Enable bsd.mod on coreboot.
31817
31818 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
31819 (bsd_mod_SOURCES): New variable.
31820 (bsd_mod_CFLAGS): Likewise.
31821 (bsd_mod_LDFLAGS): Likewise.
31822 (bsd_mod_ASFLAGS): Likewise.
31823 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
31824 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
31825
beefc598 318262009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31827
31828 Cleanup NetBSD root support.
31829
31830 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
31831 grub_bsd_get_device.
31832 Fix typo.
31833
3b76e68b 318342009-08-25 Felix Zielcke <fzielcke@z-51.de>
31835
31836 * util/grub.d/00_header.in: Move check for the video backend of
31837 gfxterm from here ...
31838 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
31839 a suitable video backend.
31840
aea664ea 318412009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31842
31843 Fix breakage in grub-setup.
31844
31845 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
31846 "msdos_partition_map".
31847
ff747d50 318482009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31849
31850 Fix breakage in normal/auth.c.
31851
31852 * normal/auth.c (grub_iswordseparator): New function.
31853
e7e1f93f 318542009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31855
31856 Authentication support.
31857
31858 * commands/password.c: New file.
31859 * conf/common.rmk (pkglib_MODULES): Add password.mod.
31860 (password_mod_SOURCES): New variable.
31861 (password_mod_CFLAGS): Likewise.
31862 (password_mod_LDFLAGS): Likewise.
31863 (normal_mod_SOURCES): Add normal/auth.c.
31864 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
31865 normal/auth.c.
31866 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31867 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31868 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31869 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31870 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31871 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31872 * include/grub/auth.h: New file.
31873 * include/grub/err.h (grub_err_t): New enum value
31874 GRUB_ERR_ACCESS_DENIED.
31875 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
31876 'users'.
31877 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
31878 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
31879 users updated.
31880 * normal/auth.c: New file.
31881 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
31882 (grub_cmdline_run): Don't allow to go to command line without
31883 authentication.
31884 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
31885 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
31886 menuentry without superuser rights.
31887 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
31888 user isn't a superuser.
31889
70f1161d 318902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31891
31892 Save space by inlining misc.c functions.
31893
31894 * kern/misc.c (grub_iswordseparator): Made static.
31895 * kern/misc.c (grub_strcat): Moved from here ...
31896 * include/grub/misc.h (grub_strcat): ... here. Inlined.
31897 * kern/misc.c (grub_strncat): Moved from here ...
31898 * include/grub/misc.h (grub_strncat): ... here. Inlined.
31899 * kern/misc.c (grub_strcasecmp): Moved from here ...
31900 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
31901 * kern/misc.c (grub_strncasecmp): Moved from here ...
31902 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
31903 * kern/misc.c (grub_isalpha): Moved from here ...
31904 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
31905 * kern/misc.c (grub_isdigit): Moved from here ...
31906 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
31907 * kern/misc.c (grub_isgraph): Moved from here ...
31908 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
31909 * kern/misc.c (grub_tolower): Moved from here ...
31910 * include/grub/misc.h (grub_tolower): ... here. Inlined.
31911
48e40bff 319122009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31913
31914 * script/sh/function.c (grub_script_function_find): Cut error message
31915 not to flood terminal.
31916 * script/sh/lexer.c (grub_script_yylex): Remove command line length
31917 limit.
31918 * script/sh/script.c (grub_script_arg_add): Duplicate string.
31919
c385bfc3 319202009-08-24 Colin Watson <cjwatson@ubuntu.com>
31921
31922 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
31923 `report' grub_uint8_t *.
31924 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
31925 Use a 50-millisecond timeout rather than just repeating
31926 grub_usb_keyboard_getreport 50 times.
31927 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
31928
2d21e3e8 319292009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31930
31931 Rename *_partition_map to part_*
31932
31933 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
31934 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
31935 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
31936 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
31937 All users updated.
31938 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
31939 All users updated.
31940 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
31941 * util/grub-probe.c (probe_partmap): Don't transform partition name
31942 to get module name.
31943
dd103c4e 319442009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31945
31946 Fix OpenBSD and NetBSD support.
31947
31948 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
31949 memory address conflict.
31950 (OPENBSD_MMAP_ACPI): New definition.
31951 (OPENBSD_MMAP_NVS): Likewise.
31952 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
31953 and OPENBSD_MMAP_NVS.
31954 Add memory map terminator
31955 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 31956 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 31957
16c84d74 319582009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31959
31960 Let user specify NetBSD root device.
31961
31962 * loader/i386/bsd.c (netbsd_root): New variable.
31963 (netbsd_opts): New option 'root'.
31964 (NETBSD_ROOT_ARG): New macro.
31965 (grub_netbsd_boot): Use 'netbsd_root'.
31966 (grub_bsd_unload): Free 'netbsd_root'.
31967 (grub_cmd_netbsd): Fill 'netbsd_root'.
31968
adb29902 319692009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31970
31971 Support for 64-bit NetBSD.
31972
31973 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
31974 point when booting non-FreeBSD.
31975
f5ae9f74 319762009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31977
31978 Support --no-smp and --no-acpi for NetBSD.
31979
31980 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
31981 (NETBSD_AB_NOACPI): Likewise.
31982 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
31983 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
31984
de74f136 319852009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
31986
31987 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
31988 errors.
31989 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
31990 errors. Call grub_error when needed.
31991
e9a925da 319922009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
31993
31994 * commands/search.c (search_fs): Try searching without autoload first.
31995 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
31996 filesystem module explicitly for faster booting.
31997
5174302b 319982009-08-23 Colin Watson <cjwatson@ubuntu.com>
31999
32000 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
32001
c8c80635 320022009-08-23 Colin Watson <cjwatson@ubuntu.com>
32003
32004 * util/grub.d/30_os-prober.in: Disable os-prober if
32005 `GRUB_DISABLE_OS_PROBER' was set to true.
32006
71acf5e5 320072009-08-23 Robert Millan <rmh.grub@aybabtu.com>
32008
32009 * partmap/pc.c: Rename to ...
32010 * partmap/msdos.c: ... this. Update all users.
32011 (grub_pc_partition_map): Rename to ...
32012 (grub_msdos_partition_map): ... this. Update all users.
32013
32014 * parttool/pcpart.c: Rename to ...
32015 * parttool/msdospart.c: ... this. Update all users.
32016
32017 * include/grub/pc_partition.h: Rename to ...
32018 * include/grub/msdos_partition.h: ... this. Update all users.
32019 (grub_pc_partition_bsd_entry): Rename to ...
32020 (grub_msdos_partition_bsd_entry): ... this. Update all users.
32021 (grub_pc_partition_disk_label): Rename to ...
32022 (grub_msdos_partition_disk_label): ... this. Update all users.
32023 (grub_pc_partition_entry): Rename to ...
32024 (grub_msdos_partition_entry): ... this. Update all users.
32025 (grub_pc_partition_mbr): Rename to ...
32026 (grub_msdos_partition_mbr): ... this. Update all users.
32027 (grub_pc_partition): Rename to ...
32028 (grub_msdos_partition): ... this. Update all users.
32029 (grub_pc_partition_is_empty): Rename to ...
32030 (grub_msdos_partition_is_empty): ... this. Update all users.
32031 (grub_pc_partition_is_extended): Rename to ...
32032 (grub_msdos_partition_is_extended): ... this. Update all users.
32033 (grub_pc_partition_is_bsd): Rename to ...
32034 (grub_msdos_partition_is_bsd): ... this. Update all users.
32035
32036 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
32037 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
32038 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
32039 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
32040 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
32041 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
32042 (gpt_mod_LDFLAGS): Rename to ...
32043 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
32044 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
32045 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
32046 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
32047 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
32048 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
32049 (part_gpt_mod_LDFLAGS): ... this.
32050 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
32051 `pcpart.mod' to `msdospart.mod'.
32052 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
32053 to ...
32054 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
32055 (msdospart_mod_LDFLAGS): ... this.
32056
c11fded5 320572009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32058
32059 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
32060 (openbsd_opts): Likewise.
32061 (netbsd_opts): Likewise.
32062 (freebsd_flags): Added 0 terminator.
32063 (openbsd_flags): Likewise.
32064 (netbsd_flags): Likewise.
32065 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
32066 (grub_cmd_freebsd): Transformed into extended command.
32067 (grub_cmd_openbsd): Likewise.
32068 (grub_cmd_netbsd): Likewise.
32069 (cmd_freebsd): Changed type to grub_extcmd_t.
32070 (cmd_openbsd): Likewise.
32071 (cmd_netbsd): Likewise.
32072 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
32073 grub_cmd_openbsd as extended commands.
32074 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
32075 cmd_netbsd and cmd_openbsd
32076
11d1c769 320772009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
32078
32079 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
32080
7a9094e5 320812009-08-21 Pavel Roskin <proski@gnu.org>
32082
5496c37e 32083 * Makefile.in (install-local): When checking if a file is in the
32084 build directory, use "test -e" to detect symlinks.
32085
7a9094e5 32086 * Makefile.in (install-local): Remove all files in
32087 $(DESTDIR)$(pkglibdir) before installing new files there.
32088
e53cea11 320892009-08-18 Felix Zielcke <fzielcke@z-51.de>
32090
32091 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
32092 grub-mkelfimage.
32093
9aced544 320942009-08-18 Felix Zielcke <fzielcke@z-51.de>
32095
32096 * util/grub-mkconfig.in: Don't use gfxterm by default if not
32097 explicitly specified by the user.
32098
b7da6bab 320992009-08-18 Pavel Roskin <proski@gnu.org>
32100
32101 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
32102 grub_uint8_t pointer for data.
32103 * include/grub/fbutil.h (struct grub_video_fbblit_info):
32104 Likewise.
32105 * video/fb/fbutil.c: Remove unnecessary casts.
32106
19f1b335 321072009-08-17 Michal Suchanek <hramrach@centrum.cz>
32108
32109 VBE cleanup.
32110
32111 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
32112 (grub_vbe_set_video_mode): Save active mode info
32113 only after setting the mode.
32114 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
32115 second argument.
32116
2f467aa9 321172009-08-17 Michal Suchanek <hramrach@centrum.cz>
32118
32119 Rename variables for clarity.
32120
32121 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
32122 (active_vbe_mode_info): ... this. All users updated.
32123 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
32124 All users updated.
32125 (initial_mode): Rename to ...
32126 (initial_vbe_mode): ... this. All users updated.
32127 (mode_in_use): Rename to ..
32128 (vbe_mode_in_use): ... this. All users updated.
32129 (mode_list): Rename to ..
32130 (vbe_mode_list): ... this. All users updated.
32131 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
32132 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
32133 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
32134 'mode_list_size' to 'vbe_mode_list_size'.
32135 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
32136 'best_mode_info' to 'best_vbe_mode_info' and
32137 'best_mode' to 'best_vbe_mode'
32138
6025fcd7 321392009-08-17 Michal Suchanek <hramrach@centrum.cz>
32140
32141 Remove duplicate grub_video_fb_get_video_ptr.
32142
32143 * include/grub/fbutil.h (get_data_ptr): Rename to ...
32144 (grub_video_fb_get_video_ptr): ... this.
32145 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
32146 * video/fb/fbutil.c: Add comment about addressing.
32147 (get_data_ptr): Rename to ...
32148 (grub_video_fb_get_video_ptr): ... this. All users updated.
32149 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
32150
cc8c6faf 321512009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32152
32153 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
32154 grub_dprintf() that was just added.
32155
08aa61f0 321562009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32157
32158 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
32159 (DEFAULT_VIDEO_MODE): Remove macros.
32160 (grub_linux_boot): Remove assumption that Linux has FB support,
32161 and use "text" as default video mode.
32162
7cef4f75 321632009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
32164
32165 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
32166 grub_dprintf.
32167 * fs/fat.c (grub_fat_read_data): Likewise.
32168
e1f39873 321692009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32170
32171 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
32172 payload.
32173 (grub_module): Likewise.
32174
c166d79e 321752009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32176
32177 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
32178 mbi->cmdline but free playground.
32179
c60cee8e 321802009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32181
32182 Handle group offset on UFS1.
32183
32184 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
32185 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
32186
c0d8b5d4 321872009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32188
32189 Split ufs.mod into ufs1.mod and ufs2.mod.
32190
32191 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
32192 (grub_fstest_SOURCES): Likewise.
32193 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
32194 (ufs_mod_SOURCES): Remove.
32195 (ufs_mod_CFLAGS): Likewise.
32196 (ufs_mod_LDFLAGS): Likewise.
32197 (ufs1_mod_SOURCES): New variable.
32198 (ufs1_mod_CFLAGS): Likewise.
32199 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 32200 (ufs2_mod_SOURCES): New variable.
32201 (ufs2_mod_CFLAGS): Likewise.
32202 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 32203 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
32204 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32205 Likewise.
32206 (grub_emu_SOURCES): Likewise.
32207 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32208 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32209 (grub_setup_SOURCES): Likewise.
32210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32211 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
32212 (grub_setup_SOURCES): Likewise.
32213 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32214 Likewise.
32215 * fs/ufs2.c: New file.
32216 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
32217
d3539132 322182009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32219
32220 Framebuffer split.
32221
32222 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
32223 subsystem at the end.
32224 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
32225 (video_fb_mod_SOURCES): New variable.
32226 (video_fb_mod_CFLAGS): Likewise.
32227 (video_fb_mod_LDFLAGS): Likewise.
32228 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
32229 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
32230 * video/i386/pc/vbeblit.c: Moved from here ...
32231 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
32232 * video/i386/pc/vbefill.c: Moved from here ...
32233 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
32234 * video/i386/pc/vbeutil.c: Moved from here ...
32235 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
32236 * include/grub/i386/pc/vbeblit.h: Moved from here ...
32237 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
32238 * include/grub/i386/pc/vbefill.h: Moved from here ...
32239 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
32240 * include/grub/i386/pc/vbeutil.h: Moved from here ...
32241 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
32242 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
32243 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
32244 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
32245 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
32246 (grub_video_adapter): Added 'get_info_and_fini'.
32247 (grub_video_get_info_and_fini): New prototype.
32248 (grub_video_set_mode): make modestring const char *.
32249 * loader/i386/linux.c (grub_linux_setup_video): Use
32250 grub_video_get_info_and_fini.
32251 (grub_linux_boot): Move modesetting just before booting.
32252 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
32253 grub_video_get_info_and_fini.
32254 * video/i386/pc/vbe.c: Moved framebuffer part ...
32255 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
32256 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
32257 grub_video_fbstd_colors and grub_video_fb_set_palette.
32258 (grub_video_vbe_init): Clear 'framebuffer' variable and use
32259 grub_video_fb_init.
32260 (grub_video_vbe_fini): Use grub_video_fb_fini.
32261 (grub_video_vbe_setup): Use framebuffer.render_target instead of
32262 render_target and use grub_video_fb_set_active_render_target and
32263 grub_video_fb_set_palette.
32264 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
32265 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
32266 (grub_video_vbe_adapter): Use framebuffer.
32267 * video/video.c (grub_video_get_info_and_fini): New function.
32268 (grub_video_set_mode): Make modestring const char *.
32269 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
32270 values are already initialised.
32271
d404ee56 322722009-08-14 Pavel Roskin <proski@gnu.org>
32273
32274 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
32275 ABS and APPLE_CC.
32276 * boot/i386/pc/diskboot.S: Likewise.
32277 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
32278 sectors allow compilation on MacOSX.
32279 * conf/i386-pc.rmk: Enable unconditional compilation of
32280 lnxboot.img.
32281
9a10df16 322822009-08-13 Colin Watson <cjwatson@ubuntu.com>
32283
32284 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
32285 * util/grub.d/00_header.in: Enter interruptible sleep if
32286 GRUB_HIDDEN_TIMEOUT is set.
32287
be3c9ca7 322882009-08-13 Yves Blusseau <blusseau@zetam.org>
32289
32290 * include/grub/symbol.h: Add the LOCAL macro.
32291 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
32292 starting with "L_".
32293
1f9e557e 322942009-08-13 Pavel Roskin <proski@gnu.org>
32295
9ca62843 32296 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
32297 any modern compilers we support.
32298
1f9e557e 32299 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
32300 Use local labels starting with "L_" so that Apple assembler
32301 knows they are local.
32302
81623db6 323032009-08-10 Robert Millan <rmh.grub@aybabtu.com>
32304
32305 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
32306 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
32307 (bsd_kernel_types): ... this enum.
32308
32309 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
32310 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
32311 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
32312
32313 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
32314 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
32315 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
32316 messages.
32317
f5d35e7a 323182009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32319
32320 * util/grub-dumpdevtree: Moved from here ...
32321 * util/i386/efi/grub-dumpdevtree: ... to here.
32322 (hexify): New function. Converts a string to its hex version.
32323 Generate hex versions of "efi" and "device-properties" by calling
32324 hexify() on the ASCII strings rather than by hardcoding numbers.
32325
d1e1d527 323262009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32327
32328 * fs/jfs.c: Update copyright year.
32329
1ebbe064 323302009-08-08 Felix Zielcke <fzielcke@z-51.de>
32331
32332 * util/grub.d/00_header.in: Fix a comment.
32333 * util/grub.d/10_linux.in: Likewise.
32334 * util/grub.d/10_windows.in: Likewise.
32335 * util/grub.d/10_hurd.in: Likewise.
32336
a78c8d24 323372009-08-08 Felix Zielcke <fzielcke@z-51.de>
32338
32339 * util/grub-mkconfig.in: Allow the user to specify the used font
32340 with GRUB_FONT.
32341
29a6b9e8 323422009-08-08 Pavel Roskin <proski@gnu.org>
32343
b5f16cc4 32344 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
32345 available, xfs.mod needs it now.
32346
2f5cb827 32347 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
32348 the "g" modifier in sed when the intention is to strip something
32349 once. This fixes comparison of kernels with multiple dashes.
32350
29a6b9e8 32351 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
32352 on it. Add missing space before closing bracket. Fix
32353 misleading formatting.
32354
892a3d98 323552009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32356
32357 * docs/grub.texi: Major overhaul. Remove all sections that are
32358 specific to GRUB Legacy, or mostly composed of Legacy-specific
32359 information.
32360
ed94253f 323612009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32362
32363 * docs/version.texi: New file. Provides version information for
32364 grub.texi.
32365
126d6628 323662009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32367
32368 * docs/grub.texi: Update CVS information to SVN.
32369 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
32370
998b5aa9 323712009-08-07 Felix Zielcke <fzielcke@z-51.de>
32372
32373 * util/grub-mkconfig.in: Remove a wrong `fi'.
32374
818e094a 323752009-08-07 Felix Zielcke <fzielcke@z-51.de>
32376
32377 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
32378 (grub_jfs_uuid): New function.
32379 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
32380
b969c52f 323812009-08-07 Felix Zielcke <fzielcke@z-51.de>
32382
32383 * util/grub-mkconfig_lib.in (font_path): Move the functionality
32384 of it to ...
32385 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
32386 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
32387
7a4894cc 323882009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32389
32390 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
32391 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
32392 Update all users.
32393
32394 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
32395 not just "vmlinu[zx]".
32396 Moved from here ...
32397 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
32398 all users.
32399
32400 * util/grub.d/10_linux.in (find_latest): Moved from here ...
32401 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
32402 all users.
32403
4e2171f8 324042009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32405
32406 * util/grub.d/10_freebsd.in: Use an absolute device path for
32407 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
32408
6dcfcb32 324092009-08-06 Felix Zielcke <fzielcke@z-51.de>
32410
32411 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
32412 handling of multiple abstraction modules.
32413
f56a8756 324142009-08-04 Robert Millan <rmh.grub@aybabtu.com>
32415
32416 Fix a bug resulting in black screen when loading Linux using a
32417 packed video mode.
32418
32419 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
32420 function.
32421
32422 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
32423 (grub_vbe_bios_getset_dac_palette_width): New function.
32424 (grub_vbe_bios_get_dac_palette_width)
32425 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
32426 grub_vbe_bios_getset_dac_palette_width()).
32427
32428 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
32429 check for return status.
32430 (grub_vbe_get_video_mode_info): When getting information for a packed
32431 mode (<= 8 bpp), obtain DAC palette width using
32432 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
32433 {red,green,blue}_mark_size.
32434
222671b2 324352009-08-04 Felix Zielcke <fzielcke@z-51.de>
32436
ecb1a6d9 32437 * commands/search.c (options): Fix help output to match actual code.
222671b2 32438
f84114f5 324392009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
32440
32441 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
32442 of homegrown code.
32443
bd288a20 324442009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 32445
32446 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
32447 on XFS or ReiserFS.
32448
8aab5e25 324492009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
32450
32451 Support Apple partition map with sector size different from 512 bytes.
32452
32453 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
32454 (apple_partition_map_iterate): Respect 'aheader.blocksize'
32455 and 'apart.partmap_size'.
32456
6ad6258a 324572009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
324582009-08-01 Robert Millan <rmh.grub@aybabtu.com>
32459
32460 Fix cpuid command.
32461
32462 * commands/i386/cpuid.c (options): New variable.
32463 (grub_cmd_cpuid): Return real error.
32464 (GRUB_MOD_INIT(cpuid)): Declare options.
32465
67459bc6 324662009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
32467
32468 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
32469 valid.
32470
fbc6ab54 324712009-07-31 Bean <bean123ch@gmail.com>
32472
32473 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
32474 log2_inode.
32475 (grub_fshelp_node): Move inode field to the end.
32476 (grub_xfs_data): Remove inode field.
32477 (grub_xfs_inode_block): Calculate inode size using sblock.
32478 (grub_xfs_inode_offset): Likewise.
32479 (grub_xfs_read_inode): Calculate inode size using sblock.
32480 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
32481 (grub_xfs_iterate_dir): Calculate inode size using sblock.
32482 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
32483 to match inode size.
32484 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
32485 not accessible when data is null.
32486 (grub_xfs_open): Likewise.
32487
f45d6cfc 324882009-07-31 Bean <bean123ch@gmail.com>
32489
32490 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
32491 Don't change pv->disk if it's already set.
32492
32493 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
32494 (grub_raid_register): ... here.
32495 (grub_raid_rescan): Removed.
32496
32497 * include/grub/raid.h (grub_raid_rescan): Removed.
32498
32499 * util/grub-fstest.c: Remove include file <grub/raid.h>.
32500 (fstest): Replace grub_raid_rescan with module fini function followed
32501 by init function.
32502
32503 * util/grub-probe.c: Add include file <grub/raid.h>.
32504 (probe_raid_level): New function.
32505 (probe): Detect abstraction by walking the disk device, support two
32506 level of abstraction (LVM on RAID) when detecting partition map.
32507
24443b5a 325082009-07-31 Pavel Roskin <proski@gnu.org>
32509
32510 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
32511 to grub_zalloc(), it was erroneous.
32512 Reported by Bean <bean123ch@gmail.com>
32513
a275d9e7 325142009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
32515
32516 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 32517 embedding zone, not only the first one.
a275d9e7 32518
56c5a47f 325192009-07-29 Joe Auricchio <jauricchio@gmail.com>
32520
32521 * term/gfxterm.c (clear_char): New function.
32522 (grub_virtual_screen_setup): Use clear_char.
32523 (scroll_up): Likewise.
32524 (grub_virtual_screen_cls): Likewise.
32525
67bb323a 325262009-07-29 Felix Zielcke <fzielcke@z-51.de>
32527
32528 * util/deviceiter.c (get_acceleraid_disk_name): New static
32529 function.
32530 (grub_util_iterate_devices): Handle Accelraid devices.
32531 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
32532
388a7c75 325332009-07-28 Robert Millan <rmh.grub@aybabtu.com>
32534
32535 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
32536 separator for the suggested gfxpayload string (';' collides with the
32537 parser and needs escaping).
32538
3bb7abcf 325392009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
32540
32541 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
32542 Clear direction flag before jumping to OS.
32543 (grub_multiboot2_real_boot): Likewise.
32544
2ddd36d7 325452009-07-28 Felix Zielcke <fzielcke@z-51.de>
32546
32547 * util/i386/pc/grub-install: Fix parsing of --disk-module
32548 option.
32549
c521b62b 325502009-07-28 Felix Zielcke <fzielcke@z-51.de>
32551
32552 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
32553 when embedding.
32554
880e0a0c 325552009-07-26 Felix Zielcke <fzielcke@z-51.de>
32556
32557 * util/grub-mkconfig.in (package_version): New variable.
32558 Use it do display the version.
32559
2366e356 325602009-07-25 Felix Zielcke <fzielcke@z-51.de>
32561
32562 * kern/file.c (grub_file_open): Revert to previous check with
32563 grub_errno.
32564
7ad8c80e 325652009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
32566
32567 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
32568 from help line. It's out of sync with code.
32569
72b9658b 325702009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
32571
32572 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
32573 entries on failed boot.
32574
77435277 325752009-07-25 Felix Zielcke <fzielcke@z-51.de>
32576
32577 * kern/file.c (grub_file_open): Fix an error check.
32578
fcaa8b21 325792009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
32580
35d16c74 32581 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
32582 partition map couldn't be identified.
fcaa8b21 32583
48904cd1 325842009-07-23 Pavel Roskin <proski@gnu.org>
32585
ef3c317f 32586 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
32587 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
32588 case of little endian words becomes just an optimization.
32589 Respect const modifier.
ad8ea1f4 32590 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 32591
48904cd1 32592 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
32593 to avoid loss of upper bits if align is unsigned and shorter
32594 than addr.
32595
260c9a89 325962009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
32597
32598 UUID support for UFS
32599
32600 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
32601 (grub_ufs_uuid): New function.
32602 (grub_ufs_fs): add .uuid
32603
f76ce889 326042009-07-21 Pavel Roskin <proski@gnu.org>
32605
32606 * kern/dl.c (grub_dl_check_header): Make static.
32607
6a6cbcaf 326082009-07-21 Felix Zielcke <fzielcke@z-51.de>
32609
32610 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
32611 add drivemap for Vista. It breaks Windows 7.
32612
cffcddb2 326132009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
32614
32615 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
32616 128 bytes
32617
1ef44b80 326182009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32619
32620 Add BFS support
32621
32622 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
32623 (grub_fstest_SOURCES): Likewise.
32624 (pkglib_MODULES): Add befs.mod.
32625 (befs_mod_SOURCES): New variable.
32626 (befs_mod_CFLAGS): Likewise.
32627 (befs_mod_LDFLAGS): Likewise.
32628 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32629 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32630 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32631 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32632 (grub_setup_SOURCES): Likewise.
32633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32634 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32635 (grub_setup_SOURCES): Likewise.
32636 * fs/befs.c: New file.
32637 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
32638 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
32639 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
32640 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
32641 (B_KEY_INDEX_ALIGN): New declaration.
32642 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
32643 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
32644 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
32645 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
32646 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
32647 (grub_afs_mount) [MODE_BFS]: Likewise.
32648 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
32649 (grub_afs_fs): Use GRUB_AFS_FSNAME
32650 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
32651 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
32652 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
32653 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
32654
4f253044 326552009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
32656
32657 * util/getroot.c (find_root_device): Add support for MacOSX.
32658 * util/hostdisk.c: Likewise.
32659
57a55913 326602009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32661
32662 * font/font.c (find_glyph): Check whether a font is present to avoid
32663 segmentation fault.
75421ca9 32664
326652009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 32666
32667 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
32668
e98cd0c2 326692009-07-20 Pavel Roskin <proski@gnu.org>
32670
32671 * configure.ac: Trim excessively wordy excuses.
32672
1d2d169a 326732009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32674
32675 Add symlink, mtime and label support to AtheFS.
32676
32677 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
32678 (grub_afs_iterate_dir): Handle symlinks.
32679 (grub_afs_open): Use grub_afs_read_symlink.
32680 (grub_afs_dir): Likewise.
32681 Pass mtime.
32682 (grub_afs_label): New function.
32683 (grub_afs_fs): Add grub_afs_label.
32684 (grub_afs_read_symlink): New function.
32685
186f3189 326862009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32687
32688 Fix AtheFS support.
32689
32690 * fs/afs.c: Fix comments style.
32691 (grub_afs_blockrun): Declare as packed.
32692 (grub_afs_datastream): Likewise.
32693 (grub_afs_bnode): Likewise.
32694 (grub_afs_btree): Likewise.
32695 (grub_afs_sblock): Likewise.
32696 Declare `name' as char.
32697 (grub_afs_inode): Declare as packed.
32698 Change void *vnode to grub_uint32_t unused.
32699 (grub_afs_iterate_dir): Check that key_size is positive.
32700 (grub_afs_mount): Don't read superblock twice.
75421ca9 32701 (grub_afs_dir): Don't free node in case of error,
186f3189 32702 grub_fshelp_find_file already handles this.
32703 (grub_afs_open): Likewise.
32704
5680109e 327052009-07-19 Pavel Roskin <proski@gnu.org>
32706
32707 * Makefile.in: Remove LIBLZO and enable_lzo.
32708 * conf/i386-pc.rmk: Remove lzo support.
32709 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
32710 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
32711 support.
32712 * kern/i386/pc/lzo1x.S: Remove.
32713 * kern/i386/pc/startup.S: Remove lzo support.
32714 * util/i386/pc/grub-mkimage.c: Likewise.
32715
ac70fa32 327162009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
32717
32718 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
32719 * fs/xfs.c (grub_xfs_dir): Likewise.
32720 * fs/afs.c (grub_afs_dir): Likewise.
32721 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
32722 (grub_iso9660_open): Likewise.
32723 * fs/jfs.c (grub_jfs_open): Likewise.
32724 * fs/ext2.c (grub_ext2_dir): Likewise.
32725 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
32726 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 32727
eab58da2 327282009-07-16 Pavel Roskin <proski@gnu.org>
32729
d2838156 32730 * configure.ac: Never add "-c" to CFLAGS.
32731
55c70904 32732 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
32733
43e6200c 32734 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
32735 grub_cv_cc_efiemu should be used.
32736
ce7a733d 32737 * configure.ac: Typo fixes.
32738
eab58da2 32739 * kern/mm.c (grub_zalloc): New function.
32740 (grub_debug_zalloc): Likewise.
32741 * include/grub/mm.h: Declare grub_zalloc() and
32742 grub_debug_zalloc().
32743 * util/misc.c (grub_zalloc): New function.
32744 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
32745 instead of grub_malloc(), remove unneeded initializations.
32746 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
32747 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
32748 * commands/parttool.c (grub_cmd_parttool): Likewise.
32749 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
32750 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
32751 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
32752 * disk/usbms.c (grub_usbms_finddevs): Likewise.
32753 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
32754 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
32755 (grub_cmd_efiemu_pnvram): Likewise.
32756 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
32757 * fs/iso9660.c (grub_iso9660_mount): Likewise.
32758 (grub_iso9660_iterate_dir): Likewise.
32759 * fs/jfs.c (grub_jfs_opendir): Likewise.
32760 * fs/ntfs.c (list_file): Likewise.
32761 (grub_ntfs_mount): Likewise.
32762 * kern/disk.c (grub_disk_open): Likewise.
32763 * kern/dl.c (grub_dl_load_core): Likewise.
32764 * kern/elf.c (grub_elf_file): Likewise.
32765 * kern/env.c (grub_env_context_open): Likewise.
32766 (grub_env_set): Likewise.
32767 (grub_env_set_data_slot): Likewise.
32768 * kern/file.c (grub_file_open): Likewise.
32769 * kern/fs.c (grub_fs_blocklist_open): Likewise.
32770 * loader/i386/multiboot.c (grub_module): Likewise.
32771 * loader/xnu.c (grub_xnu_create_key): Likewise.
32772 (grub_xnu_create_value): Likewise.
32773 * normal/main.c (grub_normal_add_menu_entry): Likewise.
32774 (read_config_file): Likewise.
32775 * normal/menu_entry.c (make_screen): Likewise.
32776 * partmap/sun.c (sun_partition_map_iterate): Likewise.
32777 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
32778 * script/sh/script.c (grub_script_parse): Likewise.
32779 * video/bitmap.c (grub_video_bitmap_create): Likewise.
32780 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
32781 * video/readers/png.c (grub_png_output_byte): Likewise.
32782 (grub_video_reader_png): Likewise.
32783
830afef7 327842009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 32785
32786 Enable all targets that can be built by default
32787
830afef7 32788 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 32789 grub-mkfont and grub-fstest if they can be built
32790
ee293aee 327912009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32792
32793 Fix hang and segmentation fault in grub-emu-usb
32794
32795 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
32796 * util/usb.c (grub_libusb_devices): likewise
32797 (grub_libusb_init): rename to ...
32798 (GRUB_MOD_INIT (libusb)):...this
32799 (grub_libusb_fini): rename to ..
32800 (GRUB_MOD_FINI (libusb)):...this
32801 * disk/usbms.c (grub_usbms_transfer): fix retry logic
32802 * include/grub/disk.h (grub_raid_init): removed, it's useless
32803 (grub_raid_fini): likewise
32804 (grub_lvm_init): likewise
32805 (grub_lvm_fini): likewise
32806 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
32807 by grub_init_all
32808
94414221 328092009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32810
32811 Fix libusb
32812
32813 * Makefile.in (LIBUSB): new macro
32814 * genmk.rb (Utility/print_tail): new method
32815 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
32816 (top level): call util.print_tail at the end.
32817
59ade63d 328182009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32819
32820 Make FreeBSD accept zpool.cache
32821
32822 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
32823 type is /boot/zfs/zpool.cache
32824
a58da8c7 328252009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32826
32827 Fix 64-bit efiemu
32828
32829 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
32830 correct wrong typedef
32831 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
32832
20591577 328332009-07-15 Pavel Roskin <proski@gnu.org>
32834
560ca572 32835 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
32836 * kern/disk.c (struct grub_disk_cache): Likewise.
32837
e8e8e4fd 32838 * commands/probe.c (options): Typo fix.
32839
fde24e10 32840 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
32841 Increase to 0x5a to accommodate FAT32. Adjust other offsets
32842 accordingly.
32843 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
32844
379c54c1 32845 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
32846 the end of "Error" to make the message more readable.
32847
7bd8f5bf 32848 * boot/i386/pc/boot.S (kernel_segment): Remove.
32849 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
32850 for destination.
32851
40b132c5 32852 * boot/i386/pc/boot.S (boot_version): Remove.
32853 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
32854 Remove.
32855
20591577 32856 * include/grub/i386/pc/boot.h: Sort all offsets.
32857 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
32858 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
32859 * boot/i386/pc/boot.S: Assert location of every offset listed in
32860 include/grub/i386/pc/boot.h.
32861
2df32b2c 328622009-07-13 Pavel Roskin <proski@gnu.org>
32863
44b5d879 32864 * include/grub/i386/coreboot/machine.h: Rename
32865 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
32866 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
32867 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
32868
17dc3751 32869 * kern/dl.c: Force native word size to suppress warnings when
32870 compiling grub-emu.
32871
2df32b2c 32872 * kern/device.c (grub_device_iterate): Change struct part_ent to
32873 hold the name, not a pointer to it. Use one grub_malloc() per
32874 partition, not two. Free partition_name if grub_malloc() fails.
32875 Set ents to NULL only before grub_partition_iterate() is called.
32876
75c59f59 328772009-07-11 Bean <bean123ch@gmail.com>
32878
32879 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
32880 childname.
32881
0ae1bf88 328822009-07-10 Bean <bean123ch@gmail.com>
328832009-07-10 Robert Millan <rmh.grub@aybabtu.com>
32884
32885 * kern/ieee1275/openfw.c (grub_children_iterate)
32886 (grub_devalias_iterate): Fix size evaluation for property or path
32887 strings, which was broken since r2132.
32888
8279cade 328892009-07-07 Pavel Roskin <proski@gnu.org>
32890
7d8a52d3 32891 * commands/search.c (search_file): Merge into ...
32892 (search_fs): ... this. Accept search type as argument.
32893 (grub_cmd_search): Pass search type to search_fs().
32894
25f9a05a 32895 * include/grub/util/console.h: New file.
32896 * util/console.c: Use it instead of grub/machine/console.h.
32897 * util/grub-emu.c: Likewise.
32898
8279cade 32899 * lib/arg.c (find_long_option): Remove.
32900 (find_long): Add `len' argument, make `s' const char *.
32901 (grub_arg_parse): Parse long options in place, not in a
32902 temporary buffer.
32903
4a11b60f 329042009-07-06 Pavel Roskin <proski@gnu.org>
32905
99f68041 32906 * commands/search.c (search_fs): Fix potential NULL pointer
32907 dereference.
32908
4a11b60f 32909 * commands/search.c (search_fs): Replace QUID macro with quid_fn
32910 function pointer.
32911
e110f4de 329122009-07-06 Daniel Mierswa <impulze@impulze.org>
32913
32914 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
32915 comparison.
32916
46eeb6a2 329172009-07-05 Pavel Roskin <proski@gnu.org>
32918
bab74958 32919 * include/grub/i386/linux.h (struct linux_kernel_params):
32920 Restore padding3, it's still needed.
32921
46eeb6a2 32922 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
32923 FreeBSD.
32924 * util/osdetect.lua: Likewise.
32925
b4a1dc79 329262009-07-05 Bean <bean123ch@gmail.com>
32927
32928 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
32929
32930 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
32931 (grub_lua_getenv): Likewise.
32932 (grub_lua_setenv): Likewise.
32933 (save_errno): New function.
32934 (push_result): Likewise.
32935 (grub_lua_enum_device): Likewise.
32936 (grub_lua_enum_file): Likewise.
32937 (grub_lua_file_open): Likewise.
32938 (grub_lua_file_close): Likewise.
32939 (grub_lua_file_seek): Likewise.
32940 (grub_lua_file_read): Likewise.
32941 (grub_lua_file_getline): Likewise.
32942 (grub_lua_file_getsize): Likewise.
32943 (grub_lua_file_getpos): Likewise.
32944 (grub_lua_file_eof): Likewise.
32945 (grub_lua_file_exist): Likewise.
32946 (grub_lua_add_menu): Likewise.
32947
32948 * script/lua/grub_lua.h (isupper): New inline function.
32949 (islower): Likewise.
32950 (ispunct): Likewise.
32951 (isxdigit): Likewise.
32952 (strcspn): Change to normal function.
32953 (strpbkr): New function declaration.
32954 (memchr): Likewise.
32955
32956 * script/lua/grub_main.c (scan_str): New function.
32957 (strcspn): Likewise.
32958 (strpbrk): Likewise.
32959 (memchr): Likewise.
32960
32961 * script/lua/linit.c (lualibs): Enable the string library.
32962
32963 * util/osdetect.lua: New file.
32964
2da92295 329652009-07-04 Robert Millan <rmh.grub@aybabtu.com>
32966
32967 * include/grub/i386/linux.h (struct linux_kernel_params): Add
32968 `capabilities' member.
32969
b2582ec9 329702009-07-02 Pavel Roskin <proski@gnu.org>
32971
32972 * genparttoollist.sh: Add missing newline at the end.
32973
32622956 329742009-07-01 Pavel Roskin <proski@gnu.org>
32975
87a7339e 32976 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
32977
d23af54e 32978 * util/hostdisk.c (open_device): Remove `const' from
32979 `sysctl_size', as sysctlbyname() can change it (in this case it
32980 doesn't actually happen).
32981
c94b18a9 32982 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
32983 using signed long int constants.
32984
c6cd3ef0 32985 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
32986 constant to avoid a warning on FreeBSD.
32987
0df63420 32988 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
32989 where it's needed.
32990
999577f1 32991 * Makefile.in: Install include/grub/machine symlink.
32992
6f41557f 32993 * Makefile.in: When installing symlinks, use "cp -fR", which
32994 works on FreeBSD and MacOSX.
32995 From Yves Blusseau <cl7m42e02@sneakemail.com>
32996
c8d22988 32997 * kern/dl.c (grub_dl_resolve_symbol): Make static.
32998 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
32999
1b96e952 33000 * util/misc.c: Move grub_reboot() and grub_halt() ...
33001 * util/grub-emu.c: ... here. Make main_env static.
33002 * include/grub/util/misc.h: Remove main_env.
33003
2ef0084d 33004 * kern/mm.c: Use correct format to print size_t.
33005
32622956 33006 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
33007 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
33008 * kern/powerpc/dl.c: Likewise.
33009 * kern/sparc64/dl.c: Likewise.
33010 * kern/x86_64/dl.c: Likewise.
33011
3f7f0cd0 330122009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33013
33014 Fix grub-emu build on sparc64-ieee1275.
33015
75421ca9 33016 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 33017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
33018
211d06b5 330192009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33020
33021 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
33022 (grub_reboot, grub_halt): New functions.
33023
33024 * util/i386/pc/misc.c: Delete. Update all users.
33025 * util/sparc64/ieee1275/misc.c: Likewise.
33026 * util/powerpc/ieee1275/misc.c: Likewise.
33027
aaf53e3c 330282009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33029
33030 * conf/i386.rmk (setjmp_mod_SOURCES)
33031 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
33032 * conf/common.rmk (setjmp_mod_SOURCES)
33033 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
33034 to use $(target_cpu).
33035 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
33036 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
33037 * conf/powerpc-ieee1275.rmk: Likewise.
33038 * conf/sparc64-ieee1275.rmk: Likewise.
33039
33040 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
33041 $(target_cpu) for kern/$(target_cpu)/dl.c.
33042 * conf/i386-efi.rmk: Likewise.
33043 * conf/i386-ieee1275.rmk: Likewise.
33044 * conf/x86_64-efi.rmk: Likewise.
33045 * conf/i386-coreboot.rmk: Likewise.
33046 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
33047 $(target_cpu) for kern/$(target_cpu)/dl.c and for
33048 kern/$(target_cpu)/cache.S.
33049 * conf/sparc64-ieee1275.rmk: Likewise.
33050
a337130b 330512009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33052
33053 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
33054 type to `grub_uint8_t', and adjust `padding9' accordingly.
33055
c6fe4d53 330562009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33057
b09db61d 33058 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
33059
c6fe4d53 33060 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
33061 assembly in final jump, using register constraints.
33062
b09db61d 33063 (grub_linux_boot): For text mode, initialize `have_vga' using
33064 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
33065
33066 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
33067 right before the final jump.
33068
33069 Set `video_mode' to 0x3.
33070
33071 Document initialization of `video_page', `video_mode' and
33072 `video_ega_bx'.
33073
28333ad0 330742009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33075
33076 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
33077 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 33078 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 33079
02164e1b 330802009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33081
33082 Fix build on Debian / sparc.
33083
33084 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
33085
18b6c557 330862009-06-28 Pavel Roskin <proski@gnu.org>
33087
85f2aab6 33088 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
33089 fix a warning.
33090
18b6c557 33091 * util/grub.d/10_linux.in: Match SUSE style initrd names.
33092
ad760f81 330932009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33094
33095 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
33096 `err'.
33097
87a4623b 330982009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33099
33100 Revert r2338.
33101
33102 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
33103 file can't be opened. grub_file_open() is already supposed to set
75421ca9 33104 grub_errno / grub_errmsg appropriately.
87a4623b 33105 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33106
8231fb77 331072009-06-27 Pavel Roskin <proski@gnu.org>
331082009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33109
33110 * include/grub/dl.h: Include grub/elf.h.
33111 (struct grub_dl): Add symtab field.
33112 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
33113 GRUB_MODULES_MACHINE_READONLY.
33114 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
33115 of the header for read-only modules.
33116 (grub_dl_unload): Free mod->symtab for read-only modules.
33117 * kern/i386/dl.c: Use mod->symtab.
33118 * kern/powerpc/dl.c: Likewise.
33119 * kern/sparc64/dl.c: Likewise.
33120 * kern/x86_64/dl.c: Likewise.
33121
33122 * conf/i386-qemu.rmk: New file.
33123 * kern/i386/qemu/startup.S: Likewise.
33124 * kern/i386/qemu/mmap.c: Likewise.
33125 * boot/i386/qemu/boot.S: Likewise.
33126 * include/grub/i386/qemu/time.h: Likewise.
33127 * include/grub/i386/qemu/serial.h: Likewise.
33128 * include/grub/i386/qemu/kernel.h: Likewise.
33129 * include/grub/i386/qemu/console.h: Likewise.
33130 * include/grub/i386/qemu/boot.h: Likewise.
33131 * include/grub/i386/qemu/init.h: Likewise.
33132 * include/grub/i386/qemu/machine.h: Likewise.
33133 * include/grub/i386/qemu/loader.h: Likewise.
33134 * include/grub/i386/qemu/memory.h: Likewise.
33135
33136 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
33137 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
33138 [qemu] (pkglib_IMAGES): Add `boot.img'.
33139 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
33140 [qemu] (boot_img_FORMAT): New variables.
33141 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
33142 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
33143 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
33144 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
33145 [qemu] (kernel_img_FORMAT): New variables.
33146
33147 * configure.ac: Recognise `i386-qemu'.
33148
33149 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
33150 (for no compression).
33151 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
33152 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
33153 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
33154 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
33155 ifdefs).
33156
97fe384e 331572009-06-27 Pavel Roskin <proski@gnu.org>
33158
33159 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
33160 read.
33161 * efiemu/prepare32.c: Likewise.
33162 * efiemu/prepare64.c: Likewise.
33163
c402ab17 331642009-06-26 Pavel Roskin <proski@gnu.org>
33165
33166 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
33167 * include/grub/elf.h: Define symbols without "32" or "64" based
33168 on GRUB_TARGET_WORDSIZE.
33169 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
33170 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
33171 ELF definitions.
33172 * efiemu/loadcore64.c: Likewise.
33173 * loader/i386/bsd32.c: Likewise.
33174 * loader/i386/bsd64.c: Likewise.
33175 * kern/dl.c: Remove own ELF definitions.
33176 * util/i386/efi/grub-mkimage.c: Likewise.
33177
9bbdfd4d 331782009-06-23 Robert Millan <rmh.grub@aybabtu.com>
33179
33180 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
33181 segment 0x0 unconditionally, because the reference generated by
33182 GAS is an absolute address.
33183
a42ce6e9 331842009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33185
33186 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
33187 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
33188
c952cf92 331892009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33190
33191 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
33192 indexes. Check for -f explicitly.
cc3752ad 33193 (search_file): Improve error message.
33194 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 33195
132a0a59 331962009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33197
33198 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
33199 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
33200
387a140c 332012009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33202
33203 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
33204 * conf/i386-ieee1275.rmk: Likewise.
33205 * conf/i386-coreboot.rmk: Likewise.
33206
33207 * kern/i386/pc/startup.S (grub_stop): Remove function.
33208 * kern/i386/ieee1275/startup.S: Likewise.
33209 * kern/i386/coreboot/startup.S: Likewise.
33210 * kern/i386/misc.S (grub_stop): New function.
33211
41da9665 332122009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33213
33214 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
33215 * kern/i386/realmode.S (real_to_prot): ... to here.
33216
bf337234 332172009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33218
33219 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
33220 with `kernel.img'.
33221 (kernel_elf_SOURCES): Rename to ...
33222 (kernel_img_SOURCES): ... this.
33223 (kernel_elf_HEADERS): Rename to ...
33224 (kernel_img_HEADERS): ... this. Update all users.
33225 (kernel_elf_ASFLAGS): Rename to ...
33226 (kernel_img_ASFLAGS): ... this.
33227 (kernel_elf_CFLAGS): Rename to ...
33228 (kernel_img_CFLAGS): ... this.
33229 (kernel_elf_LDFLAGS): Rename to ...
33230 (kernel_img_LDFLAGS): ... this.
33231 * conf/i386-coreboot.rmk: Likewise.
33232 * conf/powerpc-ieee1275.rmk: Likewise.
33233
33234 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
33235 with "kernel.img".
33236
f52196ff 332372009-06-21 Pavel Roskin <proski@gnu.org>
33238
c3cee413 33239 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
33240 to match nested functions.
33241 * loader/sparc64/ieee1275/linux.c: Likewise.
33242
f52196ff 33243 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
33244
58750afc 332452009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33246
33247 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
33248 all i386 platforms.
33249
15355c7d 332502009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33251
33252 Fix asm file handling on ELF, and remove workarounds.
33253
33254 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 33255 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 33256 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
33257 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
33258
3f3ec72b 332592009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
33260
33261 Load BSD ELF modules
33262
33263 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
33264 and loader/i386/bsd64.c
33265 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
33266 (FREEBSD_MODTYPE_ELF_MODULE): New definition
33267 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
33268 (grub_freebsd_load_elfmodule32): New declaration
33269 (grub_freebsd_load_elfmoduleobj64): Likewise
33270 (grub_freebsd_load_elf_meta32): Likewise
33271 (grub_freebsd_load_elf_meta64): Likewise
33272 (grub_freebsd_add_meta): Likewise
33273 (grub_freebsd_add_meta_module): Likewise
33274 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
33275 (grub_freebsd_add_meta_module): Likewise and move module-specific
33276 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
33277 (grub_cmd_freebsd): Add elf-kernel specific parts
33278 based on grub_freebsd_add_meta_module
33279 (grub_cmd_freebsd_module): Add type parsing moved from
33280 grub_freebsd_add_meta_module
33281 (grub_cmd_freebsd_module_elf): New function
33282 (cmd_freebsd_module_elf): New variable
33283 (GRUB_MOD_INIT): Register freebsd_module_elf
33284 * loader/i386/bsd32.c: New file
33285 * loader/i386/bsd64.c: Likewise
33286 * loader/i386/bsdXX.c: Likewise
33287 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
33288 (grub_elf64_load): Likewise
33289 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
33290 All users updated
33291 (grub_elf64_load_hook_t): Likewise
33292
0db15301 332932009-06-21 Colin Watson <cjwatson@ubuntu.com>
33294
33295 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
33296 variable.
33297 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
33298 don't write a menu entry for recovery mode.
33299
546796c1 333002009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33301
33302 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
33303 after it's no longer needed.
33304
cd7310d5 333052009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33306
33307 * include/grub/i386/loader.h (grub_linux_prot_size)
33308 (grub_linux_tmp_addr, grub_linux_real_addr)
33309 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
33310 GRUB_MACHINE_PCBIOS.
33311 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
33312 common grub_util_info() call to ...
33313 (generate_image): ... here.
33314 Fix use of uninitialized memory, comparison of signed with
33315 unsigned integers and memory leak.
33316 Remove bogus module address message.
33317
ab32d3b5 333182009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
33319
33320 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
33321 grub_raid_register
33322 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
33323
024ef597 333242009-06-19 Pavel Roskin <proski@gnu.org>
33325
33326 * configure.ac: Remove stray AC_MSG_CHECKING.
33327
3ac72b51 333282009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
33329
33330 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 33331
e14cd814 333322009-06-18 Pavel Roskin <proski@gnu.org>
33333
33334 * conf/common.rmk: Add fs_file.mod.
33335 * disk/fs_file.c: New file.
33336 * include/grub/disk.h (enum grub_disk_dev_id): Add
33337 GRUB_DISK_DEVICE_FILE_ID.
33338
26586d98 333392009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33340
33341 Fix build with Apple's toolchain. Part 2
33342
33343 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
33344 a fake start
33345
26de2bcd 333462009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33347
33348 Fix build with Apple's toolchain. Part 1
33349
33350 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
33351 for long calls
33352 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 33353 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 33354 Apple's toolchain
33355
09b3490b 333562009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33357
33358 Fix warnings
33359
33360 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
33361 (decomp_block): initialize ch
33362 use grub_memcpy instead of memcpy
33363
c22a006a 333642009-06-17 Pavel Roskin <proski@gnu.org>
33365
d3638678 33366 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
33367 version, use declarations needed to use vga_text as the startup
33368 console.
33369
c22a006a 33370 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
33371 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
33372 the kernel.
33373 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
33374 and grub_at_keyboard_fini(), it's done on module load and
33375 unload.
33376
05b129e0 333772009-06-17 Felix Zielcke <fzielcke@z-51.de>
33378
33379 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
33380 file can't be found.
33381 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33382
cf24ed9e 333832009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
33384
33385 Fix newline handling
33386
33387 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 33388 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 33389 (grub_script_yylex): don't segfault on unterminated script
33390 newline terminates command and variable
33391
74aa8e4b 333922009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
33393
33394 avoid double grub_adjust_range call. Bug reported by David Simner
33395
33396 * kern/disk.c (grub_disk_write): change to raw disk access before
33397 calling disk_read
33398
1bd265f3 333992009-06-17 Colin Watson <cjwatson@ubuntu.com>
33400
33401 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
33402 spaces, for the benefit of help2man.
33403 * util/i386/efi/grub-mkimage.c (usage): Likewise.
33404
a2d08c06 334052009-06-16 Pavel Roskin <proski@gnu.org>
33406
33407 * kern/i386/halt.c: Include grub/machine/init.h.
33408 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
33409
b97bcb19 334102009-06-16 Felix Zielcke <fzielcke@z-51.de>
33411
33412 * util/grub.d/30_os-prober.in: Use ${root} in the generated
33413 drivemap menuentry.
33414
0644f96c 334152009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
33416
33417 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
33418 `echo' command.
33419
3ef17a2e 334202009-06-16 Pavel Roskin <proski@gnu.org>
33421
33422 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
33423 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
33424 save %dx, we only need %dl and we never change it.
33425 * boot/i386/pc/cdboot.S: Don't set the root drive.
33426 * boot/i386/pc/pxeboot.S: Likewise.
33427 * include/grub/i386/pc/boot.h: Remove
33428 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
33429 GRUB_BOOT_MACHINE_DRIVE_CHECK.
33430 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
33431 * kern/i386/pc/init.c (make_install_device): Remove references
33432 to grub_root_drive.
33433 * kern/i386/pc/startup.S: Likewise.
33434 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
33435
693fe637 334362009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
33437
33438 xnu_uuid command
33439
33440 * commands/xnu_uuid.c: new file
33441 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
33442 (xnu_uuid_mod_SOURCES): new variable
33443 (xnu_uuid_mod_CFLAGS): likewise
33444 (xnu_uuid_mod_LDFLAGS): likewise
33445 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
33446 * conf/i386-ieee1275.rmk: likewise
33447 * conf/i386-pc.rmk: likewise
33448 * conf/powerpc-ieee1275.rmk: likewise
33449 * conf/sparc64-ieee1275.rmk: likewise
33450 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
33451
c9da87d0 334522009-06-16 Pavel Roskin <proski@gnu.org>
33453
33454 * configure.ac: Avoid '==' in test command, it's not portable.
33455
9c6f4596 334562009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
33457
33458 Probe command
33459
33460 * commands/probe.c: new file
33461 * conf/common.rmk (pkglib_MODULES): add probe.mod
33462 (probe_mod_SOURCES): new variable
33463 (probe_mod_CFLAGS): likewise
33464 (probe_mod_LDFLAGS): likewise
33465 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
33466 * conf/i386-ieee1275.rmk: likewise
33467 * conf/i386-pc.rmk: likewise
33468 * conf/powerpc-ieee1275.rmk: likewise
33469 * conf/sparc64-ieee1275.rmk: likewise
33470
70b7f9fd 334712009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
33472
33473 Fix handling of string like \"hello\" and "a
33474 b"
33475
33476 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
33477 (grub_script_yylex): fix parsing of quoting, escaping and newline
33478
71c79a6b 334792009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
33480
dd74360c 33481 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 33482 handling
dd74360c 33483
0644f96c 334842009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 33485
33486 * util/grub-mkconfig.in: Fix parsing of --output option.
33487
e40893c3 334882009-06-12 Pavel Roskin <proski@gnu.org>
33489
33490 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
33491 genmk.rb don't need to be generated or installed.
33492
3a1acfe2 334932009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
33494
33495 * commands/i386/pc/drivemap_int13h.S: add more comments
33496
3a4575d4 334972009-06-11 Pavel Roskin <proski@gnu.org>
33498
0658e928 33499 * Makefile.in (uninstall): Uninstall manuals.
33500
ca0388f0 33501 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
33502 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
33503 and update-grub_lib in two places.
33504 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
33505
e3b27c39 33506 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
33507 a compiler warning.
33508
3a4575d4 33509 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
33510 `entry_lo' to fix variable shadowing.
33511
af1f4f55 335122009-06-11 Christian Franke <franke@computer.org>
33513
33514 * kern/misc.c (__enable_execute_stack): Add missing return type
33515 to prevent gcc warning.
33516
5225e649 335172009-06-11 Felix Zielcke <fzielcke@z-51.de>
33518
33519 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
33520
7d83bd47 335212009-06-11 Pavel Roskin <proski@gnu.org>
33522
c1cb63ba 33523 * Makefile.in: Don't rely on any scripts being executable.
33524 Always use $(SHELL) to run shell scripts.
33525
7d83bd47 33526 * configure.ac: Always define ___main if using -nostdlib. This
33527 fixes tests on Cygwin.
33528
948f48e7 335292009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
33530
33531 UDF fix
33532
7d83bd47 33533 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 33534 is in bytes and not in blocks
7d83bd47 33535
8ada9bc1 335362009-06-11 Pavel Roskin <proski@gnu.org>
33537
33538 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
33539 warning.
33540
25ad2323 335412009-06-11 Felix Zielcke <fzielcke@z-51.de>
33542
33543 * util/grub.d/30_os-prober.in: Fix a comment. Source
33544 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
33545 to set the root device. Place drivemap command in the generated
33546 chain entry.
33547
e65acb0c 335482009-06-11 Pavel Roskin <proski@gnu.org>
33549
33550 * configure.ac: Remove host_m32. Issues with 64-bit utilities
33551 have long been resolved.
33552
f285fe2d 335532009-06-11 Colin Watson <cjwatson@ubuntu.com>
33554
bd47b0b5 33555 * util/grub.d/10_linux.in: Capitalise "Linux".
33556
f285fe2d 33557 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
33558
a0c62e4e 335592009-06-11 Pavel Roskin <proski@gnu.org>
33560
b6783cb2 33561 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
33562 fix a gcc warning and ensure that the function won't ever exit.
33563
dde032e8 33564 * kern/i386/ieee1275/init.c: Add missing prototype for
33565 grub_stop_floppy().
33566
22cd079d 33567 * loader/ieee1275/multiboot2.c [__i386__]: Include
33568 grub/cpu/multiboot.h.
33569
a0c62e4e 33570 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
33571 casts to short - they are not portable and cause warnings. Fix
33572 use of uninitialized values in input_buf. Use ARRAY_SIZE.
33573
63963d17 335742009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
33575
33576 Drivemap fixes
33577
33578 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
33579 new function
33580 (grub_get_root_biosnumber_saved): new variable
33581 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
33582 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 33583 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 33584 %dx after the call if necessary
33585 * conf/common.rmk (pkglib_MODULES): remove boot.mod
33586 (boot_mod_SOURCES): remove
33587 (boot_mod_CFLAGS): remove
33588 (boot_mod_LDFLAGS): remove
33589 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
33590 (boot_mod_SOURCES): new variable
33591 (boot_mod_CFLAGS): likewise
33592 (boot_mod_LDFLAGS): likewise
33593 * conf/i386-efi.rmk: likewise
33594 * conf/i386-ieee1275.rmk: likewise
33595 * conf/i386-pc.rmk: likewise
33596 * conf/powerpc-ieee1275.rmk: likewise
33597 * conf/sparc64-ieee1275.rmk: likewise
33598 * conf/x86_64-efi.rmk: likewise
33599 * include/grub/i386/pc/biosnum.h: new file
33600 * lib/i386/pc/biosnum.c: likewise
33601 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
33602 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
33603 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 33604
33abf7ae 336052009-06-10 Pavel Roskin <proski@gnu.org>
33606
5ac35b35 33607 * io/gzio.c (test_header): Don't reuse one buffer for all data.
33608 Use separate variables. Read only the file size at the end, but
33609 not the checksum that we don't use.
33610
5c5215d5 33611 * kern/file.c (grub_file_read): Use void pointer for the buffer.
33612 Adjust all callers.
33613
27d5fef7 33614 * kern/ieee1275/openfw.c: Remove libc includes.
33615 * kern/ieee1275/cmain.c: Likewise.
33616 * include/grub/ieee1275/ieee1275.h: Likewise.
33617
33abf7ae 33618 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
33619 compiler warnings.
33620
19d50c2b 336212009-06-10 Felix Zielcke <fzielcke@z-51.de>
33622
33623 * Makefile.in: Remove all trailing whitespace.
33624 * conf/i386-pc.rmk: Likewise.
33625 * conf/powerpc-ieee1275.rmk: Likewise.
33626 * conf/sparc64-ieee1275.rmk: Likewise.
33627 * docs/grub.texi: Likewise.
33628 * docs/texinfo.tex: Likewise.
33629 * disk/fs_uuid.c: Likewise.
33630 * disk/lvm.c: Likewise.
33631 * disk/scsi.c: Likewise.
33632 * disk/ata.c: Likewise.
33633 * disk/ieee1275/ofdisk.c: Likewise.
33634 * disk/i386/pc/biosdisk.c: Likewise.
33635 * disk/host.c: Likewise.
33636 * disk/raid.c: Likewise.
33637 * disk/efi/efidisk.c: Likewise.
33638 * disk/usbms.c: Likewise.
33639 * disk/memdisk.c: Likewise.
33640 * disk/loopback.c: Likewise.
33641 * kern/powerpc/dl.c: Likewise.
33642 * kern/device.c: Likewise.
33643 * kern/dl.c: Likewise.
33644 * kern/sparc64/dl.c: Likewise.
33645 * kern/ieee1275/ieee1275.c: Likewise.
33646 * kern/term.c: Likewise.
33647 * kern/fs.c: Likewise.
33648 * kern/i386/dl.c: Likewise.
33649 * kern/i386/pc/startup.S: Likewise.
33650 * kern/i386/pc/init.c: Likewise.
33651 * kern/i386/pc/mmap.c: Likewise.
33652 * kern/i386/pc/lzo1x.S: Likewise.
33653 * kern/i386/ieee1275/init.c: Likewise.
33654 * kern/i386/realmode.S: Likewise.
33655 * kern/i386/tsc.c: Likewise.
33656 * kern/partition.c: Likewise.
33657 * kern/corecmd.c: Likewise.
33658 * kern/file.c: Likewise.
33659 * kern/efi/efi.c: Likewise.
33660 * kern/efi/init.c: Likewise.
33661 * kern/efi/mm.c: Likewise.
33662 * kern/main.c: Likewise.
33663 * kern/err.c: Likewise.
33664 * kern/env.c: Likewise.
33665 * kern/disk.c: Likewise.
33666 * kern/generic/millisleep.c: Likewise.
33667 * kern/generic/rtc_get_time_ms.c: Likewise.
33668 * kern/misc.c: Likewise.
33669 * kern/parser.c: Likewise.
33670 * genmk.rb: Likewise.
33671 * configure.ac: Likewise.
33672 * boot/i386/pc/diskboot.S: Likewise.
33673 * boot/i386/pc/pxeboot.S: Likewise.
33674 * boot/i386/pc/boot.S: Likewise.
33675 * boot/i386/pc/lnxboot.S: Likewise.
33676 * boot/i386/pc/cdboot.S: Likewise.
33677 * parttool/pcpart.c: Likewise.
33678 * video/readers/tga.c: Likewise.
33679 * video/video.c: Likewise.
33680 * video/bitmap.c: Likewise.
33681 * lib/envblk.c: Likewise.
33682 * lib/i386/setjmp.S: Likewise.
33683 * fs/xfs.c: Likewise.
33684 * fs/afs.c: Likewise.
33685 * fs/fat.c: Likewise.
33686 * fs/ntfs.c: Likewise.
33687 * fs/udf.c: Likewise.
33688 * fs/affs.c: Likewise.
33689 * fs/iso9660.c: Likewise.
33690 * fs/hfs.c: Likewise.
33691 * fs/fshelp.c: Likewise.
33692 * fs/ext2.c: Likewise.
33693 * fs/jfs.c: Likewise.
33694 * fs/reiserfs.c: Likewise.
33695 * fs/hfsplus.c: Likewise.
33696 * fs/minix.c: Likewise.
33697 * fs/cpio.c: Likewise.
33698 * fs/sfs.c: Likewise.
33699 * fs/ufs.c: Likewise.
33700 * efiemu/prepare.c: Likewise.
33701 * efiemu/loadcore_common.c: Likewise.
33702 * efiemu/runtime/efiemu.sh: Likewise.
33703 * efiemu/runtime/efiemu.S: Likewise.
33704 * efiemu/runtime/efiemu.c: Likewise.
33705 * efiemu/pnvram.c: Likewise.
33706 * efiemu/main.c: Likewise.
33707 * efiemu/i386/pc/cfgtables.c: Likewise.
33708 * efiemu/i386/loadcore64.c: Likewise.
33709 * efiemu/i386/loadcore32.c: Likewise.
33710 * efiemu/loadcore.c: Likewise.
33711 * efiemu/symbols.c: Likewise.
33712 * efiemu/mm.c: Likewise.
33713 * include/grub/autoefi.h: Likewise.
33714 * include/grub/datetime.h: Likewise.
33715 * include/grub/term.h: Likewise.
33716 * include/grub/hfs.h: Likewise.
33717 * include/grub/lvm.h: Likewise.
33718 * include/grub/i386/tsc.h: Likewise.
33719 * include/grub/i386/linux.h: Likewise.
33720 * include/grub/i386/xnu.h: Likewise.
33721 * include/grub/i386/efiemu.h: Likewise.
33722 * include/grub/i386/pc/biosdisk.h: Likewise.
33723 * include/grub/i386/pc/memory.h: Likewise.
33724 * include/grub/i386/pc/vbe.h: Likewise.
33725 * include/grub/parttool.h: Likewise.
33726 * include/grub/video.h: Likewise.
33727 * include/grub/memory.h: Likewise.
33728 * include/grub/fs.h: Likewise.
33729 * include/grub/partition.h: Likewise.
33730 * include/grub/xnu.h: Likewise.
33731 * include/grub/efi/api.h: Likewise.
33732 * include/grub/efi/pe32.h: Likewise.
33733 * include/grub/efi/memory.h: Likewise.
33734 * include/grub/multiboot.h: Likewise.
33735 * include/grub/usbdesc.h: Likewise.
33736 * include/grub/multiboot2.h: Likewise.
33737 * include/grub/acpi.h: Likewise.
33738 * include/grub/efiemu/efiemu.h: Likewise.
33739 * include/grub/disk.h: Likewise.
33740 * include/grub/ieee1275/ieee1275.h: Likewise.
33741 * include/grub/net.h: Likewise.
33742 * include/grub/machoload.h: Likewise.
33743 * include/grub/macho.h: Likewise.
33744 * include/multiboot.h: Likewise.
33745 * genmoddep.awk: Likewise.
33746 * normal/main.c: Likewise.
33747 * normal/menu_entry.c: Likewise.
33748 * normal/menu_viewer.c: Likewise.
33749 * normal/completion.c: Likewise.
33750 * normal/cmdline.c: Likewise.
33751 * normal/misc.c: Likewise.
33752 * normal/datetime.c: Likewise.
33753 * bus/usb/usbtrans.c: Likewise.
33754 * bus/usb/ohci.c: Likewise.
33755 * bus/usb/uhci.c: Likewise.
33756 * bus/usb/usb.c: Likewise.
33757 * mmap/efi/mmap.c: Likewise.
33758 * mmap/i386/pc/mmap_helper.S: Likewise.
33759 * mmap/i386/pc/mmap.c: Likewise.
33760 * mmap/i386/mmap.c: Likewise.
33761 * mmap/i386/uppermem.c: Likewise.
33762 * mmap/mmap.c: Likewise.
33763 * commands/acpi.c: Likewise.
33764 * commands/echo.c: Likewise.
33765 * commands/blocklist.c: Likewise.
33766 * commands/loadenv.c: Likewise.
33767 * commands/usbtest.c: Likewise.
33768 * commands/boot.c: Likewise.
33769 * commands/parttool.c: Likewise.
33770 * commands/search.c: Likewise.
33771 * commands/cat.c: Likewise.
33772 * commands/i386/pc/play.c: Likewise.
33773 * commands/i386/pc/drivemap.c: Likewise.
33774 * commands/i386/pc/vbeinfo.c: Likewise.
33775 * commands/i386/pc/acpi.c: Likewise.
33776 * commands/i386/pc/vbetest.c: Likewise.
33777 * commands/ls.c: Likewise.
33778 * commands/cmp.c: Likewise.
33779 * commands/test.c: Likewise.
33780 * commands/efi/acpi.c: Likewise.
33781 * commands/gptsync.c: Likewise.
33782 * commands/help.c: Likewise.
33783 * partmap/amiga.c: Likewise.
33784 * partmap/apple.c: Likewise.
33785 * partmap/acorn.c: Likewise.
33786 * partmap/pc.c: Likewise.
33787 * partmap/sun.c: Likewise.
33788 * partmap/gpt.c: Likewise.
33789 * script/sh/lexer.c: Likewise.
33790 * script/sh/function.c: Likewise.
33791 * font/font.c: Likewise.
33792 * font/font_cmd.c: Likewise.
33793 * loader/powerpc/ieee1275/linux.c: Likewise.
33794 * loader/efi/chainloader.c: Likewise.
33795 * loader/multiboot_loader.c: Likewise.
33796 * loader/macho.c: Likewise.
33797 * loader/i386/multiboot.c: Likewise.
33798 * loader/i386/linux.c: Likewise.
33799 * loader/i386/pc/linux.c: Likewise.
33800 * loader/i386/pc/multiboot2.c: Likewise.
33801 * loader/i386/pc/chainloader.c: Likewise.
33802 * loader/i386/pc/xnu.c: Likewise.
33803 * loader/i386/bsd_trampoline.S: Likewise.
33804 * loader/i386/efi/linux.c: Likewise.
33805 * loader/i386/multiboot_elfxx.c: Likewise.
33806 * loader/i386/bsd_helper.S: Likewise.
33807 * loader/i386/bsd.c: Likewise.
33808 * loader/i386/linux_trampoline.S: Likewise.
33809 * loader/i386/xnu_helper.S: Likewise.
33810 * loader/i386/xnu.c: Likewise.
33811 * loader/i386/bsd_pagetable.c: Likewise.
33812 * loader/i386/multiboot_helper.S: Likewise.
33813 * loader/xnu.c: Likewise.
33814 * loader/xnu_resume.c: Likewise.
33815 * io/gzio.c: Likewise.
33816 * term/efi/console.c: Likewise.
33817 * term/terminfo.c: Likewise.
33818 * term/ieee1275/ofconsole.c: Likewise.
33819 * term/i386/pc/serial.c: Likewise.
33820 * term/i386/pc/vesafb.c: Likewise.
33821 * term/i386/pc/vga.c: Likewise.
33822 * term/usb_keyboard.c: Likewise.
33823 * term/gfxterm.c: Likewise.
33824 * aclocal.m4: Likewise.
33825 * util/lvm.c: Likewise.
33826 * util/grub.d/30_os-prober.in: Likewise.
33827 * util/grub.d/10_hurd.in: Likewise.
33828 * util/console.c: Likewise.
33829 * util/grub-macho2img.c: Likewise.
33830 * util/grub-probe.c: Likewise.
33831 * util/hostfs.c: Likewise.
33832 * util/i386/pc/grub-mkimage.c: Likewise.
33833 * util/i386/pc/grub-setup.c: Likewise.
33834 * util/i386/efi/grub-mkimage.c: Likewise.
33835 * util/grub-mkconfig.in: Likewise.
33836 * util/raid.c: Likewise.
33837 * util/resolve.c: Likewise.
33838 * util/grub-mkdevicemap.c: Likewise.
33839 * util/grub-emu.c: Likewise.
33840 * util/getroot.c: Likewise.
33841 * util/hostdisk.c: Likewise.
33842 * util/usb.c: Likewise.
33843 * util/grub-editenv.c: Likewise.
33844 * util/misc.c: Likewise.
33845
d2d49665 338462009-06-10 Felix Zielcke <fzielcke@z-51.de>
33847
33848 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
33849 `genparttoollist.sh'.
33850 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
33851 Add `*.sh' to the list find searches for and change `mdate.sh'
33852 to `mdate-sh'.
33853
fe052e37 338542009-06-10 Pavel Roskin <proski@gnu.org>
33855
2763ac18 33856 * include/grub/multiboot2.h: Provide compatibility defines for
33857 multiboot2.h.
33858 * include/multiboot2.h: Include stdint.h only if needed, using
33859 angle brackets.
33860 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
33861 grub/multiboot2.h.
33862 * loader/ieee1275/multiboot2.c: Likewise.
33863 * loader/multiboot2.c: Likewise.
33864 * loader/multiboot_loader.c: Likewise.
33865
437e6adc 33866 * configure.ac: Use -nostdlib when probing for the target. It
33867 should not be required to have libc for the target.
33868
06a6836c 33869 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
33870 they fail without libc headers for the target.
33871 * include/grub/powerpc/libgcc.h: Use weak attribute for all
33872 exports.
33873 * include/grub/sparc64/libgcc.h: Likewise. Don't use
33874 preprocessor conditionals.
33875
fe052e37 33876 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
33877 build system doesn't need to be aware of the tar.c internals.
33878
afd22553 338792009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 33880
afd22553 33881 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 33882
6b787c4f 338832009-06-09 Robert Millan <rmh.grub@aybabtu.com>
33884
33885 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
33886 disk limit to 26 for IDE, Virtio, Xen and SCSI.
33887
338882009-06-09 Felix Zielcke <fzielcke@z-51.de>
33889
33890 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 33891 aren't available if ata.mod gets used.
6b787c4f 33892
473d1e45 338932009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 33894
473d1e45 33895 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 33896 initialising controller.
473d1e45 33897 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 33898
255a27d4 338992009-06-08 Felix Zielcke <fzielcke@z-51.de>
33900
33901 * util/i386/pc/grub-install.in: Add a parameter --disk-module
33902 to choose between ata and biosdisk module on i386-pc.
33903
473d1e45 339042009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 33905
d55842d8 33906 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
33907 Subclass and Programming Interface fields in terms of the 3 byte
33908 Class Code register.
33909 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
33910
fa5db0b1 33911 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
33912 interface is OHCI. Add grub_dprintf for symmetry with
33913 bus/usb/uhci.c.
33914 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
33915 interface is UHCI. Add interf variable for programming
33916 interface. Print interface with class/subclass.
33917
c0947beb 33918 * bus/usb/ohci.c: Set interf with correct field.
33919
69da8877 33920 * bus/usb/uhci.c: Remove unneeded doubled lines.
33921 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
33922 Remove whitespace inside comment.
33923
9e172e30 339242009-06-08 Robert Millan <rmh.grub@aybabtu.com>
33925
33926 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
33927 as fallback an equivalent option without depth.
33928
de65ee2b 339292009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
33930
33931 Not fail if unable to retrieve C/H/S on LBA disks
33932
473d1e45 33933 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 33934 if unable to retrieve C/H/S on LBA disks
33935
b57ea2c9 339362009-06-08 Pavel Roskin <proski@gnu.org>
33937
33938 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
33939 about aliasing.
33940
af361263 339412009-06-08 Felix Zielcke <fzielcke@z-51.de>
33942
33943 * Makefile.in (uninstall): Remove all $lib_DATA files.
33944
4c9ec6b3 339452009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
33946
33947 Bugfix: install on partitionless device
33948
33949 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
33950 is a whole disk
33951
e76fc924 339522009-06-08 Felix Zielcke <fzielcke@z-51.de>
33953
33954 * Makefile.in (uninstall): Remove all $include_DATA files.
33955
ba5a0d05 339562009-06-08 Felix Zielcke <fzielcke@z-51.de>
33957
33958 * commands/true.c: New file. Implement the true and false commands.
33959 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
33960 (true_mod_SOURCES): New variable.
33961 (true_mod_CFLAGS): Likewise.
33962 (true_mod_LDFLAGS): Likewise.
33963
c8048e32 339642009-06-05 Colin D Bennett <colin@gibibit.com>
33965
33966 Optimized font character lookup using binary search instead of linear
33967 search. Fonts now are required to have the character index ordered by
33968 code point.
33969
33970 * font/font.c (load_font_index): Verify that fonts have ordered
33971 character indices.
33972 (find_glyph): Use binary search instead of linear search to find a
33973 character in a font.
33974
408305be 339752009-06-05 Michael Scherer <misc@mandriva.org>
33976
33977 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
33978 uses case sensitive btree.
33979 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
33980 only for case insensitive filesystems.
33981
8ee1e0d9 339822009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
33983
33984 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
33985 * conf/common.rmk (search_mod_CFLAGS): likewise
33986
a9966eb1 339872009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33988
473d1e45 33989 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 33990 compensate a compiler bug
33991
9e7100fb 339922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33993
473d1e45 33994 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 33995 instead of '\b'
473d1e45 33996
ede21d71 339972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33998
33999 Definitions for creating asm symbols with Apple's CC
34000
34001 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
34002 [APPLE_CC] (VARIABLE): likewise
34003
9dbf7653 340042009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34005
34006 Disable lnxboot.img when compiled
34007 with Apple's CC
34008
34009 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
34010 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
34011 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
34012 [! APPLE_CC] (CODE_LENG): skip
34013 [! APPLE_CC] (setup_sects): likewise
34014 [! APPLE_CC]: skip filling
473d1e45 34015
e93cdc3d 340162009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34017
34018 Address in trampolines based on 32-bit registers when compiled
34019 with Apple's CC
34020
473d1e45 34021 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 34022 for addresses
34023 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
34024
6c688477 340252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34026
34027 Avoid aliases when compiling with Apple's CC for PCBIOS machine
34028
34029 * kern/misc.c [APPLE_CC] (memcpy): new function
34030 [APPLE_CC] (memmove): likewise
34031 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 34032 (memcpy): define alias conditionally on !APPLE_CC
6c688477 34033 (memset): likewise
34034 (abort): likewise
34035 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
34036 APPLE_CC are defined
34037 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
34038 (grub_assert_fail): make prototype conditional
34039
e37ffc5c 340402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34041
34042 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
34043
473d1e45 34044 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
34045 grub-macho2img
e37ffc5c 34046 (CLEANFILES): add grub-macho2img
34047 (grub_macho2img_SOURCES): new variable
34048 * kern/i386/pc/startup.S (bss_start): new variable
34049 (bss_end): likewise
34050 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
34051 * util/grub-macho2img.c: new file
34052
cf00df31 340532009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34054
34055 Use objconv when compiling with Apple's CC
34056
34057 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
34058 (efiemu64.o): likewise
34059 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
34060 when compiling with Apple's CC
34061 (efiemu64_s.o): likewise
34062 * configure.ac: check for objconv when compiling with Apple's CC
34063 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 34064
d119a20c 340652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34066
34067 Define segment as well as section when compiling with
34068 Apple's CC
34069
34070 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
34071 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
34072 (efiemu_convert_pointer): likewise
34073 (efiemu_set_virtual_address_map): likewise
34074 (efiemu_convert_pointer): likewise
34075 (efiemu_getcrc32): likewise
34076 (init_crc32_table): likewise
34077 (reflect): likewise
34078 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
34079 (GRUB_MOD_DEP): likewise
473d1e45 34080
c8600122 340812009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34082
34083 Allow a compilation without -mcmodel=large
34084
34085 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
34086 when compiled without -mcmodel=large
473d1e45 34087 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 34088 without -mcmodel=large
473d1e45 34089 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 34090 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 34091
e8df1d4e 340922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34093
34094 Remove nested functions in efiemu core
34095
34096 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 34097
cc6c3ac1 340982009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34099
34100 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
34101
34102 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
34103 temporary storage
473d1e45 34104 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
34105 using Apple's CC
cc6c3ac1 34106 (grub_cpu_is_tsc_supported): likewise
34107 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 34108
3e325901 341092009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34110
34111 Absolute addressing through constant with Apple's cc
34112
34113 * kern/i386/pc/startup.S: Define necessary constants
34114 and address through it when using ABS with Apple's CC
34115 * boot/i386/pc/diskboot.S: likewise
34116 * boot/i386/pc/boot.S: likewise
34117 * boot/i386/pc/lnxboot.S: likewise
34118 * boot/i386/pc/cdboot.S: likewise
34119 * mmap/i386/pc/mmap_helper.S: likewise
34120 * commands/i386/pc/drivemap_int13h.S: likewise
34121
2b167a72 341222009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34123
34124 Check if compiler is apple cc
34125
34126 * Makefile.in (ASFLAGS): new variable
34127 (TARGET_ASFLAGS): likewise
34128 (TARGET_MODULE_FORMAT): likewise
34129 (TARGET_APPLE_CC): likewise
34130 (OBJCONV): likewise
34131 (TARGET_IMG_CFLAGS): likewise
34132 (TARGET_CPPFLAGS): add includedir
34133 * configure.ac: call grub_apple_cc and grub_apple_target_cc
34134 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
34135 Check for linker script only if compiler isn't Apple's CC
34136 (TARGET_MODULE_FORMAT): set
34137 (TARGET_APPLE_CC): likewise
34138 (TARGET_ASFLAGS): likewise
34139 (ASFLAGS): likewise
34140 Check for objcopy only if compiler isn't Apple's CC
34141 Check for BSS symbol only if compiler isn't Apple's CC
34142 * genmk.rb: adapt nm options if we use Apple's utils
34143 * aclocal.m4 (grub_apple_cc): new test
34144 (grub_apple_target_cc): likewise
473d1e45 34145
fb14123e 341462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34147
34148 Simplify sed expressions and improve awk
34149
34150 * Makefile.in (install-local): simplify sed expression
34151 * gencmdlist.sh: likewise
34152 * genmoddep.awk: avoid adding module as a dependency of itself
34153
5b889789 341542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34155
34156 Add missing start symbols
34157
34158 * boot/i386/pc/boot.S: add start
fb14123e 34159 * boot/i386/pc/pxeboot.S: likewise
473d1e45 34160
fd2bf2e3 341612009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34162
34163 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 34164
34165 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 34166 (relocate_addresses): consider both r_addend and value at offset
34167 (make_mods_section): zerofill modinfo and header
34168 (convert_elf): write prefix here
473d1e45 34169
5389763d 341702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34171
34172 Use .asciz instead of .string
34173
34174 * i386/pc/diskboot.S: use .asciz instead of .string
34175 * i386/pc/boot.S: likewise
34176 * include/grub/dl.h (GRUB_MOD_DEP): likewise
34177 (GRUB_MOD_NAME): likewise
473d1e45 34178
3eb5ed4e 341792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34180
34181 gfxpayload support
34182
34183 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
34184 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
34185 (grub_video_setup): remove
34186 (grub_video_set_mode): new prototype
34187 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
34188 (vid_mode): remove
34189 (linux_vesafb_res): compile only on PCBIOS
34190 (grub_linux_boot): support gfxpayload
34191 * loader/i386/pc/xnu.c (video_hook): new function
34192 (grub_xnu_set_video): support gfxpayload
34193 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
34194 (DEFAULT_VIDEO_HEIGHT): likewise
34195 (DEFAULT_VIDEO_FLAGS): likewise
34196 (DEFAULT_VIDEO_MODE): new definition
34197 (video_hook): new function
34198 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 34199 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 34200 loading xnu
34201 * video/video.c (grub_video_setup): removed
473d1e45 34202 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 34203 grub_video_setup
34204
4b0e1143 342052009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34206
34207 Avoid calling biosdisk in drivemap
34208
34209 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
34210 (revparse_biosdisk): likewise
34211 (list_mappings): derive name from id directly
34212 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 34213
fda6cb98 342142009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34215
34216 Script fixes
34217
34218 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
34219 (grub_lexer_param): add tokenonhold
34220 (grub_script_create_cmdline): remove cmdline. All callers updated
34221 (grub_script_function_create): make functionname
34222 grub_script_arg. All callers updated
34223 (grub_script_execute_argument_to_string): new prototype
34224 * kern/parser.c (state_transitions): reorder
34225 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 34226 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 34227 make global
34228 (grub_script_execute_cmdline): use new format
34229 * script/sh/function.c (grub_script_function_create): make functionname
34230 grub_script_arg. All callers updated
473d1e45 34231 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 34232 (grub_script_yylex): remove
34233 (grub_script_yylex2): renamed to ...
34234 (grub_script_yylex): ...renamed
34235 parse the expressions like a${b}c
34236 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
34237 (GRUB_PARSER_TOKEN_VAR): remove
34238 (GRUB_PARSER_TOKEN_NAME): likewise
34239 ("if"): declare as typeless
34240 ("while"): likewise
34241 ("function"): likewise
34242 ("else"): likewise
34243 ("then"): likewise
34244 ("fi"): likewise
34245 (text): remove
34246 (argument): likewise
34247 (script): accept empty scripts and make exit on error
34248 (arguments): use GRUB_PARSER_TOKEN_ARG
34249 (function): likewise
34250 (command): move error handling to script
34251 (menuentry): move grub_script_lexer_ref before
473d1e45 34252 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 34253 argument. All callers updated
34254
f4448a07 342552009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34256
34257 Prevent GRUB from probing floppies during boot.
34258
34259 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
34260 * commands/search.c (options): Add --no-floppy.
34261 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
34262 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
34263 --no-floppy when searching for UUIDs.
34264
2bf5885a 342652009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34266
34267 Simplify the code duplication in commands/search.c.
34268
34269 * commands/search.c (search_label, search_fs_uuid): Merge into ...
34270 (search_fs): ... this. Update all users.
34271
f6fd460a 342722009-06-03 Felix Zielcke <fzielcke@z-51.de>
34273
34274 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
34275
cbb3c83e 342762009-05-28 Pavel Roskin <proski@gnu.org>
34277
57788cfd 34278 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
34279 Remove the original symlink explicitly.
34280
cbb3c83e 34281 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
34282 just one slash. That's how grub_fshelp_find_file() does it.
34283
cd0d5e30 342842009-05-26 Pavel Roskin <proski@gnu.org>
34285
f0f8bbe2 34286 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
34287 to `str'.
34288
cd0d5e30 34289 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
34290 possibly unused.
34291
8c2cab51 342922009-05-25 Christian Franke <franke@computer.org>
34293
34294 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
34295 register.
34296 (grub_atapi_identify): Add wait after drive select.
34297 (grub_ata_identify): Do more strict status register check before
34298 calling grub_atapi_identify (). Suppress error message if status
34299 register is 0x00 after command failure. Add status register
34300 check after PIO read to avoid bogus identify due to stuck DRQ.
34301 Thanks to Pavel Roskin for testing.
34302 (grub_device_initialize): Remove unsafe status register check.
34303 Thanks to 'phcoder' for problem report and patch.
34304 Prevent sign extension in debug message.
34305
230c0ad6 343062009-05-23 Colin D Bennett <colin@gibibit.com>
34307
34308 Cleaned up `include/grub/normal.h'. Grouped prototypes by
34309 definition file, and functions defined in `normal/menu.c' have had
34310 their prototypes moved to `include/grub/menu.h' for consistency.
34311
34312 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
34313 from normal.h.
34314 (grub_menu_get_entry): Likewise.
34315 (grub_menu_get_timeout): Likewise.
34316 (grub_menu_set_timeout): Likewise.
34317 (grub_menu_execute_entry): Likewise.
34318 (grub_menu_execute_with_fallback): Likewise.
34319 (grub_menu_entry_run): Likewise.
34320
34321 * include/grub/normal.h: Re-ordered and grouped function
34322 prototypes by file that the function is defined in.
34323 (grub_menu_execute_callback): Removed; moved to menu.h.
34324 (grub_menu_get_entry): Likewise.
34325 (grub_menu_get_timeout): Likewise.
34326 (grub_menu_set_timeout): Likewise.
34327 (grub_menu_execute_entry): Likewise.
34328 (grub_menu_execute_with_fallback): Likewise.
34329 (grub_menu_entry_run): Likewise.
34330 (grub_menu_addentry): Renamed from this ...
34331 (grub_normal_add_menu_entry): ... to this.
34332
34333 * normal/main.c (grub_menu_addentry): Renamed from this ...
34334 (grub_normal_add_menu_entry): ... to this.
34335
34336 * script/sh/execute.c (grub_script_execute_menuentry): Update
34337 reference to renamed grub_menu_addentry function.
34338
861f03a5 343392009-05-23 Felix Zielcke <fzielcke@z-51.de>
34340
34341 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
34342
96b1619a 343432009-05-22 Pavel Roskin <proski@gnu.org>
34344
bf6a5fb2 34345 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
34346 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
34347 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
34348 compiling for the i386 targets, but not for the utilities.
34349
96b1619a 34350 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
34351 to grub_uint8_t.
34352 (grub_root_drive): Likewise.
34353 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
34354 remove alignment.
34355 (grub_root_drive): Change size to byte.
34356 (grub_start_addr): Remove.
34357 (grub_end_addr): Likewise.
34358 (grub_apm_bios_info): Likewise.
34359
b729776b 343602009-05-21 Felix Zielcke <fzielcke@z-51.de>
34361
34362 * normal/i386: Remove.
34363 * normal/powerpc: Likewise.
34364 * normal/sparc64: Likewise.
34365 * normal/x86_64: Likewise.
34366
0a15ce80 343672009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
34368
34369 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 34370 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 34371 * loader/i386/xnu_helper.S: Likewise
d6da58e6 34372
33db9015 343732009-05-18 Colin D Bennett <colin@gibibit.com>
34374
d6da58e6 34375 Display error messages when parsing a Lua statement fails.
34376 Previously, executing a syntactically invalid statement like
34377 ")foo" or "bar;" would silently fail.
33db9015 34378
34379 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 34380 (grub_lua_parse_line): Improved reporting of Lua parser and
34381 execution errors.
33db9015 34382
46422c89 343832009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
34384
34385 Remove -Werror which causes build to fail on some systems
34386
34387 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
34388 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
34389 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 34390
22f53a96 343912009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
34392
34393 trampoline for linux on 64-bit platform
34394
18f547ad 34395 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
34396 loader/i386/efi/linux_trampoline.S
34397 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 34398 declaration
d6da58e6 34399 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
34400 here
22f53a96 34401 * loader/i386/linux_trampoline.S: moved here
d6da58e6 34402 * loader/i386/efi/linux.c (allocate_pages): reserve space for
34403 trampoline
22f53a96 34404 (jumpvector): removed
34405 (grub_linux_trampoline_start): new declaration
34406 (grub_linux_trampoline_end): likewise
34407 (grub_linux_boot): use trampoline when on 64-bit platform
34408 * loader/i386/linux.c: likewise
34409
cb5a0f40 344102009-05-16 Pavel Roskin <proski@gnu.org>
34411
34412 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
34413 const to avoid a warning.
34414 (grub_lua_setenv): Likewise.
34415 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
34416 lmsg to fix a warning.
34417
334f2c28 344182009-05-16 Felix Zielcke <fzielcke@z-51.de>
34419
34420 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 34421 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34422 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
34423 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34424 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
34425 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34426 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
34427 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 34428
59e5d3ec 344292009-05-16 Felix Zielcke <fzielcke@z-51.de>
34430
34431 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
34432
9d87a1ba 344332009-05-16 Bean <bean123ch@gmail.com>
34434
34435 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
34436 (lua_mod_SOURCES): New variable.
34437 (lua_mod_CFLAGS): Likewise.
34438 (lua_mod_LDFLAGS): Likewise.
34439
34440 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
34441 (setjmp_mod_SOURCES): New variable.
34442 (setjmp_mod_CFLAGS): Likewise.
34443 (setjmp_LDFLAGS): Likewise.
34444
34445 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
34446 (setjmp_mod_SOURCES): New variable.
34447 (setjmp_mod_CFLAGS): Likewise.
34448 (setjmp_LDFLAGS): Likewise.
34449
34450 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
34451 (setjmp_mod_SOURCES): New variable.
34452 (setjmp_mod_CFLAGS): Likewise.
34453 (setjmp_LDFLAGS): Likewise.
34454
34455 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
34456 (setjmp_mod_SOURCES): New variable.
34457 (setjmp_mod_CFLAGS): Likewise.
34458 (setjmp_LDFLAGS): Likewise.
34459
34460 * normal/i386/setjmp.S: Moved from here ...
34461 * lib/i386/setjmp.S: ... Moved here
34462 * normal/x86_64/setjmp.S: Moved from here ...
34463 * lib/x86_64/setjmp.S: ... Moved here
34464 * normal/powerpc/setjmp.S: Moved from here ...
34465 * lib/powerpc/setjmp.S: ... Moved here
34466 * normal/sparc64/setjmp.S: Moved from here ...
34467 * lib/sparc64/setjmp.S: ... Moved here
34468
34469 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
34470 returns_twice in mingw.
34471
34472 * script/lua/grub_lib.c: New file.
34473 * script/lua/grub_lib.h: Likewise.
34474 * script/lua/grub_lua.h: Likewise.
34475 * script/lua/grub_main.c: Likewise.
34476 * script/lua/lapi.c: Likewise.
34477 * script/lua/lapi.h: Likewise.
34478 * script/lua/lauxlib.c: Likewise.
34479 * script/lua/lauxlib.h: Likewise.
34480 * script/lua/lbaselib.c: Likewise.
34481 * script/lua/lcode.c: Likewise.
34482 * script/lua/lcode.h: Likewise.
34483 * script/lua/ldblib.c: Likewise.
34484 * script/lua/ldebug.c: Likewise.
34485 * script/lua/ldebug.h: Likewise.
34486 * script/lua/ldo.c: Likewise.
34487 * script/lua/ldo.h: Likewise.
34488 * script/lua/ldump.c: Likewise.
34489 * script/lua/lfunc.c: Likewise.
34490 * script/lua/lfunc.h: Likewise.
34491 * script/lua/lgc.c: Likewise.
34492 * script/lua/lgc.h: Likewise.
34493 * script/lua/linit.c: Likewise.
34494 * script/lua/liolib.c: Likewise.
34495 * script/lua/llex.c: Likewise.
34496 * script/lua/llex.h: Likewise.
34497 * script/lua/llimits.h: Likewise.
34498 * script/lua/lmathlib.c: Likewise.
34499 * script/lua/lmem.c: Likewise.
34500 * script/lua/lmem.h: Likewise.
34501 * script/lua/loadlib.c: Likewise.
34502 * script/lua/lobject.c: Likewise.
34503 * script/lua/lobject.h: Likewise.
34504 * script/lua/lopcodes.c: Likewise.
34505 * script/lua/lopcodes.h: Likewise.
34506 * script/lua/loslib.c: Likewise.
34507 * script/lua/lparser.c: Likewise.
34508 * script/lua/lparser.h: Likewise.
34509 * script/lua/lstate.c: Likewise.
34510 * script/lua/lstate.h: Likewise.
34511 * script/lua/lstring.c: Likewise.
34512 * script/lua/lstring.h: Likewise.
34513 * script/lua/lstrlib.c: Likewise.
34514 * script/lua/ltable.c: Likewise.
34515 * script/lua/ltable.h: Likewise.
34516 * script/lua/ltablib.c: Likewise.
34517 * script/lua/ltm.c: Likewise.
34518 * script/lua/ltm.h: Likewise.
34519 * script/lua/lua.h: Likewise.
34520 * script/lua/luaconf.h: Likewise.
34521 * script/lua/lualib.h: Likewise.
34522 * script/lua/lundump.c: Likewise.
34523 * script/lua/lundump.h: Likewise.
34524 * script/lua/lvm.c: Likewise.
34525 * script/lua/lvm.h: Likewise.
34526 * script/lua/lzio.c: Likewise.
34527 * script/lua/lzio.h: Likewise.
34528
5e898c9d 345292009-05-16 Bean <bean123ch@gmail.com>
34530
34531 * include/grub/kernel.h (grub_module_header_types): Add type
34532 OBJ_TYPE_CONFIG.
34533
34534 * kern/main.c (grub_load_config): New function.
34535 (grub_main): Call grub_load_config to read boot config.
34536
34537 * grub-mkimage (generate_image): New parameter config_path.
34538 (options): New option --config.
34539 (main): Parse --config option, and pass it to generate_image.
34540
cf353a47 345412009-05-14 Christian Franke <franke@computer.org>
34542
34543 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
34544 This fixes build on Cygwin.
34545
3834887f 345462009-05-14 Pavel Roskin <proski@gnu.org>
34547
34548 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
34549 jump. This saves two bytes, so the typical case of 2 swapped
34550 drives would fit 32 bytes.
34551
8090fc01 345522009-05-13 Pavel Roskin <proski@gnu.org>
34553
ac963883 34554 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
34555 grub_uint32_t to avoid a warning.
34556
8090fc01 34557 * loader/i386/linux.c (allocate_pages): When assigning
34558 real_mode_mem, cast through grub_size_t to fix a warning. The
34559 code already makes sure that the value would fit a pointer.
34560 (grub_linux_setup_video): Cast render_target->data to
34561 grub_size_t to fix a warning.
34562
18f547ad 345632009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 34564
34565 * commands/i386/pc/drivemap.c: New file - implement drivemap
34566 command.
34567 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
34568 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
34569
6f6a8b28 345702009-05-13 Pavel Roskin <proski@gnu.org>
34571
34572 * util/i386/pc/grub-setup.c (setup): Remove unused variable
34573 embedding_area_exists.
34574
15fbf4c4 345752009-05-13 Robert Millan <rmh.grub@aybabtu.com>
34576
34577 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
34578 it easier to understand / work with.
59978c8a 34579 Improve warning messages for cases where there's no embedding area,
34580 or when it is too small (or core.img too large).
15fbf4c4 34581
238e871f 345822009-05-13 Pavel Roskin <proski@gnu.org>
34583
0ab3a9a4 34584 * loader/i386/pc/multiboot2.c: Add necessary includes for
34585 grub_multiboot2_real_boot().
34586
a2c8c5f8 34587 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
34588 PX record is always little-endian. We only need the lower 2
34589 bytes of the mode.
34590
faec96af 34591 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
34592 facilitate code reuse.
34593 (grub_cpio_mount): Use "struct head", not a char buffer. This
34594 fixes a warning reported by gcc 4.4.
34595
238e871f 34596 * kernel/disk.c (grub_disk_read): Use void pointer for the
34597 buffer.
34598 (grub_disk_write): Use const void pointer for the buffer.
34599 Adjust all callers. Remove unnecessary casts.
34600
901d2f0c 346012009-05-10 Robert Millan <rmh.grub@aybabtu.com>
34602
34603 * util/i386/pc/grub-install.in: Update copyright year.
34604
18f547ad 346052009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 34606
34607 gptsync
34608
34609 * commands/gptsync.c: new file
34610 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
34611 (gptsync_mod_SOURCES): new variable
34612 (gptsync_mod_CFLAGS): likewise
34613 (gptsync_mod_LDFLAGS): likewise
18f547ad 34614 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 34615 new definition
34616 (GRUB_PC_PARTITION_TYPE_HFS): likewise
34617 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
34618 * conf/i386-ieee1275.rmk: likewise
34619 * conf/i386-pc.rmk: likewise
34620 * conf/powerpc-ieee1275.rmk: likewise
34621
b4ba690a 346222009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
34623
34624 Fixed grub-emu
34625
34626 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
34627 (grub_dl_ref): likewise
34628
317e1a44 346292009-05-08 Robert Millan <rmh.grub@aybabtu.com>
34630
34631 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
34632 split in two functions (one for msdos and one for gpt).
34633
041b8094 346342009-05-08 Pavel Roskin <proski@gnu.org>
34635
752473c2 34636 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
34637 not modified.
34638
041b8094 34639 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
34640 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
34641 Initialize them with -1. Add sanity check for bad1. Eliminate
34642 nerr variable.
34643
172800ce 346442009-05-08 David S. Miller <davem@davemloft.net>
34645
34646 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
34647
29aa5e81 346482009-05-06 Robert Millan <rmh.grub@aybabtu.com>
34649
34650 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 34651 existence.
29aa5e81 34652
96613b62 346532009-05-05 Felix Zielcke <fzielcke@z-51.de>
34654
34655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 34656 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 34657
eef73c8a 346582009-05-05 David S. Miller <davem@davemloft.net>
34659
34660 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
34661
119494b5 346622009-05-05 Pavel Roskin <proski@gnu.org>
34663
34664 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
34665 of grub_dl_ref() and grub_dl_unref().
34666 * commands/parttool.c: Remove preprocessor conditionals around
34667 grub_dl_ref() and grub_dl_unref().
34668 * fs/affs.c: Likewise.
34669 * fs/afs.c: Likewise.
34670 * fs/cpio.c: Likewise.
34671 * fs/ext2.c: Likewise.
34672 * fs/fat.c: Likewise.
34673 * fs/hfs.c: Likewise.
34674 * fs/hfsplus.c: Likewise.
34675 * fs/iso9660.c: Likewise.
34676 * fs/jfs.c: Likewise.
34677 * fs/minix.c: Likewise.
34678 * fs/ntfs.c: Likewise.
34679 * fs/reiserfs.c: Likewise.
34680 * fs/sfs.c: Likewise.
34681 * fs/udf.c: Likewise.
34682 * fs/ufs.c: Likewise.
34683 * fs/xfs.c: Likewise.
34684 * include/grub/dl.h: Likewise.
34685 * loader/xnu.c: Likewise.
34686
de5fd76e 346872009-05-04 Pavel Roskin <proski@gnu.org>
34688
34689 * commands/acpi.c: Remove unused variable my_mod.
34690 * partmap/amiga.c: Likewise.
34691 * partmap/apple.c: Likewise.
34692 * partmap/gpt.c: Likewise.
34693 * partmap/pc.c: Likewise.
34694 * partmap/sun.c: Likewise.
34695 * term/gfxterm.c: Likewise.
34696 * term/i386/pc/vesafb.c: Likewise.
34697 * term/i386/pc/vga.c: Likewise.
34698
983598ad 346992009-05-04 David S. Miller <davem@davemloft.net>
34700
34701 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
34702 pointer args to grub_ieee1275_get_property().
34703
8aadec43 34704 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
34705
9554b15e 34706 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
34707 devices, and do not traverse down under controller nodes.
34708
67e23c90 34709 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
34710 (grub_ofdisk_open): Use it to un-escape "," characters.
34711 * kern/disk.c (find_part_sep): New.
34712 (grub_disk_open): Use it to find the first non-escaped ','
34713 character in the disk name.
34714 * util/ieee1275/devicemap.c (escape_of_path): New.
34715 (grub_util_emit_devicemap_entry): Use it.
34716 * util/sparc64/ieee1275/grub-install.in: Update script to
34717 strip partition specifiers properly by not triggering on
34718 '\' escaped ',' characters.
34719
74bfdd2f 347202009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34721
34722 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
34723 to 0x300.
34724 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
34725 resolutions.
34726 (linux_vesafb_modes): Add a lot of additional modes to the list (based
34727 on documentation from Wikipedia).
34728
4241d2b1 347292009-05-04 Pavel Roskin <proski@gnu.org>
34730
34731 * disk/ata.c: Spelling fixes.
34732 * disk/raid.c: Likewise.
34733 * disk/usbms.c: Likewise.
34734 * disk/dmraid_nvidia.c: Likewise.
34735 * kern/ieee1275/openfw.c: Likewise.
34736 * kern/ieee1275/init.c: Likewise.
34737 * kern/ieee1275/cmain.c: Likewise.
34738 * boot/i386/pc/cdboot.S: Likewise.
34739 * video/readers/png.c: Likewise.
34740 * video/i386/pc/vbe.c: Likewise.
34741 * fs/udf.c: Likewise.
34742 * fs/hfs.c: Likewise.
34743 * fs/reiserfs.c: Likewise.
34744 * efiemu/runtime/efiemu.c: Likewise.
34745 * efiemu/main.c: Likewise.
34746 * efiemu/mm.c: Likewise.
34747 * include/grub/elf.h: Likewise.
34748 * include/grub/xnu.h: Likewise.
34749 * include/grub/usbdesc.h: Likewise.
34750 * include/grub/usb.h: Likewise.
34751 * include/grub/script_sh.h: Likewise.
34752 * include/grub/lib/LzmaEnc.h: Likewise.
34753 * include/grub/efiemu/efiemu.h: Likewise.
34754 * include/grub/command.h: Likewise.
34755 * normal/menu.c: Likewise.
34756 * normal/main.c: Likewise.
34757 * normal/datetime.c: Likewise.
34758 * bus/usb/uhci.c: Likewise.
34759 * mmap/i386/uppermem.c: Likewise.
34760 * mmap/mmap.c: Likewise.
34761 * commands/acpi.c: Likewise.
34762 * commands/test.c: Likewise.
34763 * partmap/apple.c: Likewise.
34764 * font/font.c: Likewise.
34765 * loader/sparc64/ieee1275/linux.c: Likewise.
34766 * loader/macho.c: Likewise.
34767 * loader/i386/bsd_trampoline.S: Likewise.
34768 * loader/i386/bsd.c: Likewise.
34769 * loader/xnu.c: Likewise.
34770 * term/i386/pc/vesafb.c: Likewise.
34771 * term/usb_keyboard.c: Likewise.
34772 * util/resolve.c: Likewise.
34773 * util/getroot.c: Likewise.
34774
0cfc0083 347752009-05-04 Felix Zielcke <fzielcke@z-51.de>
34776
34777 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
34778
7c1d00cd 347792009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34780
34781 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
34782 build error.
34783
b01f0548 347842009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34785
34786 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
34787 parameter only available on BIOS.
34788
ecc3eb22 347892009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
34790
34791 Removed wrong semicolon in declaration
34792
34793 * grub/misc.h (grub_dprintf): remove semicolon
34794
112972a9 347952009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34796
34797 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
34798 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
34799 is done by grub_cmd_linux() now).
34800 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
34801 restore video to text mode.
34802 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
34803 indicates lack of "vga=" parameter. "vga=0" is mapped to
34804 `GRUB_LINUX_VID_MODE_NORMAL'.
34805
afd5c115 348062009-05-04 Felix Zielcke <fzielcke@z-51.de>
34807
34808 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
34809 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
34810 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 34811 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 34812 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
34813 `grub_script.tab.c'.
34814
34815 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34816 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34818 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34819 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34820
faa517ce 34821 * Makefile.in: Remove duplicated 2008 in Copyright line.
34822
ae0c0bdc 348232009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34824
473d1e45 34825 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 34826 unconditionally.
34827 * include/grub/util/misc.h (grub_util_warn): New declaration.
34828
34829 * util/i386/pc/grub-install.in: Understand --force and pass it down
34830 to grub-setup.
34831
34832 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
34833 down to setup().
34834 (setup): Improve error messages and add warnings when requested to
34835 install in odd layouts. Refuse to install using blocklists unless
34836 --force was set.
34837
18f547ad 348382009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 34839
34840 * disk/raid.c (grub_raid_scan_device): Improve debug message.
34841
6d260daa 348422009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
34843
34844 Updated copyright year
34845
34846 * fs/hfsplus.c: updated copyright year
18f547ad 34847
69f853f8 348482009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
34849
34850 HFS+ UUID
34851
18f547ad 34852 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 34853 in the space previously used by unused3
34854 (grub_hfsplus_uuid): new function
34855 (grub_hfsplus_fs): added uuid field
34856
4c402e73 348572009-05-03 Pavel Roskin <proski@gnu.org>
34858
34859 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
34860 suppress warnings. It's no longer needed.
34861 * disk/host.c: Likewise.
34862 * disk/ata_pthru.c: Likewise.
34863 * disk/loopback.c: Likewise.
34864 * hook/datehook.c: Likewise.
34865 * parttool/pcpart.c: Likewise.
34866 * fs/i386/pc/pxe.c: Likewise.
34867 * fs/ntfscomp.c: Likewise.
34868 * efiemu/main.c: Likewise.
34869 * mmap/mmap.c: Likewise.
34870 * commands/crc.c: Likewise.
34871 * commands/hexdump.c: Likewise.
34872 * commands/hdparm.c: Likewise.
34873 * commands/acpi.c: Likewise.
34874 * commands/echo.c: Likewise.
34875 * commands/minicmd.c: Likewise.
34876 * commands/blocklist.c: Likewise.
34877 * commands/memrw.c: Likewise.
34878 * commands/loadenv.c: Likewise.
34879 * commands/usbtest.c: Likewise.
34880 * commands/lsmmap.c: Likewise.
34881 * commands/boot.c: Likewise.
34882 * commands/parttool.c: Likewise.
34883 * commands/configfile.c: Likewise.
34884 * commands/search.c: Likewise.
34885 * commands/ieee1275/suspend.c: Likewise.
34886 * commands/cat.c: Likewise.
34887 * commands/i386/pc/pxecmd.c: Likewise.
34888 * commands/i386/pc/play.c: Likewise.
34889 * commands/i386/pc/halt.c: Likewise.
34890 * commands/i386/pc/vbeinfo.c: Likewise.
34891 * commands/i386/pc/vbetest.c: Likewise.
34892 * commands/lspci.c: Likewise.
34893 * commands/date.c: Likewise.
34894 * commands/handler.c: Likewise.
34895 * commands/ls.c: Likewise.
34896 * commands/test.c: Likewise.
34897 * commands/cmp.c: Likewise.
34898 * commands/efi/loadbios.c: Likewise.
34899 * commands/efi/fixvideo.c: Likewise.
34900 * commands/halt.c: Likewise.
34901 * commands/help.c: Likewise.
34902 * commands/reboot.c: Likewise.
34903 * hello/hello.c: Likewise.
34904 * script/sh/main.c: Likewise.
34905 * loader/xnu.c: Likewise.
34906 * term/terminfo.c: Likewise.
34907 * term/i386/pc/serial.c: Likewise.
34908 * term/usb_keyboard.c: Likewise.
34909
515b5079 349102009-05-03 David S. Miller <davem@davemloft.net>
34911
34912 * normal/menu.c: Include grub/parser.h
34913
dfc31a22 349142009-05-03 Pavel Roskin <proski@gnu.org>
34915
2fee74f1 34916 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
34917 not char*.
34918 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
34919 Suggested by Javier Martín <lordhabbit@gmail.com>
34920
dfc31a22 34921 * util/i386/pc/grub-mkrescue.in: Allow for the case when
34922 efiemu??.o doesn't exist.
34923 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
34924 copying.
34925
18f547ad 349262009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 34927
34928 FreeBSD 64-bit support
34929
18f547ad 34930 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 34931 and loader/i386/bsd_trampoline.S
34932 (bsd_mod_ASFLAGS): new variable
34933 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
34934 (FREEBSD_MODTYPE_KERNEL64): likewise
34935 (grub_bsd64_trampoline_start): likewise
34936 (grub_bsd64_trampoline_end): likewise
34937 (grub_bsd64_trampoline_selfjump): likewise
34938 (grub_bsd64_trampoline_gdt): likewise
34939 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
34940 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
34941 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
34942 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 34943 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 34944 of "attrib" member
34945 * loader/i386/bsd_pagetable.c: new file
34946 * loader/i386/bsd_trampoline.S: likewise
34947 * loader/i386/bsd.c (ALIGN_QWORD): new macro
34948 (ALIGN_VAR): likewise
34949 (entry_hi): new variable
34950 (kern_end_mdofs): likewise
34951 (is_64bit): likewise
34952 (grub_freebsd_add_meta): use ALIGN_VAR
34953 (grub_e820_mmap): new declaration
34954 (grub_freebsd_add_mmap): new function
34955 (grub_freebsd_add_meta_module): support 64 bit kernels
34956 (grub_freebsd_list_modules): use ALIGN_VAR
34957 (gdt_descriptor): new declaration
34958 (grub_freebsd_boot): support 64 bit kernels
34959 (grub_bsd_elf64_hook): new function
34960 (grub_bsd_load_elf): support elf64
34961
038c5720 349622009-05-03 Bean <bean123ch@gmail.com>
34963
34964 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
34965 after we get the result of if statement.
34966
fc45fb58 349672009-05-03 Bean <bean123ch@gmail.com>
34968
34969 * Makefile.in (enable_efiemu): New variable.
34970
34971 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
34972 set.
34973 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
34974 path.
34975 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
34976 path, add -mno-red-zone option.
34977 (efiemu64_s.o): Likewise.
34978 (efiemu64.o): Use macro $^ for source file.
34979
34980 * configure.ac (--enable-efiemu): New option.
34981
bbee0f2b 349822009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
34983
34984 xnu support
34985
34986 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
34987 (pkglib_MODULES): add xnu.mod
34988 (xnu_mod_SOURCES): new variable
34989 (xnu_mod_CFLAGS): likewise
34990 (xnu_mod_LDFLAGS): likewise
34991 (xnu_mod_ASFLAGS): likewise
34992 * conf/i386-pc.rmk: likewise
34993 * conf/x86_64-efi.rmk: likewise
7dd4a573 34994 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 34995 new declaration
34996 * include/grub/i386/macho.h: new file
34997 * include/grub/i386/xnu.h: likewise
34998 * include/grub/macho.h: likewise
34999 * include/grub/machoload.h: likewise
35000 * include/grub/x86_64/macho.h: likewise
35001 * include/grub/x86_64/xnu.h: likewise
35002 * include/grub/xnu.h: likewise
35003 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
35004 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
35005 * loader/i386/efi/xnu.c: new file
35006 * loader/i386/pc/xnu.c: likewise
35007 * loader/i386/xnu.c: likewise
35008 * loader/i386/xnu_helper.S: likewise
35009 * loader/macho.c: likewise
35010 * loader/xnu.c: likewise
35011 * loader/xnu_resume.c: likewise
35012 * util/grub-dumpdevtree: likewise
35013 * include/grub/i386/pit.h: include grub/err.h
35014 (grub_pit_wait): export
35015 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 35016
5caf964d 350172009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35018
35019 Efiemu
7dd4a573 35020
5caf964d 35021 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 35022 _linux_efi, linux_efi.
35023 new files in grub-emu
5caf964d 35024 new targets efiemu32.o and efiemu64.o
35025 * loader/linux_normal_efiemu.c: likewise
35026 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 35027 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 35028 files to copy
35029 * include/grub/autoefi.h: new file
7dd4a573 35030 * include/grub/i386/efiemu.h: likewise
5caf964d 35031 * include/grub/i386/pc/efiemu.h: likewise
35032 * include/grub/efi/api.h: add LL suffix when necessary
35033 new definitions relating to tables
35034 * include/grub/efiemu/efiemu.h: new file
35035 * include/grub/efiemu/runtime.h: likewise
35036 * efiemu/prepare.c: likewise
35037 * efiemu/loadcore_common.c: likewise
35038 * efiemu/loadcore64.c: likewise
35039 * efiemu/runtime/efiemu.sh: likewise
35040 * efiemu/runtime/efiemu.S: likewise
35041 * efiemu/runtime/efiemu.c: likewise
35042 * efiemu/runtime/config.h: likewise
35043 * efiemu/prepare32.c: likewise
35044 * efiemu/main.c: likewise
35045 * efiemu/modules/pnvram.c: likewise
35046 * efiemu/modules/i386: likewise
35047 * efiemu/modules/i386/pc: likewise
35048 * efiemu/modules/acpi.c: likewise
35049 * efiemu/i386/pc/cfgtables.c: likewise
35050 * efiemu/i386/loadcore64.c: likewise
35051 * efiemu/i386/loadcore32.c: likewise
35052 * efiemu/prepare64.c: likewise
35053 * efiemu/loadcore.c: likewise
35054 * efiemu/symbols.c: likewise
35055 * efiemu/mm.c: likewise
35056 * efiemu/loadcore32.c: likewise
7dd4a573 35057
350582009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 35059
35060 ACPI spoofing
35061
35062 * commands/acpi.c: new file
35063 * commands/i386/pc/acpi.c: likewise
35064 * commands/efi/acpi.c: likewise
35065 * include/grub/acpi.h: likewise
35066 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
35067 (acpi_mod_SOURCES): new variable
35068 (acpi_mod_CFLAGS): likewise
35069 (acpi_mod_LDFLAGS): likewise
35070 * conf/i386-efi.rmk: likewise
35071 * conf/x86_64-efi.rmk: likewise
35072
7dd4a573 350732009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 35074
35075 Missing part from mmap patch
35076
35077 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
35078 (grub_mmap_unregister)
35079 (grub_mmap_free_and_unregister): use grub_mmap_register
35080
7dd4a573 350812009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 35082
35083 Mmap services
35084
35085 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
35086 * loader/i386/linux.c (find_mmap_size): likewise
35087 (allocate_pages): likewise
35088 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
35089 (grub_fill_multiboot_mmap): likewise
35090 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
35091 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
35092 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
35093 (OPENBSD_MMAP_RESERVED): likewise
35094 * include/grub/i386/pc/memory.h: include grub/memory.h
35095 (grub_lower_mem): removed
35096 (grub_upper_mem): likewise
35097 (GRUB_MACHINE_MEMORY_ACPI): new definition
35098 (GRUB_MACHINE_MEMORY_NVS): likewise
35099 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
35100 (GRUB_MACHINE_MEMORY_HOLE): likewise
35101 (grub_machine_mmap_register): likewise
35102 (grub_machine_mmap_unregister): likewise
35103 (grub_machine_get_upper): likewise
35104 (grub_machine_get_lower): likewise
35105 (grub_machine_get_post64): likewise
35106 * include/grub/i386/efi/memory.h: new file
35107 * include/grub/x86_64/efi/memory.h: likewise
35108 * include/grub/efi/memory.h: likewise
35109 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
35110 (mmap_mod_SOURCES): new variable
35111 (mmap_mod_LDFLAGS): likewise
35112 (mmap_mod_ASFLAGS): likewise
35113 * conf/i386-coreboot.rmk: likewise
35114 * conf/i386-ieee1275.rmk: likewise
35115 * conf/i386-efi.rmk: likewise
35116 * conf/x86_64-efi.rmk: likewise
35117 * include/grub/types.h (UINT_TO_PTR): new macro
35118 (PTR_TO_UINT32): likewise
35119 (PTR_TO_UINT64): likewise
35120 * include/grub/memory.h: new file
35121 * mmap/i386/pc/mmap.c: likewise
35122 * mmap/i386/pc/mmap_helper.S: likewise
35123 * mmap/i386/uppermem.c: likewise
35124 * mmap/mmap.c: likewise
35125 * mmap/efi/mmap.c: likewise
7dd4a573 35126 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 35127 grub_upper_mem
35128 * kern/i386/pc/init.c (grub_lower_mem): removed variable
35129 (grub_upper_mem): likewise
35130 (grub_machine_init): don't use grub_upper_mem,
35131 make grub_lower_mem local
35132 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
35133 grub_mmap_iterate and grub_mmap_get_upper
35134 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
35135
d558e6b5 351362009-05-02 Bean <bean123ch@gmail.com>
35137
35138 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
35139 script/sh/parser.y.
35140 (pkglib_MODULES): Add normal.mod and sh.mod.
35141 (normal_SOURCES): New variable.
35142 (normal_mod_CFLAGS): Likewise.
35143 (normal_mod_LDFLAGS): Likewise.
35144 (sh_mod_SOURCES): Likewise.
35145 (sh_mod_CFLAGS): Likewise.
35146 (sh_mod_LDFLAGS): Likewise.
35147
35148 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
35149 script/sh/lexer.c_DEPENDENCIES.
35150 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
35151 kern/rescue_reader.c and kern/rescue_parser.c.
35152 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
35153 (grub_emu_SOURCES): Change source files.
35154 (pkglib_MODULES): Remove normal.mod.
35155 (normal_SOURCES): Removed.
35156 (normal_mod_CFLAGS): Likewise.
35157 (normal_mod_LDFLAGS): Likewise.
35158 * conf/i386-coreboot.rmk: Likewise.
35159 * conf/i386-efi.rmk: Likewise.
35160 * conf/i386-ieee1276.rmk: Likewise.
35161 * conf/powerpc-ieee1275.rmk: Likewise.
35162 * conf/sparc64-ieee1275.rmk: Likewise.
35163 * conf/x86_64-efi.rmk: Likewise.
35164
35165 * include/grub/command.h (grub_command_execute): New inline function.
35166
35167 * include/grub/menu.h (grub_menu_entry): Removed commands field.
35168
35169 * include/grub/normal.h: Remove <grub/setjmp.h>.
35170 (grub_fs_module_list): Moved to normal/autofs.c.
35171 (grub_exit_env): Removed.
35172 (grub_command_execute): Likewise.
35173 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
35174 parameter script.
35175 (read_command_list): New function declaration.
35176 (read_fs_list): Likewise.
35177
35178 * include/parser.h: Include <grub/reader.h>.
35179 (grub_parser_split_cmdline): Change type of getline parameter.
35180 (grub_parser): New structure.
35181 (grub_parser_class): New variable.
35182 (grub_parser_execute): New function declaration.
35183 (grub_register_rescue_parser): Likewise.
35184 (grub_parser_register): New inline function.
35185 (grub_parser_unregister): Likewise.
35186 (grub_parser_get_current): Likewise.
35187 (grub_parser_set_current): Likewise.
35188
35189 * include/grub/reader.h: New file.
35190 * kern/reader.c: Likewise.
35191 * kern/rescue_parser.c: Likewise.
35192 * kern/rescue_reader.c: Likewise.
35193 * normal/autofs.c: Likewise.
35194 * normal/dyncmd.c: Likewise.
35195
35196 * include/grub/rescue.h: Removed.
35197 * normal/command.h: Likewise.
35198
35199 * include/grub/script.h: Moved to ...
35200 * include/grub/script_sh.h: ... Moved here.
35201 * normal/execute.c: Moved to ...
35202 * script/sh/execute.c: ... Moved here.
35203 * normal/function.c: Moved to ...
35204 * script/sh/function.c: ... Moved here.
35205 * normal/lexer.c: Moved to ...
35206 * script/sh/lexer.c: ... Moved here.
35207 * normal/parser.y: Moved to ...
35208 * script/sh/parser.y: ... Moved here.
35209 * normal/script.c: Moved to ...
35210 * script/sh/script.c: ... Moved here.
35211
35212 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
35213 <grub/reader.h>.
35214 (grub_exit_env): Removed.
35215 (fs_module_list): Moved to normal/autofs.c.
35216 (grub_file_getline): Don't handle comment here.
35217 (free_menu): Skip removed field entry->commands.
35218 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
35219 script parameter.
35220 (read_config_file): Removed nested parameter, change getline function.
35221 (grub_enter_normal_mode): Removed.
35222 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
35223 (read_command_list): Likewise.
35224 (autoload_fs_module): Moved to normal/autofs.c.
35225 (read_fs_list): Likewise.
35226 (reader_nested): New variable.
35227 (grub_normal_execute): Run parser.sh to switch to sh parser.
35228 (grub_cmd_rescue): Removed.
35229 (cmd_normal): Removed.
35230 (grub_cmd_normal): Unregister itself at the beginning. Don't register
35231 rescue command.
35232 (grub_cmdline_run): New function.
35233 (grub_normal_reader_init): Likewise.
35234 (grub_normal_read_line): Likewise.
35235 (grub_env_write_pager): Likewise.
35236 (cmdline): New variable.
35237 (grub_normal_reader): Likewise.
35238 (GRUB_MOD_INIT): Register normal reader and set as current, register
35239 pager hook, register normal command with grub_register_command_prio,
35240 so that it won't show up in command.lst.
35241 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
35242 grub_fs_autoload_hook.
35243
35244 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
35245 (grub_menu_execute_entry): Replace grub_script_execute with
35246 grub_parser_execute, change parameter to grub_command_execute.
35247
35248 * normal/menu_text.c: Remove <grub/script.h>.
35249
35250 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
35251 and <grub/parser.h>.
35252 (run): Change editor_getline to use new parser interface. Change
35253 parameter to grub_command_execute.
35254
35255 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
35256 <grub/reader.h> and <grub/parser.h>.
35257 (grub_load_normal_mode): Execute normal command.
35258 (grub_main): Call grub_register_core_commands,
35259 grub_register_rescue_parser and grub_register_rescue_reader, use
35260 grub_reader_loop to enter input loop.
35261
7dd4a573 35262 * kern/parser.c (grub_parser_split_cmdline): Change type of
35263 getline parameter.
d558e6b5 35264 (grub_parser_class): New variable.
35265 (grub_parser_execute): New function.
35266
35267 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
35268 * loader/multiboot2.c: Likewise.
35269 * loader/sparc64/ieee1275/linux.c: Likewise.
35270
35271 * util/grub-emu.c (read_command_list): New dummy function.
35272
18db813d 352732009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35274
35275 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
35276 count to 16 for CCISS and IDA.
35277
6c67de15 352782009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35279
35280 * normal/menu_text.c (grub_wait_after_message): Print a newline
35281 after waiting for user input.
35282
35283 * loader/i386/linux.c: Include `<grub/normal.h>'.
35284 (grub_cmd_linux): Improve the error message about `ask' mode, by
35285 waiting for user input so it's not missed (we can do this, since
35286 user requested interaction).
35287
d9dc87b0 352882009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35289
35290 Added missing lst to grub-mkrescue
35291
35292 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
35293 and ${input_dir}/parttool.lst
35294
ac8a2baa 352952009-04-30 David S. Miller <davem@davemloft.net>
35296
ad22a610 35297 * util/hostdisk.c (device_is_wholedisk): New function.
35298 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
35299 zero only if device_is_wholedisk() returns true.
35300
6966215d 35301 * util/hostdisk.c (convert_system_partition_to_system_disk):
35302 Handle virtual disk devices named /dev/vdiskX as found on sparc
35303 and powerpc.
35304
ac8a2baa 35305 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
35306 lettered partition specifier is found, convert to numbered.
35307
979b4fb4 353082009-04-29 David S. Miller <davem@davemloft.net>
35309
e2bf39b2 35310 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
35311 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35312
3c64e104 35313 * normal/command.c: Add missing newline at end of file.
35314
979b4fb4 35315 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
35316 warnings.
35317 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
35318 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
35319 grub_ofdisk_read): Likewise, and deal similarly with the fact that
35320 ihandles have a 32-bit type but need to be stored in a "void *".
35321
136d9f82 353222009-04-28 Pavel Roskin <proski@gnu.org>
35323
9459c306 35324 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
35325 not disk. Adjust all dependencies.
2e08a26a 35326 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 35327 grub_disk_close().
35328
136d9f82 35329 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
35330 parent's partition, don't copy it by reference, as it gets freed
35331 on close.
35332
7dd4a573 353332009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 35334
35335 Preboot hooks support
35336
35337 * commands/boot.c (struct grub_preboot_t): new declaration
35338 (preboots_head): new variable
35339 (preboots_tail): likewise
35340 (grub_loader_register_preboot_hook): new function
35341 (grub_loader_unregister_preboot_hook): likewise
35342 (grub_loader_set): launch preboot hooks
35343 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
35344 (grub_loader_register_preboot_hook): new declaration
35345 (grub_loader_unregister_preboot_hook): likewise
35346
5af922b5 353472009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
35348
35349 Warning fix
35350
7dd4a573 35351 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 35352 calling grub_dprintf
35353
a5562c30 353542009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
35355
35356 Bug and warning fixes
35357
7dd4a573 35358 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 35359 declaration
35360 * commands/test.c (test_parse): fixed bug with file tests and corrected
35361 declaration of find_file
35362
4006f85c 353632009-04-26 Pavel Roskin <proski@gnu.org>
35364
35365 * Makefile.in: Don't install empty manual pages if help2man is
35366 missing. Use help2man option for output, not shell redirection.
35367
5c77c3de 353682009-04-26 David S. Miller <davem@davemloft.net>
35369
35370 * util/grub-mkdevicemap.c (make_device_map): Add missing
35371 NESTED_FUNC_ATTR to process_device().
35372
033b10a8 353732009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
35374
35375 Test command
35376
35377 * commands/test.c: rewritten to use bash-like test
35378
e4343593 353792009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
35380
35381 Parttool autoloading and improvements
35382
7dd4a573 35383 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 35384 (parttool.lst): new target
35385 * genmk.rb: generate parttool-*
35386 (CLEANFILES): add #{parttool}
35387 (PARTTOOLFILES): new variable
35388 * genparttoollist.sh: new file
7dd4a573 35389 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 35390 (grub_pcpart_type): likewise
35391 * commands/parttool.c (helpmsg): new variable
35392 (grub_cmd_parttool): output help if not enough arguments are supplied
35393 autoload modules
35394 (GRUB_MOD_INIT(parttool)): use helpmsg
35395
0d312500 353962009-04-24 David S. Miller <davem@davemloft.net>
35397
7dd4a573 35398 Avoiding opening same device multiple times in device iterator.
0d312500 35399
35400 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 35401 and use it to build a list of partitions in iterate_disk() and
0d312500 35402 iterate_partition().
35403
ac20caff 35404 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
35405 on disk->data.
35406
0dcf7495 35407 * disk/ieee1275/nand.c (grub_nand_iterate): Return
35408 grub_devalias_iterate() result instead of unconditional 0.
35409 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
35410 Also, capture hook return value, either directly or via
35411 grub_children_iterate(), and propagate to caller.
35412 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
35413 grub_children_iterate): Return value is now 'int' instead of
35414 'grub_err_t'.
35415 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
35416 like a proper iterator, stopping when hooks return non-zero.
35417 (grub_devalias_iterate): Likewise.
35418
c8c08833 354192009-04-23 David S. Miller <davem@davemloft.net>
35420
35421 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
35422
f01005a8 354232009-04-22 David S. Miller <davem@davemloft.net>
35424
35425 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
35426 is larger than address_cells, use that value for address_cells too.
35427
4e8269da 35428 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
35429 IEEE1275_MAX_PATH_LEN): Define.
35430 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
35431 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
35432 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
35433 'devtype'. Explicitly NULL terminate devalias expansion.
35434
a1447506 35435 * util/sparc64/ieee1275/misc.c: New file.
35436 * util/sparc64/ieee1275/grub-setup.c: New file.
35437 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
35438 * util/sparc64/ieee1275/grub-mkimage.c: New file.
35439 * util/sparc64/ieee1275/grub-install.in: New file.
35440 * util/ieee1275/ofpath.c: New file.
35441 * util/ieee1275/devicemap.c: New file.
35442 * util/devicemap.c: New file.
35443 * util/deviceiter.c: New file.
35444 * kern/sparc64/ieee1275/init.c: New file.
35445 * include/grub/util/ofpath.h: New file.
35446 * include/grub/util/deviceiter.h: New file.
35447 * util/grub-mkdevicemap.c: Include deviceiter.h.
35448 Implement using grub_util_emit_devicemap_entry and
35449 grub_util_iterate_devices.
35450 * conf/i386-corebook.rmk: Build util/deviceiter.c and
35451 util/devicemap.c into grub-mkdevicemap
35452 * conf/i386-efi.rmk: Likewise.
35453 * conf/i386-ieee1275.rmk: Likewise.
35454 * conf/i386-pc.rmk: Likewise.
35455 * conf/powerpc-ieee1275.rmk: Likewise.
35456 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
35457 images and installation utilities. Build kernel as image
35458 instead of as elf binary. Use common rules as much as possible.
35459
7dd4a573 354602009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 35461
35462 Correct GPT definition
35463
7dd4a573 35464 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 35465 of "attrib" member
35466
c6c5219f 354672009-04-19 Felix Zielcke <fzielcke@z-51.de>
35468
35469 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
35470
0552ff9f 354712009-04-19 David S. Miller <davem@davemloft.net>
35472
35473 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
35474 (grub_rescue_cmd_linux): Rename to...
35475 (grub_cmd_linux): and fix prototype.
35476 (grub_rescue_cmd_initrd): Rename to...
35477 (grub_cmd_initrd): and fix prototype.
35478 (cmd_linux, cmd_initrd): New.
35479 (GRUB_MOD_INIT(linux)): Use grub_register_command().
35480 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
35481
d1a282fc 354822009-04-17 Pavel Roskin <proski@gnu.org>
35483
07c5039f 35484 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
35485 format.
35486 (grub_ohci_transfer): Likewise.
35487
b012002d 35488 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
35489
1bc09c35 35490 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
35491 return without a value. Fix inconsistent indentation.
35492
e0ff9126 35493 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
35494 match struct grub_fs.
35495
d1a282fc 35496 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
35497 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
35498 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
35499 * commands/lspci.c (grub_lspci_iter): Likewise.
35500
a96df3f2 355012009-04-16 Bean <bean123ch@gmail.com>
35502
35503 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
35504 value.
35505
41bb0fe9 355062009-04-15 Pavel Roskin <proski@gnu.org>
35507
35508 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
35509 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
35510 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
35511 definitions.
35512
596c6970 355132009-04-15 Felix Zielcke <fzielcke@z-51.de>
35514
35515 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 35516 that no multiple data or metadata areas are supported and `Unknown
596c6970 35517 metadata header'.
35518
7dd4a573 355192009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 35520
35521 Move loader out of the kernel
35522
35523 * kern/loader.c: moved to ...
35524 * commands/boot.c: ... moved here
35525 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
35526 * commands/boot.c (grub_cmd_boot): moved here. All users updated
35527 * include/grub/kernel.h (grub_machine_fini): export
35528 * include/grub/loader.h (grub_loader_is_loaded): update declaration
35529 (grub_loader_set): likewise
35530 (grub_loader_unset): likewise
35531 (grub_loader_boot): likewise
35532 * conf/common.rmk: new module boot.mod
35533 (pkglib_MODULES): add boot.mod
35534 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
35535 (grub_emu_SOURCES): likewise
35536 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
35537 (grub_emu_SOURCES): likewise
35538 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
35539 (grub_emu_SOURCES): likewise
35540 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
35541 (grub_emu_SOURCES): likewise
35542 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
35543 (grub_emu_SOURCES): likewise
7dd4a573 35544 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
35545 (grub_emu_SOURCES): likewise
0d5d5653 35546 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 35547 (grub_emu_SOURCES): likewise
0d5d5653 35548
7dd4a573 355492009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 35550
35551 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 35552
5999d619 35553 * kern/misc.c (grub_itoa): Removed function
35554 (grub_ltoa): likewise
35555 (grub_vsprintf): use grub_lltoa
35556
7dd4a573 355572009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 35558
35559 Restore grub-emu
35560
35561 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
35562 * conf/i386-coreboot.rmk: likewise
35563 * conf/i386-ieee1275.rmk: likewise
35564 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 35565
20318222 355662009-04-15 Felix Zielcke <fzielcke@z-51.de>
35567
35568 * INSTALL: Add that `./autogen.sh' needs to be run before
35569 `./configure.'.
35570
d05f0df3 355712009-04-14 Bean <bean123ch@gmail.com>
35572
35573 * Makefile.in (pkglib_DATA): Add handler.lst.
35574 (handler.lst): New rule.
35575
35576 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
35577 * conf/i386-coreboot.rmk: Likewise.
35578 * conf/i386-ieee1275.rmk: Likewise.
35579 * conf/i386-efi.rmk: Likewise.
35580 * conf/x86_64-efi.rmk: Likewise.
35581 * conf/powerpc-ieee1275.rmk: Likewise.
35582 * conf/sparc64-ieee1275.rmk: Likewise.
35583
35584 * genhandlerlist.sh: New file.
35585
35586 * genmk.rb: Add rules to generate handler.lst.
35587
35588 * include/grub/normal.h (grub_file_getline): New function definition.
35589 (read_handler_list): Likewise.
35590 (free_handler_list): Likewise.
35591
35592 * include/grub/term.h (grub_term_register_input): Add name parameter
35593 for auto generation of handler.lst.
35594 (grub_term_register_output): Likewise.
35595
35596 * normal/handler.c: New file.
35597
35598 * normal/main.c (get_line): Renamed to grub_file_getline.
35599 (read_config_file): Use the newly renamed grub_file_getline.
35600 (read_command_list): Likewise.
35601 (read_fs_list): Likewise.
35602 (grub_normal_execute): Call read_handler_list to parse handler.lst.
35603 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
35604
35605 * term/efi/console.c (grub_console_init): Add name parameter for auto
35606 generation of handler.lst.
35607 * term/gfxterm.c: Likewise.
35608 * term/i386/pc/at_keyboard.c: Likewise.
35609 * term/i386/pc/console.c: Likewise.
35610 * term/i386/pc/serial.c: Likewise.
35611 * term/i386/pc/vesafb.c: Likewise.
35612 * term/i386/pc/vga.c: Likewise.
35613 * term/i386/pc/vga_text.c: Likewise.
35614 * term/ieee1275/ofconsole.c: Likewise.
35615 * term/usb_keyboard.c: Likewise.
35616
33c846be 356172009-04-14 Bean <bean123ch@gmail.com>
35618
35619 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
35620 properly with null character.
35621
4484e01e 356222009-04-14 Felix Zielcke <fzielcke@z-51.de>
35623
35624 * configure: Remove.
35625 * config.h.in: Likewise.
f93d668e 35626 * stamp-h.in: Likewise.
4484e01e 35627 * DISTLIST: Likewise.
35628 * conf/common.mk: Likewise.
35629 * conf/i386-coreboot.mk: Likewise.
35630 * conf/i386-efi.mk: Likewise.
35631 * conf/i386-ieee1275.mk: Likewise.
35632 * conf/i386.mk: Likewise.
35633 * conf/i386-pc.mk: Likewise.
35634 * conf/powerpc-ieee1275.mk: Likewise.
35635 * conf/sparc64-ieee1275.mk: Likewise.
35636 * conf/x86_64-efi.mk: Likewise.
35637
35638 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
35639 develop on GRUB.
35640
7dd4a573 356412009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 35642 David S. Miller <davem@davemloft.net>
35643
35644 * util/hostdisk.c (make_device_name): Fix buffer length
35645 calculations.
35646
e25b5a8c 356472009-04-14 Felix Zielcke <fzielcke@z-51.de>
35648
35649 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
35650 <sys/param.h> and <sys/sysctl.h>.
35651 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
35652 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
35653 opening the device and reset them afterwards.
35654
1f1f580c 356552009-04-13 Pavel Roskin <proski@gnu.org>
35656
35657 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
35658 Reported by John Stanley <jpsinthemix@verizon.net>
35659
7ebc2d6b 356602009-04-13 Robert Millan <rmh@aybabtu.com>
35661
35662 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 35663 that name for menuentries when appropriate.
7ebc2d6b 35664
d8ba3667 356652009-04-13 Felix Zielcke <fzielcke@z-51.de>
35666
35667 * util/grub.d/10_freebsd.in: Add a missing `fi'.
35668
cba416eb 356692009-04-13 Robert Millan <rmh@aybabtu.com>
35670
35671 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
35672 to Linux, simply abort telling the user it's no longer supported.
35673
a547a745 356742009-04-13 Felix Zielcke <fzielcke@z-51.de>
35675
35676 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 35677 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 35678 `freebsd_loadenv' only when devices.hints exist.
35679
232a769c 356802009-04-13 Pavel Roskin <proski@gnu.org>
35681
35682 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
35683
c3012039 356842009-04-13 Felix Zielcke <fzielcke@z-51.de>
35685
35686 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
35687 partition number.
35688 (grub_drive): Likewise.
35689
234022fe 356902009-04-13 David S. Miller <davem@davemloft.net>
35691
35692 * kern/sparc64/ieee1275/ieee1275.c: New file.
35693 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
35694 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
35695 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
35696 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
35697 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
35698 grub_ieee1275_alloc_physmem): Declare new exported functions.
35699
d8e1836c 35700 * include/grub/sparc64/ieee1275/loader.h: New file.
35701 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35702 * include/grub/sparc64/kernel.h: Likewise.
35703 * loader/sparc64/ieee1275/linux.c: Likewise.
35704
96bd81ec 35705 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
35706 (grub_fstest_SOURCES): Likewise.
35707
6a4737e5 35708 * util/hostdisk.c (make_device_name): Do not make any assumptions
35709 about the length of drive names.
35710
1d7a72fd 35711 * kern/dl.c (grub_dl_load_file): Close file immediately when
35712 we are done using it.
35713
56bc2471 357142009-04-12 David S. Miller <davem@davemloft.net>
35715
35716 * kern/misc.c (grub_ltoa): Fix cast when handling negative
35717 values. Noticed by Pavel Roskin.
35718
df38d0bb 35719 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
35720 target compiler.
7dd4a573 35721
e382e93a 35722 * genmk.rb: Add more flexible image type specification, also
35723 pass --strip-unneeded to objcopy.
35724 * conf/i386-pc.rmk: Use *_FORMAT.
35725 * conf/i386-pc.mk: Rebuilt.
35726
f5dbbca9 35727 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
35728 (OFDISK_HASH_SZ): Define.
35729 (ofdisk_hash): New hash table.
35730 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
35731 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
35732 instead of device phandle which is not unique.
35733
91c88b12 35734 * kern/sparc64/ieee1275/init.c: Delete, replace with...
35735 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
35736 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
35737 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
35738 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
35739 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
35740 GRUB_KERNEL_MACHINE_DATA_END): Define.
35741 (grub_kernel_image_size, grub_total_module_size): Declare.
35742
5b5d4aa5 357432009-04-12 Pavel Roskin <proski@gnu.org>
35744
7dd4a573 35745 * configure.ac: Change the logic when we check for target tools.
35746 Do it when the target is specified and it's different from the
35747 specified value of the host.
5b5d4aa5 35748
c91e1793 357492009-04-11 Felix Zielcke <fzielcke@z-51.de>
35750
35751 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
35752 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
35753 GNU/kFreeBSD. Check if a device is a character device. Use
35754 DIOCGMEDIASIZE to get the size.
35755 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
35756 support for GNU/kFreeBSD.
35757 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
35758 is a character device instead of a block device. Add support for
35759 FreeBSD device names.
35760
35761 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
35762 is a character device instead of a block device.
35763
35764 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
35765 is a character device instead of a block device.
35766
b1ac8644 357672009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
35768
35769 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
35770 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
35771 FreeBSD. Check if a device is a character device. Use
35772 DIOCGMEDIASIZE to get the size.
35773 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
35774 support for FreeBSD.
35775 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
35776 is a character device instead of a block device. Add support for
35777 FreeBSD device names.
35778
35779 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
35780 a character device instead of a block device.
35781 (grub_util_check_char_device): New function.
35782
35783 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
35784 a character device instead of a block device.
35785
35786 * include/grub/util/getroot.h (grub_util_check_char_device): New
35787 prototype.
35788
a3f7515a 357892009-04-11 David S. Miller <davem@davemloft.net>
35790
35791 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
35792 static libgcc.
35793 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
35794 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
35795 function, if present.
35796 (__bswapdi2): Likewise.
35797
0d44993d 35798 * include/grub/sparc64/ieee1275/boot.h: New file.
35799 * boot/sparc64/ieee1275/boot.S: Likewise.
35800 * boot/sparc64/ieee1275/diskboot.S: Likewise.
35801
ed3d2bc2 35802 * kern/misc.c (grub_ltoa): New function.
35803 (grub_vsprintf): Use it to format 'long' integers.
35804
d3bfb59c 358052009-04-10 David S. Miller <davem@davemloft.net>
35806
35807 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
35808 slots are of type grub_ieee1275_cell_t.
35809 (grub_nand_read): Likewise.
35810 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
35811 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
35812 macros are used to compare values in arg/ret block of the call.
35813 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
35814 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
35815 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
35816 grub_ieee1275_instance_to_path, grub_ieee1275_write,
35817 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
35818 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
35819 grub_ieee1275_close, grub_ieee1275_set_property,
35820 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
35821 grub_ieee1275_cell_t.
35822 * kern/ieee1275/openfw.c (grub_map): Likewise.
35823 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
35824 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
35825
450e2238 35826 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
35827 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
35828 (grub_devalias_iterate): Likewise.
35829
7dd4a573 358302009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 35831
35832 UFS improvements
35833
35834 * fs/ufs.c (INODE_NBLOCKS): new definition
35835 (struct grub_ufs_dirent): added fields for non-BSD dirents
35836 (grub_ufs_get_file_block): fixed double indirect handling
35837 (grub_ufs_lookup_symlink): use more robust way to determine whether
35838 symlink is inline
35839 (grub_ufs_find_file): support for non-BSD dirents
35840 (grub_ufs_dir): support for non-BSD dirents
35841
e7e6862a 358422009-04-10 Bean <bean123ch@gnail.com>
35843
35844 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
35845 attribute, otherwise the size would be wrong for i386 platform.
35846
35847 * include/grub/pci.h (grub_pci_read_word): New inline function.
35848 (grub_pci_read_byte): Likewise.
35849 (grub_pci_write): Likewise.
35850 (grub_pci_write_word): Likewise.
35851 (grub_pci_write_byte): Likewise.
35852
35853 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
35854
35855 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
35856 (find_framebuf): Scan pci to locate the frame buffer address.
35857
35858 * commands/efi/fixvideo.c: New file.
35859
35860 * commands/efi/loadbios.c: Likewise.
35861
35862 * commands/memrw.c: Likewise.
35863
35864 * util/grub-dumpbios.in: Likewise.
35865
35866 * conf/common.rmk (grub-dumpbios): New utility.
35867 (pkglib_MODULES): New module memrw.mod.
35868 (memrw_mod_SOURCE): New macro.
35869 (memrw_mod_CFLAGS): Likewise.
35870 (memrw_mod_LDFLAGS): Likewise.
35871
7dd4a573 35872 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 35873 fixvideo.mod.
35874 (loadbios_mod_SOURCE): New macro.
35875 (loadbios_mod_CFLAGS): Likewise.
35876 (loadbios_mod_LDFLAGS): Likewise.
35877 (fixvideo_mod_SOURCE): Likewise.
35878 (fixvideo_mod_CFLAGS): Likewise.
35879 (fixvideo_mod_LDFLAGS): Likewise.
35880
7dd4a573 35881 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 35882 fixvideo.mod.
35883 (loadbios_mod_SOURCE): New macro.
35884 (loadbios_mod_CFLAGS): Likewise.
35885 (loadbios_mod_LDFLAGS): Likewise.
35886 (fixvideo_mod_SOURCE): Likewise.
35887 (fixvideo_mod_CFLAGS): Likewise.
35888 (fixvideo_mod_LDFLAGS): Likewise.
35889
af63ada2 358902009-04-08 Felix Zielcke <fzielcke@z-51.de>
35891
35892 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
35893
c2cdde70 358942009-04-07 David S. Miller <davem@davemloft.net>
35895
35896 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
35897 support for R_SPARC_OLO10 relocations. Fix compile warning for
35898 R_SPARC_WDISP30 case.
ea3f72cf 35899 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 35900
761319cf 359012009-04-06 Pavel Roskin <proski@gnu.org>
35902
1007d1f5 35903 * include/grub/misc.h (ARRAY_SIZE): New macro.
35904 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
35905 New macro.
35906 * loader/i386/linux.c (allocate_pages): Use free_pages().
35907 (grub_linux_unload): Don't use free_pages().
35908 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
35909 wrong index. Treat all other modes as text modes.
35910 (grub_cmd_linux): Initialize vid_mode unconditionally to
35911 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
35912
761319cf 35913 * commands/help.c (print_command_help): Use cmd->prio, not
35914 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
35915
ea761d40 359162009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 35917
ea761d40 35918 Parttool
35919
35920 * parttool/pcpart.c: new file
35921 * commands/parttool.c: likewise
35922 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
35923 (parttool_mod_SOURCES): new variable
35924 (parttool_mod_CFLAGS): likewise
35925 (parttool_mod_LDFLAGS): likewise
35926 (pcpart_mod_SOURCES): likewise
35927 (pcpart_mod_CFLAGS): likewise
35928 (pcpart_mod_LDFLAGS): likewise
7dd4a573 35929 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 35930 and parttool/pcpart.c
35931 * conf/i386-efi.rmk: likewise
35932 * conf/i386-ieee1275.rmk: likewise
35933 * conf/i386-pc.rmk: likewise
35934 * conf/powerpc-ieee1275.rmk: likewise
35935 * conf/sparc64-ieee1275.rmk: likewise
35936 * conf/x86_64-ieee1275.rmk: likewise
35937
05aaebfb 359382009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
35939
35940 Support for mtime and further expandability of dir command
35941
35942 * include/grub/lib/datetime.h: moved to ...
7dd4a573 35943 * include/grub/datetime.h: ... moved here and added
05aaebfb 35944 declaration of grub_unixtime2datetime. All users updated
7dd4a573 35945 * include/grub/fs.h: new syntax for dir and mtime functions in
35946 struct grub_fs
05aaebfb 35947 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
35948 and GRUB_FSHELP_FLAGS_MASK
35949 * commands/ls.c (grub_ls_list_files): Write mtime in long format
35950 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
35951 (grub_ext2_mtime): new function
35952 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
35953 (grub_hfsplus_mtime): new function
35954 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
35955 (GRUB_UFS_ATTR_FILE): likewise
35956 (GRUB_UFS_ATTR_LNK): likewise
35957 (struct grub_ufs_sblock): new fields mtime
35958 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
35959 all users updated
35960 (grub_ufs_dir): mtime support
35961 (grub_ufs_mtime): new function
35962 * fs/affs.c (grub_affs_dir): use new dir syntax
35963 * fs/afs.c (grub_afs_dir): likewise
35964 * fs/cpio.c (grub_cpio_dir): likewise
35965 * fs/fat.c (grub_fat_find_dir): likewise
35966 * fs/hfs.c (grub_hfs_dir): likewise
35967 * fs/iso9660.c (grub_iso9660_dir): likewise
35968 * fs/jfs.c (grub_jfs_dir): likewise
35969 * fs/minix.c (grub_minix_dir): likewise
35970 * fs/ntfs.c (grub_ntfs_dir): likewise
35971 * fs/reiserfs.c (grub_reiserfs_dir): likewise
35972 * fs/sfs.c (grub_sfs_dir): likewise
35973 * fs/xfs.c (grub_xfs_dir): likewise
35974 * util/hostfs.c (grub_hostfs_dir): likewise
35975 * lib/datetime.c: moved to ...
35976 * normal/datetime.c: ... moved here
35977 (grub_unixtime2datetime): new function
35978 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 35979 * normal/completion.c (iterate_dir): use new dir syntax
35980 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 35981 last modification time of a volume
7dd4a573 35982 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 35983 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 35984 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 35985 (normal_mod_SOURCES): likewise
35986 (datetime_mod_SOURCES): Removed lib/datetime.c
35987 * conf/i386-efi.rmk: likewise
7dd4a573 35988 * conf/i386-ieee1275.rmk: likewise
05aaebfb 35989 * conf/i386-pc.rmk: likewise
35990 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 35991 * conf/sparc64-ieee1275.rmk: likewise
35992 * conf/x86_64-efi.rmk: likewise
05aaebfb 35993
8a7e1a14 359942009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
35995
35996 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 35997
35998 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 35999 on grub_fat_find_dir
36000 (grub_fat_find_dir): use grub_fat_iterate_dir
36001 (grub_fat_label): likewise
36002
04186a9c 360032009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
36004
7dd4a573 36005 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 36006 and command.h
36007 remove extraneous kernel_elf_HEADERS
36008
da4c0bb6 360092009-04-04 Bean <bean123ch@gnail.com>
36010
36011 * include/grub/util/misc.h: Add dummy function fsync for mingw.
36012
36013 * util/misc.c: Likewise.
36014
54ad9555 360152009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
36016
36017 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
36018 instead of grub_printf.
36019
7a6bf9f2 360202009-04-03 Robert Millan <rmh@aybabtu.com>
36021
36022 * loader/i386/linux.c (grub_linux_setup_video): Fill
36023 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
36024 values from `mode info' structure instead of hardcoded
36025 values.
36026
3fcc2083 360272009-04-01 Pavel Roskin <proski@gnu.org>
36028
36029 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
36030 unused now.
36031 * genmk.rb: Likewise.
36032 * configure.ac: Likewise.
36033
5ec9740b 360342009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
36035
36036 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
36037 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
36038
5270cec8 360392009-04-01 David S. Miller <davem@davemloft.net>
36040
36041 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 36042 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 36043 (grub_setjmp): Mark with 'returns_twice' attribute.
36044 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
36045 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
36046 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
36047
9c3dd854 360482009-04-01 Robert Millan <rmh@aybabtu.com>
36049
36050 Reapply fix from 2008-07-28 which was accidentally reverted; also
36051 perform the same fix to a similar check in same function.
36052
36053 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36054 with the same number are found, just use issue a warning with
36055 grub_dprintf(), as this error has been reported to be non-fatal.
36056
0d818b7e 360572009-03-31 Pavel Roskin <proski@gnu.org>
36058
36059 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
36060 for cross-compilation.
36061
95646d92 360622009-03-30 Robert Millan <rmh@aybabtu.com>
36063
36064 Fix i386-ieee1275 build.
36065
36066 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
36067 Remove declaration.
36068
6a003ed1 360692009-03-30 Pavel Roskin <proski@gnu.org>
36070
36071 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
36072 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
36073 zero-terminated, rely only on the strlen value. Fix comparison
36074 of strings differing in length.
36075
92f33540 360762009-03-30 Robert Millan <rmh@aybabtu.com>
36077
36078 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
36079 checking for abi version. Improve error messages on BIOS to notify
36080 user about `linux16' command.
36081
a8c48fd5 360822009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
36083
f968172e 36084 Leak fixes
a8c48fd5 36085
f968172e 36086 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
36087 in case of collision
36088 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 36089
9c323f09 360902009-03-29 Robert Millan <rmh@aybabtu.com>
36091
36092 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
36093 set `vid_mode' accordingly.
36094 (grub_linux_boot): Process `vid_mode' and set video mode.
36095
ae68f423 360962009-03-29 Robert Millan <rmh@aybabtu.com>
36097
36098 * util/grub.d/10_linux.in (linux_entry): New function.
36099 Factorize generation of Linux boot entries.
36100
5709cfc4 361012009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
36102
36103 Make the format of Environment Block plain text. The boot loader
36104 part is not tested well yet.
7dd4a573 36105
5709cfc4 36106 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
36107 (buffer): Removed.
36108 (envblk): Likewise.
36109 (usage): Remove "info" and "clear". Add "unset". Update the
36110 description of "set", as this does not delete variables any
36111 longer.
36112 (create_envblk_file): Complete rewrite.
36113 (open_envblk_file): Likewise.
36114 (cmd_info): Removed.
36115 (cmd_list): Likewise.
36116 (cmd_set): Likewise.
36117 (cmd_clear): Likewise.
36118 (list_variables): New function.
36119 (write_envblk): Likewise.
36120 (set_variables): Likewise.
36121 (unset_variables): Likewise.
36122 (main): Complete rewrite.
36123
36124 * commands/loadenv.c (buffer): Removed.
36125 (envblk): Likewise.
36126 (open_envblk_file): New function.
36127 (read_envblk_file): Complete rewrite.
36128 (grub_cmd_load_env): Likewise.
36129 (grub_cmd_list_env): Likewise.
36130 (struct blocklist): New struct.
36131 (free_blocklists): New function.
36132 (check_blocklists): Likewise.
36133 (write_blocklists): Likewise.
36134 (grub_cmd_save_env): Complete rewrite.
36135
36136 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
36137 a plain text signature.
36138 (GRUB_ENVBLK_MAXLEN): Removed.
36139 (struct grub_envblk): Complete rewrite.
36140 (grub_envblk_find): Removed.
36141 (grub_envblk_insert): Likewise.
36142 (grub_envblk_open): New prototype.
36143 (grub_envblk_set): Likewise.
36144 (grub_envblk_delete): Put const to VALUE.
36145 (grub_envblk_iterate): Put const to NAME and VALUE.
36146 (grub_envblk_close): New prototype.
36147 (grub_envblk_buffer): New inline function.
36148 (grub_envblk_size): Likewise.
36149
36150 * lib/envblk.c: Include grub/mm.h.
36151 (grub_env_find): Removed.
36152 (grub_envblk_open): New function.
36153 (grub_envblk_close): Likewise.
36154 (escaped_value_len): Likewise.
36155 (find_next_line): Likewise.
36156 (grub_envblk_insert): Removed.
36157 (grub_envblk_set): New function.
36158 (grub_envblk_delete): Complete rewrite.
36159 (grub_envblk_iterate): Likewise.
36160
a9368fd3 361612009-03-28 Robert Millan <rmh@aybabtu.com>
36162
36163 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
36164 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
36165 variables. Use 16-bit loader.
36166 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
36167 loader.
36168 * kern/i386/loader.S (grub_linux_boot): Rename to ...
36169 (grub_linux16_boot): ... this. Update all users.
36170 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
36171 (grub_linux_boot): ... this. Update all users.
36172
36173 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
36174 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
36175 commands to `linux16' and `initrd16'.
36176 (GRUB_MOD_FINI(linux)): Rename to ...
36177 (GRUB_MOD_FINI(linux16)): ... this.
36178
e4dd5a7e 361792009-03-24 Pavel Roskin <proski@gnu.org>
36180
36181 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
36182 not just for compilation.
36183
c04d6e05 361842009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
36185
36186 Move multiboot helper out of kernel
36187
36188 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
36189 `loader/i386/multiboot_helper.S'.
36190 * conf/i386-coreboot.rmk: Likewise
36191 * conf/i386-ieee1275.rmk: Likewise
36192
36193 * kern/i386/loader.S: Move multiboot helpers from here...
36194 * loader/i386/multiboot_helper.S: ...moved here
36195 * include/grub/i386/loader.h: Move declarations of multiboot
36196 helpers from here...
36197 * include/grub/i386/multiboot.h: ...moved here
36198 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
36199
42a5b3fc 362002009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36201
36202 * kern/env.c (grub_env_context_open): Added an argument to specify
36203 whether a new context inherits exported variables from current
36204 one. This is useful when making a sandbox to interpret a config
36205 file.
36206 All callers updated.
36207
36208 * include/grub/env.h (grub_env_context_open): Updated the prototype.
36209
b28bbc4e 362102009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36211
36212 * kern/env.c (grub_env_context_close): Fix memory leaks.
36213
f04f02e4 362142009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36215
36216 * normal/main.c (grub_normal_execute): Added an argument
36217 BATCH to specify if an interactive interface should be provided
36218 after reading a config file.
36219 All callers updated.
36220 (read_command_list): Prevent being executed twice.
36221 (read_fs_list): Likewise.
36222
42a5b3fc 36223 * include/grub/normal.h (grub_normal_execute): Updated the
36224 prototype.
f04f02e4 36225
41473ac2 362262009-03-22 Pavel Roskin <proski@gno.org>
36227
fbc00b0c 36228 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
36229 _start.
36230 * kern/i386/pc/startup.S: Likewise.
36231 * kern/i386/efi/startup.S: Likewise.
36232 * kern/i386/ieee1275/startup.S: Likewise.
36233 * kern/i386/coreboot/startup.S: Likewise.
36234 * kern/x86_64/efi/startup.S: Likewise.
36235
41473ac2 36236 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
36237 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
36238 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
36239
2274cc8f 362402009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
36241
36242 Bugfixes in multiboot for bugs uncovered by solaris kernel.
36243
36244 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
36245 limit detection.
36246 Use vaddr of correct segment for entry_point.
36247
b1b797cb 362482009-03-21 Bean <bean123ch@gmail.com>
36249
36250 * commands/blocklist.c: Add include file <grub/command.h>, remove
36251 <grub/normal.h> and <grub/arg.h>.
36252 (grub_cmd_blocklist): Use the new command interface.
36253 (GRUB_MOD_INIT): Likewise.
36254 (GRUB_MOD_FINI): Likewise.
36255 * commands/boot.c: Likewise.
36256 * commands/cat.c: Likewise.
36257 * commands/cmp.c: Likewise.
36258 * commands/configfile.c: Likewise.
36259 * commands/crc.c: Likewise.
36260 * commands/echo.c: Likewise.
36261 * commands/halt.c: Likewise.
36262 * commands/handler.c: Likewise.
36263 * commands/hdparm.c: Likewise.
36264 * commands/help.c: Likewise.
36265 * commands/hexdump.c: Likewise.
36266 * commands/loadenv.c: Likewise.
36267 * commands/ls.c: Likewise.
36268 * commands/lsmmap.c: Likewise.
36269 * commands/lspci.c: Likewise.
36270 * commands/loadenv.c: Likewise.
36271 * commands/read.c: Likewise.
36272 * commands/reboot.c: Likewise.
36273 * commands/search.c: Likewise.
36274 * commands/sleep.c: Likewise.
36275 * commands/test.c: Likewise.
36276 * commands/usbtest.c: Likewise.
36277 * commands/videotest.c: Likewise.
36278 * commands/i386/cpuid.c: Likewise.
36279 * commands/i386/pc/halt.c: Likewise.
36280 * commands/i386/pc/play.c: Likewise.
36281 * commands/i386/pc/pxecmd.c: Likewise.
36282 * commands/i386/pc/vbeinfo.c: Likewise.
36283 * commands/i386/pc/vbetest.c: Likewise.
36284 * commands/ieee1275/suspend.c: Likewise.
36285 * disk/loopback.c: Likewise.
36286 * font/font_cmd.c: Likewise.
36287 * hello/hello.c: Likewise.
36288 * loader/efi/appleloader.c: Likewise.
36289 * loader/efi/chainloader.c: Likewise.
36290 * loader/i386/bsd.c: Likewise.
36291 * loader/i386/efi/linux.c: Likewise.
36292 * loader/i386/ieee1275/linux.c: Likewise.
36293 * loader/i386/linux.c: Likewise.
36294 * loader/i386/pc/chainloader.c: Likewise.
36295 * loader/i386/pc/linux.c: Likewise.
36296 * loader/powerpc/ieee1275/linux.c: Likewise.
36297 * loader/multiboot_loader.c: Likewise.
36298 * term/gfxterm.c: Likewise.
36299 * term/i386/pc/serial.c: Likewise.
36300 * term/terminfo.c: Likewise.
36301
36302 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
36303 * term/i386/pc/vga.c: Likewise.
36304 * video/readers/jpeg.c: Likewise.
36305 * video/readers/png.c: Likewise.
36306 * video/readers/tga.c: Likewise.
36307
36308 * util/grub-fstest (cmd_loopback): Removed.
36309 (cmd_blocklist): Likewise.
36310 (cmd_ls): Likewise.
36311 (grub_register_command): Likewise.
36312 (grub_unregister_command): Likewise.
36313 (execute_command): Use grub_command_find to locate command and execute
36314 it.
36315
36316 * include/grub/efi/chainloader.h: Removed.
36317 * loader/efi/chainloader_normal.c: Likewise.
36318 * loader/i386/bsd_normal.c: Likewise.
36319 * loader/i386/pc/chainloader_normal.c: Likewise.
36320 * loader/i386/pc/multiboot_normal.c: Likewise.
36321 * loader/linux_normal.c: Likewise.
36322 * loader/multiboot_loader_normal.c: Likewise.
36323 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
36324
36325 * gencmdlist.sh: Scan new registration command grub_register_extcmd
36326 and grub_register_command_p1.
36327
36328 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
36329 kern/command.c, lib/arg.c and commands/extcmd.c.
36330 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
36331 (minicmd_mod_SOURCES): New variable.
36332 (minicmd_mod_CFLAGS): Likewise.
36333 (minicmd_mod_LDFLAGS): Likewise.
36334 (extcmd_mod_SOURCES): Likewise.
36335 (extcmd_mod_CFLAGS): Likewise.
36336 (extcmd_mod_LDFLAGS): Likewise.
36337 (boot_mod_SOURCES): Removed.
36338 (boot_mod_CFLAGS): Likewise.
36339 (boot_mod_LDFLAGS): Likewise.
36340
36341 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
36342 kern/corecmd.c.
36343 (kernel_img_HEADERS): Add command.h.
36344 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
36345 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
36346 and lib/arg.c.
36347 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
36348 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
36349 remove the corresponding normal mode command.
36350 (normal_mod_SOURCES): Remove normal/arg.c.
36351 * conf/i386-coreboot.rmk: Likewise.
36352 * conf/i386-efi.rmk: Likewise.
36353 * conf/i386-ieee1275.rmk: Likewise.
36354 * conf/powerpc-ieee1275.rmk: Likewise.
36355 * conf/x86_64-efi.rmk: Likewise.
36356
36357 * include/grub/arg.h: Move from here ...
36358 * include/grub/lib/arg.h: ... to here.
36359
36360 * normal/arg.c: Move from here ...
36361 * lib/arg.c: ... to here.
36362
36363 * commands/extcmd.c: New file.
36364 * commands/minicmd.c: Likewise.
36365 * include/grub/command.h: Likewise.
36366 * include/grub/extcmd.h: Likewise.
36367 * kern/command.c: Likewise.
36368 * kern/corecmd.c: Likewise.
36369
36370 * kern/list.c (grub_list_iterate): Return int instead of void.
36371 (grub_list_insert): New function.
36372 (grub_prio_list_insert): Likewise.
36373
36374 * kern/rescue.c (grub_rescue_command): Removed.
36375 (grub_rescue_command_list): Likewise.
36376 (grub_rescue_register_command): Likewise.
36377 (grub_rescue_unregister_command): Likewise.
36378 (grub_rescue_cmd_boot): Move to minicmd.c
36379 (grub_rescue_cmd_help): Likewise.
36380 (grub_rescue_cmd_info): Likewise.
36381 (grub_rescue_cmd_boot): Likewise.
36382 (grub_rescue_cmd_testload): Likewise.
36383 (grub_rescue_cmd_dump): Likewise.
36384 (grub_rescue_cmd_rmmod): Likewise.
36385 (grub_rescue_cmd_lsmod): Likewise.
36386 (grub_rescue_cmd_exit): Likewise.
36387 (grub_rescue_print_devices): Moved to corecmd.c.
36388 (grub_rescue_print_files): Likewise.
36389 (grub_rescue_cmd_ls): Likewise.
36390 (grub_rescue_cmd_insmod): Likewise.
36391 (grub_rescue_cmd_set): Likewise.
36392 (grub_rescue_cmd_unset): Likewise.
7d074e3c 36393 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 36394 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 36395 commands, remove grub_rescue_register_command calls.
b1b797cb 36396
7d074e3c 36397 * normal/command.c (grub_register_command): Removed.
b1b797cb 36398 (grub_unregister_command): Likewise.
36399 (grub_command_find): Likewise.
36400 (grub_iterate_commands): Likewise.
36401 (rescue_command): Likewise.
36402 (export_command): Moved to corecmd.c.
36403 (set_command): Removed.
36404 (unset_command): Likewise.
36405 (insmod_command): Likewise.
36406 (rmmod_command): Likewise.
36407 (lsmod_command): Likewise.
36408 (grub_command_init): Likewise.
36409
36410 * normal/completion.c (iterate_command): Use cmd->prio to check for
36411 active command.
36412 (complete_arguments): Use grub_extcmd_t structure to find options.
36413 (grub_normal_do_completion): Change function grub_iterate_commands to
36414 grub_command_iterate.
36415
36416 * normal/execute.c (grub_script_execute_cmd): No need to parse
36417 argument here.
36418
36419 * normal/main.c (grub_dyncmd_dispatcher): New function.
36420 (read_command_list): Register unload commands as dyncmd.
36421 (grub_cmd_normal): Use new command interface, register rescue,
36422 unregister normal at entry, register normal, unregister rescue at exit.
36423
36424 * include/grub/list.h (grub_list_test_t): New type.
36425 (grub_list_iterate): Return int instead of void.
36426 (grub_list_insert): New function.
36427 (GRUB_AS_NAMED_LIST_P): New macro.
36428 (GRUB_AS_PRIO_LIST): Likewise.
36429 (GRUB_AS_PRIO_LIST_P): Likewise.
36430 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
36431 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
36432 (grub_prio_list): New structure.
36433 (grub_prio_list_insert): New function.
36434 (grub_prio_list_remove): New inline function.
36435
36436 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
36437 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
36438 (GRUB_COMMAND_FLAG_MENU): Likewise.
36439 (GRUB_COMMAND_FLAG_BOTH): Likewise.
36440 (GRUB_COMMAND_FLAG_TITLE): Likewise.
36441 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
36442 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
36443 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
36444 (grub_command): Likewise.
36445 (grub_register_command): Likewise.
36446 (grub_command_find): Likewise.
36447 (grub_iterate_commands): Likewise.
36448 (grub_command_init): Likewise.
36449 (grub_arg_parse): Likewise.
36450 (grub_arg_show_help): Likewise.
36451
36452 * include/grub/rescue.h (grub_rescue_register_command): Removed.
36453 (grub_rescue_unregister_command): Likewise.
36454
36455 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
36456 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
36457 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
36458
36459 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
36460 grub_rescue_cmd_initrd.
36461 * include/grub/i386/loader.h: Likewise.
36462 * include/grub/x86_64/loader.h: Likewise.
36463
36464 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
36465
1f4147aa 364662009-03-21 Bean <bean123ch@gmail.com>
36467
36468 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
36469 instead of stat in mingw environment.
36470
36471 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
36472
36473 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
36474
36475 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
36476 AC_CONFIG_LINKS.
36477
2156d5ba 364782009-03-21 Bean <bean123ch@gmail.com>
36479
36480 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
36481 out of range error.
36482
177b82ca 364832009-03-18 Michel Dänzer <michel@daenzer.net>
36484
36485 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
36486 checking inode flags for EXT4_EXTENTS_FLAG.
36487
14aad807 364882009-03-18 Robert Millan <rmh@aybabtu.com>
36489
36490 * loader/i386/linux.c: Include `<grub/video.h>' and
36491 `<grub/i386/pc/vbe.h>'..
36492 (grub_linux_setup_video): New function. Loosely based on the EFI one.
36493 (grub_linux32_boot): Attempt to configure video settings with
36494 grub_linux_setup_video().
36495 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
36496 to avoid grub_console_fini() which would step out of graphical mode
36497 unconditionally.
36498
8cf83a27 364992009-03-14 Robert Millan <rmh@aybabtu.com>
36500
36501 Fix build on powerpc.
36502 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
36503
40164e75 365042009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
36505
36506 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
36507 background image command.
36508
c58bc32a 365092009-03-12 Colin D Bennett <colin@gibibit.com>
36510
36511 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
36512 (grub_gfxterm_putchar): Extract pairs of identical calls to
36513 draw_cursor out of conditional blocks.
36514
5415144a 365152009-03-11 Pavel Roskin <proski@gnu.org>
36516
36517 * fs/hfs.c (grub_hfs_strncasecmp): New function.
36518 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
36519
6394042e 365202009-03-11 Robert Millan <rmh@aybabtu.com>
36521
36522 * loader/i386/multiboot_elfxx.c
36523 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
36524
b7b50e5f 365252009-03-11 Felix Zielcke <fzielcke@z-51.de>
36526
36527 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
36528 `kern/handler.c'.
36529
1ca7fc96 365302009-03-11 Robert Millan <rmh@aybabtu.com>
36531
36532 * loader/i386/multiboot.c (code_size): New variable.
36533 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 36534 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 36535 4-byte alignment to MBI and others by increasing
7d074e3c 36536 `boot_loader_name_length' appropriately.
1ca7fc96 36537
36538 * loader/i386/multiboot_elfxx.c
36539 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
36540
a83ea1d2 365412009-03-09 Felix Zielcke <fzielcke@z-51.de>
36542
36543 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
36544 `fs/ext2.c'.
36545
aa9f3bff 365462009-03-08 Robert Millan <rmh@aybabtu.com>
36547
36548 Make loader/i386/linux.c usable on i386-pc again.
36549
36550 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
36551 memory to heap.
36552 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
36553 `#error' stanza.
36554
d8b3b60e 365552009-03-07 Bean <bean123ch@gmail.com>
36556
36557 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
36558 allocation.
36559
b362c9e9 365602009-03-06 Robert Millan <rmh@aybabtu.com>
36561
36562 Fix display issue on terminals with screen size other than 80x25
36563 (e.g. gfxterm with resolution higher than 640x480).
36564
36565 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 36566 position relative to the center of the terminal instead of relying
b362c9e9 36567 on a hardcoded offset.
36568
9304eef1 365692009-03-04 Robert Millan <rmh@aybabtu.com>
36570
36571 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
36572 installed.
36573
36574 * Makefile.in (host_kernel): New variable.
36575 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
36576 scripts instead of just the windows one.
36577 * configure.ac: Initialize and AC_SUBST `host_kernel'.
36578
eabc95fb 365792009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 36580
36581 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
36582 `kern/handler.c'.
36583 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36584 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36585 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36588 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36589
ceb1223c 365902009-03-04 Felix Zielcke <fzielcke@z-51.de>
36591
36592 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
36593 or if there's no space for the disk label and print the partition number on a
36594 invalid magic.
36595
4910684a 365962009-03-04 Felix Zielcke <fzielcke@z-51.de>
36597
36598 * util/misc.c: Include <time.h>.
36599 (grub_millisleep): New function.
36600
7e9ca17a 366012009-03-04 Bean <bean123ch@gmail.com>
36602
36603 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
36604 another option -mno-red-zone.
36605
36606 * commands/handler.c: Change module description.
36607
36608 * kern/handler.c: Add missing space at the end of description line.
36609
36610 * kern/list.c: Likewise.
36611
f501677c 366122009-03-03 Robert Millan <rmh@aybabtu.com>
36613
36614 Move more components to the relocation area, and fix mbi pointer
36615 handling to use the destination rather than the origin (thanks to
36616 Vladimir Serbinenko for spotting).
36617
36618 * loader/i386/multiboot.c (mbi_dest): New variable.
36619 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
36620 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
36621 relocation area.
36622
9902d047 366232009-03-01 Bean <bean123ch@gmail.com>
36624
50fb7002 36625 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 36626 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
36627 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
36628 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
36629
36630 * loader/i386/efi/linux.c (acpi_guid): New variable.
36631 (acpi_guid): Likewise.
36632 (EBDA_SEG_ADDR): New constant.
36633 (LOW_MEM_ADDR): Likewise.
36634 (FAKE_EBDA_SEG): Likewise.
36635 (fake_bios_data): New function.
36636 (grub_linux_boot): Call fake_bios_data.
36637
71b9f361 366382009-03-01 Bean <bean123ch@gmail.com>
36639
36640 * commands/terminal.c: Removed.
36641
36642 * commands/handler.c: New file.
36643
36644 * include/grub/list.h: Likewise.
36645
36646 * include/grub/handler.h: Likewise.
36647
36648 * kern/list.c: Likewise.
36649
36650 * kern/handler.c: Likewise.
36651
36652 * kern/term.h: Include header file <grub/handler.h>.
36653 (grub_term_input): Move next field to the beginning.
36654 (grub_term_output): Likewise.
36655 (grub_term_input_class): New variable.
36656 (grub_term_output_class): Likewise.
36657 (grub_term_register_input): Changed to inline function.
36658 (grub_term_register_output): Likewise.
36659 (grub_term_unregister_input): Likewise.
36660 (grub_term_unregister_output): Likewise.
36661 (grub_term_set_current_input): Likewise.
36662 (grub_term_set_current_output): Likewise.
36663 (grub_term_get_current_input): Likewise.
36664 (grub_term_get_current_output): Likewise.
36665 (grub_term_iterate_input): Removed.
36666 (grub_term_iterate_output): Likewise.
36667
36668 * kern/term.c (grub_term_list_input): Removed.
36669 (grub_term_list_output): Likewise.
36670 (grub_term_input_class): New variable.
36671 (grub_term_output_class): Likewise.
50fb7002 36672 (grub_cur_term_input): Change variable as macro.
71b9f361 36673 (grub_cur_term_output): Likewise.
36674 (grub_term_register_input): Removed.
36675 (grub_term_register_output): Likewise.
36676 (grub_term_unregister_input): Likewise.
36677 (grub_term_unregister_output): Likewise.
36678 (grub_term_set_current_input): Likewise.
36679 (grub_term_set_current_output): Likewise.
36680 (grub_term_iterate_input): Likewise.
36681 (grub_term_iterate_output): Likewise.
36682 (grub_term_get_current_input): Likewise.
36683 (grub_term_get_current_output): Likewise.
36684
36685 * util/grub-editenv.c: Include header file <grub/handler.h>.
36686 (grub_term_get_current_input): Removed.
36687 (grub_term_get_current_output): Likewise.
36688 (grub_term_input_class): New variable.
50fb7002 36689 (grub_term_output_class): Likewise.
71b9f361 36690
36691 * util/grub-fstest.c (grub_term_get_current_input): Removed.
36692 (grub_term_get_current_output): Likewise.
36693 (grub_term_input_class): New variable.
50fb7002 36694 (grub_term_output_class): Likewise.
71b9f361 36695
36696 * util/grub-probe.c (grub_term_get_current_input): Removed.
36697 (grub_term_get_current_output): Likewise.
36698 (grub_term_input_class): New variable.
50fb7002 36699 (grub_term_output_class): Likewise.
71b9f361 36700
36701 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
36702 (grub_term_get_current_output): Likewise.
36703 (grub_term_input_class): New variable.
50fb7002 36704 (grub_term_output_class): Likewise.
71b9f361 36705
36706 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
36707 (terminal_mod_SOURCES): Likewise.
36708 (terminal_mod_CFLAGS): Likewise.
36709 (terminal_mod_LDFLAGS): Likewise.
36710
36711 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
36712 handler.c.
36713 (kernel_img_SOURCES): Add list.c and handler.c.
36714 (kernel_img_HEADERS): Add list.h and handler.h.
36715
36716 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
36717 handler.c.
36718 (kernel_mod_SOURCES): Add list.c and handler.c.
36719 (kernel_mod_HEADERS): Add list.h and handler.h.
36720
36721 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
36722 handler.c.
36723 (kernel_elf_SOURCES): Add list.c and handler.c.
36724 (kernel_elf_HEADERS): Add list.h and handler.h.
36725
36726 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
36727 handler.c.
36728 (kernel_elf_SOURCES): Add list.c and handler.c.
36729 (kernel_elf_HEADERS): Add list.h and handler.h.
36730
36731 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
36732 handler.c.
36733 (kernel_mod_SOURCES): Add list.c and handler.c.
36734 (kernel_mod_HEADERS): Add list.h and handler.h.
36735
36736 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
36737 handler.c.
36738 (kernel_elf_SOURCES): Add list.c and handler.c.
36739 (kernel_elf_HEADERS): Add list.h and handler.h.
36740
8a31787f 367412009-02-27 Robert Millan <rmh@aybabtu.com>
36742
36743 Factorize elf32 / elf64 code in Multiboot loader. This will
36744 prevent it from getting out of sync again.
36745
36746 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
36747 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
36748 grub_multiboot_load_elf64): Move from here ...
36749 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
36750 grub_multiboot_load_elf): ... to here (new file).
36751
51cd3dfc 367522009-02-27 Robert Millan <rmh@aybabtu.com>
36753
36754 * util/grub.d/10_linux.in: Rename "single-user mode" to
36755 "recovery mode".
36756
6e8c9c3a 367572009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
36758
36759 Don't leak in SCSI code.
36760 * disk/scsi.c (grub_scsi_close): free `scsi'.
36761
4b6bf4f9 367622009-02-27 Robert Millan <rmh@aybabtu.com>
36763
36764 * loader/i386/pc/multiboot.c: Move from here ...
36765 * loader/i386/multiboot.c: ... to here. Update all users.
36766
b9413424 367672009-02-27 Robert Millan <rmh@aybabtu.com>
36768
36769 Patch from Alexandre Bique <bique.alexandre@gmail.com>
36770 * util/i386/pc/grub-setup.c (setup): Fix directory path.
36771
50fb7002 367722009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 36773
36774 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
36775 b-tree.
36776
8cc50345 367772009-02-27 Robert Millan <rmh@aybabtu.com>
36778
36779 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
36780 `0x' qualifier as 0 when base is specified as parameter).
36781
6e09b8b7 367822009-02-24 Bean <bean123ch@gmail.com>
36783
36784 * configure.ac: Check for -mcmodel=large in x86_64 target.
36785
36786 * include/grub/efi/api.h (efi_call_10): New macro.
36787 (efi_wrap_10): New function.
36788
36789 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
36790 (GRUB_PE32_REL_BASED_HIGH): Likewise.
36791 (GRUB_PE32_REL_BASED_LOW): Likewise.
36792 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
36793 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
36794 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
36795 (GRUB_PE32_REL_BASED_SECTION): Likewise.
36796 (GRUB_PE32_REL_BASED_REL): Likewise.
36797 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
36798 (GRUB_PE32_REL_BASED_DIR64): Likewise.
36799 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
36800
36801 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
36802 issue.
36803
36804 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
36805 (efi_wrap_10): New function.
36806
36807 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
36808
36809 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
36810 MB/MBP model (NV chipset).
36811 (devdata_devs): Add devpath_5 to the list.
36812
36813 * load/i386/efi/linux.c (video_base): Remove variable.
36814 (RGB_MASK): New macro.
36815 (RGB_MAGIC): Likewise.
36816 (LINE_MIN): Likewise.
36817 (LINE_MAX): Likewise.
36818 (FBTEST_STEP): Likewise.
36819 (FBTEST_COUNT): Likewise.
36820 (fb_list): New variable.
36821 (grub_find_video_card): Remove function.
36822 (find_framebuf): New function.
36823 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
36824 line length.
36825
36826 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
36827 problem for x86_64.
36828
74b21bee 368292009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
36830
36831 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
36832
36833 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
36834 coding tool name.
36835
a455f472 368362009-02-22 Robert Millan <rmh@aybabtu.com>
36837
36838 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
36839 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
36840 in our relocation, instead of using it directly from heap. Also
36841 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
36842
6374daf3 368432009-02-21 Robert Millan <rmh@aybabtu.com>
36844
36845 Implement USB keyboard support (based on patch by Marco Gerards)
36846
36847 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
36848 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
36849 (usb_keyboard_mod_LDFLAGS): New variables.
36850
36851 * term/usb_keyboard.c: New file.
36852
8fa4ea70 368532009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
36854
36855 Corrected wrong declaration
36856
36857 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
36858
353976ac 368592009-02-14 Christian Franke <franke@computer.org>
36860
36861 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
36862 (grub_lspci_iter): Print class code and programming interface byte.
36863
6aa1169b 368642009-02-14 Christian Franke <franke@computer.org>
36865
36866 * gendistlist.sh: Ignore `.svn' directories.
36867
265372ca 368682009-02-14 Felix Zielcke <fzielcke@z-51.de>
36869
36870 * fs/fat.c: Add 2009 to Copyright line.
36871
9ff516f3 368722009-02-14 Christian Franke <franke@computer.org>
36873
36874 * commands/hdparm.c: New file. Provides `hdparm' command
36875 which sends ATA commands via grub_disk_ata_pass_through ().
36876
36877 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
36878
36879 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
36880 and <grub/cpu/io.h> to include/grub/ata.h.
36881 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
36882 (GRUB_CDROM_SECTOR_SIZE): Remove.
36883 (GRUB_ATA_*): Move to include/grub/ata.h.
36884 (GRUB_ATAPI_*): Likewise.
36885 (enum grub_ata_commands): Likewise.
36886 (enum grub_ata_timeout_milliseconds): Likewise.
36887 (struct grub_ata_device): Likewise.
36888 (grub_ata_regset): Likewise.
36889 (grub_ata_regget): Likewise.
36890 (grub_ata_regset2): Likewise.
36891 (grub_ata_regget2): Likewise.
36892 (grub_ata_check_ready): Likewise.
36893 (grub_ata_wait_not_busy): Remove static, exported in
36894 include/grub/ata.h.
36895 (grub_ata_wait_drq): Likewise.
36896 (grub_ata_pio_read): Likewise.
36897
36898 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
36899 function for hdparm.mod.
36900
36901 * include/grub/ata.h: New file, contains declarations from
36902 disk/ata.c.
36903 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
36904
36905 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
36906 (grub_disk_ata_pass_through): New exported variable.
36907
36908 * kern/disk.c (grub_disk_ata_pass_through): New variable.
36909
772e23da 369102009-02-13 Colin D Bennett <colin@gibibit.com>
36911
36912 Support multiple fallback entries, and provide an API to support
36913 executing default+fallback menu entries. Renamed the `terminal' menu
36914 viewer to `text'.
36915
36916 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
36917 variable declaration.
36918 (grub_menu_execute_callback): New structure declaration.
36919 (grub_menu_execute_callback_t): New typedef.
36920 (grub_menu_execute_with_fallback): New function declaration.
36921 (grub_menu_get_entry): Likewise.
36922 (grub_menu_get_timeout): Likewise.
36923 (grub_menu_set_timeout): Likewise.
36924
36925 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
36926
36927 * normal/menu.c (grub_wait_after_message): Moved to
36928 `normal/menu_text.c'.
36929 (draw_border): Likewise.
36930 (print_message): Likewise.
36931 (print_entry): Likewise.
36932 (print_entries): Likewise.
36933 (grub_menu_init_page): Likewise.
36934 (get_entry_number): Likewise.
36935 (print_timeout): Likewise.
36936 (run_menu): Likewise.
36937 (grub_menu_execute_entry): Likewise.
36938 (show_text_menu): Likewise.
36939 (get_and_remove_first_entry_number): New function.
36940 (grub_menu_execute_with_fallback): Likewise.
36941 (get_entry): Renamed to ...
36942 (grub_menu_get_entry): .. this and made it global.
36943 (get_timeout): Renamed to ...
36944 (grub_menu_get_timeout): ... this and made it global.
36945 (set_timeout): Renamed to ...
36946 (grub_menu_set_timeout): ... this and made it global.
36947 (grub_normal_terminal_menu_viewer): Renamed to ...
36948 (grub_normal_text_menu_viewer): ... this.
36949
36950 * normal/menu_text.c: New file. Extracted text-menu-specific code
36951 from normal/menu.c.
36952
36953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
36954 (normal_mod_SOURCES): Likewise.
36955
36956 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36957 (normal_mod_SOURCES): Likewise.
36958
36959 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36960 (normal_mod_SOURCES): Likewise.
36961
36962 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
36963 (normal_mod_SOURCES): Likewise.
36964
36965 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36966 (normal_mod_SOURCES): Likewise.
36967
36968 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36969 (normal_mod_SOURCES): Likewise.
36970
36971 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36972 (normal_mod_SOURCES): Likewise.
36973
16ac430e 369742009-02-11 Robert Millan <rmh@aybabtu.com>
36975
36976 * util/grub.d/00_header.in: Update old reference to `font' command.
36977
06ff20fc 369782009-02-10 Felix Zielcke <fzielcke@z-51.de>
36979
36980 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
36981
36982 Based on patch from Javier Martín.
36983
96da9407 369842009-02-09 Felix Zielcke <fzielcke@z-51.de>
36985
36986 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 36987 to avoid false positives with FAT.
96da9407 36988 (grub_fstest_SOURCES): Likewise.
36989 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36990 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36992 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36993 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36994 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36995
6dca6fe4 369962009-02-09 Felix Zielcke <fzielcke@z-51.de>
36997
06ff20fc 36998 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 36999 bpb.version_specific.fat12_or_fat16.fstype and
37000 bpb.version_specific.fat32.fstype.
37001
2550c62f 370022009-02-08 Robert Millan <rmh@aybabtu.com>
37003
be110b30 37004 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 37005
56978920 370062009-02-08 Robert Millan <rmh@aybabtu.com>
37007
37008 * Makefile.in (host_os, host_cpu): New variables.
37009 (target_os): Remove. Update all users.
37010
d64399b5 370112009-02-08 Marco Gerards <marco@gnu.org>
37012
37013 * Makefile.in (enable_grub_emu_usb): New variable.
37014 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
37015 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
37016 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
37017 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
37018 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
37019 `usbtest.mod' and `usbms.mod'.
37020 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
37021 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
37022 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
37023 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
37024 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
37025 variables.
37026
37027 * disk/usbms.c: New file.
37028
37029 * include/grub/usb.h: Likewise.
37030
37031 * include/grub/usbtrans.h: Likewise.
37032
37033 * include/grub/usbdesc.h: Likewise.
37034
37035 * bus/usb/usbtrans.c: Likewise.
37036
37037 * bus/usb/ohci.c: Likewise.
37038
37039 * bus/usb/uhci.c: Likewise.
37040
37041 * bus/usb/usbhub.c: Likewise.
37042
37043 * bus/usb/usb.c: Likewise.
37044
37045 * commands/usbtest.c: Likewise.
37046
37047 * util/usb.c: Likewise.
50fb7002 37048
d64399b5 37049 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
37050
37051 * configure.ac: Test for libusb presence.
50fb7002 37052
d64399b5 37053 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
37054
2b40d6bb 370552009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
37056
37057 * kern/mm.c: Add more comments.
37058
73a4ce81 370592009-02-08 Robert Millan <rmh@aybabtu.com>
37060
37061 Patch from Javier Martín.
37062 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
37063 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
37064
f821ce59 370652009-02-08 Robert Millan <rmh@aybabtu.com>
37066
37067 * fs/cpio.c: Split tar functionality to ...
37068 * fs/tar.c: ... here (new file). Update all users.
37069
aebfc4b0 370702009-02-07 Robert Millan <rmh@aybabtu.com>
37071
37072 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
37073 backward-incompatible features.
37074
37075 Based on patch from Javier Martín, with some adjustments.
37076
50fb7002 370772009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 37078
37079 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
37080
0bb5115e 370812009-02-07 Robert Millan <rmh@aybabtu.com>
37082
37083 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
37084 position of `disk/lvm.c' to ensure grub_init_all() always picks it
37085 after the RAID stuff.
37086
38a0f8e7 370872009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
37088
50fb7002 37089 Fixes problem when running vbetest command as reported by
38a0f8e7 37090 Vladimir Serbinenko <phcoder@gmail.com>.
37091
37092 * (grub_vbe_set_video_mode): Fixed problem with text modes.
37093
3143cc1c 370942009-02-04 Felix Zielcke <fzielcke@z-51.de>
37095
37096 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
37097 /dev/md/NpN style mdraid devices.
37098
9cba6fce 370992009-02-03 Felix Zielcke <fzielcke@z-51.de>
37100
37101 * util/unifont2pff.rb: Remove.
37102
e507a2c1 371032009-02-03 Felix Zielcke <fzielcke@z-51.de>
37104
37105 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
37106 `#'.
37107
d2c2b4cd 371082009-02-03 Felix Zielcke <fzielcke@z-51.de>
37109
37110 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
37111 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37112 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37113 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37115 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37116 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37117
b4315fb0 371182009-02-02 Christian Franke <franke@computer.org>
37119
37120 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
37121
de3aa260 371222009-02-01 Felix Zielcke <fzielcke@z-51.de>
37123
7c3ff286 37124 * INSTALL: Note that we now require at least autoconf 2.59 and
37125 that LZO is optional.
de3aa260 37126
825a182b 371272009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37128
37129 Base on patch on bug #24154 created by Tomas Tintera
37130 <trosos@seznam.cz>.
37131
37132 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
37133
a69ef770 371342009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37135
7c3ff286 37136 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 37137 <bero@arklinux.org>.
37138
37139 * normal/parser.y (script_init): Add missing semicolon.
37140
6fa42fa6 371412009-01-31 Colin D Bennett <colin@gibibit.com>
37142
7c3ff286 37143 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 37144 (free_menu_entry_classes): Added.
37145 (grub_normal_menu_addentry): Added class property handling.
37146 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
37147 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
37148
37149 * normal/menu_viewer.c: New file.
37150
37151 * normal/menu.c (run_menu_entry): Renamed to ...
37152 (grub_menu_execute_entry): ... this and made it as global.
37153 (grub_menu_run): Renamed to ...
37154 (show_text_menu): ... this and made it local.
37155 (show_text_menu): Adapt to new function names.
37156 (grub_normal_terminal_menu_viewer): New global variable.
37157
37158 * include/grub/menu.h: New file.
37159
37160 * include/grub/menu_viewer.h: New file.
37161
37162 * include/grub/normal.h: Added include to grub/menu.h.
37163 (grub_menu_entry): Moved to include/grub/menu.h.
37164 (grub_menu_entry_t): Likewise.
37165 (grub_menu): Likewise.
37166 (grub_menu_t): Likewise.
37167 (grub_normal_terminal_menu_viewer): Added.
37168 (grub_menu_execute_entry): Likewise.
37169 (grub_menu_run): Removed.
37170
37171 * DISTLIST: Added include/grub/menu.h.
37172 Added include/grub/menu_viewer.h.
37173 Added normal/menu_viewer.c.
37174
371752009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
37176
37177 * normal/execute.c (grub_script_execute_menuentry): Changed to use
37178 arglist for menutitle arguments.
37179
37180 * normal/main.c (grub_normal_menu_addentry): Likewise.
37181
37182 * normal/parser.y (menuentry): Likewise.
37183
37184 * normal/script.c (grub_script_create_cmdmenu): Likewise.
37185
37186 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
37187 (grub_script_create_cmdmenu): Likewise.
37188
37189 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
37190
37191 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
37192 changes.
37193
37194 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
37195
37196 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
37197
37198 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
37199
37200 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37201
37202 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37203
37204 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37205
56192c23 372062009-01-30 Christian Franke <franke@computer.org>
37207
37208 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
37209 in option help text.
37210
d72521b3 372112009-01-27 Pavel Roskin <proski@gnu.org>
37212
37213 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
37214
994b5e84 372152009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37216
37217 * commands/lsmmap.c: Add include to grub/machine/memory.h.
37218
37219 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
37220
37221 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
37222 unregister function.
37223
6a7eab2c 372242009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37225
37226 * disk/scsi.c (grub_scsi_read): Fix sign problem.
37227
37228 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
37229
37230 * util/grub-mkfont.c (usage): Fix typo.
37231
37232 * util/elf/grub-mkimage.c (load_modules): Fix warning.
37233
1806b56e 372342009-01-26 Daniel Mierswa <impulze@impulze.org>
37235
3fb18f09 37236 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
37237
336e1fb9 37238 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
37239
1806b56e 37240 * kern/misc.c (grub_strcasecmp): New function.
37241 (grub_strcasecmp): Use grub_size_t instead of int for length.
37242 Fix return value.
37243 * include/grub/misc.h: Update function prototypes.
37244
580b2a0f 372452009-01-26 Robert Millan <rmh@aybabtu.com>
37246
37247 * configure.ac: Fix cross-compilation check.
ef257b36 37248
d31c24f1 372492009-01-22 Christian Franke <franke@computer.org>
37250
37251 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
37252 (precision) digit string. Allow `.format2' without `format1' (width).
37253 Limit input chars for `%s' output to `format2' if specified. This is
37254 compatible with standard printf ().
37255
3138b44c 372562009-01-22 Christian Franke <franke@computer.org>
37257
37258 * disk/ata.c (grub_ata_wait_status): Replace by ...
37259 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
37260 other status bits may be invalid while BSY is asserted.
37261 (grub_ata_check_ready): New function.
37262 (grub_ata_cmd): Removed.
37263 (grub_ata_wait_drq): New function.
37264 (grub_ata_strncpy): Remove inline.
37265 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
37266 and error check now done by grub_ata_wait_drq ().
37267 (grub_ata_pio_write): Likewise.
37268 (grub_atapi_identify): Set DEV before check for !BSY. Use
37269 grub_ata_wait_drq () to wait for data.
37270 (grub_ata_device_initialize): Add status register check to
37271 detect missing SATA slave devices. Add debug messages.
37272 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
37273 (grub_atapi_packet): Set DEV before check for !BSY. Replace
37274 transfer loop by grub_ata_pio_write ().
37275 (grub_ata_identify): Set DEV before check for !BSY. Use
37276 grub_ata_wait_drq () to wait for data.
ef257b36 37277 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 37278 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
37279 read/write in one loop. Fix invalid command on write. Fix incomplete
37280 command on (size % batch) == 0. Add missing error check after write of
37281 last block. Add debug messages.
37282 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
37283
59a64ef6 372842009-01-19 Christian Franke <franke@computer.org>
37285
37286 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
37287 (GRUB_ATAPI_IREASON_*): Likewise.
37288 (grub_ata_pio_write): Fix timeout error return.
37289 (grub_atapi_identify): Add grub_ata_wait () after cmd.
37290 (grub_atapi_wait_drq): New function.
37291 (grub_atapi_packet): New parameter `size'.
37292 Use grub_atapi_wait_drq () and direct write instead of
37293 grub_ata_pio_write ().
37294 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
37295 reads the number of bytes requested by the device for each DRQ
37296 assertion.
37297 (grub_atapi_write): Remove old implementation, return not
37298 implemented instead.
37299
1cfe20b3 373002009-01-19 Christian Franke <franke@computer.org>
37301
37302 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
37303 of 512 to calculate data size.
37304 (grub_scsi_read12): Likewise.
37305 (grub_scsi_write10): Likewise.
37306 (grub_scsi_write12): Likewise.
37307 (grub_scsi_read): Adjust size according to blocksize.
37308 Add checks for invalid blocksize and unaligned transfer.
37309
bee5fe5d 373102009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
37311
37312 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
37313
ef257b36 37314 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 37315 width glyphs.
37316
3e643f8c 373172009-01-19 Robert Millan <rmh@aybabtu.com>
37318
37319 * config.guess: Update to latest version from config git.
37320 * config.sub: Likewise.
37321
4fa80998 373222009-01-17 Felix Zielcke <fzielcke@z-51.de>
37323
37324 * Makefile.in: Change font compilation to use new grub-mkfont instead
37325 of java version.
37326
37327 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
37328 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
37329 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37330 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37331 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
37332 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
37333 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
37334 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
37335 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
37336
7086085b 373372009-01-16 Christian Franke <franke@computer.org>
37338
37339 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
37340 (enum grub_ata_timeout_milliseconds): New enum.
37341 (grub_ata_wait_status): Add parameter milliseconds.
37342 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
37343 recovery from timed-out commands.
37344 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
37345 return grub_errno instead of REG_ERROR.
37346 (grub_ata_pio_write): Add parameter milliseconds.
37347 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
37348 Pass milliseconds to grub_ata_wait_status () and
37349 grub_ata_pio_read ().
37350 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
37351 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
37352 grub_ata_wait_status (). Fix IDENTIFY timeout check.
37353 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
37354 It is not suitable for device detection, because DEV bit is ignored,
37355 the command may run too long, and not all devices set the signature
37356 properly.
37357 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
37358 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
37359 Fix device selection, DEV bit must be set first to address the registers
37360 of the correct device.
37361 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
37362 grub_ata_pio_read/write ().
37363 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
37364 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
37365
4a412913 373662009-01-13 Carles Pina i Estany <carles@pina.cat>
37367
37368 * util/grub-editenv.c (main): Use fseeko(), not fseek().
37369
7795c55e 373702009-01-13 Bean <bean123ch@gmail.com>
d913988c 37371
37372 * util/grub-mkfont.c (write_font): forget to remove some debug code.
37373
7795c55e 373742009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 37375
37376 * Makefile.in: (enable_grub_mkfont): New variable.
37377 (freetype_cflags): Likewise.
37378 (freetype_libs): Likewise.
37379
37380 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
37381 (grub_mkfont_SOURCES): New variable.
37382 (grub_mkfont_CFLAGS): Likewise.
37383 (grub_mkfont_LDFLAGS): Likewise.
37384
37385 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
37386 library if `--enable-grub-mkfont' is requested.
37387 (enable_grub_mkfont): New variable.
37388 (freetype_cflags): Likewise.
37389 (freetype_libs): Likewise.
37390
37391 * util/grub-mkfont.c: New file.
37392
093af1fe 373932009-01-12 Christian Franke <franke@computer.org>
37394
37395 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
37396 mode check. Fix setting of compat_use[].
37397
f36cc108 373982009-01-10 Robert Millan <rmh@aybabtu.com>
37399
37400 Update a few copyright years which we forgot to do in 2008 (only for
37401 files whose changes made in 2008 were copyright-significant)
37402
37403 * Makefile.in: Add 2008 to Copyright line.
37404 * disk/ieee1275/ofdisk.c: Likewise.
37405 * disk/efi/efidisk.c: Likewise.
37406 * kern/dl.c: Likewise.
37407 * kern/sparc64/ieee1275/init.c: Likewise.
37408 * kern/mm.c: Likewise.
37409 * kern/efi/mm.c: Likewise.
37410 * boot/i386/pc/boot.S: Likewise.
37411 * genfslist.sh: Likewise.
37412 * fs/iso9660.c: Likewise.
37413 * fs/hfs.c: Likewise.
37414 * fs/jfs.c: Likewise.
37415 * fs/minix.c: Likewise.
37416 * fs/ufs.c: Likewise.
37417 * gensymlist.sh.in: Likewise.
37418 * genkernsyms.sh.in: Likewise.
37419 * include/grub/misc.h: Likewise.
37420 * include/grub/types.h: Likewise.
37421 * include/grub/symbol.h: Likewise.
37422 * include/grub/elf.h: Likewise.
37423 * include/grub/kernel.h: Likewise.
37424 * include/grub/disk.h: Likewise.
37425 * include/grub/dl.h: Likewise.
37426 * include/grub/i386/linux.h: Likewise.
37427 * include/grub/i386/pc/biosdisk.h: Likewise.
37428 * include/grub/efi/api.h: Likewise.
37429 * include/grub/efi/pe32.h: Likewise.
37430 * include/grub/util/misc.h: Likewise.
37431 * normal/execute.c: Likewise.
37432 * normal/arg.c: Likewise.
37433 * normal/completion.c: Likewise.
37434 * normal/lexer.c: Likewise.
37435 * normal/parser.y: Likewise.
37436 * normal/misc.c: Likewise.
37437 * commands/i386/pc/vbeinfo.c: Likewise.
37438 * commands/hexdump.c: Likewise.
37439 * commands/terminal.c: Likewise.
37440 * commands/ls.c: Likewise.
37441 * commands/help.c: Likewise.
37442 * partmap/pc.c: Likewise.
37443 * loader/efi/chainloader.c: Likewise.
37444 * loader/multiboot_loader.c: Likewise.
37445 * loader/i386/pc/multiboot2.c: Likewise.
37446 * term/efi/console.c: Likewise.
37447 * term/i386/pc/serial.c: Likewise.
37448 * util/lvm.c: Likewise.
37449 * util/console.c: Likewise.
37450 * util/i386/efi/grub-mkimage.c: Likewise.
37451 * util/raid.c: Likewise.
37452
7f02114b 374532009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
37454
37455 * commands/videotest.c: Removed include to grub/machine/memory.h.
37456
37457 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
37458 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
37459 (video_mod_SOURCES): Removed.
37460 (video_mod_CFLAGS): Likewise.
37461 (video_mod_LDFLAGS): Likewise.
37462 (gfxterm_mod_SOURCES): Likewise.
37463 (gfxterm_mod_CFLAGS): Likewise.
37464 (gfxterm_mod_LDFLAGS): Likewise.
37465 (videotest_mod_SOURCES): Likewise.
37466 (videotest_mod_CFLAGS): Likewise.
37467 (videotest_mod_LDFLAGS): Likewise.
37468 (bitmap_mod_SOURCES): Likewise.
37469 (bitmap_mod_CFLAGS): Likewise.
37470 (bitmap_mod_LDFLAGS): Likewise.
37471 (tga_mod_SOURCES): Likewise.
37472 (tga_mod_CFLAGS): Likewise.
37473 (tga_mod_LDFLAGS): Likewise.
37474 (jpeg_mod_SOURCES): Likewise.
37475 (jpeg_mod_CFLAGS): Likewise.
37476 (jpeg_mod_LDFLAGS): Likewise.
37477 (png_mod_SOURCES): Likewise.
37478 (png_mod_CFLAGS): Likewise.
37479 (png_mod_LDFLAGS): Likewise.
37480
37481 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
37482 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
37483 (video_mod_SOURCES): Added.
37484 (video_mod_CFLAGS): Likewise.
37485 (video_mod_LDFLAGS): Likewise.
37486 (videotest_mod_SOURCES): Likewise.
37487 (videotest_mod_CFLAGS): Likewise.
37488 (videotest_mod_LDFLAGS): Likewise.
37489 (bitmap_mod_SOURCES): Likewise.
37490 (bitmap_mod_CFLAGS): Likewise.
37491 (bitmap_mod_LDFLAGS): Likewise.
37492 (tga_mod_SOURCES): Likewise.
37493 (tga_mod_CFLAGS): Likewise.
37494 (tga_mod_LDFLAGS): Likewise.
37495 (jpeg_mod_SOURCES): Likewise.
37496 (jpeg_mod_CFLAGS): Likewise.
37497 (jpeg_mod_LDFLAGS): Likewise.
37498 (png_mod_SOURCES): Likewise.
37499 (png_mod_CFLAGS): Likewise.
37500 (png_mod_LDFLAGS): Likewise.
37501 (gfxterm_mod_SOURCES): Likewise.
37502 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 37503 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 37504
37505 * term/gfxterm.c: Removed include to grub/machine/memory.h,
37506 grub/machine/console.h.
37507
644fff97 375082009-01-04 Jerone Young <jerone@gmail.com>
37509
37510 Make on screen instructions clearer
37511
37512 Based on patch created by Jidanni <jidanni@jidanni.org>
37513
37514 * normal/menu.c: print clearer instructions on the screen
37515
1e901a75 375162009-01-02 Colin D Bennett <colin@gibibit.com>
37517
37518 New font engine.
34c44600 37519
1e901a75 37520 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
37521 build system and fixed gfxterm.c to work with different sized fonts.
37522
37523 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 37524
1e901a75 37525 * configure: Re-generated.
34c44600 37526
1e901a75 37527 * DISTLIST: Removed font/manager.c.
37528 Added font/font.c.
37529 Added font/font_cmd.c.
34c44600 37530
1e901a75 37531 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
37532 compilation.
34c44600 37533
1e901a75 37534 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 37535
37536 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 37537
37538 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 37539
1e901a75 37540 * normal/menu.c: Likewise.
34c44600 37541
1e901a75 37542 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
37543 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 37544
1e901a75 37545 * include/grub/font.h: Replaced with new file.
34c44600 37546
1e901a75 37547 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
37548 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
37549 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
37550 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
37551 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 37552 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 37553 fg_red, fg_green, fg_blue, fg_alpha.
37554 (grub_video_adapter): Removed blit_glyph.
34c44600 37555 (grub_video_blit_glyph): Removed.
37556
1e901a75 37557 * font/manager.c: Removed file.
34c44600 37558
37559 * font/font.c: New file.
37560
1e901a75 37561 * font/font_cmd.c: Likewise.
34c44600 37562
1e901a75 37563 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 37564
1e901a75 37565 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
37566 (grub_video_vbe_map_rgba): Likewise.
37567 (grub_video_vbe_unmap_color_int): Likewise.
37568 (grub_video_vbe_blit_glyph): Removed.
37569 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 37570
1e901a75 37571 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
37572 (get_pixel): Likewise.
34c44600 37573 (set_pixel): Likewise.
37574
1e901a75 37575 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 37576
1e901a75 37577 * term/gfxterm.c: Adapted to new font engine.
34c44600 37578
1e901a75 37579 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 37580
1e901a75 37581 * term/i386/pc/vga.c: Likewise.
34c44600 37582
1e901a75 37583 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 37584
1e901a75 37585 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 37586
1e901a75 37587 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 37588
1e901a75 37589 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 37590
1e901a75 37591 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 37592
1e901a75 37593 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 37594
1e901a75 37595 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 37596
1e901a75 37597 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 37598
1e901a75 37599 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
37600
37601 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 37602
1e901a75 37603 * util/grub-mkconfig_lib.in: Changed font extension.
37604
278922e8 376052008-12-28 Felix Zielcke <fzielcke@z-51.de>
37606
37607 * util/getroot.c (grub_util_get_grub_dev): Add support for
37608 /dev/md/dNNpNN style partitionable mdraid devices.
37609
3ced05cf 376102008-12-12 Alex Smith <alex@alex-smith.me.uk>
37611
37612 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
37613 at a time limit of the PXE TFTP API correctly.
37614 (grub_pxefs_close): Likewise.
37615
7fd0ee30 376162008-11-29 Robert Millan <rmh@aybabtu.com>
37617
34c44600 37618 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 37619 grub_ata_device_initialize() calls.
37620
34c44600 376212008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 37622
37623 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
37624 iteration failed.
37625 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
37626
89313780 376272008-11-28 Robert Millan <rmh@aybabtu.com>
37628
37629 Fix build on powerpc-ieee1275. Based on patch created by
37630 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
37631 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37632 `kern/ieee1275/mmap.c'.
37633 * include/grub/powerpc/ieee1275/memory.h: New file.
37634
15257703 37635 Provide grub-install on coreboot.
37636 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
37637 (grub_install_SOURCES): New variable.
37638 * util/i386/pc/grub-install.in: Add a few condition checks to make it
37639 usable on coreboot.
37640
9fc5388a 376412008-11-25 Felix Zielcke <fzielcke@z-51.de>
37642
37643 * util/grub-fstest.c (grub_term_get_current_input): Change return type
37644 to `grub_term_input_t'.
37645 (grub_term_get_current_output): Change return type to
37646 `grub_term_output_t'.
37647
bc3a2f31 376482008-11-22 Robert Millan <rmh@aybabtu.com>
37649
34c44600 37650 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 37651 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
37652 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
37653 grub_vga_text_cls().
37654
80fc88f2 37655 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 37656 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 37657
cbf36fd3 37658 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
37659 to 0x200000 (avoids trouble with some OFW implementations, and matches
37660 with the one in Yaboot).
37661 Reported by Manoel Abranches
37662
73e8e268 376632008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 37664
37665 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
37666 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
37667
73e8e268 37668 * util/grub-mkconfig_lib.in (grub_warn): New function.
37669 (convert_system_path_to_grub_path): Use grub_warn() when issuing
37670 warnings, to obtain consistent formatting.
37671 * util/grub.d/00_header.in: Likewise.
37672 * util/update-grub_lib.in: Likewise.
37673
e94045a1 37674 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 37675 Move comment text to `#error' stanza.
e94045a1 37676
79d29fd7 37677 Harmonize ieee1275's grub_available_iterate() with the generic
37678 grub_machine_mmap_iterate() interface (fixes a recently-introduced
37679 build problem on i386-ieee1275):
37680 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
37681 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
37682 parameter `type'. Update all users of this function.
37683 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
37684 `kern/ieee1275/mmap.c'.
37685 * kern/ieee1275/init.c
37686 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
37687 with ...
37688 (grub_machine_mmap_iterate): ... this.
37689 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
37690 return type to `grub_err_t'. Update all implementations of this
37691 function prototype.
37692 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
37693 Likewise.
37694
60d6b16e 37695 Add `lsmmap' command (lists firmware-provided memory map):
37696 * commands/lsmmap.c: New file.
37697 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
37698 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
37699 variables.
37700 * conf/powerpc-ieee1275.rmk: Likewise.
37701 * conf/i386-coreboot.rmk: Likewise.
37702 * conf/i386-ieee1275.rmk: Likewise.
37703
ebaaf49b 377042008-11-19 Robert Millan <rmh@aybabtu.com>
37705
37706 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 37707 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
37708 constraints to initrd allocation (based on code from
37709 loader/i386/pc/linux.c). Without them, initrd was allocated too high
37710 for Linux to find it.
ebaaf49b 37711
dfab719f 377122008-11-14 Robert Millan <rmh@aybabtu.com>
37713
37714 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
37715 order to cope with duplicate slashes.
37716
10fc3eb9 377172008-11-14 Robert Millan <rmh@aybabtu.com>
37718
37719 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
37720 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
37721 don't want to mess with lower memory, because it is used in the Linux
37722 loader.
37723
37724 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 37725 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 37726 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
37727 is in our heap (probably as a result of it being corrupted during
2f2a3442 37728 decompression). Add #error instance with comment to explain why this
37729 loader isn't currently usable on PC/BIOS.
10fc3eb9 37730
e2e07847 377312008-11-14 Robert Millan <rmh@aybabtu.com>
37732
37733 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 37734 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 37735
fe8e8d69 377362008-11-12 Robert Millan <rmh@aybabtu.com>
37737
37738 Make loader/i386/linux.c buildable on i386-pc (although disabled).
37739
37740 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
37741 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
37742 from here ...
37743 * include/grub/i386/pc/memory.h: ... to here.
37744
976b07d0 377452008-11-12 Robert Millan <rmh@aybabtu.com>
37746
37747 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
37748 split).
37749
37750 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
37751 (grub_console_cur_color, grub_console_real_putchar)
37752 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
37753 (grub_console_setcolorstate, grub_console_setcolor)
37754 (grub_console_getcolor): Move from here ...
37755 * include/grub/i386/vga_common.h: ... to here (new file).
37756
37757 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
37758 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
37759 `<grub/i386/io.h>'.
37760 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
37761 `<grub/i386/vga_common.h>'.
37762
76679cd3 377632008-11-12 Robert Millan <rmh@aybabtu.com>
37764
37765 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
37766 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
37767 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
37768 variables.
37769 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
37770 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
37771
37772 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
37773 grub_console_init() with call to grub_vga_text_init().
37774 (grub_machine_fini): Replace call to
37775 grub_console_fini() with call to grub_vga_text_fini() and
37776 grub_at_keyboard_fini().
37777
37778 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
37779 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
37780 (grub_console_setcolorstate, grub_console_setcolor)
37781 (grub_console_getcolor): New function prototypes.
37782
37783 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
37784 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
37785 (grub_vga_text_setcursor): Static-ize.
37786 (grub_vga_text_term): New structure.
37787 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
37788
37789 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
37790 (grub_console_cur_color, grub_console_standard_color)
37791 (grub_console_normal_color, grub_console_highlight_color)
37792 (map_char, grub_console_putchar, grub_console_getcharwidth)
37793 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
37794 (grub_console_getcolor): Move from here ...
37795 * term/i386/vga_common.c: ... to here (same function names).
37796
95b841d3 377972008-11-12 Robert Millan <rmh@aybabtu.com>
37798
37799 Use newly-added Multiboot support in coreboot.
37800
37801 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
37802 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
37803
37804 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
37805 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
37806 (codestart): Store the MBI in `startup_multiboot_info' when we're
37807 being loaded using Multiboot.
37808
37809 * kern/i386/coreboot/init.c (grub_machine_init): Move
37810 grub_at_keyboard_init() call to beginning of function (useful for
37811 debugging). Call grub_machine_mmap_init() before attempting to use
37812 grub_machine_mmap_iterate().
37813 (grub_lower_mem, grub_upper_mem): Move from here ...
37814 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
37815 here (new file).
37816
37817 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
37818 function prototype.
37819
761ca975 378202008-11-12 Robert Millan <rmh@aybabtu.com>
37821
37822 Fix a regression introduced by the at_keyboard.mod split. Because
37823 some terminals are default on some platforms and non-default on
37824 others, the first terminal being registered determines which is
37825 going to be default.
37826
37827 * kern/term.c (grub_term_register_input): If this is the first
37828 terminal being registered, set it as the current one.
37829 (grub_term_register_output): Likewise.
37830
37831 * term/efi/console.c (grub_console_init): Do not call
37832 grub_term_set_current_output() or grub_term_set_current_input().
37833 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
37834 * term/i386/pc/console.c (grub_console_init): Likewise.
37835 (grub_console_fini): Do not call grub_term_set_current_input()
37836 (but leave grub_term_set_current_output() to restore text mode).
37837
6c529df7 378382008-11-10 Robert Millan <rmh@aybabtu.com>
37839
37840 * util/grub.d/00_header.in: Add backward compatibility check for
37841 versions of terminal.mod that don't understand `terminal_input' or
37842 `terminal_output'.
37843
132e4113 378442008-11-09 Robert Millan <rmh@aybabtu.com>
37845
37846 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
37847 `terminal_input' / `terminal_output', not `terminal'.
37848
ac293d50 378492008-11-08 Robert Millan <rmh@aybabtu.com>
37850
37851 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 37852 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 37853
0025933a 378542008-11-08 Robert Millan <rmh@aybabtu.com>
37855
37856 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 37857 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 37858 members. Update all users.
37859 * util/console.c (grub_ncurses_term): Split in ...
37860 (grub_ncurses_term_input): ... this, and ...
37861 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 37862 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 37863
37c86336 378642008-11-08 Robert Millan <rmh@aybabtu.com>
37865
37866 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
37867 (PKGDATA): Add $(pkgdata_SRCDIR).
37868 (pkglib_BUILDDIR): New variable.
37869 (pkgdata_SRCDIR): New variable.
37870 (build_env.mk): New target.
37871 (include_DATA): New variable.
37872 (install-local): Install $(include_DATA) files in $(includedir).
37873
b6c15a2d 378742008-11-07 Pavel Roskin <proski@gnu.org>
37875
d99d46f1 37876 * gendistlist.sh: Use C locale for sorting to ensure consistent
37877 output on all systems.
37878
b6c15a2d 37879 * util/grub.d/00_header.in: Remove incorrect space before
37880 "serial".
37881
c32ee8c9 378822008-11-07 Robert Millan <rmh@aybabtu.com>
37883
37884 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
37885 per specification.
37886 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
37887 * loader/multiboot_loader.c (find_multi_boot2_header): New function
37888 (based on find_multi_boot1_header).
37889 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
37890 using find_multi_boot2_header(), and abort if neither Multiboot or
37891 Multiboot headers were found.
37892
651c29b7 378932008-11-07 Robert Millan <rmh@aybabtu.com>
37894
37895 Modularize at_keyboard.mod:
37896
37897 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
37898 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
37899 (at_keyboard_mod_LDFLAGS): New variables.
37900
37901 Actual terminal split:
37902
37903 * include/grub/term.h (struct grub_term): Split in ...
37904 (struct grub_term_input): ... this, and ...
37905 (struct grub_term_output): ... this. Update all users.
37906 (grub_term_set_current): Split in ...
37907 (grub_term_set_current_input): ... this, and ...
37908 (grub_term_set_current_output): ... this.
37909 (grub_term_get_current): Split in ...
37910 (grub_term_get_current_input): ... this, and ...
37911 (grub_term_get_current_output): ... this.
37912 (grub_term_register): Split in ...
37913 (grub_term_register_input): ... this, and ...
37914 (grub_term_register_output): ... this.
37915 (grub_term_unregister): Split in ...
37916 (grub_term_unregister_input): ... this, and ...
37917 (grub_term_unregister_output): ... this.
37918 (grub_term_iterate): Split in ...
37919 (grub_term_iterate_input): ... this, and ...
37920 (grub_term_iterate_output): ... this.
37921
37922 * kern/term.c (grub_term_list): Split in ...
37923 (grub_term_list_input): ... this, and ...
37924 (grub_term_list_output): ... this. Update all users.
37925 (grub_cur_term): Split in ...
37926 (grub_cur_term_input): ... this, and ...
37927 (grub_cur_term_output): ... this. Update all users.
37928 (grub_term_set_current): Split in ...
37929 (grub_term_set_current_input): ... this, and ...
37930 (grub_term_set_current_output): ... this.
37931 (grub_term_get_current): Split in ...
37932 (grub_term_get_current_input): ... this, and ...
37933 (grub_term_get_current_output): ... this.
37934 (grub_term_register): Split in ...
37935 (grub_term_register_input): ... this, and ...
37936 (grub_term_register_output): ... this.
37937 (grub_term_unregister): Split in ...
37938 (grub_term_unregister_input): ... this, and ...
37939 (grub_term_unregister_output): ... this.
37940 (grub_term_iterate): Split in ...
37941 (grub_term_iterate_input): ... this, and ...
37942 (grub_term_iterate_output): ... this.
37943
37944 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
37945 a check for input and one for output (and only attempt to get keys
37946 from user when input works).
37947
37948 * util/grub-probe.c (grub_term_get_current): Split in ...
37949 (grub_term_get_current_input): ... this, and ...
37950 (grub_term_get_current_output): ... this.
37951 * util/grub-fstest.c: Likewise.
37952 * util/i386/pc/grub-setup.c: Likewise.
37953 * util/grub-editenv.c: Likewise.
37954
37955 Portability adjustments:
37956
37957 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
37958 `term/i386/pc/at_keyboard.c'.
37959 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
37960 grub_keyboard_controller_init() (now handled by terminal .init).
37961 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
37962 grub_at_keyboard_init().
37963 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
37964 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
37965 at_keyboard.mod via input terminal interface).
37966 * include/grub/i386/coreboot/console.h: Convert into a stub for
37967 `<grub/i386/pc/console.h>'.
37968
37969 Migrate full terminals to new API:
37970
37971 * term/efi/console.c (grub_console_term): Split into ...
37972 (grub_console_term_input): ... this, and ...
37973 (grub_console_term_output): ... this. Update all users.
37974 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
37975 (grub_ofconsole_init): Split into ...
37976 (grub_ofconsole_init_input): ... this, and ...
37977 (grub_ofconsole_init_output): ... this.
37978 (grub_ofconsole_term): Split into ...
37979 (grub_ofconsole_term_input): ... this, and ...
37980 (grub_ofconsole_term_output): ... this. Update all users.
37981 * term/i386/pc/serial.c (grub_serial_term): Split into ...
37982 (grub_serial_term_input): ... this, and ...
37983 (grub_serial_term_output): ... this. Update all users.
37984 * term/i386/pc/console.c (grub_console_term): Split into ...
37985 (grub_console_term_input): ... this, and ...
37986 (grub_console_term_output): ... this. Update all users.
37987 (grub_console_term_input): Only enable it on PC/BIOS platform.
37988 (grub_console_init): Remove grub_keyboard_controller_init() call.
37989
37990 Migrate input terminals to new API:
37991
37992 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
37993 `i386' and `i386/pc' to enable build on x86_64 (this driver is
37994 i386-specific anyway).
37995 (grub_console_checkkey): Rename to ...
37996 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
37997 users.
37998 (grub_keyboard_controller_orig): New variable.
37999 (grub_console_getkey): Rename to ...
38000 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
38001 users.
38002 (grub_keyboard_controller_init): Static-ize. Save original
38003 controller value so that it can be restored ...
38004 (grub_keyboard_controller_fini): ... here (new function).
38005 (grub_at_keyboard_term): New structure.
38006 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
38007 functions.
38008
38009 Migrate output terminals to new API:
38010
38011 * term/i386/pc/vga.c (grub_vga_term): Change type to
38012 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38013 members. Update all users.
38014 * term/gfxterm.c (grub_video_term): Change type to
38015 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38016 members. Update all users.
38017 * include/grub/i386/pc/console.h (grub_console_checkkey)
38018 (grub_console_getkey): Do not export (no longer needed by gfxterm,
38019 etc).
38020
38021 Migrate `terminal' command and userland tools to new API:
38022
38023 * commands/terminal.c (grub_cmd_terminal): Split into ...
38024 (grub_cmd_terminal_input): ... this, and ...
38025 (grub_cmd_terminal_output): ... this.
38026 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
38027 `terminal_input' and `terminal_output'.
38028 * util/grub.d/00_header.in: Adjust `terminal' calls to new
38029 `terminal_input' / `terminal_output' API.
38030 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
38031 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
38032 provided ${GRUB_TERMINAL}, convert it).
38033
96e5d876 380342008-11-04 Robert Millan <rmh@aybabtu.com>
38035
38036 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
38037 for FreeBSD.
38038 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
38039
556f3775 380402008-11-03 Bean <bean123ch@gmail.com>
38041
38042 * kern/elf.c (grub_elf32_load): Revert to previous code.
38043 (grub_elf64_load): Likewise.
38044
38045 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
38046
926b9823 380472008-11-01 Robert Millan <rmh@aybabtu.com>
38048
38049 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
38050 (TARGET_CPPFLAGS): Likewise.
38051 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
38052
1432e958 380532008-11-01 Carles Pina i Estany <carles@pina.cat>
38054
38055 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
38056
dba3f844 380572008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 38058
38059 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
38060 addition of objects until the code is not going to be able to fail.
38061
dba3f844 380622008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 38063
38064 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
38065 (add a missing NULL check, and correct them by moving the pointer
38066 operations after the actual check).
38067
7ab28c21 380682008-10-29 Robert Millan <rmh@aybabtu.com>
38069
38070 * util/i386/pc/grub-install.in: Handle empty string as output from
38071 make_system_path_relative_to_its_root().
38072
1b7748eb 380732008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
38074
38075 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
38076 circular metadata worst case scenario. If the metadata is circular
38077 then copy the wrap in place.
38078 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
38079 project lib/format_text/layout.h
38080 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
38081
c9618ab2 380822008-10-03 Felix Zielcke <fzielcke@z-51.de>
38083
7a36edca 38084 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 38085
bf981c62 380862008-10-03 Felix Zielcke <fzielcke@z-51.de>
38087
38088 * util/update-grub_lib.in: Mention filename in warning message.
38089
6d994591 380902008-09-29 Felix Zielcke <fzielcke@z-51.de>
38091
38092 * NEWS: Update for rename of update-grub to grub-mkconfig.
38093
18ade780 380942008-09-29 Felix Zielcke <fzielcke@z-51.de>
38095
38096 * util/update-grub_lib.in: Copy to ...
38097 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 38098 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 38099 * util/update-grub.in: Rename to ...
38100 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
38101 option. Add `--output' option to allow users to specify the generated
38102 configuration file. Default to stdout.
38103 (update_grub_dir): Rename to ...
38104 (grub_mkconfig_dir): ... this.
38105 (grub_cfg): Default to an empty string.
38106 * conf/common.rmk (update-grub): Rename to ...
38107 (grub-mkconfig): ... this.
38108 (update-grub_lib): Copy to ...
38109 (grub-mkconfig_lib): ... this.
38110 (update-grub_SCRIPTS): Copy to ...
38111 (grub-mkconfig_SCRIPTS): ... this. Update all users.
38112 (update-grub_DATA): Rename to ...
38113 (grub-mkconfig_DATA): ... this.
38114
556ce6ac 381152008-09-28 Robert Millan <rmh@aybabtu.com>
38116
38117 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
38118 to `modified'. Add the real `created' field.
38119 (grub_iso9660_uuid): Use `modified' rather than `created' for
38120 constructing the UUID.
38121
381222008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 38123
38124 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
38125 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
38126
92274e85 381272008-09-28 Bean <bean123ch@gmail.com>
38128
38129 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
38130 Thanks to Christian Franke for finding this bug.
38131
add6f17a 381322008-09-25 Robert Millan <rmh@aybabtu.com>
38133
38134 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
38135 instances of grub_util_get_disk_name() (see previous commit).
38136
d2a367b8 381372008-09-25 Robert Millan <rmh@aybabtu.com>
38138
38139 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
38140 `util/i386/get_disk_name.c'.
38141 * conf/i386-efi.rmk: Likewise.
38142 * conf/x86_64-efi.rmk: Likewise.
38143 * conf/i386-coreboot.rmk: Likewise.
38144 * conf/i386-ieee1275.rmk: Likewise.
38145 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
38146 `util/ieee1275/get_disk_name.c'.
38147 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
38148 * util/ieee1275/get_disk_name.c: Remove file.
38149 * util/i386/get_disk_name.c: Remove file.
38150 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
38151 "hd%d" for device.map entries, rather than using
38152 grub_util_get_disk_name().
38153
81a06771 381542008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 38155
38156 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
38157 warning.
38158 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
38159
5a004279 381602008-09-24 Carles Pina i Estany <carles@pina.cat>
38161
38162 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
38163 Changed to 0x5100.
38164 (GRUB_TERM_PPAGE): Changed to 0x4900.
38165
397093d3 381662008-09-24 Robert Millan <rmh@aybabtu.com>
38167
38168 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
38169 macros (they were i386-pc specific).
38170 * include/grub/sparc64/ieee1275/console.h: Likewise.
38171 * include/grub/efi/console.h: Likewise.
38172
a91b6c7c 381732008-09-22 Bean <bean123ch@gmail.com>
38174
38175 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
38176 resident and in attribute list.
38177
38178 * include/grub/ntfs.h (BMP_LEN): Removed.
38179
c40fd116 381802008-09-22 Bean <bean123ch@gmail.com>
38181
81a06771 38182 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 38183 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
38184
38185 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
38186 error occurs, as grub_disk_open will call grub_disk_close, which will
38187 call p->close (scsi).
38188
81a06771 381892008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 38190
38191 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
38192 (AC_PREREQ): Bumped to 2.59.
38193 (AC_TRY_COMPILE): Replace obsolete macro with ...
38194 (AC_COMPILE_IFELSE): ... this.
38195 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
38196 (AC_LINK_IFELSE): ... this.
38197
5dc43410 381982008-09-21 Felix Zielcke <fzielcke@z-51.de>
38199
38200 * autogen.sh: Add a call to `gendistlist.sh'.
38201
9035dce4 382022008-09-19 Christian Franke <franke@computer.org>
38203
38204 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
38205 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
38206 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
38207 Export __enable_execute_stack() to modules.
38208 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
38209 New function.
38210
7fd75377 382112008-09-09 Felix Zielcke <fzielcke@z-51.de>
38212
040030b3 38213 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
38214 Sort the list.
38215
382162008-09-09 Felix Zielcke <fzielcke@z-51.de>
38217
38218 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 38219 #include <grub/util/hostdisk.h>.
38220
89d5ffcf 382212008-09-08 Robert Millan <rmh@aybabtu.com>
38222
38223 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
38224 segments when their filesz is zero (grub_file_read() interprets
81a06771 38225 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 38226 Use `lowest_segment' rather than 0 for calculating the current
38227 segment load address.
38228
40da438f 382292008-09-08 Robert Millan <rmh@aybabtu.com>
38230
38231 * util/hostdisk.c (open_device): Replace a grub_util_info() call
38232 with grub_dprintf("hostdisk", ...), as it was so verbose that it
38233 clobbered useful information.
38234
ddbf5556 382352008-09-08 Robert Millan <rmh@aybabtu.com>
38236
38237 * include/grub/util/biosdisk.h: Move to ...
38238 * include/grub/util/hostdisk.h: ... here. Update all users.
38239 * util/biosdisk.c: Move to ...
38240 * util/hostdisk.c: ... here. Update all users.
38241
783d0f48 382422008-09-07 Robert Millan <rmh@aybabtu.com>
38243
38244 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
38245 variables.
38246 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
38247 and length can be stored directly in the `mbi->mmap_addr' and
38248 `mbi->mmap_length' struct fields.
38249
548e2ea5 382502008-09-07 Robert Millan <rmh@aybabtu.com>
38251
38252 * conf/i386.rmk: New file. Provides declaration for building
38253 `cpuid.mod'.
38254 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
38255 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
38256 variables.
38257 Include `conf/i386.mk'.
38258 * conf/i386-efi.rmk: Likewise.
38259 * conf/x86_64-efi.rmk: Likewise.
38260 * conf/i386-coreboot.rmk: Likewise.
38261 * conf/i386-ieee1275.rmk: Likewise.
38262
0ea85a37 382632008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
38264
38265 Based on patch created by Colin D Bennett <colin@gibibit.com>.
38266 Adds optimization support for BGR based modes.
38267
38268 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
38269 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38270 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38271 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38272 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38273 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38274 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38275 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38276 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38277 (grub_video_i386_vbeblit_index_index): Likewise.
38278 (grub_video_i386_vbeblit_replace_directN): Added.
38279 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38280 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38281 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38282 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38283 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38284 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 38285 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 38286 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38287 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38288 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38289 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38290 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38291 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
38292
38293 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
38294 (grub_video_i386_vbefill_R8G8B8): Likewise.
38295 (grub_video_i386_vbefill_index): Likewise.
38296 (grub_video_i386_vbefill_direct32): Added.
38297 (grub_video_i386_vbefill_direct24): Likewise.
38298 (grub_video_i386_vbefill_direct16): Likewise.
38299 (grub_video_i386_vbefill_direct8): Likewise.
38300
81a06771 38301 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 38302 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
38303 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
38304 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
38305 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
38306 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 38307
0ea85a37 38308 * video/video.c (grub_video_get_blit_format): Updated to use new
38309 blit formats. Added handling for 16 bit color modes.
81a06771 38310
38311 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 38312 fillers.
38313 (common_blitter): Updated to use new blitters.
38314
38315 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
38316 Removed.
38317 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38318 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38319 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38320 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38321 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38322 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38323 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38324 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38325 (grub_video_i386_vbeblit_index_index): Likewise.
38326 (grub_video_i386_vbeblit_replace_directN): Added.
38327 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38328 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38329 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38330 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38331 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38332 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
38333 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
38334 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38335 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38336 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38337 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38338 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38339 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 38340
0ea85a37 38341 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
38342 (grub_video_i386_vbefill_R8G8B8): Likewise.
38343 (grub_video_i386_vbefill_index): Likewise.
38344 (grub_video_i386_vbefill_direct32): Added.
38345 (grub_video_i386_vbefill_direct24): Likewise.
38346 (grub_video_i386_vbefill_direct16): Likewise.
38347 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 38348
0ea85a37 38349 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
38350 types.
81a06771 38351
0ea85a37 38352 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
38353 types.
81a06771 38354
0ea85a37 38355 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
38356 blitter types.
81a06771 38357
0ea85a37 38358 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
38359 types.
38360
e8a83df6 383612008-09-06 Felix Zielcke <fzielcke@z-51.de>
38362
38363 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
38364 RAID level 1.
38365
6bcd8ee5 383662008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 38367
6bcd8ee5 38368 * fs/iso9660.c (grub_iso9660_date): New structure.
38369 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
38370 (grub_iso9660_uuid): New function.
c375ae58 38371
59261157 383722008-09-05 Bean <bean123ch@gmail.com>
38373
38374 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
38375
38376 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
38377 insensitive bit for names in Win32 and Win32 & DOS namespace.
38378
38379 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
38380
38381 * include/grub/types.h (LONG_MAX): Likewise.
38382
58b6645a 383832008-09-04 Felix Zielcke <fzielcke@z-51.de>
38384
4ee55921 38385 * util/getroot.c: Include <config.h>.
38386 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
38387 add support for /dev/md/N devices and handle LVM double dash escaping.
38388
383892008-09-04 Felix Zielcke <fzielcke@z-51.de>
38390
38391 * config.guess: Update to latest version from config git.
38392 * config.sub: Likewise.
58b6645a 38393
9124f65d 383942008-09-03 Robert Millan <rmh@aybabtu.com>
38395
38396 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
38397 `disk->total_sectors'.
38398
81a06771 383992008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 38400
38401 * include/grub/normal.h: Fixed incorrect comment for
38402 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
38403
81a06771 384042008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 38405
38406 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
38407 values with defines.
38408
38409 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
38410 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
38411 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
38412 (GRUB_VBE_MODEATTR_COLOR): Likewise.
38413 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
38414 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
38415 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
38416 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
38417 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
38418 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
38419 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
38420 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
38421 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
38422 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
38423 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
38424 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
38425 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
38426 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
38427 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
38428
93d5cbf8 384292008-08-31 Robert Millan <rmh@aybabtu.com>
38430
38431 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
38432 declaration.
38433 (grub_multiboot): Fix a few warnings.
38434
21751d50 384352008-08-31 Robert Millan <rmh@aybabtu.com>
38436
38437 * loader/i386/pc/multiboot.c: Update comment not to say that
38438 boot_device support is unimplemented.
38439
e27a75c5 384402008-08-31 Robert Millan <rmh@aybabtu.com>
38441
38442 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
38443 or memory map support are unimplemented.
38444
81a06771 384452008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 38446
38447 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
38448
81a06771 384492008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 38450
38451 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
38452 total video memory in 'vbeinfo' output; show color format details for
38453 each video mode.
38454
7c5d8d95 384552008-08-30 Pavel Roskin <proski@gnu.org>
38456
38457 * util/genmoddep.c: Remove for real this time.
38458 * DISTLIST: Remove util/genmoddep.c.
38459
4cebd25a 384602008-08-30 Robert Millan <rmh@aybabtu.com>
38461
38462 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
38463 as required by Multiboot spec (it was already 4-byte aligned, but
38464 only by chance).
38465
b497a269 384662008-08-29 Pavel Roskin <proski@gnu.org>
38467
e3925185 38468 * kern/powerpc/ieee1275/crt0.S: Rename to ...
38469 * kern/powerpc/ieee1275/startup.S: ... this.
38470 * conf/powerpc-ieee1275.rmk: Adjust for the above.
38471 * DISTLIST: Likewise.
38472
b497a269 38473 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
38474 grub/cpu/kernel.h. Add start label for consistency with other
38475 platforms. Add grub_prefix immediately after start. Add jump
38476 to the code after grub_prefix.
38477 * include/grub/powerpc/kernel.h: Provide valid values for
38478 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
38479
6e5a42fe 384802008-08-29 Bean <bean123ch@gmail.com>
38481
38482 * configure.ac: Change host_os to cygwin for mingw.
38483 (asprintf): New check for function.
38484
38485 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
38486 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
38487
38488 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 38489 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 38490 sync, sleep and grub_util_get_disk_size for mingw.
38491
38492 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
38493 to get size in mingw.
38494 (open_device): Use flag O_BINARY if it's defined.
38495 (find_root_device): Add dummy code for mingw.
38496
38497 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
38498 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
38499 (get_scsi_disk_name): Return 0 for mingw.
38500
38501 * util/hostfs.c: #include <grub/util/misc.h>.
38502 (grub_hostfs_open): Use "rb" flag to open file, use
38503 grub_util_get_disk_size to get disk size for mingw.
38504
38505 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
38506 (asprintf): New function if HAVE_ASPRINTF is not set.
38507 (sync): New function for mingw.
38508 (sleep): Likewise.
38509 (grub_util_get_disk_size): Likewise.
38510
ab3f2673 385112008-08-28 Pavel Roskin <proski@gnu.org>
38512
38513 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38514 kern/time.c.
38515
1c282483 385162008-08-28 Robert Millan <rmh@aybabtu.com>
38517
38518 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
38519
678e849c 385202008-08-28 Robert Millan <rmh@aybabtu.com>
38521
38522 Change find_grub_drive() syntax so it doesn't prevent it from
38523 detecting NULL names as errors.
38524
38525 * util/biosdisk.c (find_grub_drive): Move free slot search code
38526 from here ...
38527 (find_free_slot): ... to here.
38528 (read_device_map): Use find_free_slot() to search for free slots.
38529
965c75ca 385302008-08-27 Marco Gerards <marco@gnu.org>
38531
38532 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
38533 (scsi_mod_SOURCES): New variable.
38534 (scsi_mod_CFLAGS): Likewise
38535 (scsi_mod_LDFLAGS): Likewise.
38536
38537 * disk/scsi.c: New file.
38538
38539 * include/grub/scsi.h: Likewise.
38540
38541 * include/grub/scsicmd.h: Likewise.
38542
38543 * disk/ata.c: Include <grub/scsi.h>.
38544 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
38545 instead.
38546 (grub_ata_iterate): Skip ATAPI devices.
38547 (grub_ata_open): Only handle ATAPI devices.
38548 (struct grub_atapi_read): Removed.
38549 (grub_atapi_readsector): Likewise.
38550 (grub_ata_read): No longer handle ATAPI devices.
38551 (grub_ata_write): Likewise.
38552 (grub_atapi_iterate): New function.
38553 (grub_atapi_read): Likewise.
38554 (grub_atapi_write): Likewise.
38555 (grub_atapi_open): Likewise.
38556 (grub_atapi_close): Likewise.
38557 (grub_atapi_dev): New variable.
38558 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
38559 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
38560
38561 * include/grub/disk.h (enum grub_disk_dev_id): Add
38562 `GRUB_DISK_DEVICE_SCSI_ID'.
38563
c07ae501 385642008-08-26 Robert Millan <rmh@aybabtu.com>
38565
38566 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
38567 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
38568 descriptive.
38569
5ed20adc 385702008-08-23 Bean <bean123ch@gmail.com>
38571
38572 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
38573 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
38574 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
38575 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
38576 dm_nv.mod.
38577 (raid5rec_mod_SOURCES): New macro.
38578 (raid5rec_mod_CFLAGS): Likewise.
38579 (raid5rec_mod_LDFLAGS): Likewise.
38580 (raid6rec_mod_SOURCES): Likewise.
38581 (raid6rec_mod_CFLAGS): Likewise.
38582 (raid6rec_mod_LDFLAGS): Likewise.
38583 (mdraid_mod_SOURCES): Likewise.
38584 (mdraid_mod_CFLAGS): Likewise.
38585 (mdraid_mod_LDFLAGS): Likewise.
38586 (dm_nv_mod_SOURCES): Likewise.
38587 (dm_nv_mod_CFLAGS): Likewise.
38588 (dm_nv_mod_LDFLAGS): Likewise.
38589
38590 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
38591 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
38592 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
38593
38594 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
38595 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
38596
38597 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38598
38599 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38600
38601 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38602
38603 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38604
38605 * disk/raid5_recover.c: New file.
38606
38607 * disk/raid6_recover.c: Likewise.
38608
38609 * disk/mdraid_linux.c: Likewise.
38610
38611 * disk/dmraid_nvidia.c: Likewise.
38612
38613 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
38614 ULONG_MAX.
38615
38616 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
38617 calculate the size of raid device.
38618 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
38619 different layout of raid5.
38620 (grub_raid_scan_device): Remove code specific to mdraid.
38621 (grub_raid_list): New variable.
38622 (free_array): New function.
38623 (grub_raid_register): Likewise.
38624 (grub_raid_unregister): Likewise.
38625 (grub_raid_rescan): Likewise.
38626 (GRUB_MOD_INIT): Don't iterate device here.
38627 (GRUB_MOD_FINI): Use free_array to release resource.
38628
38629 * include/grub/raid.h: Remove macro and structure specific to mdraid.
38630 (grub_raid5_recover_func_t): New function variable type.
38631 (grub_raid6_recover_func_t): Likewise.
38632 (grub_raid5_recover_func): New variable.
38633 (grub_raid6_recover_func): Likewise.
38634 (grub_raid_register): New function.
38635 (grub_raid_unregister): Likewise.
38636 (grub_raid_rescan): Likewise.
38637 (grub_raid_block_xor): Likewise.
38638
38639 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
38640 (CMD_CRC): New macro.
38641 (part): Removed.
38642 (read_file): Handle device as well as file.
38643 (cmd_crc): New function.
38644 (fstest): Handle multiple disks.
38645 (options): Remove part, raw and long, add root and diskcount.
38646 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 38647 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 38648 add handling for the new options, support multiple disks.
38649
38650 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
38651
29c18915 386522008-08-23 Bean <bean123ch@gmail.com>
38653
38654 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
38655
38656 * genfslist.sh: Ignore kernel.mod.
38657
38658 * genpartmaplist.sh: Likewise.
38659
8415f261 386602008-08-23 Robert Millan <rmh@aybabtu.com>
38661
38662 * util/getroot.c (find_root_device): Skip anything that starts with
38663 a dot, not just directories. This avoids things like /dev/.tmp.md0.
38664
d5a7dc5b 386652008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 38666
d5a7dc5b 38667 * util/update-grub.in (GRUB_GFXMODE): Export variable.
38668 * util/grub.d/00_header.in: Allow the administrator to change default
38669 gfxmode via ${GRUB_GFXMODE}.
38670
380cfbb4 386712008-08-21 Felix Zielcke <fzielcke@z-51.de>
38672
38673 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
38674
c9baafe7 386752008-08-21 Robert Millan <rmh@aybabtu.com>
38676
38677 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
38678 loader.
38679 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
38680 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
38681
e290bef2 386822008-08-20 Carles Pina i Estany <carles@pina.cat>
38683
38684 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
38685 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
38686
f9dbfc96 386872008-08-19 Robert Millan <rmh@aybabtu.com>
38688
38689 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
38690 (struct grub_virtual_screen): Remove `cursor_color'.
38691 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
38692 initialization.
38693 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
38694
dd6bd6ab 386952008-08-18 Robert Millan <rmh@aybabtu.com>
38696
38697 Unify (identical) linux_normal.c files.
38698 * loader/i386/efi/linux_normal.c: Move from here ...
38699 * loader/linux_normal.c: ... to here. Update all users.
38700 * loader/i386/pc/linux_normal.c: Delete. Update all users.
38701 * loader/i386/ieee1275/linux_normal.c: Likewise.
38702
7f42f83e 387032008-08-18 Robert Millan <rmh@aybabtu.com>
38704
38705 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
38706 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
38707 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
38708 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
38709 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
38710 New macros.
38711 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
38712 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
38713 (GRUB_LINUX_CL_END_OFFSET): ... to here.
38714 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
38715 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
38716 (GRUB_EFI_CL_END_OFFSET): Rename to ...
38717 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
38718 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
38719 Initialize `params->video_cursor_x' and `params->video_cursor_y'
38720 portably using grub_getxy().
38721 Replace `-EFI' with `-bzImage' in boot message.
38722
38487ddb 387232008-08-17 Robert Millan <rmh@aybabtu.com>
38724
38725 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
38726
deceb3ec 387272008-08-17 Robert Millan <rmh@aybabtu.com>
38728
38729 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
38730
38731 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
38732 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
38733 (grub_machine_mmap_iterate): New function declaration.
38734 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
38735 structure.
38736 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
38737 macros.
38738
38739 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
38740 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
38741 Move e820 parsing from here ...
38742 * kern/i386/pc/mmap.c: New file.
38743 (grub_machine_mmap_iterate): ... to here.
38744
38745 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
38746 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
38747 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
38748 (grub_available_iterate): Redeclare to return `void', and redeclare
38749 its hook to use grub_uint64_t as addr and size parameters, and rename
38750 to ...
38751 (grub_machine_mmap_iterate): ... this. Update all users.
38752
38753 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
38754 to make it more readable. Rename to ...
38755 (grub_machine_mmap_iterate): ... this.
38756
38757 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
38758 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
38759 (grub_multiboot): Allocate an extra region after the payload, and fill
38760 it with a Multiboot memory map. Adjust a.out loader to calculate size
38761 with the extra space.
38762 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
38763 with the extra space.
38764
f8aa0f43 387652008-08-17 Carles Pina i Estany <carles@pina.cat>
38766
9807deb9 38767 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 38768
605f5bb6 387692008-08-17 Felix Zielcke <fzielcke@z-51.de>
38770
38771 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
38772 mdate-sh to the list `find' searches for.
38773 * DISTLIST: Regenerated.
38774
210db6c6 387752008-08-16 Felix Zielcke <fzielcke@z-51.de>
38776
38777 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
38778 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 38779 genmoddep.awk, gensymlist.sh.in.
38780 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 38781 * DISTLIST: Regenerated.
48cdbfd4 38782 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 38783
1082b929 387842008-08-16 Robert Millan <rmh@aybabtu.com>
38785
38786 * disk/raid.c (grub_raid_init): Handle/report errors set by
38787 grub_device_iterate().
38788 * disk/lvm.c (grub_lvm_init): Likewise.
38789
42ce5170 387902008-08-15 Bean <bean123ch@gmail.com>
38791
38792 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38793 and datehook.mod.
38794 (datetime_mod_SOURCES): New macro.
38795 (datetime_mod_CFLAGS): Likewise.
38796 (datetime_mod_LDFLAGS): Likewise.
38797 (date_mod_SOURCES): Likewise.
38798 (date_mod_CFLAGS): Likewise.
38799 (date_mod_LDFLAGS): Likewise.
38800 (datehook_mod_SOURCES): Likewise.
38801 (datehook_mod_CFLAGS): Likewise.
38802 (datehook_mod_LDFLAGS): Likewise.
38803
38804 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38805 and datehook.mod.
38806 (datetime_mod_SOURCES): New macro.
38807 (datetime_mod_CFLAGS): Likewise.
38808 (datetime_mod_LDFLAGS): Likewise.
38809 (date_mod_SOURCES): Likewise.
38810 (date_mod_CFLAGS): Likewise.
38811 (date_mod_LDFLAGS): Likewise.
38812 (datehook_mod_SOURCES): Likewise.
38813 (datehook_mod_CFLAGS): Likewise.
38814 (datehook_mod_LDFLAGS): Likewise.
38815
38816 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38817 and datehook.mod.
38818 (datetime_mod_SOURCES): New macro.
38819 (datetime_mod_CFLAGS): Likewise.
38820 (datetime_mod_LDFLAGS): Likewise.
38821 (date_mod_SOURCES): Likewise.
38822 (date_mod_CFLAGS): Likewise.
38823 (date_mod_LDFLAGS): Likewise.
38824 (datehook_mod_SOURCES): Likewise.
38825 (datehook_mod_CFLAGS): Likewise.
38826 (datehook_mod_LDFLAGS): Likewise.
38827
38828 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38829 and datehook.mod.
38830 (datetime_mod_SOURCES): New macro.
38831 (datetime_mod_CFLAGS): Likewise.
38832 (datetime_mod_LDFLAGS): Likewise.
38833 (date_mod_SOURCES): Likewise.
38834 (date_mod_CFLAGS): Likewise.
38835 (date_mod_LDFLAGS): Likewise.
38836 (datehook_mod_SOURCES): Likewise.
38837 (datehook_mod_CFLAGS): Likewise.
38838 (datehook_mod_LDFLAGS): Likewise.
38839
38840 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38841 and datehook.mod.
38842 (datetime_mod_SOURCES): New macro.
38843 (datetime_mod_CFLAGS): Likewise.
38844 (datetime_mod_LDFLAGS): Likewise.
38845 (date_mod_SOURCES): Likewise.
38846 (date_mod_CFLAGS): Likewise.
38847 (date_mod_LDFLAGS): Likewise.
38848 (datehook_mod_SOURCES): Likewise.
38849 (datehook_mod_CFLAGS): Likewise.
38850 (datehook_mod_LDFLAGS): Likewise.
38851
38852 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
38853
38854 * commands/date.c: New file.
38855
38856 * hook/datehook.c: Likewise.
38857
38858 * include/grub/lib/datetime.h: Likewise.
38859
38860 * include/grub/i386/cmos.h: Likewise.
38861
38862 * lib/datetime.c: Likewise.
38863
38864 * lib/i386/datetime.c: Likewise.
38865
38866 * lib/efi/datetime.c: Likewise.
38867
0e9242da 388682008-08-14 Robert Millan <rmh@aybabtu.com>
38869
38870 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
38871 (grub_mkelfimage_SOURCES): New variable.
38872 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
38873
38874 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
38875 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
38876 * conf/powerpc-ieee1275.rmk: Likewise.
38877 * conf/i386-ieee1275.rmk: Likewise.
38878
38879 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
38880 * kern/i386/coreboot/init.c: Likewise.
38881
38882 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
38883 with `<grub/cpu/kernel.h>'.
38884 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
38885 to ...
38886 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
38887 * kern/i386/coreboot/startup.S: Likewise.
38888
38889 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
38890 (GRUB_MOD_GAP): Remove.
38891 * include/grub/powerpc/kernel.h: New file.
38892 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
38893 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
38894 * include/grub/i386/kernel.h: New file.
38895 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
38896 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
38897 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
38898
38899 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
38900 `grub-mkelfimage'.
38901 Use --directory when invoking grub_mkimage.
38902
38903 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
38904 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
38905 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
38906 and GRUB_KERNEL_CPU_PREFIX.
38907
b86408f8 389082008-08-14 Felix Zielcke <fzielcke@z-51.de>
38909
d5e619ca 38910 * include/grub/err.h (grub_err_printf): New function prototype.
38911 * util/misc.c (grub_err_printf): New function.
38912 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
38913 grub_printf.
38914 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 38915
7161f0e0 389162008-08-13 Robert Millan <rmh@aybabtu.com>
38917
38918 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
38919
a1967522 389202008-08-13 Robert Millan <rmh@aybabtu.com>
38921
38922 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
38923 boot entry.
38924
371458b5 389252008-08-12 Robert Millan <rmh@aybabtu.com>
38926
38927 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
38928 of the relocation code from here ...
38929 (grub_multiboot): ... to here.
38930 (forward_relocator, backward_relocator): Move from here ...
38931 * kern/i386/loader.S (grub_multiboot_forward_relocator)
38932 (grub_multiboot_backward_relocator): ... to here.
38933 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
38934 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
38935 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
38936 (grub_multiboot_forward_relocator_end)
38937 (grub_multiboot_backward_relocator)
38938 (grub_multiboot_backward_relocator_end): New variables.
38939
05f9452b 389402008-08-12 Bean <bean123ch@gmail.com>
38941
38942 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
38943
20024ab0 389442008-08-11 Robert Millan <rmh@aybabtu.com>
38945
38946 * kern/i386/linuxbios/startup.S: Move from here ...
38947 * kern/i386/coreboot/startup.S: ... to here.
38948
38949 * kern/i386/linuxbios/init.c: Move from here ...
38950 * kern/i386/coreboot/init.c: ... to here.
38951
38952 * kern/i386/linuxbios/table.c: Move from here ...
38953 * kern/i386/coreboot/mmap.c: ... to here.
38954
38955 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
38956
e352e9cd 389572008-08-11 Robert Millan <rmh@aybabtu.com>
38958
38959 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
38960 errors. Leave it to the upper layer to handle them.
38961
2d05bc6a 389622008-08-09 Christian Franke <franke@computer.org>
38963
38964 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
38965 * conf/common.rmk: Install `grub-pe2elf' only if requested.
38966 Install `grub.d/10_windows' only on Cygwin.
38967 * configure.ac: Add subst of `target_os'.
38968 Check `target_os' also before setting TARGET_OBJ2ELF.
38969 Add `--enable-grub-pe2elf'.
38970
042bd419 389712008-08-08 Robert Millan <rmh@aybabtu.com>
38972
38973 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
38974 (grub_last_time): Change type to grub_uint64_t.
38975 (grub_disk_open): Migrate code from to using grub_get_time_ms().
38976 (grub_disk_close): Likewise.
38977
38978 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
38979 (run_menu): Migrate code from to using grub_get_time_ms().
38980
38981 * util/misc.c (grub_get_time_ms): New function.
38982
7f280db5 389832008-08-08 Marco Gerards <marco@gnu.org>
38984
38985 * disk/ata.c (grub_ata_regget): Change return type to
38986 `grub_uint8_t'.
38987 (grub_ata_regget2): Likewise.
38988 (grub_ata_wait_status): New function.
38989 (grub_ata_wait_busy): Removed function, updated all users to use
38990 `grub_ata_wait_status'.
38991 (grub_ata_wait_drq): Likewise.
38992 (grub_ata_cmd): New function.
38993 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
38994 error handling.
38995 (grub_ata_pio_write): Add error handling.
38996 (grub_atapi_identify): Likewise.
38997 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
38998 handling.
38999 (grub_ata_identify): Use `grub_ata_cmd' and improve error
39000 handling. Actually use the detected registers. Reorder the
39001 detection logic such that it is easier to read.
39002 (grub_ata_pciinit): Do not assign the same ID to each controller.
39003 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
39004 handling.
39005 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
39006
39007 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
39008
1fbc5e66 390092008-08-08 Marco Gerards <marco@gnu.org>
39010
39011 * NEWS: Update.
39012
819ce6c0 390132008-08-07 Bean <bean123ch@gmail.com>
39014
39015 * include/grub/x86_64/pci.h: New file.
39016
5c41d44d 390172008-08-07 Christian Franke <franke@computer.org>
39018
39019 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
39020 (TIMER2_GATE): Likewise.
39021 (grub_pit_wait): Add enable/disable of the timer2 gate
39022 bit of port 0x61. This fixes a possible infinite loop.
39023
5ebc275d 390242008-08-07 Bean <bean123ch@gmail.com>
39025
39026 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
39027 kern/i386/tsc.c and kern/i386/pit.c.
39028
39029 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
39030 x86_64 platform.
39031
39032 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
39033 <grub/i386/tsc.h>.
39034
39035 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
39036
e383b3d0 390372008-08-07 Bean <bean123ch@gmail.com>
39038
39039 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
39040
39041 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
39042
39043 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
39044 multiple inclusion. Add #include <grub/types.h>.
39045
1cbb58ac 390462008-08-06 Christian Franke <franke@computer.org>
39047
39048 * conf/common.rmk: Build and install `10_windows'.
39049 * util/grub.d/10_windows.in: New script.
39050
337f5a1e 390512008-08-06 Pavel Roskin <proski@gnu.org>
39052
39053 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
39054
057bc4ac 390552008-08-06 Robert Millan <rmh@aybabtu.com>
39056
39057 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
39058 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
39059
2b99f123 390602008-08-06 Bean <bean123ch@gmail.com>
39061
39062 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
39063 (grub_pxefs_fs_int): Remove dummy definition.
39064 (grub_pxefs_open): Use data->block_size to store the current block
39065 size setting.
39066 (grub_pxefs_read): Use block size stored in data->block_size. As the
39067 value of grub_pxe_blksize can be changed after the file is opened.
39068
9f0234cb 390692008-08-06 Bean <bean123ch@gmail.com>
39070
39071 * fs/i386/pc/pxe.c (curr_file): new variable.
39072 (grub_pxefs_open): Simply the handling of pxe file system. Don't
39073 require the dummy internal file system anymore.
39074 (grub_pxefs_read): Removed.
39075 (grub_pxefs_close): Likewise.
39076 (grub_pxefs_fs_int): Likewise.
39077 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
39078 connection when we switch file.
39079 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
39080
a55d42e0 390812008-08-06 Robert Millan <rmh@aybabtu.com>
39082
39083 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
39084 `halt.mod'.
39085 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
39086 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
39087
39088 * kern/i386/halt.c: New file.
39089 * kern/i386/reboot.c: Likewise.
39090 * include/grub/i386/reboot.h: Likewise.
39091 * include/grub/i386/halt.h: Likewise.
39092
39093 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
39094 Include `<grub/cpu/halt.h>'.
39095 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
39096 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
39097
39098 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
39099 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
39100 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
39101 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
39102 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
39103 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
39104 from here ...
39105 * include/grub/i386/at_keyboard.h: ... to here.
39106
24371d26 391072008-08-05 Robert Millan <rmh@aybabtu.com>
39108
39109 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
39110 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
39111 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
39112 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39113 `kern/generic/millisleep.c'.
39114
39115 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
39116 instead of grub_get_rtc().
39117 (grub_tsc_init): Initialize `tsc_boot_time'.
39118
39119 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
39120 (grub_machine_init): Use grub_tsc_init() rather than
39121 installing an RTC-based handler via grub_install_get_time_ms().
39122
39123 * kern/i386/pit.c: New file.
39124 * include/grub/i386/pit.h: Likewise.
39125
9e7007b3 391262008-08-05 Bean <bean123ch@gmail.com>
39127
39128 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
39129
39130 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
39131 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
39132 (pxe_mod_SOURCES): New macro.
39133 (pxe_mod_CFLAGS): Likewise.
39134 (pxe_mod_LDFLAGS): Likewise.
39135 (pxecmd_mod_SOURCES): Likewise.
39136 (pxecmd_mod_CFLAGS): Likewise.
39137 (pxecmd_mod_LDFLAGS): Likewise.
39138
39139 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
39140 (grub_pxe_call): Likewise.
39141
39142 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
39143
39144 * commands/i386/pc/pxecmd.c: New file.
39145
9f0234cb 39146 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 39147
39148 * include/grub/i386/pc/pxe.h: Likewise.
39149
6977d49f 391502008-08-05 Bean <bean123ch@gmail.com>
39151
39152 * util/console.c (grub_console_cur_color): New variable.
39153 (grub_console_standard_color): Likewise.
39154 (grub_console_normal_color): Likewise.
39155 (grub_console_highlight_color): Likewise.
39156 (color_map): Likewise.
39157 (use_color): Likewise.
39158 (NUM_COLORS): New macro.
39159 (grub_ncurses_setcolorstate): Handle color properly.
39160 (grub_ncurses_setcolor): Don't change color here, just remember the
39161 settings, color will be set in grub_ncurses_setcolorstate.
39162 (grub_ncurses_getcolor): New function.
39163 (grub_ncurses_init): Initialize color pairs.
39164 (grub_ncurses_term): New member grub_ncurses_getcolor.
39165
9c2ff3ee 391662008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 39167
9c2ff3ee 39168 High resolution timer support. Implemented for x86 CPUs using TSC.
39169 Extracted generic grub_millisleep() so it's linked in only as needed.
39170 This requires a Pentium compatible CPU; if the RDTSC instruction is
39171 not supported, then it falls back on the generic grub_get_time_ms()
39172 implementation that uses the machine's RTC.
39173
39174 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
39175 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39176 `kern/generic/millisleep.c'.
39177
39178 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
39179 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
39180
39181 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
39182 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
39183
39184 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39185
39186 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39187 `kern/generic/millisleep.c'.
39188
39189 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39190
39191 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
39192
39193 * kern/generic/rtc_get_time_ms.c: New file.
39194
39195 * kern/generic/millisleep.c: New file.
337f5a1e 39196
9c2ff3ee 39197 * kern/misc.c: Don't include
39198 <kern/time.h> anymore.
39199 (grub_millisleep_generic): Removed.
39200
39201 * commands/sleep.c (grub_interruptible_millisleep): Uses
39202 grub_get_time_ms() instead of grub_get_rtc().
39203
39204 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
39205 function.
39206 (grub_cpu_is_cpuid_supported): New inline function.
39207 (grub_cpu_is_tsc_supported): New inline function.
39208 (grub_tsc_init): New function prototype.
39209 (grub_tsc_get_time_ms): New function prototype.
39210
39211 * kern/i386/tsc.c (grub_get_time_ms): New file.
39212
39213 * include/grub/time.h: Include <grub/types.h.
39214 (grub_millisleep_generic): Removed.
39215 (grub_get_time_ms): New prototype.
39216 (grub_install_get_time_ms): New prototype.
39217 (grub_rtc_get_time_ms): New prototype.
39218
39219 * kern/time.c (grub_get_time_ms): New function.
39220 (grub_install_get_time_ms): New function.
39221
39222 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
39223 <grub/time.h> anymore.
39224 (grub_millisleep): Removed.
39225 (grub_machine_init): Call grub_tsc_init.
39226
39227 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
39228 get_time_ms() implementation.
39229
39230 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
39231 (ieee1275_get_time_ms): New function.
39232 (grub_machine_init): Install get_time_ms() implementation.
39233
39234 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
39235 (grub_machine_init): Call grub_tsc_init().
39236 (grub_millisleep): Removed.
bf06a93f 39237
9c2ff3ee 39238 * kern/ieee1275/init.c (grub_millisleep): Removed.
39239 (grub_machine_init): Install ieee1275_get_time_ms()
39240 implementation.
39241 (ieee1275_get_time_ms): New function.
39242 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
39243 real work.
39244
9ec92aaf 392452008-08-05 Marco Gerards <marco@gnu.org>
39246
39247 * disk/ata.c: Include <grub/pci.h>.
39248 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
39249 (grub_ata_initialize): Rewritten.
39250 (grub_ata_device_initialize): New function.
39251
8d23f507 392522008-08-04 Pavel Roskin <proski@gnu.org>
39253
39254 * kern/main.c: Include grub/mm.h.
39255
5e15ee3d 392562008-08-04 Robert Millan <rmh@aybabtu.com>
39257
39258 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
39259 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
39260 corruption problem).
39261
a9053f8f 392622008-08-04 Robert Millan <rmh@aybabtu.com>
39263
39264 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
39265 warnings introduced in my last commit.
39266
dd19c7d7 392672008-08-03 Robert Millan <rmh@aybabtu.com>
39268
39269 Make PCI available on all i386 architectures.
39270
39271 * include/grub/i386/pc/pci.h: Move from here ...
39272 * include/grub/i386/pci.h: ... to here.
39273
39274 * include/grub/i386/pc/pci.h: Remove.
39275 * include/grub/i386/efi/pci.h: Remove.
39276 * include/grub/x86_64/efi/pci.h: Remove.
39277
39278 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
39279 `<grub/cpu/pci.h>'.
39280
39281 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
39282 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
39283 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
39284
39285 * conf/i386-ieee1275.rmk: Likewise.
39286
e14a6184 392872008-08-03 Robert Millan <rmh@aybabtu.com>
39288
39289 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
39290 (grub_console_setcursor): Make it possible to set cursor off.
39291
52768e37 392922008-08-03 Robert Millan <rmh@aybabtu.com>
39293
39294 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
39295 of modules instead of assuming which platform provides what.
39296 * util/update-grub.in: Likewise.
39297
2d52f57f 392982008-08-03 Robert Millan <rmh@aybabtu.com>
39299
39300 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
39301 instead of `grub_install_dos_part' to determine whether a drive needs
39302 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 39303 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 39304
2a5cd121 393052008-08-02 Robert Millan <rmh@aybabtu.com>
39306
39307 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
39308
93808428 393092008-08-02 Robert Millan <rmh@aybabtu.com>
39310
39311 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
39312 of informational grub_dprintf() calls.
39313
3bd0a12a 393142008-08-02 Robert Millan <rmh@aybabtu.com>
39315
39316 * disk/memdisk.c (memdisk_size): Don't initialize.
39317 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
39318
39319 * include/grub/i386/pc/kernel.h
39320 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
39321 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
39322 (grub_memdisk_image_size, grub_arch_memdisk_addr)
39323 (grub_arch_memdisk_size): Remove.
39324
39325 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
39326 field (was only used to transfer a constant). Add `type' field to
39327 support multiple module types.
39328 (grub_module_iterate): New function.
39329
39330 * kern/device.c (grub_device_open): Do not hide error messages
39331 when grub_disk_open() fails. Use grub_print_error() instead.
39332
39333 * kern/i386/pc/init.c (grub_arch_modules_addr)
39334 (grub_arch_memdisk_size): Remove functions.
39335 (grub_arch_modules_addr): Return the module address in high memory
39336 (now that it isn't copied anymore).
39337
39338 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
39339 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
39340 decompression routine (grub_total_module_size already includes that
39341 now). Don't copy modules back to low memory.
39342
39343 * kern/main.c: Include `<grub/mm.h>'.
39344 (grub_load_modules): Split out (and use) ...
39345 (grub_module_iterate): ... this function, which iterates through
39346 module objects and runs a hook.
39347 Comment out grub_mm_init_region() call, as it would cause non-ELF
39348 modules to be overwritten.
39349
39350 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
39351 the memdisk image in its own region, make it part of the module list.
39352 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
39353 (main): Parse --memdisk|-m option, and pass user-provided path as
39354 parameter to generate_image().
39355 (add_segments): Pass `memdisk_path' down to load_modules().
39356 (load_modules): Embed memdisk image in module section when requested.
39357 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
39358 `header.type' instead of `header.offset'.
39359
39360 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
39361 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
39362 (memdisk_mod_LDFLAGS): New variables.
39363 * conf/i386-coreboot.rmk: Likewise.
39364 * conf/i386-ieee1275.rmk: Likewise.
39365
a927cc73 393662008-08-02 Robert Millan <rmh@aybabtu.com>
39367
39368 * loader/i386/pc/multiboot.c (playground, forward_relocator)
39369 (backward_relocator): New variables. Used to allocate and relocate
39370 the payload, respectively.
39371 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 39372 address, install the appropriate relocator code in each bound of
a927cc73 39373 the payload, and set the entry point such that
39374 grub_multiboot_real_boot() will jump to one of them.
39375
39376 * kern/i386/loader.S (grub_multiboot_payload_size)
39377 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
39378 (grub_multiboot_payload_entry_offset): New variables.
39379 (grub_multiboot_real_boot): Set cpu context to what the relocator
39380 expects, and jump to the relocator instead of the payload.
39381
39382 * include/grub/i386/loader.h (grub_multiboot_payload_size)
39383 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
39384 (grub_multiboot_payload_entry_offset): Export.
39385
b15d8a0c 393862008-08-01 Bean <bean123ch@gmail.com>
39387
39388 * normal/menu_entry.c (editor_getline): Don't return the original
39389 string as result, as it will be released by lexer once it has done
39390 using it.
39391
cdfb3d22 393922008-08-01 Robert Millan <rmh@aybabtu.com>
39393
39394 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
39395 within menuentries, not before them.
39396 util/grub.d/10_hurd.in: Likewise.
39397
9175e93d 393982008-08-01 Bean <bean123ch@gmail.com>
39399
39400 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
39401 (bufio_mod_SOURCES): New macro.
39402 (bufio_mod_CFLAGS): Likewise.
39403 (bufio_mod_LDFLAGS): Likewise.
39404
39405 * include/grub/bufio.h: New file.
39406
39407 * io/bufio.c: Likewise.
39408
39409 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
39410 (grub_video_reader_png): Use grub_buffile_open to open file.
39411
39412 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
39413 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
39414
39415 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
39416 (grub_video_reader_tga): Use grub_buffile_open to open file.
39417
39418 * font/manager.c: Include <grub/bufio.h>.
39419 (add_font): Use grub_buffile_open to open file.
39420
3d8383e7 394212008-07-31 Robert Millan <rmh@aybabtu.com>
39422
39423 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
39424 ELF segments, use a macro for arbitrarily accessing any of them instead
39425 of preparing a pointer that allows access to one at a time.
39426 (grub_multiboot_load_elf64): Likewise.
39427
16e641b6 394282008-07-31 Bean <bean123ch@gmail.com>
39429
39430 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
39431 GRUB_KERNEL_MACHINE_DATA_END.
39432
59198b72 394332008-07-30 Robert Millan <rmh@aybabtu.com>
39434
39435 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
39436 Increase from 0x50 to 0x60.
39437 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
39438 use UUIDs to identify the root drive for them. If that's not
39439 possible, abort.
39440 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
39441 check, for cross-disk installs.
39442
ae88bca3 394432008-07-30 Robert Millan <rmh@aybabtu.com>
39444
39445 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
39446 is non-empty, use it to set the `prefix' environment variable instead
39447 of the usual approach.
39448 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
39449 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
39450 environment variable instead of dummy make_install_device().
39451
39452 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
39453 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 39454 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 39455
39456 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
39457 New variable reference.
39458 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
39459 New macro. Defines offset of `grub_prefix' within startup.S (relative
39460 to `start').
39461 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
39462 section within startup.S (relative to `start').
39463 * include/grub/i386/coreboot/kernel.h: Likewise.
39464
39465 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
39466 Overwrite grub_prefix with its contents, at the beginning of the
39467 first segment.
39468 (main): Understand -p|--prefix.
39469
14f41dd1 394702008-07-30 Robert Millan <rmh@aybabtu.com>
39471
39472 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
39473
4ca049a3 394742008-07-30 Robert Millan <rmh@aybabtu.com>
39475
39476 * term/i386/pc/vga_text.c (grub_console_cls): Use
39477 grub_console_gotoxy() to go back to beginning of the screen.
39478 Found by Patrick Georgi <patrick.georgi@coresystems.de>
39479
2921d337 394802008-07-29 Christian Franke <franke@computer.org>
39481
39482 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
39483 Add conversion of emulated mount points on Cygwin.
39484
b609876d 394852008-07-29 Christian Franke <franke@computer.org>
39486
39487 * util/update-grub.in: Add a check for admin
39488 group on Cygwin.
39489 Remove old `grub.cfg.new' before creation.
39490 Add `-f' to `mv' to handle the different filesystem
39491 semantics of Windows.
39492
e93e4679 394932008-07-29 Bean <bean123ch@gmail.com>
39494
39495 * normal/main.c (get_line): Fix buffer overflow bug.
39496
41694fd0 394972008-07-28 Robert Millan <rmh@aybabtu.com>
39498
39499 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
39500 (struct grub_apple_header): New struct. Describes the layout of
39501 the partmap header.
39502 (apple_partition_map_iterate): Check the header magic as well as the
39503 partition magic (which was already being checked).
39504
cfd0b4e6 395052008-07-28 Pavel Roskin <proski@gnu.org>
39506
39507 * genmk.rb: Add a warning to the beginning of the output that
39508 it's a generated file and should not be edited.
39509
93cce016 395102008-07-28 Robert Millan <rmh@aybabtu.com>
39511
39512 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39513 with the same number are found, just use issue a warning with
39514 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 39515
cd1df915 395162008-07-27 Robert Millan <rmh@aybabtu.com>
39517
39518 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
39519 information.
39520
b70a8427 395212008-07-27 Bean <bean123ch@gmail.com>
39522
39523 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
39524 (grub_fat_find_dir): Ignore case when comparing filename.
39525
8f5e379f 395262008-07-27 Bean <bean123ch@gmail.com>
39527
39528 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
39529 smallino, as it's more descriptive, and i8count can be confused with
39530 the other field count.
39531 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
39532 inode type.
39533
a85cd5a0 395342008-07-27 Bean <bean123ch@gmail.com>
39535
39536 * commands/crc.c: New file.
39537
39538 * lib/crc.c: Likewise.
39539
39540 * include/grub/lib/crc.h: Likewise.
39541
39542 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
39543
39544 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
39545 (hexdump): Move this function to ...
39546
39547 * lib/hexdump.c: ... here.
39548
39549 * include/grub/hexdump.h: Renamed to ...
39550
39551 * include/grub/lib/hexdump.h: ... this.
39552
39553 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
39554
39555 * util/grub-editenv.c: Likewise.
39556
39557 * include/envblk.h: Renamed to ...
39558
39559 * include/lib/envblk.h: ... this.
39560
39561 * util/envblk.c: Renamed to ...
39562
39563 * lib/envblk.c: ... this.
39564
39565 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
39566 lib/hexdump.c.
39567 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
39568 (pkglib_MODULES): Add crc.mod.
39569 (hexdump_mod_SOURCES): Add lib/hexdump.c.
39570 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
39571 (crc_mod_SOURCES): New macro.
39572 (crc_mod_CFLAGS): Likewise.
39573 (crc_mod_LDFLAGS): Likewise.
39574
39575 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
39576
39577 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39578
39579 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39580
39581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39582
39583 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39584
c298def0 395852008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 39586
39587 * commands/help.c: Include <grub/term.h>.
39588 (TERM_WIDTH): Removed. Updated all users.
39589
cc349fb3 395902008-07-27 Pavel Roskin <proski@gnu.org>
39591
39592 * util/getroot.c (find_root_device): Rephrase a comment to avoid
39593 spurious warnings about a comment within a comment.
39594
9051607e 395952008-07-25 Robert Millan <rmh@aybabtu.com>
39596
39597 * util/getroot.c (find_root_device): Skip devices that match
39598 /dev/dm-[0-9]. This lets the real device be found for any type of
39599 abstraction (LVM, EVMS, RAID..).
39600 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
39601 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
39602 device is found first, find_root_device() will now skip it.
39603
01453bfc 396042008-07-24 Pavel Roskin <proski@gnu.org>
39605
39606 * include/grub/types.h: Use __builtin_bswap32() and
39607 __builtin_bswap64() with gcc 4.3 and newer.
39608
6af9849f 396092008-07-24 Christian Franke <franke@computer.org>
39610
3a0fa256 39611 * util/i386/pc/grub-install.in: If `--debug' is specified,
39612 pass `--verbose' to grub-setup.
39613 Abort script if make_system_path_relative_to_its_root() fails.
39614
7810e747 396152008-07-24 Bean <bean123ch@gmail.com>
39616
39617 * configure.ac: Fixed a bug caused by the previous cygwin patch,
39618 variable `target_platform' should be `platform'.
39619
42290e17 396202008-07-24 Bean <bean123ch@gmail.com>
39621
51cc5193 39622 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 39623 (grub_png_init_fixed_block): New function.
39624 (grub_png_decode_image_data): Handle fixed huffman code compression.
39625
2a8a80e4 396262008-07-24 Bean <bean123ch@gmail.com>
39627
39628 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
39629 (grub_pe2elf_SOURCES): New macro.
39630 (CLEANFILES): Add grub-pe2elf.
39631
39632 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
39633 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
39634 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
39635 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
39636 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
39637 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
39638 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
39639 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
39640 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
39641 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
39642 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
39643 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
39644 (GRUB_PE32_DT_FUNCTION): Likewise.
39645 (GRUB_PE32_REL_I386_DIR32): Likewise.
39646 (GRUB_PE32_REL_I386_REL32): Likewise.
39647 (grub_pe32_symbol): New structure.
39648 (grub_pe32_reloc): Likewise.
39649
39650 * util/grub-pe2elf.c: New file.
39651
39652 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
39653 start symbol in non pc platform.
39654
39655 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
39656
39657 The following patches are from Christian Franke.
39658
39659 * include/grub/dl.h: Remove .previous, gas supports this only
39660 for ELF format.
39661
39662 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
39663 Remove .type, gas supports this only for ELF format.
39664
39665 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
39666 nullbytes in symbol table. This fixes an infinite loop if table is
39667 zero filled.
39668
39669 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
39670 TARGET_IMG_LDFLAGS and EXEEXT.
39671
39672 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
39673 TARGET_IMG_LDFLAGS_AC.
39674 (grub_CHECK_STACK_ARG_PROBE): New function.
39675
39676 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
39677
39678 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
39679
39680 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
39681 to set TARGET_IMG_LD* accordingly.
39682 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
39683 Add call to grub_CHECK_STACK_ARG_PROBE.
39684 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
39685
39686 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
39687
39688 * genmk.rb: Add EXEEXT to CLEANFILES.
39689
12ccdb75 396902008-07-23 Robert Millan <rmh@aybabtu.com>
39691
39692 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
39693 define the codes for arrows and lines used for the menu).
39694 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
39695 as well.
39696
39697 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
39698 fonts, because the latter are too slow.
39699
18eeaf04 397002008-07-21 Bean <bean123ch@gmail.com>
39701
39702 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
39703 a20. Run keyboard test last, as it will cause macbook to halt.
39704
b095e2ad 397052008-07-18 Pavel Roskin <proski@gnu.org>
39706
39707 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
39708 load foreign architecture modules correctly anyway. Keep
39709 support for loading host architecture modules, whether we
39710 compile them or not.
39711
737feb35 397122008-07-17 Pavel Roskin <proski@gnu.org>
39713
3f4ce737 39714 * configure.ac: Use -m32 or -m64 regardless of whether we had to
39715 change target_cpu. The compiler default can mismatch target_cpu
39716 in any case.
39717
4ad2d049 39718 * disk/efi/efidisk.c: Fix format warnings on x86_64.
39719 * kern/efi/efi.c: Likewise.
39720
f6130a12 39721 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
39722 target compiler is functional.
39723 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
39724 are set up.
39725
58393a2d 39726 * configure.ac: Default to efi platform for x86_64-apple. Allow
39727 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
39728 adjustments from the rest, only do them if target is not
39729 explicitly given. Merge other adjustments with the final sanity
39730 check. Remove an extraneous check for supported CPU. Be
39731 specific which CPU and which platform is not supported.
39732
737feb35 39733 * configure.ac: Default to pc platform for x86_64.
39734
546f966a 397352008-07-17 Robert Millan <rmh@aybabtu.com>
39736
39737 Partial LinuxBIOS -> Coreboot rename.
39738
39739 * conf/i386-linuxbios.rmk: Renamed to ...
39740 * conf/i386-coreboot.rmk: ... this.
39741 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
39742 * configure.ac: Accept "coreboot" as input platform (but maintain
39743 compatibility with "linuxbios").
39744 * include/grub/i386/linuxbios: Renamed to ...
39745 * include/grub/i386/coreboot: ... this.
39746
20011694 397472008-07-17 Bean <bean123ch@gmail.com>
39748
39749 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 39750 (appleldr_mod_SOURCE): New variable.
20011694 39751 (appleldr_mod_CFLAGS): Likewise.
39752 (appleldr_mod_LDFLAGS): Likewise.
39753 (pci_mod_SOURCES): Likewise.
39754 (pci_mod_CFLAGS): Likewise.
39755 (pci_mod_LDFLAGS): Likewise.
39756 (lspci_mod_SOURCES): Likewise.
39757 (lspci_mod_CFLAGS): Likewise.
39758 (lspci_mod_LDFLAGS): Likewise.
39759
39760 * conf/x86_64-efi.rmk: New file.
39761
39762 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
39763 macro.
39764 (grub_efidisk_write): Likewise.
39765
39766 * include/efi/api.h (efi_call_0): New macro.
39767 (efi_call_1): Likewise.
39768 (efi_call_2): Likewise.
39769 (efi_call_3): Likewise.
39770 (efi_call_4): Likewise.
39771 (efi_call_5): Likewise.
39772 (efi_call_6): Likewise.
39773
39774 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
39775 grub_rescue_cmd_chainloader.
39776
39777 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
39778 (grub_pe32_optional_header): Change some fields based on i386 or
39779 x86_64 platform.
39780 (GRUB_PE32_PE32_MAGIC): Likewise.
39781
39782 * include/grub/efi/uga_draw.h: New file.
39783
39784 * include/grub/elf.h (STN_ABS): New constant.
39785 (R_X86_64_NONE): Relocation constant for x86_64.
39786 (R_X86_64_64): Likewise.
39787 (R_X86_64_PC32): Likewise.
39788 (R_X86_64_GOT32): Likewise.
39789 (R_X86_64_PLT32): Likewise.
39790 (R_X86_64_COPY): Likewise.
39791 (R_X86_64_GLOB_DAT): Likewise.
39792 (R_X86_64_JUMP_SLOT): Likewise.
39793 (R_X86_64_RELATIVE): Likewise.
39794 (R_X86_64_GOTPCREL): Likewise.
39795 (R_X86_64_32): Likewise.
39796 (R_X86_64_32S): Likewise.
39797 (R_X86_64_16): Likewise.
39798 (R_X86_64_PC16): Likewise.
39799 (R_X86_64_8): Likewise.
39800 (R_X86_64_PC8): Likewise.
39801
39802 * include/grub/i386/efi/pci.h: New file.
39803
39804 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
39805 Change it value based on platform.
39806 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
39807 (GRUB_E820_RAM): Likewise.
39808 (GRUB_E820_RESERVED): Likewise.
39809 (GRUB_E820_ACPI): Likewise.
39810 (GRUB_E820_NVS): Likewise.
39811 (GRUB_E820_EXEC_CODE): Likewise.
39812 (GRUB_E820_MAX_ENTRY): Likewise.
39813 (grub_e820_mmap): New structure.
39814 (linux_kernel_header): Change the efi field according to different
39815 kernel version, also field from linux_kernel_header.
39816
39817 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
39818
39819 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
39820 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
39821 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
39822 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
39823 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
39824 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
39825 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
39826 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
39827 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
39828 (GRUB_PCI_ADDR_IO_MASK): Likewise.
39829
39830 * include/grub/x86_64/efi/kernel.h: New file.
39831
39832 * include/grub/x86_64/efi/loader.h: Likewise.
39833
39834 * include/grub/x86_64/efi/machine.h: Likewise.
39835
39836 * include/grub/x86_64/efi/pci.h: Likewise.
39837
39838 * include/grub/x86_64/efi/time.h: Likewise.
39839
39840 * include/grub/x86_64/linux.h: Likewise.
39841
39842 * include/grub/x86_64/setjmp.h: Likewise.
39843
39844 * include/grub/x86_64/time.h: Likewise.
39845
39846 * include/grub/x86_64/types.h: Likewise.
39847
39848 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
39849 GRUB_TARGET_SIZEOF_VOID_P.
39850
39851 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
39852 (grub_efi_locate_handle): Likewise.
39853 (grub_efi_open_protocol): Likewise.
39854 (grub_efi_set_text_mode): Likewise.
39855 (grub_efi_stall): Likewise.
39856 (grub_exit): Likewise.
39857 (grub_reboot): Likewise.
39858 (grub_halt): Likewise.
39859 (grub_efi_exit_boot_services): Likewise.
39860 (grub_get_rtc): Likewise.
39861
39862 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
39863 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
39864 (grub_efi_allocate_pages): Wrap efi calls.
39865 (grub_efi_free_pages): Wrap efi calls.
39866 (grub_efi_get_memory_map): Wrap efi calls.
39867
39868 * kern/x86_64/dl.c: New file.
39869
39870 * kern/x86_64/efi/callwrap.S: Likewise.
39871
39872 * kern/x86_64/efi/startup.S: Likewise.
39873
39874 * loader/efi/appleloader.c: Likewise.
39875
39876 * loader/efi/chainloader.c (cmdline): New variable.
39877 (grub_chainloader_unload): Wrap efi calls.
39878 (grub_chainloader_boot): Likewise.
39879 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
39880 command line.
39881
39882 * loader/efi/chainloader_normal.c (chainloader_command):
39883 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
39884 command line.
39885
39886 * loader/i386/efi/linux.c (allocate_pages): Change allocation
39887 method.
39888 (grub_e820_add_region): New function.
39889 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
39890 booting.
39891 (grub_find_video_card): New function.
39892 (grub_linux_setup_video): New function.
39893 (grub_rescue_cmd_linux): Probe for video information.
39894
39895 * normal/x86_64/setjmp.S: New file.
39896
39897 * term/efi/console.c (map_char): New function.
39898 (grub_console_putchar): Map unicode char.
39899 (grub_console_checkkey): Wrap efi calls.
39900 (grub_console_getkey): Likewise.
39901 (grub_console_getwh): Likewise.
39902 (grub_console_gotoxy): Likewise.
39903 (grub_console_cls): Likewise.
39904 (grub_console_setcolorstate): Likewise.
39905 (grub_console_setcursor): Likewise.
39906
39907 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
39908
59652a20 399092008-07-16 Pavel Roskin <proski@gnu.org>
39910
ef294055 39911 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
39912 format strings.
39913
59652a20 39914 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
39915 pointer, not an integer. This fixes a warning and prevents
39916 precision loss on 64-bit systems.
39917 (relocate_addresses): Remove unneeded cast.
39918
afc3b5d7 399192008-07-15 Pavel Roskin <proski@gnu.org>
39920
506b2b3e 39921 * kern/i386/ieee1275/init.c: Include grub/cache.h.
39922
62ead89c 39923 * term/ieee1275/ofconsole.c: Disable code unused on i386.
39924
c4cd51d7 39925 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
39926 Fix comparison between signed and unsigned.
39927
0d3d8f28 39928 * include/grub/i386/ieee1275/console.h: Declare
39929 grub_console_init() and grub_console_fini().
39930
8804b286 39931 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
39932 It's empty and unused.
39933
ee01cf35 39934 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
39935 beginning to avoid warnings with some compilers.
39936
afc3b5d7 39937 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
39938 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
39939
e4e8eaa5 399402008-07-14 Pavel Roskin <proski@gnu.org>
39941
407aceb4 39942 * kern/env.c (grub_register_variable_hook): Don't copy empty
39943 string, it leaks memory. Pass "" to grub_env_set(), it should
39944 handle constant strings.
39945
e4e8eaa5 39946 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
39947 * commands/cmp.c (grub_cmd_cmp): Likewise.
39948 * kern/dl.c (grub_dl_flush_cache): Likewise.
39949 (grub_dl_load_core): Likewise.
39950 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
39951 (grub_elf64_load_phdrs): Likewise.
39952
d4e2dad3 399532008-07-13 Pavel Roskin <proski@gnu.org>
39954
39955 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
39956 between signed and unsigned.
39957 (LzmaEnc_Finish): Fix warning about an unused parameter.
39958
aa24b516 399592008-07-13 Bean <bean123ch@gmail.com>
39960
39961 * Makefile.in (enable_lzo): New rule.
39962
39963 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
39964
39965 * configure.ac (ENABLE_LZO): New option --enable-lzo.
39966
39967 * boot/i386/pc/lnxboot.S: #include <config.h>.
39968
39969 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 39970 its value according to the compression algorithm used, lzo or lzma.
aa24b516 39971
39972 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
39973 compression algorithm according to configure macro.
39974
39975 * kern/i386/pc/startup.S (codestart): Likewise.
39976
39977 * kern/i386/pc/lzma_decode.S: New file.
39978
39979 * include/grub/lib/LzFind.h: Likewise.
39980
39981 * include/grub/lib/LzHash.h: Likewise.
39982
39983 * include/grub/lib/LzmaDec.h: Likewise.
39984
39985 * include/grub/lib/LzmaEnc.h: Likewise.
39986
39987 * include/grub/lib/LzmaTypes.h: Likewise.
39988
39989 * lib/LzFind.c: Likewise.
39990
39991 * lib/LzmaDec.c: Likewise.
39992
39993 * lib/LzmaEnc.c: Likewise.
39994
4ae821ac 399952008-07-13 Bean <bean123ch@gmail.com>
39996
39997 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
39998 (grub_ext4_extent_header): New structure.
39999 (grub_ext4_extent): Likewise.
40000 (grub_ext4_extent_idx): Likewise.
40001 (grub_ext4_find_leaf): New function.
40002 (grub_ext2_read_block): Handle extents.
40003
9a745147 400042008-07-12 Robert Millan <rmh@aybabtu.com>
40005
40006 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
40007
d49a4cf6 400082008-07-11 Robert Millan <rmh@aybabtu.com>
40009
40010 * util/grub.d/40_custom.in: New file. Example on how to add custom
40011 entries to /etc/grub.d.
40012 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
40013 40_custom (implicitly, by merging all the grub.d rules).
40014
947414b4 400152008-07-11 Pavel Roskin <proski@gnu.org>
40016
0059cf6f 40017 * commands/read.c (grub_getline): Fix invalid memory access.
40018 Don't add newline to the variable value.
40019
947414b4 40020 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
40021 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
40022 (serial_hw_get_port): Check validity of the port number.
40023 (grub_cmd_serial): Check return value of serial_hw_get_port().
40024
62a02d00 400252008-07-07 Pavel Roskin <proski@gnu.org>
40026
40027 * boot/i386/pc/diskboot.S (notification_string): Replace
40028 "Loading kernel" with just "loading". This is shorter, less
40029 confusing and saves a few bytes for possible future changes.
40030
3e5581b0 400312008-07-05 Pavel Roskin <proski@gnu.org>
40032
ea387a48 40033 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
40034 size for ATAPI devices, they are undefined. Output sector
40035 number in decimal form.
40036
3e5581b0 40037 * disk/ata.c: Use named constants for status bits.
40038
fdecb8fd 400392008-07-04 Pavel Roskin <proski@gnu.org>
40040
bcd35b90 40041 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
40042 grub_addr_t before casting it to the void pointer to fix a
40043 warning. Non-addressable regions are discarded earlier.
40044 (grub_arch_modules_addr): Cast _end to grub_addr_t.
40045 * kern/i386/linuxbios/table.c: Include grub/misc.h.
40046 (check_signature): Don't shadow table_header.
40047 (grub_linuxbios_table_iterate): Cast numeric constants to
40048 grub_linuxbios_table_header_t.
40049 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
40050 grub_stop().
40051
af58ab3d 40052 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
40053 prevent warnings.
40054
1759aa57 40055 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
40056 pointer, which can cause warnings. Support 64-bit addresses.
40057
fdecb8fd 40058 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
40059 of sizeof(long). This fixes PowerPC image generation on x86_64.
40060
8516d2a8 400612008-07-04 Robert Millan <rmh@aybabtu.com>
40062
40063 This fixes a performance issue when pc & gpt partmap iterators
40064 didn't abort iteration even after our hook found what it was
fe987087 40065 looking for (often causing expensive probes of non-existent drives).
8516d2a8 40066
40067 Some callers relied on previous buggy behaviour, since they would
34c44600 40068 raise an error when their own hooks caused early abortion of its
8516d2a8 40069 iteration.
40070
40071 * kern/device.c (grub_device_open): Improve error message.
40072 * disk/lvm.c (grub_lvm_open): Likewise.
40073 * disk/raid.c (grub_raid_open): Likewise.
40074
40075 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
40076 when hook requests it, independently of grub_errno.
40077 (pc_partition_map_probe): Do not fail when find_func() caused
40078 early abortion of pc_partition_map_iterate().
40079
40080 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
40081 when hook requests it, independently of grub_errno.
40082 (gpt_partition_map_probe): Do not fail when find_func() caused
40083 early abortion of gpt_partition_map_iterate().
40084
40085 * kern/partition.c (grub_partition_iterate): Abort parent iteration
40086 when hook requests it, independently of grub_errno. Do not fail when
40087 part_map_iterate_hook() caused early abortion of p->iterate().
40088
40089 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
40090 when grub_partition_iterate() returned with non-zero.
40091
277d0de9 400922008-07-03 Pavel Roskin <proski@gnu.org>
40093
40094 * disk/ata.c (grub_ata_pio_write): Check status before writing,
40095 like we do in grub_ata_pio_read().
40096 (grub_ata_readwrite): Always write individual sectors. Fix the
40097 sector count for the remainder.
40098 (grub_ata_write): Enable writing to ATA devices. Correctly
40099 report error for ATAPI devices.
40100
d4c9b428 401012008-07-02 Pavel Roskin <proski@gnu.org>
40102
e43fc690 40103 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
40104 warning.
40105
f707af42 40106 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
40107 for every read sector, we already increment it for the whole
40108 batch. This fixes reading more than 256 sectors at once.
40109
11e16b15 40110 * util/grub-editenv.c (cmd_info): Cast argument to long
40111 explicitly. ptrdiff_t reduces to int on i386.
40112
cbabfdd4 40113 * util/grub-editenv.c (main): Be specific which parameter is
40114 missing.
40115
b8fbce0a 40116 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
40117 (memdisk): Make memdisk_orig_addr a pointer.
40118
c9c8e606 40119 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
40120 for file offsets, use grub_off_t instead. Fix printf format
40121 warnings.
40122
ca62e598 40123 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
40124 there. Real unexpected warnings should not drown in the noise
40125 about known problems.
40126
ce8d1766 40127 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
40128 grub_disk_addr_t for memory addresses.
40129
00c7a56a 40130 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
40131 explicitly to fix a warning.
40132
08d3ef09 40133 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
40134
cb71ba20 40135 * Makefile.in (MODULE_LDFLAGS): New variable.
40136 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
40137 the linker accepts --build-id=none.
40138 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
40139 MODULE_LDFLAGS.
40140 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
40141
d4c9b428 40142 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
40143 those in Linux XFS code. Provide a way to access 64-bit parent
40144 inode.
40145 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
40146 the end of struct grub_xfs_dir_header.
40147
d4156eee 401482008-07-02 Bean <bean123ch@gmail.com>
40149
40150 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
40151 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40152 and GRUB_IEEE1275_FLAG_NO_ANSI.
40153
40154 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
40155 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40156 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
40157
40158 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
40159 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
40160
40161 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
40162 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
40163
40164 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
40165 esc sequence on non ANSI terminal.
40166 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
40167
40168 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
40169 beginning of file.
40170
2270f77b 401712008-07-02 Bean <bean123ch@gmail.com>
40172
40173 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
40174 (grub_editenv_SOURCES): New variable.
40175 (pkglib_MODULES): Add loadenv.mod.
40176 (loadenv_mod_SOURCES): New variable.
40177 (loadenv_mod_CFLAGS): Likewise.
40178 (loadenv_mod_LDFLAGS): Likewise.
40179
40180 * include/grub/envblk.h: New file.
40181
40182 * util/envblk.c: New file.
40183
40184 * util/grub-editenv.c: New file.
40185
40186 * commands/loadenv.c: New file.
40187
0e9e51ec 401882008-07-01 Pavel Roskin <proski@gnu.org>
40189
d89b7634 40190 * include/multiboot2.h (struct multiboot_tag_module): Use char,
40191 not unsigned char. This fixes warnings and is consistent with
40192 other tags.
40193
bf1835b1 40194 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
40195
8222a04b 40196 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
40197
6a42d99d 40198 * term/tparm.c (analyze): Always set *popcount.
40199
10b159d1 40200 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
40201 cast to fix a warning.
40202
b8789f6c 40203 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
40204 cast to suppress a warning.
40205
29d7e38a 40206 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
40207 grub_fshelp_read_file() expects.
40208
f341f669 40209 * fs/fat.c: Fix UUID calculation on big-endian systems. We
40210 write uuid as a 32-bit value in CPU byte order, so declare and
40211 use it as such.
40212
0e9e51ec 40213 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
40214 long if the format specifier expects it.
40215 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
40216 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40217 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
40218 long to fix a warning.
40219 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
40220 grub_dprintf() arguments to fix warnings.
40221
3aefa857 402222008-06-30 Pavel Roskin <proski@gnu.org>
40223
56c7668b 40224 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
40225 install_bsd_part immediately before core.img is embedded or
40226 modified on disk. This fixes core.img verification if core.img
40227 cannot be embedded.
40228
3aefa857 40229 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
40230 core_path to calculate the blocklist.
40231 Patch from Javier Martín <lordhabbit@gmail.com>
40232
5444088d 402332008-06-29 Robert Millan <rmh@aybabtu.com>
40234
40235 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
40236 block to disk block.
40237 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
40238 Patch from Niels Böhm <bitbucket@arcor.de>
40239
674835c8 402402008-06-29 Robert Millan <rmh@aybabtu.com>
40241
40242 * util/update-grub_lib.in (font_path): Search for fonts in
40243 /boot/grub first, which is more likely to be readable (we aren't
40244 deciding where fonts live, just looking for them).
40245
f527dbc8 402462008-06-26 Pavel Roskin <proski@gnu.org>
40247
6c2d8df6 40248 * util/biosdisk.c (read_device_map): Don't leave dead map
40249 entries for devices failing stat() check.
40250
f527dbc8 40251 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
40252 core_path_dev for the core.img path on the target device.
40253
aebe3d13 402542008-06-26 Robert Millan <rmh@aybabtu.com>
40255
40256 * disk/fs_uuid.c: New file.
40257 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
40258 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
40259 (fs_uuid_mod_LDFLAGS): New variables.
40260 * include/grub/disk.h (grub_disk_dev_id): Add
40261 `GRUB_DISK_DEVICE_UUID_ID'.
40262 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
40263 implement iterate().
40264
37aaf354 402652008-06-26 Robert Millan <rmh@aybabtu.com>
40266
40267 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
40268 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
40269 Linux image includes no initrd.
40270
25ff262a 402712008-06-21 Javier Martín <lordhabbit@gmail.com>
40272
40273 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
40274 call to resolve the core image location that effectively appended the
40275 name twice.
40276
76a2bd44 402772008-06-21 Robert Millan <rmh@aybabtu.com>
40278
40279 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
40280 call from here ...
40281
40282 * util/grub.d/10_hurd.in: ... to here ...
40283 * util/grub.d/10_linux.in: ... and here.
40284
650e1c79 402852008-06-19 Robert Millan <rmh@aybabtu.com>
40286
fe987087 40287 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 40288 after it has been set by grub_machine_set_prefix().
40289
6ce63911 402902008-06-19 Robert Millan <rmh@aybabtu.com>
40291
40292 * commands/search.c (search_label, search_fs_uuid, search_file): Print
40293 search result when not saving to variable, not the other way around.
40294 When saving to variable, abort iteration as soon as a match is found.
40295
73940cec 402962008-06-19 Robert Millan <rmh@aybabtu.com>
40297
40298 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
40299 check for partition that provides /boot/grub. Its logic is flawed,
40300 as it prevents prepare_grub_to_access_device() from being called
40301 multiple times.
40302
3c62a39d 403032008-06-19 Robert Millan <rmh@aybabtu.com>
40304
40305 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
40306 "insmod" command directly when abstraction modules are needed,
fe987087 40307 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 40308 since it had already been processed).
40309
47395a42 403102008-06-19 Pavel Roskin <proski@gnu.org>
40311
40312 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
40313 changed. This is needed in case GRUB_LIBDIR changes.
40314 * conf/i386-ieee1275.rmk: Likewise.
40315 * conf/i386-linuxbios.rmk: Likewise.
40316 * conf/i386-pc.rmk: Likewise.
40317 * conf/powerpc-ieee1275.rmk: Likewise.
40318
a145ac2d 403192008-06-18 Pavel Roskin <proski@gnu.org>
40320
40321 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
40322 kernel_elf_symlist.c to symlist.c for consistency with other
40323 architectures. Update all users.
40324 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40325
7847c51e 403262008-06-18 Robert Millan <rmh@aybabtu.com>
40327
40328 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
40329 it in prefix.
40330
40331 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
40332 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
40333 a RAID device, run setup() for all members independently on whether
40334 LVM abstraction is being used.
40335 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
40336 If grub-mkimage has set `*install_dos_part == -2', don't override this
40337 value.
40338 Perform *install_dos_part adjustments independently on whether
40339 we're embedding or not.
40340 Clarify error message when image is too big for embedding.
40341 Remove duplicate *install_dos_part stanza.
40342
b23e5644 403432008-06-17 Robert Millan <rmh@aybabtu.com>
40344
40345 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
40346 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
40347 variables.
40348 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
40349 values in grub_ofconsole_normal_color and
40350 grub_ofconsole_highlight_color (they're not directly related to
40351 background and foreground).
40352 (grub_ofconsole_setcolorstate): Extract background and foreground
40353 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
40354
0aac2f79 403552008-06-17 Robert Millan <rmh@aybabtu.com>
40356
40357 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
40358 /boot/grub for the check in last commit, not /boot (they could be
40359 different partitions).
40360
3cca7ef3 403612008-06-16 Robert Millan <rmh@aybabtu.com>
40362
40363 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
40364 asked to setup access for the same partition that provides /boot,
40365 don't bother using UUIDs since our root already has the value we
40366 want.
40367
347396d8 403682008-06-16 Robert Millan <rmh@aybabtu.com>
40369
40370 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
40371 I2O devices.
40372 Patch from Sven Mueller <sven@debian.org>.
40373
991477f8 403742008-06-16 Robert Millan <rmh@aybabtu.com>
40375
40376 * util/update-grub.in: Check for $EUID instead of $UID.
40377 Reported by Vincent Zweije.
40378
d31a32a1 403792008-06-16 Bean <bean123ch@gmail.com>
40380
fe987087 40381 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 40382 (grub_ext2_read_block): Likewise.
40383 (grub_ext2_read_inode): Likewise.
40384 (grub_ext2_mount): Likewise.
40385 (grub_ext2_close): Likewise.
40386 (grub_ext3_get_journal): Removed.
40387
fe987087 40388 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 40389 (grub_reiserfs_read_symlink): Likewise.
40390 (grub_reiserfs_mount): Likewise.
40391 (grub_reiserfs_open): Likewise.
40392 (grub_reiserfs_read): Likewise.
40393 (grub_reiserfs_close): Likewise.
40394 (grub_reiserfs_get_journal): Removed.
40395
40396 * fs/fshelp.c (grub_fshelp_read): Removed.
40397 (grub_fshelp_map_block): Likewise.
40398
40399 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
40400 (grub_fshelp_journal): Likewise.
40401 (grub_fshelp_read): Likewise.
40402 (grub_fshelp_map_block): Likewise.
40403
3540a760 404042008-06-16 Pavel Roskin <proski@gnu.org>
40405
40406 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
40407 floating point anymore.
40408 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
40409
95614c84 404102008-06-15 Pavel Roskin <proski@gnu.org>
40411
40412 * commands/ls.c (grub_ls_list_files): Use integer calculations
40413 for human readable format, avoid floating point use.
40414 * kern/misc.c (grub_ftoa): Remove.
40415 (grub_vsprintf): Remove floating point support.
40416
50465dd6 404172008-06-15 Robert Millan <rmh@aybabtu.com>
40418
fe6b695a 40419 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 40420 devices.
40421 Reported by Max Vozeler.
40422
a9207284 404232008-06-15 Robert Millan <rmh@aybabtu.com>
40424
40425 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
40426 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
40427 skipped later.
40428 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
40429 the beginning of the prefix.
40430
40431 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
40432 It is assumed that if we have a memdisk, grub-mkimage has set
40433 grub_prefix to include the "(memdisk)" drive in it.
40434
a7cbd45a 404352008-06-15 Robert Millan <rmh@aybabtu.com>
40436
40437 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
40438 Initialize keyboard controller after registering the terminal, so that
40439 grub_printf() can be called from grub_keyboard_controller_init().
40440
21cf716a 404412008-06-15 Robert Millan <rmh@aybabtu.com>
40442
40443 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
40444 extent-btree which is written as big endian on disk.
40445 Reported by Alain Greppin <al@chilibi.org>.
40446
23a64d8e 404472008-06-14 Robert Millan <rmh@aybabtu.com>
40448
40449 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
40450 * util/i386/pc/grub-install.in (modules): Likewise.
40451
d687651c 404522008-06-13 Pavel Roskin <proski@gnu.org>
40453
40454 * commands/ls.c (grub_ls_list_files): Fix format warnings.
40455
dfe9ddd4 404562008-06-13 Bean <bean123ch@gmail.com>
40457
40458 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
40459
40460 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
40461
40462 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
40463 to indicate sparse block.
40464
16ae7781 404652008-06-12 Pavel Roskin <proski@gnu.org>
40466
e6d1a308 40467 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
40468 number, grub_fshelp_read() does it for us.
40469
16ae7781 40470 * fs/fshelp.c (grub_fshelp_read): New function. Implement
40471 linear disk read with journal translation.
40472 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
40473 * include/grub/fshelp.h: Declare grub_fshelp_read().
40474
40fd3a2b 404752008-06-09 Pavel Roskin <proski@gnu.org>
40476
40477 * fs/minix.c (grub_minix_mount): Handle error reading
40478 superblock.
40479
f5679726 404802008-06-08 Robert Millan <rmh@aybabtu.com>
40481
40482 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
40483 don't append the RAID prefix afterwards.
40484 Reported by Clint Adams.
40485
ce525529 404862008-06-08 Robert Millan <rmh@aybabtu.com>
40487
40488 Based on description from Pavel:
40489 * kern/disk.c (grub_disk_check_range): Rename to ...
40490 (grub_disk_adjust_range): ... this. Add a comment explaining the
40491 tasks performed by this function.
40492
ad4936a0 404932008-06-08 Robert Millan <rmh@aybabtu.com>
40494
40495 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
40496 `num_serial' (for consistency with other variables).
40497 (struct grub_ntfs_data): Add `uuid' member.
40498 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
40499 (grub_ntfs_uuid): New function.
40500 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
40501
dc20b0f9 405022008-06-07 Pavel Roskin <proski@gnu.org>
40503
40504 * util/biosdisk.c (open_device): Revert last change to the
40505 function, it broke installation. The sector needs to be
40506 different dependent on which device is opened.
40507
c5e3cfba 405082008-06-06 Robert Millan <rmh@aybabtu.com>
40509
40510 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
40511 rest of GRUB, and breakage doesn't happen if its value were modified.
40512
40513 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
40514 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
40515 a constant (same value).
40516 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
40517 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
40518
26a1f8c4 405192008-06-06 Robert Millan <rmh@aybabtu.com>
40520
40521 * util/biosdisk.c (open_device): Do not modify sector offset when
40522 accessing a partition. kern/disk.c already handles this for us.
40523
25d6b327 405242008-06-06 Robert Millan <rmh@aybabtu.com>
40525
40526 * util/grub-emu.c (grub_machine_init): Move code in this function from
40527 here ...
40528 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
40529 segfault in case grub_printf() is called).
40530
40531 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
40532 grub_probe. Update all users not to explicitly add it again.
40533 (grub_device): New variable; contains corresponding device for grubdir.
40534 (fs_module, partmap_module, devabstraction_module): Pass
40535 `--device ${grub_device}' to grub_probe to avoid traversing /dev
40536 every time.
40537
9ece62fb 405382008-06-05 Robert Millan <rmh@aybabtu.com>
40539
40540 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
40541 is found, print it (same layout as with labels).
40542
1ad36d37 405432008-06-04 Robert Millan <rmh@aybabtu.com>
40544
40545 * util/biosdisk.c (get_drive): Rename to ...
40546 (find_grub_drive): ... this. Update all users.
40547
40548 (get_os_disk): Rename to ...
40549 (convert_system_partition_to_system_disk): ... this. Update all users.
40550
40551 (find_drive): Rename to ...
40552 (find_system_device): ... this. Update all users.
40553
e6a30859 405542008-06-04 Robert Millan <rmh@aybabtu.com>
40555
40556 * util/biosdisk.c (get_os_disk): Handle IDA devices.
40557 * util/grub-mkdevicemap.c (get_mmc_disk_name)
40558 (make_device_map): Likewise.
40559
00c108a4 405602008-06-01 Robert Millan <rmh@aybabtu.com>
40561
40562 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
40563 before dereferencing it.
40564
40565 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
40566 union with fat12/fat16-specific ones. Add some new fields, including
40567 `num_serial' for both versions.
40568 (struct grub_fat_data): Add `uuid' member.
40569 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
40570 names. Initialize `data->uuid' using `num_serial'.
40571 (grub_fat_uuid): New function.
40572 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
40573
40574 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
40575 (grub_reiserfs_uuid): New function.
40576 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
40577 member.
40578
40579 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
40580 (grub_xfs_uuid): New function.
40581 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
40582
1385c5bb 405832008-06-01 Robert Millan <rmh@aybabtu.com>
40584
40585 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
40586 code that is backward compatible with pre-uuid search command.
40587
c682dfd7 405882008-05-31 Robert Millan <rmh@aybabtu.com>
40589
40590 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
40591 floppies after everything else, to ensure floppy drive isn't accessed
40592 unnecessarily (patch from Bean).
40593
b7db5d47 405942008-05-31 Robert Millan <rmh@aybabtu.com>
40595
40596 * commands/search.c (search_label, search_fs_uuid, search_file): Do
40597 not print device names when we were asked to set a variable.
40598
6e037aa9 405992008-05-31 Robert Millan <rmh@aybabtu.com>
40600
40601 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
40602 using "cursor-on" and "cursor-off" commands (understood at least by
40603 the Open Firmware flavour on OLPC).
40604
41305bc8 406052008-05-31 Michael Gorven <michael@gorven.za.net>
40606
40607 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
40608 on and off sequences.
40609
69ba137e 406102008-05-31 Robert Millan <rmh@aybabtu.com>
40611
40612 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
40613 * util/update-grub.in: Likewise.
40614
520ae21b 406152008-05-30 Pavel Roskin <proski@gnu.org>
40616
40617 * util/biosdisk.c (linux_find_partition): Simplify logic and
40618 make the code more universal. Keep special processing for
40619 devfs, but use a simple rule for all other devices. If the
40620 device ends with a number, append 'p' and the partition number.
40621 Otherwise, append only the partition number.
40622
5786569b 406232008-05-30 Robert Millan <rmh@aybabtu.com>
40624
40625 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
40626 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
40627 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
40628 the `root' parameter to Linux.
40629
51500452 406302008-05-30 Robert Millan <rmh@aybabtu.com>
40631
40632 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
40633 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
40634 --fs_uuid with --fs-uuid.
40635 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
40636 all filesystems support them).
40637
811d3878 406382008-05-30 Robert Millan <rmh@aybabtu.com>
40639
40640 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 40641 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 40642
cab63c95 406432008-05-30 Robert Millan <rmh@aybabtu.com>
40644
40645 * util/grub.d/00_header.in: Remove obsolete comment referencing
40646 convert_system_path_to_grub_path().
40647 * util/update-grub.in: Likewise.
40648 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
40649 (convert_system_path_to_grub_path): Add a warning message explaining
40650 that this function is deprecated. Rely on is_path_readable_by_grub()
40651 for the readability checks.
40652 (font_path): Use is_path_readable_by_grub() for the readability
40653 check rather than convert_system_path_to_grub_path().
40654
972e2f7a 406552008-05-30 Robert Millan <rmh@aybabtu.com>
40656
40657 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
40658 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
40659 converting it first.
40660 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
40661 grub.cfg for access to font file, and afterwards call it again to set
40662 the root device.
40663
62191274 406642008-05-30 Robert Millan <rmh@aybabtu.com>
40665
40666 * commands/search.c (options): Add --fs_uuid option.
40667 (search_fs_uuid): New function.
40668 (grub_cmd_search): Fix --set argument passing.
40669 Use search_fs_uuid() when requested via --fs_uuid.
40670 (grub_search_init): Update help message.
40671 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
40672 and redeclare it as an array of 16-bit words.
40673 (grub_ext2_uuid): New function.
40674 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
40675 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
40676 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
40677 (GRUB_DEVICE_BOOT_UUID): New variables.
40678 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
40679 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
40680 whenever possible.
40681 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
40682 just assume `root' variable has the right value.
40683 * util/grub.d/10_linux.in: Likewise.
40684 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
40685 via PRINT_FS_UUID.
40686 (main): Recognise `-t fs_uuid' argument.
40687
01b73ec8 406882008-05-30 Robert Millan <rmh@aybabtu.com>
40689
40690 * util/biosdisk.c (map): Redefine structure to hold information
40691 about GRUB drive name.
fe6b695a 40692 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 40693 drive names.
40694 (call_hook): Remove.
40695 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
40696 member. Assume drive has partitions.
40697 (grub_util_biosdisk_open): Access device names via `.device' struct
40698 member.
40699 (open_device): Likewise.
40700 (find_drive): Likewise.
40701 (read_device_map): Adjust map[] usage to match the new struct
40702 definition. Don't check for duplicates (still possible, but not cheap
40703 anymore).
40704 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
40705 (make_device_name): Remove assumption of BIOS-like drive names.
40706
22f16596 407072008-05-30 Pavel Roskin <proski@gnu.org>
40708
40709 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
40710 compiling execute.c doesn't need grub_script.tab.h anymore.
40711 (normal/command.c_DEPENDENCIES): Likewise.
40712 (normal/function.c_DEPENDENCIES): Likewise.
40713 * conf/i386-ieee1275.rmk: Likewise.
40714 * conf/i386-linuxbios.rmk: Likewise.
40715 * conf/i386-pc.rmk: Likewise.
40716 * conf/powerpc-ieee1275.rmk: Likewise.
40717 * conf/sparc64-ieee1275.rmk: Likewise.
40718
528ad8f2 407192008-05-29 Pavel Roskin <proski@gnu.org>
40720
d1dff95d 40721 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
40722 when scanning metadata for volume group name.
40723
528ad8f2 40724 * include/grub/script.h: Don't include grub_script.tab.h. It's
40725 a generated file, which may only be included from the files with
40726 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
40727 use union YYSTYPE, as the later allows forward declaration.
40728 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
40729
47248e08 407302008-05-29 Robert Millan <rmh@aybabtu.com>
40731
40732 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
40733 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
40734 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
40735 (grub_console_checkkey): Add grub_dprintf() call to report unknown
40736 scan codes.
40737
ee632529 407382008-05-29 Robert Millan <rmh@aybabtu.com>
40739
40740 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
40741 control key combinations.
40742
eee96e08 407432008-05-29 Robert Millan <rmh@aybabtu.com>
40744
40745 * util/powerpc/ieee1275/grub-install.in: Move from here ...
40746 * util/ieee1275/grub-install.in: ... to here.
40747 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
40748 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
40749 (grub_install_SOURCES): Likewise.
40750
da9a6a94 407512008-05-29 Robert Millan <rmh@aybabtu.com>
40752
40753 * fs/affs.c: Update copyright year.
40754 * fs/ext2.c: Likewise.
40755 * fs/fshelp.c: Likewise.
40756 * fs/hfsplus.c: Likewise.
40757 * fs/ntfs.c: Likewise.
40758 * fs/xfs.c: Likewise.
40759 * include/grub/fshelp.h: Likewise.
40760 * util/grub-mkdevicemap.c: Likewise.
40761
12e65f3a 407622008-05-28 Robert Millan <rmh@aybabtu.com>
40763
40764 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
40765 might need to be fatfs to support some firmware implementations
40766 (e.g. OFW or EFI).
40767
23023641 407682008-05-28 Robert Millan <rmh@aybabtu.com>
40769
40770 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
40771 devices.
40772 * util/grub-mkdevicemap.c (get_mmc_disk_name)
40773 (make_device_map): Likewise.
40774
887d2619 407752008-05-20 Bean <bean123ch@gmail.com>
40776
40777 * fs/fshelp.c (grub_fshelp_map_block): New function.
40778 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
40779 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
40780
40781 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
40782 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
40783 (grub_fshelp_journal): New structure.
40784 (grub_fshelp_map_block): New function prototype.
40785 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
40786 (grub_fshelp_map_block): Likewise.
40787
40788 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
40789 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
40790 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
40791 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
40792 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
40793 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
40794 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
40795 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
40796 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
40797 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
40798 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
40799 (grub_ext2_sblock): New members for journal support.
40800 (grub_ext3_journal_header): New structure.
40801 (grub_ext3_journal_revoke_header): Likewise.
40802 (grub_ext3_journal_block_tag): Likewise.
40803 (grub_ext3_journal_sblock): Likewise.
40804 (grub_fshelp_node): New members logfile and journal.
40805 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
40806 grub_fshelp_map_block to get real block number.
40807 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
40808 number.
40809 (grub_ext2_read_inode): Likewise.
40810 (grub_ext3_get_journal): New function.
40811 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
40812 (grub_ext2_close): Release memory used by journal.
40813
40814 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
40815 (REISERFS_MAGIC_DESC_BLOCK): New macro.
40816 (grub_reiserfs_transaction_header): Renamed to
40817 grub_reiserfs_description_block, replace field data with real_blocks.
40818 (grub_reiserfs_commit_block): New structure.
40819 (grub_reiserfs_data): New member journal.
40820 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
40821 number.
40822 (grub_reiserfs_read_symlink): Likewise.
40823 (grub_reiserfs_iterate_dir): Likewise.
40824 (grub_reiserfs_open): Likewise.
40825 (grub_reiserfs_read): Likewise.
40826 (grub_reiserfs_get_journal): New function.
40827 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
40828 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
40829 using grub_reiserfs_get_journal.
40830 (grub_reiserfs_close): Release memory used by journal.
40831
40832 * fs/affs.c (grub_affs_read_block): Change block type to
40833 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
40834
40835 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
40836
40837 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
40838
40839 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
40840
40841 * fs/udf.c (grub_udf_read_block): Change block type to
40842 grub_disk_addr_t. Use type cast to avoid warning.
40843
40844 * fs/xfs.c (grub_xfs_read_block): Likewise.
40845
b7c6bed5 408462008-05-16 Christian Franke <franke@computer.org>
40847
40848 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
40849 to ensure that break with ESC will always work.
40850 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
40851 Remove ESC from keyboard queue.
40852
eedf167f 408532008-05-16 Christian Franke <franke@computer.org>
40854
40855 * util/biosdisk.c: [__CYGWIN__] Add includes.
40856 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
40857 (get_os_disk): Move variable declarations to OS specific
40858 parts to avoid warning.
40859 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
40860 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
40861 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
40862 Cygwin.
40863 * util/getroot.c: [__CYGWIN__] Add includes.
40864 (strip_extra_slashes): Fix "/" case.
40865 [__CYGWIN__] (get_win32_path): New function.
40866 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
40867 [__CYGWIN__] (find_root_device): Disable.
40868 [__CYGWIN__] (get_bootsec_serial): New function.
40869 [__CYGWIN__] (find_cygwin_root_device): Likewise.
40870 [__linux__] (grub_guess_root_device): Add early returns to simplify
40871 structure.
40872 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
40873 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
40874 check for Linux only.
40875
a079699e 408762008-05-15 Bean <bean123ch@gmail.com>
40877
40878 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
40879 keyboard hang problem in apple's intel mac.
40880
1cf4059a 408812008-05-09 Robert Millan <rmh@aybabtu.com>
40882
40883 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
40884 devices.
40885 * util/grub-mkdevicemap.c (get_virtio_disk_name)
40886 (make_device_map): Likewise.
40887 Reported by Aurelien Jarno <aurel32@debian.org>
40888
ed759390 408892008-05-07 Ian Campbell <ijc@hellion.org.uk>
40890
40891 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
40892 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
40893 (make_device_map): Output entries for xvd type disks.
40894
b56c4eaa 408952008-05-07 Robert Millan <rmh@aybabtu.com>
40896
40897 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
40898 devices.
40899 * util/grub-mkdevicemap.c (get_cciss_disk_name)
40900 (make_device_map): Likewise.
40901 Reported by Roland Dreier <rdreier@cisco.com>
40902
7f8866ed 409032008-05-07 Robert Millan <rmh@aybabtu.com>
40904
40905 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
40906 grub_strstr() call. Correct a few mistakes in failure path handling.
40907
b0346e0f 409082008-05-06 Robert Millan <rmh@aybabtu.com>
40909
40910 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
40911 Do not print a trailing slash (therefore, the root directory is an
40912 empty string).
40913 (convert_system_path_to_grub_path): Do not remove trailing slash
40914 from make_system_path_relative_to_its_root() output.
40915
40916 * util/i386/pc/grub-install.in: Add trailing slash to output from
40917 make_system_path_relative_to_its_root().
40918
6cf12cbd 409192008-05-06 Robert Millan <rmh@aybabtu.com>
40920
40921 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
40922 ensures that output lines aren't intermangled with those sent to
40923 stderr (via grub_util_info()).
40924 * util/grub-probe.c (grub_refresh): Likewise.
40925 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
40926
0fbb3117 409272008-05-05 Christian Franke <franke@computer.org>
40928
40929 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
40930 Add Cygwin device names.
40931 (get_ide_disk_name) [__CYGWIN__]: Likewise.
40932 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
40933 (check_device): Return error instead of success on empty name.
40934 (make_device_map): Move label inside linux specific code to
40935 prevent compiler warning.
40936
8124cdb7 409372008-04-30 Robert Millan <rmh@aybabtu.com>
40938
40939 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
40940 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
40941 first boot option.
40942 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
40943
094c01d0 409442008-04-29 Robert Millan <rmh@aybabtu.com>
40945
40946 * docs/grub.cfg: New file (example GRUB configuration).
40947
f4b1fc02 409482008-04-26 Robert Millan <rmh@aybabtu.com>
40949
329ce2a5 40950 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
40951 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
40952 and `disk/ieee1275/nand.c'.
f4b1fc02 40953
25f16ec1 409542008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 40955
25f16ec1 40956 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
40957 i386-linuxbios.
40958
40959 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
40960 change the buffer size to 4096 for cdrom device.
40961
40962 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
40963 and nand.mod.
40964 (_linux_mod_SOURCES): New variable.
40965 (_linux_mod_CFLAGS): Likewise.
40966 (_linux_mod_LDFLAGS): Likewise.
40967 (linux_mod_SOURCES): Likewise.
40968 (linux_mod_CFLAGS): Likewise.
40969 (linux_mod_LDFLAGS): Likewise.
40970 (nand_mod_SOURCES): Likewise.
40971 (nand_mod_CFLAGS): Likewise.
40972 (nand_mod_LDFLAGS): Likewise.
40973
40974 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
40975 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
40976 type property. (nand device in olpc don't have this property)
40977
40978 * include/grub/disk.h (grub_disk_dev_id): New macro
40979 GRUB_DISK_DEVICE_NAND_ID.
40980
40981 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
40982 function prototype.
40983 (grub_rescue_cmd_initrd): Likewise.
40984
40985 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
40986 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
40987 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 40988
25f16ec1 40989 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
40990 GRUB_MACHINE_IEEE1275 is defined.
40991
40992 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
40993 Use NESTED_FUNC_ATTR attribute on the hook parameter.
40994
40995 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
40996 on nested function heap_init.
40997 (grub_upper_mem): New variable for i386-ieee1275.
40998 (grub_get_extended_memory): New function for i386-ieee1275.
40999 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
41000
41001 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
41002 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
41003 property.
f19dbdb7 41004
25f16ec1 41005 * loader/i386/ieee1275/linux.c: New file.
41006
41007 * loader/i386/ieee1275/linux_normal.c: New file.
41008
41009 * disk/ieee1275/nand.c: New file.
41010
e89d61e9 410112008-04-18 Thomas Schwinge <tschwinge@gnu.org>
41012
41013 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
41014 value.
41015 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
41016
602566f6 410172008-04-18 Robert Millan <rmh@aybabtu.com>
41018
41019 Restructures early code path on ieee1275 to unify grub_main() as
41020 the first C function that is executed in every platform.
41021
41022 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
41023 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
41024 cmain().
41025 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
41026 * kern/ieee1275/cmain.c (cmain): Rename to ...
41027 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
41028 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
41029 at the beginning.
41030
57490c2b 410312008-04-18 Robert Millan <rmh@aybabtu.com>
41032
41033 * util/update-grub.in: Fix syntax error when setting
41034 `GRUB_PRELOAD_MODULES'.
41035 Reported by Stephane Chazelas <stephane@artesyncp.com>
41036
1977517d 410372008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
41038
41039 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
41040 section into account, newer toolchains generate unique build ids
41041 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 41042 we want build ids to be preserved
1977517d 41043 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
41044 far from other sections don't cause the raw binary images grow
41045 size
41046
bfb1f1a2 410472008-04-15 Robert Millan <rmh@aybabtu.com>
41048
41049 * disk/lvm.c: Update copyright year.
41050 * kern/misc.c: Likewise.
41051
01979850 410522008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41053
41054 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 41055 there is no memory left for physical volume name.
01979850 41056
0a1150e2 410572008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41058
41059 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
41060 volume name mapping to support bigger than 9 character names properly.
41061
82ead3fe 410622008-04-13 Robert Millan <rmh@aybabtu.com>
41063
41064 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
41065 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
41066
e54a72f5 410672008-04-13 Christian Franke <franke@computer.org>
41068
41069 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
41070 to create a floppy emulation boot CD when non emulation mode
41071 does not work.
41072 Enable Joliet CD filesystem extension.
41073
9fe86034 410742008-04-13 Robert Millan <rmh@aybabtu.com>
41075
41076 * kern/misc.c (grub_strncat): Fix off-by-one error.
41077 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
41078
41079 * kern/env.c (grub_env_context_close): Clear current context, not
41080 previous one.
41081 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
41082
41083 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
41084
7ceeee39 410852008-04-13 Robert Millan <rmh@aybabtu.com>
41086
41087 Improve robustness when handling LVM.
41088
41089 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 41090 (and leave `*p' unmodified).
7ceeee39 41091 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
41092 through it.
41093 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
41094 iterating through it.
41095 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
41096 through it.
fe6b695a 41097 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 41098 when due) on each grub_lvm_getvalue() or grub_strstr() call.
41099 Don't assume `vg->pvs != NULL' when iterating through it.
41100
58cd3d85 411012008-04-13 Robert Millan <rmh@aybabtu.com>
41102
41103 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
41104 * genmk.rb (partmap): New variable.
41105 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
41106 (#{partmap}): New target rule.
41107 * genpartmaplist.sh: New file.
41108 * Makefile.in (pkglib_DATA): Add partmap.lst.
41109 (partmap.lst): New target rule.
41110 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
41111 modules (including all partition maps), instead of preloading them.
41112
78b51059 411132007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
41114
41115 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
41116 `linux-boot-prober' (if installed) to detect other operating
41117 systems which are installed on the computer and add them to
41118 the boot menu.
41119 * conf/common.rmk: Build and install 30_os-prober.
41120
a91627b4 411212008-04-12 Robert Millan <rmh@aybabtu.com>
41122
41123 * kern/powerpc/ieee1275/init.c: Move from here ...
41124 * kern/ieee1275/init.c: ... to here. Update all users.
41125
41126 * kern/powerpc/ieee1275/cmain.c: Move from here ...
41127 * kern/ieee1275/cmain.c: ... to here. Update all users.
41128
41129 * kern/powerpc/ieee1275/openfw.c: Move from here ...
41130 * kern/ieee1275/openfw.c: ... to here. Update all users.
41131
41132 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
41133 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
41134
322562ea 411352008-04-10 Pavel Roskin <proski@gnu.org>
41136
41137 * configure.ac: Always use "_cv_" in cache variables for
41138 compatibility with Autoconf 2.62.
41139
a02a73c5 411402008-04-07 Robert Millan <rmh@aybabtu.com>
41141
41142 Revert grub/machine/init.h addition by Pavel (since it breaks on
41143 i386-ieee1275 and others):
41144 * util/i386/pc/misc.c: Remove grub/machine/init.h.
41145 * util/powerpc/ieee1275/misc.c: Likewise.
41146
25c024b1 411472008-04-07 Robert Millan <rmh@aybabtu.com>
41148
41149 * util/grub-probe.c (probe): Improve error message.
41150
3cbd2f98 411512008-04-07 Robert Millan <rmh@aybabtu.com>
41152
41153 * util/biosdisk.c (read_device_map): Skip devices that don't exist
41154 (this prevents the presence of a bogus entry from ruining the whole
41155 thing).
41156
87a297bf 411572008-04-06 Pavel Roskin <proski@gnu.org>
41158
36747a62 41159 * util/biosdisk.c: Include grub/util/biosdisk.h.
41160 * util/grub-fstest.c (execute_command): Make static.
41161 * util/grub-mkdevicemap.c (check_device): Likewise.
41162 * util/i386/pc/misc.c: Include grub/machine/init.h.
41163 * util/powerpc/ieee1275/misc.c: Likewise.
41164 * util/lvm.c: Include grub/util/lvm.h.
41165 * util/misc.c: Include grub/kernel.h, grub/misc.h and
41166 grub/cache.h.
41167 * util/raid.c: Include grub/util/raid.h.
41168 (grub_util_getdiskname): Make static.
41169
87a297bf 41170 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
41171 grub_hostfs_fini(), as they are called from grub_init_all() and
41172 grub_fini_all() respectively. This fixes an infinite loop in
41173 grub-fstest due to double registration of hostfs.
41174 Reported by Christian Franke <Christian.Franke@t-online.de>
41175
f6ce7629 411762008-04-05 Pavel Roskin <proski@gnu.org>
41177
41178 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
41179 all 8 functions. Otherwise, probe function 0 only.
41180
070e49e4 411812008-04-04 Pavel Roskin <proski@gnu.org>
41182
8b088a4c 41183 * commands/lspci.c (grub_lspci_iter): Print the bus number
41184 correctly.
41185
4f657021 41186 * commands/lspci.c (grub_pci_classes): Fix typos.
41187 (grub_lspci_iter): Don't print func twice. Print vendor ID
41188 before device ID, as it's normally done.
41189
070e49e4 41190 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41191 Fix signedness warnings.
41192 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
41193 Likewise.
41194 * util/ieee1275/get_disk_name.c: Include config.h so that
41195 _GNU_SOURCE is defined and getline() is declared. Mark an
41196 unused argument as such. Fix a signedness warning.
41197
ba7328dc 411982008-04-02 Pavel Roskin <proski@gnu.org>
41199
26887f22 41200 * genkernsyms.sh.in: Use more robust assignments for CC and
41201 srcdir. Quote srcdir.
41202 * gensymlist.sh.in: Likewise. Assert at the compile time that
41203 the symbol table is not empty.
41204
ba7328dc 41205 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
41206 * fs/cpio.c (grub_cpio_read): Likewise.
41207
0f582c6b 412082008-04-01 Pavel Roskin <proski@gnu.org>
41209
4b6e1995 41210 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
41211 * disk/host.c (grub_host_open): Likewise.
41212 * disk/loopback.c (grub_loopback_open): Likewise.
41213 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
41214 disk->id as in disk/host.c, not a multi-character constant.
41215
828a2768 41216 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
41217 later is obsolete, potentially dangerous and sets a bad example.
41218 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
41219 * util/misc.c (grub_util_get_image_size): Likewise.
41220
2bb4fb47 41221 * disk/loopback.c (options): Improve help for "--partitions".
41222
0f582c6b 41223 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
41224 options to align them with the short options, e.g. "echo -e".
41225
a33224e0 412262008-03-31 Bean <bean123ch@gmail.com>
41227
41228 * video/reader/png.c (grub_png_data): New member is_16bit and
41229 image_data.
41230 (grub_png_decode_image_header): Detect 16 bit png image.
41231 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
41232 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
41233 (grub_video_reader_png): Release memory occupied by image_data.
41234
41235 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
41236 4096 bytes.
41237 (grub_nfs_mount): Skip the test for sector per cluster.
41238
41239 * include/grub/ntfs.h (MAX_SPC): Removed.
41240
86cb4f54 412412008-03-31 Bean <bean123ch@gmail.com>
41242
41243 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
41244 (grub_probe_SOURCES): Add fs/afs.c.
41245 (grub_fstest_SOURCES): Likewise.
41246 (afs_mod_SOURCES): New variable.
41247 (afs_mod_CFLAGS): Likewise.
41248 (afs_mod_LDFLAGS): Likewise.
41249
41250 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
41251 (grub_emu_SOURCES): Likewise.
41252
41253 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41254
41255 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41256
41257 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41258
41259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41260
41261 * fs/afs.c: New file.
41262
17c74c21 412632008-03-30 Pavel Roskin <proski@gnu.org>
41264
4cb68e89 41265 * disk/host.c: Include grub/misc.h to fix a warning.
41266 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
41267 warnings about implicit declarations.
41268
8790bb04 41269 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
41270 variable.
41271 * include/grub/i386/loader.h: Change declaration of
41272 grub_linux_boot() to match what grub_loader_set() expects.
41273 * util/getroot.c (grub_guess_root_device): Return const char* to
41274 fix a warning.
41275 * util/grub-probe.c (probe): Fix a warning about uninitialized
41276 abstraction_name variable.
41277 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
41278 second argument as unused to fix a warning.
41279
9a3f3296 41280 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
41281 missing grub_error() call.
41282
0ecef90d 41283 * util/update-grub_lib.in: Define datarootdir, since Autoconf
41284 2.60 and newer uses it to define datadir.
41285
0bf6d401 41286 * commands/sleep.c: Fix warning about implicit declaration.
41287 * disk/memdisk.c: Likewise.
41288 * loader/aout.c: Likewise.
41289 * loader/i386/bsd_normal.c: Likewise.
41290 * util/grub-probe.c: Likewise.
41291
7cdacf97 41292 * commands/i386/cpuid.c (has_longmode): Make static.
41293 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
41294 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
41295
17c74c21 41296 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
41297 GDT. This is more robust, as %ds can change.
41298 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
41299 calling real_to_prot().
41300 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
41301
80a3e68b 413022008-03-28 Pavel Roskin <proski@gnu.org>
41303
41304 * kern/i386/pc/startup.S: Assert that uncompressed functions
41305 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
41306 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
41307 code, as they push parts of the code (error handlers) beyond
41308 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
41309 code as correctness and size.
41310
77bcd272 413112008-03-28 Pavel Roskin <proski@gnu.org>
41312
41313 * kern/i386/pc/startup.S
41314 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
41315 data block address to the real mode, keep offset minimal. This
41316 works around a bug in AWARD BIOS on old Athlon systems, which
41317 makes CD detection hang.
41318
c5dfd43b 413192008-03-26 Pavel Roskin <proski@gnu.org>
41320
41321 * normal/color.c (grub_parse_color_name_pair): Make `name' a
41322 const.
41323 * include/grub/normal.h: Add grub_parse_color_name_pair()
41324 declaration.
41325
bf962df2 413262008-03-24 Bean <bean123ch@gmail.com>
41327
41328 * disk/i386/pc/biosdisk.c (cd_start): Removed.
41329 (cd_count): Removed.
41330 (cd_drive): New variable.
41331 (grub_biosdisk_get_drive): Don't check for (cdN) device.
41332 (grub_biosdisk_call_hook): Likewise.
41333 (grub_biosdisk_iterate): Change cdrom detection method.
41334 (grub_biosdisk_open): Replace cd_start with cd_drive.
41335 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
41336 detect cdrom device.
41337
41338 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
41339 Removed.
41340 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
41341 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
41342 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
41343 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
41344 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
41345 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
41346 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
41347 (grub_biosdisk_cdrp): New structure.
41348 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
41349
41350 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
41351
41352 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
41353 device.
41354
41355 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
41356 New function.
41357
68e7fc7a 413582008-03-20 Robert Millan <rmh@aybabtu.com>
41359
41360 Remove 2 TiB limit in ata.mod.
41361 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
41362 (grub_ata_dumpinfo): Print sector count with 0x%llx.
41363 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
41364 grub_uint64_t instead of grub_uint32_t.
41365
38ad2cf5 413662008-03-05 Bean <bean123ch@gmail.com>
41367
41368 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
41369 (grub_multiboot): Set boot device.
41370
41371 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
41372
2b89344e 413732008-03-02 Bean <bean123ch@gmail.com>
41374
41375 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
41376 symlink_buffer.
41377
87a95d1f 413782008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
41379
41380 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
41381 texinfo.tex.
41382
41383 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
41384 modified.
41385
41386 * docs/fdl.texi: New file.
f19dbdb7 41387
87a95d1f 41388 * docs/mdate-sh: New file. Copied from gnulib.
41389 * docs/texinfo.tex: Likewise.
41390
41391 * config.guess: Updated from gnulib.
41392 * install-sh: Likewise.
41393
7dc15d8e 413942008-02-28 Robert Millan <rmh@aybabtu.com>
41395
41396 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
41397 (aout_mod_SOURCES): New variable.
41398 (aout_mod_CFLAGS): Likewise.
41399 (aout_mod_LDFLAGS): Likewise.
41400
41401 * conf/i386-ieee1275.rmk: Likewise.
41402
b00ab696 414032008-02-28 Robert Millan <rmh@aybabtu.com>
41404
41405 * util/update-grub.in: Reorganise terminal validity check. Accept
41406 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
41407 Based on suggestion by Franklin PIAT.
41408
79ca2d78 414092008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
41410
41411 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
41412 function.
41413 * util/getroot.c (grub_util_check_block_device): New function that
41414 returns the given argument if it is a block device and returns NULL else.
41415 * util/grub-probe.c (argument_is_device): New variable.
41416 (probe): Promote device_name from a variable to an argument. Receive
41417 device_name from grub_util_check_block_device() if path is NULL and from
41418 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 41419 (options): Introduce new parameter '-d, --device'.
79ca2d78 41420 (main): Add description of the new parameter to the help screen.
41421 Rename path variable to argument. Set argument_is_device if the '-d'
41422 option is given. Pass argument to probe() depending on
41423 argument_is_device.
41424
0d16e571 414252008-02-24 Bean <bean123ch@gmail.com>
41426
41427 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
41428 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
41429 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
41430 (GRUB_ISO9660_VOLDESC_PART): Likewise.
41431 (GRUB_ISO9660_VOLDESC_END): Likewise.
41432 (grub_iso9660_primary_voldesc): New member escape.
41433 (grub_iso9660_data): New member joliet.
41434 (grub_iso9660_convert_string): New function.
41435 (grub_iso9660_mount): Detect joliet extension.
41436 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
41437 (grub_iso9660_iso9660_label): Likewise.
41438
41439 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
41440 (grub_setup_SOURCES): Add fs/udf.c.
41441 (grub_fstest_SOURCES): Likewise.
41442 (udf_mod_SOURCES): New variable.
41443 (udf_mod_CFLAGS): Likewise.
41444 (udf_mod_LDFLAGS): Likewise.
41445
41446 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
41447 (grub_emu_SOURCES): Likewise.
41448
41449 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41450
41451 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41452
41453 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41454
41455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41456
41457 * fs/udf.c: New file.
41458
8a594a17 414592008-02-24 Robert Millan <rmh@aybabtu.com>
41460
41461 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
41462 (normal/lexer.c_DEPENDENCIES): New variables.
41463 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
41464 (normal/lexer.c_DEPENDENCIES): Likewise.
41465 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
41466 (normal/lexer.c_DEPENDENCIES): Likewise.
41467 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
41468 (normal/lexer.c_DEPENDENCIES): Likewise.
41469 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
41470 (normal/lexer.c_DEPENDENCIES): Likewise.
41471 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
41472 (normal/lexer.c_DEPENDENCIES): Likewise.
41473
2dc33c03 414742008-02-23 Robert Millan <rmh@aybabtu.com>
41475
41476 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
41477 since they were intended to be in hex. This didn't break previously
41478 because of a bug in gpt_partition_map_iterate() (see below).
41479
41480 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
41481 when checking the validity of GPT header.
41482 Remove `partno', since it always provides the same information as `i'.
41483
f6f4cfb0 414842008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
41485
41486 * include/grub/efi/time.h: Fix a wrong comment.
41487
79ff665f 414882008-02-19 Pavel Roskin <proski@gnu.org>
41489
41490 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
41491 message.
41492
d38e24c2 414932008-02-19 Bean <bean123ch@gmail.com>
41494
41495 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
41496 (aout_mod_SOURCES): New variable.
41497 (aout_mod_CFLAGS): Likewise.
41498 (aout_mod_LDFLAGS): Likewise.
41499 (_bsd_mod_SOURCES): New variable.
41500 (_bsd_mod_CFLAGS): Likewise.
41501 (_bsd_mod_LDFLAGS): Likewise.
41502 (bsd_mod_SOURCES): New variable.
41503 (bsd_mod_CFLAGS): Likewise.
41504 (bsd_mod_LDFLAGS): Likewise.
41505
41506 * include/grub/aout.h: New file.
41507
41508 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
41509
41510 * include/grub/i386/bsd.h: New file.
41511
41512 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
41513 to make it public.
41514
41515 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
41516 function is called, so that it's possible to change it inside the hook.
41517 (grub_elf64_load): Likewise.
41518 (grub_elf_file): Don't close the file if elf header is not found.
41519 (grub_elf_close): Close the file if grub_elf_file fails (The new
41520 grub_elf_file won't close it).
41521 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
41522 (grub_elf64_size): Likewise.
41523
41524 * kern/i386/loader.S (grub_unix_real_boot): New function.
41525
41526 * loader/aout.c: New file.
41527
41528 * loader/i386/bsd.c: New file.
41529
41530 * loader/i386/bsd_normal.c: New file.
41531
41532 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
41533
41534 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 41535 can test other formats.
d38e24c2 41536
b93bdb0f 415372008-02-19 Robert Millan <rmh@aybabtu.com>
41538
41539 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
41540 (grub_gpt_partition_type_empty): Redefine with macro from
41541 `<grub/gpt_partition.h>'.
41542 (gpt_partition_map_iterate): Adjust partition type comparison.
41543
41544 Export `entry' as partmap-specific `part.data' struct.
41545 (grub_gpt_header, grub_gpt_partentry): Move from here ...
41546
41547 * include/grub/gpt_partition.h (grub_gpt_header)
41548 (grub_gpt_partentry): ... to here (new file).
41549
41550 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
41551
41552 (grub_gpt_partition_type_bios_boot): New const variable, defined
41553 with macro from `<grub/gpt_partition.h>'.
41554
41555 (setup): Replace `first_start' with `embed_region', which keeps
41556 track of the embed region (and is partmap-agnostic).
41557
41558 Replace find_first_partition_start() with find_usable_region(),
41559 which finds a usable region for embedding using partmap-specific
41560 knowledge (supports PC/MSDOS and GPT).
41561
41562 Fix all assumptions that the embed region start at sector 1, using
41563 `embed_region.start' from now on. Similarly, use `embed_region.end'
41564 rather than `first_start' to calculate available size.
41565
41566 In grub_util_info() message, replace "into after the MBR" with an
41567 indication of the specific sector our embed region starts at.
41568
66cb40f6 415692008-02-19 Robert Millan <rmh@aybabtu.com>
41570
41571 * DISTLIST: Replace `commands/ieee1275/halt.c' and
41572 `commands/ieee1275/reboot.c' with `commands/halt.c' and
41573 `commands/reboot.c'.
41574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
41575 (halt_mod_SOURCES): Likewise.
41576 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
41577 (halt_mod_SOURCES): Likewise.
41578
b7202015 415792008-02-17 Christian Franke <franke@computer.org>
41580
41581 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
41582
32b0fc49 415832008-02-17 Robert Millan <rmh@aybabtu.com>
41584
41585 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
41586 set `first_start' to 0 for non-PC/MSDOS partition maps.
41587
aca63502 415882008-02-16 Robert Millan <rmh@aybabtu.com>
41589
41590 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
41591 do not assume partition map is PC/MSDOS before performing checks that
41592 are specific to that layout.
41593
0de8be86 415942008-02-13 Robert Millan <rmh@aybabtu.com>
41595
41596 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
41597 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
41598 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
41599
c3db8364 416002008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
41601
41602 * configure.ac: Only a cosmetic change on the handling of
41603 -fno-stack-protector.
41604
f714229e 416052008-02-12 Alexandre Boeglin <alex@boeglin.org>
41606
c3db8364 41607 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
41608 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
41609 reboot.c.
f714229e 41610 (grub_install_SOURCES): Add halt.mod and reboot.mod.
41611 (halt_mod_SOURCES): New variable.
41612 (halt_mod_CFLAGS): Likewise.
41613 (halt_mod_LDFLAGS): Likewise.
41614 (reboot_mod_SOURCES): Likewise.
41615 (reboot_mod_CFLAGS): Likewise.
41616 (reboot_mod_LDFLAGS): Likewise.
41617
c3db8364 41618 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
41619 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
41620 reboot.c.
f714229e 41621 (halt_mod_SOURCES): Likewise.
41622 (reboot_mod_SOURCES): Likewise.
41623
c3db8364 41624 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
41625 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 41626 (reboot_mod_SOURCES): Likewise.
41627
41628 * commands/i386/pc/reboot.c: merge this file ...
41629
41630 * commands/ieee1275/reboot.c: ... and this file ...
41631
41632 * commands/reboot.c: ... to this file.
c3db8364 41633 Add some precompiler directive to include the correct header for
41634 each machine.
f714229e 41635
41636 * commands/ieee1275/halt.c: move this file ...
41637
41638 * commands/halt.c: ... to here.
c3db8364 41639 Add some precompiler directive to include the correct header for
41640 each machine.
f714229e 41641
41642 * include/grub/efi/efi.h (grub_reboot): New function declaration.
41643 (grub_halt): Likewise.
41644
41645 * kern/efi/efi.c (grub_reboot): New function.
41646 (grub_halt): Likewise.
41647
c74493e0 416482008-02-12 Robert Millan <rmh@aybabtu.com>
41649
41650 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
41651 /dev (like it is done for /dev/mapper). This doesn't provide support
41652 for EVMS, but at least it is now easy to identify the problem when it
41653 arises.
41654
d0db4b04 416552008-02-11 Robert Millan <rmh@aybabtu.com>
41656
41657 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
41658 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
41659 comparing it with -1, not 0.
41660
bf748642 416612008-02-10 Robert Millan <rmh@aybabtu.com>
41662
41663 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
41664 `disk/lvm.c'.
41665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41666 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
41667
41668 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
41669 `disk/lvm.c' to the end of the list.
41670 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41671 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41672
b5db202a 416732008-02-10 Robert Millan <rmh@aybabtu.com>
41674
41675 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
41676 grub_print_error() instead. This will let user know why we're entering
41677 rescue mode.
41678 Based on suggestions from Sam Morris.
41679
83abee31 416802008-02-10 Alexandre Boeglin <alex@boeglin.org>
41681
41682 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
41683 on remaining N args, instead of "--" arg N times.
41684
78d5a08b 416852008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
41686
41687 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
41688 (fill_with_default_glyph): Changed to use unknown_glyph for fill
41689 pattern for unknown glyphs.
41690
68807e5f 416912008-02-09 Robert Millan <rmh@aybabtu.com>
41692
41693 * configure.ac: Probe for `help2man'.
41694 * Makefile.in (builddir): New variable.
41695 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
41696 or otherwise add a few flags/options to it.
41697 (install-local): For every executable utility or script that is
41698 installed, invoke $(HELP2MAN) to install a manpage based on --help
41699 output.
41700
41701 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
41702 that it doesn't prevent --help from working in build tree.
41703
41704 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
41705 with `bug-grub@gnu.org'.
41706 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
41707 * util/update-grub.in (usage): New function.
41708 Implement proper argument check, with support for --help and --version
41709 (as well as existing -y).
41710
417112008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 41712
41713 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
41714 avoid overwriting previous output.
41715 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
41716
c1962162 417172008-02-09 Robert Millan <rmh@aybabtu.com>
41718
41719 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
41720 drawing the menu.
41721
3dac2e3f 417222008-02-09 Robert Millan <rmh@aybabtu.com>
41723
41724 * commands/sleep.c: New file.
41725 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
41726 (sleep_mod_SOURCES): New variable.
41727 (sleep_mod_CFLAGS): Likewise.
41728 (sleep_mod_LDFLAGS): Likewise.
41729
7a634e08 417302008-02-09 Robert Millan <rmh@aybabtu.com>
41731
41732 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
41733 situations in which we can deduce the RAID size and the superblock
41734 doesn't match it.
41735
b92f0c18 417362008-02-09 Robert Millan <rmh@aybabtu.com>
41737
41738 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
41739 and return a grub_diskmemberlist_t composed of LVM physical volumes.
41740 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
41741
41742 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
41743 and return a grub_diskmemberlist_t composed of physical array members.
41744 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
41745
41746 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
41747 prototype.
41748 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
41749 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
41750 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
41751
41752 * util/grub-probe.c (probe): Move partmap probing code from here ...
41753 (probe_partmap): ... to here.
41754 (probe): Use probe_partmap() once for the disk we're probing, and
41755 additionally, when such disk contains a memberlist() struct member,
41756 once for each disk that is contained in the structure returned by
41757 memberlist().
41758
91a4bf68 417592008-02-09 Robert Millan <rmh@aybabtu.com>
41760
41761 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
41762 environment variable to 'all' in order to obtain debug output from
41763 non-util/ code.
41764 * util/i386/pc/grub-setup.c (main): Likewise.
41765
a96f9caa 417662008-02-08 Robert Millan <rmh@aybabtu.com>
41767
41768 * disk/raid.c (grub_raid_scan_device): Check for
41769 `array->device[sb.this_disk.number]' rather than for
41770 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 41771 guaranteed to be accessible.
a96f9caa 41772
b37a9222 417732008-02-08 Robert Millan <rmh@aybabtu.com>
41774
41775 * disk/raid.c: Update copyright.
41776 * fs/cpio.c: Likewise.
41777 * include/grub/raid.h: Likewise.
41778 * loader/i386/pc/multiboot.c: Likewise.
41779 * util/hostfs.c: Likewise.
41780
5626aee1 417812008-02-08 Robert Millan <rmh@aybabtu.com>
41782
41783 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
41784 to a grub_disk_t array.
41785 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
41786 `device[x]'.
41787 (grub_raid_scan_device): Replace `device[x].name' accesses with
41788 `device[x]->name'. Simplify initialization of `array->device[x]'.
41789
554f0187 417902008-02-08 Robert Millan <rmh@aybabtu.com>
41791
41792 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
41793 grub_dprintf() calls.
41794 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
41795 error message.
41796
1ec8425d 417972008-02-07 Christian Franke <franke@computer.org>
41798
41799 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
41800 instead of fseek and ftell to support large files.
41801 (grub_hostfs_read): Likewise.
41802
f2156fda 418032008-02-07 Robert Millan <rmh@aybabtu.com>
41804
41805 Patch from Jeroen Dekkers.
41806 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 41807 failure, since successfully reading all array members might not be
f2156fda 41808 required.
41809
9216e0e7 418102008-02-06 Robert Millan <rmh@aybabtu.com>
41811
41812 * util/grub-probe.c (probe): Simplify partmap probing (with the
41813 assumption that the first word up to the underscore equals to
41814 the module name).
41815
b0dfd29a 418162008-02-06 Christian Franke <franke@computer.org>
41817
41818 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
41819 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
41820 last block of a cpio or tar stream.
41821 Check for "TRAILER!!!" instead of any empty data
41822 block to detect last block of a cpio stream.
41823 (grub_cpio_dir): Fix constness of variable np.
41824 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
41825 cpio or tar trailer is detected. This fixes a crash
41826 on open of a non existing file.
41827
c32865bf 418282008-02-05 Bean <bean123ch@gmail.com>
41829
41830 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
41831 address of entry.
41832 (grub_multiboot_load_elf64): Likewise.
41833 (grub_multiboot): Initialize mbi structure.
41834
41835 * util/grub-fstest.c: Don't include unused header file script.h.
41836
fe6b695a 41837 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 41838 of file.
41839 (grub_fstest_SOURCES): Likewise.
41840
409480b7 418412008-02-05 Robert Millan <rmh@aybabtu.com>
41842
41843 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
41844 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
41845 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
41846 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
41847
41848 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
41849 (translation_table): Replace hardcoded values with macros
41850 provided by `<grub/term.h>'.
41851
41852 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
41853 (keyboard_map): Correct/add a few values, with macros provided
41854 by `<grub/term.h>'.
41855 (keyboard_map_shift): Zero values that don't differ from their
41856 `keyboard_map' equivalents.
41857 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
41858 Discard the second scan code that is always sent by Caps lock.
41859 Only use `keyboard_map_shift' when it provides a non-zero value,
41860 otherwise fallback to `keyboard_map'.
41861
99fadbaa 418622008-02-04 Bean <bean123ch@gmail.com>
41863
41864 * Makefile.in (enable_grub_fstest): New variable.
41865
41866 * conf/common.rmk (grub_fstest_init.lst): New rule.
41867 (grub_fstest_init.h): Likewise.
41868 (grub_fstest_init.c): Likewise.
41869 (util/grub-fstest.c_DEPENDENCIES): New variable.
41870 (grub_fstest_SOURCES): Likewise.
41871
41872 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
41873
41874 * util/grub-fstest.c: New file.
41875
bf567c50 418762008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
41877
41878 Make grub-setup handle a separate root device.
f19dbdb7 41879
bf567c50 41880 * util/i386/pc/grub-setup.c (setup): Always open the root device,
41881 so that the root device can be compared with the destination
41882 device.
41883 When embedding the core image, if the root and destination devices
41884 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
41885 0xFF.
41886 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 41887
9be6b98b 418882008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
41889
41890 Add support for having a grub directory in a different drive. This
41891 is still only the data handling part.
f19dbdb7 41892
9be6b98b 41893 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
41894 (codestart): Save %dh in GRUB_ROOT_DRIVE.
41895 (grub_root_drive): New variable.
41896
41897 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
41898 instead of GRUB_BOOT_DRIVE to construct a device name. Set
41899 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
41900 as it was.
41901
41902 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
41903
41904 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
41905 macro.
41906 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
41907
41908 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
41909 is bogus, because PXE booting does not specify any drive
41910 correctly.
41911
41912 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
41913 am not sure if this is really correct.
41914
41915 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
41916 is always identical to the boot drive when booting from a CD.
41917
41918 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
41919 longer.
41920 (root_drive): New variable.
41921 (real_start): Unconditionally set %dh to ROOT_DRIVE.
41922 (setup_sectors): Push %dx right after popping it, because %dh will
41923 be modified later.
41924 (copy_buffer): Restore %dx.
41925
e0ca0677 419262008-02-03 Robert Millan <rmh@aybabtu.com>
41927
41928 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
41929 use `cdboot.img' for cdrom images.
41930
3b3f6629 419312008-02-03 Robert Millan <rmh@aybabtu.com>
41932
41933 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
41934 only setup gfxterm when `font' command has succeeded.
41935
d42b3672 419362008-02-03 Robert Millan <rmh@aybabtu.com>
41937
41938 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
41939 (grub_rescue_cmd_multiboot_loader)
41940 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
41941
fa370ea6 419422008-02-03 Pavel Roskin <proski@gnu.org>
41943
e0c5dacb 41944 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 41945 %edx and %esi from stack only after grub_gate_a20() is called.
41946 grub_gate_a20() clobbers %edx.
41947
f2a76e1d 419482008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
41949
41950 * configure.ac (AC_INIT): Bumped to 1.96.
41951
41952 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
41953 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
41954 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
41955 video/readers/png.c.
41956
90fd32d1 419572008-02-03 Bean <bean123ch@gmail.com>
9be665dd 41958
41959 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
41960 (cdboot_img_SOURCES): New variable.
41961 (cdboot_img_ASFLAGS): New variable.
41962 (cdboot_img_LDFLAGS): New variable.
41963
41964 * boot/i386/pc/cdboot.S: New file.
41965
41966 * disk/i386/pc/biosdisk.c (cd_start): New variable.
41967 (cd_count): Likewise.
41968 (grub_biosdisk_get_drive): Add support for cd device.
41969 (grub_biosdisk_call_hook): Likewise.
41970 (grub_biosdisk_iterate): Likewise.
41971 (grub_biosdisk_open): Likewise.
41972 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
41973 (grub_biosdisk_rw): Support reading from cd device.
41974 (GRUB_MOD_INIT): Iterate cd devices.
41975
41976 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
41977 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
41978 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
41979
41980 * kern/i386/pc/init.c (make_install_device): Check for cd device.
41981
4020aa53 419822008-02-02 Robert Millan <rmh@aybabtu.com>
41983
41984 * commands/read.c: New file.
41985 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
41986 (read_mod_SOURCES): New variable.
41987 (read_mod_CFLAGS): Likewise.
41988 (read_mod_LDFLAGS): Likewise.
41989
e03a1132 419902008-02-02 Robert Millan <rmh@aybabtu.com>
41991
41992 * normal/main.c (grub_normal_execute): Check for `menu->size' when
41993 determining whether menu has to be displayed.
41994
58c69220 419952008-02-02 Marco Gerards <marco@gnu.org>
41996
41997 * bus/pci.c: New file.
41998
41999 * include/grub/pci.h: Likewise.
42000
42001 * include/grub/i386/pc/pci.h: Likewise.
42002
42003 * commands/lspci.c: Likewise.
42004
42005 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
42006 `lspci.mod'.
42007 (pci_mod_SOURCES): New variable.
42008 (pci_mod_CFLAGS): Likewise.
42009 (pci_mod_LDFLAGS): Likewise.
42010 (lspci_mod_SOURCES): Likewise.
42011 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 42012 (lspci_mod_LDFLAGS): Likewise.
58c69220 42013
c004e1b4 420142008-02-02 Bean <bean123ch@gmail.com>
42015
42016 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
42017 (grub_ufs_get_file_block): Fix indirect block calculation problem.
42018
42019 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
42020 (grub_xfs_btree_node): New structure.
42021 (grub_xfs_btree_root): New structure.
42022 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
42023 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
42024 (GRUB_XFS_EXTENT_BLOCK): Likewise.
42025 (GRUB_XFS_EXTENT_SIZE): Likewise.
42026 (grub_xfs_read_block): Support btree format type.
42027 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
42028 Use directory block as basic unit.
42029
42030 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
42031
42032 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
42033 __attribute__ ((__regparm__ (1))).
42034
f95562bf 420352008-02-01 Robert Millan <rmh@aybabtu.com>
42036
42037 Correct a mistake in previous commit.
42038
42039 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
42040 top.
42041 (normal/command.c_DEPENDENCIES): New variable.
42042
7d31f41f 420432008-02-01 Robert Millan <rmh@aybabtu.com>
42044
42045 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
42046 top.
42047 (normal/command.c_DEPENDENCIES): New variable.
42048 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
42049 * conf/i386-ieee1275.rmk: Likewise.
42050 * conf/i386-linuxbios.rmk: Likewise.
42051 * conf/i386-pc.rmk: Likewise.
42052 * conf/sparc64-ieee1275.rmk: Likewise.
42053 * conf/powerpc-ieee1275.rmk: Likewise.
42054 (grub_emu_SOURCES): Add `fs/fshelp.c'.
42055
42056 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
42057
60b6be74 420582008-02-01 Robert Millan <rmh@aybabtu.com>
42059
42060 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
42061 call at beginning of function.
42062
078522ab 420632008-01-31 Pavel Roskin <proski@gnu.org>
42064
42065 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 42066 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
42067 (grub_mkrescue_SOURCES): Likewise.
078522ab 42068 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
42069
ccaa8a5f 420702008-01-30 Robert Millan <rmh@aybabtu.com>
42071
42072 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
42073 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
42074 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
42075 (grub_probe_SOURCES): ... to here.
42076
42077 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
42078 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
42079 * conf/i386-ieee1275.rmk: Likewise.
42080 * conf/i386-linuxbios.rmk: Likewise.
42081 * conf/powerpc-ieee1275.rmk: Likewise.
42082
ae5a9cd7 420832008-01-30 Tristan Gingold <gingold@free.fr>
42084
42085 * kern/rescue.c: Silently accept empty lines.
42086
70bc2ef2 420872008-01-29 Bean <bean123ch@gmail.com>
42088
42089 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
42090 (real_code_2): Code cleanup and change comment style.
42091 (move_memory): Avoid using 32-bit address mode.
42092
6a4d50ea 420932008-01-29 Bean <bean123ch@gmail.com>
42094
42095 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
42096 (png_mod_SOURCES): New variable.
42097 (png_mod_CFLAGS): Likewise.
42098 (png_mod_LDFLAGS): Likewise.
42099
42100 * video/readers/png.c: New file.
42101
11cc30ac 421022008-01-28 Robert Millan <rmh@aybabtu.com>
42103
42104 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
42105 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
42106 `ifndef GRUB_MOD_GAP' hack.
42107 * util/elf/grub-mkimage.c (add_segments): Likewise.
42108
3abc589f 421092008-01-27 Robert Millan <rmh@aybabtu.com>
42110
42111 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
42112 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 42113 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 42114
e1907778 421152008-01-27 Robert Millan <rmh@aybabtu.com>
42116
42117 Get grub-emu to build again (including parallel builds).
42118
42119 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
42120 Split into ...
42121 (util/grub-emu.c_DEPENDENCIES): ... this, ...
42122 (normal/execute.c_DEPENDENCIES): ... this, ...
42123 (grub-emu_DEPENDENCIES): ... and this.
42124
42125 * conf/i386-efi.rmk: Likewise.
42126 * conf/i386-linuxbios.rmk: Likewise.
42127 * conf/i386-ieee1275.rmk: Likewise.
42128 * conf/powerpc-ieee1275.rmk: Likewise.
42129 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
42130
2216b101 421312008-01-27 Robert Millan <rmh@aybabtu.com>
42132
42133 * NEWS: Add a few items.
42134
f75172d9 421352008-01-27 Robert Millan <rmh@aybabtu.com>
42136
42137 Fix parallel builds with grub-emu. Based on earlier commit for
42138 grub-probe and grub-setup.
42139
42140 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42141 (util/grub-emu.c_DEPENDENCIES): ... this.
42142 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42143 (util/grub-emu.c_DEPENDENCIES): ... this.
42144 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42145 (util/grub-emu.c_DEPENDENCIES): ... this.
42146 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42147 (util/grub-emu.c_DEPENDENCIES): ... this.
42148 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42149 (util/grub-emu.c_DEPENDENCIES): ... this.
42150
3f51de77 421512008-01-27 Pavel Roskin <proski@gnu.org>
42152
42153 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
42154 to create a gap between _end and the modules added to the image
42155 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
42156 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
42157 * util/elf/grub-mkimage.c (add_segments): Likewise.
42158
2033f53e 421592008-01-26 Pavel Roskin <proski@gnu.org>
42160
42161 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
42162 just return an error.
42163
22da1f6f 421642008-01-26 Bean <bean123ch@gmail.com>
42165
42166 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
42167 (grub_reiserfs_get_item): Save offset of the next item.
42168 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
42169
2a9525e6 421702008-01-25 Robert Millan <rmh@aybabtu.com>
42171
42172 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
42173 make all filesystem sources appear together (possibly fixing omissions
42174 while at it).
42175 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42176 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42177 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42178 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42179
42180 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
42181 add `kern/file.c'.
42182 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
42183 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42184 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
42185 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42186
42187 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
42188 (probe): Add a sanity check to make sure of our ability to read
42189 requested files when probing for filesystem type.
42190
42191 * genmk.rb: Update copyright year (2007).
42192
42193 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
42194 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
42195 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
42196 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
42197 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
42198 : Remove function prototypes.
42199
b95f71b5 422002008-01-25 Robert Millan <rmh@aybabtu.com>
42201
42202 Revert my previous commits (based on wrong assumption of how grub_errno
42203 works).
42204
fe6b695a 42205 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 42206 * kern/file.c (grub_file_open): Likewise.
42207
d08bbb49 422082008-01-24 Pavel Roskin <proski@gnu.org>
42209
42210 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
42211 that hang if GRUB tries to setup colors.
42212 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
42213 colors for firmwares that don't support it.
42214 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
42215 Recognize Open Hack'Ware, set flags to work around its
42216 limitations.
42217
605e36ed 422182008-01-24 Robert Millan <rmh@aybabtu.com>
42219
42220 * kern/file.c (grub_file_open): Do not account previous failures of
42221 unrelated functions when grub_errno is checked for.
42222 Reported by Oleg Strikov.
42223
bac332a1 422242008-01-24 Bean <bean123ch@gmail.com>
42225
42226 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
42227 (grub_ufs_sblock): New member volume name.
42228 (grub_ufs_find_file): Fix string copy bug.
42229 (grub_ufs_label): Implement this function properly.
42230
42231 * fs/hfs.c (grub_hfs_cnid_type): New enum.
42232 (grub_hfs_iterate_records): Use the correct file number for extents
42233 and catalog file. Fix problem in next index calculation.
42234 (grub_hfs_find_node): Replace recursive function call with loop.
42235 (grub_hfs_iterate_dir): Replace recursive function call with loop.
42236
15c80c09 422372008-01-23 Robert Millan <rmh@aybabtu.com>
42238
42239 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
42240 `<grub/symbol.h>' and `<grub/multiboot.h>'.
42241 (grub_multiboot2_real_boot): New function prototype.
42242
42243 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
42244 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
42245
42246 * kern/i386/ieee1275/init.c (grub_os_area_addr)
42247 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
42248
305338fd 422492008-01-23 Robert Millan <rmh@aybabtu.com>
42250
42251 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
42252 #ifdef'ed out grub_printf().
42253
3ea52685 422542008-01-23 Robert Millan <rmh@aybabtu.com>
42255
42256 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
42257 grub_dprintf calls, since they make "debug=all" mode unusable.
42258 (grub_console_checkkey): Likewise.
42259
5882ae4b 422602008-01-23 Robert Millan <rmh@aybabtu.com>
42261
42262 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
42263 `term/i386/pc/at_keyboard.c'.
42264 (pkglib_MODULES): Add `serial.mod'.
42265 (serial_mod_SOURCES): New variable.
42266 (serial_mod_CFLAGS): Likewise.
42267 (serial_mod_LDFLAGS): Likewise.
42268
42269 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
42270 `<grub/powerpc/ieee1275/console.h>'.
42271 (grub_keyboard_controller_init): New function prototype.
42272 (grub_console_checkkey): Likewise.
42273 (grub_console_getkey): Likewise.
42274
42275 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
42276 keyboard on i386.
42277
42278 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
42279 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
42280
06ab5303 422812008-01-23 Robert Millan <rmh@aybabtu.com>
42282
42283 * kern/i386/pc/init.c (make_install_device): When memdisk image is
42284 present, "(memdisk)/boot/grub" becomes the default prefix.
42285
42286 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
42287 a memdisk tarball with all the modules. Add --overlay=DIR option that
42288 allows users to overlay additional files into the image.
42289
dbb475a4 422902008-01-23 Robert Millan <rmh@aybabtu.com>
42291
42292 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
42293 and `machine/memory.h'.
42294 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
42295 (_multiboot_mod_SOURCES): New variable.
42296 (_multiboot_mod_CFLAGS): Likewise.
42297 (_multiboot_mod_LDFLAGS): Likewise.
42298 (multiboot_mod_SOURCES): Likewise.
42299 (multiboot_mod_CFLAGS): Likewise.
42300 (multiboot_mod_LDFLAGS): Likewise.
42301
42302 * include/grub/i386/ieee1275/loader.h: New file.
42303
42304 * include/grub/i386/ieee1275/machine.h: Likewise.
42305
42306 * include/grub/i386/ieee1275/memory.h: Likewise.
42307
42308 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
42309 variable declaration.
42310 (grub_os_area_size): Likewise.
42311
42312 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
42313 (grub_lower_mem, grub_upper_mem): New variables.
42314 (grub_stop_floppy): New function (just to make
42315 grub_multiboot2_real_boot() happy).
42316
42317 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
42318 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
42319 (grub_stop): New function.
42320 Include `"../realmode.S"' and `"../loader.S"'.
42321
42322 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
42323 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
42324
42325 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
42326 rely on grub_multiboot2_real_boot() for final boot.
42327
25638629 423282008-01-22 Robert Millan <rmh@aybabtu.com>
42329
42330 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
42331 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
42332 device that doesn't look like an SD card.
42333 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
42334 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
42335 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
42336 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
42337 found.
42338
9dad816d 423392008-01-22 Robert Millan <rmh@aybabtu.com>
42340
42341 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
42342 avoid claiming over our own code.
42343
34842f2d 423442008-01-22 Bean <bean123ch@gmail.com>
42345
42346 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
42347 (jpeg_mod_SOURCES): New variable.
42348 (jpeg_mod_CFLAGS): Likewise.
42349 (jpeg_mod_LDFLAGS): Likewise.
42350
42351 * video/readers/jpeg.c : New file.
42352
44023a28 423532008-01-22 Bean <bean123ch@gmail.com>
42354
42355 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
42356 there are no more items.
42357
bc2d8ac6 423582008-01-21 Robert Millan <rmh@aybabtu.com>
42359
42360 * kern/mm.c (grub_mm_init_region): Improve debug message.
42361
261bd4bc 423622008-01-21 Robert Millan <rmh@aybabtu.com>
42363
42364 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
42365 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
42366 address.
42367 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
42368 a C macro.
42369 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
42370 Indicates start of upper memory.
42371 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
42372 (generate_image): Abort when image size is big enough to corrupt
42373 upper memory.
42374
42375 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
42376 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
42377 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
42378 instead of hardcoding 0xA0000.
42379 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
42380 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
42381 instead of hardcoding 0xA0000.
42382
f970b55e 423832008-01-21 Robert Millan <rmh@aybabtu.com>
42384
42385 * disk/memdisk.c (memdisk_size): New variable.
42386 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
42387 `memdisk_size'.
42388 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
42389 image to dynamic memory.
42390 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
42391 `memdisk_size'. Free memdisk block.
42392
1a8b0526 423932008-01-21 Robert Millan <rmh@aybabtu.com>
42394
42395 Fix detection of very small filesystems (like tar).
42396
42397 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
42398 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
42399 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
42400 a problem with this disk).
42401
6e9b4aab 424022008-01-21 Robert Millan <rmh@aybabtu.com>
42403
42404 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
42405 on grub_biosdisk_rw_standard() error.
42406
0d8837b2 424072008-01-21 Robert Millan <rmh@aybabtu.com>
42408
42409 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
42410 recent changes.
42411 * kern/elf.c: Likewise.
42412 * kern/ieee1275/ieee1275.c: Likewise.
42413 * kern/powerpc/ieee1275/openfw.c: Likewise.
42414 * term/ieee1275/ofconsole.c: Likewise.
42415
ffd36e34 424162008-01-21 Robert Millan <rmh@aybabtu.com>
42417
42418 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
42419
3f0093d0 42420 * include/grub/kernel.h (grub_arch_memdisk_addr)
42421 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 42422
3f0093d0 42423 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
42424 (grub_arch_memdisk_size): ... to here.
ffd36e34 42425
6c391b21 424262008-01-21 Robert Millan <rmh@aybabtu.com>
42427
42428 Mostly based on bugfix from Bean.
42429
42430 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
42431 attribute with hook() parameter.
42432 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
42433 declaration.
42434 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
42435 attribute with hook() parameter.
42436 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
42437 declaration.
42438
55a581dc 424392008-01-21 Robert Millan <rmh@aybabtu.com>
42440
42441 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
42442 (pkglib_MODULES): Add `memdisk.mod'.
42443 (memdisk_mod_SOURCES): New variable.
42444 (memdisk_mod_CFLAGS): Likewise.
42445 (memdisk_mod_LDFLAGS): Likewise.
42446
42447 * disk/memdisk.c: New file.
42448
42449 * include/grub/disk.h (grub_disk_dev_id): Add
42450 `GRUB_DISK_DEVICE_MEMDISK_ID'.
42451
42452 * include/grub/i386/pc/kernel.h
42453 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
42454 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
42455 (grub_kernel_image_size): New variable declaration.
42456 (grub_total_module_size): Likewise.
42457 (grub_memdisk_image_size): Likewise.
42458
42459 * include/grub/i386/pc/memory.h
42460 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
42461
42462 * include/grub/kernel.h: Include `<grub/symbol.h>'.
42463 (grub_arch_memdisk_addr): New variable declaration.
42464 (grub_arch_memdisk_size): Likewise.
42465
42466 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
42467 (grub_arch_memdisk_size): Likewise.
42468
42469 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
42470 (codestart): Replace hardcoded `0x100000' with
42471 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
42472
42473 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
42474 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
42475 not NULL, append the contents of the file it refers to, at the end of
42476 the compressed kernel image. Initialize `grub_memdisk_image_size'
42477 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
42478 (options): Add "memdisk"|'m' option.
42479 (main): Parse --memdisk|-m option, and pass user-provided path as
42480 parameter to generate_image().
42481
3d7f54c9 424822008-01-20 Robert Millan <rmh@aybabtu.com>
42483
42484 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
42485 grub_dprintf() calls from here ...
42486 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
42487
0bf74728 424882008-01-20 Robert Millan <rmh@aybabtu.com>
42489
42490 Fix detection of "real mode" when /options/real-mode? doesn't exist.
42491
42492 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
42493 declaration.
42494 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
42495 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
42496 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 42497 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 42498 property).
42499 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
42500 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
42501
33bf70a7 425022008-01-19 Robert Millan <rmh@aybabtu.com>
42503
fe6b695a 42504 Get rid of confusing function (superseded by
33bf70a7 42505 `grub_ieee1275_get_integer_property')
42506 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
42507 prototype.
42508 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
42509 function.
42510 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
42511 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 42512 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 42513
e2da7d26 425142008-01-19 Robert Millan <rmh@aybabtu.com>
42515
42516 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
42517 command after "shut-down", since implementations differ on which
42518 the command for halt is.
42519
59f1fd8d 425202008-01-19 Robert Millan <rmh@aybabtu.com>
42521
42522 * include/grub/i386/linuxbios/console.h: Add header protection.
42523 (grub_keyboard_controller_init): New function prototype.
42524 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
42525 (KEYBOARD_COMMAND_READ): Likewise.
42526 (KEYBOARD_COMMAND_WRITE): Likewise.
42527 (KEYBOARD_SCANCODE_SET1): Likewise.
42528 (grub_keyboard_controller_write): New function.
42529 (grub_keyboard_controller_read): Likewise.
42530 (grub_keyboard_controller_init): Likewise.
42531
42532 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
42533 (grub_console_init): On coreboot/LinuxBIOS, call
42534 grub_keyboard_controller_init().
42535
5f5a7c15 425362008-01-19 Robert Millan <rmh@aybabtu.com>
42537
42538 PowerPC changes provided by Pavel Roskin.
42539
42540 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
42541 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
42542 don't rely on cmain() doing it.
42543 * kern/i386/ieee1275/startup.S (_start): Store %eax in
42544 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
42545
1210e168 425462008-01-16 Robert Millan <rmh@aybabtu.com>
42547
42548 * include/grub/i386/linuxbios/memory.h
42549 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
42550 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
42551 receive `table_header' as argument. Instead, probe for it in the
42552 known memory ranges where it can be present.
42553 (grub_available_iterate): Do not pass a fixed `table_header' address
42554 to grub_linuxbios_table_iterate().
42555
3d04eab8 425562008-01-15 Robert Millan <rmh@aybabtu.com>
42557
42558 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
42559 * conf/i386-ieee1275.rmk: New file.
42560 * include/grub/i386/ieee1275/console.h: Likewise.
42561 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
42562 * include/grub/i386/ieee1275/kernel.h: Likewise.
42563 * include/grub/i386/ieee1275/time.h: Likewise.
42564 * kern/i386/ieee1275/init.c: Likewise.
42565 * kern/i386/ieee1275/startup.S: Likewise.
42566
d1bc1b73 425672008-01-15 Robert Millan <rmh@aybabtu.com>
42568
42569 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
42570 when pointers are 32-bit (but still do set it to one when they are
42571 64-bit).
42572
66a65807 425732008-01-15 Robert Millan <rmh@aybabtu.com>
42574
42575 * include/grub/ieee1275/ieee1275.h
42576 (grub_ieee1275_get_integer_property): New function prototype.
42577
42578 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
42579 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 42580 grub_ieee1275_get_property() to handle endianness.
66a65807 42581
42582 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
42583 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 42584 where appropriate.
66a65807 42585 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
42586 (grub_map): Likewise.
42587 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
42588
a83ccafd 425892008-01-15 Bean <bean123ch@gmail.com>
42590
42591 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
42592 (grub_script_execute_cmdline): Reset grub_errno.
42593
42594 * normal/main.c (read_config_file): Reset grub_errno.
42595
42596 * normal/parse.y (script_init): New.
42597 (script): Move function and menuentry here.
42598 (delimiter): New.
42599 (command): Add delimiter at the end of command.
42600 (commands): Adjust to match the new command.
42601 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 42602 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 42603 (if): Use the new commands.
42604
42605 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
42606
df6ecfc6 426072008-01-15 Robert Millan <rmh@aybabtu.com>
42608
42609 * normal/menu.c (run_menu): Move timeout message from here ...
42610 (print_timeout): ... to here.
42611 (run_menu): Use print_timeout() once during initial draw to print
42612 the whole message, and again in every clock tick to update only
42613 the number of seconds.
42614
87ae25eb 426152008-01-15 Robert Millan <rmh@aybabtu.com>
42616
42617 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
42618 actual size of `available' from grub_ieee1275_get_property(), and
42619 restrict parsing to that bound.
42620
47bf09a4 426212008-01-15 Christian Franke <franke@computer.org>
42622
42623 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
42624 (argp_program_version): Remove variable.
42625 (argp_program_bug_address): Likewise.
42626 (options): Convert from struct argp_option to struct option.
42627 (struct arguments): Remove.
42628 (parse_opt): Remove.
42629 (usage): New function.
42630 (main): Replace struct args members by simple variables.
42631 Replace argp_parse() by getopt_long().
42632 Add switch to evaluate options.
42633 Add missing "(...)" around root_dev in prefix string.
42634
c86f1469 426352008-01-14 Robert Millan <rmh@aybabtu.com>
42636
42637 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
42638 for grub_ieee1275_exit(), in order to improve portability.
42639
e622c559 426402008-01-14 Robert Millan <rmh@aybabtu.com>
42641
42642 * util/grub.d/10_linux.in (prefix): Define.
42643 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
42644
44cb1ec8 426452008-01-13 Pavel Roskin <proski@gnu.org>
42646
42647 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
42648 grub_errno if no errors have been detected.
42649
1eb8c802 426502008-01-12 Robert Millan <rmh@aybabtu.com>
42651
42652 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
42653 (grub_util_get_dev_abstraction): New function prototype.
42654
42655 * util/getroot.c: Include `<grub/util/getroot.h>'
42656 (grub_util_get_grub_dev): Move detection of abstraction type to ...
42657 (grub_util_get_dev_abstraction): ... here (new function).
42658
42659 * util/grub-probe.c: Convert PRINT_* to an enum. Add
42660 `PRINT_ABSTRACTION'.
42661 (probe): Probe for abstraction type when requested.
42662 (main): Understand `--target=abstraction'.
42663
42664 * util/i386/efi/grub-install.in: Add abstraction module to core
42665 image when it is found to be necessary.
42666 * util/i386/pc/grub-install.in: Likewise.
42667 * util/powerpc/ieee1275/grub-install.in: Likewise.
42668
42669 * util/update-grub_lib.in (font_path): Return system path without
42670 converting to GRUB path.
42671 * util/update-grub.in: Convert system path returned by font_path()
42672 to a GRUB path. Use `grub-probe -t abstraction' to determine what
42673 abstraction module is needed for loading fonts (if any). Export
42674 that as `GRUB_PRELOAD_MODULES'.
42675 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
42676 insmod commands).
42677
52bd3de9 426782008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
42679
42680 Remove some unused code from reiserfs.
f19dbdb7 42681
52bd3de9 42682 * fs/reiserfs.c (struct grub_reiserfs_key)
42683 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
42684 (struct grub_reiserfs_node_body): Removed.
42685 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
42686 Likewise.
42687 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42688 Likewise.
42689 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42690 Likewise.
42691 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42692 Likewise.
42693 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
42694 Likewise.
42695 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
42696 Likewise.
42697 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42698 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42699 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42700
2f80039d 427012008-01-10 Robert Millan <rmh@aybabtu.com>
42702
42703 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
42704 Determines if a file is garbage left by packaging systems, etc.
42705 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
42706 for processing /etc/grub.d scripts.
42707 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
42708 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
42709 as a condition for processing Linux images.
42710
87888032 427112008-01-10 Pavel Roskin <proski@gnu.org>
42712
42713 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
42714 to compile reiserfs.c on PowerPC.
42715
7e54fced 427162008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 42717
42718 * kern/device.c (grub_device_iterate): Do not abort device iteration
42719 when one of the devices cannot be opened.
42720 * kern/disk.c (grub_disk_open): Do not account previous failures of
42721 unrelated functions when grub_errno is checked for.
42722
5aa541e6 427232008-01-08 Robert Millan <rmh@aybabtu.com>
42724
42725 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
42726 `! grub_linux_is_bzimage', change order of address comparison to make
42727 it more intuitive, and improve "too big zImage" error message.
42728
7076340d 427292008-01-08 Robert Millan <rmh@aybabtu.com>
42730
42731 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
42732 `$(update-grub_DATA)'.
42733 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
42734 targets.
42735
9ca70333 427362008-01-07 Robert Millan <rmh@aybabtu.com>
42737
42738 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
42739 which instruction is modified by grub-setup during installation
42740 (since it wasn't obvious by only looking at this file).
42741
38ccf575 427422008-01-07 Robert Millan <rmh@aybabtu.com>
42743
42744 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
42745 listing actual TODO items.
42746
f5db4291 427472008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42748
868967cf 42749 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
42750 correctly.
42751 (grub_reiserfs_get_key_offset): Likewise.
42752 (grub_reiserfs_set_key_offset): Likewise.
42753 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 42754 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 42755
42756 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
42757 better to remove the bitfield version completely.
f19dbdb7 42758
868967cf 427592008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 42760
f5db4291 42761 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
42762 allocated from the heap, due to the fshelp implementation.
42763 (grub_reiserfs_dir): Free NODE, due to the same reason.
42764
492e6d9d 427652008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42766
42767 Mostly from Vincent Pelletier:
f19dbdb7 42768
492e6d9d 42769 * fs/reiserfs.c: New file.
f19dbdb7 42770
492e6d9d 42771 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
42772 (reiserfs_mod_SOURCES): New variable.
42773 (reiserfs_mod_CFLAGS): Likewise.
42774 (reiserfs_mod_LDFLAGS): Likewise.
42775
42776 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
42777 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
42778 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
42779 normal/color.c.
42780
9ce3e7c1 427812008-01-06 Robert Millan <rmh@aybabtu.com>
42782
42783 * normal/color.c: Remove `<grub/env.h>'.
42784
f3b58148 427852008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
42786
42787 * include/grub/normal.h: Include <grub/env.h>.
42788
7ac3bcfa 427892008-01-05 Robert Millan <rmh@aybabtu.com>
42790
42791 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
42792 usage example with `(hd0,1)'.
fb358190 42793 Reported by Samuel Thibault.
7ac3bcfa 42794
c8ee99d7 427952008-01-05 Robert Millan <rmh@aybabtu.com>
42796
42797 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
42798 (grub_linux_boot_zimage): Rename to ...
42799 (grub_linux_boot): ... this.
42800 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
42801 (grub_linux_boot_zimage): Conditionalize zImage copy.
42802
42803 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
42804 (grub_linux_boot_bzimage): Remove prototype.
42805 (grub_linux_boot_zimage): Rename to ...
42806 (grub_linux_boot): ... this.
42807
42808 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
42809 (grub_linux_boot): Remove function.
42810
0ece25b1 428112008-01-05 Robert Millan <rmh@aybabtu.com>
42812
42813 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
42814 (grub_env_write_color_highlight): Likewise.
42815 (grub_wait_after_message): Likewise.
42816
42817 * normal/color.c: New file.
42818
42819 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42820 (normal_mod_DEPENDENCIES): Likewise.
42821
42822 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42823 (normal_mod_DEPENDENCIES): Likewise.
42824
42825 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42826 (normal_mod_DEPENDENCIES): Likewise.
42827
42828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42829 (normal_mod_DEPENDENCIES): Likewise.
42830
42831 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
42832 for waiting after a message is printed.
42833 * normal/main.c (read_config_file): Likewise.
42834 (grub_normal_init): Register grub_env_write_color_normal() and
42835 grub_env_write_color_highlight() hooks. Mark `color_normal' and
42836 `color_highlight' variables as global.
42837
42838 * normal/menu.c (grub_wait_after_message): New function.
42839 (grub_color_menu_normal): New variable. Replaces ...
42840 (GRUB_COLOR_MENU_NORMAL): ... this macro.
42841 (grub_color_menu_highlight): New variable. Replaces ...
42842 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
42843 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
42844 `GRUB_TERM_COLOR_STANDARD'.
42845 (print_message): Use `grub_setcolorstate' to reload colors. Rename
42846 `normal_code' and `highlight_code' to `old_color_normal' and
42847 `old_color_highlight', respectively.
42848 (grub_menu_init_page): Update colors when drawing the menu, based on
42849 `menu_color_normal' and `menu_color_highlight' variables.
42850 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
42851 a message is printed.
42852
182dd4e5 428532008-01-05 Robert Millan <rmh@aybabtu.com>
42854
42855 * kern/env.c (grub_env_context_open): Propagate hooks for global
42856 variables to new context.
42857
42858 * kern/main.c (grub_set_root_dev): Export `root' variable.
42859
ddf8f6ad 428602008-01-05 Robert Millan <rmh@aybabtu.com>
42861
42862 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 42863 discs unconditionally, since udev and others have options to provide
ddf8f6ad 42864 them.
42865
d8b43d9b 428662008-01-05 Robert Millan <rmh@aybabtu.com>
42867
42868 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
42869
2bff2de3 428702008-01-04 Christian Franke <franke@computer.org>
42871
42872 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
42873 of eisa_mmap.
42874
97eab917 428752008-01-03 Pavel Roskin <proski@gnu.org>
42876
42877 * kern/i386/linuxbios/init.c: Put "void" to all function
42878 declarations with no arguments.
42879 * kern/powerpc/ieee1275/init.c: Likewise.
42880 * term/i386/pc/at_keyboard.c: Likewise.
42881 * term/i386/pc/vga_text.c: Likewise.
42882 * util/grub-mkdevicemap.c: Likewise.
42883
b9416d00 428842008-01-02 Robert Millan <rmh@aybabtu.com>
42885
42886 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
42887 message when loaded image is out of bounds.
42888 (grub_multiboot_load_elf64): Likewise.
42889
92695df9 428902008-01-02 Pavel Roskin <proski@gnu.org>
42891
42892 * util/grub.d/10_linux.in: Try version without ".old" when
42893 looking for initrd. It's better to use initrd from the newer
42894 kernel of the same version than no initrd at all.
42895
d98d9cad 428962008-01-01 Robert Millan <rmh@aybabtu.com>
42897
42898 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
42899
dbfdce36 429002008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
42901
f19dbdb7 42902 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 42903 grub_video_get_active_render_target.
42904 (grub_video_adapter): Added unmap_color and get_active_render_target.
42905
f19dbdb7 42906 * video/video.c: Added grub_video_unmap_color and
dbfdce36 42907 grub_video_get_active_render_target.
42908 (grub_video_get_info): Changed method to accept NULL pointer as an
42909 argument to allow detection of active video adapter.
42910
42911 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
42912 grub_video_vbe_unmap_color_int.
42913 Added grub_video_vbe_unmap_color and
42914 grub_video_vbe_get_active_render_target.
42915 (grub_video_vbe_adapter): Added unmap_color and
42916 get_active_render_target.
42917
f19dbdb7 42918 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 42919 with grub_video_vbe_unmap_color_int.
42920
42921 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
42922 (DEFAULT_NORMAL_COLOR): Likewise.
42923 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
42924 (DEFAULT_FG_COLOR): Removed.
42925 (DEFAULT_BG_COLOR): Likewise.
42926 (DEFAULT_CURSOR_COLOR): Changed value.
42927 (grub_virtual_screen): Added standard_color_setting,
42928 normal_color_setting, highlight_color_setting and term_color.
42929 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
42930 (bitmap_width): Added.
42931 (bitmap_height): Likewise.
42932 (bitmap): Likewise.
42933 (set_term_color): Likewise.
42934 (grub_virtual_screen_setup): Changed to use new terminal coloring
42935 settings.
42936 (grub_gfxterm_init): Added init for bitmap.
42937 (grub_gfxterm_fini): Added destroy for bitmap.
42938 (redraw_screen_rect): Updated to use background bitmap and new
42939 terminal coloring.
42940 (scroll_up): Added optimization for case when there is no bitmap.
42941 (grub_gfxterm_cls): Fixed to use correct background color.
42942 (grub_virtual_screen_setcolorstate): Changed to use new terminal
42943 coloring.
42944 (grub_virtual_screen_setcolor): Likewise.
42945 (grub_virtual_screen_getcolor): Added.
42946 (grub_gfxterm_background_image_cmd): Likewise.
42947 (grub_video_term): Added setcolor and getcolor.
42948 (MOD_INIT): Added registration of background_image command.
42949 (MOD_TERM): Added unregistration for background_image command.
42950
c3c20931 429512007-12-30 Pavel Roskin <proski@gnu.org>
42952
42953 * loader/multiboot_loader.c: Fix multiboot command
42954 unregistration. Fix all typos in the word "multiboot".
42955
df266716 429562007-12-29 Pavel Roskin <proski@gnu.org>
94239199 42957
42958 * util/grub.d/10_linux.in: Refactor search for initrd. Add
42959 support for initrd names used in Fedora.
42960
fc6e896c 429612007-12-26 Bean <bean123ch@gmail.com>
42962
42963 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
42964 (cpio_mod_SOURCES): New variable.
42965 (cpio_mod_CFLAGS): Likewise.
42966 (cpio_mod_LDFLAGS): Likewise.
42967
42968 * fs/cpio.c: New file.
42969
42970 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
42971
42972 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42973
42974 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42975
42976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42977
533110ad 429782007-12-25 Robert Millan <rmh@aybabtu.com>
42979
42980 * include/grub/term.h (struct grub_term): Add `getcolor' function.
42981 (grub_getcolor): New function.
42982
42983 * kern/term.c (grub_getcolor): New function.
42984 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
42985 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
42986 (print_entry): Set normal and highlight colors to
42987 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
42988 respectively, before printing and restore them to old
42989 values afterwards.
42990 (grub_menu_init_page): Likewise. Fill an additional colored space
42991 that would otherwise be left blank.
42992
42993 * term/efi/console.c (grub_console_getcolor): New function.
42994 (struct grub_console_term.getcolor): New variable.
42995 * term/i386/pc/console.c (grub_console_getcolor): New function.
42996 (struct grub_console_term.getcolor): New variable.
42997 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
42998 (struct grub_console_term.getcolor): New variable.
42999
43000 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
43001 (struct grub_console_term.setcolor): Remove variable.
43002 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
43003 (struct grub_console_term.setcolor): Remove variable.
43004 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
43005 (struct grub_console_term.setcolor): Remove variable.
43006 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
43007 (struct grub_console_term.setcolor): Remove variable.
43008
4931827f 430092007-12-25 Robert Millan <rmh@aybabtu.com>
43010
43011 * configure.ac: Search for possible unifont.hex locations, and
43012 define UNIFONT_HEX if found.
43013
43014 * Makefile.in (UNIFONT_HEX): Define variable.
43015 (DATA): Rename to ...
43016 (PKGLIB): ... this. Update all users.
43017 (PKGDATA): New variable.
43018 (pkgdata_IMAGES): Rename to ...
43019 (pkglib_IMAGES): ... this. Update all users.
43020 (pkgdata_MODULES): Rename to ...
43021 (pkglib_MODULES): ... this. Update all users.
43022 (pkgdata_PROGRAMS): Rename to ...
43023 (pkglib_PROGRAMS): ... this. Update all users.
43024 (pkgdata_DATA): Rename to ...
43025 (pkglib_DATA): ... this. Update all users.
43026 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
43027 (unicode.pff, ascii.pff): New rules.
43028 (all-local): Add `$(PKGDATA)' dependency.
43029 (install-local): Process `$(PKGDATA)'.
43030
43031 * util/update-grub_lib.in (font_path): Search for *.pff files in
43032 a few more locations, including `${pkgdata}'.
43033
57e57e31 430342007-12-23 Robert Millan <rmh@aybabtu.com>
43035
43036 Patch from Bean <bean123ch@gmail.com>:
43037 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
43038 `size'.
43039
4bc72aa9 430402007-12-21 Bean <bean123ch@gmail.com>
43041
43042 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
43043 (ntfscomp_mod_SOURCES): New variable.
43044 (ntfscomp_mod_CFLAGS): Likewise.
43045 (ntfscomp_mod_LDFLAGS): Likewise.
43046
43047 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
43048 (grub_probe_SOURCES): Likewise.
43049 (grub_emu_SOURCES): Likewise.
43050
43051 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43052 (grub_emu_SOURCES): Likewise.
43053
43054 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43055 (grub_emu_SOURCES): Likewise.
43056
43057 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43058 (grub_emu_SOURCES): Likewise.
43059
43060 * fs/ntfs.c (grub_ntfscomp_func): New variable.
43061 (read_run_list): Renamed to grub_ntfs_read_run_list.
43062 (decomp_nextvcn): Moved to ntfscomp.c.
43063 (decomp_getch): Likewise.
43064 (decomp_get16): Likewise.
43065 (decomp_block): Likewise.
43066 (read_block): Likewise.
43067 (read_data): Partially moved to ntfscomp.c.
43068 (fixup): Change unsigned to grub_uint16_t.
43069 (read_mft): Change unsigned long to grub_uint32_t.
43070 (read_attr): Likewise.
43071 (read_data): Likewise.
43072 (read_run_data): Likewise.
43073 (read_run_list): Likewise.
43074 (read_mft): Likewise.
43075
43076 * fs/ntfscomp.c: New file.
43077
43078 * include/grub/ntfs.h: New file.
43079
af680a87 430802007-12-16 Robert Millan <rmh@aybabtu.com>
43081
43082 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
43083 IDE disk check, since Linux is known to support 20 IDE disks.
43084 Reported by Colin Watson.
43085
84be7599 430862007-12-15 Bean <bean123ch@gmail.com>
43087
43088 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
43089 (lnxboot_img_SOURCES): New variable.
43090 (lnxboot_img_ASFLAGS): Likewise.
43091 (lnxboot_img_LDFLAGS): Likewise.
43092
43093 * boot/i386/pc/lnxboot.S: New file.
43094
6af9db01 430952007-11-24 Pavel Roskin <proski@gnu.org>
43096
43097 * configure.ac: Test if '--build-id=none' is supported by the
43098 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
43099 objcopy to generate incorrect binary files (binutils
43100 2.17.50.0.18-1 as shipped by Fedora 8).
43101 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
43102 linking, so that build ID doesn't break the test.
43103
7361cfe6 431042007-11-24 Pavel Roskin <proski@gnu.org>
43105
43106 * include/grub/i386/time.h: use "void" in the argument list
43107 of grub_cpu_idle().
43108 * include/grub/powerpc/time.h: Likewise.
43109 * include/grub/sparc64/time.h: Likewise.
43110
1593e10c 431112007-11-18 Christian Franke <franke@computer.org>
43112
43113 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
43114 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
43115 This fixes the problem that function keys did not work in grub-emu.
43116
3b8db1a8 431172007-11-18 Christian Franke <franke@computer.org>
43118
43119 * disk/host.c (grub_host_open): Remove attribute unused from
43120 name parameter. Add check for "host". This fixes the problem
43121 that grub-emu does not find partitions.
43122
2e29408d 431232007-11-18 Christian Franke <franke@computer.org>
43124
43125 * util/hostfs.c (is_dir): New function.
43126 (grub_hostfs_dir): Handle missing dirent.d_type case.
43127 (grub_hostfs_read): Add missing fseek().
43128 (grub_hostfs_label): Clear label pointer. This fixes a crash
43129 of grub-emu on "ls (host)".
43130
398cd047 431312007-11-18 Christian Franke <franke@computer.org>
43132
43133 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
43134 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
43135 to 64 bit boundary by default.
43136
c405c391 431372007-11-18 Bean <bean123ch@gmail.com>
43138
43139 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
43140 (hexdump_mod_SOURCES): New variable.
43141 (hexdump_mod_CFLAGS): Likewise.
43142 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 43143
c405c391 43144 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43145
43146 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43147
43148 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43149
43150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43151
43152 * include/grub/hexdump.h: New file.
43153
43154 * commands/hexdump.c: New file.
43155
5cced7fd 431562007-11-10 Robert Millan <rmh@aybabtu.com>
43157
43158 * commands/i386/pc/play.c (beep_off): Switch order of arguments
43159 in grub_outb() calls.
43160 (beep_on): Likewise.
43161
8b714eb0 431622007-11-10 Christian Franke <franke@computer.org>
43163
43164 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
43165 (grub_menu_run): Likewise.
43166
ce0f1839 431672007-11-10 Robert Millan <rmh@aybabtu.com>
43168
43169 * include/grub/i386/efi/machine.h: New file.
43170 * include/grub/i386/linuxbios/machine.h: Likewise.
43171 * include/grub/i386/pc/machine.h: Likewise.
43172 * include/grub/powerpc/ieee1275/machine.h: Likewise.
43173 * include/grub/sparc64/ieee1275/machine.h: Likewise.
43174
43175 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
43176 (serial_hw_io_addr): New variable.
43177 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
43178 instead of `(unsigned short *) 0x400'.
43179
270c237d 431802007-11-10 Bean <bean123ch@gmail.com>
43181
43182 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
43183
a87783bf 431842007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43185
43186 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
43187 (vga_mod_SOURCES): Added.
43188 (vga_mod_CFLAGS): Likewise.
43189 (vga_mod_LDFLAGS): Likewise.
43190
43191 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
43192 grub_outb() calls.
43193 (set_map_mask): Likewise.
43194 (set_read_map): Likewise.
43195 (set_read_address): Likewise.
43196 (vga_font): Removed variable.
43197 (get_vga_glyph): Removed function.
43198 (invalidate_char): Likewise.
43199 (write_char): Changed to use grub_font_get_glyph() for font
43200 information.
43201 (grub_vga_putchar): Likewise.
43202 (grub_vga_getcharwidth): Likewise.
43203
6433b448 432042007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43205
43206 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
43207 flags.
43208 (pxeboot_img_LDFLAGS): Likewise.
43209 (diskboot_img_LDFLAGS): Likewise.
43210 (kernel_img_LDFLAGS): Likewise.
43211
49178511 432122007-11-06 Robert Millan <rmh@aybabtu.com>
43213
43214 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
43215 in grub_outb() calls.
43216 (serial_hw_init): Likewise.
43217
53b052de 432182007-11-05 Robert Millan <rmh@aybabtu.com>
43219
43220 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
43221 spaces. Skip non-regular files.
43222
5ab33bba 432232007-11-05 Robert Millan <rmh@aybabtu.com>
43224
43225 * kern/disk.c (grub_disk_firmware_fini)
43226 (grub_disk_firmware_is_tainted): New variables.
43227
43228 * include/grub/disk.h (grub_disk_firmware_fini)
43229 (grub_disk_firmware_is_tainted): Likewise.
43230
43231 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
43232 (grub_disk_biosdisk_fini): ... to here.
43233 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
43234 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
43235 is set. Register grub_disk_biosdisk_fini() in
43236 `grub_disk_firmware_fini'.
43237
43238 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
43239 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
43240 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
43241 to finish existing firmware disk interface.
43242
43243 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
43244 (ata_mod_SOURCES): New variable.
43245 (ata_mod_CFLAGS): Likewise.
43246 (ata_mod_LDFLAGS): Likewise.
43247
0149ab7c 432482007-11-05 Robert Millan <rmh@aybabtu.com>
43249
43250 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
43251 (grub_ata_wait): Reimplement using grub_millisleep().
43252
43253 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
43254 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
43255
be7ac41e 432562007-11-03 Marco Gerards <marco@gnu.org>
43257
43258 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
43259 (CRTC_ADDR_PORT): New macro.
43260 (CRTC_DATA_PORT): Likewise.
43261 (CRTC_CURSOR): Likewise.
43262 (CRTC_CURSOR_ADDR_HIGH): Likewise.
43263 (CRTC_CURSOR_ADDR_LOW): Likewise.
43264 (update_cursor): New function.
43265 (grub_console_real_putchar): Call `update_cursor'.
43266 (grub_console_gotoxy): Likewise.
43267 (grub_console_cls): Set the default color when clearing the
43268 screen.
43269 (grub_console_setcursor): Implemented.
43270
bb06ab2e 432712007-11-03 Marco Gerards <marco@gnu.org>
43272
43273 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
43274 become activate.
43275 (grub_ata_pio_write): Likewise.
43276
43277 (grub_atapi_identify): Wait after issuing an ATA command.
43278 (grub_atapi_packet): Likewise.
43279 (grub_ata_identify): Likewise.
43280 (grub_ata_readwrite): Likewise.
43281
cf8f780b 432822007-11-03 Marco Gerards <marco@gnu.org>
43283
43284 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
43285 (grub_ata_pio_write): Likewise.
43286 (grub_ata_readwrite): Use `grub_error', instead of
43287 returning `grub_errno'.
43288
ed649e54 432892007-11-03 Marco Gerards <marco@gnu.org>
43290
43291 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
43292 grub_ata_pio_write once for every single sector, instead of for
43293 multiple sectors.
43294
ca25d8f0 432952007-10-31 Robert Millan <rmh@aybabtu.com>
43296
43297 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
43298
43299 * conf/i386-linuxbios.rmk: New file.
43300
43301 * kern/i386/pc/hardware.c: Likewise.
43302 * term/i386/pc/at_keyboard.c: Likewise.
43303 * term/i386/pc/vga_text.c: Likewise.
43304
43305 * include/grub/i386/linuxbios/boot.h: Likewise.
43306 * include/grub/i386/linuxbios/console.h: Likewise.
43307 * include/grub/i386/linuxbios/init.h: Likewise.
43308 * include/grub/i386/linuxbios/kernel.h: Likewise.
43309 * include/grub/i386/linuxbios/loader.h: Likewise.
43310 * include/grub/i386/linuxbios/memory.h: Likewise.
43311 * include/grub/i386/linuxbios/serial.h: Likewise.
43312 * include/grub/i386/linuxbios/time.h: Likewise.
43313
43314 * kern/i386/linuxbios/init.c: Likewise.
43315 * kern/i386/linuxbios/startup.S: Likewise.
43316 * kern/i386/linuxbios/table.c: Likewise.
43317
e911ecc1 433182007-10-31 Marco Gerards <marco@gnu.org>
43319
43320 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
43321 (ata_mod_SOURCES): New variable.
43322 (ata_mod_CFLAGS): Likewise.
43323 (ata_mod_LDFLAGS): Likewise.
43324
43325 * disk/ata.c: New file.
43326
43327 * include/grub/disk.h (grub_disk_dev_id): Add
43328 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 43329
7f66d0e0 433302007-10-31 Robert Millan <rmh@aybabtu.com>
43331
43332 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
43333 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
43334
43335 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
43336 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
43337
43338 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
43339 `<grub/types.h>'.
43340
43341 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
43342
5cd7dd46 433432007-10-27 Robert Millan <rmh@aybabtu.com>
43344
3236ca65 43345 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 43346
2ebfc90f 433472007-10-22 Robert Millan <rmh@aybabtu.com>
43348
43349 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
43350 `"../realmode.S"'.
43351 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
43352
73fcb0f3 433532007-10-22 Robert Millan <rmh@aybabtu.com>
43354
43355 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
43356 (pkgdata_MODULES): Add `biosdisk.mod'.
43357 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
43358 variables.
43359
43360 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
43361 (grub_biosdisk_init): Replace with ...
43362 (GRUB_MOD_INIT(biosdisk)): ... this.
43363 (grub_biosdisk_fini): Replace with ...
43364 (GRUB_MOD_FINI(biosdisk)): ... this.
43365
43366 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
43367 (grub_machine_init): Remove call to grub_biosdisk_init().
43368 (grub_machine_fini): Remove call to grub_machine_fini().
43369
43370 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
43371
3381d274 433722007-10-22 Robert Millan <rmh@aybabtu.com>
43373
43374 * include/grub/time.h: New file.
43375 * include/grub/i386/time.h: Likewise.
43376 * include/grub/powerpc/time.h: Likewise.
43377 * include/grub/sparc64/time.h: Likewise.
43378
43379 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
43380 instances to ...
43381 (KERNEL_MACHINE_TIME_HEADER): ... this.
43382 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
43383 instances to ...
43384 (KERNEL_MACHINE_TIME_HEADER): ... this.
43385 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
43386 instances to ...
43387 (KERNEL_MACHINE_TIME_HEADER): ... this.
43388
43389 * kern/i386/efi/init.c: Include `<grub/time.h>'.
43390 (grub_millisleep): New function.
43391 * kern/i386/pc/init.c: Include `<grub/time.h>'.
43392 (grub_millisleep): New function.
43393 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
43394 Remove `grub/machine/time.h' include.
43395 (grub_millisleep): New function.
43396 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
43397 Remove `grub/machine/time.h' include.
43398 (grub_millisleep): New function.
43399
43400 * include/grub/misc.h (grub_div_roundup): New function.
43401
43402 * kern/misc.c: Include `<grub/time.h>'.
43403 (grub_millisleep_generic): New function.
43404
43405 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
43406 Add `time.h'.
43407 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
43408 Add `time.h'.
43409 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
43410 `machine/time.h'. Add `time.h'.
43411 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43412
a39a0312 434132007-10-21 Robert Millan <rmh@aybabtu.com>
43414
43415 * include/grub/misc.h (grub_max): New function.
43416
2aad70e2 434172007-10-21 Robert Millan <rmh@aybabtu.com>
43418
43419 * util/misc.c (grub_util_info): Call fflush() before returning.
43420
54b71c4b 434212007-10-20 Robert Millan <rmh@aybabtu.com>
43422
43423 * genmk.rb (Image): Copy `extra_flags' from here ...
43424 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
43425
43426 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
43427 to `argc' and `args' arguments.
43428
a979f513 434292007-10-17 Robert Millan <rmh@aybabtu.com>
43430
43431 * kern/i386/loader.S: New file.
43432
43433 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
43434 * kern/i386/loader.S (grub_linux_prot_size)... to here.
43435 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
43436 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
43437 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
43438 * kern/i386/loader.S (grub_linux_real_addr)... to here.
43439 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
43440 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
43441 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
43442 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
43443 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
43444 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
43445 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
43446 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
43447
43448 * kern/i386/realmode.S: New file.
43449
43450 * kern/i386/pc/startup.S (protstack): Moved from here ...
43451 * kern/i386/realmode.S (protstack)... to here.
43452 * kern/i386/pc/startup.S (gdt): Moved from here ...
43453 * kern/i386/realmode.S (gdt)... to here.
43454 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
43455 * kern/i386/realmode.S (prot_to_real)... to here.
43456
43457 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
43458 `kern/i386/realmode.S'.
43459
825fc8fd 434602007-10-17 Robert Millan <rmh@aybabtu.com>
43461
43462 * include/grub/i386/loader.h: New file.
43463
43464 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
43465 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
43466 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
43467 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
43468 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
43469 * include/grub/i386/loader.h (grub_linux_prot_size)
43470 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
43471 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
43472 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
43473 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
43474
43475 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
43476
e179b2f4 434772007-10-15 Robert Millan <rmh@aybabtu.com>
43478
43479 * normal/misc.c (grub_normal_print_device_info): Do not probe for
43480 filesystem when dev->disk is unset.
43481 Do probe for filesystem even when dev->disk->has_partitions is set.
43482 In case a filesystem is found, always report it.
43483 In case it isn't, if dev->disk->has_partitions is set, report that
43484 a partition table was found instead of reporting that no filesystem
43485 could be identified.
43486
5db82af6 434872007-10-12 Robert Millan <rmh@aybabtu.com>
43488
43489 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
43490 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
43491
68f6ac74 43492 * include/grub/types.h (grub_host_to_target16): New macro.
43493 (grub_host_to_target32): Likewise.
43494 (grub_host_to_target64): Likewise.
43495 (grub_target_to_host16): Likewise.
43496 (grub_target_to_host32): Likewise.
43497 (grub_target_to_host64): Likewise.
5db82af6 43498
43499 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
43500 Renamed from to ...
43501 (GRUB_MOD_ALIGN): ...this. Update all users.
43502
68f6ac74 43503 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
43504 grub_host_to_target32.
43505 Replace grub_be_to_cpu32 with grub_target_to_host32.
43506 (load_modules): Likewise.
43507 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
43508 Replace grub_be_to_cpu32 with grub_target_to_host32.
43509 Replace grub_cpu_to_be16 with grub_host_to_target16.
43510 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 43511
3cf497cc 435122007-10-12 Robert Millan <rmh@aybabtu.com>
43513
43514 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
43515 * util/elf/grub-mkimage.c: ... here.
43516
43517 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
43518 `util/powerpc/ieee1275/grub-mkimage.c'.
43519
c8cc3692 435202007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 43521
c8cc3692 43522 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
43523 and make it easier to figure out.
43524 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
43525 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
43526 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
43527 leave us with less than HEAP_MIN_SIZE total heap.
43528 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 43529
5c58b791 435302007-10-03 Robert Millan <rmh@aybabtu.com>
43531
43532 * include/grub/i386/io.h: New file.
43533 * commands/i386/pc/play.c (inb): Removed.
43534 (outb): Removed.
43535 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
43536 with grub_outb().
afcd2ef8 43537 * term/i386/pc/serial.c (inb): Removed.
43538 (outb): Removed.
43539 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
43540 with grub_outb().
43541 * term/i386/pc/vga.c (inb): Removed.
43542 (outb): Removed.
43543 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
43544 with grub_outb().
5c58b791 43545
1a477ed6 435462007-10-02 Robert Millan <rmh@aybabtu.com>
43547
43548 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
43549 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43550 Reported by Marcin Kurek.
43551
6b5d80fa 435522007-09-07 Robert Millan <rmh@aybabtu.com>
43553
43554 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
43555 SmartFirmware version updates (as released by Sven Luther), and avoid
43556 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
43557 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
43558 known broken.
43559
5618afbf 435602007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43561
43562 From Hitoshi Ozeki:
43563 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
43564 when merging two regions.
43565
6139dcd9 435662007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
43567
508e39ee 43568 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
43569 * normal/completion.c (grub_normal_do_completion): Likewise.
43570 Reported by Hitoshi Ozeki.
43571
435722007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43573
6139dcd9 43574 Do not use devices at boot in chainloading.
f19dbdb7 43575
6139dcd9 43576 * loader/i386/pc/chainloader.c (boot_drive): New variable.
43577 (boot_part_addr): Likewise.
43578 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
43579 with BOOT_DRIVE and BOOT_PART_ADDR.
43580 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
43581 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
43582
38da6516 435832007-08-29 Robert Millan <rmh@aybabtu.com>
43584
43585 Patch from Simon Peter <dn.tlp@gmx.net>:
43586 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
43587 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
43588 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
43589 util/i386/pc/grub-setup.c_DEPENDENCIES.
43590 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
43591 util/grub-probe.c_DEPENDENCIES.
43592 * conf/powerpc-ieee1275.rmk: Likewise.
43593
29d0928c 435942007-08-28 Robert Millan <rmh@aybabtu.com>
43595
43596 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
43597 to tell grub-mkdevicemap how to name devices.
43598 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
43599 feature).
43600
43601 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
43602 util/i386/get_disk_name.c.
43603 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
43604 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
43605 util/ieee1275/get_disk_name.c.
43606
43607 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
43608
43609 * DISTLIST: Add util/i386/get_disk_name.c and
43610 util/ieee1275/get_disk_name.c.
43611
43612 * util/grub-mkdevicemap.c: Replace device naming logic with
43613 grub_util_get_disk_name() calls.
43614
5a0d3cca 436152007-08-20 Robert Millan <rmh@aybabtu.com>
43616
43617 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
43618 (so that it works for both plural and singular quantities).
43619
8b72db2f 436202007-08-05 Robert Millan <rmh@aybabtu.com>
43621
43622 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
43623 so that [xz] isn't taken into account when determining order.
43624
352466bf 436252007-08-02 Marco Gerards <marco@gnu.org>
43626
43627 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
43628 `include/multiboot2.h', `include/grub/elfload.h',
43629 `include/multiboot.h', `include/grub/multiboot.h',
43630 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
43631 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
43632 `kern/elf.c', `loader/multiboot_loader.c',
43633 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
43634 `loader/i386/pc/multiboot2.c',
43635 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
43636 `util/i386/pc/grub-mkrescue.in'. Remove
43637 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
43638 `include/grub/i386/pc/util/biosdisk.h' and
43639 `include/grub/powerpc/ieee1275/multiboot.h'.
43640
8f096014 436412007-08-02 Bean <bean123ch@gmail.com>
43642
43643 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
43644 (ntfs_mod_SOURCES): New variable.
43645 (ntfs_mod_CFLAGS): Likewise.
43646 (ntfs_mod_LDFLAGS): Likewise.
43647
43648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
43649 (grub_probe_SOURCES): Likewise.
43650 (grub_emu_SOURCES): Likewise.
43651
43652 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
43653 (grub_emu_SOURCES): Likewise.
43654
43655 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
43656 (grub_emu_SOURCES): Likewise.
f19dbdb7 43657
8f096014 43658 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
43659
43660 * fs/ntfs.c: New file.
43661
9959f7db 436622007-08-02 Bean <bean123ch@gmail.com>
43663
43664 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
43665
43666 * file.h (grub_file): Likewise.
43667
43668 * fshelp.h (grub_fshelp_read_file): Likewise.
43669
43670 * util/i386/pc/grub-setup.c (setup): Likewise.
43671 (save_first_sector): Likewise.
43672 (save_blocklists): Likewise.
f19dbdb7 43673
9959f7db 43674 * fs/affs.c (grub_affs_read_file): Likewise.
43675
43676 * fs/ext2.c (grub_ext2_read_file): Likewise.
43677
43678 * fs/fat.c (grub_fat_read_data): Likewise.
43679
43680 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
43681
43682 * fs/hfs.c (grub_hfs_read_file): Likewise.
43683
43684 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
43685
43686 * fs/jfs.c (grub_jfs_read_file): Likewise.
43687
43688 * fs/minix.c (grub_minix_read_file): Likewise.
43689
43690 * fs/sfs.c (grub_sfs_read_file): Likewise.
43691
43692 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 43693
9959f7db 43694 * fs/xfs.c (grub_xfs_read_file): Likewise.
43695
43696 * command/blocklist.c (read_blocklist): Likewise.
43697 (print_blocklist): Likewise.
43698
0a203f83 436992007-08-02 Marco Gerards <marco@gnu.org>
43700
43701 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
43702 `util/hostfs.c'.
43703
43704 * disk/host.c: New file.
43705
43706 * util/hostfs.c: Likewise.
43707
43708 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
43709 return `GRUB_ERR_BAD_FS'.
43710 * fs/sfs.c (grub_sfs_mount): Likewise.
43711 * fs/xfs.c (grub_xfs_mount): Likewise.
43712
43713 * include/grub/disk.h (enum grub_disk_dev_id): Add
43714 `GRUB_DISK_DEVICE_HOST_ID'.
43715
43716 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
43717
e5dfe777 437182007-07-24 Jerone Young <jerone@gmail.com>
43719
f19dbdb7 43720 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 43721 modules for compilation.
43722 * conf/powerpc-ieee1275.rmk: Likewise.
43723
43724 * include/multiboot.h: Move multiboot definitions to one file. Rename
43725 many definitions to not get grub specific.
43726 * include/multiboot2.h: Create header with multiboot 2 definitions.
43727 * include/grub/multiboot.h: Header for grub specific function
43728 prototypes and definitions.
43729 * include/grub/multiboot2.h: Likewise.
43730 * include/grub/multiboot_loader.h: Likewise.
43731 * include/grub/i386/pc/multiboot.h: Removed.
43732 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
43733
43734 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
43735 and 2 to allow for one multiboot and module commands.
43736 * loader/multiboot2.c: Add multiboot2 functionality.
43737 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
43738 and definition names.
43739 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
43740 2 functions.
43741 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
43742 ieee1275 specific multiboot2 code.
43743
43744 * kern/i386/pc/startup.S: Change headers and definition names for
43745 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
43746
daf0f0ba 437472007-07-22 Robert Millan <rmh@aybabtu.com>
43748
43749 * geninitheader.sh: Process file specified in first parameter rather
43750 than hardcoding grub_modules_init.lst.
fe6b695a 43751 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 43752 than hardcoding grub_modules_init.h.
43753
43754 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
43755 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
43756 grub_probe_init.[ch] and grub_setup_init.[ch].
43757
43758 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
43759 grub_modules_init.h with grub_emu_init.h.
43760 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
43761 grub_probe_init.[ch] files.
43762 * conf/i386-efi.rmk: Likewise.
43763 * conf/i386-pc.rmk: Likewise.
43764 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
43765 grub_setup_init.[ch] files.
43766
43767 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
43768 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
43769 to initialize modules rather than a list of hardcoded functions.
43770 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
43771 grub_init_all() to initialize modules rather than a list of hardcoded
43772 functions.
43773
54cdc1cc 437742007-07-22 Robert Millan <rmh@aybabtu.com>
43775
43776 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
43777 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
43778
ad0686cc 437792007-07-22 Robert Millan <rmh@aybabtu.com>
43780
43781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
43782 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
43783 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
43784 flag when running on SmartFirmware.
43785 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
43786 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
43787 was set.
43788
43789 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
43790 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
43791 rather than decreasing it.
43792
43793 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
43794 there's not enough space to do it, fail in the same way as when it
43795 can't be done because there are no partitions.
43796
43797 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
43798 when nvsetenv failed.
43799
969c02ec 438002007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
43801
43802 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
43803 because this rule is automatically generated.
43804 (grub-mkrescue): Removed for the same reason as above.
43805
5a79f472 438062007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
43807
43808 Migrate to GNU General Public License Version 3.
f19dbdb7 43809
5a79f472 43810 * COPYING: Replaced with the plain text version of GPLv3.
43811
43812 * config.guess: Updated from gnulib.
43813 * config.sub: Likewise.
43814
43815 * geninit.sh: Output a GPLv3 copyright notice.
43816 * geninitheader.sh: Likewise.
43817 * genmodsrc.sh: Likewise.
43818 * gensymlist.sh.in: Likewise.
43819
43820 * boot/i386/pc/boot.S: Upgraded to GPLv3.
43821 * boot/i386/pc/diskboot.S: Likewise.
43822 * boot/i386/pc/pxeboot.S: Likewise.
43823 * commands/blocklist.c: Likewise.
43824 * commands/boot.c: Likewise.
43825 * commands/cat.c: Likewise.
43826 * commands/cmp.c: Likewise.
43827 * commands/configfile.c: Likewise.
43828 * commands/echo.c: Likewise.
43829 * commands/help.c: Likewise.
43830 * commands/ls.c: Likewise.
43831 * commands/search.c: Likewise.
43832 * commands/terminal.c: Likewise.
43833 * commands/test.c: Likewise.
43834 * commands/videotest.c: Likewise.
43835 * commands/i386/cpuid.c: Likewise.
43836 * commands/i386/pc/halt.c: Likewise.
43837 * commands/i386/pc/play.c: Likewise.
43838 * commands/i386/pc/reboot.c: Likewise.
43839 * commands/i386/pc/vbeinfo.c: Likewise.
43840 * commands/i386/pc/vbetest.c: Likewise.
43841 * commands/ieee1275/halt.c: Likewise.
43842 * commands/ieee1275/reboot.c: Likewise.
43843 * commands/ieee1275/suspend.c: Likewise.
43844 * disk/loopback.c: Likewise.
43845 * disk/lvm.c: Likewise.
43846 * disk/raid.c: Likewise.
43847 * disk/efi/efidisk.c: Likewise.
43848 * disk/i386/pc/biosdisk.c: Likewise.
43849 * disk/ieee1275/ofdisk.c: Likewise.
43850 * font/manager.c: Likewise.
43851 * fs/affs.c: Likewise.
43852 * fs/ext2.c: Likewise.
43853 * fs/fat.c: Likewise.
43854 * fs/fshelp.c: Likewise.
43855 * fs/hfs.c: Likewise.
43856 * fs/hfsplus.c: Likewise.
43857 * fs/iso9660.c: Likewise.
43858 * fs/jfs.c: Likewise.
43859 * fs/minix.c: Likewise.
43860 * fs/sfs.c: Likewise.
43861 * fs/ufs.c: Likewise.
43862 * fs/xfs.c: Likewise.
43863 * hello/hello.c: Likewise.
43864 * include/grub/acorn_filecore.h: Likewise.
43865 * include/grub/arg.h: Likewise.
43866 * include/grub/bitmap.h: Likewise.
43867 * include/grub/boot.h: Likewise.
43868 * include/grub/cache.h: Likewise.
43869 * include/grub/device.h: Likewise.
43870 * include/grub/disk.h: Likewise.
43871 * include/grub/dl.h: Likewise.
43872 * include/grub/elfload.h: Likewise.
43873 * include/grub/env.h: Likewise.
43874 * include/grub/err.h: Likewise.
43875 * include/grub/file.h: Likewise.
43876 * include/grub/font.h: Likewise.
43877 * include/grub/fs.h: Likewise.
43878 * include/grub/fshelp.h: Likewise.
43879 * include/grub/gzio.h: Likewise.
43880 * include/grub/hfs.h: Likewise.
43881 * include/grub/kernel.h: Likewise.
43882 * include/grub/loader.h: Likewise.
43883 * include/grub/lvm.h: Likewise.
43884 * include/grub/misc.h: Likewise.
43885 * include/grub/mm.h: Likewise.
43886 * include/grub/net.h: Likewise.
43887 * include/grub/normal.h: Likewise.
43888 * include/grub/parser.h: Likewise.
43889 * include/grub/partition.h: Likewise.
43890 * include/grub/pc_partition.h: Likewise.
43891 * include/grub/raid.h: Likewise.
43892 * include/grub/rescue.h: Likewise.
43893 * include/grub/script.h: Likewise.
43894 * include/grub/setjmp.h: Likewise.
43895 * include/grub/symbol.h: Likewise.
43896 * include/grub/term.h: Likewise.
43897 * include/grub/terminfo.h: Likewise.
43898 * include/grub/tparm.h: Likewise.
43899 * include/grub/types.h: Likewise.
43900 * include/grub/video.h: Likewise.
43901 * include/grub/efi/api.h: Likewise.
43902 * include/grub/efi/chainloader.h: Likewise.
43903 * include/grub/efi/console.h: Likewise.
43904 * include/grub/efi/console_control.h: Likewise.
43905 * include/grub/efi/disk.h: Likewise.
43906 * include/grub/efi/efi.h: Likewise.
43907 * include/grub/efi/pe32.h: Likewise.
43908 * include/grub/efi/time.h: Likewise.
43909 * include/grub/i386/linux.h: Likewise.
43910 * include/grub/i386/setjmp.h: Likewise.
43911 * include/grub/i386/types.h: Likewise.
43912 * include/grub/i386/efi/kernel.h: Likewise.
43913 * include/grub/i386/efi/loader.h: Likewise.
43914 * include/grub/i386/efi/time.h: Likewise.
43915 * include/grub/i386/pc/biosdisk.h: Likewise.
43916 * include/grub/i386/pc/boot.h: Likewise.
43917 * include/grub/i386/pc/chainloader.h: Likewise.
43918 * include/grub/i386/pc/console.h: Likewise.
43919 * include/grub/i386/pc/init.h: Likewise.
43920 * include/grub/i386/pc/kernel.h: Likewise.
43921 * include/grub/i386/pc/loader.h: Likewise.
43922 * include/grub/i386/pc/memory.h: Likewise.
43923 * include/grub/i386/pc/multiboot.h: Likewise.
43924 * include/grub/i386/pc/serial.h: Likewise.
43925 * include/grub/i386/pc/time.h: Likewise.
43926 * include/grub/i386/pc/vbe.h: Likewise.
43927 * include/grub/i386/pc/vbeblit.h: Likewise.
43928 * include/grub/i386/pc/vbefill.h: Likewise.
43929 * include/grub/i386/pc/vbeutil.h: Likewise.
43930 * include/grub/i386/pc/vga.h: Likewise.
43931 * include/grub/ieee1275/ieee1275.h: Likewise.
43932 * include/grub/ieee1275/ofdisk.h: Likewise.
43933 * include/grub/powerpc/libgcc.h: Likewise.
43934 * include/grub/powerpc/setjmp.h: Likewise.
43935 * include/grub/powerpc/types.h: Likewise.
43936 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
43937 * include/grub/powerpc/ieee1275/console.h: Likewise.
43938 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
43939 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
43940 * include/grub/powerpc/ieee1275/loader.h: Likewise.
43941 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
43942 * include/grub/powerpc/ieee1275/time.h: Likewise.
43943 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
43944 * include/grub/sparc64/libgcc.h: Likewise.
43945 * include/grub/sparc64/setjmp.h: Likewise.
43946 * include/grub/sparc64/types.h: Likewise.
43947 * include/grub/sparc64/ieee1275/console.h: Likewise.
43948 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
43949 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
43950 * include/grub/sparc64/ieee1275/time.h: Likewise.
43951 * include/grub/util/biosdisk.h: Likewise.
43952 * include/grub/util/getroot.h: Likewise.
43953 * include/grub/util/lvm.h: Likewise.
43954 * include/grub/util/misc.h: Likewise.
43955 * include/grub/util/raid.h: Likewise.
43956 * include/grub/util/resolve.h: Likewise.
43957 * io/gzio.c: Likewise.
43958 * kern/device.c: Likewise.
43959 * kern/disk.c: Likewise.
43960 * kern/dl.c: Likewise.
43961 * kern/elf.c: Likewise.
43962 * kern/env.c: Likewise.
43963 * kern/err.c: Likewise.
43964 * kern/file.c: Likewise.
43965 * kern/fs.c: Likewise.
43966 * kern/loader.c: Likewise.
43967 * kern/main.c: Likewise.
43968 * kern/misc.c: Likewise.
43969 * kern/mm.c: Likewise.
43970 * kern/parser.c: Likewise.
43971 * kern/partition.c: Likewise.
43972 * kern/rescue.c: Likewise.
43973 * kern/term.c: Likewise.
43974 * kern/efi/efi.c: Likewise.
43975 * kern/efi/init.c: Likewise.
43976 * kern/efi/mm.c: Likewise.
43977 * kern/i386/dl.c: Likewise.
43978 * kern/i386/efi/init.c: Likewise.
43979 * kern/i386/efi/startup.S: Likewise.
43980 * kern/i386/pc/init.c: Likewise.
43981 * kern/i386/pc/lzo1x.S: Likewise.
43982 * kern/i386/pc/startup.S: Likewise.
43983 * kern/ieee1275/ieee1275.c: Likewise.
43984 * kern/powerpc/cache.S: Likewise.
43985 * kern/powerpc/dl.c: Likewise.
43986 * kern/powerpc/ieee1275/cmain.c: Likewise.
43987 * kern/powerpc/ieee1275/crt0.S: Likewise.
43988 * kern/powerpc/ieee1275/init.c: Likewise.
43989 * kern/powerpc/ieee1275/openfw.c: Likewise.
43990 * kern/sparc64/cache.S: Likewise.
43991 * kern/sparc64/dl.c: Likewise.
43992 * kern/sparc64/ieee1275/init.c: Likewise.
43993 * kern/sparc64/ieee1275/openfw.c: Likewise.
43994 * loader/efi/chainloader.c: Likewise.
43995 * loader/efi/chainloader_normal.c: Likewise.
43996 * loader/i386/efi/linux.c: Likewise.
43997 * loader/i386/efi/linux_normal.c: Likewise.
43998 * loader/i386/pc/chainloader.c: Likewise.
43999 * loader/i386/pc/chainloader_normal.c: Likewise.
44000 * loader/i386/pc/linux.c: Likewise.
44001 * loader/i386/pc/linux_normal.c: Likewise.
44002 * loader/i386/pc/multiboot.c: Likewise.
44003 * loader/i386/pc/multiboot_normal.c: Likewise.
44004 * loader/powerpc/ieee1275/linux.c: Likewise.
44005 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
44006 * normal/arg.c: Likewise.
44007 * normal/cmdline.c: Likewise.
44008 * normal/command.c: Likewise.
44009 * normal/completion.c: Likewise.
44010 * normal/execute.c: Likewise.
44011 * normal/function.c: Likewise.
44012 * normal/lexer.c: Likewise.
44013 * normal/main.c: Likewise.
44014 * normal/menu.c: Likewise.
44015 * normal/menu_entry.c: Likewise.
44016 * normal/misc.c: Likewise.
44017 * normal/parser.y: Likewise.
44018 * normal/script.c: Likewise.
44019 * normal/i386/setjmp.S: Likewise.
44020 * normal/powerpc/setjmp.S: Likewise.
44021 * normal/sparc64/setjmp.S: Likewise.
44022 * partmap/acorn.c: Likewise.
44023 * partmap/amiga.c: Likewise.
44024 * partmap/apple.c: Likewise.
44025 * partmap/gpt.c: Likewise.
44026 * partmap/pc.c: Likewise.
44027 * partmap/sun.c: Likewise.
44028 * term/gfxterm.c: Likewise.
44029 * term/terminfo.c: Likewise.
44030 * term/efi/console.c: Likewise.
44031 * term/i386/pc/console.c: Likewise.
44032 * term/i386/pc/serial.c: Likewise.
44033 * term/i386/pc/vesafb.c: Likewise.
44034 * term/i386/pc/vga.c: Likewise.
44035 * term/ieee1275/ofconsole.c: Likewise.
44036 * util/biosdisk.c: Likewise.
44037 * util/console.c: Likewise.
44038 * util/genmoddep.c: Likewise.
44039 * util/getroot.c: Likewise.
44040 * util/grub-emu.c: Likewise.
44041 * util/grub-mkdevicemap.c: Likewise.
44042 * util/grub-probe.c: Likewise.
44043 * util/lvm.c: Likewise.
44044 * util/misc.c: Likewise.
44045 * util/raid.c: Likewise.
44046 * util/resolve.c: Likewise.
44047 * util/update-grub.in: Likewise.
44048 * util/update-grub_lib.in: Likewise.
44049 * util/grub.d/00_header.in: Likewise.
44050 * util/grub.d/10_hurd.in: Likewise.
44051 * util/grub.d/10_linux.in: Likewise.
44052 * util/i386/efi/grub-install.in: Likewise.
44053 * util/i386/efi/grub-mkimage.c: Likewise.
44054 * util/i386/pc/grub-install.in: Likewise.
44055 * util/i386/pc/grub-mkimage.c: Likewise.
44056 * util/i386/pc/grub-mkrescue.in: Likewise.
44057 * util/i386/pc/grub-setup.c: Likewise.
44058 * util/i386/pc/misc.c: Likewise.
44059 * util/powerpc/ieee1275/grub-install.in: Likewise.
44060 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
44061 * util/powerpc/ieee1275/misc.c: Likewise.
44062 * video/bitmap.c: Likewise.
44063 * video/video.c: Likewise.
44064 * video/i386/pc/vbe.c: Likewise.
44065 * video/i386/pc/vbeblit.c: Likewise.
44066 * video/i386/pc/vbefill.c: Likewise.
44067 * video/i386/pc/vbeutil.c: Likewise.
44068 * video/readers/tga.c: Likewise.
44069
3572d015 440702007-07-02 Robert Millan <rmh@aybabtu.com>
44071
44072 * conf/i386-efi.rmk: Replace obsolete reference to
44073 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
44074 with util/getroot.c.
44075 * conf/powerpc-ieee1275.rmk: Likewise.
44076 * conf/sparc64-ieee1275.rmk: Likewise.
44077
44078 * util/grub-emu.c (main): Fix unchecked pointer handling.
44079
2c2a681b 440802007-07-02 Robert Millan <rmh@aybabtu.com>
44081
44082 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
44083 invocation to fail, in order to support partition-less media.
44084
44085 * util/i386/pc/grub-install.in: Likewise.
44086
44087 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
44088 which fs or partmap modules are needed (akin to its sister scripts).
44089
44090 Also use grub-probe to get rid of unportable /proc/mounts check.
44091
44092 Print the same informational message that the other scripts do, before
fe6b695a 44093 exiting.
2c2a681b 44094
6193defe 440952007-06-23 Robert Millan <rmh@aybabtu.com>
44096
fe6b695a 44097 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 44098 a font file can be found and, if so, echo the GRUB path to it.
44099
44100 * util/update-grub.in: Handle multiple terminals depending on user
44101 input, platform availability and font file presence. Propagate
44102 variables of our findings to /etc/grub.d/ children.
44103
44104 * util/grub.d/00_header.in: Handle multiple terminals, based on
44105 environment setup by update-grub.
44106
eface1dc 441072007-06-23 Robert Millan <rmh@aybabtu.com>
44108
ba50d28f 44109 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 44110
bf697e28 441112007-06-21 Robert Millan <rmh@aybabtu.com>
44112
44113 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
44114 indicate end of data section in kernel image.
44115 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
44116 GRUB_KERNEL_MACHINE_DATA_END.
44117
44118 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
44119 space for it.
44120 * kern/i386/efi/startup.S: Likewise.
44121
44122 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
44123 during image generation. Implement --prefix option to override this
44124 patch.
44125 * util/i386/efi/grub-mkimage.c: Likewise.
44126
44127 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
44128 code to make path relative to its root into a separate function.
44129
44130 * util/i386/pc/grub-install.in: Use newly provided
44131 make_system_path_relative_to_its_root() to convert ${grubdir}, then
44132 pass the result to grub-install --prefix.
44133
baa574b4 441342007-06-13 Robert Millan <rmh@aybabtu.com>
44135
44136 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
44137 DEFAULT_DEVICE_MAP.
44138 * util/grub-emu.c: Use above definitions from misc.h instead of
44139 defining them.
44140 * util/grub-mkdevicemap.c: Likewise.
44141 * util/i386/pc/grub-setup.c: Likewise.
44142 * util/grub-probe.c: Likewise.
44143 (probe): Abort with grub_util_error() when either
44144 grub_guess_root_device or grub_util_get_grub_dev fails.
44145
0215dcbf 441462007-06-12 Robert Millan <rmh@aybabtu.com>
44147
44148 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
44149 "pager" assignment.
44150 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
44151 "pcdata".
44152 * util/grub-probe.c (probe): Likewise for "drive_name".
44153
8af2ab7b 441542007-06-11 Robert Millan <rmh@aybabtu.com>
44155
44156 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
44157 not just the cdrom one.
44158
59d31694 441592007-06-11 Robert Millan <rmh@aybabtu.com>
44160
44161 * util/i386/pc/grub-mkrescue.in: Add "set -e".
44162 Add --pkglibdir=DIR option to override pkglibdir.
44163 Mention --image-type=TYPE in help output.
44164 Fix --grub-mkimage (it was a no-op).
fe6b695a 44165 Abort gracefully when no parameter is given.
59d31694 44166
7ee367e4 441672007-06-11 Robert Millan <rmh@aybabtu.com>
44168
44169 * util/i386/pc/grub-mkrescue.in: New file.
44170 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
44171 * Makefile.in: Handle bin_SCRIPTS.
44172
29b0ed46 441732007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
44174
44175 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
44176 list of video modes.
44177
c0f90770 441782007-06-06 Robert Millan <rmh@aybabtu.com>
44179
44180 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
44181 file doesn't exist, or if it is in a filesystem grub can't read.
44182
44183 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
44184 not abort if GRUB_DRIVE could not be defined. Rearrange generated
44185 header comment to fit in 80 columns when the variables are resolved.
44186
44187 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
44188 could be identified by update-grub. Remove redundant check for
fe6b695a 44189 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 44190 handles that).
44191
fb36dc26 441922007-06-04 Robert Millan <rmh@aybabtu.com>
44193
44194 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
44195
44196 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
44197
44198 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
44199
0c68c93e 442002007-06-04 Robert Millan <rmh@aybabtu.com>
44201
44202 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
44203
44204 * include/grub/partition.h: Declare grub_apple_partition_map_init and
44205 grub_apple_partition_map_fini.
44206
44207 * util/biosdisk.c
44208 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
44209 to access >2 TiB disks).
44210
44211 Print disk->total_sectors with %llu instead of %lu, since this
44212 variable is always 64-bit (prevents wrong disk size from being displayed
44213 on either >2 TiB disk or big-endian CPU).
44214
44215 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
44216 into a generic case that supports all (sane) partition maps.
44217
44218 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
44219 breaks big-endian.
44220
44221 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
44222 and grub_apple_partition_map_fini() after that.
44223
0f23eb74 442242007-06-01 Robert Millan <rmh@aybabtu.com>
44225
44226 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
44227
44228 * util/grub.d/00_header.in: Only enable gfxterm when
44229 convert_system_path_to_grub_path() succeeds.
44230
42c71976 442312007-05-20 Robert Millan <rmh@aybabtu.com>
44232
44233 * util/update-grub_lib.in: New file.
44234 * DISTLIST: Add update-grub_lib.in.
44235 * conf/common.rmk: Generate update-grub_lib and install it in
44236 $(lib_DATA).
44237 * Makefile.in: Add install routine for $(lib_DATA).
44238
44239 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
44240 function provided by update-grub_lib to support arbitrary paths of
44241 unifont.pff.
44242 * util/update-grub.in: Use convert_system_path_to_grub_path() to
44243 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
44244
5beb2291 442452007-05-19 Robert Millan <rmh@aybabtu.com>
44246
44247 * commands/i386/cpuid.c: New module.
44248 * DISTLIST: Add it.
44249 * conf/i386-efi.rmk: Enable cpuid.mod.
44250 * conf/i386-pc.rmk: Likewise.
44251
7262eca1 442522007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44253
44254 * kern/disk.c (grub_disk_read): Check return value of
44255 grub_realloc().
44256
260ba823 442572007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44258
44259 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
44260 arrays.
44261 * disk/raid.c (grub_raid_open): Likewise.
44262
1ecb6cf2 442632007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44264
44265 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
44266 stack instead of on the heap.
44267
44268 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
44269 before doing a read on it.
44270
44271 * configure.ac: Only use -fno-stack-protector for the target
44272 environment.
f19dbdb7 44273
21c8cbb1 442742007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44275
44276 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
44277 __attribute_ ((unused)) to mode_type argument.
44278
44279 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 44280
21c8cbb1 44281 * kern/misc.c (memcmp): Fix prototype.
44282
44283 * include/grub/partition.h [GRUB_UTIL]
44284 (grub_gpt_partition_map_init): Add prototype.
44285 (grub_gpt_partition_map_fini): Likewise.
44286
44287 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
44288 at the right place.
44289
44290 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
44291 (grub_fat_read_data): Likewise.
44292 (grub_fat_find_dir): Likewise.
44293
44294 * font/manager.c (find_glyph): Make table a const.
44295 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 44296
849d55d3 442972007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
44298
44299 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
44300 code, first search for device in /dev/mapper, then in /dev.
44301 (grub_util_get_grub_dev): New function.
44302 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
44303 prototype.
44304 * util/grub-probe.c (probe): Remove check for RAID, call
44305 grub_util_get_grub_dev() instead of
44306 grub_util_biosdisk_get_grub_dev().
44307 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
44308 grub_util_biosdisk_get_grub_dev().
44309 * util/i386/pc/grub-setup.c (main): Likewise.
44310
8fff7c2f 443112007-05-16 Robert Millan <rmh@aybabtu.com>
44312
44313 * DISTLIST: Update for the latest changes.
44314 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
44315 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
44316 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
44317 grub/util/biosdisk.h.
44318 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
44319 grub/util/biosdisk.h.
44320
48e12b52 443212007-05-16 Robert Millan <rmh@aybabtu.com>
44322
44323 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
44324
46b9d128 443252007-05-16 Robert Millan <rmh@aybabtu.com>
44326
44327 * util/i386/efi/grub-install.in: New.
44328 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
44329 newly added grub-install.
44330 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
44331 include.
44332 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
44333 grub/util/biosdisk.h.
44334 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
44335 grub/util/biosdisk.h.
44336
2d1a40a9 443372007-05-16 Robert Millan <rmh@aybabtu.com>
44338
44339 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
44340 * include/grub/util/biosdisk.h: ... here.
44341 * util/i386/pc/biosdisk.c: Moved to ...
44342 * util/biosdisk.c: ... here.
44343 * util/i386/pc/getroot.c: Moved to ...
44344 * util/getroot.c: ... here.
44345 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
44346 * util/grub-mkdevicemap.c: ... here.
44347 * util/i386/pc/grub-probe.c: Moved to ...
44348 * util/grub-probe.c: ... here.
44349
9e26e3bc 443502007-05-15 Robert Millan <rmh@aybabtu.com>
44351
44352 * util/update-grub.in: Remove duplicated line in grub.cfg header
44353 message.
44354
57f96397 443552007-05-13 Robert Millan <rmh@aybabtu.com>
44356
44357 * util/update-grub.in: Fix a few assumptions about the devices holding
44358 /, /boot and /boot/grub being the same.
44359 * util/grub.d/00_header.in: Likewise.
44360 * util/grub.d/10_hurd.in: Likewise.
44361 * util/grub.d/10_linux.in: Likewise.
44362
44363 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
44364 patterns. Use that to define the `.old' suffix as older than `'.
44365
44366 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
44367
44368 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
44369 the grub.cfg header message.
44370
2e610d62 443712007-05-11 Robert Millan <rmh@aybabtu.com>
44372
44373 * util/update-grub.in: Create device.map if it doesn't already exist,
44374 before attempting to run grub-probe.
44375 Check for grub-probe and grub-mkdevicemap with the same code
44376 grub-install is using.
44377 Remove test mode.
44378
3f6a10ef 443792007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
44380
44381 * Makefile.in: Add the datarootdir autoconf variable.
44382
02e7b75e 443832007-05-09 Robert Millan <rmh@aybabtu.com>
44384
44385 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 44386 fail gracefully if dev->disk->partition == NULL.
02e7b75e 44387
75f396cc 443882007-05-07 Robert Millan <rmh@aybabtu.com>
44389
44390 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
44391 determine partition map module.
44392 * util/i386/pc/grub-install.in: Use this feature to decide which
44393 partition module to load, instead of hardcoding pc and gpt.
44394
da65cb36 443952007-05-07 Robert Millan <rmh@aybabtu.com>
44396
44397 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
44398 source directory differs from build directory.
44399
b57d6a91 444002007-05-05 Robert Millan <rmh@aybabtu.com>
44401
44402 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
44403 initialisation.
44404
509d00f1 444052007-05-05 Robert Millan <rmh@aybabtu.com>
44406
44407 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
44408
c48f23ef 444092007-05-05 Robert Millan <rmh@aybabtu.com>
44410
44411 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
44412 command-line arguments via ${GRUB_CMDLINE_LINUX}.
44413
20b97658 444142007-05-05 Robert Millan <rmh@aybabtu.com>
44415
44416 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
44417 (grub_probe_SOURCES): Likewise.
44418 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
44419 GPT and initialize dos_part and bsd_part accordingly.
44420 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
44421 install_bsd_part.
44422 (main): Activate gpt module for use during partition identification,
44423 and deactivate it afterwards.
44424 * util/i386/pc/grub-install.in: Add gpt module to core.img.
44425 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
44426 partition identification, and deactivate it afterwards.
44427
99123174 444282007-05-05 Robert Millan <rmh@aybabtu.com>
44429
44430 * term/i386/pc/console.c (grub_console_fini): Call
44431 grub_term_set_current() before grub_term_unregister().
44432
ebd97f6e 444332007-05-04 Robert Millan <rmh@aybabtu.com>
44434
44435 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
44436 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
44437 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
44438 and update-grub_DATA.
44439 * conf/common.rmk: Build and install update-grub components.
44440 * conf/common.mk: Regenerate.
44441 * util/update-grub.in: New. Core of update-grub.
44442 * util/grub.d/00_header.in: New. Generates grub.cfg header.
44443 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
44444 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
44445 * util/grub.d/README: New. Document grub.d directory layout.
44446
b06a264d 444472007-05-01 Robert Millan <rmh@aybabtu.com>
44448
44449 * util/grub-emu.c: Move initialization functions
44450 grub_util_biosdisk_init() and grub_init_all() before
44451 grub_util_biosdisk_get_grub_dev(), which relies on them.
44452
41f0050e 444532007-04-19 Robert Millan <rmh@aybabtu.com>
44454
44455 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
44456 it is used later.
44457
04582bb3 444582007-04-18 Jerone Young <jerone@gmail.com>
44459
f19dbdb7 44460 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 44461 stanza.
44462
08db4632 444632007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 44464
08db4632 44465 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
44466 continue on and look for device node with real device name.
44467
801b76be 444682007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 44469
fe6b695a 44470 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 44471 ability.
44472 * Makefile.in: Add autoconf package transformation code.
44473 * util/i386/pc/grub-install.in: Likewise.
44474 * util/powerpc/ieee1275/grub-install.in: Likewise.
44475
6795c4e1 444762007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
44477
44478 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
44479 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
44480 (EXT2_REVISION): Likewise.
44481 (EXT2_INODE_SIZE): Likewise.
44482 (struct grub_ext2_block_group): Added a missing member
44483 "used_dirs".
44484 (grub_ext2_read_inode): Divide by the inode size in a superblock
44485 instead of 128 to obtain INODES_PER_BLOCK.
44486 Use the macro EXT2_INODE_SIZE instead of directly using
44487 SBLOCK->INODE_SIZE.
44488
d70af616 444892007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
44490
44491 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
44492 superblock instead of the structure size to compute an
44493 offset. This fixes the problem that GRUB could not read a
44494 filesystem when inode size is different from 128-byte.
44495
3b801603 444962007-03-05 Marco Gerards <marco@gnu.org>
44497
44498 * normal/main.c (read_config_file): When "menu" is not set, create
44499 an initial context.
44500
4785bfe4 445012007-02-21 Hollis Blanchard <hollis@penguinppc.org>
44502
44503 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
44504 (HEAP_LIMIT): New macro.
44505 (grub_claim_heap): Claim memory up to `heaplimit'.
44506
a0cbb023 445072007-02-21 Hollis Blanchard <hollis@penguinppc.org>
44508
44509 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
44510 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
44511 (_start): Likewise.
44512 (grub_arch_modules_addr): Return address after `_end'.
44513 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
44514 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
44515 (add_segments): Calculate `_end' from phdr size and location.
44516 (ALIGN_UP): Moved to ...
44517 * include/grub/misc.h: here.
44518 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
44519 New macro.
44520 (GRUB_IEEE1275_MODULE_BASE): Removed.
44521
fd7d8eba 445222007-02-20 Hollis Blanchard <hollis@penguinppc.org>
44523
44524 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
44525 loop boundary.
44526
9b09e6fc 445272007-02-20 Hollis Blanchard <hollis@penguinppc.org>
44528
44529 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
44530 All users updated.
44531 (grub_elf64_load_hook_t): Likewise.
44532 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
44533 debug output.
44534
3ce27299 445352007-02-20 Hollis Blanchard <hollis@penguinppc.org>
44536
44537 * kern/mm.c: Update copyright.
44538 (grub_mm_debug): Correct syntax error.
44539 (grub_mm_dump_free): New function.
44540 (grub_debug_free): Call `grub_free'.
44541 * include/grub/mm.h: Update copyright.
44542 (grub_mm_dump_free): Add declaration.
44543
077d5fee 445442007-02-12 Hollis Blanchard <hollis@penguinppc.org>
44545
44546 * include/grub/ieee1275/ieee1275.h: Update copyright.
44547 * kern/powerpc/ieee1275/init.c: Likewise.
44548 * kern/powerpc/ieee1275/openfw.c: Likewise.
44549
44550 * loader/powerpc/ieee1275/linux.c: Likewise.
44551 * include/grub/elfload.h: Likewise.
44552 * kern/elf.c: Likewise.
44553 (grub_elf32_load): Pass `base' and `size' parameters. Update all
44554 callers.
44555 (grub_elf64_load): Likewise.
44556 (grub_elf32_load_segment): Move to a nested function.
44557 (grub_elf64_load_segment): Likewise.
44558
dc946850 445592007-02-12 Hollis Blanchard <hollis@penguinppc.org>
44560
44561 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
44562 prototype.
44563 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
44564 (grub_heap_len): Likewise.
44565 (HEAP_SIZE): New macro.
44566 (grub_claim_heap): New function.
44567 (grub_machine_init): Don't claim heap directly. Call
44568 `grub_claim_heap'.
44569 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
44570 (grub_available_iterate): New function.
44571
baa2a121 445722007-02-03 Thomas Schwinge <tschwinge@gnu.org>
44573
44574 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
44575 * configure.ac: Use it for testing the HOST and TARGET compilers.
44576
4fe9862e 445772006-12-13 Thomas Schwinge <tschwinge@gnu.org>
44578
44579 * Makefile.in (enable_grub_emu): New variable.
44580 * configure.ac (--enable-grub-emu): New option.
44581 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
44582 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
44583 * conf/i386-pc.rmk: Likewise.
44584 * conf/powerpc-ieee1275.rmk: Likewise.
44585 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
44586
a8aa5762 445872006-12-12 Marco Gerards <marco@gnu.org>
44588
44589 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
44590
44591 * kern/env.c (grub_env_unset): Don't free the member `value' when
44592 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
44593 pointer.
44594
44595 * normal/main.c (current_menu): Removed.
44596 (free_menu): Unset the `menu' environment variable.
44597 (grub_normal_menu_addentry): Make use of the environment variable
44598 `menu', instead of using the global `current_menu'. Allocate
44599 memory for the sourcecode of this entry.
44600 (read_config_file): New argument `nested', changed all callers.
44601 Only in the case of a new context, initialize a new menu. Set the
44602 `menu' environment variable.
44603 (grub_normal_execute): Don't set and unset the environment
44604 variable `menu' here anymore. Only free the menu when leaving the
44605 context.
44606
44607 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
44608 leak.
44609
957b3a3e 446102006-12-11 Marco Gerards <marco@gnu.org>
44611
44612 * normal/menu_entry.c (run): Fix off by one bug so the last line
44613 is executed. Move the loader check to outside the loop.
44614
ef875714 446152006-12-08 Hollis Blanchard <hollis@penguinppc.org>
44616
44617 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
44618
4e739985 446192006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
44620
44621 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
44622 the number of sectors. Reported by Andrey Shuvikov
44623 <mr_hyro@yahoo.com>.
f19dbdb7 44624
790707f2 446252006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
44626
44627 * kern/disk.c (grub_disk_read): When there is a read error, always
44628 try to read only the necessary data.
f19dbdb7 44629
790707f2 44630 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
44631 disk/raid.c.
44632 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
44633 prototype.
44634 [GRUB_UTIL] (grub_raid_fini): Likewise.
44635 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 44636 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 44637 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
44638 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
44639 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
44640 and grub_raid_fini().
f19dbdb7 44641
03e58196 446422006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
44643
44644 * include/grub/types.h (__unused): Rename to UNUSED.
44645 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
44646 (grub_elf64_size): Likewise.
f19dbdb7 44647
ae4f23bf 446482006-11-03 Hollis Blanchard <hollis@penguinppc.org>
44649
44650 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
44651 grub_error_push and grub_error_pop in the error-handling path.
44652 (grub_elf32_load_segment): Only call grub_file_read with non-zero
44653 length.
44654
2166cc83 446552006-11-03 Hollis Blanchard <hollis@penguinppc.org>
44656
44657 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
44658 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44660 (kernel_elf_SOURCES): Likewise.
44661 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
44662 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
44663 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44664 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44665 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
44666 (elf_mod_SOURCES): New variable.
44667 (elf_mod_CFLAGS): Likewise.
44668 (elf_mod_LDFLAGS): Likewise.
44669 * include/grub/types.h (__unused): New macro.
44670 * include/grub/elfload.h: New file.
44671 * kern/elf.c: Likewise.
44672 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
44673 (ELF32_LOADMASK): New macro.
44674 (ELF64_LOADMASK): Likewise.
44675 (vmlinux): Removed.
44676 (grub_linux_load32): New function.
44677 (grub_linux_load64): Likewise.
44678 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
44679 Use grub_elf_t instead of grub_file_t.
44680
a09d5aa5 446812006-11-02 Hollis Blanchard <hollis@penguinppc.org>
44682
44683 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
44684 `catch_result' to struct set_color_args.
44685
d976fc51 446862006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44687
44688 * normal/menu.c: Include grub/script.h.
44689 * normal/menu_entry.c: Likewise.
44690 * include/grub/normal.h: Do not include grub/script.h.
44691
67507549 446922006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44693
44694 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
44695
69203a99 446962006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44697
44698 * kern/disk.c (grub_disk_open): Print debug messages when opening a
44699 disk.
44700 (grub_disk_close): Print debug messages when closing a disk.
44701 (grub_disk_read): Print debug messages when disk read fails.
44702 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
44703 filesystem type.
44704 * kern/partition.c: Include misc.h.
44705 (grub_partition_iterate): Print debug messages when detecting
44706 partition type.
44707
e2b8278c 447082006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44709
44710 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
44711 is negative.
44712 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
44713
97b2f2ff 447142006-10-26 Hollis Blanchard <hollis@penguinppc.org>
44715
44716 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44717 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
44718
6555d655 447192006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
44720
44721 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
44722 instead of sizeof(lv). Patch by Michael Guntsche.
44723
4d42b77f 447242006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
44725
44726 * disk/lvm.c: Rename VGS to VG_LIST.
44727 (grub_lvm_iterate): Change VGS->LV to VG-LV.
44728 (grub_lvm_open): Likewise.
44729 Thanks to Michael Guntsche for finding this bug.
44730
5d74d927 447312006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44732
44733 * configure.ac (AC_INIT): Bumped to 1.95.
44734
a1bb27e4 447352006-10-14 Robert Millan <rmh@aybabtu.com>
44736
44737 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
44738 with "/dev/.static/dev/md".
44739
e0994b8b 447402006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
44741
44742 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
44743 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
44744 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
44745 DRIVE_NAME are always freed.
44746
44747 * util/i386/pc/biosdisk.c (make_device_name): Add one into
44748 DOS_PART, as a DOS partition is counted from one instead of zero
44749 now. Reported by Robert Millan.
44750
ddd5cee9 447512006-10-14 Robert Millan <rmh@aybabtu.com>
44752
44753 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
44754 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
44755 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
44756 string returned by grub_guess_root_device.
44757 * util/i386/pc/grub-setup.c: Likewise.
44758 * util/i386/pc/grub-probefs.c: Likewise.
44759
44760 * util/i386/pc/grub-probefs.c: Rename to ...
44761 * util/i386/pc/grub-probe.c: ... this.
44762 * DISTLIST: Remove grub-probefs, add grub-probe.
44763 * conf/i386-efi.rmk: Likewise.
44764 * conf/i386-pc.rmk: Likewise.
44765 * util/i386/pc/grub-install.in: Likewise.
44766
44767 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
44768 choose which information we want to print.
44769
2b002173 447702006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
44771
44772 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
44773 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
44774 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
44775 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
44776 video/readers/tga.c and video/i386/pc/vbeutil.c.
44777
447782006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
44779
44780 Added support for RAID and LVM.
f19dbdb7 44781
2b002173 44782 * disk/lvm.c: New file.
44783 * disk/raid.c: Likewise.
44784 * include/grub/lvm.h: Likewise.
f19dbdb7 44785 * include/grub/raid.h: Likewise.
2b002173 44786 * include/grub/util/lvm.h: Likewise.
44787 * include/grub/util/raid.h: Likewise.
44788 * util/lvm.c: Likewise.
44789 * util/raid.c: Likewise.
44790
44791 * include/grub/disk.h (grub_disk_dev_id): Add
44792 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
44793 (grub_disk_get_size): New prototype.
44794 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
44795 returns a partition.
44796 (grub_disk_get_size): New function.
f19dbdb7 44797
2b002173 44798 * kern/i386/pc/init.c (make_install_device): Copy the prefix
44799 verbatim if grub_install_dos_part is -2.
44800
44801 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
44802 and LVM devices.
44803
44804 * util/i386/pc/grub-setup.c (setup): New argument
44805 MUST_EMBED. Force embedding of GRUB when the argument is
44806 true. Close FILE before returning.
44807 (main): Add support for RAID and LVM.
f19dbdb7 44808
2b002173 44809 * conf/common.rmk: Add RAID and LVM modules.
44810 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
44811 util/lvm.c.
44812 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
44813
44814 * kern/misc.c (grub_strstr): New function.
44815 * include/grub/misc.h (grub_strstr): New prototype.
44816
050548d0 448172006-10-10 Tristan Gingold <tristan.gingold@bull.net>
44818
44819 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
44820
da849d2d 448212006-10-05 Tristan Gingold <tristan.gingold@bull.net>
44822
44823 * kern/misc.c (grub_strtoull): Guess the base only if not
44824 specified.
44825
97b2f2ff 448262006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 44827
44828 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
44829 PowerMac support.
44830
97b2f2ff 448312006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 44832
44833 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
44834
44835 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
44836 Remove `flags' argument. All callers changed.
44837 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
44838 (IEEE1275_IHANDLE_INVALID): New variable.
44839 (IEEE1275_CELL_INVALID): New variable.
44840 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
44841 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
44842 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
44843 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
44844 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
44845 codes from Open Firmware. All callers updated.
44846 (grub_ieee1275_next_property): Directly return Open Firmware return
44847 code.
44848 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
44849 Standardize error checking from `grub_ieee1275_get_property'.
44850 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
44851 `devalias' to `aliases'. Correct comments. Consolidate error paths.
44852
97b2f2ff 448532006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 44854
44855 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
44856 `instance_to_package_args' to `instance_to_path_args'.
44857
44858 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
44859 `grub_ieee1275_chosen'.
44860
44861 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
44862 `grub_ieee1275_interpret'.
44863
97b2f2ff 448642006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 44865
44866 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
44867
97b2f2ff 448682006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 44869
44870 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
44871 (__cmpdi): Likewise.
44872
44873 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
44874 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
44875 `grub_ssize_t'.
44876
02bb8acc 44877 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 44878
44879 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
44880 to type `grub_ssize_t'.
44881 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
44882
7f9a8531 448832006-09-22 Marco Gerards <marco@gnu.org>
44884
44885 * normal/script.c (grub_script_create_cmdmenu): Skip leading
44886 newlines.
44887
b5ef1102 448882006-09-22 Marco Gerards <marco@gnu.org>
44889
44890 * commands/echo.c: New file.
44891
44892 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
44893
44894 * conf/common.rmk (echo_mod_SOURCES): New variable.
44895 (echo_mod_CFLAGS): Likewise.
44896 (echo_mod_LDFLAGS): Likewise.
44897
2cff3677 448982006-09-22 Marco Gerards <marco@gnu.org>
44899
44900 * normal/main.c (get_line): Malloc memory instead of using
44901 preallocated memory. Removed the arguments `cmdline' and
44902 `max_len'. Updated all callers.
44903
6ba4688b 449042006-09-22 Marco Gerards <marco@gnu.org>
44905
44906 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
44907 (normal_mod_DEPENDENCIES): Likewise.
44908
44909 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
44910 (normal_mod_DEPENDENCIES): Likewise.
44911
44912 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
44913
e02ac02c 449142006-09-22 Johan Rydberg <jrydberg@gnu.org>
44915
44916 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
44917 programs.
44918 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
44919 (normal_mod_DEPENDENCIES): Likewise.
44920 * conf/i386-pc.mk: Regenerate.
44921 * conf/i386-efi.mk: Likewise
44922 * conf/common.mk: Likewise.
44923 * conf/powerpc-ieee1275.mk: Likewise.
44924 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 44925
8d252e44 449262006-09-22 Robert Millan <rmh@aybabtu.com>
44927
44928 Sync with i386 version.
44929 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
44930 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
44931
209bf7ac 449322006-09-21 Robert Millan <rmh@aybabtu.com>
44933
44934 Import from GRUB Legacy (lib/device.c):
44935 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
44936 (init_device_map) [__linux__]: Add support for I2O devices.
44937
6b146090 449382006-09-14 Marco Gerards <marco@gnu.org>
44939
44940 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
44941 `-melf_i386'.
44942
e38600a8 449432006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 44944
44945 * util/i386/pc/grub-install.in: Skip menu.lst when removing
44946 /boot/grub/*.lst.
78fa1790 44947
2952da5d 44948 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 44949
2952da5d 44950 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
44951 before adding it to device.map.
44952
01b82a64 449532006-08-15 Johan Rydberg <jrydberg@gnu.org>
44954
fe6b695a 44955 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 44956 compiles a file; using the -MD option.
44957 * conf/common.mk: Regenerate.
44958 * conf/i386-pc.mk: Likewise.
44959 * conf/i386-efi.mk: Likewise.
44960 * conf/powerpc-ieee1275.mk: Likewise.
44961 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 44962
1064790d 449632006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
44964
44965 Move the prototypes of grub_setjmp and grub_longjmp to
44966 cpu/setjmp.h, so that each architecture may specify different
44967 attributes.
f19dbdb7 44968
1064790d 44969 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
44970 (grub_longjmp): Likewise.
44971 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
44972 (grub_longjmp): Likewise.
44973 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
44974 (grub_longjmp): Likewise.
44975
44976 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
44977 [!GRUB_UTIL] (grub_longjmp): Removed.
44978
29dda3ed 449792006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
44980
44981 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
44982 "color!" method does not return any value.
44983
ad2a06ed 449842006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
44985
44986 * include/grub/bitmap.h: New file.
44987
44988 * include/grub/i386/pc/vbeutil.h: Likewise.
44989
44990 * video/bitmap.c: Likewise.
44991
44992 * video/readers/tga.c: Likewise.
44993
44994 * video/i386/pc/vbeutil.c: Likewise.
44995
44996 * commands/videotest.c: Code cleanup and updated to reflect to new
44997 video API.
44998
44999 * term/gfxterm.c: Likewise.
45000
45001 * video/video.c: Likewise.
45002
45003 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
45004 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
45005 (bitmap_mod_SOURCES): New entry.
45006 (bitmap_mod_CFLAGS): Likewise.
45007 (bitmap_mod_LDFLAGS): Likewise.
45008 (tga_mod_SOURCES): Likewise.
45009 (tga_mod_CFLAGS): Likewise.
45010 (tga_mod_LDFLAGS): Likewise.
45011
45012 * include/grub/video.h (grub_video_blit_operators): New enum type.
45013 (grub_video_render_target): Changed as forward declaration and moved
45014 actual definition to be video driver specific.
45015 (grub_video_adapter.blit_bitmap): Added blitting operator.
45016 (grub_video_adapter.blit_render_target): Likewise.
45017 (grub_video_blit_bitmap): Likewise.
45018 (grub_video_blit_render_target): Likewise.
45019
45020 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
45021 driver specific render target definition.
45022 (grub_video_vbe_map_rgba): Added driver internal helper.
45023 (grub_video_vbe_unmap_color): Updated to use
45024 grub_video_i386_vbeblit_info.
45025 (grub_video_vbe_get_video_ptr): Likewise.
45026
45027 * include/grub/i386/pc/vbeblit.h
45028 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
45029 grub_video_i386_vbeblit_info.
45030 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
45031 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
45032 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
45033 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
45034 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
45035 (grub_video_i386_vbeblit_index_index): Likewise.
45036 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
45037 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
45038 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
45039 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
45040 operator.
45041 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
45042 operator.
45043
45044 * video/i386/pc/vbeblit.c: Updated to reflect changes on
45045 include/grub/i386/pc/vbeblit.h.
45046
45047 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
45048 Updated to use grub_video_i386_vbeblit_info.
45049 (grub_video_i386_vbefill_R8G8B8): Likewise.
45050 (grub_video_i386_vbefill_index): Likewise.
45051 (grub_video_i386_vbefill): Added generic filler.
45052
45053 * video/i386/pc/vbefill.c: Updated to reflect changes on
45054 include/grub/i386/pc/vbefill.h.
45055
45056 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
45057 grub_video_i386_vbeblit_info.
45058 (grub_video_vbe_unmap_color): Likewise.
45059 (grub_video_vbe_blit_glyph): Likewise.
45060 (grub_video_vbe_scroll): Likewise.
45061 (grub_video_vbe_draw_pixel): Removed function.
45062 (grub_video_vbe_get_pixel): Likewise.
45063 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
45064 updated code to use it.
45065 (common_blitter): Added common blitter for render target and bitmap.
45066 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
45067 (grub_video_vbe_blit_render_target): Likewise.
45068
bc8c036d 450692006-07-30 Johan Rydberg <jrydberg@gnu.org>
45070
45071 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
45072 is in text mode if there is no console control protocol instance
45073 available.
45074
684a8eff 450752006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45076
45077 * include/grub/video.h: Code cleanup.
45078
45079 * include/grub/i386/pc/vbe.h: Likewise.
45080
45081 * video/i386/pc/vbe.c: Likewise.
45082
45083 * video/i386/pc/vbeblit.c: Likewise.
45084
45085 * video/i386/pc/vbefill.c: Likewise.
45086
45087 * video/video.c: Likewise. Also added more comments.
45088
5915059b 450892006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45090
45091 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
45092 (struct grub_biosdisk_dap): Likewise.
45093
45094 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
45095 linkage settings for all functions.
45096
90ce5d56 450972006-07-12 Marco Gerards <marco@gnu.org>
45098
45099 * configure.ac (--enable-mm-debug): Fix typo.
45100
45101 * genkernsyms.sh.in: Use proper quoting for `CC'.
45102
43e7f879 451032006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
45104
45105 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
45106 (normal_mod_ASFLAGS): Remove "-m32".
45107
4889bdec 451082006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
45109
45110 * util/misc.c: Include config.h.
45111 [!HAVE_MEMALIGN]: Do not include malloc.h.
45112 (grub_memalign): Use posix_memalign, if present. Then, use
45113 memalign, if present. Otherwise, emit an error.
45114
45115 * util/grub-emu.c: Do not include malloc.h.
45116
45117 * include/grub/util/misc.h: Include unistd.h. This is required for
45118 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
45119 D. Eades III <hde@foobar-qux.org>.
45120
45121 * configure.ac (AC_GNU_SOURCE): Added.
45122 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
45123 type.
45124
fd39d4da 451252006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
45126
45127 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
45128 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
45129
b786f3b5 451302006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
45131
45132 * include/grub/types.h (grub_host_addr_t): Rename to
45133 grub_target_addr_t.
45134 (grub_host_off_t): Rename to grub_target_off_t.
45135 (grub_host_size_t): Rename to grub_target_size_t.
45136 (grub_host_ssize_t): Rename to grub_target_ssize_t.
45137 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
45138
45139 * include/grub/kernel.h (struct grub_module_header): Change type
45140 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
45141 (grub_module_info): Likewise.
f19dbdb7 45142
051988bb 451432006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45144
45145 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
45146 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
45147 Velazquez <jesus.velazquez@gmail.com>.
45148
deae281b 451492006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45150
45151 Count partitions from 1 instead of 0 in the string representation
45152 of partitions. Still use 0-based internally.
f19dbdb7 45153
deae281b 45154 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
45155 (sun_partition_map_iterate): Use grub_partition_t instead of
45156 struct grub_partition *. Cast DESC->START_CYLINDER to
45157 grub_uint64_t after converting the endian.
45158 (sun_partition_map_probe): Subtract 1 for PARTNUM.
45159 (sun_partition_map_get_name): Add 1 to P->INDEX.
45160
45161 * partmap/pc.c (grub_partition_parse): Subtract 1 for
45162 PCDATA->DOS_PART.
45163 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
45164
45165 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
45166 zero instead of one.
45167 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
45168 (gpt_partition_map_get_name): Add 1 into P->INDEX.
45169
45170 * partmap/apple.c (apple_partition_map_iterate): Change the type
45171 of POS to unsigned.
45172 (apple_partition_map_probe): Subtract 1 for PARTNUM.
45173 (apple_partition_map_get_name): Add 1 into P->INDEX.
45174
45175 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
45176 of POS to unsigned.
45177 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
45178 calculate the offset of a partition.
45179 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
45180 (amiga_partition_map_get_name): Add 1 into P->INDEX.
45181
45182 * partmap/acorn.c (acorn_partition_map_find): Change the type of
45183 SECTOR to grub_disk_addr_t.
45184 (acorn_partition_map_iterate): Likewise.
45185 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
45186 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
45187 top.
45188 (acorn_partition_map_get_name): Add 1 into P->INDEX.
45189
45190 * kern/i386/pc/init.c (make_install_device): Add 1 into
45191 GRUB_INSTALL_DOS_PART.
45192
45193 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
45194 conditional.
45195
524a1e6a 451962006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45197
45198 Clean up the code to support 64-bit addressing in disks and
45199 files. This change is not enough for filesystems yet.
f19dbdb7 45200
524a1e6a 45201 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
45202 type of "start" to grub_uint64_t.
45203 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
45204 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
45205 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
45206 convert addresses.
45207
45208 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
45209 to grub_disk_addr_t.
45210
45211 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
45212 string.
45213
45214 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45215
45216 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
45217 to char *.
45218
45219 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
45220
45221 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
45222
45223 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
45224
45225 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
45226 to grub_off_t, to detect an error from grub_file_seek.
45227 (grub_multiboot_load_elf32): Likewise.
45228
45229 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
45230 maximum unsigned long value when an overflow is detected.
45231 (grub_strtoull): New function.
45232 (grub_divmod64): Likewise.
45233 (grub_lltoa): use grub_divmod64.
45234
45235 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
45236 grub_disk_addr_t.
45237 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
45238 the pointer to next character. Use grub_strtoull instead of
45239 grub_strtoul.
45240 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
45241 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
45242 respectively.
45243
fe6b695a 45244 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 45245 return value is signed.
45246 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
45247 test if OFFSET is less than zero, as OFFSET is unsigned now.
45248
45249 * kern/disk.c (struct grub_disk_cache): Change the type of
45250 "sector" to grub_disk_addr_t.
45251 (grub_disk_cache_get_index): Change the type of SECTOR to
45252 grub_disk_addr_t. Calculate the hash with SECTOR casted to
45253 unsigned after shifting.
45254 (grub_disk_cache_invalidate): Change the type of SECTOR to
45255 grub_disk_addr_t.
45256 (grub_disk_cache_unlock): Likewise.
45257 (grub_disk_cache_store): Likewise.
45258 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
45259 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
45260 grub_disk_addr_t and grub_uint64_t, respectively.
45261 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
45262 body, as the value of OFFSET is tweaked by
45263 grub_disk_check_range. Change the types of START_SECTOR, LEN and
45264 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
45265 respectively.
45266 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
45267 body, as the value of OFFSET is tweaked by
45268 grub_disk_check_range. Change the types of LEN and N to
45269 grub_size_t.
45270
45271 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
45272 and "saved_offset" to grub_off_t.
45273 (test_header): Cast BUF to char *.
45274 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
45275 to char *.
45276 (grub_gzio_read): Change the types of OFFSET and SIZE to
45277 grub_off_t and grub_size_t, respectively.
45278
45279 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
45280 Removed.
45281 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
45282 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
45283 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
45284 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
45285 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
45286
45287 * include/grub/types.h (grub_off_t): Unconditionally set to
45288 grub_uint64_t.
45289 (grub_disk_addr_t): Changed to grub_uint64_t.
45290
45291 * include/grub/partition.h (struct grub_partition): Change the
45292 types of "start", "len" and "offset" to grub_disk_addr_t,
45293 grub_uint64_t and grub_disk_addr_t, respectively.
45294 (grub_partition_get_start): Return grub_disk_addr_t.
45295 (grub_partition_get_len): Return grub_uint64_t.
45296
45297 * include/grub/misc.h (grub_strtoull): New prototype.
45298 (grub_divmod64): Likewise.
45299
45300 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
45301 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
45302 grub_off_t, respectively.
45303 All callers and references changed.
45304
45305 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
45306 grub_size_t in "read".
45307 All callers and references changed.
45308
45309 * include/grub/file.h (struct grub_file): Change the types of
45310 "offset" and "size" to grub_off_t and grub_off_t,
45311 respectively. Change the type of SECTOR to grub_disk_addr_t in
45312 "read_hook".
45313 (grub_file_read): Change the type of LEN to grub_size_t.
45314 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
45315 grub_off_t.
45316 (grub_file_size): Return grub_off_t.
45317 (grub_file_tell): Likewise.
45318 All callers and references changed.
45319
45320 * include/grub/disk.h (struct grub_disk_dev): Change the types of
45321 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
45322 "write".
45323 (struct grub_disk): Change the type of "total_sectors" to
45324 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 45325 "read_hook".
524a1e6a 45326 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
45327 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
45328 (grub_disk_write): Likewise.
45329 All callers and references changed.
45330
45331 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
45332 char * for grub_strncmp to silence gcc.
45333 (grub_iso9660_mount): Likewise.
45334 (grub_iso9660_mount): Likewise.
45335 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
45336 return statement.
45337 (grub_iso9660_iterate_dir): Likewise.
45338 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
45339
45340 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
45341 LEN to grub_disk_addr_t and grub_size_t, respectively.
45342
45343 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
45344
45345 * fs/jfs.c (grub_jfs_read_file): Likewise.
45346
45347 * fs/minix.c (grub_jfs_read_file): Likewise.
45348
45349 * fs/sfs.c (grub_jfs_read_file): Likewise.
45350
45351 * fs/ufs.c (grub_jfs_read_file): Likewise.
45352
45353 * fs/xfs.c (grub_jfs_read_file): Likewise.
45354
45355 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
45356 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
45357 respectively.
45358
45359 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
45360 BLKNR to -1 instead of returning GRUB_ERRNO.
45361 (grub_ext2_read_file): Change the types of SECTOR and
45362 LEN to grub_disk_addr_t and grub_size_t, respectively.
45363
45364 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
45365 LEN to grub_disk_addr_t and grub_size_t, respectively.
45366
45367 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
45368 grub_file_read.
45369
45370 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
45371 string. Do not cast SECTOR explicitly.
45372
45373 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
45374 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
45375 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
45376 grub_disk_addr_t and grub_size_t, respectively. If the sector is
45377 over 2TB and LBA mode is not supported, raise an error.
45378 (get_safe_sectors): New function.
45379 (grub_biosdisk_read): Use get_safe_sectors.
45380 (grub_biosdisk_write): Likewise.
45381
45382 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
45383 (grub_efidisk_write): Likewise.
45384
45385 * disk/loopback.c (delete_loopback): Cosmetic changes.
45386 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
45387 correctly.
45388 (grub_loopback_open): Likewise.
45389 (grub_loopback_read): Likewise. Also, change the type of POS to
45390 grub_off_t, and fix the usage of grub_memset.
45391
45392 * commands/i386/pc/play.c: Include grub/machine/time.h.
45393
45394 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
45395 print FILE->SIZE.
45396
45397 * commands/configfile.c: Include grub/env.h.
45398
45399 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
45400 GRUB_ERRNO directly instead. Change the type of POS to
45401 grub_off_t. Follow the coding standard.
45402
45403 * commands/blocklist.c: Include grub/partition.h.
45404 (grub_cmd_blocklist): Return an error if the underlying device is
45405 not a disk. Take the starting sector of a partition into account,
45406 if a partition is used.
45407
45408 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
45409 a length field.
45410 (lba_mode): Support 64-bit addresses.
45411 (chs_mode): Likewise.
45412 (copy_buffer): Adapted to the new offsets of a length field and a
45413 segment field.
45414 (blocklist_default_start): Allocate 64-bit space.
45415
45416 * boot/i386/pc/boot.S (force_lba): Removed.
45417 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 45418 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 45419 space.
45420 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
45421 is useless.
45422 (lba_mode): Refactored to support a 64-bit address. More size
45423 optimization.
45424 (setup_sectors): Likewise.
45425
53af98ad 454262006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45427
45428 * DISTLIST: Added include/grub/i386/linux.h. Removed
45429 include/grub/i386/pc/linux.h
45430
45431 * configure.ac (AC_INIT): Bumped to 1.94.
45432
45433 * config.guess: Updated from gnulib.
45434 * config.sub: Likewise.
45435 * install-sh: Likewise.
45436 * mkinstalldirs: Likewise.
45437
b4c1940a 454382006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
45439
45440 * conf/common.rmk (grub_modules_init.lst): Depended on
45441 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
45442 MODSRCFILES.
45443
45444 * genmk.rb (PModule::rule): Reverted the previous change.
45445
cfca1cfd 454462006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
45447
45448 * conf/common.rmk (grub_modules_init.lst): Depends on
45449 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
45450 that the target does not exist before producing.
45451 (grub_modules_init.h): Remove the target before generating.
45452 (grub_emu_init.c): Likewise.
45453
45454 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
45455
aa6d7826 454562006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
45457
45458 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
45459 for the target-specific tests. Make sure that we also have the
45460 up-to-date target variables for those tests.
45461
26c607b9 454622006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
45463
45464 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
45465 (PModule::rule): Likewise.
45466
0162321a 454672006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
45468
45469 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
45470 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
45471 target-specific flags should be prefixed.
45472 (PModule::rule): Likewise.
45473
6c826348 454742006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
45475
45476 * configure.ac (CMP): Check if cmp is available explicitly.
45477
b977bf01 454782006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
45479
45480 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
45481 (target_cpu): New variable.
45482 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 45483
b977bf01 45484 * util/i386/pc/grub-install.in (host_cpu): Removed.
45485 (target_cpu): New variable.
45486 (pkglibdir): Use target_cpu instead of host_cpu.
45487
45488 * util/genmoddep.c: Removed.
f19dbdb7 45489
b977bf01 45490 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
45491 instead of GRUB_HOST_SIZEOF_VOID_P.
45492 * kern/dl.c: Likewise.
45493
45494 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
45495 ...
45496 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
45497 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
45498 (GRUB_TARGET_SIZEOF_LONG): ... this.
45499 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
45500 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
45501 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
45502 to ...
45503 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
45504 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
45505 (GRUB_TARGET_SIZEOF_LONG): ... this.
45506 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
45507 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
45508 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
45509 to ...
45510 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
45511 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
45512 (GRUB_TARGET_SIZEOF_LONG): ... this.
45513 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
45514 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
45515
45516 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
45517 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
45518 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
45519 instead of GRUB_HOST_SIZEOF_LONG.
45520 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
45521 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
45522 GRUB_CPU_WORDS_BIGENDIAN.
45523 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
45524 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
45525 grub_host_ssize_t.
45526
45527 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
45528 (genmoddep_SOURCES): Likewise.
45529 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
45530 (genmoddep_SOURCES): Likewise.
45531 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
45532 (genmoddep_SOURCES): Likewise.
45533 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
45534 Likewise.
45535 (genmoddep_SOURCES): Likewise.
45536
45537 * genmoddep.awk: New file.
45538
45539 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
45540 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
45541 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
45542 (PModule::rule): Likewise.
45543 (Program::rule): Likewise.
45544 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
45545 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
45546 respectively.
45547
45548 * configure.ac: Rewritten intensively to use host and target
45549 instead of build and host, respectively.
45550
45551 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
45552 (host_cpu): Removed.
45553 (target_cpu): New variable.
45554 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
45555 (BUILD_CC): Removed.
45556 (BUILD_CFLAGS): Likewise.
45557 (BUILD_CPPFLAGS): Likewise.
45558 (TARGET_CC): New variable.
45559 (TARGET_CFLAGS): Likewise.
45560 (TARGET_CPPFLAGS): Likewise.
45561 (TARGET_LDFLAGS): Likewise.
45562 (AWK): Likewise.
45563 (include): Use target_cpu instead of host_cpu.
45564 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 45565
b977bf01 45566 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
45567
f09771a1 455682006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
45569
45570 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
45571 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
45572 field 'false' to 'exec_on_false'.
45573 (grub_script_create_cmdif): Renamed argument names to reflect above
45574 changes.
45575
45576 * normal/execute.c (grub_script_execute_cmdif): Likewise.
45577
45578 * normal/script.c (grub_script_create_cmdif): Likewise.
45579
118f4fb3 455802006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
45581
45582 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
45583 top.
45584 (grub_hfsplus_btree_recptr): Likewise.
45585 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
45586 FILEBLOCK both to pass a block number and store next block
45587 number.
45588 (grub_hfsplus_read_block): Rewritten heavily to support an extent
45589 overflow file correctly. Specify errors appropriately, because
45590 fshelp expects that GRUB_ERRNO is set when fails. Reuse
45591 grub_hfsplus_btree_recptr to get the pointer to a found key.
45592 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
45593 is found.
45594
45595 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
45596 linux.mod.
45597 (_linux_mod_SOURCES): New variable.
45598 (_linux_mod_CFLAGS): Likewise.
45599 (_linux_mod_LDFLAGS): Likewise.
45600 (linux_mod_SOURCES): Likewise.
45601 (linux_mod_CFLAGS): Likewise.
45602 (linux_mod_LDFLAGS): Likewise.
45603
45604 * DISTLIST: Added loader/i386/efi/linux.c,
45605 loader/i386/efi/linux_normal.c and
45606 include/grub/i386/efi/loader.h.
45607
45608 * loader/i386/efi/linux.c: New file.
45609 * loader/i386/efi/linux_normal.c: Likewise.
45610 * include/grub/i386/efi/loader.h: Likewise.
45611
89a7d726 456122006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
45613
45614 * commands/blocklist.c: New file.
45615
45616 * DISTLIST: Added commands/blocklist.c.
45617
45618 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 45619 color for the background, and a darker color for the foreground.
89a7d726 45620 (grub_console_checkkey): Return READ_KEY.
45621 (grub_console_cls): Set the background to
45622 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
45623
45624 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
45625
45626 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
45627 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
45628
45629 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
45630 prototype.
45631
45632 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
45633 BG. The spec is wrong again.
45634
45635 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
45636 prototype.
45637 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
45638
45639 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45640 commands/blocklist.c.
45641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 45642
89a7d726 45643 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
45644 (blocklist_mod_SOURCES): New variable.
45645 (blocklist_mod_CFLAGS): Likewise.
45646 (blocklist_mod_LDFLAGS): Likewise.
45647
75c8f258 456482006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
45649
45650 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
45651 duplication.
45652 (lba_mode): Use %eax more intensively to reduce the code size.
45653
da2eb181 456542006-05-20 Marco Gerards <marco@gnu.org>
45655
45656 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
45657
45658 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
45659 for `menuentry'.
45660 (script): Accept leading newlines.
45661 (newlines): New rule to describe 0 or more newlines.
45662 (commands): Accept `command' with trailing newline. Fixed the
45663 order in which arguments were passed to `grub_script_add_cmd'.
45664 Accept commands separated by newlines.
45665 (function): Changed to accept newlines.
45666 (menuentry) Rewritten.
45667
45668 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
45669 front of the list, instead of to the end.
45670
577b4050 456712006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
45672
45673 * util/i386/pc/grub-install.in (bindir): New variable.
45674 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
45675 Shaver <lbgwjl@gmail.com>.
45676
0d6e1189 456772006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
45678
45679 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
45680 grub/machine/linux.h
45681 * loader/i386/pc/linux.c: Likewise.
45682
45683 * include/grub/i386/pc/linux.h: Moved to ...
45684 * include/grub/i386/linux.h: ... here.
45685
45686 * include/grub/i386/linux.h (struct linux_kernel_params): New
45687 struct.
f19dbdb7 45688
31b86e9f 456892006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
45690
45691 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
45692 checking.
45693 (grub_video_vbe_blit_glyph): Likewise.
45694 (grub_video_vbe_blit_bitmap): Likewise.
45695 (grub_video_vbe_blit_render_target): Likewise.
45696
83b984de 456972006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
45698
45699 * configure.ac (--with-platform): Properly quote the square
45700 brackets.
45701
5f0413bd 457022006-05-08 Marco Gerards <marco@gnu.org>
45703
45704 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
45705 this...
45706 (kernel_elf_HEADERS): ...to this. Updated all users.
45707 (grubof_symlist.c): Renamed from this...
45708 (kernel_elf_symlist.c): ...to this. Updated all users.
45709 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
45710 (grubof_SOURCES): Renamed from this...
45711 (kernel_elf_SOURCES): ...to this.
45712 (grubof_HEADERS): Renamed from this...
45713 (kernel_elf_HEADERS): ...to this.
45714 (grubof_CFLAGS): Renamed from this...
45715 (kernel_elf_CFLAGS): ...to this.
45716 (grubof_ASFLAGS): Renamed from this...
45717 (kernel_elf_ASFLAGS): ...to this.
45718 (grubof_LDFLAGS): Renamed from this...
45719 (kernel_elf_LDFLAGS): ...to this.
45720
45721 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
45722 this...
45723 (kernel_elf_HEADERS): ...to this. Updated all users.
45724 (grubof_symlist.c): Renamed from this...
45725 (kernel_elf_symlist.c): ...to this. Updated all users.
45726 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
45727 (grubof_SOURCES): Renamed from this...
45728 (kernel_elf_SOURCES): ...to this.
45729 (grubof_HEADERS): Renamed from this...
45730 (kernel_elf_HEADERS): ...to this.
45731 (grubof_CFLAGS): Renamed from this...
45732 (kernel_elf_CFLAGS): ...to this.
45733 (grubof_ASFLAGS): Renamed from this...
45734 (kernel_elf_ASFLAGS): ...to this.
45735 (grubof_LDFLAGS): Renamed from this...
45736 (kernel_elf_LDFLAGS): ...to this.
45737
45738 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
45739 `kernel.elf' instead of `grubof'.
45740
05568c2e 457412006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
45742
45743 Add --with-platform to configure. Use pkglibdir instead of
45744 pkgdatadir. This is reported by Roger Leigh.
45745
45746 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
45747 (host_vendor): Likewise.
45748 (host_os): Likewise.
45749 (pkgdatadir): Likewise.
45750 (platform): New variable.
45751 (pkglibdir): Likewise.
45752 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 45753
05568c2e 45754 * util/i386/pc/grub-install.in (datadir): Removed.
45755 (host_vendor): Likewise.
45756 (host_os): Likewise.
45757 (pkgdatadir): Likewise.
45758 (platform): New variable.
45759 (pkglibdir): Likewise.
45760 Use PKGLIBDIR instead of PKGDATADIR.
45761
45762 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
45763 instead of GRUB_DATADIR.
45764 (main): Likewise.
45765 * util/i386/pc/grub-mkimage.c (usage): Likewise.
45766 (main): Likewise.
45767 * util/i386/efi/grub-mkimage.c (usage): Likewise.
45768 (main): Likewise.
45769
45770 * configure.ac (--with-platform): New option.
45771 Use PLATFORM instead of HOST_VENDOR to specify a platform.
45772
45773 * Makefile.in: Include a makefile based on PLATFORM instead of
45774 HOST_VENDOR.
45775 (pkgdatadir): Not appended by the machine type.
45776 (pkglibdir): Appended by the machine type.
45777 (host_vendor): Removed.
45778 (platform): New variable.
45779 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
45780 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
45781 (uninstall): Likewise.
45782
4e93851c 457832006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
45784
45785 Use the environment context in the menu. Remove the commands
45786 "default" and "timeout", and use variables instead.
f19dbdb7 45787
4e93851c 45788 * normal/menu.c: Include grub/env.h.
45789 (print_entry): Cast TITLE to silence gcc.
45790 (get_timeout): New function.
45791 (set_timeout): Likewise.
45792 (get_entry_number): Likewise.
45793 (run_menu): Use a default entry, a fallback entry and a timeout
45794 in the environment variables "default", "fallback" and
45795 "timeout". Also, tweak the default entry if it is not within the
45796 current menu entries.
45797 (grub_menu_run): Use a fallback entry in the environment variable
45798 "fallback".
45799
45800 * normal/main.c (read_config_file): Do not initialize
45801 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
45802 NEWMENU->TIMEOUT.
45803 (grub_normal_execute): Use a data slot to store the menu.
45804
45805 * include/grub/normal.h (struct grub_menu): Removed default_entry,
45806 fallback_entry and timeout.
45807 (struct grub_menu_list): Removed.
45808 (grub_menu_list_t): Likewise.
45809 (struct grub_context): Likewise.
45810 (grub_context_t): Likewise.
45811 (grub_context_get): Likewise.
45812 (grub_context_get_current_menu): Likewise.
45813 (grub_context_push_menu): Likewise.
45814 (grub_context_pop_menu): Likewise.
45815 (grub_default_init): Likewise.
45816 (grub_default_fini): Likewise.
45817 (grub_timeout_init): Likewise.
45818 (grub_timeout_fini): Likewise.
45819
45820 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
45821 and timeout.mod.
45822 (normal_mod_SOURCES): Removed normal/context.c.
45823
45824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
45825 commands/default.c, commands/timeout.c and normal/context.c.
45826 (normal_mod_SOURCES): Removed normal/context.c.
45827
45828 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
45829 commands/timeout.c and normal/context.c.
45830 (normal_mod_SOURCES): Removed normal/context.c.
45831
45832 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
45833 commands/default.c, commands/timeout.c and normal/context.c.
45834 (normal_mod_SOURCES): Removed normal/context.c.
45835
45836 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
45837 timeout.mod.
45838 (default_mod_SOURCES): Removed.
45839 (default_mod_CFLAGS): Likewise.
45840 (default_mod_LDFLAGS): Likewise.
45841 (timeout_mod_SOURCES): Removed.
45842 (timeout_mod_CFLAGS): Likewise.
45843 (timeout_mod_LDFLAGS): Likewise.
45844
45845 * DISTLIST: Removed commands/default.c, commands/timeout.c and
45846 normal/context.c.
45847
45848 * commands/default.c: Removed.
45849 * commands/timeout.c: Likewise.
45850 * normal/context.c: Likewise.
45851
1eb9cc1d 458522006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
45853
45854 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
45855
385bd9c1 458562006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
45857
45858 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
45859 "next" to "prev" for readability.
45860 (struct grub_env_sorted_var): New struct.
45861 (grub_env_context): Renamed to ...
45862 (initial_context): ... this.
45863 (grub_env_var_context): Renamed to ...
45864 (current_context): ... this.
45865 (grub_env_find): Look only at CURRENT_CONTEXT.
45866 (grub_env_context_open): Rewritten to copy exported variables from
45867 previous context.
45868 (grub_env_context_close): Rewritten according to the new
45869 scheme. Also, add an assertion to prevent the initial context from
45870 removed.
45871 (grub_env_insert): Removed the code for the sorted list.
45872 (grub_env_remove): Likewise.
45873 (grub_env_export): Simply mark the variable with
45874 GRUB_ENV_VAR_GLOBAL.
45875 (grub_env_set): A cosmetic change for naming consistency.
45876 (grub_env_get): Likewise.
45877 (grub_env_unset): Likewise.
45878 (grub_env_iterate): Rewritten to sort variables within this
45879 function.
45880 (grub_register_variable_hook): Fixed for naming consistency. Call
45881 grub_env_find again, only if NAME is not found at the first time.
45882 (mangle_data_slot_name): New function.
45883 (grub_env_set_data_slot): Likewise.
45884 (grub_env_get_data_slot): Likewise.
45885 (grub_env_unset_data_slot): Likewise.
45886
45887 * include/grub/env.h (grub_env_var_type): New enum.
45888 (GRUB_ENV_VAR_LOCAL): New constant.
45889 (GRUB_ENV_VAR_GLOBAL): Likewise.
45890 (GRUB_ENV_VAR_DATA): Likewise.
45891 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
45892 "type".
45893 (grub_env_set): Replace VAR with NAME for consistency.
45894 (grub_register_variable_hook): Likewise.
45895 (grub_env_export): Specify the name of the argument.
45896 (grub_env_set_data_slot): New prototype.
45897 (grub_env_get_data_slot): Likewise.
45898 (grub_env_unset_data_slot): Likewise.
45899
7f362539 459002006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
45901
45902 Extend the loader so that GRUB can accept a loader which comes
45903 back to GRUB when a loaded image exits. Also, this change adds
45904 support for a chainloader on EFI.
f19dbdb7 45905
7f362539 45906 * term/efi/console.c: Include grub/misc.h.
45907 (grub_console_checkkey): Display a scan code on the top for
45908 debugging. This will be removed once the EFI port gets stable.
45909 Correct the scan code mapping.
45910
45911 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
45912 allocate memory from larger regions, in order to reduce the number
45913 of allocated regions. Otherwise, the MacOSX loader panics.
45914 (filter_memory_map): Avoid less than 1MB for compatibility with
45915 other loaders.
45916 (add_memory_regions): Allocate from the tail of a region, if
45917 possible, to avoid allocating a region near to 1MB, for the MacOSX
45918 loader.
45919
45920 * kern/efi/init.c (grub_efi_set_prefix): Specify
45921 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
45922
45923 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
45924 argument IMAGE_HANDLE and specify it to get a loaded image.
45925 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
45926 grub_efi_get_loaded_image.
fe6b695a 45927 (grub_efi_get_filename): Divide the length by the size of
7f362539 45928 grub_efi_char16_t.
45929 (grub_efi_get_device_path): New function.
45930 (grub_efi_print_device_path): Print End Device Path nodes. Divide
45931 the length by the size of grub_efi_char16_t for a file path device
45932 path node.
45933
45934 * kern/loader.c (grub_loader_noreturn): New variable.
45935 (grub_loader_set): Accept a new argument NORETURN. Set
45936 GRUB_LOADER_NORETURN to NORETURN.
45937 All callers changed.
45938 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
45939 grub_machine_fini.
45940
45941 * include/grub/efi/efi.h (grub_efi_get_device_path): New
45942 prototype.
45943 (grub_efi_get_loaded_image): Take an argument to specify an image
45944 handle.
45945
45946 * include/grub/loader.h (grub_loader_set): Added one more argument
45947 NORETURN.
45948
45949 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
45950 instead of grub_efi_open_protocol.
45951 (grub_efidisk_get_device_name): Likewise.
45952 (grub_efidisk_close): Print a newline.
45953 (grub_efidisk_get_device_handle): Fixed to use
45954 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
45955 GRUB_EFI_DEVICE_PATH_TYPE.
45956
45957 * disk/efi/efidisk.c (device_path_guid): Moved to ...
45958 * kern/efi/efi.c (device_path_guid): ... here.
45959
45960 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
45961 chain.mod.
45962 (kernel_mod_HEADERS): Added efi/disk.h.
45963 (_chain_mod_SOURCES): New variable.
45964 (_chain_mod_CFLAGS): Likewise.
45965 (_chain_mod_LDFLAGS): Likewise.
45966 (chain_mod_SOURCES): Likewise.
45967 (chain_mod_CFLAGS): Likewise.
45968 (chain_mod_LDFLAGS): Likewise.
45969
45970 * DISTLIST: Added include/grub/efi/chainloader.h,
45971 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
45972
45973 * include/grub/efi/chainloader.h: New file.
45974 * loader/efi/chainloader.c: Likewise.
45975 * loader/efi/chainloader_normal.c: Likewise.
45976
c0111d6e 459772006-04-30 Marco Gerards <marco@gnu.org>
45978
45979 * commands/configfile.c (grub_cmd_source): New function.
45980 (GRUB_MOD_INIT): Register the commands `source' and `.'.
45981 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
45982
df5341da 459832006-04-30 Marco Gerards <marco@gnu.org>
45984
45985 * normal/execute.c (grub_script_execute_cmd): Change the return
45986 type to `grub_err_t'. Correctly return the error.
45987 (grub_script_execute_cmdline): In case a command line is not a
45988 command or a function, try to interpret it as an assignment.
45989
f85934bd 459902006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
45991
45992 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
45993 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
45994 skip a node whose name is obviously invalid as UTF-16,
45995 i.e. contains a NUL character. Stop the iteration when the last
45996 directory entry is found. Instead of using the return value of
45997 grub_hfsplus_btree_iterate_node, store the value in RET and use
45998 it, because the iterator can be stopped by the last directory
45999 entry.
46000
8f8a2cf8 460012006-04-30 Marco Gerards <marco@gnu.org>
46002
46003 * include/grub/env.h (grub_env_export): New prototype. Reported
46004 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
46005
a27e84ce 460062006-04-30 Marco Gerards <marco@gnu.org>
46007
46008 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
46009 size of the extents in a catalog file record.
46010
eaef0553 460112006-04-29 Marco Gerards <marco@gnu.org>
46012
46013 * commands/configfile.c (grub_cmd_configfile): Execute the
46014 configfile within its own context.
46015
46016 * include/grub/env.h (grub_env_context_open): New prototype.
46017 (grub_env_context_close): Likewise.
46018
46019 * kern/env.c (grub_env): Removed.
46020 (grub_env_sorted): Likewise.
46021 (grub_env_context): New variable.
46022 (grub_env_var_context): Likewise.
46023 (grub_env_find): Search both the active context and the global
46024 context.
46025 (grub_env_context_open): New function.
46026 (grub_env_context_close): Likewise.
46027 (grub_env_insert): Likewise.
46028 (grub_env_remove): Likewise.
46029 (grub_env_export): Likewise.
46030 (grub_env_set): Changed to use helper functions to avoid code
46031 duplication.
46032 (grub_env_iterate): Rewritten so both the current context and the
46033 global context are being used.
46034
46035 * normal/command.c (export_command): New function.
46036 (grub_command_init): Register the `export' function.
46037
7b455f4d 460382006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
46039
46040 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
46041 explicitly to suppress gcc's warnings.
46042 * fs/fat.c (grub_fat_find_dir): Likewise.
46043 (grub_fat_label): Likewise.
46044 * fs/xfs.c (grub_xfs_read_inode): Likewise.
46045 (grub_xfs_mount): Likewise.
46046 (grub_xfs_label): Likewise.
46047 * fs/affs.c (grub_affs_mount): Likewise.
46048 (grub_affs_label): Likewise.
46049 (grub_affs_iterate_dir): Likewise.
46050 * fs/sfs.c (grub_sfs_mount): Likewise.
46051 (grub_sfs_iterate_dir): Likewise.
46052 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
46053 * fs/hfs.c (grub_hfs_mount): Likewise.
46054 (grub_hfs_cmp_catkeys): Likewise.
46055 (grub_hfs_find_dir): Likewise.
46056 (grub_hfs_dir): Likewise.
46057 (grub_hfs_label): Likewise.
46058 * fs/jfs.c (grub_jfs_mount): Likewise.
46059 (grub_jfs_opendir): Likewise.
46060 (grub_jfs_getent): Likewise.
46061 (grub_jfs_lookup_symlink): Likewise.
46062 (grub_jfs_label): Likewise.
46063 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
46064 (grub_hfsplus_iterate_dir): Likewise.
46065 (grub_hfsplus_btree_iterate_node): Made static.
46066
46067 * util/grub-emu.c (prefix): New variable.
46068 (grub_machine_set_prefix): New function.
46069 (main): Do not set the environment variable "prefix" here. Only
46070 set PREFIX, which is used later by grub_machine_set_prefix.
46071
46072 * include/grub/video.h: Do not include grub/symbol.h.
46073 (grub_video_register): Not exported. This symbol is not defined in
46074 the kernel.
46075 (grub_video_unregister): Likewise.
46076 (grub_video_iterate): Likewise.
46077 (grub_video_setup): Likewise.
46078 (grub_video_restore): Likewise.
46079 (grub_video_get_info): Likewise.
46080 (grub_video_get_blit_format): Likewise.
46081 (grub_video_set_palette): Likewise.
46082 (grub_video_get_palette): Likewise.
46083 (grub_video_set_viewport): Likewise.
46084 (grub_video_get_viewport): Likewise.
46085 (grub_video_map_color): Likewise.
46086 (grub_video_map_rgb): Likewise.
46087 (grub_video_map_rgba): Likewise.
46088 (grub_video_fill_rect): Likewise.
46089 (grub_video_blit_glyph): Likewise.
46090 (grub_video_blit_bitmap): Likewise.
46091 (grub_video_blit_render_target): Likewise.
46092 (grub_video_scroll): Likewise.
46093 (grub_video_swap_buffers): Likewise.
46094 (grub_video_create_render_target): Likewise.
46095 (grub_video_delete_render_target): Likewise.
46096 (grub_video_set_active_render_target): Likewise.
46097
46098 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
46099 Undefined.
46100 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
46101
46102 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
46103 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46104 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46105 instead of $(srcdir)/genkernsyms.sh.
46106
46107 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
46108 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46109 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46110 instead of $(srcdir)/genkernsyms.sh.
46111
46112 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
46113 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46114 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46115 instead of $(srcdir)/genkernsyms.sh.
46116
46117 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
46118 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46119 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46120 instead of $(srcdir)/genkernsyms.sh.
46121
46122 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
46123 genkernsyms.sh.
46124
46125 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
46126 genkernsyms.sh.
46127 (gensymlist.sh): New target.
46128 (genkernsyms.sh): Likewise.
46129
46130 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
46131 genkernsyms.sh.in and gensymlist.sh.in.
46132
46133 * genkernsyms.sh: Removed.
46134 * gensymlist.sh: Likewise.
f19dbdb7 46135
7b455f4d 46136 * genkernsyms.sh.in: New file.
46137 * gensymlist.sh.in: Likewise.
46138
1885bb27 461392006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46140
46141 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
46142 clobber "prefix", since we may have already set it manually.
46143
71538dff 461442006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46145
46146 * kern/misc.c (abort): New alias for grub_abort.
46147
2965c7cc 461482006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
46149
46150 A new machine-specific function "grub_machine_set_prefix" is
46151 defined. This is called after loading modules, so that a prefix
46152 initialization can use modules. Also, this change adds an
46153 intensive debugging feature for the memory manager via the
46154 configure option "--enable-mm-debug".
f19dbdb7 46155
2965c7cc 46156 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
46157 PART.LEN.
46158
46159 * kern/sparc64/ieee1275/init.c (abort): Removed.
46160 (grub_stop): Likewise.
46161 (grub_exit): New function.
46162 (grub_set_prefix): Renamed to ...
46163 (grub_machine_set_prefix): ... this.
46164 (grub_machine_init): Do not call grub_set_prefix.
46165
46166 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
46167 (grub_machine_set_prefix): ... this.
46168 (grub_machine_init): Do not call grub_set_prefix.
46169
46170 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
46171 (grub_machine_init): Do not set the prefix here.
46172
46173 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
46174
46175 * kern/efi/init.c: Include grub/mm.h.
46176 (grub_efi_set_prefix): New function.
46177
46178 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
46179 (grub_efi_get_filename): New function.
46180 (grub_print_device_path): Renamed to ...
46181 (grub_efi_print_device_path): ... this.
46182
46183 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
46184 [MM_DEBUG] (grub_realloc): Likewise.
46185 [MM_DEBUG] (grub_free): Likewise.
46186 [MM_DEBUG] (grub_memalign): Likewise.
46187 [MM_DEBUG] (grub_mm_debug): New variable.
46188 [MM_DEBUG] (grub_debug_malloc): New function.
46189 [MM_DEBUG] (grub_debug_free): New function.
46190 [MM_DEBUG] (grub_debug_realloc): New function.
46191 [MM_DEBUG] (grub_debug_memalign): New function.
46192
46193 * kern/misc.c (grub_abort): Print a newline to distinguish
46194 the message.
46195
46196 * kern/main.c (grub_main): Call grub_machine_set_prefix and
46197 grub_set_root_dev after loading modules. This is necessary when
46198 setting a prefix depends on modules.
46199
46200 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
46201 (grub_efi_print_device_path): ... this.
46202 (grub_efi_get_filename): New prototype.
46203 (grub_efi_set_prefix): Likewise.
46204
46205 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
46206 and grub/disk.h.
46207 (grub_efidisk_get_device_handle): New prototype.
46208 (grub_efidisk_get_device_name): Likewise.
46209
46210 * include/grub/mm.h: Include config.h.
46211 (MM_DEBUG): Removed.
46212 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
46213 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
46214 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
46215 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
46216 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
46217 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
46218 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
46219 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
46220 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
46221
46222 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
46223
46224 * disk/efi/efidisk.c: Include grub/partition.h.
46225 (iterate_child_devices): New function.
46226 (add_device): First, compare only last device path nodes, so that
46227 devices are sorted by the types.
46228 (grub_efidisk_get_device_handle): New function.
46229 (grub_efidisk_get_device_name): Likewise.
46230
46231 * configure.ac (--enable-mm-debug): New option to enable the
46232 memory manager debugging feature. This makes the binary much
46233 bigger, so is disabled by default.
46234
9cacaa17 462352006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
46236
46237 Use grub_abort instead of grub_stop, and grub_exit must be
46238 define in each architecture now. Also, this change adds support
46239 for EFI disks.
f19dbdb7 46240
9cacaa17 46241 * util/i386/pc/grub-probefs.c: Include grub/term.h.
46242 (grub_getkey): New function.
46243 (grub_term_get_current): Likewise.
46244
46245 * util/i386/pc/grub-setup.c: Include grub/term.h.
46246 (grub_getkey): New function.
46247 (grub_term_get_current): Likewise.
46248
46249 * util/misc.c (grub_stop): Renamed to ...
46250 (grub_exit): ... this.
46251
46252 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
46253 (grub_exit): ... this.
46254 (grub_machine_init): Use grub_abort instead of abort.
46255 (grub_stop): Removed.
46256
46257 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
46258 abort.
46259
46260 * kern/i386/pc/startup.S (grub_exit): New function.
46261 (cold_reboot): New label.
46262
46263 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
46264 (grub_efi_init): Call grub_efidisk_init.
46265 (grub_efi_fini): Call grub_efidisk_fini.
46266
46267 * kern/efi/efi.c: Include grub/mm.h.
46268 (grub_efi_console_control_guid): Renamed to ...
46269 (console_control_guid): ... this.
46270 (grub_efi_loaded_image_guid): Renamed to ...
46271 (loaded_image_guid): ... this.
46272 (grub_efi_locate_handle): New function.
46273 (grub_efi_open_protocol): Likewise.
46274 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
46275 GRUB_EFI_CONSOLE_CONTROL_GUID.
46276 (grub_efi_exit): Removed.
46277 (grub_stop): Likewise.
46278 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
46279 (grub_exit): New function.
46280 (grub_print_device_path): Likewise.
46281
46282 * kern/rescue.c (grub_rescue_cmd_exit): New function.
46283 (grub_enter_rescue_mode): Register "exit".
46284
46285 * kern/misc.c (grub_real_dprintf): A cosmetic change.
46286 (grub_abort): New function.
46287
46288 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
46289
46290 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
46291
46292 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
46293
46294 * include/grub/efi/efi.h (grub_efi_exit): Removed.
46295 (grub_print_device_path): New prototype.
46296 (grub_efi_locate_handle): Likewise.
46297 (grub_efi_open_protocol): Likewise.
46298
46299 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
46300 * disk/efi/efidisk.c: Likewise.
46301
46302 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
46303
46304 * include/grub/efi/console_control.h
46305 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
46306
46307 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
46308 last 8 bytes as an array.
46309 (GRUB_EFI_DISK_IO_GUID): New macro.
46310 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
46311 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
46312 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
46313 grub_uint8_t.
46314 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
46315 (struct grub_efi_device_path): Rename the member "sub_type" to
46316 "subtype".
46317 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
46318 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
46319 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
46320 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
46321 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
46322 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
46323 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
46324 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
46325 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
46326 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
46327 (struct grub_efi_pci_device_path): New structure.
46328 (grub_efi_pci_device_path_t): New type.
46329 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
46330 (struct grub_efi_pccard_device_path): New structure.
46331 (grub_efi_pccard_device_path_t): New type.
46332 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
46333 (struct grub_efi_memory_mapped_device_path): New structure.
46334 (grub_efi_memory_mapped_device_path_t): New type.
46335 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
46336 (struct grub_efi_vendor_device_path): New structure.
46337 (grub_efi_vendor_device_path_t): New type.
46338 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
46339 (struct grub_efi_controller_device_path): New structure.
46340 (grub_efi_controller_device_path_t): New type.
46341 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
46342 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
46343 (struct grub_efi_acpi_device_path): New structure.
46344 (grub_efi_acpi_device_path_t): New type.
46345 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
46346 (struct grub_efi_expanded_acpi_device_path): New structure.
46347 (grub_efi_expanded_acpi_device_path_t): New type.
46348 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
46349 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
46350 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
46351 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
46352 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
46353 (struct grub_efi_atapi_device_path): New structure.
46354 (grub_efi_atapi_device_path_t): New type.
46355 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
46356 (struct grub_efi_fibre_channel_device_path): New structure.
46357 (grub_efi_fibre_channel_device_path_t): New type.
46358 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
46359 (struct grub_efi_1394_device_path): New structure.
46360 (grub_efi_1394_device_path_t): New type.
46361 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
46362 (struct grub_efi_usb_device_path): New structure.
46363 (grub_efi_usb_device_path_t): New type.
46364 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
46365 (struct grub_efi_usb_class_device_path): New structure.
46366 (grub_efi_usb_class_device_path_t): New type.
46367 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
46368 (struct grub_efi_i2o_device_path): New structure.
46369 (grub_efi_i2o_device_path_t): New type.
46370 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
46371 (struct grub_efi_mac_address_device_path): New structure.
46372 (grub_efi_mac_address_device_path_t): New type.
46373 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
46374 (struct grub_efi_ipv4_device_path): New structure.
46375 (grub_efi_ipv4_device_path_t): New type.
46376 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
46377 (struct grub_efi_ipv6_device_path): New structure.
46378 (grub_efi_ipv6_device_path_t): New type.
46379 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
46380 (struct grub_efi_infiniband_device_path): New structure.
46381 (grub_efi_infiniband_device_path_t): New type.
46382 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
46383 (struct grub_efi_uart_device_path): New structure.
46384 (grub_efi_uart_device_path_t): New type.
46385 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
46386 (struct grub_efi_vendor_messaging_device_path): New structure.
46387 (grub_efi_vendor_messaging_device_path_t): New type.
46388 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
46389 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
46390 (struct grub_efi_hard_drive_device_path): New structure.
46391 (grub_efi_hard_drive_device_path_t): New type.
46392 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
46393 (struct grub_efi_cdrom_device_path): New structure.
46394 (grub_efi_cdrom_device_path_t): New type.
46395 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
46396 (struct grub_efi_vendor_media_device_path): New structure.
46397 (grub_efi_vendor_media_device_path_t): New type.
46398 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
46399 (struct grub_efi_file_path_device_path): New structure.
46400 (grub_efi_file_path_device_path_t): New type.
46401 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
46402 (struct grub_efi_protocol_device_path): New structure.
46403 (grub_efi_protocol_device_path_t): New type.
46404 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
46405 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
46406 (struct grub_efi_bios_device_path): New structure.
46407 (grub_efi_bios_device_path_t): New type.
46408 (struct grub_efi_disk_io): New structure.
46409 (grub_efi_disk_io_t): New type.
46410 (struct grub_efi_block_io_media): New structure.
46411 (grub_efi_block_io_media_t): New type.
46412 (struct grub_efi_block_io): New structure.
46413 (grub_efi_block_io_t): New type.
46414
46415 * include/grub/misc.h (grub_stop): Removed.
46416 (grub_exit): New prototype.
46417 (grub_abort): Likewise.
46418
46419 * include/grub/disk.h (enum grub_disk_dev_id): Added
46420 GRUB_DISK_DEVICE_EFIDISK_ID.
46421
46422 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
46423 disk/efi/efidisk.c.
46424 (kernel_syms.lst): Remove the target if an error occurs.
46425
49986a9f 464262006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
46427
46428 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
46429 as it was simply too buggy.
46430
970d3b8a 464312006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
46432
46433 * kern/misc.c (grub_lltoa): New function.
46434 (grub_vsprintf): Added support for the long long suffix,
46435 i.e. "ll".
46436
ff04ec24 464372006-04-20 Hollis Blanchard <hollis@penguinppc.org>
46438
46439 * Makefile.in (LDFLAGS): Add variable.
46440 (LD): Remove variable.
46441 * configure.ac: Add -m32 to LDFLAGS.
46442 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
46443 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
46444 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
46445 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
46446 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
46447 variables.
46448 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
46449 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
46450 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
46451
37e5e1a4 464522006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
46453
46454 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
46455 length for unknown glyph.
46456
c352d8dd 464572006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
46458
2eab1c0d 46459 Add support for pre-loaded modules into the EFI port.
f19dbdb7 46460
2eab1c0d 46461 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
46462 completely. Accept one more argument DIR. The caller has changed.
46463
46464 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
46465
46466 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
46467 (grub_efi_loaded_image_guid): New variable.
46468 (grub_efi_get_loaded_image): New function.
46469 (grub_arch_modules_addr): Likewise.
46470
46471 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
46472 prototype.
46473
46474 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
46475 (struct grub_efi_loaded_image): New structure.
46476 (grub_efi_loaded_image_t): New type.
46477
464782006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46479
c352d8dd 46480 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
46481 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
46482 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
46483
6d01d6b4 464842006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
46485
46486 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
46487
976a4ea0 464882006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
46489
46490 * DISTLIST: Added include/grub/efi/console.h,
46491 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
46492 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
46493
46494 * include/grub/efi/console.h: New file.
46495 * include/grub/efi/time.h: Likewise.
46496 * include/grub/i386/efi/kernel.h: Likewise.
46497 * kern/efi/init.c: Likewise.
46498 * kern/efi/mm.c: Likewise.
46499 * term/efi/console.c: Likewise.
f19dbdb7 46500
976a4ea0 46501 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
46502 (grub_stop): Removed.
46503 (grub_get_rtc): Likewise.
46504 (grub_machine_init): Simply call grub_efi_init.
46505 (grub_machine_fini): Call grub_efi_fini.
46506
46507 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
46508 (grub_efi_output_string): Removed.
46509 (grub_efi_stall): New function.
46510 (grub_stop): Likewise.
46511 (grub_get_rtc): Likewise.
46512
46513 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
46514 (grub_efi_stall): New prototype.
46515 (grub_efi_allocate_pages): Likewise.
46516 (grub_efi_free_pages): Likewise.
46517 (grub_efi_get_memory_map): Likewise.
46518 (grub_efi_mm_init): Likewise.
46519 (grub_efi_mm_fini): Likewise.
46520 (grub_efi_init): Likewise.
46521 (grub_efi_fini): Likewise.
46522
46523 * include/grub/i386/efi/time.h: Do not include
46524 grub/symbol.h. Include grub/efi/time.h.
46525 (GRUB_TICKS_PER_SECOND): Removed.
46526 (grub_get_rtc): Likewise.
46527
46528 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
46529 Added padding. The EFI spec is buggy.
46530 (GRUB_EFI_BLACK): New macro.
46531 (GRUB_EFI_BLUE): Likewise.
46532 (GRUB_EFI_GREEN): Likewise.
46533 (GRUB_EFI_CYAN): Likewise.
46534 (GRUB_EFI_RED): Likewise.
46535 (GRUB_EFI_MAGENTA): Likewise.
46536 (GRUB_EFI_BROWN): Likewise.
46537 (GRUB_EFI_LIGHTGRAY): Likewise.
46538 (GRUB_EFI_BRIGHT): Likewise.
46539 (GRUB_EFI_DARKGRAY): Likewise.
46540 (GRUB_EFI_LIGHTBLUE): Likewise.
46541 (GRUB_EFI_LIGHTGREEN): Likewise.
46542 (GRUB_EFI_LIGHTCYAN): Likewise.
46543 (GRUB_EFI_LIGHTRED): Likewise.
46544 (GRUB_EFI_LIGHTMAGENTA): Likewise.
46545 (GRUB_EFI_YELLOW): Likewise.
46546 (GRUB_EFI_WHITE): Likewise.
46547 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
46548 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
46549 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
46550 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
46551 (GRUB_EFI_BACKGROUND_RED): Likewise.
46552 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
46553 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
46554 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
46555 (GRUB_EFI_TEXT_ATTR): Likewise.
46556
46557 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
46558 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
46559 (kernel_mod_HEADERS): Added efi/time.h.
46560
83709125 465612006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
46562
46563 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
46564 include/grub/efi/api.h, include/grub/efi/console_control.h,
46565 include/grub/efi/efi.h, include/grub/efi/pe32.h,
46566 include/grub/i386/efi/time.h, kern/efi/efi.c,
46567 kern/i386/efi/init.c, kern/i386/efi/startup.S,
46568 and util/i386/efi/grub-mkimage.c.
46569
46570 * Makefile.in (RMKFILES): Added i386-efi.rmk.
46571
46572 * genmk.rb (PModule#rule): Do not export symbols if
46573 #{prefix}_EXPORTS is set to "no".
46574
46575 * conf/i386-efi.mk: New file.
46576 * conf/i386-efi.rmk: Likewise.
46577 * include/grub/efi/api.h: Likewise.
46578 * include/grub/efi/console_control.h: Likewise.
46579 * include/grub/efi/efi.h: Likewise.
46580 * include/grub/efi/pe32.h: Likewise.
46581 * include/grub/i386/efi/time.h: Likewise.
46582 * kern/efi/efi.c: Likewise.
46583 * kern/i386/efi/init.c: Likewise.
46584 * kern/i386/efi/startup.S: Likewise.
46585 * util/i386/efi/grub-mkimage.c: Likewise.
46586
465872006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 46588
46589 * include/grub/script.h: Include <grub/parser.h> and
46590 "grub_script.tab.h".
46591 (struct grub_lexer_param): New struct.
46592 (struct grub_parser_param): Likewise.
46593 (grub_script_create_arglist): Pass the state in an argument.
46594 (grub_script_add_arglist): Likewise.
46595 (grub_script_create_cmdline): Likewise.
46596 (grub_script_create_cmdblock): Likewise.
46597 (grub_script_create_cmdif): Likewise.
46598 (grub_script_create_cmdmenu): Likewise.
46599 (grub_script_add_cmd): Likewise.
46600 (grub_script_arg_add): Likewise.
46601 (grub_script_lexer_ref): Likewise.
46602 (grub_script_lexer_deref): Likewise.
46603 (grub_script_lexer_record_start): Likewise.
46604 (grub_script_lexer_record_stop): Likewise.
46605 (grub_script_mem_record): Likewise.
46606 (grub_script_mem_record_stop): Likewise.
46607 (grub_script_malloc): Likewise.
46608 (grub_script_yylex): Likewise.
46609 (grub_script_yyparse): Likewise.
46610 (grub_script_yyerror): Likewise.
46611 (grub_script_yylex): Likewise.
46612 (grub_script_lexer_init): Return the state.
46613
46614 * normal/lexer.c (grub_script_lexer_state): Removed variable.
46615 (grub_script_lexer_done): Likewise.
46616 (grub_script_lexer_getline): Likewise.
46617 (grub_script_lexer_refs): Likewise.
46618 (script): Likewise.
46619 (newscript): Likewise.
46620 (record): Likewise.
46621 (recording): Likewise.
46622 (recordpos): Likewise.
46623 (recordlen): Likewise.
46624 (grub_script_lexer_init): Return the state instead of setting
46625 global variables.
46626 (grub_script_lexer_ref): Use the newly added argument for state
46627 instead of globals.
46628 (grub_script_lexer_deref): Likewise.
46629 (grub_script_lexer_record_start): Likewise.
46630 (grub_script_lexer_record_stop): Likewise.
46631 (recordchar): Likewise.
46632 (nextchar): Likewise.
46633 (grub_script_yylex2): Likewise.
46634 (grub_script_yylex): Likewise.
46635 (grub_script_yyerror): Likewise.
46636
46637 * normal/parser.y (func_mem): Removed variable.
46638 (menu_entry): Likewise.
46639 (err): Likewise.
46640 (%lex-param): New parser option.
46641 (%parse-param): Likewise.
46642 (script): Always return the AST.
46643 (argument): Pass the state around.
46644 (arguments): Likewise.
46645 (grubcmd): Likewise.
46646 (commands): Likewise.
46647 (function): Likewise.
46648 (menuentry): Likewise.
46649 (if_statement): Likewise.
46650 (if): Likewise.
46651
46652 * normal/script.c (grub_script_memused): Removed variable.
46653 (grub_script_parsed): Likewise.
46654 (grub_script_malloc): Added a state argument. Use that instead of
46655 global variables.
46656 (grub_script_mem_record): Likewise.
46657 (grub_script_mem_record_stop): Likewise.
46658 (grub_script_arg_add): Likewise.
46659 (grub_script_add_arglist): Likewise.
46660 (grub_script_create_cmdline): Likewise.
46661 (grub_script_create_cmdif): Likewise.
46662 (grub_script_create_cmdmenu): Likewise.
46663 (grub_script_add_cmd): Likewise.
46664 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 46665
e2a8c904 466662006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 46667
46668 * normal/command.c (grub_command_init): Remove the title command.
46669
46670 * normal/lexer.c (grub_script_yylex): Renamed from this...
46671 (grub_script_yylex2): ... to this.
46672 (grub_script_yylex): New function. Temporary
46673 introduced to filter some tokens.
46674 (grub_script_yyerror): Print a newline.
46675
46676 * normal/main.c (read_config_file): Output information about the
46677 lines that contain errors. Wait for a key after all lines have
46678 been processed. Don't return an empty menu.
46679
46680 * normal/parser.y (func_mem): Don't initialize.
46681 (menu_entry): Likewise.
46682 (err): New variable.
46683 (script): Don't return anything when an error was encountered.
46684 (ws, returns): Removed rules.
46685 (argument): Disabled concatenated variable support.
46686 (arguments): Remove explicit separators.
46687 (grubcmd): Likewise.
46688 (function): Likewise.
46689 (menuentry): Likewise.
46690 (if): Likewise.
46691 (commands): Likewise. Add error handling.
46692
46693 * normal/script.c (grub_script_create_cmdline): If
46694 `grub_script_parsed' is 0, assume the parser encountered an error.
46695
c9a86192 466962006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
46697
46698 * configure.ac: Add support for EFI. Fix the typo
46699 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
46700
70f3b243 467012006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
46702
46703 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
46704 foreign multibyte characters should be shown correctly.
46705
65f201ad 467062006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
46707
46708 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
46709 calculation.
46710 (read_config_file): Made it to close file before returning.
46711
b4b93674 467122006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
46713
46714 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
46715 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
46716 video/i386/pc/vbefill.c.
46717
46718 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
46719 video/i386/pc/vbefill.c.
46720
46721 * include/grub/video.h (grub_video_blit_format): New enum.
46722 (grub_video_mode_info): Added new member blit_format.
46723 (grub_video_get_blit_format): New function prototype.
46724
46725 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
46726 function prototype.
46727 (grub_video_vbe_map_rgb): Likewise.
46728 (grub_video_vbe_unmap_color): Likewise.
46729
46730 * include/grub/i386/pc/vbeblit.h: New file.
46731
46732 * include/grub/i386/pc/vbefill.h: New file.
46733
46734 * video/video.c (grub_video_get_blit_format): New function.
46735 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
46736 (grub_video_vbe_map_rgb): Likewise.
46737 (grub_video_vbe_unmap_color): Likewise.
46738
46739 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
46740 optimized fills.
46741 (grub_video_vbe_blit_render_target): Changed to use more optimized
46742 blits.
46743 (grub_video_vbe_setup): Added detection for optimized settings.
46744 (grub_video_vbe_create_render_target): Likewise.
46745
46746 * video/i386/pc/vbeblit.c: New file.
46747
46748 * video/i386/pc/vbefill.c: New file.
46749
c2379b9c 467502006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
46751
46752 * font/manager.c (grub_font_get_glyph): Removed font fixup from
46753 here...
46754
46755 * util/unifont2pff.rb: ... and moved it to here. Improved argument
46756 parsing to support both hex and dec ranges. If filename was missing
46757 show usage information.
46758
bd0d7896 467592006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
46760
46761 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
46762 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
46763
46764 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
46765 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
46766 (video_mod_SOURCES): Added.
46767 (video_mod_CFLAGS): Likewise.
46768 (video_mod_LDFLAGS): Likewise.
46769 (gfxterm_mod_SOURCES): Likewise.
46770 (gfxterm_mod_CFLAGS): Likewise.
46771 (gfxterm_mod_LDFLAGS): Likewise.
46772 (videotest_mod_SOURCES): Likewise.
46773 (videotest_mod_CFLAGS): Likewise.
46774 (videotest_mod_LDFLAGS): Likewise.
46775 (vesafb_mod_SOURCES): Removed.
46776 (vesafb_mod_CFLAGS): Likewise.
46777 (vesafb_mod_LDFLAGS): Likewise.
46778 (vga_mod_SOURCES): Likewise.
46779 (vga_mod_CFLAGS): Likewise.
46780 (vga_mod_LDFLAGS): Likewise.
46781
46782 * commands/videotest.c: New file.
46783
46784 * font/manager.c (fill_with_default_glyph): Modified to use
46785 grub_font_glyph.
46786 (grub_font_get_glyph): Likewise.
46787 (fontmanager): Renamed from this...
46788 (font_manager): ... to this.
46789
46790 * include/grub/font.h (grub_font_glyph): Added new structure.
46791 (grub_font_get_glyph): Modified to use grub_font_glyph.
46792
46793 * include/grub/misc.h (grub_abs): Added as inline function.
46794
46795 * include/grub/video.h: New file.
46796
46797 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
46798 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
46799 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
46800 (grub_vbe_get_controller_info): Renamed from this...
46801 (grub_vbe_bios_get_controller_info): ... to this.
46802 (grub_vbe_get_mode_info): Renamed from this...
46803 (grub_vbe_bios_get_mode_info): ... to this.
46804 (grub_vbe_set_mode): Renamed from this...
46805 (grub_vbe_bios_set_mode): ... to this.
46806 (grub_vbe_get_mode): Renamed from this...
46807 (grub_vbe_bios_get_mode): ... to this.
46808 (grub_vbe_set_memory_window): Renamed from this...
46809 (grub_vbe_bios_set_memory_window): ... to this.
46810 (grub_vbe_get_memory_window): Renamed from this...
46811 (grub_vbe_bios_get_memory_window): ... to this.
46812 (grub_vbe_set_scanline_length): Renamed from this...
46813 (grub_vbe_set_scanline_length): ... to this.
46814 (grub_vbe_get_scanline_length): Renamed from this...
46815 (grub_vbe_bios_get_scanline_length): ... to this.
46816 (grub_vbe_set_display_start): Renamed from this...
46817 (grub_vbe_bios_set_display_start): ... to this.
46818 (grub_vbe_get_display_start): Renamed from this...
46819 (grub_vbe_bios_get_display_start): ... to this.
46820 (grub_vbe_set_palette_data): Renamed from this...
46821 (grub_vbe_bios_set_palette_data): ... to this.
46822 (grub_vbe_set_pixel_rgb): Removed.
46823 (grub_vbe_set_pixel_index): Likewise.
46824
46825 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
46826 from this...
46827 (grub_vbe_bios_get_controller_info): ... to this.
46828 (grub_vbe_get_mode_info): Renamed from this...
46829 (grub_vbe_bios_get_mode_info): ... to this.
46830 (grub_vbe_set_mode): Renamed from this...
46831 (grub_vbe_bios_set_mode): ... to this.
46832 (grub_vbe_get_mode): Renamed from this...
46833 (grub_vbe_bios_get_mode): ... to this.
46834 (grub_vbe_set_memory_window): Renamed from this...
46835 (grub_vbe_bios_set_memory_window): ... to this.
46836 (grub_vbe_get_memory_window): Renamed from this...
46837 (grub_vbe_bios_get_memory_window): ... to this.
46838 (grub_vbe_set_scanline_length): Renamed from this...
46839 (grub_vbe_set_scanline_length): ... to this.
46840 (grub_vbe_get_scanline_length): Renamed from this...
46841 (grub_vbe_bios_get_scanline_length): ... to this.
46842 (grub_vbe_set_display_start): Renamed from this...
46843 (grub_vbe_bios_set_display_start): ... to this.
46844 (grub_vbe_get_display_start): Renamed from this...
46845 (grub_vbe_bios_get_display_start): ... to this.
46846 (grub_vbe_set_palette_data): Renamed from this...
46847 (grub_vbe_bios_set_palette_data): ... to this.
46848 (grub_vbe_bios_get_controller_info): Fixed problem with registers
46849 getting corrupted after calling it. Added more pushes and pops.
46850 (grub_vbe_bios_set_mode): Likewise.
46851 (grub_vbe_bios_get_mode): Likewise.
46852 (grub_vbe_bios_get_memory_window): Likewise.
46853 (grub_vbe_bios_set_scanline_length): Likewise.
46854 (grub_vbe_bios_get_scanline_length): Likewise.
46855 (grub_vbe_bios_get_display_start): Likewise.
46856 (grub_vbe_bios_set_palette_data): Likewise.
46857
46858 * normal/cmdline.c (cl_set_pos): Refresh the screen.
46859 (cl_insert): Likewise.
46860 (cl_delete): Likewise.
46861
46862 * term/gfxterm.c: New file.
46863
46864 * term/i386/pc/vesafb.c: Removed file.
46865
46866 * video/video.c: New file.
46867
46868 * video/i386/pc/vbe.c (real2pm): Added new function.
46869 (grub_video_vbe_draw_pixel): Likewise.
46870 (grub_video_vbe_get_video_ptr): Likewise.
46871 (grub_video_vbe_get_pixel): Likewise
46872 (grub_video_vbe_init): Likewise.
46873 (grub_video_vbe_fini): Likewise.
46874 (grub_video_vbe_setup): Likewise.
46875 (grub_video_vbe_get_info): Likewise.
46876 (grub_video_vbe_set_palette): Likewise.
46877 (grub_video_vbe_get_palette): Likewise.
46878 (grub_video_vbe_set_viewport): Likewise.
46879 (grub_video_vbe_get_viewport): Likewise.
46880 (grub_video_vbe_map_color): Likewise.
46881 (grub_video_vbe_map_rgb): Likewise.
46882 (grub_video_vbe_map_rgba): Likewise.
46883 (grub_video_vbe_unmap_color): Likewise.
46884 (grub_video_vbe_fill_rect): Likewise.
46885 (grub_video_vbe_blit_glyph): Likewise.
46886 (grub_video_vbe_blit_bitmap): Likewise.
46887 (grub_video_vbe_blit_render_target): Likewise.
46888 (grub_video_vbe_scroll): Likewise.
46889 (grub_video_vbe_swap_buffers): Likewise.
46890 (grub_video_vbe_create_render_target): Likewise.
46891 (grub_video_vbe_delete_render_target): Likewise.
46892 (grub_video_vbe_set_active_render_target): Likewise.
46893 (grub_vbe_set_pixel_rgb): Remove function.
46894 (grub_vbe_set_pixel_index): Likewise.
46895 (index_color_mode): Remove static variable.
46896 (active_mode): Likewise.
46897 (framebuffer): Likewise.
46898 (bytes_per_scan_line): Likewise.
46899 (grub_video_vbe_adapter): Added new static variable.
46900 (framebuffer): Likewise.
46901 (render_target): Likewise.
46902 (initial_mode): Likewise.
46903 (mode_in_use): Likewise.
46904 (mode_list): Likewise.
46905
5f97350b 469062006-03-10 Marco Gerards <marco@gnu.org>
46907
46908 * configure.ac (AC_INIT): Bumped to 1.93.
46909
46910 * DISTLIST: Added `include/grub/hfs.h'.
46911
a3c5c6f8 469122006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
46913
46914 * boot/i386/pc/boot.S (general_error): Before looping, try INT
46915 18H, which might help the BIOS falling back to next boot media.
46916
6de53d26 469172006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
46918
46919 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
46920 Poe Chen <poe.poechen@gmail.com>.
46921
77c4a393 469222006-01-17 Marco Gerards <marco@gnu.org>
46923
46924 * include/grub/normal.h: Include <grub/script.h>.
46925 (grub_command_list): Removed struct.
46926 (grub_command_list_t): Removed type.
46927 (grub_menu_entry): Remove members `num' and `command_list'. Add
46928 members `commands' and `sourcecode'.
46929 * include/grub/script.h: Add inclusion guards.
46930 (grub_script_cmd_menuentry): New struct.
46931 (grub_script_execute_menuentry): New prototype.
46932 (grub_script_lexer_record_start): Likewise.
46933 (grub_script_lexer_record_stop): Likewise.
46934 * normal/execute.c (grub_script_execute_menuentry): New function.
46935 * normal/lexer.c (record, recording, recordpos, recordlen): New
46936 variables.
46937 (grub_script_lexer_record_start): New function.
46938 (grub_script_lexer_record_stop): Likewise.
46939 (recordchar): Likewise.
46940 (nextchar): Likewise.
46941 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
46942 2048 as the buffer size. Add the tokens `menuentry' and `@'.
46943 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
46944 (current_menu): New variable.
46945 (free_menu): Mainly rewritten.
46946 (grub_normal_menu_addentry): New function.
46947 (read_config_file): Rewritten.
46948 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 46949 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 46950 the menu entry.
46951 (run): Mainly rewritten.
46952 * normal/parser.y (menu_entry): New variable.
46953 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
46954 (menuentry): New rule.
46955 (command): Add `menuentry'.
46956 (if_statement): Allow additional returns before `fi'.
46957 * normal/script.c (grub_script_create_cmdmenu): New function.
46958
144f1f98 469592006-01-03 Marco Gerards <marco@gnu.org>
46960
46961 * INSTALL: GNU Bison is required.
46962 * configure.ac: Rewritten the test to detect Bison.
46963 * Makefile.in (YACC): New variable. Reported by Xun Sun
46964 <xun.sun.cn@gmail.com>.
46965
af4b2d89 469662006-01-03 Marco Gerards <marco@gnu.org>
46967
46968 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
46969 the HFS+ filesystem to filesystem blocks.
46970 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
46971 GCC warning is silenced.
46972
15643b71 469732006-01-03 Marco Gerards <marco@gnu.org>
46974
46975 * partmap/apple.c (apple_partition_map_iterate): Convert the data
46976 read from disk from big endian to host byte order.
46977
00905879 469782006-01-03 Hollis Blanchard <hollis@penguinppc.org>
46979
46980 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
46981 documentation.
46982 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
46983 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
46984 embedded HFS+ filesystem.
46985 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
46986 (grub_hfs_sblock): Move from here...
46987 * include/grub/hfs.h: To here... New file.
46988 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
46989 documentation.
46990 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
46991 New macros.
46992 (grub_hfsplus_volheader): Change type of member `magic' to
46993 `grub_uint16_t'.
46994 (grub_hfsplus_data): Add new member `embedded_offset'.
46995 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
46996 returned block.
46997 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
46998 Calculate the offset.
46999
8899bc3e 470002005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47001
47002 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
47003 Removed.
47004 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
47005
ae8c0277 470062005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47007
47008 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
47009 ENV->NAME is NULL after allocating ENV->VALUE.
47010
07084456 470112005-12-25 Marco Gerards <marco@gnu.org>
47012
47013 * kern/env.c (grub_env_set): Rewritten the error handling code.
47014
4750f5f1 470152005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47016
47017 * geninit.sh: Made more robust, and more portable.
47018
50214199 470192005-12-25 Marco Gerards <marco@gnu.org>
47020
47021 Add support for Apple HFS+ filesystems.
f19dbdb7 47022
50214199 47023 * fs/hfsplus.c: New file.
47024
47025 * DISTLIST: Added `fs/hfsplus.c'.
47026
47027 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
47028 (hfsplus_mod_SOURCES): New variable.
47029 (hfsplus_mod_CFLAGS): Likewise.
47030 (hfsplus_mod_LDFLAGS): Likewise.
47031 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
47032 (grub_setup_SOURCES): Likewise.
47033 (grub_mkdevicemap_SOURCES): Likewise.
47034 (grub_emu_SOURCES): Likewise.
47035 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47036
47037 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
47038
47039 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
47040
befaed6c 470412005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47042
47043 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
47044 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
47045 include/grub/parser.h, include/grub/script.h, kern/parser.c,
47046 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
47047 normal/lexer.c, normal/parser.y, normal/script.c, and
47048 partmap/gpt.c.
47049 Removed kern/sparc64/cache.c.
47050
47051 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
47052 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
47053 grub_emu_init.c.
47054
47055 * configure.ac (AC_INIT): Bumped to 1.92.
47056
6a124103 470572005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
47058
47059 * kern/err.c (grub_error_push): Added new function to support error
47060 stacks.
47061 (grub_error_pop): Likewise.
47062 (grub_error_stack_items): New local variable to support error stacks.
47063 (grub_error_stack_pos): Likewise.
47064 (grub_error_stack_assert): Likewise.
47065 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
47066 stack depth.
47067 (grub_print_error): Added support to print errors from error stack.
47068
47069 * include/grub/err.h (grub_error_push): Added function prototype.
47070 (grub_error_pop): Likewise.
47071
be973c1b 470722005-12-09 Hollis Blanchard <hollis@penguinppc.org>
47073
47074 * configure.ac: Accept `powerpc64' as host_cpu.
47075 (amd64): Rename to `biarch32'.
47076
47077 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
47078 non-cacheline-aligned addresses.
47079
47080 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
47081 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
47082 if `size' is non-zero.
47083
b04216ab 470842005-12-03 Marco Gerards <mgerards@xs4all.nl>
47085
47086 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
47087 and `cd' to make sure the filename is not prefixed with a
47088 directory name.
47089 (pkgdata_MODULES): Add `gpt.mod'.
47090 (gpt_mod_SOURCES): New variable.
47091 (gpt_mod_CFLAGS): Likewise.
47092 (gpt_mod_LDFLAGS): Likewise.
47093
47094 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
47095
47096 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
47097 New macro.
47098
47099 * partmap/gpt.c: New file.
47100
47101 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
47102 GPT partition map is detected.
47103
41730ed9 471042005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
47105
47106 * commands/i386/pc/play.c: New file.
47107 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
47108 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
47109 macros.
f19dbdb7 47110
95dc3643 471112005-11-27 Marco Gerards <mgerards@xs4all.nl>
47112
47113 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
47114 ((unused))' to silence gcc warning.
47115
1569ec51 471162005-11-26 Hollis Blanchard <hollis@penguinppc.org>
47117
47118 * configure.ac: Correct `AC_PROG_YACC' test.
47119
9abde152 471202005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47121
47122 * util/powerpc/ieee1275/grub-install.in: Run the mount point
47123 check before installing files.
47124
44b83271 471252005-11-22 Mike Small <smallm@panix.com>
47126
47127 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
47128 number regex so multidigit numbers are recognized correctly.
47129
471302005-11-22 Mike Small <smallm@panix.com>
47131
47132 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
47133 debugging message before attempting to claim memory.
47134 (grub_rescue_cmd_initrd): Add a claim debugging message and try
47135 multiple addresses in case of failure.
47136
9c12956b 471372005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47138
47139 * term/tparm.c (get_space): Remove empty `if' statement.
47140
47141 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
47142
47143 * kern/parser.c (check_varstate): Rename `state' to 's'.
47144
aeaf81d9 471452005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47146
47147 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
47148 variable definitions to the beginning of each function. Sort stack
47149 variables by size.
47150 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
47151 `buf' argument to `char *'.
47152
79bbb63f 471532005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47154
47155 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
47156 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 47157 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 47158 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47159 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47160 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47161 configfile.mod, search.mod, gzio.mod and test.mod.
47162 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47163 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47164 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47165 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47166 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47167 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47168 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47169 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47170 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47171 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47172 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47173 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47174 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47175 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47176 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47177 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47178 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47179 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47180 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47181 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47182 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47183 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47184 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
47185
47186 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
47187 `grep --include'.
47188 (pkgdata_MODULES): Add test.mod.
47189
233b1628 471902005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47191
47192 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
47193 appending to variables with "+=".
47194 (PModule): Use full pathname to generate *.lst filenames.
47195
47196 * Makefile.in: Fixed list rules moved from genmk.rb.
47197 (.DELETE_ON_ERROR): New special target.
47198 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
47199
47200 * conf/i386-pc.rmk: Include conf/common.mk.
47201 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 47202 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 47203 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47204 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47205 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47206 configfile.mod, search.mod, gzio.mod and test.mod.
47207 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47208 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47209 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47210 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47211 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47212 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47213 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47214 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47215 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47216 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47217 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47218 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47219 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47220 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47221 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47222 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47223 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47224 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47225 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47226 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47227 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47228 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47229 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
47230 here...
47231 * conf/common.rmk: ... to here. New file.
47232
47233 * conf/common.mk: New file.
47234
16f820c8 472352005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
47236
47237 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
47238 (grub_script.tab.c): ... here.
47239
47240 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
47241 (grub_script.tab.c): ... here.
47242
47243 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
47244 (grub_script.tab.c): ... here.
47245
47246 * normal/command.c (grub_command_find): Fixed a memory leak of
47247 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
47248
63ba1554 472492005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47250
47251 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
47252 "@" which marks the start of a comment on ARM.
47253 (VARIABLE): Likewise.
47254
7f67dc13 472552005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47256
79bbb63f 47257 Add support for Linux/ADFS partition tables.
7f67dc13 47258
47259 * partmap/acorn.c: New file.
47260
47261 * include/grub/acorn_filecore.h: Likewise.
47262
47263 * DISTLIST: Added `partmap/acorn.c' and
47264 `include/grub/acorn_filecore.h'.
f19dbdb7 47265
7f67dc13 47266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47267 `partmap/acorn.c'.
47268 (pkgdata_MODULES): Add `acorn.mod'.
47269 (acorn_mod_SOURCES): New variable.
47270 (acorn_mod_CFLAGS): Likewise.
47271
47272 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47273 `partmap/acorn.c'.
47274 (pkgdata_MODULES): Add `acorn.mod'.
47275 (acorn_mod_SOURCES): New variable.
47276 (acorn_mod_CFLAGS): Likewise.
47277
47278 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
47279 (pkgdata_MODULES): Add `acorn.mod'.
47280 (acorn_mod_SOURCES): New variable.
47281 (acorn_mod_CFLAGS): Likewise.
47282 (acorn_mod_LDFLAGS): Likewise.
47283
47284 * include/types.h (grub_disk_addr_t): New typedef.
47285
6d099807 472862005-11-13 Marco Gerards <mgerards@xs4all.nl>
47287
47288 * geninit.sh: New file.
47289
47290 * geninitheader.sh: Likewise.
47291
47292 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
47293 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
47294 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
47295 * commands/configfile.c (grub_configfile_init)
47296 (grub_configfile_fini): Likewise.
47297 * commands/default.c (grub_default_init, grub_default_fini):
47298 Likewise.
47299 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
47300 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
47301 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
47302 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
47303 Likewise.
47304 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
47305 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
47306 Likewise.
47307 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 47308 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 47309 Likewise.
47310 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
47311 Likewise.
fe6b695a 47312 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 47313 Likewise.
47314 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
47315 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
47316 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
47317 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
47318 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
47319 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
47320 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
47321 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
47322 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
47323 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
47324 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
47325 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
47326 * partmap/amiga.c (grub_amiga_partition_map_init)
47327 (grub_amiga_partition_map_fini): Likewise.
47328 * partmap/apple.c (grub_apple_partition_map_init)
47329 (grub_apple_partition_map_fini): Likewise.
47330 * partmap/pc.c (grub_pc_partition_map_init)
47331 (grub_pc_partition_map_fini): Likewise.
47332 * partmap/sun.c (grub_sun_partition_map_init,
47333 grub_sun_partition_map_fini): Likewise.
47334 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
47335 Likewise.
47336
47337 * util/grub-emu.c: Include <grub_modules_init.h>.
47338 (main): Don't initialize and de-initialize any modules directly,
47339 use `grub_init_all' and `grub_fini_all' instead.
47340
47341 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
47342 `grub_vesafb_mod_init'.
47343 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
47344 all users.
47345 * term/i386/pc/vga.c (grub_vga_init): Renamed to
47346 `grub_vga_mod_init'. Updated all users.
47347 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 47348
6d099807 47349 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
47350 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
47351 rules.
47352
47353 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
47354 Generate a function to initialize the module in utilities.
47355 Updated all callers.
47356 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
47357 initialize the module in utilities. Updated all callers.
47358
9046bcf0 473592005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47360
47361 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
47362 escape sequence and a literal ^L to clear the screen.
47363
47364 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
47365 when returning from Open Firmware.
47366
d13ea639 473672005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47368
47369 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
47370 (grub_ofconsole_height): Likewise.
47371 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
47372 manually insert a '\n'.
47373 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
47374 `grub_ofconsole_height'. Return early if these are already set.
47375
a8fcf206 473762005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
47377
47378 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47379 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
47380 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
47381 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
47382 and `normal/script.c'.
47383 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47384 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47385 (test_mod_SOURCES): New variable.
47386 (test_mod_CFLAGS): Likewise.
47387 (test_mod_LDFLAGS): Likewise.
47388 (pkgdata_MODULES): Add `test.mod'.
47389 (grub_script.tab.c): New rule.
47390 (grub_script.tab.h): Likewise.
47391
b6b32745 473922005-11-07 Marco Gerards <mgerards@xs4all.nl>
47393
47394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47395 `commands/test.c', `normal/execute.c', `normal/lexer.c',
47396 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47397 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47398 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47399 (test_mod_SOURCES): New variable.
47400 (test_mod_CFLAGS): Likewise.
47401 (pkgdata_MODULES): Add `test.mod'.
47402 (grub_script.tab.c): New rule.
47403 (grub_script.tab.h): Likewise.
47404
daac212a 474052005-11-06 Marco Gerards <mgerards@xs4all.nl>
47406
47407 Add initial scripting support.
47408
47409 * commands/test.c: New file.
47410 * include/grub/script.h: Likewise.
47411 * normal/execute.c: Likewise.
47412 * normal/function.c: Likewise.
47413 * normal/lexer.c: Likewise.
47414 * normal/parser.y: Likewise.
47415 * normal/script.c: Likewise.
47416
47417 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 47418
daac212a 47419 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
47420 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
47421 `normal/function.c' and `normal/script.c'.
47422 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47423 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 47424 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
47425 variables.
daac212a 47426 (pkgdata_MODULES): Add `test.mod'.
47427 (grub_script.tab.c): New rule.
47428 (grub_script.tab.h): Likewise.
47429
47430 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
47431
47432 * include/grub/normal.h (grub_test_init): New prototype.
47433 (grub_test_fini): Likewise.
f19dbdb7 47434
daac212a 47435 * normal/command.c: Include <grub/script.h>.
47436 (grub_command_execute): Rewritten.
f19dbdb7 47437
daac212a 47438 * util/grub-emu.c (main): Call `grub_test_init' and
47439 `grub_test_fini'.
47440
77500b2b 474412005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47442
47443 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
47444 to 0.
47445 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
47446 there are no pending characters.
47447
e45deb9e 474482005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47449
47450 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
47451 `grub_strndup' to drop device arguments. Replace unnecessary
47452 `grub_strndup' with `grub_strdup'.
47453
4ce32619 474542005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47455
47456 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
47457 `debug' environment variable has been set.
47458
474592005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 47460
4ce32619 47461 * Makefile.in (install-local): Use $(DATA).
47462 (uninstall): Likewise.
47463 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
47464 (sbin_UTILITIES): ... to here.
47465 (sbin_SCRIPTS): New variable.
47466 (grub_install_SOURCES): New variable.
47467 * util/powerpc/ieee1275/grub-install.in: New file.
47468 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
47469 variable.
47470 (add_segments): Call `grub_util_get_path'.
47471
25fe6f03 474722005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
47473
47474 From Timothy Baldwin:
47475 * commands/ls.c (grub_ls_list_files): Close FILE with
47476 grub_file_close.
47477 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
47478
04ccf3ec 474792005-10-24 Marco Gerards <mgerards@xs4all.nl>
47480
47481 * include/grub/parser.h: New file.
47482
47483 * kern/parser.c: Likewise.
47484
47485 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
47486 (grub_setup_SOURCES): Likewise.
47487 (grub_probefs_SOURCES): Likewise.
47488 (grub_emu_SOURCES): Likewise.
47489 (kernel_img_HEADERS): Add `parser.h'.
47490
47491 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
47492 (grub_emu_SOURCES): Add `kern/parser.c'.
47493 (grubof_SOURCES): Likewise.
47494
47495 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
47496 (grubof_SOURCES): Add `kern/parser.c'.
47497
47498 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
47499
47500 * kern/misc.c (grub_split_cmdline): Removed function.
47501
47502 * kern/rescue.c: Include <grub/parser.h>.
47503 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
47504 of `grub_split_cmdline'.
47505
47506 * normal/command.c: Include <grub/parser.h>.
47507 (grub_command_execute): Use `grub_parser_split_cmdline' instead
47508 of `grub_split_cmdline'.
47509
47510 * normal/completion.c: Include <grub/parser.h>.
47511 (cmdline_state): New variable.
47512 (iterate_dir): End the filename with a quote depending on the
47513 command line state.
47514 (get_state): new function.
47515 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
47516 split the arguments and determine the current argument. When the
47517 argument string is not quoted, escape all spaces.
47518
6d8f4b0e 475192005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
47520
47521 * normal/sparc64/setjmp.S: New file.
47522
15cf03ed 475232005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
47524
47525 * include/grub/sparc64/libgcc.h: New file.
47526 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
47527 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
47528 normal/sparc64/setjmp.c.
47529
03e8661a 475302005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
47531
47532 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
47533 * kern/sparc64/cache.S: New file.
47534 * kern/sparc64/cache.c: Removed.
47535 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
47536 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
47537 -mtune=ultrasparc.
47538 (COMMON_LDFLAGS): Add -melf64_sparc.
47539 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
47540 (grubof_SOURCES): Use cache.S instead of cache.c.
47541 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
47542 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
47543 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
47544 commented though.
47545 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
47546 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
47547 (linux_mod_CFLAGS): Commented out.
47548 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
47549 out because module isn't built.
47550 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
47551 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
47552 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
47553 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
47554 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
47555 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
47556 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
47557 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
47558 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
47559 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
47560 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47561 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47562 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
47563 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
47564
34eeec8a 475652005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
47566
47567 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
47568 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
47569 longer, because HFS should not be used on PC.
47570
708367a3 475712005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47572
47573 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
47574 consistently within the loop.
47575
6fa1251a 475762005-10-15 Marco Gerards <mgerards@xs4all.nl>
47577
47578 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
47579 directory can not be read.
47580
4801580b 475812005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47582
47583 * configure.ac (AC_INIT): Increase the version number to 1.91.
47584
47585 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
47586 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
47587 term/i386/pc/serial.c.
47588
219ad426 475892005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47590
47591 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
47592 file size must be permitted.
47593
47594 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
47595 between %ah and %al.
47596
688e5699 475972005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
47598
47599 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
47600 grub_uint64_t.
47601 Call the hook with a NUL-terminated filename.
47602 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
47603 grub_cpu_to_be32.
47604
47605 * kern/term.c (cursor_state): New variable.
47606 (grub_term_set_current): Reset the cursor state on a new
47607 terminal.
47608 (grub_setcursor): Rewritten to use CURSOR_STATE.
47609 (grub_getcursor): New function.
47610
47611 * include/grub/term.h (grub_getcursor): New prototype.
47612
47613 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
47614 integers on ARM. Reported by Timothy Baldwin
47615 <T.E.Baldwin99@members.leeds.ac.uk>.
47616
bb34586c 476172005-10-11 Marco Gerards <mgerards@xs4all.nl>
47618
47619 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
47620 allocated.
47621 (grub_sfs_dir): Likewise.
47622
9a909877 476232005-10-09 Marco Gerards <mgerards@xs4all.nl>
47624
47625 Add support for the SFS filesystem.
47626
47627 * fs/sfs.c: New file.
47628
47629 * DISTLIST: Added `fs/sfs.c'.
47630
47631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
47632 (grub_probefs_SOURCES): Likewise.
47633 (grub_emu_SOURCES): Likewise.
47634 (pkgdata_MODULES): Add `sfs.mod'.
47635 (sfs_mod_SOURCES): New variable.
47636 (sfs_mod_CFLAGS): Likewise.
47637 (sfs_mod_LDFLAGS): Likewise.
47638
47639 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
47640 (pkgdata_MODULES): Add `sfs.mod'.
47641 (sfs_mod_SOURCES): New variable.
47642 (sfs_mod_CFLAGS): Likewise.
47643
47644 * util/grub-emu.c (main): Call `grub_sfs_init' and
47645 `grub_sfs_fini'.
47646
47647 * include/grub/fs.h (grub_sfs_init): New prototype.
47648 (grub_sfs_fini): Likewise.
47649
57bdbde3 476502005-10-07 Marco Gerards <mgerards@xs4all.nl>
47651
47652 Add support for the AFFS filesystem.
47653
47654 * fs/affs.c: New file.
47655
47656 * DISTLIST: Added `fs/affs.c'.
47657
47658 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
47659 (grub_probefs_SOURCES): Likewise.
47660 (grub_emu_SOURCES): Likewise.
47661 (pkgdata_MODULES): Add `affs.mod'.
47662 (affs_mod_SOURCES): New variable.
47663 (affs_mod_CFLAGS): Likewise.
47664 (affs_mod_LDFLAGS): Likewise.
47665
47666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
47667 (pkgdata_MODULES): Add `affs.mod'.
47668 (affs_mod_SOURCES): New variable.
47669 (affs_mod_CFLAGS): Likewise.
47670
47671 * util/grub-emu.c (main): Call `grub_affs_init' and
47672 `grub_affs_fini'.
47673
47674 * include/grub/fs.h (grub_affs_init): New prototype.
47675 (grub_affs_fini): Likewise.
47676
047b67e0 476772005-10-01 Marco Gerards <mgerards@xs4all.nl>
47678
47679 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
47680
59b8208a 476812005-10-01 Marco Gerards <mgerards@xs4all.nl>
47682
47683 * configure.ac: Accept `x86_64' as host_cpu. In that case add
47684 `-m32' to CFLAGS.
47685
47686 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
47687 linking.
f19dbdb7 47688
59b8208a 47689 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
47690 (COMMON_LDFLAGS): New variable.
47691 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
47692 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
47693 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
47694 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
47695 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
47696 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
47697 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
47698 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
47699 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
47700 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
47701 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
47702 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
47703 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
47704 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
47705 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
47706 variables.
47707 (normal_mod_ASFLAGS): Add `-m32'.
47708
47709 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
47710 (grub_host_size_t, grub_host_ssize_t): New types.
47711 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 47712 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 47713 `GRUB_HOST_SIZEOF_VOID_P'.
47714
47715 * include/grub/kernel.h (struct grub_module_header): Type of
47716 member offset changed to `grub_host_off_t'. Type of member size
47717 changed to `grub_host_size_t'.
47718 (struct grub_module_info): Type of member offset changed to
47719 `grub_host_off_t'. Type of member size changed to
47720 `grub_host_size_t'.
47721
b4093103 477222005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
47723
47724 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 47725
b4093103 47726 * kern/i386/pc/startup.S (multiboot_header): New label.
47727 (multiboot_entry): Likewise.
47728 (multiboot_trampoline): Likewise.
47729
47730 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
47731 Increased to 0x4A0.
47732
47733 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
47734 put parentheses after a question mark.
47735 [!GRUB_UTIL] (my_mod): New variable.
47736
47737 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
47738
b2499b29 477392005-09-28 Marco Gerards <mgerards@xs4all.nl>
47740
47741 Adds support for the XFS filesystem. Btrees are not supported
47742 yet.
47743
47744 * fs/xfs.c: New file.
47745
47746 * DISTLIST: Added `fs/xfs.c'.
47747
47748 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
47749 (grub_probefs_SOURCES): Likewise.
47750 (grub_emu_SOURCES): Likewise.
47751 (pkgdata_MODULES): Add `xfs.mod'.
47752 (xfs_mod_SOURCES): New variable.
47753 (xfs_mod_CFLAGS): Likewise.
47754
47755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
47756 (pkgdata_MODULES): Add `xfs.mod'.
47757 (xfs_mod_SOURCES): New variable.
47758 (xfs_mod_CFLAGS): Likewise.
47759
47760 * util/grub-emu.c (main): Call `grub_xfs_init' and
47761 `grub_xfs_fini'.
47762
47763 * include/grub/fs.h (grub_xfs_init): New prototype.
47764 (grub_xfs_fini): Likewise.
47765
f19dbdb7 47766
83d37a62 477672005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
47768
47769 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
47770 color modes, allow greater than 16 colors to be configured as
47771 a default palette.
47772
47d2d65e 477732005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47774
47775 * normal/completion.c (complete_arguments): Add the qualifier
47776 const into OPTIONS.
47777
47778 From Omniflux <omniflux+lists@omniflux.com>:
47779 * include/grub/terminfo.h: New file.
47780 * include/grub/tparm.h: Likewise.
47781 * include/grub/i386/pc/serial.h: Likewise.
47782 * term/terminfo.c: Likewise.
47783 * term/tparm.c: Likewise.
47784 * term/i386/pc/serial.c: Likewise.
47785 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
47786 serial.mod.
47787 (terminfo_mod_SOURCES): New variable.
47788 (terminfo_mod_CFLAGS): Likewise.
47789 (serial_mod_SOURCES): Likewise.
47790 (serial_mod_CFLAGS): Likewise.
47791
48b671ff 477922005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
47793
47794 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
47795 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
47796 and kern/powerpc/ieee1275/cmain.c, respectively.
47797
47798 * boot/powerpc/ieee1275/crt0.S: Moved to ...
47799 * kern/powerpc/ieee1275/crt0.S: ... here.
47800
47801 * boot/powerpc/ieee1275/cmain.c: Moved to ...
47802 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 47803
48b671ff 47804 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
47805 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
47806 instead of boot/powerpc/ieee1275/crt0.S and
47807 boot/powerpc/ieee1275/cmain.c, respectively.
47808
47809 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
47810 sectors. It was not used anyway.
47811
09fc77a7 478122005-08-30 Hollis Blanchard <hollis@penguinppc.org>
47813
47814 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
47815 `unused parameter' warning.
47816
003789c7 478172005-08-30 Hollis Blanchard <hollis@penguinppc.org>
47818
47819 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
47820 function.
47821 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
47822 getcharwidth.
47823
67f44c86 478242005-08-28 Marco Gerards <metgerards@student.han.nl>
47825
47826 * include/grub/normal.h (enum grub_completion_type): Added
47827 `GRUB_COMPLETION_TYPE_ARGUMENT'.
47828
47829 * normal/cmdline.c (print_completion): Handle
47830 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
47831 * normal/menu_entry.c (store_completion): Likewise.
47832
47833 * normal/completion.c (complete_arguments): New function.
47834 (grub_normal_do_completion): Call `complete_arguments' when the
47835 current words start with a dash.
47836
0b5abe02 478372005-08-27 Marco Gerards <metgerards@student.han.nl>
47838
47839 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
47840 `gzio.mod' instead of `io.mod').
47841
d9864ee1 478422005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
47843
47844 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
47845 (DISTDIRS): Added io and video.
47846 Rewrite the search routine to make an output consistently.
47847
47848 * DISTLIST: Added conf/sparc64-ieee1275.mk,
47849 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
47850 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
47851 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
47852 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
47853 util/powerpc/ieee1275/misc.c.
f19dbdb7 47854
d9864ee1 47855 * include/grub/gzio.h: New file.
47856 * io/gzio.c: Likewise.
f19dbdb7 47857
d9864ee1 47858 * kern/file.c (grub_file_close): Call grub_device_close only if
47859 FILE->DEVICE is not NULL.
47860
47861 * include/grub/mm.h [!NULL] (NULL): New macro.
47862
47863 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
47864
47865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
47866 (pkgdata_MODULES): Added gzio.mod.
47867 (gzio_mod_SOURCES): New variable.
47868 (gzio_mod_CFLAGS): Likewise.
47869
47870 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
47871 (pkgdata_MODULES): Added gzio.mod.
47872 (gzio_mod_SOURCES): New variable.
47873 (gzio_mod_CFLAGS): Likewise.
47874
47875 * commands/cat.c: Include grub/gzio.h.
47876 (grub_cmd_cat): Use grub_gzfile_open instead of
47877 grub_file_open.
f19dbdb7 47878
d9864ee1 47879 * commands/cmp.c: Include grub/gzio.h.
47880 (grub_cmd_cmp): Use grub_gzfile_open instead of
47881 grub_file_open.
47882
47883 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
47884 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
47885 grub_file_open.
47886 (grub_rescue_cmd_module): Likewise.
47887
fa46f4b5 478882005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
47889
47890 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
47891 kern/sparc64/ieee1275/init.c because it contains _start.
47892 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
47893
e9211b5d 478942005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
47895
47896 * configure.ac: Add support for sparc64 host with ieee1275
47897 firmware.
47898 * configure: Generated from configure.ac.
47899 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
47900 instead of int.
47901 (grub_ofdisk_read): Likewise.
47902 (grub_ofdisk_open): Use %p to print pointer values, and cast the
47903 pointers as (void *) to remove a warning.
47904 (grub_ofdisk_close): Likewise.
47905 (grub_ofdisk_read): Likewise.
47906 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
47907 returns, so make it return void to remove a warning.
47908 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
47909 Corresponding prototype change.
47910 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
47911 values, and cast the pointers as (void *) to remove a warning.
47912 (grub_mm_dump): Likewise.
47913 * conf/sparc64-ieee1275.mk: New file.
47914 * conf/sparc64-ieee1275.rmk: Likewise.
47915 * include/grub/sparc64/setjmp.h: Likewise.
47916 * include/grub/sparc64/types.h: Likewise.
47917 * include/grub/sparc64/ieee1275/console.h: Likewise.
47918 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47919 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47920 * include/grub/sparc64/ieee1275/time.h: Likewise.
47921 * kern/sparc64/cache.c: Likewise.
47922 * kern/sparc64/dl.c: Likewise.
47923 * kern/sparc64/ieee1275/init.c: Likewise.
47924 * kern/sparc64/ieee1275/openfw.c: Likewise.
47925
385c6a92 479262005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47927
47928 * util/console.c (grub_ncurses_putchar): If C is greater than
47929 0x7f, set C to a question mark.
47930 (grub_ncurses_getcharwidth): New function.
47931 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
47932 getcharwidth.
47933
47934 * normal/menu.c (print_entry): Made aware of Unicode. First,
47935 convert TITLE to UCS-4, and predict the cursor position by
47936 grub_getcharwidth.
47937
47938 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
47939 const to SRC.
47940 * kern/misc.c (grub_utf16_to_utf8): Likewise.
47941
16ccb8b1 479422005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
47943
47944 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
47945 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
47946 grub_strcat.
47947
47948 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
47949 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
47950 grub_strcpy and grub_strlen. Take it into account that a space
47951 character is inserted as a delimiter.
47952
6a85ce79 479532005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
47954
47955 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 47956 invalid magic in the error.
6a85ce79 47957
47958 * commands/search.c: New file.
f19dbdb7 47959
6a85ce79 47960 * util/grub-emu.c (main): Call grub_search_init and
47961 grub_search_fini.
47962
47963 * kern/rescue.c (grub_rescue_print_disks): Removed.
47964 (grub_rescue_print_devices): New function.
47965 (grub_rescue_cmd_ls): Use grub_device_iterate with
47966 grub_rescue_print_devices instead of grub_disk_dev_iterate with
47967 grub_rescue_print_disks.
47968
47969 * kern/partition.c (grub_partition_iterate): Return the result of
47970 PARTMAP->ITERATE instead of GRUB_ERRNO.
47971
47972 * kern/device.c: Include grub/partition.h.
47973 (grub_device_iterate): New function.
47974
47975 * include/grub/partition.h (grub_partition_iterate): Return int
47976 instead of grub_err_t.
47977
47978 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
47979 prototype.
47980 [GRUB_UTIL] (grub_search_fini): Likewise.
47981
47982 * include/grub/device.h (grub_device_iterate): New prototype.
47983
47984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47985 commands/search.c.
47986 (pkgdata_MODULES): Added search.mod.
47987 (search_mod_SOURCES): New variable.
47988 (search_mod_CFLAGS): Likewise.
47989
47990 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
47991 (pkgdata_MODULES): Added search.mod.
47992 (search_mod_SOURCES): New variable.
47993 (search_mod_CFLAGS): Likewise.
47994
47995 * commands/ls.c (grub_ls_list_disks): Renamed to ...
47996 (grub_ls_list_devices): ... this, and use grub_device_iterate.
47997 All callers changed.
47998
47999 * DISTLIST: Added commands/search.c.
48000
ef095434 480012005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48002
48003 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
48004 conversion.
48005 (grub_getcharwidth): New function.
48006
48007 * kern/misc.c (grub_utf8_to_ucs4): New function.
48008
48009 * include/grub/term.h (struct grub_term): Added a new member
48010 "getcharwidth".
48011 (grub_getcharwidth): New prototype.
48012
48013 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
48014
48015 * term/i386/pc/console.c (map_char): New function. Segregated from
48016 grub_console_putchar.
48017 (grub_console_putchar): Use map_char.
48018 (grub_console_getcharwidth): New function.
48019 (grub_console_term): Specified grub_console_getcharwidth as
48020 getcharwidth.
48021
48022 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
48023 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
48024
48025 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
48026 GRUB_ERRNO.
48027 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
48028 on grub_strtoul completely.
48029 (write_char): Declare local variables in the beginning of the
48030 function.
48031 (grub_vesafb_getcharwidth): New function.
48032 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
48033 getcharwidth.
48034
1f0a95e4 480352005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
48036
48037 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
48038 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
48039 commands/i386/pc/vbetest.c.
48040
48041 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
48042 call grub_vbe_get_controller_info again, because the returned
48043 information is volatile.
48044 (grub_vbe_set_video_mode): Mostly rewritten.
48045 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
48046 grub_vbe_status_t correctly.
48047 (grub_vbe_get_video_mode_info): Likewise.
48048 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
48049 several if statements.
48050
48051 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
48052 * commands/i386/pc/vbeinfo.c: ... this.
48053
48054 * commands/i386/pc/vbe_test.c: Renamed to ...
48055 * commands/i386/pc/vbetest.c: ... this.
48056
48057 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
48058 ...
48059 (grub_cmd_vbeinfo): ... this. Save video modes before
48060 iterating. Skip a video mode, if it is not available, not enough
48061 information is given or it is monochrome. Show the memory
48062 model. Leave the interpretation of MODEVAR to grub_strtoul
48063 completely.
48064 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
48065 (GRUB_MOD_FINI): Likewise.
48066
48067 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
48068 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
48069 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
48070 duplicated grub_env_get. Leave the interpretation of MODEVAR to
48071 grub_strtoul completely.
48072 (real2pm): Removed.
48073 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
48074 (GRUB_MOD_FINI): Likewise.
48075
48076 * normal/misc.c: Include grub/mm.h.
48077
48078 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
48079 vbe_list_modes with vbetest.mod and vbeinfo.mod.
48080 (vbe_list_modes_mod_SOURCES): Removed.
48081 (vbe_list_modes_mod_CFLAGS): Likewise.
48082 (vbe_test_mod_SOURCES): Likewise.
48083 (vbe_test_mod_CFLAGS): Likewise.
48084 (vbeinfo_mod_SOURCES): New variable.
48085 (vbeinfo_mod_CFLAGS): Likewise.
48086 (vbetest_mod_SOURCES): Likewise.
48087 (vbetest_mod_CFLAGS): Likewise.
48088
992ffbbe 480892005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
48090
48091 * normal/misc.c: New file.
48092
48093 * DISTLIST: Added normal/misc.c.
f19dbdb7 48094
992ffbbe 48095 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
48096 DISK to HOOK. Call HOOK with DISK.
48097 * partmap/apple.c (apple_partition_map_iterate): Likewise.
48098 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48099 * partmap/sun.c (sun_partition_map_iterate): Likewise.
48100
48101 * normal/menu_entry.c (struct screen): Added a new member
48102 "completion_shown".
48103 (completion_buffer): New global variable.
48104 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
48105 (store_completion): New function.
48106 (complete): Likewise.
48107 (clear_completions): Likewise.
48108 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
48109 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
48110 a tab, call complete.
48111
48112 * normal/completion.c (disk_dev): Removed.
48113 (print_simple_completion): Likewise.
48114 (print_partition_completion): Likewise.
48115 (print_func): New global variable.
48116 (add_completion): Do not take the arguments WHAT or PRINT any
48117 longer. Added a new argument TYPE. Instead of printing directly,
48118 call PRINT_FUNC if not NULL.
48119 All callers changed.
48120 (complete_device): Use a local variable DEV instead of
48121 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
48122 (grub_normal_do_completion): Take a new argument HOOK. Do not
48123 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
48124 empty string, return NULL instead.
48125 All callers changed.
48126
48127 * normal/cmdline.c (print_completion): New function.
48128
48129 * kern/partition.c (grub_partition_iterate): Add an argument DISK
48130 to HOOK.
48131 All callers changed.
48132
48133 * kern/disk.c (grub_print_partinfo): Removed.
48134
48135 * include/grub/partition.h (struct grub_partition_map): Add a new
48136 argument DISK into HOOK of ITERATE.
48137 (grub_partition_iterate): Add a new argument DISK to HOOK.
48138
48139 * include/grub/normal.h (enum grub_completion_type): New enum.
48140 (grub_completion_type_t): New type.
48141 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
48142 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
48143 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
48144 (GRUB_COMPLETION_TYPE_FILE): Likewise.
48145 (grub_normal_do_completion): Added a new argument HOOK.
48146 (grub_normal_print_device_info): New prototype.
48147
48148 * include/grub/disk.h (grub_print_partinfo): Removed.
48149
48150 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
48151 (normal_mod_SOURCES): Likewise.
48152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48153 (normal_mod_SOURCES): Likewise.
48154
48155 * commands/ls.c (grub_ls_list_disks): Use
48156 grub_normal_print_device_info instead of grub_print_partinfo. Free
48157 PNAME.
48158 (grub_ls_list_files): Use grub_normal_print_device_info instead of
48159 duplicating the code.
48160
0bd41162 481612005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48162
48163 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 48164 follow GCS more precisely.
48165 * commands/i386/pc/vbe_test.c: Likewise.
48166 * include/grub/i386/pc/vbe.h: Likewise.
48167 * term/i386/pc/vesafb.c: Likewise.
48168 * video/i386/pc/vbe.c: Likewise.
0bd41162 48169
6323696a 481702005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48171
48172 * DISTLIST: Added term/i386/pc/vesafb.c
48173 DISTLIST: Added video/i386/pc/vbe.c
48174 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
48175 DISTLIST: Added commands/i386/pc/vbe_test.c.
48176 * commands/i386/pc/vbe_list_modes.c: New file.
48177 * commands/i386/pc/vbe_test.c: Likewise.
48178 * term/i386/pc/vesafb.c: Likewise.
48179 * video/i386/pc/vbe.c: Likewise.
48180 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
48181 (grub_vbe_probe) Added prototype.
48182 (grub_vbe_set_video_mode) Likewise.
48183 (grub_vbe_get_video_mode) Likewise.
48184 (grub_vbe_get_video_mode_info) Likewise.
48185 (grub_vbe_set_pixel_rgb) Likewise.
48186 (grub_vbe_set_pixel_index) Likewise.
48187 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
48188 (pkgdata_MODULES): Added vesafb.mod.
48189 (pkgdata_MODULES): Added vbe_list_modes.mod.
48190 (pkgdata_MODULES): Added vbe_test.mod.
48191 (vbe_mod_SOURCES): Added.
48192 (vbe_mod_CFLAGS): Likewise.
48193 (vesafb_mod_SOURCES): Likewise.
48194 (vesafb_mod_CFLAGS): Likewise.
48195 (vbe_list_modes_mod_SOURCES): Likewise.
48196 (vbe_list_modes_mod_CFLAGS): Likewise.
48197 (vbe_test_mod_SOURCES): Likewise.
48198 (vbe_test_mod_CFLAGS): Likewise.
48199
0a74e62f 482002005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
48201
0a74e62f 48202 * normal/command.c (grub_command_execute): If INTERACTIVE is
48203 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
48204 CMDLINE. Disable the pager if INTERACTIVE is true.
48205 All callers are changed.
48206
48207 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
48208 before reading a config file.
48209 * normal/main.c (read_config_file): Even if a command is not
48210 found, register it if it is within an entry.
48211
48212 * util/grub-emu.c: Include sys/types.h and unistd.h.
48213 (options): Added --hold.
48214 (struct arguments): Added a new member "hold".
48215 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
48216 missing.
48217 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
48218 cleared by a debugger, if it is not zero.
48219
48220 * include/grub/normal.h (grub_command_execute): Add an argument
48221 INTERACTIVE.
48222
e51f85ae 482232005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
48224
48225 * DISTLIST: Added include/grub/i386/pc/vbe.h.
48226
e9c6f39b 482272005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
48228
48229 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
48230 program with another one, because the old one didn't detect a bug
48231 in gcc-3.4. Always use regparm 2, because the new test is still
48232 not enough for gcc-4.0. Someone must investigate a simple test
48233 case which detects a bug in gcc-4.0.
48234
8de3495c 482352005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
48236
48237 * DISTLIST: Added normal/completion.c.
48238
48239 * normal/completion.c: New file.
f19dbdb7 48240
8de3495c 48241 * term/i386/pc/console.c (grub_console_getwh): New function.
48242 (grub_console_term): Assign grub_console_getwh to getwh.
48243
48244 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
48245 function is defined in normal/completion.c as
48246 grub_normal_do_completion.
48247 (grub_cmdline_get): Use grub_normal_do_completion instead of
48248 grub_tab_complete.
48249
48250 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
48251 returns non-zero, otherwise return 0.
48252 (grub_partition_iterate): First, probe the partition map. Then,
48253 call ITERATE only for this partition map.
48254
48255 * kern/misc.c (grub_strncmp): Rewritten.
48256
48257 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
48258 returns non-zero. Otherwise return 0.
48259
48260 * include/grub/partition.h (grub_partition_map_iterate): Return
48261 int instead of void.
48262
48263 * include/grub/normal.h (grub_normal_do_completion): New prototype.
48264
48265 * include/grub/misc.h (grub_strncmp): Change the type of N to
48266 grub_size_t.
48267
48268 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
48269 of void.
48270
48271 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 48272 unsigned explicitly before comparing it with I.
8de3495c 48273
48274 * kern/main.c (grub_env_write_root): Add the attribute unused into
48275 VAR.
48276
48277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48278 normal/completion.c.
48279 (normal_mod_SOURCES): Likewise.
48280 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48281 (normal_mod_SOURCES): Likewise.
48282
48283 * normal/command.c (grub_iterate_commands): If ITERATE returns
48284 non-zero, return one immediately.
48285
e85e144b 482862005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
48287
48288 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
48289 * kern/i386/pc/startup.S: Updated Global Descriptor table's
48290 descriptions.
48291 (grub_vbe_get_controller_info): New function.
48292 (grub_vbe_get_mode_info): Likewise.
48293 (grub_vbe_set_mode): Likewise.
48294 (grub_vbe_get_mode): Likewise.
48295 (grub_vbe_set_memory_window): Likewise.
48296 (grub_vbe_get_memory_window): Likewise.
48297 (grub_vbe_set_scanline_length): Likewise.
48298 (grub_vbe_get_scanline_length): Likewise.
48299 (grub_vbe_set_display_start): Likewise.
48300 (grub_vbe_get_display_start): Likewise.
48301 (grub_vbe_set_palette_data): Likewise.
48302 * include/grub/i386/pc/vbe.h: New file.
48303
c46153d2 483042005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48305
48306 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48307 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
48308 * DISTLIST: Likewise.
48309 * kern/ieee1275/of.c: Moved to ...
48310 * kern/ieee1275/ieee1275.c: ... here.
48311
0cb90c45 483122005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48313
48314 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
48315 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
48316 Pass 0 as `end' parameter to grub_strtoul().
48317
a19fb360 483182005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48319
48320 * include/grub/powerpc/ieee1275/console.h: Do not include
48321 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
48322 ifdef.
48323 (grub_console_cur_color): Remove i386-specific prototype.
48324 (grub_console_real_putchar): Likewise.
48325 (grub_console_checkkey): Likewise.
48326 (grub_console_getkey): Likewise.
48327 (grub_console_getxy): Likewise.
48328 (grub_console_gotoxy): Likewise.
48329 (grub_console_cls): Likewise.
48330 (grub_console_setcursor): Likewise.
48331 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
48332 Include <grub/machine/console.h>.
48333 * term/ieee1275/ofconsole.c: Likewise.
48334
4ac9bd04 483352005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
48336
48337 * Makefile.in (LIBLZO): New variable.
48338
48339 * configure.ac: Check for LZO version 2.
48340
48341 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
48342 lzo/lzo1x.h instead of lzo1x.h.
48343
48344 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
48345 of -llzo.
48346
48347 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
48348 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
48349
48350 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
48351 copying the data from PARTITION to P.
48352
f4917dfd 483532005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48354
48355 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
48356 negative, unload the module.
48357
48358 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
48359 map is "pc_partition_map" but not "pc".
48360 (usage): Fix the description. The options are --boot-image and
48361 --core-image but not --boot-file or --core-file.
48362 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
48363 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
48364 DEFAULT_DIRECTORY.
48365
48366 * util/i386/pc/grub-install.in: Do not specify --boot-file or
48367 --core-file. Specify INSTALL_DEVICE as an argument.
48368
48369 * util/console.c: Include config.h.
48370 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
48371 [HAVE_NCURSES_H]: Include ncurses.h.
48372 [HAVE_CURSES_H]: Include curses.h.
48373 [!A_NORMAL] (A_NORMAL): Defined as zero.
48374 [!A_STANDOUT] (A_STANDOUT): Likewise.
48375
48376 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
48377 -lncurses.
48378 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
48379
48380 * configure.ac: Check for curses libraries and headers.
48381
48382 * Makefile.in (LIBCURSES): New variable.
48383
48384 * genmk.rb (Script::rule): Set the executable bits.
48385
48386 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
48387 name of the PC partition map is "pc_partition_map" but not "pc".
48388
0e143073 483892005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48390
48391 * util/i386/pc/grub-install.in (grub_probefs): New variable.
48392 (modules): Likewise.
48393 (usage): Added descriptions for --modules and --grub-probefs.
48394 Handle --modules and --grub-probefs. Save the arguments in MODULES
48395 and GRUB_PROBEFS, respectively.
48396 Auto-detect a filesystem module against GRUBDIR. If the result is
48397 empty and modules are not specified explicitly, abort the
48398 installation. Add the result to MODULES.
48399
48400 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
48401 disk/powerpc/ieee1275/ofdisk.c,
48402 include/grub/powerpc/ieee1275/init.h and
48403 term/powerpc/ieee1275/ofconsole.c.
48404 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
48405 term/ieee1275/ofconsole.c.
48406
48407 * include/grub/powerpc/ieee1275/console.h: Resurrected.
48408
48409 * COPYING: Upgraded to the latest version. Only the address of the
48410 FSF office has changed.
f19dbdb7 48411
efd6e6d5 484122005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48413
48414 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48415 kern/ieee1275.c with kern/ieee1275/of.c.
48416
48417 * kern/ieee1275.c: Moved to ...
48418 * kern/ieee1275/of.c: ... here.
48419
8ceafda2 484202005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
48421
48422 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 48423 readability.
8ceafda2 48424
48425 * config.guess: Updated to the latest version from gnulib.
48426 * config.sub: Likewise.
48427 * install.sh: Likewise.
48428 * mkinstalldirs: Likewise.
48429
48430 * include/grub/console.h: Removed. This file is arch-specific. Do
48431 not put this in include/grub.
48432
48433 * include/grub/i386/pc/console.h: Resurrected.
48434
48435 * util/console.c: Include grub/machine/console.h instead of
48436 grub/console.h.
48437 * util/grub-emu.c: Likewise.
48438
267f6cd9 484392005-08-04 Marco Gerards <metgerards@student.han.nl>
48440
48441 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
48442 hardcoded value.
f19dbdb7 48443
267f6cd9 48444 From Vincent Pelletier <subdino2004@yahoo.fr>
48445 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
48446 Redefined to use grub_getwh.
48447 (grub_term): New member named getwh.
48448 (grub_getwh): New prototype.
48449 * kern/term.c (grub_getwh): New function.
48450 * term/i386/pc/console.c (grub_console_getwh): New function.
48451 (grub_console_term): New member `getwh'.
48452 * term/i386/pc/vga.c (grub_vga_getwh): New function.
48453 (grub_vga_term): New member `getwh'.
0b5abe02 48454 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 48455 grub_ssize_t.
48456 (grub_ofconsole_getw): New function.
48457 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
48458 (grub_ofconsole_term): New field named getwh and new initial
48459 value.
48460
3be7266d 484612005-08-03 Hollis Blanchard <hollis@penguinppc.org>
48462
48463 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
48464 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
48465 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
48466 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
48467 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
48468 of <grub/machine/ieee1275.h>.
48469 * commands/ieee1275/reboot.c: Likewise.
48470 * boot/powerpc/ieee1275/ieee1275.c: Move ...
48471 * kern/ieee1275.c: ... to here. All users updated. Change all
48472 parameter structs to use new type `grub_ieee1275_cell_t'.
48473 * term/powerpc/ieee1275/ofconsole.c: Move ...
48474 * term/ieee1275/ofconsole.c: ... to here. All users updated.
48475 * disk/powerpc/ieee1275/ofdisk.c: Move ...
48476 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
48477 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
48478 to return int.
48479 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
48480 Remove unused prototypes. All users updated.
48481 * include/grub/powerpc/ieee1275/console.h: Removed.
48482 * include/grub/powerpc/ieee1275/ieee1275.h: Define
48483 `grub_ieee1275_cell_t'.
48484 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
48485 Cast comparisons with -1 to the correct type.
48486 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
48487 type to match `grub_ieee1275_entry_fn'.
48488
8b5f3938 484892005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
48490
48491 * DISTLIST: Added util/i386/pc/grub-probefs.c.
48492
48493 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
48494 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
48495 partmap/sun.c.
48496 (grub_probefs_SOURCES): New variable.
48497
48498 * util/i386/pc/grub-probefs.c: New file.
48499
48500 * util/i386/pc/grub-setup.c (main): Call
48501 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
48502 grub_hfs_init and grub_jfs_init to initialize the system. Call
48503 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
48504 grub_pc_partition_map_fini to finish the system.
48505
ea409713 485062005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
48507
48508 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
48509 function.
48510 (grub_multiboot_load_elf32): Likewise.
48511 (grub_multiboot_is_elf64): Likewise.
48512 (grub_multiboot_load_elf64): Likewise.
48513 (grub_multiboot_load_elf): Likewise.
48514 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
48515 an ELF32 or ELF64 file.
48516 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
48517
48518 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
48519 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
48520 NULL before calling FS->LABEL.
48521 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
48522 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
48523 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
48524 before calling FS->LABEL.
48525
141a288b 485262005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
48527
48528 * util/i386/pc/grub-install.in (datadir): New variable.
48529 (libdir): Removed.
48530 (pkgdatadir): New variable.
48531 (pkglibdir): Removed.
48532
0d5f8a54 485332005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
48534
48535 * DISTLIST: Added util/i386/pc/grub-install.in.
48536
48537 * util/i386/pc/grub-install.in: New file.
48538
48539 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
48540 (grub_install_SOURCES): Likewise.
48541
48542 * genmk.rb: Added support for scripts.
48543 (Script): New class.
48544 (scripts): New variable.
48545
48546 * Makefile.in (install-local): Install sbin_SCRIPTS by
48547 INSTALL_SCRIPT.
48548 (uninstall): Remove sbin_SCRIPTS.
48549
48550 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
48551 device, try to get a GRUB device by
48552 grub_util_biosdisk_get_grub_dev.
48553 Free DEST_DEV.
48554
48555 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
48556 description for --device-map.
48557
5f968e1e 485582005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
48559
48560 Change the semantics of variable hooks. They now return strings
48561 instead of error values.
f19dbdb7 48562
5f968e1e 48563 * util/i386/pc/grub-setup.c: Include grub/env.h.
48564 (setup): Use grub_device_set_root instead of grub_env_set.
48565
48566 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
48567 grub_env_get instead of grub_device_set_root and
48568 grub_device_get_root, respectively.
48569
48570 * kern/main.c (grub_env_write_root): New function.
48571 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
48572 grub_env_set instead of grub_device_set_root.
48573
48574 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
48575 many variables.
48576 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
48577 rather than calling ENV->WRITE_HOOK afterwards.
48578 (grub_env_get): Return the result of ENV->READ_HOOK rather than
48579 passing a pointer of a pointer.
48580 (grub_register_variable_hook): Change the types of "read_hook" and
48581 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
48582 respectively.
48583 Allocate the default empty string on the heap, because this string
48584 may be freed later.
48585
48586 * kern/device.c: Include grub/env.h.
48587 (grub_device_set_root): Removed.
48588 (grub_device_get_root): Likewise.
48589 (grub_device_open): Use grub_env_get instead of
48590 grub_device_get_root.
48591
48592 * include/grub/env.h (grub_env_read_hook_t): New type.
48593 (grub_env_write_hook_t): Likewise.
48594 (grub_env_var): Change the types of "read_hook" and "write_hook"
48595 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
48596 (grub_register_variable_hook): Likewise.
48597
48598 * include/grub/device.h (grub_device_set_root): Removed.
48599 (grub_device_set_root): Likewise.
48600
48601 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
48602 make sure that DIRNAME terminates with '/', so that
48603 grub_fat_find_dir will fail if PATH is not a directory.
48604
48605 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
48606 from DIRNAME.
48607 Use the qualifier auto for print_files and print_files_long.
48608 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
48609 as a regular file.
48610 Put a newline only if there is no error.
48611 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
48612 used.
48613
896f0afd 486142005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
48615
48616 * kern/partition.c (grub_partition_probe): Initialize PART to
48617 NULL. Otherwise, when no partition map is registered, this returns
48618 a garbage.
48619
b28b81b2 486202005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
48621
48622 * partmap/apple.c (apple_partition_map_iterate): Check if POS
48623 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
48624 valid.
48625
5f3607e0 486262005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
48627
48628 * commands/ls.c (grub_ls_list_disks): Print the filesystem
48629 information on each device, if it does not have partitions. Print
48630 "Device" instead of "Disk", because this function is not specific
48631 to disk devices.
48632
48633 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
48634 static to ensure that it is put on the memory rather than a
48635 register.
48636
502c87e8 486372005-07-17 Yoshinori Okuji <okuji@enbug.org>
48638
48639 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
48640 (grub_cat_init): Likewise.
48641 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
48642 (options): Likewise.
48643 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
48644 (grub_configfile_init): Likewise.
48645 * font/manager.c (GRUB_MOD_INIT): Likewise.
48646 * commands/help.c (GRUB_MOD_INIT): Likewise.
48647 (grub_help_init): Likewise.
48648 * normal/command.c (grub_command_init): Likewise.
48649 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
48650 * disk/loopback.c (grub_loop_init): Likewise.
48651 (GRUB_MOD_INIT): Likewise.
48652 * commands/ls.c (grub_ls_init): Likewise.
48653 (GRUB_MOD_INIT): Likewise.
48654 (options): Likewise.
48655 * commands/boot.c (grub_boot_init): Likewise.
48656 (GRUB_MOD_INIT): Likewise.
48657 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
48658 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
48659 (GRUB_MOD_INIT): Likewise.
48660 * commands/cmp.c (grub_cmp_init): Likewise.
48661 (GRUB_MOD_INIT): Likewise.
48662
48663 * normal/arg.c: Use <> instead of "" to include header files.
48664 (SHORT_ARG_HELP): New macro.
48665 (SHORT_ARG_USAGE): Likewise.
48666 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
48667 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
48668 descriptions.
48669 (find_short): Check if C is 'h' or 'u' explicitly.
48670 (grub_arg_show_help): Use space characters instead of tabs. Treat
48671 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
48672 are shown with --help and --usage only if they are not used for
48673 the command itself.
48674 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
48675 'h' and 'u'.
48676
48677 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
48678 const into "longarg". Change the type of "shortarg" to int.
48679
f806d18e 486802005-07-17 Yoshinori Okuji <okuji@enbug.org>
48681
48682 * boot/i386/pc/boot.S (boot_drive_check): New label.
48683
48684 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
48685 macro.
48686
48687 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
48688 which do not pass a boot drive correctly. Copied from GRUB Legacy.
48689
e293232b 486902005-07-17 Yoshinori Okuji <okuji@enbug.org>
48691
48692 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
48693 When turning off Gate A20, skip the check and return immediately,
48694 because this is not fatal usually.
48695
ebedfd00 486962005-07-17 Yoshinori Okuji <okuji@enbug.org>
48697
48698 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
48699 be 0x7C00 instead of 0x8000.
48700
48701 * boot/i386/pc/pxeboot.S: Rewritten.
48702
48703 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
48704 EXT_C.
48705 (gate_a20_check_state): Read a byte from 0x108000. Invert the
48706 result.
48707
654fc59f 487082005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
48709
48710 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
48711 robustness. This routine now supports a BIOS call and System
48712 Control Port A to modify the gate A20.
48713
48714 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48715 Increased to 0x440.
48716
09f9923f 487172005-07-12 Hollis Blanchard <hollis@penguinppc.org>
48718
48719 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
48720 device path and resulting ihandle.
48721 (grub_ofdisk_close): dprintf the ihandle being closed.
48722 (grub_ofdisk_read): dprintf function parameters.
48723 * kern/mm.c (grub_mm_init_region): Likewise.
48724 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
48725 (grub_linux_boot): dprintf the Linux entry point, initrd address and
48726 size, and boot arguments.
48727 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
48728 before loading into memory.
48729 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
48730 before loading into memory.
48731
7ef504d8 487322005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
48733
48734 * kern/mm.c: Added much documentation.
48735 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
48736 8, set to 5 instead of 8.
48737
e0f050c2 487382005-07-10 Yoshinori Okuji <okuji@enbug.org>
48739
48740 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
48741
48742 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
48743 (grub_mkdevicemap_SOURCES): New variable.
48744
48745 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
48746 lib/device.c of GRUB Legacy.
48747
7224189a 487482005-07-10 Yoshinori Okuji <okuji@enbug.org>
48749
48750 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
48751 instead of PATH is NULL.
48752
68c864eb 487532005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
48754
48755 * commands/cmp.c (BUFFER_SIZE): New macro.
48756 (grub_cmd_cmp): Close the right file at the right time. Compare
48757 only data just read. Don't report files of different size as
48758 identical. Dynamically allocate buffers. Move variable
48759 declarations at the beginning of function.
48760
e6f3e614 487612005-07-09 Yoshinori Okuji <okuji@enbug.org>
48762
48763 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
48764 reverse.
48765
f8f1559a 487662004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
48767
48768 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
48769 when backspace is pressed at beginning of line.
48770
39c9d41d 487712005-07-03 Yoshinori Okuji <okuji@enbug.org>
48772
48773 * DISTLIST: Added genfslist.sh.
48774
48775 * normal/main.c (fs_module_list): New variable.
48776 (autoload_fs_module): New function.
48777 (read_fs_list): Likewise.
48778 (grub_normal_execute): Call read_fs_list.
48779
48780 * kern/fs.c (grub_fs_autoload_hook): New variable.
48781 (grub_fs_probe): Added support for auto-loading.
48782
48783 * include/grub/normal.h (struct grub_fs_module_list): New struct.
48784 (grub_fs_module_list_t): New type.
48785
48786 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
48787 (grub_fs_autoload_hook): New prototype.
48788
48789 * genfslist.sh: New file.
f19dbdb7 48790
39c9d41d 48791 * genmk.rb: Added a rule to generate a filesystem list.
48792
121c1d83 487932005-06-30 Marco Gerards <metgerards@student.han.nl>
48794
48795 * configure.ac: Fix the test for cross-compiling.
48796
48797 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
48798 define GRUB_UTIL anymore.
48799
48800 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
48801 so this function works on other systems than just big endian.
48802 (load_modules): Likewise.
48803 (add_segments): Likewise.
48804
e75d76e1 488052005-06-23 Hollis Blanchard <hollis@penguinppc.org>
48806
48807 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
48808 contains `l' modifier, get a long from va_arg().
48809
50b5a0a7 488102005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
48811
48812 * kern/mm.c (grub_free): If the next free block which is being
48813 merged is the first free block, set the first block to the block
48814 being freed.
48815 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
48816
89371b20 488172005-05-08 Hollis Blanchard <hollis@penguinppc.org>
48818
48819 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
48820 `grub_ieee1275_chosen'.
48821
168d6e58 488222005-05-08 Hollis Blanchard <hollis@penguinppc.org>
48823
48824 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
48825 (grub_ieee1275_chosen): New variable.
48826 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
48827 `chosen'.
48828 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
48829 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
48830 Rename first argument to `phandle' for consistency.
48831 (grub_ieee1275_get_property_length): Likewise.
48832 (grub_ieee1275_next_property): Likewise. Change type of first argument
48833 to grub_ieee1275_phandle_t.
48834 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
48835 Move export next to declaration.
48836 (grub_ieee1275_chosen): New variable.
48837 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
48838 Correct cosmetic typo.
48839 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
48840 `grub_ieee1275_chosen'.
48841 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
48842 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
48843 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
48844 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
48845 `grub_ieee1275_chosen'.
48846
ca5baa3f 488472005-05-10 Hollis Blanchard <hollis@penguinppc.org>
48848
48849 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
48850 /chosen/bootargs.
48851 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
48852 /chosen/bootargs as "variable=value" pairs.
48853
708b345f 488542005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
48855
48856 * include/grub/misc.h (grub_dprintf): New macro.
48857 (grub_real_dprintf): New prototype.
48858 (grub_strword): Likewise.
48859 (grub_iswordseparator): Likewise.
48860 * kern/misc.c (grub_real_dprintf): New function.
48861 (grub_strword): Likewise.
48862 (grub_iswordseparator): Likewise.
48863
f4c5e67c 488642005-04-30 Hollis Blanchard <hollis@penguinppc.org>
48865
48866 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
48867 (roundup): Remove macro.
48868 (grub_ieee1275_flags): Make static.
48869 (grub_ieee1275_realmode): Remove.
48870 (grub_ieee1275_test_flag): New function.
48871 (grub_ieee1275_set_flag): Likewise.
48872 (find_options): Rename to `grub_ieee1275_find_options'; update
48873 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
48874 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
48875 (cmain): New prototype.
48876 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
48877 `grub_ieee1275_flags' directly.
48878 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
48879 machine/biosdisk.h.
48880 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
48881 Don't include grub/machine/init.h.
48882 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
48883 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
48884 Remove prototype.
48885 (grub_ieee1275_realmode): Likewise.
48886 (grub_ieee1275_flag): New enum.
48887 (grub_ieee1275_test_flag): New prototype.
48888 (grub_ieee1275_set_flag): New prototype.
48889 * include/grub/powerpc/ieee1275/init.h: Remove file.
48890 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
48891 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
48892 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
48893 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
48894 comment.
48895 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
48896 `grub_ieee1275_test_flag'.
48897 (grub_ieee1275_encode_devname): Likewise.
48898
ed16607e 488992005-04-21 Hollis Blanchard <hollis@penguinppc.org>
48900
48901 * include/grub/powerpc/ieee1275/ieee1275.h
48902 (grub_ieee1275_encode_devname): New prototype.
48903 (grub_ieee1275_get_filename): Likewise.
48904 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
48905 function.
48906 (grub_set_prefix): Likewise.
48907 (grub_machine_init): Call grub_set_prefix.
48908 * kern/powerpc/ieee1275/openfw.c: Fix typos.
48909 (grub_parse_type): New enum.
48910 (grub_ieee1275_get_devargs): New function.
48911 (grub_ieee1275_get_devname): Likewise.
48912 (grub_ieee1275_parse_args): Likewise.
48913 (grub_ieee1275_get_filename): Likewise.
48914 (grub_ieee1275_encode_devname): Likewise.
48915
be369920 489162005-03-30 Marco Gerards <metgerards@student.han.nl>
48917
48918 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
48919 `grub_loader_unset'.
48920
a5ce3a4a 489212005-03-26 Hollis Blanchard <hollis@penguinppc.org>
48922
48923 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
48924 instead of grub_ieee1275_interpret.
48925 (grub_halt_init): New function.
48926 (grub_halt_fini): Likewise.
48927 (GRUB_MOD_INIT): Correct message grammar.
48928 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
48929 instead of grub_ieee1275_interpret.
48930 (grub_reboot_init): New function.
48931 (grub_reboot_fini): Likewise.
48932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
48933 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
48934 util/i386/pc/misc.c with commands/ieee1275/halt.c,
48935 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
48936 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
48937 function.
48938 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
48939 Add prototype.
48940 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
48941 prototype.
48942 (grub_halt): Likewise.
48943 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
48944 (cmain): Remove __attribute__((unused)).
48945 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
48946 (grub_heap_len): Likewise.
48947 (grub_machine_fini): New function.
48948 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
48949 (grub_halt): Likewise.
48950 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
48951 function.
48952 * util/powerpc/ieee1275/misc.c: New file.
48953
0058f771 489542005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48955
48956 * DISTLIST: New file.
48957 * gendistlist.sh: Likewise.
f19dbdb7 48958
0058f771 48959 * Makefile.in (COMMON_DISTFILES): Removed.
48960 (BOOT_DISTFILES): Likewise.
48961 (CONF_DISTFILES): Likewise.
48962 (DISK_DISTFILES): Likewise.
48963 (FS_DISTFILES): Likewise.
48964 (INCLUDE_DISTFILES): Likewise.
48965 (KERN_DISTFILES): Likewise.
48966 (LOADER_DISTFILES): Likewise.
48967 (TERM_DISTFILES): Likewise.
48968 (UTIL_DISTFILES): Likewise.
48969 (DISTFILES): Likewise.
48970 (uninstall): Uninstall files in $(pkgdata_DATA).
48971 (DISTLIST): New target.
48972 (distdir): Use the contents of the file DISTLIST to get a list of
48973 distributed files.
48974
46b3b8a5 489752005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48976
48977 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
48978 descriptor. This is ported from GRUB Legacy.
48979
48980 * gencmdlist.sh: Added an extra semicolon to make it work with
48981 old sed versions. Reported by Robert Bihlmeyer
48982 <robbe@orcus.priv.at>.
48983
5822ff87 489842005-03-08 Yoshinori Okuji <okuji@enbug.org>
48985
48986 Automatic loading of commands is supported.
f19dbdb7 48987
5822ff87 48988 * normal/main.c (read_command_list): New function.
48989 (grub_normal_execute): Call read_command_list.
48990
48991 * normal/command.c (grub_register_command): Return zero or CMD.
48992 Allocate CMD->NAME from the heap.
48993 Initialize CMD->MODULE_NAME to zero.
48994 Find the same name as well. If the same command is found and it is
48995 a dummy command, overwrite members. If it is not a dummy command,
48996 return zero.
48997 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
48998 (grub_command_find): If a dummy command is found, load a module
48999 and retry to find a command only once.
49000
49001 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
49002 make sure that each command is loaded.
49003
49004 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
49005 macro.
49006 (struct grub_command): Remove const from the member `name'.
49007 Add a new member `module_name'.
49008 (grub_register_command): Return grub_command_t.
49009
49010 * commands/help.c (grub_cmd_help): Call grub_command_find to make
49011 sure that each command is loaded.
49012
49013 * genmk.rb (PModule::rule): Specify a module name without the
49014 suffix ".mod" to gencmdlist.sh.
49015
7b1f4b57 490162005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49017
49018 * gencmdlist.sh: New file.
f19dbdb7 49019
7b1f4b57 49020 * genmk.rb (PModule::rule): Generate a rule for a command list.
49021 Clean command.lst.
49022 Generate command.lst from $(COMMANDFILES).
49023
49024 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
49025 (DATA): Added $(pkgdata_DATA).
49026 (install-local): Install files in $(pkgdata_DATA).
49027
062aaf39 490282005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49029
49030 * term/i386/pc/vga.c (debug_command): Removed.
49031 (GRUB_MOD_INIT): Do not register the command "debug".
49032
49033 From Hollis Blanchard:
49034 * commands/configfile.c: New file.
49035 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49036 commands/configfile.c.
49037 (pkgdata_MODULES): Added configfile.mod.
49038 (configfile_mod_SOURCES): New variable.
49039 (configfile_mod_CFLAGS): Likewise.
49040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49041 commands/configfile.c.
49042 (pkgdata_MODULES): Added configfile.mod.
49043 (configfile_mod_SOURCES): New variable.
49044 (configfile_mod_CFLAGS): Likewise.
49045 * util/grub-emu.c (main): Call grub_configfile_init and
49046 grub_configfile_fini.
49047 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
49048 prototype.
49049 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 49050
cee01aa6 490512005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49052
49053 * normal/arg.c (grub_arg_show_help): Do not show the bug report
49054 address.
49055
49056 * commands/help.c (grub_cmd_help): Do not print newlines after
49057 the last command in print_command_help.
49058
93f3a1d8 490592005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49060
49061 * commands/default.h: New file.
49062 * commands/timeout.h: Likewise.
49063 * normal/context.c: Likewise.
f19dbdb7 49064
93f3a1d8 49065 * util/misc.c: Do not include sys/times.h.
49066 Include sys/time.h and grub/machine/time.h.
49067 (grub_get_rtc): Rewritten with gettimeofday.
49068
49069 * util/grub-emu.c (main): Call grub_default_init and
49070 grub_timeout_init before grub_normal_init, and call
49071 grub_timeout_fini and grub_default_fini after grub_main.
49072
49073 * util/console.c (grub_ncurses_checkkey): Return the read
49074 character or -1.
49075
49076 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
49077 timeouts.
49078
49079 * normal/main.c (read_config_file): Push MENU. If this fails,
49080 print an error and wait for a user input.
49081 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
49082 If a menu is empty or an error occurs, pop MENU.
49083 (grub_normal_execute): Pop and free MENU after grub_menu_run
49084 returns.
49085
49086 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
49087
49088 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
49089 include time.h.
49090 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49091 without GRUB_UTIL.
49092 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
49093 time.h.
49094 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49095 without GRUB_UTIL.
49096
49097 * include/grub/normal.h (struct grub_menu_list): New struct.
49098 (grub_menu_list_t): New type.
49099 (struct grub_context): New struct.
49100 (grub_context_t): New type.
49101 (grub_register_command): Got rid of EXPORT_FUNC.
49102 (grub_unregister_command): Likewise.
49103 (grub_context_get): New prototype.
49104 (grub_context_get_current_menu): Likewise.
49105 (grub_context_push_menu): Likewise.
49106 (grub_context_pop_menu): Likewise.
49107 [GRUB_UTIL] (grub_default_init): Likewise.
49108 [GRUB_UTIL] (grub_default_fini): Likewise.
49109 [GRUB_UTIL] (grub_timeout_init): Likewise.
49110 [GRUB_UTIL] (grub_timeout_fini): Likewise.
49111
49112 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
49113 commands/timeout.c and normal/context.c.
49114 (pkgdata_MODULES): Added default.mod and timeout.mod.
49115 (normal_mod_SOURCES): Added normal/context.c.
49116 (default_mod_SOURCES): New variable.
49117 (default_mod_CFLAGS): Likewise.
49118 (timeout_mod_SOURCES): Likewise.
49119 (timeout_mod_CFLAGS): Likewise.
49120 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
49121 conf/i386-pc.rmk.
49122 (pkgdata_MODULES): Added default.mod and timeout.mod.
49123 (normal_mod_SOURCES): Added normal/context.c.
49124 (default_mod_SOURCES): New variable.
49125 (default_mod_CFLAGS): Likewise.
49126 (timeout_mod_SOURCES): Likewise.
49127 (timeout_mod_CFLAGS): Likewise.
49128
49129 * Makefile.in (all-local): Added $(MKFILES).
49130
4ed2e1dd 491312005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
49132
49133 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
49134 (grub_emu_SOURCES): Likewise.
49135 (pkgdata_MODULES): Add `sun.mod'.
49136 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49137 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49138 `partmap/sun.c'.
49139 (pkgdata_MODULES): Add `sun.mod'.
49140 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49141 * include/grub/partition.h (grub_sun_partition_map_init): New
49142 prototype.
49143 (grub_sun_partition_map_fini): Likewise.
49144 * partmap/sun.c: New file.
49145 * util/grub-emu.c (main): Initialize and de-initialize the sun
49146 partitionmap support.
49147
4d4e372e 491482005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
49149
49150 This implements an Emacs-like menu entry editor.
f19dbdb7 49151
4d4e372e 49152 * normal/menu_entry.c: New file.
f19dbdb7 49153
4d4e372e 49154 * util/console.c (grub_ncurses_putchar): Translate some Unicode
49155 characters to ASCII.
49156 (saved_char): New variable.
49157 (grub_ncurses_checkkey): Rewritten completely.
49158 (grub_ncurses_getkey): Likewise.
49159 (grub_ncurses_init): Call raw instead of cbreak.
49160
49161 * normal/menu.c (print_entry): Do not put a space.
49162 (init_page): Renamed to ...
49163 (grub_menu_init_page): ... this. All callers changed.
49164 (edit_menu_entry): Removed.
49165 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
49166
49167 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
49168
49169 * kern/misc.c (grub_vprintf): Call grub_refresh.
49170
49171 * normal/menu.c (DISP_LEFT): Renamed to ...
49172 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
49173 * normal/menu.c (DISP_UP): Renamed to ...
49174 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
49175 * normal/menu.c (DISP_RIGHT): Renamed to ...
49176 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
49177 * normal/menu.c (DISP_DOWN): Renamed to ...
49178 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
49179 * normal/menu.c (DISP_HLINE): Renamed to ...
49180 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
49181 * normal/menu.c (DISP_VLINE): Renamed to ...
49182 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
49183 * normal/menu.c (DISP_UL): Renamed to ...
49184 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
49185 * normal/menu.c (DISP_UR): Renamed to ...
49186 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
49187 * normal/menu.c (DISP_LL): Renamed to ...
49188 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
49189 * normal/menu.c (DISP_LR): Renamed to ...
49190 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
49191 * normal/menu.c (TERM_WIDTH): Renamed to ...
49192 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
49193 * normal/menu.c (TERM_HEIGHT): Renamed to ...
49194 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
49195 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
49196 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
49197 * normal/menu.c (TERM_MARGIN): Renamed to ...
49198 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
49199 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
49200 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
49201 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
49202 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
49203 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
49204 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
49205 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
49206 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
49207 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
49208 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
49209 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
49210 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
49211 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
49212 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
49213 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
49214 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
49215 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
49216 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
49217 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
49218 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
49219 All callers changed.
49220
49221 * include/grub/normal.h: New prototype.
49222
49223 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49224 normal/menu_entry.c.
49225 (normal_mod_SOURCES): Likewise.
49226 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49227 (normal_mod_SOURCES): Likewise.
49228
e6b92c8a 492292005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
49230
49231 * include/grub/normal.h (grub_halt_init): New prototype.
49232 (grub_halt_fini): Likewise.
49233 (grub_reboot_init): Likewise.
49234 (grub_reboot_fini): Likewise.
49235
49236 * util/grub-emu.c: Include signal.h.
49237 (main_env): New global variable.
49238 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
49239 catch C-c.
49240 (grub_machine_fini): New function.
49241 (main): Call grub_halt_init and grub_reboot_init before
49242 grub_main, and grub_reboot_fini and grub_halt_fini after it.
49243 Call setjmp with MAIN_ENV to go back afterwards.
49244 Call grub_machine_fini right before return.
49245
49246 * include/grub/util/misc.h: Include setjmp.h.
49247 (main_env): New prototype.
49248
49249 * include/grub/kernel.h (grub_machine_fini): New prototype.
49250 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
49251 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
49252
49253 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
49254 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
49255 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 49256
e6b92c8a 49257 * util/i386/pc/misc.c: New file.
f19dbdb7 49258
e6b92c8a 49259 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49260 util/i386/pc/misc.c, commands/i386/pc/halt.c and
49261 commands/i386/pc/reboot.c.
49262
c642636f 492632005-02-14 Guillem Jover <guillem@hadrons.org>
49264
49265 * include/grub/dl.h (grub_dl_check_header): New prototype.
49266 (grub_arch_dl_check_header): Change return type to grub_err_t,
49267 remove size parameter and export function. Update all callers.
49268 * kern/dl.c (grub_dl_check_header): New function.
49269 (grub_dl_load_core): Use `grub_dl_check_header' instead of
49270 `grub_arch_dl_check_header'. Check ELF type. Check if sections
49271 are inside the core.
49272 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
49273 independent ELF header checks.
49274 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
49275 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
49276 `grub_dl_check_header' instead of explicit checks. Check for the
49277 ELF type.
49278 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
49279 `grub_dl_check_header' instead of explicit checks. Remove arch
49280 specific ELF header checks.
49281
e6b92c8a 49282 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
49283 argument SIZE.
49284
5eabe94b 492852005-02-13 Hollis Blanchard <hollis@penguinppc.org>
49286
49287 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
49288 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
49289
1b14a681 492902005-02-12 Hollis Blanchard <hollis@penguinppc.org>
49291
49292 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 49293 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 49294 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 49295 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 49296 * partmap/amiga.c (amiga_partition_map_iterate): Return
49297 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
49298 * partmap/apple.c (apple_partition_map_iterate): Likewise.
49299
aca108aa 493002005-02-01 Guillem Jover <guillem@hadrons.org>
49301
49302 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
49303 help info.
49304
c9f9c556 493052005-01-31 Marco Gerards <metgerards@student.han.nl>
49306
49307 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
49308 Removed prototype.
49309 (grub_rescue_cmd_linux): New prototype.
49310 (grub_rescue_cmd_initrd): Likewise.
49311 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
49312 `bi_rec'.
49313 (grub_linux_release_mem): Release the memory for the initrd.
49314 (grub_load_linux): Renamed from this...
49315 (grub_rescue_cmd_linux): ...To this. Changed all callers.
49316 Changed `entry' not to be static. Loop over memory regions to
49317 find another one when the default fails.
49318 (grub_rescue_cmd_initrd): New function.
49319 (grub_linux_init): Remove function.
49320 (grub_linux_fini): Likewise.
49321 (GRUB_MOD_INIT): Register `initrd'.
49322 (GRUB_MOD_FINI): Unregister `initrd'.
49323 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
49324 Function removed.
49325 (grub_linux_normal_fini): Likewise.
49326 (GRUB_MOD_INIT): Register `initrd'.
49327 (GRUB_MOD_FINI): Unregister `initrd'.
49328
990cf3aa 493292005-01-31 Marco Gerards <metgerards@student.han.nl>
49330
49331 * commands/help.c: New file.
49332 * normal/arg.c (show_help): Renamed to...
49333 (grub_arg_show_help): ... this.
49334 * commands/i386/pc/halt.c: New file.
49335 * commands/i386/pc/reboot.c: Likewise.
49336 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
49337 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
49338 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
49339 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
49340 variables.
49341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49342 `commands/help.c'.
49343 (pkgdata_MODULES): Add `help.mod'.
49344 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
49345 * grub/i386/pc/init.h (grub_reboot): New prototype.
49346 (grub_halt): Likewise.
49347 * include/grub/normal.h (grub_arg_show_help): New prototype.
49348 (grub_help_init): Likewise.
49349 (grub_help_fini): Likewise.
49350 * util/grub-emu.c (main): Initialize and deinitialize the help
49351 command.
49352
49353 * normal/cmdline.c (grub_cmdline_get): Doc fix.
49354
49355 * normal/command.c (grub_command_init): Fixed the description of
49356 the `set' and `unset' commands.
49357
493582005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 49359
49360 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
49361 function.
49362 * commands/ieee1275/halt.c: New file.
49363 * commands/ieee1275/reboot.c: Likewise.
49364 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
49365 `__attribute__ ((unused))'. Some GCS related fixed.
49366 (grub_suspend_init) [GRUB_UTIL]: Function removed.
49367 (grub_suspend_fini): Likewise.
49368 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
49369 and `halt.mod'.
49370 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
49371 (halt_mod_CFLAGS): New variables.
49372 * include/grub/powerpc/ieee1275/ieee1275.h
49373 (grub_ieee1275_interpret): New prototype.
49374
1ab09cc7 493752005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
49376
49377 * include/grub/misc.h (memmove): New prototype.
49378 (memcpy): Likewise.
49379
8b8cbdb2 493802005-01-22 Hollis Blanchard <hollis@penguinppc.org>
49381
49382 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
49383 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
49384
e3741a27 493852005-01-22 Marco Gerards <metgerards@student.han.nl>
49386
49387 * kern/misc.c (grub_strndup): Function rewritten.
49388
776bd780 493892005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
49390
49391 * normal/menu.c (TERM_WIDTH): Macro redefined.
49392 (TERM_TOP_BORDER_Y): Likewise.
49393 (draw_border): Replaced while-loop by a for-loop. Make the number
49394 of lines consistent with the number of lines displayed in
49395 print_entries. Added a margin below the rectangle.
49396 (print_entry): Make the entry fit in the rectangle.
49397 (print_entries): Display the scroll arrows next to the right
49398 border.
49399
78026bce 494002005-01-21 Marco Gerards <metgerards@student.han.nl>
49401
49402 * fs/minix.c (grub_minix_find_file): Reserve more space for
49403 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
49404 `grub_strncpy' to copy `path' into it.
49405
67bbaf0f 494062005-01-21 Marco Gerards <metgerards@student.han.nl>
49407
49408 Add the loopback device, a device via which files can be accessed
49409 as devices.
f19dbdb7 49410
67bbaf0f 49411 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
49412 (pkgdata_MODULES): Add loopback.mod.
49413 (loopback_mod_SOURCES): New variable.
49414 (loopback_mod_CFLAGS): Likewise.
49415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49416 `disk/loopback.c'.
49417 (pkgdata_MODULES): Add loopback.mod.
49418 (loopback_mod_SOURCES): New variable.
49419 (loopback_mod_CFLAGS): Likewise.
49420 * disk/loopback.c: new file.
49421 * include/grub/normal.h (grub_loop_init): New prototype.
49422 (grub_loop_fini): New prototype.
49423 * util/grub-emu.c (main): Initialize and de-initialize loopback
49424 support.
49425 * include/grub/disk.h (grub_disk_dev_id): Add
49426 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
49427
6f1c18bd 494282005-01-20 Hollis Blanchard <hollis@penguinppc.org>
49429
49430 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
49431 function.
49432 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
49433 (suspend_mod_SOURCES): New variable.
49434 (suspend_mod_CFLAGS): Likewise.
49435 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
49436 New prototype.
49437 * commands/ieee1275/suspend.c: New file.
49438
b38551da 494392005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49440
49441 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 49442 ((unused))' to `__attribute__ ((used))'.
b38551da 49443 (GRUB_MOD_FINI): Likewise.
49444 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
49445 * genmk.rb (PModule): Assign space to common symbols when linking
49446 modules.
49447
777aff39 494482005-01-20 Marco Gerards <metgerards@student.han.nl>
49449
49450 * include/grub/mm.h (grub_mm_init_region): Change the type of the
49451 `unsigned' arguments to `grub_size_t'.
49452 (grub_malloc): Likewise.
49453 (grub_realloc): Likewise.
49454 (grub_memalign): Likewise.
49455 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
49456 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
49457 * util/misc.c (grub_malloc): Likewise.
49458 (grub_realloc): Likewise.
49459 * kern/mm.c (get_header_from_pointer): Change the casts to
49460 `unsigned' into a cast to `grub_size_t'.
49461
49462 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
49463 point to `currnode' when `currnode' is changed.
49464
49465 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
49466 Schottelius <nico-linux@schottelius.org>.
49467
d0ff18e1 494682005-01-09 Hollis Blanchard <hollis@penguinppc.org>
49469
49470 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
49471 (note_path): Remove variable.
49472 (GRUB_IEEE1275_NOTE_NAME): New macro.
49473 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
49474 (grub_ieee1275_note_hdr): New structure.
49475 (grub_ieee1275_note_desc): Likewise.
49476 (grub_ieee1275_note): Likewise.
49477 (load_note): Remove `dir' argument. All callers updated. Remove
49478 `note_img' and `path'. Do not load a file from `note_path'.
49479 Initialize a struct grub_ieee1275_note and write that to `out'.
49480 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
49481
4ca7004c 494822005-01-05 Marco Gerards <metgerards@student.han.nl>
49483
49484 * util/misc.c (grub_util_read_image): Revert last change. It
49485 called `grub_util_read_at', which seeks from the beginning of the
49486 file.
49487
0b412211 494882005-01-04 Hollis Blanchard <hollis@penguinppc.org>
49489
49490 * TODO: Add note about endianness in grub-mkimage.
49491 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
49492 section.
49493 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
49494 (grub_mkimage_SOURCES): New target.
49495 * include/grub/kernel.h (grub_start_addr): Remove variable.
49496 (grub_end_addr): Likewise.
49497 (grub_total_module_size): Likewise.
49498 (grub_kernel_image_size): Likewise.
49499 (GRUB_MODULE_MAGIC): New constant.
49500 (grub_module_info): New structure.
49501 (grub_arch_modules_addr): New prototype.
49502 (grub_get_end_addr): Remove prototype.
49503 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
49504 * include/grub/powerpc/ieee1275/kernel.h: New file.
49505 * include/grub/util/misc.h (grub_util_get_fp_size): New
49506 prototype.
49507 (grub_util_read_at): Likewise.
49508 (grub_util_write_image_at): Likewise.
49509 * kern/main.c (grub_get_end_addr): Remove function.
49510 (grub_load_modules): Call grub_arch_modules_addr instead of using
49511 grub_end_addr. Look for a grub_module_info struct in memory. Use
49512 the grub_module_info fields instead of calling grub_get_end_addr
49513 as loop conditions. Move grub_add_unused_region code here.
49514 (grub_add_unused_region): Remove function.
49515 * kern/i386/pc/init.c: Include grub/cache.h.
49516 (grub_machine_init): Remove call to grub_get_end_addr. Remove
49517 one call to add_mem_region.
49518 (grub_arch_modules_addr): New function.
49519 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
49520 (grub_total_module_size): Likewise.
49521 Include grub/machine/kernel.h.
49522 (grub_arch_modules_addr): New function.
49523 * util/grub-emu.c (grub_end_addr): Remove variable.
49524 (grub_total_module_size): Likewise.
49525 (grub_arch_modules_addr): New function.
49526 * util/misc.c: Include unistd.h.
49527 (grub_util_get_fp_size): New function.
49528 (grub_util_read_at): Likewise.
49529 (grub_util_write_image_at): Likewise.
49530 (grub_util_read_image): Call grub_util_read_at.
49531 (grub_util_write_image): Call grub_util_write_image_at.
49532 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
49533 additional memory in kernel_img for a struct grub_module_info.
49534 Fill in that grub_module_info.
49535 * util/powerpc/ieee1275/grub-mkimage.c: New file.
49536
458786f8 495372005-01-03 Hollis Blanchard <hollis@penguinppc.org>
49538
49539 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
49540 New function.
49541 * include/grub/powerpc/ieee1275/ieee1275.h
49542 (grub_ieee1275_milliseconds): New prototype.
49543 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
49544 Change to 1000.
49545 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
49546 grub_ieee1275_milliseconds.
49547
ac507d1b 495482005-01-03 Hollis Blanchard <hollis@penguinppc.org>
49549
49550 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
49551 variable.
49552 (find_options): New function.
49553 (cmain): Call find_options.
49554 * include/grub/powerpc/ieee1275/ieee1275.h
49555 (grub_ieee1275_realmode): New extern variable.
49556 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
49557 grub_map if grub_ieee1275_realmode is false.
49558
6b8fd1c4 495592004-12-29 Marco Gerards <metgerards@student.han.nl>
49560
49561 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
49562 lines are inserted and make it work like readline. Reported by
49563 Vincent Pelletier <subdino2004@yahoo.fr>.
49564
8514a1e0 495652004-12-28 Marco Gerards <metgerards@student.han.nl>
49566
49567 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
49568
49569 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
49570 `kern/powerpc/cache.S'.
49571
924b6140 495722004-12-27 Marco Gerards <metgerards@student.han.nl>
49573
49574 * genmk.rb: Handle the `Program' class in the main loop. Written
49575 by Johan Rydberg <jrydberg@gnu.org>.
49576 (Program): New class.
49577 (programs): New variable.
49578 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
49579 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
49580 instead of "grub/kernel.h". Include <grub/machine/init.h>.
49581 (help_arch): Function removed.
49582 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
49583 `powerpc/libgcc.h' and `loader.h'.
49584 (pkgdata_PROGRAMS): New variable.
49585 (sbin_UTILITIES): Variable removed.
49586 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
49587 (grubof_SOURCES): Variable re-defined so it only includes the
49588 core functionality.
49589 (grubof_CFLAGS): Remove `-DGRUBOF'.
49590 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
49591 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
49592 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
49593 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
49594 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
49595 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
49596 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
49597 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
49598 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
49599 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
49600 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
49601 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
49602 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
49603 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
49604 (pc_mod_CFLAGS): New variables.
49605 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
49606 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
49607 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
49608 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
49609 Moved from here...
49610 * include/grub/i386/pc/init.h (grub_os_area_addr)
49611 (rub_os_area_size): ... to here.
49612 * include/grub/powerpc/ieee1275/ieee1275.h
49613 (grub_ieee1275_entry_fn): Export symbol.
49614 * include/grub/powerpc/ieee1275/init.h: New file.
49615 * include/grub/powerpc/libgcc.h: Likewise.
49616 * include/grub/cache.h: Likewise.
49617 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
49618 <hollis@penguinppc.org>.
49619 * kern/dl.c: Include <grub/cache.h>.
49620 (grub_dl_flush_cache): New function.
49621 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
49622 for this module.
49623 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
49624 (grub_console_init): Removed prototypes.
49625 (grub_machine_init): Don't initialize the modules anymore.
49626 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
49627 static.
49628 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
49629 Macro undef removed.
49630 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
49631 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
49632 relocation `R_PPC_REL32'. Return an error when the relocation is
49633 unknown.
49634 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
49635 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
49636 * util/misc.c (grub_arch_sync_caches): Likewise.
49637
e4b47e0c 496382004-12-19 Marco Gerards <metgerards@student.han.nl>
49639
49640 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
49641 `symlist.c', add `grubof_symlist.c'.
49642 (symlist.c): Variable removed.
49643 (grubof_HEADERS): Variable added.
49644 (grubof_symlist.c): New target.
49645 (kernel_syms.lst): Use `grubof_HEADERS' instead of
49646 `kernel_img_HEADERS'.
49647 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
49648 * kern/powerpc/dl.c: New file.
49649 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
49650 Function removed.
49651 (grub_arch_dl_relocate_symbols): Likewise.
49652 (grub_register_exported_symbols): Likewise.
49653
4ceb3636 496542004-12-13 Marco Gerards <metgerards@student.han.nl>
49655
49656 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
49657 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
49658 to fail instead. Reported by Vincent Pelletier
49659 <subdino2004@yahoo.fr>.
49660
49661 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
49662 it is not allocated. Reported by Vincent Pelletier
49663 <subdino2004@yahoo.fr>.
49664
49665 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
49666 output so the output looks better.
f19dbdb7 49667
3f1578fe 496682004-12-04 Marco Gerards <metgerards@student.han.nl>
49669
49670 Modulize the partition map support and add support for the amiga
49671 partition map.
f19dbdb7 49672
3f1578fe 49673 * commands/ls.c: Include <grub/partition.h> instead of
49674 <grub/machine/partition.h>.
49675 * kern/disk.c: Likewise.
49676 * kern/rescue.c: Likewise.
49677 * loader/i386/pc/chainloader.c: Likewise.
49678 * normal/cmdline.c: Likewise.
49679 * kern/powerpc/ieee1275/init.c: Likewise.
49680 (grub_machine_init): Call `grub_pc_partition_map_init',
49681 `grub_amiga_partition_map_init' and
49682 `grub_apple_partition_map_init'.
49683 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
49684 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
49685 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
49686 `partition.h' and `pc_partition.h'.
49687 (grub_setup_SOURCES): Remove
49688 `disk/i386/pc/partition.c'. Add `kern/partition.c',
49689 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
49690 (grub_emu_SOURCES): Likewise.
49691 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
49692 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
49693 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
49694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
49695 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
49696 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
49697 (grubof_SOURCES): Likewise.
49698 * disk/i386/pc/partition.c: File removed.
49699 * disk/powerpc/ieee1275/partition.c: Likewise.
49700 * include/grub/powerpc/ieee1275/partition.h: Likewise.
49701 * include/grub/i386/pc/partition.h: Likewise.
49702 * kern/partition.c: New file.
49703 * partmap/amiga.c: Likewise.
49704 * partmap/apple.c: Likewise.
49705 * partmap/pc.c: Likewise.
49706 * include/grub/partition.h: Likewise..
49707 * include/grub/pc_partition.h: Likewise.
49708 * util/grub-emu.c: Include <grub/partition.h> instead of
49709 <grub/machine/partition.h>.
49710 (main): Call `grub_pc_partition_map_init',
49711 `grub_amiga_partition_map_init' and
49712 `grub_apple_partition_map_init' and deinitialize afterwards.
49713 * util/i386/pc/biosdisk.c: Include `#include
49714 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
49715 `<grub/machine/partition.h>'.
49716 * util/i386/pc/grub-setup.c: Likewise.
49717 * util/i386/pc/biosdisk.c: Likewise.
49718 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
49719 partition information in case of a PC partition.
49720 * util/i386/pc/grub-setup.c: Include `#include
49721 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
49722 `<grub/machine/partition.h>'.
49723 (setup): Only access the PC specific partition information in case
49724 of a PC partition.
49725
0ef4ced9 497262004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 49727
0ef4ced9 49728 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
49729 (grub_longjmp): Likewise.
49730 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
49731 20.
49732 * normal/powerpc/setjmp.S: New file.
49733 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
49734 `normal/powerpc/setjmp.S'.
49735 (grubof_CFLAGS): Add `-DGRUBOF'.
49736 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
49737 [GRUB_UTIL && !GRUBOF].
f19dbdb7 49738
19950e29 497392004-11-16 Marco Gerards <metgerards@student.han.nl>
49740
49741 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
49742 property named `name'. Correctly handle the error returned by
49743 `grub_ieee1275_finddevice' if a device can not be opened.
49744
a2fea427 497452004-11-02 Hollis Blanchard <hollis@penguinppc.org>
49746
49747 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
49748 `actual' for negativity.
49749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
49750 kern/fshelp.c.
49751
41ea0ea3 497522004-11-01 Marco Gerards <metgerards@student.han.nl>
49753
49754 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
49755 (PAGE_OFFSET): New macro.
49756 (CRTC_ADDR_PORT): Likewise.
49757 (CRTC_DATA_PORT): Likewise.
49758 (START_ADDR_HIGH_REGISTER): Likewise.
49759 (START_ADDR_LOW_REGISTER): Likewise.
49760 (GRAPHICS_ADDR_PORT): Likewise.
49761 (GRAPHICS_DATA_PORT): Likewise.
49762 (READ_MAP_REGISTER): Likewise.
49763 (INPUT_STATUS1_REGISTER): Likewise.
49764 (INPUT_STATUS1_VERTR_BIT): Likewise.
49765 (page): New variable.
49766 (wait_vretrace): New function.
49767 (set_read_map): Likewise.
49768 (set_start_address): Likewise.
49769 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
49770 the right page.
49771 (check_vga_mem): Take the page into account.
49772 (write_char): Likewise.
49773 (write_cursor): Likewise.
49774 (scroll_up): Likewise. Copy the page to the page that is not
49775 shown and switch between both pages.
49776 (grub_vga_putchar): Fix off by one error.
49777 (grub_vga_cls): Wait for the vertical retrace. Take the page into
49778 account.
49779
ad0bd20b 497802004-11-01 Marco Gerards <metgerards@student.han.nl>
49781
49782 Add support for iso9660 (including rockridge).
f19dbdb7 49783
ad0bd20b 49784 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
49785 (iso9660_mod_SOURCES): New variable.
49786 (iso9660_mod_CFLAGS): Likewise.
49787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
49788 * include/grub/fs.h (grub_iso9660_init): New prototype.
49789 * util/grub-emu.c (main): Call `grub_iso9660_init'.
49790 * fs/iso9660.c: New file.
49791
49792 * include/grub/misc.h (grub_strncat): New prototype.
49793 * kern/misc.c (grub_strncat): New function.
f19dbdb7 49794
ad0bd20b 49795 * fs/hfs.c (grub_hfs_mount): Translate the error
49796 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
49797 * fs/jfs.c (grub_jfs_mount): Likewise.
49798 * fs/ufs.c (grub_ufs_mount): Likewise.
49799
a5477a59 498002004-10-28 Hollis Blanchard <hollis@penguinppc.org>
49801
49802 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
49803 which initialized BAT registers.
49804 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
49805 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
49806 Move from here...
49807 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
49808 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
49809 ... to here.
49810 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
49811 (grub_mapclaim): Likewise.
49812 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
49813 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
49814 hand.
49815
9304c1f8 498162004-10-19 Hollis Blanchard <hollis@penguinppc.org>
49817
49818 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
49819 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
49820 -ffreestanding and -msoft-float.
49821
86f4ae25 498222004-10-15 Hollis Blanchard <hollis@penguinppc.org>
49823
49824 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
49825 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
49826 set in grub_ieee1275_flags.
49827
38912228 498282004-10-14 Hollis Blanchard <hollis@penguinppc.org>
49829
49830 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
49831 prototype.
49832 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
49833 grub_console_init first.
49834 Change the memory range used for grub_ieee1275_claim and
49835 grub_mm_init_region.
49836 Print an error message if the claim fails.
49837 Include <grub/misc.h>.
49838
d1923dc8 498392004-10-13 Hollis Blanchard <hollis@penguinppc.org>
49840
49841 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
49842 Call grub_children_iterate for device nodes of type `scsi',
49843 `ide', or `ata'.
49844 (grub_ofdisk_open): Remove manual device alias resolution.
49845 Fix memory leak when device cannot be opened.
f19dbdb7 49846 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 49847 (grub_children_iterate): New prototype.
49848 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
49849 New function.
49850 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49851 Return -1 if args.size was -1.
49852
4512e4f3 498532004-10-11 Hollis Blanchard <hollis@penguinppc.org>
49854
49855 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
49856 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
49857 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
49858 Open Firmware's memory for it; claim memory from _start to _end.
49859 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
49860 (_end): New extern.
49861 (_start): Zero BSS from __bss_start to _end.
49862 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49863 New extern.
49864 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
49865
4d61feb0 498662004-10-11 Hollis Blanchard <hollis@penguinppc.org>
49867
ad0bd20b 49868 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
49869 -1 if args.base was -1.
4d61feb0 49870
026fa2f9 498712004-10-08 Hollis Blanchard <hollis@penguinppc.org>
49872
49873 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
49874 escape sequence instead of a literal ^L. Also call
49875 grub_ofconsole_gotoxy.
49876
9f2220ef 498772004-10-03 Hollis Blanchard <hollis@penguinppc.org>
49878
49879 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
49880 void * arguments to grub_addr_t. All callers updated. Also make
49881 the `result' argument optional.
49882 (grub_ieee1275_release): change void * arguments to grub_addr_t.
49883 All callers updated.
49884
8a572cd7 498852004-09-22 Hollis Blanchard <hollis@penguinppc.org>
49886
49887 * commands/ls.c (grub_ls_list_files): Use the string following the
49888 initial ')', if present, as the filesystem path.
49889 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
49890
49891 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
49892
18aa81f2 498932004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
49894
49895 Make the source code of the menu interface more readable.
f19dbdb7 49896
18aa81f2 49897 * normal/menu.c: Include grub/mm.h.
49898 (TERM_WIDTH): New macro.
49899 (TERM_HEIGHT): Likewise.
49900 (TERM_INFO_HEIGHT): Likewise.
49901 (TERM_MARGIN): Likewise.
49902 (TERM_SCROLL_WIDTH): Likewise.
49903 (TERM_TOP_BORDER_Y): Likewise.
49904 (TERM_LEFT_BORDER_X): Likewise.
49905 (TERM_BORDER_WIDTH): Likewise.
49906 (TERM_MESSAGE_HEIGHT): Likewise.
49907 (TERM_BORDER_HEIGHT): Likewise.
49908 (TERM_NUM_ENTRIES): Likewise.
49909 (TERM_FIRST_ENTRY_Y): Likewise.
49910 (TERM_ENTRY_WIDTH): Likewise.
49911 (TERM_CURSOR_X): Likewise.
49912 (draw_border): Use macros instead of magic numbers.
49913 (print_entry): Likewise.
49914 (print_entries): Likewise.
49915 (run_menu): Likewise. Also, handle the key 'e'.
49916 (run_menu_entry): Ignore empty command lines.
49917 (print_message): Added a new argument EDIT. If EDIT is true,
49918 print a different message.
49919 (init_page): Likewise.
49920 (edit_menu_entry): New function. Not implemented yet.
49921
b47efe30 499222004-09-17 Marco Gerards <metgerards@student.han.nl>
49923
49924 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
49925 can be loaded from normal mode.
f19dbdb7 49926
b47efe30 49927 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
49928 `multiboot.mod'.
49929 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
49930 (multiboot_mod_CFLAGS): New variables.
49931 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 49932 * loader/i386/pc/multiboot_normal.c: Likewise.
49933
b47efe30 49934 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
49935 attribute `unused'.
f19dbdb7 49936
b47efe30 49937 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
49938 `fdiro' to read the mode information from instead of `diro'.
49939
49940 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
49941 looking up a symlink.
49942
49943 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
49944 macro.
49945 * normal/command.c (grub_command_execute): Don't parse the
49946 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
49947 flags of the command.
49948
49949 * normal/menu.c (grub_menu_run): Fix typo.
49950
da75ac71 499512004-09-14 Hollis Blanchard <hollis@penguinppc.org>
49952
49953 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
49954
49955 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
49956 `y + 1' instead of `y - 1'.
49957
49958 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 49959
062b24c2 499602004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
49961
49962 From Hollis Blanchard <hollis@penguinppc.org>:
49963 * kern/misc.c (memmove): New alias for grub_memmove.
49964 (memcmp): New alias for grub_memcmp.
49965 (memset): New alias for grub_memset.
f19dbdb7 49966 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 49967 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 49968 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 49969 (grub_ieee1275_get_property): Likewise.
f19dbdb7 49970
8ddad845 499712004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
49972
49973 Added normal mode command `chainloader' as module chain.mod, which
49974 depends on normal.mod and _chain.mod.
f19dbdb7 49975
8ddad845 49976 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
49977 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
49978 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
49979 Deleted prototype.
49980 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
49981 but arguments parsing moved to ...
49982 (grub_chainloader_cmd): ... here. New function.
49983 * include/grub/i386/pc/chainloader.h: New file.
49984 * loader/i386/pc/chainloader_normal.c: Likewise.
49985
2c1f4ce3 499862004-09-11 Marco Gerards <metgerards@student.han.nl>
49987
49988 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
49989 (grub_mkimage_LDFLAGS): Likewise.
49990 (grub_emu_SOURCES): Likewise.
49991 (kernel_img_HEADERS): Added fshelp.h.
49992 * fs/ext2.c: Include <grub/fshelp.h>.
49993 (FILETYPE_REG): New macro.
49994 (FILETYPE_INO_REG): Likewise.
49995 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
49996 Changed all users.
49997 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
49998 all users.
49999 (grub_fshelp_node): New struct.
50000 (grub_ext2_data): Added member `diropen'. Changed member `inode'
50001 to a pointer.
50002 (grub_ext2_get_file_block): Removed function.
50003 (grub_ext2_read_block): New function.
50004 (grub_ext2_read_file): Replaced parameter `data' by `node'.
50005 This function was written.
50006 (grub_ext2_mount): Read the root inode. Create a diropen struct.
50007 (grub_ext2_find_file): Removed function.
50008 (grub_ext2_read_symlink): New function.
50009 (grub_ext2_iterate_dir): Likewise.
50010 (grub_ext2_open): Rewritten.
50011 (grub_ext2_dir): Rewritten.
50012 * include/grub/fshelp.h: New file.
50013 * fs/fshelp.c: Likewise.
50014
3c52136a 500152004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
50016
50017 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
50018 (print_message): Add a missing newline.
50019 (run_menu): Added timeout support.
50020 (run_menu_entry): New local function.
50021 (grub_menu_run): Added support for booting.
50022
50023 * kern/loader.c (grub_loader_is_loaded): New function.
50024
50025 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
50026 (grub_get_rtc): Exported.
50027
50028 * include/grub/i386/pc/time.h: Include grub/symbol.h.
50029 (grub_get_rtc): Exported.
50030
50031 * include/grub/normal.h (struct grub_command_list): Remove
50032 constant from the member `command'.
50033
50034 * include/grub/loader.h (grub_loader_is_loaded): Declared.
50035
50036 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
50037
50038 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
50039
aa033560 500402004-08-28 Marco Gerards <metgerards@student.han.nl>
50041
50042 Add support for the JFS filesystem.
50043
50044 * fs/jfs.c: New file.
50045 * include/grub/fs.h (grub_jfs_init): New prototype.
50046 (grub_jfs_fini): New prototype.
50047 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
50048 (grub_emu_SOURCES): Likewise.
50049 (pkgdata_MODULES): Add jfs.mod.
50050 (jfs_mod_SOURCES): New variable.
50051 (jfs_mod_CFLAGS): Likewise.
50052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
50053 (grubof_SOURCES): Likewise.
50054 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
50055
50056 * fs/fat.c (grub_fat_find_dir): Convert the filename little
50057 endian to the host endian.
50058 (grub_fat_utf16_to_utf8): Move function from there...
50059 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 50060 the endianness of the source string anymore.
aa033560 50061 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
50062
94bc45af 500632004-08-24 Marco Gerards <metgerards@student.han.nl>
50064
50065 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
50066 (grub_boot_fini) [GRUB_UTIL]: Likewise.
50067 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
50068 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 50069
94bc45af 50070 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
50071 (grub_hfs_iterate_dir): Make the function static. Add prototypes
50072 for `node_found' and `it_dir'.
50073 (grub_hfs_dir): Add prototype for `dir_hook'.
50074
50075 * fs/minix.c (grub_minix_get_file_block): Add prototype for
50076 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
50077 and `indir32' to silence a gcc warning.
50078
50079 * include/grub/fs.h (grub_hfs_init): New prototype.
50080 (grub_hfs_fini): Likewise.
f19dbdb7 50081
50082
97543f08 500832004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
50084
50085 Each disk device has its own id now. This is useful to make use
50086 of multiple disk devices.
f19dbdb7 50087
97543f08 50088 * include/grub/disk.h (grub_disk_dev_id): New enum.
50089 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
50090 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
50091
50092 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
50093 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50094
50095 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
50096 GRUB_DISK_DEVICE_OFDISK_ID as an id.
50097
50098 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
50099 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50100
50101 * include/grub/disk.h (struct grub_disk_dev): Added a new member
50102 "id" which is used by the cache manager.
50103
50104 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
50105 of just "GRUB".
50106
64372eb4 501072004-08-18 Marco Gerards <metgerards@student.han.nl>
50108
50109 * fs/hfs.c: New file.
50110 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
50111 (grub_emu_SOURCES): Likewise.
50112 (pkgdata_MODULES): Add hfs.mod.
50113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
50114 (grubof_SOURCES): Likewise.
50115 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
50116
50117 * include/grub/misc.h (grub_strncasecmp): Add prototype.
50118 * kern/misc.c (grub_strncasecmp): Add function.
50119
cc61b58f 501202004-08-14 Marco Gerards <metgerards@student.han.nl>
50121
50122 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
50123 with parentheses.
50124
50125 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
50126 (grub_ext2_dir): In case the directory entry type is unknown, read
50127 it from the inode.
50128
0ef123f6 501292004-08-02 Peter Bruin <pjbruin@dds.nl>
50130
50131 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
50132 grub_load_linux instead of grub_rescue_cmd_linux as second
50133 argument of grub_rescue_register_command.
50134
50135 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
50136
a447c5df 501372004-07-27 Marco Gerards <metgerards@student.han.nl>
50138
50139 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
50140 function.
50141 * commands/boot.c: Remove the check for `GRUB_UTIL'.
50142 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50143 `loader/powerpc/ieee1275/linux.c',
50144 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
50145 * include/grub/powerpc/ieee1275/ieee1275.h
50146 (grub_ieee1275_release): New prototype.
50147 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
50148 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
50149 normal, boot, linux and linux_normal.
50150 * loader/powerpc/ieee1275/linux.c: New file.
50151 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
50152
5a9e3546 501532004-07-12 Marco Gerards <metgerards@student.han.nl>
50154
50155 * normal/arg.c (grub_arg_parse): Correct error handling after
50156 reallocating the argumentlist (check if `argl' is not null instead
50157 of checking if `args' is not null).
50158 * kern/mm.c (grub_realloc): Return the same pointer when using the
50159 same region, instead of returning the header address.
50160
e15199cb 501612004-07-11 Marco Gerards <metgerards@student.han.nl>
50162
50163 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
50164 one block instead of two when looking for the initial partition.
50165 (grub_partition_probe): Initialize the local variable `p' with 0.
50166 Use base 10 for the grub_strtoul call.
50167 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
50168 need for one local variable.
50169 (grub_strtoul): Don't add the new value to `num', instead of that
50170 just assign it.
50171
020616c2 501722004-07-11 Marco Gerards <metgerards@student.han.nl>
50173
50174 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
50175 (pxeboot_img_SOURCES): New variable.
50176 (pxeboot_img_ASFLAGS): Likewise.
50177 (pxeboot_img_LDFLAGS): Likewise.
50178 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
50179 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
50180 <lode_leroy@hotmail.com>.
50181
6c51eb64 501822004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50183
50184 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
50185 there was no input.
50186
cfb12aff 501872004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50188
50189 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
50190 the history buffer logic.
50191
6eabba74 501922004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50193
50194 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
50195 (FILETYPE_INO_SYMLINK): New macros.
50196 (grub_ext2_find_file): Check if the node is a directory using the
50197 inode stat information instead of using the filetype in the
50198 dirent. Exclude the first character of an absolute symlink.
50199 (grub_ext2_dir): Mask out the filetype part of the mode member of
50200 the inode.
50201
66e19ef8 502022004-05-24 Marco Gerards <metgerards@student.han.nl>
50203
50204 Add support for UFS version 1 and 2. Add support for the minix
50205 filesystem version 1 and 2, both the variants with 14 and 30 long
50206 filenames.
f19dbdb7 50207
66e19ef8 50208 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
50209 fs/minix.c.
50210 (grub_emu_SOURCES): Likewise.
50211 (pkgdata_MODULES): Add ufs.mod and minix.mod.
50212 (ufs_mod_SOURCES): New variable.
50213 (ufs_mod_CFLAGS): Likewise.
50214 (minix_mod_SOURCES): Likewise.
50215 (minix_mod_CFLAGS): Likewise.
50216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
50217 fs/minix.c.
50218 (grubof_SOURCES): Likewise.
50219 * fs/ufs.c: New file.
50220 * fs/minix.c: New file.
50221 * include/grub/fs.h (grub_ufs_init): New prototype.
50222 (grub_ufs_fini): Likewise.
50223 (grub_minix_init): Likewise.
50224 (grub_minix_fini): Likewise.
50225 * util/grub-emu.c (main): Initialize and deinitialize UFS and
50226 minix fs.
50227
cc2e748a 502282004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
50229
50230 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
50231 commands/ls.c, commands/terminal.c, commands/boot.c,
50232 commands/cmp.c and commands/cat.c.
50233 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
50234
50235 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
50236 "env.h"
50237
4b13b216 502382004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50239
50240 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
50241 and grub_, respectively. Because the conversion is trivial and
50242 mechanical, I omit the details here. Please refer to the CVS
50243 if you need more information.
50244
6a142551 502452004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50246
50247 * include/pupa: Renamed to ...
50248 * include/grub: ... this.
50249 * util/i386/pc/pupa-mkimage.c: Renamed to ...
50250 * util/i386/pc/grub-mkimage.c: ... this.
50251 * util/i386/pc/pupa-setup.c: Renamed to ...
50252 * util/i386/pc/grub-setup.c: ... this.
50253 * util/pupa-emu.c: Renamed to ...
50254 * util/grub-emu.c: ... this.
50255
e56cdf21 502562004-03-29 Marco Gerards <metgerards@student.han.nl>
50257
50258 Add support for the newworld apple macintosh (PPC). This has been
50259 tested on the powerbook 2000 only. It only adds support for
50260 generic ieee1275 functions, console and disk support. This should
50261 be easy to port to other architectures with support for Open
50262 Firmware.
f19dbdb7 50263
e56cdf21 50264 * configure.ac: Accept the powerpc as host_cpu. In the case of
50265 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
50266 specific tests are only executed while building for the i386.
50267 Inverse test for crosscompile.
50268 * genmk.rb (Utility): Allow assembler files.
50269 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
50270 * conf/powerpc-ieee1275.rmk: New file.
50271 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
50272 * disk/powerpc/ieee1275/partition.c: Likewise.
50273 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
50274 * include/pupa/powerpc/ieee1275/console.h: Likewise.
50275 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
50276 * include/pupa/powerpc/ieee1275/time.h: Likewise.
50277 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
50278 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
50279 * include/pupa/powerpc/ieee1275/loader.h
50280 * include/pupa/powerpc/setjmp.h: Likewise.
50281 * include/pupa/powerpc/types.h: Likewise.
50282 * kern/powerpc/ieee1275/init.c: Likewise.
50283 * kern/powerpc/ieee1275/openfw.c: Likewise.
50284 * term/powerpc/ieee1275/ofconsole.c: Likewise.
50285
50286 These files were written by Johan Rydberg
50287 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 50288
e56cdf21 50289 * boot/powerpc/ieee1275/cmain.c: New file.
50290 * boot/powerpc/ieee1275/crt0.S: Likewise.
50291 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
50292 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
50293
8c8cc205 502942004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
50295
50296 * Makefile.in: Update copyright.
50297 * genmodsrc.sh: Likewise.
50298 * gensymlist.sh: Likewise.
50299 * term/i386/pc/vga.c: Indent correctly.
50300
50301 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
50302 bugreporting address.
50303 * util/i386/pc/pupa-setup.c (usage): Likewise,
50304 (main): Call pupa_ext2_init and pupa_ext2_fini.
50305
f19dbdb7 50306 * fs/fat.c (log2): Renamed to ...
8c8cc205 50307 (fat_log2): ... this.
50308 All callers changed.
50309 * kern/misc.c (memcpy): Alias to pupa_memmove.
50310 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
50311 lvalue cast.
50312 * util/console.c (pupa_ncurses_fini): Return 0.
50313
50314 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
50315 Move fail label here.
50316 [__GNU__]: Don't warn when using stat.
50317 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
50318 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
50319 long int. Use strtol instead of strtoul.
f19dbdb7 50320
db1771cf 503212004-03-14 Marco Gerards <metgerards@student.han.nl>
50322
50323 * commands/boot.c: New file.
50324 * commands/cat.c: Likewise.
50325 * commands/cmp.c: Likewise.
50326 * commands/ls.c: Likewise.
50327 * commands/terminal.c: Likewise.
50328 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
50329 (pupa_register_command): Changed interface to match the new
50330 argument parser.
50331 (pupa_command_execute): Changed (almost rewritten) so it uses
50332 pupa_split_command. Added support for setting variables using the
50333 syntax `foo=bar'.
50334 (rescue_command): Changed to work with the new argument parser.
50335 (terminal_command): Moved from here to commands/terminal.c.
50336 (set_command): New function.
50337 (unset_command): New function.
50338 (insmod_command): New function.
50339 (rmmod_command): New function.
50340 (lsmod_command): New function.
50341 (pupa_command_init): Don't initialize the command terminal
50342 anymore. Initialize the commands set, unset, insmod, rmmod and
50343 lsmod.
50344 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
50345 (kernel_img_HEADERS): Add arg.h and env.h.
50346 (pupa_mkimage_LDFLAGS): Add kern/env.c.
50347 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
50348 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
50349 normal/arg.c.
50350 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
50351 terminal.mod.
50352 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
50353 (boot_mod_SOURCES): New variable.
50354 (terminal_mod_SOURCES): Likewise.
50355 (ls_mod_SOURCES): Likewise.
50356 (cmp_mod_SOURCES): Likewise.
50357 (cat_mod_SOURCES): Likewise.
50358
50359 * normal/arg.c: New file.
50360 * kern/env.c: Likewise.
50361 * include/pupa/arg.h: Likewise.
50362 * include/pupa/env.h: Likewise.
50363 * font/manager.c (font_command): Changed to match argument parsing
50364 interface changes.
50365 (PUPA_MOD_INIT): Likewise.
50366 * hello/hello.c (pupa_cmd_hello): Likewise.
50367 (PUPA_MOD_INIT): Likewise.
50368 * include/pupa/disk.h: Include <pupa/device.h>.
50369 (pupa_print_partinfo): New prototype.
50370 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
50371 (pupa_dl_get_prefix): Likewise.
50372 * include/pupa/misc.h: Include <pupa/err.h>.
50373 (pupa_isgraph): New prototype.
50374 (pupa_isdigit): Likewise.
50375 (pupa_split_cmdline): Likewise.
50376 * include/pupa/normal.h: Include <pupa/arg.h>.
50377 (pupa_command): Changed the prototype of the member `func' to
50378 match the argument parsing interface. Added member `options'.
50379 (pupa_register_command): Updated to match function.
50380 (pupa_arg_parse): New prototype.
50381 (pupa_hello_init) [PUPA_UTIL]: New prototype.
50382 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
50383 (pupa_ls_init) [PUPA_UTIL]: Likewise.
50384 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
50385 (pupa_cat_init) [PUPA_UTIL]: Likewise.
50386 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
50387 (pupa_boot_init) [PUPA_UTIL]: Likewise.
50388 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
50389 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
50390 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
50391 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
50392 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
50393 * kern/disk.c: Include <pupa/file.h>.
50394 (pupa_print_partinfo): New function.
50395 * kern/dl.c: Include <pupa/env.h>.
50396 (pupa_dl_dir): Variable removed.
50397 (pupa_dl_load): Use the environment variable `prefix' instead of
50398 the variable pupa_dl_dir.
50399 (pupa_dl_set_prefix): Function removed.
50400 (pupa_dl_get_prefix): Likewise.
50401 * kern/i386/pc/init.c: Include <pupa/env.h>.
50402 (pupa_machine_init): Use the environment variable `prefix' instead of
50403 using pupa_dl_set_prefix to set the prefix.
50404 * kern/main.c: Include <pupa/env.h>.
50405 (pupa_set_root_dev): Use the environment variable `prefix' instead of
50406 using pupa_dl_get_prefix to get the prefix.
50407 * kern/misc.c: Include <pupa/env.h>.
50408 (pupa_isdigit): New function.
50409 (pupa_isgraph): Likewise.
50410 (pupa_ftoa): Likewise.
50411 (pupa_vsprintf): Added support for printing values of the type
50412 `double'. Make it possible to format variable output when using
50413 formatting like `%1.2%f'.
50414 (pupa_split_cmdline): New function.
50415 * kern/rescue.c: Include <pupa/env.h>.
50416 (next_word): Removed function.
50417 (pupa_rescue_cmd_prefix): Likewise.
50418 (pupa_rescue_cmd_set): New function.
50419 (pupa_rescue_cmd_unset): New function.
50420 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
50421 split the command line instead of splitting it here. Added
50422 support for setting variables using the syntax `foo=bar'. Don't
50423 initialize the prefix command anymore. Initialized the set and
50424 unset commands.
50425 * normal/cmdline.c: Include <pupa/env.h>.
50426 (pupa_tab_complete): Added prototypes for print_simple_completion,
50427 print_partition_completion, add_completion, iterate_commands,
50428 iterate_dev, iterate_part and iterate_dir. Moved code to print
50429 partition information from here to kern/disk.c.
fe6b695a 50430 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 50431 * normal/main.c: Include <pupa/env.h>.
50432 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
50433 instead of using pupa_dl_get_prefix to get the prefix.
50434 * term/i386/pc/vga.c: Include <pupa/arg.h>.
50435 (check_vga_mem): Cast pointers to `void *' to silence a gcc
50436 warning.
50437 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
50438 (pupa_vga_setcolor): Declare unused variables with `__attribute__
50439 ((unused))' to silence a gcc warning.
50440 (pupa_vga_setcolor): Likewise.
50441 (debug_command): Changed to match argument parsing
50442 interface changes.
50443 * util/pupa-emu.c: Include <pupa/env.h>.
50444 (options): Added 0's for unused fields to silence a gcc warning.
50445 (argp): Likewise.
50446 (main): Use the environment variable `prefix' instead of using
50447 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
50448 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
50449 and terminal.
50450
50451 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
50452 * util/misc.c: Include <malloc.h>.
50453 (pupa_malloc): Rewritten so errors are correctly reported.
50454 (pupa_realloc): Likewise.
50455 (pupa_memalign): Likewise.
50456 (pupa_mm_init_region): Declare unused variables with
50457 `__attribute__ ((unused))' to silence a gcc warning.
50458 * normal/i386/setjmp.S: Remove tab at the end of the file to
50459 silence a gcc warning.
50460 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
50461 variables with `__attribute__ ((unused))' to silence a gcc
50462 warning.
50463 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
50464 local variable i unsigned to silence a gcc warning.
50465
50466 * kern/term.c: Include <pupa/misc.h>.
50467 (pupa_more_lines): New variable.
50468 (pupa_more): Likewise.
50469 (pupa_putcode): When the pager is active pause at the end of every
50470 screen.
50471 (pupa_set_more): New function.
50472 * include/pupa/term.h (pupa_set_more): New prototype.
50473
50474
3b1139cb 504752004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
50476
50477 Now this project is GRUB 2 rather than PUPA. The location of
50478 the CVS repository was moved to GRUB's.
f19dbdb7 50479
3b1139cb 50480 * configure.ac: Use bug-grub as the reporting address.
50481 Use GRUB instead of PUPA.
50482 Change the version number to 1.90.
50483
8367695c 504842004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
50485
50486 * genkernsyms.sh: Updated copyright information.
50487 * genmk.rb: Likewise.
50488 * genmodsrc.sh: Likewise.
50489 * gensymlist.sh: Likewise.
50490 * boot/i386/pc/boot.S: Likewise.
50491 * boot/i386/pc/diskboot.S: Likewise.
50492 * disk/i386/pc/biosdisk.c: Likewise.
50493 * disk/i386/pc/partition.c: Likewise.
50494 * font/manager.c: Likewise.
50495 * fs/ext2.c: Likewise.
50496 * fs/fat.c: Likewise.
50497 * include/pupa/boot.h: Likewise.
50498 * include/pupa/device.h: Likewise.
50499 * include/pupa/disk.h: Likewise.
50500 * include/pupa/dl.h: Likewise.
50501 * include/pupa/elf.h: Likewise.
50502 * include/pupa/err.h: Likewise.
50503 * include/pupa/file.h: Likewise.
50504 * include/pupa/font.h: Likewise.
50505 * include/pupa/fs.h: Likewise.
50506 * include/pupa/kernel.h: Likewise.
50507 * include/pupa/loader.h: Likewise.
50508 * include/pupa/misc.h: Likewise.
50509 * include/pupa/mm.h: Likewise.
50510 * include/pupa/net.h: Likewise.
50511 * include/pupa/normal.h: Likewise.
50512 * include/pupa/rescue.h: Likewise.
50513 * include/pupa/setjmp.h: Likewise.
50514 * include/pupa/symbol.h: Likewise.
50515 * include/pupa/term.h: Likewise.
50516 * include/pupa/types.h: Likewise.
50517 * include/pupa/i386/setjmp.h: Likewise.
50518 * include/pupa/i386/types.h: Likewise.
50519 * include/pupa/i386/pc/biosdisk.h: Likewise.
50520 * include/pupa/i386/pc/boot.h: Likewise.
50521 * include/pupa/i386/pc/console.h: Likewise.
50522 * include/pupa/i386/pc/init.h: Likewise.
50523 * include/pupa/i386/pc/kernel.h: Likewise.
50524 * include/pupa/i386/pc/linux.h: Likewise.
50525 * include/pupa/i386/pc/loader.h: Likewise.
50526 * include/pupa/i386/pc/memory.h: Likewise.
50527 * include/pupa/i386/pc/multiboot.h: Likewise.
50528 * include/pupa/i386/pc/partition.h: Likewise.
50529 * include/pupa/i386/pc/time.h: Likewise.
50530 * include/pupa/i386/pc/vga.h: Likewise.
50531 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
50532 * include/pupa/util/getroot.h: Likewise.
50533 * include/pupa/util/misc.h: Likewise.
50534 * include/pupa/util/resolve.h: Likewise.
50535 * kern/device.c: Likewise.
50536 * kern/disk.c: Likewise.
50537 * kern/dl.c: Likewise.
50538 * kern/err.c: Likewise.
50539 * kern/file.c: Likewise.
50540 * kern/fs.c: Likewise.
50541 * kern/loader.c: Likewise.
50542 * kern/main.c: Likewise.
50543 * kern/misc.c: Likewise.
50544 * kern/mm.c: Likewise.
50545 * kern/rescue.c: Likewise.
50546 * kern/term.c: Likewise.
50547 * kern/i386/dl.c: Likewise.
50548 * kern/i386/pc/init.c: Likewise.
50549 * kern/i386/pc/lzo1x.S: Likewise.
50550 * kern/i386/pc/startup.S: Likewise.
50551 * loader/i386/pc/chainloader.c: Likewise.
50552 * loader/i386/pc/linux.c: Likewise.
50553 * loader/i386/pc/multiboot.c: Likewise.
50554 * normal/cmdline.c: Likewise.
50555 * normal/command.c: Likewise.
50556 * normal/main.c: Likewise.
50557 * normal/menu.c: Likewise.
50558 * normal/i386/setjmp.S: Likewise.
50559 * term/i386/pc/console.c: Likewise.
50560 * term/i386/pc/vga.c: Likewise.
50561 * util/console.c: Likewise.
50562 * util/genmoddep.c: Likewise.
50563 * util/misc.c: Likewise.
50564 * util/pupa-emu.c: Likewise.
50565 * util/resolve.c: Likewise.
50566 * util/unifont2pff.rb: Likewise.
50567 * util/i386/pc/biosdisk.c: Likewise.
50568 * util/i386/pc/getroot.c: Likewise.
50569 * util/i386/pc/pupa-mkimage.c: Likewise.
50570 * util/i386/pc/pupa-setup.c: Likewise.
50571
e6eced71 505722004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
50573
50574 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
50575 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
50576 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
50577 reading and reset it after reading.
50578 (pupa_ext2_close): Return PUPA_ERR_NONE.
50579
50580 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
50581 Correct value.
50582 (struct linux_kernel_header): Add kernel_version and
50583 initrd_addr_max.
50584 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
50585 pupa_file_read succeeds.
50586 (pupa_rescue_cmd_initrd): Implement.
50587
5aded270 505882003-12-03 Marco Gerards <metgerards@student.han.nl>
50589
50590 * fs/ext2.c (pupa_ext2_label): New function.
50591 (pupa_ext2_fs): Added label.
50592 * fs/fat.c (pupa_fat_label): New function.
50593 (pupa_fat_fs): Added label.
50594 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
50595
50596 * kern/misc.c (pupa_strndup): New function.
50597 * include/pupa/misc.h (pupa_strndup): New prototype.
50598
50599 * include/pupa/normal.h: Include <pupa/err.h>.
50600 (pupa_set_history): New prototype.
50601 (pupa_iterate_commands): New prototype.
50602 * normal/cmdline.c: Include <pupa/machine/partition.h>,
50603 <pupa/disk.h>, <pupa/file.h>.
50604 (hist_size): New variable.
50605 (hist_lines): Likewise.
50606 (hist_end): Likewise.
50607 (hist_used): Likewise.
50608 (pupa_set_history): New function.
50609 (pupa_history_get): Likewise.
50610 (pupa_history_add): Likewise.
50611 (pupa_history_replace): Likewise.
50612 (pupa_tab_complete): Likewise.
50613 (pupa_cmdline_run): Added tab completion and history buffer. Tab
50614 completion shows partitionnames while completing partitions, this
50615 feature was suggested by Jeff Bailey.
50616 * normal/command.c (pupa_iterate_commands): New function.
50617 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
50618 (pupa_normal_init): Initialize history buffer.
50619 (PUPA_MOD_INIT): Likewise.
50620 (pupa_normal_fini): Free the history buffer.
50621 (PUPA_MOD_FINI): Likewise.
50622
50623 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
50624 key.
50625
50626 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
50627 * configure.ac [i386]: Check for regparam bug.
50628 (NESTED_FUNC_ATTR) [! i386]: Defined.
50629
1f7315a3 506302003-11-17 Marco Gerards <metgerards@student.han.nl>
50631
50632 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
50633 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
50634 (pupa_emu_SOURCES): New variable.
50635 (pupa_emu_LDFLAGS): Likewise.
50636 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
50637 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
50638 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
50639 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
50640 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
50641 (pupa_jmp_buf): New typedef.
50642 (pupa_setjmp) [PUPA_UTIL]: New macro.
50643 (pupa_longjmp) [PUPA_UTIL]: Likewise.
50644 * include/pupa/term.h (struct pupa_term): New member `refresh'.
50645 (pupa_refresh): New prototype.
50646 * include/pupa/util/getroot.h: New file.
50647 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
50648 it.
50649 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
50650 (pupa_rescue_cmd_cat): Likewise.
50651 (pupa_rescue_cmd_ls): Likewise.
50652 (pupa_rescue_cmd_testload): Likewise.
50653 (pupa_rescue_cmd_lsmod): Likewise.
50654 * normal/cmdline.c (pupa_cmdline_get): Likewise.
50655 * normal/menu.c (run_menu): Likewise.
50656 * kern/term.c (pupa_cls): Likewise.
50657 (pupa_refresh): New function.
50658 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
50659 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
50660 * util/console.c: New file.
f19dbdb7 50661
1f7315a3 50662 * util/i386/pc/getroot.c: New file.
50663 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
50664 (pupa_putchar): New function.
50665 (pupa_refresh): Likewise.
50666 (xgetcwd): Function moved to ...
50667 (strip_extra_slashes): Likewise.
50668 (get_prefix): Likewise.
f19dbdb7 50669 * util/i386/pc/getroot.c: ... here.
1f7315a3 50670 (find_root_device): Function moved and renamed to...
50671 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
50672 Changed all callers.
50673 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
50674 and renamed to...
50675 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
50676 Changed all callers.
50677 * util/misc.c (pupa_memalign): New function.
50678 (pupa_mm_init_region): Likewise.
50679 (pupa_register_exported_symbols): Likewise.
50680 (pupa_putchar): Function removed.
50681 * util/pupa-emu.c: New file.
50682
9a5c1ade 506832003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
50684
50685 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
50686 (_multiboot_mod_SOURCES): New variable.
50687 (_multiboot_mod_CFLAGS): Likewise.
50688 * loader/i386/pc/multiboot.c: New file.
50689 * include/pupa/i386/pc/multiboot.h: Likewise.
50690 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
50691 (pupa_multiboot_real_boot): New function.
50692 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
50693 (pupa_multiboot_real_boot): New prototype.
50694 (pupa_rescue_cmd_multiboot): Likewise
50695 (pupa_rescue_cmd_module): Likewise.
50696
50697 * kern/loader.c (pupa_loader_set): Continue when
50698 pupa_loader_unload_func() fails.
50699 (pupa_loader_unset): New function.
50700 * include/pupa/loader.h (pupa_loader_unset): New prototype.
50701
50702 * kern/misc.c (pupa_stpcpy): New function.
50703 * include/pupa/misc.h (pupa_stpcpy): New prototype.
50704
8e72a9c0 507052003-11-12 Marco Gerards <metgerards@student.han.nl>
50706
50707 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
50708 for available extensions.
50709
50710 * include/pupa/i386/pc/time.h: New file.
50711 * kern/disk.c: Include <pupa/machine/time.h>.
50712 (PUPA_CACHE_TIMEOUT): New macro.
50713 (pupa_last_time): New variable.
50714 (pupa_disk_open): Flush the cache when there was a timeout.
50715 (pupa_disk_close): Reset the timer.
50716 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
50717 pupa_currticks.
50718 * util/misc.c: Include <sys/times.h>
50719 (pupa_get_rtc): New function.
50720
c4adbd32 507212003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
50722
50723 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
50724 as blocks.
50725 (pupa_ext2_get_file_block): Use blocks member.
50726
50727 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
50728 first block. Return -1 instead of pupa_errno on error.
50729
bfd30f06 507302003-10-27 Marco Gerards <metgerards@student.han.nl>
50731
50732 * README: In the pupa-mkimage example use _chain instead of chain
50733 and ext2 instead of fat.
50734 * TODO: Replace ext2fs with jfs as an example. Add an item for
50735 adding journal playback for ext2fs.
50736 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
50737 (pkgdata_MODULES): Added ext2.mod.
50738 (ext2_mod_SOURCES): New variable.
50739 (ext2_mod_CFLAGS): Likewise.
50740 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
50741 * include/pupa/misc.h (pupa_strncpy): New prototype.
50742 (pupa_strcat): Likewise.
50743 (pupa_strncmp): Likewise.
50744 * kern/misc.c (pupa_strcat): Enable function.
50745 (pupa_strncpy): New function.
50746 (pupa_strncmp): Likewise.
50747 * fs/ext2.c: New file.
f19dbdb7 50748
bfd30f06 50749 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
50750 when the read failed before retrying.
50751 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
50752 (_FILE_OFFSET_BITS): Likewise.
50753 * configure.ac: Added AC_SYS_LARGEFILE.
50754
98d15063 507552003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
50756
50757 * genmk.rb (PModule#rule): Make sure to get only symbol names
50758 from the output of nm.
59cad637 50759 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 50760
18d9c7cd 507612003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
50762
50763 I forgot to check in these changes for a long time. This adds
50764 incomplete support for VGA console, and this is still very
50765 buggy. Also, a lot of consideration is required for I18N,
50766 UNICODE, and VGA font issues. Therefore, assume that this is
50767 such that "better than nothing".
f19dbdb7 50768
18d9c7cd 50769 * font/manager.c: New file.
50770 * include/pupa/font.h: Likewise.
50771 * include/pupa/i386/pc/vga.h: Likewise.
50772 * term/i386/pc/vga.c: Likewise.
50773 * util/unifont2pff.rb: Likewise.
50774
50775 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
50776 (pkgdata_MODULES): Added vga.mod and font.mod.
50777 (vga_mod_SOURCES): New variables.
50778 (vga_mod_CFLAGS): Likewise.
50779 (font_mod_SOURCES): Likewise.
50780 (font_mod_CFLAGS): Likewise.
50781
50782 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
50783
50784 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 50785 (struct pupa_term): Added init and fini.
18d9c7cd 50786 Changed the argument of putchar to pupa_uint32_t.
50787
50788 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
50789 (pupa_console_real_putchar): New prototype.
50790 (pupa_console_putchar): Removed.
50791 (pupa_console_checkkey): Exported.
50792 (pupa_console_getkey): Likewise.
50793
50794 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
50795 characters.
50796
50797 * kern/term.c (pupa_term_set_current): Rewritten.
50798 (pupa_putchar): Likewise.
50799 (pupa_putcode): New function.
50800
50801 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
50802 (pupa_console_real_putchar): ... this.
50803 (pupa_vga_set_mode): New function.
50804 (pupa_vga_get_font): Likewise.
50805
50806 * normal/command.c: Include pupa/term.h.
50807 (terminal_command): New function.
50808 (pupa_command_init): Register the command "terminal".
50809
50810 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
50811 (DISP_UP): Likewise.
50812 (DISP_RIGHT): Likewise.
50813 (DISP_DOWN): Likewise.
50814 (DISP_HLINE): Likewise.
50815 (DISP_VLINE): Likewise.
50816 (DISP_UL): Likewise.
50817 (DISP_UR): Likewise.
50818 (DISP_LL): Likewise.
50819 (DISP_LR): Likewise.
50820
50821 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 50822
977329f5 508232003-02-08 NIIBE Yutaka <gniibe@m17n.org>
50824
50825 * util/resolve.c (pupa_util_resolve_dependencies): BUG
50826 FIX. Reverse the path_list.
50827
50828 * include/pupa/normal.h: Export pupa_register_command and
50829 pupa_unregister_command.
50830
50831 * hello/hello.c (pupa_cmd_hello): New module.
50832 * conf/i386-pc.rmk: Added hello.mod.
50833
1f5ab428 508342003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
50835
50836 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 50837
1f5ab428 50838 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
50839 (compress_kernel): New variable.
50840 (generate_image): Heavily modified to support compressing a
50841 large part of the core image.
50842
50843 * util/misc.c (pupa_util_read_image): Fix a file descriptor
50844 leak.
50845 (pupa_util_load_image): New function.
50846
50847 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
50848 (pupa_compressed_size): New variable.
50849 (codestart): Enable Gate A20 here.
50850 Decompress the compressed part of the core image.
50851 Rearrange the code to put functions and variables which are
50852 required for initialization in the non-compressed part.
50853 Include lzo1x.S.
50854
50855 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
50856 here.
50857
50858 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
50859
f19dbdb7 50860 * include/pupa/i386/pc/kernel.h
1f5ab428 50861 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
50862 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
50863 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
50864 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
50865 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
50866
50867 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
50868
50869 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
50870 (Utility#rule): Likewise.
50871
50872 * configure.ac: Check if LZO is available.
50873
ce5bf700 508742003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
50875
50876 * include/pupa/normal.h: New file.
50877 * include/pupa/setjmp.h: Likewise.
50878 * include/pupa/i386/setjmp.h: Likewise.
50879 * normal/cmdline.c: Likewise.
50880 * normal/command.c: Likewise.
50881 * normal/main.c: Likewise.
50882 * normal/menu.c: Likewise.
50883 * normal/i386/setjmp.S: Likewise.
f19dbdb7 50884
ce5bf700 50885 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
50886 (pupa_rescue_cmd_initrd): Likewise.
50887
50888 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
50889 Likewise.
50890
50891 * kern/i386/pc/startup.S (translation_table): New variable.
50892 (translate_keycode): New function.
50893 (pupa_console_getkey): Call translate_keycode.
50894
50895 * kern/rescue.c (attempt_normal_mode): New function.
50896 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
50897 it failed, print a message.
50898
50899 * kern/mm.c (pupa_real_malloc): Print more information when a
50900 free magic is broken.
50901 (pupa_free): If the first free header is not free actually, set
50902 it to P.
50903
50904 * kern/main.c (pupa_load_normal_mode): Just load the module
50905 "normal".
50906 (pupa_main): Don't print the message
50907 "Entering into rescue mode..." here.
50908
50909 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
50910 Declared.
50911 (pupa_rescue_cmd_initrd): Likewise.
50912 (pupa_rescue_cmd_initrd): Likewise.
50913
50914 * include/pupa/symbol.h (FUNCTION): Specify the type.
50915 (VARIABLE): Likewise.
50916
50917 * include/pupa/err.h (pupa_err_t): Added
50918 PUPA_ERR_UNKNOWN_COMMAND.
50919
50920 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
50921 (pupa_dl_get_prefix): Likewise.
50922
50923 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
50924 Added _chain.mod and _linux.mod instead of chain.mod and
50925 linux.mod.
50926 (chain_mod_SOURCES): Renamed to ...
50927 (_chain_mod_SOURCES): ... this.
50928 (chain_mod_CFLAGS): Renamed to ...
50929 (_chain_mod_CFLAGS): ... this.
50930 (linux_mod_SOURCES): Renamed to ...
50931 (_linux_mod_SOURCES): ... this.
50932 (linux_mod_CFLAGS): Renamed to ...
50933 (_linux_mod_CFLAGS): ... this.
50934 (normal_mod_SOURCES): New variable.
50935 (normal_mod_CFLAGS): Likewise.
50936 (normal_mod_ASFLAGS): Likewise.
50937
509382003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
50939
50940 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
50941 possible.
50942
fe6b695a 50943 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 50944 recursively.
50945 (pupa_dl_unref): Unrefer depending modules recursively.
50946 Don't call pupa_dl_unload implicitly, because PUPA can crash if
50947 a module is unloaded before one depending on that module is
50948 unloaded.
50949 (pupa_dl_unload): Unload depending modules explicitly,
50950 if possible.
50951
c04da074 509522003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
50953
50954 * include/pupa/i386/pc/linux.h: New file.
50955 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 50956
c04da074 50957 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
50958 Removed.
50959 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
50960 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
50961 of PUPA_CHAINLOADER_BOOT_SECTOR.
50962
50963 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
50964 (pupa_linux_prot_size): New variable.
50965 (pupa_linux_tmp_addr): Likewise.
50966 (pupa_linux_real_addr): Likewise.
50967 (pupa_linux_boot_zimage): New function.
50968 (pupa_linux_boot_bzimage): Likewise.
50969
50970 * kern/i386/pc/init.c (struct mem_region): New structure.
50971 (MAX_REGIONS): New macro.
50972 (mem_regions): New variable.
50973 (num_regions): Likewise.
50974 (pupa_os_area_addr): Likewise.
50975 (pupa_os_area_size): Likewise.
50976 (pupa_lower_mem): Likewise.
50977 (pupa_upper_mem): Likewise.
50978 (add_mem_region): New function.
50979 (compact_mem_regions): Likewise.
50980 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
50981 the size of the conventional memory and that of so-called upper
50982 memory (before the first memory hole).
50983 Instead of adding each found region to free memory, use
50984 add_mem_region and add them after removing overlaps.
50985 Also, add only 1/4 of the upper memory to free memory. The rest
50986 is used for loading OS images. Maybe this is ad hoc, but this
50987 makes it much easier to relocate OS images when booting.
50988
50989 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
50990 (pupa_enter_rescue_mode): Don't register initrd and module.
50991
50992 * kern/mm.c: Include pupa/dl.h.
50993
50994 * kern/main.c: Include pupa/file.h and pupa/device.h.
50995
50996 * kern/loader.c (pupa_loader_load_module_func): Removed.
50997 (pupa_loader_load_module): Likewise.
50998
50999 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
51000 ``.o''.
51001
51002 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
51003 (pupa_linux_tmp_addr): Likewise.
51004 (pupa_linux_real_addr): Likewise.
51005 (pupa_linux_boot_zimage): Likewise.
51006 (pupa_linux_boot_bzimage): Likewise.
51007
51008 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
51009 (pupa_upper_mem): Likewise.
51010 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
51011 module is too dangerous.
51012
51013 * include/pupa/loader.h (pupa_os_area_addr): Declared.
51014 (pupa_os_area_size): Likewise.
51015 (pupa_loader_set): Remove the first argument. Loader doesn't
51016 manage modules or initrd any longer.
51017 (pupa_loader_load_module): Removed.
51018
51019 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
51020 (linux_mod_SOURCES): New variable.
51021 (linux_mod_CFLAGS): Likewise.
51022
a13f9237 510232003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
51024
51025 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
51026 the length of a blocklist correctly.
51027
51028 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
51029 Use ioctl only if the OS file is a block device.
51030 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
51031 not very useful for normal files.
51032
51033 * kern/main.c (pupa_set_root_dev): New function.
51034 (pupa_load_normal_mode): Likewise.
51035 (pupa_main): Call those above.
51036
51037 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
51038 pupa_uint16_t.
51039
51040 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
51041
a5ffe966 510422003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
51043
51044 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
51045 (setup): Configure the installed partition information and the
51046 dl prefix.
51047
51048 * loader/i386/pc/chainloader.c (my_mod): New variable.
51049 (pupa_chainloader_unload): New function.
51050 (pupa_rescue_cmd_chainloader): Refer itself.
51051 (PUPA_MOD_INIT): Save its own module in MY_MOD.
51052
51053 * kern/i386/pc/startup.S (install_partition): Removed.
51054 (version_string): Likewise.
51055 (config_file): Likewise.
51056 (pupa_install_dos_part): New variable.
51057 (pupa_install_bsd_part): Likewise.
51058 (pupa_prefix): Likewise.
51059 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
51060
51061 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
51062 and pupa/misc.h.
51063 (make_install_device): New function.
51064 (pupa_machine_init): Set the dl prefix.
51065
51066 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
51067 (buf): Renamed to ...
51068 (linebuf): ... this.
51069 (pupa_rescue_cmd_prefix): New function.
51070 (pupa_rescue_cmd_insmod): Likewise.
51071 (pupa_rescue_cmd_rmmod): Likewise.
51072 (pupa_rescue_cmd_lsmod): Likewise.
51073 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
51074 rmmod and lsmod.
51075
51076 * kern/mm.c (pupa_memalign): If failed even after invalidating
51077 disk caches, unload unneeded modules and retry.
51078
51079 * kern/misc.c (pupa_memmove): New function.
51080 (pupa_memcpy): Removed.
51081 (pupa_strcpy): New function.
51082 (pupa_itoa): Made static.
51083
51084 * kern/dl.c (pupa_dl_iterate): New function.
51085 (pupa_dl_ref): Likewise.
51086 (pupa_dl_unref): Likewise.
51087 (pupa_dl_unload): Return if succeeded or not.
51088 (pupa_dl_unload_unneeded): New function.
51089 (pupa_dl_unload_all): Likewise.
51090 (pupa_dl_init): Renamed to ...
51091 (pupa_dl_set_prefix): ... this.
51092 (pupa_dl_get_prefix): New function.
51093
51094 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
51095 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
51096 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51097 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51098 (pupa_install_dos_part): Declared.
51099 (pupa_install_bsd_part): Likewise.
51100 (pupa_prefix): Likewise.
51101 (pupa_boot_drive): Likewise.
51102
51103 * include/pupa/types.h: Fix a typo.
51104
51105 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
51106 pupa_memmove.
51107 (pupa_memmove): Declared.
51108 (pupa_strcpy): Likewise.
51109
51110 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
51111 pupa_mod_init takes one argument, its own module.
51112 (pupa_dl_unload_unneeded): Declared.
51113 (pupa_dl_unload_all): Likewise.
51114 (pupa_dl_ref): Likewise.
51115 (pupa_dl_unref): Likewise.
51116 (pupa_dl_iterate): Likewise.
51117 (pupa_dl_init): Renamed to ...
51118 (pupa_dl_set_prefix): ... this.
51119 (pupa_dl_get_prefix): Declared.
51120
51121 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 51122 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 51123 unloaded.
51124 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
51125 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
51126
51127 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
51128 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
51129
012d7999 511302003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51131
51132 * util/i386/pc/pupa-setup.c (setup): Define the internal
51133 function find_first_partition_start at the top level, because GCC
51134 3.0.x cannot compile internal functions in deeper scopes
51135 correctly.
51136 (find_root_device): Use lstat instead of stat.
51137 Don't follow symbolic links.
51138 Fix the path-constructing code.
51139
51140 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
51141 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
51142 by a BLKGETSIZE ioctl first, because block devices don't fill
51143 the member st_mode of the structure stat on Linux.
51144 [__linux__] (linux_find_partition): Use a temporary buffer
51145 REAL_DEV for the working space. Copy it to DEV before returning.
51146 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
51147 buffer cache consistent.
51148 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
51149 strncmp. The previous value was merely wrong.
51150 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
51151
51152 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
51153 FAT size is 12. The previous value was merely wrong.
51154
51155 * kern/main.c (pupa_main): Don't split the starting message from
51156 newlines.
51157
51158 * kern/term.c (pupa_putchar): Put CR after LF instead of before
51159 LF, because BIOS goes crazy about character attributes in this
51160 case.
51161
1cc73a62 511622003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51163
51164 * include/i386/pc/util/biosdisk.h: New file.
51165 * util/i386/pc/biosdisk.c: Likewise.
51166 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 51167
1cc73a62 51168 * Makefile.in (INCLUDE_DISTFILES): Added
51169 include/pupa/i386/pc/util/biosdisk.h.
51170 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
51171 directory util/i386/pc.
51172 (install-local): Added a rule for sbin_UTILITIES.
51173 (uninstall): Likewise.
51174
51175 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
51176
51177 * util/misc.c (xrealloc): New function.
51178 (pupa_malloc): Likewise.
51179 (pupa_free): Likewise.
51180 (pupa_realloc): Likewise.
51181 (pupa_stop): Likewise.
51182 (pupa_putchar): Likewise.
51183
51184 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
51185
51186 * include/pupa/util/misc.h (xrealloc): Declared.
51187
51188 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
51189 macro.
51190 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
51191 (PUPA_BOOT_MACHINE_BPB_END): ... this.
51192
51193 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
51194 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51195
51196 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
51197 way should be implemented.
51198 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51199
51200 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
51201 the size of NAME for safety.
51202 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
51203 0x88.
51204
51205 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
51206 (pupa_setup_SOURCES): Likewise.
51207
51208 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
51209
08b70fe8 512102002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51211
51212 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
51213 bunch of pushl's from pusha, because this destroys the return
51214 value.
51215
62ddcc8f 512162002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51217
51218 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
51219 This means that any missing prototypes could be fatal. Also, you
51220 must take care when writing assembly code. See the comments at
51221 the beginning of startup.S, for more details.
f19dbdb7 51222
62ddcc8f 51223 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
51224 compilation mechanism.
51225 (pupa_chainloader_real_boot): Likewise.
51226 (pupa_biosdisk_rw_int13_extensions): Likewise.
51227 (pupa_biosdisk_rw_standard): Likewise.
51228 (pupa_biosdisk_check_int13_extensions): Likewise.
51229 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
51230 (pupa_biosdisk_get_diskinfo_standard): Likewise.
51231 (pupa_get_memsize): Likewise.
51232 (pupa_get_mmap_entry): Likewise.
51233 (pupa_console_putchar): Likewise.
51234 (pupa_console_setcursor): Likewise.
51235 (pupa_getrtsecs): Use pushl instead of push.
51236
51237 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
51238 memory instead of the stack for a mmap entry, because some
51239 BIOSes may ignore the maximum size and overflow.
51240
51241 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
51242
51243 * genmk.rb (PModule#rule): Compile automatically generated
51244 sources with module-specific CFLAGS as well as other sources.
51245
9962ed99 512462002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51247
51248 * configure.ac: Check ld.
51249 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
51250 respectively, before checking endianness and sizes.
51251
51252 * Makefile.in (LD): New variable.
f19dbdb7 51253
abdfc3c5 512542002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51255
51256 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
51257
6a161fa9 512582002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51259
51260 * Changelog: New file.
51261